1 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
3 * util/grub-mkrescue.in: Support --xorriso argument.
5 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
7 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
8 Suggested by: Thomas Schmitt.
10 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
12 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
13 Suggested by: Thomas Schmitt.
15 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
19 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20 * util/grub.d/41_custom.in: New file.
22 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
24 * util/grub-mkrescue.in (make_image): Remove sh module, which has
25 been merged back into normal.
27 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
29 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
30 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
32 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
34 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
35 when generating manual pages.
36 * docs/man/grub-bin2h.h2m: New file.
37 * docs/man/grub-editenv.h2m: New file.
38 * docs/man/grub-fstest.h2m: New file.
39 * docs/man/grub-install.h2m: New file.
40 * docs/man/grub-macho2img.h2m: New file.
41 * docs/man/grub-mkconfig.h2m: New file.
42 * docs/man/grub-mkdevicemap.h2m: New file.
43 * docs/man/grub-mkfont.h2m: New file.
44 * docs/man/grub-mkimage.h2m: New file.
45 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
46 * docs/man/grub-mkrelpath.h2m: New file.
47 * docs/man/grub-mkrescue.h2m: New file.
48 * docs/man/grub-ofpathname.h2m: New file.
49 * docs/man/grub-pe2elf.h2m: New file.
50 * docs/man/grub-probe.h2m: New file.
51 * docs/man/grub-reboot.h2m: New file.
52 * docs/man/grub-script-check.h2m: New file.
53 * docs/man/grub-set-default.h2m: New file.
54 * docs/man/grub-setup.h2m: New file.
56 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
58 Use FOR_* macros instead of *_iterate whenever possible.
60 * commands/handler.c: Removed.
61 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
62 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
63 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
64 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
65 (grub_probe_SOURCES): Remove kern/parser.c.
66 (util/grub-script-check.c_DEPENDENCIES): Removed.
67 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
68 and grub_script_check_init.c.
69 (grub_script_check_init.lst): Removed.
70 (grub_script_check_init.h): Likewise.
71 (grub_script_check_init.c): Likewise.
72 (pkglib_MODULES): Remove handler.mod and sh.mod.
73 (handler_mod_SOURCES): Removed.
74 (handler_mod_CFLAGS): Likewise.
75 (handler_mod_LDFLAGS): Likewise.
76 (normal_mod_SOURCES): Remove normal/handler.c.
77 Add script/main.c, script/script.c, script/execute.c,
78 script/function.c, script/lexer.c, grub_script.tab.c
80 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
81 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
82 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
83 (grub_setup_SOURCES): Remove kern/parser.c.
84 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
85 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
86 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
87 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
88 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
89 (grub_setup_SOURCES): Remove kern/parser.c.
90 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
91 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
92 * include/grub/command.h (grub_command_iterate): Removed.
93 (FOR_COMMANDS): New macro.
94 * include/grub/dl.h (grub_dl): New member next.
95 (grub_dl_iterate): Removed.
96 (grub_dl_head): New variable declaration.
97 (FOR_DL_MODULES): New macro.
98 * include/grub/fs.h: Include list.h.
99 (grub_fs): Make next first element.
100 (grub_fs_list): New variable declaration.
101 (grub_fs_register): Make inline.
102 (grub_fs_unregister): Likewise.
103 (grub_fs_iterate): Removed.
104 (FOR_FILESYSTEMS): New macro.
105 * include/grub/handler.h: Removed.
106 * include/grub/list.h (grub_list_hook_t): Removed.
107 (grub_list_test_t): Likewise.
108 (grub_list_pop): Likewise.
109 (grub_list_iterate): Likewise.
110 (grub_list_insert): Likewise.
111 (FOR_LIST_ELEMENTS): New macro.
112 * include/grub/parser.h (grub_parser_class): Removed.
113 (grub_parser_register): Likewise.
114 (grub_parser_unregister): Likewise.
115 (grub_parser_get_current): Likewise.
116 (grub_parser_set_current): Likewise.
117 (grub_register_rescue_parser): Likewise.
118 (grub_rescue_parse_line): New function.
119 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
120 * include/grub/script_sh.h (grub_script_function_list): New variable
122 (FOR_SCRIPT_FUNCTIONS): New macro.
123 (grub_script_function_iterate): Removed.
124 (grub_normal_parse_line): New prototype.
125 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
126 (FOR_DISABLED_TERM_INPUTS): Likewise.
127 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
128 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
129 * include/grub/video.h (grub_video_adapter): Move 'next' to first
131 (grub_video_register): Inline.
132 (grub_video_unregister): Likewise.
133 (grub_video_adapter_list): New variable declaration.
134 (grub_video_iterate): Removed.
135 (FOR_VIDEO_ADAPTERS): New macro.
136 * kern/dl.c (grub_dl_list): Removed. All users updated.
137 (grub_dl_iterate): Removed.
138 * kern/fs.c (grub_fs_list): Make global.
139 (grub_fs_register): Removed.
140 (grub_fs_unregister): Likewise.
141 (grub_fs_iterate): Likewise.
142 * kern/handler.c: Removed.
143 * kern/list.c (grub_list_pop): Removed.
144 (grub_list_iterate): Likewise.
145 (grub_list_insert): Likewise.
146 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
147 (grub_prio_list_insert): Don't use grub_list_insert.
148 * kern/main.c (grub_register_rescue_parser): Don't call
149 grub_register_rescue_parser.
150 * kern/parser.c (grub_parser_class): Removed.
151 (grub_parser_execute): Use grub_rescue_parse_line.
152 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
153 (grub_rescue_parser): Removed.
154 (grub_register_rescue_parser): Likewise.
155 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
156 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
157 (grub_auth_check_authentication): Likewise.
158 * normal/completion.c (iterate_command): Removed.
159 (grub_normal_do_completion): Use FOR_COMMANDS.
160 * normal/handler.c: Removed.
161 * normal/main.c (read_config_file): Remove parser changing.
162 (grub_normal_execute): Don't call read_handler_list.
163 (grub_normal_read_line_real): Statically allocate prompt.
164 (grub_cmdline_run): Use grub_normal_parse_line.
165 (GRUB_MOD_FINI): Don't call free_handler_list.
166 * normal/menu_entry.c (run): Likewise.
167 * script/function.c (grub_script_function_list): Make global.
168 (grub_script_function_iterate): Removed.
169 * script/main.c (grub_normal_parse_line): Make global.
170 (grub_sh_parser): Removed.
171 (GRUB_MOD_INIT): Likewise.
172 (GRUB_MOD_FINI): Likewise.
173 * tests/lib/functional_test.c (grub_functional_test): Use
175 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
176 (grub_test_run): Use FOR_LIST_ELEMENTS.
177 * tests/lib/unit_test.c (main): Likewise.
178 * util/deviceiter.c (grub_util_iterate_devices): Don't use
180 * util/grub-fstest.c (grub_term_input_class): Removed.
181 (grub_term_output_class): Likewise.
182 * util/grub-probe.c: Likewise.
183 * util/i386/pc/grub-setup.c: Likewise.
184 * util/sparc64/ieee1275/grub-setup.c: Likewise.
185 * util/grub-script-check.c (main): Don't call grub_init_all and
187 * video/video.c (grub_video_adapter_list): Make global.
188 (grub_video_register): Removed.
189 (grub_video_unregister): Likewise.
190 (grub_video_iterate): Likewise.
192 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
194 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
195 reported by Henrique Ferreiro.
197 2010-06-09 Robert Millan <rmh@gnu.org>
199 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
200 ones, when both are available.
202 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
204 Make --version uniform and avoid hard-coded program name.
206 * util/grub-mkimage.c (main): Use `program_name' instead of
208 * util/i386/pc/grub-setup.c (main): Likewise.
209 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
210 * util/grub-install.in: Save the basename of $0 in $self, and use the
211 latter in informational messages. Use the same format for --version
212 as the binary programs.
213 * util/grub-mkconfig.in: Likewise.
214 * util/grub-mkrescue.in: Likewise.
215 * util/grub-reboot.in: Likewise.
216 * util/grub-set-default.in: Likewise.
217 * util/i386/efi/grub-install.in: Likewise.
218 * util/ieee1275/grub-install.in: Likewise.
219 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
221 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
223 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
224 embedding area. Use <= instead of == when checking for non-emptiness.
226 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
228 * configure.ac: Add `.' to the directories searched for unifont.
230 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
232 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
235 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
237 * docs/grub.texi (History): Expand to cover GRUB 2.
238 (Serial terminal): Refer to `terminal_input' and `terminal_output'
239 commands, not `terminal'.
241 (terminal_input): New section.
242 (terminal_output): New section.
243 (uppermem): New section (stub).
244 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
246 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
248 * docs/grub.texi (Security): Menu entries are unrestricted by
249 default, not restricted to superusers as I had previously thought.
250 Reword to account for this.
252 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
254 * kern/emu/misc.c (device_mapper_null_log): New function.
255 (grub_device_mapper_supported): New function.
256 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
258 * kern/emu/hostdisk.c (find_partition_start): Check whether
259 device-mapper is supported before trying to use it.
260 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
262 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
264 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
265 (File name syntax): Likewise.
266 (help): --all is no longer supported in GRUB 2. Be more precise
267 about pattern matching.
269 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
271 * normal/completion.c (grub_normal_do_completion): When completing
272 arguments to "set" and the current word contains an equals sign,
273 skip to after the equals sign before starting completion.
275 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
277 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
279 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
281 * docs/grub.texi (Network): New section.
282 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
283 `(nd)' as in GRUB Legacy.
284 (pxe_unload): New section.
286 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
288 * docs/grub.texi (Troubleshooting): `echo' is not usually available
289 in the rescue shell, so recommend using `set' instead. Thanks,
292 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
294 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
295 (password): New section.
296 (password_pbkdf2): New section.
297 (search): New section.
298 (Security): New section.
299 (Troubleshooting): New section, currently very incomplete.
300 (Invoking grub-mkpasswd-pbkdf2): New section.
301 (Internals): New section, currently very incomplete.
303 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
305 * util/grub.d/00_header.in: Add some more quoting (of
306 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
308 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
310 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
312 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
313 to `count', fixing variable shadowing that broke the -c option.
315 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
317 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
318 in case they contain spaces.
320 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
322 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
323 "part_" to partmap module names, in line with grub-install.
324 Reported by: Jindřich Makovička (Debian bug #584426).
326 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
328 * util/grub-mkimage.c: Make target-related error messages slightly
329 more helpful; -O talks about "format". Explicitly point to the use
330 of -O if no target is specified.
331 Reported by: Didier Raboud (Debian bug #584415).
333 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
335 * INSTALL: Document several build requirements for optional features
336 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
338 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
340 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
341 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
342 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
344 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
346 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
347 Thanks to Jordan Uggla for spotting this.
349 2010-06-02 Aleš Nesrsta <starous@volny.cz>
351 Finally make USB usable.
353 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
354 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
355 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
356 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
357 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
358 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
359 (GRUB_OHCI_FSMPS): Likewise.
360 (GRUB_OHCI_PERIODIC_START): Likewise.
361 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
362 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
363 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
364 (GRUB_OHCI_SET_PORT_RESET): Likewise.
365 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
366 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
367 (grub_ohci_transaction): Likewise.
368 (grub_ohci_transfer): Improve condition detection algorithms.
369 Handle toggle property. Program the transactions correctly.
370 Improve error handling. Various important fixups.
371 (grub_ohci_portstatus): Put register writes in right order.
372 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
373 (grub_uhci_transfer): Don't show "failed" message on success.
374 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
376 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
378 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
379 before initialization is completed. Use IN direction for empty
380 transfers. Use last_trans and compute toggle.
381 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
382 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
383 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
384 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
385 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
386 (grub_usb_device): Increase toggle to 256.
387 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
388 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
389 GRUB_USBMS_SUBCLASS_SFF8070.
390 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
391 (grub_scsi_inquiry): New member page and alloc_length.
392 (grub_scsi_request_sense): New structure.
393 (grub_scsi_request_sense_data): Likewise.
394 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
396 * disk/scsi.c (grub_scsi_request_sense): New function.
397 (grub_scsi_test_unit_ready): Likewise.
398 (grub_scsi_inquiry): Fill new fields.
399 (grub_scsi_read_capacity): Likewise.
400 (grub_scsi_read10): Add request sense at the end.
401 (grub_scsi_read12): Likewise.
402 (grub_scsi_write10): Likewise.
403 (grub_scsi_write12): Likewise.
404 (grub_scsi_open): Add Test Unit Ready.
405 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
406 Support additional subclasses. Con't clear halt yet. Activate the
407 proper config. Calculate LUNs correctly.
408 (grub_usbms_transfer): Various important fixups.
410 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
412 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
413 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
414 (grub_ohci_fini_hw): New function.
415 (grub_ohci_restore_hw): Likewise.
416 (GRUB_MOD_INIT(ohci)): Register preboot hook.
417 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
418 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
420 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
422 Dedicated DMA allocations.
424 * bus/pci.c (grub_memalign_dma32): New function
425 (grub_dma_free): Likewise.
426 (grub_dma_get_virt): Likewise.
427 (grub_dma_get_phys): Likewise.
428 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
429 (grub_ohci_pci_iter): Use dma32_alloc.
430 (grub_ohci_transfer): Likewise.
431 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
432 (grub_usb_bulk_readwrite): Likewise.
433 * include/grub/pci.h: Add declarations.
435 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
439 * bus/cs5536.c: New file.
440 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
441 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
442 (cs5536_mod_SOURCES): New variable.
443 (cs5536_mod_CFLAGS): Likewise.
444 (cs5536_mod_LDFLAGS): Likewise.
445 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
447 (kernel_img_SOURCES): Add bus/cs5536.c.
448 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
450 (usb_mod_SOURCES): New variable.
451 (usb_mod_CFLAGS): New variable.
452 (usb_mod_LDFLAGS): New variable.
453 (usbtest_mod_SOURCES): New variable.
454 (usbtest_mod_CFLAGS): New variable.
455 (usbtest_mod_LDFLAGS): New variable.
456 (ohci_mod_SOURCES): New variable.
457 (ohci_mod_CFLAGS): New variable.
458 (ohci_mod_LDFLAGS): New variable.
459 (usbms_mod_SOURCES): New variable.
460 (usbms_mod_CFLAGS): New variable.
461 (usbms_mod_LDFLAGS): New variable.
462 (usb_keyboard_mod_SOURCES): New variable.
463 (usb_keyboard_mod_CFLAGS): New variable.
464 (usb_keyboard_mod_LDFLAGS): New variable.
465 * include/grub/smbus.h: New file.
466 * include/grub/cs5536.h: New file.
468 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
470 * util/grub.d/00_header.in: Add safety check to make sure that
471 ${locale_dir} exists before trying to probe it.
473 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
475 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
476 per the GNU Coding Standards; this is now too obscure to be worth
479 (chainloader): Remove cross-reference to `SCO UnixWare'.
481 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
483 * docs/grub.texi (Chain-loading): New section.
484 (DOS/Windows): New section, borrowed from GRUB Legacy with details
486 (SCO UnixWare): Likewise.
488 (chainloader): Add reference to `Block list syntax'.
489 (drivemap): New section.
490 (parttool): New section.
492 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
494 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
496 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
497 (Installing GRUB using grub-install): Remove reference to the grub
498 shell; mention `grub-mkimage' and `grub-setup' instead.
499 (Invoking grub-install): Likewise.
500 (Interface): Add reference to `Menu entry editor'.
501 (serial): Remove `--device' option.
503 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
505 * docs/grub.texi (Configuration): New section, documenting
506 configuration file generation using grub-mkconfig. I've left a slot
507 for documenting the full shell scripting format but have not yet
508 started on writing that up.
509 (Invoking grub-mkconfig): New section.
511 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
513 * docs/grub.texi (direntry): Remove grub-terminfo reference.
514 (GNU GRUB manual): Likewise.
515 (General commands): Update description of `terminfo' for GRUB 2.
517 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
519 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
520 (GRUB_MOD_INIT): Fix capitalisation.
521 * docs/grub.texi (Command-line and menu entry commands): Document
522 gettext and gptsync commands.
524 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
526 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
527 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
529 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
531 Add btrfs probing support, currently only in the single-device case.
533 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
535 (grub_guess_root_device): Call find_root_device_from_mountinfo
536 before looking in /dev.
538 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
540 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
541 GRUB_DISK_SIZE_UNKNOWN.
542 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
544 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
546 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
547 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
548 corrupted or not synced properly.
550 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
552 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
553 Reported by: Seth Goldberg.
555 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
557 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
559 Reported by: Seth Goldberg.
561 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
563 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
564 Reported by: Seth Goldberg.
566 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
568 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
569 64-bit address as signed on MIPS.
571 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
573 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
576 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
578 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
580 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
581 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
582 * kern/misc.c (__enable_execute_stack): Disable on
585 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
587 Make grub-probe work with symbolic links under /dev/mapper as well
588 as with real block devices. The Linux world seems to be (at best)
589 in transition here, and GRUB shouldn't get caught in the middle.
591 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
594 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
596 * util/grub-script-check.c (main): Ensure defined behaviour on empty
597 input files (in which case exit zero).
599 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
601 * kern/emu/misc.c (canonicalize_file_name): realpath can still
602 return NULL for various reasons even if it has a maximum-length
603 buffer: for example, there might be a symlink loop, or the path
604 might exceed PATH_MAX. If this happens, return NULL.
606 2010-05-27 Robert Millan <rmh@gnu.org>
608 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
609 partmap module to handle cross-partmap setups.
610 Reported by Orestes Mas. Gràcies!
612 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
614 * util/grub-mkrescue.in: Initialise override_dir rather than
615 assuming that it's unset or empty in the environment.
617 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
619 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
620 variable index into p_index to suppress a warning with -Wshadow.
622 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
624 * INSTALL: Added flex >= 2.5.35 requirement.
626 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
628 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
630 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
634 * commands/i386/cmostest.c: New file.
635 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
636 (cmostest_mod_SOURCES): New variable.
637 (cmostest_mod_CFLAGS): Likewise.
638 (cmostest_mod_LDFLAGS): Likewise.
639 * conf/i386-pc.rmk: Likewise.
640 * docs/grub.texi (Vendor power-on keys): New section.
641 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
642 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
643 and GRUB_BUTTON_CMOS_ADDRESS.
644 * util/grub.d/00_header.in: Handle powering-on by separate button.
646 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
648 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
649 Removed drawing_scrollbar argument. All users updated
651 Reported by Jo Shields
653 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
655 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
656 buffer since gfxterm handles double repaint.
658 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
660 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
661 * term/gfxterm.c (real_scroll): Likewise.
663 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
665 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
668 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
670 * include/grub/i18n.h: Always enable grub_gettext.
672 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
674 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
675 partition naming style.
677 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
679 * util/grub-mkconfig.in: Fix handling of -o so that it works when
680 not the first option.
682 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
684 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
686 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
688 * util/misc.c: Move inclusion of <limits.h> to ...
689 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
691 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
693 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
694 Fix merge error in NetBSD code.
695 (find_partition_start) [__NetBSD__]: Likewise.
697 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
699 Fix grub-mkrescue usage unit testing.
701 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
703 2010-05-18 Christian Franke <franke@computer.org>
705 * util/grub.d/10_windows.in: Use path names instead of
706 drive letters to prevent warning from Cygwin 1.7.
707 Add drivemap command to menuentry if needed.
709 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
711 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
712 gnumach and gnumach.gz.
714 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
716 * include/grub/i18n.h (gettext): Inline instead of using #define.
717 (grub_gettext): Likewise.
720 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
722 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
723 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
724 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
725 (main): Add a slash after pkglibdirroot.
727 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
729 * util/grub-install.in: Add missing "in" keyword.
731 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
733 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
734 Reported by: Seth Goldberg.
736 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
738 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
740 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
742 * configure.ac: Check for Linux device-mapper support.
744 * util/hostdisk.c (device_is_mapped): New function.
745 (find_partition_start): New function, partly broken out from
746 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
747 device-mapper support added.
748 (linux_find_partition): Use find_partition_start.
749 (convert_system_partition_to_system_disk): Add `st' argument.
750 Support Linux /dev/mapper/* devices if device-mapper support is
751 available; only DM-RAID devices are understood at present.
752 (find_system_device): Add `st' argument. Pass it to
753 convert_system_partition_to_system_disk.
754 (grub_util_biosdisk_get_grub_dev): Pass stat result to
755 find_system_device and convert_system_partition_to_system_disk. Use
756 find_partition_start.
758 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
759 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
760 * util/deviceiter.c [__linux__]: Define MINOR.
761 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
762 * util/mkdevicemap.c (grub_putchar): New function.
763 (grub_getkey): New function.
764 (grub_refresh): New function.
765 (main): Set debug=all if -v -v is used.
767 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
769 Fix build with non-GNU libcs.
771 * util/misc.c (canonicalize_file_name): Move to ...
772 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
773 grub_make_system_path_relative_to_its_root.
775 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
777 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
778 we handle finding grub-mkimage. Default to finding grub-mkimage in
779 ${bindir} with program_transform_name applied, and provide a
780 --grub-mkimage option to override this.
782 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
786 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
787 (grub_mkisofs_SOURCES): Removed.
788 (grub_mkisofs_CFLAGS): Removed.
789 * util/mkisofs/defaults.h: Removed.
790 * util/mkisofs/eltorito.c: Likewise.
791 * util/mkisofs/exclude.h: Likewise.
792 * util/mkisofs/hash.c: Likewise.
793 * util/mkisofs/include/: Likewise.
794 * util/mkisofs/include/fctldefs.h: Likewise.
795 * util/mkisofs/include/mconfig.h: Likewise.
796 * util/mkisofs/include/prototyp.h: Likewise.
797 * util/mkisofs/include/statdefs.h: Likewise.
798 * util/mkisofs/iso9660.h: Likewise.
799 * util/mkisofs/joliet.c: Likewise.
800 * util/mkisofs/match.c: Likewise.
801 * util/mkisofs/match.h: Likewise.
802 * util/mkisofs/mkisofs.c: Likewise.
803 * util/mkisofs/mkisofs.h: Likewise.
804 * util/mkisofs/msdos_partition.h: Likewise.
805 * util/mkisofs/multi.c: Likewise.
806 * util/mkisofs/name.c: Likewise.
807 * util/mkisofs/rock.c: Likewise.
808 * util/mkisofs/tree.c: Likewise.
809 * util/mkisofs/write.c: Likewise.
811 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
813 Unify grub-mkimage accross platforms.
815 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
816 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
817 (grub_mkelfimage_SOURCES): Removed.
818 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
819 (util/grub-mkimage.c_DEPENDENCIES): .. this.
820 (bin_UTILITIES): Add grub-mkimage.
821 (grub_mkimage_SOURCES): New variable.
822 (kernel_img_HEADERS): Remove machine/kernel.h.
823 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
824 (pkglib_PROGRAMS): Add kernel.img.
825 (kernel_img_HEADERS): Add machine/kernel.h.
826 (kernel_img_FORMAT): Removed.
827 (bin_UTILITIES): Remove grub-mkimage.
828 (grub_mkimage_SOURCES): Removed.
829 (grub_mkimage_CFLAGS): Likewise.
830 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
831 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
832 (pkglib_PROGRAMS): Add kernel.img.
833 (bin_UTILITIES): Remove grub-mkimage.
834 (grub_mkimage_SOURCES): Removed.
835 (grub_mkimage_CFLAGS): Likewise.
836 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
837 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
838 (pkglib_PROGRAMS): Add kernel.img.
839 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
840 (pkglib_PROGRAMS): Add kernel.img.
841 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
842 (grub_mkimage_SOURCES): Removed.
843 (grub_mkimage_CFLAGS): Likewise.
844 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
845 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
846 (pkglib_PROGRAMS): Add kernel.img.
847 (bin_UTILITIES): Remove grub-mkimage.
848 (grub_mkimage_SOURCES): Removed.
849 (grub_mkimage_CFLAGS): Likewise.
850 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
851 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
852 (grub_mkimage_SOURCES): Removed.
853 (grub_mkimage_CFLAGS): Likewise.
854 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
855 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
856 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
857 (grub_pe32_optional_header): ... this.
858 (grub_pe64_optional_header): ... and this. All users updated.
859 (GRUB_PE32_PE32_MAGIC): Split into ..
860 (GRUB_PE32_PE32_MAGIC): .. this.
861 (GRUB_PE32_PE64_MAGIC): .. and this.
862 (GRUB_PE32_SIGNATURE_SIZE): New definition.
863 * include/grub/elf.h (PT_GNU_STACK): New definition.
864 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
865 * include/grub/i386/efi/kernel.h: Likewise.
866 * include/grub/i386/kernel.h: Likewise.
867 * include/grub/i386/pc/kernel.h: Likewise.
868 * include/grub/i386/qemu/boot.h: Likewise.
869 * include/grub/mips/kernel.h: Likewise.
870 * include/grub/mips/qemu-mips/kernel.h: Likewise.
871 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
872 * include/grub/powerpc/kernel.h: Likewise.
873 * include/grub/sparc64/ieee1275/boot.h: Likewise.
874 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
875 * include/grub/sparc64/kernel.h: Likewise.
876 * include/grub/x86_64/efi/kernel.h: Likewise.
877 * include/grub/x86_64/kernel.h: Likewise.
878 * include/grub/offsets.h: New file.
879 * include/grub/kernel.h (grub_module_info): Split into ...
880 (grub_module_info32): ... this.
881 (grub_module_info64): ... and this.
882 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
883 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
884 (grub_boot_blocklist): Moved from here ...
885 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
886 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
887 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
888 * include/grub/types.h (grub_target_to_host16): Removed.
889 (grub_target_to_host32): Likewise.
890 (grub_target_to_host64): Likewise.
891 (grub_host_to_target16): Likewise.
892 (grub_host_to_target32): Likewise.
893 (grub_host_to_target64): Likewise.
894 (grub_host_to_target_addr): Likewise.
896 Support grub-mkrescue for efi, coreboot and qemu.
898 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
899 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
900 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
901 * util/grub-mkrawimage.c: Moved from here ...
902 * util/grub-mkimage.c: ... here. All users updated.
903 (ALIGN_ADDR): Use image_target.
904 (TARGET_NO_FIELD): New const.
905 (image_target_desc): New type.
906 (image_targets): New array.
907 (grub_target_to_host64): Use image_target.
908 (grub_target_to_host32): Likewise.
909 (grub_target_to_host16): Likewise.
910 (grub_host_to_target64): Likewise.
911 (grub_host_to_target32): Likewise.
912 (grub_host_to_target16): Likewise.
913 (grub_host_to_target_addr): Likewise.
914 (generate_image): Handle multiimage.
915 (main): Require -O parameter. All users updated.
916 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
917 util/efi/grub-mkimage.c
918 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
919 New option --rom-directory.
921 * util/i386/efi/grub-mkimage.c: Removed.
922 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
923 (grub_target_to_host32): Likewise.
924 (grub_target_to_host64): Likewise.
925 (grub_host_to_target16): Likewise.
926 (grub_host_to_target32): Likewise.
927 (grub_host_to_target64): Likewise.
928 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
929 (grub_target_to_host32): Likewise.
930 (grub_target_to_host64): Likewise.
931 (grub_host_to_target16): Likewise.
932 (grub_host_to_target32): Likewise.
933 (grub_host_to_target64): Likewise.
935 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
937 Source tree is reorganized for emu build.
939 * include/grub/util/console.h: Move from here...
940 * include/grub/emu/console.h: ...to here.
941 * include/grub/util/getroot.h: Move from here...
942 * include/grub/emu/getroot.h: ...to here.
943 * include/grub/util/hostdisk.h: Move from here...
944 * include/grub/emu/hostdisk.h: ...to here.
945 * util/console.c: Move from here...
946 * kern/emu/console.c: ...to here.
947 * util/getroot.c: Move from here...
948 * kern/emu/getroot.c: ...to here.
949 * util/grub-emu.c: Move from here...
950 * kern/emu/main.c: ...to here.
951 * util/hostdisk.c: Move from here...
952 * kern/emu/hostdisk.c: ...to here.
953 * util/hostfs.c: Move from here...
954 * kern/emu/hostfs.c: ...to here.
955 * util/mm.c: Move from here...
956 * kern/emu/mm.c: ...to here.
957 * util/pci.c: Move from here...
958 * bus/emu/pci.c: ...to here.
959 * util/sdl.c: Move from here...
960 * video/emu/sdl.c: ...to here.
961 * util/time.c: Move from here...
962 * kern/emu/time.c: ...to here.
963 * util/usb.c: Move from here...
964 * bus/usb/emu/usb.c: ...to here.
966 * include/grub/emu/misc.h: New header for grub-emu functions.
967 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
969 * conf/any-emu.rmk: Rule updates for above renames.
970 * conf/common.rmk: Likewise.
971 * conf/i386-pc.rmk: Likewise.
972 * conf/i386-qemu.rmk: Likewise.
973 * conf/mips.rmk: Likewise.
974 * conf/sparc64-ieee1275.rmk: Likewise.
975 * conf/x86-efi.rmk: Likewise.
977 * disk/lvm.h: #include updates for above renames.
978 * util/grub-mkrelpath.c: Likewise.
979 * util/grub-probe.c: Likewise.
980 * util/i386/pc/grub-setup.c: Likewise.
981 * util/sparc64/ieee1275/grub-setup.c: Likewise.
982 * kern/emu/console.c: Likewise.
983 * kern/emu/getroot.c: Likewise.
984 * kern/emu/hostdisk.c: Likewise.
985 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
987 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
988 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
989 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
990 * util/misc.c: Remove grub-emu functions.
992 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
995 Reported by: Thorsten Grützmacher.
997 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
999 (circprog_set_property): Register and unregister timeout hook.
1000 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
1001 (label_destroy): Free template. and unregister hook.
1002 (label_set_state): New function.
1003 (label_set_property): Handle templates and hooks.
1004 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
1006 (progress_bar_set_property): Register and unregister timeout hook.
1007 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
1008 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
1009 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
1010 (update_timeout_visit): Removed.
1011 (update_timeouts): New function.
1012 (redraw_timeouts): Likewise.
1013 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
1014 (grub_gfxmenu_clear_timeout): Likewise.
1015 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
1016 (grub_gfxmenu_timeout_notify): Likewise.
1017 (grub_gfxmenu_timeout_notifications): New external variable.
1018 (grub_gfxmenu_timeout_register): New function.
1019 (grub_gfxmenu_timeout_unregister): Likewise.
1021 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1023 Transform (broken) vga terminal into (working) vga video driver.
1025 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
1026 video/i386/pc/vga.c.
1027 * include/grub/video.h (grub_video_driver_id):
1028 Add GRUB_VIDEO_DRIVER_VGA.
1029 * term/i386/pc/vga.c: Renamed to ...
1030 * video/i386/pc/vga.c: ...this
1031 (DEBUG_VGA): Removed.
1032 (CHAR_WIDTH): Likewise.
1033 (CHAR_HEIGHT): Likewise.
1034 (TEXT_WIDTH): Likewise.
1035 (TEXT_HEIGHT): Likewise.
1036 (DEFAULT_FG_COLOR): Likewise.
1037 (DEFAULT_BG_COLOR): Likewise.
1038 (colored_char): Likewise.
1041 (cursor_state): Likewise.
1042 (fg_color): Likewise.
1043 (bg_color): Likewise.
1044 (text_buf): Likewise.
1047 (framebuffer): New variable.
1048 (set_read_map): Disabled.
1049 (setup): New variable.
1050 (is_target): Likewise.
1051 (grub_vga_mod_init): Likewise.
1052 (grub_vga_mod_fini): Likewise.
1053 (check_vga_mem): Likewise.
1054 (write_char): Likewise.
1055 (write_cursor): Likewise.
1056 (scroll_up): Likewise.
1057 (grub_vga_putchar): Likewise.
1058 (grub_vga_getcharwidth): Likewise.
1059 (grub_vga_getwh): Likewise.
1060 (grub_vga_getxy): Likewise.
1061 (grub_vga_gotoxy): Likewise.
1062 (grub_vga_cls): Likewise.
1063 (grub_vga_setcolorstate): Likewise.
1064 (grub_vga_setcursor): Likewise.
1065 (grub_video_vga_init): New function.
1066 (grub_video_vga_setup): Likewise.
1067 (grub_video_vga_fini): Likewise.
1068 (update_target): Likewise.
1069 (grub_video_vga_blit_bitmap): Likewise.
1070 (grub_video_vga_blit_render_target): Likewise.
1071 (grub_video_vga_set_active_render_target): Likewise.
1072 (grub_video_vga_get_active_render_target): Likewise.
1073 (grub_video_vga_swap_buffers): Likewise.
1074 (grub_video_vga_set_palette): Likewise.
1075 (grub_video_vga_get_info_and_fini): Likewise.
1076 (grub_vga_term): Removed.
1077 (grub_video_vga_adapter): New variable.
1078 (GRUB_MOD_INIT): Register a video driver instead of terminal.
1079 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
1081 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1083 * video/readers/jpeg.c: Indented.
1085 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1087 Various jpeg cleanups.
1089 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
1090 (grub_jpeg_decode_quan_table): Use sizeof.
1091 (grub_jpeg_decode_du): Use ARRAY_SIZE.
1093 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
1095 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
1096 tables. Ignore non-last ac bit.
1097 (grub_jpeg_decode_quan_table): Likewise.
1099 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1101 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1102 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
1103 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1104 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
1105 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
1106 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
1108 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1110 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
1113 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1115 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
1117 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1119 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
1122 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1124 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
1127 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1129 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
1132 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1134 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
1136 2010-05-01 Christian Franke <franke@computer.org>
1138 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
1139 Remove broken Cygwin path conversion.
1140 * util/misc.c: [__CYGWIN__] Add include and define.
1141 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
1143 (make_system_path_relative_to_its_root): Simplify loop, replace early
1145 [__CYGWIN__] Add conversion to win32 path.
1146 Include "/" case in trailing slash removal.
1148 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1150 * kern/main.c (grub_load_config): Fix copy-pasted comment.
1151 Reported by: Seth Goldberg
1153 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1155 * commands/help.c (grub_cmd_help): Fix a typo.
1156 Reported by: Seth Goldberg
1158 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1160 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
1162 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
1163 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
1164 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
1165 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
1166 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
1167 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
1168 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
1169 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
1170 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
1171 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
1172 * normal/context.c (GRUB_MOD_INIT): Likewise.
1173 * normal/main.c (GRUB_MOD_INIT): Likewise.
1174 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
1175 * term/serial.c (GRUB_MOD_INIT): Likewise.
1176 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
1178 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1180 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
1183 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1185 * commands/iorw.c: New file.
1186 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
1187 (iorw_mod_SOURCES): New variable.
1188 (iorw_mod_CFLAGS): Likewise.
1189 (iorw_mod_LDFLAGS): Likewise.
1191 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1195 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
1196 * normal/main.c (hotkey_aliases): New variable.
1197 (grub_normal_add_menu_entry): Parse "--hotkey".
1198 * normal/menu_text.c (run_menu): Handle hotkeys.
1200 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1202 * kern/i386/coreboot/init.c (grub_machine_init): Call
1203 grub_machine_mmap_init on qemu.
1205 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1207 * boot/i386/qemu/boot.S: Add a missing .code16.
1209 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1211 Use LBIO on coreboot.
1213 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
1214 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
1215 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
1217 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
1218 grub_machine_mmap_init on coreboot.
1219 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
1220 GRUB_LINUXBIOS_MEMBER_LINK.
1221 (grub_machine_mmap_iterate): Fix declaration.
1222 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
1224 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1226 Split coreboot and multiboot ports.
1228 * conf/i386-multiboot.rmk: New file.
1229 * configure.ac: Add multiboot port.
1230 * include/grub/i386/multiboot/boot.h: New file.
1231 * include/grub/i386/multiboot/console.h: Likewise.
1232 * include/grub/i386/multiboot/init.h: Likewise.
1233 * include/grub/i386/multiboot/kernel.h: Likewise.
1234 * include/grub/i386/multiboot/loader.h: Likewise.
1235 * include/grub/i386/multiboot/memory.h: Likewise.
1236 * include/grub/i386/multiboot/serial.h: Likewise.
1237 * include/grub/i386/multiboot/time.h: Likewise.
1238 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
1239 * loader/multiboot.c: Likewise.
1240 * loader/multiboot_mbi2.c: Likewise.
1241 * util/grub-mkrescue.in: Generate multiboot rescue.
1243 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1245 * kern/parser.c (grub_parser_execute): Cope with read-only config.
1247 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1249 Merge handling of input and output terminals. Fix a hang.
1251 * commands/terminal.c (abstract_terminal): New struct.
1252 (handle_command): New function. Based on grub_cmd_terminal_input.
1253 (grub_cmd_terminal_input): Use handle_command.
1254 (grub_cmd_terminal_output): Use handle_command.
1256 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
1258 Fix comment handling.
1260 * tests/grub_script_comments.in: New testcase.
1261 * conf/tests.rmk: Rules for new testcase.
1262 * script/yylex.l: Updated flex rules.
1264 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1266 * docs/grub.texi (play): Document that zero pitches produce rests.
1267 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
1270 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1272 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
1275 2010-04-26 Christian Franke <franke@computer.org>
1277 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
1278 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
1279 (grub_get_prefix): Remove function.
1280 * util/grub-emu.c (main): Replace grub_get_prefix () call by
1281 make_system_path_relative_to_its_root ().
1282 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
1284 2010-04-24 Christian Franke <franke@computer.org>
1286 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
1287 (kernel_img_LDFLAGS): Remove -static-libgcc.
1289 2010-04-24 Christian Franke <franke@computer.org>
1291 * configure.ac: Do not CHECK_BSS_START_SYMBOL
1292 and CHECK_END_SYMBOL if grub-emu is built.
1293 Unset TARGET_OBJ2ELF if grub-emu is built
1294 without module support.
1296 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
1300 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
1301 (grub_fstest_SOURCES): Likewise.
1302 (pkglib_MODULES): Add nilfs2.mod.
1303 (nilfs2_mod_SOURCES): New variable.
1304 (nilfs2_mod_CFLAGS): Likewise.
1305 (nilfs2_mod_LDFLAGS): Likewise.
1306 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1307 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1308 * fs/nilfs2.c: New file.
1310 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1312 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
1315 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
1317 Add grub-mkconfig support for NetBSD.
1319 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
1320 * util/grub-mkconfig.in: export new NetBSD specific variables.
1321 * po/POTFILES-shell: added 10_netbsd.in.
1322 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
1324 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
1326 Fix emu build with grub-emu-pci and grub-emu-modules.
1328 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
1330 * include/grub/libpciaccess.h: New file.
1331 * conf/any-emu.rmk: Update kernel headers for emu build.
1333 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1335 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
1337 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1339 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
1341 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1343 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
1344 Retrieve chosen/bootpath if bootpath isn't hardcoded.
1345 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
1346 util/ieee1275/ofpath.c.
1347 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
1348 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
1349 * include/grub/sparc64/ieee1275/boot.h
1350 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
1351 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
1352 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
1353 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
1355 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
1356 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
1357 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
1360 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
1362 * util/grub-mkconfig.in: Corrected two == equality tests.
1363 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
1364 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
1365 expect a number appended to it.
1366 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
1367 expects a number appended to it.
1369 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1371 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
1373 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1375 * util/hostdisk.c (make_device_name): Change to new partition naming.
1377 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1379 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
1381 2010-04-17 Christian Franke <franke@computer.org>
1383 * Makefile.in: Add missing localedir setting.
1385 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
1387 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
1388 mistake in r2156. Noticed by Anthony Fok.
1390 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
1392 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
1394 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
1396 Fix a spurious, uninitialized variable warning.
1398 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
1399 Initialize variable, shdr.
1400 (grub_freebsd_load_elfmodule): Likewise.
1401 (grub_freebsd_load_elf_meta): Likewise.
1403 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
1405 Fix for escaped dollar in double quoted strings.
1407 * script/yylex.l: Updated flex rules.
1408 * conf/tests.rmk: Rule for new testcase.
1409 * tests/grub_script_dollar.in: New testcase.
1411 2010-04-13 Carles Pina i Estany <carles@pina.cat>
1412 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
1414 Enclose all translated strings in grub.cfg in single quotes, and
1415 escape them appropriately (Ubuntu bug #552921).
1417 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
1418 * util/grub.d/10_hurd.in: Use it.
1419 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
1420 * util/grub.d/10_linux.in (linux_entry): Likewise.
1422 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1424 Fix cygwin compilation.
1426 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
1427 * include/grub/misc.h (__register_frame_info)
1428 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
1429 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1430 * kern/misc.c (__register_frame_info)
1431 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
1432 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1434 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1436 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
1438 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1440 Unify libgcc processing.
1442 * Makefile.in (kernel_img_LDFLAGS): New variable.
1443 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
1444 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
1446 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
1447 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
1448 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
1449 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
1450 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
1451 overwriting. Remove -lgcc and -static-libgcc
1452 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
1453 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1454 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1455 (kernel_img_LDFLAGS): Append instead of overwriting.
1456 Remove -lgcc and -static-libgcc
1457 * conf/sparc64-ieee1275.rmk: Likewise.
1458 * include/grub/powerpc/libgcc.h: Move to ...
1459 * include/grub/libgcc.h: .. this.
1460 * include/grub/libgcc.h: Don't export most of the function on x86.
1461 (__bswapsi2): New export.
1462 (__bswapdi2): Likewise.
1463 * include/grub/mips/libgcc.h: Removed.
1464 * include/grub/sparc64/libgcc.h: Likewise.
1466 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1468 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
1469 disk_info_msg (conflicts with gettexting into languages with cases).
1471 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
1473 Add grub-probe support for NetBSD.
1475 * util/getroot.c (find_root_device): Convert block device to
1476 character device on NetBSD.
1477 * util/probe.c (probe): Require character device on NetBSD.
1478 * util/hostdisk.c: NetBSD specific headers.
1479 (configure_device_driver): new function to tune device driver
1480 parameters (currently only for NetBSD floppy driver).
1481 (grub_util_biosdisk_open): NetBSD specific code (get disk size
1482 via disklabel ioctl).
1483 (open_device): call configure_device_driver on NetBSD.
1484 (convert_system_partition_to_system_disk): NetBSD specific code.
1485 (device_is_wholedisk): Likewise.
1486 (grub_util_biosdisk_get_grub_dev): Likewise.
1487 (make_device_name): Fixed a typo in bsd_part_str.
1488 * configure.ac: check for opendisk() and getrawpartition() on
1489 NetBSD and set LIBUTIL.
1490 * Makefile.in: add LIBUTIL to LIBS.
1492 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
1496 * util/grub-script-check.c: Better help message.
1498 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
1502 * configure.ac: Flex version check.
1503 * conf/common.rmk: Add -Wno-error to sh.mod.
1504 * script/yylex.l: Remove all #pragma.
1506 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1508 * include/grub/util/misc.h (canonicalise_file_name): Add missing
1510 Reported by: Seth Goldberg.
1512 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1514 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
1515 Rename "module" to "module2".
1516 Reported by: Seth Goldberg.
1518 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1520 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
1522 Reported by: Seth Goldberg.
1524 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1526 * lib/posix_wrap/locale.h: Add missing file.
1527 Reported by: Seth Goldberg.
1529 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1531 grub-emu module load support.
1533 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
1534 NO_DYNAMIC_MODULES switched to this.
1535 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
1537 * conf/any-emu.rmk: Generate symlist.
1538 (kernel_img_HEADERS): Add util/datetime.h.
1539 (kernel_img_HEADERS) [sdl]: Add sdl.h.
1540 (kernel_img_HEADERS) [libusb]: Add libusb.h.
1541 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
1542 kern/$(target_cpu)/cache.S.
1543 * configure.ac (grub-emu-modules): New option.
1544 * genmk.rb: Handle multiple source lists.
1545 * include/grub/sdl.h: New file.
1546 * include/grub/libusb.h: Likewise.
1547 * util/grub-emu.c (main): Hanle (host) root.
1548 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
1549 GRUB_ERR_UNKNOWN_DEVICE.
1550 * util/misc.c: Move mm functions to ...
1551 * util/mm.c: ... here. All users updated.
1553 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1555 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
1556 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
1558 (maintainer-clean): Remove libgcrypt-grub.
1560 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1562 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
1564 2010-04-09 EFI Coder <eficoder@hotmail.com>
1566 * normal/menu_text.c (print_message): Clean up the message and show
1567 the Fn information when on EFI
1568 * term/efi/console.c (grub_console_checkkey): Add F4 support.
1570 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1572 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
1574 * normal/crypto.c (read_crypto_list): Likewise.
1575 * normal/dyncmd.c (read_command_list): Likewise.
1576 * normal/term.c (read_terminal_list): Likewise.
1577 * normal/main.c (read_lists): Use explicit prefix.
1578 (read_lists_hook): Use read_lists.
1579 (grub_normal_execute): Likewise.
1581 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1583 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
1584 Reported by: Thomas Schmitt.
1585 Add -no-emul-boot to grub-mkisofs parameters.
1587 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1589 * font/font.c: Indented.
1591 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
1593 Elif support to GRUB script (by Deepak Vankadaru).
1595 * tests/grub_script_if.in: New testcase.
1596 * conf/tests.rmk: Rule for new testcase.
1597 * script/parser.y: Grammar rules for elif.
1599 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
1601 While and until loops support to GRUB script.
1603 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
1604 (grub_script_create_cmdwhile): New function prototype.
1605 (grub_script_execute_cmdwhile): New function prototype.
1606 * script/execute.c (grub_script_execute_cmdwhile): New function.
1607 * script/parser.y (command): New commands.
1608 (whilecmd): New grammar rule.
1609 (untilcmd): New grammar rule.
1610 * script/script.c (grub_script_create_cmdwhile): New function.
1611 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
1614 * tests/grub_script_while1.in: New testcase.
1615 * conf/tests.rmk: Rule for new testcase.
1617 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1619 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
1622 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
1624 GRUB_BACKGROUND support.
1626 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
1627 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
1629 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1631 Load fonts and modules for gfxmenu in grub-mkconfig.
1632 Idea by: Mario Vazquez
1634 * util/grub.d/00_header.in: Load pf2 and image modules.
1636 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1638 grub-mkconfig multiple terminal support.
1640 * util/grub-mkconfig.in: Handle multiple terminals correctly.
1641 * util/grub.d/00_header.in: Likewise.
1643 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1645 * Makefile.in: Specify files explicitly instead of using $< and $@ since
1646 we use cd $(srcdir).
1648 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
1650 * util/grub.d/10_linux.in: Only use the first word of
1651 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
1652 spaces in GRUB_DISTRIBUTOR.
1653 * util/grub.d/10_kfreebsd.in: Likewise.
1654 * util/grub.d/10_hurd.in: Likewise.
1656 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
1658 Fix unit testing framework for Qemu 0.12.
1660 * tests/util/grub-shell.in: Remove -serial stdio option.
1662 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1664 POSIX header file wrappers.
1666 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
1668 * lib/posix_wrap/ctype.h: Likewise.
1669 * lib/posix_wrap/errno.h: Likewise.
1670 * lib/posix_wrap/langinfo.h: Likewise.
1671 * lib/posix_wrap/limits.h: Likewise.
1672 * lib/posix_wrap/localcharset.h: Likewise.
1673 * lib/posix_wrap/stdint.h: Likewise.
1674 * lib/posix_wrap/stdio.h: Likewise.
1675 * lib/posix_wrap/stdlib.h: Likewise.
1676 * lib/posix_wrap/string.h: Likewise.
1677 * lib/posix_wrap/sys/types.h: Likewise.
1678 * lib/posix_wrap/unistd.h: Likewise.
1679 * lib/posix_wrap/wchar.h: Likewise.
1680 * lib/posix_wrap/wctype.h: Likewise.
1681 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
1682 (grub_script.yy.h): Likewise.
1683 * script/yylex.l: Remove POSIX emulation #defines.
1684 * Makefile.in (POSIX_CFLAGS): New variable.
1685 (GNULIB_UTIL_CFLAGS): Likewise.
1689 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
1690 (regexp_mod_SOURCES): New variable.
1691 (regexp_mod_CFLAGS): Likewise.
1692 (regexp_mod_LDFLAGS): Likewise.
1693 * commands/regexp.c: New file.
1694 * gnulib/regcomp.c: New file. Imported from gnulib.
1695 * gnulib/regex.c: Likewise.
1696 * gnulib/regex_internal.c: Likewise.
1697 * gnulib/regex_internal.h: Likewise.
1698 * gnulib/regexec.c: Likewise.
1699 * gnulib/regex.h: Likewise.
1701 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1703 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
1704 unsupported video mode types.
1706 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1708 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
1710 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1712 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
1713 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
1715 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1717 Remove unused grub_vga_get_font.
1719 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
1720 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
1722 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1724 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
1725 * include/grub/misc.h: Likewise.
1727 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1729 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
1730 for which failure is fatal.
1732 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1734 * util/grub-install.in: Use mkdir -p to create grub directory.
1735 * util/i386/efi/grub-install.in: Likewise.
1736 * util/ieee1275/grub-install.in: Likewise.
1738 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1740 * Makefile.in (LEX): new variable.
1742 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1744 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
1745 `=' and added double quotes on operands of this equality test.
1747 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1749 * Makefile.in (uninstall): Remove a leftover debug echo.
1750 Reported by: Grégoire Sutre
1752 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1754 MIPS multiboot2 support.
1756 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
1757 (multiboot2_mod_SOURCES): New variable.
1758 (multiboot2_mod_CFLAGS): Likewise.
1759 (multiboot2_mod_LDFLAGS): Likewise.
1760 (multiboot2_mod_ASFLAGS): Likewise.
1761 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
1763 (MULTIBOOT_ENTRY_REGISTER): Likewise.
1764 (MULTIBOOT_MBI_REGISTER): Likewise.
1765 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
1766 (MULTIBOOT_ELF32_MACHINE): Likewise.
1767 (MULTIBOOT_ELF64_MACHINE): Likewise.
1768 * include/grub/mips/multiboot.h: New file.
1769 * include/grub/video.h (grub_video_driver_id): New type
1770 GRUB_VIDEO_DRIVER_SM712.
1771 (grub_video_get_info_and_fini): Export.
1772 (grub_video_get_palette): Likewise.
1773 (grub_video_get_driver_id): Likewise.
1774 * include/multiboot2.h: Resynced with spec.
1775 * loader/i386/multiboot.c: Moved from here ...
1776 * loader/multiboot.c: ... here. All users updated.
1777 (grub_multiboot_boot): Use platform-specific macros.
1778 * loader/i386/multiboot_elfxx.c: Moved from here ...
1779 * loader/multiboot_elfxx.c: ... here. All users updated.
1780 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
1781 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
1782 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
1784 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1786 Import gnulib argp module.
1788 * gnulib/argp-ba.c: New file.
1789 * gnulib/argp-eexst.c: Likewise.
1790 * gnulib/argp-fmtstream.c: Likewise.
1791 * gnulib/argp-fmtstream.h: Likewise.
1792 * gnulib/argp-fs-xinl.c: Likewise.
1793 * gnulib/argp-help.c: Likewise.
1794 * gnulib/argp-namefrob.h: Likewise.
1795 * gnulib/argp-parse.c: Likewise.
1796 * gnulib/argp-pin.c: Likewise.
1797 * gnulib/argp-pv.c: Likewise.
1798 * gnulib/argp-pvh.c: Likewise.
1799 * gnulib/argp-version-etc.c: Likewise.
1800 * gnulib/argp-version-etc.h: Likewise.
1801 * gnulib/argp-xinl.c: Likewise.
1802 * gnulib/argp.h: Likewise.
1804 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
1806 * kern/device.c (grub_device_iterate): Clear errors after failed
1809 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
1811 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
1812 returned by firmware.
1814 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1816 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
1817 compilation on coreboot and qemu
1819 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
1821 * include/multiboot2.h: Resync with spec.
1823 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
1825 Multiboot2 tag support
1827 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
1828 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
1829 Remove loader/multiboot_loader.c.
1830 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
1831 (grub_multiboot2_real_boot): Likewise.
1832 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
1833 (grub_get_multiboot_mmap_count): New proto.
1834 (grub_fill_multiboot_mmap): Likewise.
1835 (grub_multiboot_set_video_mode): Likewise.
1836 (grub_multiboot_set_console): Likewise.
1837 (grub_multiboot_load): Likewise.
1838 (grub_multiboot_load_elf): Likewise.
1839 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
1840 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
1841 * include/multiboot.h: Resynced with specification.
1842 * include/multiboot2.h: Resynced with specification.
1843 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
1844 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
1845 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
1846 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
1848 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
1849 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
1850 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
1852 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
1854 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
1855 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
1857 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
1858 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
1859 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
1861 * loader/i386/multiboot_mbi2.c: New file.
1863 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
1867 * Makefile.in (GNULIB_CFLAGS): New variable.
1868 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
1869 (grub_script_check_CFLAGS): New variable.
1870 * gnulib/alloca.h: Resync with gnulib.
1871 * gnulib/error.c: Likewise.
1872 * gnulib/error.h: Likewise.
1873 * gnulib/fnmatch.c: Likewise.
1874 * gnulib/fnmatch_loop.c: Likewise.
1875 * gnulib/getdelim.c: Likewise.
1876 * gnulib/getline.c: Likewise.
1877 * gnulib/getopt.c: Likewise.
1878 * gnulib/getopt1.c: Likewise.
1879 * gnulib/getopt_int.h: Likewise.
1880 * gnulib/gettext.h: Likewise.
1881 * gnulib/progname.c: Likewise.
1882 * gnulib/progname.h: Likewise.
1884 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
1886 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
1887 which is the case with --disabled-nls.
1889 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
1890 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
1891 * util/misc.c: Likewise.
1892 * util/mkisofs/mkisofs.c: Likewise.
1893 * util/mkisofs/mkisofs.h: Likewise.
1895 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
1897 Simplify Apple CC support.
1899 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
1900 Add 0 byte at the end not to have a symbol with empty target.
1901 * mmap/i386/pc/mmap_helper.S: Likewise.
1902 * genmk.rb: Ignore errors 2030 and 2050.
1903 * kern/i386/pc/startup.S: Use LOCAL when possible.
1905 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
1907 Testcase and the fix for final semicolon on cmdline.
1909 * tests/grub_script_final_semicolon.in: New testcase.
1910 * conf/tests.rmk: Rules for the new testcase.
1911 * script/parser.y: Grammar fix.
1913 2010-03-26 BVK Chaitanya <bvk@localhost>
1915 Blank lines testcase for GRUB script.
1917 * tests/grub_script_blanklines.in: New testcase.
1918 * conf/tests.rmk: Rules for the new testcase.
1920 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1924 * genmk.rb: Add -DGRUB_FILE to all C targets.
1925 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
1926 * include/grub/list.h: Likewise.
1927 * include/grub/misc.h: Likewise.
1928 * include/grub/mm.h: Likewise.
1929 * include/grub/test.h: Likewise.
1930 * kern/mm.c: Likewise.
1931 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
1933 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1935 Sunpc partitions support.
1937 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
1938 (grub_fstest_SOURCES): Likewise.
1939 (pkglib_MODULES): Add part_sunpc.mod.
1940 (part_sunpc_mod_SOURCES): New variable.
1941 (part_sunpc_mod_CFLAGS): Likewise.
1942 (part_sunpc_mod_LDFLAGS): Likewise.
1943 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
1944 * partmap/sunpc.c: New file.
1946 2010-03-26 BVK Chaitanya <bvk@localhost>
1948 For loop support to GRUB script.
1950 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
1951 (grub_script_create_cmdfor): New function prototype.
1952 (grub_script_execute_cmdfor): New function prototype.
1953 * script/execute.c (grub_script_execute_cmdfor): New function.
1954 * script/parser.y (command): New for command.
1955 (forcmd): New grammar rule.
1956 * script/script.c (grub_script_create_cmdfor): New function.
1957 * util/grub-script-check.c (grub_script_execute_cmdfor): New
1959 * tests/grub_script_for1.in: New testcase.
1960 * conf/tests.rmk: Rules for new testcase.
1962 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1966 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
1967 'partition' is NULL, grub_partition_get_start already does that.
1968 * commands/loadenv.c (check_blocklists): Likewise.
1969 (write_blocklists): Likewise.
1970 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
1971 (grub_fstest_SOURCES): Likewise.
1972 (pkglib_MODULES): Add part_bsd.mod.
1973 (part_bsd_mod_SOURCES): New variable.
1974 (part_bsd_mod_CFLAGS): Likewise.
1975 (part_bsd_mod_LDFLAGS): Likewise.
1976 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
1977 (grub_emu_SOURCES): Likewise.
1978 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1979 * include/grub/bsdlabel.h: New file.
1980 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
1982 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
1983 (grub_partition_map_list): New variable.
1984 (grub_partition_map_register): Inline.
1985 (grub_partition_map_unregister): Likewise.
1986 (FOR_PARTITION_MAPS): New macro.
1987 (grub_partition_map_iterate): Removed.
1988 (grub_partition_get_start): Handle nested partitions.
1989 * include/grub/msdos_partition.h: Remove bsd-related entries.
1990 (grub_pc_partition): Remove.
1991 * kern/disk.c (grub_disk_close): Free partition data.
1992 (grub_disk_adjust_range): Handle nested partitions.
1993 * kern/partition.c (grub_partition_map_probe): New function.
1994 (grub_partition_probe): Parse name to number, handle subpartitions.
1995 (get_partmap): New function.
1996 (grub_partition_iterate): Handle subpartitions.
1997 (grub_partition_get_name): Likewise.
1998 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
1999 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
2000 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
2001 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
2003 (acorn_partition_map_probe): Remove.
2004 (acorn_partition_map_get_name): Likewise.
2005 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
2007 Set 'index' to 0 since there can be only one partition entry per sector.
2008 (amiga_partition_map_probe): Remove.
2009 (amiga_partition_map_get_name): Likewise.
2010 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
2012 Set 'offset' and 'index' to real positions of partitions.
2013 (apple_partition_map_probe): Remove.
2014 (apple_partition_map_get_name): Likewise.
2015 * partmap/bsdlabel.c: New file.
2016 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
2018 Allocate 'data' so it can be correctly freed.
2019 Set 'index' to offset inside sector.
2020 (gpt_partition_map_probe): Remove.
2021 (gpt_partition_map_get_name): Likewise.
2022 * partmap/msdos.c (grub_partition_parse): Remove.
2023 (pc_partition_map_iterate): Don't force raw access.
2025 Make 'ext_offset' a local variable.
2026 (pc_partition_map_probe): Remove.
2027 (pc_partition_map_get_name): Remove.
2028 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
2030 (sun_partition_map_probe): Remove.
2031 (sun_partition_map_get_name): Likewise.
2032 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
2033 (grub_pcpart_type): Likewise.
2034 * util/hostdisk.c (open_device): Handle new numbering scheme.
2035 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
2036 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
2037 * util/grub-probe.c (probe_partmap): Handle nested paritions.
2038 * util/grub-install.in: Insert all subpartition modules.
2039 * util/ieee1275/grub-install.in: Likewise.
2041 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
2043 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
2046 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
2048 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
2050 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
2052 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
2053 match where 'make install' puts them.
2054 * util/i386/efi/grub-install.in: Likewise.
2056 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
2058 * .bzrignore: Add gentrigtables, grub-script-check,
2059 grub_script_check_init.c, grub_script_check_init.h, and
2062 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
2064 * kern/parser.c: Indented.
2066 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2068 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
2070 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2072 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
2073 alpha_mask_size == 0 case.
2075 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
2077 GRUB shell lexer and parser improvements.
2079 * conf/any-emu.rmk: Build rule updates.
2080 * conf/common.rmk: Likewise.
2081 * conf/i386-coreboot.rmk: Likewise.
2082 * conf/i386-efi.rmk: Likewise.
2083 * conf/i386-ieee1275.rmk: Likewise.
2084 * conf/i386-pc.rmk: Likewise.
2085 * conf/powerpc-ieee1275.rmk: Likewise.
2086 * conf/x86_64-efi.rmk: Likewise.
2088 * configure.ac: Configure check for flex.
2090 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
2092 (grub_lexer_param): Struct member updates.
2093 (grub_parser_param): Likewise.
2094 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
2095 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
2096 (grub_script_lexer_init): Prototype update.
2097 (grub_script_lexer_record_start): Likewise.
2098 (grub_script_lexer_record_stop): Likewise.
2099 (grub_script_lexer_yywrap): New function prototype.
2100 (grub_script_lexer_fini): Likewise.
2101 (grub_script_execute_argument_to_string): Removed by...
2102 (grub_script_execute_argument_to_argv): ...better version.
2104 * script/execute.c (ROUND_UPTO): New macro.
2105 (grub_script_execute_cmdline): Out of memory fixes.
2106 (grub_script_execute_menuentry): Likewise.
2107 (grub_script_execute_argument_to_string): Removed. Update all
2109 (grub_script_execute_argument_to_argv): ...better version.
2110 * script/function.c (grub_script_function_create): Use
2111 grub_script_execute_argument_to_argv instead of
2112 grub_script_execute_argument_to_string.
2114 * script/lexer.c (check_varstate): Removed.
2115 (check_textstate): Removed.
2116 (grub_script_lexer_record_start): Likewise.
2117 (grub_script_lexer_record_stop): Likewise.
2118 (recordchar): Replaced with...
2119 (grub_script_lexer_record): ...new function.
2120 (nextchar): Removed.
2121 (grub_script_lexer_init): Rewritten.
2122 (grub_script_yylex): Rewritten.
2123 (append_newline): New function.
2124 (grub_script_lexer_yywrap): New function.
2125 (grub_script_lexer_fini): New function.
2126 (grub_script_yyerror): Sets error flag.
2128 * script/yylex.l: New file.
2129 (grub_lexer_yyfree): Wrapper for flex yyffre.
2130 (grub_lexer_yyalloc): Likewise.
2131 (grub_lexer_yyrealloc): Likewise.
2132 * script/parser.y: Refactored.
2134 * script/script.c (grub_script_arg_add): Out of memory fixes.
2135 (grub_script_add_arglist): Likewise.
2136 (grub_script_create_cmdline): Likewise.
2137 (grub_script_create_cmdmenu): Likewise.
2138 (grub_script_add_cmd): Likewise.
2139 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
2140 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
2143 * tests/grub_script_echo1.in: New testcase.
2144 * tests/grub_script_vars1.in: New testcase.
2145 * tests/grub_script_echo_keywords.in: New testcase.
2147 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2149 Remove some redundancy in build system.
2151 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
2152 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
2153 (TARGET_LDFLAGS): Add -nostdlib.
2154 (TARGET_IMG_LDFLAGS): Likewise.
2155 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
2156 anything since mmap isn't available.
2157 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
2159 (pkglib_MODULES): Remove reboot.mod.
2160 (reboot_mod_SOURCES): Removed.
2161 (reboot_mod_CFLAGS): Likewise.
2162 (reboot_mod_LDFLAGS): Likewise.
2163 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
2164 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
2165 (DEFSYMFILES): Add kernel_syms.lst.
2166 (kernel_img_HEADERS): Add common headers.
2167 (symlist.c): New target.
2168 (kernel_syms.lst): Likewise.
2169 (pkglib_MODULES): Add memdisk.mod.
2170 (memdisk_mod_SOURCES): New variable.
2171 (memdisk_mod_CFLAGS): Likewise.
2172 (memdisk_mod_LDFLAGS): Likewise.
2173 (pkglib_MODULES): Add reboot.mod.
2174 (reboot_mod_SOURCES): New variable.
2175 (reboot_mod_CFLAGS): Likewise.
2176 (reboot_mod_LDFLAGS): Likewise.
2177 (pkglib_MODULES): Add date.mod.
2178 (date_mod_SOURCES): New variable.
2179 (date_mod_CFLAGS): Likewise.
2180 (date_mod_LDFLAGS): Likewise.
2181 (pkglib_MODULES): Add datehook.mod.
2182 (datehook_mod_SOURCES): New variable.
2183 (datehook_mod_CFLAGS): Likewise.
2184 (datehook_mod_LDFLAGS): Likewise.
2185 (pkglib_MODULES): Add lsmmap.mod.
2186 (lsmmap_mod_SOURCES): New variable.
2187 (lsmmap_mod_CFLAGS): Likewise.
2188 (lsmmap_mod_LDFLAGS): Likewise.
2189 (pkglib_MODULES): Add boot.mod.
2190 (boot_mod_SOURCES): New variable.
2191 (boot_mod_CFLAGS): Likewise.
2192 (boot_mod_LDFLAGS): Likewise.
2193 * conf/i386-coreboot.rmk: Removed redundant parts.
2194 * conf/i386-ieee1275.rmk: Likewise.
2195 * conf/i386-pc.rmk: Likewise.
2196 * conf/mips-yeeloong.rmk: Likewise.
2197 * conf/mips.rmk: Likewise.
2198 * conf/powerpc-ieee1275.rmk: Likewise.
2199 * conf/sparc64-ieee1275.rmk: Likewise.
2200 * conf/x86_64-efi.rmk: Likewise.
2201 * conf/i386-coreboot.rmk: Moved qemu parts ..
2202 * conf/i386-qemu.rmk: ... here
2203 * conf/i386-efi.rmk: Moved common parts to...
2204 * conf/x86-efi.rmk: ... here.
2205 * conf/i386.rmk: Added modules common to all x86 variants.
2206 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
2207 * disk/memdisk.c: Remove grub/machine/kernel.h.
2208 * gensymlist.sh.in: Include symbol.h.
2209 * hook/datehook.c: Correct module name.
2210 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
2211 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
2212 * include/grub/i386/efi/serial.h: New file.
2213 * include/grub/x86_64/efi/serial.h: Likewise.
2214 * util/time.c: Likewise.
2215 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
2217 2010-03-14 Colin King <colin.king@ubuntu.com>
2218 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2220 Shrink the pre-partition-table part of boot.img by eight bytes.
2222 * boot/i386/pc/boot.S (ERR): New macro.
2223 (chs_mode): Use ERR.
2224 (geometry_error): Likewise.
2225 (hd_probe_error): Remove. This is only used once, so we wrwite
2227 (read_error): Instead of printing read_error_string, just set up
2228 %si and fall through to ...
2229 (error_message): ... this new function, also used by ERR.
2231 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2233 Speed up consecutive hostdisk operations on the same device.
2235 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
2236 (grub_util_biosdisk_open): Initialise disk->data.
2237 (struct linux_partition_cache): New structure.
2238 (linux_find_partition): Cache partition start positions; these are
2239 expensive to compute on every read and write.
2240 (open_device): Cache open file descriptor in disk->data, so that we
2241 don't have to reopen it and flush the buffer cache for consecutive
2242 operations on the same device.
2243 (grub_util_biosdisk_close): New function.
2244 (grub_util_biosdisk_dev): Set `close' member.
2246 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
2247 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
2248 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
2249 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
2250 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
2252 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2254 Compile parts of grub-emu as modules.
2256 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
2257 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
2258 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
2259 (all-local): Add $(GRUB_EMU).
2260 (install-local): Install $(GRUB_EMU).
2261 (uninstall): Uninstall $(GRUB_EMU).
2262 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
2263 * kern/dl.c: Likewise.
2264 * commands/sleep.c: Not include machine/time.h.
2265 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
2266 (COMMON_CFLAGS): Likewise.
2267 (sbin_UTILITIES): Remove grub-emu.
2268 (grub_emu_SOURCES): Removed.
2269 (kernel_img_RELOCATABLE): New variable.
2270 (pkglib_PROGRAMS): Add kernel.img.
2271 (kernel_img_SOURCES): New variable
2272 (kernel_img_CFLAGS): Likewise.
2273 (kernel_img_LDFLAGS): Likewise.
2274 (TARGET_NO_STRIP): Likewise.
2275 (TARGET_NO_DYNAMIC_MODULES): Likewise.
2276 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
2277 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
2278 (grub-emu): New target.
2279 (GRUB_EMU): New variable.
2280 * configure.ac: Whitelist -emu as possible x86_64 architecture.
2281 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
2282 * loader/xnu.c: Likewise.
2283 * include/grub/pci.h: Likewise.
2284 * genemuinit.sh: New file.
2285 * genemuinitheader.sh: Likewise.
2286 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
2287 Support TARGET_NO_DYNAMIC_MODULES.
2288 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
2289 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
2290 * disk/loopback.c: Likewise.
2291 * font/font_cmd.c: Likewise.
2292 * partmap/acorn.c: Likewise.
2293 * partmap/amiga.c: Likewise.
2294 * partmap/apple.c: Likewise.
2295 * partmap/gpt.c: Likewise.
2296 * partmap/msdos.c: Likewise.
2297 * partmap/sun.c: Likewise.
2298 * parttool/msdospart.c: Likewise.
2299 * term/gfxterm.c: Likewise.
2300 * video/bitmap.c: Likewise.
2301 * video/readers/jpeg.c: Likewise.
2302 * video/readers/png.c: Likewise.
2303 * video/readers/tga.c: Likewise.
2304 * video/video.c: Likewise.
2305 * util/grub-emu.c (read_command_list): Removed.
2306 (main): Don't call util_init_nls.
2307 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
2308 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
2310 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2312 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
2313 date.mod, datehook.mod.
2314 (datetime_mod_SOURCES): New variable.
2315 (datetime_mod_CFLAGS): Likewise.
2316 (datetime_mod_LDFLAGS): Likewise.
2317 (date_mod_SOURCES): Likewise.
2318 (date_mod_CFLAGS): Likewise.
2319 (date_mod_LDFLAGS): Likewise.
2320 (datehook_mod_SOURCES): Likewise.
2321 (datehook_mod_CFLAGS): Likewise.
2322 (datehook_mod_LDFLAGS): Likewise.
2323 * conf/sparc64-ieee1275.rmk: Likewise.
2324 * lib/ieee1275/datetime.c: New file.
2326 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2328 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
2329 (ieee1275_fb_mod_SOURCES): New variable.
2330 (ieee1275_fb_mod_CFLAGS): Likewise.
2331 (ieee1275_fb_mod_LDFLAGS): Likewise.
2332 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
2334 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
2335 (HEAP_MAX_ADDR): Likewise.
2336 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
2338 Correct stop condition.
2339 (grub_ieee1275_devices_iterate): New function.
2340 * video/ieee1275.c: New file.
2342 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2344 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
2346 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
2348 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
2349 SCRATCH_PAD_DISKBOOT as scratch.
2350 (bootit): Pass Openfirmware pointer in %o4.
2351 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
2353 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
2354 with util/grub-mkrawimage.c.
2355 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
2356 * include/grub/aout.h (AOUT_MID_SUN): New definition.
2357 (grub_aout_get_type) [GRUB_UTIL]: Removed.
2358 (grub_aout_load) [GRUB_UTIL]: Likewise.
2359 * include/grub/kernel.h (grub_modules_get_end): New proto.
2360 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
2361 (SCRATCH_PAD_BOOT): New definition.
2362 (SCRATCH_PAD_DISKBOOT): Likewise.
2363 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
2364 * include/grub/sparc64/ieee1275/ieee1275.h
2365 (grub_ieee1275_original_stack): New variable
2366 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
2368 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
2369 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
2370 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
2371 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
2372 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
2373 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
2374 (grub_platform_image_format_t): New type.
2375 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
2376 * kern/main.c (grub_modules_get_end)
2377 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
2378 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
2379 (codestart): Switch stacks.
2380 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
2382 (grub_heap_init): Use grub_modules_get_end.
2383 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
2385 * util/grub-mkrawimage.c (generate_image): Support sparc64.
2387 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
2389 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
2391 * util/grub-mkrescue.in: Base ISO UUID on UTC.
2393 2010-03-08 Matt Kraai <kraai@ftbfs.org>
2395 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
2398 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2400 * genmoddep.awk: Output all missing symbols and not only first.
2402 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2404 * NEWS: Put the date of 1.98 release.
2406 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2408 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
2411 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2413 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
2414 completition in the middle of string.
2416 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2418 * util/grub-mkrescue.in: Use mktemp with explicit template.
2420 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2422 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
2424 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2426 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
2429 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2431 Fix FreeBSD compilation.
2433 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
2434 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
2436 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2438 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
2440 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2442 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
2444 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2446 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
2448 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
2450 Support relative image path in theme file.
2452 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
2453 (image_set_property): Handle theme_dir and relative path.
2455 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2457 * configure.ac: Alias amd64 to x86_64.
2459 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2461 * NEWS: mention multiboot on EFI.
2463 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2465 * kern/main.c (grub_load_modules): Handle errors from init functions of
2468 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2470 * normal/autofs.c (autoload_fs_module): Handle errors.
2472 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2474 Disable linux.mod on qemu-mips since it's not functional and leads
2475 to compilation failure.
2477 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
2478 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
2479 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
2480 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
2481 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
2482 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
2483 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
2484 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
2485 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
2486 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
2487 Reported by: BVK Chaitanya
2489 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
2491 * INSTALL: Add gettext as a dependency and add qemu to a new section
2492 "Prerequisites for make-check".
2494 2010-03-04 Christian Franke <franke@computer.org>
2496 * util/grub-pe2elf.c: Add missing include "progname.h".
2498 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2500 * normal/crypto.c (read_crypto_list): Fix a typo.
2501 Reported by: Seth Goldberg.
2503 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2505 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
2506 Reported by: Seth Goldberg.
2508 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2510 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
2513 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2515 * genmk.rb: Remove terminal*.lst in make clean.
2516 Reported by: Seth Goldberg.
2518 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2520 * util/i386/efi/grub-install.in: Copy gettext files.
2522 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2524 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
2526 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2528 Wait for user entry basing on presence of output rather than on errors.
2530 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
2531 (grub_install_newline_hook): Likewise.
2532 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
2533 * normal/menu.c (show_menu): Check line_counter to determine presence
2535 * normal/term.c (grub_normal_line_counter): New variable.
2536 (grub_normal_get_line_counter): New function.
2537 (grub_install_newline_hook): Likewise.
2539 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2541 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
2543 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2545 * configure.ac: Update version to 1.98.
2547 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
2549 * util/grub.d/10_linux.in (linux_entry): Don't default to
2550 gfxpayload=keep if Linux doesn't support video handover.
2552 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
2554 Don't compile video modules on yeeloong since video subsystem is part
2557 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
2558 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
2559 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
2560 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
2561 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
2562 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
2563 * include/grub/bitmap_scale.h: Likewise.
2564 * include/grub/bufio.h: Likewise.
2565 * include/grub/font.h: Likewise.
2566 * include/grub/gfxterm.h: Likewise.
2567 * include/grub/video.h: Likewise.
2568 * include/grub/vbe.h: Don't include video_fb.h.
2569 * video/i386/pc/vbe.c: Include video_fb.h.
2570 * commands/i386/pc/vbetest.c: Include video.h.
2572 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
2574 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
2575 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
2576 default entry if GRUB_SAVEDEFAULT=true. This allows using
2577 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
2578 saving a new default on every boot.
2580 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2582 * normal/crypto.c (read_crypto_list): Fix a memory leak.
2583 * normal/term.c (read_terminal_list): Likewise.
2584 * normal/main.c (grub_normal_init_page): Likewise.
2585 (grub_normal_read_line_real): Likewise.
2587 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2589 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
2591 Reported by: Seth Goldberg.
2593 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
2595 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
2596 duplicate declaration of `start'.
2598 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2600 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
2602 Reported by: Georgy Buranov
2604 2010-02-20 Carles Pina i Estany <carles@pina.cat>
2606 * util/grub-mkrawimage.c (usage): Change string formatting to
2609 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
2611 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
2614 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2616 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
2617 Reported by: Michael Suchanek.
2619 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2621 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
2622 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
2624 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
2626 Remove any reference to non-free fonts.
2628 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
2629 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
2630 uses non-free components.
2631 * font/font.c (grub_font_get_name): Remove example name.
2632 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
2633 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
2634 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
2635 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
2637 2010-02-16 Georgy Buranov <gburanov@gmail.com>
2639 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
2641 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
2643 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
2645 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
2647 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
2649 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
2651 * gensymlist.sh.in: Use TARGET_CC instead of CC.
2653 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2655 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
2656 * docs/grub.texi (Command-line and menu entry commands): Document play
2659 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2661 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
2662 parse arguments as inline tempo and notes. Move code for playing notes
2664 (play): ... new function.
2666 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2668 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
2669 grub_uint16_t instead of short.
2670 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
2671 disk from little endian to cpu endianness.
2673 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
2675 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
2676 GRUB_TICKS_PER_SECOND instead of 120.
2678 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2680 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
2681 escape sequence after \e.
2683 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2685 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
2686 non-ASCII characters.
2688 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2690 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
2691 set root in single quotes to prevent \, from being unescaped.
2693 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2695 Prevent unknown commands from stopping menuentry execution.
2697 * script/execute.c (grub_script_execute_cmdline): Print error after
2700 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2702 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
2703 Reported by: Pavel Pisa.
2705 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2707 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
2709 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2711 Merge grub_ieee1275_map_physical into grub_map and rename to
2714 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
2715 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
2717 * kern/ieee1275/openfw.c (grub_map): Rename to ...
2718 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
2720 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
2722 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2724 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
2725 opening and not after.
2727 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2729 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
2732 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2734 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
2735 (alloc_phys): Use ALIGN_UP instead of align_addr.
2737 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2739 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
2741 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2743 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
2745 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2747 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
2750 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2752 Fix over-4GiB seek on sparc64.
2754 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
2755 Replace pos_i and pos_lo with pos. All users updated.
2756 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
2758 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
2760 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
2763 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2765 * util/grub-mkrawimage.c (main): Call set_program_name.
2767 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2769 Properly align 64-bit targets.
2771 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
2772 (generate_image): Use ALIGN_ADDR.
2774 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2776 Properly create cross-endian images.
2778 * include/grub/types.h (grub_host_to_target_addr): New macro
2779 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
2781 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2783 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
2785 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2787 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
2789 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
2790 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
2791 (grub_linux_boot): Divide by 64K when on VESA.
2793 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2795 Support GRUB_GFXPAYLOAD_LINUX.
2797 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
2798 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
2800 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2802 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
2803 to show messages instead of discarding them.
2804 Process errors after executing command and not before. Keep old method
2807 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2809 * configure.ac: Check for ft2build.h.
2811 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2813 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
2815 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2817 * genkernsyms.sh.in: Use TARGET_CC.
2819 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
2823 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2825 * include/grub/multiboot2.h: Remove leftover file.
2826 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
2827 * include/grub/partition.h [GRUB_UTIL]: Likewise.
2829 2010-02-07 Yves Blusseau <blusseau@zetam.org>
2831 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
2833 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2835 Fix warnings in grub-emu when compiling with maximum warning options.
2837 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
2838 (grub_arch_modules_addr): Return 0 and not NULL.
2839 * util/misc.c (ENABLE_RELOCATABLE): New definition.
2840 (xstrdup): Use newstr instead of dup.
2841 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
2842 of disk to dsk to avoid shadowing.
2843 (find_free_slot): Fix prototype.
2844 * util/getroot.c (grub_util_is_dmraid): Make static.
2845 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
2846 Add missing prototype.
2847 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
2849 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2851 * loader/i386/linux.c (grub_linux_setup_video): Handle error
2854 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2856 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
2859 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2861 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
2862 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
2863 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
2864 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
2865 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
2866 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
2868 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2870 * include/grub/err.h (grub_err_printf): Don't export.
2872 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2874 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
2876 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2878 * include/grub/i18n.h (grub_gettext_dummy): Removed.
2879 * kern/misc.c (grub_gettext_dummy): Make static.
2881 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2883 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
2885 * kern/term.c (grub_putchar): Likewise.
2887 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2889 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
2890 buggy hook call and memory leak.
2892 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2894 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
2896 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2898 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
2900 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2902 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
2904 Return grub_errno on allocation error.
2906 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2908 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
2910 2010-02-06 Yves Blusseau <blusseau@zetam.org>
2912 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
2913 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
2915 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2917 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
2919 (grub_pxefs_open): Likewise.
2921 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
2923 * util/grub.d/10_hurd.in: Add --class information to menuentries.
2924 * util/grub.d/10_kfreebsd.in: Likewise.
2925 * util/grub.d/10_linux.in: Likewise.
2927 2010-02-06 Colin D Bennett <colin@gibibit.com>
2929 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
2930 (gfxmenu_mod_SOURCES): New variable.
2931 (gfxmenu_mod_CFLAGS): Likewise.
2932 (gfxmenu_mod_LDFLAGS): Likewise.
2933 * include/grub/term.h (grub_term_set_current_output): Declare
2935 * docs/gfxmenu-theme-example.txt: New file.
2936 * gfxmenu/gfxmenu.c: Likewise.
2937 * gfxmenu/gui_box.c: Likewise.
2938 * gfxmenu/gui_canvas.c: Likewise.
2939 * gfxmenu/gui_circular_progress.c: Likewise.
2940 * gfxmenu/gui_image.c: Likewise.
2941 * gfxmenu/gui_label.c: Likewise.
2942 * gfxmenu/gui_list.c: Likewise.
2943 * gfxmenu/gui_progress_bar.c: Likewise.
2944 * gfxmenu/gui_string_util.c: Likewise.
2945 * gfxmenu/gui_util.c: Likewise.
2946 * gfxmenu/icon_manager.c: Likewise.
2947 * gfxmenu/model.c: Likewise.
2948 * gfxmenu/named_colors.c: Likewise.
2949 * gfxmenu/theme_loader.c: Likewise.
2950 * gfxmenu/view.c: Likewise.
2951 * gfxmenu/widget-box.c: Likewise.
2952 * include/grub/gfxmenu_model.h: Likewise.
2953 * include/grub/gfxmenu_view.h: Likewise.
2954 * include/grub/gfxwidgets.h: Likewise.
2955 * include/grub/gui.h: Likewise.
2956 * include/grub/gui_string_util.h: Likewise.
2957 * include/grub/icon_manager.h: Likewise.
2959 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2961 Agglomerate scrolling in gfxterm.
2963 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
2964 (grub_virtual_screen_setup): Initialise 'total_screen'.
2965 (write_char): Split to ...
2966 (paint_char): ... this ...
2967 (write_char): ... and this.
2968 (paint_char): Handle delayed scrolling.
2969 (draw_cursor): Likewise.
2970 (scroll_up): Split to ...
2971 (real_scroll): ... this ...
2972 (scroll_up): ... and this.
2973 (real_scroll): Handle multi-line scroll and draw below-the-bottom
2975 (grub_gfxterm_refresh): Call real_scroll.
2977 2010-02-06 Colin D Bennett <colin@gibibit.com>
2979 * include/grub/misc.h (grub_iscntrl): New inline function.
2980 (grub_isalnum): Likewise.
2981 (grub_strtol): Likewise.
2983 2010-02-06 Colin D Bennett <colin@gibibit.com>
2985 * normal/menu_text.c (get_entry_number): Move from here ...
2986 * normal/menu.c (get_entry_number): ... moved here.
2987 * include/grub/menu.h (grub_menu_get_default_entry_index):
2989 * normal/menu.c (grub_menu_get_default_entry_index): New function.
2990 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
2991 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
2992 (grub_menu_viewer_should_return): Likewise.
2993 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
2994 * normal/menu_text.c (run_menu): Enable menu switching.
2995 * normal/menu_viewer.c (should_return): New variable.
2996 (menu_viewer_changed): Likewise.
2997 (grub_menu_viewer_show_menu): Handle menu viewer changes.
2998 (grub_menu_viewer_should_return): New function.
2999 (menuviewer_write_hook): Likewise.
3000 (grub_menu_viewer_init): Likewise.
3002 2010-02-06 Colin D Bennet <colin@gibibit.com>
3003 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3005 Support for gfxterm in a window.
3007 * include/grub/gfxterm.h: New file.
3008 * include/grub/video.h (struct grub_video_rect): New declaration.
3009 (grub_video_rect_t): Likewise.
3010 * term/gfxterm.c (struct grub_gfxterm_window): New type.
3011 (refcount): New variable.
3012 (render_target): Likewise.
3014 (repaint_callback): Likewise.
3015 (grub_virtual_screen_setup): Use 'render_target'.
3016 (init_window): New function.
3017 (grub_gfxterm_init_window): Likewise.
3018 (grub_gfxterm_init): Check reference counter.
3020 (destroy_window): New function.
3021 (grub_gfxterm_destroy_window): Likewise.
3022 (grub_gfxterm_fini): Check reference counter.
3024 (redraw_screen_rect): Restore viewport.
3025 Use 'render_target' and 'window'.
3026 Call 'repaint_callback'.
3027 (write_char): Use 'render_target'.
3028 (draw_cursor): Likewise.
3029 (scroll_up): Restore viewport.
3030 Use 'render_target' and 'window'.
3031 Call 'repaint_callback'.
3032 (grub_gfxterm_cls): Likewise.
3033 (grub_gfxterm_refresh): Use 'window'.
3034 (grub_gfxterm_set_repaint_callback): New function.
3035 (grub_gfxterm_background_image_cmd): Use 'window'.
3036 (grub_gfxterm_get_term): New function.
3037 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
3039 2010-02-06 Colin D Bennett <colin@gibibit.com>
3041 Bitmap scaling support.
3043 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
3044 (bitmap_scale_mod_SOURCES): New variable.
3045 (bitmap_scale_mod_CFLAGS): Likewise.
3046 (bitmap_scale_mod_LDFLAGS): Likewise.
3047 * include/grub/bitmap_scale.h: New file.
3048 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
3049 (background_image_cmd_options): New variable.
3050 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
3051 (cmd): Rename and change type to ...
3052 (background_image_cmd_handle): ... this. All users updated.
3053 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
3054 * video/bitmap_scale.c: New file.
3056 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3060 * Makefile.in (LIBSDL): New variable.
3061 (enable_grub_emu_sdl): Likewise.
3062 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
3063 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
3064 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
3065 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
3066 * util/sdl.c: New file.
3068 2010-02-06 Colin D Bennett <colin@gibibit.com>
3069 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3071 Double buffering support.
3073 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
3074 * include/grub/video.h: Update comment.
3075 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
3077 (grub_video_fb_doublebuf_blit_init): New prototype.
3078 * term/gfxterm.c (scroll_up): Support double buffering.
3079 (grub_gfxterm_refresh): Likewise.
3080 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
3081 (grub_video_fb_doublebuf_blit_init): Likewise.
3082 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
3083 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
3084 'displayed_page', 'render_page' and 'update_screen'.
3085 (grub_video_vbe_fini): Free offscreen buffer.
3086 (doublebuf_pageflipping_commit): New function.
3087 (doublebuf_pageflipping_update_screen): Likewise.
3088 (doublebuf_pageflipping_init): Likewise.
3089 (double_buffering_init): Likewise.
3090 (grub_video_vbe_setup): Enable doublebuffering.
3091 (grub_video_vbe_swap_buffers): Implement.
3092 (grub_video_vbe_set_active_render_target): Handle double buffering.
3093 (grub_video_vbe_get_active_render_target): Likewise.
3094 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
3095 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
3096 (grub_video_vbe_enable_double_buffering): Likewise.
3097 (grub_video_vbe_swap_buffers): Use update_screen.
3098 (grub_video_set_mode): Use double buffering.
3100 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3102 * maintainance/gentrigtables.py: Remove.
3103 * lib/trig.c: Likewise.
3105 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
3107 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
3109 (trigtables.c): New rule.
3110 (gentrigtables): Likewise.
3111 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
3113 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3115 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
3118 2010-02-06 Colin D Bennet <colin@gibibit.com>
3120 Trigonometry support.
3122 * include/grub/trig.h: New file.
3123 * lib/trig.c: Likewise.
3124 * maintainance/gentrigtables.py: Likewise.
3125 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
3126 (trig_mod_SOURCES): New variable.
3127 (trig_mod_CFLAGS): Likewise.
3128 (trig_mod_LDFLAGS): Likewise.
3130 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3132 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
3135 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3137 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
3140 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3142 * util/hostdisk.c (open_device): Don't use partition device when reading
3143 before the partition.
3144 (grub_util_biosdisk_read): Don't read from partition and before the
3145 partition in single operation.
3146 (grub_util_biosdisk_write): Don't write to partition and before the
3147 partition in single operation.
3149 2010-02-03 Torsten Landschoff <torsten@debian.org>
3151 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3154 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3156 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
3158 (grub_biosdisk_write): Refuse to write to CDROM.
3160 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3162 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
3164 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3166 * font/font.c (find_glyph): Check that bmp_idx is available before
3168 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
3169 with (font == NULL).
3171 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
3173 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
3175 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
3177 * include/grub/script_sh.h (sourcecode): Add const qualifier.
3178 * util/grub-script-check.c (getline): Fix empty lines case.
3180 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
3182 * Makefile.in (check): Exit with fail status when one of the tests
3184 * tests/example_functional_test.c (example_test): Fix reversed assert.
3185 * tests/example_unit_test.c (example_test): Likewise.
3187 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
3189 * util/grub.d/10_linux.in: This script does not use any of the
3190 contents of gettext.sh, only the external command `gettext', so stop
3191 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
3192 the same prefix as GRUB.)
3193 * util/grub.d/10_kfreebsd.in: Likewise.
3195 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3197 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
3200 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3202 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3205 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3207 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
3208 having a 4KiB and not 32KiB buffer size.
3210 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3212 * util/hostfs.c: Include `<errno.h>'.
3213 (grub_hostfs_read): Handle errors from fseeko() and fread().
3215 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3217 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
3218 loop when using read hooks on files whose size isn't sector-aligned.
3220 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3222 Remove unused parameter.
3224 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
3225 (grub_iso9660_open): Remove initialization of `data->length'.
3227 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3229 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
3232 2010-01-27 Carles Pina i Estany <carles@pina.cat>
3234 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
3235 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
3237 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3239 * util/bin2h.c (usage): Fix warning (space after backslash).
3241 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3243 * font/font.c: Include `grub/fontformat.h.
3244 Remove font file format constants.
3245 (grub_font_load): Use the new macros.
3246 * include/grub/fontformat.h: New file.
3247 * util/grub-mkfont.c: Include `grub/fontformat.c'.
3248 (write_font_pf2): Use the new macros.
3250 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3252 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
3255 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3257 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
3259 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
3260 (_start): Macroify `0x7F'.
3262 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
3263 (make_install_device): Use "(pxe)" as fallback prefix when booting
3266 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
3268 * configure.ac: Reset LIBS after check for libgcc symbols.
3270 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
3272 * util/hostdisk.c (open_device): Add trailing newline to debug
3275 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
3277 * configure.ac: Check for `limits.h'.
3278 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
3280 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
3282 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
3283 capitalize error strings.
3285 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3287 * util/grub.d/10_hurd.in: Add a recovery mode.
3289 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
3291 * configure.ac: Check for libgcc symbols with -nostdlib.
3293 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
3295 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
3297 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3299 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
3300 stack since heap may be unavailable at that point.
3301 (grub_ofconsole_gotoxy): Likewise.
3303 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3305 * configure.ac: Check for _restgpr_14_x.
3306 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
3307 and _savegpr_* prototypes.
3309 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
3311 Use generic grub_reboot() for i386-efi.
3313 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
3314 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
3315 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
3317 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3319 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
3320 presence of "prefix" variable as it breaks when normal.mod is
3323 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3325 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
3326 stack since heap is unavailable at that point.
3328 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3330 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
3331 (grub_freebsd_bootinfo): Rewritten.
3332 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
3334 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3336 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
3338 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
3340 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
3343 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
3345 * util/misc.c (make_system_path_relative_to_its_root): Change the work
3346 around for handling "/" to the correct fix. Fix a memory leak. Use
3347 xstrdup instead of strdup.
3349 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3351 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
3353 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3355 Optimise glyph lookup by Basic Multilingual Plane lookup array.
3357 * font/font.c (struct grub_font): New member 'bmp_idx'.
3358 (font_init): Initialise 'bmp_idx'.
3359 (load_font_index): Fill 'bmp_idx'.
3360 (find_glyph): Make inline. Use bmp_idx for BMP characters.
3362 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3364 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
3367 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3369 Move context handling out of the kernel.
3371 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
3372 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
3373 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
3374 * conf/i386-efi.rmk: Likewise.
3375 * conf/i386-ieee1275.rmk: Likewise.
3376 * conf/i386-pc.rmk: Likewise.
3377 * conf/powerpc-ieee1275.rmk: Likewise.
3378 * conf/sparc64-ieee1275.rmk: Likewise.
3379 * conf/x86_64-efi.rmk: Likewise.
3380 * include/grub/env.h: Include grub/menu.h.
3381 (grub_env_var_type): Removed.
3382 (grub_env_var): Replaced field 'type' with 'global'.
3383 (grub_env_find): New prototype.
3384 (grub_env_context_open): Remove EXPORT_FUNC.
3385 (grub_env_context_close): Likewise.
3386 (grub_env_export): Likewise.
3387 (grub_env_set_data_slot): Removed.
3388 (grub_env_get_data_slot): Likewise.
3389 (grub_env_unset_data_slot): Likewise.
3390 (grub_env_unset_menu): New prototype.
3391 (grub_env_set_menu): Likewise.
3392 (grub_env_get_menu): Likewise.
3393 * include/grub/env_private.h: New file.
3394 * include/grub/normal.h (grub_context_init): New prototype.
3395 (grub_context_fini): Likewise.
3396 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
3397 * normal/context.c (grub_cmd_export): ... to here.
3398 * kern/env.c: Include env_private.h.
3399 (HASHSZ): Moved to include/grub/env_private.h.
3400 (grub_env_context): Likewise.
3401 (grub_env_sorted_var): Likewise.
3402 (current_context): Renamed from this ...
3403 (grub_current_context): ...to this. 'static' removed. All users updated.
3404 (grub_env_find): Removed 'static'.
3405 (grub_env_context_open): Moved to normal/context.c.
3406 (grub_env_context_close): Likewise.
3407 (grub_env_export): Likewise.
3408 (mangle_data_slot_name): Removed.
3409 (grub_env_set_data_slot): Likewise.
3410 (grub_env_get_data_slot): Likewise.
3411 (grub_env_unset_data_slot): Likewise.
3412 * kern/main.c (grub_set_root_dev): Don't export root.
3413 It will be done later.
3414 (grub_main): Don't export prefix.
3415 It will be done later.
3416 * normal/context.c: New file.
3417 * normal/main.c (free_menu): Use grub_env_unset_menu.
3418 (grub_normal_add_menu_entry): Use grub_env_get_menu.
3419 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
3420 (GRUB_MOD_INIT(normal)): Call grub_context_init.
3421 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
3423 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3427 * commands/setpci.c: New file.
3428 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
3429 (setpci_mod_SOURCES): New variable.
3430 (setpci_mod_CFLAGS): Likewise.
3431 (setpci_mod_LDFLAGS): Likewise.
3433 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3435 Byte-addressable PCI configuration space.
3437 * bus/pci.c (grub_pci_make_address): Use byte address instead of
3439 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
3440 GRUB_PCI_REG_CACHELINE.
3441 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
3442 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
3443 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
3444 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
3445 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
3446 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
3447 grub_pci_make_address.
3448 (lock_rom_area): Likewise.
3449 * commands/lspci.c (grub_lspci_iter): Use macroses
3450 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
3451 of grub_pci_make_address.
3452 * disk/ata.c (grub_ata_pciinit): Likewise.
3453 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
3454 (GRUB_PCI_REG_VENDOR): Likewise.
3455 (GRUB_PCI_REG_DEVICE): Likewise.
3456 (GRUB_PCI_REG_COMMAND): Likewise.
3457 (GRUB_PCI_REG_STATUS): Likewise.
3458 (GRUB_PCI_REG_REVISION): Likewise.
3459 (GRUB_PCI_REG_CLASS): Likewise.
3460 (GRUB_PCI_REG_CACHELINE): Likewise.
3461 (GRUB_PCI_REG_LAT_TIMER): Likewise.
3462 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
3463 (GRUB_PCI_REG_BIST): Likewise.
3464 (GRUB_PCI_REG_ADDRESSES): Likewise.
3465 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3466 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3467 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3468 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3469 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3470 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3471 (GRUB_PCI_REG_CIS_POINTER): Likewise.
3472 (GRUB_PCI_REG_SUBVENDOR): Likewise.
3473 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
3474 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
3475 (GRUB_PCI_REG_CAP_POINTER): Likewise.
3476 (GRUB_PCI_REG_IRQ_LINE): Likewise.
3477 (GRUB_PCI_REG_IRQ_PIN): Likewise.
3478 (GRUB_PCI_REG_MIN_GNT): Likewise.
3479 (GRUB_PCI_REG_MAX_LAT): Likewise.
3480 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
3481 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
3482 * video/efi_uga.c (find_framebuf): Likewise.
3483 * video/sm712.c (grub_video_sm712_setup): Likewise.
3484 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
3487 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3489 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
3490 can be reliably determined to be supported.
3492 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3494 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
3495 that VESA is supported.
3496 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
3499 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3501 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
3503 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3505 * util/misc.c (make_system_path_relative_to_its_root): Work around
3506 special-casing of "/", as previous incarnation of this routine did.
3508 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3510 Fix any-emu compilation.
3512 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
3513 * grub_bin2h_SOURCES: New variable.
3515 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3517 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
3519 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3521 * util/grub.d/00_header.in: Fix handling of locale_dir.
3523 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3525 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
3526 as possible unifont location (Gentoo).
3527 Reported by: Alexander Brüning
3529 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3531 Don't try to generate lists for kernel.img.
3533 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
3534 (pkglib_MODULES): Remove kernel.img.
3535 (kernel_img_EXPORTS): Removed.
3536 (kernel_img_RELOCATABLE): New variable.
3537 * conf/x86_64-efi.rmk: Likewise.
3538 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
3540 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3542 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
3543 grub_xasprintf or grub_snprintf.
3544 (grub_vsprintf): Likewise.
3545 (grub_snprintf): New proto.
3546 (grub_vsnprintf): Likewise.
3547 (grub_xasprintf): Likewise.
3548 (grub_xvasprintf): Likewise.
3549 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
3550 (grub_sprintf): Removed.
3551 (grub_vsnprintf): New function.
3552 (grub_snprintf): Likewise.
3553 (grub_xvasprintf): Likewise.
3554 (grub_xasprintf): Likewise.
3555 (grub_vsprintf): Renamed to ...
3556 (grub_vsnprintf_real): ...this. New argument max_len.
3558 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
3560 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
3561 fix grub-script-check warning.
3563 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3565 * include/grub/font.h (grub_font_load): Fix prototype.
3567 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3569 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
3571 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3573 * include/grub/x86_64/at_keyboard.h: New file.
3575 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3577 * loader/mips/linux.c: Include missing grub/i18n.h.
3579 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3581 * normal/menu.c (notify_execution_failure): Clarify error message.
3583 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3585 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
3586 return value (and revert all return statements). Update users.
3588 2010-01-20 Dan Merillat <debian@dan.merillat.org>
3590 * kern/device.c (grub_device_iterate): Allocate new part_ent
3591 structure based on sizeof (*p) rather than sizeof (p->next), to
3592 account for structure padding.
3594 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
3595 disk is NULL, which might happen for LVM physical volumes with no
3598 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3600 * loader/mips/linux.c (grub_cmd_initrd)
3601 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
3603 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3605 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
3606 (grub_video_video_init, grub_video_bitmap_init)
3607 (grub_font_manager_init, grub_term_gfxterm_init)
3608 (grub_at_keyboard_init): New extern declarations.
3609 (grub_machine_init): Initialize gfxterm and at_keyboard.
3611 * kern/main.c (grub_main): Revert grub_printf delay kludge.
3613 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
3614 `gfxterm.mod' into core image.
3616 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3617 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3618 (kernel_img_FORMAT): Copy to ...
3620 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3621 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3622 (kernel_img_FORMAT): ... here, and ...
3624 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3625 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3626 (kernel_img_FORMAT): ... here.
3628 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
3629 and input (at_keyboard) terminals in kernel.
3630 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
3632 (pkglib_MODULES): Remove `pci.mod'.
3633 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
3634 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
3635 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
3636 (at_keyboard_mod_LDFLAGS): Remove variables.
3638 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
3640 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
3642 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
3644 * include/grub/mips/libgcc.h: Only export symbols for functions
3645 that libgcc provides.
3647 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
3651 * bus/bonito.c: New file.
3652 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
3653 GRUB_PCI_NUM_DEVICES.
3654 * term/i386/pc/serial.c: Move to ...
3655 * term/serial.c: ... here. All users updated.
3656 * util/i386/pc/grub-mkimage.c: Move to ...
3657 * util/grub-mkrawimage.c: ... here. All users updated.
3658 * term/i386/pc/at_keyboard.c: Move to ...
3659 * term/at_keyboard.c: ... here. All users updated.
3660 * conf/mips-qemu-mips.rmk: New file.
3661 * conf/mips-yeeloong.rmk: Likewise.
3662 * conf/mips.rmk: Likewise.
3663 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
3665 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
3667 (grub_ata_pciinit): Support CS5536.
3668 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
3669 * font/font_cmd.c (loadfont_command): Open file before passing it to
3671 (pseudo_file_read): New function.
3672 (pseudo_file_close): Likewise.
3673 (pseudo_fs): New structure.
3674 (load_font_module): New function.
3675 (GRUB_MOD_INIT(font_manager)): Load embedded font.
3676 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
3677 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
3678 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
3679 * include/grub/i386/at_keyboard.h: Split into ...
3680 * include/grub/at_keyboard.h: ... this ...
3681 * include/grub/i386/at_keyboard.h: ... and this.
3682 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
3684 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
3686 (grub_elf64_size): Likewise.
3687 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
3689 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
3690 * include/grub/i386/coreboot/serial.h: Rewritten.
3691 * include/grub/i386/ieee1275/serial.h: Include
3692 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
3693 * include/grub/i386/pc/serial.h: Moved from here ...
3694 * include/grub/serial.h: ... to here. All users updated.
3695 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
3696 (GRUB_PCI_NUM_BUS): Likewise.
3697 (GRUB_PCI_NUM_DEVICES): Likewise.
3698 (grub_pci_device_map_range): Add missing volatile keyword.
3699 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
3700 * include/grub/mips/at_keyboard.h: New file.
3701 * include/grub/mips/cache.h: Likewise.
3702 * include/grub/mips/io.h: Likewise.
3703 * include/grub/mips/kernel.h: Likewise.
3704 * include/grub/mips/libgcc.h: Likewise.
3705 * include/grub/mips/pci.h: Likewise.
3706 * include/grub/mips/qemu-mips/boot.h: Likewise.
3707 * include/grub/mips/qemu-mips/kernel.h: Likewise.
3708 * include/grub/mips/qemu-mips/loader.h: Likewise.
3709 * include/grub/mips/qemu-mips/memory.h: Likewise.
3710 * include/grub/mips/qemu-mips/serial.h: Likewise.
3711 * include/grub/mips/qemu-mips/time.h: Likewise.
3712 * include/grub/mips/relocator.h: Likewise.
3713 * include/grub/mips/time.h: Likewise.
3714 * include/grub/mips/types.h: Likewise.
3715 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
3716 * include/grub/mips/yeeloong/boot.h: Likewise.
3717 * include/grub/mips/yeeloong/kernel.h: Likewise.
3718 * include/grub/mips/yeeloong/loader.h: Likewise.
3719 * include/grub/mips/yeeloong/memory.h: Likewise.
3720 * include/grub/mips/yeeloong/pci.h: Likewise.
3721 * include/grub/mips/yeeloong/serial.h: Likewise.
3722 * include/grub/mips/yeeloong/time.h: Likewise.
3723 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
3724 * kern/elf.c (grub_elf32_size): New parameter. All users
3726 (grub_elf64_size): Likewise.
3727 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
3728 Load modules before saying "Welcome to GRUB!".
3729 Call grub_refresh after saying "Welcome to GRUB!".
3730 * kern/mips/cache.S: New file.
3731 * kern/mips/cache_flush.S: Likewise.
3732 * kern/mips/dl.c: Likewise.
3733 * kern/mips/init.c: Likewise.
3734 * kern/mips/qemu-mips/init.c: Likewise.
3735 * kern/mips/startup.S: Likewise.
3736 * kern/mips/yeeloong/init.c: Likewise.
3737 * kern/term.c (grub_putcode): Handle NULL terminal.
3738 (grub_getcharwidth): Likewise.
3739 (grub_getkey): Likewise.
3740 (grub_checkkey): Likewise.
3741 (grub_getkeystatus): Likewise.
3742 (grub_getxy): Likewise.
3743 (grub_getwh): Likewise.
3744 (grub_gotoxy): Likewise.
3745 (grub_cls): Likewise.
3746 (grub_setcolorstate): Likewise.
3747 (grub_setcolor): Likewise.
3748 (grub_getcolor): Likewise.
3749 (grub_refresh): Likewise.
3750 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
3751 (write_jump): Add hatch nop.
3752 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
3753 * lib/mips/setjmp.S: New file.
3754 * loader/mips/linux.c: Likewise.
3755 * term/i386/pc/at_keyboard.c: Move from here ...
3756 * term/at_keyboard.c: ... to here.
3757 * term/i386/pc/serial.c: Moved from here ...
3758 * term/serial.c: ... to here. All users updated.
3759 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
3760 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
3761 (serial_translate_key_sequence): Avoid deadlock.
3762 (grub_serial_getkey): Handle backspace.
3763 (grub_serial_putchar): Fix newline handling.
3764 * util/i386/pc/grub-mkimage.c: Move from here ...
3765 * util/grub-mkrawimage.c: ... to here. All users updated.
3766 (generate_image): New parameters 'font_path' and 'format'.
3767 Support embedding font.
3768 Use grub_host_to_target* instead of grub_cpu_to_le*.
3769 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
3770 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
3771 (options): New option "--font".
3773 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
3774 (main): Handle "--font".
3775 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
3776 (grub_virtual_screen_setup): Set bg_color_display.
3777 (redraw_screen_rect): Use bg_color_display instead of incorrect
3779 (grub_gfxterm_cls): Likewise.
3780 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
3781 Support embedding config file.
3782 (add_segments): Likewise.
3783 (options): New option "--config".
3784 (main): Handle "--config".
3785 * video/sm712.c: New file.
3787 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3789 Fix parallel builds.
3791 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
3792 font.c depend on ascii.h).
3794 2010-01-12 Carles Pina i Estany <carles@pina.cat>
3796 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
3798 2010-01-11 Carles Pina i Estany <carles@pina.cat>
3800 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
3801 By default: disabled.
3802 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
3805 2010-01-10 Carles Pina i Estany <carles@pina.cat>
3807 * font/font.c: Update copyright years.
3808 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
3810 2010-01-10 Carles Pina i Estany <carles@pina.cat>
3812 * font/font.c: Include `ascii.h'.
3813 (ASCII_BITMAP_SIZE): New macro.
3814 (ascii_font_glyph): Define.
3815 (ascii_glyph_lookup): New function.
3816 (grub_font_get_string_width): Change comment. If glyph not found, use
3818 (grub_font_get_glyph_with_fallback): If glyph not available returns
3820 * util/grub-mkfont.c (file_formats): New enum.
3821 (options): Add `ascii-bitmaps' new option.
3822 (usage): Add `asii-bitmaps' new option.
3823 (write_font_ascii_bitmap): New function.
3824 (write_font): Rename to ...
3825 (write_font_p2): ... this. Remove print_glyphs call.
3826 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
3827 used. Call print_glyphs.
3828 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
3830 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
3832 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
3833 (grub_bin2h_SOURCES): New variable.
3834 * util/bin2h.c: New file.
3836 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3838 * include/multiboot.h: Resynced with spec.
3839 * include/multiboot2.h: Likewise.
3840 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
3841 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
3843 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3845 * include/grub/term.h (grub_term_register_input,
3846 grub_term_register_output): Check return of terminal init()
3847 routines, and abort if errors are raised.
3849 * commands/terminal.c: Update copyright year.
3851 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3853 * commands/terminal.c (grub_cmd_terminal_input)
3854 (grub_cmd_terminal_output): Check return of terminal init()
3855 routines, and abort if errors are raised.
3857 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3859 * include/grub/i386/bsd.h: Fix include pathes.
3861 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3863 Add missing *BSD copyright headers.
3865 * include/grub/aout.h: Add BSD licence.
3866 * include/grub/i386/bsd.h: Parts under different licences moved to ...
3867 * include/grub/i386/freebsd_linker.h: ... here,
3868 * include/grub/i386/freebsd_reboot.h: ... here,
3869 * include/grub/i386/netbsd_bootinfo.h: ... here,
3870 * include/grub/i386/netbsd_reboot.h: ... here,
3871 * include/grub/i386/openbsd_bootarg.h: ... here,
3872 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
3873 licence to each file.
3875 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3877 * acinclude.m4: Remove `nop' assembly instruction; it's not
3878 implemented by all architectures.
3880 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3882 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
3883 ELILO. This is no longer necessary.
3885 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
3887 Added new tool, grub-scrit-check to verify grub.cfg syntax.
3889 * util/grub-script-check.c: grub-script-check tool.
3890 * conf/common.rmk: Make rules for grub-script-check.
3892 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3894 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
3895 spotting it back in 2008. Shame on me for forgetting he did.
3897 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
3899 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3901 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
3902 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
3903 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
3904 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
3905 (GRUB_VIDEO_TYPE_EFI): Rename to ...
3906 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
3908 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
3910 * include/grub/test.h: Add license header.
3911 * tests/example_functional_test.c: Likewise.
3912 * tests/example_unit_test.c: Likewise.
3913 * tests/lib/functional_test.c: Likewise.
3914 * tests/lib/test.c: Likewise.
3915 * tests/lib/unit_test.c: Likewise.
3917 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
3919 Use flag-based instead of hook-based video mode selection and "auto"
3922 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
3923 (grub_video_set_mode): Changed prototype. All users updated.
3924 (grub_video_check_mode_flag): New inline function.
3925 * video/video.c (parse_modespec): New function.
3926 (grub_video_set_mode): Parse flags and keywords.
3928 2010-01-17 Carles Pina i Estany <carles@pina.cat>
3930 * util/misc.c (grub_util_info): Fix the order of the parameters in a
3933 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
3935 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
3937 2010-01-16 Carles Pina i Estany <carles@pina.cat>
3939 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
3941 * util/grub-emu.c (usage): Likewise.
3942 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
3943 * util/i386/efi/grub-mkimage.c (usage): Likewise.
3944 * util/i386/pc/grub-mkimage.c (usage): Likewise.
3945 * util/i386/pc/grub-setup.c (usage): Likewise.
3947 2010-01-16 Carles Pina i Estany <carles@pina.cat>
3949 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
3951 (grub_util_info): Likewise.
3952 (grub_util_error): Likewise.
3953 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
3954 and/or new lines in `grub_util_warna', `grub_util_info',
3955 `grub_util_error' calls.
3956 * util/getroot.c: Likewise.
3957 * util/grub-editenv.c: Likewise.
3958 * util/grub-emu.c: Likewise.
3959 * util/grub-fstest.c: Likewise.
3960 * util/grub-mkdevicemap.c: Likewise.
3961 * util/grub-mkfont.c: Likewise.
3962 * util/grub-mkpasswd-pbkdf2.c: Likewise.
3963 * util/grub-mkrelpath.c: Likewise.
3964 * util/grub-pe2elf.c: Likewise.
3965 * util/grub-probe.c: Likewise.
3966 * util/hostdisk.c: Likewise.
3967 * util/i386/efi/grub-mkimage.c: Likewise.
3968 * util/i386/pc/grub-mkimage.c: Likewise.
3969 * util/i386/pc/grub-setup.c: Likewise.
3970 * util/ieee1275/ofpath.c: Likewise.
3971 * util/mkisofs/eltorito.c: Likewise.
3972 * util/mkisofs/rock.c: Likewise.
3973 * util/mkisofs/write.c: Likewise.
3974 * util/raid.c: Likewise.
3975 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
3976 * util/sparc64/ieee1275/grub-setup.c: Likewise.
3978 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
3980 Enable multiboot on non-pc.
3982 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
3983 multiboot.mod and multiboot2.mod to ...
3984 * conf/i386.rmk (pkglib_MODULES): ... here.
3985 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
3987 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
3988 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
3990 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
3991 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
3993 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
3994 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
3996 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
3997 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
3999 (ata_mod_SOURCES): Removed.
4000 (ata_mod_CFLAGS): Likewise.
4001 (ata_mod_LDFLAGS): Likewise.
4002 (relocator_mod_SOURCES): Removed.
4003 (relocator_mod_CFLAGS): Likewise.
4004 (relocator_mod_ASFLAGS): Likewise.
4005 (relocator_mod_LDFLAGS): Likewise.
4007 * include/grub/x86_64/multiboot.h: New file.
4008 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
4011 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4013 Video multiboot support.
4015 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
4017 * include/multiboot.h: Resynced with multiboot specification.
4018 * include/multiboot2.h: Likewise.
4019 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
4020 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
4021 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
4022 (HAS_VGA_TEXT): Likewise.
4023 (accepts_video): New variable.
4024 (grub_multiboot_set_accepts_video): New function.
4025 (grub_multiboot_get_mbi_size): Account for video structures.
4026 (set_video_mode): New function.
4027 (retrieve_video_parameters): Likewise.
4028 (grub_multiboot_make_mbi): Fill video fields.
4030 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4034 * include/grub/video.h (grub_video_driver_id): New type.
4035 (grub_video_adapter): New member 'id'. All users updated.
4036 (grub_video_get_driver_id): New proto.
4037 * video/video.c (grub_video_get_driver_id): New function.
4039 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4041 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
4044 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4046 * normal/cmdline.c (print_completion): Gettextizze.
4048 2001-01-14 Carles Pina i Estany <carles@pina.cat>
4050 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
4052 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4054 * gettext/gettext.c (grub_gettext_translate): Push and pop
4056 (grub_gettext_delete_list): Change comment style.
4057 * kern/err.c (grub_error): Gettextizze.
4058 (grub_fatal): Gettextizze.
4060 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4062 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
4063 (grub_linux16_real_boot): ... this.
4064 * kern/i386/loader.S: Likewise.
4065 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
4066 (grub_linux16_boot): New function. Switches to text mode and calls
4067 grub_linux16_real_boot().
4069 * loader/i386/bsd.c: Include `<grub/video.h>'.
4070 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
4071 text mode before calling grub_unix_real_boot().
4073 * loader/i386/multiboot.c: Include `<grub/video.h>'.
4074 (grub_multiboot_boot): Switch to text mode before calling
4075 grub_relocator32_boot().
4077 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
4078 (grub_chainloader_boot): Switch to text mode before calling
4079 grub_chainloader_real_boot().
4081 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4082 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4084 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
4087 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4088 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4090 * util/grub.d/00_header.in: Define a "savedefault" function for use
4092 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
4094 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4095 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4097 * util/grub-mkconfig_lib.in (save_default_entry): Only set
4098 saved_entry if boot_once is unset.
4099 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
4100 previous saved entry (i.e. grub-reboot).
4102 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4104 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
4106 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4108 * util/grub.d/00_header.in: Use `set var=val' rather than plain
4110 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
4112 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4114 * util/grub-reboot.in: Fix --version output.
4115 * util/grub-set-default.in: Likewise.
4117 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4119 * util/grub.d/00_header.in: Silently ignore zero-sized environment
4122 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4124 * util/grub.d/00_header.in: Quote the value assigned to `default',
4125 in case it contains spaces.
4127 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4129 * util/grub.d/30_os-prober.in: Fix merge error that moved a
4130 `save_default_entry' call from the macosx case to the linux case.
4132 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4133 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
4135 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
4136 in `chosen' environment variable.
4137 * normal/menu_text.c (get_entry_number): Check if the variable
4138 matches the title of a menu entry.
4139 (run_menu): Pass menu to get_entry_number.
4141 * util/grub-reboot.in: New file.
4142 * util/grub-set-default.in: New file.
4143 * conf/common.rmk (grub-reboot): New utility.
4144 (grub-set-default): New utility.
4146 * util/grub-mkconfig_lib.in (save_default_entry): New function.
4147 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
4148 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
4149 move it to `saved_entry' for the next boot. Load environment on
4151 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
4152 * util/grub.d/10_hurd.in: Likewise.
4153 * util/grub.d/10_linux.in (linux_entry): Likewise.
4154 * util/grub.d/10_windows.in: Likewise.
4155 * util/grub.d/30_os-prober.in: Likewise.
4157 * util/grub-install.in: Create environment block.
4158 * util/i386/efi/grub-install.in: Likewise.
4159 * util/ieee1275/grub-install.in: Likewise.
4160 * util/sparc64/ieee1275/grub-install.in: Likewise.
4162 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
4164 Unit testing framework for GRUB.
4166 * Makefile.in: Test framework build rules for 'make check'.
4167 * conf/tests.rmk: Build rules for individual tests and framework.
4169 * include/grub/test.h: Header file for whitebox tests.
4170 * tests/lib/functional_test.c: Framework support for whitebox
4172 * tests/lib/test.c: Common whitebox testing code for unit and
4174 * tests/lib/unit_test.c: Framework support for whitebox unit
4177 * tests/util/grub-shell-tester.in: Support utility for grub-script
4179 * tests/util/grub-shell.in: Utility to execute grub-script
4180 commands in a Qemu instance.
4182 * tests/example_functional_test.c: Example whitebox functional
4184 * tests/example_grub_script_test.in: Example grub-script test.
4185 * tests/example_scripted_test.in: Example scripted test.
4186 * tests/example_unit_test.c: Example whitebox unit test.
4188 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4190 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
4191 Add loader/i386/multiboot_mbi.c.
4192 (multiboot2_mod_SOURCES): Likewise.
4193 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
4194 (multiboot2_mod_SOURCES): Likewise.
4195 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
4196 (grub_multiboot_make_mbi): Likewise.
4197 (grub_multiboot_free_mbi): Likewise.
4198 (grub_multiboot_init_mbi): Likewise.
4199 (grub_multiboot_add_module): Likewise.
4200 (grub_multiboot_set_bootdev): Likewise.
4201 * loader/i386/multiboot.c (mbi): Removed.
4202 (mbi_dest): Likewise.
4203 (alloc_mbi): New variable.
4204 (grub_multiboot_payload_size): Removed. All users updated.
4205 (grub_multiboot_pure_size): New variable.
4206 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
4207 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
4208 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
4209 (grub_fill_multiboot_mmap): Likewise.
4210 (grub_multiboot_get_bootdev): Likewise.
4211 (grub_multiboot): Use multiboot_mbi functions.
4212 * loader/i386/multiboot_mbi.c: New file.
4214 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4216 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
4217 it would result in module crash.
4219 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4221 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
4222 (grub_ofconsole_getwh): Split to ...
4223 (grub_ofconsole_getwh): ... this.
4224 (grub_ofconsole_dimensions): ...and this.
4225 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
4227 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
4229 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
4231 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4233 * loader/i386/pc/multiboot2.c: Removed stalled file.
4235 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4237 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
4238 Reported by: Grégoire Sutre
4240 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
4242 * util/misc.c (canonicalize_file_name): New function.
4243 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
4244 instead of realpath().
4246 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
4248 * util/grub-install.in (usage): Clarify meaning of --root-directory,
4249 and make it clearer that it's optional. Based on confusion
4252 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4254 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
4255 in premature implicit newline.
4257 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4259 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
4260 which resulted in garbled command line at the end of screen.
4262 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4264 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
4265 initialization with similar approach as with other Linux loaders.
4267 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4269 Fix i386-ieee1275 build.
4271 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
4272 and grub_term_height() for video_{width,height} initialization.
4274 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4278 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
4280 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4281 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4283 Support for multiple terminals.
4285 * Makefile.in (pkglib_DATA): terminal.lst.
4286 (terminal.lst): New target.
4287 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
4288 (GRUB_MOD_INIT(handler)): Likewise.
4289 (GRUB_MOD_FINI(handler)): Likewise.
4290 * commands/help.c (grub_cmd_help): Handle multiple terminals.
4291 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
4292 * commands/sleep.c (do_print): Use grub_term_restore_pos.
4293 (grub_cmd_sleep): Use grub_term_save_pos.
4294 * commands/terminal.c: New file.
4295 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
4296 commands/terminal.c and lib/charset.c.
4297 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
4298 (pkglib_MODULES): Add terminal.mod.
4299 (terminal_mod_SOURCES): New variable.
4300 (terminal_mod_CFLAGS): Likewise.
4301 (terminal_mod_LDFLAGS): Likewise.
4302 * genhandlerlist.sh: Don't handle terminals.
4303 * genmk.rb: Generate terminal-*.lst.
4304 * genterminallist.sh: New file.
4305 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
4306 (grub_is_valid_utf8): Likewise.
4307 (grub_utf8_to_ucs4_alloc): Likewise.
4308 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
4309 (grub_menu_register_viewer): Changed argument.
4310 (grub_menu_try_text): New proto.
4311 (grub_gfxmenu_try_hook): New declaration.
4312 * include/grub/normal.h (grub_normal_exit_level): New declaration.
4313 (grub_menu_init_page): Additional argument term.
4314 (grub_normal_init_page): Likewise.
4315 (grub_cmdline_get): Arguments simplified.
4316 (grub_utf8_to_ucs4_alloc): Removed.
4317 (grub_print_ucs4): Additional argument term.
4318 (grub_getstringwidth): Likewise.
4319 (grub_print_message_indented): Likewise.
4320 (grub_menu_text_register_instances): New proto.
4321 (grub_show_menu): Likewise.
4322 (read_terminal_list): Likewise.
4323 (grub_set_more): Likewise.
4324 * include/grub/parser.h: Include handler.h.
4325 * include/grub/reader.h: Rewritten.
4326 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
4327 (GRUB_TERM_WIDTH): Changed to function.
4328 (GRUB_TERM_HEIGHT): Likewise.
4329 (GRUB_TERM_BORDER_WIDTH): Likewise.
4330 (GRUB_TERM_BORDER_HEIGHT): Likewise.
4331 (GRUB_TERM_NUM_ENTRIES): Likewise.
4332 (GRUB_TERM_ENTRY_WIDTH): Likewise.
4333 (GRUB_TERM_CURSOR_X): Likewise.
4334 (grub_term_input_class): Likewise.
4335 (grub_term_output_class): Likewise.
4336 (grub_term_outputs_disabled): New declaration.
4337 (grub_term_inputs_disabled): Likewise.
4338 (grub_term_outputs): Likewise.
4339 (grub_term_inputs): Likewise.
4340 (grub_term_register_input): Rewritten.
4341 (grub_term_register_output): Likewise.
4342 (grub_term_unregister_input): Likewise.
4343 (grub_term_unregister_output): Likewise.
4344 (FOR_ACTIVE_TERM_INPUTS): New macro.
4345 (FOR_DISABLED_TERM_INPUTS): Likewise.
4346 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
4347 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
4348 * include/grub/terminfo.h: Add oterm argument to all protypes.
4349 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
4350 Use grub_rescue_run.
4351 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
4353 * kern/reader.c: Removed. All users updated.
4354 * kern/rescue_reader.c (grub_rescue_init): Removed.
4355 (grub_rescue_reader): Likewise.
4356 (grub_register_rescue_reader): Likewise.
4357 (grub_rescue_run): New function based on kern/reader.c.
4358 * kern/term.c: Adapted for multiterm.
4359 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
4360 (grub_is_valid_utf8): Likewise.
4361 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
4362 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
4364 * loader/i386/linux.c (grub_linux_boot): Likewise.
4365 * normal/auth.c (grub_username_get): New function.
4366 (grub_auth_check_authentication): Use grub_username_get.
4367 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
4368 * normal/color.c: Adapt for multiterm.
4369 * normal/main.c (read_config_file): Don't use grub_reader_loop.
4370 (grub_normal_init_page): Additional argument term.
4371 (read_lists): Call read_terminal_lists.
4372 (grub_enter_normal_mode): Call grub_cmdline_run.
4373 Handle grub_normal_exit_level.
4374 (grub_cmd_normal): Make reentrant.
4375 (grub_cmd_normal_exit): New function.
4376 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
4377 * normal/menu.c: Adapt for multiterm.
4378 * normal/menu_entry.c: Likewise.
4379 * normal/menu_text.c: Likewise.
4380 * normal/menu_viewer.c: Removed. All users updated.
4381 * normal/term.c: New file.
4382 * util/console.c: Change order of includes to workaround a bug in
4384 * term/terminfo.c: New argument oterm on all exported functions.
4386 * util/grub-editenv.c (grub_term_input_class): Removed.
4387 (grub_term_output_class): Likewise.
4389 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4391 Make loader output a bit more user-friendly.
4393 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
4394 is being loaded. Likewise for the Hurd.
4396 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
4397 that kernel of FreeBSD ${version} is being loaded.
4399 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
4401 (grub_cmd_initrd): Likewise.
4402 * util/grub.d/10_linux.in (linux_entry): Print message indicating
4403 that Linux ${version} is being loaded. Likewise for initrd.
4405 2010-01-09 Carles Pina i Estany <carles@pina.cat>
4407 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
4409 2010-01-08 Carles Pina i Estany <carles@pina.cat>
4411 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
4412 (GRUB_MOD_INIT): Gettextizze.
4413 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
4414 (GRUB_MOD_INIT): Gettextizze.
4415 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
4416 (grub_cmd_linux): Capitalise Linux.
4417 (GRUB_MOD_INIT): Gettextizze.
4418 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
4419 (grub_cmd_linux): Capitalise Linux.
4420 (GRUB_MOD_INIT): Gettextizze.
4421 * loader/i386/linux.c: Include `<grub/i18n.h>'.
4422 (grub_cmd_linux): Capitalise Linux.
4423 (GRUB_MOD_INIT): Gettextizze.
4424 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
4425 (GRUB_MOD_INIT): Gettextizze.
4426 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
4427 (grub_cmd_linux): Capitalise Linux.
4428 (GRUB_MOD_INIT): Gettextizze.
4429 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
4430 (grub_cpu_xnu_init): Gettextizze.
4431 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
4432 (GRUB_MOD_INIT): Gettextizze.
4433 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
4434 (GRUB_MOD_INIT): Gettextizze.
4435 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
4436 (grub_linux_load64): Capitalise Linux.
4437 (GRUB_MOD_INIT): Gettextizze.
4438 * loader/xnu.c: Include `<grub/i18n.h>'.
4439 (GRUB_MOD_INIT): Gettextizze.
4440 * po/POTFILES: Add `loader/efi/appleloader.c',
4441 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
4442 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
4443 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
4444 `loader/i386/xnu.c', `loader/multiboot_loader.c',
4445 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
4448 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4450 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
4452 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4454 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
4455 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
4456 * util/mkisofs/mkisofs.c (main): Readjust --version output.
4458 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4460 Reset Multiboot 2 support. New loader implements the draft in
4461 /branches/multiboot2 and shares as much code as possible with the
4462 production Multiboot 1 implementation.
4464 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
4465 * loader/multiboot2.c: Likewise.
4466 * loader/i386/multiboot_helper.S: Likewise.
4467 * include/multiboot2.h: Replace with latest version from the draft
4468 in /branches/multiboot2.
4470 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
4471 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
4472 and `loader/multiboot2.c'.
4473 (pkglib_MODULES): Add `multiboot2.mod'.
4474 (multiboot2_mod_SOURCES): New variable.
4475 (multiboot2_mod_LDFLAGS): Likewise.
4476 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
4478 * conf/i386-pc.rmk: Likewise.
4480 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
4481 (multiboot_mod_SOURCES): Remove variable.
4482 (multiboot_mod_LDFLAGS): Likewise.
4483 (multiboot_mod_CFLAGS): Likewise.
4485 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
4486 `<multiboot2.h>' instead of `<multiboot.h>'.
4487 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
4488 (MULTIBOOT_HEADER_MAGIC): New macros.
4490 * loader/multiboot_loader.c (module_version_status): Remove variable.
4491 (find_multi_boot2_header): Remove function.
4492 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
4493 logic. Always check for the Multiboot version we're compiling for.
4494 (grub_cmd_module_loader): Likewise.
4495 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
4496 command instead of `multiboot'.
4498 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4500 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
4501 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
4504 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4505 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4507 Fix breakage introduced with previous commit.
4509 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
4511 * normal/handler.c (read_handler_list): Revert part of previous commit
4512 affecting this file.
4513 * normal/main.c (read_lists): Move read_handler_list() call back to ...
4514 (grub_normal_execute): ... here.
4516 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4518 Merge prefix-redefinition-fix branch.
4520 * normal/autofs.c (read_fs_list): Make function capable of being
4521 run multiple times, gracefuly replacing the previous data
4523 * normal/dyncmd.c (read_command_list): Likewise.
4524 * normal/handler.c (read_handler_list): Likewise.
4525 * normal/main.c (read_lists): New function. Calls all the
4526 list reading functions.
4527 (grub_normal_execute): Use read_lists() instead of calling all
4528 list reading functions explicitly. Register read_lists() as a
4529 variable hook attached to ${prefix}.
4531 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4533 Merge crypto branch.
4535 * Makefile.in (pkglib_DATA): Add crypto.lst.
4536 (crypto.lst): New target.
4537 * commands/hashsum.c: New file.
4538 * commands/password.c (check_password): Use grub_crypto_memcmp.
4539 * commands/password_pbkdf2.c: New file.
4540 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
4541 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
4542 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
4543 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
4544 -I$(srcdir)/lib/libgcrypt_wrap.
4545 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
4546 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
4547 password_pbkdf2.mod.
4548 (crypto_mod_SOURCES): New variable.
4549 (crypto_mod_CFLAGS): Likewise.
4550 (crypto_mod_LDFLAGS): Likewise.
4551 (hashsum_mod_SOURCES): New variable.
4552 (hashsum_mod_CFLAGS): Likewise.
4553 (hashsum_mod_LDFLAGS): Likewise.
4554 (pbkdf2_mod_SOURCES): New variable.
4555 (pbkdf2_mod_CFLAGS): Likewise.
4556 (pbkdf2_mod_LDFLAGS): Likewise.
4557 (password_pbkdf2_mod_SOURCES): New variable.
4558 (password_pbkdf2_mod_CFLAGS): Likewise.
4559 (password_pbkdf2_mod_LDFLAGS): Likewise.
4560 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
4561 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
4562 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
4563 Include conf/gcry.rmk.
4564 * include/grub/auth.h: Rewritten.
4565 * include/grub/crypto.h: New file.
4566 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
4567 * include/grub/normal.h (read_crypto_list): New prototype.
4568 * lib/crypto.c: New file.
4569 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
4570 * lib/pbkdf2.c: Likewise.
4571 * normal/auth.c (grub_auth_strcmp): Removed.
4572 (grub_iswordseparator): Likewise.
4573 (grub_auth_strword): Likewise.
4574 (is_authenticated): Use grub_strword.
4575 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
4576 and grub_strword. Pass entered password to authentication callback.
4577 * normal/crypto.c: New file.
4578 * normal/main.c: Call read_crypto_list.
4579 * util/grub-mkpasswd-pbkdf2.c: New file.
4580 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
4582 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
4584 Fix descent and ascent calculation.
4586 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
4587 (options): New option "asce".
4589 (add_char): Ignore invalid glyphs for descent calculation.
4590 Calculate ascent from actual content.
4591 (print_glyphs): Use 'asce'.
4592 (write_font): Likewise. Allow ascent override.
4593 (main): Handle "asce" option.
4595 2010-01-06 Carles Pina i Estany <carles@pina.cat>
4597 * kern/err.c: Include `<grub/i18n.h>'.
4598 (grub_print_error): Add full stop. Gettextizze.
4599 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
4600 (grub_bsd_load_elf): Capitalise ELF.
4601 (grub_cmd_freebsd_loadenv): Add `s' in error string.
4602 (grub_cmd_freebsd_module): Likewise.
4603 (grub_cmd_freebsd_module_elf): Likewise.
4604 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
4606 2010-01-06 Carles Pina i Estany <carles@pina.cat>
4608 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
4609 * commands/search_file.c (HELP_MESSAGE): New macro.
4610 * commands/search_label.c (HELP_MESSAGE): Likewise.
4611 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
4612 * po/POTFILES: Add `commands/search_file.c',
4613 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
4614 `commands/search.c'.
4616 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4618 * config.rpath: Update from Gnulib.
4620 2010-01-05 Yves Blusseau <blusseau@zetam.org>
4622 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
4624 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
4626 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
4628 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4630 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
4631 arguments to fread so that we get a return value in bytes, rather
4632 than something that will normally be rounded down to 0.
4633 Adjust error handling to avoid producing garbage when size_t is not
4634 the same size as long long.
4636 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4638 * util/mkisofs/write.c (padblock_write): Check return value of
4641 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4643 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
4646 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
4648 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
4650 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
4651 instead of manual alignment.
4652 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
4653 verbose). Avoid attempts to read past end of the device
4654 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
4655 but GRUB_DISK_CACHE_SIZE may exceed that).
4657 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
4659 * commands/crc.c (grub_cmd_crc): Abort on read errors.
4660 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
4663 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4665 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
4667 (grub_efi_piwg_device_path): New structure
4668 (grub_efi_piwg_device_path_t): New type.
4669 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
4670 (devpath_1): Transform to a structure. All users updated.
4671 (devpath_2): Likewise.
4672 (devpath_3): Likewise.
4673 (devpath_4): Likewise.
4674 (devpath_5): Likewise.
4676 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4678 * loader/efi/appleloader.c: Restored. Update all users.
4680 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4682 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
4684 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
4685 (struct boot_blocklist): Move from here ...
4686 * include/grub/i386/pc/boot.h [ASM_FILE]
4687 (struct grub_boot_blocklist): ... to here. Update all users.
4688 (setup): Only initialize `start' member of `first_block'
4689 structure. Add assert() calls to verify the other members.
4691 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
4692 (generate_image): Fix broken blocklist length initialization.
4693 Add assert() call to verify blocklist `segment' field.
4695 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4697 * loader/efi/appleloader.c: Remove. Update all users.
4699 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4701 * boot/i386/pc/boot.S: Update copyright year.
4702 * boot/i386/pc/cdboot.S: Likewise.
4703 * boot/i386/pc/diskboot.S: Likewise.
4704 * boot/i386/pc/lnxboot.S: Likewise.
4705 * boot/i386/pc/pxeboot.S: Likewise.
4706 * bus/pci.c: Likewise.
4707 * commands/cmp.c: Likewise.
4708 * commands/help.c: Likewise.
4709 * commands/hexdump.c: Likewise.
4710 * commands/i386/pc/halt.c: Likewise.
4711 * commands/i386/pc/play.c: Likewise.
4712 * commands/i386/pc/vbeinfo.c: Likewise.
4713 * commands/ls.c: Likewise.
4714 * commands/test.c: Likewise.
4715 * disk/dmraid_nvidia.c: Likewise.
4716 * disk/i386/pc/biosdisk.c: Likewise.
4717 * disk/ieee1275/nand.c: Likewise.
4718 * disk/ieee1275/ofdisk.c: Likewise.
4719 * disk/lvm.c: Likewise.
4720 * disk/raid.c: Likewise.
4721 * disk/raid6_recover.c: Likewise.
4722 * disk/scsi.c: Likewise.
4723 * fs/affs.c: Likewise.
4724 * fs/cpio.c: Likewise.
4725 * fs/ext2.c: Likewise.
4726 * fs/hfs.c: Likewise.
4727 * fs/iso9660.c: Likewise.
4728 * fs/ntfs.c: Likewise.
4729 * fs/sfs.c: Likewise.
4730 * fs/udf.c: Likewise.
4731 * fs/ufs.c: Likewise.
4732 * fs/xfs.c: Likewise.
4733 * gencmdlist.sh: Likewise.
4734 * genmk.rb: Likewise.
4735 * include/grub/disk.h: Likewise.
4736 * include/grub/efi/api.h: Likewise.
4737 * include/grub/efi/efi.h: Likewise.
4738 * include/grub/efi/pe32.h: Likewise.
4739 * include/grub/elf.h: Likewise.
4740 * include/grub/fs.h: Likewise.
4741 * include/grub/i386/at_keyboard.h: Likewise.
4742 * include/grub/i386/pc/memory.h: Likewise.
4743 * include/grub/i386/pc/vbe.h: Likewise.
4744 * include/grub/i386/pci.h: Likewise.
4745 * include/grub/i386/tsc.h: Likewise.
4746 * include/grub/ieee1275/ieee1275.h: Likewise.
4747 * include/grub/ntfs.h: Likewise.
4748 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
4749 * include/grub/sparc64/libgcc.h: Likewise.
4750 * include/grub/symbol.h: Likewise.
4751 * include/grub/types.h: Likewise.
4752 * include/multiboot2.h: Likewise.
4753 * io/gzio.c: Likewise.
4754 * kern/device.c: Likewise.
4755 * kern/disk.c: Likewise.
4756 * kern/efi/efi.c: Likewise.
4757 * kern/efi/mm.c: Likewise.
4758 * kern/elf.c: Likewise.
4759 * kern/file.c: Likewise.
4760 * kern/i386/dl.c: Likewise.
4761 * kern/i386/pc/init.c: Likewise.
4762 * kern/i386/pc/startup.S: Likewise.
4763 * kern/ieee1275/ieee1275.c: Likewise.
4764 * kern/ieee1275/init.c: Likewise.
4765 * kern/main.c: Likewise.
4766 * kern/mm.c: Likewise.
4767 * kern/powerpc/dl.c: Likewise.
4768 * kern/sparc64/dl.c: Likewise.
4769 * kern/x86_64/dl.c: Likewise.
4770 * lib/hexdump.c: Likewise.
4771 * loader/efi/appleloader.c: Likewise.
4772 * loader/i386/ieee1275/linux.c: Likewise.
4773 * loader/i386/pc/chainloader.c: Likewise.
4774 * loader/i386/pc/linux.c: Likewise.
4775 * loader/i386/pc/multiboot2.c: Likewise.
4776 * loader/ieee1275/multiboot2.c: Likewise.
4777 * loader/multiboot2.c: Likewise.
4778 * loader/multiboot_loader.c: Likewise.
4779 * loader/powerpc/ieee1275/linux.c: Likewise.
4780 * normal/completion.c: Likewise.
4781 * normal/menu_entry.c: Likewise.
4782 * partmap/apple.c: Likewise.
4783 * util/grub.d/10_hurd.in: Likewise.
4784 * util/hostfs.c: Likewise.
4785 * video/readers/png.c: Likewise.
4787 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
4789 * include/grub/misc.h (GNUC_PREREQ): New macro.
4790 (ATTRIBUTE_ERROR): New macro.
4791 * include/grub/list.h (grub_bad_type_cast_real): Use
4794 2010-01-03 Carles Pina i Estany <carles@pina.cat>
4796 * normal/menu_text.c (print_message): Change messages.
4798 2010-01-03 Carles Pina i Estany <carles@pina.cat>
4800 * normal/menu_entry.c (store_completion): Gettextizze.
4802 2010-01-03 Carles Pina i Estany <carles@pina.cat>
4804 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
4806 2010-01-03 Carles Pina i Estany <carles@pina.cat>
4808 * po/POTFILES: Sort correctly.
4810 2010-01-03 Carles Pina i Estany <carles@pina.cat>
4812 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
4813 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
4814 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
4816 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
4817 summary. Gettextizze the strings.
4818 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
4819 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
4820 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
4822 (GRUB_MOD_INIT): Remove command name from summary.
4823 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
4825 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
4826 * term/i386/pc/serial.c (options): Add full stops.
4827 (GRUB_MOD_INIT): Remove command name from the summary.
4829 2010-01-03 Carles Pina i Estany <carles@pina.cat>
4831 * commands/acpi.c: Gettextizze help strings and/or options. Include
4832 `grub/i18n.h' if needed.
4833 * commands/blocklist.c: Likewise.
4834 * commands/boot.c: Likewise.
4835 * commands/cat.c: Likewise.
4836 * commands/cmp.c: Likewise.
4837 * commands/configfile.c: Likewise.
4838 * commands/crc.c: Likewise.
4839 * commands/date.c: Likewise.
4840 * commands/echo.c: Likewise.
4841 * commands/efi/fixvideo.c: Likewise.
4842 * commands/efi/loadbios.c: Likewise.
4843 * commands/gptsync.c: Likewise.
4844 * commands/halt.c: Likewise.
4845 * commands/handler.c: Likewise.
4846 * commands/hdparm.c: Likewise.
4847 * commands/hexdump.c: Likewise.
4848 * commands/i386/cpuid.c: Likewise.
4849 * commands/i386/pc/drivemap.c: Likewise.
4850 * commands/i386/pc/halt.c: Likewise.
4851 * commands/i386/pc/pxecmd.c: Likewise.
4852 * commands/i386/pc/vbeinfo.c: Likewise.
4853 * commands/i386/pc/vbetest.c: Likewise.
4854 * commands/ieee1275/suspend.c: Likewise.
4855 * commands/keystatus.c: Likewise.
4856 * commands/loadenv.c: Likewise.
4857 * commands/ls.c: Likewise.
4858 * commands/lsmmap.c: Likewise.
4859 * commands/lspci.c: Likewise.
4860 * commands/memrw.c: Likewise.
4861 * commands/minicmd.c: Likewise.
4862 * commands/parttool.c: Likewise.
4863 * commands/password.c: Likewise.
4864 * commands/probe.c: Likewise.
4865 * commands/read.c: Likewise.
4866 * commands/reboot.c: Likewise.
4867 * commands/search.c: Likewise.
4868 * commands/sleep.c: Likewise.
4869 * commands/test.c: Likewise.
4870 * commands/true.c: Likewise.
4871 * commands/usbtest.c: Likewise.
4872 * commands/videotest.c: Likewise.
4873 * commands/xnu_uuid.c: Likewise.
4874 * disk/loopback.c: Likewise.
4875 * hello/hello.c: Likewise.
4876 * loader/i386/bsd.c: Likewise.
4877 * term/i386/pc/serial.c: Likewise.
4878 * po/POTFILES: Add new files.
4880 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
4882 * term/i386/pc/at_keyboard.c
4883 (keyboard_controller_wait_untill_ready): Rename to ...
4884 (keyboard_controller_wait_until_ready): ... this. Update all users.
4886 2010-01-01 Carles Pina i Estany <carles@pina.cat>
4888 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
4889 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
4890 string using string width.
4891 * normal/menu_text.c (grub_print_message_indented): Use
4892 grub_print_spaces and not print_spaces.
4893 (print_timeout): Likewise.
4894 (print_spaces): Move to...
4895 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
4897 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
4901 * gnulib/getdelim.c: New file.
4902 * gnulib/getline.c: Likewise.
4904 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
4906 * include/grub/list.h (grub_assert_fail): Removed.
4907 (grub_bad_type_cast_real): New function.
4908 (grub_bad_type_cast): New macro.
4909 (GRUB_AS_LIST): Use grub_bad_type_cast.
4910 (GRUB_AS_LIST_P): Likewise.
4911 (GRUB_AS_NAMED_LIST): Likewise.
4912 (GRUB_AS_NAMED_LIST_P): Likewise.
4913 (GRUB_AS_PRIO_LIST): Likewise.
4914 (GRUB_AS_PRIO_LIST_P): Likewise.
4915 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
4917 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
4919 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
4922 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
4924 * configure.ac: Check for TARGET_CFLAGS initialization before we
4925 initialize it ourselves (sigh).
4926 Move a few modifications to TARGET_CFLAGS to be unconditional
4927 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
4930 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
4931 * term/i386/pc/at_keyboard.c
4932 (keyboard_controller_wait_untill_ready): Likewise.
4933 (keyboard_controller_led): Rename `led_status' paramter to avoid
4936 2009-12-28 Carles Pina i Estany <carles@pina.cat>
4938 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
4941 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4943 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
4945 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4947 * normal/menu_text.c (grub_print_message_indented): Prevent
4948 past-the-end-of-array dereference.
4950 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4952 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
4953 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
4955 2009-12-27 Carles Pina i Estany <carles@pina.cat>
4957 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
4958 * normal/main.c (grub_normal_read_line): Remove a space from the
4961 2009-12-27 Carles Pina i Estany <carles@pina.cat>
4963 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
4964 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4965 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
4966 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
4967 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4968 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4969 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
4971 2009-12-26 Carles Pina i Estany <carles@pina.cat>
4973 * video/readers/jpeg.c (cmd): Declare.
4974 (grub_cmd_jpegtest): Use `grub_command_t' type.
4975 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
4977 (GRUB_MOD_FINI): Use `cmd' to unregister.
4978 * video/readers/png.c (cmd): Declare.
4979 (grub_cmd_pngtest): Use `grub_command_t' type.
4980 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
4982 (GRUB_MOD_FINI): Use `cmd' to unregister.
4983 * video/readers/tga.c (cmd): Declare.
4984 (grub_cmd_tgatest): Use `grub_command_t' type.
4985 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
4987 (GRUB_MOD_FINI): Use `cmd' to unregister.
4989 2009-12-26 Carles Pina i Estany <carles@pina.cat>
4991 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
4993 * kern/corecmd.c (grub_register_core_commands): Likewise.
4994 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
4995 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
4996 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
4997 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4998 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
4999 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
5000 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
5001 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
5002 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5003 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5004 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5005 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5006 * normal/handler.c (insert_handler): Likewise.
5007 * normal/main.c (GRUB_MOD_INIT): Likewise.
5008 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
5010 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5012 * commands/help.c (grub_cmd_help): Print the command name before the
5014 (GRUB_MOD_INIT): Remove command name from the summary.
5015 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
5017 * lib/arg.c (find_long): Print the command name before the summary.
5018 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
5020 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
5021 * commands/cat.c (GRUB_MOD_INIT): Likewise.
5022 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
5023 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
5024 * commands/crc.c (GRUB_MOD_INIT): Likewise.
5025 * commands/date.c (GRUB_MOD_INIT): Likewise.
5026 * commands/echo.c (GRUB_MOD_INIT): Likewise.
5027 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
5028 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5029 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5030 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
5031 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
5032 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
5033 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
5034 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5035 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
5036 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
5037 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
5038 * commands/ls.c (GRUB_MOD_INIT): Likewise.
5039 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5040 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5041 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5042 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
5043 * commands/password.c (GRUB_MOD_INIT): Likewise.
5044 * commands/probe.c (GRUB_MOD_INIT): Likewise.
5045 * commands/read.c (GRUB_MOD_INIT): Likewise.
5046 * commands/search.c (GRUB_MOD_INIT): Likewise.
5047 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
5048 * commands/test.c (GRUB_MOD_INIT): Likewise.
5049 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
5050 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
5051 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
5052 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
5053 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
5054 * lib/arg.c (GRUB_MOD_INIT): Likewise.
5055 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
5056 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5057 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5058 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5059 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
5060 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
5061 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
5062 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
5064 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5066 Use search command for preliminar UUID search.
5068 * commands/search.c: Split into ...
5069 * commands/search_wrap.c: ...this
5070 * commands/search.c: ...and this.
5071 * commands/search_file.c: New file.
5072 * commands/search_label.c: New file.
5073 * commands/search_uuid.c: New file.
5074 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
5075 Add commands/search_wrap.c, commands/search_file.c,
5076 commands/search_label.c and commands/search_uuid.c.
5077 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
5078 (search_mod_SOURCES): Set to commands/search_wrap.c.
5079 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
5081 (search_fs_file_mod_SOURCES): New variable.
5082 (search_fs_file_mod_CFLAGS): Likewise.
5083 (search_fs_file_mod_LDFLAGS): Likewise.
5084 (search_label_mod_SOURCES): Likewise.
5085 (search_label_mod_CFLAGS): Likewise.
5086 (search_label_mod_LDFLAGS): Likewise.
5087 (search_fs_uuid_mod_SOURCES): New variable.
5088 (search_fs_uuid_mod_CFLAGS): Likewise.
5089 (search_fs_uuid_mod_LDFLAGS): Likewise.
5090 (fs_file_mod_SOURCES): Removed.
5091 (fs_file_mod_CFLAGS): Likewise.
5092 (fs_file_mod_LDFLAGS): Likewise.
5093 (fs_uuid_mod_SOURCES): Removed.
5094 (fs_uuid_mod_CFLAGS): Likewise.
5095 (fs_uuid_mod_LDFLAGS): Likewise.
5096 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
5097 Set to util/grub-install.in.
5098 * disk/fs_file.c: Removed.
5099 * disk/fs_uuid.c: Likewise.
5100 * include/grub/search.h: New file.
5101 * util/grub-install.in: Handle sparc64.
5102 Create and use load.cfg.
5103 * util/sparc64/ieee1275/grub-install.in: Removed.
5105 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5107 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
5108 Ignore return status if CF is cleared.
5109 (grub_biosdisk_get_diskinfo_standard): Likewise.
5111 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5113 * term/i386/pc/at_keyboard.c
5114 (keyboard_controller_wait_untill_ready): New function.
5115 (grub_keyboard_controller_write, grub_keyboard_controller_read)
5116 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
5117 for keyboard polling, rather than duplicate the same loop. This
5118 saves a few bytes in code size.
5120 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5122 Support for (pxe[:server[:gateway]]) syntax and
5123 use environment variable for PXE.
5125 * commands/i386/pc/pxecmd.c (options): Removed.
5126 (print_ip): Removed.
5127 (grub_cmd_pxe): Removed
5128 (grub_cmd_pxe_unload): New function.
5129 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
5130 (grub_pxe_your_ip): Made static.
5131 (grub_pxe_default_server_ip): Likewise.
5132 (grub_pxe_default_gateway_ip): Likewise.
5133 (grub_pxe_blksize): Likewise.
5134 (parse_ip): New function.
5135 (grub_pxe_open): Support server and gateway specification.
5136 (grub_pxe_close): Free disk->data.
5137 (grub_pxefs_open): Use disk->data.
5138 (grub_pxefs_read): Likewise.
5139 (grub_env_write_readonly): New function.
5140 (set_mac_env): Likewise.
5141 (set_env_limn_ro): Likewise.
5142 (parse_dhcp_vendor): Likewise.
5143 (grub_pxe_detect): Set the environment variables.
5144 (set_ip_env): New function.
5145 (write_ip_env): Likewise.
5146 (grub_env_write_pxe_default_server): Likewise.
5147 (grub_env_write_pxe_default_gateway): Likewise.
5148 (grub_env_write_pxe_blocksize): Likewise.
5149 (GRUB_MOD_INIT(pxe)): Set environment variables.
5150 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
5151 (grub_pxe_mac_addr_t): ... this. All users updated.
5152 (grub_pxe_your_ip): Removed.
5153 (grub_pxe_server_ip): Likewise.
5154 (grub_pxe_gateway_ip): Likewise.
5155 (grub_pxe_blksize): Likewise.
5157 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5159 * commands/help.c: Include `<grub/i18n.h>'.
5160 (grub_cmd_help): Gettextizze.
5161 (GRUB_MOD_INIT): Likewise.
5162 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
5163 (GRUB_MOD_INIT): Gettextizze.
5164 * commands/search.c: Include `<grub/i18n.h>'.
5165 (options): Gettextizze.
5166 (GRUB_MOD_INIT): Gettextizze.
5167 * lib/arg.c: Include `<grub/i18n.h>'.
5168 (help_options): Gettextizze.
5169 (find_long): Likewise.
5170 (grub_arg_show_help): Likewise.
5171 * normal/dyncmd.c: Include `<grub/i18n.h>'.
5172 (read_command_list): Gettextizze.
5173 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
5174 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
5176 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5178 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
5179 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
5180 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
5181 (led_status): New variable.
5182 (keyboard_controller_led): New function.
5183 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
5184 update led status for caps lock, num lock and scroll lock.
5186 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
5188 * util/hostdisk.c (open_device): Fix a comment.
5190 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5192 * util/grub-install.in (host_os): New variable.
5193 * util/i386/efi/grub-install.in (host_os): Likewise.
5195 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5197 * util/mkisofs/write.c (padblock_write): Abort when given an
5198 excedingly large embed image, instead of silently truncating it.
5200 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5202 * include/multiboot.h: Indentation fixes.
5204 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5206 * include/multiboot.h (struct multiboot_aout_symbol_table)
5207 (struct multiboot_elf_section_header_table): New structure
5208 declarations (stolen from GRUB Legacy).
5209 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
5212 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
5213 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
5216 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5218 * include/multiboot.h: Make comments src2texi-friendly.
5220 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5222 For consistency with [multiboot]/docs/boot.S.
5224 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
5225 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
5226 (MULTIBOOT_MAGIC2): Rename from this ...
5227 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
5229 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5231 * include/multiboot.h: Remove `<grub/types.h>'.
5232 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
5233 types. Update all users.
5235 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5237 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
5238 `couldn't' and `can not' by `cannot'.
5239 * commands/i386/pc/drivemap.c: Likewise.
5240 * disk/ata.c: Likewise.
5241 * disk/ieee1275/nand.c: Likewise.
5242 * fs/affs.c: Likewise.
5243 * fs/fat.c: Likewise.
5244 * fs/hfs.c: Likewise.
5245 * fs/hfsplus.c: Likewise.
5246 * fs/iso9660.c: Likewise.
5247 * fs/jfs.c: Likewise.
5248 * fs/minix.c: Likewise.
5249 * fs/reiserfs.c: Likewise.
5250 * fs/sfs.c: Likewise.
5251 * fs/udf.c: Likewise.
5252 * fs/ufs.c: Likewise.
5253 * fs/xfs.c: Likewise.
5254 * loader/powerpc/ieee1275/linux.c: Likewise.
5255 * loader/sparc64/ieee1275/linux.c: Likewise.
5256 * util/grub-probe.c: Likewise.
5257 * util/misc.c: Likewise.
5259 2009-12-24 Carles Pina i Estany <carles@pina.cat>
5261 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
5263 * commands/acpi.c: Likewise.
5264 * commands/blocklist.c: Likewise.
5265 * commands/efi/loadbios.c: Likewise.
5266 * commands/i386/pc/drivemap.c: Likewise.
5267 * commands/loadenv.c: Likewise.
5268 * commands/memrw.c: Likewise.
5269 * commands/password.c: Likewise.
5270 * commands/videotest.c: Likewise.
5271 * disk/ata.c: Likewise.
5272 * disk/ata_pthru.c: Likewise.
5273 * disk/dmraid_nvidia.c: Likewise.
5274 * disk/ieee1275/nand.c: Likewise.
5275 * disk/ieee1275/ofdisk.c: Likewise.
5276 * disk/loopback.c: Likewise.
5277 * disk/lvm.c: Likewise.
5278 * disk/mdraid_linux.c: Likewise.
5279 * disk/raid.c: Likewise.
5280 * disk/raid6_recover.c: Likewise.
5281 * disk/scsi.c: Likewise.
5282 * efiemu/main.c: Likewise.
5283 * efiemu/mm.c: Likewise.
5284 * efiemu/pnvram.c: Likewise.
5285 * efiemu/symbols.c: Likewise.
5286 * font/font.c: Likewise.
5287 * fs/cpio.c: Likewise.
5288 * fs/hfsplus.c: Likewise.
5289 * fs/iso9660.c: Likewise.
5290 * fs/jfs.c: Likewise.
5291 * fs/minix.c: Likewise.
5292 * fs/ntfs.c: Likewise.
5293 * fs/ntfscomp.c: Likewise.
5294 * fs/reiserfs.c: Likewise.
5295 * fs/ufs.c: Likewise.
5296 * fs/xfs.c: Likewise.
5297 * gettext/gettext.c: Likewise.
5298 * include/grub/auth.h: Likewise.
5299 * kern/elf.c: Likewise.
5300 * kern/file.c: Likewise.
5301 * kern/ieee1275/init.c: Likewise.
5302 * kern/ieee1275/mmap.c: Likewise.
5303 * kern/ieee1275/openfw.c: Likewise.
5304 * kern/powerpc/dl.c: Likewise.
5305 * kern/sparc64/dl.c: Likewise.
5306 * lib/arg.c: Likewise.
5307 * loader/i386/bsd.c: Likewise.
5308 * loader/i386/bsdXX.c: Likewise.
5309 * loader/i386/efi/linux.c: Likewise.
5310 * loader/i386/efi/xnu.c: Likewise.
5311 * loader/i386/ieee1275/linux.c: Likewise.
5312 * loader/i386/linux.c: Likewise.
5313 * loader/i386/multiboot.c: Likewise.
5314 * loader/i386/pc/linux.c: Likewise.
5315 * loader/i386/pc/multiboot2.c: Likewise.
5316 * loader/i386/xnu.c: Likewise.
5317 * loader/ieee1275/multiboot2.c: Likewise.
5318 * loader/macho.c: Likewise.
5319 * loader/machoXX.c: Likewise.
5320 * loader/multiboot2.c: Likewise.
5321 * loader/multiboot_loader.c: Likewise.
5322 * loader/powerpc/ieee1275/linux.c: Likewise.
5323 * loader/sparc64/ieee1275/linux.c: Likewise.
5324 * loader/xnu.c: Likewise.
5325 * loader/xnu_resume.c: Likewise.
5326 * mmap/i386/pc/mmap.c: Likewise.
5327 * normal/menu_viewer.c: Likewise.
5328 * partmap/acorn.c: Likewise.
5329 * partmap/amiga.c: Likewise.
5330 * partmap/apple.c: Likewise.
5331 * script/lexer.c: Likewise.
5332 * term/gfxterm.c: Likewise.
5333 * term/i386/pc/serial.c: Likewise.
5334 * term/i386/pc/vga.c: Likewise.
5335 * term/ieee1275/ofconsole.c: Likewise.
5336 * term/terminfo.c: Likewise.
5337 * video/bitmap.c: Likewise.
5338 * video/efi_gop.c: Likewise.
5339 * video/efi_uga.c: Likewise.
5340 * video/fb/video_fb.c: Likewise.
5341 * video/i386/pc/vbe.c: Likewise.
5342 * video/readers/tga.c: Likewise.
5343 * video/video.c: Likewise.
5345 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
5347 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
5348 * commands/lspci.c: Likewise.
5349 * commands/probe.c: Likewise.
5350 * commands/xnu_uuid.c: Likewise.
5351 * conf/i386-coreboot.rmk: Likewise.
5352 * conf/i386-efi.rmk: Likewise.
5353 * conf/i386-ieee1275.rmk: Likewise.
5354 * conf/i386-pc.rmk: Likewise.
5355 * conf/powerpc-ieee1275.rmk: Likewise.
5356 * conf/sparc64-ieee1275.rmk: Likewise.
5357 * conf/x86_64-efi.rmk: Likewise.
5358 * fs/i386/pc/pxe.c: Likewise.
5359 * gettext/gettext.c: Likewise.
5360 * include/grub/efi/graphics_output.h: Likewise.
5361 * include/grub/i386/pc/memory.h: Likewise.
5362 * kern/env.c: Likewise.
5363 * kern/i386/qemu/startup.S: Likewise.
5364 * lib/i386/pc/biosnum.c: Likewise.
5365 * lib/i386/relocator.c: Likewise.
5366 * lib/i386/relocator_asm.S: Likewise.
5367 * lib/relocator.c: Likewise.
5368 * loader/i386/bsd.c: Likewise.
5369 * loader/i386/multiboot.c: Likewise.
5370 * loader/i386/pc/chainloader.c: Likewise.
5371 * loader/i386/xnu.c: Likewise.
5372 * loader/xnu.c: Likewise.
5373 * normal/main.c: Likewise.
5374 * normal/menu_text.c: Likewise.
5375 * util/getroot.c: Likewise.
5376 * util/grub-mkconfig_lib.in: Likewise.
5377 * util/grub.d/00_header.in: Likewise.
5378 * util/i386/pc/grub-mkimage.c: Likewise.
5379 * util/mkisofs/eltorito.c: Likewise.
5380 * util/mkisofs/exclude.h: Likewise.
5381 * util/mkisofs/hash.c: Likewise.
5382 * util/mkisofs/iso9660.h: Likewise.
5383 * util/mkisofs/joliet.c: Likewise.
5384 * util/mkisofs/mkisofs.c: Likewise.
5385 * util/mkisofs/mkisofs.h: Likewise.
5386 * util/mkisofs/multi.c: Likewise.
5387 * util/mkisofs/name.c: Likewise.
5388 * util/mkisofs/rock.c: Likewise.
5389 * util/mkisofs/tree.c: Likewise.
5390 * util/mkisofs/write.c: Likewise.
5391 * video/efi_gop.c: Likewise.
5393 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
5395 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
5398 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5400 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
5401 * genmk.rb (class SCRIPT): Modify the target file instead of source.
5403 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5405 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
5406 (GRUB_MOD_INIT(memrw)): Update help line.
5408 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5410 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
5411 Use grub_extcmd_t. All users updated.
5412 (options): New variable.
5413 (grub_cmd_read): Restructure for readability. Support "-v" option.
5414 (grub_cmd_write): Restructure for readability.
5416 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5418 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
5420 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5422 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
5423 with the actual contents of the correspondending make variable.
5424 * util/grub-mkrescue.in (pkglib_DATA): New variable.
5425 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
5426 specifying `*.lst' and `efiemu??.o'
5428 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5430 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
5431 after function name.
5432 Noticed by Rene Engelhard <rene@debian.org>.
5434 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5436 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
5437 (options): New variable.
5438 (iospace): Likewise.
5439 (grub_lspci_iter): List IO spaces if "-i" was given.
5440 (grub_cmd_lspci): Parse options.
5441 (GRUB_MOD_INIT(lspci)): Use extcmd.
5442 (GRUB_MOD_FINI(lspci)): Likewise.
5444 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5446 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
5448 Patch by Tony Mancill <tmancill@debian.org>.
5450 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5452 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
5453 (grub_uhci_portstatus): Likewise.
5454 (grub_uhci_portstatus): Add necessary delay.
5455 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
5457 2009-12-21 Carles Pina i Estany <carles@pina.cat>
5459 * commands/acpi.c (options): Fix capitalizations and/or full stops.
5460 (GRUB_MOD_INIT): Likewise.
5461 * commands/boot.c (GRUB_MOD_INIT): Likewise.
5462 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
5463 * commands/echo.c (options): Fix capitalizations and/or full stops.
5464 * commands/efi/loadbios.c (enable_rom_area): Likewise.
5465 (enable_rom_area): Likewise.
5466 (GRUB_MOD_INIT): Likewise.
5467 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5468 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
5469 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5470 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
5471 * commands/hexdump.c (options): Likewise.
5472 * commands/i386/cpuid.c (options): Likewise.
5473 (GRUB_MOD_INIT): Likewise.
5474 * commands/i386/pc/drivemap.c (options): Likewise.
5475 (GRUB_MOD_INIT): Likewise.
5476 * commands/i386/pc/halt (options): Likewise.
5477 (GRUB_MOD_INIT): Likewise.
5478 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5479 * commands/i386/pc/pxecmd.c (options): Likewise.
5480 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
5481 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
5482 * commands/keystatus.c (options): Likewise.
5483 (GRUB_MOD_INIT): Likewise.
5484 * commands/loadenv.c (options): Likewise.
5485 * commands/ls.c (options): Likewise.
5486 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5487 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5488 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5489 * commands/parttool.c (helpmsg): Likewise.
5490 * commands/probe.c (options): Likewise.
5491 * commands/read.c (GRUB_MOD_INIT): Likewise.
5492 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
5493 * commands/search.c (options): Likewise.
5494 * commands/sleep.c (options): Likewise.
5495 * commands/test.c (GRUB_MOD_INIT): Likewise.
5496 * commands/true.c (GRUB_MOD_INIT): Likewise.
5497 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
5498 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
5499 * lib/arg.c (help_options): Likewise.
5500 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
5502 * po/POTFILES: Add `commands/loadenv.c'.
5504 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
5506 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
5507 instead of specifying them explicit.
5509 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5511 * NEWS: Add grub-probe support for GNU/Hurd.
5513 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5515 * NEWS: gettext was added after 1.97.
5517 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5519 * util/mkisofs/msdos_partition.h: New file (based on
5520 include/grub/msdos_partition.h).
5521 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
5522 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
5523 (ld_options, main): Recognize --protective-msdos-label.
5524 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
5525 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
5526 (padblock_write): If `use_protective_msdos_label' is set, patch a
5527 protective DOS-style label in the output image.
5529 * util/grub-mkrescue.in: Use --protective-msdos-label.
5531 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5533 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
5536 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5538 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
5540 (ld_options, main): Recognize `--embedded-boot'.
5541 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
5543 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
5544 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
5545 (padblock_write): Likewise. Rewrite to support embedded boot image.
5547 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
5548 for BIOS-based disk boot instead of only ElTorito.
5550 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5552 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
5553 build (not needed for bootstrap).
5555 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5557 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
5558 from i386-pc build (not needed for bootstrap).
5559 Rewrite a pair of strings.
5561 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5563 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
5565 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
5567 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
5569 2009-12-21 Andreas Born <futur.andy@googlemail.com>
5571 * kern/env.c (grub_env_context_open): Mark exported variable for
5574 2009-12-21 Andreas Born <futur.andy@googlemail.com>
5576 * kern/env.c (grub_env_export): Create nonexistent variables before
5579 2009-12-20 Carles Pina i Estany <carles@pina.cat>
5581 * include/grub/auth.h: Include `<grub/i18n.h>'.
5582 (GRUB_GET_PASSWORD): Gettextizze string.
5583 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
5585 (grub_utf8_to_ucs4_alloc): Fix indentation.
5586 (grub_print_ucs4): Likewise.
5587 (grub_getstringwidth): Likewise.
5588 (print_message_indented): New declaration.
5589 * normal/auth.c: Include `<grub/i18n.h>'.
5590 (grub_auth_check_authentication): Gettexttize string.
5591 * normal/cmdline.c: Include `<grub/i18n.h>'.
5592 (grub_cmdline_get): Gettextizze.
5593 * normal/color.c: Include `<grub/i18n.h>'.
5594 (grub_parse_color_name_pair): Gettexttize strings.
5595 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
5596 string (use `print_message_indented').
5597 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
5598 `include/grub/normal.h'.
5599 (print_message_indented): Renamed to ...
5600 (grub_print_message_indented): ... this. Remove `static' qualifer (now
5601 used in normal/main.c).
5602 (print_message): Use `grub_print_message_indented' instead of
5603 `print_message_indented'.
5604 (print_timeout): Likewise.
5605 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
5606 (grub_normal_print_device_info): Gettexttize strings.
5607 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
5609 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5611 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
5612 of arguments. Return number of tokens and not arguments. All users
5615 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5617 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
5618 non-MSDOS paritions.
5620 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
5622 * include/grub/types.h (UNUSED): Removed since it conflicts with
5623 NetBSD headers. All users changed to direct __attribute__ ((unused)).
5624 Reported by Grégoire Sutre.
5626 2009-12-19 Carles Pina i Estany <carles@pina.cat>
5628 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
5629 (grub_print_ucs4_alloc): Likewise.
5630 (grub_getstringwidth): Likewise.
5631 * normal/main.c (grub_normal_init_page): Gettextize version string.
5632 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
5633 (getstringwidth): Renamed to ...
5634 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
5635 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
5636 (grub_print_ucs4): Remove `static' qualifer (now used in
5638 * po/POTFILES: Add normal/main.c.
5640 2009-12-19 Carles Pina i Estany <carles@pina.cat>
5642 * normal/menu_text.c (STANDARD_MARGIN): New macro.
5643 (print_message_indented): Add `margin_left' and `margin_right'
5645 (print_message): Update `print_message_indented' calls. Adds '\n' to the
5647 (print_timeout): Use `print_message_indented' to print the message.
5648 Deletes `second_stage' parameter.
5649 (run_menu): Update `print_timeout' calls.
5651 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5653 Fix console palette on OpenFirmware.
5655 * term/ieee1275/ofconsole.c (MAX): Removed.
5656 (colors): Redone based on VGA palette.
5657 (grub_ofconsole_setcolor): Discard brightness bit since only 8
5658 colors are supported.
5659 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
5661 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5663 Fix potential EfiEmu double prepare.
5665 * efiemu/main.c (prepared): New variable
5666 (grub_efiemu_unload): Set prepare to '0'.
5667 (grub_efiemu_prepare): Return if already prepared. Set prepared.
5669 set_virtual_address_map support.
5671 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
5673 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
5675 (grub_efiemu_crc32): Likewise.
5676 (grub_efiemu_crc64): Likewise.
5677 (grub_efiemu_set_virtual_address_map): Likewise.
5678 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
5680 (grub_autoefi_set_virtual_address_map): Likewise.
5681 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
5682 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
5683 Restructure flow to accomodate it.
5684 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
5685 (grub_efiemu_crc): Recompute CRC32.
5686 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
5687 (efiemu_ptv_relocated): ... this. Made global. All users updated.
5688 * efiemu/symbols.c (relocated_handle): New variable.
5689 (grub_efiemu_free_syms): Free relocated_handle.
5690 (grub_efiemu_alloc_syms): Allocate relocated_handle.
5691 (grub_efiemu_write_sym_markers): New function.
5692 (grub_efiemu_set_virtual_address_map): Likewise.
5694 Newer XNU parameters.
5696 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
5697 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
5698 (grub_xnu_fill_devicetree): New prototype.
5699 (grub_xnu_heap_real_start): New variable.
5700 * loader/xnu.c (get_name_ptr): New function.
5701 (grub_xnu_load_driver): Fill namelen and name.
5705 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
5706 and 'loader/macho64.c'.
5707 * conf/i386-pc.rmk: Likewise.
5708 * conf/x86_64-efi.rmk: Likewise.
5709 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
5710 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
5711 * include/grub/macho.h (grub_macho_segment64): New structure.
5712 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
5713 (grub_macho_size32): ... to this.
5714 (grub_macho32_get_entry_point): Renamed from ...
5715 (grub_macho_get_entry_point32): ... to this.
5716 (grub_macho_contains_macho64): New prototype.
5717 (grub_macho_size64): Likewise.
5718 (grub_macho_get_entry_point64): Likewise.
5719 (grub_macho32_load): Renamed from ...
5720 (grub_macho_load32): ... to this.
5721 (grub_macho32_filesize): Renamed from ...
5722 (grub_macho_filesize32): ... to this.
5723 (grub_macho32_readfile): Renamed from ...
5724 (grub_macho_readfile32): ... to this.
5725 (grub_macho_filesize64): New prototype.
5726 (grub_macho_readfile64): Likewise.
5727 (grub_macho_parse32): Likewise.
5728 (grub_macho_parse64): Likewise.
5729 * loader/macho.c: Split into ...
5730 * loader/machoXX.c: ... and this. Replace 32 with XX.
5731 * loader/macho32.c: New file.
5732 * loader/macho64.c: Likewise.
5733 * loader/xnu.c (grub_xnu_is_64bit): New variable.
5734 (grub_cmd_xnu_kernel): Make 32-bit only.
5735 (grub_cmd_xnu_kernel64): New function.
5736 (grub_xnu_load_driver): Support Mach-O 64.
5737 (grub_cmd_xnu_mkext): Likewise.
5738 * util/grub.d/30_os-prober.in (osx_entry): New function.
5739 Generate entries for 64-bit boot too.
5741 Eliminate ad-hoc tree format in XNU and EfiEmu.
5743 * efiemu/main.c (grub_efiemu_prepare): Update comment.
5744 * efiemu/pnvram.c: Rewritten to use environment variables.
5747 Inline utf16_to_utf8.
5749 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
5750 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
5752 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
5754 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
5755 * commands/usbtest.c (grub_usb_get_string): ... move here.
5756 (usb_print_str): Fix error handling.
5757 * include/grub/usb.h (grub_usb_get_string): Remove.
5759 UTF-8 to UTF-16 transformation.
5761 * conf/common.rmk (pkglib_MODULES): Add charset.mod
5762 (charset_mod_SOURCES): New variable.
5763 (charset_mod_CFLAGS): Likewise.
5764 (charset_mod_LDFLAGS): Likewise.
5765 * include/grub/utf.h: New file.
5766 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
5768 Support for device properties.
5770 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
5771 (grub_xnu_devprop_device_header): Likewise.
5772 (grub_xnu_devprop_device_descriptor): Likewise.
5773 (grub_xnu_devprop_add_device): New prototype.
5774 (grub_xnu_devprop_remove_device): Likewise.
5775 (grub_xnu_devprop_remove_property): Likewise.
5776 (grub_xnu_devprop_add_property_utf8): Likewise.
5777 (grub_xnu_devprop_add_property_utf16): Likewise.
5778 (grub_cpu_xnu_init): Likewise.
5779 (grub_cpu_xnu_fini): Likewise.
5780 (grub_cpu_xnu_unload): Likewise.
5781 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
5782 (property_descriptor): Likewise.
5783 (devices): New variable.
5784 (grub_xnu_devprop_remove_property): New function.
5785 (grub_xnu_devprop_add_device): Likewise.
5786 (grub_xnu_devprop_remove_device): Likewise.
5787 (grub_xnu_devprop_add_property): Likewise.
5788 (grub_xnu_devprop_add_property_utf8): Likewise.
5789 (grub_xnu_devprop_add_property_utf16): Likewise.
5790 (hextoval): Likewise.
5791 (grub_cpu_xnu_fill_devprop): Likewise.
5792 (grub_cmd_devprop_load): Likewise.
5793 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
5794 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
5795 (cmd_devprop_load): New variable.
5796 (grub_cpu_xnu_init): New function.
5797 (grub_cpu_xnu_fini): Likewise.
5798 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
5799 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
5800 (grub_cmd_xnu_devtree): Likewise.
5801 (hextoval): New function.
5802 (unescape): Likewise.
5803 (grub_xnu_fill_devicetree): Likewise.
5805 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
5806 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
5808 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5810 Workaround for broken ATI VBE.
5812 * video/i386/pc/vbe.c (last_set_mode): New variable.
5813 (grub_vbe_set_video_mode): Set 'last_set_mode'.
5814 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
5815 (grub_video_vbe_setup): Don't check for reserved flag.
5817 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
5819 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
5822 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
5824 UUID support for HFS.
5826 * fs/hfs.c (grub_hfs_uuid): New function.
5827 (grub_hfs_fs): New value .uuid.
5828 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
5830 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
5832 Fix a segfault with parsing unknown long options.
5834 * util/grub-mkrelpath.c (options): Zero terminate it.
5836 2009-12-13 Carles Pina i Estany <carles@pina.cat>
5838 * include/grub/misc.h (grub_puts): New declaration.
5839 (grub_puts_): Likewise.
5840 * kern/misc.c (grub_puts): New definition.
5841 (grub_puts_): Likewise.
5843 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
5845 * util/grub-probe.c (probe): Improve error message.
5847 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
5849 * loader/i386/multiboot_elfxx.c
5850 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
5853 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
5857 * loader/i386/xnu_helper.S: Removed. All users updated.
5858 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
5859 (relocator_mod_SOURCES): New variable.
5860 (relocator_mod_CFLAGS): Likewise.
5861 (relocator_mod_LDFLAGS): Likewise.
5862 (relocator_mod_ASFLAGS): Likewise.
5863 * conf/x86_64.rmk: Likewise.
5864 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
5865 (grub_multiboot_payload_entry_offset): Likewise.
5866 (grub_multiboot_forward_relocator): Likewise.
5867 (grub_multiboot_forward_relocator_end): Likewise.
5868 (grub_multiboot_backward_relocator): Likewise.
5869 (grub_multiboot_backward_relocator_end): Likewise.
5870 (grub_multiboot_payload_eip): New variable.
5871 (grub_multiboot_payload_orig): Likewise.
5872 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
5873 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
5874 * include/grub/i386/memory.h
5875 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
5876 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
5877 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
5878 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
5879 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
5880 * include/grub/i386/relocator.h: New file.
5881 * include/grub/x86_64/relocator.h: Likewise.
5882 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
5883 (XNU_RELOCATOR): New macro.
5884 (grub_xnu_launcher_start): Remove.
5885 (grub_xnu_launcher_end): Likewise.
5886 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
5887 (grub_xnu_heap_real_start): Remove.
5888 (grub_xnu_heap_start): Change to void *. All users updated.
5889 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
5890 * lib/i386/relocator.c: New file.
5891 * lib/i386/relocator_asm.S: Likewise.
5892 * lib/i386/relocator_backward.S: Likewise.
5893 * lib/mips/relocator.c: Likewise.
5894 * lib/mips/relocator_asm.S: Likewise.
5895 * lib/relocator.c: Likewise.
5896 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
5898 (playground): Likewise.
5899 (grub_multiboot_payload_orig): New variable.
5900 (grub_multiboot_payload_dest): Likewise.
5901 (grub_multiboot_payload_size): Likewise.
5902 (grub_multiboot_payload_eip): Likewise.
5903 (grub_multiboot_payload_esp): Likewise.
5904 (grub_multiboot_boot): Use grub_relocator32_boot.
5905 (grub_multiboot_unload): Free relocators.
5906 (grub_multiboot): Setup stack. Use relocators.
5907 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
5908 (grub_multiboot_load_elfXX): Use relocators.
5909 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
5910 (grub_multiboot_payload_size): Likewise.
5911 (grub_multiboot_payload_dest): Likewise.
5912 (grub_multiboot_payload_entry_offset): Likewise.
5913 (grub_multiboot_forward_relocator): Likewise.
5914 (grub_multiboot_backward_relocator): Likewise.
5915 (grub_multiboot_real_boot): Likewise.
5916 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
5917 (grub_xnu_entry_point): Likewise.
5918 (grub_xnu_arg1): Likewise.
5919 (grub_xnu_stack): Likewise.
5920 (grub_xnu_launch): Removed.
5921 (grub_xnu_boot_resume): New function.
5922 (grub_xnu_boot): Use relocators.
5923 * loader/i386/xnu_helper.S: Removed.
5924 * loader/xnu.c (grub_xnu_heap_start): New variable.
5925 (grub_xnu_heap_size): Likewise.
5926 (grub_xnu_heap_malloc): Use relocators.
5927 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
5929 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
5931 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
5934 2009-12-13 Carles Pina i Estany <carles@pina.cat>
5936 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
5937 GRUB_ERR_NONE before calling grub_env_set.
5939 2009-12-12 Robert Millan <rmh@aybabtu.com>
5941 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
5942 * genmk.rb (video): New variable.
5943 (CLEANFILES, VIDEOFILES): Add #{video}.
5944 (#{video}): New target rule.
5945 * genvideolist.sh: New file.
5946 * Makefile.in (pkglib_DATA): Add video.lst.
5947 (video.lst): New target rule.
5948 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
5950 * util/grub.d/30_os-prober.in: Replace `vbe' with
5951 ${GRUB_VIDEO_BACKEND}.
5953 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
5955 * THANKS: Add David Miller.
5957 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
5959 libpciaccess support.
5961 * Makefile.in (LIBPCIACCESS): New variable.
5962 (enable_grub_emu_pci): Likewise.
5963 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
5964 util/pci.c and commands/lspci.c.
5965 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
5966 * configure.ac (grub-emu-pci): New option.
5967 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
5968 (grub_pci_device_unmap_range): Likewise.
5969 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
5970 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
5971 (grub_pci_address_t) [!GRUB_UTIL]: New type.
5972 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
5973 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
5974 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
5975 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
5976 * include/grub/pciutils.h: New file.
5977 * util/pci.c: Likewise.
5979 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
5981 * util/misc.c: Don't include <errno.h> twice.
5983 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
5985 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
5986 name in an error message.
5987 (grub_biosdisk_rw): Likewise.
5989 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5991 Eliminate NTFS 4Gib barrier.
5993 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
5994 (read_run_data): Likewise.
5995 (grub_ntfs_read_run_list): Likewise.
5996 (grub_ntfs_read_block): Likewise.
5997 (grub_ntfs_iterate_dir): Likewise.
5998 (read_mft): Likewise.
5999 (read_data): Likewise.
6001 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
6002 to avoid 64-bit division
6003 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
6004 (grub_ntfs_rlst): Use grub_disk_addr_t.
6006 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6008 Eliminate grub-fstest 4Gib barrier.
6010 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
6011 (read_file): Fix error reporting.
6013 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6015 Eliminate hexdump 4Gib barrier.
6017 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
6018 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
6020 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6022 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
6025 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
6027 Remove miscellaneous files in distclean target.
6029 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
6031 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
6033 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
6034 if they're already set. This resolves the conflict between my
6035 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
6036 fixing the --grub-probe option again.
6037 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
6038 change on 2009-10-06, so that we now once again source
6039 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
6041 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
6043 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
6044 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
6047 2009-12-08 Carles Pina i Estany <carles@pina.cat>
6049 * include/grub/misc.h (grub_printf_): New declaration.
6050 * kern/misc.c (grub_printf_): New definition.
6051 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
6052 instead of `grub_printf' and `_'.
6053 * normal/menu_entry.c (store_completion): Likewise.
6055 (grub_menu_entry_run): Likewise.
6056 * normal/menu_text.c (grub_wait_after_message): Likewise.
6057 (notify_booting): Likewise.
6058 (notify_fallback): Likewise.
6059 (notify_execution_failure): Likewise.
6061 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
6063 * configure.ac: Check for vasprintf.
6064 * util/misc.c (asprintf): Move allocation from here ...
6065 (vasprintf): ... to here. New function.
6066 (xasprintf): New function.
6067 * include/grub/util/misc.h (vasprintf, xasprintf): Add
6069 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
6070 * util/grub-mkfont.c (write_font): Likewise.
6071 * util/grub-probe.c (probe): Likewise.
6072 * util/hostdisk.c (make_device_name): Likewise.
6074 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
6076 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
6077 anything even prefixed with 'cdrom' as a cdrom.
6079 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
6081 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
6084 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6086 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
6087 grub_gettext_msg_list.
6088 (grub_gettext_gettranslation_from_position): Return const char *
6090 (grub_gettext_translate): Add the translated strings into a list,
6091 returns from the list if existing there.
6092 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
6093 (grub_gettext_delete_list): Delete the list.
6094 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
6095 lang environment variable is changed.
6096 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
6098 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6100 Rename kernel.mod to kernel.img.
6102 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
6103 (kernel_mod_EXPORTS): Rename to ...
6104 (kernel_img_EXPORTS): ... this.
6105 (kernel_mod_SOURCES): Rename to ...
6106 (kernel_img_SOURCES): ... this.
6107 (kernel_mod_HEADERS): Rename to ...
6108 (kernel_img_HEADERS): ... this. All users updated.
6109 (kernel_mod_CFLAGS): Rename to ...
6110 (kernel_img_CFLAGS): ... this.
6111 (kernel_mod_ASFLAGS): Rename to ...
6112 (kernel_img_ASFLAGS): ... this.
6113 (kernel_mod_LDFLAGS): Rename to ...
6114 (kernel_img_LDFLAGS): ... this.
6115 * conf/x86_64-efi.rmk: Likewise.
6116 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
6117 (read_kernel_image): ... this. All users updated.
6118 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
6120 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6122 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
6123 (print_spaces): New function.
6124 (grub_print_ucs4): New function.
6125 (getstringwidth): New function.
6126 (print_message_indented): New function.
6127 (print_message): Gettexttize strings using print_message_indented.
6128 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
6130 (get_entry_number): Gettextize and uses dynamic terminal width.
6131 (notify_booting, notify_fallback, notify_execution_failure):
6133 * normal/menu_entry.c (store_completion): Cleanup the gettextized
6136 (grub_menu_entry_run): Likewise.
6137 * PO/POTFILES: Add normal/menu_entry.c.
6139 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6141 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
6143 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6145 * util/grub-install.in: Install gettext .mo files.
6146 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
6148 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6150 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
6153 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
6155 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
6156 non-firmware-dependant one in realmode.S takes precedence.
6158 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
6160 * commands/halt.c: Replace misc arch-specific headers with
6162 * commands/reboot.c: Likewise.
6163 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
6165 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
6166 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
6167 (kernel_img_SOURCES): ... to here.
6169 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
6170 * include/grub/i386/pc/init.h: Likewise.
6171 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
6172 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
6174 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
6176 * include/grub/i386/halt.h: Remove.
6177 * include/grub/i386/reboot.h: Likewise.
6179 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
6181 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
6183 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
6184 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
6185 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
6187 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6188 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6189 (usage): Add missing comma in printf.
6191 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
6193 Use the same reboot approach on i386 coreboot and qemu as we do on
6196 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
6197 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
6198 * kern/i386/reboot.c: Remove.
6199 * include/grub/i386/reboot.h (grub_reboot): Export function.
6200 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
6201 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
6202 0xf000:0xfff0 instead of 0xffff:0x0000.
6203 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
6204 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
6206 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
6208 Fix $srcdir != $objdir build.
6210 * Makefile.in (po/%.po): Rewrite as ...
6211 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
6213 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
6215 Fix GNU/Hurd grub-install crash.
6216 * util/grub-probe.c (probe): Try to access `path' only when it is not
6219 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6221 Correct module naming.
6223 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6224 (GRUB_MOD_INIT(efi_uga)): ... to this
6225 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6226 (GRUB_MOD_FINI(efi_uga)): ... to this
6227 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6228 (GRUB_MOD_INIT(efi_gop)): ... to this
6229 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6230 (GRUB_MOD_FINI(efi_gop)): ... to this
6232 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
6234 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
6236 (usage): Translate `arg' strings using gettext().
6237 Thanks to Jordi Mallach for the suggestion.
6239 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6241 GOP support. Based on patch from Bean
6242 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6244 * video/efi_gop.c: New file.
6245 * include/grub/efi/graphics_output.h: Likewise.
6246 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
6247 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6249 * conf/x86_64-efi.rmk: Likewise.
6251 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6253 Rename efi_fb to efi_uga.
6255 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6257 (efi_fb_mod_SOURCES): Rename this ...
6258 (efi_uga_mod_SOURCES): ... to this.
6259 (efi_fb_mod_CFLAGS): Rename this ...
6260 (efi_uga_mod_CFLAGS): ... to this.
6261 (efi_fb_mod_LDFLAGS): Rename this ...
6262 (efi_uga_mod_LDFLAGS): ... to this.
6263 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6265 (efi_fb_mod_SOURCES): Rename this ...
6266 (efi_uga_mod_SOURCES): ... to this.
6267 (efi_fb_mod_CFLAGS): Rename this ...
6268 (efi_uga_mod_CFLAGS): ... to this.
6269 (efi_fb_mod_LDFLAGS): Rename this ...
6270 (efi_uga_mod_LDFLAGS): ... to this.
6271 * video/efi_fb.c: Move this ...
6272 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
6274 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6276 * po/README: New file. Explain our PO file workflow.
6278 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6280 * po/ChangeLog: Remove. Move relevant entries back to ...
6281 * ChangeLog: ... here.
6282 * po/ca.po: Remove (now handled by TLP).
6283 * po/id.po: Likewise.
6284 * po/zh_CN.po: Likewise.
6285 * Makefile.in (LINGUAS): Initialize in a way that supports
6288 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6290 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
6291 reliing on po/LINGUAS.
6292 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
6293 (po/%.po): ... this.
6295 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6297 * util/i386/efi/grub-mkimage.c: Include "progname.h".
6298 (main): Use `program_name' instead of nonexistent `progname'.
6300 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6302 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6303 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
6305 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6307 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
6309 * conf/i386-efi.rmk: Likewise.
6310 * conf/i386-ieee1275.rmk: Likewise.
6311 * conf/powerpc-ieee1275.rmk: Likewise.
6312 * conf/sparc64-ieee1275.rmk: Likewise.
6313 * conf/x86_64-efi.rmk: Likewise.
6315 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6317 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
6319 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6321 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
6323 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6325 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
6326 (grub_mkdevicemap_SOURCES): New variable.
6327 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
6328 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
6329 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
6330 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
6331 (grub_mkdevicemap_SOURCES): Remove.
6332 * conf/i386-efi.rmk: Likewise.
6333 * conf/i386-ieee1275.rmk: Likewise.
6334 * conf/i386-pc.rmk: Likewise.
6335 * conf/powerpc-ieee1275.rmk: Likewise.
6336 * conf/sparc64-ieee1275.rmk: Likewise.
6337 * conf/x86_64-efi.rmk: Likewise.
6338 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
6339 (usage): Fix strings to use `program_name'.
6340 (main): Initialize gettext.
6341 * util/grub-editenv.c: Likewise.
6342 * util/grub-emu.c: Likewise.
6343 * util/grub-fstest.c: Likewise.
6344 * util/grub-mkdevicemap.c: Likewise.
6345 * util/grub-mkfont.c: Likewise.
6346 * util/grub-mkrelpath.c: Likewise.
6347 * util/grub-pe2elf.c: Likewise.
6348 * util/grub-probe.c: Likewise.
6349 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
6350 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6351 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6353 * util/misc.c: Include `"progname.h"'.
6354 (progname): Remove variable.
6355 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
6357 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6359 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
6360 printf and print a newline after the menuentry header line.
6361 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
6363 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6365 autoconf >= 2.60 support $(localedir).
6367 * INSTALL: Note that autoconf 2.60 is required.
6368 * configure.ac (AC_PREREQ): Bump to 2.60.
6369 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
6370 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
6372 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
6374 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
6377 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6379 * normal/main.c (grub_normal_read_line): Fix off-by-one
6382 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6384 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
6385 "parser.grub" in grub_command_execute() call.
6387 2009-11-24 Carles Pina i Estany <carles@pina.cat>
6389 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
6390 * conf/i386-efi.rmk: Likewise.
6391 * conf/i386-ieee1275.rmk: Likewise.
6392 * conf/i386-pc.rmk: Likewise.
6393 * conf/powerpc-ieee1275.rmk: Likewise.
6394 * conf/sparc64-ieee1275.rmk: Likewise.
6395 * conf/x86_64-efi.rmk: Likewise.
6396 * gettext/gettex.c: Include <grub/i18n.h>.
6397 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
6399 * include/grub/i18n.h: ... to here
6400 * include/grub/i18n.h: ... to here.
6401 * kern/misc.c: Include <grub/i18n.h>
6402 (grub_gettext_dummy): Move above user.
6404 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6406 * util/Makefile.in (install-local): Convert a `for' into a normal
6409 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
6411 * autogen.sh: Add automake call.
6412 * config.guess: Remove.
6413 * config.sub: Likewise.
6414 * install-sh: Likewise.
6416 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6418 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
6420 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6422 * util/Makefile.in (install-local): Convert a make `$(foreach)'
6423 function to a normal shell `for'.
6425 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6427 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6429 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6431 * util/grub-mkrelpath.c: New file.
6432 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
6433 (grub_mkrelpath_SOURCES): New variable.
6434 * include/grub/util/misc.h: New function prototype.
6435 * util/misc.c (make_system_path_relative_to_its_root): New function.
6437 * util/grub-mkconfig_lib.in (bindir): New variable.
6438 (grub_mkrelpath): Likewise.
6439 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
6441 * util/probe.c (probe): Make the file path relative to its root.
6442 Change a info message to use the GRUB path. Enable again the
6443 check if we can read the file with GRUB facilities.
6445 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
6448 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6450 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
6453 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6455 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
6458 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6460 * util/getroot.c (grub_util_is_dmraid): New function.
6461 (grub_util_get_dev_abstraction): Treat dmraid and multipath
6462 devices as normal ones, not as LVM.
6464 2009-11-23 Carles Pina i Estany <carles@pina.cat>
6466 * conf/common.rmk: Add grub-gettext_lib target and updates
6467 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
6469 * gettext/gettext.c: New file. (Reads mo files).
6470 * include/grub/file.h (grub_file_pread): New prototype.
6471 * include/grub/i18n.h (_): New prototype.
6472 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
6474 * kern/misc.c (grub_gettext_dummy): New function.
6475 * normal/menu_text.c: Include <grub/i18n.h>.
6476 * normal/menu_text.c (print_timeout): Gettexttize string.
6477 * normal/menu_text.c (print_message): Gettexttize string.
6478 * po/POTFILES: Add `normal/menu_text.c'.
6479 * po/ca.po: Add new translations.
6480 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
6481 gettext module and defines locale_dir and lang in grub.cfg.
6482 * NEWS: Add gettext support.
6484 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6486 * util/hostdisk.c: Include `<grub/i18n.h>'.
6487 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
6488 (make_device_name): Rewrite using asprintf.
6489 (convert_system_partition_to_system_disk): Replace 0 with NULL.
6490 (find_system_device): If a device is not found, generate one just
6491 by reusing the OS path name.
6492 (read_device_map): Make it permissible for device.map not to exist.
6494 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6496 * script/sh/execute.c: Move from here ...
6497 * script/execute.c: ... to here. Update all users.
6498 * script/sh/function.c: Move from here ...
6499 * script/function.c: ... to here. Update all users.
6500 * script/sh/lexer.c: Move from here ...
6501 * script/lexer.c: ... to here. Update all users.
6502 * script/sh/main.c: Move from here ...
6503 * script/main.c: ... to here. Update all users.
6504 * script/sh/parser.y: Move from here ...
6505 * script/parser.y: ... to here. Update all users.
6506 * script/sh/script.c: Move from here ...
6507 * script/script.c: ... to here. Update all users.
6509 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6511 * configure.ac: Detect all `emu' platforms. Define
6512 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
6513 --enable-grub-emu logic. Disable include/grub/machine
6514 symlink on `emu' platforms.
6516 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
6517 * gensymlist.sh.in: Likewise.
6519 * include/grub/i386/coreboot/machine.h: Remove file.
6520 * include/grub/i386/efi/machine.h: Likewise.
6521 * include/grub/i386/ieee1275/machine.h: Likewise.
6522 * include/grub/i386/pc/machine.h: Likewise.
6523 * include/grub/i386/qemu/machine.h: Likewise.
6524 * include/grub/powerpc/ieee1275/machine.h: Likewise.
6525 * include/grub/sparc64/ieee1275/machine.h: Likewise.
6526 * include/grub/x86_64/efi/machine.h: Likewise.
6528 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
6529 * commands/halt.c: Likewise.
6530 * commands/reboot.c: Likewise.
6531 * include/grub/autoefi.h: Likewise.
6532 * include/grub/i386/at_keyboard.h: Likewise.
6533 * include/grub/i386/kernel.h: Likewise.
6534 * include/grub/i386/loader.h: Likewise.
6535 * include/grub/i386/pc/memory.h: Likewise.
6536 * kern/dl.c: Likewise.
6537 * kern/i386/coreboot/init.c: Likewise.
6538 * loader/i386/bsd.c: Likewise.
6539 * loader/i386/linux.c: Likewise.
6540 * loader/multiboot_loader.c: Likewise.
6541 * term/i386/pc/serial.c: Likewise.
6542 * term/usb_keyboard.c: Likewise.
6544 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
6545 `<grub/machine/machine.h>'
6546 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
6547 * util/misc.c: Remove `<grub/machine/machine.h>' and
6548 `<grub/machine/time.h>'.
6550 * Makefile.in (enable_grub_emu): Remove variable.
6551 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
6553 * conf/any-emu.rmk: New file.
6554 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
6555 (grub_emu_init.c): Move from here ...
6556 * conf/any-emu.rmk: ... to here.
6558 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
6559 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
6560 * conf/any-emu.rmk: ... to here.
6562 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6564 * include/grub/parser.h (grub_parser_register): Document need
6565 of `name' parameter.
6566 * normal/main.c (grub_normal_read_line): Simplify prompt string.
6567 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
6570 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6572 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
6574 * include/grub/i18n.h (N_): New macro.
6575 * util/mkisofs/mkisofs.h: Likewise.
6576 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
6578 (usage): Use gettext() to translate help strings when printing them.
6580 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6582 Based on patch from Bean
6583 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6585 * video/efi_fb.c: New file.
6586 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
6587 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6589 * conf/x86_64-efi.rmk: Likewise.
6591 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
6593 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
6594 * util/i386/pc/grub-setup.c: Likewise.
6596 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6598 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
6600 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
6601 file_get_storage_info to implement grub_guess_root_device.
6603 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6605 * Makefile.in (target): Use make's builtin $(shell) function
6606 instead of calling directly $(SHELL) to create the locale directories,
6607 inside the $(foreach) function.
6609 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6611 * util/grub-mkrescue.in: Print an error and usage if output option
6614 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6616 Patch from Loïc Minier <loic.minier@ubuntu.com>.
6617 * util/grub.d/30_os-prober.in: Cope with Linux entries where
6618 root and /boot are on different devices.
6620 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6622 Fix build for srcdir != objdir.
6624 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
6625 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
6627 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
6628 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
6629 reference for input.
6631 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6633 * util/grub-mkrescue.in: Use source directory direcly (without copiing
6634 or hardlinking it). Remove -J option, Joliet is not compatible with
6635 multiple source directories.
6637 2009-11-21 Carles Pina i Estany <carles@pina.cat>
6638 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6640 * util/grub-mkrescue.in: Recognize `--override-directory' option.
6641 (process_input_dir): New function. Process an arbitrary input
6643 Misc adjustments to support both "override mode" and system-wide mode.
6645 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
6647 * configure.ac (UNIFONT_BDF): Rename to ...
6648 (FONT_SOURCE): ... this. Update all users.
6650 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
6652 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
6653 to the list of unifont files to look for.
6655 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6657 Patch from Joe Auricchio <jauricchio@gmail.com>
6658 * commands/minicmd.c (grub_mini_cmd_clear): New function.
6659 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
6660 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
6662 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
6664 * Makefile.in (install-local): Add a missing backslash.
6666 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
6668 * include/grub/x86_64/io.h: New file.
6670 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6672 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
6673 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
6674 Include `"progname.h"'.
6675 (main): Initialize gettext.
6676 * util/i386/pc/grub-setup.c: Gettexttize.
6677 * util/i386/pc/grub-mkimage.c: Likewise.
6679 * Makefile.in (po/*.po): Redefine as ...
6680 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
6682 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
6684 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6686 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
6687 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
6688 (program_name): Remove.
6689 (main): Initialize gettext support.
6690 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
6691 Include `<libintl.h>'.
6694 * util/mkisofs/eltorito.c: Gettexttize.
6695 * util/mkisofs/joliet.c: Likewise.
6696 * util/mkisofs/mkisofs.c: Likewise.
6697 * util/mkisofs/multi.c: Likewise.
6698 * util/mkisofs/rock.c: Likewise.
6699 * util/mkisofs/tree.c: Likewise.
6700 * util/mkisofs/write.c: Likewise.
6702 * po/POTFILES: Update with new files.
6704 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6706 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
6707 * util/mkisofs/iso9660.h: Likewise.
6708 * util/mkisofs/joliet.c: Likewise.
6709 * util/mkisofs/mkisofs.c: Likewise.
6710 * util/mkisofs/mkisofs.h: Likewise.
6711 * util/mkisofs/rock.c: Likewise.
6712 * util/mkisofs/tree.c: Likewise.
6713 * util/mkisofs/write.c: Likewise.
6715 * util/mkisofs/eltorito.c (rcsid): Remove.
6716 * util/mkisofs/hash.c: Likewise.
6717 * util/mkisofs/joliet.c: Likewise.
6718 * util/mkisofs/name.c: Likewise.
6719 * util/mkisofs/rock.c: Likewise.
6720 * util/mkisofs/tree.c: Likewise.
6721 * util/mkisofs/write.c: Likewise.
6723 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6725 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
6726 instead of static allocation.
6727 * util/mkisofs/match.h: Likewise.
6729 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6731 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
6732 and `util/grub.d/10_linux.in'.
6733 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
6734 translatable Shell files.
6736 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6738 * Makefile.in ($(srcdir)/aclocal.m4): New target.
6740 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6742 * INSTALL: Document Automake is needed for bootstrap.
6743 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
6744 * util/grub.d/10_kfreebsd.in (bindir): New variable.
6745 Add gettext initialization.
6746 (kfreebsd_entry): Make menuentry output translatable.
6748 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6750 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
6751 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
6752 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
6753 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
6754 (LINGUAS): Auto-generate using `po/LINGUAS'.
6755 * po/LINGUAS: New file.
6757 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6759 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
6761 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
6762 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
6763 bindtextdomain() calls for gettext initialization.
6765 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6767 * gnulib/progname.c: New file (imported from Gnulib).
6768 * gnulib/progname.h: Likewise.
6769 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6770 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
6771 (usage): Replace `progname' with `program_name'.
6772 (main): Use set_program_name() for program name initialization.
6774 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6776 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
6778 * Makefile.in (CPPFLAGS): ... to here.
6780 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
6782 * aclocal.m4: Move from here ...
6783 * acinclude.m4: ... to here.
6784 * autogen.sh: Add call to `aclocal'.
6785 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
6787 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
6789 * Makefile.in (CLEANFILES): Add `po/*.mo'.
6790 (LINGUAS): New variable.
6791 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
6792 (install-local): Install MO files.
6793 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
6794 * include/grub/i18n.h: New file.
6795 * po/POTFILES: New file.
6796 * po/ca.po: New file.
6797 * util/grub.d/10_linux.in (bindir): New variable.
6798 Add gettext initialization.
6799 (linux_entry): Make menuentry output translatable.
6800 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
6801 (usage): Make --help output translatable.
6802 (main): Initialize gettext.
6804 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6806 * import_gcry.py: New file (written by Vladimir with minor
6808 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
6810 * INSTALL: Document that Python is required for bootstrap.
6812 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6814 Import ciphers from libgcrypt 1.4.4.
6816 * lib/libgcrypt/cipher/ChangeLog
6817 * lib/libgcrypt/cipher/ac.c
6818 * lib/libgcrypt/cipher/arcfour.c
6819 * lib/libgcrypt/cipher/bithelp.h
6820 * lib/libgcrypt/cipher/blowfish.c
6821 * lib/libgcrypt/cipher/camellia-glue.c
6822 * lib/libgcrypt/cipher/camellia.c
6823 * lib/libgcrypt/cipher/camellia.h
6824 * lib/libgcrypt/cipher/cast5.c
6825 * lib/libgcrypt/cipher/cipher.c
6826 * lib/libgcrypt/cipher/crc.c
6827 * lib/libgcrypt/cipher/des.c
6828 * lib/libgcrypt/cipher/dsa.c
6829 * lib/libgcrypt/cipher/ecc.c
6830 * lib/libgcrypt/cipher/elgamal.c
6831 * lib/libgcrypt/cipher/hash-common.c
6832 * lib/libgcrypt/cipher/hash-common.h
6833 * lib/libgcrypt/cipher/hmac-tests.c
6834 * lib/libgcrypt/cipher/md.c
6835 * lib/libgcrypt/cipher/md4.c
6836 * lib/libgcrypt/cipher/md5.c
6837 * lib/libgcrypt/cipher/primegen.c
6838 * lib/libgcrypt/cipher/pubkey.c
6839 * lib/libgcrypt/cipher/rfc2268.c
6840 * lib/libgcrypt/cipher/rijndael-tables.h
6841 * lib/libgcrypt/cipher/rijndael.c
6842 * lib/libgcrypt/cipher/rmd.h
6843 * lib/libgcrypt/cipher/rmd160.c
6844 * lib/libgcrypt/cipher/rsa.c
6845 * lib/libgcrypt/cipher/seed.c
6846 * lib/libgcrypt/cipher/serpent.c
6847 * lib/libgcrypt/cipher/sha1.c
6848 * lib/libgcrypt/cipher/sha256.c
6849 * lib/libgcrypt/cipher/sha512.c
6850 * lib/libgcrypt/cipher/tiger.c
6851 * lib/libgcrypt/cipher/twofish.c
6852 * lib/libgcrypt/cipher/whirlpool.c
6854 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
6856 Fix build for systems without error().
6858 * gnulib/error.c: New file (imported from Gnulib).
6859 * gnulib/error.h: Likewise.
6860 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
6861 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
6862 (this variable is now used by error()).
6864 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
6866 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
6867 instead of relying that char is signed.
6869 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
6871 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
6872 blocksize different from specified.
6873 (grub_pxefs_read): Likewise.
6875 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
6877 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
6879 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
6880 (grub_ata_readwrite): Likewise. Update 2 format strings.
6881 (grub_atapi_read): Likewise.
6883 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
6884 * conf/i386.rmk (pkglib_MODULES): ... to here ...
6885 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
6886 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
6887 (ata_mod_LDFLAGS): Move from here ...
6888 * conf/i386.rmk: ... to here ...
6889 * conf/x86_64-efi.rmk: ... and here.
6890 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
6891 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
6893 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
6895 Relicense multiboot.h, with RMS' blessing.
6897 * include/multiboot.h: Change to X11 license.
6899 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
6901 Support --version in grub-mkisofs.
6903 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
6904 (OPTION_VERSION): New macro.
6905 (ld_options): Recognize --version.
6906 (usage): Move `program_name' from here ...
6907 (program_name): ... to here. Add `static' qualifier.
6908 (main): Recognize `OPTION_VERSION'.
6910 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
6912 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
6913 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
6915 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
6917 Fix help2man generation for mkisofs.
6919 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
6920 (usage): Send output to stdout (rather than stderr).
6922 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
6924 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
6925 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
6926 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
6927 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
6928 (bin_SCRIPTS): Add `grub-mkfloppy'.
6929 (grub_mkfloppy_SOURCES): New variable.
6931 * util/grub-mkrescue.in: New file.
6932 * util/i386/pc/grub-mkfloppy.in: New file.
6934 * util/i386/coreboot/grub-mkrescue.in: Remove.
6935 * util/i386/pc/grub-mkrescue.in: Remove.
6937 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
6939 * include/grub/multiboot.h (struct grub_multiboot_header): Move
6941 * include/multiboot.h (struct multiboot_header): ... to here. Update
6943 * include/grub/multiboot.h (struct grub_multiboot_info): Move
6945 * include/multiboot.h (struct multiboot_info): ... to here. Update
6947 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
6949 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
6951 * include/grub/multiboot.h (struct grub_mod_list): Move
6953 * include/multiboot.h (struct multiboot_mod_list): ... to here.
6956 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
6958 * include/multiboot2.h (multiboot_word): Rename from this ...
6959 (multiboot2_word): ... to this. Update all users.
6960 (multiboot_header): Rename from this ...
6961 (multiboot2_header): ... to this. Update all users.
6962 (multiboot_tag_header): Rename from this ...
6963 (multiboot2_tag_header): ... to this. Update all users.
6964 (multiboot_tag_start): Rename from this ...
6965 (multiboot2_tag_start): ... to this. Update all users.
6966 (multiboot_tag_name): Rename from this ...
6967 (multiboot2_tag_name): ... to this. Update all users.
6968 (multiboot_tag_module): Rename from this ...
6969 (multiboot2_tag_module): ... to this. Update all users.
6970 (multiboot_tag_memory): Rename from this ...
6971 (multiboot2_tag_memory): ... to this. Update all users.
6972 (multiboot_tag_unused): Rename from this ...
6973 (multiboot2_tag_unused): ... to this. Update all users.
6974 (multiboot_tag_end): Rename from this ...
6975 (multiboot2_tag_end): ... to this. Update all users.
6977 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
6979 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
6980 this platform we should support Multiboot1 first.
6982 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
6983 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
6984 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
6986 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
6988 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
6989 of write calls (converting them to fwrite() if they aren't already).
6990 (get_torito_desc): Likewise.
6991 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
6993 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
6995 * util/i386/pc/grub-install.in: Move from here ...
6996 * util/grub-install.in: ... to here. Update all users.
6998 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
7000 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
7002 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7004 Support for El Torito without floppy emulation.
7006 * util/mkisofs/eltorito.c: Include `<errno.h>'.
7007 (init_boot_catalog): Improve error handling.
7008 (get_torito_desc): Don't use floppy emulation unless requested by
7009 user. Patch boot information table when requested via
7011 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
7012 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
7013 (use_boot_info_table): New variables.
7014 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
7015 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
7016 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
7017 `--eltorito-emul-floppy'.
7018 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
7019 and `OPTION_ELTORITO_EMUL_FLOPPY'.
7020 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
7021 (use_boot_info_table, get_731): New prototypes.
7022 * util/mkisofs/write.c (get_731): New function.
7024 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
7026 Fix the generation of the man page.
7028 * util/pc/i386/grub-install.in: Source
7029 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7031 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7033 Large file support for grub-mkisofs.
7035 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
7036 * util/mkisofs/mkisofs.c (next_extent, last_extent)
7037 (session_start): Upgrade type to `uint64_t'. Update all users.
7038 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
7039 (struct directory_entry): Upgrade type of `starting_block' and
7040 `size' to `uint64_t'. Update all users.
7041 (struct deferred): Remove unused structure.
7042 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
7044 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
7045 file is larger than `UINT32_MAX'.
7046 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
7047 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
7049 (struct deferred_write): Upgrade type of `extent' and `size' to
7050 `uint64_t'. Update all users.
7051 (last_extent_written): Upgrade type to `uint64_t'. Update all
7053 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
7054 Update all users. Upgrade type of `remain' to `int64_t' and
7055 `use' to `size_t'. Use error() to handle fread() errors.
7056 (write_files): Rely on write_one_file() rather than calling
7059 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
7061 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
7063 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7065 * util/mkisofs/fnmatch.c: Remove.
7066 * util/mkisofs/getopt1.c: Likewise.
7067 * util/mkisofs/getopt.c: Likewise.
7068 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
7069 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
7070 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
7071 `gnulib/getopt1.c' and `gnulib/getopt.c'.
7072 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
7074 * configure.ac: Detect `mingw32msvc' host_os.
7075 Check for lstat(), getuid() and getgid().
7077 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
7078 instances of `u_char' with `uint8_t'.
7080 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
7081 [!HAVE_GETUID] (getuid): New function (stub).
7082 [!HAVE_GETGID] (getgid): Likewise.
7083 [!HAVE_LSTAT] (lstat): Likewise.
7084 [!S_IROTH] (S_IROTH): New macro (dummy).
7085 [!S_IRGRP] (S_IRGRP): Likewise.
7087 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7089 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
7090 conditional expression).
7092 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7096 * gnulib/fnmatch.c: New file.
7097 * gnulib/fnmatch.h: Likewise.
7098 * gnulib/fnmatch_loop.c: Likewise.
7099 * gnulib/getopt.c: Likewise.
7100 * gnulib/getopt.h: Likewise.
7101 * gnulib/getopt1.c: Likewise.
7102 * gnulib/getopt_int.h: Likewise.
7103 * gnulib/gettext.h: Likewise.
7105 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7107 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
7108 * normal/handler.c (read_handler_list): Likewise.
7110 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7114 * kern/command.c (grub_register_command_prio): Use
7115 grub_zalloc() instead of explicitly zeroing data.
7116 * kern/list.c: Include `<grub/mm.h>'.
7117 (grub_named_list_find): Replace `0' with `NULL'.
7118 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
7119 (fs_module_list): Change type to `grub_named_list_t'. Update all
7121 * normal/dyncmd.c (read_command_list): Add space between function
7122 call and parenthesis.
7123 * normal/handler.c (read_handler_list): Likewise.
7125 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7127 * normal/auth.c (punishment_delay): Moved from here ...
7128 (grub_auth_strcmp): ... to here (inside function).
7130 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7132 * include/grub/list.h (struct grub_named_list): Remove `const'
7133 qualifier from `name'.
7134 (struct grub_prio_list): Likewise.
7136 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7138 * normal/auth.c: Include `<grub/time.h>'.
7139 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
7141 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7143 * normal/auth.c (punishment_delay): New variable.
7144 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
7145 (grub_auth_check_authentication): Punish failed login attempts with
7146 an incremental (2^N) delay.
7148 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7150 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
7151 path with $(srcdir).
7153 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7155 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
7157 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7159 * util/i386/coreboot/grub-mkrescue.in: New file.
7160 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
7163 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
7164 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
7165 * configure.ac: Add header and function checks to satisfy grub-mkisofs
7167 * util/mkisofs/defaults.h: New file.
7168 * util/mkisofs/eltorito.c: Likewise.
7169 * util/mkisofs/exclude.h: Likewise.
7170 * util/mkisofs/fnmatch.c: Likewise.
7171 * util/mkisofs/getopt.c: Likewise.
7172 * util/mkisofs/getopt1.c: Likewise.
7173 * util/mkisofs/hash.c: Likewise.
7174 * util/mkisofs/include/fctldefs.h: Likewise.
7175 * util/mkisofs/include/mconfig.h: Likewise.
7176 * util/mkisofs/include/prototyp.h: Likewise.
7177 * util/mkisofs/include/statdefs.h: Likewise.
7178 * util/mkisofs/iso9660.h: Likewise.
7179 * util/mkisofs/joliet.c: Likewise.
7180 * util/mkisofs/match.c: Likewise.
7181 * util/mkisofs/match.h: Likewise.
7182 * util/mkisofs/mkisofs.c: Likewise.
7183 * util/mkisofs/mkisofs.h: Likewise.
7184 * util/mkisofs/multi.c: Likewise.
7185 * util/mkisofs/name.c: Likewise.
7186 * util/mkisofs/rock.c: Likewise.
7187 * util/mkisofs/tree.c: Likewise.
7188 * util/mkisofs/write.c: Likewise.
7190 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7192 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
7195 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7197 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
7198 `grub-mkimage' (and use $0 when possible).
7200 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7202 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
7203 error message for excessively large memory map.
7205 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7207 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
7210 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7212 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
7213 message for coreboot users.
7215 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
7217 Fix build with GNU gold.
7219 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
7220 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
7221 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
7223 * aclocal.m4: Likewise.
7225 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
7227 * configure.ac (AC_PREREQ): Bump to 2.59d.
7228 * INSTALL: Make it more clear when Autoconf and Ruby are
7229 needed and when to run `./autogen.sh'.
7231 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7233 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
7236 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7238 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
7240 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7242 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
7243 giving it to GNU Mach.
7245 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7247 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
7248 GNU partition number to get internal GRUB partition number.
7250 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7252 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
7253 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
7255 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
7257 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
7258 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
7261 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
7263 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
7265 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7269 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
7270 `-isystem=$(srcdir)/include'.
7272 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7274 * util/i386/pc/grub-install.in: Remove hint that device.map should be
7275 checked (grub-install doesn't currently rely on it).
7277 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
7281 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
7282 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7283 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
7284 * conf/i386-ieee1275.rmk: Likewise.
7285 * conf/i386-pc.rmk: Likewise.
7286 * conf/powerpc-ieee1275.rmk: Likewise.
7287 * conf/sparc64-ieee1275.rmk: Likewise.
7288 * conf/x86_64-efi.rmk: Likewise.
7290 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7292 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
7294 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7296 * include/grub/misc.h: Stop checking for APPLE_CC.
7298 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7300 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
7301 doesn't cause an infinite call loop.
7303 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
7305 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
7308 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7310 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
7312 * Makefile.in: Likewise.
7314 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7316 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
7318 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7320 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
7322 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7324 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
7326 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7328 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
7330 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
7332 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7334 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
7335 in $(MAKEINFO) invocation. This makes it clear in output that
7336 errors are being ignored.
7338 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7340 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
7342 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7343 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
7344 * conf/i386-ieee1275.rmk: Likewise.
7345 * conf/i386-pc.rmk: Likewise.
7346 * conf/powerpc-ieee1275.rmk: Likewise.
7347 * conf/sparc64-ieee1275.rmk: Likewise.
7348 * conf/x86_64-efi.rmk: Likewise.
7350 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7352 * util/grub-editenv.c (main): If only a command is given, use
7353 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
7354 (usage): FILENAME is now optional and has a default.
7356 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7358 Improve grub-mkconfig performance when there are several menu
7359 entries on a single filesystem.
7361 * util/grub.d/10_linux.in (linux_entry): Cache the output of
7362 prepare_grub_to_access_device.
7363 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7364 * util/grub.d/30_os-prober.in: Likewise.
7366 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7368 * util/grub.d/10_freebsd.in: Remove.
7369 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
7370 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
7372 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7374 * docs/grub.cfg: Fix example usage of *BSD loaders.
7376 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7378 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
7379 grub_util_error() call.
7381 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7383 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
7384 `reserved_first_sector' member.
7385 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
7386 `reserved_first_sector' to 1.
7387 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
7388 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
7389 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
7390 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
7391 filesystems which begin at first sector.
7392 (options): New option --skip-fs-probe.
7393 (main): Handle --skip-fs-probe and pass it to setup().
7395 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7397 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
7398 (memset): Fix function prototype.
7400 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7401 2009-10-25 Vasily Averin <vvs@parallels.com>
7403 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
7404 `dirent.direntlen == 0'.
7406 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7408 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
7410 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
7412 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7414 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
7415 `__trampoline_setup' and `__ucmpdi2'.
7416 * include/grub/powerpc/libgcc.h: Only export symbols for functions
7417 that libgcc provides.
7419 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7421 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
7422 * include/grub/sparc64/libgcc.h (memset): Likewise.
7423 * include/grub/misc.h (memset, memcmp): New function prototypes.
7425 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7427 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
7429 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
7431 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7433 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
7434 * docs/grub.cfg: Compensate for recent change in multiboot
7435 loader (since 2009-08-14 it won't pass filename to payload).
7436 * util/grub.d/10_hurd.in: Likewise.
7438 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
7440 * config.guess: Update to latest version from config git
7442 * config.sub: Likewise.
7444 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
7446 Fix build on sparc64.
7448 * configure.ac: Perform checks for libgcc symbols before
7449 adding `-nostdlib' to LDFLAGS.
7451 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7453 Let user specify OpenBSD root device.
7455 * loader/i386/bsd.c (openbsd_root): New variable.
7456 (openbsd_opts): New option 'root'.
7457 (OPENBSD_ROOT_ARG): New macro.
7458 (grub_openbsd_boot): Use 'openbsd_root'.
7459 (grub_cmd_openbsd): Fill 'openbsd_root'.
7461 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7463 * NEWS: Misc adjustments.
7465 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7467 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
7469 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7471 * configure.ac: Bump version to 1.97.
7473 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
7475 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
7476 -mno-3dnow on x86 architectures. Some toolchains enable these
7477 features by default, but they rely on registers that aren't enabled
7478 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
7480 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
7482 Make entry text a bit more readable.
7484 * util/grub.d/10_linux.in: Add `with' before `Linux'.
7486 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7488 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
7490 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7492 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
7495 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7497 * configure.ac: Add missing dollar.
7499 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7501 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
7503 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
7504 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
7506 * include/grub/sparc64/libgcc.h: Likewise. Use
7507 preprocessor conditionals.
7509 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
7511 * conf/common.rmk (grub-dumpbios): Remove rule.
7512 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
7513 * util/grub-dumpbios.in: Remove file.
7515 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
7517 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
7518 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
7520 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
7521 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
7524 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
7525 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
7526 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
7527 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
7530 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
7532 * term/tparm.c: Switch to GPLv3.
7534 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
7536 * include/grub/i386/cpuid.h: Add header protection.
7538 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
7540 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
7542 * include/grub/i386/cpuid.h: New file.
7543 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
7544 (has_longmode): Rename to ...
7545 (grub_cpuid_has_longmode): ... this. Update all users. Remove
7547 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
7548 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
7549 on a CPU that doesn't implement AMD64 instruction set.
7551 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7553 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
7554 that version.texi is rebuilt on version number changes.
7556 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7558 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
7561 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7563 * util/i386/pc/grub-install.in: Source
7564 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
7565 that the --grub-probe option will work.
7566 * util/sparc64/ieee1275/grub-install.in: Likewise.
7568 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
7570 * configure.ac: Bump version to 1.97~beta4.
7572 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
7574 Resync grub-mkdevicemap in x86_64-efi.
7576 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
7577 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
7580 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
7582 * util/grub-editenv.c (create_envblk_file): Write new block with a
7583 .new suffix and then rename it into place, to ensure atomic
7586 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
7588 Do not automatically install headers.
7590 * Makefile.in (include_DATA): Remove. Update all users.
7592 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
7594 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
7595 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
7597 * util/osdetect.lua: Remove.
7598 * script/lua/lauxlib.c: Likewise.
7599 * script/lua/ldebug.c: Likewise.
7600 * script/lua/grub_main.c: Likewise.
7601 * script/lua/lauxlib.h: Likewise.
7602 * script/lua/ldebug.h: Likewise.
7603 * script/lua/ltablib.c: Likewise.
7604 * script/lua/liolib.c: Likewise.
7605 * script/lua/lstrlib.c: Likewise.
7606 * script/lua/lualib.h: Likewise.
7607 * script/lua/ldo.c: Likewise.
7608 * script/lua/ldump.c: Likewise.
7609 * script/lua/ldo.h: Likewise.
7610 * script/lua/loslib.c: Likewise.
7611 * script/lua/lundump.c: Likewise.
7612 * script/lua/grub_lib.c: Likewise.
7613 * script/lua/ldblib.c: Likewise.
7614 * script/lua/lundump.h: Likewise.
7615 * script/lua/lmem.c: Likewise.
7616 * script/lua/grub_lib.h: Likewise.
7617 * script/lua/lmathlib.c: Likewise.
7618 * script/lua/lstate.c: Likewise.
7619 * script/lua/ltm.c: Likewise.
7620 * script/lua/lvm.c: Likewise.
7621 * script/lua/lmem.h: Likewise.
7622 * script/lua/lstate.h: Likewise.
7623 * script/lua/ltm.h: Likewise.
7624 * script/lua/ltable.c: Likewise.
7625 * script/lua/lvm.h: Likewise.
7626 * script/lua/llex.c: Likewise.
7627 * script/lua/lgc.c: Likewise.
7628 * script/lua/grub_lua.h: Likewise.
7629 * script/lua/loadlib.c: Likewise.
7630 * script/lua/lfunc.c: Likewise.
7631 * script/lua/lopcodes.c: Likewise.
7632 * script/lua/lparser.c: Likewise.
7633 * script/lua/ltable.h: Likewise.
7634 * script/lua/llex.h: Likewise.
7635 * script/lua/lgc.h: Likewise.
7636 * script/lua/lfunc.h: Likewise.
7637 * script/lua/lbaselib.c: Likewise.
7638 * script/lua/lopcodes.h: Likewise.
7639 * script/lua/lparser.h: Likewise.
7640 * script/lua/lzio.c: Likewise.
7641 * script/lua/linit.c: Likewise.
7642 * script/lua/lobject.c: Likewise.
7643 * script/lua/llimits.h: Likewise.
7644 * script/lua/lstring.c: Likewise.
7645 * script/lua/lzio.h: Likewise.
7646 * script/lua/lapi.c: Likewise.
7647 * script/lua/lcode.c: Likewise.
7648 * script/lua/lua.h: Likewise.
7649 * script/lua/lobject.h: Likewise.
7650 * script/lua/lstring.h: Likewise.
7651 * script/lua/lapi.h: Likewise.
7652 * script/lua/lcode.h: Likewise.
7653 * script/lua/luaconf.h: Likewise.
7655 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
7657 * docs/grub.texi (Command-line and menu entry commands): Document
7658 date and echo commands.
7660 2009-09-24 Pavel Roskin <proski@gnu.org>
7662 * include/grub/kernel.h (struct grub_module_header): Remove
7663 `grub_module_header_types'. Make `type' unsigned. Make `size'
7664 32-bit on all platforms.
7665 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
7666 8-bit field. Use grub_host_to_target32() for `size'.
7667 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
7668 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
7669 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
7671 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7673 Fix "lost keypress" bug in at_keyboard.
7675 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
7676 Checks for readyness of input buffer (without flushing it).
7677 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
7678 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
7680 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7682 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
7683 size check within GRUB_MACHINE_PCBIOS section.
7685 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7687 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
7689 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
7690 KEYBOARD_ISREADY check.
7691 (grub_at_keyboard_checkkey): Rename to ...
7692 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
7693 Remove gratuitous cast.
7695 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
7697 * configure.ac: Call AC_PROG_MKDIR_P.
7698 * Makefile.in (docs/stamp-vti): Create docs directory. Create
7699 version.texi in $(builddir) rather than $(srcdir).
7700 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
7701 to makeinfo's @include search path.
7703 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
7705 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
7707 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
7709 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
7712 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
7714 Build info documentation. Some code borrowed from Automake.
7716 * configure.ac: Check for makeinfo.
7717 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
7718 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
7720 (MOSTLYCLEANFILES): Add vti.tmp.
7721 (docs/version.texi, docs/stamp-vti): Update automatically.
7722 (docs/grub.info): Build info documentation. Use --force and ignore
7724 (all-local): Add $(INFOS).
7725 (install-local): Install info files.
7726 (uninstall): Uninstall info files.
7727 * docs/version.texi: Remove from revision control. This file is
7728 automatically generated on build now.
7729 * gendistlist.sh: Add `*.info'.
7731 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
7733 * kern/term.c: Fix indentation.
7735 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
7737 * util/hostdisk.c: Fix a comment.
7739 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
7741 Fix regression introduced in r2539.
7743 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
7746 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
7748 * util/grub.d/30_os-prober.in: Don't throw away stderr from
7749 os-prober. Under normal operation, it does not print anything to
7750 stderr; if it does, we need to debug it, and throwing away stderr
7751 makes that excessively difficult.
7753 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
7755 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
7757 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
7759 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
7760 AC_LANG_PROGRAM from autoconf.
7761 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
7762 prototypes (fixes warning).
7764 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
7765 `--disable-werror' was used.
7767 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
7769 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
7770 uninitialized `lastaddr'.
7772 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
7774 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
7776 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
7778 * commands/test.c (get_fileinfo): Return immediately if
7779 grub_fs_probe fails.
7781 2009-09-14 José Martínez <xosemp@gmail.com>
7783 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
7785 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
7787 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
7790 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
7792 * configure.ac: Remove --enable-grub-pe2elf. Only build
7793 grub-pe2elf when needed by the build system itself.
7794 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
7796 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
7798 * configure.ac: Bump version to 1.97~beta3.
7799 * docs/version.texi: Likewise.
7801 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
7803 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
7804 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
7806 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
7807 (grub_linux_setup_video): ... to here (with some adjustments).
7809 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
7811 Fix memory corruption issue (spotted by Colin Watson).
7813 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
7814 causing returned size to be stored in an incorrect memory location.
7815 Fix use of uninitialized value when storing the returned size.
7817 2009-09-12 Yves Blusseau <blusseau@zetam.org>
7819 Change clean rules to properly remove files
7821 * genmk.rb: add new clean rules
7822 * Makefile.in (clean): add the new targets
7823 (mostlyclean): likewise
7825 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
7827 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
7829 * fs/ntfs.c (init_file): Understand 64-bit sizes for
7832 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
7834 * configure.ac: Don't look for help2man when cross-compiling. Fixes
7837 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
7839 * util/grub-mkconfig.in: Make the created config mode 400 and
7840 print a warning if it fails.
7842 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
7844 * util/grub.d/40_custom.in: Ask user to type custom entries below
7845 comment, rather than below 'exec tail' line.
7847 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
7849 * util/grub.d/40_custom.in: Make sure that the explanatory text is
7850 visible in grub.cfg.
7852 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
7854 * util/grub.d/40_custom.in: Make it a little clearer how to use this
7857 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
7859 * docs/grub.cfg: Add an example menu entry for memtest86+.
7861 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
7863 * config.guess: Update to latest version from config git.
7864 * config.sub: Likewise.
7866 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
7868 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
7869 unknown-command case. Fixes bug #27320.
7871 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
7873 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
7874 `help' if the command exists.
7876 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
7878 * INSTALL: Require GCC 4.1.3 or later.
7880 2009-09-06 Yves Blusseau <blusseau@zetam.org>
7882 * Makefile.in (RMKFILES): add i386-qemu.rmk
7883 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
7884 $(srcdir)/stamp-h.in
7886 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
7888 * util/grub-probe.c (probe): Comment out buggy codepath, which
7889 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
7890 should be re-enabled after 1.97.
7892 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
7894 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
7897 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
7899 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
7900 unnecessary calls to grub_error.
7902 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
7904 * NEWS: Mention `keystatus' and Unicode fonts.
7906 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
7908 * configure.ac: Bump version to 1.97~beta2.
7909 * docs/version.texi: Likewise.
7911 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
7913 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
7914 containing unwind information in some cases where it previously did
7915 not. Use -fno-dwarf2-cfi-asm if available to restore the old
7916 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
7919 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
7921 Embedding loadenv module into grub-emu
7923 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
7925 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
7926 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
7927 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
7928 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
7929 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
7930 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
7932 2009-09-03 Magnus Granberg <zorry@ume.nu>
7934 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
7935 include -fPIE in the default specs.
7936 * configure.ac: Check if pie_possible is yes and add -fno-PIE
7939 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
7941 * INSTALL: Note that GNU Bison 2.3 or later is required.
7943 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
7945 * kern/i386/pc/startup.S: Fix typo.
7947 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
7949 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
7952 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
7954 * docs/grub.texi (Naming convention): Describe one-based partition
7956 (Device syntax): Likewise.
7957 (File name syntax): Likewise.
7958 (Block list syntax): Likewise.
7959 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
7961 (File name syntax): Likewise.
7962 (Command-line and menu entry commands): Document acpi, blocklist,
7963 crc, export, insmod, keystatus, ls, set, and unset commands.
7965 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
7967 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
7968 to avoid implying that only one of --shift, --ctrl, or --alt may be
7971 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
7973 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
7974 rather than comparing against S_IFREG, which will almost never work.
7976 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
7978 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
7979 (write_blocklists): Likewise.
7981 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
7983 * script/lua/grub_lua.h (fputs): Supply a format string as the first
7984 argument to grub_printf.
7986 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
7988 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
7991 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
7993 * kern/file.c (grub_file_read): Spelling fix
7995 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
7997 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
7998 loading of headers in some cases.
8000 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
8002 * configure.ac: Bump version to 1.97~beta1.
8003 * docs/version.texi: Likewise.
8005 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8007 * include/grub/i386/xnu.h: Add license header.
8008 include grub/err.h explicitly.
8010 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8012 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
8013 to `ufs' in the vfs.root.mountfrom kernel parameter.
8015 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8017 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
8019 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
8020 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
8022 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
8025 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8027 * kern/file.c (grub_file_read): Check offset.
8028 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
8029 * fs/jfs.c (grub_jfs_read_file): Likewise.
8030 * fs/ntfs.c (grub_ntfs_read): Likewise.
8031 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
8032 * fs/minix.c (grub_minix_read_file): Correct offset check.
8033 * fs/ufs.c (grub_ufs_read_file): Likewise.
8035 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8037 * term/i386/pc/console.c (bios_data_area): Cast
8038 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
8040 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8042 1-bit optimised blitters.
8044 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
8046 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8047 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8048 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8049 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8050 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8051 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8052 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
8054 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8055 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8056 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8057 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8058 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8059 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8060 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
8062 * video/video.c (grub_video_get_blit_format): Return
8063 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
8065 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8067 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
8068 the first argument to grub_printf.
8070 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8071 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
8073 Add `getkeystatus' terminal method. Add a new `keystatus' command
8076 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
8077 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
8078 modifier key bitmasks.
8079 (struct grub_term_input): Add `getkeystatus' member.
8080 (grub_getkeystatus): Add prototype.
8081 * kern/term.c (grub_getkeystatus): New function.
8083 * include/grub/i386/pc/memory.h
8084 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
8085 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
8087 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
8088 (grub_console_term_input): Set `getkeystatus' member.
8089 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
8091 (grub_usb_keyboard_getreport): Likewise.
8092 (grub_usb_keyboard_checkkey): Likewise.
8093 (grub_usb_keyboard_getkeystatus): New function.
8094 (grub_usb_keyboard_term): Set `getkeystatus' member.
8096 * commands/keystatus.c: New file.
8097 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
8098 (keystatus_mod_SOURCES): New variable.
8099 (keystatus_mod_CFLAGS): Likewise.
8100 (keystatus_mod_LDFLAGS): Likewise.
8101 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
8102 commands/keystatus.c.
8103 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8104 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8105 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8106 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8107 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8108 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8110 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8112 Split befs.mod and afs.mod into *_be.mod and *.mod
8114 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
8115 (grub_fstest_SOURCES): Likewise.
8116 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
8117 (afs_be_mod_SOURCES): New variable.
8118 (afs_be_mod_CFLAGS): Likewise.
8119 (afs_be_mod_LDFLAGS): Likewise.
8120 (befs_be_mod_SOURCES): Likewise.
8121 (befs_be_mod_CFLAGS): Likewise.
8122 (befs_be_mod_LDFLAGS): Likewise.
8123 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
8124 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8125 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8126 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8127 (grub_emu_SOURCES): Likewise.
8128 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8129 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8130 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8131 * fs/afs_be.c: New file.
8132 * fs/befs_be.c: New file.
8133 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
8134 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
8135 (U16): Replaced with ...
8136 (grub_afs_to_cpu16): ...this. All users updated.
8137 (U32): Replaced with ...
8138 (grub_afs_to_cpu32): ...this. All users updated.
8139 (U64): Replaced with ...
8140 (grub_afs_to_cpu64): ...this. All users updated.
8141 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
8142 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
8143 (grub_afs_validate_sblock): Check only one endianness.
8144 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8145 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8146 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8147 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8148 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8149 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8150 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8151 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8153 2009-08-26 Bean <bean123ch@gmail.com>
8155 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
8157 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
8158 (grub_xfs_inode_block): Change return type to grub_uint64_t.
8159 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
8161 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8163 NetBSD memory map support.
8165 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
8166 (grub_netbsd_btinfo_mmap_header): New structure.
8167 (grub_netbsd_btinfo_mmap_entry): Likewise.
8168 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
8170 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8172 Enable bsd.mod on coreboot.
8174 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
8175 (bsd_mod_SOURCES): New variable.
8176 (bsd_mod_CFLAGS): Likewise.
8177 (bsd_mod_LDFLAGS): Likewise.
8178 (bsd_mod_ASFLAGS): Likewise.
8179 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
8180 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
8182 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8184 Cleanup NetBSD root support.
8186 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
8187 grub_bsd_get_device.
8190 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
8192 * util/grub.d/00_header.in: Move check for the video backend of
8193 gfxterm from here ...
8194 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
8195 a suitable video backend.
8197 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8199 Fix breakage in grub-setup.
8201 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
8202 "msdos_partition_map".
8204 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8206 Fix breakage in normal/auth.c.
8208 * normal/auth.c (grub_iswordseparator): New function.
8210 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8212 Authentication support.
8214 * commands/password.c: New file.
8215 * conf/common.rmk (pkglib_MODULES): Add password.mod.
8216 (password_mod_SOURCES): New variable.
8217 (password_mod_CFLAGS): Likewise.
8218 (password_mod_LDFLAGS): Likewise.
8219 (normal_mod_SOURCES): Add normal/auth.c.
8220 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
8222 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8223 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8224 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8225 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8226 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8227 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8228 * include/grub/auth.h: New file.
8229 * include/grub/err.h (grub_err_t): New enum value
8230 GRUB_ERR_ACCESS_DENIED.
8231 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
8233 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
8234 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
8236 * normal/auth.c: New file.
8237 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
8238 (grub_cmdline_run): Don't allow to go to command line without
8240 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
8241 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
8242 menuentry without superuser rights.
8243 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
8244 user isn't a superuser.
8246 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8248 Save space by inlining misc.c functions.
8250 * kern/misc.c (grub_iswordseparator): Made static.
8251 * kern/misc.c (grub_strcat): Moved from here ...
8252 * include/grub/misc.h (grub_strcat): ... here. Inlined.
8253 * kern/misc.c (grub_strncat): Moved from here ...
8254 * include/grub/misc.h (grub_strncat): ... here. Inlined.
8255 * kern/misc.c (grub_strcasecmp): Moved from here ...
8256 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
8257 * kern/misc.c (grub_strncasecmp): Moved from here ...
8258 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
8259 * kern/misc.c (grub_isalpha): Moved from here ...
8260 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
8261 * kern/misc.c (grub_isdigit): Moved from here ...
8262 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
8263 * kern/misc.c (grub_isgraph): Moved from here ...
8264 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
8265 * kern/misc.c (grub_tolower): Moved from here ...
8266 * include/grub/misc.h (grub_tolower): ... here. Inlined.
8268 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8270 * script/sh/function.c (grub_script_function_find): Cut error message
8271 not to flood terminal.
8272 * script/sh/lexer.c (grub_script_yylex): Remove command line length
8274 * script/sh/script.c (grub_script_arg_add): Duplicate string.
8276 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
8278 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
8279 `report' grub_uint8_t *.
8280 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
8281 Use a 50-millisecond timeout rather than just repeating
8282 grub_usb_keyboard_getreport 50 times.
8283 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
8285 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8287 Rename *_partition_map to part_*
8289 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
8290 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
8291 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
8292 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
8294 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
8296 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
8297 * util/grub-probe.c (probe_partmap): Don't transform partition name
8300 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8302 Fix OpenBSD and NetBSD support.
8304 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
8305 memory address conflict.
8306 (OPENBSD_MMAP_ACPI): New definition.
8307 (OPENBSD_MMAP_NVS): Likewise.
8308 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
8309 and OPENBSD_MMAP_NVS.
8310 Add memory map terminator
8311 Explicit cast when calling grub_unix_real_boot.
8312 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
8314 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8316 Let user specify NetBSD root device.
8318 * loader/i386/bsd.c (netbsd_root): New variable.
8319 (netbsd_opts): New option 'root'.
8320 (NETBSD_ROOT_ARG): New macro.
8321 (grub_netbsd_boot): Use 'netbsd_root'.
8322 (grub_bsd_unload): Free 'netbsd_root'.
8323 (grub_cmd_netbsd): Fill 'netbsd_root'.
8325 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8327 Support for 64-bit NetBSD.
8329 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
8330 point when booting non-FreeBSD.
8332 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8334 Support --no-smp and --no-acpi for NetBSD.
8336 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
8337 (NETBSD_AB_NOACPI): Likewise.
8338 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
8339 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
8341 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8343 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
8345 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
8346 errors. Call grub_error when needed.
8348 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8350 * commands/search.c (search_fs): Try searching without autoload first.
8351 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
8352 filesystem module explicitly for faster booting.
8354 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8356 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
8358 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8360 * util/grub.d/30_os-prober.in: Disable os-prober if
8361 `GRUB_DISABLE_OS_PROBER' was set to true.
8363 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
8365 * partmap/pc.c: Rename to ...
8366 * partmap/msdos.c: ... this. Update all users.
8367 (grub_pc_partition_map): Rename to ...
8368 (grub_msdos_partition_map): ... this. Update all users.
8370 * parttool/pcpart.c: Rename to ...
8371 * parttool/msdospart.c: ... this. Update all users.
8373 * include/grub/pc_partition.h: Rename to ...
8374 * include/grub/msdos_partition.h: ... this. Update all users.
8375 (grub_pc_partition_bsd_entry): Rename to ...
8376 (grub_msdos_partition_bsd_entry): ... this. Update all users.
8377 (grub_pc_partition_disk_label): Rename to ...
8378 (grub_msdos_partition_disk_label): ... this. Update all users.
8379 (grub_pc_partition_entry): Rename to ...
8380 (grub_msdos_partition_entry): ... this. Update all users.
8381 (grub_pc_partition_mbr): Rename to ...
8382 (grub_msdos_partition_mbr): ... this. Update all users.
8383 (grub_pc_partition): Rename to ...
8384 (grub_msdos_partition): ... this. Update all users.
8385 (grub_pc_partition_is_empty): Rename to ...
8386 (grub_msdos_partition_is_empty): ... this. Update all users.
8387 (grub_pc_partition_is_extended): Rename to ...
8388 (grub_msdos_partition_is_extended): ... this. Update all users.
8389 (grub_pc_partition_is_bsd): Rename to ...
8390 (grub_msdos_partition_is_bsd): ... this. Update all users.
8392 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
8393 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
8394 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
8395 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
8396 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
8397 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
8398 (gpt_mod_LDFLAGS): Rename to ...
8399 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
8400 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
8401 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
8402 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
8403 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
8404 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
8405 (part_gpt_mod_LDFLAGS): ... this.
8406 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
8407 `pcpart.mod' to `msdospart.mod'.
8408 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
8410 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
8411 (msdospart_mod_LDFLAGS): ... this.
8413 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8415 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
8416 (openbsd_opts): Likewise.
8417 (netbsd_opts): Likewise.
8418 (freebsd_flags): Added 0 terminator.
8419 (openbsd_flags): Likewise.
8420 (netbsd_flags): Likewise.
8421 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
8422 (grub_cmd_freebsd): Transformed into extended command.
8423 (grub_cmd_openbsd): Likewise.
8424 (grub_cmd_netbsd): Likewise.
8425 (cmd_freebsd): Changed type to grub_extcmd_t.
8426 (cmd_openbsd): Likewise.
8427 (cmd_netbsd): Likewise.
8428 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
8429 grub_cmd_openbsd as extended commands.
8430 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
8431 cmd_netbsd and cmd_openbsd
8433 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
8435 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
8437 2009-08-21 Pavel Roskin <proski@gnu.org>
8439 * Makefile.in (install-local): When checking if a file is in the
8440 build directory, use "test -e" to detect symlinks.
8442 * Makefile.in (install-local): Remove all files in
8443 $(DESTDIR)$(pkglibdir) before installing new files there.
8445 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
8447 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
8450 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
8452 * util/grub-mkconfig.in: Don't use gfxterm by default if not
8453 explicitly specified by the user.
8455 2009-08-18 Pavel Roskin <proski@gnu.org>
8457 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
8458 grub_uint8_t pointer for data.
8459 * include/grub/fbutil.h (struct grub_video_fbblit_info):
8461 * video/fb/fbutil.c: Remove unnecessary casts.
8463 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8467 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
8468 (grub_vbe_set_video_mode): Save active mode info
8469 only after setting the mode.
8470 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
8473 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8475 Rename variables for clarity.
8477 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
8478 (active_vbe_mode_info): ... this. All users updated.
8479 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
8481 (initial_mode): Rename to ...
8482 (initial_vbe_mode): ... this. All users updated.
8483 (mode_in_use): Rename to ..
8484 (vbe_mode_in_use): ... this. All users updated.
8485 (mode_list): Rename to ..
8486 (vbe_mode_list): ... this. All users updated.
8487 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
8488 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
8489 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
8490 'mode_list_size' to 'vbe_mode_list_size'.
8491 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
8492 'best_mode_info' to 'best_vbe_mode_info' and
8493 'best_mode' to 'best_vbe_mode'
8495 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8497 Remove duplicate grub_video_fb_get_video_ptr.
8499 * include/grub/fbutil.h (get_data_ptr): Rename to ...
8500 (grub_video_fb_get_video_ptr): ... this.
8501 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
8502 * video/fb/fbutil.c: Add comment about addressing.
8503 (get_data_ptr): Rename to ...
8504 (grub_video_fb_get_video_ptr): ... this. All users updated.
8505 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
8507 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
8509 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
8510 grub_dprintf() that was just added.
8512 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
8514 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
8515 (DEFAULT_VIDEO_MODE): Remove macros.
8516 (grub_linux_boot): Remove assumption that Linux has FB support,
8517 and use "text" as default video mode.
8519 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
8521 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
8523 * fs/fat.c (grub_fat_read_data): Likewise.
8525 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8527 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
8529 (grub_module): Likewise.
8531 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8533 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
8534 mbi->cmdline but free playground.
8536 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8538 Handle group offset on UFS1.
8540 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
8541 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
8543 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8545 Split ufs.mod into ufs1.mod and ufs2.mod.
8547 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
8548 (grub_fstest_SOURCES): Likewise.
8549 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
8550 (ufs_mod_SOURCES): Remove.
8551 (ufs_mod_CFLAGS): Likewise.
8552 (ufs_mod_LDFLAGS): Likewise.
8553 (ufs1_mod_SOURCES): New variable.
8554 (ufs1_mod_CFLAGS): Likewise.
8555 (ufs1_mod_LDFLAGS): Likewise.
8556 (ufs2_mod_SOURCES): New variable.
8557 (ufs2_mod_CFLAGS): Likewise.
8558 (ufs2_mod_LDFLAGS): Likewise.
8559 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
8560 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
8562 (grub_emu_SOURCES): Likewise.
8563 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8564 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8565 (grub_setup_SOURCES): Likewise.
8566 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8567 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
8568 (grub_setup_SOURCES): Likewise.
8569 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
8571 * fs/ufs2.c: New file.
8572 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
8574 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8578 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
8579 subsystem at the end.
8580 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
8581 (video_fb_mod_SOURCES): New variable.
8582 (video_fb_mod_CFLAGS): Likewise.
8583 (video_fb_mod_LDFLAGS): Likewise.
8584 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
8585 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
8586 * video/i386/pc/vbeblit.c: Moved from here ...
8587 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
8588 * video/i386/pc/vbefill.c: Moved from here ...
8589 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
8590 * video/i386/pc/vbeutil.c: Moved from here ...
8591 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
8592 * include/grub/i386/pc/vbeblit.h: Moved from here ...
8593 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
8594 * include/grub/i386/pc/vbefill.h: Moved from here ...
8595 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
8596 * include/grub/i386/pc/vbeutil.h: Moved from here ...
8597 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
8598 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
8599 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
8600 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
8601 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
8602 (grub_video_adapter): Added 'get_info_and_fini'.
8603 (grub_video_get_info_and_fini): New prototype.
8604 (grub_video_set_mode): make modestring const char *.
8605 * loader/i386/linux.c (grub_linux_setup_video): Use
8606 grub_video_get_info_and_fini.
8607 (grub_linux_boot): Move modesetting just before booting.
8608 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
8609 grub_video_get_info_and_fini.
8610 * video/i386/pc/vbe.c: Moved framebuffer part ...
8611 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
8612 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
8613 grub_video_fbstd_colors and grub_video_fb_set_palette.
8614 (grub_video_vbe_init): Clear 'framebuffer' variable and use
8616 (grub_video_vbe_fini): Use grub_video_fb_fini.
8617 (grub_video_vbe_setup): Use framebuffer.render_target instead of
8618 render_target and use grub_video_fb_set_active_render_target and
8619 grub_video_fb_set_palette.
8620 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
8621 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
8622 (grub_video_vbe_adapter): Use framebuffer.
8623 * video/video.c (grub_video_get_info_and_fini): New function.
8624 (grub_video_set_mode): Make modestring const char *.
8625 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
8626 values are already initialised.
8628 2009-08-14 Pavel Roskin <proski@gnu.org>
8630 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
8632 * boot/i386/pc/diskboot.S: Likewise.
8633 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
8634 sectors allow compilation on MacOSX.
8635 * conf/i386-pc.rmk: Enable unconditional compilation of
8638 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
8640 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
8641 * util/grub.d/00_header.in: Enter interruptible sleep if
8642 GRUB_HIDDEN_TIMEOUT is set.
8644 2009-08-13 Yves Blusseau <blusseau@zetam.org>
8646 * include/grub/symbol.h: Add the LOCAL macro.
8647 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
8650 2009-08-13 Pavel Roskin <proski@gnu.org>
8652 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
8653 any modern compilers we support.
8655 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
8656 Use local labels starting with "L_" so that Apple assembler
8657 knows they are local.
8659 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
8661 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
8662 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
8663 (bsd_kernel_types): ... this enum.
8665 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
8666 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
8667 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
8669 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
8670 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
8671 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
8674 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
8676 * util/grub-dumpdevtree: Moved from here ...
8677 * util/i386/efi/grub-dumpdevtree: ... to here.
8678 (hexify): New function. Converts a string to its hex version.
8679 Generate hex versions of "efi" and "device-properties" by calling
8680 hexify() on the ASCII strings rather than by hardcoding numbers.
8682 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
8684 * fs/jfs.c: Update copyright year.
8686 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
8688 * util/grub.d/00_header.in: Fix a comment.
8689 * util/grub.d/10_linux.in: Likewise.
8690 * util/grub.d/10_windows.in: Likewise.
8691 * util/grub.d/10_hurd.in: Likewise.
8693 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
8695 * util/grub-mkconfig.in: Allow the user to specify the used font
8698 2009-08-08 Pavel Roskin <proski@gnu.org>
8700 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
8701 available, xfs.mod needs it now.
8703 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
8704 the "g" modifier in sed when the intention is to strip something
8705 once. This fixes comparison of kernels with multiple dashes.
8707 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
8708 on it. Add missing space before closing bracket. Fix
8709 misleading formatting.
8711 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8713 * docs/grub.texi: Major overhaul. Remove all sections that are
8714 specific to GRUB Legacy, or mostly composed of Legacy-specific
8717 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8719 * docs/version.texi: New file. Provides version information for
8722 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8724 * docs/grub.texi: Update CVS information to SVN.
8725 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
8727 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
8729 * util/grub-mkconfig.in: Remove a wrong `fi'.
8731 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
8733 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
8734 (grub_jfs_uuid): New function.
8735 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
8737 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
8739 * util/grub-mkconfig_lib.in (font_path): Move the functionality
8741 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
8742 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
8744 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8746 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
8747 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
8750 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
8751 not just "vmlinu[zx]".
8753 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
8756 * util/grub.d/10_linux.in (find_latest): Moved from here ...
8757 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
8760 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8762 * util/grub.d/10_freebsd.in: Use an absolute device path for
8763 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
8765 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
8767 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
8768 handling of multiple abstraction modules.
8770 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
8772 Fix a bug resulting in black screen when loading Linux using a
8775 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
8778 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
8779 (grub_vbe_bios_getset_dac_palette_width): New function.
8780 (grub_vbe_bios_get_dac_palette_width)
8781 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
8782 grub_vbe_bios_getset_dac_palette_width()).
8784 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
8785 check for return status.
8786 (grub_vbe_get_video_mode_info): When getting information for a packed
8787 mode (<= 8 bpp), obtain DAC palette width using
8788 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
8789 {red,green,blue}_mark_size.
8791 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
8793 * commands/search.c (options): Fix help output to match actual code.
8795 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
8797 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
8800 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
8802 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
8805 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
8807 Support Apple partition map with sector size different from 512 bytes.
8809 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
8810 (apple_partition_map_iterate): Respect 'aheader.blocksize'
8811 and 'apart.partmap_size'.
8813 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
8814 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
8818 * commands/i386/cpuid.c (options): New variable.
8819 (grub_cmd_cpuid): Return real error.
8820 (GRUB_MOD_INIT(cpuid)): Declare options.
8822 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
8824 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
8827 2009-07-31 Bean <bean123ch@gmail.com>
8829 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
8831 (grub_fshelp_node): Move inode field to the end.
8832 (grub_xfs_data): Remove inode field.
8833 (grub_xfs_inode_block): Calculate inode size using sblock.
8834 (grub_xfs_inode_offset): Likewise.
8835 (grub_xfs_read_inode): Calculate inode size using sblock.
8836 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
8837 (grub_xfs_iterate_dir): Calculate inode size using sblock.
8838 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
8839 to match inode size.
8840 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
8841 not accessible when data is null.
8842 (grub_xfs_open): Likewise.
8844 2009-07-31 Bean <bean123ch@gmail.com>
8846 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
8847 Don't change pv->disk if it's already set.
8849 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
8850 (grub_raid_register): ... here.
8851 (grub_raid_rescan): Removed.
8853 * include/grub/raid.h (grub_raid_rescan): Removed.
8855 * util/grub-fstest.c: Remove include file <grub/raid.h>.
8856 (fstest): Replace grub_raid_rescan with module fini function followed
8859 * util/grub-probe.c: Add include file <grub/raid.h>.
8860 (probe_raid_level): New function.
8861 (probe): Detect abstraction by walking the disk device, support two
8862 level of abstraction (LVM on RAID) when detecting partition map.
8864 2009-07-31 Pavel Roskin <proski@gnu.org>
8866 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
8867 to grub_zalloc(), it was erroneous.
8868 Reported by Bean <bean123ch@gmail.com>
8870 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
8872 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
8873 embedding zone, not only the first one.
8875 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
8877 * term/gfxterm.c (clear_char): New function.
8878 (grub_virtual_screen_setup): Use clear_char.
8879 (scroll_up): Likewise.
8880 (grub_virtual_screen_cls): Likewise.
8882 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
8884 * util/deviceiter.c (get_acceleraid_disk_name): New static
8886 (grub_util_iterate_devices): Handle Accelraid devices.
8887 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
8889 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
8891 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
8892 separator for the suggested gfxpayload string (';' collides with the
8893 parser and needs escaping).
8895 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
8897 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
8898 Clear direction flag before jumping to OS.
8899 (grub_multiboot2_real_boot): Likewise.
8901 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
8903 * util/i386/pc/grub-install: Fix parsing of --disk-module
8906 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
8908 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
8911 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
8913 * util/grub-mkconfig.in (package_version): New variable.
8914 Use it do display the version.
8916 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
8918 * kern/file.c (grub_file_open): Revert to previous check with
8921 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
8923 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
8924 from help line. It's out of sync with code.
8926 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
8928 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
8929 entries on failed boot.
8931 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
8933 * kern/file.c (grub_file_open): Fix an error check.
8935 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
8937 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
8938 partition map couldn't be identified.
8940 2009-07-23 Pavel Roskin <proski@gnu.org>
8942 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
8943 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
8944 case of little endian words becomes just an optimization.
8945 Respect const modifier.
8946 (md5_final): Use code that doesn't depend on endianness.
8948 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
8949 to avoid loss of upper bits if align is unsigned and shorter
8952 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
8954 UUID support for UFS
8956 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
8957 (grub_ufs_uuid): New function.
8958 (grub_ufs_fs): add .uuid
8960 2009-07-21 Pavel Roskin <proski@gnu.org>
8962 * kern/dl.c (grub_dl_check_header): Make static.
8964 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
8966 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
8967 add drivemap for Vista. It breaks Windows 7.
8969 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
8971 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
8974 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
8978 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
8979 (grub_fstest_SOURCES): Likewise.
8980 (pkglib_MODULES): Add befs.mod.
8981 (befs_mod_SOURCES): New variable.
8982 (befs_mod_CFLAGS): Likewise.
8983 (befs_mod_LDFLAGS): Likewise.
8984 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
8985 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8986 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8987 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8988 (grub_setup_SOURCES): Likewise.
8989 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8990 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8991 (grub_setup_SOURCES): Likewise.
8992 * fs/befs.c: New file.
8993 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
8994 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
8995 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
8996 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
8997 (B_KEY_INDEX_ALIGN): New declaration.
8998 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
8999 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
9000 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
9001 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
9002 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
9003 (grub_afs_mount) [MODE_BFS]: Likewise.
9004 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
9005 (grub_afs_fs): Use GRUB_AFS_FSNAME
9006 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
9007 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
9008 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
9009 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
9011 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
9013 * util/getroot.c (find_root_device): Add support for MacOSX.
9014 * util/hostdisk.c: Likewise.
9016 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9018 * font/font.c (find_glyph): Check whether a font is present to avoid
9021 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
9023 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
9025 2009-07-20 Pavel Roskin <proski@gnu.org>
9027 * configure.ac: Trim excessively wordy excuses.
9029 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9031 Add symlink, mtime and label support to AtheFS.
9033 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
9034 (grub_afs_iterate_dir): Handle symlinks.
9035 (grub_afs_open): Use grub_afs_read_symlink.
9036 (grub_afs_dir): Likewise.
9038 (grub_afs_label): New function.
9039 (grub_afs_fs): Add grub_afs_label.
9040 (grub_afs_read_symlink): New function.
9042 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9046 * fs/afs.c: Fix comments style.
9047 (grub_afs_blockrun): Declare as packed.
9048 (grub_afs_datastream): Likewise.
9049 (grub_afs_bnode): Likewise.
9050 (grub_afs_btree): Likewise.
9051 (grub_afs_sblock): Likewise.
9052 Declare `name' as char.
9053 (grub_afs_inode): Declare as packed.
9054 Change void *vnode to grub_uint32_t unused.
9055 (grub_afs_iterate_dir): Check that key_size is positive.
9056 (grub_afs_mount): Don't read superblock twice.
9057 (grub_afs_dir): Don't free node in case of error,
9058 grub_fshelp_find_file already handles this.
9059 (grub_afs_open): Likewise.
9061 2009-07-19 Pavel Roskin <proski@gnu.org>
9063 * Makefile.in: Remove LIBLZO and enable_lzo.
9064 * conf/i386-pc.rmk: Remove lzo support.
9065 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
9066 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
9068 * kern/i386/pc/lzo1x.S: Remove.
9069 * kern/i386/pc/startup.S: Remove lzo support.
9070 * util/i386/pc/grub-mkimage.c: Likewise.
9072 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
9074 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
9075 * fs/xfs.c (grub_xfs_dir): Likewise.
9076 * fs/afs.c (grub_afs_dir): Likewise.
9077 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9078 (grub_iso9660_open): Likewise.
9079 * fs/jfs.c (grub_jfs_open): Likewise.
9080 * fs/ext2.c (grub_ext2_dir): Likewise.
9081 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
9082 * script/sh/lexer.c (grub_script_yylex): Likewise.
9084 2009-07-16 Pavel Roskin <proski@gnu.org>
9086 * configure.ac: Never add "-c" to CFLAGS.
9088 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
9090 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
9091 grub_cv_cc_efiemu should be used.
9093 * configure.ac: Typo fixes.
9095 * kern/mm.c (grub_zalloc): New function.
9096 (grub_debug_zalloc): Likewise.
9097 * include/grub/mm.h: Declare grub_zalloc() and
9098 grub_debug_zalloc().
9099 * util/misc.c (grub_zalloc): New function.
9100 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
9101 instead of grub_malloc(), remove unneeded initializations.
9102 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
9103 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
9104 * commands/parttool.c (grub_cmd_parttool): Likewise.
9105 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
9106 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
9107 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
9108 * disk/usbms.c (grub_usbms_finddevs): Likewise.
9109 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
9110 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
9111 (grub_cmd_efiemu_pnvram): Likewise.
9112 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
9113 * fs/iso9660.c (grub_iso9660_mount): Likewise.
9114 (grub_iso9660_iterate_dir): Likewise.
9115 * fs/jfs.c (grub_jfs_opendir): Likewise.
9116 * fs/ntfs.c (list_file): Likewise.
9117 (grub_ntfs_mount): Likewise.
9118 * kern/disk.c (grub_disk_open): Likewise.
9119 * kern/dl.c (grub_dl_load_core): Likewise.
9120 * kern/elf.c (grub_elf_file): Likewise.
9121 * kern/env.c (grub_env_context_open): Likewise.
9122 (grub_env_set): Likewise.
9123 (grub_env_set_data_slot): Likewise.
9124 * kern/file.c (grub_file_open): Likewise.
9125 * kern/fs.c (grub_fs_blocklist_open): Likewise.
9126 * loader/i386/multiboot.c (grub_module): Likewise.
9127 * loader/xnu.c (grub_xnu_create_key): Likewise.
9128 (grub_xnu_create_value): Likewise.
9129 * normal/main.c (grub_normal_add_menu_entry): Likewise.
9130 (read_config_file): Likewise.
9131 * normal/menu_entry.c (make_screen): Likewise.
9132 * partmap/sun.c (sun_partition_map_iterate): Likewise.
9133 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
9134 * script/sh/script.c (grub_script_parse): Likewise.
9135 * video/bitmap.c (grub_video_bitmap_create): Likewise.
9136 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
9137 * video/readers/png.c (grub_png_output_byte): Likewise.
9138 (grub_video_reader_png): Likewise.
9140 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9142 Enable all targets that can be built by default
9144 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
9145 grub-mkfont and grub-fstest if they can be built
9147 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9149 Fix hang and segmentation fault in grub-emu-usb
9151 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
9152 * util/usb.c (grub_libusb_devices): likewise
9153 (grub_libusb_init): rename to ...
9154 (GRUB_MOD_INIT (libusb)):...this
9155 (grub_libusb_fini): rename to ..
9156 (GRUB_MOD_FINI (libusb)):...this
9157 * disk/usbms.c (grub_usbms_transfer): fix retry logic
9158 * include/grub/disk.h (grub_raid_init): removed, it's useless
9159 (grub_raid_fini): likewise
9160 (grub_lvm_init): likewise
9161 (grub_lvm_fini): likewise
9162 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
9165 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9169 * Makefile.in (LIBUSB): new macro
9170 * genmk.rb (Utility/print_tail): new method
9171 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
9172 (top level): call util.print_tail at the end.
9174 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9176 Make FreeBSD accept zpool.cache
9178 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
9179 type is /boot/zfs/zpool.cache
9181 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9185 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
9186 correct wrong typedef
9187 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
9189 2009-07-15 Pavel Roskin <proski@gnu.org>
9191 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
9192 * kern/disk.c (struct grub_disk_cache): Likewise.
9194 * commands/probe.c (options): Typo fix.
9196 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
9197 Increase to 0x5a to accommodate FAT32. Adjust other offsets
9199 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
9201 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
9202 the end of "Error" to make the message more readable.
9204 * boot/i386/pc/boot.S (kernel_segment): Remove.
9205 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
9208 * boot/i386/pc/boot.S (boot_version): Remove.
9209 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9212 * include/grub/i386/pc/boot.h: Sort all offsets.
9213 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
9214 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
9215 * boot/i386/pc/boot.S: Assert location of every offset listed in
9216 include/grub/i386/pc/boot.h.
9218 2009-07-13 Pavel Roskin <proski@gnu.org>
9220 * include/grub/i386/coreboot/machine.h: Rename
9221 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
9222 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
9223 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
9225 * kern/dl.c: Force native word size to suppress warnings when
9228 * kern/device.c (grub_device_iterate): Change struct part_ent to
9229 hold the name, not a pointer to it. Use one grub_malloc() per
9230 partition, not two. Free partition_name if grub_malloc() fails.
9231 Set ents to NULL only before grub_partition_iterate() is called.
9233 2009-07-11 Bean <bean123ch@gmail.com>
9235 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
9238 2009-07-10 Bean <bean123ch@gmail.com>
9239 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
9241 * kern/ieee1275/openfw.c (grub_children_iterate)
9242 (grub_devalias_iterate): Fix size evaluation for property or path
9243 strings, which was broken since r2132.
9245 2009-07-07 Pavel Roskin <proski@gnu.org>
9247 * commands/search.c (search_file): Merge into ...
9248 (search_fs): ... this. Accept search type as argument.
9249 (grub_cmd_search): Pass search type to search_fs().
9251 * include/grub/util/console.h: New file.
9252 * util/console.c: Use it instead of grub/machine/console.h.
9253 * util/grub-emu.c: Likewise.
9255 * lib/arg.c (find_long_option): Remove.
9256 (find_long): Add `len' argument, make `s' const char *.
9257 (grub_arg_parse): Parse long options in place, not in a
9260 2009-07-06 Pavel Roskin <proski@gnu.org>
9262 * commands/search.c (search_fs): Fix potential NULL pointer
9265 * commands/search.c (search_fs): Replace QUID macro with quid_fn
9268 2009-07-06 Daniel Mierswa <impulze@impulze.org>
9270 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
9273 2009-07-05 Pavel Roskin <proski@gnu.org>
9275 * include/grub/i386/linux.h (struct linux_kernel_params):
9276 Restore padding3, it's still needed.
9278 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
9280 * util/osdetect.lua: Likewise.
9282 2009-07-05 Bean <bean123ch@gmail.com>
9284 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
9286 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
9287 (grub_lua_getenv): Likewise.
9288 (grub_lua_setenv): Likewise.
9289 (save_errno): New function.
9290 (push_result): Likewise.
9291 (grub_lua_enum_device): Likewise.
9292 (grub_lua_enum_file): Likewise.
9293 (grub_lua_file_open): Likewise.
9294 (grub_lua_file_close): Likewise.
9295 (grub_lua_file_seek): Likewise.
9296 (grub_lua_file_read): Likewise.
9297 (grub_lua_file_getline): Likewise.
9298 (grub_lua_file_getsize): Likewise.
9299 (grub_lua_file_getpos): Likewise.
9300 (grub_lua_file_eof): Likewise.
9301 (grub_lua_file_exist): Likewise.
9302 (grub_lua_add_menu): Likewise.
9304 * script/lua/grub_lua.h (isupper): New inline function.
9305 (islower): Likewise.
9306 (ispunct): Likewise.
9307 (isxdigit): Likewise.
9308 (strcspn): Change to normal function.
9309 (strpbkr): New function declaration.
9312 * script/lua/grub_main.c (scan_str): New function.
9313 (strcspn): Likewise.
9314 (strpbrk): Likewise.
9317 * script/lua/linit.c (lualibs): Enable the string library.
9319 * util/osdetect.lua: New file.
9321 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
9323 * include/grub/i386/linux.h (struct linux_kernel_params): Add
9324 `capabilities' member.
9326 2009-07-02 Pavel Roskin <proski@gnu.org>
9328 * genparttoollist.sh: Add missing newline at the end.
9330 2009-07-01 Pavel Roskin <proski@gnu.org>
9332 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
9334 * util/hostdisk.c (open_device): Remove `const' from
9335 `sysctl_size', as sysctlbyname() can change it (in this case it
9336 doesn't actually happen).
9338 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
9339 using signed long int constants.
9341 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
9342 constant to avoid a warning on FreeBSD.
9344 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
9347 * Makefile.in: Install include/grub/machine symlink.
9349 * Makefile.in: When installing symlinks, use "cp -fR", which
9350 works on FreeBSD and MacOSX.
9351 From Yves Blusseau <cl7m42e02@sneakemail.com>
9353 * kern/dl.c (grub_dl_resolve_symbol): Make static.
9354 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
9356 * util/misc.c: Move grub_reboot() and grub_halt() ...
9357 * util/grub-emu.c: ... here. Make main_env static.
9358 * include/grub/util/misc.h: Remove main_env.
9360 * kern/mm.c: Use correct format to print size_t.
9362 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
9363 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
9364 * kern/powerpc/dl.c: Likewise.
9365 * kern/sparc64/dl.c: Likewise.
9366 * kern/x86_64/dl.c: Likewise.
9368 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9370 Fix grub-emu build on sparc64-ieee1275.
9372 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
9373 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
9375 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9377 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
9378 (grub_reboot, grub_halt): New functions.
9380 * util/i386/pc/misc.c: Delete. Update all users.
9381 * util/sparc64/ieee1275/misc.c: Likewise.
9382 * util/powerpc/ieee1275/misc.c: Likewise.
9384 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9386 * conf/i386.rmk (setjmp_mod_SOURCES)
9387 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
9388 * conf/common.rmk (setjmp_mod_SOURCES)
9389 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
9390 to use $(target_cpu).
9391 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
9392 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
9393 * conf/powerpc-ieee1275.rmk: Likewise.
9394 * conf/sparc64-ieee1275.rmk: Likewise.
9396 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
9397 $(target_cpu) for kern/$(target_cpu)/dl.c.
9398 * conf/i386-efi.rmk: Likewise.
9399 * conf/i386-ieee1275.rmk: Likewise.
9400 * conf/x86_64-efi.rmk: Likewise.
9401 * conf/i386-coreboot.rmk: Likewise.
9402 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
9403 $(target_cpu) for kern/$(target_cpu)/dl.c and for
9404 kern/$(target_cpu)/cache.S.
9405 * conf/sparc64-ieee1275.rmk: Likewise.
9407 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9409 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
9410 type to `grub_uint8_t', and adjust `padding9' accordingly.
9412 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9414 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
9416 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
9417 assembly in final jump, using register constraints.
9419 (grub_linux_boot): For text mode, initialize `have_vga' using
9420 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
9422 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
9423 right before the final jump.
9425 Set `video_mode' to 0x3.
9427 Document initialization of `video_page', `video_mode' and
9430 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9432 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
9433 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
9434 and set GRUB_LINUX_FLAG_QUIET appropriately.
9436 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9438 Fix build on Debian / sparc.
9440 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
9442 2009-06-28 Pavel Roskin <proski@gnu.org>
9444 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
9447 * util/grub.d/10_linux.in: Match SUSE style initrd names.
9449 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9451 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
9454 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9458 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
9459 file can't be opened. grub_file_open() is already supposed to set
9460 grub_errno / grub_errmsg appropriately.
9461 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9463 2009-06-27 Pavel Roskin <proski@gnu.org>
9464 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9466 * include/grub/dl.h: Include grub/elf.h.
9467 (struct grub_dl): Add symtab field.
9468 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
9469 GRUB_MODULES_MACHINE_READONLY.
9470 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
9471 of the header for read-only modules.
9472 (grub_dl_unload): Free mod->symtab for read-only modules.
9473 * kern/i386/dl.c: Use mod->symtab.
9474 * kern/powerpc/dl.c: Likewise.
9475 * kern/sparc64/dl.c: Likewise.
9476 * kern/x86_64/dl.c: Likewise.
9478 * conf/i386-qemu.rmk: New file.
9479 * kern/i386/qemu/startup.S: Likewise.
9480 * kern/i386/qemu/mmap.c: Likewise.
9481 * boot/i386/qemu/boot.S: Likewise.
9482 * include/grub/i386/qemu/time.h: Likewise.
9483 * include/grub/i386/qemu/serial.h: Likewise.
9484 * include/grub/i386/qemu/kernel.h: Likewise.
9485 * include/grub/i386/qemu/console.h: Likewise.
9486 * include/grub/i386/qemu/boot.h: Likewise.
9487 * include/grub/i386/qemu/init.h: Likewise.
9488 * include/grub/i386/qemu/machine.h: Likewise.
9489 * include/grub/i386/qemu/loader.h: Likewise.
9490 * include/grub/i386/qemu/memory.h: Likewise.
9492 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
9493 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
9494 [qemu] (pkglib_IMAGES): Add `boot.img'.
9495 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
9496 [qemu] (boot_img_FORMAT): New variables.
9497 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
9498 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
9499 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
9500 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9501 [qemu] (kernel_img_FORMAT): New variables.
9503 * configure.ac: Recognise `i386-qemu'.
9505 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
9506 (for no compression).
9507 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
9508 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
9509 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
9510 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
9513 2009-06-27 Pavel Roskin <proski@gnu.org>
9515 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
9517 * efiemu/prepare32.c: Likewise.
9518 * efiemu/prepare64.c: Likewise.
9520 2009-06-26 Pavel Roskin <proski@gnu.org>
9522 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
9523 * include/grub/elf.h: Define symbols without "32" or "64" based
9524 on GRUB_TARGET_WORDSIZE.
9525 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
9526 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
9528 * efiemu/loadcore64.c: Likewise.
9529 * loader/i386/bsd32.c: Likewise.
9530 * loader/i386/bsd64.c: Likewise.
9531 * kern/dl.c: Remove own ELF definitions.
9532 * util/i386/efi/grub-mkimage.c: Likewise.
9534 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
9536 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
9537 segment 0x0 unconditionally, because the reference generated by
9538 GAS is an absolute address.
9540 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9542 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
9543 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
9545 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9547 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
9548 indexes. Check for -f explicitly.
9549 (search_file): Improve error message.
9550 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
9552 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9554 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
9555 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
9557 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9559 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
9560 * conf/i386-ieee1275.rmk: Likewise.
9561 * conf/i386-coreboot.rmk: Likewise.
9563 * kern/i386/pc/startup.S (grub_stop): Remove function.
9564 * kern/i386/ieee1275/startup.S: Likewise.
9565 * kern/i386/coreboot/startup.S: Likewise.
9566 * kern/i386/misc.S (grub_stop): New function.
9568 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9570 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
9571 * kern/i386/realmode.S (real_to_prot): ... to here.
9573 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9575 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
9577 (kernel_elf_SOURCES): Rename to ...
9578 (kernel_img_SOURCES): ... this.
9579 (kernel_elf_HEADERS): Rename to ...
9580 (kernel_img_HEADERS): ... this. Update all users.
9581 (kernel_elf_ASFLAGS): Rename to ...
9582 (kernel_img_ASFLAGS): ... this.
9583 (kernel_elf_CFLAGS): Rename to ...
9584 (kernel_img_CFLAGS): ... this.
9585 (kernel_elf_LDFLAGS): Rename to ...
9586 (kernel_img_LDFLAGS): ... this.
9587 * conf/i386-coreboot.rmk: Likewise.
9588 * conf/powerpc-ieee1275.rmk: Likewise.
9590 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
9593 2009-06-21 Pavel Roskin <proski@gnu.org>
9595 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
9596 to match nested functions.
9597 * loader/sparc64/ieee1275/linux.c: Likewise.
9599 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
9601 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
9603 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
9606 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
9608 Fix asm file handling on ELF, and remove workarounds.
9610 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
9611 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
9612 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
9613 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
9615 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9617 Load BSD ELF modules
9619 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
9620 and loader/i386/bsd64.c
9621 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
9622 (FREEBSD_MODTYPE_ELF_MODULE): New definition
9623 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
9624 (grub_freebsd_load_elfmodule32): New declaration
9625 (grub_freebsd_load_elfmoduleobj64): Likewise
9626 (grub_freebsd_load_elf_meta32): Likewise
9627 (grub_freebsd_load_elf_meta64): Likewise
9628 (grub_freebsd_add_meta): Likewise
9629 (grub_freebsd_add_meta_module): Likewise
9630 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
9631 (grub_freebsd_add_meta_module): Likewise and move module-specific
9632 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
9633 (grub_cmd_freebsd): Add elf-kernel specific parts
9634 based on grub_freebsd_add_meta_module
9635 (grub_cmd_freebsd_module): Add type parsing moved from
9636 grub_freebsd_add_meta_module
9637 (grub_cmd_freebsd_module_elf): New function
9638 (cmd_freebsd_module_elf): New variable
9639 (GRUB_MOD_INIT): Register freebsd_module_elf
9640 * loader/i386/bsd32.c: New file
9641 * loader/i386/bsd64.c: Likewise
9642 * loader/i386/bsdXX.c: Likewise
9643 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
9644 (grub_elf64_load): Likewise
9645 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
9647 (grub_elf64_load_hook_t): Likewise
9649 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
9651 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
9653 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
9654 don't write a menu entry for recovery mode.
9656 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
9658 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
9659 after it's no longer needed.
9661 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
9663 * include/grub/i386/loader.h (grub_linux_prot_size)
9664 (grub_linux_tmp_addr, grub_linux_real_addr)
9665 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
9666 GRUB_MACHINE_PCBIOS.
9667 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
9668 common grub_util_info() call to ...
9669 (generate_image): ... here.
9670 Fix use of uninitialized memory, comparison of signed with
9671 unsigned integers and memory leak.
9672 Remove bogus module address message.
9674 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9676 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
9678 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
9680 2009-06-19 Pavel Roskin <proski@gnu.org>
9682 * configure.ac: Remove stray AC_MSG_CHECKING.
9684 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9686 * disk/scsi.c (grub_scsi_open): use continue instead of big if
9688 2009-06-18 Pavel Roskin <proski@gnu.org>
9690 * conf/common.rmk: Add fs_file.mod.
9691 * disk/fs_file.c: New file.
9692 * include/grub/disk.h (enum grub_disk_dev_id): Add
9693 GRUB_DISK_DEVICE_FILE_ID.
9695 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9697 Fix build with Apple's toolchain. Part 2
9699 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
9702 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9704 Fix build with Apple's toolchain. Part 1
9706 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
9708 * configure.ac: remove a leftover AC_MSG_RESULT
9709 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
9712 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9716 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
9717 (decomp_block): initialize ch
9718 use grub_memcpy instead of memcpy
9720 2009-06-17 Pavel Roskin <proski@gnu.org>
9722 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
9723 version, use declarations needed to use vga_text as the startup
9726 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
9727 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
9729 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
9730 and grub_at_keyboard_fini(), it's done on module load and
9733 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
9735 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
9736 file can't be found.
9737 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9739 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9741 Fix newline handling
9743 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
9744 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
9745 (grub_script_yylex): don't segfault on unterminated script
9746 newline terminates command and variable
9748 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9750 avoid double grub_adjust_range call. Bug reported by David Simner
9752 * kern/disk.c (grub_disk_write): change to raw disk access before
9755 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
9757 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
9758 spaces, for the benefit of help2man.
9759 * util/i386/efi/grub-mkimage.c (usage): Likewise.
9761 2009-06-16 Pavel Roskin <proski@gnu.org>
9763 * kern/i386/halt.c: Include grub/machine/init.h.
9764 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
9766 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
9768 * util/grub.d/30_os-prober.in: Use ${root} in the generated
9771 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
9773 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
9776 2009-06-16 Pavel Roskin <proski@gnu.org>
9778 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
9779 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
9780 save %dx, we only need %dl and we never change it.
9781 * boot/i386/pc/cdboot.S: Don't set the root drive.
9782 * boot/i386/pc/pxeboot.S: Likewise.
9783 * include/grub/i386/pc/boot.h: Remove
9784 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
9785 GRUB_BOOT_MACHINE_DRIVE_CHECK.
9786 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
9787 * kern/i386/pc/init.c (make_install_device): Remove references
9789 * kern/i386/pc/startup.S: Likewise.
9790 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
9792 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9796 * commands/xnu_uuid.c: new file
9797 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
9798 (xnu_uuid_mod_SOURCES): new variable
9799 (xnu_uuid_mod_CFLAGS): likewise
9800 (xnu_uuid_mod_LDFLAGS): likewise
9801 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
9802 * conf/i386-ieee1275.rmk: likewise
9803 * conf/i386-pc.rmk: likewise
9804 * conf/powerpc-ieee1275.rmk: likewise
9805 * conf/sparc64-ieee1275.rmk: likewise
9806 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
9808 2009-06-16 Pavel Roskin <proski@gnu.org>
9810 * configure.ac: Avoid '==' in test command, it's not portable.
9812 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9816 * commands/probe.c: new file
9817 * conf/common.rmk (pkglib_MODULES): add probe.mod
9818 (probe_mod_SOURCES): new variable
9819 (probe_mod_CFLAGS): likewise
9820 (probe_mod_LDFLAGS): likewise
9821 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
9822 * conf/i386-ieee1275.rmk: likewise
9823 * conf/i386-pc.rmk: likewise
9824 * conf/powerpc-ieee1275.rmk: likewise
9825 * conf/sparc64-ieee1275.rmk: likewise
9827 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9829 Fix handling of string like \"hello\" and "a
9832 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
9833 (grub_script_yylex): fix parsing of quoting, escaping and newline
9835 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9837 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
9840 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
9842 * util/grub-mkconfig.in: Fix parsing of --output option.
9844 2009-06-12 Pavel Roskin <proski@gnu.org>
9846 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
9847 genmk.rb don't need to be generated or installed.
9849 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
9851 * commands/i386/pc/drivemap_int13h.S: add more comments
9853 2009-06-11 Pavel Roskin <proski@gnu.org>
9855 * Makefile.in (uninstall): Uninstall manuals.
9857 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
9858 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
9859 and update-grub_lib in two places.
9860 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
9862 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
9865 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
9866 `entry_lo' to fix variable shadowing.
9868 2009-06-11 Christian Franke <franke@computer.org>
9870 * kern/misc.c (__enable_execute_stack): Add missing return type
9871 to prevent gcc warning.
9873 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
9875 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
9877 2009-06-11 Pavel Roskin <proski@gnu.org>
9879 * Makefile.in: Don't rely on any scripts being executable.
9880 Always use $(SHELL) to run shell scripts.
9882 * configure.ac: Always define ___main if using -nostdlib. This
9883 fixes tests on Cygwin.
9885 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
9889 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
9890 is in bytes and not in blocks
9892 2009-06-11 Pavel Roskin <proski@gnu.org>
9894 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
9897 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
9899 * util/grub.d/30_os-prober.in: Fix a comment. Source
9900 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
9901 to set the root device. Place drivemap command in the generated
9904 2009-06-11 Pavel Roskin <proski@gnu.org>
9906 * configure.ac: Remove host_m32. Issues with 64-bit utilities
9907 have long been resolved.
9909 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
9911 * util/grub.d/10_linux.in: Capitalise "Linux".
9913 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
9915 2009-06-11 Pavel Roskin <proski@gnu.org>
9917 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
9918 fix a gcc warning and ensure that the function won't ever exit.
9920 * kern/i386/ieee1275/init.c: Add missing prototype for
9923 * loader/ieee1275/multiboot2.c [__i386__]: Include
9924 grub/cpu/multiboot.h.
9926 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
9927 casts to short - they are not portable and cause warnings. Fix
9928 use of uninitialized values in input_buf. Use ARRAY_SIZE.
9930 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9934 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
9936 (grub_get_root_biosnumber_saved): new variable
9937 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
9938 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
9939 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
9940 %dx after the call if necessary
9941 * conf/common.rmk (pkglib_MODULES): remove boot.mod
9942 (boot_mod_SOURCES): remove
9943 (boot_mod_CFLAGS): remove
9944 (boot_mod_LDFLAGS): remove
9945 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
9946 (boot_mod_SOURCES): new variable
9947 (boot_mod_CFLAGS): likewise
9948 (boot_mod_LDFLAGS): likewise
9949 * conf/i386-efi.rmk: likewise
9950 * conf/i386-ieee1275.rmk: likewise
9951 * conf/i386-pc.rmk: likewise
9952 * conf/powerpc-ieee1275.rmk: likewise
9953 * conf/sparc64-ieee1275.rmk: likewise
9954 * conf/x86_64-efi.rmk: likewise
9955 * include/grub/i386/pc/biosnum.h: new file
9956 * lib/i386/pc/biosnum.c: likewise
9957 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
9958 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
9959 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
9961 2009-06-10 Pavel Roskin <proski@gnu.org>
9963 * io/gzio.c (test_header): Don't reuse one buffer for all data.
9964 Use separate variables. Read only the file size at the end, but
9965 not the checksum that we don't use.
9967 * kern/file.c (grub_file_read): Use void pointer for the buffer.
9970 * kern/ieee1275/openfw.c: Remove libc includes.
9971 * kern/ieee1275/cmain.c: Likewise.
9972 * include/grub/ieee1275/ieee1275.h: Likewise.
9974 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
9977 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
9979 * Makefile.in: Remove all trailing whitespace.
9980 * conf/i386-pc.rmk: Likewise.
9981 * conf/powerpc-ieee1275.rmk: Likewise.
9982 * conf/sparc64-ieee1275.rmk: Likewise.
9983 * docs/grub.texi: Likewise.
9984 * docs/texinfo.tex: Likewise.
9985 * disk/fs_uuid.c: Likewise.
9986 * disk/lvm.c: Likewise.
9987 * disk/scsi.c: Likewise.
9988 * disk/ata.c: Likewise.
9989 * disk/ieee1275/ofdisk.c: Likewise.
9990 * disk/i386/pc/biosdisk.c: Likewise.
9991 * disk/host.c: Likewise.
9992 * disk/raid.c: Likewise.
9993 * disk/efi/efidisk.c: Likewise.
9994 * disk/usbms.c: Likewise.
9995 * disk/memdisk.c: Likewise.
9996 * disk/loopback.c: Likewise.
9997 * kern/powerpc/dl.c: Likewise.
9998 * kern/device.c: Likewise.
9999 * kern/dl.c: Likewise.
10000 * kern/sparc64/dl.c: Likewise.
10001 * kern/ieee1275/ieee1275.c: Likewise.
10002 * kern/term.c: Likewise.
10003 * kern/fs.c: Likewise.
10004 * kern/i386/dl.c: Likewise.
10005 * kern/i386/pc/startup.S: Likewise.
10006 * kern/i386/pc/init.c: Likewise.
10007 * kern/i386/pc/mmap.c: Likewise.
10008 * kern/i386/pc/lzo1x.S: Likewise.
10009 * kern/i386/ieee1275/init.c: Likewise.
10010 * kern/i386/realmode.S: Likewise.
10011 * kern/i386/tsc.c: Likewise.
10012 * kern/partition.c: Likewise.
10013 * kern/corecmd.c: Likewise.
10014 * kern/file.c: Likewise.
10015 * kern/efi/efi.c: Likewise.
10016 * kern/efi/init.c: Likewise.
10017 * kern/efi/mm.c: Likewise.
10018 * kern/main.c: Likewise.
10019 * kern/err.c: Likewise.
10020 * kern/env.c: Likewise.
10021 * kern/disk.c: Likewise.
10022 * kern/generic/millisleep.c: Likewise.
10023 * kern/generic/rtc_get_time_ms.c: Likewise.
10024 * kern/misc.c: Likewise.
10025 * kern/parser.c: Likewise.
10026 * genmk.rb: Likewise.
10027 * configure.ac: Likewise.
10028 * boot/i386/pc/diskboot.S: Likewise.
10029 * boot/i386/pc/pxeboot.S: Likewise.
10030 * boot/i386/pc/boot.S: Likewise.
10031 * boot/i386/pc/lnxboot.S: Likewise.
10032 * boot/i386/pc/cdboot.S: Likewise.
10033 * parttool/pcpart.c: Likewise.
10034 * video/readers/tga.c: Likewise.
10035 * video/video.c: Likewise.
10036 * video/bitmap.c: Likewise.
10037 * lib/envblk.c: Likewise.
10038 * lib/i386/setjmp.S: Likewise.
10039 * fs/xfs.c: Likewise.
10040 * fs/afs.c: Likewise.
10041 * fs/fat.c: Likewise.
10042 * fs/ntfs.c: Likewise.
10043 * fs/udf.c: Likewise.
10044 * fs/affs.c: Likewise.
10045 * fs/iso9660.c: Likewise.
10046 * fs/hfs.c: Likewise.
10047 * fs/fshelp.c: Likewise.
10048 * fs/ext2.c: Likewise.
10049 * fs/jfs.c: Likewise.
10050 * fs/reiserfs.c: Likewise.
10051 * fs/hfsplus.c: Likewise.
10052 * fs/minix.c: Likewise.
10053 * fs/cpio.c: Likewise.
10054 * fs/sfs.c: Likewise.
10055 * fs/ufs.c: Likewise.
10056 * efiemu/prepare.c: Likewise.
10057 * efiemu/loadcore_common.c: Likewise.
10058 * efiemu/runtime/efiemu.sh: Likewise.
10059 * efiemu/runtime/efiemu.S: Likewise.
10060 * efiemu/runtime/efiemu.c: Likewise.
10061 * efiemu/pnvram.c: Likewise.
10062 * efiemu/main.c: Likewise.
10063 * efiemu/i386/pc/cfgtables.c: Likewise.
10064 * efiemu/i386/loadcore64.c: Likewise.
10065 * efiemu/i386/loadcore32.c: Likewise.
10066 * efiemu/loadcore.c: Likewise.
10067 * efiemu/symbols.c: Likewise.
10068 * efiemu/mm.c: Likewise.
10069 * include/grub/autoefi.h: Likewise.
10070 * include/grub/datetime.h: Likewise.
10071 * include/grub/term.h: Likewise.
10072 * include/grub/hfs.h: Likewise.
10073 * include/grub/lvm.h: Likewise.
10074 * include/grub/i386/tsc.h: Likewise.
10075 * include/grub/i386/linux.h: Likewise.
10076 * include/grub/i386/xnu.h: Likewise.
10077 * include/grub/i386/efiemu.h: Likewise.
10078 * include/grub/i386/pc/biosdisk.h: Likewise.
10079 * include/grub/i386/pc/memory.h: Likewise.
10080 * include/grub/i386/pc/vbe.h: Likewise.
10081 * include/grub/parttool.h: Likewise.
10082 * include/grub/video.h: Likewise.
10083 * include/grub/memory.h: Likewise.
10084 * include/grub/fs.h: Likewise.
10085 * include/grub/partition.h: Likewise.
10086 * include/grub/xnu.h: Likewise.
10087 * include/grub/efi/api.h: Likewise.
10088 * include/grub/efi/pe32.h: Likewise.
10089 * include/grub/efi/memory.h: Likewise.
10090 * include/grub/multiboot.h: Likewise.
10091 * include/grub/usbdesc.h: Likewise.
10092 * include/grub/multiboot2.h: Likewise.
10093 * include/grub/acpi.h: Likewise.
10094 * include/grub/efiemu/efiemu.h: Likewise.
10095 * include/grub/disk.h: Likewise.
10096 * include/grub/ieee1275/ieee1275.h: Likewise.
10097 * include/grub/net.h: Likewise.
10098 * include/grub/machoload.h: Likewise.
10099 * include/grub/macho.h: Likewise.
10100 * include/multiboot.h: Likewise.
10101 * genmoddep.awk: Likewise.
10102 * normal/main.c: Likewise.
10103 * normal/menu_entry.c: Likewise.
10104 * normal/menu_viewer.c: Likewise.
10105 * normal/completion.c: Likewise.
10106 * normal/cmdline.c: Likewise.
10107 * normal/misc.c: Likewise.
10108 * normal/datetime.c: Likewise.
10109 * bus/usb/usbtrans.c: Likewise.
10110 * bus/usb/ohci.c: Likewise.
10111 * bus/usb/uhci.c: Likewise.
10112 * bus/usb/usb.c: Likewise.
10113 * mmap/efi/mmap.c: Likewise.
10114 * mmap/i386/pc/mmap_helper.S: Likewise.
10115 * mmap/i386/pc/mmap.c: Likewise.
10116 * mmap/i386/mmap.c: Likewise.
10117 * mmap/i386/uppermem.c: Likewise.
10118 * mmap/mmap.c: Likewise.
10119 * commands/acpi.c: Likewise.
10120 * commands/echo.c: Likewise.
10121 * commands/blocklist.c: Likewise.
10122 * commands/loadenv.c: Likewise.
10123 * commands/usbtest.c: Likewise.
10124 * commands/boot.c: Likewise.
10125 * commands/parttool.c: Likewise.
10126 * commands/search.c: Likewise.
10127 * commands/cat.c: Likewise.
10128 * commands/i386/pc/play.c: Likewise.
10129 * commands/i386/pc/drivemap.c: Likewise.
10130 * commands/i386/pc/vbeinfo.c: Likewise.
10131 * commands/i386/pc/acpi.c: Likewise.
10132 * commands/i386/pc/vbetest.c: Likewise.
10133 * commands/ls.c: Likewise.
10134 * commands/cmp.c: Likewise.
10135 * commands/test.c: Likewise.
10136 * commands/efi/acpi.c: Likewise.
10137 * commands/gptsync.c: Likewise.
10138 * commands/help.c: Likewise.
10139 * partmap/amiga.c: Likewise.
10140 * partmap/apple.c: Likewise.
10141 * partmap/acorn.c: Likewise.
10142 * partmap/pc.c: Likewise.
10143 * partmap/sun.c: Likewise.
10144 * partmap/gpt.c: Likewise.
10145 * script/sh/lexer.c: Likewise.
10146 * script/sh/function.c: Likewise.
10147 * font/font.c: Likewise.
10148 * font/font_cmd.c: Likewise.
10149 * loader/powerpc/ieee1275/linux.c: Likewise.
10150 * loader/efi/chainloader.c: Likewise.
10151 * loader/multiboot_loader.c: Likewise.
10152 * loader/macho.c: Likewise.
10153 * loader/i386/multiboot.c: Likewise.
10154 * loader/i386/linux.c: Likewise.
10155 * loader/i386/pc/linux.c: Likewise.
10156 * loader/i386/pc/multiboot2.c: Likewise.
10157 * loader/i386/pc/chainloader.c: Likewise.
10158 * loader/i386/pc/xnu.c: Likewise.
10159 * loader/i386/bsd_trampoline.S: Likewise.
10160 * loader/i386/efi/linux.c: Likewise.
10161 * loader/i386/multiboot_elfxx.c: Likewise.
10162 * loader/i386/bsd_helper.S: Likewise.
10163 * loader/i386/bsd.c: Likewise.
10164 * loader/i386/linux_trampoline.S: Likewise.
10165 * loader/i386/xnu_helper.S: Likewise.
10166 * loader/i386/xnu.c: Likewise.
10167 * loader/i386/bsd_pagetable.c: Likewise.
10168 * loader/i386/multiboot_helper.S: Likewise.
10169 * loader/xnu.c: Likewise.
10170 * loader/xnu_resume.c: Likewise.
10171 * io/gzio.c: Likewise.
10172 * term/efi/console.c: Likewise.
10173 * term/terminfo.c: Likewise.
10174 * term/ieee1275/ofconsole.c: Likewise.
10175 * term/i386/pc/serial.c: Likewise.
10176 * term/i386/pc/vesafb.c: Likewise.
10177 * term/i386/pc/vga.c: Likewise.
10178 * term/usb_keyboard.c: Likewise.
10179 * term/gfxterm.c: Likewise.
10180 * aclocal.m4: Likewise.
10181 * util/lvm.c: Likewise.
10182 * util/grub.d/30_os-prober.in: Likewise.
10183 * util/grub.d/10_hurd.in: Likewise.
10184 * util/console.c: Likewise.
10185 * util/grub-macho2img.c: Likewise.
10186 * util/grub-probe.c: Likewise.
10187 * util/hostfs.c: Likewise.
10188 * util/i386/pc/grub-mkimage.c: Likewise.
10189 * util/i386/pc/grub-setup.c: Likewise.
10190 * util/i386/efi/grub-mkimage.c: Likewise.
10191 * util/grub-mkconfig.in: Likewise.
10192 * util/raid.c: Likewise.
10193 * util/resolve.c: Likewise.
10194 * util/grub-mkdevicemap.c: Likewise.
10195 * util/grub-emu.c: Likewise.
10196 * util/getroot.c: Likewise.
10197 * util/hostdisk.c: Likewise.
10198 * util/usb.c: Likewise.
10199 * util/grub-editenv.c: Likewise.
10200 * util/misc.c: Likewise.
10202 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10204 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
10205 `genparttoollist.sh'.
10206 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
10207 Add `*.sh' to the list find searches for and change `mdate.sh'
10210 2009-06-10 Pavel Roskin <proski@gnu.org>
10212 * include/grub/multiboot2.h: Provide compatibility defines for
10214 * include/multiboot2.h: Include stdint.h only if needed, using
10216 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
10218 * loader/ieee1275/multiboot2.c: Likewise.
10219 * loader/multiboot2.c: Likewise.
10220 * loader/multiboot_loader.c: Likewise.
10222 * configure.ac: Use -nostdlib when probing for the target. It
10223 should not be required to have libc for the target.
10225 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
10226 they fail without libc headers for the target.
10227 * include/grub/powerpc/libgcc.h: Use weak attribute for all
10229 * include/grub/sparc64/libgcc.h: Likewise. Don't use
10230 preprocessor conditionals.
10232 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
10233 build system doesn't need to be aware of the tar.c internals.
10235 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
10237 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
10239 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
10241 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
10242 disk limit to 26 for IDE, Virtio, Xen and SCSI.
10244 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
10246 * util/i386/pc/grub-install.in: Change the error message if UUIDs
10247 aren't available if ata.mod gets used.
10249 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
10251 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
10252 initialising controller.
10253 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10255 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10257 * util/i386/pc/grub-install.in: Add a parameter --disk-module
10258 to choose between ata and biosdisk module on i386-pc.
10260 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
10262 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
10263 Subclass and Programming Interface fields in terms of the 3 byte
10264 Class Code register.
10265 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10267 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
10268 interface is OHCI. Add grub_dprintf for symmetry with
10270 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
10271 interface is UHCI. Add interf variable for programming
10272 interface. Print interface with class/subclass.
10274 * bus/usb/ohci.c: Set interf with correct field.
10276 * bus/usb/uhci.c: Remove unneeded doubled lines.
10277 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
10278 Remove whitespace inside comment.
10280 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
10282 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
10283 as fallback an equivalent option without depth.
10285 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10287 Not fail if unable to retrieve C/H/S on LBA disks
10289 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
10290 if unable to retrieve C/H/S on LBA disks
10292 2009-06-08 Pavel Roskin <proski@gnu.org>
10294 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
10297 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10299 * Makefile.in (uninstall): Remove all $lib_DATA files.
10301 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10303 Bugfix: install on partitionless device
10305 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
10308 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10310 * Makefile.in (uninstall): Remove all $include_DATA files.
10312 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10314 * commands/true.c: New file. Implement the true and false commands.
10315 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
10316 (true_mod_SOURCES): New variable.
10317 (true_mod_CFLAGS): Likewise.
10318 (true_mod_LDFLAGS): Likewise.
10320 2009-06-05 Colin D Bennett <colin@gibibit.com>
10322 Optimized font character lookup using binary search instead of linear
10323 search. Fonts now are required to have the character index ordered by
10326 * font/font.c (load_font_index): Verify that fonts have ordered
10328 (find_glyph): Use binary search instead of linear search to find a
10329 character in a font.
10331 2009-06-05 Michael Scherer <misc@mandriva.org>
10333 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
10334 uses case sensitive btree.
10335 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
10336 only for case insensitive filesystems.
10338 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
10340 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
10341 * conf/common.rmk (search_mod_CFLAGS): likewise
10343 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10345 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
10346 compensate a compiler bug
10348 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10350 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
10353 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10355 Definitions for creating asm symbols with Apple's CC
10357 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
10358 [APPLE_CC] (VARIABLE): likewise
10360 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10362 Disable lnxboot.img when compiled
10365 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
10366 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
10367 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
10368 [! APPLE_CC] (CODE_LENG): skip
10369 [! APPLE_CC] (setup_sects): likewise
10370 [! APPLE_CC]: skip filling
10372 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10374 Address in trampolines based on 32-bit registers when compiled
10377 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
10379 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
10381 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10383 Avoid aliases when compiling with Apple's CC for PCBIOS machine
10385 * kern/misc.c [APPLE_CC] (memcpy): new function
10386 [APPLE_CC] (memmove): likewise
10387 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
10388 (memcpy): define alias conditionally on !APPLE_CC
10391 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
10392 APPLE_CC are defined
10393 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
10394 (grub_assert_fail): make prototype conditional
10396 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10398 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
10400 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
10402 (CLEANFILES): add grub-macho2img
10403 (grub_macho2img_SOURCES): new variable
10404 * kern/i386/pc/startup.S (bss_start): new variable
10405 (bss_end): likewise
10406 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
10407 * util/grub-macho2img.c: new file
10409 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10411 Use objconv when compiling with Apple's CC
10413 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
10414 (efiemu64.o): likewise
10415 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
10416 when compiling with Apple's CC
10417 (efiemu64_s.o): likewise
10418 * configure.ac: check for objconv when compiling with Apple's CC
10419 * genmk.rb: use objconv for modules when compiled with Apple's CC
10421 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10423 Define segment as well as section when compiling with
10426 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
10427 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
10428 (efiemu_convert_pointer): likewise
10429 (efiemu_set_virtual_address_map): likewise
10430 (efiemu_convert_pointer): likewise
10431 (efiemu_getcrc32): likewise
10432 (init_crc32_table): likewise
10433 (reflect): likewise
10434 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
10435 (GRUB_MOD_DEP): likewise
10437 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10439 Allow a compilation without -mcmodel=large
10441 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
10442 when compiled without -mcmodel=large
10443 (filter_memory_map): remove memory post 4 GiB when compiled
10444 without -mcmodel=large
10445 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
10446 TARGET_CFLAGS when -mcmodel=large isn't supported
10448 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10450 Remove nested functions in efiemu core
10452 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
10454 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10456 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
10458 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
10460 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
10462 (grub_cpu_is_tsc_supported): likewise
10463 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
10465 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10467 Absolute addressing through constant with Apple's cc
10469 * kern/i386/pc/startup.S: Define necessary constants
10470 and address through it when using ABS with Apple's CC
10471 * boot/i386/pc/diskboot.S: likewise
10472 * boot/i386/pc/boot.S: likewise
10473 * boot/i386/pc/lnxboot.S: likewise
10474 * boot/i386/pc/cdboot.S: likewise
10475 * mmap/i386/pc/mmap_helper.S: likewise
10476 * commands/i386/pc/drivemap_int13h.S: likewise
10478 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10480 Check if compiler is apple cc
10482 * Makefile.in (ASFLAGS): new variable
10483 (TARGET_ASFLAGS): likewise
10484 (TARGET_MODULE_FORMAT): likewise
10485 (TARGET_APPLE_CC): likewise
10486 (OBJCONV): likewise
10487 (TARGET_IMG_CFLAGS): likewise
10488 (TARGET_CPPFLAGS): add includedir
10489 * configure.ac: call grub_apple_cc and grub_apple_target_cc
10490 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
10491 Check for linker script only if compiler isn't Apple's CC
10492 (TARGET_MODULE_FORMAT): set
10493 (TARGET_APPLE_CC): likewise
10494 (TARGET_ASFLAGS): likewise
10495 (ASFLAGS): likewise
10496 Check for objcopy only if compiler isn't Apple's CC
10497 Check for BSS symbol only if compiler isn't Apple's CC
10498 * genmk.rb: adapt nm options if we use Apple's utils
10499 * aclocal.m4 (grub_apple_cc): new test
10500 (grub_apple_target_cc): likewise
10502 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10504 Simplify sed expressions and improve awk
10506 * Makefile.in (install-local): simplify sed expression
10507 * gencmdlist.sh: likewise
10508 * genmoddep.awk: avoid adding module as a dependency of itself
10510 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10512 Add missing start symbols
10514 * boot/i386/pc/boot.S: add start
10515 * boot/i386/pc/pxeboot.S: likewise
10517 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10519 Fix wrong assumptions with grub-mkimage on EFI
10521 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
10522 (relocate_addresses): consider both r_addend and value at offset
10523 (make_mods_section): zerofill modinfo and header
10524 (convert_elf): write prefix here
10526 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10528 Use .asciz instead of .string
10530 * i386/pc/diskboot.S: use .asciz instead of .string
10531 * i386/pc/boot.S: likewise
10532 * include/grub/dl.h (GRUB_MOD_DEP): likewise
10533 (GRUB_MOD_NAME): likewise
10535 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10539 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
10540 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
10541 (grub_video_setup): remove
10542 (grub_video_set_mode): new prototype
10543 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
10545 (linux_vesafb_res): compile only on PCBIOS
10546 (grub_linux_boot): support gfxpayload
10547 * loader/i386/pc/xnu.c (video_hook): new function
10548 (grub_xnu_set_video): support gfxpayload
10549 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
10550 (DEFAULT_VIDEO_HEIGHT): likewise
10551 (DEFAULT_VIDEO_FLAGS): likewise
10552 (DEFAULT_VIDEO_MODE): new definition
10553 (video_hook): new function
10554 (grub_gfxterm_init): use grub_video_set_mode
10555 * util/grub.d/30_os-prober.in: remove explicit modesetting before
10557 * video/video.c (grub_video_setup): removed
10558 (grub_video_set_mode): new function based on grub_gfxterm_init and
10561 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10563 Avoid calling biosdisk in drivemap
10565 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
10566 (revparse_biosdisk): likewise
10567 (list_mappings): derive name from id directly
10568 (grub_cmd_drivemap): use tryparse_diskstring
10570 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10574 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
10575 (grub_lexer_param): add tokenonhold
10576 (grub_script_create_cmdline): remove cmdline. All callers updated
10577 (grub_script_function_create): make functionname
10578 grub_script_arg. All callers updated
10579 (grub_script_execute_argument_to_string): new prototype
10580 * kern/parser.c (state_transitions): reorder
10581 (grub_parser_cmdline_state): fix a bug and make more compact
10582 * script/sh/execute.c (grub_script_execute_argument_to_string):
10584 (grub_script_execute_cmdline): use new format
10585 * script/sh/function.c (grub_script_function_create): make functionname
10586 grub_script_arg. All callers updated
10587 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
10588 (grub_script_yylex): remove
10589 (grub_script_yylex2): renamed to ...
10590 (grub_script_yylex): ...renamed
10591 parse the expressions like a${b}c
10592 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
10593 (GRUB_PARSER_TOKEN_VAR): remove
10594 (GRUB_PARSER_TOKEN_NAME): likewise
10595 ("if"): declare as typeless
10596 ("while"): likewise
10597 ("function"): likewise
10602 (argument): likewise
10603 (script): accept empty scripts and make exit on error
10604 (arguments): use GRUB_PARSER_TOKEN_ARG
10605 (function): likewise
10606 (command): move error handling to script
10607 (menuentry): move grub_script_lexer_ref before
10608 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
10609 argument. All callers updated
10611 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10613 Prevent GRUB from probing floppies during boot.
10615 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
10616 * commands/search.c (options): Add --no-floppy.
10617 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
10618 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
10619 --no-floppy when searching for UUIDs.
10621 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10623 Simplify the code duplication in commands/search.c.
10625 * commands/search.c (search_label, search_fs_uuid): Merge into ...
10626 (search_fs): ... this. Update all users.
10628 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
10630 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
10632 2009-05-28 Pavel Roskin <proski@gnu.org>
10634 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
10635 Remove the original symlink explicitly.
10637 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
10638 just one slash. That's how grub_fshelp_find_file() does it.
10640 2009-05-26 Pavel Roskin <proski@gnu.org>
10642 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
10645 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
10648 2009-05-25 Christian Franke <franke@computer.org>
10650 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
10652 (grub_atapi_identify): Add wait after drive select.
10653 (grub_ata_identify): Do more strict status register check before
10654 calling grub_atapi_identify (). Suppress error message if status
10655 register is 0x00 after command failure. Add status register
10656 check after PIO read to avoid bogus identify due to stuck DRQ.
10657 Thanks to Pavel Roskin for testing.
10658 (grub_device_initialize): Remove unsafe status register check.
10659 Thanks to 'phcoder' for problem report and patch.
10660 Prevent sign extension in debug message.
10662 2009-05-23 Colin D Bennett <colin@gibibit.com>
10664 Cleaned up `include/grub/normal.h'. Grouped prototypes by
10665 definition file, and functions defined in `normal/menu.c' have had
10666 their prototypes moved to `include/grub/menu.h' for consistency.
10668 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
10670 (grub_menu_get_entry): Likewise.
10671 (grub_menu_get_timeout): Likewise.
10672 (grub_menu_set_timeout): Likewise.
10673 (grub_menu_execute_entry): Likewise.
10674 (grub_menu_execute_with_fallback): Likewise.
10675 (grub_menu_entry_run): Likewise.
10677 * include/grub/normal.h: Re-ordered and grouped function
10678 prototypes by file that the function is defined in.
10679 (grub_menu_execute_callback): Removed; moved to menu.h.
10680 (grub_menu_get_entry): Likewise.
10681 (grub_menu_get_timeout): Likewise.
10682 (grub_menu_set_timeout): Likewise.
10683 (grub_menu_execute_entry): Likewise.
10684 (grub_menu_execute_with_fallback): Likewise.
10685 (grub_menu_entry_run): Likewise.
10686 (grub_menu_addentry): Renamed from this ...
10687 (grub_normal_add_menu_entry): ... to this.
10689 * normal/main.c (grub_menu_addentry): Renamed from this ...
10690 (grub_normal_add_menu_entry): ... to this.
10692 * script/sh/execute.c (grub_script_execute_menuentry): Update
10693 reference to renamed grub_menu_addentry function.
10695 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
10697 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
10699 2009-05-22 Pavel Roskin <proski@gnu.org>
10701 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
10702 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
10703 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
10704 compiling for the i386 targets, but not for the utilities.
10706 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
10708 (grub_root_drive): Likewise.
10709 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
10711 (grub_root_drive): Change size to byte.
10712 (grub_start_addr): Remove.
10713 (grub_end_addr): Likewise.
10714 (grub_apm_bios_info): Likewise.
10716 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
10718 * normal/i386: Remove.
10719 * normal/powerpc: Likewise.
10720 * normal/sparc64: Likewise.
10721 * normal/x86_64: Likewise.
10723 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
10725 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
10726 * loader/i386/linux_trampoline.S: Fix indentation
10727 * loader/i386/xnu_helper.S: Likewise
10729 2009-05-18 Colin D Bennett <colin@gibibit.com>
10731 Display error messages when parsing a Lua statement fails.
10732 Previously, executing a syntactically invalid statement like
10733 ")foo" or "bar;" would silently fail.
10735 * script/lua/grub_main.c (handle_lua_error): New function.
10736 (grub_lua_parse_line): Improved reporting of Lua parser and
10739 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10741 Remove -Werror which causes build to fail on some systems
10743 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
10744 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
10745 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
10747 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10749 trampoline for linux on 64-bit platform
10751 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
10752 loader/i386/efi/linux_trampoline.S
10753 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
10755 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
10757 * loader/i386/linux_trampoline.S: moved here
10758 * loader/i386/efi/linux.c (allocate_pages): reserve space for
10760 (jumpvector): removed
10761 (grub_linux_trampoline_start): new declaration
10762 (grub_linux_trampoline_end): likewise
10763 (grub_linux_boot): use trampoline when on 64-bit platform
10764 * loader/i386/linux.c: likewise
10766 2009-05-16 Pavel Roskin <proski@gnu.org>
10768 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
10769 const to avoid a warning.
10770 (grub_lua_setenv): Likewise.
10771 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
10772 lmsg to fix a warning.
10774 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
10776 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
10777 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
10778 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
10779 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
10780 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
10781 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
10782 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
10783 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
10785 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
10787 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
10789 2009-05-16 Bean <bean123ch@gmail.com>
10791 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
10792 (lua_mod_SOURCES): New variable.
10793 (lua_mod_CFLAGS): Likewise.
10794 (lua_mod_LDFLAGS): Likewise.
10796 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
10797 (setjmp_mod_SOURCES): New variable.
10798 (setjmp_mod_CFLAGS): Likewise.
10799 (setjmp_LDFLAGS): Likewise.
10801 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
10802 (setjmp_mod_SOURCES): New variable.
10803 (setjmp_mod_CFLAGS): Likewise.
10804 (setjmp_LDFLAGS): Likewise.
10806 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
10807 (setjmp_mod_SOURCES): New variable.
10808 (setjmp_mod_CFLAGS): Likewise.
10809 (setjmp_LDFLAGS): Likewise.
10811 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
10812 (setjmp_mod_SOURCES): New variable.
10813 (setjmp_mod_CFLAGS): Likewise.
10814 (setjmp_LDFLAGS): Likewise.
10816 * normal/i386/setjmp.S: Moved from here ...
10817 * lib/i386/setjmp.S: ... Moved here
10818 * normal/x86_64/setjmp.S: Moved from here ...
10819 * lib/x86_64/setjmp.S: ... Moved here
10820 * normal/powerpc/setjmp.S: Moved from here ...
10821 * lib/powerpc/setjmp.S: ... Moved here
10822 * normal/sparc64/setjmp.S: Moved from here ...
10823 * lib/sparc64/setjmp.S: ... Moved here
10825 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
10826 returns_twice in mingw.
10828 * script/lua/grub_lib.c: New file.
10829 * script/lua/grub_lib.h: Likewise.
10830 * script/lua/grub_lua.h: Likewise.
10831 * script/lua/grub_main.c: Likewise.
10832 * script/lua/lapi.c: Likewise.
10833 * script/lua/lapi.h: Likewise.
10834 * script/lua/lauxlib.c: Likewise.
10835 * script/lua/lauxlib.h: Likewise.
10836 * script/lua/lbaselib.c: Likewise.
10837 * script/lua/lcode.c: Likewise.
10838 * script/lua/lcode.h: Likewise.
10839 * script/lua/ldblib.c: Likewise.
10840 * script/lua/ldebug.c: Likewise.
10841 * script/lua/ldebug.h: Likewise.
10842 * script/lua/ldo.c: Likewise.
10843 * script/lua/ldo.h: Likewise.
10844 * script/lua/ldump.c: Likewise.
10845 * script/lua/lfunc.c: Likewise.
10846 * script/lua/lfunc.h: Likewise.
10847 * script/lua/lgc.c: Likewise.
10848 * script/lua/lgc.h: Likewise.
10849 * script/lua/linit.c: Likewise.
10850 * script/lua/liolib.c: Likewise.
10851 * script/lua/llex.c: Likewise.
10852 * script/lua/llex.h: Likewise.
10853 * script/lua/llimits.h: Likewise.
10854 * script/lua/lmathlib.c: Likewise.
10855 * script/lua/lmem.c: Likewise.
10856 * script/lua/lmem.h: Likewise.
10857 * script/lua/loadlib.c: Likewise.
10858 * script/lua/lobject.c: Likewise.
10859 * script/lua/lobject.h: Likewise.
10860 * script/lua/lopcodes.c: Likewise.
10861 * script/lua/lopcodes.h: Likewise.
10862 * script/lua/loslib.c: Likewise.
10863 * script/lua/lparser.c: Likewise.
10864 * script/lua/lparser.h: Likewise.
10865 * script/lua/lstate.c: Likewise.
10866 * script/lua/lstate.h: Likewise.
10867 * script/lua/lstring.c: Likewise.
10868 * script/lua/lstring.h: Likewise.
10869 * script/lua/lstrlib.c: Likewise.
10870 * script/lua/ltable.c: Likewise.
10871 * script/lua/ltable.h: Likewise.
10872 * script/lua/ltablib.c: Likewise.
10873 * script/lua/ltm.c: Likewise.
10874 * script/lua/ltm.h: Likewise.
10875 * script/lua/lua.h: Likewise.
10876 * script/lua/luaconf.h: Likewise.
10877 * script/lua/lualib.h: Likewise.
10878 * script/lua/lundump.c: Likewise.
10879 * script/lua/lundump.h: Likewise.
10880 * script/lua/lvm.c: Likewise.
10881 * script/lua/lvm.h: Likewise.
10882 * script/lua/lzio.c: Likewise.
10883 * script/lua/lzio.h: Likewise.
10885 2009-05-16 Bean <bean123ch@gmail.com>
10887 * include/grub/kernel.h (grub_module_header_types): Add type
10890 * kern/main.c (grub_load_config): New function.
10891 (grub_main): Call grub_load_config to read boot config.
10893 * grub-mkimage (generate_image): New parameter config_path.
10894 (options): New option --config.
10895 (main): Parse --config option, and pass it to generate_image.
10897 2009-05-14 Christian Franke <franke@computer.org>
10899 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
10900 This fixes build on Cygwin.
10902 2009-05-14 Pavel Roskin <proski@gnu.org>
10904 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
10905 jump. This saves two bytes, so the typical case of 2 swapped
10906 drives would fit 32 bytes.
10908 2009-05-13 Pavel Roskin <proski@gnu.org>
10910 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
10911 grub_uint32_t to avoid a warning.
10913 * loader/i386/linux.c (allocate_pages): When assigning
10914 real_mode_mem, cast through grub_size_t to fix a warning. The
10915 code already makes sure that the value would fit a pointer.
10916 (grub_linux_setup_video): Cast render_target->data to
10917 grub_size_t to fix a warning.
10919 2009-05-13 Javier Martín <lordhabbit@gmail.com>
10921 * commands/i386/pc/drivemap.c: New file - implement drivemap
10923 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
10924 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
10926 2009-05-13 Pavel Roskin <proski@gnu.org>
10928 * util/i386/pc/grub-setup.c (setup): Remove unused variable
10929 embedding_area_exists.
10931 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
10933 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
10934 it easier to understand / work with.
10935 Improve warning messages for cases where there's no embedding area,
10936 or when it is too small (or core.img too large).
10938 2009-05-13 Pavel Roskin <proski@gnu.org>
10940 * loader/i386/pc/multiboot2.c: Add necessary includes for
10941 grub_multiboot2_real_boot().
10943 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
10944 PX record is always little-endian. We only need the lower 2
10947 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
10948 facilitate code reuse.
10949 (grub_cpio_mount): Use "struct head", not a char buffer. This
10950 fixes a warning reported by gcc 4.4.
10952 * kernel/disk.c (grub_disk_read): Use void pointer for the
10954 (grub_disk_write): Use const void pointer for the buffer.
10955 Adjust all callers. Remove unnecessary casts.
10957 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
10959 * util/i386/pc/grub-install.in: Update copyright year.
10961 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10965 * commands/gptsync.c: new file
10966 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
10967 (gptsync_mod_SOURCES): new variable
10968 (gptsync_mod_CFLAGS): likewise
10969 (gptsync_mod_LDFLAGS): likewise
10970 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
10972 (GRUB_PC_PARTITION_TYPE_HFS): likewise
10973 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
10974 * conf/i386-ieee1275.rmk: likewise
10975 * conf/i386-pc.rmk: likewise
10976 * conf/powerpc-ieee1275.rmk: likewise
10978 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10982 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
10983 (grub_dl_ref): likewise
10985 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
10987 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
10988 split in two functions (one for msdos and one for gpt).
10990 2009-05-08 Pavel Roskin <proski@gnu.org>
10992 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
10995 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
10996 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
10997 Initialize them with -1. Add sanity check for bad1. Eliminate
11000 2009-05-08 David S. Miller <davem@davemloft.net>
11002 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
11004 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
11006 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
11009 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
11011 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
11012 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
11014 2009-05-05 David S. Miller <davem@davemloft.net>
11016 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
11018 2009-05-05 Pavel Roskin <proski@gnu.org>
11020 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
11021 of grub_dl_ref() and grub_dl_unref().
11022 * commands/parttool.c: Remove preprocessor conditionals around
11023 grub_dl_ref() and grub_dl_unref().
11024 * fs/affs.c: Likewise.
11025 * fs/afs.c: Likewise.
11026 * fs/cpio.c: Likewise.
11027 * fs/ext2.c: Likewise.
11028 * fs/fat.c: Likewise.
11029 * fs/hfs.c: Likewise.
11030 * fs/hfsplus.c: Likewise.
11031 * fs/iso9660.c: Likewise.
11032 * fs/jfs.c: Likewise.
11033 * fs/minix.c: Likewise.
11034 * fs/ntfs.c: Likewise.
11035 * fs/reiserfs.c: Likewise.
11036 * fs/sfs.c: Likewise.
11037 * fs/udf.c: Likewise.
11038 * fs/ufs.c: Likewise.
11039 * fs/xfs.c: Likewise.
11040 * include/grub/dl.h: Likewise.
11041 * loader/xnu.c: Likewise.
11043 2009-05-04 Pavel Roskin <proski@gnu.org>
11045 * commands/acpi.c: Remove unused variable my_mod.
11046 * partmap/amiga.c: Likewise.
11047 * partmap/apple.c: Likewise.
11048 * partmap/gpt.c: Likewise.
11049 * partmap/pc.c: Likewise.
11050 * partmap/sun.c: Likewise.
11051 * term/gfxterm.c: Likewise.
11052 * term/i386/pc/vesafb.c: Likewise.
11053 * term/i386/pc/vga.c: Likewise.
11055 2009-05-04 David S. Miller <davem@davemloft.net>
11057 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
11058 pointer args to grub_ieee1275_get_property().
11060 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
11062 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
11063 devices, and do not traverse down under controller nodes.
11065 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
11066 (grub_ofdisk_open): Use it to un-escape "," characters.
11067 * kern/disk.c (find_part_sep): New.
11068 (grub_disk_open): Use it to find the first non-escaped ','
11069 character in the disk name.
11070 * util/ieee1275/devicemap.c (escape_of_path): New.
11071 (grub_util_emit_devicemap_entry): Use it.
11072 * util/sparc64/ieee1275/grub-install.in: Update script to
11073 strip partition specifiers properly by not triggering on
11074 '\' escaped ',' characters.
11076 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11078 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
11080 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
11082 (linux_vesafb_modes): Add a lot of additional modes to the list (based
11083 on documentation from Wikipedia).
11085 2009-05-04 Pavel Roskin <proski@gnu.org>
11087 * disk/ata.c: Spelling fixes.
11088 * disk/raid.c: Likewise.
11089 * disk/usbms.c: Likewise.
11090 * disk/dmraid_nvidia.c: Likewise.
11091 * kern/ieee1275/openfw.c: Likewise.
11092 * kern/ieee1275/init.c: Likewise.
11093 * kern/ieee1275/cmain.c: Likewise.
11094 * boot/i386/pc/cdboot.S: Likewise.
11095 * video/readers/png.c: Likewise.
11096 * video/i386/pc/vbe.c: Likewise.
11097 * fs/udf.c: Likewise.
11098 * fs/hfs.c: Likewise.
11099 * fs/reiserfs.c: Likewise.
11100 * efiemu/runtime/efiemu.c: Likewise.
11101 * efiemu/main.c: Likewise.
11102 * efiemu/mm.c: Likewise.
11103 * include/grub/elf.h: Likewise.
11104 * include/grub/xnu.h: Likewise.
11105 * include/grub/usbdesc.h: Likewise.
11106 * include/grub/usb.h: Likewise.
11107 * include/grub/script_sh.h: Likewise.
11108 * include/grub/lib/LzmaEnc.h: Likewise.
11109 * include/grub/efiemu/efiemu.h: Likewise.
11110 * include/grub/command.h: Likewise.
11111 * normal/menu.c: Likewise.
11112 * normal/main.c: Likewise.
11113 * normal/datetime.c: Likewise.
11114 * bus/usb/uhci.c: Likewise.
11115 * mmap/i386/uppermem.c: Likewise.
11116 * mmap/mmap.c: Likewise.
11117 * commands/acpi.c: Likewise.
11118 * commands/test.c: Likewise.
11119 * partmap/apple.c: Likewise.
11120 * font/font.c: Likewise.
11121 * loader/sparc64/ieee1275/linux.c: Likewise.
11122 * loader/macho.c: Likewise.
11123 * loader/i386/bsd_trampoline.S: Likewise.
11124 * loader/i386/bsd.c: Likewise.
11125 * loader/xnu.c: Likewise.
11126 * term/i386/pc/vesafb.c: Likewise.
11127 * term/usb_keyboard.c: Likewise.
11128 * util/resolve.c: Likewise.
11129 * util/getroot.c: Likewise.
11131 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11133 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
11135 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11137 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
11140 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11142 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
11143 parameter only available on BIOS.
11145 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11147 Removed wrong semicolon in declaration
11149 * grub/misc.h (grub_dprintf): remove semicolon
11151 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11153 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
11154 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
11155 is done by grub_cmd_linux() now).
11156 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
11157 restore video to text mode.
11158 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
11159 indicates lack of "vga=" parameter. "vga=0" is mapped to
11160 `GRUB_LINUX_VID_MODE_NORMAL'.
11162 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11164 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
11165 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
11166 and `normal/script.c'. Add `kern/rescue_reader.c',
11167 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
11168 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
11169 `grub_script.tab.c'.
11171 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11172 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11173 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11174 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
11175 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11177 * Makefile.in: Remove duplicated 2008 in Copyright line.
11179 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11181 * util/misc.c (grub_util_warn): New function. Emits a warning
11183 * include/grub/util/misc.h (grub_util_warn): New declaration.
11185 * util/i386/pc/grub-install.in: Understand --force and pass it down
11188 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
11190 (setup): Improve error messages and add warnings when requested to
11191 install in odd layouts. Refuse to install using blocklists unless
11194 2009-05-04 martin f. krafft <madduck@madduck.net>
11196 * disk/raid.c (grub_raid_scan_device): Improve debug message.
11198 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11200 Updated copyright year
11202 * fs/hfsplus.c: updated copyright year
11204 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11208 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
11209 in the space previously used by unused3
11210 (grub_hfsplus_uuid): new function
11211 (grub_hfsplus_fs): added uuid field
11213 2009-05-03 Pavel Roskin <proski@gnu.org>
11215 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
11216 suppress warnings. It's no longer needed.
11217 * disk/host.c: Likewise.
11218 * disk/ata_pthru.c: Likewise.
11219 * disk/loopback.c: Likewise.
11220 * hook/datehook.c: Likewise.
11221 * parttool/pcpart.c: Likewise.
11222 * fs/i386/pc/pxe.c: Likewise.
11223 * fs/ntfscomp.c: Likewise.
11224 * efiemu/main.c: Likewise.
11225 * mmap/mmap.c: Likewise.
11226 * commands/crc.c: Likewise.
11227 * commands/hexdump.c: Likewise.
11228 * commands/hdparm.c: Likewise.
11229 * commands/acpi.c: Likewise.
11230 * commands/echo.c: Likewise.
11231 * commands/minicmd.c: Likewise.
11232 * commands/blocklist.c: Likewise.
11233 * commands/memrw.c: Likewise.
11234 * commands/loadenv.c: Likewise.
11235 * commands/usbtest.c: Likewise.
11236 * commands/lsmmap.c: Likewise.
11237 * commands/boot.c: Likewise.
11238 * commands/parttool.c: Likewise.
11239 * commands/configfile.c: Likewise.
11240 * commands/search.c: Likewise.
11241 * commands/ieee1275/suspend.c: Likewise.
11242 * commands/cat.c: Likewise.
11243 * commands/i386/pc/pxecmd.c: Likewise.
11244 * commands/i386/pc/play.c: Likewise.
11245 * commands/i386/pc/halt.c: Likewise.
11246 * commands/i386/pc/vbeinfo.c: Likewise.
11247 * commands/i386/pc/vbetest.c: Likewise.
11248 * commands/lspci.c: Likewise.
11249 * commands/date.c: Likewise.
11250 * commands/handler.c: Likewise.
11251 * commands/ls.c: Likewise.
11252 * commands/test.c: Likewise.
11253 * commands/cmp.c: Likewise.
11254 * commands/efi/loadbios.c: Likewise.
11255 * commands/efi/fixvideo.c: Likewise.
11256 * commands/halt.c: Likewise.
11257 * commands/help.c: Likewise.
11258 * commands/reboot.c: Likewise.
11259 * hello/hello.c: Likewise.
11260 * script/sh/main.c: Likewise.
11261 * loader/xnu.c: Likewise.
11262 * term/terminfo.c: Likewise.
11263 * term/i386/pc/serial.c: Likewise.
11264 * term/usb_keyboard.c: Likewise.
11266 2009-05-03 David S. Miller <davem@davemloft.net>
11268 * normal/menu.c: Include grub/parser.h
11270 2009-05-03 Pavel Roskin <proski@gnu.org>
11272 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
11274 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
11275 Suggested by Javier Martín <lordhabbit@gmail.com>
11277 * util/i386/pc/grub-mkrescue.in: Allow for the case when
11278 efiemu??.o doesn't exist.
11279 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
11282 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
11284 FreeBSD 64-bit support
11286 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
11287 and loader/i386/bsd_trampoline.S
11288 (bsd_mod_ASFLAGS): new variable
11289 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
11290 (FREEBSD_MODTYPE_KERNEL64): likewise
11291 (grub_bsd64_trampoline_start): likewise
11292 (grub_bsd64_trampoline_end): likewise
11293 (grub_bsd64_trampoline_selfjump): likewise
11294 (grub_bsd64_trampoline_gdt): likewise
11295 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
11296 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
11297 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
11298 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
11299 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
11301 * loader/i386/bsd_pagetable.c: new file
11302 * loader/i386/bsd_trampoline.S: likewise
11303 * loader/i386/bsd.c (ALIGN_QWORD): new macro
11304 (ALIGN_VAR): likewise
11305 (entry_hi): new variable
11306 (kern_end_mdofs): likewise
11307 (is_64bit): likewise
11308 (grub_freebsd_add_meta): use ALIGN_VAR
11309 (grub_e820_mmap): new declaration
11310 (grub_freebsd_add_mmap): new function
11311 (grub_freebsd_add_meta_module): support 64 bit kernels
11312 (grub_freebsd_list_modules): use ALIGN_VAR
11313 (gdt_descriptor): new declaration
11314 (grub_freebsd_boot): support 64 bit kernels
11315 (grub_bsd_elf64_hook): new function
11316 (grub_bsd_load_elf): support elf64
11318 2009-05-03 Bean <bean123ch@gmail.com>
11320 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
11321 after we get the result of if statement.
11323 2009-05-03 Bean <bean123ch@gmail.com>
11325 * Makefile.in (enable_efiemu): New variable.
11327 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
11329 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
11331 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
11332 path, add -mno-red-zone option.
11333 (efiemu64_s.o): Likewise.
11334 (efiemu64.o): Use macro $^ for source file.
11336 * configure.ac (--enable-efiemu): New option.
11338 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11342 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
11343 (pkglib_MODULES): add xnu.mod
11344 (xnu_mod_SOURCES): new variable
11345 (xnu_mod_CFLAGS): likewise
11346 (xnu_mod_LDFLAGS): likewise
11347 (xnu_mod_ASFLAGS): likewise
11348 * conf/i386-pc.rmk: likewise
11349 * conf/x86_64-efi.rmk: likewise
11350 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
11352 * include/grub/i386/macho.h: new file
11353 * include/grub/i386/xnu.h: likewise
11354 * include/grub/macho.h: likewise
11355 * include/grub/machoload.h: likewise
11356 * include/grub/x86_64/macho.h: likewise
11357 * include/grub/x86_64/xnu.h: likewise
11358 * include/grub/xnu.h: likewise
11359 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
11360 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
11361 * loader/i386/efi/xnu.c: new file
11362 * loader/i386/pc/xnu.c: likewise
11363 * loader/i386/xnu.c: likewise
11364 * loader/i386/xnu_helper.S: likewise
11365 * loader/macho.c: likewise
11366 * loader/xnu.c: likewise
11367 * loader/xnu_resume.c: likewise
11368 * util/grub-dumpdevtree: likewise
11369 * include/grub/i386/pit.h: include grub/err.h
11370 (grub_pit_wait): export
11371 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
11373 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11377 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
11378 _linux_efi, linux_efi.
11379 new files in grub-emu
11380 new targets efiemu32.o and efiemu64.o
11381 * loader/linux_normal_efiemu.c: likewise
11382 * loader/i386/efi/linux.c: added preliminary efiemu support
11383 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
11385 * include/grub/autoefi.h: new file
11386 * include/grub/i386/efiemu.h: likewise
11387 * include/grub/i386/pc/efiemu.h: likewise
11388 * include/grub/efi/api.h: add LL suffix when necessary
11389 new definitions relating to tables
11390 * include/grub/efiemu/efiemu.h: new file
11391 * include/grub/efiemu/runtime.h: likewise
11392 * efiemu/prepare.c: likewise
11393 * efiemu/loadcore_common.c: likewise
11394 * efiemu/loadcore64.c: likewise
11395 * efiemu/runtime/efiemu.sh: likewise
11396 * efiemu/runtime/efiemu.S: likewise
11397 * efiemu/runtime/efiemu.c: likewise
11398 * efiemu/runtime/config.h: likewise
11399 * efiemu/prepare32.c: likewise
11400 * efiemu/main.c: likewise
11401 * efiemu/modules/pnvram.c: likewise
11402 * efiemu/modules/i386: likewise
11403 * efiemu/modules/i386/pc: likewise
11404 * efiemu/modules/acpi.c: likewise
11405 * efiemu/i386/pc/cfgtables.c: likewise
11406 * efiemu/i386/loadcore64.c: likewise
11407 * efiemu/i386/loadcore32.c: likewise
11408 * efiemu/prepare64.c: likewise
11409 * efiemu/loadcore.c: likewise
11410 * efiemu/symbols.c: likewise
11411 * efiemu/mm.c: likewise
11412 * efiemu/loadcore32.c: likewise
11414 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11418 * commands/acpi.c: new file
11419 * commands/i386/pc/acpi.c: likewise
11420 * commands/efi/acpi.c: likewise
11421 * include/grub/acpi.h: likewise
11422 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
11423 (acpi_mod_SOURCES): new variable
11424 (acpi_mod_CFLAGS): likewise
11425 (acpi_mod_LDFLAGS): likewise
11426 * conf/i386-efi.rmk: likewise
11427 * conf/x86_64-efi.rmk: likewise
11429 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11431 Missing part from mmap patch
11433 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
11434 (grub_mmap_unregister)
11435 (grub_mmap_free_and_unregister): use grub_mmap_register
11437 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11441 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
11442 * loader/i386/linux.c (find_mmap_size): likewise
11443 (allocate_pages): likewise
11444 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
11445 (grub_fill_multiboot_mmap): likewise
11446 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
11447 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
11448 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
11449 (OPENBSD_MMAP_RESERVED): likewise
11450 * include/grub/i386/pc/memory.h: include grub/memory.h
11451 (grub_lower_mem): removed
11452 (grub_upper_mem): likewise
11453 (GRUB_MACHINE_MEMORY_ACPI): new definition
11454 (GRUB_MACHINE_MEMORY_NVS): likewise
11455 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
11456 (GRUB_MACHINE_MEMORY_HOLE): likewise
11457 (grub_machine_mmap_register): likewise
11458 (grub_machine_mmap_unregister): likewise
11459 (grub_machine_get_upper): likewise
11460 (grub_machine_get_lower): likewise
11461 (grub_machine_get_post64): likewise
11462 * include/grub/i386/efi/memory.h: new file
11463 * include/grub/x86_64/efi/memory.h: likewise
11464 * include/grub/efi/memory.h: likewise
11465 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
11466 (mmap_mod_SOURCES): new variable
11467 (mmap_mod_LDFLAGS): likewise
11468 (mmap_mod_ASFLAGS): likewise
11469 * conf/i386-coreboot.rmk: likewise
11470 * conf/i386-ieee1275.rmk: likewise
11471 * conf/i386-efi.rmk: likewise
11472 * conf/x86_64-efi.rmk: likewise
11473 * include/grub/types.h (UINT_TO_PTR): new macro
11474 (PTR_TO_UINT32): likewise
11475 (PTR_TO_UINT64): likewise
11476 * include/grub/memory.h: new file
11477 * mmap/i386/pc/mmap.c: likewise
11478 * mmap/i386/pc/mmap_helper.S: likewise
11479 * mmap/i386/uppermem.c: likewise
11480 * mmap/mmap.c: likewise
11481 * mmap/efi/mmap.c: likewise
11482 * kern/i386/coreboot/init.c (grub_machine_init): don't use
11484 * kern/i386/pc/init.c (grub_lower_mem): removed variable
11485 (grub_upper_mem): likewise
11486 (grub_machine_init): don't use grub_upper_mem,
11487 make grub_lower_mem local
11488 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
11489 grub_mmap_iterate and grub_mmap_get_upper
11490 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
11492 2009-05-02 Bean <bean123ch@gmail.com>
11494 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
11495 script/sh/parser.y.
11496 (pkglib_MODULES): Add normal.mod and sh.mod.
11497 (normal_SOURCES): New variable.
11498 (normal_mod_CFLAGS): Likewise.
11499 (normal_mod_LDFLAGS): Likewise.
11500 (sh_mod_SOURCES): Likewise.
11501 (sh_mod_CFLAGS): Likewise.
11502 (sh_mod_LDFLAGS): Likewise.
11504 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
11505 script/sh/lexer.c_DEPENDENCIES.
11506 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
11507 kern/rescue_reader.c and kern/rescue_parser.c.
11508 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
11509 (grub_emu_SOURCES): Change source files.
11510 (pkglib_MODULES): Remove normal.mod.
11511 (normal_SOURCES): Removed.
11512 (normal_mod_CFLAGS): Likewise.
11513 (normal_mod_LDFLAGS): Likewise.
11514 * conf/i386-coreboot.rmk: Likewise.
11515 * conf/i386-efi.rmk: Likewise.
11516 * conf/i386-ieee1276.rmk: Likewise.
11517 * conf/powerpc-ieee1275.rmk: Likewise.
11518 * conf/sparc64-ieee1275.rmk: Likewise.
11519 * conf/x86_64-efi.rmk: Likewise.
11521 * include/grub/command.h (grub_command_execute): New inline function.
11523 * include/grub/menu.h (grub_menu_entry): Removed commands field.
11525 * include/grub/normal.h: Remove <grub/setjmp.h>.
11526 (grub_fs_module_list): Moved to normal/autofs.c.
11527 (grub_exit_env): Removed.
11528 (grub_command_execute): Likewise.
11529 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
11531 (read_command_list): New function declaration.
11532 (read_fs_list): Likewise.
11534 * include/parser.h: Include <grub/reader.h>.
11535 (grub_parser_split_cmdline): Change type of getline parameter.
11536 (grub_parser): New structure.
11537 (grub_parser_class): New variable.
11538 (grub_parser_execute): New function declaration.
11539 (grub_register_rescue_parser): Likewise.
11540 (grub_parser_register): New inline function.
11541 (grub_parser_unregister): Likewise.
11542 (grub_parser_get_current): Likewise.
11543 (grub_parser_set_current): Likewise.
11545 * include/grub/reader.h: New file.
11546 * kern/reader.c: Likewise.
11547 * kern/rescue_parser.c: Likewise.
11548 * kern/rescue_reader.c: Likewise.
11549 * normal/autofs.c: Likewise.
11550 * normal/dyncmd.c: Likewise.
11552 * include/grub/rescue.h: Removed.
11553 * normal/command.h: Likewise.
11555 * include/grub/script.h: Moved to ...
11556 * include/grub/script_sh.h: ... Moved here.
11557 * normal/execute.c: Moved to ...
11558 * script/sh/execute.c: ... Moved here.
11559 * normal/function.c: Moved to ...
11560 * script/sh/function.c: ... Moved here.
11561 * normal/lexer.c: Moved to ...
11562 * script/sh/lexer.c: ... Moved here.
11563 * normal/parser.y: Moved to ...
11564 * script/sh/parser.y: ... Moved here.
11565 * normal/script.c: Moved to ...
11566 * script/sh/script.c: ... Moved here.
11568 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
11570 (grub_exit_env): Removed.
11571 (fs_module_list): Moved to normal/autofs.c.
11572 (grub_file_getline): Don't handle comment here.
11573 (free_menu): Skip removed field entry->commands.
11574 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
11576 (read_config_file): Removed nested parameter, change getline function.
11577 (grub_enter_normal_mode): Removed.
11578 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
11579 (read_command_list): Likewise.
11580 (autoload_fs_module): Moved to normal/autofs.c.
11581 (read_fs_list): Likewise.
11582 (reader_nested): New variable.
11583 (grub_normal_execute): Run parser.sh to switch to sh parser.
11584 (grub_cmd_rescue): Removed.
11585 (cmd_normal): Removed.
11586 (grub_cmd_normal): Unregister itself at the beginning. Don't register
11588 (grub_cmdline_run): New function.
11589 (grub_normal_reader_init): Likewise.
11590 (grub_normal_read_line): Likewise.
11591 (grub_env_write_pager): Likewise.
11592 (cmdline): New variable.
11593 (grub_normal_reader): Likewise.
11594 (GRUB_MOD_INIT): Register normal reader and set as current, register
11595 pager hook, register normal command with grub_register_command_prio,
11596 so that it won't show up in command.lst.
11597 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
11598 grub_fs_autoload_hook.
11600 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
11601 (grub_menu_execute_entry): Replace grub_script_execute with
11602 grub_parser_execute, change parameter to grub_command_execute.
11604 * normal/menu_text.c: Remove <grub/script.h>.
11606 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
11607 and <grub/parser.h>.
11608 (run): Change editor_getline to use new parser interface. Change
11609 parameter to grub_command_execute.
11611 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
11612 <grub/reader.h> and <grub/parser.h>.
11613 (grub_load_normal_mode): Execute normal command.
11614 (grub_main): Call grub_register_core_commands,
11615 grub_register_rescue_parser and grub_register_rescue_reader, use
11616 grub_reader_loop to enter input loop.
11618 * kern/parser.c (grub_parser_split_cmdline): Change type of
11620 (grub_parser_class): New variable.
11621 (grub_parser_execute): New function.
11623 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
11624 * loader/multiboot2.c: Likewise.
11625 * loader/sparc64/ieee1275/linux.c: Likewise.
11627 * util/grub-emu.c (read_command_list): New dummy function.
11629 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11631 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
11632 count to 16 for CCISS and IDA.
11634 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11636 * normal/menu_text.c (grub_wait_after_message): Print a newline
11637 after waiting for user input.
11639 * loader/i386/linux.c: Include `<grub/normal.h>'.
11640 (grub_cmd_linux): Improve the error message about `ask' mode, by
11641 waiting for user input so it's not missed (we can do this, since
11642 user requested interaction).
11644 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11646 Added missing lst to grub-mkrescue
11648 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
11649 and ${input_dir}/parttool.lst
11651 2009-04-30 David S. Miller <davem@davemloft.net>
11653 * util/hostdisk.c (device_is_wholedisk): New function.
11654 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
11655 zero only if device_is_wholedisk() returns true.
11657 * util/hostdisk.c (convert_system_partition_to_system_disk):
11658 Handle virtual disk devices named /dev/vdiskX as found on sparc
11661 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
11662 lettered partition specifier is found, convert to numbered.
11664 2009-04-29 David S. Miller <davem@davemloft.net>
11666 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
11667 * include/grub/sparc64/ieee1275/memory.h: Likewise.
11669 * normal/command.c: Add missing newline at end of file.
11671 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
11673 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
11674 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
11675 grub_ofdisk_read): Likewise, and deal similarly with the fact that
11676 ihandles have a 32-bit type but need to be stored in a "void *".
11678 2009-04-28 Pavel Roskin <proski@gnu.org>
11680 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
11681 not disk. Adjust all dependencies.
11682 (grub_fs_uuid_close): Use grub_device_close(), not
11685 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
11686 parent's partition, don't copy it by reference, as it gets freed
11689 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
11691 Preboot hooks support
11693 * commands/boot.c (struct grub_preboot_t): new declaration
11694 (preboots_head): new variable
11695 (preboots_tail): likewise
11696 (grub_loader_register_preboot_hook): new function
11697 (grub_loader_unregister_preboot_hook): likewise
11698 (grub_loader_set): launch preboot hooks
11699 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
11700 (grub_loader_register_preboot_hook): new declaration
11701 (grub_loader_unregister_preboot_hook): likewise
11703 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
11707 * disk/scsi.c (grub_scsi_open): added missing cast when
11708 calling grub_dprintf
11710 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
11712 Bug and warning fixes
11714 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
11716 * commands/test.c (test_parse): fixed bug with file tests and corrected
11717 declaration of find_file
11719 2009-04-26 Pavel Roskin <proski@gnu.org>
11721 * Makefile.in: Don't install empty manual pages if help2man is
11722 missing. Use help2man option for output, not shell redirection.
11724 2009-04-26 David S. Miller <davem@davemloft.net>
11726 * util/grub-mkdevicemap.c (make_device_map): Add missing
11727 NESTED_FUNC_ATTR to process_device().
11729 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11733 * commands/test.c: rewritten to use bash-like test
11735 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11737 Parttool autoloading and improvements
11739 * Makefile.in (pkglib_DATA): add parttool.lst
11740 (parttool.lst): new target
11741 * genmk.rb: generate parttool-*
11742 (CLEANFILES): add #{parttool}
11743 (PARTTOOLFILES): new variable
11744 * genparttoollist.sh: new file
11745 * parttool/pcpart.c (grub_pcpart_boot): more feedback
11746 (grub_pcpart_type): likewise
11747 * commands/parttool.c (helpmsg): new variable
11748 (grub_cmd_parttool): output help if not enough arguments are supplied
11750 (GRUB_MOD_INIT(parttool)): use helpmsg
11752 2009-04-24 David S. Miller <davem@davemloft.net>
11754 Avoiding opening same device multiple times in device iterator.
11756 * kern/device.c: (grub_device_iterate): Define struct part_ent,
11757 and use it to build a list of partitions in iterate_disk() and
11758 iterate_partition().
11760 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
11763 * disk/ieee1275/nand.c (grub_nand_iterate): Return
11764 grub_devalias_iterate() result instead of unconditional 0.
11765 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
11766 Also, capture hook return value, either directly or via
11767 grub_children_iterate(), and propagate to caller.
11768 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
11769 grub_children_iterate): Return value is now 'int' instead of
11771 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
11772 like a proper iterator, stopping when hooks return non-zero.
11773 (grub_devalias_iterate): Likewise.
11775 2009-04-23 David S. Miller <davem@davemloft.net>
11777 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
11779 2009-04-22 David S. Miller <davem@davemloft.net>
11781 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
11782 is larger than address_cells, use that value for address_cells too.
11784 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
11785 IEEE1275_MAX_PATH_LEN): Define.
11786 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
11787 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
11788 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
11789 'devtype'. Explicitly NULL terminate devalias expansion.
11791 * util/sparc64/ieee1275/misc.c: New file.
11792 * util/sparc64/ieee1275/grub-setup.c: New file.
11793 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
11794 * util/sparc64/ieee1275/grub-mkimage.c: New file.
11795 * util/sparc64/ieee1275/grub-install.in: New file.
11796 * util/ieee1275/ofpath.c: New file.
11797 * util/ieee1275/devicemap.c: New file.
11798 * util/devicemap.c: New file.
11799 * util/deviceiter.c: New file.
11800 * kern/sparc64/ieee1275/init.c: New file.
11801 * include/grub/util/ofpath.h: New file.
11802 * include/grub/util/deviceiter.h: New file.
11803 * util/grub-mkdevicemap.c: Include deviceiter.h.
11804 Implement using grub_util_emit_devicemap_entry and
11805 grub_util_iterate_devices.
11806 * conf/i386-corebook.rmk: Build util/deviceiter.c and
11807 util/devicemap.c into grub-mkdevicemap
11808 * conf/i386-efi.rmk: Likewise.
11809 * conf/i386-ieee1275.rmk: Likewise.
11810 * conf/i386-pc.rmk: Likewise.
11811 * conf/powerpc-ieee1275.rmk: Likewise.
11812 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
11813 images and installation utilities. Build kernel as image
11814 instead of as elf binary. Use common rules as much as possible.
11816 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
11818 Correct GPT definition
11820 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
11823 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
11825 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
11827 2009-04-19 David S. Miller <davem@davemloft.net>
11829 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
11830 (grub_rescue_cmd_linux): Rename to...
11831 (grub_cmd_linux): and fix prototype.
11832 (grub_rescue_cmd_initrd): Rename to...
11833 (grub_cmd_initrd): and fix prototype.
11834 (cmd_linux, cmd_initrd): New.
11835 (GRUB_MOD_INIT(linux)): Use grub_register_command().
11836 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
11838 2009-04-17 Pavel Roskin <proski@gnu.org>
11840 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
11842 (grub_ohci_transfer): Likewise.
11844 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
11846 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
11847 return without a value. Fix inconsistent indentation.
11849 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
11850 match struct grub_fs.
11852 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
11853 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
11854 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
11855 * commands/lspci.c (grub_lspci_iter): Likewise.
11857 2009-04-16 Bean <bean123ch@gmail.com>
11859 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
11862 2009-04-15 Pavel Roskin <proski@gnu.org>
11864 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
11865 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
11866 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
11869 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
11871 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
11872 that no multiple data or metadata areas are supported and `Unknown
11875 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
11877 Move loader out of the kernel
11879 * kern/loader.c: moved to ...
11880 * commands/boot.c: ... moved here
11881 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
11882 * commands/boot.c (grub_cmd_boot): moved here. All users updated
11883 * include/grub/kernel.h (grub_machine_fini): export
11884 * include/grub/loader.h (grub_loader_is_loaded): update declaration
11885 (grub_loader_set): likewise
11886 (grub_loader_unset): likewise
11887 (grub_loader_boot): likewise
11888 * conf/common.rmk: new module boot.mod
11889 (pkglib_MODULES): add boot.mod
11890 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
11891 (grub_emu_SOURCES): likewise
11892 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
11893 (grub_emu_SOURCES): likewise
11894 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
11895 (grub_emu_SOURCES): likewise
11896 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
11897 (grub_emu_SOURCES): likewise
11898 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
11899 (grub_emu_SOURCES): likewise
11900 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
11901 (grub_emu_SOURCES): likewise
11902 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
11903 (grub_emu_SOURCES): likewise
11905 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
11907 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
11909 * kern/misc.c (grub_itoa): Removed function
11910 (grub_ltoa): likewise
11911 (grub_vsprintf): use grub_lltoa
11913 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
11917 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
11918 * conf/i386-coreboot.rmk: likewise
11919 * conf/i386-ieee1275.rmk: likewise
11920 * conf/powerpc-ieee1275.rmk: likewise
11922 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
11924 * INSTALL: Add that `./autogen.sh' needs to be run before
11927 2009-04-14 Bean <bean123ch@gmail.com>
11929 * Makefile.in (pkglib_DATA): Add handler.lst.
11930 (handler.lst): New rule.
11932 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
11933 * conf/i386-coreboot.rmk: Likewise.
11934 * conf/i386-ieee1275.rmk: Likewise.
11935 * conf/i386-efi.rmk: Likewise.
11936 * conf/x86_64-efi.rmk: Likewise.
11937 * conf/powerpc-ieee1275.rmk: Likewise.
11938 * conf/sparc64-ieee1275.rmk: Likewise.
11940 * genhandlerlist.sh: New file.
11942 * genmk.rb: Add rules to generate handler.lst.
11944 * include/grub/normal.h (grub_file_getline): New function definition.
11945 (read_handler_list): Likewise.
11946 (free_handler_list): Likewise.
11948 * include/grub/term.h (grub_term_register_input): Add name parameter
11949 for auto generation of handler.lst.
11950 (grub_term_register_output): Likewise.
11952 * normal/handler.c: New file.
11954 * normal/main.c (get_line): Renamed to grub_file_getline.
11955 (read_config_file): Use the newly renamed grub_file_getline.
11956 (read_command_list): Likewise.
11957 (read_fs_list): Likewise.
11958 (grub_normal_execute): Call read_handler_list to parse handler.lst.
11959 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
11961 * term/efi/console.c (grub_console_init): Add name parameter for auto
11962 generation of handler.lst.
11963 * term/gfxterm.c: Likewise.
11964 * term/i386/pc/at_keyboard.c: Likewise.
11965 * term/i386/pc/console.c: Likewise.
11966 * term/i386/pc/serial.c: Likewise.
11967 * term/i386/pc/vesafb.c: Likewise.
11968 * term/i386/pc/vga.c: Likewise.
11969 * term/i386/pc/vga_text.c: Likewise.
11970 * term/ieee1275/ofconsole.c: Likewise.
11971 * term/usb_keyboard.c: Likewise.
11973 2009-04-14 Bean <bean123ch@gmail.com>
11975 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
11976 properly with null character.
11978 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
11980 * configure: Remove.
11981 * config.h.in: Likewise.
11982 * stamp-h.in: Likewise.
11983 * DISTLIST: Likewise.
11984 * conf/common.mk: Likewise.
11985 * conf/i386-coreboot.mk: Likewise.
11986 * conf/i386-efi.mk: Likewise.
11987 * conf/i386-ieee1275.mk: Likewise.
11988 * conf/i386.mk: Likewise.
11989 * conf/i386-pc.mk: Likewise.
11990 * conf/powerpc-ieee1275.mk: Likewise.
11991 * conf/sparc64-ieee1275.mk: Likewise.
11992 * conf/x86_64-efi.mk: Likewise.
11994 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
11997 2009-04-14 John Stanley <jpsinthemix@verizon.net>
11998 David S. Miller <davem@davemloft.net>
12000 * util/hostdisk.c (make_device_name): Fix buffer length
12003 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12005 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
12006 <sys/param.h> and <sys/sysctl.h>.
12007 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
12008 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
12009 opening the device and reset them afterwards.
12011 2009-04-13 Pavel Roskin <proski@gnu.org>
12013 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
12014 Reported by John Stanley <jpsinthemix@verizon.net>
12016 2009-04-13 Robert Millan <rmh@aybabtu.com>
12018 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
12019 that name for menuentries when appropriate.
12021 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12023 * util/grub.d/10_freebsd.in: Add a missing `fi'.
12025 2009-04-13 Robert Millan <rmh@aybabtu.com>
12027 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
12028 to Linux, simply abort telling the user it's no longer supported.
12030 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12032 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
12033 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
12034 `freebsd_loadenv' only when devices.hints exist.
12036 2009-04-13 Pavel Roskin <proski@gnu.org>
12038 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
12040 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12042 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
12044 (grub_drive): Likewise.
12046 2009-04-13 David S. Miller <davem@davemloft.net>
12048 * kern/sparc64/ieee1275/ieee1275.c: New file.
12049 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
12050 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
12051 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
12052 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
12053 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
12054 grub_ieee1275_alloc_physmem): Declare new exported functions.
12056 * include/grub/sparc64/ieee1275/loader.h: New file.
12057 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12058 * include/grub/sparc64/kernel.h: Likewise.
12059 * loader/sparc64/ieee1275/linux.c: Likewise.
12061 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
12062 (grub_fstest_SOURCES): Likewise.
12064 * util/hostdisk.c (make_device_name): Do not make any assumptions
12065 about the length of drive names.
12067 * kern/dl.c (grub_dl_load_file): Close file immediately when
12068 we are done using it.
12070 2009-04-12 David S. Miller <davem@davemloft.net>
12072 * kern/misc.c (grub_ltoa): Fix cast when handling negative
12073 values. Noticed by Pavel Roskin.
12075 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
12078 * genmk.rb: Add more flexible image type specification, also
12079 pass --strip-unneeded to objcopy.
12080 * conf/i386-pc.rmk: Use *_FORMAT.
12081 * conf/i386-pc.mk: Rebuilt.
12083 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
12084 (OFDISK_HASH_SZ): Define.
12085 (ofdisk_hash): New hash table.
12086 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
12087 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
12088 instead of device phandle which is not unique.
12090 * kern/sparc64/ieee1275/init.c: Delete, replace with...
12091 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
12092 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
12093 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
12094 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
12095 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
12096 GRUB_KERNEL_MACHINE_DATA_END): Define.
12097 (grub_kernel_image_size, grub_total_module_size): Declare.
12099 2009-04-12 Pavel Roskin <proski@gnu.org>
12101 * configure.ac: Change the logic when we check for target tools.
12102 Do it when the target is specified and it's different from the
12103 specified value of the host.
12105 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
12107 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
12108 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
12109 GNU/kFreeBSD. Check if a device is a character device. Use
12110 DIOCGMEDIASIZE to get the size.
12111 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
12112 support for GNU/kFreeBSD.
12113 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
12114 is a character device instead of a block device. Add support for
12115 FreeBSD device names.
12117 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
12118 is a character device instead of a block device.
12120 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
12121 is a character device instead of a block device.
12123 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
12125 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
12126 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
12127 FreeBSD. Check if a device is a character device. Use
12128 DIOCGMEDIASIZE to get the size.
12129 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
12130 support for FreeBSD.
12131 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
12132 is a character device instead of a block device. Add support for
12133 FreeBSD device names.
12135 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
12136 a character device instead of a block device.
12137 (grub_util_check_char_device): New function.
12139 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
12140 a character device instead of a block device.
12142 * include/grub/util/getroot.h (grub_util_check_char_device): New
12145 2009-04-11 David S. Miller <davem@davemloft.net>
12147 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
12149 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
12150 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
12151 function, if present.
12152 (__bswapdi2): Likewise.
12154 * include/grub/sparc64/ieee1275/boot.h: New file.
12155 * boot/sparc64/ieee1275/boot.S: Likewise.
12156 * boot/sparc64/ieee1275/diskboot.S: Likewise.
12158 * kern/misc.c (grub_ltoa): New function.
12159 (grub_vsprintf): Use it to format 'long' integers.
12161 2009-04-10 David S. Miller <davem@davemloft.net>
12163 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
12164 slots are of type grub_ieee1275_cell_t.
12165 (grub_nand_read): Likewise.
12166 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
12167 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
12168 macros are used to compare values in arg/ret block of the call.
12169 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
12170 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
12171 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
12172 grub_ieee1275_instance_to_path, grub_ieee1275_write,
12173 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
12174 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
12175 grub_ieee1275_close, grub_ieee1275_set_property,
12176 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
12177 grub_ieee1275_cell_t.
12178 * kern/ieee1275/openfw.c (grub_map): Likewise.
12179 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
12180 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
12182 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
12183 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12184 (grub_devalias_iterate): Likewise.
12186 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12190 * fs/ufs.c (INODE_NBLOCKS): new definition
12191 (struct grub_ufs_dirent): added fields for non-BSD dirents
12192 (grub_ufs_get_file_block): fixed double indirect handling
12193 (grub_ufs_lookup_symlink): use more robust way to determine whether
12195 (grub_ufs_find_file): support for non-BSD dirents
12196 (grub_ufs_dir): support for non-BSD dirents
12198 2009-04-10 Bean <bean123ch@gnail.com>
12200 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
12201 attribute, otherwise the size would be wrong for i386 platform.
12203 * include/grub/pci.h (grub_pci_read_word): New inline function.
12204 (grub_pci_read_byte): Likewise.
12205 (grub_pci_write): Likewise.
12206 (grub_pci_write_word): Likewise.
12207 (grub_pci_write_byte): Likewise.
12209 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
12211 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
12212 (find_framebuf): Scan pci to locate the frame buffer address.
12214 * commands/efi/fixvideo.c: New file.
12216 * commands/efi/loadbios.c: Likewise.
12218 * commands/memrw.c: Likewise.
12220 * util/grub-dumpbios.in: Likewise.
12222 * conf/common.rmk (grub-dumpbios): New utility.
12223 (pkglib_MODULES): New module memrw.mod.
12224 (memrw_mod_SOURCE): New macro.
12225 (memrw_mod_CFLAGS): Likewise.
12226 (memrw_mod_LDFLAGS): Likewise.
12228 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
12230 (loadbios_mod_SOURCE): New macro.
12231 (loadbios_mod_CFLAGS): Likewise.
12232 (loadbios_mod_LDFLAGS): Likewise.
12233 (fixvideo_mod_SOURCE): Likewise.
12234 (fixvideo_mod_CFLAGS): Likewise.
12235 (fixvideo_mod_LDFLAGS): Likewise.
12237 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
12239 (loadbios_mod_SOURCE): New macro.
12240 (loadbios_mod_CFLAGS): Likewise.
12241 (loadbios_mod_LDFLAGS): Likewise.
12242 (fixvideo_mod_SOURCE): Likewise.
12243 (fixvideo_mod_CFLAGS): Likewise.
12244 (fixvideo_mod_LDFLAGS): Likewise.
12246 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
12248 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
12250 2009-04-07 David S. Miller <davem@davemloft.net>
12252 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
12253 support for R_SPARC_OLO10 relocations. Fix compile warning for
12254 R_SPARC_WDISP30 case.
12255 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
12257 2009-04-06 Pavel Roskin <proski@gnu.org>
12259 * include/grub/misc.h (ARRAY_SIZE): New macro.
12260 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
12262 * loader/i386/linux.c (allocate_pages): Use free_pages().
12263 (grub_linux_unload): Don't use free_pages().
12264 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
12265 wrong index. Treat all other modes as text modes.
12266 (grub_cmd_linux): Initialize vid_mode unconditionally to
12267 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
12269 * commands/help.c (print_command_help): Use cmd->prio, not
12270 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
12272 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12276 * parttool/pcpart.c: new file
12277 * commands/parttool.c: likewise
12278 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
12279 (parttool_mod_SOURCES): new variable
12280 (parttool_mod_CFLAGS): likewise
12281 (parttool_mod_LDFLAGS): likewise
12282 (pcpart_mod_SOURCES): likewise
12283 (pcpart_mod_CFLAGS): likewise
12284 (pcpart_mod_LDFLAGS): likewise
12285 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
12286 and parttool/pcpart.c
12287 * conf/i386-efi.rmk: likewise
12288 * conf/i386-ieee1275.rmk: likewise
12289 * conf/i386-pc.rmk: likewise
12290 * conf/powerpc-ieee1275.rmk: likewise
12291 * conf/sparc64-ieee1275.rmk: likewise
12292 * conf/x86_64-ieee1275.rmk: likewise
12294 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12296 Support for mtime and further expandability of dir command
12298 * include/grub/lib/datetime.h: moved to ...
12299 * include/grub/datetime.h: ... moved here and added
12300 declaration of grub_unixtime2datetime. All users updated
12301 * include/grub/fs.h: new syntax for dir and mtime functions in
12303 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
12304 and GRUB_FSHELP_FLAGS_MASK
12305 * commands/ls.c (grub_ls_list_files): Write mtime in long format
12306 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
12307 (grub_ext2_mtime): new function
12308 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
12309 (grub_hfsplus_mtime): new function
12310 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
12311 (GRUB_UFS_ATTR_FILE): likewise
12312 (GRUB_UFS_ATTR_LNK): likewise
12313 (struct grub_ufs_sblock): new fields mtime
12314 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
12316 (grub_ufs_dir): mtime support
12317 (grub_ufs_mtime): new function
12318 * fs/affs.c (grub_affs_dir): use new dir syntax
12319 * fs/afs.c (grub_afs_dir): likewise
12320 * fs/cpio.c (grub_cpio_dir): likewise
12321 * fs/fat.c (grub_fat_find_dir): likewise
12322 * fs/hfs.c (grub_hfs_dir): likewise
12323 * fs/iso9660.c (grub_iso9660_dir): likewise
12324 * fs/jfs.c (grub_jfs_dir): likewise
12325 * fs/minix.c (grub_minix_dir): likewise
12326 * fs/ntfs.c (grub_ntfs_dir): likewise
12327 * fs/reiserfs.c (grub_reiserfs_dir): likewise
12328 * fs/sfs.c (grub_sfs_dir): likewise
12329 * fs/xfs.c (grub_xfs_dir): likewise
12330 * util/hostfs.c (grub_hostfs_dir): likewise
12331 * lib/datetime.c: moved to ...
12332 * normal/datetime.c: ... moved here
12333 (grub_unixtime2datetime): new function
12334 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
12335 * normal/completion.c (iterate_dir): use new dir syntax
12336 * normal/misc.c (grub_normal_print_device_info): tell the
12337 last modification time of a volume
12338 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
12339 * conf/common.rmk: added lib/datetime.c to ls.mod
12340 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
12341 (normal_mod_SOURCES): likewise
12342 (datetime_mod_SOURCES): Removed lib/datetime.c
12343 * conf/i386-efi.rmk: likewise
12344 * conf/i386-ieee1275.rmk: likewise
12345 * conf/i386-pc.rmk: likewise
12346 * conf/powerpc-ieee1275.rmk: likewise
12347 * conf/sparc64-ieee1275.rmk: likewise
12348 * conf/x86_64-efi.rmk: likewise
12350 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12352 Trim trailing spaces in FAT label and support mtools-like labels
12354 * fs/fat.c (grub_fat_iterate_dir): New function based
12355 on grub_fat_find_dir
12356 (grub_fat_find_dir): use grub_fat_iterate_dir
12357 (grub_fat_label): likewise
12359 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
12361 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
12363 remove extraneous kernel_elf_HEADERS
12365 2009-04-04 Bean <bean123ch@gnail.com>
12367 * include/grub/util/misc.h: Add dummy function fsync for mingw.
12369 * util/misc.c: Likewise.
12371 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
12373 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
12374 instead of grub_printf.
12376 2009-04-03 Robert Millan <rmh@aybabtu.com>
12378 * loader/i386/linux.c (grub_linux_setup_video): Fill
12379 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
12380 values from `mode info' structure instead of hardcoded
12383 2009-04-01 Pavel Roskin <proski@gnu.org>
12385 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
12387 * genmk.rb: Likewise.
12388 * configure.ac: Likewise.
12390 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
12392 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
12393 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
12395 2009-04-01 David S. Miller <davem@davemloft.net>
12397 * normal/sparc64/setjmp.S: Fix setjmp implementation.
12398 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
12399 (grub_setjmp): Mark with 'returns_twice' attribute.
12400 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
12401 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
12402 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
12404 2009-04-01 Robert Millan <rmh@aybabtu.com>
12406 Reapply fix from 2008-07-28 which was accidentally reverted; also
12407 perform the same fix to a similar check in same function.
12409 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
12410 with the same number are found, just use issue a warning with
12411 grub_dprintf(), as this error has been reported to be non-fatal.
12413 2009-03-31 Pavel Roskin <proski@gnu.org>
12415 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
12416 for cross-compilation.
12418 2009-03-30 Robert Millan <rmh@aybabtu.com>
12420 Fix i386-ieee1275 build.
12422 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
12423 Remove declaration.
12425 2009-03-30 Pavel Roskin <proski@gnu.org>
12427 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
12428 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
12429 zero-terminated, rely only on the strlen value. Fix comparison
12430 of strings differing in length.
12432 2009-03-30 Robert Millan <rmh@aybabtu.com>
12434 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
12435 checking for abi version. Improve error messages on BIOS to notify
12436 user about `linux16' command.
12438 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12442 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
12443 in case of collision
12444 * disk/scsi.c (grub_scsi_open): free scsi in case of error
12446 2009-03-29 Robert Millan <rmh@aybabtu.com>
12448 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
12449 set `vid_mode' accordingly.
12450 (grub_linux_boot): Process `vid_mode' and set video mode.
12452 2009-03-29 Robert Millan <rmh@aybabtu.com>
12454 * util/grub.d/10_linux.in (linux_entry): New function.
12455 Factorize generation of Linux boot entries.
12457 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
12459 Make the format of Environment Block plain text. The boot loader
12460 part is not tested well yet.
12462 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
12464 (envblk): Likewise.
12465 (usage): Remove "info" and "clear". Add "unset". Update the
12466 description of "set", as this does not delete variables any
12468 (create_envblk_file): Complete rewrite.
12469 (open_envblk_file): Likewise.
12470 (cmd_info): Removed.
12471 (cmd_list): Likewise.
12472 (cmd_set): Likewise.
12473 (cmd_clear): Likewise.
12474 (list_variables): New function.
12475 (write_envblk): Likewise.
12476 (set_variables): Likewise.
12477 (unset_variables): Likewise.
12478 (main): Complete rewrite.
12480 * commands/loadenv.c (buffer): Removed.
12481 (envblk): Likewise.
12482 (open_envblk_file): New function.
12483 (read_envblk_file): Complete rewrite.
12484 (grub_cmd_load_env): Likewise.
12485 (grub_cmd_list_env): Likewise.
12486 (struct blocklist): New struct.
12487 (free_blocklists): New function.
12488 (check_blocklists): Likewise.
12489 (write_blocklists): Likewise.
12490 (grub_cmd_save_env): Complete rewrite.
12492 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
12493 a plain text signature.
12494 (GRUB_ENVBLK_MAXLEN): Removed.
12495 (struct grub_envblk): Complete rewrite.
12496 (grub_envblk_find): Removed.
12497 (grub_envblk_insert): Likewise.
12498 (grub_envblk_open): New prototype.
12499 (grub_envblk_set): Likewise.
12500 (grub_envblk_delete): Put const to VALUE.
12501 (grub_envblk_iterate): Put const to NAME and VALUE.
12502 (grub_envblk_close): New prototype.
12503 (grub_envblk_buffer): New inline function.
12504 (grub_envblk_size): Likewise.
12506 * lib/envblk.c: Include grub/mm.h.
12507 (grub_env_find): Removed.
12508 (grub_envblk_open): New function.
12509 (grub_envblk_close): Likewise.
12510 (escaped_value_len): Likewise.
12511 (find_next_line): Likewise.
12512 (grub_envblk_insert): Removed.
12513 (grub_envblk_set): New function.
12514 (grub_envblk_delete): Complete rewrite.
12515 (grub_envblk_iterate): Likewise.
12517 2009-03-28 Robert Millan <rmh@aybabtu.com>
12519 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
12520 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
12521 variables. Use 16-bit loader.
12522 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
12524 * kern/i386/loader.S (grub_linux_boot): Rename to ...
12525 (grub_linux16_boot): ... this. Update all users.
12526 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
12527 (grub_linux_boot): ... this. Update all users.
12529 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
12530 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
12531 commands to `linux16' and `initrd16'.
12532 (GRUB_MOD_FINI(linux)): Rename to ...
12533 (GRUB_MOD_FINI(linux16)): ... this.
12535 2009-03-24 Pavel Roskin <proski@gnu.org>
12537 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
12538 not just for compilation.
12540 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
12542 Move multiboot helper out of kernel
12544 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
12545 `loader/i386/multiboot_helper.S'.
12546 * conf/i386-coreboot.rmk: Likewise
12547 * conf/i386-ieee1275.rmk: Likewise
12549 * kern/i386/loader.S: Move multiboot helpers from here...
12550 * loader/i386/multiboot_helper.S: ...moved here
12551 * include/grub/i386/loader.h: Move declarations of multiboot
12552 helpers from here...
12553 * include/grub/i386/multiboot.h: ...moved here
12554 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
12556 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12558 * kern/env.c (grub_env_context_open): Added an argument to specify
12559 whether a new context inherits exported variables from current
12560 one. This is useful when making a sandbox to interpret a config
12562 All callers updated.
12564 * include/grub/env.h (grub_env_context_open): Updated the prototype.
12566 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12568 * kern/env.c (grub_env_context_close): Fix memory leaks.
12570 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12572 * normal/main.c (grub_normal_execute): Added an argument
12573 BATCH to specify if an interactive interface should be provided
12574 after reading a config file.
12575 All callers updated.
12576 (read_command_list): Prevent being executed twice.
12577 (read_fs_list): Likewise.
12579 * include/grub/normal.h (grub_normal_execute): Updated the
12582 2009-03-22 Pavel Roskin <proski@gno.org>
12584 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
12586 * kern/i386/pc/startup.S: Likewise.
12587 * kern/i386/efi/startup.S: Likewise.
12588 * kern/i386/ieee1275/startup.S: Likewise.
12589 * kern/i386/coreboot/startup.S: Likewise.
12590 * kern/x86_64/efi/startup.S: Likewise.
12592 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
12593 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
12594 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
12596 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
12598 Bugfixes in multiboot for bugs uncovered by solaris kernel.
12600 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
12602 Use vaddr of correct segment for entry_point.
12604 2009-03-21 Bean <bean123ch@gmail.com>
12606 * commands/blocklist.c: Add include file <grub/command.h>, remove
12607 <grub/normal.h> and <grub/arg.h>.
12608 (grub_cmd_blocklist): Use the new command interface.
12609 (GRUB_MOD_INIT): Likewise.
12610 (GRUB_MOD_FINI): Likewise.
12611 * commands/boot.c: Likewise.
12612 * commands/cat.c: Likewise.
12613 * commands/cmp.c: Likewise.
12614 * commands/configfile.c: Likewise.
12615 * commands/crc.c: Likewise.
12616 * commands/echo.c: Likewise.
12617 * commands/halt.c: Likewise.
12618 * commands/handler.c: Likewise.
12619 * commands/hdparm.c: Likewise.
12620 * commands/help.c: Likewise.
12621 * commands/hexdump.c: Likewise.
12622 * commands/loadenv.c: Likewise.
12623 * commands/ls.c: Likewise.
12624 * commands/lsmmap.c: Likewise.
12625 * commands/lspci.c: Likewise.
12626 * commands/loadenv.c: Likewise.
12627 * commands/read.c: Likewise.
12628 * commands/reboot.c: Likewise.
12629 * commands/search.c: Likewise.
12630 * commands/sleep.c: Likewise.
12631 * commands/test.c: Likewise.
12632 * commands/usbtest.c: Likewise.
12633 * commands/videotest.c: Likewise.
12634 * commands/i386/cpuid.c: Likewise.
12635 * commands/i386/pc/halt.c: Likewise.
12636 * commands/i386/pc/play.c: Likewise.
12637 * commands/i386/pc/pxecmd.c: Likewise.
12638 * commands/i386/pc/vbeinfo.c: Likewise.
12639 * commands/i386/pc/vbetest.c: Likewise.
12640 * commands/ieee1275/suspend.c: Likewise.
12641 * disk/loopback.c: Likewise.
12642 * font/font_cmd.c: Likewise.
12643 * hello/hello.c: Likewise.
12644 * loader/efi/appleloader.c: Likewise.
12645 * loader/efi/chainloader.c: Likewise.
12646 * loader/i386/bsd.c: Likewise.
12647 * loader/i386/efi/linux.c: Likewise.
12648 * loader/i386/ieee1275/linux.c: Likewise.
12649 * loader/i386/linux.c: Likewise.
12650 * loader/i386/pc/chainloader.c: Likewise.
12651 * loader/i386/pc/linux.c: Likewise.
12652 * loader/powerpc/ieee1275/linux.c: Likewise.
12653 * loader/multiboot_loader.c: Likewise.
12654 * term/gfxterm.c: Likewise.
12655 * term/i386/pc/serial.c: Likewise.
12656 * term/terminfo.c: Likewise.
12658 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
12659 * term/i386/pc/vga.c: Likewise.
12660 * video/readers/jpeg.c: Likewise.
12661 * video/readers/png.c: Likewise.
12662 * video/readers/tga.c: Likewise.
12664 * util/grub-fstest (cmd_loopback): Removed.
12665 (cmd_blocklist): Likewise.
12666 (cmd_ls): Likewise.
12667 (grub_register_command): Likewise.
12668 (grub_unregister_command): Likewise.
12669 (execute_command): Use grub_command_find to locate command and execute
12672 * include/grub/efi/chainloader.h: Removed.
12673 * loader/efi/chainloader_normal.c: Likewise.
12674 * loader/i386/bsd_normal.c: Likewise.
12675 * loader/i386/pc/chainloader_normal.c: Likewise.
12676 * loader/i386/pc/multiboot_normal.c: Likewise.
12677 * loader/linux_normal.c: Likewise.
12678 * loader/multiboot_loader_normal.c: Likewise.
12679 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
12681 * gencmdlist.sh: Scan new registration command grub_register_extcmd
12682 and grub_register_command_p1.
12684 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
12685 kern/command.c, lib/arg.c and commands/extcmd.c.
12686 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
12687 (minicmd_mod_SOURCES): New variable.
12688 (minicmd_mod_CFLAGS): Likewise.
12689 (minicmd_mod_LDFLAGS): Likewise.
12690 (extcmd_mod_SOURCES): Likewise.
12691 (extcmd_mod_CFLAGS): Likewise.
12692 (extcmd_mod_LDFLAGS): Likewise.
12693 (boot_mod_SOURCES): Removed.
12694 (boot_mod_CFLAGS): Likewise.
12695 (boot_mod_LDFLAGS): Likewise.
12697 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
12699 (kernel_img_HEADERS): Add command.h.
12700 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
12701 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
12703 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
12704 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
12705 remove the corresponding normal mode command.
12706 (normal_mod_SOURCES): Remove normal/arg.c.
12707 * conf/i386-coreboot.rmk: Likewise.
12708 * conf/i386-efi.rmk: Likewise.
12709 * conf/i386-ieee1275.rmk: Likewise.
12710 * conf/powerpc-ieee1275.rmk: Likewise.
12711 * conf/x86_64-efi.rmk: Likewise.
12713 * include/grub/arg.h: Move from here ...
12714 * include/grub/lib/arg.h: ... to here.
12716 * normal/arg.c: Move from here ...
12717 * lib/arg.c: ... to here.
12719 * commands/extcmd.c: New file.
12720 * commands/minicmd.c: Likewise.
12721 * include/grub/command.h: Likewise.
12722 * include/grub/extcmd.h: Likewise.
12723 * kern/command.c: Likewise.
12724 * kern/corecmd.c: Likewise.
12726 * kern/list.c (grub_list_iterate): Return int instead of void.
12727 (grub_list_insert): New function.
12728 (grub_prio_list_insert): Likewise.
12730 * kern/rescue.c (grub_rescue_command): Removed.
12731 (grub_rescue_command_list): Likewise.
12732 (grub_rescue_register_command): Likewise.
12733 (grub_rescue_unregister_command): Likewise.
12734 (grub_rescue_cmd_boot): Move to minicmd.c
12735 (grub_rescue_cmd_help): Likewise.
12736 (grub_rescue_cmd_info): Likewise.
12737 (grub_rescue_cmd_boot): Likewise.
12738 (grub_rescue_cmd_testload): Likewise.
12739 (grub_rescue_cmd_dump): Likewise.
12740 (grub_rescue_cmd_rmmod): Likewise.
12741 (grub_rescue_cmd_lsmod): Likewise.
12742 (grub_rescue_cmd_exit): Likewise.
12743 (grub_rescue_print_devices): Moved to corecmd.c.
12744 (grub_rescue_print_files): Likewise.
12745 (grub_rescue_cmd_ls): Likewise.
12746 (grub_rescue_cmd_insmod): Likewise.
12747 (grub_rescue_cmd_set): Likewise.
12748 (grub_rescue_cmd_unset): Likewise.
12749 (attempt_normal_mode): Use grub_command_find to get normal module.
12750 (grub_enter_rescue_mode): Use grub_register_core_commands to register
12751 commands, remove grub_rescue_register_command calls.
12753 * normal/command.c (grub_register_command): Removed.
12754 (grub_unregister_command): Likewise.
12755 (grub_command_find): Likewise.
12756 (grub_iterate_commands): Likewise.
12757 (rescue_command): Likewise.
12758 (export_command): Moved to corecmd.c.
12759 (set_command): Removed.
12760 (unset_command): Likewise.
12761 (insmod_command): Likewise.
12762 (rmmod_command): Likewise.
12763 (lsmod_command): Likewise.
12764 (grub_command_init): Likewise.
12766 * normal/completion.c (iterate_command): Use cmd->prio to check for
12768 (complete_arguments): Use grub_extcmd_t structure to find options.
12769 (grub_normal_do_completion): Change function grub_iterate_commands to
12770 grub_command_iterate.
12772 * normal/execute.c (grub_script_execute_cmd): No need to parse
12775 * normal/main.c (grub_dyncmd_dispatcher): New function.
12776 (read_command_list): Register unload commands as dyncmd.
12777 (grub_cmd_normal): Use new command interface, register rescue,
12778 unregister normal at entry, register normal, unregister rescue at exit.
12780 * include/grub/list.h (grub_list_test_t): New type.
12781 (grub_list_iterate): Return int instead of void.
12782 (grub_list_insert): New function.
12783 (GRUB_AS_NAMED_LIST_P): New macro.
12784 (GRUB_AS_PRIO_LIST): Likewise.
12785 (GRUB_AS_PRIO_LIST_P): Likewise.
12786 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
12787 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
12788 (grub_prio_list): New structure.
12789 (grub_prio_list_insert): New function.
12790 (grub_prio_list_remove): New inline function.
12792 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
12793 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
12794 (GRUB_COMMAND_FLAG_MENU): Likewise.
12795 (GRUB_COMMAND_FLAG_BOTH): Likewise.
12796 (GRUB_COMMAND_FLAG_TITLE): Likewise.
12797 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
12798 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
12799 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
12800 (grub_command): Likewise.
12801 (grub_register_command): Likewise.
12802 (grub_command_find): Likewise.
12803 (grub_iterate_commands): Likewise.
12804 (grub_command_init): Likewise.
12805 (grub_arg_parse): Likewise.
12806 (grub_arg_show_help): Likewise.
12808 * include/grub/rescue.h (grub_rescue_register_command): Removed.
12809 (grub_rescue_unregister_command): Likewise.
12811 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
12812 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
12813 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
12815 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
12816 grub_rescue_cmd_initrd.
12817 * include/grub/i386/loader.h: Likewise.
12818 * include/grub/x86_64/loader.h: Likewise.
12820 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
12822 2009-03-21 Bean <bean123ch@gmail.com>
12824 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
12825 instead of stat in mingw environment.
12827 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
12829 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
12831 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
12834 2009-03-21 Bean <bean123ch@gmail.com>
12836 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
12837 out of range error.
12839 2009-03-18 Michel Dänzer <michel@daenzer.net>
12841 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
12842 checking inode flags for EXT4_EXTENTS_FLAG.
12844 2009-03-18 Robert Millan <rmh@aybabtu.com>
12846 * loader/i386/linux.c: Include `<grub/video.h>' and
12847 `<grub/i386/pc/vbe.h>'..
12848 (grub_linux_setup_video): New function. Loosely based on the EFI one.
12849 (grub_linux32_boot): Attempt to configure video settings with
12850 grub_linux_setup_video().
12851 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
12852 to avoid grub_console_fini() which would step out of graphical mode
12855 2009-03-14 Robert Millan <rmh@aybabtu.com>
12857 Fix build on powerpc.
12858 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
12860 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
12862 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
12863 background image command.
12865 2009-03-12 Colin D Bennett <colin@gibibit.com>
12867 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
12868 (grub_gfxterm_putchar): Extract pairs of identical calls to
12869 draw_cursor out of conditional blocks.
12871 2009-03-11 Pavel Roskin <proski@gnu.org>
12873 * fs/hfs.c (grub_hfs_strncasecmp): New function.
12874 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
12876 2009-03-11 Robert Millan <rmh@aybabtu.com>
12878 * loader/i386/multiboot_elfxx.c
12879 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
12881 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
12883 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
12886 2009-03-11 Robert Millan <rmh@aybabtu.com>
12888 * loader/i386/multiboot.c (code_size): New variable.
12889 (grub_multiboot): Define offsets by adding to `code_size' rather
12890 than subtracting from `grub_multiboot_payload_size'. Provide
12891 4-byte alignment to MBI and others by increasing
12892 `boot_loader_name_length' appropriately.
12894 * loader/i386/multiboot_elfxx.c
12895 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
12897 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
12899 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
12902 2009-03-08 Robert Millan <rmh@aybabtu.com>
12904 Make loader/i386/linux.c usable on i386-pc again.
12906 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
12908 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
12911 2009-03-07 Bean <bean123ch@gmail.com>
12913 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
12916 2009-03-06 Robert Millan <rmh@aybabtu.com>
12918 Fix display issue on terminals with screen size other than 80x25
12919 (e.g. gfxterm with resolution higher than 640x480).
12921 * normal/main.c (grub_normal_init_page): Display title text in a
12922 position relative to the center of the terminal instead of relying
12923 on a hardcoded offset.
12925 2009-03-04 Robert Millan <rmh@aybabtu.com>
12927 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
12930 * Makefile.in (host_kernel): New variable.
12931 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
12932 scripts instead of just the windows one.
12933 * configure.ac: Initialize and AC_SUBST `host_kernel'.
12935 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
12937 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
12939 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12940 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12941 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
12942 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12943 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12944 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12946 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
12948 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
12949 or if there's no space for the disk label and print the partition number on a
12952 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
12954 * util/misc.c: Include <time.h>.
12955 (grub_millisleep): New function.
12957 2009-03-04 Bean <bean123ch@gmail.com>
12959 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
12960 another option -mno-red-zone.
12962 * commands/handler.c: Change module description.
12964 * kern/handler.c: Add missing space at the end of description line.
12966 * kern/list.c: Likewise.
12968 2009-03-03 Robert Millan <rmh@aybabtu.com>
12970 Move more components to the relocation area, and fix mbi pointer
12971 handling to use the destination rather than the origin (thanks to
12972 Vladimir Serbinenko for spotting).
12974 * loader/i386/multiboot.c (mbi_dest): New variable.
12975 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
12976 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
12979 2009-03-01 Bean <bean123ch@gmail.com>
12981 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
12982 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
12983 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
12984 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
12986 * loader/i386/efi/linux.c (acpi_guid): New variable.
12987 (acpi_guid): Likewise.
12988 (EBDA_SEG_ADDR): New constant.
12989 (LOW_MEM_ADDR): Likewise.
12990 (FAKE_EBDA_SEG): Likewise.
12991 (fake_bios_data): New function.
12992 (grub_linux_boot): Call fake_bios_data.
12994 2009-03-01 Bean <bean123ch@gmail.com>
12996 * commands/terminal.c: Removed.
12998 * commands/handler.c: New file.
13000 * include/grub/list.h: Likewise.
13002 * include/grub/handler.h: Likewise.
13004 * kern/list.c: Likewise.
13006 * kern/handler.c: Likewise.
13008 * kern/term.h: Include header file <grub/handler.h>.
13009 (grub_term_input): Move next field to the beginning.
13010 (grub_term_output): Likewise.
13011 (grub_term_input_class): New variable.
13012 (grub_term_output_class): Likewise.
13013 (grub_term_register_input): Changed to inline function.
13014 (grub_term_register_output): Likewise.
13015 (grub_term_unregister_input): Likewise.
13016 (grub_term_unregister_output): Likewise.
13017 (grub_term_set_current_input): Likewise.
13018 (grub_term_set_current_output): Likewise.
13019 (grub_term_get_current_input): Likewise.
13020 (grub_term_get_current_output): Likewise.
13021 (grub_term_iterate_input): Removed.
13022 (grub_term_iterate_output): Likewise.
13024 * kern/term.c (grub_term_list_input): Removed.
13025 (grub_term_list_output): Likewise.
13026 (grub_term_input_class): New variable.
13027 (grub_term_output_class): Likewise.
13028 (grub_cur_term_input): Change variable as macro.
13029 (grub_cur_term_output): Likewise.
13030 (grub_term_register_input): Removed.
13031 (grub_term_register_output): Likewise.
13032 (grub_term_unregister_input): Likewise.
13033 (grub_term_unregister_output): Likewise.
13034 (grub_term_set_current_input): Likewise.
13035 (grub_term_set_current_output): Likewise.
13036 (grub_term_iterate_input): Likewise.
13037 (grub_term_iterate_output): Likewise.
13038 (grub_term_get_current_input): Likewise.
13039 (grub_term_get_current_output): Likewise.
13041 * util/grub-editenv.c: Include header file <grub/handler.h>.
13042 (grub_term_get_current_input): Removed.
13043 (grub_term_get_current_output): Likewise.
13044 (grub_term_input_class): New variable.
13045 (grub_term_output_class): Likewise.
13047 * util/grub-fstest.c (grub_term_get_current_input): Removed.
13048 (grub_term_get_current_output): Likewise.
13049 (grub_term_input_class): New variable.
13050 (grub_term_output_class): Likewise.
13052 * util/grub-probe.c (grub_term_get_current_input): Removed.
13053 (grub_term_get_current_output): Likewise.
13054 (grub_term_input_class): New variable.
13055 (grub_term_output_class): Likewise.
13057 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
13058 (grub_term_get_current_output): Likewise.
13059 (grub_term_input_class): New variable.
13060 (grub_term_output_class): Likewise.
13062 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
13063 (terminal_mod_SOURCES): Likewise.
13064 (terminal_mod_CFLAGS): Likewise.
13065 (terminal_mod_LDFLAGS): Likewise.
13067 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
13069 (kernel_img_SOURCES): Add list.c and handler.c.
13070 (kernel_img_HEADERS): Add list.h and handler.h.
13072 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13074 (kernel_mod_SOURCES): Add list.c and handler.c.
13075 (kernel_mod_HEADERS): Add list.h and handler.h.
13077 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
13079 (kernel_elf_SOURCES): Add list.c and handler.c.
13080 (kernel_elf_HEADERS): Add list.h and handler.h.
13082 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13084 (kernel_elf_SOURCES): Add list.c and handler.c.
13085 (kernel_elf_HEADERS): Add list.h and handler.h.
13087 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13089 (kernel_mod_SOURCES): Add list.c and handler.c.
13090 (kernel_mod_HEADERS): Add list.h and handler.h.
13092 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13094 (kernel_elf_SOURCES): Add list.c and handler.c.
13095 (kernel_elf_HEADERS): Add list.h and handler.h.
13097 2009-02-27 Robert Millan <rmh@aybabtu.com>
13099 Factorize elf32 / elf64 code in Multiboot loader. This will
13100 prevent it from getting out of sync again.
13102 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
13103 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
13104 grub_multiboot_load_elf64): Move from here ...
13105 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
13106 grub_multiboot_load_elf): ... to here (new file).
13108 2009-02-27 Robert Millan <rmh@aybabtu.com>
13110 * util/grub.d/10_linux.in: Rename "single-user mode" to
13113 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
13115 Don't leak in SCSI code.
13116 * disk/scsi.c (grub_scsi_close): free `scsi'.
13118 2009-02-27 Robert Millan <rmh@aybabtu.com>
13120 * loader/i386/pc/multiboot.c: Move from here ...
13121 * loader/i386/multiboot.c: ... to here. Update all users.
13123 2009-02-27 Robert Millan <rmh@aybabtu.com>
13125 Patch from Alexandre Bique <bique.alexandre@gmail.com>
13126 * util/i386/pc/grub-setup.c (setup): Fix directory path.
13128 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
13130 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
13133 2009-02-27 Robert Millan <rmh@aybabtu.com>
13135 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
13136 `0x' qualifier as 0 when base is specified as parameter).
13138 2009-02-24 Bean <bean123ch@gmail.com>
13140 * configure.ac: Check for -mcmodel=large in x86_64 target.
13142 * include/grub/efi/api.h (efi_call_10): New macro.
13143 (efi_wrap_10): New function.
13145 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
13146 (GRUB_PE32_REL_BASED_HIGH): Likewise.
13147 (GRUB_PE32_REL_BASED_LOW): Likewise.
13148 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
13149 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
13150 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
13151 (GRUB_PE32_REL_BASED_SECTION): Likewise.
13152 (GRUB_PE32_REL_BASED_REL): Likewise.
13153 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
13154 (GRUB_PE32_REL_BASED_DIR64): Likewise.
13155 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
13157 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
13160 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
13161 (efi_wrap_10): New function.
13163 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
13165 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
13166 MB/MBP model (NV chipset).
13167 (devdata_devs): Add devpath_5 to the list.
13169 * load/i386/efi/linux.c (video_base): Remove variable.
13170 (RGB_MASK): New macro.
13171 (RGB_MAGIC): Likewise.
13172 (LINE_MIN): Likewise.
13173 (LINE_MAX): Likewise.
13174 (FBTEST_STEP): Likewise.
13175 (FBTEST_COUNT): Likewise.
13176 (fb_list): New variable.
13177 (grub_find_video_card): Remove function.
13178 (find_framebuf): New function.
13179 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
13182 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
13183 problem for x86_64.
13185 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
13187 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
13189 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
13192 2009-02-22 Robert Millan <rmh@aybabtu.com>
13194 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
13195 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
13196 in our relocation, instead of using it directly from heap. Also
13197 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
13199 2009-02-21 Robert Millan <rmh@aybabtu.com>
13201 Implement USB keyboard support (based on patch by Marco Gerards)
13203 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
13204 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
13205 (usb_keyboard_mod_LDFLAGS): New variables.
13207 * term/usb_keyboard.c: New file.
13209 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13211 Corrected wrong declaration
13213 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
13215 2009-02-14 Christian Franke <franke@computer.org>
13217 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
13218 (grub_lspci_iter): Print class code and programming interface byte.
13220 2009-02-14 Christian Franke <franke@computer.org>
13222 * gendistlist.sh: Ignore `.svn' directories.
13224 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
13226 * fs/fat.c: Add 2009 to Copyright line.
13228 2009-02-14 Christian Franke <franke@computer.org>
13230 * commands/hdparm.c: New file. Provides `hdparm' command
13231 which sends ATA commands via grub_disk_ata_pass_through ().
13233 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
13235 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
13236 and <grub/cpu/io.h> to include/grub/ata.h.
13237 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
13238 (GRUB_CDROM_SECTOR_SIZE): Remove.
13239 (GRUB_ATA_*): Move to include/grub/ata.h.
13240 (GRUB_ATAPI_*): Likewise.
13241 (enum grub_ata_commands): Likewise.
13242 (enum grub_ata_timeout_milliseconds): Likewise.
13243 (struct grub_ata_device): Likewise.
13244 (grub_ata_regset): Likewise.
13245 (grub_ata_regget): Likewise.
13246 (grub_ata_regset2): Likewise.
13247 (grub_ata_regget2): Likewise.
13248 (grub_ata_check_ready): Likewise.
13249 (grub_ata_wait_not_busy): Remove static, exported in
13250 include/grub/ata.h.
13251 (grub_ata_wait_drq): Likewise.
13252 (grub_ata_pio_read): Likewise.
13254 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
13255 function for hdparm.mod.
13257 * include/grub/ata.h: New file, contains declarations from
13259 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
13261 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
13262 (grub_disk_ata_pass_through): New exported variable.
13264 * kern/disk.c (grub_disk_ata_pass_through): New variable.
13266 2009-02-13 Colin D Bennett <colin@gibibit.com>
13268 Support multiple fallback entries, and provide an API to support
13269 executing default+fallback menu entries. Renamed the `terminal' menu
13272 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
13273 variable declaration.
13274 (grub_menu_execute_callback): New structure declaration.
13275 (grub_menu_execute_callback_t): New typedef.
13276 (grub_menu_execute_with_fallback): New function declaration.
13277 (grub_menu_get_entry): Likewise.
13278 (grub_menu_get_timeout): Likewise.
13279 (grub_menu_set_timeout): Likewise.
13281 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
13283 * normal/menu.c (grub_wait_after_message): Moved to
13284 `normal/menu_text.c'.
13285 (draw_border): Likewise.
13286 (print_message): Likewise.
13287 (print_entry): Likewise.
13288 (print_entries): Likewise.
13289 (grub_menu_init_page): Likewise.
13290 (get_entry_number): Likewise.
13291 (print_timeout): Likewise.
13292 (run_menu): Likewise.
13293 (grub_menu_execute_entry): Likewise.
13294 (show_text_menu): Likewise.
13295 (get_and_remove_first_entry_number): New function.
13296 (grub_menu_execute_with_fallback): Likewise.
13297 (get_entry): Renamed to ...
13298 (grub_menu_get_entry): .. this and made it global.
13299 (get_timeout): Renamed to ...
13300 (grub_menu_get_timeout): ... this and made it global.
13301 (set_timeout): Renamed to ...
13302 (grub_menu_set_timeout): ... this and made it global.
13303 (grub_normal_terminal_menu_viewer): Renamed to ...
13304 (grub_normal_text_menu_viewer): ... this.
13306 * normal/menu_text.c: New file. Extracted text-menu-specific code
13307 from normal/menu.c.
13309 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
13310 (normal_mod_SOURCES): Likewise.
13312 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13313 (normal_mod_SOURCES): Likewise.
13315 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13316 (normal_mod_SOURCES): Likewise.
13318 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
13319 (normal_mod_SOURCES): Likewise.
13321 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13322 (normal_mod_SOURCES): Likewise.
13324 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13325 (normal_mod_SOURCES): Likewise.
13327 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13328 (normal_mod_SOURCES): Likewise.
13330 2009-02-11 Robert Millan <rmh@aybabtu.com>
13332 * util/grub.d/00_header.in: Update old reference to `font' command.
13334 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
13336 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
13338 Based on patch from Javier Martín.
13340 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13342 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
13343 to avoid false positives with FAT.
13344 (grub_fstest_SOURCES): Likewise.
13345 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13346 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13347 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13348 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13349 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13350 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13352 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13354 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
13355 bpb.version_specific.fat12_or_fat16.fstype and
13356 bpb.version_specific.fat32.fstype.
13358 2009-02-08 Robert Millan <rmh@aybabtu.com>
13360 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
13362 2009-02-08 Robert Millan <rmh@aybabtu.com>
13364 * Makefile.in (host_os, host_cpu): New variables.
13365 (target_os): Remove. Update all users.
13367 2009-02-08 Marco Gerards <marco@gnu.org>
13369 * Makefile.in (enable_grub_emu_usb): New variable.
13370 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
13371 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
13372 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
13373 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
13374 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
13375 `usbtest.mod' and `usbms.mod'.
13376 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
13377 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
13378 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
13379 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
13380 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
13383 * disk/usbms.c: New file.
13385 * include/grub/usb.h: Likewise.
13387 * include/grub/usbtrans.h: Likewise.
13389 * include/grub/usbdesc.h: Likewise.
13391 * bus/usb/usbtrans.c: Likewise.
13393 * bus/usb/ohci.c: Likewise.
13395 * bus/usb/uhci.c: Likewise.
13397 * bus/usb/usbhub.c: Likewise.
13399 * bus/usb/usb.c: Likewise.
13401 * commands/usbtest.c: Likewise.
13403 * util/usb.c: Likewise.
13405 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
13407 * configure.ac: Test for libusb presence.
13409 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
13411 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
13413 * kern/mm.c: Add more comments.
13415 2009-02-08 Robert Millan <rmh@aybabtu.com>
13417 Patch from Javier Martín.
13418 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
13419 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
13421 2009-02-08 Robert Millan <rmh@aybabtu.com>
13423 * fs/cpio.c: Split tar functionality to ...
13424 * fs/tar.c: ... here (new file). Update all users.
13426 2009-02-07 Robert Millan <rmh@aybabtu.com>
13428 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
13429 backward-incompatible features.
13431 Based on patch from Javier Martín, with some adjustments.
13433 2009-02-07 Michael Scherer <misc@mandriva.org>
13435 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
13437 2009-02-07 Robert Millan <rmh@aybabtu.com>
13439 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
13440 position of `disk/lvm.c' to ensure grub_init_all() always picks it
13441 after the RAID stuff.
13443 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
13445 Fixes problem when running vbetest command as reported by
13446 Vladimir Serbinenko <phcoder@gmail.com>.
13448 * (grub_vbe_set_video_mode): Fixed problem with text modes.
13450 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
13452 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
13453 /dev/md/NpN style mdraid devices.
13455 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13457 * util/unifont2pff.rb: Remove.
13459 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13461 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
13464 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13466 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
13467 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13468 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13469 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13470 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13471 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13472 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13474 2009-02-02 Christian Franke <franke@computer.org>
13476 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
13478 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
13480 * INSTALL: Note that we now require at least autoconf 2.59 and
13481 that LZO is optional.
13483 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
13485 Base on patch on bug #24154 created by Tomas Tintera
13486 <trosos@seznam.cz>.
13488 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
13490 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
13492 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
13493 <bero@arklinux.org>.
13495 * normal/parser.y (script_init): Add missing semicolon.
13497 2009-01-31 Colin D Bennett <colin@gibibit.com>
13499 * normal/main.c: Add include to grub/menu_viewer.h.
13500 (free_menu_entry_classes): Added.
13501 (grub_normal_menu_addentry): Added class property handling.
13502 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
13503 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
13505 * normal/menu_viewer.c: New file.
13507 * normal/menu.c (run_menu_entry): Renamed to ...
13508 (grub_menu_execute_entry): ... this and made it as global.
13509 (grub_menu_run): Renamed to ...
13510 (show_text_menu): ... this and made it local.
13511 (show_text_menu): Adapt to new function names.
13512 (grub_normal_terminal_menu_viewer): New global variable.
13514 * include/grub/menu.h: New file.
13516 * include/grub/menu_viewer.h: New file.
13518 * include/grub/normal.h: Added include to grub/menu.h.
13519 (grub_menu_entry): Moved to include/grub/menu.h.
13520 (grub_menu_entry_t): Likewise.
13521 (grub_menu): Likewise.
13522 (grub_menu_t): Likewise.
13523 (grub_normal_terminal_menu_viewer): Added.
13524 (grub_menu_execute_entry): Likewise.
13525 (grub_menu_run): Removed.
13527 * DISTLIST: Added include/grub/menu.h.
13528 Added include/grub/menu_viewer.h.
13529 Added normal/menu_viewer.c.
13531 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
13533 * normal/execute.c (grub_script_execute_menuentry): Changed to use
13534 arglist for menutitle arguments.
13536 * normal/main.c (grub_normal_menu_addentry): Likewise.
13538 * normal/parser.y (menuentry): Likewise.
13540 * normal/script.c (grub_script_create_cmdmenu): Likewise.
13542 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
13543 (grub_script_create_cmdmenu): Likewise.
13545 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
13547 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
13550 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
13552 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
13554 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
13556 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13558 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13560 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13562 2009-01-30 Christian Franke <franke@computer.org>
13564 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
13565 in option help text.
13567 2009-01-27 Pavel Roskin <proski@gnu.org>
13569 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
13571 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
13573 * commands/lsmmap.c: Add include to grub/machine/memory.h.
13575 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
13577 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
13578 unregister function.
13580 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
13582 * disk/scsi.c (grub_scsi_read): Fix sign problem.
13584 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
13586 * util/grub-mkfont.c (usage): Fix typo.
13588 * util/elf/grub-mkimage.c (load_modules): Fix warning.
13590 2009-01-26 Daniel Mierswa <impulze@impulze.org>
13592 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
13594 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
13596 * kern/misc.c (grub_strcasecmp): New function.
13597 (grub_strcasecmp): Use grub_size_t instead of int for length.
13599 * include/grub/misc.h: Update function prototypes.
13601 2009-01-26 Robert Millan <rmh@aybabtu.com>
13603 * configure.ac: Fix cross-compilation check.
13605 2009-01-22 Christian Franke <franke@computer.org>
13607 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
13608 (precision) digit string. Allow `.format2' without `format1' (width).
13609 Limit input chars for `%s' output to `format2' if specified. This is
13610 compatible with standard printf ().
13612 2009-01-22 Christian Franke <franke@computer.org>
13614 * disk/ata.c (grub_ata_wait_status): Replace by ...
13615 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
13616 other status bits may be invalid while BSY is asserted.
13617 (grub_ata_check_ready): New function.
13618 (grub_ata_cmd): Removed.
13619 (grub_ata_wait_drq): New function.
13620 (grub_ata_strncpy): Remove inline.
13621 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
13622 and error check now done by grub_ata_wait_drq ().
13623 (grub_ata_pio_write): Likewise.
13624 (grub_atapi_identify): Set DEV before check for !BSY. Use
13625 grub_ata_wait_drq () to wait for data.
13626 (grub_ata_device_initialize): Add status register check to
13627 detect missing SATA slave devices. Add debug messages.
13628 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
13629 (grub_atapi_packet): Set DEV before check for !BSY. Replace
13630 transfer loop by grub_ata_pio_write ().
13631 (grub_ata_identify): Set DEV before check for !BSY. Use
13632 grub_ata_wait_drq () to wait for data.
13633 (grub_ata_setaddress): Set DEV before check for !BSY.
13634 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
13635 read/write in one loop. Fix invalid command on write. Fix incomplete
13636 command on (size % batch) == 0. Add missing error check after write of
13637 last block. Add debug messages.
13638 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
13640 2009-01-19 Christian Franke <franke@computer.org>
13642 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
13643 (GRUB_ATAPI_IREASON_*): Likewise.
13644 (grub_ata_pio_write): Fix timeout error return.
13645 (grub_atapi_identify): Add grub_ata_wait () after cmd.
13646 (grub_atapi_wait_drq): New function.
13647 (grub_atapi_packet): New parameter `size'.
13648 Use grub_atapi_wait_drq () and direct write instead of
13649 grub_ata_pio_write ().
13650 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
13651 reads the number of bytes requested by the device for each DRQ
13653 (grub_atapi_write): Remove old implementation, return not
13654 implemented instead.
13656 2009-01-19 Christian Franke <franke@computer.org>
13658 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
13659 of 512 to calculate data size.
13660 (grub_scsi_read12): Likewise.
13661 (grub_scsi_write10): Likewise.
13662 (grub_scsi_write12): Likewise.
13663 (grub_scsi_read): Adjust size according to blocksize.
13664 Add checks for invalid blocksize and unaligned transfer.
13666 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
13668 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
13670 * term/gfxterm.c (write_char): Fix background rendering for wide
13673 2009-01-19 Robert Millan <rmh@aybabtu.com>
13675 * config.guess: Update to latest version from config git.
13676 * config.sub: Likewise.
13678 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
13680 * Makefile.in: Change font compilation to use new grub-mkfont instead
13683 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
13684 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
13685 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13686 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13687 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
13688 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
13689 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
13690 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
13691 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
13693 2009-01-16 Christian Franke <franke@computer.org>
13695 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
13696 (enum grub_ata_timeout_milliseconds): New enum.
13697 (grub_ata_wait_status): Add parameter milliseconds.
13698 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
13699 recovery from timed-out commands.
13700 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
13701 return grub_errno instead of REG_ERROR.
13702 (grub_ata_pio_write): Add parameter milliseconds.
13703 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
13704 Pass milliseconds to grub_ata_wait_status () and
13705 grub_ata_pio_read ().
13706 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
13707 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
13708 grub_ata_wait_status (). Fix IDENTIFY timeout check.
13709 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
13710 It is not suitable for device detection, because DEV bit is ignored,
13711 the command may run too long, and not all devices set the signature
13713 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
13714 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
13715 Fix device selection, DEV bit must be set first to address the registers
13716 of the correct device.
13717 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
13718 grub_ata_pio_read/write ().
13719 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
13720 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
13722 2009-01-13 Carles Pina i Estany <carles@pina.cat>
13724 * util/grub-editenv.c (main): Use fseeko(), not fseek().
13726 2009-01-13 Bean <bean123ch@gmail.com>
13728 * util/grub-mkfont.c (write_font): forget to remove some debug code.
13730 2009-01-13 Bean <bean123ch@gmail.com>
13732 * Makefile.in: (enable_grub_mkfont): New variable.
13733 (freetype_cflags): Likewise.
13734 (freetype_libs): Likewise.
13736 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
13737 (grub_mkfont_SOURCES): New variable.
13738 (grub_mkfont_CFLAGS): Likewise.
13739 (grub_mkfont_LDFLAGS): Likewise.
13741 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
13742 library if `--enable-grub-mkfont' is requested.
13743 (enable_grub_mkfont): New variable.
13744 (freetype_cflags): Likewise.
13745 (freetype_libs): Likewise.
13747 * util/grub-mkfont.c: New file.
13749 2009-01-12 Christian Franke <franke@computer.org>
13751 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
13752 mode check. Fix setting of compat_use[].
13754 2009-01-10 Robert Millan <rmh@aybabtu.com>
13756 Update a few copyright years which we forgot to do in 2008 (only for
13757 files whose changes made in 2008 were copyright-significant)
13759 * Makefile.in: Add 2008 to Copyright line.
13760 * disk/ieee1275/ofdisk.c: Likewise.
13761 * disk/efi/efidisk.c: Likewise.
13762 * kern/dl.c: Likewise.
13763 * kern/sparc64/ieee1275/init.c: Likewise.
13764 * kern/mm.c: Likewise.
13765 * kern/efi/mm.c: Likewise.
13766 * boot/i386/pc/boot.S: Likewise.
13767 * genfslist.sh: Likewise.
13768 * fs/iso9660.c: Likewise.
13769 * fs/hfs.c: Likewise.
13770 * fs/jfs.c: Likewise.
13771 * fs/minix.c: Likewise.
13772 * fs/ufs.c: Likewise.
13773 * gensymlist.sh.in: Likewise.
13774 * genkernsyms.sh.in: Likewise.
13775 * include/grub/misc.h: Likewise.
13776 * include/grub/types.h: Likewise.
13777 * include/grub/symbol.h: Likewise.
13778 * include/grub/elf.h: Likewise.
13779 * include/grub/kernel.h: Likewise.
13780 * include/grub/disk.h: Likewise.
13781 * include/grub/dl.h: Likewise.
13782 * include/grub/i386/linux.h: Likewise.
13783 * include/grub/i386/pc/biosdisk.h: Likewise.
13784 * include/grub/efi/api.h: Likewise.
13785 * include/grub/efi/pe32.h: Likewise.
13786 * include/grub/util/misc.h: Likewise.
13787 * normal/execute.c: Likewise.
13788 * normal/arg.c: Likewise.
13789 * normal/completion.c: Likewise.
13790 * normal/lexer.c: Likewise.
13791 * normal/parser.y: Likewise.
13792 * normal/misc.c: Likewise.
13793 * commands/i386/pc/vbeinfo.c: Likewise.
13794 * commands/hexdump.c: Likewise.
13795 * commands/terminal.c: Likewise.
13796 * commands/ls.c: Likewise.
13797 * commands/help.c: Likewise.
13798 * partmap/pc.c: Likewise.
13799 * loader/efi/chainloader.c: Likewise.
13800 * loader/multiboot_loader.c: Likewise.
13801 * loader/i386/pc/multiboot2.c: Likewise.
13802 * term/efi/console.c: Likewise.
13803 * term/i386/pc/serial.c: Likewise.
13804 * util/lvm.c: Likewise.
13805 * util/console.c: Likewise.
13806 * util/i386/efi/grub-mkimage.c: Likewise.
13807 * util/raid.c: Likewise.
13809 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
13811 * commands/videotest.c: Removed include to grub/machine/memory.h.
13813 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
13814 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
13815 (video_mod_SOURCES): Removed.
13816 (video_mod_CFLAGS): Likewise.
13817 (video_mod_LDFLAGS): Likewise.
13818 (gfxterm_mod_SOURCES): Likewise.
13819 (gfxterm_mod_CFLAGS): Likewise.
13820 (gfxterm_mod_LDFLAGS): Likewise.
13821 (videotest_mod_SOURCES): Likewise.
13822 (videotest_mod_CFLAGS): Likewise.
13823 (videotest_mod_LDFLAGS): Likewise.
13824 (bitmap_mod_SOURCES): Likewise.
13825 (bitmap_mod_CFLAGS): Likewise.
13826 (bitmap_mod_LDFLAGS): Likewise.
13827 (tga_mod_SOURCES): Likewise.
13828 (tga_mod_CFLAGS): Likewise.
13829 (tga_mod_LDFLAGS): Likewise.
13830 (jpeg_mod_SOURCES): Likewise.
13831 (jpeg_mod_CFLAGS): Likewise.
13832 (jpeg_mod_LDFLAGS): Likewise.
13833 (png_mod_SOURCES): Likewise.
13834 (png_mod_CFLAGS): Likewise.
13835 (png_mod_LDFLAGS): Likewise.
13837 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
13838 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
13839 (video_mod_SOURCES): Added.
13840 (video_mod_CFLAGS): Likewise.
13841 (video_mod_LDFLAGS): Likewise.
13842 (videotest_mod_SOURCES): Likewise.
13843 (videotest_mod_CFLAGS): Likewise.
13844 (videotest_mod_LDFLAGS): Likewise.
13845 (bitmap_mod_SOURCES): Likewise.
13846 (bitmap_mod_CFLAGS): Likewise.
13847 (bitmap_mod_LDFLAGS): Likewise.
13848 (tga_mod_SOURCES): Likewise.
13849 (tga_mod_CFLAGS): Likewise.
13850 (tga_mod_LDFLAGS): Likewise.
13851 (jpeg_mod_SOURCES): Likewise.
13852 (jpeg_mod_CFLAGS): Likewise.
13853 (jpeg_mod_LDFLAGS): Likewise.
13854 (png_mod_SOURCES): Likewise.
13855 (png_mod_CFLAGS): Likewise.
13856 (png_mod_LDFLAGS): Likewise.
13857 (gfxterm_mod_SOURCES): Likewise.
13858 (gfxterm_mod_CFLAGS): Likewise.
13859 (gfxterm_mod_LDFLAGS): Likewise.
13861 * term/gfxterm.c: Removed include to grub/machine/memory.h,
13862 grub/machine/console.h.
13864 2009-01-04 Jerone Young <jerone@gmail.com>
13866 Make on screen instructions clearer
13868 Based on patch created by Jidanni <jidanni@jidanni.org>
13870 * normal/menu.c: print clearer instructions on the screen
13872 2009-01-02 Colin D Bennett <colin@gibibit.com>
13876 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
13877 build system and fixed gfxterm.c to work with different sized fonts.
13879 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
13881 * configure: Re-generated.
13883 * DISTLIST: Removed font/manager.c.
13885 Added font/font_cmd.c.
13887 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
13890 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
13892 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
13894 * kern/term.c: Changed users of grub_utf8_to_ucs4.
13896 * normal/menu.c: Likewise.
13898 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
13899 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
13901 * include/grub/font.h: Replaced with new file.
13903 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
13904 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
13905 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
13906 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
13907 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
13908 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
13909 fg_red, fg_green, fg_blue, fg_alpha.
13910 (grub_video_adapter): Removed blit_glyph.
13911 (grub_video_blit_glyph): Removed.
13913 * font/manager.c: Removed file.
13915 * font/font.c: New file.
13917 * font/font_cmd.c: Likewise.
13919 * video/video.c (grub_video_blit_glyph): Removed.
13921 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
13922 (grub_video_vbe_map_rgba): Likewise.
13923 (grub_video_vbe_unmap_color_int): Likewise.
13924 (grub_video_vbe_blit_glyph): Removed.
13925 (grub_video_vbe_adapter): Removed blit_glyph.
13927 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
13928 (get_pixel): Likewise.
13929 (set_pixel): Likewise.
13931 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
13933 * term/gfxterm.c: Adapted to new font engine.
13935 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
13937 * term/i386/pc/vga.c: Likewise.
13939 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
13941 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
13943 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13945 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13947 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
13949 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
13951 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
13953 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
13955 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
13957 * util/grub.d/00_header.in: Changed to use new loadfont command.
13959 * util/grub-mkconfig_lib.in: Changed font extension.
13961 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
13963 * util/getroot.c (grub_util_get_grub_dev): Add support for
13964 /dev/md/dNNpNN style partitionable mdraid devices.
13966 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
13968 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
13969 at a time limit of the PXE TFTP API correctly.
13970 (grub_pxefs_close): Likewise.
13972 2008-11-29 Robert Millan <rmh@aybabtu.com>
13974 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
13975 grub_ata_device_initialize() calls.
13977 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
13979 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
13981 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
13983 2008-11-28 Robert Millan <rmh@aybabtu.com>
13985 Fix build on powerpc-ieee1275. Based on patch created by
13986 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
13987 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
13988 `kern/ieee1275/mmap.c'.
13989 * include/grub/powerpc/ieee1275/memory.h: New file.
13991 Provide grub-install on coreboot.
13992 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
13993 (grub_install_SOURCES): New variable.
13994 * util/i386/pc/grub-install.in: Add a few condition checks to make it
13995 usable on coreboot.
13997 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
13999 * util/grub-fstest.c (grub_term_get_current_input): Change return type
14000 to `grub_term_input_t'.
14001 (grub_term_get_current_output): Change return type to
14002 `grub_term_output_t'.
14004 2008-11-22 Robert Millan <rmh@aybabtu.com>
14006 Fix breakage on coreboot due to declaration mismatch.
14007 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
14008 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
14009 grub_vga_text_cls().
14011 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
14012 comments. Avoid copying one more byte than necessary (just in case).
14014 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
14015 to 0x200000 (avoids trouble with some OFW implementations, and matches
14016 with the one in Yaboot).
14017 Reported by Manoel Abranches
14019 2008-11-20 Robert Millan <rmh@aybabtu.com>
14021 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
14022 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
14024 * util/grub-mkconfig_lib.in (grub_warn): New function.
14025 (convert_system_path_to_grub_path): Use grub_warn() when issuing
14026 warnings, to obtain consistent formatting.
14027 * util/grub.d/00_header.in: Likewise.
14028 * util/update-grub_lib.in: Likewise.
14030 * loader/i386/linux.c (allocate_pages): Fix a warning.
14031 Move comment text to `#error' stanza.
14033 Harmonize ieee1275's grub_available_iterate() with the generic
14034 grub_machine_mmap_iterate() interface (fixes a recently-introduced
14035 build problem on i386-ieee1275):
14036 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
14037 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
14038 parameter `type'. Update all users of this function.
14039 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
14040 `kern/ieee1275/mmap.c'.
14041 * kern/ieee1275/init.c
14042 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
14044 (grub_machine_mmap_iterate): ... this.
14045 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
14046 return type to `grub_err_t'. Update all implementations of this
14047 function prototype.
14048 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
14051 Add `lsmmap' command (lists firmware-provided memory map):
14052 * commands/lsmmap.c: New file.
14053 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
14054 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
14056 * conf/powerpc-ieee1275.rmk: Likewise.
14057 * conf/i386-coreboot.rmk: Likewise.
14058 * conf/i386-ieee1275.rmk: Likewise.
14060 2008-11-19 Robert Millan <rmh@aybabtu.com>
14062 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
14063 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
14064 constraints to initrd allocation (based on code from
14065 loader/i386/pc/linux.c). Without them, initrd was allocated too high
14066 for Linux to find it.
14068 2008-11-14 Robert Millan <rmh@aybabtu.com>
14070 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
14071 order to cope with duplicate slashes.
14073 2008-11-14 Robert Millan <rmh@aybabtu.com>
14075 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
14076 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
14077 don't want to mess with lower memory, because it is used in the Linux
14080 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
14081 an appropriate place in lower memory, between 0x10000 and 0x90000,
14082 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
14083 is in our heap (probably as a result of it being corrupted during
14084 decompression). Add #error instance with comment to explain why this
14085 loader isn't currently usable on PC/BIOS.
14087 2008-11-14 Robert Millan <rmh@aybabtu.com>
14089 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
14090 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
14092 2008-11-12 Robert Millan <rmh@aybabtu.com>
14094 Make loader/i386/linux.c buildable on i386-pc (although disabled).
14096 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
14097 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
14099 * include/grub/i386/pc/memory.h: ... to here.
14101 2008-11-12 Robert Millan <rmh@aybabtu.com>
14103 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
14106 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
14107 (grub_console_cur_color, grub_console_real_putchar)
14108 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14109 (grub_console_setcolorstate, grub_console_setcolor)
14110 (grub_console_getcolor): Move from here ...
14111 * include/grub/i386/vga_common.h: ... to here (new file).
14113 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
14114 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
14115 `<grub/i386/io.h>'.
14116 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
14117 `<grub/i386/vga_common.h>'.
14119 2008-11-12 Robert Millan <rmh@aybabtu.com>
14121 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
14122 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
14123 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
14125 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14126 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
14128 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
14129 grub_console_init() with call to grub_vga_text_init().
14130 (grub_machine_fini): Replace call to
14131 grub_console_fini() with call to grub_vga_text_fini() and
14132 grub_at_keyboard_fini().
14134 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
14135 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14136 (grub_console_setcolorstate, grub_console_setcolor)
14137 (grub_console_getcolor): New function prototypes.
14139 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
14140 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
14141 (grub_vga_text_setcursor): Static-ize.
14142 (grub_vga_text_term): New structure.
14143 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
14145 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
14146 (grub_console_cur_color, grub_console_standard_color)
14147 (grub_console_normal_color, grub_console_highlight_color)
14148 (map_char, grub_console_putchar, grub_console_getcharwidth)
14149 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
14150 (grub_console_getcolor): Move from here ...
14151 * term/i386/vga_common.c: ... to here (same function names).
14153 2008-11-12 Robert Millan <rmh@aybabtu.com>
14155 Use newly-added Multiboot support in coreboot.
14157 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14158 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
14160 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
14161 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
14162 (codestart): Store the MBI in `startup_multiboot_info' when we're
14163 being loaded using Multiboot.
14165 * kern/i386/coreboot/init.c (grub_machine_init): Move
14166 grub_at_keyboard_init() call to beginning of function (useful for
14167 debugging). Call grub_machine_mmap_init() before attempting to use
14168 grub_machine_mmap_iterate().
14169 (grub_lower_mem, grub_upper_mem): Move from here ...
14170 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
14173 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
14174 function prototype.
14176 2008-11-12 Robert Millan <rmh@aybabtu.com>
14178 Fix a regression introduced by the at_keyboard.mod split. Because
14179 some terminals are default on some platforms and non-default on
14180 others, the first terminal being registered determines which is
14181 going to be default.
14183 * kern/term.c (grub_term_register_input): If this is the first
14184 terminal being registered, set it as the current one.
14185 (grub_term_register_output): Likewise.
14187 * term/efi/console.c (grub_console_init): Do not call
14188 grub_term_set_current_output() or grub_term_set_current_input().
14189 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
14190 * term/i386/pc/console.c (grub_console_init): Likewise.
14191 (grub_console_fini): Do not call grub_term_set_current_input()
14192 (but leave grub_term_set_current_output() to restore text mode).
14194 2008-11-10 Robert Millan <rmh@aybabtu.com>
14196 * util/grub.d/00_header.in: Add backward compatibility check for
14197 versions of terminal.mod that don't understand `terminal_input' or
14200 2008-11-09 Robert Millan <rmh@aybabtu.com>
14202 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
14203 `terminal_input' / `terminal_output', not `terminal'.
14205 2008-11-08 Robert Millan <rmh@aybabtu.com>
14207 * Makefile.in (include_DATA): Fix srcdir=. assumption.
14208 (DISTCLEANFILES): Add `build_env.mk'.
14210 2008-11-08 Robert Millan <rmh@aybabtu.com>
14212 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
14213 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14214 members. Update all users.
14215 * util/console.c (grub_ncurses_term): Split in ...
14216 (grub_ncurses_term_input): ... this, and ...
14217 (grub_ncurses_term_output): ... this. Update all users.
14218 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
14220 2008-11-08 Robert Millan <rmh@aybabtu.com>
14222 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
14223 (PKGDATA): Add $(pkgdata_SRCDIR).
14224 (pkglib_BUILDDIR): New variable.
14225 (pkgdata_SRCDIR): New variable.
14226 (build_env.mk): New target.
14227 (include_DATA): New variable.
14228 (install-local): Install $(include_DATA) files in $(includedir).
14230 2008-11-07 Pavel Roskin <proski@gnu.org>
14232 * gendistlist.sh: Use C locale for sorting to ensure consistent
14233 output on all systems.
14235 * util/grub.d/00_header.in: Remove incorrect space before
14238 2008-11-07 Robert Millan <rmh@aybabtu.com>
14240 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
14242 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
14243 * loader/multiboot_loader.c (find_multi_boot2_header): New function
14244 (based on find_multi_boot1_header).
14245 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
14246 using find_multi_boot2_header(), and abort if neither Multiboot or
14247 Multiboot headers were found.
14249 2008-11-07 Robert Millan <rmh@aybabtu.com>
14251 Modularize at_keyboard.mod:
14253 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
14254 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
14255 (at_keyboard_mod_LDFLAGS): New variables.
14257 Actual terminal split:
14259 * include/grub/term.h (struct grub_term): Split in ...
14260 (struct grub_term_input): ... this, and ...
14261 (struct grub_term_output): ... this. Update all users.
14262 (grub_term_set_current): Split in ...
14263 (grub_term_set_current_input): ... this, and ...
14264 (grub_term_set_current_output): ... this.
14265 (grub_term_get_current): Split in ...
14266 (grub_term_get_current_input): ... this, and ...
14267 (grub_term_get_current_output): ... this.
14268 (grub_term_register): Split in ...
14269 (grub_term_register_input): ... this, and ...
14270 (grub_term_register_output): ... this.
14271 (grub_term_unregister): Split in ...
14272 (grub_term_unregister_input): ... this, and ...
14273 (grub_term_unregister_output): ... this.
14274 (grub_term_iterate): Split in ...
14275 (grub_term_iterate_input): ... this, and ...
14276 (grub_term_iterate_output): ... this.
14278 * kern/term.c (grub_term_list): Split in ...
14279 (grub_term_list_input): ... this, and ...
14280 (grub_term_list_output): ... this. Update all users.
14281 (grub_cur_term): Split in ...
14282 (grub_cur_term_input): ... this, and ...
14283 (grub_cur_term_output): ... this. Update all users.
14284 (grub_term_set_current): Split in ...
14285 (grub_term_set_current_input): ... this, and ...
14286 (grub_term_set_current_output): ... this.
14287 (grub_term_get_current): Split in ...
14288 (grub_term_get_current_input): ... this, and ...
14289 (grub_term_get_current_output): ... this.
14290 (grub_term_register): Split in ...
14291 (grub_term_register_input): ... this, and ...
14292 (grub_term_register_output): ... this.
14293 (grub_term_unregister): Split in ...
14294 (grub_term_unregister_input): ... this, and ...
14295 (grub_term_unregister_output): ... this.
14296 (grub_term_iterate): Split in ...
14297 (grub_term_iterate_input): ... this, and ...
14298 (grub_term_iterate_output): ... this.
14300 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
14301 a check for input and one for output (and only attempt to get keys
14302 from user when input works).
14304 * util/grub-probe.c (grub_term_get_current): Split in ...
14305 (grub_term_get_current_input): ... this, and ...
14306 (grub_term_get_current_output): ... this.
14307 * util/grub-fstest.c: Likewise.
14308 * util/i386/pc/grub-setup.c: Likewise.
14309 * util/grub-editenv.c: Likewise.
14311 Portability adjustments:
14313 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
14314 `term/i386/pc/at_keyboard.c'.
14315 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
14316 grub_keyboard_controller_init() (now handled by terminal .init).
14317 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
14318 grub_at_keyboard_init().
14319 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
14320 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
14321 at_keyboard.mod via input terminal interface).
14322 * include/grub/i386/coreboot/console.h: Convert into a stub for
14323 `<grub/i386/pc/console.h>'.
14325 Migrate full terminals to new API:
14327 * term/efi/console.c (grub_console_term): Split into ...
14328 (grub_console_term_input): ... this, and ...
14329 (grub_console_term_output): ... this. Update all users.
14330 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
14331 (grub_ofconsole_init): Split into ...
14332 (grub_ofconsole_init_input): ... this, and ...
14333 (grub_ofconsole_init_output): ... this.
14334 (grub_ofconsole_term): Split into ...
14335 (grub_ofconsole_term_input): ... this, and ...
14336 (grub_ofconsole_term_output): ... this. Update all users.
14337 * term/i386/pc/serial.c (grub_serial_term): Split into ...
14338 (grub_serial_term_input): ... this, and ...
14339 (grub_serial_term_output): ... this. Update all users.
14340 * term/i386/pc/console.c (grub_console_term): Split into ...
14341 (grub_console_term_input): ... this, and ...
14342 (grub_console_term_output): ... this. Update all users.
14343 (grub_console_term_input): Only enable it on PC/BIOS platform.
14344 (grub_console_init): Remove grub_keyboard_controller_init() call.
14346 Migrate input terminals to new API:
14348 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
14349 `i386' and `i386/pc' to enable build on x86_64 (this driver is
14350 i386-specific anyway).
14351 (grub_console_checkkey): Rename to ...
14352 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
14354 (grub_keyboard_controller_orig): New variable.
14355 (grub_console_getkey): Rename to ...
14356 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
14358 (grub_keyboard_controller_init): Static-ize. Save original
14359 controller value so that it can be restored ...
14360 (grub_keyboard_controller_fini): ... here (new function).
14361 (grub_at_keyboard_term): New structure.
14362 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
14365 Migrate output terminals to new API:
14367 * term/i386/pc/vga.c (grub_vga_term): Change type to
14368 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14369 members. Update all users.
14370 * term/gfxterm.c (grub_video_term): Change type to
14371 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14372 members. Update all users.
14373 * include/grub/i386/pc/console.h (grub_console_checkkey)
14374 (grub_console_getkey): Do not export (no longer needed by gfxterm,
14377 Migrate `terminal' command and userland tools to new API:
14379 * commands/terminal.c (grub_cmd_terminal): Split into ...
14380 (grub_cmd_terminal_input): ... this, and ...
14381 (grub_cmd_terminal_output): ... this.
14382 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
14383 `terminal_input' and `terminal_output'.
14384 * util/grub.d/00_header.in: Adjust `terminal' calls to new
14385 `terminal_input' / `terminal_output' API.
14386 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
14387 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
14388 provided ${GRUB_TERMINAL}, convert it).
14390 2008-11-04 Robert Millan <rmh@aybabtu.com>
14392 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
14394 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
14396 2008-11-03 Bean <bean123ch@gmail.com>
14398 * kern/elf.c (grub_elf32_load): Revert to previous code.
14399 (grub_elf64_load): Likewise.
14401 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
14403 2008-11-01 Robert Millan <rmh@aybabtu.com>
14405 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
14406 (TARGET_CPPFLAGS): Likewise.
14407 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
14409 2008-11-01 Carles Pina i Estany <carles@pina.cat>
14411 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
14413 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14415 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
14416 addition of objects until the code is not going to be able to fail.
14418 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14420 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
14421 (add a missing NULL check, and correct them by moving the pointer
14422 operations after the actual check).
14424 2008-10-29 Robert Millan <rmh@aybabtu.com>
14426 * util/i386/pc/grub-install.in: Handle empty string as output from
14427 make_system_path_relative_to_its_root().
14429 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
14431 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
14432 circular metadata worst case scenario. If the metadata is circular
14433 then copy the wrap in place.
14434 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
14435 project lib/format_text/layout.h
14436 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
14438 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
14440 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
14442 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
14444 * util/update-grub_lib.in: Mention filename in warning message.
14446 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
14448 * NEWS: Update for rename of update-grub to grub-mkconfig.
14450 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
14452 * util/update-grub_lib.in: Copy to ...
14453 * util/grub-mkconfig_lib.in: ... this. Update all users.
14454 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
14455 * util/update-grub.in: Rename to ...
14456 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
14457 option. Add `--output' option to allow users to specify the generated
14458 configuration file. Default to stdout.
14459 (update_grub_dir): Rename to ...
14460 (grub_mkconfig_dir): ... this.
14461 (grub_cfg): Default to an empty string.
14462 * conf/common.rmk (update-grub): Rename to ...
14463 (grub-mkconfig): ... this.
14464 (update-grub_lib): Copy to ...
14465 (grub-mkconfig_lib): ... this.
14466 (update-grub_SCRIPTS): Copy to ...
14467 (grub-mkconfig_SCRIPTS): ... this. Update all users.
14468 (update-grub_DATA): Rename to ...
14469 (grub-mkconfig_DATA): ... this.
14471 2008-09-28 Robert Millan <rmh@aybabtu.com>
14473 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
14474 to `modified'. Add the real `created' field.
14475 (grub_iso9660_uuid): Use `modified' rather than `created' for
14476 constructing the UUID.
14478 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
14480 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
14481 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
14483 2008-09-28 Bean <bean123ch@gmail.com>
14485 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
14486 Thanks to Christian Franke for finding this bug.
14488 2008-09-25 Robert Millan <rmh@aybabtu.com>
14490 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
14491 instances of grub_util_get_disk_name() (see previous commit).
14493 2008-09-25 Robert Millan <rmh@aybabtu.com>
14495 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
14496 `util/i386/get_disk_name.c'.
14497 * conf/i386-efi.rmk: Likewise.
14498 * conf/x86_64-efi.rmk: Likewise.
14499 * conf/i386-coreboot.rmk: Likewise.
14500 * conf/i386-ieee1275.rmk: Likewise.
14501 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
14502 `util/ieee1275/get_disk_name.c'.
14503 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
14504 * util/ieee1275/get_disk_name.c: Remove file.
14505 * util/i386/get_disk_name.c: Remove file.
14506 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
14507 "hd%d" for device.map entries, rather than using
14508 grub_util_get_disk_name().
14510 2008-09-24 Carles Pina i Estany <carles@pina.cat>
14512 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
14514 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
14516 2008-09-24 Carles Pina i Estany <carles@pina.cat>
14518 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
14520 (GRUB_TERM_PPAGE): Changed to 0x4900.
14522 2008-09-24 Robert Millan <rmh@aybabtu.com>
14524 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
14525 macros (they were i386-pc specific).
14526 * include/grub/sparc64/ieee1275/console.h: Likewise.
14527 * include/grub/efi/console.h: Likewise.
14529 2008-09-22 Bean <bean123ch@gmail.com>
14531 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
14532 resident and in attribute list.
14534 * include/grub/ntfs.h (BMP_LEN): Removed.
14536 2008-09-22 Bean <bean123ch@gmail.com>
14538 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
14539 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
14541 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
14542 error occurs, as grub_disk_open will call grub_disk_close, which will
14543 call p->close (scsi).
14545 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
14547 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
14548 (AC_PREREQ): Bumped to 2.59.
14549 (AC_TRY_COMPILE): Replace obsolete macro with ...
14550 (AC_COMPILE_IFELSE): ... this.
14551 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
14552 (AC_LINK_IFELSE): ... this.
14554 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
14556 * autogen.sh: Add a call to `gendistlist.sh'.
14558 2008-09-19 Christian Franke <franke@computer.org>
14560 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
14561 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
14562 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
14563 Export __enable_execute_stack() to modules.
14564 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
14567 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
14569 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
14572 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
14574 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
14575 #include <grub/util/hostdisk.h>.
14577 2008-09-08 Robert Millan <rmh@aybabtu.com>
14579 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
14580 segments when their filesz is zero (grub_file_read() interprets
14581 zero-size as "read until EOF", which results in memory corruption).
14582 Use `lowest_segment' rather than 0 for calculating the current
14583 segment load address.
14585 2008-09-08 Robert Millan <rmh@aybabtu.com>
14587 * util/hostdisk.c (open_device): Replace a grub_util_info() call
14588 with grub_dprintf("hostdisk", ...), as it was so verbose that it
14589 clobbered useful information.
14591 2008-09-08 Robert Millan <rmh@aybabtu.com>
14593 * include/grub/util/biosdisk.h: Move to ...
14594 * include/grub/util/hostdisk.h: ... here. Update all users.
14595 * util/biosdisk.c: Move to ...
14596 * util/hostdisk.c: ... here. Update all users.
14598 2008-09-07 Robert Millan <rmh@aybabtu.com>
14600 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
14602 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
14603 and length can be stored directly in the `mbi->mmap_addr' and
14604 `mbi->mmap_length' struct fields.
14606 2008-09-07 Robert Millan <rmh@aybabtu.com>
14608 * conf/i386.rmk: New file. Provides declaration for building
14610 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
14611 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
14613 Include `conf/i386.mk'.
14614 * conf/i386-efi.rmk: Likewise.
14615 * conf/x86_64-efi.rmk: Likewise.
14616 * conf/i386-coreboot.rmk: Likewise.
14617 * conf/i386-ieee1275.rmk: Likewise.
14619 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
14621 Based on patch created by Colin D Bennett <colin@gibibit.com>.
14622 Adds optimization support for BGR based modes.
14624 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
14625 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
14626 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14627 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14628 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14629 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14630 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14631 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14632 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14633 (grub_video_i386_vbeblit_index_index): Likewise.
14634 (grub_video_i386_vbeblit_replace_directN): Added.
14635 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
14636 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
14637 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
14638 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
14639 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
14640 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
14641 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
14642 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
14643 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
14644 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
14645 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
14646 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
14647 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
14649 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
14650 (grub_video_i386_vbefill_R8G8B8): Likewise.
14651 (grub_video_i386_vbefill_index): Likewise.
14652 (grub_video_i386_vbefill_direct32): Added.
14653 (grub_video_i386_vbefill_direct24): Likewise.
14654 (grub_video_i386_vbefill_direct16): Likewise.
14655 (grub_video_i386_vbefill_direct8): Likewise.
14657 * include/grub/video.h (grub_video_blit_format): Removed
14658 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
14659 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
14660 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
14661 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
14662 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
14664 * video/video.c (grub_video_get_blit_format): Updated to use new
14665 blit formats. Added handling for 16 bit color modes.
14667 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
14669 (common_blitter): Updated to use new blitters.
14671 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
14673 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
14674 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14675 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14676 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14677 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14678 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14679 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14680 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14681 (grub_video_i386_vbeblit_index_index): Likewise.
14682 (grub_video_i386_vbeblit_replace_directN): Added.
14683 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
14684 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
14685 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
14686 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
14687 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
14688 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
14689 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
14690 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
14691 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
14692 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
14693 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
14694 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
14695 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
14697 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
14698 (grub_video_i386_vbefill_R8G8B8): Likewise.
14699 (grub_video_i386_vbefill_index): Likewise.
14700 (grub_video_i386_vbefill_direct32): Added.
14701 (grub_video_i386_vbefill_direct24): Likewise.
14702 (grub_video_i386_vbefill_direct16): Likewise.
14703 (grub_video_i386_vbefill_direct8): Likewise.
14705 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
14708 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
14711 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
14714 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
14717 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
14719 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
14722 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
14724 * fs/iso9660.c (grub_iso9660_date): New structure.
14725 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
14726 (grub_iso9660_uuid): New function.
14728 2008-09-05 Bean <bean123ch@gmail.com>
14730 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
14732 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
14733 insensitive bit for names in Win32 and Win32 & DOS namespace.
14735 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
14737 * include/grub/types.h (LONG_MAX): Likewise.
14739 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
14741 * util/getroot.c: Include <config.h>.
14742 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
14743 add support for /dev/md/N devices and handle LVM double dash escaping.
14745 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
14747 * config.guess: Update to latest version from config git.
14748 * config.sub: Likewise.
14750 2008-09-03 Robert Millan <rmh@aybabtu.com>
14752 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
14753 `disk->total_sectors'.
14755 2008-09-01 Colin D Bennett <colin@gibibit.com>
14757 * include/grub/normal.h: Fixed incorrect comment for
14758 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
14760 2008-09-01 Colin D Bennett <colin@gibibit.com>
14762 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
14763 values with defines.
14765 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
14766 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
14767 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
14768 (GRUB_VBE_MODEATTR_COLOR): Likewise.
14769 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
14770 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
14771 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
14772 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
14773 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
14774 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
14775 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
14776 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
14777 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
14778 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
14779 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
14780 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
14781 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
14782 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
14783 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
14785 2008-08-31 Robert Millan <rmh@aybabtu.com>
14787 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
14789 (grub_multiboot): Fix a few warnings.
14791 2008-08-31 Robert Millan <rmh@aybabtu.com>
14793 * loader/i386/pc/multiboot.c: Update comment not to say that
14794 boot_device support is unimplemented.
14796 2008-08-31 Robert Millan <rmh@aybabtu.com>
14798 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
14799 or memory map support are unimplemented.
14801 2008-08-31 Colin D Bennett <colin@gibibit.com>
14803 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
14805 2008-08-31 Colin D Bennett <colin@gibibit.com>
14807 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
14808 total video memory in 'vbeinfo' output; show color format details for
14811 2008-08-30 Pavel Roskin <proski@gnu.org>
14813 * util/genmoddep.c: Remove for real this time.
14814 * DISTLIST: Remove util/genmoddep.c.
14816 2008-08-30 Robert Millan <rmh@aybabtu.com>
14818 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
14819 as required by Multiboot spec (it was already 4-byte aligned, but
14822 2008-08-29 Pavel Roskin <proski@gnu.org>
14824 * kern/powerpc/ieee1275/crt0.S: Rename to ...
14825 * kern/powerpc/ieee1275/startup.S: ... this.
14826 * conf/powerpc-ieee1275.rmk: Adjust for the above.
14827 * DISTLIST: Likewise.
14829 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
14830 grub/cpu/kernel.h. Add start label for consistency with other
14831 platforms. Add grub_prefix immediately after start. Add jump
14832 to the code after grub_prefix.
14833 * include/grub/powerpc/kernel.h: Provide valid values for
14834 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
14836 2008-08-29 Bean <bean123ch@gmail.com>
14838 * configure.ac: Change host_os to cygwin for mingw.
14839 (asprintf): New check for function.
14841 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
14842 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
14844 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
14845 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
14846 sync, sleep and grub_util_get_disk_size for mingw.
14848 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
14849 to get size in mingw.
14850 (open_device): Use flag O_BINARY if it's defined.
14851 (find_root_device): Add dummy code for mingw.
14853 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
14854 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
14855 (get_scsi_disk_name): Return 0 for mingw.
14857 * util/hostfs.c: #include <grub/util/misc.h>.
14858 (grub_hostfs_open): Use "rb" flag to open file, use
14859 grub_util_get_disk_size to get disk size for mingw.
14861 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
14862 (asprintf): New function if HAVE_ASPRINTF is not set.
14863 (sync): New function for mingw.
14865 (grub_util_get_disk_size): Likewise.
14867 2008-08-28 Pavel Roskin <proski@gnu.org>
14869 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
14872 2008-08-28 Robert Millan <rmh@aybabtu.com>
14874 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
14876 2008-08-28 Robert Millan <rmh@aybabtu.com>
14878 Change find_grub_drive() syntax so it doesn't prevent it from
14879 detecting NULL names as errors.
14881 * util/biosdisk.c (find_grub_drive): Move free slot search code
14883 (find_free_slot): ... to here.
14884 (read_device_map): Use find_free_slot() to search for free slots.
14886 2008-08-27 Marco Gerards <marco@gnu.org>
14888 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
14889 (scsi_mod_SOURCES): New variable.
14890 (scsi_mod_CFLAGS): Likewise
14891 (scsi_mod_LDFLAGS): Likewise.
14893 * disk/scsi.c: New file.
14895 * include/grub/scsi.h: Likewise.
14897 * include/grub/scsicmd.h: Likewise.
14899 * disk/ata.c: Include <grub/scsi.h>.
14900 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
14902 (grub_ata_iterate): Skip ATAPI devices.
14903 (grub_ata_open): Only handle ATAPI devices.
14904 (struct grub_atapi_read): Removed.
14905 (grub_atapi_readsector): Likewise.
14906 (grub_ata_read): No longer handle ATAPI devices.
14907 (grub_ata_write): Likewise.
14908 (grub_atapi_iterate): New function.
14909 (grub_atapi_read): Likewise.
14910 (grub_atapi_write): Likewise.
14911 (grub_atapi_open): Likewise.
14912 (grub_atapi_close): Likewise.
14913 (grub_atapi_dev): New variable.
14914 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
14915 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
14917 * include/grub/disk.h (enum grub_disk_dev_id): Add
14918 `GRUB_DISK_DEVICE_SCSI_ID'.
14920 2008-08-26 Robert Millan <rmh@aybabtu.com>
14922 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
14923 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
14926 2008-08-23 Bean <bean123ch@gmail.com>
14928 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
14929 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
14930 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
14931 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
14933 (raid5rec_mod_SOURCES): New macro.
14934 (raid5rec_mod_CFLAGS): Likewise.
14935 (raid5rec_mod_LDFLAGS): Likewise.
14936 (raid6rec_mod_SOURCES): Likewise.
14937 (raid6rec_mod_CFLAGS): Likewise.
14938 (raid6rec_mod_LDFLAGS): Likewise.
14939 (mdraid_mod_SOURCES): Likewise.
14940 (mdraid_mod_CFLAGS): Likewise.
14941 (mdraid_mod_LDFLAGS): Likewise.
14942 (dm_nv_mod_SOURCES): Likewise.
14943 (dm_nv_mod_CFLAGS): Likewise.
14944 (dm_nv_mod_LDFLAGS): Likewise.
14946 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
14947 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
14948 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
14950 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
14951 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
14953 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14955 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14957 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14959 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14961 * disk/raid5_recover.c: New file.
14963 * disk/raid6_recover.c: Likewise.
14965 * disk/mdraid_linux.c: Likewise.
14967 * disk/dmraid_nvidia.c: Likewise.
14969 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
14972 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
14973 calculate the size of raid device.
14974 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
14975 different layout of raid5.
14976 (grub_raid_scan_device): Remove code specific to mdraid.
14977 (grub_raid_list): New variable.
14978 (free_array): New function.
14979 (grub_raid_register): Likewise.
14980 (grub_raid_unregister): Likewise.
14981 (grub_raid_rescan): Likewise.
14982 (GRUB_MOD_INIT): Don't iterate device here.
14983 (GRUB_MOD_FINI): Use free_array to release resource.
14985 * include/grub/raid.h: Remove macro and structure specific to mdraid.
14986 (grub_raid5_recover_func_t): New function variable type.
14987 (grub_raid6_recover_func_t): Likewise.
14988 (grub_raid5_recover_func): New variable.
14989 (grub_raid6_recover_func): Likewise.
14990 (grub_raid_register): New function.
14991 (grub_raid_unregister): Likewise.
14992 (grub_raid_rescan): Likewise.
14993 (grub_raid_block_xor): Likewise.
14995 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
14996 (CMD_CRC): New macro.
14998 (read_file): Handle device as well as file.
14999 (cmd_crc): New function.
15000 (fstest): Handle multiple disks.
15001 (options): Remove part, raw and long, add root and diskcount.
15002 (usage): Add crc, remove -p, -r, -l, add -r and -c.
15003 (main): Find the first non option entry and ignore subsequent options,
15004 add handling for the new options, support multiple disks.
15006 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
15008 2008-08-23 Bean <bean123ch@gmail.com>
15010 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
15012 * genfslist.sh: Ignore kernel.mod.
15014 * genpartmaplist.sh: Likewise.
15016 2008-08-23 Robert Millan <rmh@aybabtu.com>
15018 * util/getroot.c (find_root_device): Skip anything that starts with
15019 a dot, not just directories. This avoids things like /dev/.tmp.md0.
15021 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
15023 * util/update-grub.in (GRUB_GFXMODE): Export variable.
15024 * util/grub.d/00_header.in: Allow the administrator to change default
15025 gfxmode via ${GRUB_GFXMODE}.
15027 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
15029 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
15031 2008-08-21 Robert Millan <rmh@aybabtu.com>
15033 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
15035 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
15036 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
15038 2008-08-20 Carles Pina i Estany <carles@pina.cat>
15040 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
15041 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
15043 2008-08-19 Robert Millan <rmh@aybabtu.com>
15045 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
15046 (struct grub_virtual_screen): Remove `cursor_color'.
15047 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
15049 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
15051 2008-08-18 Robert Millan <rmh@aybabtu.com>
15053 Unify (identical) linux_normal.c files.
15054 * loader/i386/efi/linux_normal.c: Move from here ...
15055 * loader/linux_normal.c: ... to here. Update all users.
15056 * loader/i386/pc/linux_normal.c: Delete. Update all users.
15057 * loader/i386/ieee1275/linux_normal.c: Likewise.
15059 2008-08-18 Robert Millan <rmh@aybabtu.com>
15061 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
15062 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
15063 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
15064 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
15065 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
15067 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
15068 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
15069 (GRUB_LINUX_CL_END_OFFSET): ... to here.
15070 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
15071 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
15072 (GRUB_EFI_CL_END_OFFSET): Rename to ...
15073 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
15074 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
15075 Initialize `params->video_cursor_x' and `params->video_cursor_y'
15076 portably using grub_getxy().
15077 Replace `-EFI' with `-bzImage' in boot message.
15079 2008-08-17 Robert Millan <rmh@aybabtu.com>
15081 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
15083 2008-08-17 Robert Millan <rmh@aybabtu.com>
15085 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
15087 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
15088 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
15089 (grub_machine_mmap_iterate): New function declaration.
15090 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
15092 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
15095 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
15096 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
15097 Move e820 parsing from here ...
15098 * kern/i386/pc/mmap.c: New file.
15099 (grub_machine_mmap_iterate): ... to here.
15101 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
15102 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
15103 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
15104 (grub_available_iterate): Redeclare to return `void', and redeclare
15105 its hook to use grub_uint64_t as addr and size parameters, and rename
15107 (grub_machine_mmap_iterate): ... this. Update all users.
15109 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
15110 to make it more readable. Rename to ...
15111 (grub_machine_mmap_iterate): ... this.
15113 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
15114 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
15115 (grub_multiboot): Allocate an extra region after the payload, and fill
15116 it with a Multiboot memory map. Adjust a.out loader to calculate size
15117 with the extra space.
15118 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
15119 with the extra space.
15121 2008-08-17 Carles Pina i Estany <carles@pina.cat>
15123 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
15125 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
15127 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
15128 mdate-sh to the list `find' searches for.
15129 * DISTLIST: Regenerated.
15131 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
15133 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
15134 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
15135 genmoddep.awk, gensymlist.sh.in.
15136 (DISTDIRS): Add bus, docs, hook, lib.
15137 * DISTLIST: Regenerated.
15138 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
15140 2008-08-16 Robert Millan <rmh@aybabtu.com>
15142 * disk/raid.c (grub_raid_init): Handle/report errors set by
15143 grub_device_iterate().
15144 * disk/lvm.c (grub_lvm_init): Likewise.
15146 2008-08-15 Bean <bean123ch@gmail.com>
15148 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15150 (datetime_mod_SOURCES): New macro.
15151 (datetime_mod_CFLAGS): Likewise.
15152 (datetime_mod_LDFLAGS): Likewise.
15153 (date_mod_SOURCES): Likewise.
15154 (date_mod_CFLAGS): Likewise.
15155 (date_mod_LDFLAGS): Likewise.
15156 (datehook_mod_SOURCES): Likewise.
15157 (datehook_mod_CFLAGS): Likewise.
15158 (datehook_mod_LDFLAGS): Likewise.
15160 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15162 (datetime_mod_SOURCES): New macro.
15163 (datetime_mod_CFLAGS): Likewise.
15164 (datetime_mod_LDFLAGS): Likewise.
15165 (date_mod_SOURCES): Likewise.
15166 (date_mod_CFLAGS): Likewise.
15167 (date_mod_LDFLAGS): Likewise.
15168 (datehook_mod_SOURCES): Likewise.
15169 (datehook_mod_CFLAGS): Likewise.
15170 (datehook_mod_LDFLAGS): Likewise.
15172 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15174 (datetime_mod_SOURCES): New macro.
15175 (datetime_mod_CFLAGS): Likewise.
15176 (datetime_mod_LDFLAGS): Likewise.
15177 (date_mod_SOURCES): Likewise.
15178 (date_mod_CFLAGS): Likewise.
15179 (date_mod_LDFLAGS): Likewise.
15180 (datehook_mod_SOURCES): Likewise.
15181 (datehook_mod_CFLAGS): Likewise.
15182 (datehook_mod_LDFLAGS): Likewise.
15184 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15186 (datetime_mod_SOURCES): New macro.
15187 (datetime_mod_CFLAGS): Likewise.
15188 (datetime_mod_LDFLAGS): Likewise.
15189 (date_mod_SOURCES): Likewise.
15190 (date_mod_CFLAGS): Likewise.
15191 (date_mod_LDFLAGS): Likewise.
15192 (datehook_mod_SOURCES): Likewise.
15193 (datehook_mod_CFLAGS): Likewise.
15194 (datehook_mod_LDFLAGS): Likewise.
15196 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15198 (datetime_mod_SOURCES): New macro.
15199 (datetime_mod_CFLAGS): Likewise.
15200 (datetime_mod_LDFLAGS): Likewise.
15201 (date_mod_SOURCES): Likewise.
15202 (date_mod_CFLAGS): Likewise.
15203 (date_mod_LDFLAGS): Likewise.
15204 (datehook_mod_SOURCES): Likewise.
15205 (datehook_mod_CFLAGS): Likewise.
15206 (datehook_mod_LDFLAGS): Likewise.
15208 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
15210 * commands/date.c: New file.
15212 * hook/datehook.c: Likewise.
15214 * include/grub/lib/datetime.h: Likewise.
15216 * include/grub/i386/cmos.h: Likewise.
15218 * lib/datetime.c: Likewise.
15220 * lib/i386/datetime.c: Likewise.
15222 * lib/efi/datetime.c: Likewise.
15224 2008-08-14 Robert Millan <rmh@aybabtu.com>
15226 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
15227 (grub_mkelfimage_SOURCES): New variable.
15228 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
15230 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
15231 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
15232 * conf/powerpc-ieee1275.rmk: Likewise.
15233 * conf/i386-ieee1275.rmk: Likewise.
15235 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
15236 * kern/i386/coreboot/init.c: Likewise.
15238 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
15239 with `<grub/cpu/kernel.h>'.
15240 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
15242 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
15243 * kern/i386/coreboot/startup.S: Likewise.
15245 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
15246 (GRUB_MOD_GAP): Remove.
15247 * include/grub/powerpc/kernel.h: New file.
15248 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
15249 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15250 * include/grub/i386/kernel.h: New file.
15251 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
15252 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
15253 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15255 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
15257 Use --directory when invoking grub_mkimage.
15259 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
15260 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
15261 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
15262 and GRUB_KERNEL_CPU_PREFIX.
15264 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
15266 * include/grub/err.h (grub_err_printf): New function prototype.
15267 * util/misc.c (grub_err_printf): New function.
15268 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
15270 * kern/err.c (grub_print_error): Use grub_err_printf.
15272 2008-08-13 Robert Millan <rmh@aybabtu.com>
15274 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
15276 2008-08-13 Robert Millan <rmh@aybabtu.com>
15278 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
15281 2008-08-12 Robert Millan <rmh@aybabtu.com>
15283 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
15284 of the relocation code from here ...
15285 (grub_multiboot): ... to here.
15286 (forward_relocator, backward_relocator): Move from here ...
15287 * kern/i386/loader.S (grub_multiboot_forward_relocator)
15288 (grub_multiboot_backward_relocator): ... to here.
15289 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
15290 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
15291 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
15292 (grub_multiboot_forward_relocator_end)
15293 (grub_multiboot_backward_relocator)
15294 (grub_multiboot_backward_relocator_end): New variables.
15296 2008-08-12 Bean <bean123ch@gmail.com>
15298 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
15300 2008-08-11 Robert Millan <rmh@aybabtu.com>
15302 * kern/i386/linuxbios/startup.S: Move from here ...
15303 * kern/i386/coreboot/startup.S: ... to here.
15305 * kern/i386/linuxbios/init.c: Move from here ...
15306 * kern/i386/coreboot/init.c: ... to here.
15308 * kern/i386/linuxbios/table.c: Move from here ...
15309 * kern/i386/coreboot/mmap.c: ... to here.
15311 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
15313 2008-08-11 Robert Millan <rmh@aybabtu.com>
15315 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
15316 errors. Leave it to the upper layer to handle them.
15318 2008-08-09 Christian Franke <franke@computer.org>
15320 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
15321 * conf/common.rmk: Install `grub-pe2elf' only if requested.
15322 Install `grub.d/10_windows' only on Cygwin.
15323 * configure.ac: Add subst of `target_os'.
15324 Check `target_os' also before setting TARGET_OBJ2ELF.
15325 Add `--enable-grub-pe2elf'.
15327 2008-08-08 Robert Millan <rmh@aybabtu.com>
15329 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15330 (grub_last_time): Change type to grub_uint64_t.
15331 (grub_disk_open): Migrate code from to using grub_get_time_ms().
15332 (grub_disk_close): Likewise.
15334 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15335 (run_menu): Migrate code from to using grub_get_time_ms().
15337 * util/misc.c (grub_get_time_ms): New function.
15339 2008-08-08 Marco Gerards <marco@gnu.org>
15341 * disk/ata.c (grub_ata_regget): Change return type to
15343 (grub_ata_regget2): Likewise.
15344 (grub_ata_wait_status): New function.
15345 (grub_ata_wait_busy): Removed function, updated all users to use
15346 `grub_ata_wait_status'.
15347 (grub_ata_wait_drq): Likewise.
15348 (grub_ata_cmd): New function.
15349 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
15351 (grub_ata_pio_write): Add error handling.
15352 (grub_atapi_identify): Likewise.
15353 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
15355 (grub_ata_identify): Use `grub_ata_cmd' and improve error
15356 handling. Actually use the detected registers. Reorder the
15357 detection logic such that it is easier to read.
15358 (grub_ata_pciinit): Do not assign the same ID to each controller.
15359 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
15361 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
15363 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
15365 2008-08-08 Marco Gerards <marco@gnu.org>
15369 2008-08-07 Bean <bean123ch@gmail.com>
15371 * include/grub/x86_64/pci.h: New file.
15373 2008-08-07 Christian Franke <franke@computer.org>
15375 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
15376 (TIMER2_GATE): Likewise.
15377 (grub_pit_wait): Add enable/disable of the timer2 gate
15378 bit of port 0x61. This fixes a possible infinite loop.
15380 2008-08-07 Bean <bean123ch@gmail.com>
15382 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
15383 kern/i386/tsc.c and kern/i386/pit.c.
15385 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
15388 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
15391 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
15393 2008-08-07 Bean <bean123ch@gmail.com>
15395 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
15397 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
15399 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
15400 multiple inclusion. Add #include <grub/types.h>.
15402 2008-08-06 Christian Franke <franke@computer.org>
15404 * conf/common.rmk: Build and install `10_windows'.
15405 * util/grub.d/10_windows.in: New script.
15407 2008-08-06 Pavel Roskin <proski@gnu.org>
15409 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
15411 2008-08-06 Robert Millan <rmh@aybabtu.com>
15413 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
15414 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
15416 2008-08-06 Bean <bean123ch@gmail.com>
15418 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
15419 (grub_pxefs_fs_int): Remove dummy definition.
15420 (grub_pxefs_open): Use data->block_size to store the current block
15422 (grub_pxefs_read): Use block size stored in data->block_size. As the
15423 value of grub_pxe_blksize can be changed after the file is opened.
15425 2008-08-06 Bean <bean123ch@gmail.com>
15427 * fs/i386/pc/pxe.c (curr_file): new variable.
15428 (grub_pxefs_open): Simply the handling of pxe file system. Don't
15429 require the dummy internal file system anymore.
15430 (grub_pxefs_read): Removed.
15431 (grub_pxefs_close): Likewise.
15432 (grub_pxefs_fs_int): Likewise.
15433 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
15434 connection when we switch file.
15435 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
15437 2008-08-06 Robert Millan <rmh@aybabtu.com>
15439 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
15441 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
15442 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
15444 * kern/i386/halt.c: New file.
15445 * kern/i386/reboot.c: Likewise.
15446 * include/grub/i386/reboot.h: Likewise.
15447 * include/grub/i386/halt.h: Likewise.
15449 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
15450 Include `<grub/cpu/halt.h>'.
15451 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
15452 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
15454 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
15455 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
15456 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
15457 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
15458 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
15459 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
15461 * include/grub/i386/at_keyboard.h: ... to here.
15463 2008-08-05 Robert Millan <rmh@aybabtu.com>
15465 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
15466 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
15467 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
15468 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15469 `kern/generic/millisleep.c'.
15471 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
15472 instead of grub_get_rtc().
15473 (grub_tsc_init): Initialize `tsc_boot_time'.
15475 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
15476 (grub_machine_init): Use grub_tsc_init() rather than
15477 installing an RTC-based handler via grub_install_get_time_ms().
15479 * kern/i386/pit.c: New file.
15480 * include/grub/i386/pit.h: Likewise.
15482 2008-08-05 Bean <bean123ch@gmail.com>
15484 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
15486 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
15487 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
15488 (pxe_mod_SOURCES): New macro.
15489 (pxe_mod_CFLAGS): Likewise.
15490 (pxe_mod_LDFLAGS): Likewise.
15491 (pxecmd_mod_SOURCES): Likewise.
15492 (pxecmd_mod_CFLAGS): Likewise.
15493 (pxecmd_mod_LDFLAGS): Likewise.
15495 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
15496 (grub_pxe_call): Likewise.
15498 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
15500 * commands/i386/pc/pxecmd.c: New file.
15502 * fs/i386/pc/pxe.c: Likewise.
15504 * include/grub/i386/pc/pxe.h: Likewise.
15506 2008-08-05 Bean <bean123ch@gmail.com>
15508 * util/console.c (grub_console_cur_color): New variable.
15509 (grub_console_standard_color): Likewise.
15510 (grub_console_normal_color): Likewise.
15511 (grub_console_highlight_color): Likewise.
15512 (color_map): Likewise.
15513 (use_color): Likewise.
15514 (NUM_COLORS): New macro.
15515 (grub_ncurses_setcolorstate): Handle color properly.
15516 (grub_ncurses_setcolor): Don't change color here, just remember the
15517 settings, color will be set in grub_ncurses_setcolorstate.
15518 (grub_ncurses_getcolor): New function.
15519 (grub_ncurses_init): Initialize color pairs.
15520 (grub_ncurses_term): New member grub_ncurses_getcolor.
15522 2008-08-05 Colin D Bennett <colin@gibibit.com>
15524 High resolution timer support. Implemented for x86 CPUs using TSC.
15525 Extracted generic grub_millisleep() so it's linked in only as needed.
15526 This requires a Pentium compatible CPU; if the RDTSC instruction is
15527 not supported, then it falls back on the generic grub_get_time_ms()
15528 implementation that uses the machine's RTC.
15530 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
15531 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15532 `kern/generic/millisleep.c'.
15534 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
15535 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
15537 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
15538 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
15540 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
15542 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15543 `kern/generic/millisleep.c'.
15545 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
15547 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
15549 * kern/generic/rtc_get_time_ms.c: New file.
15551 * kern/generic/millisleep.c: New file.
15553 * kern/misc.c: Don't include
15554 <kern/time.h> anymore.
15555 (grub_millisleep_generic): Removed.
15557 * commands/sleep.c (grub_interruptible_millisleep): Uses
15558 grub_get_time_ms() instead of grub_get_rtc().
15560 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
15562 (grub_cpu_is_cpuid_supported): New inline function.
15563 (grub_cpu_is_tsc_supported): New inline function.
15564 (grub_tsc_init): New function prototype.
15565 (grub_tsc_get_time_ms): New function prototype.
15567 * kern/i386/tsc.c (grub_get_time_ms): New file.
15569 * include/grub/time.h: Include <grub/types.h.
15570 (grub_millisleep_generic): Removed.
15571 (grub_get_time_ms): New prototype.
15572 (grub_install_get_time_ms): New prototype.
15573 (grub_rtc_get_time_ms): New prototype.
15575 * kern/time.c (grub_get_time_ms): New function.
15576 (grub_install_get_time_ms): New function.
15578 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
15579 <grub/time.h> anymore.
15580 (grub_millisleep): Removed.
15581 (grub_machine_init): Call grub_tsc_init.
15583 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
15584 get_time_ms() implementation.
15586 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
15587 (ieee1275_get_time_ms): New function.
15588 (grub_machine_init): Install get_time_ms() implementation.
15590 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
15591 (grub_machine_init): Call grub_tsc_init().
15592 (grub_millisleep): Removed.
15594 * kern/ieee1275/init.c (grub_millisleep): Removed.
15595 (grub_machine_init): Install ieee1275_get_time_ms()
15597 (ieee1275_get_time_ms): New function.
15598 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
15601 2008-08-05 Marco Gerards <marco@gnu.org>
15603 * disk/ata.c: Include <grub/pci.h>.
15604 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
15605 (grub_ata_initialize): Rewritten.
15606 (grub_ata_device_initialize): New function.
15608 2008-08-04 Pavel Roskin <proski@gnu.org>
15610 * kern/main.c: Include grub/mm.h.
15612 2008-08-04 Robert Millan <rmh@aybabtu.com>
15614 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
15615 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
15616 corruption problem).
15618 2008-08-04 Robert Millan <rmh@aybabtu.com>
15620 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
15621 warnings introduced in my last commit.
15623 2008-08-03 Robert Millan <rmh@aybabtu.com>
15625 Make PCI available on all i386 architectures.
15627 * include/grub/i386/pc/pci.h: Move from here ...
15628 * include/grub/i386/pci.h: ... to here.
15630 * include/grub/i386/pc/pci.h: Remove.
15631 * include/grub/i386/efi/pci.h: Remove.
15632 * include/grub/x86_64/efi/pci.h: Remove.
15634 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
15635 `<grub/cpu/pci.h>'.
15637 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
15638 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
15639 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
15641 * conf/i386-ieee1275.rmk: Likewise.
15643 2008-08-03 Robert Millan <rmh@aybabtu.com>
15645 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
15646 (grub_console_setcursor): Make it possible to set cursor off.
15648 2008-08-03 Robert Millan <rmh@aybabtu.com>
15650 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
15651 of modules instead of assuming which platform provides what.
15652 * util/update-grub.in: Likewise.
15654 2008-08-03 Robert Millan <rmh@aybabtu.com>
15656 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
15657 instead of `grub_install_dos_part' to determine whether a drive needs
15658 to be prepended to prefix (`grub_install_dos_part' is not reliable,
15659 because it can be overridden when loading GRUB via Multiboot).
15661 2008-08-02 Robert Millan <rmh@aybabtu.com>
15663 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
15665 2008-08-02 Robert Millan <rmh@aybabtu.com>
15667 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
15668 of informational grub_dprintf() calls.
15670 2008-08-02 Robert Millan <rmh@aybabtu.com>
15672 * disk/memdisk.c (memdisk_size): Don't initialize.
15673 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
15675 * include/grub/i386/pc/kernel.h
15676 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
15677 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
15678 (grub_memdisk_image_size, grub_arch_memdisk_addr)
15679 (grub_arch_memdisk_size): Remove.
15681 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
15682 field (was only used to transfer a constant). Add `type' field to
15683 support multiple module types.
15684 (grub_module_iterate): New function.
15686 * kern/device.c (grub_device_open): Do not hide error messages
15687 when grub_disk_open() fails. Use grub_print_error() instead.
15689 * kern/i386/pc/init.c (grub_arch_modules_addr)
15690 (grub_arch_memdisk_size): Remove functions.
15691 (grub_arch_modules_addr): Return the module address in high memory
15692 (now that it isn't copied anymore).
15694 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
15695 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
15696 decompression routine (grub_total_module_size already includes that
15697 now). Don't copy modules back to low memory.
15699 * kern/main.c: Include `<grub/mm.h>'.
15700 (grub_load_modules): Split out (and use) ...
15701 (grub_module_iterate): ... this function, which iterates through
15702 module objects and runs a hook.
15703 Comment out grub_mm_init_region() call, as it would cause non-ELF
15704 modules to be overwritten.
15706 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
15707 the memdisk image in its own region, make it part of the module list.
15708 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
15709 (main): Parse --memdisk|-m option, and pass user-provided path as
15710 parameter to generate_image().
15711 (add_segments): Pass `memdisk_path' down to load_modules().
15712 (load_modules): Embed memdisk image in module section when requested.
15713 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
15714 `header.type' instead of `header.offset'.
15716 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
15717 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
15718 (memdisk_mod_LDFLAGS): New variables.
15719 * conf/i386-coreboot.rmk: Likewise.
15720 * conf/i386-ieee1275.rmk: Likewise.
15722 2008-08-02 Robert Millan <rmh@aybabtu.com>
15724 * loader/i386/pc/multiboot.c (playground, forward_relocator)
15725 (backward_relocator): New variables. Used to allocate and relocate
15726 the payload, respectively.
15727 (grub_multiboot_load_elf32): Load into heap instead of requested
15728 address, install the appropriate relocator code in each bound of
15729 the payload, and set the entry point such that
15730 grub_multiboot_real_boot() will jump to one of them.
15732 * kern/i386/loader.S (grub_multiboot_payload_size)
15733 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
15734 (grub_multiboot_payload_entry_offset): New variables.
15735 (grub_multiboot_real_boot): Set cpu context to what the relocator
15736 expects, and jump to the relocator instead of the payload.
15738 * include/grub/i386/loader.h (grub_multiboot_payload_size)
15739 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
15740 (grub_multiboot_payload_entry_offset): Export.
15742 2008-08-01 Bean <bean123ch@gmail.com>
15744 * normal/menu_entry.c (editor_getline): Don't return the original
15745 string as result, as it will be released by lexer once it has done
15748 2008-08-01 Robert Millan <rmh@aybabtu.com>
15750 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
15751 within menuentries, not before them.
15752 util/grub.d/10_hurd.in: Likewise.
15754 2008-08-01 Bean <bean123ch@gmail.com>
15756 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
15757 (bufio_mod_SOURCES): New macro.
15758 (bufio_mod_CFLAGS): Likewise.
15759 (bufio_mod_LDFLAGS): Likewise.
15761 * include/grub/bufio.h: New file.
15763 * io/bufio.c: Likewise.
15765 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
15766 (grub_video_reader_png): Use grub_buffile_open to open file.
15768 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
15769 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
15771 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
15772 (grub_video_reader_tga): Use grub_buffile_open to open file.
15774 * font/manager.c: Include <grub/bufio.h>.
15775 (add_font): Use grub_buffile_open to open file.
15777 2008-07-31 Robert Millan <rmh@aybabtu.com>
15779 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
15780 ELF segments, use a macro for arbitrarily accessing any of them instead
15781 of preparing a pointer that allows access to one at a time.
15782 (grub_multiboot_load_elf64): Likewise.
15784 2008-07-31 Bean <bean123ch@gmail.com>
15786 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
15787 GRUB_KERNEL_MACHINE_DATA_END.
15789 2008-07-30 Robert Millan <rmh@aybabtu.com>
15791 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
15792 Increase from 0x50 to 0x60.
15793 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
15794 use UUIDs to identify the root drive for them. If that's not
15796 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
15797 check, for cross-disk installs.
15799 2008-07-30 Robert Millan <rmh@aybabtu.com>
15801 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
15802 is non-empty, use it to set the `prefix' environment variable instead
15803 of the usual approach.
15804 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
15805 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
15806 environment variable instead of dummy make_install_device().
15808 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
15809 (start): Insert a data section, with `grub_prefix' variable.
15810 * kern/i386/linuxbios/startup.S: Likewise.
15812 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
15813 New variable reference.
15814 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
15815 New macro. Defines offset of `grub_prefix' within startup.S (relative
15817 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
15818 section within startup.S (relative to `start').
15819 * include/grub/i386/coreboot/kernel.h: Likewise.
15821 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
15822 Overwrite grub_prefix with its contents, at the beginning of the
15824 (main): Understand -p|--prefix.
15826 2008-07-30 Robert Millan <rmh@aybabtu.com>
15828 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
15830 2008-07-30 Robert Millan <rmh@aybabtu.com>
15832 * term/i386/pc/vga_text.c (grub_console_cls): Use
15833 grub_console_gotoxy() to go back to beginning of the screen.
15834 Found by Patrick Georgi <patrick.georgi@coresystems.de>
15836 2008-07-29 Christian Franke <franke@computer.org>
15838 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
15839 Add conversion of emulated mount points on Cygwin.
15841 2008-07-29 Christian Franke <franke@computer.org>
15843 * util/update-grub.in: Add a check for admin
15845 Remove old `grub.cfg.new' before creation.
15846 Add `-f' to `mv' to handle the different filesystem
15847 semantics of Windows.
15849 2008-07-29 Bean <bean123ch@gmail.com>
15851 * normal/main.c (get_line): Fix buffer overflow bug.
15853 2008-07-28 Robert Millan <rmh@aybabtu.com>
15855 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
15856 (struct grub_apple_header): New struct. Describes the layout of
15857 the partmap header.
15858 (apple_partition_map_iterate): Check the header magic as well as the
15859 partition magic (which was already being checked).
15861 2008-07-28 Pavel Roskin <proski@gnu.org>
15863 * genmk.rb: Add a warning to the beginning of the output that
15864 it's a generated file and should not be edited.
15866 2008-07-28 Robert Millan <rmh@aybabtu.com>
15868 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
15869 with the same number are found, just use issue a warning with
15870 grub_dprintf(), as this error has been reported to be non-fatal.
15872 2008-07-27 Robert Millan <rmh@aybabtu.com>
15874 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
15877 2008-07-27 Bean <bean123ch@gmail.com>
15879 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
15880 (grub_fat_find_dir): Ignore case when comparing filename.
15882 2008-07-27 Bean <bean123ch@gmail.com>
15884 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
15885 smallino, as it's more descriptive, and i8count can be confused with
15886 the other field count.
15887 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
15890 2008-07-27 Bean <bean123ch@gmail.com>
15892 * commands/crc.c: New file.
15894 * lib/crc.c: Likewise.
15896 * include/grub/lib/crc.h: Likewise.
15898 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
15900 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
15901 (hexdump): Move this function to ...
15903 * lib/hexdump.c: ... here.
15905 * include/grub/hexdump.h: Renamed to ...
15907 * include/grub/lib/hexdump.h: ... this.
15909 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
15911 * util/grub-editenv.c: Likewise.
15913 * include/envblk.h: Renamed to ...
15915 * include/lib/envblk.h: ... this.
15917 * util/envblk.c: Renamed to ...
15919 * lib/envblk.c: ... this.
15921 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
15923 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
15924 (pkglib_MODULES): Add crc.mod.
15925 (hexdump_mod_SOURCES): Add lib/hexdump.c.
15926 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
15927 (crc_mod_SOURCES): New macro.
15928 (crc_mod_CFLAGS): Likewise.
15929 (crc_mod_LDFLAGS): Likewise.
15931 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
15933 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15935 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15937 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15939 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15941 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
15943 * commands/help.c: Include <grub/term.h>.
15944 (TERM_WIDTH): Removed. Updated all users.
15946 2008-07-27 Pavel Roskin <proski@gnu.org>
15948 * util/getroot.c (find_root_device): Rephrase a comment to avoid
15949 spurious warnings about a comment within a comment.
15951 2008-07-25 Robert Millan <rmh@aybabtu.com>
15953 * util/getroot.c (find_root_device): Skip devices that match
15954 /dev/dm-[0-9]. This lets the real device be found for any type of
15955 abstraction (LVM, EVMS, RAID..).
15956 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
15957 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
15958 device is found first, find_root_device() will now skip it.
15960 2008-07-24 Pavel Roskin <proski@gnu.org>
15962 * include/grub/types.h: Use __builtin_bswap32() and
15963 __builtin_bswap64() with gcc 4.3 and newer.
15965 2008-07-24 Christian Franke <franke@computer.org>
15967 * util/i386/pc/grub-install.in: If `--debug' is specified,
15968 pass `--verbose' to grub-setup.
15969 Abort script if make_system_path_relative_to_its_root() fails.
15971 2008-07-24 Bean <bean123ch@gmail.com>
15973 * configure.ac: Fixed a bug caused by the previous cygwin patch,
15974 variable `target_platform' should be `platform'.
15976 2008-07-24 Bean <bean123ch@gmail.com>
15978 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
15979 (grub_png_init_fixed_block): New function.
15980 (grub_png_decode_image_data): Handle fixed huffman code compression.
15982 2008-07-24 Bean <bean123ch@gmail.com>
15984 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
15985 (grub_pe2elf_SOURCES): New macro.
15986 (CLEANFILES): Add grub-pe2elf.
15988 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
15989 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
15990 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
15991 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
15992 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
15993 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
15994 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
15995 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
15996 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
15997 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
15998 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
15999 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
16000 (GRUB_PE32_DT_FUNCTION): Likewise.
16001 (GRUB_PE32_REL_I386_DIR32): Likewise.
16002 (GRUB_PE32_REL_I386_REL32): Likewise.
16003 (grub_pe32_symbol): New structure.
16004 (grub_pe32_reloc): Likewise.
16006 * util/grub-pe2elf.c: New file.
16008 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
16009 start symbol in non pc platform.
16011 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
16013 The following patches are from Christian Franke.
16015 * include/grub/dl.h: Remove .previous, gas supports this only
16018 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
16019 Remove .type, gas supports this only for ELF format.
16021 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
16022 nullbytes in symbol table. This fixes an infinite loop if table is
16025 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
16026 TARGET_IMG_LDFLAGS and EXEEXT.
16028 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
16029 TARGET_IMG_LDFLAGS_AC.
16030 (grub_CHECK_STACK_ARG_PROBE): New function.
16032 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
16034 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
16036 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
16037 to set TARGET_IMG_LD* accordingly.
16038 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
16039 Add call to grub_CHECK_STACK_ARG_PROBE.
16040 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
16042 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
16044 * genmk.rb: Add EXEEXT to CLEANFILES.
16046 2008-07-23 Robert Millan <rmh@aybabtu.com>
16048 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
16049 define the codes for arrows and lines used for the menu).
16050 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
16053 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
16054 fonts, because the latter are too slow.
16056 2008-07-21 Bean <bean123ch@gmail.com>
16058 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
16059 a20. Run keyboard test last, as it will cause macbook to halt.
16061 2008-07-18 Pavel Roskin <proski@gnu.org>
16063 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
16064 load foreign architecture modules correctly anyway. Keep
16065 support for loading host architecture modules, whether we
16066 compile them or not.
16068 2008-07-17 Pavel Roskin <proski@gnu.org>
16070 * configure.ac: Use -m32 or -m64 regardless of whether we had to
16071 change target_cpu. The compiler default can mismatch target_cpu
16074 * disk/efi/efidisk.c: Fix format warnings on x86_64.
16075 * kern/efi/efi.c: Likewise.
16077 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
16078 target compiler is functional.
16079 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
16082 * configure.ac: Default to efi platform for x86_64-apple. Allow
16083 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
16084 adjustments from the rest, only do them if target is not
16085 explicitly given. Merge other adjustments with the final sanity
16086 check. Remove an extraneous check for supported CPU. Be
16087 specific which CPU and which platform is not supported.
16089 * configure.ac: Default to pc platform for x86_64.
16091 2008-07-17 Robert Millan <rmh@aybabtu.com>
16093 Partial LinuxBIOS -> Coreboot rename.
16095 * conf/i386-linuxbios.rmk: Renamed to ...
16096 * conf/i386-coreboot.rmk: ... this.
16097 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
16098 * configure.ac: Accept "coreboot" as input platform (but maintain
16099 compatibility with "linuxbios").
16100 * include/grub/i386/linuxbios: Renamed to ...
16101 * include/grub/i386/coreboot: ... this.
16103 2008-07-17 Bean <bean123ch@gmail.com>
16105 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
16106 (appleldr_mod_SOURCE): New variable.
16107 (appleldr_mod_CFLAGS): Likewise.
16108 (appleldr_mod_LDFLAGS): Likewise.
16109 (pci_mod_SOURCES): Likewise.
16110 (pci_mod_CFLAGS): Likewise.
16111 (pci_mod_LDFLAGS): Likewise.
16112 (lspci_mod_SOURCES): Likewise.
16113 (lspci_mod_CFLAGS): Likewise.
16114 (lspci_mod_LDFLAGS): Likewise.
16116 * conf/x86_64-efi.rmk: New file.
16118 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
16120 (grub_efidisk_write): Likewise.
16122 * include/efi/api.h (efi_call_0): New macro.
16123 (efi_call_1): Likewise.
16124 (efi_call_2): Likewise.
16125 (efi_call_3): Likewise.
16126 (efi_call_4): Likewise.
16127 (efi_call_5): Likewise.
16128 (efi_call_6): Likewise.
16130 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
16131 grub_rescue_cmd_chainloader.
16133 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
16134 (grub_pe32_optional_header): Change some fields based on i386 or
16136 (GRUB_PE32_PE32_MAGIC): Likewise.
16138 * include/grub/efi/uga_draw.h: New file.
16140 * include/grub/elf.h (STN_ABS): New constant.
16141 (R_X86_64_NONE): Relocation constant for x86_64.
16142 (R_X86_64_64): Likewise.
16143 (R_X86_64_PC32): Likewise.
16144 (R_X86_64_GOT32): Likewise.
16145 (R_X86_64_PLT32): Likewise.
16146 (R_X86_64_COPY): Likewise.
16147 (R_X86_64_GLOB_DAT): Likewise.
16148 (R_X86_64_JUMP_SLOT): Likewise.
16149 (R_X86_64_RELATIVE): Likewise.
16150 (R_X86_64_GOTPCREL): Likewise.
16151 (R_X86_64_32): Likewise.
16152 (R_X86_64_32S): Likewise.
16153 (R_X86_64_16): Likewise.
16154 (R_X86_64_PC16): Likewise.
16155 (R_X86_64_8): Likewise.
16156 (R_X86_64_PC8): Likewise.
16158 * include/grub/i386/efi/pci.h: New file.
16160 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
16161 Change it value based on platform.
16162 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
16163 (GRUB_E820_RAM): Likewise.
16164 (GRUB_E820_RESERVED): Likewise.
16165 (GRUB_E820_ACPI): Likewise.
16166 (GRUB_E820_NVS): Likewise.
16167 (GRUB_E820_EXEC_CODE): Likewise.
16168 (GRUB_E820_MAX_ENTRY): Likewise.
16169 (grub_e820_mmap): New structure.
16170 (linux_kernel_header): Change the efi field according to different
16171 kernel version, also field from linux_kernel_header.
16173 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
16175 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
16176 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
16177 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
16178 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
16179 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
16180 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
16181 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
16182 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
16183 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
16184 (GRUB_PCI_ADDR_IO_MASK): Likewise.
16186 * include/grub/x86_64/efi/kernel.h: New file.
16188 * include/grub/x86_64/efi/loader.h: Likewise.
16190 * include/grub/x86_64/efi/machine.h: Likewise.
16192 * include/grub/x86_64/efi/pci.h: Likewise.
16194 * include/grub/x86_64/efi/time.h: Likewise.
16196 * include/grub/x86_64/linux.h: Likewise.
16198 * include/grub/x86_64/setjmp.h: Likewise.
16200 * include/grub/x86_64/time.h: Likewise.
16202 * include/grub/x86_64/types.h: Likewise.
16204 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
16205 GRUB_TARGET_SIZEOF_VOID_P.
16207 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
16208 (grub_efi_locate_handle): Likewise.
16209 (grub_efi_open_protocol): Likewise.
16210 (grub_efi_set_text_mode): Likewise.
16211 (grub_efi_stall): Likewise.
16212 (grub_exit): Likewise.
16213 (grub_reboot): Likewise.
16214 (grub_halt): Likewise.
16215 (grub_efi_exit_boot_services): Likewise.
16216 (grub_get_rtc): Likewise.
16218 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
16219 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
16220 (grub_efi_allocate_pages): Wrap efi calls.
16221 (grub_efi_free_pages): Wrap efi calls.
16222 (grub_efi_get_memory_map): Wrap efi calls.
16224 * kern/x86_64/dl.c: New file.
16226 * kern/x86_64/efi/callwrap.S: Likewise.
16228 * kern/x86_64/efi/startup.S: Likewise.
16230 * loader/efi/appleloader.c: Likewise.
16232 * loader/efi/chainloader.c (cmdline): New variable.
16233 (grub_chainloader_unload): Wrap efi calls.
16234 (grub_chainloader_boot): Likewise.
16235 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
16238 * loader/efi/chainloader_normal.c (chainloader_command):
16239 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
16242 * loader/i386/efi/linux.c (allocate_pages): Change allocation
16244 (grub_e820_add_region): New function.
16245 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
16247 (grub_find_video_card): New function.
16248 (grub_linux_setup_video): New function.
16249 (grub_rescue_cmd_linux): Probe for video information.
16251 * normal/x86_64/setjmp.S: New file.
16253 * term/efi/console.c (map_char): New function.
16254 (grub_console_putchar): Map unicode char.
16255 (grub_console_checkkey): Wrap efi calls.
16256 (grub_console_getkey): Likewise.
16257 (grub_console_getwh): Likewise.
16258 (grub_console_gotoxy): Likewise.
16259 (grub_console_cls): Likewise.
16260 (grub_console_setcolorstate): Likewise.
16261 (grub_console_setcursor): Likewise.
16263 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
16265 2008-07-16 Pavel Roskin <proski@gnu.org>
16267 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
16270 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
16271 pointer, not an integer. This fixes a warning and prevents
16272 precision loss on 64-bit systems.
16273 (relocate_addresses): Remove unneeded cast.
16275 2008-07-15 Pavel Roskin <proski@gnu.org>
16277 * kern/i386/ieee1275/init.c: Include grub/cache.h.
16279 * term/ieee1275/ofconsole.c: Disable code unused on i386.
16281 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
16282 Fix comparison between signed and unsigned.
16284 * include/grub/i386/ieee1275/console.h: Declare
16285 grub_console_init() and grub_console_fini().
16287 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
16288 It's empty and unused.
16290 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
16291 beginning to avoid warnings with some compilers.
16293 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
16294 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
16296 2008-07-14 Pavel Roskin <proski@gnu.org>
16298 * kern/env.c (grub_register_variable_hook): Don't copy empty
16299 string, it leaks memory. Pass "" to grub_env_set(), it should
16300 handle constant strings.
16302 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
16303 * commands/cmp.c (grub_cmd_cmp): Likewise.
16304 * kern/dl.c (grub_dl_flush_cache): Likewise.
16305 (grub_dl_load_core): Likewise.
16306 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
16307 (grub_elf64_load_phdrs): Likewise.
16309 2008-07-13 Pavel Roskin <proski@gnu.org>
16311 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
16312 between signed and unsigned.
16313 (LzmaEnc_Finish): Fix warning about an unused parameter.
16315 2008-07-13 Bean <bean123ch@gmail.com>
16317 * Makefile.in (enable_lzo): New rule.
16319 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
16321 * configure.ac (ENABLE_LZO): New option --enable-lzo.
16323 * boot/i386/pc/lnxboot.S: #include <config.h>.
16325 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
16326 its value according to the compression algorithm used, lzo or lzma.
16328 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
16329 compression algorithm according to configure macro.
16331 * kern/i386/pc/startup.S (codestart): Likewise.
16333 * kern/i386/pc/lzma_decode.S: New file.
16335 * include/grub/lib/LzFind.h: Likewise.
16337 * include/grub/lib/LzHash.h: Likewise.
16339 * include/grub/lib/LzmaDec.h: Likewise.
16341 * include/grub/lib/LzmaEnc.h: Likewise.
16343 * include/grub/lib/LzmaTypes.h: Likewise.
16345 * lib/LzFind.c: Likewise.
16347 * lib/LzmaDec.c: Likewise.
16349 * lib/LzmaEnc.c: Likewise.
16351 2008-07-13 Bean <bean123ch@gmail.com>
16353 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
16354 (grub_ext4_extent_header): New structure.
16355 (grub_ext4_extent): Likewise.
16356 (grub_ext4_extent_idx): Likewise.
16357 (grub_ext4_find_leaf): New function.
16358 (grub_ext2_read_block): Handle extents.
16360 2008-07-12 Robert Millan <rmh@aybabtu.com>
16362 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
16364 2008-07-11 Robert Millan <rmh@aybabtu.com>
16366 * util/grub.d/40_custom.in: New file. Example on how to add custom
16367 entries to /etc/grub.d.
16368 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
16369 40_custom (implicitly, by merging all the grub.d rules).
16371 2008-07-11 Pavel Roskin <proski@gnu.org>
16373 * commands/read.c (grub_getline): Fix invalid memory access.
16374 Don't add newline to the variable value.
16376 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
16377 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
16378 (serial_hw_get_port): Check validity of the port number.
16379 (grub_cmd_serial): Check return value of serial_hw_get_port().
16381 2008-07-07 Pavel Roskin <proski@gnu.org>
16383 * boot/i386/pc/diskboot.S (notification_string): Replace
16384 "Loading kernel" with just "loading". This is shorter, less
16385 confusing and saves a few bytes for possible future changes.
16387 2008-07-05 Pavel Roskin <proski@gnu.org>
16389 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
16390 size for ATAPI devices, they are undefined. Output sector
16391 number in decimal form.
16393 * disk/ata.c: Use named constants for status bits.
16395 2008-07-04 Pavel Roskin <proski@gnu.org>
16397 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
16398 grub_addr_t before casting it to the void pointer to fix a
16399 warning. Non-addressable regions are discarded earlier.
16400 (grub_arch_modules_addr): Cast _end to grub_addr_t.
16401 * kern/i386/linuxbios/table.c: Include grub/misc.h.
16402 (check_signature): Don't shadow table_header.
16403 (grub_linuxbios_table_iterate): Cast numeric constants to
16404 grub_linuxbios_table_header_t.
16405 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
16408 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
16411 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
16412 pointer, which can cause warnings. Support 64-bit addresses.
16414 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
16415 of sizeof(long). This fixes PowerPC image generation on x86_64.
16417 2008-07-04 Robert Millan <rmh@aybabtu.com>
16419 This fixes a performance issue when pc & gpt partmap iterators
16420 didn't abort iteration even after our hook found what it was
16421 looking for (often causing expensive probes of non-existent drives).
16423 Some callers relied on previous buggy behaviour, since they would
16424 raise an error when their own hooks caused early abortion of its
16427 * kern/device.c (grub_device_open): Improve error message.
16428 * disk/lvm.c (grub_lvm_open): Likewise.
16429 * disk/raid.c (grub_raid_open): Likewise.
16431 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
16432 when hook requests it, independently of grub_errno.
16433 (pc_partition_map_probe): Do not fail when find_func() caused
16434 early abortion of pc_partition_map_iterate().
16436 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
16437 when hook requests it, independently of grub_errno.
16438 (gpt_partition_map_probe): Do not fail when find_func() caused
16439 early abortion of gpt_partition_map_iterate().
16441 * kern/partition.c (grub_partition_iterate): Abort parent iteration
16442 when hook requests it, independently of grub_errno. Do not fail when
16443 part_map_iterate_hook() caused early abortion of p->iterate().
16445 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
16446 when grub_partition_iterate() returned with non-zero.
16448 2008-07-03 Pavel Roskin <proski@gnu.org>
16450 * disk/ata.c (grub_ata_pio_write): Check status before writing,
16451 like we do in grub_ata_pio_read().
16452 (grub_ata_readwrite): Always write individual sectors. Fix the
16453 sector count for the remainder.
16454 (grub_ata_write): Enable writing to ATA devices. Correctly
16455 report error for ATAPI devices.
16457 2008-07-02 Pavel Roskin <proski@gnu.org>
16459 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
16462 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
16463 for every read sector, we already increment it for the whole
16464 batch. This fixes reading more than 256 sectors at once.
16466 * util/grub-editenv.c (cmd_info): Cast argument to long
16467 explicitly. ptrdiff_t reduces to int on i386.
16469 * util/grub-editenv.c (main): Be specific which parameter is
16472 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
16473 (memdisk): Make memdisk_orig_addr a pointer.
16475 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
16476 for file offsets, use grub_off_t instead. Fix printf format
16479 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
16480 there. Real unexpected warnings should not drown in the noise
16481 about known problems.
16483 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
16484 grub_disk_addr_t for memory addresses.
16486 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
16487 explicitly to fix a warning.
16489 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
16491 * Makefile.in (MODULE_LDFLAGS): New variable.
16492 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
16493 the linker accepts --build-id=none.
16494 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
16496 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
16498 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
16499 those in Linux XFS code. Provide a way to access 64-bit parent
16501 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
16502 the end of struct grub_xfs_dir_header.
16504 2008-07-02 Bean <bean123ch@gmail.com>
16506 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
16507 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
16508 and GRUB_IEEE1275_FLAG_NO_ANSI.
16510 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
16511 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
16512 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
16514 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
16515 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
16517 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
16518 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
16520 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
16521 esc sequence on non ANSI terminal.
16522 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
16524 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
16527 2008-07-02 Bean <bean123ch@gmail.com>
16529 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
16530 (grub_editenv_SOURCES): New variable.
16531 (pkglib_MODULES): Add loadenv.mod.
16532 (loadenv_mod_SOURCES): New variable.
16533 (loadenv_mod_CFLAGS): Likewise.
16534 (loadenv_mod_LDFLAGS): Likewise.
16536 * include/grub/envblk.h: New file.
16538 * util/envblk.c: New file.
16540 * util/grub-editenv.c: New file.
16542 * commands/loadenv.c: New file.
16544 2008-07-01 Pavel Roskin <proski@gnu.org>
16546 * include/multiboot2.h (struct multiboot_tag_module): Use char,
16547 not unsigned char. This fixes warnings and is consistent with
16550 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
16552 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
16554 * term/tparm.c (analyze): Always set *popcount.
16556 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
16557 cast to fix a warning.
16559 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
16560 cast to suppress a warning.
16562 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
16563 grub_fshelp_read_file() expects.
16565 * fs/fat.c: Fix UUID calculation on big-endian systems. We
16566 write uuid as a 32-bit value in CPU byte order, so declare and
16569 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
16570 long if the format specifier expects it.
16571 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
16572 * partmap/pc.c (pc_partition_map_iterate): Likewise.
16573 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
16574 long to fix a warning.
16575 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
16576 grub_dprintf() arguments to fix warnings.
16578 2008-06-30 Pavel Roskin <proski@gnu.org>
16580 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
16581 install_bsd_part immediately before core.img is embedded or
16582 modified on disk. This fixes core.img verification if core.img
16583 cannot be embedded.
16585 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
16586 core_path to calculate the blocklist.
16587 Patch from Javier Martín <lordhabbit@gmail.com>
16589 2008-06-29 Robert Millan <rmh@aybabtu.com>
16591 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
16592 block to disk block.
16593 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
16594 Patch from Niels Böhm <bitbucket@arcor.de>
16596 2008-06-29 Robert Millan <rmh@aybabtu.com>
16598 * util/update-grub_lib.in (font_path): Search for fonts in
16599 /boot/grub first, which is more likely to be readable (we aren't
16600 deciding where fonts live, just looking for them).
16602 2008-06-26 Pavel Roskin <proski@gnu.org>
16604 * util/biosdisk.c (read_device_map): Don't leave dead map
16605 entries for devices failing stat() check.
16607 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
16608 core_path_dev for the core.img path on the target device.
16610 2008-06-26 Robert Millan <rmh@aybabtu.com>
16612 * disk/fs_uuid.c: New file.
16613 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
16614 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
16615 (fs_uuid_mod_LDFLAGS): New variables.
16616 * include/grub/disk.h (grub_disk_dev_id): Add
16617 `GRUB_DISK_DEVICE_UUID_ID'.
16618 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
16619 implement iterate().
16621 2008-06-26 Robert Millan <rmh@aybabtu.com>
16623 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
16624 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
16625 Linux image includes no initrd.
16627 2008-06-21 Javier Martín <lordhabbit@gmail.com>
16629 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
16630 call to resolve the core image location that effectively appended the
16633 2008-06-21 Robert Millan <rmh@aybabtu.com>
16635 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
16638 * util/grub.d/10_hurd.in: ... to here ...
16639 * util/grub.d/10_linux.in: ... and here.
16641 2008-06-19 Robert Millan <rmh@aybabtu.com>
16643 * kern/main.c (grub_main): Export `prefix' variable immediately
16644 after it has been set by grub_machine_set_prefix().
16646 2008-06-19 Robert Millan <rmh@aybabtu.com>
16648 * commands/search.c (search_label, search_fs_uuid, search_file): Print
16649 search result when not saving to variable, not the other way around.
16650 When saving to variable, abort iteration as soon as a match is found.
16652 2008-06-19 Robert Millan <rmh@aybabtu.com>
16654 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
16655 check for partition that provides /boot/grub. Its logic is flawed,
16656 as it prevents prepare_grub_to_access_device() from being called
16659 2008-06-19 Robert Millan <rmh@aybabtu.com>
16661 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
16662 "insmod" command directly when abstraction modules are needed,
16663 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
16664 since it had already been processed).
16666 2008-06-19 Pavel Roskin <proski@gnu.org>
16668 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
16669 changed. This is needed in case GRUB_LIBDIR changes.
16670 * conf/i386-ieee1275.rmk: Likewise.
16671 * conf/i386-linuxbios.rmk: Likewise.
16672 * conf/i386-pc.rmk: Likewise.
16673 * conf/powerpc-ieee1275.rmk: Likewise.
16675 2008-06-18 Pavel Roskin <proski@gnu.org>
16677 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
16678 kernel_elf_symlist.c to symlist.c for consistency with other
16679 architectures. Update all users.
16680 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16682 2008-06-18 Robert Millan <rmh@aybabtu.com>
16684 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
16687 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
16688 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
16689 a RAID device, run setup() for all members independently on whether
16690 LVM abstraction is being used.
16691 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
16692 If grub-mkimage has set `*install_dos_part == -2', don't override this
16694 Perform *install_dos_part adjustments independently on whether
16695 we're embedding or not.
16696 Clarify error message when image is too big for embedding.
16697 Remove duplicate *install_dos_part stanza.
16699 2008-06-17 Robert Millan <rmh@aybabtu.com>
16701 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
16702 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
16704 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
16705 values in grub_ofconsole_normal_color and
16706 grub_ofconsole_highlight_color (they're not directly related to
16707 background and foreground).
16708 (grub_ofconsole_setcolorstate): Extract background and foreground
16709 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
16711 2008-06-17 Robert Millan <rmh@aybabtu.com>
16713 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
16714 /boot/grub for the check in last commit, not /boot (they could be
16715 different partitions).
16717 2008-06-16 Robert Millan <rmh@aybabtu.com>
16719 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
16720 asked to setup access for the same partition that provides /boot,
16721 don't bother using UUIDs since our root already has the value we
16724 2008-06-16 Robert Millan <rmh@aybabtu.com>
16726 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
16728 Patch from Sven Mueller <sven@debian.org>.
16730 2008-06-16 Robert Millan <rmh@aybabtu.com>
16732 * util/update-grub.in: Check for $EUID instead of $UID.
16733 Reported by Vincent Zweije.
16735 2008-06-16 Bean <bean123ch@gmail.com>
16737 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
16738 (grub_ext2_read_block): Likewise.
16739 (grub_ext2_read_inode): Likewise.
16740 (grub_ext2_mount): Likewise.
16741 (grub_ext2_close): Likewise.
16742 (grub_ext3_get_journal): Removed.
16744 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
16745 (grub_reiserfs_read_symlink): Likewise.
16746 (grub_reiserfs_mount): Likewise.
16747 (grub_reiserfs_open): Likewise.
16748 (grub_reiserfs_read): Likewise.
16749 (grub_reiserfs_close): Likewise.
16750 (grub_reiserfs_get_journal): Removed.
16752 * fs/fshelp.c (grub_fshelp_read): Removed.
16753 (grub_fshelp_map_block): Likewise.
16755 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
16756 (grub_fshelp_journal): Likewise.
16757 (grub_fshelp_read): Likewise.
16758 (grub_fshelp_map_block): Likewise.
16760 2008-06-16 Pavel Roskin <proski@gnu.org>
16762 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
16763 floating point anymore.
16764 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
16766 2008-06-15 Pavel Roskin <proski@gnu.org>
16768 * commands/ls.c (grub_ls_list_files): Use integer calculations
16769 for human readable format, avoid floating point use.
16770 * kern/misc.c (grub_ftoa): Remove.
16771 (grub_vsprintf): Remove floating point support.
16773 2008-06-15 Robert Millan <rmh@aybabtu.com>
16775 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
16777 Reported by Max Vozeler.
16779 2008-06-15 Robert Millan <rmh@aybabtu.com>
16781 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
16782 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
16784 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
16785 the beginning of the prefix.
16787 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
16788 It is assumed that if we have a memdisk, grub-mkimage has set
16789 grub_prefix to include the "(memdisk)" drive in it.
16791 2008-06-15 Robert Millan <rmh@aybabtu.com>
16793 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
16794 Initialize keyboard controller after registering the terminal, so that
16795 grub_printf() can be called from grub_keyboard_controller_init().
16797 2008-06-15 Robert Millan <rmh@aybabtu.com>
16799 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
16800 extent-btree which is written as big endian on disk.
16801 Reported by Alain Greppin <al@chilibi.org>.
16803 2008-06-14 Robert Millan <rmh@aybabtu.com>
16805 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
16806 * util/i386/pc/grub-install.in (modules): Likewise.
16808 2008-06-13 Pavel Roskin <proski@gnu.org>
16810 * commands/ls.c (grub_ls_list_files): Fix format warnings.
16812 2008-06-13 Bean <bean123ch@gmail.com>
16814 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
16816 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
16818 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
16819 to indicate sparse block.
16821 2008-06-12 Pavel Roskin <proski@gnu.org>
16823 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
16824 number, grub_fshelp_read() does it for us.
16826 * fs/fshelp.c (grub_fshelp_read): New function. Implement
16827 linear disk read with journal translation.
16828 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
16829 * include/grub/fshelp.h: Declare grub_fshelp_read().
16831 2008-06-09 Pavel Roskin <proski@gnu.org>
16833 * fs/minix.c (grub_minix_mount): Handle error reading
16836 2008-06-08 Robert Millan <rmh@aybabtu.com>
16838 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
16839 don't append the RAID prefix afterwards.
16840 Reported by Clint Adams.
16842 2008-06-08 Robert Millan <rmh@aybabtu.com>
16844 Based on description from Pavel:
16845 * kern/disk.c (grub_disk_check_range): Rename to ...
16846 (grub_disk_adjust_range): ... this. Add a comment explaining the
16847 tasks performed by this function.
16849 2008-06-08 Robert Millan <rmh@aybabtu.com>
16851 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
16852 `num_serial' (for consistency with other variables).
16853 (struct grub_ntfs_data): Add `uuid' member.
16854 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
16855 (grub_ntfs_uuid): New function.
16856 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
16858 2008-06-07 Pavel Roskin <proski@gnu.org>
16860 * util/biosdisk.c (open_device): Revert last change to the
16861 function, it broke installation. The sector needs to be
16862 different dependent on which device is opened.
16864 2008-06-06 Robert Millan <rmh@aybabtu.com>
16866 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
16867 rest of GRUB, and breakage doesn't happen if its value were modified.
16869 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
16870 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
16871 a constant (same value).
16872 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
16873 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
16875 2008-06-06 Robert Millan <rmh@aybabtu.com>
16877 * util/biosdisk.c (open_device): Do not modify sector offset when
16878 accessing a partition. kern/disk.c already handles this for us.
16880 2008-06-06 Robert Millan <rmh@aybabtu.com>
16882 * util/grub-emu.c (grub_machine_init): Move code in this function from
16884 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
16885 segfault in case grub_printf() is called).
16887 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
16888 grub_probe. Update all users not to explicitly add it again.
16889 (grub_device): New variable; contains corresponding device for grubdir.
16890 (fs_module, partmap_module, devabstraction_module): Pass
16891 `--device ${grub_device}' to grub_probe to avoid traversing /dev
16894 2008-06-05 Robert Millan <rmh@aybabtu.com>
16896 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
16897 is found, print it (same layout as with labels).
16899 2008-06-04 Robert Millan <rmh@aybabtu.com>
16901 * util/biosdisk.c (get_drive): Rename to ...
16902 (find_grub_drive): ... this. Update all users.
16904 (get_os_disk): Rename to ...
16905 (convert_system_partition_to_system_disk): ... this. Update all users.
16907 (find_drive): Rename to ...
16908 (find_system_device): ... this. Update all users.
16910 2008-06-04 Robert Millan <rmh@aybabtu.com>
16912 * util/biosdisk.c (get_os_disk): Handle IDA devices.
16913 * util/grub-mkdevicemap.c (get_mmc_disk_name)
16914 (make_device_map): Likewise.
16916 2008-06-01 Robert Millan <rmh@aybabtu.com>
16918 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
16919 before dereferencing it.
16921 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
16922 union with fat12/fat16-specific ones. Add some new fields, including
16923 `num_serial' for both versions.
16924 (struct grub_fat_data): Add `uuid' member.
16925 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
16926 names. Initialize `data->uuid' using `num_serial'.
16927 (grub_fat_uuid): New function.
16928 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
16930 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
16931 (grub_reiserfs_uuid): New function.
16932 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
16935 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
16936 (grub_xfs_uuid): New function.
16937 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
16939 2008-06-01 Robert Millan <rmh@aybabtu.com>
16941 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
16942 code that is backward compatible with pre-uuid search command.
16944 2008-05-31 Robert Millan <rmh@aybabtu.com>
16946 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
16947 floppies after everything else, to ensure floppy drive isn't accessed
16948 unnecessarily (patch from Bean).
16950 2008-05-31 Robert Millan <rmh@aybabtu.com>
16952 * commands/search.c (search_label, search_fs_uuid, search_file): Do
16953 not print device names when we were asked to set a variable.
16955 2008-05-31 Robert Millan <rmh@aybabtu.com>
16957 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
16958 using "cursor-on" and "cursor-off" commands (understood at least by
16959 the Open Firmware flavour on OLPC).
16961 2008-05-31 Michael Gorven <michael@gorven.za.net>
16963 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
16964 on and off sequences.
16966 2008-05-31 Robert Millan <rmh@aybabtu.com>
16968 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
16969 * util/update-grub.in: Likewise.
16971 2008-05-30 Pavel Roskin <proski@gnu.org>
16973 * util/biosdisk.c (linux_find_partition): Simplify logic and
16974 make the code more universal. Keep special processing for
16975 devfs, but use a simple rule for all other devices. If the
16976 device ends with a number, append 'p' and the partition number.
16977 Otherwise, append only the partition number.
16979 2008-05-30 Robert Millan <rmh@aybabtu.com>
16981 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
16982 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
16983 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
16984 the `root' parameter to Linux.
16986 2008-05-30 Robert Millan <rmh@aybabtu.com>
16988 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
16989 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
16990 --fs_uuid with --fs-uuid.
16991 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
16992 all filesystems support them).
16994 2008-05-30 Robert Millan <rmh@aybabtu.com>
16996 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
16997 grub_printf() flags, since we're printing in units of 2 bytes.
16999 2008-05-30 Robert Millan <rmh@aybabtu.com>
17001 * util/grub.d/00_header.in: Remove obsolete comment referencing
17002 convert_system_path_to_grub_path().
17003 * util/update-grub.in: Likewise.
17004 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
17005 (convert_system_path_to_grub_path): Add a warning message explaining
17006 that this function is deprecated. Rely on is_path_readable_by_grub()
17007 for the readability checks.
17008 (font_path): Use is_path_readable_by_grub() for the readability
17009 check rather than convert_system_path_to_grub_path().
17011 2008-05-30 Robert Millan <rmh@aybabtu.com>
17013 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
17014 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
17015 converting it first.
17016 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
17017 grub.cfg for access to font file, and afterwards call it again to set
17020 2008-05-30 Robert Millan <rmh@aybabtu.com>
17022 * commands/search.c (options): Add --fs_uuid option.
17023 (search_fs_uuid): New function.
17024 (grub_cmd_search): Fix --set argument passing.
17025 Use search_fs_uuid() when requested via --fs_uuid.
17026 (grub_search_init): Update help message.
17027 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
17028 and redeclare it as an array of 16-bit words.
17029 (grub_ext2_uuid): New function.
17030 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
17031 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
17032 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
17033 (GRUB_DEVICE_BOOT_UUID): New variables.
17034 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
17035 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
17037 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
17038 just assume `root' variable has the right value.
17039 * util/grub.d/10_linux.in: Likewise.
17040 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
17042 (main): Recognise `-t fs_uuid' argument.
17044 2008-05-30 Robert Millan <rmh@aybabtu.com>
17046 * util/biosdisk.c (map): Redefine structure to hold information
17047 about GRUB drive name.
17048 (get_drive): Reimplement without assuming (and verifying) BIOS-like
17050 (call_hook): Remove.
17051 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
17052 member. Assume drive has partitions.
17053 (grub_util_biosdisk_open): Access device names via `.device' struct
17055 (open_device): Likewise.
17056 (find_drive): Likewise.
17057 (read_device_map): Adjust map[] usage to match the new struct
17058 definition. Don't check for duplicates (still possible, but not cheap
17060 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
17061 (make_device_name): Remove assumption of BIOS-like drive names.
17063 2008-05-30 Pavel Roskin <proski@gnu.org>
17065 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
17066 compiling execute.c doesn't need grub_script.tab.h anymore.
17067 (normal/command.c_DEPENDENCIES): Likewise.
17068 (normal/function.c_DEPENDENCIES): Likewise.
17069 * conf/i386-ieee1275.rmk: Likewise.
17070 * conf/i386-linuxbios.rmk: Likewise.
17071 * conf/i386-pc.rmk: Likewise.
17072 * conf/powerpc-ieee1275.rmk: Likewise.
17073 * conf/sparc64-ieee1275.rmk: Likewise.
17075 2008-05-29 Pavel Roskin <proski@gnu.org>
17077 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
17078 when scanning metadata for volume group name.
17080 * include/grub/script.h: Don't include grub_script.tab.h. It's
17081 a generated file, which may only be included from the files with
17082 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
17083 use union YYSTYPE, as the later allows forward declaration.
17084 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
17086 2008-05-29 Robert Millan <rmh@aybabtu.com>
17088 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
17089 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
17090 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
17091 (grub_console_checkkey): Add grub_dprintf() call to report unknown
17094 2008-05-29 Robert Millan <rmh@aybabtu.com>
17096 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
17097 control key combinations.
17099 2008-05-29 Robert Millan <rmh@aybabtu.com>
17101 * util/powerpc/ieee1275/grub-install.in: Move from here ...
17102 * util/ieee1275/grub-install.in: ... to here.
17103 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
17104 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
17105 (grub_install_SOURCES): Likewise.
17107 2008-05-29 Robert Millan <rmh@aybabtu.com>
17109 * fs/affs.c: Update copyright year.
17110 * fs/ext2.c: Likewise.
17111 * fs/fshelp.c: Likewise.
17112 * fs/hfsplus.c: Likewise.
17113 * fs/ntfs.c: Likewise.
17114 * fs/xfs.c: Likewise.
17115 * include/grub/fshelp.h: Likewise.
17116 * util/grub-mkdevicemap.c: Likewise.
17118 2008-05-28 Robert Millan <rmh@aybabtu.com>
17120 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
17121 might need to be fatfs to support some firmware implementations
17124 2008-05-28 Robert Millan <rmh@aybabtu.com>
17126 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
17128 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17129 (make_device_map): Likewise.
17131 2008-05-20 Bean <bean123ch@gmail.com>
17133 * fs/fshelp.c (grub_fshelp_map_block): New function.
17134 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
17135 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
17137 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
17138 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
17139 (grub_fshelp_journal): New structure.
17140 (grub_fshelp_map_block): New function prototype.
17141 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
17142 (grub_fshelp_map_block): Likewise.
17144 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
17145 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
17146 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
17147 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
17148 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
17149 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
17150 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
17151 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
17152 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
17153 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
17154 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
17155 (grub_ext2_sblock): New members for journal support.
17156 (grub_ext3_journal_header): New structure.
17157 (grub_ext3_journal_revoke_header): Likewise.
17158 (grub_ext3_journal_block_tag): Likewise.
17159 (grub_ext3_journal_sblock): Likewise.
17160 (grub_fshelp_node): New members logfile and journal.
17161 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
17162 grub_fshelp_map_block to get real block number.
17163 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
17165 (grub_ext2_read_inode): Likewise.
17166 (grub_ext3_get_journal): New function.
17167 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
17168 (grub_ext2_close): Release memory used by journal.
17170 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
17171 (REISERFS_MAGIC_DESC_BLOCK): New macro.
17172 (grub_reiserfs_transaction_header): Renamed to
17173 grub_reiserfs_description_block, replace field data with real_blocks.
17174 (grub_reiserfs_commit_block): New structure.
17175 (grub_reiserfs_data): New member journal.
17176 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
17178 (grub_reiserfs_read_symlink): Likewise.
17179 (grub_reiserfs_iterate_dir): Likewise.
17180 (grub_reiserfs_open): Likewise.
17181 (grub_reiserfs_read): Likewise.
17182 (grub_reiserfs_get_journal): New function.
17183 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
17184 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
17185 using grub_reiserfs_get_journal.
17186 (grub_reiserfs_close): Release memory used by journal.
17188 * fs/affs.c (grub_affs_read_block): Change block type to
17189 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
17191 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
17193 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
17195 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
17197 * fs/udf.c (grub_udf_read_block): Change block type to
17198 grub_disk_addr_t. Use type cast to avoid warning.
17200 * fs/xfs.c (grub_xfs_read_block): Likewise.
17202 2008-05-16 Christian Franke <franke@computer.org>
17204 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
17205 to ensure that break with ESC will always work.
17206 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
17207 Remove ESC from keyboard queue.
17209 2008-05-16 Christian Franke <franke@computer.org>
17211 * util/biosdisk.c: [__CYGWIN__] Add includes.
17212 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
17213 (get_os_disk): Move variable declarations to OS specific
17214 parts to avoid warning.
17215 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
17216 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
17217 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
17219 * util/getroot.c: [__CYGWIN__] Add includes.
17220 (strip_extra_slashes): Fix "/" case.
17221 [__CYGWIN__] (get_win32_path): New function.
17222 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
17223 [__CYGWIN__] (find_root_device): Disable.
17224 [__CYGWIN__] (get_bootsec_serial): New function.
17225 [__CYGWIN__] (find_cygwin_root_device): Likewise.
17226 [__linux__] (grub_guess_root_device): Add early returns to simplify
17228 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
17229 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
17230 check for Linux only.
17232 2008-05-15 Bean <bean123ch@gmail.com>
17234 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
17235 keyboard hang problem in apple's intel mac.
17237 2008-05-09 Robert Millan <rmh@aybabtu.com>
17239 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
17241 * util/grub-mkdevicemap.c (get_virtio_disk_name)
17242 (make_device_map): Likewise.
17243 Reported by Aurelien Jarno <aurel32@debian.org>
17245 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
17247 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
17248 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
17249 (make_device_map): Output entries for xvd type disks.
17251 2008-05-07 Robert Millan <rmh@aybabtu.com>
17253 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
17255 * util/grub-mkdevicemap.c (get_cciss_disk_name)
17256 (make_device_map): Likewise.
17257 Reported by Roland Dreier <rdreier@cisco.com>
17259 2008-05-07 Robert Millan <rmh@aybabtu.com>
17261 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
17262 grub_strstr() call. Correct a few mistakes in failure path handling.
17264 2008-05-06 Robert Millan <rmh@aybabtu.com>
17266 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
17267 Do not print a trailing slash (therefore, the root directory is an
17269 (convert_system_path_to_grub_path): Do not remove trailing slash
17270 from make_system_path_relative_to_its_root() output.
17272 * util/i386/pc/grub-install.in: Add trailing slash to output from
17273 make_system_path_relative_to_its_root().
17275 2008-05-06 Robert Millan <rmh@aybabtu.com>
17277 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
17278 ensures that output lines aren't intermangled with those sent to
17279 stderr (via grub_util_info()).
17280 * util/grub-probe.c (grub_refresh): Likewise.
17281 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
17283 2008-05-05 Christian Franke <franke@computer.org>
17285 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
17286 Add Cygwin device names.
17287 (get_ide_disk_name) [__CYGWIN__]: Likewise.
17288 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
17289 (check_device): Return error instead of success on empty name.
17290 (make_device_map): Move label inside linux specific code to
17291 prevent compiler warning.
17293 2008-04-30 Robert Millan <rmh@aybabtu.com>
17295 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
17296 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
17298 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
17300 2008-04-29 Robert Millan <rmh@aybabtu.com>
17302 * docs/grub.cfg: New file (example GRUB configuration).
17304 2008-04-26 Robert Millan <rmh@aybabtu.com>
17306 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
17307 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
17308 and `disk/ieee1275/nand.c'.
17310 2008-04-25 Bean <bean123ch@gmail.com>
17312 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
17315 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
17316 change the buffer size to 4096 for cdrom device.
17318 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
17320 (_linux_mod_SOURCES): New variable.
17321 (_linux_mod_CFLAGS): Likewise.
17322 (_linux_mod_LDFLAGS): Likewise.
17323 (linux_mod_SOURCES): Likewise.
17324 (linux_mod_CFLAGS): Likewise.
17325 (linux_mod_LDFLAGS): Likewise.
17326 (nand_mod_SOURCES): Likewise.
17327 (nand_mod_CFLAGS): Likewise.
17328 (nand_mod_LDFLAGS): Likewise.
17330 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
17331 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
17332 type property. (nand device in olpc don't have this property)
17334 * include/grub/disk.h (grub_disk_dev_id): New macro
17335 GRUB_DISK_DEVICE_NAND_ID.
17337 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
17338 function prototype.
17339 (grub_rescue_cmd_initrd): Likewise.
17341 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
17342 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
17343 ofw_cif_handler and ofw_idt, adjust padding number.
17345 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
17346 GRUB_MACHINE_IEEE1275 is defined.
17348 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
17349 Use NESTED_FUNC_ATTR attribute on the hook parameter.
17351 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
17352 on nested function heap_init.
17353 (grub_upper_mem): New variable for i386-ieee1275.
17354 (grub_get_extended_memory): New function for i386-ieee1275.
17355 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
17357 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
17358 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
17361 * loader/i386/ieee1275/linux.c: New file.
17363 * loader/i386/ieee1275/linux_normal.c: New file.
17365 * disk/ieee1275/nand.c: New file.
17367 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
17369 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
17371 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
17373 2008-04-18 Robert Millan <rmh@aybabtu.com>
17375 Restructures early code path on ieee1275 to unify grub_main() as
17376 the first C function that is executed in every platform.
17378 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
17379 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
17381 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
17382 * kern/ieee1275/cmain.c (cmain): Rename to ...
17383 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
17384 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
17387 2008-04-18 Robert Millan <rmh@aybabtu.com>
17389 * util/update-grub.in: Fix syntax error when setting
17390 `GRUB_PRELOAD_MODULES'.
17391 Reported by Stephane Chazelas <stephane@artesyncp.com>
17393 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
17395 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
17396 section into account, newer toolchains generate unique build ids
17397 * configure.ac: remove the test for --build-id=none acceptance,
17398 we want build ids to be preserved
17399 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
17400 far from other sections don't cause the raw binary images grow
17403 2008-04-15 Robert Millan <rmh@aybabtu.com>
17405 * disk/lvm.c: Update copyright year.
17406 * kern/misc.c: Likewise.
17408 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17410 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
17411 there is no memory left for physical volume name.
17413 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17415 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
17416 volume name mapping to support bigger than 9 character names properly.
17418 2008-04-13 Robert Millan <rmh@aybabtu.com>
17420 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
17421 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
17423 2008-04-13 Christian Franke <franke@computer.org>
17425 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
17426 to create a floppy emulation boot CD when non emulation mode
17428 Enable Joliet CD filesystem extension.
17430 2008-04-13 Robert Millan <rmh@aybabtu.com>
17432 * kern/misc.c (grub_strncat): Fix off-by-one error.
17433 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
17435 * kern/env.c (grub_env_context_close): Clear current context, not
17437 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
17439 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
17441 2008-04-13 Robert Millan <rmh@aybabtu.com>
17443 Improve robustness when handling LVM.
17445 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
17446 (and leave `*p' unmodified).
17447 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
17449 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
17450 iterating through it.
17451 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
17453 (grub_lvm_scan_device): Check the return value (and fail gracefully
17454 when due) on each grub_lvm_getvalue() or grub_strstr() call.
17455 Don't assume `vg->pvs != NULL' when iterating through it.
17457 2008-04-13 Robert Millan <rmh@aybabtu.com>
17459 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
17460 * genmk.rb (partmap): New variable.
17461 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
17462 (#{partmap}): New target rule.
17463 * genpartmaplist.sh: New file.
17464 * Makefile.in (pkglib_DATA): Add partmap.lst.
17465 (partmap.lst): New target rule.
17466 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
17467 modules (including all partition maps), instead of preloading them.
17469 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
17471 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
17472 `linux-boot-prober' (if installed) to detect other operating
17473 systems which are installed on the computer and add them to
17475 * conf/common.rmk: Build and install 30_os-prober.
17477 2008-04-12 Robert Millan <rmh@aybabtu.com>
17479 * kern/powerpc/ieee1275/init.c: Move from here ...
17480 * kern/ieee1275/init.c: ... to here. Update all users.
17482 * kern/powerpc/ieee1275/cmain.c: Move from here ...
17483 * kern/ieee1275/cmain.c: ... to here. Update all users.
17485 * kern/powerpc/ieee1275/openfw.c: Move from here ...
17486 * kern/ieee1275/openfw.c: ... to here. Update all users.
17488 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
17489 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
17491 2008-04-10 Pavel Roskin <proski@gnu.org>
17493 * configure.ac: Always use "_cv_" in cache variables for
17494 compatibility with Autoconf 2.62.
17496 2008-04-07 Robert Millan <rmh@aybabtu.com>
17498 Revert grub/machine/init.h addition by Pavel (since it breaks on
17499 i386-ieee1275 and others):
17500 * util/i386/pc/misc.c: Remove grub/machine/init.h.
17501 * util/powerpc/ieee1275/misc.c: Likewise.
17503 2008-04-07 Robert Millan <rmh@aybabtu.com>
17505 * util/grub-probe.c (probe): Improve error message.
17507 2008-04-07 Robert Millan <rmh@aybabtu.com>
17509 * util/biosdisk.c (read_device_map): Skip devices that don't exist
17510 (this prevents the presence of a bogus entry from ruining the whole
17513 2008-04-06 Pavel Roskin <proski@gnu.org>
17515 * util/biosdisk.c: Include grub/util/biosdisk.h.
17516 * util/grub-fstest.c (execute_command): Make static.
17517 * util/grub-mkdevicemap.c (check_device): Likewise.
17518 * util/i386/pc/misc.c: Include grub/machine/init.h.
17519 * util/powerpc/ieee1275/misc.c: Likewise.
17520 * util/lvm.c: Include grub/util/lvm.h.
17521 * util/misc.c: Include grub/kernel.h, grub/misc.h and
17523 * util/raid.c: Include grub/util/raid.h.
17524 (grub_util_getdiskname): Make static.
17526 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
17527 grub_hostfs_fini(), as they are called from grub_init_all() and
17528 grub_fini_all() respectively. This fixes an infinite loop in
17529 grub-fstest due to double registration of hostfs.
17530 Reported by Christian Franke <Christian.Franke@t-online.de>
17532 2008-04-05 Pavel Roskin <proski@gnu.org>
17534 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
17535 all 8 functions. Otherwise, probe function 0 only.
17537 2008-04-04 Pavel Roskin <proski@gnu.org>
17539 * commands/lspci.c (grub_lspci_iter): Print the bus number
17542 * commands/lspci.c (grub_pci_classes): Fix typos.
17543 (grub_lspci_iter): Don't print func twice. Print vendor ID
17544 before device ID, as it's normally done.
17546 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
17547 Fix signedness warnings.
17548 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
17550 * util/ieee1275/get_disk_name.c: Include config.h so that
17551 _GNU_SOURCE is defined and getline() is declared. Mark an
17552 unused argument as such. Fix a signedness warning.
17554 2008-04-02 Pavel Roskin <proski@gnu.org>
17556 * genkernsyms.sh.in: Use more robust assignments for CC and
17557 srcdir. Quote srcdir.
17558 * gensymlist.sh.in: Likewise. Assert at the compile time that
17559 the symbol table is not empty.
17561 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
17562 * fs/cpio.c (grub_cpio_read): Likewise.
17564 2008-04-01 Pavel Roskin <proski@gnu.org>
17566 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
17567 * disk/host.c (grub_host_open): Likewise.
17568 * disk/loopback.c (grub_loopback_open): Likewise.
17569 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
17570 disk->id as in disk/host.c, not a multi-character constant.
17572 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
17573 later is obsolete, potentially dangerous and sets a bad example.
17574 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
17575 * util/misc.c (grub_util_get_image_size): Likewise.
17577 * disk/loopback.c (options): Improve help for "--partitions".
17579 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
17580 options to align them with the short options, e.g. "echo -e".
17582 2008-03-31 Bean <bean123ch@gmail.com>
17584 * video/reader/png.c (grub_png_data): New member is_16bit and
17586 (grub_png_decode_image_header): Detect 16 bit png image.
17587 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
17588 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
17589 (grub_video_reader_png): Release memory occupied by image_data.
17591 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
17593 (grub_nfs_mount): Skip the test for sector per cluster.
17595 * include/grub/ntfs.h (MAX_SPC): Removed.
17597 2008-03-31 Bean <bean123ch@gmail.com>
17599 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
17600 (grub_probe_SOURCES): Add fs/afs.c.
17601 (grub_fstest_SOURCES): Likewise.
17602 (afs_mod_SOURCES): New variable.
17603 (afs_mod_CFLAGS): Likewise.
17604 (afs_mod_LDFLAGS): Likewise.
17606 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
17607 (grub_emu_SOURCES): Likewise.
17609 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17611 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17613 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
17615 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17617 * fs/afs.c: New file.
17619 2008-03-30 Pavel Roskin <proski@gnu.org>
17621 * disk/host.c: Include grub/misc.h to fix a warning.
17622 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
17623 warnings about implicit declarations.
17625 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
17627 * include/grub/i386/loader.h: Change declaration of
17628 grub_linux_boot() to match what grub_loader_set() expects.
17629 * util/getroot.c (grub_guess_root_device): Return const char* to
17631 * util/grub-probe.c (probe): Fix a warning about uninitialized
17632 abstraction_name variable.
17633 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
17634 second argument as unused to fix a warning.
17636 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
17637 missing grub_error() call.
17639 * util/update-grub_lib.in: Define datarootdir, since Autoconf
17640 2.60 and newer uses it to define datadir.
17642 * commands/sleep.c: Fix warning about implicit declaration.
17643 * disk/memdisk.c: Likewise.
17644 * loader/aout.c: Likewise.
17645 * loader/i386/bsd_normal.c: Likewise.
17646 * util/grub-probe.c: Likewise.
17648 * commands/i386/cpuid.c (has_longmode): Make static.
17649 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
17650 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
17652 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
17653 GDT. This is more robust, as %ds can change.
17654 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
17655 calling real_to_prot().
17656 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
17658 2008-03-28 Pavel Roskin <proski@gnu.org>
17660 * kern/i386/pc/startup.S: Assert that uncompressed functions
17661 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
17662 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
17663 code, as they push parts of the code (error handlers) beyond
17664 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
17665 code as correctness and size.
17667 2008-03-28 Pavel Roskin <proski@gnu.org>
17669 * kern/i386/pc/startup.S
17670 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
17671 data block address to the real mode, keep offset minimal. This
17672 works around a bug in AWARD BIOS on old Athlon systems, which
17673 makes CD detection hang.
17675 2008-03-26 Pavel Roskin <proski@gnu.org>
17677 * normal/color.c (grub_parse_color_name_pair): Make `name' a
17679 * include/grub/normal.h: Add grub_parse_color_name_pair()
17682 2008-03-24 Bean <bean123ch@gmail.com>
17684 * disk/i386/pc/biosdisk.c (cd_start): Removed.
17685 (cd_count): Removed.
17686 (cd_drive): New variable.
17687 (grub_biosdisk_get_drive): Don't check for (cdN) device.
17688 (grub_biosdisk_call_hook): Likewise.
17689 (grub_biosdisk_iterate): Change cdrom detection method.
17690 (grub_biosdisk_open): Replace cd_start with cd_drive.
17691 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
17692 detect cdrom device.
17694 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
17696 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
17697 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
17698 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
17699 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
17700 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
17701 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
17702 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
17703 (grub_biosdisk_cdrp): New structure.
17704 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
17706 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
17708 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
17711 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
17714 2008-03-20 Robert Millan <rmh@aybabtu.com>
17716 Remove 2 TiB limit in ata.mod.
17717 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
17718 (grub_ata_dumpinfo): Print sector count with 0x%llx.
17719 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
17720 grub_uint64_t instead of grub_uint32_t.
17722 2008-03-05 Bean <bean123ch@gmail.com>
17724 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
17725 (grub_multiboot): Set boot device.
17727 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
17729 2008-03-02 Bean <bean123ch@gmail.com>
17731 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
17734 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
17736 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
17739 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
17742 * docs/fdl.texi: New file.
17744 * docs/mdate-sh: New file. Copied from gnulib.
17745 * docs/texinfo.tex: Likewise.
17747 * config.guess: Updated from gnulib.
17748 * install-sh: Likewise.
17750 2008-02-28 Robert Millan <rmh@aybabtu.com>
17752 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
17753 (aout_mod_SOURCES): New variable.
17754 (aout_mod_CFLAGS): Likewise.
17755 (aout_mod_LDFLAGS): Likewise.
17757 * conf/i386-ieee1275.rmk: Likewise.
17759 2008-02-28 Robert Millan <rmh@aybabtu.com>
17761 * util/update-grub.in: Reorganise terminal validity check. Accept
17762 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
17763 Based on suggestion by Franklin PIAT.
17765 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
17767 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
17769 * util/getroot.c (grub_util_check_block_device): New function that
17770 returns the given argument if it is a block device and returns NULL else.
17771 * util/grub-probe.c (argument_is_device): New variable.
17772 (probe): Promote device_name from a variable to an argument. Receive
17773 device_name from grub_util_check_block_device() if path is NULL and from
17774 grub_guess_root_device() else. Do not free() device_name anymore.
17775 (options): Introduce new parameter '-d, --device'.
17776 (main): Add description of the new parameter to the help screen.
17777 Rename path variable to argument. Set argument_is_device if the '-d'
17778 option is given. Pass argument to probe() depending on
17779 argument_is_device.
17781 2008-02-24 Bean <bean123ch@gmail.com>
17783 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
17784 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
17785 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
17786 (GRUB_ISO9660_VOLDESC_PART): Likewise.
17787 (GRUB_ISO9660_VOLDESC_END): Likewise.
17788 (grub_iso9660_primary_voldesc): New member escape.
17789 (grub_iso9660_data): New member joliet.
17790 (grub_iso9660_convert_string): New function.
17791 (grub_iso9660_mount): Detect joliet extension.
17792 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
17793 (grub_iso9660_iso9660_label): Likewise.
17795 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
17796 (grub_setup_SOURCES): Add fs/udf.c.
17797 (grub_fstest_SOURCES): Likewise.
17798 (udf_mod_SOURCES): New variable.
17799 (udf_mod_CFLAGS): Likewise.
17800 (udf_mod_LDFLAGS): Likewise.
17802 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
17803 (grub_emu_SOURCES): Likewise.
17805 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17807 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17809 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
17811 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17813 * fs/udf.c: New file.
17815 2008-02-24 Robert Millan <rmh@aybabtu.com>
17817 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
17818 (normal/lexer.c_DEPENDENCIES): New variables.
17819 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
17820 (normal/lexer.c_DEPENDENCIES): Likewise.
17821 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
17822 (normal/lexer.c_DEPENDENCIES): Likewise.
17823 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
17824 (normal/lexer.c_DEPENDENCIES): Likewise.
17825 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
17826 (normal/lexer.c_DEPENDENCIES): Likewise.
17827 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
17828 (normal/lexer.c_DEPENDENCIES): Likewise.
17830 2008-02-23 Robert Millan <rmh@aybabtu.com>
17832 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
17833 since they were intended to be in hex. This didn't break previously
17834 because of a bug in gpt_partition_map_iterate() (see below).
17836 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
17837 when checking the validity of GPT header.
17838 Remove `partno', since it always provides the same information as `i'.
17840 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
17842 * include/grub/efi/time.h: Fix a wrong comment.
17844 2008-02-19 Pavel Roskin <proski@gnu.org>
17846 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
17849 2008-02-19 Bean <bean123ch@gmail.com>
17851 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
17852 (aout_mod_SOURCES): New variable.
17853 (aout_mod_CFLAGS): Likewise.
17854 (aout_mod_LDFLAGS): Likewise.
17855 (_bsd_mod_SOURCES): New variable.
17856 (_bsd_mod_CFLAGS): Likewise.
17857 (_bsd_mod_LDFLAGS): Likewise.
17858 (bsd_mod_SOURCES): New variable.
17859 (bsd_mod_CFLAGS): Likewise.
17860 (bsd_mod_LDFLAGS): Likewise.
17862 * include/grub/aout.h: New file.
17864 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
17866 * include/grub/i386/bsd.h: New file.
17868 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
17871 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
17872 function is called, so that it's possible to change it inside the hook.
17873 (grub_elf64_load): Likewise.
17874 (grub_elf_file): Don't close the file if elf header is not found.
17875 (grub_elf_close): Close the file if grub_elf_file fails (The new
17876 grub_elf_file won't close it).
17877 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
17878 (grub_elf64_size): Likewise.
17880 * kern/i386/loader.S (grub_unix_real_boot): New function.
17882 * loader/aout.c: New file.
17884 * loader/i386/bsd.c: New file.
17886 * loader/i386/bsd_normal.c: New file.
17888 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
17890 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
17891 can test other formats.
17893 2008-02-19 Robert Millan <rmh@aybabtu.com>
17895 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
17896 (grub_gpt_partition_type_empty): Redefine with macro from
17897 `<grub/gpt_partition.h>'.
17898 (gpt_partition_map_iterate): Adjust partition type comparison.
17900 Export `entry' as partmap-specific `part.data' struct.
17901 (grub_gpt_header, grub_gpt_partentry): Move from here ...
17903 * include/grub/gpt_partition.h (grub_gpt_header)
17904 (grub_gpt_partentry): ... to here (new file).
17906 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
17908 (grub_gpt_partition_type_bios_boot): New const variable, defined
17909 with macro from `<grub/gpt_partition.h>'.
17911 (setup): Replace `first_start' with `embed_region', which keeps
17912 track of the embed region (and is partmap-agnostic).
17914 Replace find_first_partition_start() with find_usable_region(),
17915 which finds a usable region for embedding using partmap-specific
17916 knowledge (supports PC/MSDOS and GPT).
17918 Fix all assumptions that the embed region start at sector 1, using
17919 `embed_region.start' from now on. Similarly, use `embed_region.end'
17920 rather than `first_start' to calculate available size.
17922 In grub_util_info() message, replace "into after the MBR" with an
17923 indication of the specific sector our embed region starts at.
17925 2008-02-19 Robert Millan <rmh@aybabtu.com>
17927 * DISTLIST: Replace `commands/ieee1275/halt.c' and
17928 `commands/ieee1275/reboot.c' with `commands/halt.c' and
17929 `commands/reboot.c'.
17930 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
17931 (halt_mod_SOURCES): Likewise.
17932 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
17933 (halt_mod_SOURCES): Likewise.
17935 2008-02-17 Christian Franke <franke@computer.org>
17937 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
17939 2008-02-17 Robert Millan <rmh@aybabtu.com>
17941 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
17942 set `first_start' to 0 for non-PC/MSDOS partition maps.
17944 2008-02-16 Robert Millan <rmh@aybabtu.com>
17946 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
17947 do not assume partition map is PC/MSDOS before performing checks that
17948 are specific to that layout.
17950 2008-02-13 Robert Millan <rmh@aybabtu.com>
17952 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
17953 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
17954 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
17956 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
17958 * configure.ac: Only a cosmetic change on the handling of
17959 -fno-stack-protector.
17961 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
17963 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
17964 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
17966 (grub_install_SOURCES): Add halt.mod and reboot.mod.
17967 (halt_mod_SOURCES): New variable.
17968 (halt_mod_CFLAGS): Likewise.
17969 (halt_mod_LDFLAGS): Likewise.
17970 (reboot_mod_SOURCES): Likewise.
17971 (reboot_mod_CFLAGS): Likewise.
17972 (reboot_mod_LDFLAGS): Likewise.
17974 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
17975 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
17977 (halt_mod_SOURCES): Likewise.
17978 (reboot_mod_SOURCES): Likewise.
17980 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
17981 commands/i386/pc/reboot.c by commands/reboot.c.
17982 (reboot_mod_SOURCES): Likewise.
17984 * commands/i386/pc/reboot.c: merge this file ...
17986 * commands/ieee1275/reboot.c: ... and this file ...
17988 * commands/reboot.c: ... to this file.
17989 Add some precompiler directive to include the correct header for
17992 * commands/ieee1275/halt.c: move this file ...
17994 * commands/halt.c: ... to here.
17995 Add some precompiler directive to include the correct header for
17998 * include/grub/efi/efi.h (grub_reboot): New function declaration.
17999 (grub_halt): Likewise.
18001 * kern/efi/efi.c (grub_reboot): New function.
18002 (grub_halt): Likewise.
18004 2008-02-12 Robert Millan <rmh@aybabtu.com>
18006 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
18007 /dev (like it is done for /dev/mapper). This doesn't provide support
18008 for EVMS, but at least it is now easy to identify the problem when it
18011 2008-02-11 Robert Millan <rmh@aybabtu.com>
18013 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
18014 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
18015 comparing it with -1, not 0.
18017 2008-02-10 Robert Millan <rmh@aybabtu.com>
18019 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
18021 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18022 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18024 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
18025 `disk/lvm.c' to the end of the list.
18026 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18027 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18029 2008-02-10 Robert Millan <rmh@aybabtu.com>
18031 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
18032 grub_print_error() instead. This will let user know why we're entering
18034 Based on suggestions from Sam Morris.
18036 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
18038 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
18039 on remaining N args, instead of "--" arg N times.
18041 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
18043 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
18044 (fill_with_default_glyph): Changed to use unknown_glyph for fill
18045 pattern for unknown glyphs.
18047 2008-02-09 Robert Millan <rmh@aybabtu.com>
18049 * configure.ac: Probe for `help2man'.
18050 * Makefile.in (builddir): New variable.
18051 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
18052 or otherwise add a few flags/options to it.
18053 (install-local): For every executable utility or script that is
18054 installed, invoke $(HELP2MAN) to install a manpage based on --help
18057 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
18058 that it doesn't prevent --help from working in build tree.
18060 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
18061 with `bug-grub@gnu.org'.
18062 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
18063 * util/update-grub.in (usage): New function.
18064 Implement proper argument check, with support for --help and --version
18065 (as well as existing -y).
18067 2008-02-09 Christian Franke <franke@computer.org>
18069 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
18070 avoid overwriting previous output.
18071 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
18073 2008-02-09 Robert Millan <rmh@aybabtu.com>
18075 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
18078 2008-02-09 Robert Millan <rmh@aybabtu.com>
18080 * commands/sleep.c: New file.
18081 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
18082 (sleep_mod_SOURCES): New variable.
18083 (sleep_mod_CFLAGS): Likewise.
18084 (sleep_mod_LDFLAGS): Likewise.
18086 2008-02-09 Robert Millan <rmh@aybabtu.com>
18088 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
18089 situations in which we can deduce the RAID size and the superblock
18092 2008-02-09 Robert Millan <rmh@aybabtu.com>
18094 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
18095 and return a grub_diskmemberlist_t composed of LVM physical volumes.
18096 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
18098 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
18099 and return a grub_diskmemberlist_t composed of physical array members.
18100 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
18102 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
18104 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
18105 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
18106 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
18108 * util/grub-probe.c (probe): Move partmap probing code from here ...
18109 (probe_partmap): ... to here.
18110 (probe): Use probe_partmap() once for the disk we're probing, and
18111 additionally, when such disk contains a memberlist() struct member,
18112 once for each disk that is contained in the structure returned by
18115 2008-02-09 Robert Millan <rmh@aybabtu.com>
18117 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
18118 environment variable to 'all' in order to obtain debug output from
18120 * util/i386/pc/grub-setup.c (main): Likewise.
18122 2008-02-08 Robert Millan <rmh@aybabtu.com>
18124 * disk/raid.c (grub_raid_scan_device): Check for
18125 `array->device[sb.this_disk.number]' rather than for
18126 `array->device[sb.this_disk.number]->name', since the latter is not
18127 guaranteed to be accessible.
18129 2008-02-08 Robert Millan <rmh@aybabtu.com>
18131 * disk/raid.c: Update copyright.
18132 * fs/cpio.c: Likewise.
18133 * include/grub/raid.h: Likewise.
18134 * loader/i386/pc/multiboot.c: Likewise.
18135 * util/hostfs.c: Likewise.
18137 2008-02-08 Robert Millan <rmh@aybabtu.com>
18139 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
18140 to a grub_disk_t array.
18141 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
18143 (grub_raid_scan_device): Replace `device[x].name' accesses with
18144 `device[x]->name'. Simplify initialization of `array->device[x]'.
18146 2008-02-08 Robert Millan <rmh@aybabtu.com>
18148 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
18149 grub_dprintf() calls.
18150 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
18153 2008-02-07 Christian Franke <franke@computer.org>
18155 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
18156 instead of fseek and ftell to support large files.
18157 (grub_hostfs_read): Likewise.
18159 2008-02-07 Robert Millan <rmh@aybabtu.com>
18161 Patch from Jeroen Dekkers.
18162 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
18163 failure, since successfully reading all array members might not be
18166 2008-02-06 Robert Millan <rmh@aybabtu.com>
18168 * util/grub-probe.c (probe): Simplify partmap probing (with the
18169 assumption that the first word up to the underscore equals to
18172 2008-02-06 Christian Franke <franke@computer.org>
18174 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
18175 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
18176 last block of a cpio or tar stream.
18177 Check for "TRAILER!!!" instead of any empty data
18178 block to detect last block of a cpio stream.
18179 (grub_cpio_dir): Fix constness of variable np.
18180 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
18181 cpio or tar trailer is detected. This fixes a crash
18182 on open of a non existing file.
18184 2008-02-05 Bean <bean123ch@gmail.com>
18186 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
18188 (grub_multiboot_load_elf64): Likewise.
18189 (grub_multiboot): Initialize mbi structure.
18191 * util/grub-fstest.c: Don't include unused header file script.h.
18193 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
18195 (grub_fstest_SOURCES): Likewise.
18197 2008-02-05 Robert Millan <rmh@aybabtu.com>
18199 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
18200 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
18201 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
18202 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
18204 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
18205 (translation_table): Replace hardcoded values with macros
18206 provided by `<grub/term.h>'.
18208 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
18209 (keyboard_map): Correct/add a few values, with macros provided
18210 by `<grub/term.h>'.
18211 (keyboard_map_shift): Zero values that don't differ from their
18212 `keyboard_map' equivalents.
18213 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
18214 Discard the second scan code that is always sent by Caps lock.
18215 Only use `keyboard_map_shift' when it provides a non-zero value,
18216 otherwise fallback to `keyboard_map'.
18218 2008-02-04 Bean <bean123ch@gmail.com>
18220 * Makefile.in (enable_grub_fstest): New variable.
18222 * conf/common.rmk (grub_fstest_init.lst): New rule.
18223 (grub_fstest_init.h): Likewise.
18224 (grub_fstest_init.c): Likewise.
18225 (util/grub-fstest.c_DEPENDENCIES): New variable.
18226 (grub_fstest_SOURCES): Likewise.
18228 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
18230 * util/grub-fstest.c: New file.
18232 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18234 Make grub-setup handle a separate root device.
18236 * util/i386/pc/grub-setup.c (setup): Always open the root device,
18237 so that the root device can be compared with the destination
18239 When embedding the core image, if the root and destination devices
18240 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
18242 When not embedding, set ROOT_DRIVE to 0xFF.
18244 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18246 Add support for having a grub directory in a different drive. This
18247 is still only the data handling part.
18249 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
18250 (codestart): Save %dh in GRUB_ROOT_DRIVE.
18251 (grub_root_drive): New variable.
18253 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
18254 instead of GRUB_BOOT_DRIVE to construct a device name. Set
18255 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
18258 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
18260 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
18262 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
18264 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
18265 is bogus, because PXE booting does not specify any drive
18268 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
18269 am not sure if this is really correct.
18271 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
18272 is always identical to the boot drive when booting from a CD.
18274 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
18276 (root_drive): New variable.
18277 (real_start): Unconditionally set %dh to ROOT_DRIVE.
18278 (setup_sectors): Push %dx right after popping it, because %dh will
18280 (copy_buffer): Restore %dx.
18282 2008-02-03 Robert Millan <rmh@aybabtu.com>
18284 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
18285 use `cdboot.img' for cdrom images.
18287 2008-02-03 Robert Millan <rmh@aybabtu.com>
18289 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
18290 only setup gfxterm when `font' command has succeeded.
18292 2008-02-03 Robert Millan <rmh@aybabtu.com>
18294 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
18295 (grub_rescue_cmd_multiboot_loader)
18296 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
18298 2008-02-03 Pavel Roskin <proski@gnu.org>
18300 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
18301 %edx and %esi from stack only after grub_gate_a20() is called.
18302 grub_gate_a20() clobbers %edx.
18304 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18306 * configure.ac (AC_INIT): Bumped to 1.96.
18308 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
18309 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
18310 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
18311 video/readers/png.c.
18313 2008-02-03 Bean <bean123ch@gmail.com>
18315 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
18316 (cdboot_img_SOURCES): New variable.
18317 (cdboot_img_ASFLAGS): New variable.
18318 (cdboot_img_LDFLAGS): New variable.
18320 * boot/i386/pc/cdboot.S: New file.
18322 * disk/i386/pc/biosdisk.c (cd_start): New variable.
18323 (cd_count): Likewise.
18324 (grub_biosdisk_get_drive): Add support for cd device.
18325 (grub_biosdisk_call_hook): Likewise.
18326 (grub_biosdisk_iterate): Likewise.
18327 (grub_biosdisk_open): Likewise.
18328 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
18329 (grub_biosdisk_rw): Support reading from cd device.
18330 (GRUB_MOD_INIT): Iterate cd devices.
18332 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
18333 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
18334 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
18336 * kern/i386/pc/init.c (make_install_device): Check for cd device.
18338 2008-02-02 Robert Millan <rmh@aybabtu.com>
18340 * commands/read.c: New file.
18341 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
18342 (read_mod_SOURCES): New variable.
18343 (read_mod_CFLAGS): Likewise.
18344 (read_mod_LDFLAGS): Likewise.
18346 2008-02-02 Robert Millan <rmh@aybabtu.com>
18348 * normal/main.c (grub_normal_execute): Check for `menu->size' when
18349 determining whether menu has to be displayed.
18351 2008-02-02 Marco Gerards <marco@gnu.org>
18353 * bus/pci.c: New file.
18355 * include/grub/pci.h: Likewise.
18357 * include/grub/i386/pc/pci.h: Likewise.
18359 * commands/lspci.c: Likewise.
18361 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
18363 (pci_mod_SOURCES): New variable.
18364 (pci_mod_CFLAGS): Likewise.
18365 (pci_mod_LDFLAGS): Likewise.
18366 (lspci_mod_SOURCES): Likewise.
18367 (lspci_mod_CFLAGS): Likewise.
18368 (lspci_mod_LDFLAGS): Likewise.
18370 2008-02-02 Bean <bean123ch@gmail.com>
18372 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
18373 (grub_ufs_get_file_block): Fix indirect block calculation problem.
18375 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
18376 (grub_xfs_btree_node): New structure.
18377 (grub_xfs_btree_root): New structure.
18378 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
18379 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
18380 (GRUB_XFS_EXTENT_BLOCK): Likewise.
18381 (GRUB_XFS_EXTENT_SIZE): Likewise.
18382 (grub_xfs_read_block): Support btree format type.
18383 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
18384 Use directory block as basic unit.
18386 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
18388 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
18389 __attribute__ ((__regparm__ (1))).
18391 2008-02-01 Robert Millan <rmh@aybabtu.com>
18393 Correct a mistake in previous commit.
18395 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
18397 (normal/command.c_DEPENDENCIES): New variable.
18399 2008-02-01 Robert Millan <rmh@aybabtu.com>
18401 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
18403 (normal/command.c_DEPENDENCIES): New variable.
18404 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
18405 * conf/i386-ieee1275.rmk: Likewise.
18406 * conf/i386-linuxbios.rmk: Likewise.
18407 * conf/i386-pc.rmk: Likewise.
18408 * conf/sparc64-ieee1275.rmk: Likewise.
18409 * conf/powerpc-ieee1275.rmk: Likewise.
18410 (grub_emu_SOURCES): Add `fs/fshelp.c'.
18412 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
18414 2008-02-01 Robert Millan <rmh@aybabtu.com>
18416 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
18417 call at beginning of function.
18419 2008-01-31 Pavel Roskin <proski@gnu.org>
18421 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
18422 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
18423 (grub_mkrescue_SOURCES): Likewise.
18424 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
18426 2008-01-30 Robert Millan <rmh@aybabtu.com>
18428 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
18429 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
18430 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
18431 (grub_probe_SOURCES): ... to here.
18433 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
18434 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
18435 * conf/i386-ieee1275.rmk: Likewise.
18436 * conf/i386-linuxbios.rmk: Likewise.
18437 * conf/powerpc-ieee1275.rmk: Likewise.
18439 2008-01-30 Tristan Gingold <gingold@free.fr>
18441 * kern/rescue.c: Silently accept empty lines.
18443 2008-01-29 Bean <bean123ch@gmail.com>
18445 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
18446 (real_code_2): Code cleanup and change comment style.
18447 (move_memory): Avoid using 32-bit address mode.
18449 2008-01-29 Bean <bean123ch@gmail.com>
18451 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
18452 (png_mod_SOURCES): New variable.
18453 (png_mod_CFLAGS): Likewise.
18454 (png_mod_LDFLAGS): Likewise.
18456 * video/readers/png.c: New file.
18458 2008-01-28 Robert Millan <rmh@aybabtu.com>
18460 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
18461 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
18462 `ifndef GRUB_MOD_GAP' hack.
18463 * util/elf/grub-mkimage.c (add_segments): Likewise.
18465 2008-01-27 Robert Millan <rmh@aybabtu.com>
18467 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
18468 `GRUB_MOD_GAP' for platforms in which it's not defined.
18469 * util/elf/grub-mkimage.c (add_segments): Likewise.
18471 2008-01-27 Robert Millan <rmh@aybabtu.com>
18473 Get grub-emu to build again (including parallel builds).
18475 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
18477 (util/grub-emu.c_DEPENDENCIES): ... this, ...
18478 (normal/execute.c_DEPENDENCIES): ... this, ...
18479 (grub-emu_DEPENDENCIES): ... and this.
18481 * conf/i386-efi.rmk: Likewise.
18482 * conf/i386-linuxbios.rmk: Likewise.
18483 * conf/i386-ieee1275.rmk: Likewise.
18484 * conf/powerpc-ieee1275.rmk: Likewise.
18485 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
18487 2008-01-27 Robert Millan <rmh@aybabtu.com>
18489 * NEWS: Add a few items.
18491 2008-01-27 Robert Millan <rmh@aybabtu.com>
18493 Fix parallel builds with grub-emu. Based on earlier commit for
18494 grub-probe and grub-setup.
18496 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18497 (util/grub-emu.c_DEPENDENCIES): ... this.
18498 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18499 (util/grub-emu.c_DEPENDENCIES): ... this.
18500 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18501 (util/grub-emu.c_DEPENDENCIES): ... this.
18502 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18503 (util/grub-emu.c_DEPENDENCIES): ... this.
18504 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18505 (util/grub-emu.c_DEPENDENCIES): ... this.
18507 2008-01-27 Pavel Roskin <proski@gnu.org>
18509 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
18510 to create a gap between _end and the modules added to the image
18511 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
18512 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
18513 * util/elf/grub-mkimage.c (add_segments): Likewise.
18515 2008-01-26 Pavel Roskin <proski@gnu.org>
18517 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
18518 just return an error.
18520 2008-01-26 Bean <bean123ch@gmail.com>
18522 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
18523 (grub_reiserfs_get_item): Save offset of the next item.
18524 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
18526 2008-01-25 Robert Millan <rmh@aybabtu.com>
18528 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
18529 make all filesystem sources appear together (possibly fixing omissions
18531 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18532 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18533 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18534 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18536 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
18538 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
18539 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
18540 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
18541 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
18543 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
18544 (probe): Add a sanity check to make sure of our ability to read
18545 requested files when probing for filesystem type.
18547 * genmk.rb: Update copyright year (2007).
18549 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
18550 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
18551 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
18552 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
18553 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
18554 : Remove function prototypes.
18556 2008-01-25 Robert Millan <rmh@aybabtu.com>
18558 Revert my previous commits (based on wrong assumption of how grub_errno
18561 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
18562 * kern/file.c (grub_file_open): Likewise.
18564 2008-01-24 Pavel Roskin <proski@gnu.org>
18566 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
18567 that hang if GRUB tries to setup colors.
18568 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
18569 colors for firmwares that don't support it.
18570 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
18571 Recognize Open Hack'Ware, set flags to work around its
18574 2008-01-24 Robert Millan <rmh@aybabtu.com>
18576 * kern/file.c (grub_file_open): Do not account previous failures of
18577 unrelated functions when grub_errno is checked for.
18578 Reported by Oleg Strikov.
18580 2008-01-24 Bean <bean123ch@gmail.com>
18582 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
18583 (grub_ufs_sblock): New member volume name.
18584 (grub_ufs_find_file): Fix string copy bug.
18585 (grub_ufs_label): Implement this function properly.
18587 * fs/hfs.c (grub_hfs_cnid_type): New enum.
18588 (grub_hfs_iterate_records): Use the correct file number for extents
18589 and catalog file. Fix problem in next index calculation.
18590 (grub_hfs_find_node): Replace recursive function call with loop.
18591 (grub_hfs_iterate_dir): Replace recursive function call with loop.
18593 2008-01-23 Robert Millan <rmh@aybabtu.com>
18595 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
18596 `<grub/symbol.h>' and `<grub/multiboot.h>'.
18597 (grub_multiboot2_real_boot): New function prototype.
18599 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
18600 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
18602 * kern/i386/ieee1275/init.c (grub_os_area_addr)
18603 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
18605 2008-01-23 Robert Millan <rmh@aybabtu.com>
18607 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
18608 #ifdef'ed out grub_printf().
18610 2008-01-23 Robert Millan <rmh@aybabtu.com>
18612 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
18613 grub_dprintf calls, since they make "debug=all" mode unusable.
18614 (grub_console_checkkey): Likewise.
18616 2008-01-23 Robert Millan <rmh@aybabtu.com>
18618 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
18619 `term/i386/pc/at_keyboard.c'.
18620 (pkglib_MODULES): Add `serial.mod'.
18621 (serial_mod_SOURCES): New variable.
18622 (serial_mod_CFLAGS): Likewise.
18623 (serial_mod_LDFLAGS): Likewise.
18625 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
18626 `<grub/powerpc/ieee1275/console.h>'.
18627 (grub_keyboard_controller_init): New function prototype.
18628 (grub_console_checkkey): Likewise.
18629 (grub_console_getkey): Likewise.
18631 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
18634 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
18635 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
18637 2008-01-23 Robert Millan <rmh@aybabtu.com>
18639 * kern/i386/pc/init.c (make_install_device): When memdisk image is
18640 present, "(memdisk)/boot/grub" becomes the default prefix.
18642 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
18643 a memdisk tarball with all the modules. Add --overlay=DIR option that
18644 allows users to overlay additional files into the image.
18646 2008-01-23 Robert Millan <rmh@aybabtu.com>
18648 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
18649 and `machine/memory.h'.
18650 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
18651 (_multiboot_mod_SOURCES): New variable.
18652 (_multiboot_mod_CFLAGS): Likewise.
18653 (_multiboot_mod_LDFLAGS): Likewise.
18654 (multiboot_mod_SOURCES): Likewise.
18655 (multiboot_mod_CFLAGS): Likewise.
18656 (multiboot_mod_LDFLAGS): Likewise.
18658 * include/grub/i386/ieee1275/loader.h: New file.
18660 * include/grub/i386/ieee1275/machine.h: Likewise.
18662 * include/grub/i386/ieee1275/memory.h: Likewise.
18664 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
18665 variable declaration.
18666 (grub_os_area_size): Likewise.
18668 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
18669 (grub_lower_mem, grub_upper_mem): New variables.
18670 (grub_stop_floppy): New function (just to make
18671 grub_multiboot2_real_boot() happy).
18673 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
18674 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
18675 (grub_stop): New function.
18676 Include `"../realmode.S"' and `"../loader.S"'.
18678 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
18679 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
18681 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
18682 rely on grub_multiboot2_real_boot() for final boot.
18684 2008-01-22 Robert Millan <rmh@aybabtu.com>
18686 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
18687 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
18688 device that doesn't look like an SD card.
18689 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
18690 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
18691 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
18692 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
18695 2008-01-22 Robert Millan <rmh@aybabtu.com>
18697 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
18698 avoid claiming over our own code.
18700 2008-01-22 Bean <bean123ch@gmail.com>
18702 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
18703 (jpeg_mod_SOURCES): New variable.
18704 (jpeg_mod_CFLAGS): Likewise.
18705 (jpeg_mod_LDFLAGS): Likewise.
18707 * video/readers/jpeg.c : New file.
18709 2008-01-22 Bean <bean123ch@gmail.com>
18711 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
18712 there are no more items.
18714 2008-01-21 Robert Millan <rmh@aybabtu.com>
18716 * kern/mm.c (grub_mm_init_region): Improve debug message.
18718 2008-01-21 Robert Millan <rmh@aybabtu.com>
18720 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
18721 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
18723 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
18725 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
18726 Indicates start of upper memory.
18727 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
18728 (generate_image): Abort when image size is big enough to corrupt
18731 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
18732 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
18733 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
18734 instead of hardcoding 0xA0000.
18735 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
18736 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
18737 instead of hardcoding 0xA0000.
18739 2008-01-21 Robert Millan <rmh@aybabtu.com>
18741 * disk/memdisk.c (memdisk_size): New variable.
18742 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
18744 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
18745 image to dynamic memory.
18746 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
18747 `memdisk_size'. Free memdisk block.
18749 2008-01-21 Robert Millan <rmh@aybabtu.com>
18751 Fix detection of very small filesystems (like tar).
18753 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
18754 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
18755 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
18756 a problem with this disk).
18758 2008-01-21 Robert Millan <rmh@aybabtu.com>
18760 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
18761 on grub_biosdisk_rw_standard() error.
18763 2008-01-21 Robert Millan <rmh@aybabtu.com>
18765 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
18767 * kern/elf.c: Likewise.
18768 * kern/ieee1275/ieee1275.c: Likewise.
18769 * kern/powerpc/ieee1275/openfw.c: Likewise.
18770 * term/ieee1275/ofconsole.c: Likewise.
18772 2008-01-21 Robert Millan <rmh@aybabtu.com>
18774 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
18776 * include/grub/kernel.h (grub_arch_memdisk_addr)
18777 (grub_arch_memdisk_size): Moved from here ...
18779 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
18780 (grub_arch_memdisk_size): ... to here.
18782 2008-01-21 Robert Millan <rmh@aybabtu.com>
18784 Mostly based on bugfix from Bean.
18786 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
18787 attribute with hook() parameter.
18788 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
18790 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
18791 attribute with hook() parameter.
18792 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
18795 2008-01-21 Robert Millan <rmh@aybabtu.com>
18797 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
18798 (pkglib_MODULES): Add `memdisk.mod'.
18799 (memdisk_mod_SOURCES): New variable.
18800 (memdisk_mod_CFLAGS): Likewise.
18801 (memdisk_mod_LDFLAGS): Likewise.
18803 * disk/memdisk.c: New file.
18805 * include/grub/disk.h (grub_disk_dev_id): Add
18806 `GRUB_DISK_DEVICE_MEMDISK_ID'.
18808 * include/grub/i386/pc/kernel.h
18809 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
18810 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
18811 (grub_kernel_image_size): New variable declaration.
18812 (grub_total_module_size): Likewise.
18813 (grub_memdisk_image_size): Likewise.
18815 * include/grub/i386/pc/memory.h
18816 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
18818 * include/grub/kernel.h: Include `<grub/symbol.h>'.
18819 (grub_arch_memdisk_addr): New variable declaration.
18820 (grub_arch_memdisk_size): Likewise.
18822 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
18823 (grub_arch_memdisk_size): Likewise.
18825 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
18826 (codestart): Replace hardcoded `0x100000' with
18827 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
18829 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
18830 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
18831 not NULL, append the contents of the file it refers to, at the end of
18832 the compressed kernel image. Initialize `grub_memdisk_image_size'
18833 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
18834 (options): Add "memdisk"|'m' option.
18835 (main): Parse --memdisk|-m option, and pass user-provided path as
18836 parameter to generate_image().
18838 2008-01-20 Robert Millan <rmh@aybabtu.com>
18840 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
18841 grub_dprintf() calls from here ...
18842 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
18844 2008-01-20 Robert Millan <rmh@aybabtu.com>
18846 Fix detection of "real mode" when /options/real-mode? doesn't exist.
18848 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
18850 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
18851 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
18852 `GRUB_IEEE1275_FLAG_REAL_MODE'.
18853 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
18855 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
18856 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
18858 2008-01-19 Robert Millan <rmh@aybabtu.com>
18860 Get rid of confusing function (superseded by
18861 `grub_ieee1275_get_integer_property')
18862 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
18864 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
18866 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
18867 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
18868 in native endianness from grub_ieee1275_get_integer_property().
18870 2008-01-19 Robert Millan <rmh@aybabtu.com>
18872 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
18873 command after "shut-down", since implementations differ on which
18874 the command for halt is.
18876 2008-01-19 Robert Millan <rmh@aybabtu.com>
18878 * include/grub/i386/linuxbios/console.h: Add header protection.
18879 (grub_keyboard_controller_init): New function prototype.
18880 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
18881 (KEYBOARD_COMMAND_READ): Likewise.
18882 (KEYBOARD_COMMAND_WRITE): Likewise.
18883 (KEYBOARD_SCANCODE_SET1): Likewise.
18884 (grub_keyboard_controller_write): New function.
18885 (grub_keyboard_controller_read): Likewise.
18886 (grub_keyboard_controller_init): Likewise.
18888 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
18889 (grub_console_init): On coreboot/LinuxBIOS, call
18890 grub_keyboard_controller_init().
18892 2008-01-19 Robert Millan <rmh@aybabtu.com>
18894 PowerPC changes provided by Pavel Roskin.
18896 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
18897 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
18898 don't rely on cmain() doing it.
18899 * kern/i386/ieee1275/startup.S (_start): Store %eax in
18900 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
18902 2008-01-16 Robert Millan <rmh@aybabtu.com>
18904 * include/grub/i386/linuxbios/memory.h
18905 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
18906 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
18907 receive `table_header' as argument. Instead, probe for it in the
18908 known memory ranges where it can be present.
18909 (grub_available_iterate): Do not pass a fixed `table_header' address
18910 to grub_linuxbios_table_iterate().
18912 2008-01-15 Robert Millan <rmh@aybabtu.com>
18914 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
18915 * conf/i386-ieee1275.rmk: New file.
18916 * include/grub/i386/ieee1275/console.h: Likewise.
18917 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
18918 * include/grub/i386/ieee1275/kernel.h: Likewise.
18919 * include/grub/i386/ieee1275/time.h: Likewise.
18920 * kern/i386/ieee1275/init.c: Likewise.
18921 * kern/i386/ieee1275/startup.S: Likewise.
18923 2008-01-15 Robert Millan <rmh@aybabtu.com>
18925 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
18926 when pointers are 32-bit (but still do set it to one when they are
18929 2008-01-15 Robert Millan <rmh@aybabtu.com>
18931 * include/grub/ieee1275/ieee1275.h
18932 (grub_ieee1275_get_integer_property): New function prototype.
18934 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
18935 (grub_ieee1275_get_integer_property): New function. Wraps around
18936 grub_ieee1275_get_property() to handle endianness.
18938 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
18939 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
18941 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
18942 (grub_map): Likewise.
18943 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
18945 2008-01-15 Bean <bean123ch@gmail.com>
18947 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
18948 (grub_script_execute_cmdline): Reset grub_errno.
18950 * normal/main.c (read_config_file): Reset grub_errno.
18952 * normal/parse.y (script_init): New.
18953 (script): Move function and menuentry here.
18955 (command): Add delimiter at the end of command.
18956 (commands): Adjust to match the new command.
18957 (commandblock): Remove grub_script_lexer_record_start.
18958 (menuentry): Add grub_script_lexer_record_start, use the new commands.
18959 (if): Use the new commands.
18961 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
18963 2008-01-15 Robert Millan <rmh@aybabtu.com>
18965 * normal/menu.c (run_menu): Move timeout message from here ...
18966 (print_timeout): ... to here.
18967 (run_menu): Use print_timeout() once during initial draw to print
18968 the whole message, and again in every clock tick to update only
18969 the number of seconds.
18971 2008-01-15 Robert Millan <rmh@aybabtu.com>
18973 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
18974 actual size of `available' from grub_ieee1275_get_property(), and
18975 restrict parsing to that bound.
18977 2008-01-15 Christian Franke <franke@computer.org>
18979 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
18980 (argp_program_version): Remove variable.
18981 (argp_program_bug_address): Likewise.
18982 (options): Convert from struct argp_option to struct option.
18983 (struct arguments): Remove.
18984 (parse_opt): Remove.
18985 (usage): New function.
18986 (main): Replace struct args members by simple variables.
18987 Replace argp_parse() by getopt_long().
18988 Add switch to evaluate options.
18989 Add missing "(...)" around root_dev in prefix string.
18991 2008-01-14 Robert Millan <rmh@aybabtu.com>
18993 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
18994 for grub_ieee1275_exit(), in order to improve portability.
18996 2008-01-14 Robert Millan <rmh@aybabtu.com>
18998 * util/grub.d/10_linux.in (prefix): Define.
18999 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
19001 2008-01-13 Pavel Roskin <proski@gnu.org>
19003 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
19004 grub_errno if no errors have been detected.
19006 2008-01-12 Robert Millan <rmh@aybabtu.com>
19008 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
19009 (grub_util_get_dev_abstraction): New function prototype.
19011 * util/getroot.c: Include `<grub/util/getroot.h>'
19012 (grub_util_get_grub_dev): Move detection of abstraction type to ...
19013 (grub_util_get_dev_abstraction): ... here (new function).
19015 * util/grub-probe.c: Convert PRINT_* to an enum. Add
19016 `PRINT_ABSTRACTION'.
19017 (probe): Probe for abstraction type when requested.
19018 (main): Understand `--target=abstraction'.
19020 * util/i386/efi/grub-install.in: Add abstraction module to core
19021 image when it is found to be necessary.
19022 * util/i386/pc/grub-install.in: Likewise.
19023 * util/powerpc/ieee1275/grub-install.in: Likewise.
19025 * util/update-grub_lib.in (font_path): Return system path without
19026 converting to GRUB path.
19027 * util/update-grub.in: Convert system path returned by font_path()
19028 to a GRUB path. Use `grub-probe -t abstraction' to determine what
19029 abstraction module is needed for loading fonts (if any). Export
19030 that as `GRUB_PRELOAD_MODULES'.
19031 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
19034 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
19036 Remove some unused code from reiserfs.
19038 * fs/reiserfs.c (struct grub_reiserfs_key)
19039 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
19040 (struct grub_reiserfs_node_body): Removed.
19041 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19043 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19045 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19047 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19049 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19051 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
19053 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19054 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19055 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19057 2008-01-10 Robert Millan <rmh@aybabtu.com>
19059 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
19060 Determines if a file is garbage left by packaging systems, etc.
19061 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
19062 for processing /etc/grub.d scripts.
19063 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
19064 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
19065 as a condition for processing Linux images.
19067 2008-01-10 Pavel Roskin <proski@gnu.org>
19069 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
19070 to compile reiserfs.c on PowerPC.
19072 2008-01-10 Robert Millan <rmh@aybabtu.com>
19074 * kern/device.c (grub_device_iterate): Do not abort device iteration
19075 when one of the devices cannot be opened.
19076 * kern/disk.c (grub_disk_open): Do not account previous failures of
19077 unrelated functions when grub_errno is checked for.
19079 2008-01-08 Robert Millan <rmh@aybabtu.com>
19081 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
19082 `! grub_linux_is_bzimage', change order of address comparison to make
19083 it more intuitive, and improve "too big zImage" error message.
19085 2008-01-08 Robert Millan <rmh@aybabtu.com>
19087 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
19088 `$(update-grub_DATA)'.
19089 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
19092 2008-01-07 Robert Millan <rmh@aybabtu.com>
19094 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
19095 which instruction is modified by grub-setup during installation
19096 (since it wasn't obvious by only looking at this file).
19098 2008-01-07 Robert Millan <rmh@aybabtu.com>
19100 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
19101 listing actual TODO items.
19103 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19105 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
19107 (grub_reiserfs_get_key_offset): Likewise.
19108 (grub_reiserfs_set_key_offset): Likewise.
19109 (grub_reiserfs_set_key_type): Likewise.
19110 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
19112 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
19113 better to remove the bitfield version completely.
19115 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19117 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
19118 allocated from the heap, due to the fshelp implementation.
19119 (grub_reiserfs_dir): Free NODE, due to the same reason.
19121 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19123 Mostly from Vincent Pelletier:
19125 * fs/reiserfs.c: New file.
19127 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
19128 (reiserfs_mod_SOURCES): New variable.
19129 (reiserfs_mod_CFLAGS): Likewise.
19130 (reiserfs_mod_LDFLAGS): Likewise.
19132 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
19133 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
19134 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
19137 2008-01-06 Robert Millan <rmh@aybabtu.com>
19139 * normal/color.c: Remove `<grub/env.h>'.
19141 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
19143 * include/grub/normal.h: Include <grub/env.h>.
19145 2008-01-05 Robert Millan <rmh@aybabtu.com>
19147 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
19148 usage example with `(hd0,1)'.
19149 Reported by Samuel Thibault.
19151 2008-01-05 Robert Millan <rmh@aybabtu.com>
19153 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
19154 (grub_linux_boot_zimage): Rename to ...
19155 (grub_linux_boot): ... this.
19156 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
19157 (grub_linux_boot_zimage): Conditionalize zImage copy.
19159 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
19160 (grub_linux_boot_bzimage): Remove prototype.
19161 (grub_linux_boot_zimage): Rename to ...
19162 (grub_linux_boot): ... this.
19164 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
19165 (grub_linux_boot): Remove function.
19167 2008-01-05 Robert Millan <rmh@aybabtu.com>
19169 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
19170 (grub_env_write_color_highlight): Likewise.
19171 (grub_wait_after_message): Likewise.
19173 * normal/color.c: New file.
19175 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19176 (normal_mod_DEPENDENCIES): Likewise.
19178 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19179 (normal_mod_DEPENDENCIES): Likewise.
19181 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19182 (normal_mod_DEPENDENCIES): Likewise.
19184 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19185 (normal_mod_DEPENDENCIES): Likewise.
19187 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
19188 for waiting after a message is printed.
19189 * normal/main.c (read_config_file): Likewise.
19190 (grub_normal_init): Register grub_env_write_color_normal() and
19191 grub_env_write_color_highlight() hooks. Mark `color_normal' and
19192 `color_highlight' variables as global.
19194 * normal/menu.c (grub_wait_after_message): New function.
19195 (grub_color_menu_normal): New variable. Replaces ...
19196 (GRUB_COLOR_MENU_NORMAL): ... this macro.
19197 (grub_color_menu_highlight): New variable. Replaces ...
19198 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
19199 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
19200 `GRUB_TERM_COLOR_STANDARD'.
19201 (print_message): Use `grub_setcolorstate' to reload colors. Rename
19202 `normal_code' and `highlight_code' to `old_color_normal' and
19203 `old_color_highlight', respectively.
19204 (grub_menu_init_page): Update colors when drawing the menu, based on
19205 `menu_color_normal' and `menu_color_highlight' variables.
19206 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
19207 a message is printed.
19209 2008-01-05 Robert Millan <rmh@aybabtu.com>
19211 * kern/env.c (grub_env_context_open): Propagate hooks for global
19212 variables to new context.
19214 * kern/main.c (grub_set_root_dev): Export `root' variable.
19216 2008-01-05 Robert Millan <rmh@aybabtu.com>
19218 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
19219 discs unconditionally, since udev and others have options to provide
19222 2008-01-05 Robert Millan <rmh@aybabtu.com>
19224 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
19226 2008-01-04 Christian Franke <franke@computer.org>
19228 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
19231 2008-01-03 Pavel Roskin <proski@gnu.org>
19233 * kern/i386/linuxbios/init.c: Put "void" to all function
19234 declarations with no arguments.
19235 * kern/powerpc/ieee1275/init.c: Likewise.
19236 * term/i386/pc/at_keyboard.c: Likewise.
19237 * term/i386/pc/vga_text.c: Likewise.
19238 * util/grub-mkdevicemap.c: Likewise.
19240 2008-01-02 Robert Millan <rmh@aybabtu.com>
19242 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
19243 message when loaded image is out of bounds.
19244 (grub_multiboot_load_elf64): Likewise.
19246 2008-01-02 Pavel Roskin <proski@gnu.org>
19248 * util/grub.d/10_linux.in: Try version without ".old" when
19249 looking for initrd. It's better to use initrd from the newer
19250 kernel of the same version than no initrd at all.
19252 2008-01-01 Robert Millan <rmh@aybabtu.com>
19254 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
19256 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
19258 * include/grub/video.h: Added grub_video_unmap_color and
19259 grub_video_get_active_render_target.
19260 (grub_video_adapter): Added unmap_color and get_active_render_target.
19262 * video/video.c: Added grub_video_unmap_color and
19263 grub_video_get_active_render_target.
19264 (grub_video_get_info): Changed method to accept NULL pointer as an
19265 argument to allow detection of active video adapter.
19267 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
19268 grub_video_vbe_unmap_color_int.
19269 Added grub_video_vbe_unmap_color and
19270 grub_video_vbe_get_active_render_target.
19271 (grub_video_vbe_adapter): Added unmap_color and
19272 get_active_render_target.
19274 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
19275 with grub_video_vbe_unmap_color_int.
19277 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
19278 (DEFAULT_NORMAL_COLOR): Likewise.
19279 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
19280 (DEFAULT_FG_COLOR): Removed.
19281 (DEFAULT_BG_COLOR): Likewise.
19282 (DEFAULT_CURSOR_COLOR): Changed value.
19283 (grub_virtual_screen): Added standard_color_setting,
19284 normal_color_setting, highlight_color_setting and term_color.
19285 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
19286 (bitmap_width): Added.
19287 (bitmap_height): Likewise.
19288 (bitmap): Likewise.
19289 (set_term_color): Likewise.
19290 (grub_virtual_screen_setup): Changed to use new terminal coloring
19292 (grub_gfxterm_init): Added init for bitmap.
19293 (grub_gfxterm_fini): Added destroy for bitmap.
19294 (redraw_screen_rect): Updated to use background bitmap and new
19296 (scroll_up): Added optimization for case when there is no bitmap.
19297 (grub_gfxterm_cls): Fixed to use correct background color.
19298 (grub_virtual_screen_setcolorstate): Changed to use new terminal
19300 (grub_virtual_screen_setcolor): Likewise.
19301 (grub_virtual_screen_getcolor): Added.
19302 (grub_gfxterm_background_image_cmd): Likewise.
19303 (grub_video_term): Added setcolor and getcolor.
19304 (MOD_INIT): Added registration of background_image command.
19305 (MOD_TERM): Added unregistration for background_image command.
19307 2007-12-30 Pavel Roskin <proski@gnu.org>
19309 * loader/multiboot_loader.c: Fix multiboot command
19310 unregistration. Fix all typos in the word "multiboot".
19312 2007-12-29 Pavel Roskin <proski@gnu.org>
19314 * util/grub.d/10_linux.in: Refactor search for initrd. Add
19315 support for initrd names used in Fedora.
19317 2007-12-26 Bean <bean123ch@gmail.com>
19319 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
19320 (cpio_mod_SOURCES): New variable.
19321 (cpio_mod_CFLAGS): Likewise.
19322 (cpio_mod_LDFLAGS): Likewise.
19324 * fs/cpio.c: New file.
19326 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
19328 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19330 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19332 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19334 2007-12-25 Robert Millan <rmh@aybabtu.com>
19336 * include/grub/term.h (struct grub_term): Add `getcolor' function.
19337 (grub_getcolor): New function.
19339 * kern/term.c (grub_getcolor): New function.
19340 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
19341 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
19342 (print_entry): Set normal and highlight colors to
19343 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
19344 respectively, before printing and restore them to old
19346 (grub_menu_init_page): Likewise. Fill an additional colored space
19347 that would otherwise be left blank.
19349 * term/efi/console.c (grub_console_getcolor): New function.
19350 (struct grub_console_term.getcolor): New variable.
19351 * term/i386/pc/console.c (grub_console_getcolor): New function.
19352 (struct grub_console_term.getcolor): New variable.
19353 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
19354 (struct grub_console_term.getcolor): New variable.
19356 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
19357 (struct grub_console_term.setcolor): Remove variable.
19358 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
19359 (struct grub_console_term.setcolor): Remove variable.
19360 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
19361 (struct grub_console_term.setcolor): Remove variable.
19362 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
19363 (struct grub_console_term.setcolor): Remove variable.
19365 2007-12-25 Robert Millan <rmh@aybabtu.com>
19367 * configure.ac: Search for possible unifont.hex locations, and
19368 define UNIFONT_HEX if found.
19370 * Makefile.in (UNIFONT_HEX): Define variable.
19371 (DATA): Rename to ...
19372 (PKGLIB): ... this. Update all users.
19373 (PKGDATA): New variable.
19374 (pkgdata_IMAGES): Rename to ...
19375 (pkglib_IMAGES): ... this. Update all users.
19376 (pkgdata_MODULES): Rename to ...
19377 (pkglib_MODULES): ... this. Update all users.
19378 (pkgdata_PROGRAMS): Rename to ...
19379 (pkglib_PROGRAMS): ... this. Update all users.
19380 (pkgdata_DATA): Rename to ...
19381 (pkglib_DATA): ... this. Update all users.
19382 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
19383 (unicode.pff, ascii.pff): New rules.
19384 (all-local): Add `$(PKGDATA)' dependency.
19385 (install-local): Process `$(PKGDATA)'.
19387 * util/update-grub_lib.in (font_path): Search for *.pff files in
19388 a few more locations, including `${pkgdata}'.
19390 2007-12-23 Robert Millan <rmh@aybabtu.com>
19392 Patch from Bean <bean123ch@gmail.com>:
19393 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
19396 2007-12-21 Bean <bean123ch@gmail.com>
19398 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
19399 (ntfscomp_mod_SOURCES): New variable.
19400 (ntfscomp_mod_CFLAGS): Likewise.
19401 (ntfscomp_mod_LDFLAGS): Likewise.
19403 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
19404 (grub_probe_SOURCES): Likewise.
19405 (grub_emu_SOURCES): Likewise.
19407 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19408 (grub_emu_SOURCES): Likewise.
19410 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19411 (grub_emu_SOURCES): Likewise.
19413 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19414 (grub_emu_SOURCES): Likewise.
19416 * fs/ntfs.c (grub_ntfscomp_func): New variable.
19417 (read_run_list): Renamed to grub_ntfs_read_run_list.
19418 (decomp_nextvcn): Moved to ntfscomp.c.
19419 (decomp_getch): Likewise.
19420 (decomp_get16): Likewise.
19421 (decomp_block): Likewise.
19422 (read_block): Likewise.
19423 (read_data): Partially moved to ntfscomp.c.
19424 (fixup): Change unsigned to grub_uint16_t.
19425 (read_mft): Change unsigned long to grub_uint32_t.
19426 (read_attr): Likewise.
19427 (read_data): Likewise.
19428 (read_run_data): Likewise.
19429 (read_run_list): Likewise.
19430 (read_mft): Likewise.
19432 * fs/ntfscomp.c: New file.
19434 * include/grub/ntfs.h: New file.
19436 2007-12-16 Robert Millan <rmh@aybabtu.com>
19438 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
19439 IDE disk check, since Linux is known to support 20 IDE disks.
19440 Reported by Colin Watson.
19442 2007-12-15 Bean <bean123ch@gmail.com>
19444 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
19445 (lnxboot_img_SOURCES): New variable.
19446 (lnxboot_img_ASFLAGS): Likewise.
19447 (lnxboot_img_LDFLAGS): Likewise.
19449 * boot/i386/pc/lnxboot.S: New file.
19451 2007-11-24 Pavel Roskin <proski@gnu.org>
19453 * configure.ac: Test if '--build-id=none' is supported by the
19454 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
19455 objcopy to generate incorrect binary files (binutils
19456 2.17.50.0.18-1 as shipped by Fedora 8).
19457 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
19458 linking, so that build ID doesn't break the test.
19460 2007-11-24 Pavel Roskin <proski@gnu.org>
19462 * include/grub/i386/time.h: use "void" in the argument list
19463 of grub_cpu_idle().
19464 * include/grub/powerpc/time.h: Likewise.
19465 * include/grub/sparc64/time.h: Likewise.
19467 2007-11-18 Christian Franke <franke@computer.org>
19469 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
19470 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
19471 This fixes the problem that function keys did not work in grub-emu.
19473 2007-11-18 Christian Franke <franke@computer.org>
19475 * disk/host.c (grub_host_open): Remove attribute unused from
19476 name parameter. Add check for "host". This fixes the problem
19477 that grub-emu does not find partitions.
19479 2007-11-18 Christian Franke <franke@computer.org>
19481 * util/hostfs.c (is_dir): New function.
19482 (grub_hostfs_dir): Handle missing dirent.d_type case.
19483 (grub_hostfs_read): Add missing fseek().
19484 (grub_hostfs_label): Clear label pointer. This fixes a crash
19485 of grub-emu on "ls (host)".
19487 2007-11-18 Christian Franke <franke@computer.org>
19489 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
19490 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
19491 to 64 bit boundary by default.
19493 2007-11-18 Bean <bean123ch@gmail.com>
19495 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
19496 (hexdump_mod_SOURCES): New variable.
19497 (hexdump_mod_CFLAGS): Likewise.
19498 (hexdump_mod_LDFLAGS): Likewise.
19500 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19502 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19504 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19506 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19508 * include/grub/hexdump.h: New file.
19510 * commands/hexdump.c: New file.
19512 2007-11-10 Robert Millan <rmh@aybabtu.com>
19514 * commands/i386/pc/play.c (beep_off): Switch order of arguments
19515 in grub_outb() calls.
19516 (beep_on): Likewise.
19518 2007-11-10 Christian Franke <franke@computer.org>
19520 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
19521 (grub_menu_run): Likewise.
19523 2007-11-10 Robert Millan <rmh@aybabtu.com>
19525 * include/grub/i386/efi/machine.h: New file.
19526 * include/grub/i386/linuxbios/machine.h: Likewise.
19527 * include/grub/i386/pc/machine.h: Likewise.
19528 * include/grub/powerpc/ieee1275/machine.h: Likewise.
19529 * include/grub/sparc64/ieee1275/machine.h: Likewise.
19531 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
19532 (serial_hw_io_addr): New variable.
19533 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
19534 instead of `(unsigned short *) 0x400'.
19536 2007-11-10 Bean <bean123ch@gmail.com>
19538 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
19540 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
19542 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
19543 (vga_mod_SOURCES): Added.
19544 (vga_mod_CFLAGS): Likewise.
19545 (vga_mod_LDFLAGS): Likewise.
19547 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
19549 (set_map_mask): Likewise.
19550 (set_read_map): Likewise.
19551 (set_read_address): Likewise.
19552 (vga_font): Removed variable.
19553 (get_vga_glyph): Removed function.
19554 (invalidate_char): Likewise.
19555 (write_char): Changed to use grub_font_get_glyph() for font
19557 (grub_vga_putchar): Likewise.
19558 (grub_vga_getcharwidth): Likewise.
19560 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
19562 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
19564 (pxeboot_img_LDFLAGS): Likewise.
19565 (diskboot_img_LDFLAGS): Likewise.
19566 (kernel_img_LDFLAGS): Likewise.
19568 2007-11-06 Robert Millan <rmh@aybabtu.com>
19570 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
19571 in grub_outb() calls.
19572 (serial_hw_init): Likewise.
19574 2007-11-05 Robert Millan <rmh@aybabtu.com>
19576 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
19577 spaces. Skip non-regular files.
19579 2007-11-05 Robert Millan <rmh@aybabtu.com>
19581 * kern/disk.c (grub_disk_firmware_fini)
19582 (grub_disk_firmware_is_tainted): New variables.
19584 * include/grub/disk.h (grub_disk_firmware_fini)
19585 (grub_disk_firmware_is_tainted): Likewise.
19587 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
19588 (grub_disk_biosdisk_fini): ... to here.
19589 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
19590 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
19591 is set. Register grub_disk_biosdisk_fini() in
19592 `grub_disk_firmware_fini'.
19594 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
19595 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
19596 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
19597 to finish existing firmware disk interface.
19599 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
19600 (ata_mod_SOURCES): New variable.
19601 (ata_mod_CFLAGS): Likewise.
19602 (ata_mod_LDFLAGS): Likewise.
19604 2007-11-05 Robert Millan <rmh@aybabtu.com>
19606 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
19607 (grub_ata_wait): Reimplement using grub_millisleep().
19609 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
19610 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
19612 2007-11-03 Marco Gerards <marco@gnu.org>
19614 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
19615 (CRTC_ADDR_PORT): New macro.
19616 (CRTC_DATA_PORT): Likewise.
19617 (CRTC_CURSOR): Likewise.
19618 (CRTC_CURSOR_ADDR_HIGH): Likewise.
19619 (CRTC_CURSOR_ADDR_LOW): Likewise.
19620 (update_cursor): New function.
19621 (grub_console_real_putchar): Call `update_cursor'.
19622 (grub_console_gotoxy): Likewise.
19623 (grub_console_cls): Set the default color when clearing the
19625 (grub_console_setcursor): Implemented.
19627 2007-11-03 Marco Gerards <marco@gnu.org>
19629 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
19631 (grub_ata_pio_write): Likewise.
19633 (grub_atapi_identify): Wait after issuing an ATA command.
19634 (grub_atapi_packet): Likewise.
19635 (grub_ata_identify): Likewise.
19636 (grub_ata_readwrite): Likewise.
19638 2007-11-03 Marco Gerards <marco@gnu.org>
19640 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
19641 (grub_ata_pio_write): Likewise.
19642 (grub_ata_readwrite): Use `grub_error', instead of
19643 returning `grub_errno'.
19645 2007-11-03 Marco Gerards <marco@gnu.org>
19647 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
19648 grub_ata_pio_write once for every single sector, instead of for
19651 2007-10-31 Robert Millan <rmh@aybabtu.com>
19653 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
19655 * conf/i386-linuxbios.rmk: New file.
19657 * kern/i386/pc/hardware.c: Likewise.
19658 * term/i386/pc/at_keyboard.c: Likewise.
19659 * term/i386/pc/vga_text.c: Likewise.
19661 * include/grub/i386/linuxbios/boot.h: Likewise.
19662 * include/grub/i386/linuxbios/console.h: Likewise.
19663 * include/grub/i386/linuxbios/init.h: Likewise.
19664 * include/grub/i386/linuxbios/kernel.h: Likewise.
19665 * include/grub/i386/linuxbios/loader.h: Likewise.
19666 * include/grub/i386/linuxbios/memory.h: Likewise.
19667 * include/grub/i386/linuxbios/serial.h: Likewise.
19668 * include/grub/i386/linuxbios/time.h: Likewise.
19670 * kern/i386/linuxbios/init.c: Likewise.
19671 * kern/i386/linuxbios/startup.S: Likewise.
19672 * kern/i386/linuxbios/table.c: Likewise.
19674 2007-10-31 Marco Gerards <marco@gnu.org>
19676 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
19677 (ata_mod_SOURCES): New variable.
19678 (ata_mod_CFLAGS): Likewise.
19679 (ata_mod_LDFLAGS): Likewise.
19681 * disk/ata.c: New file.
19683 * include/grub/disk.h (grub_disk_dev_id): Add
19684 `GRUB_DISK_DEV_ATA_ID'.
19686 2007-10-31 Robert Millan <rmh@aybabtu.com>
19688 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
19689 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
19691 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
19692 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
19694 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
19697 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
19699 2007-10-27 Robert Millan <rmh@aybabtu.com>
19701 * include/grub/types.h (ULONG_MAX): Define macro.
19703 2007-10-22 Robert Millan <rmh@aybabtu.com>
19705 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
19707 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
19709 2007-10-22 Robert Millan <rmh@aybabtu.com>
19711 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
19712 (pkgdata_MODULES): Add `biosdisk.mod'.
19713 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
19716 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
19717 (grub_biosdisk_init): Replace with ...
19718 (GRUB_MOD_INIT(biosdisk)): ... this.
19719 (grub_biosdisk_fini): Replace with ...
19720 (GRUB_MOD_FINI(biosdisk)): ... this.
19722 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
19723 (grub_machine_init): Remove call to grub_biosdisk_init().
19724 (grub_machine_fini): Remove call to grub_machine_fini().
19726 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
19728 2007-10-22 Robert Millan <rmh@aybabtu.com>
19730 * include/grub/time.h: New file.
19731 * include/grub/i386/time.h: Likewise.
19732 * include/grub/powerpc/time.h: Likewise.
19733 * include/grub/sparc64/time.h: Likewise.
19735 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
19737 (KERNEL_MACHINE_TIME_HEADER): ... this.
19738 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
19740 (KERNEL_MACHINE_TIME_HEADER): ... this.
19741 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
19743 (KERNEL_MACHINE_TIME_HEADER): ... this.
19745 * kern/i386/efi/init.c: Include `<grub/time.h>'.
19746 (grub_millisleep): New function.
19747 * kern/i386/pc/init.c: Include `<grub/time.h>'.
19748 (grub_millisleep): New function.
19749 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
19750 Remove `grub/machine/time.h' include.
19751 (grub_millisleep): New function.
19752 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
19753 Remove `grub/machine/time.h' include.
19754 (grub_millisleep): New function.
19756 * include/grub/misc.h (grub_div_roundup): New function.
19758 * kern/misc.c: Include `<grub/time.h>'.
19759 (grub_millisleep_generic): New function.
19761 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
19763 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
19765 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
19766 `machine/time.h'. Add `time.h'.
19767 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
19769 2007-10-21 Robert Millan <rmh@aybabtu.com>
19771 * include/grub/misc.h (grub_max): New function.
19773 2007-10-21 Robert Millan <rmh@aybabtu.com>
19775 * util/misc.c (grub_util_info): Call fflush() before returning.
19777 2007-10-20 Robert Millan <rmh@aybabtu.com>
19779 * genmk.rb (Image): Copy `extra_flags' from here ...
19780 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
19782 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
19783 to `argc' and `args' arguments.
19785 2007-10-17 Robert Millan <rmh@aybabtu.com>
19787 * kern/i386/loader.S: New file.
19789 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
19790 * kern/i386/loader.S (grub_linux_prot_size)... to here.
19791 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
19792 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
19793 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
19794 * kern/i386/loader.S (grub_linux_real_addr)... to here.
19795 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
19796 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
19797 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
19798 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
19799 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
19800 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
19801 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
19802 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
19804 * kern/i386/realmode.S: New file.
19806 * kern/i386/pc/startup.S (protstack): Moved from here ...
19807 * kern/i386/realmode.S (protstack)... to here.
19808 * kern/i386/pc/startup.S (gdt): Moved from here ...
19809 * kern/i386/realmode.S (gdt)... to here.
19810 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
19811 * kern/i386/realmode.S (prot_to_real)... to here.
19813 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
19814 `kern/i386/realmode.S'.
19816 2007-10-17 Robert Millan <rmh@aybabtu.com>
19818 * include/grub/i386/loader.h: New file.
19820 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
19821 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
19822 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
19823 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
19824 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
19825 * include/grub/i386/loader.h (grub_linux_prot_size)
19826 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
19827 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
19828 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
19829 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
19831 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
19833 2007-10-15 Robert Millan <rmh@aybabtu.com>
19835 * normal/misc.c (grub_normal_print_device_info): Do not probe for
19836 filesystem when dev->disk is unset.
19837 Do probe for filesystem even when dev->disk->has_partitions is set.
19838 In case a filesystem is found, always report it.
19839 In case it isn't, if dev->disk->has_partitions is set, report that
19840 a partition table was found instead of reporting that no filesystem
19841 could be identified.
19843 2007-10-12 Robert Millan <rmh@aybabtu.com>
19845 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
19846 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
19848 * include/grub/types.h (grub_host_to_target16): New macro.
19849 (grub_host_to_target32): Likewise.
19850 (grub_host_to_target64): Likewise.
19851 (grub_target_to_host16): Likewise.
19852 (grub_target_to_host32): Likewise.
19853 (grub_target_to_host64): Likewise.
19855 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
19856 Renamed from to ...
19857 (GRUB_MOD_ALIGN): ...this. Update all users.
19859 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
19860 grub_host_to_target32.
19861 Replace grub_be_to_cpu32 with grub_target_to_host32.
19862 (load_modules): Likewise.
19863 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
19864 Replace grub_be_to_cpu32 with grub_target_to_host32.
19865 Replace grub_cpu_to_be16 with grub_host_to_target16.
19866 Replace grub_cpu_to_be32 grub_host_to_target32.
19868 2007-10-12 Robert Millan <rmh@aybabtu.com>
19870 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
19871 * util/elf/grub-mkimage.c: ... here.
19873 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
19874 `util/powerpc/ieee1275/grub-mkimage.c'.
19876 2007-10-07 Robert Millan <rmh@aybabtu.com>
19878 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
19879 and make it easier to figure out.
19880 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
19881 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
19882 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
19883 leave us with less than HEAP_MIN_SIZE total heap.
19884 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
19886 2007-10-03 Robert Millan <rmh@aybabtu.com>
19888 * include/grub/i386/io.h: New file.
19889 * commands/i386/pc/play.c (inb): Removed.
19891 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
19893 * term/i386/pc/serial.c (inb): Removed.
19895 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
19897 * term/i386/pc/vga.c (inb): Removed.
19899 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
19902 2007-10-02 Robert Millan <rmh@aybabtu.com>
19904 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
19905 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19906 Reported by Marcin Kurek.
19908 2007-09-07 Robert Millan <rmh@aybabtu.com>
19910 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
19911 SmartFirmware version updates (as released by Sven Luther), and avoid
19912 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
19913 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
19916 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
19918 From Hitoshi Ozeki:
19919 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
19920 when merging two regions.
19922 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
19924 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
19925 * normal/completion.c (grub_normal_do_completion): Likewise.
19926 Reported by Hitoshi Ozeki.
19928 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
19930 Do not use devices at boot in chainloading.
19932 * loader/i386/pc/chainloader.c (boot_drive): New variable.
19933 (boot_part_addr): Likewise.
19934 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
19935 with BOOT_DRIVE and BOOT_PART_ADDR.
19936 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
19937 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
19939 2007-08-29 Robert Millan <rmh@aybabtu.com>
19941 Patch from Simon Peter <dn.tlp@gmx.net>:
19942 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
19943 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
19944 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
19945 util/i386/pc/grub-setup.c_DEPENDENCIES.
19946 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
19947 util/grub-probe.c_DEPENDENCIES.
19948 * conf/powerpc-ieee1275.rmk: Likewise.
19950 2007-08-28 Robert Millan <rmh@aybabtu.com>
19952 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
19953 to tell grub-mkdevicemap how to name devices.
19954 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
19957 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
19958 util/i386/get_disk_name.c.
19959 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
19960 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
19961 util/ieee1275/get_disk_name.c.
19963 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
19965 * DISTLIST: Add util/i386/get_disk_name.c and
19966 util/ieee1275/get_disk_name.c.
19968 * util/grub-mkdevicemap.c: Replace device naming logic with
19969 grub_util_get_disk_name() calls.
19971 2007-08-20 Robert Millan <rmh@aybabtu.com>
19973 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
19974 (so that it works for both plural and singular quantities).
19976 2007-08-05 Robert Millan <rmh@aybabtu.com>
19978 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
19979 so that [xz] isn't taken into account when determining order.
19981 2007-08-02 Marco Gerards <marco@gnu.org>
19983 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
19984 `include/multiboot2.h', `include/grub/elfload.h',
19985 `include/multiboot.h', `include/grub/multiboot.h',
19986 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
19987 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
19988 `kern/elf.c', `loader/multiboot_loader.c',
19989 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
19990 `loader/i386/pc/multiboot2.c',
19991 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
19992 `util/i386/pc/grub-mkrescue.in'. Remove
19993 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
19994 `include/grub/i386/pc/util/biosdisk.h' and
19995 `include/grub/powerpc/ieee1275/multiboot.h'.
19997 2007-08-02 Bean <bean123ch@gmail.com>
19999 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
20000 (ntfs_mod_SOURCES): New variable.
20001 (ntfs_mod_CFLAGS): Likewise.
20002 (ntfs_mod_LDFLAGS): Likewise.
20004 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
20005 (grub_probe_SOURCES): Likewise.
20006 (grub_emu_SOURCES): Likewise.
20008 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20009 (grub_emu_SOURCES): Likewise.
20011 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20012 (grub_emu_SOURCES): Likewise.
20014 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
20016 * fs/ntfs.c: New file.
20018 2007-08-02 Bean <bean123ch@gmail.com>
20020 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
20022 * file.h (grub_file): Likewise.
20024 * fshelp.h (grub_fshelp_read_file): Likewise.
20026 * util/i386/pc/grub-setup.c (setup): Likewise.
20027 (save_first_sector): Likewise.
20028 (save_blocklists): Likewise.
20030 * fs/affs.c (grub_affs_read_file): Likewise.
20032 * fs/ext2.c (grub_ext2_read_file): Likewise.
20034 * fs/fat.c (grub_fat_read_data): Likewise.
20036 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
20038 * fs/hfs.c (grub_hfs_read_file): Likewise.
20040 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
20042 * fs/jfs.c (grub_jfs_read_file): Likewise.
20044 * fs/minix.c (grub_minix_read_file): Likewise.
20046 * fs/sfs.c (grub_sfs_read_file): Likewise.
20048 * fs/ufs.c (grub_ufs_read_file): Likewise.
20050 * fs/xfs.c (grub_xfs_read_file): Likewise.
20052 * command/blocklist.c (read_blocklist): Likewise.
20053 (print_blocklist): Likewise.
20055 2007-08-02 Marco Gerards <marco@gnu.org>
20057 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
20060 * disk/host.c: New file.
20062 * util/hostfs.c: Likewise.
20064 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
20065 return `GRUB_ERR_BAD_FS'.
20066 * fs/sfs.c (grub_sfs_mount): Likewise.
20067 * fs/xfs.c (grub_xfs_mount): Likewise.
20069 * include/grub/disk.h (enum grub_disk_dev_id): Add
20070 `GRUB_DISK_DEVICE_HOST_ID'.
20072 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
20074 2007-07-24 Jerone Young <jerone@gmail.com>
20076 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
20077 modules for compilation.
20078 * conf/powerpc-ieee1275.rmk: Likewise.
20080 * include/multiboot.h: Move multiboot definitions to one file. Rename
20081 many definitions to not get grub specific.
20082 * include/multiboot2.h: Create header with multiboot 2 definitions.
20083 * include/grub/multiboot.h: Header for grub specific function
20084 prototypes and definitions.
20085 * include/grub/multiboot2.h: Likewise.
20086 * include/grub/multiboot_loader.h: Likewise.
20087 * include/grub/i386/pc/multiboot.h: Removed.
20088 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
20090 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
20091 and 2 to allow for one multiboot and module commands.
20092 * loader/multiboot2.c: Add multiboot2 functionality.
20093 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
20094 and definition names.
20095 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
20097 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
20098 ieee1275 specific multiboot2 code.
20100 * kern/i386/pc/startup.S: Change headers and definition names for
20101 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
20103 2007-07-22 Robert Millan <rmh@aybabtu.com>
20105 * geninitheader.sh: Process file specified in first parameter rather
20106 than hardcoding grub_modules_init.lst.
20107 * geninit.sh: Likewise. Also, construct header name dynamically rather
20108 than hardcoding grub_modules_init.h.
20110 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
20111 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
20112 grub_probe_init.[ch] and grub_setup_init.[ch].
20114 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
20115 grub_modules_init.h with grub_emu_init.h.
20116 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
20117 grub_probe_init.[ch] files.
20118 * conf/i386-efi.rmk: Likewise.
20119 * conf/i386-pc.rmk: Likewise.
20120 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
20121 grub_setup_init.[ch] files.
20123 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
20124 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
20125 to initialize modules rather than a list of hardcoded functions.
20126 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
20127 grub_init_all() to initialize modules rather than a list of hardcoded
20130 2007-07-22 Robert Millan <rmh@aybabtu.com>
20132 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20133 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
20135 2007-07-22 Robert Millan <rmh@aybabtu.com>
20137 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
20138 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
20139 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
20140 flag when running on SmartFirmware.
20141 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
20142 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
20145 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
20146 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
20147 rather than decreasing it.
20149 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
20150 there's not enough space to do it, fail in the same way as when it
20151 can't be done because there are no partitions.
20153 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
20154 when nvsetenv failed.
20156 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20158 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
20159 because this rule is automatically generated.
20160 (grub-mkrescue): Removed for the same reason as above.
20162 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20164 Migrate to GNU General Public License Version 3.
20166 * COPYING: Replaced with the plain text version of GPLv3.
20168 * config.guess: Updated from gnulib.
20169 * config.sub: Likewise.
20171 * geninit.sh: Output a GPLv3 copyright notice.
20172 * geninitheader.sh: Likewise.
20173 * genmodsrc.sh: Likewise.
20174 * gensymlist.sh.in: Likewise.
20176 * boot/i386/pc/boot.S: Upgraded to GPLv3.
20177 * boot/i386/pc/diskboot.S: Likewise.
20178 * boot/i386/pc/pxeboot.S: Likewise.
20179 * commands/blocklist.c: Likewise.
20180 * commands/boot.c: Likewise.
20181 * commands/cat.c: Likewise.
20182 * commands/cmp.c: Likewise.
20183 * commands/configfile.c: Likewise.
20184 * commands/echo.c: Likewise.
20185 * commands/help.c: Likewise.
20186 * commands/ls.c: Likewise.
20187 * commands/search.c: Likewise.
20188 * commands/terminal.c: Likewise.
20189 * commands/test.c: Likewise.
20190 * commands/videotest.c: Likewise.
20191 * commands/i386/cpuid.c: Likewise.
20192 * commands/i386/pc/halt.c: Likewise.
20193 * commands/i386/pc/play.c: Likewise.
20194 * commands/i386/pc/reboot.c: Likewise.
20195 * commands/i386/pc/vbeinfo.c: Likewise.
20196 * commands/i386/pc/vbetest.c: Likewise.
20197 * commands/ieee1275/halt.c: Likewise.
20198 * commands/ieee1275/reboot.c: Likewise.
20199 * commands/ieee1275/suspend.c: Likewise.
20200 * disk/loopback.c: Likewise.
20201 * disk/lvm.c: Likewise.
20202 * disk/raid.c: Likewise.
20203 * disk/efi/efidisk.c: Likewise.
20204 * disk/i386/pc/biosdisk.c: Likewise.
20205 * disk/ieee1275/ofdisk.c: Likewise.
20206 * font/manager.c: Likewise.
20207 * fs/affs.c: Likewise.
20208 * fs/ext2.c: Likewise.
20209 * fs/fat.c: Likewise.
20210 * fs/fshelp.c: Likewise.
20211 * fs/hfs.c: Likewise.
20212 * fs/hfsplus.c: Likewise.
20213 * fs/iso9660.c: Likewise.
20214 * fs/jfs.c: Likewise.
20215 * fs/minix.c: Likewise.
20216 * fs/sfs.c: Likewise.
20217 * fs/ufs.c: Likewise.
20218 * fs/xfs.c: Likewise.
20219 * hello/hello.c: Likewise.
20220 * include/grub/acorn_filecore.h: Likewise.
20221 * include/grub/arg.h: Likewise.
20222 * include/grub/bitmap.h: Likewise.
20223 * include/grub/boot.h: Likewise.
20224 * include/grub/cache.h: Likewise.
20225 * include/grub/device.h: Likewise.
20226 * include/grub/disk.h: Likewise.
20227 * include/grub/dl.h: Likewise.
20228 * include/grub/elfload.h: Likewise.
20229 * include/grub/env.h: Likewise.
20230 * include/grub/err.h: Likewise.
20231 * include/grub/file.h: Likewise.
20232 * include/grub/font.h: Likewise.
20233 * include/grub/fs.h: Likewise.
20234 * include/grub/fshelp.h: Likewise.
20235 * include/grub/gzio.h: Likewise.
20236 * include/grub/hfs.h: Likewise.
20237 * include/grub/kernel.h: Likewise.
20238 * include/grub/loader.h: Likewise.
20239 * include/grub/lvm.h: Likewise.
20240 * include/grub/misc.h: Likewise.
20241 * include/grub/mm.h: Likewise.
20242 * include/grub/net.h: Likewise.
20243 * include/grub/normal.h: Likewise.
20244 * include/grub/parser.h: Likewise.
20245 * include/grub/partition.h: Likewise.
20246 * include/grub/pc_partition.h: Likewise.
20247 * include/grub/raid.h: Likewise.
20248 * include/grub/rescue.h: Likewise.
20249 * include/grub/script.h: Likewise.
20250 * include/grub/setjmp.h: Likewise.
20251 * include/grub/symbol.h: Likewise.
20252 * include/grub/term.h: Likewise.
20253 * include/grub/terminfo.h: Likewise.
20254 * include/grub/tparm.h: Likewise.
20255 * include/grub/types.h: Likewise.
20256 * include/grub/video.h: Likewise.
20257 * include/grub/efi/api.h: Likewise.
20258 * include/grub/efi/chainloader.h: Likewise.
20259 * include/grub/efi/console.h: Likewise.
20260 * include/grub/efi/console_control.h: Likewise.
20261 * include/grub/efi/disk.h: Likewise.
20262 * include/grub/efi/efi.h: Likewise.
20263 * include/grub/efi/pe32.h: Likewise.
20264 * include/grub/efi/time.h: Likewise.
20265 * include/grub/i386/linux.h: Likewise.
20266 * include/grub/i386/setjmp.h: Likewise.
20267 * include/grub/i386/types.h: Likewise.
20268 * include/grub/i386/efi/kernel.h: Likewise.
20269 * include/grub/i386/efi/loader.h: Likewise.
20270 * include/grub/i386/efi/time.h: Likewise.
20271 * include/grub/i386/pc/biosdisk.h: Likewise.
20272 * include/grub/i386/pc/boot.h: Likewise.
20273 * include/grub/i386/pc/chainloader.h: Likewise.
20274 * include/grub/i386/pc/console.h: Likewise.
20275 * include/grub/i386/pc/init.h: Likewise.
20276 * include/grub/i386/pc/kernel.h: Likewise.
20277 * include/grub/i386/pc/loader.h: Likewise.
20278 * include/grub/i386/pc/memory.h: Likewise.
20279 * include/grub/i386/pc/multiboot.h: Likewise.
20280 * include/grub/i386/pc/serial.h: Likewise.
20281 * include/grub/i386/pc/time.h: Likewise.
20282 * include/grub/i386/pc/vbe.h: Likewise.
20283 * include/grub/i386/pc/vbeblit.h: Likewise.
20284 * include/grub/i386/pc/vbefill.h: Likewise.
20285 * include/grub/i386/pc/vbeutil.h: Likewise.
20286 * include/grub/i386/pc/vga.h: Likewise.
20287 * include/grub/ieee1275/ieee1275.h: Likewise.
20288 * include/grub/ieee1275/ofdisk.h: Likewise.
20289 * include/grub/powerpc/libgcc.h: Likewise.
20290 * include/grub/powerpc/setjmp.h: Likewise.
20291 * include/grub/powerpc/types.h: Likewise.
20292 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
20293 * include/grub/powerpc/ieee1275/console.h: Likewise.
20294 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
20295 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20296 * include/grub/powerpc/ieee1275/loader.h: Likewise.
20297 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
20298 * include/grub/powerpc/ieee1275/time.h: Likewise.
20299 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
20300 * include/grub/sparc64/libgcc.h: Likewise.
20301 * include/grub/sparc64/setjmp.h: Likewise.
20302 * include/grub/sparc64/types.h: Likewise.
20303 * include/grub/sparc64/ieee1275/console.h: Likewise.
20304 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
20305 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20306 * include/grub/sparc64/ieee1275/time.h: Likewise.
20307 * include/grub/util/biosdisk.h: Likewise.
20308 * include/grub/util/getroot.h: Likewise.
20309 * include/grub/util/lvm.h: Likewise.
20310 * include/grub/util/misc.h: Likewise.
20311 * include/grub/util/raid.h: Likewise.
20312 * include/grub/util/resolve.h: Likewise.
20313 * io/gzio.c: Likewise.
20314 * kern/device.c: Likewise.
20315 * kern/disk.c: Likewise.
20316 * kern/dl.c: Likewise.
20317 * kern/elf.c: Likewise.
20318 * kern/env.c: Likewise.
20319 * kern/err.c: Likewise.
20320 * kern/file.c: Likewise.
20321 * kern/fs.c: Likewise.
20322 * kern/loader.c: Likewise.
20323 * kern/main.c: Likewise.
20324 * kern/misc.c: Likewise.
20325 * kern/mm.c: Likewise.
20326 * kern/parser.c: Likewise.
20327 * kern/partition.c: Likewise.
20328 * kern/rescue.c: Likewise.
20329 * kern/term.c: Likewise.
20330 * kern/efi/efi.c: Likewise.
20331 * kern/efi/init.c: Likewise.
20332 * kern/efi/mm.c: Likewise.
20333 * kern/i386/dl.c: Likewise.
20334 * kern/i386/efi/init.c: Likewise.
20335 * kern/i386/efi/startup.S: Likewise.
20336 * kern/i386/pc/init.c: Likewise.
20337 * kern/i386/pc/lzo1x.S: Likewise.
20338 * kern/i386/pc/startup.S: Likewise.
20339 * kern/ieee1275/ieee1275.c: Likewise.
20340 * kern/powerpc/cache.S: Likewise.
20341 * kern/powerpc/dl.c: Likewise.
20342 * kern/powerpc/ieee1275/cmain.c: Likewise.
20343 * kern/powerpc/ieee1275/crt0.S: Likewise.
20344 * kern/powerpc/ieee1275/init.c: Likewise.
20345 * kern/powerpc/ieee1275/openfw.c: Likewise.
20346 * kern/sparc64/cache.S: Likewise.
20347 * kern/sparc64/dl.c: Likewise.
20348 * kern/sparc64/ieee1275/init.c: Likewise.
20349 * kern/sparc64/ieee1275/openfw.c: Likewise.
20350 * loader/efi/chainloader.c: Likewise.
20351 * loader/efi/chainloader_normal.c: Likewise.
20352 * loader/i386/efi/linux.c: Likewise.
20353 * loader/i386/efi/linux_normal.c: Likewise.
20354 * loader/i386/pc/chainloader.c: Likewise.
20355 * loader/i386/pc/chainloader_normal.c: Likewise.
20356 * loader/i386/pc/linux.c: Likewise.
20357 * loader/i386/pc/linux_normal.c: Likewise.
20358 * loader/i386/pc/multiboot.c: Likewise.
20359 * loader/i386/pc/multiboot_normal.c: Likewise.
20360 * loader/powerpc/ieee1275/linux.c: Likewise.
20361 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
20362 * normal/arg.c: Likewise.
20363 * normal/cmdline.c: Likewise.
20364 * normal/command.c: Likewise.
20365 * normal/completion.c: Likewise.
20366 * normal/execute.c: Likewise.
20367 * normal/function.c: Likewise.
20368 * normal/lexer.c: Likewise.
20369 * normal/main.c: Likewise.
20370 * normal/menu.c: Likewise.
20371 * normal/menu_entry.c: Likewise.
20372 * normal/misc.c: Likewise.
20373 * normal/parser.y: Likewise.
20374 * normal/script.c: Likewise.
20375 * normal/i386/setjmp.S: Likewise.
20376 * normal/powerpc/setjmp.S: Likewise.
20377 * normal/sparc64/setjmp.S: Likewise.
20378 * partmap/acorn.c: Likewise.
20379 * partmap/amiga.c: Likewise.
20380 * partmap/apple.c: Likewise.
20381 * partmap/gpt.c: Likewise.
20382 * partmap/pc.c: Likewise.
20383 * partmap/sun.c: Likewise.
20384 * term/gfxterm.c: Likewise.
20385 * term/terminfo.c: Likewise.
20386 * term/efi/console.c: Likewise.
20387 * term/i386/pc/console.c: Likewise.
20388 * term/i386/pc/serial.c: Likewise.
20389 * term/i386/pc/vesafb.c: Likewise.
20390 * term/i386/pc/vga.c: Likewise.
20391 * term/ieee1275/ofconsole.c: Likewise.
20392 * util/biosdisk.c: Likewise.
20393 * util/console.c: Likewise.
20394 * util/genmoddep.c: Likewise.
20395 * util/getroot.c: Likewise.
20396 * util/grub-emu.c: Likewise.
20397 * util/grub-mkdevicemap.c: Likewise.
20398 * util/grub-probe.c: Likewise.
20399 * util/lvm.c: Likewise.
20400 * util/misc.c: Likewise.
20401 * util/raid.c: Likewise.
20402 * util/resolve.c: Likewise.
20403 * util/update-grub.in: Likewise.
20404 * util/update-grub_lib.in: Likewise.
20405 * util/grub.d/00_header.in: Likewise.
20406 * util/grub.d/10_hurd.in: Likewise.
20407 * util/grub.d/10_linux.in: Likewise.
20408 * util/i386/efi/grub-install.in: Likewise.
20409 * util/i386/efi/grub-mkimage.c: Likewise.
20410 * util/i386/pc/grub-install.in: Likewise.
20411 * util/i386/pc/grub-mkimage.c: Likewise.
20412 * util/i386/pc/grub-mkrescue.in: Likewise.
20413 * util/i386/pc/grub-setup.c: Likewise.
20414 * util/i386/pc/misc.c: Likewise.
20415 * util/powerpc/ieee1275/grub-install.in: Likewise.
20416 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
20417 * util/powerpc/ieee1275/misc.c: Likewise.
20418 * video/bitmap.c: Likewise.
20419 * video/video.c: Likewise.
20420 * video/i386/pc/vbe.c: Likewise.
20421 * video/i386/pc/vbeblit.c: Likewise.
20422 * video/i386/pc/vbefill.c: Likewise.
20423 * video/i386/pc/vbeutil.c: Likewise.
20424 * video/readers/tga.c: Likewise.
20426 2007-07-02 Robert Millan <rmh@aybabtu.com>
20428 * conf/i386-efi.rmk: Replace obsolete reference to
20429 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
20430 with util/getroot.c.
20431 * conf/powerpc-ieee1275.rmk: Likewise.
20432 * conf/sparc64-ieee1275.rmk: Likewise.
20434 * util/grub-emu.c (main): Fix unchecked pointer handling.
20436 2007-07-02 Robert Millan <rmh@aybabtu.com>
20438 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
20439 invocation to fail, in order to support partition-less media.
20441 * util/i386/pc/grub-install.in: Likewise.
20443 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
20444 which fs or partmap modules are needed (akin to its sister scripts).
20446 Also use grub-probe to get rid of unportable /proc/mounts check.
20448 Print the same informational message that the other scripts do, before
20451 2007-06-23 Robert Millan <rmh@aybabtu.com>
20453 * util/update-grub_lib.in (font_path): New function. Determine whether
20454 a font file can be found and, if so, echo the GRUB path to it.
20456 * util/update-grub.in: Handle multiple terminals depending on user
20457 input, platform availability and font file presence. Propagate
20458 variables of our findings to /etc/grub.d/ children.
20460 * util/grub.d/00_header.in: Handle multiple terminals, based on
20461 environment setup by update-grub.
20463 2007-06-23 Robert Millan <rmh@aybabtu.com>
20465 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
20467 2007-06-21 Robert Millan <rmh@aybabtu.com>
20469 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
20470 indicate end of data section in kernel image.
20471 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
20472 GRUB_KERNEL_MACHINE_DATA_END.
20474 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
20476 * kern/i386/efi/startup.S: Likewise.
20478 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
20479 during image generation. Implement --prefix option to override this
20481 * util/i386/efi/grub-mkimage.c: Likewise.
20483 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
20484 code to make path relative to its root into a separate function.
20486 * util/i386/pc/grub-install.in: Use newly provided
20487 make_system_path_relative_to_its_root() to convert ${grubdir}, then
20488 pass the result to grub-install --prefix.
20490 2007-06-13 Robert Millan <rmh@aybabtu.com>
20492 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
20493 DEFAULT_DEVICE_MAP.
20494 * util/grub-emu.c: Use above definitions from misc.h instead of
20496 * util/grub-mkdevicemap.c: Likewise.
20497 * util/i386/pc/grub-setup.c: Likewise.
20498 * util/grub-probe.c: Likewise.
20499 (probe): Abort with grub_util_error() when either
20500 grub_guess_root_device or grub_util_get_grub_dev fails.
20502 2007-06-12 Robert Millan <rmh@aybabtu.com>
20504 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
20505 "pager" assignment.
20506 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
20508 * util/grub-probe.c (probe): Likewise for "drive_name".
20510 2007-06-11 Robert Millan <rmh@aybabtu.com>
20512 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
20513 not just the cdrom one.
20515 2007-06-11 Robert Millan <rmh@aybabtu.com>
20517 * util/i386/pc/grub-mkrescue.in: Add "set -e".
20518 Add --pkglibdir=DIR option to override pkglibdir.
20519 Mention --image-type=TYPE in help output.
20520 Fix --grub-mkimage (it was a no-op).
20521 Abort gracefully when no parameter is given.
20523 2007-06-11 Robert Millan <rmh@aybabtu.com>
20525 * util/i386/pc/grub-mkrescue.in: New file.
20526 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
20527 * Makefile.in: Handle bin_SCRIPTS.
20529 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
20531 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
20532 list of video modes.
20534 2007-06-06 Robert Millan <rmh@aybabtu.com>
20536 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
20537 file doesn't exist, or if it is in a filesystem grub can't read.
20539 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
20540 not abort if GRUB_DRIVE could not be defined. Rearrange generated
20541 header comment to fit in 80 columns when the variables are resolved.
20543 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
20544 could be identified by update-grub. Remove redundant check for
20545 unifont.pff existence (since convert_system_path_to_grub_path now
20548 2007-06-04 Robert Millan <rmh@aybabtu.com>
20550 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
20552 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
20554 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
20556 2007-06-04 Robert Millan <rmh@aybabtu.com>
20558 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
20560 * include/grub/partition.h: Declare grub_apple_partition_map_init and
20561 grub_apple_partition_map_fini.
20564 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
20565 to access >2 TiB disks).
20567 Print disk->total_sectors with %llu instead of %lu, since this
20568 variable is always 64-bit (prevents wrong disk size from being displayed
20569 on either >2 TiB disk or big-endian CPU).
20571 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
20572 into a generic case that supports all (sane) partition maps.
20574 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
20577 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
20578 and grub_apple_partition_map_fini() after that.
20580 2007-06-01 Robert Millan <rmh@aybabtu.com>
20582 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
20584 * util/grub.d/00_header.in: Only enable gfxterm when
20585 convert_system_path_to_grub_path() succeeds.
20587 2007-05-20 Robert Millan <rmh@aybabtu.com>
20589 * util/update-grub_lib.in: New file.
20590 * DISTLIST: Add update-grub_lib.in.
20591 * conf/common.rmk: Generate update-grub_lib and install it in
20593 * Makefile.in: Add install routine for $(lib_DATA).
20595 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
20596 function provided by update-grub_lib to support arbitrary paths of
20598 * util/update-grub.in: Use convert_system_path_to_grub_path() to
20599 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
20601 2007-05-19 Robert Millan <rmh@aybabtu.com>
20603 * commands/i386/cpuid.c: New module.
20604 * DISTLIST: Add it.
20605 * conf/i386-efi.rmk: Enable cpuid.mod.
20606 * conf/i386-pc.rmk: Likewise.
20608 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
20610 * kern/disk.c (grub_disk_read): Check return value of
20613 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
20615 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
20617 * disk/raid.c (grub_raid_open): Likewise.
20619 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20621 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
20622 stack instead of on the heap.
20624 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
20625 before doing a read on it.
20627 * configure.ac: Only use -fno-stack-protector for the target
20630 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20632 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
20633 __attribute_ ((unused)) to mode_type argument.
20635 * util/getroot.c (grub_guess_root_device): Fix #endif.
20637 * kern/misc.c (memcmp): Fix prototype.
20639 * include/grub/partition.h [GRUB_UTIL]
20640 (grub_gpt_partition_map_init): Add prototype.
20641 (grub_gpt_partition_map_fini): Likewise.
20643 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
20644 at the right place.
20646 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
20647 (grub_fat_read_data): Likewise.
20648 (grub_fat_find_dir): Likewise.
20650 * font/manager.c (find_glyph): Make table a const.
20651 (grub_font_get_glyph): Remove bitmap from if statement.
20653 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
20655 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
20656 code, first search for device in /dev/mapper, then in /dev.
20657 (grub_util_get_grub_dev): New function.
20658 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
20660 * util/grub-probe.c (probe): Remove check for RAID, call
20661 grub_util_get_grub_dev() instead of
20662 grub_util_biosdisk_get_grub_dev().
20663 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
20664 grub_util_biosdisk_get_grub_dev().
20665 * util/i386/pc/grub-setup.c (main): Likewise.
20667 2007-05-16 Robert Millan <rmh@aybabtu.com>
20669 * DISTLIST: Update for the latest changes.
20670 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
20671 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
20672 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
20673 grub/util/biosdisk.h.
20674 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
20675 grub/util/biosdisk.h.
20677 2007-05-16 Robert Millan <rmh@aybabtu.com>
20679 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
20681 2007-05-16 Robert Millan <rmh@aybabtu.com>
20683 * util/i386/efi/grub-install.in: New.
20684 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
20685 newly added grub-install.
20686 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
20688 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
20689 grub/util/biosdisk.h.
20690 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
20691 grub/util/biosdisk.h.
20693 2007-05-16 Robert Millan <rmh@aybabtu.com>
20695 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
20696 * include/grub/util/biosdisk.h: ... here.
20697 * util/i386/pc/biosdisk.c: Moved to ...
20698 * util/biosdisk.c: ... here.
20699 * util/i386/pc/getroot.c: Moved to ...
20700 * util/getroot.c: ... here.
20701 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
20702 * util/grub-mkdevicemap.c: ... here.
20703 * util/i386/pc/grub-probe.c: Moved to ...
20704 * util/grub-probe.c: ... here.
20706 2007-05-15 Robert Millan <rmh@aybabtu.com>
20708 * util/update-grub.in: Remove duplicated line in grub.cfg header
20711 2007-05-13 Robert Millan <rmh@aybabtu.com>
20713 * util/update-grub.in: Fix a few assumptions about the devices holding
20714 /, /boot and /boot/grub being the same.
20715 * util/grub.d/00_header.in: Likewise.
20716 * util/grub.d/10_hurd.in: Likewise.
20717 * util/grub.d/10_linux.in: Likewise.
20719 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
20720 patterns. Use that to define the `.old' suffix as older than `'.
20722 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
20724 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
20725 the grub.cfg header message.
20727 2007-05-11 Robert Millan <rmh@aybabtu.com>
20729 * util/update-grub.in: Create device.map if it doesn't already exist,
20730 before attempting to run grub-probe.
20731 Check for grub-probe and grub-mkdevicemap with the same code
20732 grub-install is using.
20735 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
20737 * Makefile.in: Add the datarootdir autoconf variable.
20739 2007-05-09 Robert Millan <rmh@aybabtu.com>
20741 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
20742 fail gracefully if dev->disk->partition == NULL.
20744 2007-05-07 Robert Millan <rmh@aybabtu.com>
20746 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
20747 determine partition map module.
20748 * util/i386/pc/grub-install.in: Use this feature to decide which
20749 partition module to load, instead of hardcoding pc and gpt.
20751 2007-05-07 Robert Millan <rmh@aybabtu.com>
20753 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
20754 source directory differs from build directory.
20756 2007-05-05 Robert Millan <rmh@aybabtu.com>
20758 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
20761 2007-05-05 Robert Millan <rmh@aybabtu.com>
20763 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
20765 2007-05-05 Robert Millan <rmh@aybabtu.com>
20767 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
20768 command-line arguments via ${GRUB_CMDLINE_LINUX}.
20770 2007-05-05 Robert Millan <rmh@aybabtu.com>
20772 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
20773 (grub_probe_SOURCES): Likewise.
20774 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
20775 GPT and initialize dos_part and bsd_part accordingly.
20776 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
20778 (main): Activate gpt module for use during partition identification,
20779 and deactivate it afterwards.
20780 * util/i386/pc/grub-install.in: Add gpt module to core.img.
20781 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
20782 partition identification, and deactivate it afterwards.
20784 2007-05-05 Robert Millan <rmh@aybabtu.com>
20786 * term/i386/pc/console.c (grub_console_fini): Call
20787 grub_term_set_current() before grub_term_unregister().
20789 2007-05-04 Robert Millan <rmh@aybabtu.com>
20791 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
20792 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
20793 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
20794 and update-grub_DATA.
20795 * conf/common.rmk: Build and install update-grub components.
20796 * conf/common.mk: Regenerate.
20797 * util/update-grub.in: New. Core of update-grub.
20798 * util/grub.d/00_header.in: New. Generates grub.cfg header.
20799 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
20800 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
20801 * util/grub.d/README: New. Document grub.d directory layout.
20803 2007-05-01 Robert Millan <rmh@aybabtu.com>
20805 * util/grub-emu.c: Move initialization functions
20806 grub_util_biosdisk_init() and grub_init_all() before
20807 grub_util_biosdisk_get_grub_dev(), which relies on them.
20809 2007-04-19 Robert Millan <rmh@aybabtu.com>
20811 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
20814 2007-04-18 Jerone Young <jerone@gmail.com>
20816 * kernel/elf.c: Add missing parenthesis for conditional statement
20819 2007-04-10 Jerone Young <jerone@gmail.com>
20821 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
20822 continue on and look for device node with real device name.
20824 2007-04-10 Jerone Young <jerone@gmail.com>
20826 * configure.ac: Add argument for autoconf to use transformation
20828 * Makefile.in: Add autoconf package transformation code.
20829 * util/i386/pc/grub-install.in: Likewise.
20830 * util/powerpc/ieee1275/grub-install.in: Likewise.
20832 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
20834 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
20835 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
20836 (EXT2_REVISION): Likewise.
20837 (EXT2_INODE_SIZE): Likewise.
20838 (struct grub_ext2_block_group): Added a missing member
20840 (grub_ext2_read_inode): Divide by the inode size in a superblock
20841 instead of 128 to obtain INODES_PER_BLOCK.
20842 Use the macro EXT2_INODE_SIZE instead of directly using
20843 SBLOCK->INODE_SIZE.
20845 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
20847 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
20848 superblock instead of the structure size to compute an
20849 offset. This fixes the problem that GRUB could not read a
20850 filesystem when inode size is different from 128-byte.
20852 2007-03-05 Marco Gerards <marco@gnu.org>
20854 * normal/main.c (read_config_file): When "menu" is not set, create
20855 an initial context.
20857 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
20859 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
20860 (HEAP_LIMIT): New macro.
20861 (grub_claim_heap): Claim memory up to `heaplimit'.
20863 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
20865 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
20866 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
20867 (_start): Likewise.
20868 (grub_arch_modules_addr): Return address after `_end'.
20869 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
20870 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
20871 (add_segments): Calculate `_end' from phdr size and location.
20872 (ALIGN_UP): Moved to ...
20873 * include/grub/misc.h: here.
20874 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20876 (GRUB_IEEE1275_MODULE_BASE): Removed.
20878 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
20880 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
20883 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
20885 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
20887 (grub_elf64_load_hook_t): Likewise.
20888 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
20891 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
20893 * kern/mm.c: Update copyright.
20894 (grub_mm_debug): Correct syntax error.
20895 (grub_mm_dump_free): New function.
20896 (grub_debug_free): Call `grub_free'.
20897 * include/grub/mm.h: Update copyright.
20898 (grub_mm_dump_free): Add declaration.
20900 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
20902 * include/grub/ieee1275/ieee1275.h: Update copyright.
20903 * kern/powerpc/ieee1275/init.c: Likewise.
20904 * kern/powerpc/ieee1275/openfw.c: Likewise.
20906 * loader/powerpc/ieee1275/linux.c: Likewise.
20907 * include/grub/elfload.h: Likewise.
20908 * kern/elf.c: Likewise.
20909 (grub_elf32_load): Pass `base' and `size' parameters. Update all
20911 (grub_elf64_load): Likewise.
20912 (grub_elf32_load_segment): Move to a nested function.
20913 (grub_elf64_load_segment): Likewise.
20915 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
20917 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
20919 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
20920 (grub_heap_len): Likewise.
20921 (HEAP_SIZE): New macro.
20922 (grub_claim_heap): New function.
20923 (grub_machine_init): Don't claim heap directly. Call
20925 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
20926 (grub_available_iterate): New function.
20928 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
20930 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
20931 * configure.ac: Use it for testing the HOST and TARGET compilers.
20933 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
20935 * Makefile.in (enable_grub_emu): New variable.
20936 * configure.ac (--enable-grub-emu): New option.
20937 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
20938 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
20939 * conf/i386-pc.rmk: Likewise.
20940 * conf/powerpc-ieee1275.rmk: Likewise.
20941 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
20943 2006-12-12 Marco Gerards <marco@gnu.org>
20945 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
20947 * kern/env.c (grub_env_unset): Don't free the member `value' when
20948 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
20951 * normal/main.c (current_menu): Removed.
20952 (free_menu): Unset the `menu' environment variable.
20953 (grub_normal_menu_addentry): Make use of the environment variable
20954 `menu', instead of using the global `current_menu'. Allocate
20955 memory for the sourcecode of this entry.
20956 (read_config_file): New argument `nested', changed all callers.
20957 Only in the case of a new context, initialize a new menu. Set the
20958 `menu' environment variable.
20959 (grub_normal_execute): Don't set and unset the environment
20960 variable `menu' here anymore. Only free the menu when leaving the
20963 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
20966 2006-12-11 Marco Gerards <marco@gnu.org>
20968 * normal/menu_entry.c (run): Fix off by one bug so the last line
20969 is executed. Move the loader check to outside the loop.
20971 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
20973 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
20975 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
20977 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
20978 the number of sectors. Reported by Andrey Shuvikov
20979 <mr_hyro@yahoo.com>.
20981 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
20983 * kern/disk.c (grub_disk_read): When there is a read error, always
20984 try to read only the necessary data.
20986 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
20988 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
20990 [GRUB_UTIL] (grub_raid_fini): Likewise.
20991 [GRUB_UTIL] (grub_lvm_init): Likewise.
20992 [GRUB_UTIL] (grub_lvm_fini): Likewise.
20993 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
20994 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
20995 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
20996 and grub_raid_fini().
20998 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
21000 * include/grub/types.h (__unused): Rename to UNUSED.
21001 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
21002 (grub_elf64_size): Likewise.
21004 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21006 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
21007 grub_error_push and grub_error_pop in the error-handling path.
21008 (grub_elf32_load_segment): Only call grub_file_read with non-zero
21011 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21013 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
21014 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21015 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21016 (kernel_elf_SOURCES): Likewise.
21017 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
21018 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
21019 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21020 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21021 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
21022 (elf_mod_SOURCES): New variable.
21023 (elf_mod_CFLAGS): Likewise.
21024 (elf_mod_LDFLAGS): Likewise.
21025 * include/grub/types.h (__unused): New macro.
21026 * include/grub/elfload.h: New file.
21027 * kern/elf.c: Likewise.
21028 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
21029 (ELF32_LOADMASK): New macro.
21030 (ELF64_LOADMASK): Likewise.
21031 (vmlinux): Removed.
21032 (grub_linux_load32): New function.
21033 (grub_linux_load64): Likewise.
21034 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
21035 Use grub_elf_t instead of grub_file_t.
21037 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
21039 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
21040 `catch_result' to struct set_color_args.
21042 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
21044 * normal/menu.c: Include grub/script.h.
21045 * normal/menu_entry.c: Likewise.
21046 * include/grub/normal.h: Do not include grub/script.h.
21048 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21050 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
21052 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21054 * kern/disk.c (grub_disk_open): Print debug messages when opening a
21056 (grub_disk_close): Print debug messages when closing a disk.
21057 (grub_disk_read): Print debug messages when disk read fails.
21058 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
21060 * kern/partition.c: Include misc.h.
21061 (grub_partition_iterate): Print debug messages when detecting
21064 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21066 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
21068 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
21070 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
21072 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21073 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
21075 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
21077 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
21078 instead of sizeof(lv). Patch by Michael Guntsche.
21080 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
21082 * disk/lvm.c: Rename VGS to VG_LIST.
21083 (grub_lvm_iterate): Change VGS->LV to VG-LV.
21084 (grub_lvm_open): Likewise.
21085 Thanks to Michael Guntsche for finding this bug.
21087 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21089 * configure.ac (AC_INIT): Bumped to 1.95.
21091 2006-10-14 Robert Millan <rmh@aybabtu.com>
21093 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
21094 with "/dev/.static/dev/md".
21096 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21098 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
21099 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
21100 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
21101 DRIVE_NAME are always freed.
21103 * util/i386/pc/biosdisk.c (make_device_name): Add one into
21104 DOS_PART, as a DOS partition is counted from one instead of zero
21105 now. Reported by Robert Millan.
21107 2006-10-14 Robert Millan <rmh@aybabtu.com>
21109 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
21110 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
21111 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
21112 string returned by grub_guess_root_device.
21113 * util/i386/pc/grub-setup.c: Likewise.
21114 * util/i386/pc/grub-probefs.c: Likewise.
21116 * util/i386/pc/grub-probefs.c: Rename to ...
21117 * util/i386/pc/grub-probe.c: ... this.
21118 * DISTLIST: Remove grub-probefs, add grub-probe.
21119 * conf/i386-efi.rmk: Likewise.
21120 * conf/i386-pc.rmk: Likewise.
21121 * util/i386/pc/grub-install.in: Likewise.
21123 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
21124 choose which information we want to print.
21126 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21128 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
21129 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
21130 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
21131 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
21132 video/readers/tga.c and video/i386/pc/vbeutil.c.
21134 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
21136 Added support for RAID and LVM.
21138 * disk/lvm.c: New file.
21139 * disk/raid.c: Likewise.
21140 * include/grub/lvm.h: Likewise.
21141 * include/grub/raid.h: Likewise.
21142 * include/grub/util/lvm.h: Likewise.
21143 * include/grub/util/raid.h: Likewise.
21144 * util/lvm.c: Likewise.
21145 * util/raid.c: Likewise.
21147 * include/grub/disk.h (grub_disk_dev_id): Add
21148 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
21149 (grub_disk_get_size): New prototype.
21150 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
21151 returns a partition.
21152 (grub_disk_get_size): New function.
21154 * kern/i386/pc/init.c (make_install_device): Copy the prefix
21155 verbatim if grub_install_dos_part is -2.
21157 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
21160 * util/i386/pc/grub-setup.c (setup): New argument
21161 MUST_EMBED. Force embedding of GRUB when the argument is
21162 true. Close FILE before returning.
21163 (main): Add support for RAID and LVM.
21165 * conf/common.rmk: Add RAID and LVM modules.
21166 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
21168 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
21170 * kern/misc.c (grub_strstr): New function.
21171 * include/grub/misc.h (grub_strstr): New prototype.
21173 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
21175 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
21177 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
21179 * kern/misc.c (grub_strtoull): Guess the base only if not
21182 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21184 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
21187 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21189 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
21191 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
21192 Remove `flags' argument. All callers changed.
21193 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
21194 (IEEE1275_IHANDLE_INVALID): New variable.
21195 (IEEE1275_CELL_INVALID): New variable.
21196 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
21197 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
21198 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
21199 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
21200 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
21201 codes from Open Firmware. All callers updated.
21202 (grub_ieee1275_next_property): Directly return Open Firmware return
21204 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
21205 Standardize error checking from `grub_ieee1275_get_property'.
21206 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
21207 `devalias' to `aliases'. Correct comments. Consolidate error paths.
21209 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21211 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
21212 `instance_to_package_args' to `instance_to_path_args'.
21214 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
21215 `grub_ieee1275_chosen'.
21217 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
21218 `grub_ieee1275_interpret'.
21220 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21222 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
21224 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21226 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
21227 (__cmpdi): Likewise.
21229 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
21230 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
21233 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
21235 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
21236 to type `grub_ssize_t'.
21237 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
21239 2006-09-22 Marco Gerards <marco@gnu.org>
21241 * normal/script.c (grub_script_create_cmdmenu): Skip leading
21244 2006-09-22 Marco Gerards <marco@gnu.org>
21246 * commands/echo.c: New file.
21248 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
21250 * conf/common.rmk (echo_mod_SOURCES): New variable.
21251 (echo_mod_CFLAGS): Likewise.
21252 (echo_mod_LDFLAGS): Likewise.
21254 2006-09-22 Marco Gerards <marco@gnu.org>
21256 * normal/main.c (get_line): Malloc memory instead of using
21257 preallocated memory. Removed the arguments `cmdline' and
21258 `max_len'. Updated all callers.
21260 2006-09-22 Marco Gerards <marco@gnu.org>
21262 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
21263 (normal_mod_DEPENDENCIES): Likewise.
21265 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
21266 (normal_mod_DEPENDENCIES): Likewise.
21268 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
21270 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
21272 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
21274 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
21275 (normal_mod_DEPENDENCIES): Likewise.
21276 * conf/i386-pc.mk: Regenerate.
21277 * conf/i386-efi.mk: Likewise
21278 * conf/common.mk: Likewise.
21279 * conf/powerpc-ieee1275.mk: Likewise.
21280 * conf/sparc64-ieee1275.mk: Likewise.
21282 2006-09-22 Robert Millan <rmh@aybabtu.com>
21284 Sync with i386 version.
21285 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
21286 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
21288 2006-09-21 Robert Millan <rmh@aybabtu.com>
21290 Import from GRUB Legacy (lib/device.c):
21291 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
21292 (init_device_map) [__linux__]: Add support for I2O devices.
21294 2006-09-14 Marco Gerards <marco@gnu.org>
21296 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
21299 2006-09-14 Robert Millan <rmh@aybabtu.com>
21301 * util/i386/pc/grub-install.in: Skip menu.lst when removing
21304 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
21306 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
21307 before adding it to device.map.
21309 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
21311 * genmk.rb: Let GCC generate dependencies the first time it
21312 compiles a file; using the -MD option.
21313 * conf/common.mk: Regenerate.
21314 * conf/i386-pc.mk: Likewise.
21315 * conf/i386-efi.mk: Likewise.
21316 * conf/powerpc-ieee1275.mk: Likewise.
21317 * conf/sparc64-ieee1275.mk: Likewise.
21319 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
21321 Move the prototypes of grub_setjmp and grub_longjmp to
21322 cpu/setjmp.h, so that each architecture may specify different
21325 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
21326 (grub_longjmp): Likewise.
21327 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
21328 (grub_longjmp): Likewise.
21329 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
21330 (grub_longjmp): Likewise.
21332 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
21333 [!GRUB_UTIL] (grub_longjmp): Removed.
21335 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
21337 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
21338 "color!" method does not return any value.
21340 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21342 * include/grub/bitmap.h: New file.
21344 * include/grub/i386/pc/vbeutil.h: Likewise.
21346 * video/bitmap.c: Likewise.
21348 * video/readers/tga.c: Likewise.
21350 * video/i386/pc/vbeutil.c: Likewise.
21352 * commands/videotest.c: Code cleanup and updated to reflect to new
21355 * term/gfxterm.c: Likewise.
21357 * video/video.c: Likewise.
21359 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
21360 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
21361 (bitmap_mod_SOURCES): New entry.
21362 (bitmap_mod_CFLAGS): Likewise.
21363 (bitmap_mod_LDFLAGS): Likewise.
21364 (tga_mod_SOURCES): Likewise.
21365 (tga_mod_CFLAGS): Likewise.
21366 (tga_mod_LDFLAGS): Likewise.
21368 * include/grub/video.h (grub_video_blit_operators): New enum type.
21369 (grub_video_render_target): Changed as forward declaration and moved
21370 actual definition to be video driver specific.
21371 (grub_video_adapter.blit_bitmap): Added blitting operator.
21372 (grub_video_adapter.blit_render_target): Likewise.
21373 (grub_video_blit_bitmap): Likewise.
21374 (grub_video_blit_render_target): Likewise.
21376 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
21377 driver specific render target definition.
21378 (grub_video_vbe_map_rgba): Added driver internal helper.
21379 (grub_video_vbe_unmap_color): Updated to use
21380 grub_video_i386_vbeblit_info.
21381 (grub_video_vbe_get_video_ptr): Likewise.
21383 * include/grub/i386/pc/vbeblit.h
21384 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
21385 grub_video_i386_vbeblit_info.
21386 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
21387 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
21388 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
21389 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
21390 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
21391 (grub_video_i386_vbeblit_index_index): Likewise.
21392 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
21393 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
21394 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
21395 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
21397 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
21400 * video/i386/pc/vbeblit.c: Updated to reflect changes on
21401 include/grub/i386/pc/vbeblit.h.
21403 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
21404 Updated to use grub_video_i386_vbeblit_info.
21405 (grub_video_i386_vbefill_R8G8B8): Likewise.
21406 (grub_video_i386_vbefill_index): Likewise.
21407 (grub_video_i386_vbefill): Added generic filler.
21409 * video/i386/pc/vbefill.c: Updated to reflect changes on
21410 include/grub/i386/pc/vbefill.h.
21412 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
21413 grub_video_i386_vbeblit_info.
21414 (grub_video_vbe_unmap_color): Likewise.
21415 (grub_video_vbe_blit_glyph): Likewise.
21416 (grub_video_vbe_scroll): Likewise.
21417 (grub_video_vbe_draw_pixel): Removed function.
21418 (grub_video_vbe_get_pixel): Likewise.
21419 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
21420 updated code to use it.
21421 (common_blitter): Added common blitter for render target and bitmap.
21422 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
21423 (grub_video_vbe_blit_render_target): Likewise.
21425 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
21427 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
21428 is in text mode if there is no console control protocol instance
21431 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21433 * include/grub/video.h: Code cleanup.
21435 * include/grub/i386/pc/vbe.h: Likewise.
21437 * video/i386/pc/vbe.c: Likewise.
21439 * video/i386/pc/vbeblit.c: Likewise.
21441 * video/i386/pc/vbefill.c: Likewise.
21443 * video/video.c: Likewise. Also added more comments.
21445 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21447 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
21448 (struct grub_biosdisk_dap): Likewise.
21450 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
21451 linkage settings for all functions.
21453 2006-07-12 Marco Gerards <marco@gnu.org>
21455 * configure.ac (--enable-mm-debug): Fix typo.
21457 * genkernsyms.sh.in: Use proper quoting for `CC'.
21459 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
21461 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
21462 (normal_mod_ASFLAGS): Remove "-m32".
21464 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
21466 * util/misc.c: Include config.h.
21467 [!HAVE_MEMALIGN]: Do not include malloc.h.
21468 (grub_memalign): Use posix_memalign, if present. Then, use
21469 memalign, if present. Otherwise, emit an error.
21471 * util/grub-emu.c: Do not include malloc.h.
21473 * include/grub/util/misc.h: Include unistd.h. This is required for
21474 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
21475 D. Eades III <hde@foobar-qux.org>.
21477 * configure.ac (AC_GNU_SOURCE): Added.
21478 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
21481 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
21483 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
21484 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
21486 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
21488 * include/grub/types.h (grub_host_addr_t): Rename to
21489 grub_target_addr_t.
21490 (grub_host_off_t): Rename to grub_target_off_t.
21491 (grub_host_size_t): Rename to grub_target_size_t.
21492 (grub_host_ssize_t): Rename to grub_target_ssize_t.
21493 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
21495 * include/grub/kernel.h (struct grub_module_header): Change type
21496 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
21497 (grub_module_info): Likewise.
21499 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
21501 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
21502 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
21503 Velazquez <jesus.velazquez@gmail.com>.
21505 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
21507 Count partitions from 1 instead of 0 in the string representation
21508 of partitions. Still use 0-based internally.
21510 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
21511 (sun_partition_map_iterate): Use grub_partition_t instead of
21512 struct grub_partition *. Cast DESC->START_CYLINDER to
21513 grub_uint64_t after converting the endian.
21514 (sun_partition_map_probe): Subtract 1 for PARTNUM.
21515 (sun_partition_map_get_name): Add 1 to P->INDEX.
21517 * partmap/pc.c (grub_partition_parse): Subtract 1 for
21519 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
21521 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
21522 zero instead of one.
21523 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
21524 (gpt_partition_map_get_name): Add 1 into P->INDEX.
21526 * partmap/apple.c (apple_partition_map_iterate): Change the type
21527 of POS to unsigned.
21528 (apple_partition_map_probe): Subtract 1 for PARTNUM.
21529 (apple_partition_map_get_name): Add 1 into P->INDEX.
21531 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
21532 of POS to unsigned.
21533 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
21534 calculate the offset of a partition.
21535 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
21536 (amiga_partition_map_get_name): Add 1 into P->INDEX.
21538 * partmap/acorn.c (acorn_partition_map_find): Change the type of
21539 SECTOR to grub_disk_addr_t.
21540 (acorn_partition_map_iterate): Likewise.
21541 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
21542 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
21544 (acorn_partition_map_get_name): Add 1 into P->INDEX.
21546 * kern/i386/pc/init.c (make_install_device): Add 1 into
21547 GRUB_INSTALL_DOS_PART.
21549 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
21552 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
21554 Clean up the code to support 64-bit addressing in disks and
21555 files. This change is not enough for filesystems yet.
21557 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
21558 type of "start" to grub_uint64_t.
21559 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
21560 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
21561 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
21564 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
21565 to grub_disk_addr_t.
21567 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
21570 * partmap/pc.c (pc_partition_map_iterate): Likewise.
21572 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
21575 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
21577 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
21579 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
21581 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
21582 to grub_off_t, to detect an error from grub_file_seek.
21583 (grub_multiboot_load_elf32): Likewise.
21585 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
21586 maximum unsigned long value when an overflow is detected.
21587 (grub_strtoull): New function.
21588 (grub_divmod64): Likewise.
21589 (grub_lltoa): use grub_divmod64.
21591 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
21593 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
21594 the pointer to next character. Use grub_strtoull instead of
21596 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
21597 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
21600 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
21601 return value is signed.
21602 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
21603 test if OFFSET is less than zero, as OFFSET is unsigned now.
21605 * kern/disk.c (struct grub_disk_cache): Change the type of
21606 "sector" to grub_disk_addr_t.
21607 (grub_disk_cache_get_index): Change the type of SECTOR to
21608 grub_disk_addr_t. Calculate the hash with SECTOR casted to
21609 unsigned after shifting.
21610 (grub_disk_cache_invalidate): Change the type of SECTOR to
21612 (grub_disk_cache_unlock): Likewise.
21613 (grub_disk_cache_store): Likewise.
21614 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
21615 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
21616 grub_disk_addr_t and grub_uint64_t, respectively.
21617 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
21618 body, as the value of OFFSET is tweaked by
21619 grub_disk_check_range. Change the types of START_SECTOR, LEN and
21620 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
21622 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
21623 body, as the value of OFFSET is tweaked by
21624 grub_disk_check_range. Change the types of LEN and N to
21627 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
21628 and "saved_offset" to grub_off_t.
21629 (test_header): Cast BUF to char *.
21630 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
21632 (grub_gzio_read): Change the types of OFFSET and SIZE to
21633 grub_off_t and grub_size_t, respectively.
21635 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
21637 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
21638 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
21639 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
21640 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
21641 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
21643 * include/grub/types.h (grub_off_t): Unconditionally set to
21645 (grub_disk_addr_t): Changed to grub_uint64_t.
21647 * include/grub/partition.h (struct grub_partition): Change the
21648 types of "start", "len" and "offset" to grub_disk_addr_t,
21649 grub_uint64_t and grub_disk_addr_t, respectively.
21650 (grub_partition_get_start): Return grub_disk_addr_t.
21651 (grub_partition_get_len): Return grub_uint64_t.
21653 * include/grub/misc.h (grub_strtoull): New prototype.
21654 (grub_divmod64): Likewise.
21656 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
21657 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
21658 grub_off_t, respectively.
21659 All callers and references changed.
21661 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
21662 grub_size_t in "read".
21663 All callers and references changed.
21665 * include/grub/file.h (struct grub_file): Change the types of
21666 "offset" and "size" to grub_off_t and grub_off_t,
21667 respectively. Change the type of SECTOR to grub_disk_addr_t in
21669 (grub_file_read): Change the type of LEN to grub_size_t.
21670 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
21672 (grub_file_size): Return grub_off_t.
21673 (grub_file_tell): Likewise.
21674 All callers and references changed.
21676 * include/grub/disk.h (struct grub_disk_dev): Change the types of
21677 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
21679 (struct grub_disk): Change the type of "total_sectors" to
21680 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
21682 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
21683 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
21684 (grub_disk_write): Likewise.
21685 All callers and references changed.
21687 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
21688 char * for grub_strncmp to silence gcc.
21689 (grub_iso9660_mount): Likewise.
21690 (grub_iso9660_mount): Likewise.
21691 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
21693 (grub_iso9660_iterate_dir): Likewise.
21694 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
21696 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
21697 LEN to grub_disk_addr_t and grub_size_t, respectively.
21699 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
21701 * fs/jfs.c (grub_jfs_read_file): Likewise.
21703 * fs/minix.c (grub_jfs_read_file): Likewise.
21705 * fs/sfs.c (grub_jfs_read_file): Likewise.
21707 * fs/ufs.c (grub_jfs_read_file): Likewise.
21709 * fs/xfs.c (grub_jfs_read_file): Likewise.
21711 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
21712 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
21715 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
21716 BLKNR to -1 instead of returning GRUB_ERRNO.
21717 (grub_ext2_read_file): Change the types of SECTOR and
21718 LEN to grub_disk_addr_t and grub_size_t, respectively.
21720 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
21721 LEN to grub_disk_addr_t and grub_size_t, respectively.
21723 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
21726 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
21727 string. Do not cast SECTOR explicitly.
21729 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
21730 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
21731 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
21732 grub_disk_addr_t and grub_size_t, respectively. If the sector is
21733 over 2TB and LBA mode is not supported, raise an error.
21734 (get_safe_sectors): New function.
21735 (grub_biosdisk_read): Use get_safe_sectors.
21736 (grub_biosdisk_write): Likewise.
21738 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
21739 (grub_efidisk_write): Likewise.
21741 * disk/loopback.c (delete_loopback): Cosmetic changes.
21742 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
21744 (grub_loopback_open): Likewise.
21745 (grub_loopback_read): Likewise. Also, change the type of POS to
21746 grub_off_t, and fix the usage of grub_memset.
21748 * commands/i386/pc/play.c: Include grub/machine/time.h.
21750 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
21753 * commands/configfile.c: Include grub/env.h.
21755 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
21756 GRUB_ERRNO directly instead. Change the type of POS to
21757 grub_off_t. Follow the coding standard.
21759 * commands/blocklist.c: Include grub/partition.h.
21760 (grub_cmd_blocklist): Return an error if the underlying device is
21761 not a disk. Take the starting sector of a partition into account,
21762 if a partition is used.
21764 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
21766 (lba_mode): Support 64-bit addresses.
21767 (chs_mode): Likewise.
21768 (copy_buffer): Adapted to the new offsets of a length field and a
21770 (blocklist_default_start): Allocate 64-bit space.
21772 * boot/i386/pc/boot.S (force_lba): Removed.
21773 (boot_drive): Moved to under KERNEL_SECTOR.
21774 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
21776 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
21778 (lba_mode): Refactored to support a 64-bit address. More size
21780 (setup_sectors): Likewise.
21782 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
21784 * DISTLIST: Added include/grub/i386/linux.h. Removed
21785 include/grub/i386/pc/linux.h
21787 * configure.ac (AC_INIT): Bumped to 1.94.
21789 * config.guess: Updated from gnulib.
21790 * config.sub: Likewise.
21791 * install-sh: Likewise.
21792 * mkinstalldirs: Likewise.
21794 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
21796 * conf/common.rmk (grub_modules_init.lst): Depended on
21797 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
21800 * genmk.rb (PModule::rule): Reverted the previous change.
21802 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
21804 * conf/common.rmk (grub_modules_init.lst): Depends on
21805 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
21806 that the target does not exist before producing.
21807 (grub_modules_init.h): Remove the target before generating.
21808 (grub_emu_init.c): Likewise.
21810 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
21812 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
21814 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
21815 for the target-specific tests. Make sure that we also have the
21816 up-to-date target variables for those tests.
21818 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
21820 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
21821 (PModule::rule): Likewise.
21823 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
21825 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
21826 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
21827 target-specific flags should be prefixed.
21828 (PModule::rule): Likewise.
21830 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
21832 * configure.ac (CMP): Check if cmp is available explicitly.
21834 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
21836 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
21837 (target_cpu): New variable.
21838 (pkglibdir): Use target_cpu instead of host_cpu.
21840 * util/i386/pc/grub-install.in (host_cpu): Removed.
21841 (target_cpu): New variable.
21842 (pkglibdir): Use target_cpu instead of host_cpu.
21844 * util/genmoddep.c: Removed.
21846 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
21847 instead of GRUB_HOST_SIZEOF_VOID_P.
21848 * kern/dl.c: Likewise.
21850 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
21852 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
21853 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
21854 (GRUB_TARGET_SIZEOF_LONG): ... this.
21855 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
21856 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
21857 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
21859 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
21860 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
21861 (GRUB_TARGET_SIZEOF_LONG): ... this.
21862 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
21863 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
21864 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
21866 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
21867 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
21868 (GRUB_TARGET_SIZEOF_LONG): ... this.
21869 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
21870 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
21872 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
21873 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
21874 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
21875 instead of GRUB_HOST_SIZEOF_LONG.
21876 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
21877 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
21878 GRUB_CPU_WORDS_BIGENDIAN.
21879 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
21880 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
21883 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
21884 (genmoddep_SOURCES): Likewise.
21885 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
21886 (genmoddep_SOURCES): Likewise.
21887 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
21888 (genmoddep_SOURCES): Likewise.
21889 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
21891 (genmoddep_SOURCES): Likewise.
21893 * genmoddep.awk: New file.
21895 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
21896 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
21897 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
21898 (PModule::rule): Likewise.
21899 (Program::rule): Likewise.
21900 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
21901 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
21904 * configure.ac: Rewritten intensively to use host and target
21905 instead of build and host, respectively.
21907 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
21908 (host_cpu): Removed.
21909 (target_cpu): New variable.
21910 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
21911 (BUILD_CC): Removed.
21912 (BUILD_CFLAGS): Likewise.
21913 (BUILD_CPPFLAGS): Likewise.
21914 (TARGET_CC): New variable.
21915 (TARGET_CFLAGS): Likewise.
21916 (TARGET_CPPFLAGS): Likewise.
21917 (TARGET_LDFLAGS): Likewise.
21919 (include): Use target_cpu instead of host_cpu.
21920 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
21922 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
21924 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
21926 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
21927 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
21928 field 'false' to 'exec_on_false'.
21929 (grub_script_create_cmdif): Renamed argument names to reflect above
21932 * normal/execute.c (grub_script_execute_cmdif): Likewise.
21934 * normal/script.c (grub_script_create_cmdif): Likewise.
21936 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
21938 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
21940 (grub_hfsplus_btree_recptr): Likewise.
21941 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
21942 FILEBLOCK both to pass a block number and store next block
21944 (grub_hfsplus_read_block): Rewritten heavily to support an extent
21945 overflow file correctly. Specify errors appropriately, because
21946 fshelp expects that GRUB_ERRNO is set when fails. Reuse
21947 grub_hfsplus_btree_recptr to get the pointer to a found key.
21948 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
21951 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
21953 (_linux_mod_SOURCES): New variable.
21954 (_linux_mod_CFLAGS): Likewise.
21955 (_linux_mod_LDFLAGS): Likewise.
21956 (linux_mod_SOURCES): Likewise.
21957 (linux_mod_CFLAGS): Likewise.
21958 (linux_mod_LDFLAGS): Likewise.
21960 * DISTLIST: Added loader/i386/efi/linux.c,
21961 loader/i386/efi/linux_normal.c and
21962 include/grub/i386/efi/loader.h.
21964 * loader/i386/efi/linux.c: New file.
21965 * loader/i386/efi/linux_normal.c: Likewise.
21966 * include/grub/i386/efi/loader.h: Likewise.
21968 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
21970 * commands/blocklist.c: New file.
21972 * DISTLIST: Added commands/blocklist.c.
21974 * term/efi/console.c (grub_console_highlight_color): Use a lighter
21975 color for the background, and a darker color for the foreground.
21976 (grub_console_checkkey): Return READ_KEY.
21977 (grub_console_cls): Set the background to
21978 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
21980 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
21982 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
21983 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
21985 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
21988 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
21989 BG. The spec is wrong again.
21991 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
21993 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
21995 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
21996 commands/blocklist.c.
21997 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21999 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
22000 (blocklist_mod_SOURCES): New variable.
22001 (blocklist_mod_CFLAGS): Likewise.
22002 (blocklist_mod_LDFLAGS): Likewise.
22004 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
22006 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
22008 (lba_mode): Use %eax more intensively to reduce the code size.
22010 2006-05-20 Marco Gerards <marco@gnu.org>
22012 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
22014 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
22016 (script): Accept leading newlines.
22017 (newlines): New rule to describe 0 or more newlines.
22018 (commands): Accept `command' with trailing newline. Fixed the
22019 order in which arguments were passed to `grub_script_add_cmd'.
22020 Accept commands separated by newlines.
22021 (function): Changed to accept newlines.
22022 (menuentry) Rewritten.
22024 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
22025 front of the list, instead of to the end.
22027 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
22029 * util/i386/pc/grub-install.in (bindir): New variable.
22030 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
22031 Shaver <lbgwjl@gmail.com>.
22033 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
22035 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
22036 grub/machine/linux.h
22037 * loader/i386/pc/linux.c: Likewise.
22039 * include/grub/i386/pc/linux.h: Moved to ...
22040 * include/grub/i386/linux.h: ... here.
22042 * include/grub/i386/linux.h (struct linux_kernel_params): New
22045 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
22047 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
22049 (grub_video_vbe_blit_glyph): Likewise.
22050 (grub_video_vbe_blit_bitmap): Likewise.
22051 (grub_video_vbe_blit_render_target): Likewise.
22053 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
22055 * configure.ac (--with-platform): Properly quote the square
22058 2006-05-08 Marco Gerards <marco@gnu.org>
22060 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
22062 (kernel_elf_HEADERS): ...to this. Updated all users.
22063 (grubof_symlist.c): Renamed from this...
22064 (kernel_elf_symlist.c): ...to this. Updated all users.
22065 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22066 (grubof_SOURCES): Renamed from this...
22067 (kernel_elf_SOURCES): ...to this.
22068 (grubof_HEADERS): Renamed from this...
22069 (kernel_elf_HEADERS): ...to this.
22070 (grubof_CFLAGS): Renamed from this...
22071 (kernel_elf_CFLAGS): ...to this.
22072 (grubof_ASFLAGS): Renamed from this...
22073 (kernel_elf_ASFLAGS): ...to this.
22074 (grubof_LDFLAGS): Renamed from this...
22075 (kernel_elf_LDFLAGS): ...to this.
22077 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
22079 (kernel_elf_HEADERS): ...to this. Updated all users.
22080 (grubof_symlist.c): Renamed from this...
22081 (kernel_elf_symlist.c): ...to this. Updated all users.
22082 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22083 (grubof_SOURCES): Renamed from this...
22084 (kernel_elf_SOURCES): ...to this.
22085 (grubof_HEADERS): Renamed from this...
22086 (kernel_elf_HEADERS): ...to this.
22087 (grubof_CFLAGS): Renamed from this...
22088 (kernel_elf_CFLAGS): ...to this.
22089 (grubof_ASFLAGS): Renamed from this...
22090 (kernel_elf_ASFLAGS): ...to this.
22091 (grubof_LDFLAGS): Renamed from this...
22092 (kernel_elf_LDFLAGS): ...to this.
22094 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
22095 `kernel.elf' instead of `grubof'.
22097 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
22099 Add --with-platform to configure. Use pkglibdir instead of
22100 pkgdatadir. This is reported by Roger Leigh.
22102 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
22103 (host_vendor): Likewise.
22104 (host_os): Likewise.
22105 (pkgdatadir): Likewise.
22106 (platform): New variable.
22107 (pkglibdir): Likewise.
22108 Use PKGLIBDIR instead of PKGDATADIR.
22110 * util/i386/pc/grub-install.in (datadir): Removed.
22111 (host_vendor): Likewise.
22112 (host_os): Likewise.
22113 (pkgdatadir): Likewise.
22114 (platform): New variable.
22115 (pkglibdir): Likewise.
22116 Use PKGLIBDIR instead of PKGDATADIR.
22118 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
22119 instead of GRUB_DATADIR.
22121 * util/i386/pc/grub-mkimage.c (usage): Likewise.
22123 * util/i386/efi/grub-mkimage.c (usage): Likewise.
22126 * configure.ac (--with-platform): New option.
22127 Use PLATFORM instead of HOST_VENDOR to specify a platform.
22129 * Makefile.in: Include a makefile based on PLATFORM instead of
22131 (pkgdatadir): Not appended by the machine type.
22132 (pkglibdir): Appended by the machine type.
22133 (host_vendor): Removed.
22134 (platform): New variable.
22135 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
22136 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
22137 (uninstall): Likewise.
22139 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
22141 Use the environment context in the menu. Remove the commands
22142 "default" and "timeout", and use variables instead.
22144 * normal/menu.c: Include grub/env.h.
22145 (print_entry): Cast TITLE to silence gcc.
22146 (get_timeout): New function.
22147 (set_timeout): Likewise.
22148 (get_entry_number): Likewise.
22149 (run_menu): Use a default entry, a fallback entry and a timeout
22150 in the environment variables "default", "fallback" and
22151 "timeout". Also, tweak the default entry if it is not within the
22152 current menu entries.
22153 (grub_menu_run): Use a fallback entry in the environment variable
22156 * normal/main.c (read_config_file): Do not initialize
22157 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
22159 (grub_normal_execute): Use a data slot to store the menu.
22161 * include/grub/normal.h (struct grub_menu): Removed default_entry,
22162 fallback_entry and timeout.
22163 (struct grub_menu_list): Removed.
22164 (grub_menu_list_t): Likewise.
22165 (struct grub_context): Likewise.
22166 (grub_context_t): Likewise.
22167 (grub_context_get): Likewise.
22168 (grub_context_get_current_menu): Likewise.
22169 (grub_context_push_menu): Likewise.
22170 (grub_context_pop_menu): Likewise.
22171 (grub_default_init): Likewise.
22172 (grub_default_fini): Likewise.
22173 (grub_timeout_init): Likewise.
22174 (grub_timeout_fini): Likewise.
22176 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
22178 (normal_mod_SOURCES): Removed normal/context.c.
22180 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
22181 commands/default.c, commands/timeout.c and normal/context.c.
22182 (normal_mod_SOURCES): Removed normal/context.c.
22184 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
22185 commands/timeout.c and normal/context.c.
22186 (normal_mod_SOURCES): Removed normal/context.c.
22188 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
22189 commands/default.c, commands/timeout.c and normal/context.c.
22190 (normal_mod_SOURCES): Removed normal/context.c.
22192 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
22194 (default_mod_SOURCES): Removed.
22195 (default_mod_CFLAGS): Likewise.
22196 (default_mod_LDFLAGS): Likewise.
22197 (timeout_mod_SOURCES): Removed.
22198 (timeout_mod_CFLAGS): Likewise.
22199 (timeout_mod_LDFLAGS): Likewise.
22201 * DISTLIST: Removed commands/default.c, commands/timeout.c and
22204 * commands/default.c: Removed.
22205 * commands/timeout.c: Likewise.
22206 * normal/context.c: Likewise.
22208 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
22210 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
22212 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
22214 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
22215 "next" to "prev" for readability.
22216 (struct grub_env_sorted_var): New struct.
22217 (grub_env_context): Renamed to ...
22218 (initial_context): ... this.
22219 (grub_env_var_context): Renamed to ...
22220 (current_context): ... this.
22221 (grub_env_find): Look only at CURRENT_CONTEXT.
22222 (grub_env_context_open): Rewritten to copy exported variables from
22224 (grub_env_context_close): Rewritten according to the new
22225 scheme. Also, add an assertion to prevent the initial context from
22227 (grub_env_insert): Removed the code for the sorted list.
22228 (grub_env_remove): Likewise.
22229 (grub_env_export): Simply mark the variable with
22230 GRUB_ENV_VAR_GLOBAL.
22231 (grub_env_set): A cosmetic change for naming consistency.
22232 (grub_env_get): Likewise.
22233 (grub_env_unset): Likewise.
22234 (grub_env_iterate): Rewritten to sort variables within this
22236 (grub_register_variable_hook): Fixed for naming consistency. Call
22237 grub_env_find again, only if NAME is not found at the first time.
22238 (mangle_data_slot_name): New function.
22239 (grub_env_set_data_slot): Likewise.
22240 (grub_env_get_data_slot): Likewise.
22241 (grub_env_unset_data_slot): Likewise.
22243 * include/grub/env.h (grub_env_var_type): New enum.
22244 (GRUB_ENV_VAR_LOCAL): New constant.
22245 (GRUB_ENV_VAR_GLOBAL): Likewise.
22246 (GRUB_ENV_VAR_DATA): Likewise.
22247 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
22249 (grub_env_set): Replace VAR with NAME for consistency.
22250 (grub_register_variable_hook): Likewise.
22251 (grub_env_export): Specify the name of the argument.
22252 (grub_env_set_data_slot): New prototype.
22253 (grub_env_get_data_slot): Likewise.
22254 (grub_env_unset_data_slot): Likewise.
22256 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22258 Extend the loader so that GRUB can accept a loader which comes
22259 back to GRUB when a loaded image exits. Also, this change adds
22260 support for a chainloader on EFI.
22262 * term/efi/console.c: Include grub/misc.h.
22263 (grub_console_checkkey): Display a scan code on the top for
22264 debugging. This will be removed once the EFI port gets stable.
22265 Correct the scan code mapping.
22267 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
22268 allocate memory from larger regions, in order to reduce the number
22269 of allocated regions. Otherwise, the MacOSX loader panics.
22270 (filter_memory_map): Avoid less than 1MB for compatibility with
22272 (add_memory_regions): Allocate from the tail of a region, if
22273 possible, to avoid allocating a region near to 1MB, for the MacOSX
22276 * kern/efi/init.c (grub_efi_set_prefix): Specify
22277 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
22279 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
22280 argument IMAGE_HANDLE and specify it to get a loaded image.
22281 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
22282 grub_efi_get_loaded_image.
22283 (grub_efi_get_filename): Divide the length by the size of
22285 (grub_efi_get_device_path): New function.
22286 (grub_efi_print_device_path): Print End Device Path nodes. Divide
22287 the length by the size of grub_efi_char16_t for a file path device
22290 * kern/loader.c (grub_loader_noreturn): New variable.
22291 (grub_loader_set): Accept a new argument NORETURN. Set
22292 GRUB_LOADER_NORETURN to NORETURN.
22293 All callers changed.
22294 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
22297 * include/grub/efi/efi.h (grub_efi_get_device_path): New
22299 (grub_efi_get_loaded_image): Take an argument to specify an image
22302 * include/grub/loader.h (grub_loader_set): Added one more argument
22305 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
22306 instead of grub_efi_open_protocol.
22307 (grub_efidisk_get_device_name): Likewise.
22308 (grub_efidisk_close): Print a newline.
22309 (grub_efidisk_get_device_handle): Fixed to use
22310 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
22311 GRUB_EFI_DEVICE_PATH_TYPE.
22313 * disk/efi/efidisk.c (device_path_guid): Moved to ...
22314 * kern/efi/efi.c (device_path_guid): ... here.
22316 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
22318 (kernel_mod_HEADERS): Added efi/disk.h.
22319 (_chain_mod_SOURCES): New variable.
22320 (_chain_mod_CFLAGS): Likewise.
22321 (_chain_mod_LDFLAGS): Likewise.
22322 (chain_mod_SOURCES): Likewise.
22323 (chain_mod_CFLAGS): Likewise.
22324 (chain_mod_LDFLAGS): Likewise.
22326 * DISTLIST: Added include/grub/efi/chainloader.h,
22327 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
22329 * include/grub/efi/chainloader.h: New file.
22330 * loader/efi/chainloader.c: Likewise.
22331 * loader/efi/chainloader_normal.c: Likewise.
22333 2006-04-30 Marco Gerards <marco@gnu.org>
22335 * commands/configfile.c (grub_cmd_source): New function.
22336 (GRUB_MOD_INIT): Register the commands `source' and `.'.
22337 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
22339 2006-04-30 Marco Gerards <marco@gnu.org>
22341 * normal/execute.c (grub_script_execute_cmd): Change the return
22342 type to `grub_err_t'. Correctly return the error.
22343 (grub_script_execute_cmdline): In case a command line is not a
22344 command or a function, try to interpret it as an assignment.
22346 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22348 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
22349 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
22350 skip a node whose name is obviously invalid as UTF-16,
22351 i.e. contains a NUL character. Stop the iteration when the last
22352 directory entry is found. Instead of using the return value of
22353 grub_hfsplus_btree_iterate_node, store the value in RET and use
22354 it, because the iterator can be stopped by the last directory
22357 2006-04-30 Marco Gerards <marco@gnu.org>
22359 * include/grub/env.h (grub_env_export): New prototype. Reported
22360 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
22362 2006-04-30 Marco Gerards <marco@gnu.org>
22364 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
22365 size of the extents in a catalog file record.
22367 2006-04-29 Marco Gerards <marco@gnu.org>
22369 * commands/configfile.c (grub_cmd_configfile): Execute the
22370 configfile within its own context.
22372 * include/grub/env.h (grub_env_context_open): New prototype.
22373 (grub_env_context_close): Likewise.
22375 * kern/env.c (grub_env): Removed.
22376 (grub_env_sorted): Likewise.
22377 (grub_env_context): New variable.
22378 (grub_env_var_context): Likewise.
22379 (grub_env_find): Search both the active context and the global
22381 (grub_env_context_open): New function.
22382 (grub_env_context_close): Likewise.
22383 (grub_env_insert): Likewise.
22384 (grub_env_remove): Likewise.
22385 (grub_env_export): Likewise.
22386 (grub_env_set): Changed to use helper functions to avoid code
22388 (grub_env_iterate): Rewritten so both the current context and the
22389 global context are being used.
22391 * normal/command.c (export_command): New function.
22392 (grub_command_init): Register the `export' function.
22394 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
22396 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
22397 explicitly to suppress gcc's warnings.
22398 * fs/fat.c (grub_fat_find_dir): Likewise.
22399 (grub_fat_label): Likewise.
22400 * fs/xfs.c (grub_xfs_read_inode): Likewise.
22401 (grub_xfs_mount): Likewise.
22402 (grub_xfs_label): Likewise.
22403 * fs/affs.c (grub_affs_mount): Likewise.
22404 (grub_affs_label): Likewise.
22405 (grub_affs_iterate_dir): Likewise.
22406 * fs/sfs.c (grub_sfs_mount): Likewise.
22407 (grub_sfs_iterate_dir): Likewise.
22408 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
22409 * fs/hfs.c (grub_hfs_mount): Likewise.
22410 (grub_hfs_cmp_catkeys): Likewise.
22411 (grub_hfs_find_dir): Likewise.
22412 (grub_hfs_dir): Likewise.
22413 (grub_hfs_label): Likewise.
22414 * fs/jfs.c (grub_jfs_mount): Likewise.
22415 (grub_jfs_opendir): Likewise.
22416 (grub_jfs_getent): Likewise.
22417 (grub_jfs_lookup_symlink): Likewise.
22418 (grub_jfs_label): Likewise.
22419 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
22420 (grub_hfsplus_iterate_dir): Likewise.
22421 (grub_hfsplus_btree_iterate_node): Made static.
22423 * util/grub-emu.c (prefix): New variable.
22424 (grub_machine_set_prefix): New function.
22425 (main): Do not set the environment variable "prefix" here. Only
22426 set PREFIX, which is used later by grub_machine_set_prefix.
22428 * include/grub/video.h: Do not include grub/symbol.h.
22429 (grub_video_register): Not exported. This symbol is not defined in
22431 (grub_video_unregister): Likewise.
22432 (grub_video_iterate): Likewise.
22433 (grub_video_setup): Likewise.
22434 (grub_video_restore): Likewise.
22435 (grub_video_get_info): Likewise.
22436 (grub_video_get_blit_format): Likewise.
22437 (grub_video_set_palette): Likewise.
22438 (grub_video_get_palette): Likewise.
22439 (grub_video_set_viewport): Likewise.
22440 (grub_video_get_viewport): Likewise.
22441 (grub_video_map_color): Likewise.
22442 (grub_video_map_rgb): Likewise.
22443 (grub_video_map_rgba): Likewise.
22444 (grub_video_fill_rect): Likewise.
22445 (grub_video_blit_glyph): Likewise.
22446 (grub_video_blit_bitmap): Likewise.
22447 (grub_video_blit_render_target): Likewise.
22448 (grub_video_scroll): Likewise.
22449 (grub_video_swap_buffers): Likewise.
22450 (grub_video_create_render_target): Likewise.
22451 (grub_video_delete_render_target): Likewise.
22452 (grub_video_set_active_render_target): Likewise.
22454 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
22456 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
22458 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
22459 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22460 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22461 instead of $(srcdir)/genkernsyms.sh.
22463 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
22464 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22465 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22466 instead of $(srcdir)/genkernsyms.sh.
22468 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
22469 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22470 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22471 instead of $(srcdir)/genkernsyms.sh.
22473 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
22474 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22475 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22476 instead of $(srcdir)/genkernsyms.sh.
22478 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
22481 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
22483 (gensymlist.sh): New target.
22484 (genkernsyms.sh): Likewise.
22486 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
22487 genkernsyms.sh.in and gensymlist.sh.in.
22489 * genkernsyms.sh: Removed.
22490 * gensymlist.sh: Likewise.
22492 * genkernsyms.sh.in: New file.
22493 * gensymlist.sh.in: Likewise.
22495 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
22497 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
22498 clobber "prefix", since we may have already set it manually.
22500 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
22502 * kern/misc.c (abort): New alias for grub_abort.
22504 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
22506 A new machine-specific function "grub_machine_set_prefix" is
22507 defined. This is called after loading modules, so that a prefix
22508 initialization can use modules. Also, this change adds an
22509 intensive debugging feature for the memory manager via the
22510 configure option "--enable-mm-debug".
22512 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
22515 * kern/sparc64/ieee1275/init.c (abort): Removed.
22516 (grub_stop): Likewise.
22517 (grub_exit): New function.
22518 (grub_set_prefix): Renamed to ...
22519 (grub_machine_set_prefix): ... this.
22520 (grub_machine_init): Do not call grub_set_prefix.
22522 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
22523 (grub_machine_set_prefix): ... this.
22524 (grub_machine_init): Do not call grub_set_prefix.
22526 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
22527 (grub_machine_init): Do not set the prefix here.
22529 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
22531 * kern/efi/init.c: Include grub/mm.h.
22532 (grub_efi_set_prefix): New function.
22534 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
22535 (grub_efi_get_filename): New function.
22536 (grub_print_device_path): Renamed to ...
22537 (grub_efi_print_device_path): ... this.
22539 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
22540 [MM_DEBUG] (grub_realloc): Likewise.
22541 [MM_DEBUG] (grub_free): Likewise.
22542 [MM_DEBUG] (grub_memalign): Likewise.
22543 [MM_DEBUG] (grub_mm_debug): New variable.
22544 [MM_DEBUG] (grub_debug_malloc): New function.
22545 [MM_DEBUG] (grub_debug_free): New function.
22546 [MM_DEBUG] (grub_debug_realloc): New function.
22547 [MM_DEBUG] (grub_debug_memalign): New function.
22549 * kern/misc.c (grub_abort): Print a newline to distinguish
22552 * kern/main.c (grub_main): Call grub_machine_set_prefix and
22553 grub_set_root_dev after loading modules. This is necessary when
22554 setting a prefix depends on modules.
22556 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
22557 (grub_efi_print_device_path): ... this.
22558 (grub_efi_get_filename): New prototype.
22559 (grub_efi_set_prefix): Likewise.
22561 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
22563 (grub_efidisk_get_device_handle): New prototype.
22564 (grub_efidisk_get_device_name): Likewise.
22566 * include/grub/mm.h: Include config.h.
22567 (MM_DEBUG): Removed.
22568 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
22569 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
22570 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
22571 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
22572 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
22573 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
22574 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
22575 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
22576 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
22578 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
22580 * disk/efi/efidisk.c: Include grub/partition.h.
22581 (iterate_child_devices): New function.
22582 (add_device): First, compare only last device path nodes, so that
22583 devices are sorted by the types.
22584 (grub_efidisk_get_device_handle): New function.
22585 (grub_efidisk_get_device_name): Likewise.
22587 * configure.ac (--enable-mm-debug): New option to enable the
22588 memory manager debugging feature. This makes the binary much
22589 bigger, so is disabled by default.
22591 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
22593 Use grub_abort instead of grub_stop, and grub_exit must be
22594 define in each architecture now. Also, this change adds support
22597 * util/i386/pc/grub-probefs.c: Include grub/term.h.
22598 (grub_getkey): New function.
22599 (grub_term_get_current): Likewise.
22601 * util/i386/pc/grub-setup.c: Include grub/term.h.
22602 (grub_getkey): New function.
22603 (grub_term_get_current): Likewise.
22605 * util/misc.c (grub_stop): Renamed to ...
22606 (grub_exit): ... this.
22608 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
22609 (grub_exit): ... this.
22610 (grub_machine_init): Use grub_abort instead of abort.
22611 (grub_stop): Removed.
22613 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
22616 * kern/i386/pc/startup.S (grub_exit): New function.
22617 (cold_reboot): New label.
22619 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
22620 (grub_efi_init): Call grub_efidisk_init.
22621 (grub_efi_fini): Call grub_efidisk_fini.
22623 * kern/efi/efi.c: Include grub/mm.h.
22624 (grub_efi_console_control_guid): Renamed to ...
22625 (console_control_guid): ... this.
22626 (grub_efi_loaded_image_guid): Renamed to ...
22627 (loaded_image_guid): ... this.
22628 (grub_efi_locate_handle): New function.
22629 (grub_efi_open_protocol): Likewise.
22630 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
22631 GRUB_EFI_CONSOLE_CONTROL_GUID.
22632 (grub_efi_exit): Removed.
22633 (grub_stop): Likewise.
22634 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
22635 (grub_exit): New function.
22636 (grub_print_device_path): Likewise.
22638 * kern/rescue.c (grub_rescue_cmd_exit): New function.
22639 (grub_enter_rescue_mode): Register "exit".
22641 * kern/misc.c (grub_real_dprintf): A cosmetic change.
22642 (grub_abort): New function.
22644 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
22646 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
22648 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
22650 * include/grub/efi/efi.h (grub_efi_exit): Removed.
22651 (grub_print_device_path): New prototype.
22652 (grub_efi_locate_handle): Likewise.
22653 (grub_efi_open_protocol): Likewise.
22655 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
22656 * disk/efi/efidisk.c: Likewise.
22658 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
22660 * include/grub/efi/console_control.h
22661 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
22663 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
22664 last 8 bytes as an array.
22665 (GRUB_EFI_DISK_IO_GUID): New macro.
22666 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
22667 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
22668 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
22670 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
22671 (struct grub_efi_device_path): Rename the member "sub_type" to
22673 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
22674 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
22675 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
22676 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
22677 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
22678 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
22679 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
22680 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
22681 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
22682 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
22683 (struct grub_efi_pci_device_path): New structure.
22684 (grub_efi_pci_device_path_t): New type.
22685 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
22686 (struct grub_efi_pccard_device_path): New structure.
22687 (grub_efi_pccard_device_path_t): New type.
22688 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
22689 (struct grub_efi_memory_mapped_device_path): New structure.
22690 (grub_efi_memory_mapped_device_path_t): New type.
22691 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
22692 (struct grub_efi_vendor_device_path): New structure.
22693 (grub_efi_vendor_device_path_t): New type.
22694 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
22695 (struct grub_efi_controller_device_path): New structure.
22696 (grub_efi_controller_device_path_t): New type.
22697 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
22698 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
22699 (struct grub_efi_acpi_device_path): New structure.
22700 (grub_efi_acpi_device_path_t): New type.
22701 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
22702 (struct grub_efi_expanded_acpi_device_path): New structure.
22703 (grub_efi_expanded_acpi_device_path_t): New type.
22704 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
22705 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
22706 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
22707 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
22708 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
22709 (struct grub_efi_atapi_device_path): New structure.
22710 (grub_efi_atapi_device_path_t): New type.
22711 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
22712 (struct grub_efi_fibre_channel_device_path): New structure.
22713 (grub_efi_fibre_channel_device_path_t): New type.
22714 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
22715 (struct grub_efi_1394_device_path): New structure.
22716 (grub_efi_1394_device_path_t): New type.
22717 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
22718 (struct grub_efi_usb_device_path): New structure.
22719 (grub_efi_usb_device_path_t): New type.
22720 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
22721 (struct grub_efi_usb_class_device_path): New structure.
22722 (grub_efi_usb_class_device_path_t): New type.
22723 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
22724 (struct grub_efi_i2o_device_path): New structure.
22725 (grub_efi_i2o_device_path_t): New type.
22726 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
22727 (struct grub_efi_mac_address_device_path): New structure.
22728 (grub_efi_mac_address_device_path_t): New type.
22729 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
22730 (struct grub_efi_ipv4_device_path): New structure.
22731 (grub_efi_ipv4_device_path_t): New type.
22732 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
22733 (struct grub_efi_ipv6_device_path): New structure.
22734 (grub_efi_ipv6_device_path_t): New type.
22735 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
22736 (struct grub_efi_infiniband_device_path): New structure.
22737 (grub_efi_infiniband_device_path_t): New type.
22738 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
22739 (struct grub_efi_uart_device_path): New structure.
22740 (grub_efi_uart_device_path_t): New type.
22741 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
22742 (struct grub_efi_vendor_messaging_device_path): New structure.
22743 (grub_efi_vendor_messaging_device_path_t): New type.
22744 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
22745 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
22746 (struct grub_efi_hard_drive_device_path): New structure.
22747 (grub_efi_hard_drive_device_path_t): New type.
22748 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
22749 (struct grub_efi_cdrom_device_path): New structure.
22750 (grub_efi_cdrom_device_path_t): New type.
22751 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
22752 (struct grub_efi_vendor_media_device_path): New structure.
22753 (grub_efi_vendor_media_device_path_t): New type.
22754 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
22755 (struct grub_efi_file_path_device_path): New structure.
22756 (grub_efi_file_path_device_path_t): New type.
22757 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
22758 (struct grub_efi_protocol_device_path): New structure.
22759 (grub_efi_protocol_device_path_t): New type.
22760 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
22761 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
22762 (struct grub_efi_bios_device_path): New structure.
22763 (grub_efi_bios_device_path_t): New type.
22764 (struct grub_efi_disk_io): New structure.
22765 (grub_efi_disk_io_t): New type.
22766 (struct grub_efi_block_io_media): New structure.
22767 (grub_efi_block_io_media_t): New type.
22768 (struct grub_efi_block_io): New structure.
22769 (grub_efi_block_io_t): New type.
22771 * include/grub/misc.h (grub_stop): Removed.
22772 (grub_exit): New prototype.
22773 (grub_abort): Likewise.
22775 * include/grub/disk.h (enum grub_disk_dev_id): Added
22776 GRUB_DISK_DEVICE_EFIDISK_ID.
22778 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
22779 disk/efi/efidisk.c.
22780 (kernel_syms.lst): Remove the target if an error occurs.
22782 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
22784 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
22785 as it was simply too buggy.
22787 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
22789 * kern/misc.c (grub_lltoa): New function.
22790 (grub_vsprintf): Added support for the long long suffix,
22793 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
22795 * Makefile.in (LDFLAGS): Add variable.
22796 (LD): Remove variable.
22797 * configure.ac: Add -m32 to LDFLAGS.
22798 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
22799 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
22800 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
22801 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
22802 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
22804 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
22805 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
22806 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
22808 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
22810 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
22811 length for unknown glyph.
22813 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
22815 Add support for pre-loaded modules into the EFI port.
22817 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
22818 completely. Accept one more argument DIR. The caller has changed.
22820 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
22822 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
22823 (grub_efi_loaded_image_guid): New variable.
22824 (grub_efi_get_loaded_image): New function.
22825 (grub_arch_modules_addr): Likewise.
22827 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
22830 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
22831 (struct grub_efi_loaded_image): New structure.
22832 (grub_efi_loaded_image_t): New type.
22834 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
22836 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
22837 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
22838 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
22840 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
22842 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
22844 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
22846 * DISTLIST: Added include/grub/efi/console.h,
22847 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
22848 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
22850 * include/grub/efi/console.h: New file.
22851 * include/grub/efi/time.h: Likewise.
22852 * include/grub/i386/efi/kernel.h: Likewise.
22853 * kern/efi/init.c: Likewise.
22854 * kern/efi/mm.c: Likewise.
22855 * term/efi/console.c: Likewise.
22857 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
22858 (grub_stop): Removed.
22859 (grub_get_rtc): Likewise.
22860 (grub_machine_init): Simply call grub_efi_init.
22861 (grub_machine_fini): Call grub_efi_fini.
22863 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
22864 (grub_efi_output_string): Removed.
22865 (grub_efi_stall): New function.
22866 (grub_stop): Likewise.
22867 (grub_get_rtc): Likewise.
22869 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
22870 (grub_efi_stall): New prototype.
22871 (grub_efi_allocate_pages): Likewise.
22872 (grub_efi_free_pages): Likewise.
22873 (grub_efi_get_memory_map): Likewise.
22874 (grub_efi_mm_init): Likewise.
22875 (grub_efi_mm_fini): Likewise.
22876 (grub_efi_init): Likewise.
22877 (grub_efi_fini): Likewise.
22879 * include/grub/i386/efi/time.h: Do not include
22880 grub/symbol.h. Include grub/efi/time.h.
22881 (GRUB_TICKS_PER_SECOND): Removed.
22882 (grub_get_rtc): Likewise.
22884 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
22885 Added padding. The EFI spec is buggy.
22886 (GRUB_EFI_BLACK): New macro.
22887 (GRUB_EFI_BLUE): Likewise.
22888 (GRUB_EFI_GREEN): Likewise.
22889 (GRUB_EFI_CYAN): Likewise.
22890 (GRUB_EFI_RED): Likewise.
22891 (GRUB_EFI_MAGENTA): Likewise.
22892 (GRUB_EFI_BROWN): Likewise.
22893 (GRUB_EFI_LIGHTGRAY): Likewise.
22894 (GRUB_EFI_BRIGHT): Likewise.
22895 (GRUB_EFI_DARKGRAY): Likewise.
22896 (GRUB_EFI_LIGHTBLUE): Likewise.
22897 (GRUB_EFI_LIGHTGREEN): Likewise.
22898 (GRUB_EFI_LIGHTCYAN): Likewise.
22899 (GRUB_EFI_LIGHTRED): Likewise.
22900 (GRUB_EFI_LIGHTMAGENTA): Likewise.
22901 (GRUB_EFI_YELLOW): Likewise.
22902 (GRUB_EFI_WHITE): Likewise.
22903 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
22904 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
22905 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
22906 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
22907 (GRUB_EFI_BACKGROUND_RED): Likewise.
22908 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
22909 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
22910 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
22911 (GRUB_EFI_TEXT_ATTR): Likewise.
22913 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
22914 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
22915 (kernel_mod_HEADERS): Added efi/time.h.
22917 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
22919 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
22920 include/grub/efi/api.h, include/grub/efi/console_control.h,
22921 include/grub/efi/efi.h, include/grub/efi/pe32.h,
22922 include/grub/i386/efi/time.h, kern/efi/efi.c,
22923 kern/i386/efi/init.c, kern/i386/efi/startup.S,
22924 and util/i386/efi/grub-mkimage.c.
22926 * Makefile.in (RMKFILES): Added i386-efi.rmk.
22928 * genmk.rb (PModule#rule): Do not export symbols if
22929 #{prefix}_EXPORTS is set to "no".
22931 * conf/i386-efi.mk: New file.
22932 * conf/i386-efi.rmk: Likewise.
22933 * include/grub/efi/api.h: Likewise.
22934 * include/grub/efi/console_control.h: Likewise.
22935 * include/grub/efi/efi.h: Likewise.
22936 * include/grub/efi/pe32.h: Likewise.
22937 * include/grub/i386/efi/time.h: Likewise.
22938 * kern/efi/efi.c: Likewise.
22939 * kern/i386/efi/init.c: Likewise.
22940 * kern/i386/efi/startup.S: Likewise.
22941 * util/i386/efi/grub-mkimage.c: Likewise.
22943 2006-04-17 Marco Gerards <marco@gnu.org>
22945 * include/grub/script.h: Include <grub/parser.h> and
22946 "grub_script.tab.h".
22947 (struct grub_lexer_param): New struct.
22948 (struct grub_parser_param): Likewise.
22949 (grub_script_create_arglist): Pass the state in an argument.
22950 (grub_script_add_arglist): Likewise.
22951 (grub_script_create_cmdline): Likewise.
22952 (grub_script_create_cmdblock): Likewise.
22953 (grub_script_create_cmdif): Likewise.
22954 (grub_script_create_cmdmenu): Likewise.
22955 (grub_script_add_cmd): Likewise.
22956 (grub_script_arg_add): Likewise.
22957 (grub_script_lexer_ref): Likewise.
22958 (grub_script_lexer_deref): Likewise.
22959 (grub_script_lexer_record_start): Likewise.
22960 (grub_script_lexer_record_stop): Likewise.
22961 (grub_script_mem_record): Likewise.
22962 (grub_script_mem_record_stop): Likewise.
22963 (grub_script_malloc): Likewise.
22964 (grub_script_yylex): Likewise.
22965 (grub_script_yyparse): Likewise.
22966 (grub_script_yyerror): Likewise.
22967 (grub_script_yylex): Likewise.
22968 (grub_script_lexer_init): Return the state.
22970 * normal/lexer.c (grub_script_lexer_state): Removed variable.
22971 (grub_script_lexer_done): Likewise.
22972 (grub_script_lexer_getline): Likewise.
22973 (grub_script_lexer_refs): Likewise.
22974 (script): Likewise.
22975 (newscript): Likewise.
22976 (record): Likewise.
22977 (recording): Likewise.
22978 (recordpos): Likewise.
22979 (recordlen): Likewise.
22980 (grub_script_lexer_init): Return the state instead of setting
22982 (grub_script_lexer_ref): Use the newly added argument for state
22983 instead of globals.
22984 (grub_script_lexer_deref): Likewise.
22985 (grub_script_lexer_record_start): Likewise.
22986 (grub_script_lexer_record_stop): Likewise.
22987 (recordchar): Likewise.
22988 (nextchar): Likewise.
22989 (grub_script_yylex2): Likewise.
22990 (grub_script_yylex): Likewise.
22991 (grub_script_yyerror): Likewise.
22993 * normal/parser.y (func_mem): Removed variable.
22994 (menu_entry): Likewise.
22996 (%lex-param): New parser option.
22997 (%parse-param): Likewise.
22998 (script): Always return the AST.
22999 (argument): Pass the state around.
23000 (arguments): Likewise.
23001 (grubcmd): Likewise.
23002 (commands): Likewise.
23003 (function): Likewise.
23004 (menuentry): Likewise.
23005 (if_statement): Likewise.
23008 * normal/script.c (grub_script_memused): Removed variable.
23009 (grub_script_parsed): Likewise.
23010 (grub_script_malloc): Added a state argument. Use that instead of
23012 (grub_script_mem_record): Likewise.
23013 (grub_script_mem_record_stop): Likewise.
23014 (grub_script_arg_add): Likewise.
23015 (grub_script_add_arglist): Likewise.
23016 (grub_script_create_cmdline): Likewise.
23017 (grub_script_create_cmdif): Likewise.
23018 (grub_script_create_cmdmenu): Likewise.
23019 (grub_script_add_cmd): Likewise.
23020 (grub_script_parse): Setup the state before calling the parser.
23022 2006-04-16 Marco Gerards <marco@gnu.org>
23024 * normal/command.c (grub_command_init): Remove the title command.
23026 * normal/lexer.c (grub_script_yylex): Renamed from this...
23027 (grub_script_yylex2): ... to this.
23028 (grub_script_yylex): New function. Temporary
23029 introduced to filter some tokens.
23030 (grub_script_yyerror): Print a newline.
23032 * normal/main.c (read_config_file): Output information about the
23033 lines that contain errors. Wait for a key after all lines have
23034 been processed. Don't return an empty menu.
23036 * normal/parser.y (func_mem): Don't initialize.
23037 (menu_entry): Likewise.
23038 (err): New variable.
23039 (script): Don't return anything when an error was encountered.
23040 (ws, returns): Removed rules.
23041 (argument): Disabled concatenated variable support.
23042 (arguments): Remove explicit separators.
23043 (grubcmd): Likewise.
23044 (function): Likewise.
23045 (menuentry): Likewise.
23047 (commands): Likewise. Add error handling.
23049 * normal/script.c (grub_script_create_cmdline): If
23050 `grub_script_parsed' is 0, assume the parser encountered an error.
23052 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
23054 * configure.ac: Add support for EFI. Fix the typo
23055 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
23057 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23059 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
23060 foreign multibyte characters should be shown correctly.
23062 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23064 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
23066 (read_config_file): Made it to close file before returning.
23068 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
23070 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
23071 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
23072 video/i386/pc/vbefill.c.
23074 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
23075 video/i386/pc/vbefill.c.
23077 * include/grub/video.h (grub_video_blit_format): New enum.
23078 (grub_video_mode_info): Added new member blit_format.
23079 (grub_video_get_blit_format): New function prototype.
23081 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
23082 function prototype.
23083 (grub_video_vbe_map_rgb): Likewise.
23084 (grub_video_vbe_unmap_color): Likewise.
23086 * include/grub/i386/pc/vbeblit.h: New file.
23088 * include/grub/i386/pc/vbefill.h: New file.
23090 * video/video.c (grub_video_get_blit_format): New function.
23091 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
23092 (grub_video_vbe_map_rgb): Likewise.
23093 (grub_video_vbe_unmap_color): Likewise.
23095 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
23097 (grub_video_vbe_blit_render_target): Changed to use more optimized
23099 (grub_video_vbe_setup): Added detection for optimized settings.
23100 (grub_video_vbe_create_render_target): Likewise.
23102 * video/i386/pc/vbeblit.c: New file.
23104 * video/i386/pc/vbefill.c: New file.
23106 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
23108 * font/manager.c (grub_font_get_glyph): Removed font fixup from
23111 * util/unifont2pff.rb: ... and moved it to here. Improved argument
23112 parsing to support both hex and dec ranges. If filename was missing
23113 show usage information.
23115 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
23117 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
23118 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
23120 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
23121 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
23122 (video_mod_SOURCES): Added.
23123 (video_mod_CFLAGS): Likewise.
23124 (video_mod_LDFLAGS): Likewise.
23125 (gfxterm_mod_SOURCES): Likewise.
23126 (gfxterm_mod_CFLAGS): Likewise.
23127 (gfxterm_mod_LDFLAGS): Likewise.
23128 (videotest_mod_SOURCES): Likewise.
23129 (videotest_mod_CFLAGS): Likewise.
23130 (videotest_mod_LDFLAGS): Likewise.
23131 (vesafb_mod_SOURCES): Removed.
23132 (vesafb_mod_CFLAGS): Likewise.
23133 (vesafb_mod_LDFLAGS): Likewise.
23134 (vga_mod_SOURCES): Likewise.
23135 (vga_mod_CFLAGS): Likewise.
23136 (vga_mod_LDFLAGS): Likewise.
23138 * commands/videotest.c: New file.
23140 * font/manager.c (fill_with_default_glyph): Modified to use
23142 (grub_font_get_glyph): Likewise.
23143 (fontmanager): Renamed from this...
23144 (font_manager): ... to this.
23146 * include/grub/font.h (grub_font_glyph): Added new structure.
23147 (grub_font_get_glyph): Modified to use grub_font_glyph.
23149 * include/grub/misc.h (grub_abs): Added as inline function.
23151 * include/grub/video.h: New file.
23153 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
23154 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
23155 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
23156 (grub_vbe_get_controller_info): Renamed from this...
23157 (grub_vbe_bios_get_controller_info): ... to this.
23158 (grub_vbe_get_mode_info): Renamed from this...
23159 (grub_vbe_bios_get_mode_info): ... to this.
23160 (grub_vbe_set_mode): Renamed from this...
23161 (grub_vbe_bios_set_mode): ... to this.
23162 (grub_vbe_get_mode): Renamed from this...
23163 (grub_vbe_bios_get_mode): ... to this.
23164 (grub_vbe_set_memory_window): Renamed from this...
23165 (grub_vbe_bios_set_memory_window): ... to this.
23166 (grub_vbe_get_memory_window): Renamed from this...
23167 (grub_vbe_bios_get_memory_window): ... to this.
23168 (grub_vbe_set_scanline_length): Renamed from this...
23169 (grub_vbe_set_scanline_length): ... to this.
23170 (grub_vbe_get_scanline_length): Renamed from this...
23171 (grub_vbe_bios_get_scanline_length): ... to this.
23172 (grub_vbe_set_display_start): Renamed from this...
23173 (grub_vbe_bios_set_display_start): ... to this.
23174 (grub_vbe_get_display_start): Renamed from this...
23175 (grub_vbe_bios_get_display_start): ... to this.
23176 (grub_vbe_set_palette_data): Renamed from this...
23177 (grub_vbe_bios_set_palette_data): ... to this.
23178 (grub_vbe_set_pixel_rgb): Removed.
23179 (grub_vbe_set_pixel_index): Likewise.
23181 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
23183 (grub_vbe_bios_get_controller_info): ... to this.
23184 (grub_vbe_get_mode_info): Renamed from this...
23185 (grub_vbe_bios_get_mode_info): ... to this.
23186 (grub_vbe_set_mode): Renamed from this...
23187 (grub_vbe_bios_set_mode): ... to this.
23188 (grub_vbe_get_mode): Renamed from this...
23189 (grub_vbe_bios_get_mode): ... to this.
23190 (grub_vbe_set_memory_window): Renamed from this...
23191 (grub_vbe_bios_set_memory_window): ... to this.
23192 (grub_vbe_get_memory_window): Renamed from this...
23193 (grub_vbe_bios_get_memory_window): ... to this.
23194 (grub_vbe_set_scanline_length): Renamed from this...
23195 (grub_vbe_set_scanline_length): ... to this.
23196 (grub_vbe_get_scanline_length): Renamed from this...
23197 (grub_vbe_bios_get_scanline_length): ... to this.
23198 (grub_vbe_set_display_start): Renamed from this...
23199 (grub_vbe_bios_set_display_start): ... to this.
23200 (grub_vbe_get_display_start): Renamed from this...
23201 (grub_vbe_bios_get_display_start): ... to this.
23202 (grub_vbe_set_palette_data): Renamed from this...
23203 (grub_vbe_bios_set_palette_data): ... to this.
23204 (grub_vbe_bios_get_controller_info): Fixed problem with registers
23205 getting corrupted after calling it. Added more pushes and pops.
23206 (grub_vbe_bios_set_mode): Likewise.
23207 (grub_vbe_bios_get_mode): Likewise.
23208 (grub_vbe_bios_get_memory_window): Likewise.
23209 (grub_vbe_bios_set_scanline_length): Likewise.
23210 (grub_vbe_bios_get_scanline_length): Likewise.
23211 (grub_vbe_bios_get_display_start): Likewise.
23212 (grub_vbe_bios_set_palette_data): Likewise.
23214 * normal/cmdline.c (cl_set_pos): Refresh the screen.
23215 (cl_insert): Likewise.
23216 (cl_delete): Likewise.
23218 * term/gfxterm.c: New file.
23220 * term/i386/pc/vesafb.c: Removed file.
23222 * video/video.c: New file.
23224 * video/i386/pc/vbe.c (real2pm): Added new function.
23225 (grub_video_vbe_draw_pixel): Likewise.
23226 (grub_video_vbe_get_video_ptr): Likewise.
23227 (grub_video_vbe_get_pixel): Likewise
23228 (grub_video_vbe_init): Likewise.
23229 (grub_video_vbe_fini): Likewise.
23230 (grub_video_vbe_setup): Likewise.
23231 (grub_video_vbe_get_info): Likewise.
23232 (grub_video_vbe_set_palette): Likewise.
23233 (grub_video_vbe_get_palette): Likewise.
23234 (grub_video_vbe_set_viewport): Likewise.
23235 (grub_video_vbe_get_viewport): Likewise.
23236 (grub_video_vbe_map_color): Likewise.
23237 (grub_video_vbe_map_rgb): Likewise.
23238 (grub_video_vbe_map_rgba): Likewise.
23239 (grub_video_vbe_unmap_color): Likewise.
23240 (grub_video_vbe_fill_rect): Likewise.
23241 (grub_video_vbe_blit_glyph): Likewise.
23242 (grub_video_vbe_blit_bitmap): Likewise.
23243 (grub_video_vbe_blit_render_target): Likewise.
23244 (grub_video_vbe_scroll): Likewise.
23245 (grub_video_vbe_swap_buffers): Likewise.
23246 (grub_video_vbe_create_render_target): Likewise.
23247 (grub_video_vbe_delete_render_target): Likewise.
23248 (grub_video_vbe_set_active_render_target): Likewise.
23249 (grub_vbe_set_pixel_rgb): Remove function.
23250 (grub_vbe_set_pixel_index): Likewise.
23251 (index_color_mode): Remove static variable.
23252 (active_mode): Likewise.
23253 (framebuffer): Likewise.
23254 (bytes_per_scan_line): Likewise.
23255 (grub_video_vbe_adapter): Added new static variable.
23256 (framebuffer): Likewise.
23257 (render_target): Likewise.
23258 (initial_mode): Likewise.
23259 (mode_in_use): Likewise.
23260 (mode_list): Likewise.
23262 2006-03-10 Marco Gerards <marco@gnu.org>
23264 * configure.ac (AC_INIT): Bumped to 1.93.
23266 * DISTLIST: Added `include/grub/hfs.h'.
23268 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
23270 * boot/i386/pc/boot.S (general_error): Before looping, try INT
23271 18H, which might help the BIOS falling back to next boot media.
23273 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
23275 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
23276 Poe Chen <poe.poechen@gmail.com>.
23278 2006-01-17 Marco Gerards <marco@gnu.org>
23280 * include/grub/normal.h: Include <grub/script.h>.
23281 (grub_command_list): Removed struct.
23282 (grub_command_list_t): Removed type.
23283 (grub_menu_entry): Remove members `num' and `command_list'. Add
23284 members `commands' and `sourcecode'.
23285 * include/grub/script.h: Add inclusion guards.
23286 (grub_script_cmd_menuentry): New struct.
23287 (grub_script_execute_menuentry): New prototype.
23288 (grub_script_lexer_record_start): Likewise.
23289 (grub_script_lexer_record_stop): Likewise.
23290 * normal/execute.c (grub_script_execute_menuentry): New function.
23291 * normal/lexer.c (record, recording, recordpos, recordlen): New
23293 (grub_script_lexer_record_start): New function.
23294 (grub_script_lexer_record_stop): Likewise.
23295 (recordchar): Likewise.
23296 (nextchar): Likewise.
23297 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
23298 2048 as the buffer size. Add the tokens `menuentry' and `@'.
23299 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
23300 (current_menu): New variable.
23301 (free_menu): Mainly rewritten.
23302 (grub_normal_menu_addentry): New function.
23303 (read_config_file): Rewritten.
23304 * normal/menu.c (run_menu_entry): Mainly rewritten.
23305 * normal/menu_entry.c (make_screen): Rewritten the code to insert
23307 (run): Mainly rewritten.
23308 * normal/parser.y (menu_entry): New variable.
23309 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
23310 (menuentry): New rule.
23311 (command): Add `menuentry'.
23312 (if_statement): Allow additional returns before `fi'.
23313 * normal/script.c (grub_script_create_cmdmenu): New function.
23315 2006-01-03 Marco Gerards <marco@gnu.org>
23317 * INSTALL: GNU Bison is required.
23318 * configure.ac: Rewritten the test to detect Bison.
23319 * Makefile.in (YACC): New variable. Reported by Xun Sun
23320 <xun.sun.cn@gmail.com>.
23322 2006-01-03 Marco Gerards <marco@gnu.org>
23324 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
23325 the HFS+ filesystem to filesystem blocks.
23326 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
23327 GCC warning is silenced.
23329 2006-01-03 Marco Gerards <marco@gnu.org>
23331 * partmap/apple.c (apple_partition_map_iterate): Convert the data
23332 read from disk from big endian to host byte order.
23334 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
23336 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
23338 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
23339 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
23340 embedded HFS+ filesystem.
23341 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
23342 (grub_hfs_sblock): Move from here...
23343 * include/grub/hfs.h: To here... New file.
23344 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
23346 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
23348 (grub_hfsplus_volheader): Change type of member `magic' to
23350 (grub_hfsplus_data): Add new member `embedded_offset'.
23351 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
23353 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
23354 Calculate the offset.
23356 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23358 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
23360 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
23362 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23364 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
23365 ENV->NAME is NULL after allocating ENV->VALUE.
23367 2005-12-25 Marco Gerards <marco@gnu.org>
23369 * kern/env.c (grub_env_set): Rewritten the error handling code.
23371 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23373 * geninit.sh: Made more robust, and more portable.
23375 2005-12-25 Marco Gerards <marco@gnu.org>
23377 Add support for Apple HFS+ filesystems.
23379 * fs/hfsplus.c: New file.
23381 * DISTLIST: Added `fs/hfsplus.c'.
23383 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
23384 (hfsplus_mod_SOURCES): New variable.
23385 (hfsplus_mod_CFLAGS): Likewise.
23386 (hfsplus_mod_LDFLAGS): Likewise.
23387 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
23388 (grub_setup_SOURCES): Likewise.
23389 (grub_mkdevicemap_SOURCES): Likewise.
23390 (grub_emu_SOURCES): Likewise.
23391 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23393 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
23395 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
23397 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23399 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
23400 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
23401 include/grub/parser.h, include/grub/script.h, kern/parser.c,
23402 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
23403 normal/lexer.c, normal/parser.y, normal/script.c, and
23405 Removed kern/sparc64/cache.c.
23407 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
23408 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
23411 * configure.ac (AC_INIT): Bumped to 1.92.
23413 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
23415 * kern/err.c (grub_error_push): Added new function to support error
23417 (grub_error_pop): Likewise.
23418 (grub_error_stack_items): New local variable to support error stacks.
23419 (grub_error_stack_pos): Likewise.
23420 (grub_error_stack_assert): Likewise.
23421 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
23423 (grub_print_error): Added support to print errors from error stack.
23425 * include/grub/err.h (grub_error_push): Added function prototype.
23426 (grub_error_pop): Likewise.
23428 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
23430 * configure.ac: Accept `powerpc64' as host_cpu.
23431 (amd64): Rename to `biarch32'.
23433 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
23434 non-cacheline-aligned addresses.
23436 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
23437 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
23438 if `size' is non-zero.
23440 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
23442 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
23443 and `cd' to make sure the filename is not prefixed with a
23445 (pkgdata_MODULES): Add `gpt.mod'.
23446 (gpt_mod_SOURCES): New variable.
23447 (gpt_mod_CFLAGS): Likewise.
23448 (gpt_mod_LDFLAGS): Likewise.
23450 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
23452 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
23455 * partmap/gpt.c: New file.
23457 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
23458 GPT partition map is detected.
23460 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
23462 * commands/i386/pc/play.c: New file.
23463 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
23464 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
23467 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
23469 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
23470 ((unused))' to silence gcc warning.
23472 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
23474 * configure.ac: Correct `AC_PROG_YACC' test.
23476 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23478 * util/powerpc/ieee1275/grub-install.in: Run the mount point
23479 check before installing files.
23481 2005-11-22 Mike Small <smallm@panix.com>
23483 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
23484 number regex so multidigit numbers are recognized correctly.
23486 2005-11-22 Mike Small <smallm@panix.com>
23488 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
23489 debugging message before attempting to claim memory.
23490 (grub_rescue_cmd_initrd): Add a claim debugging message and try
23491 multiple addresses in case of failure.
23493 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23495 * term/tparm.c (get_space): Remove empty `if' statement.
23497 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
23499 * kern/parser.c (check_varstate): Rename `state' to 's'.
23501 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23503 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
23504 variable definitions to the beginning of each function. Sort stack
23506 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
23507 `buf' argument to `char *'.
23509 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23511 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
23512 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
23513 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
23514 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
23515 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
23516 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
23517 configfile.mod, search.mod, gzio.mod and test.mod.
23518 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
23519 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
23520 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
23521 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
23522 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
23523 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
23524 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
23525 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
23526 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
23527 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
23528 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23529 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23530 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
23531 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
23532 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
23533 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
23534 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23535 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
23536 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
23537 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
23538 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
23539 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
23540 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
23542 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
23544 (pkgdata_MODULES): Add test.mod.
23546 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23548 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
23549 appending to variables with "+=".
23550 (PModule): Use full pathname to generate *.lst filenames.
23552 * Makefile.in: Fixed list rules moved from genmk.rb.
23553 (.DELETE_ON_ERROR): New special target.
23554 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
23556 * conf/i386-pc.rmk: Include conf/common.mk.
23557 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
23558 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
23559 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
23560 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
23561 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
23562 configfile.mod, search.mod, gzio.mod and test.mod.
23563 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
23564 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
23565 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
23566 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
23567 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
23568 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
23569 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
23570 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
23571 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
23572 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
23573 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23574 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23575 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
23576 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
23577 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
23578 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
23579 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23580 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
23581 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
23582 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
23583 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
23584 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
23585 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
23587 * conf/common.rmk: ... to here. New file.
23589 * conf/common.mk: New file.
23591 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
23593 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
23594 (grub_script.tab.c): ... here.
23596 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
23597 (grub_script.tab.c): ... here.
23599 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
23600 (grub_script.tab.c): ... here.
23602 * normal/command.c (grub_command_find): Fixed a memory leak of
23603 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
23605 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23607 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
23608 "@" which marks the start of a comment on ARM.
23609 (VARIABLE): Likewise.
23611 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23613 Add support for Linux/ADFS partition tables.
23615 * partmap/acorn.c: New file.
23617 * include/grub/acorn_filecore.h: Likewise.
23619 * DISTLIST: Added `partmap/acorn.c' and
23620 `include/grub/acorn_filecore.h'.
23622 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23624 (pkgdata_MODULES): Add `acorn.mod'.
23625 (acorn_mod_SOURCES): New variable.
23626 (acorn_mod_CFLAGS): Likewise.
23628 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
23630 (pkgdata_MODULES): Add `acorn.mod'.
23631 (acorn_mod_SOURCES): New variable.
23632 (acorn_mod_CFLAGS): Likewise.
23634 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
23635 (pkgdata_MODULES): Add `acorn.mod'.
23636 (acorn_mod_SOURCES): New variable.
23637 (acorn_mod_CFLAGS): Likewise.
23638 (acorn_mod_LDFLAGS): Likewise.
23640 * include/types.h (grub_disk_addr_t): New typedef.
23642 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
23644 * geninit.sh: New file.
23646 * geninitheader.sh: Likewise.
23648 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
23649 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
23650 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
23651 * commands/configfile.c (grub_configfile_init)
23652 (grub_configfile_fini): Likewise.
23653 * commands/default.c (grub_default_init, grub_default_fini):
23655 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
23656 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
23657 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
23658 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
23660 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
23661 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
23663 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
23664 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
23666 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
23668 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
23670 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
23671 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
23672 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
23673 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
23674 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
23675 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
23676 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
23677 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
23678 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
23679 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
23680 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
23681 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
23682 * partmap/amiga.c (grub_amiga_partition_map_init)
23683 (grub_amiga_partition_map_fini): Likewise.
23684 * partmap/apple.c (grub_apple_partition_map_init)
23685 (grub_apple_partition_map_fini): Likewise.
23686 * partmap/pc.c (grub_pc_partition_map_init)
23687 (grub_pc_partition_map_fini): Likewise.
23688 * partmap/sun.c (grub_sun_partition_map_init,
23689 grub_sun_partition_map_fini): Likewise.
23690 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
23693 * util/grub-emu.c: Include <grub_modules_init.h>.
23694 (main): Don't initialize and de-initialize any modules directly,
23695 use `grub_init_all' and `grub_fini_all' instead.
23697 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
23698 `grub_vesafb_mod_init'.
23699 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
23701 * term/i386/pc/vga.c (grub_vga_init): Renamed to
23702 `grub_vga_mod_init'. Updated all users.
23703 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
23705 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
23706 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
23709 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
23710 Generate a function to initialize the module in utilities.
23711 Updated all callers.
23712 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
23713 initialize the module in utilities. Updated all callers.
23715 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
23717 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
23718 escape sequence and a literal ^L to clear the screen.
23720 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
23721 when returning from Open Firmware.
23723 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
23725 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
23726 (grub_ofconsole_height): Likewise.
23727 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
23728 manually insert a '\n'.
23729 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
23730 `grub_ofconsole_height'. Return early if these are already set.
23732 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
23734 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
23735 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
23736 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
23737 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
23738 and `normal/script.c'.
23739 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
23740 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
23741 (test_mod_SOURCES): New variable.
23742 (test_mod_CFLAGS): Likewise.
23743 (test_mod_LDFLAGS): Likewise.
23744 (pkgdata_MODULES): Add `test.mod'.
23745 (grub_script.tab.c): New rule.
23746 (grub_script.tab.h): Likewise.
23748 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
23750 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23751 `commands/test.c', `normal/execute.c', `normal/lexer.c',
23752 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
23753 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
23754 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
23755 (test_mod_SOURCES): New variable.
23756 (test_mod_CFLAGS): Likewise.
23757 (pkgdata_MODULES): Add `test.mod'.
23758 (grub_script.tab.c): New rule.
23759 (grub_script.tab.h): Likewise.
23761 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
23763 Add initial scripting support.
23765 * commands/test.c: New file.
23766 * include/grub/script.h: Likewise.
23767 * normal/execute.c: Likewise.
23768 * normal/function.c: Likewise.
23769 * normal/lexer.c: Likewise.
23770 * normal/parser.y: Likewise.
23771 * normal/script.c: Likewise.
23773 * configure.ac: Add `AC_PROG_YACC' test.
23775 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
23776 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
23777 `normal/function.c' and `normal/script.c'.
23778 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
23779 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
23780 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
23782 (pkgdata_MODULES): Add `test.mod'.
23783 (grub_script.tab.c): New rule.
23784 (grub_script.tab.h): Likewise.
23786 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
23788 * include/grub/normal.h (grub_test_init): New prototype.
23789 (grub_test_fini): Likewise.
23791 * normal/command.c: Include <grub/script.h>.
23792 (grub_command_execute): Rewritten.
23794 * util/grub-emu.c (main): Call `grub_test_init' and
23797 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
23799 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
23801 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
23802 there are no pending characters.
23804 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
23806 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
23807 `grub_strndup' to drop device arguments. Replace unnecessary
23808 `grub_strndup' with `grub_strdup'.
23810 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
23812 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
23813 `debug' environment variable has been set.
23815 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
23817 * Makefile.in (install-local): Use $(DATA).
23818 (uninstall): Likewise.
23819 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
23820 (sbin_UTILITIES): ... to here.
23821 (sbin_SCRIPTS): New variable.
23822 (grub_install_SOURCES): New variable.
23823 * util/powerpc/ieee1275/grub-install.in: New file.
23824 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
23826 (add_segments): Call `grub_util_get_path'.
23828 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
23830 From Timothy Baldwin:
23831 * commands/ls.c (grub_ls_list_files): Close FILE with
23833 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
23835 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
23837 * include/grub/parser.h: New file.
23839 * kern/parser.c: Likewise.
23841 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
23842 (grub_setup_SOURCES): Likewise.
23843 (grub_probefs_SOURCES): Likewise.
23844 (grub_emu_SOURCES): Likewise.
23845 (kernel_img_HEADERS): Add `parser.h'.
23847 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
23848 (grub_emu_SOURCES): Add `kern/parser.c'.
23849 (grubof_SOURCES): Likewise.
23851 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
23852 (grubof_SOURCES): Add `kern/parser.c'.
23854 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
23856 * kern/misc.c (grub_split_cmdline): Removed function.
23858 * kern/rescue.c: Include <grub/parser.h>.
23859 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
23860 of `grub_split_cmdline'.
23862 * normal/command.c: Include <grub/parser.h>.
23863 (grub_command_execute): Use `grub_parser_split_cmdline' instead
23864 of `grub_split_cmdline'.
23866 * normal/completion.c: Include <grub/parser.h>.
23867 (cmdline_state): New variable.
23868 (iterate_dir): End the filename with a quote depending on the
23869 command line state.
23870 (get_state): new function.
23871 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
23872 split the arguments and determine the current argument. When the
23873 argument string is not quoted, escape all spaces.
23875 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
23877 * normal/sparc64/setjmp.S: New file.
23879 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
23881 * include/grub/sparc64/libgcc.h: New file.
23882 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
23883 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
23884 normal/sparc64/setjmp.c.
23886 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
23888 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
23889 * kern/sparc64/cache.S: New file.
23890 * kern/sparc64/cache.c: Removed.
23891 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
23892 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
23894 (COMMON_LDFLAGS): Add -melf64_sparc.
23895 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
23896 (grubof_SOURCES): Use cache.S instead of cache.c.
23897 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
23898 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
23899 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
23901 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
23902 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
23903 (linux_mod_CFLAGS): Commented out.
23904 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
23905 out because module isn't built.
23906 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
23907 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
23908 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
23909 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
23910 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
23911 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
23912 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
23913 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
23914 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
23915 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
23916 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23917 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23918 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
23919 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
23921 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
23923 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
23924 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
23925 longer, because HFS should not be used on PC.
23927 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23929 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
23930 consistently within the loop.
23932 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
23934 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
23935 directory can not be read.
23937 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
23939 * configure.ac (AC_INIT): Increase the version number to 1.91.
23941 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
23942 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
23943 term/i386/pc/serial.c.
23945 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
23947 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
23948 file size must be permitted.
23950 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
23951 between %ah and %al.
23953 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
23955 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
23957 Call the hook with a NUL-terminated filename.
23958 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
23961 * kern/term.c (cursor_state): New variable.
23962 (grub_term_set_current): Reset the cursor state on a new
23964 (grub_setcursor): Rewritten to use CURSOR_STATE.
23965 (grub_getcursor): New function.
23967 * include/grub/term.h (grub_getcursor): New prototype.
23969 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
23970 integers on ARM. Reported by Timothy Baldwin
23971 <T.E.Baldwin99@members.leeds.ac.uk>.
23973 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
23975 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
23977 (grub_sfs_dir): Likewise.
23979 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
23981 Add support for the SFS filesystem.
23983 * fs/sfs.c: New file.
23985 * DISTLIST: Added `fs/sfs.c'.
23987 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
23988 (grub_probefs_SOURCES): Likewise.
23989 (grub_emu_SOURCES): Likewise.
23990 (pkgdata_MODULES): Add `sfs.mod'.
23991 (sfs_mod_SOURCES): New variable.
23992 (sfs_mod_CFLAGS): Likewise.
23993 (sfs_mod_LDFLAGS): Likewise.
23995 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
23996 (pkgdata_MODULES): Add `sfs.mod'.
23997 (sfs_mod_SOURCES): New variable.
23998 (sfs_mod_CFLAGS): Likewise.
24000 * util/grub-emu.c (main): Call `grub_sfs_init' and
24003 * include/grub/fs.h (grub_sfs_init): New prototype.
24004 (grub_sfs_fini): Likewise.
24006 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
24008 Add support for the AFFS filesystem.
24010 * fs/affs.c: New file.
24012 * DISTLIST: Added `fs/affs.c'.
24014 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
24015 (grub_probefs_SOURCES): Likewise.
24016 (grub_emu_SOURCES): Likewise.
24017 (pkgdata_MODULES): Add `affs.mod'.
24018 (affs_mod_SOURCES): New variable.
24019 (affs_mod_CFLAGS): Likewise.
24020 (affs_mod_LDFLAGS): Likewise.
24022 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
24023 (pkgdata_MODULES): Add `affs.mod'.
24024 (affs_mod_SOURCES): New variable.
24025 (affs_mod_CFLAGS): Likewise.
24027 * util/grub-emu.c (main): Call `grub_affs_init' and
24030 * include/grub/fs.h (grub_affs_init): New prototype.
24031 (grub_affs_fini): Likewise.
24033 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24035 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
24037 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24039 * configure.ac: Accept `x86_64' as host_cpu. In that case add
24042 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
24045 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
24046 (COMMON_LDFLAGS): New variable.
24047 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
24048 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
24049 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
24050 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
24051 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
24052 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
24053 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
24054 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
24055 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
24056 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
24057 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24058 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24059 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
24060 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
24061 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
24063 (normal_mod_ASFLAGS): Add `-m32'.
24065 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
24066 (grub_host_size_t, grub_host_ssize_t): New types.
24067 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
24068 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
24069 `GRUB_HOST_SIZEOF_VOID_P'.
24071 * include/grub/kernel.h (struct grub_module_header): Type of
24072 member offset changed to `grub_host_off_t'. Type of member size
24073 changed to `grub_host_size_t'.
24074 (struct grub_module_info): Type of member offset changed to
24075 `grub_host_off_t'. Type of member size changed to
24076 `grub_host_size_t'.
24078 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
24080 Make GRUB's kernel compliant to Multiboot Specification.
24082 * kern/i386/pc/startup.S (multiboot_header): New label.
24083 (multiboot_entry): Likewise.
24084 (multiboot_trampoline): Likewise.
24086 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24087 Increased to 0x4A0.
24089 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
24090 put parentheses after a question mark.
24091 [!GRUB_UTIL] (my_mod): New variable.
24093 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
24095 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
24097 Adds support for the XFS filesystem. Btrees are not supported
24100 * fs/xfs.c: New file.
24102 * DISTLIST: Added `fs/xfs.c'.
24104 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
24105 (grub_probefs_SOURCES): Likewise.
24106 (grub_emu_SOURCES): Likewise.
24107 (pkgdata_MODULES): Add `xfs.mod'.
24108 (xfs_mod_SOURCES): New variable.
24109 (xfs_mod_CFLAGS): Likewise.
24111 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
24112 (pkgdata_MODULES): Add `xfs.mod'.
24113 (xfs_mod_SOURCES): New variable.
24114 (xfs_mod_CFLAGS): Likewise.
24116 * util/grub-emu.c (main): Call `grub_xfs_init' and
24119 * include/grub/fs.h (grub_xfs_init): New prototype.
24120 (grub_xfs_fini): Likewise.
24123 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
24125 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
24126 color modes, allow greater than 16 colors to be configured as
24129 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24131 * normal/completion.c (complete_arguments): Add the qualifier
24132 const into OPTIONS.
24134 From Omniflux <omniflux+lists@omniflux.com>:
24135 * include/grub/terminfo.h: New file.
24136 * include/grub/tparm.h: Likewise.
24137 * include/grub/i386/pc/serial.h: Likewise.
24138 * term/terminfo.c: Likewise.
24139 * term/tparm.c: Likewise.
24140 * term/i386/pc/serial.c: Likewise.
24141 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
24143 (terminfo_mod_SOURCES): New variable.
24144 (terminfo_mod_CFLAGS): Likewise.
24145 (serial_mod_SOURCES): Likewise.
24146 (serial_mod_CFLAGS): Likewise.
24148 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
24150 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
24151 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
24152 and kern/powerpc/ieee1275/cmain.c, respectively.
24154 * boot/powerpc/ieee1275/crt0.S: Moved to ...
24155 * kern/powerpc/ieee1275/crt0.S: ... here.
24157 * boot/powerpc/ieee1275/cmain.c: Moved to ...
24158 * kern/powerpc/ieee1275/cmain.c: ... here.
24160 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
24161 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
24162 instead of boot/powerpc/ieee1275/crt0.S and
24163 boot/powerpc/ieee1275/cmain.c, respectively.
24165 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
24166 sectors. It was not used anyway.
24168 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24170 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
24171 `unused parameter' warning.
24173 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24175 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
24177 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
24180 2005-08-28 Marco Gerards <metgerards@student.han.nl>
24182 * include/grub/normal.h (enum grub_completion_type): Added
24183 `GRUB_COMPLETION_TYPE_ARGUMENT'.
24185 * normal/cmdline.c (print_completion): Handle
24186 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
24187 * normal/menu_entry.c (store_completion): Likewise.
24189 * normal/completion.c (complete_arguments): New function.
24190 (grub_normal_do_completion): Call `complete_arguments' when the
24191 current words start with a dash.
24193 2005-08-27 Marco Gerards <metgerards@student.han.nl>
24195 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
24196 `gzio.mod' instead of `io.mod').
24198 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
24200 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
24201 (DISTDIRS): Added io and video.
24202 Rewrite the search routine to make an output consistently.
24204 * DISTLIST: Added conf/sparc64-ieee1275.mk,
24205 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
24206 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
24207 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
24208 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
24209 util/powerpc/ieee1275/misc.c.
24211 * include/grub/gzio.h: New file.
24212 * io/gzio.c: Likewise.
24214 * kern/file.c (grub_file_close): Call grub_device_close only if
24215 FILE->DEVICE is not NULL.
24217 * include/grub/mm.h [!NULL] (NULL): New macro.
24219 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
24221 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
24222 (pkgdata_MODULES): Added gzio.mod.
24223 (gzio_mod_SOURCES): New variable.
24224 (gzio_mod_CFLAGS): Likewise.
24226 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
24227 (pkgdata_MODULES): Added gzio.mod.
24228 (gzio_mod_SOURCES): New variable.
24229 (gzio_mod_CFLAGS): Likewise.
24231 * commands/cat.c: Include grub/gzio.h.
24232 (grub_cmd_cat): Use grub_gzfile_open instead of
24235 * commands/cmp.c: Include grub/gzio.h.
24236 (grub_cmd_cmp): Use grub_gzfile_open instead of
24239 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
24240 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
24242 (grub_rescue_cmd_module): Likewise.
24244 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24246 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
24247 kern/sparc64/ieee1275/init.c because it contains _start.
24248 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
24250 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24252 * configure.ac: Add support for sparc64 host with ieee1275
24254 * configure: Generated from configure.ac.
24255 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
24257 (grub_ofdisk_read): Likewise.
24258 (grub_ofdisk_open): Use %p to print pointer values, and cast the
24259 pointers as (void *) to remove a warning.
24260 (grub_ofdisk_close): Likewise.
24261 (grub_ofdisk_read): Likewise.
24262 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
24263 returns, so make it return void to remove a warning.
24264 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
24265 Corresponding prototype change.
24266 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
24267 values, and cast the pointers as (void *) to remove a warning.
24268 (grub_mm_dump): Likewise.
24269 * conf/sparc64-ieee1275.mk: New file.
24270 * conf/sparc64-ieee1275.rmk: Likewise.
24271 * include/grub/sparc64/setjmp.h: Likewise.
24272 * include/grub/sparc64/types.h: Likewise.
24273 * include/grub/sparc64/ieee1275/console.h: Likewise.
24274 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24275 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
24276 * include/grub/sparc64/ieee1275/time.h: Likewise.
24277 * kern/sparc64/cache.c: Likewise.
24278 * kern/sparc64/dl.c: Likewise.
24279 * kern/sparc64/ieee1275/init.c: Likewise.
24280 * kern/sparc64/ieee1275/openfw.c: Likewise.
24282 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
24284 * util/console.c (grub_ncurses_putchar): If C is greater than
24285 0x7f, set C to a question mark.
24286 (grub_ncurses_getcharwidth): New function.
24287 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
24290 * normal/menu.c (print_entry): Made aware of Unicode. First,
24291 convert TITLE to UCS-4, and predict the cursor position by
24294 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
24296 * kern/misc.c (grub_utf16_to_utf8): Likewise.
24298 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24300 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
24301 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24304 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
24305 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24306 grub_strcpy and grub_strlen. Take it into account that a space
24307 character is inserted as a delimiter.
24309 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24311 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
24312 invalid magic in the error.
24314 * commands/search.c: New file.
24316 * util/grub-emu.c (main): Call grub_search_init and
24319 * kern/rescue.c (grub_rescue_print_disks): Removed.
24320 (grub_rescue_print_devices): New function.
24321 (grub_rescue_cmd_ls): Use grub_device_iterate with
24322 grub_rescue_print_devices instead of grub_disk_dev_iterate with
24323 grub_rescue_print_disks.
24325 * kern/partition.c (grub_partition_iterate): Return the result of
24326 PARTMAP->ITERATE instead of GRUB_ERRNO.
24328 * kern/device.c: Include grub/partition.h.
24329 (grub_device_iterate): New function.
24331 * include/grub/partition.h (grub_partition_iterate): Return int
24332 instead of grub_err_t.
24334 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
24336 [GRUB_UTIL] (grub_search_fini): Likewise.
24338 * include/grub/device.h (grub_device_iterate): New prototype.
24340 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24342 (pkgdata_MODULES): Added search.mod.
24343 (search_mod_SOURCES): New variable.
24344 (search_mod_CFLAGS): Likewise.
24346 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
24347 (pkgdata_MODULES): Added search.mod.
24348 (search_mod_SOURCES): New variable.
24349 (search_mod_CFLAGS): Likewise.
24351 * commands/ls.c (grub_ls_list_disks): Renamed to ...
24352 (grub_ls_list_devices): ... this, and use grub_device_iterate.
24353 All callers changed.
24355 * DISTLIST: Added commands/search.c.
24357 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24359 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
24361 (grub_getcharwidth): New function.
24363 * kern/misc.c (grub_utf8_to_ucs4): New function.
24365 * include/grub/term.h (struct grub_term): Added a new member
24367 (grub_getcharwidth): New prototype.
24369 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
24371 * term/i386/pc/console.c (map_char): New function. Segregated from
24372 grub_console_putchar.
24373 (grub_console_putchar): Use map_char.
24374 (grub_console_getcharwidth): New function.
24375 (grub_console_term): Specified grub_console_getcharwidth as
24378 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
24379 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
24381 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
24383 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
24384 on grub_strtoul completely.
24385 (write_char): Declare local variables in the beginning of the
24387 (grub_vesafb_getcharwidth): New function.
24388 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
24391 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
24393 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
24394 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
24395 commands/i386/pc/vbetest.c.
24397 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
24398 call grub_vbe_get_controller_info again, because the returned
24399 information is volatile.
24400 (grub_vbe_set_video_mode): Mostly rewritten.
24401 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
24402 grub_vbe_status_t correctly.
24403 (grub_vbe_get_video_mode_info): Likewise.
24404 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
24405 several if statements.
24407 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
24408 * commands/i386/pc/vbeinfo.c: ... this.
24410 * commands/i386/pc/vbe_test.c: Renamed to ...
24411 * commands/i386/pc/vbetest.c: ... this.
24413 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
24415 (grub_cmd_vbeinfo): ... this. Save video modes before
24416 iterating. Skip a video mode, if it is not available, not enough
24417 information is given or it is monochrome. Show the memory
24418 model. Leave the interpretation of MODEVAR to grub_strtoul
24420 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
24421 (GRUB_MOD_FINI): Likewise.
24423 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
24424 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
24425 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
24426 duplicated grub_env_get. Leave the interpretation of MODEVAR to
24427 grub_strtoul completely.
24428 (real2pm): Removed.
24429 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
24430 (GRUB_MOD_FINI): Likewise.
24432 * normal/misc.c: Include grub/mm.h.
24434 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
24435 vbe_list_modes with vbetest.mod and vbeinfo.mod.
24436 (vbe_list_modes_mod_SOURCES): Removed.
24437 (vbe_list_modes_mod_CFLAGS): Likewise.
24438 (vbe_test_mod_SOURCES): Likewise.
24439 (vbe_test_mod_CFLAGS): Likewise.
24440 (vbeinfo_mod_SOURCES): New variable.
24441 (vbeinfo_mod_CFLAGS): Likewise.
24442 (vbetest_mod_SOURCES): Likewise.
24443 (vbetest_mod_CFLAGS): Likewise.
24445 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
24447 * normal/misc.c: New file.
24449 * DISTLIST: Added normal/misc.c.
24451 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
24452 DISK to HOOK. Call HOOK with DISK.
24453 * partmap/apple.c (apple_partition_map_iterate): Likewise.
24454 * partmap/pc.c (pc_partition_map_iterate): Likewise.
24455 * partmap/sun.c (sun_partition_map_iterate): Likewise.
24457 * normal/menu_entry.c (struct screen): Added a new member
24458 "completion_shown".
24459 (completion_buffer): New global variable.
24460 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
24461 (store_completion): New function.
24462 (complete): Likewise.
24463 (clear_completions): Likewise.
24464 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
24465 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
24466 a tab, call complete.
24468 * normal/completion.c (disk_dev): Removed.
24469 (print_simple_completion): Likewise.
24470 (print_partition_completion): Likewise.
24471 (print_func): New global variable.
24472 (add_completion): Do not take the arguments WHAT or PRINT any
24473 longer. Added a new argument TYPE. Instead of printing directly,
24474 call PRINT_FUNC if not NULL.
24475 All callers changed.
24476 (complete_device): Use a local variable DEV instead of
24477 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
24478 (grub_normal_do_completion): Take a new argument HOOK. Do not
24479 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
24480 empty string, return NULL instead.
24481 All callers changed.
24483 * normal/cmdline.c (print_completion): New function.
24485 * kern/partition.c (grub_partition_iterate): Add an argument DISK
24487 All callers changed.
24489 * kern/disk.c (grub_print_partinfo): Removed.
24491 * include/grub/partition.h (struct grub_partition_map): Add a new
24492 argument DISK into HOOK of ITERATE.
24493 (grub_partition_iterate): Add a new argument DISK to HOOK.
24495 * include/grub/normal.h (enum grub_completion_type): New enum.
24496 (grub_completion_type_t): New type.
24497 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
24498 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
24499 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
24500 (GRUB_COMPLETION_TYPE_FILE): Likewise.
24501 (grub_normal_do_completion): Added a new argument HOOK.
24502 (grub_normal_print_device_info): New prototype.
24504 * include/grub/disk.h (grub_print_partinfo): Removed.
24506 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
24507 (normal_mod_SOURCES): Likewise.
24508 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24509 (normal_mod_SOURCES): Likewise.
24511 * commands/ls.c (grub_ls_list_disks): Use
24512 grub_normal_print_device_info instead of grub_print_partinfo. Free
24514 (grub_ls_list_files): Use grub_normal_print_device_info instead of
24515 duplicating the code.
24517 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
24519 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
24520 follow GCS more precisely.
24521 * commands/i386/pc/vbe_test.c: Likewise.
24522 * include/grub/i386/pc/vbe.h: Likewise.
24523 * term/i386/pc/vesafb.c: Likewise.
24524 * video/i386/pc/vbe.c: Likewise.
24526 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
24528 * DISTLIST: Added term/i386/pc/vesafb.c
24529 DISTLIST: Added video/i386/pc/vbe.c
24530 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
24531 DISTLIST: Added commands/i386/pc/vbe_test.c.
24532 * commands/i386/pc/vbe_list_modes.c: New file.
24533 * commands/i386/pc/vbe_test.c: Likewise.
24534 * term/i386/pc/vesafb.c: Likewise.
24535 * video/i386/pc/vbe.c: Likewise.
24536 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
24537 (grub_vbe_probe) Added prototype.
24538 (grub_vbe_set_video_mode) Likewise.
24539 (grub_vbe_get_video_mode) Likewise.
24540 (grub_vbe_get_video_mode_info) Likewise.
24541 (grub_vbe_set_pixel_rgb) Likewise.
24542 (grub_vbe_set_pixel_index) Likewise.
24543 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
24544 (pkgdata_MODULES): Added vesafb.mod.
24545 (pkgdata_MODULES): Added vbe_list_modes.mod.
24546 (pkgdata_MODULES): Added vbe_test.mod.
24547 (vbe_mod_SOURCES): Added.
24548 (vbe_mod_CFLAGS): Likewise.
24549 (vesafb_mod_SOURCES): Likewise.
24550 (vesafb_mod_CFLAGS): Likewise.
24551 (vbe_list_modes_mod_SOURCES): Likewise.
24552 (vbe_list_modes_mod_CFLAGS): Likewise.
24553 (vbe_test_mod_SOURCES): Likewise.
24554 (vbe_test_mod_CFLAGS): Likewise.
24556 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
24558 * normal/command.c (grub_command_execute): If INTERACTIVE is
24559 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
24560 CMDLINE. Disable the pager if INTERACTIVE is true.
24561 All callers are changed.
24563 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
24564 before reading a config file.
24565 * normal/main.c (read_config_file): Even if a command is not
24566 found, register it if it is within an entry.
24568 * util/grub-emu.c: Include sys/types.h and unistd.h.
24569 (options): Added --hold.
24570 (struct arguments): Added a new member "hold".
24571 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
24573 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
24574 cleared by a debugger, if it is not zero.
24576 * include/grub/normal.h (grub_command_execute): Add an argument
24579 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
24581 * DISTLIST: Added include/grub/i386/pc/vbe.h.
24583 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
24585 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
24586 program with another one, because the old one didn't detect a bug
24587 in gcc-3.4. Always use regparm 2, because the new test is still
24588 not enough for gcc-4.0. Someone must investigate a simple test
24589 case which detects a bug in gcc-4.0.
24591 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
24593 * DISTLIST: Added normal/completion.c.
24595 * normal/completion.c: New file.
24597 * term/i386/pc/console.c (grub_console_getwh): New function.
24598 (grub_console_term): Assign grub_console_getwh to getwh.
24600 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
24601 function is defined in normal/completion.c as
24602 grub_normal_do_completion.
24603 (grub_cmdline_get): Use grub_normal_do_completion instead of
24606 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
24607 returns non-zero, otherwise return 0.
24608 (grub_partition_iterate): First, probe the partition map. Then,
24609 call ITERATE only for this partition map.
24611 * kern/misc.c (grub_strncmp): Rewritten.
24613 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
24614 returns non-zero. Otherwise return 0.
24616 * include/grub/partition.h (grub_partition_map_iterate): Return
24617 int instead of void.
24619 * include/grub/normal.h (grub_normal_do_completion): New prototype.
24621 * include/grub/misc.h (grub_strncmp): Change the type of N to
24624 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
24627 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
24628 unsigned explicitly before comparing it with I.
24630 * kern/main.c (grub_env_write_root): Add the attribute unused into
24633 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24634 normal/completion.c.
24635 (normal_mod_SOURCES): Likewise.
24636 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24637 (normal_mod_SOURCES): Likewise.
24639 * normal/command.c (grub_iterate_commands): If ITERATE returns
24640 non-zero, return one immediately.
24642 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
24644 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
24645 * kern/i386/pc/startup.S: Updated Global Descriptor table's
24647 (grub_vbe_get_controller_info): New function.
24648 (grub_vbe_get_mode_info): Likewise.
24649 (grub_vbe_set_mode): Likewise.
24650 (grub_vbe_get_mode): Likewise.
24651 (grub_vbe_set_memory_window): Likewise.
24652 (grub_vbe_get_memory_window): Likewise.
24653 (grub_vbe_set_scanline_length): Likewise.
24654 (grub_vbe_get_scanline_length): Likewise.
24655 (grub_vbe_set_display_start): Likewise.
24656 (grub_vbe_get_display_start): Likewise.
24657 (grub_vbe_set_palette_data): Likewise.
24658 * include/grub/i386/pc/vbe.h: New file.
24660 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24662 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
24663 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
24664 * DISTLIST: Likewise.
24665 * kern/ieee1275/of.c: Moved to ...
24666 * kern/ieee1275/ieee1275.c: ... here.
24668 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24670 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
24671 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
24672 Pass 0 as `end' parameter to grub_strtoul().
24674 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24676 * include/grub/powerpc/ieee1275/console.h: Do not include
24677 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
24679 (grub_console_cur_color): Remove i386-specific prototype.
24680 (grub_console_real_putchar): Likewise.
24681 (grub_console_checkkey): Likewise.
24682 (grub_console_getkey): Likewise.
24683 (grub_console_getxy): Likewise.
24684 (grub_console_gotoxy): Likewise.
24685 (grub_console_cls): Likewise.
24686 (grub_console_setcursor): Likewise.
24687 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
24688 Include <grub/machine/console.h>.
24689 * term/ieee1275/ofconsole.c: Likewise.
24691 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
24693 * Makefile.in (LIBLZO): New variable.
24695 * configure.ac: Check for LZO version 2.
24697 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
24698 lzo/lzo1x.h instead of lzo1x.h.
24700 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
24703 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
24704 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
24706 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
24707 copying the data from PARTITION to P.
24709 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
24711 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
24712 negative, unload the module.
24714 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
24715 map is "pc_partition_map" but not "pc".
24716 (usage): Fix the description. The options are --boot-image and
24717 --core-image but not --boot-file or --core-file.
24718 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
24719 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
24722 * util/i386/pc/grub-install.in: Do not specify --boot-file or
24723 --core-file. Specify INSTALL_DEVICE as an argument.
24725 * util/console.c: Include config.h.
24726 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
24727 [HAVE_NCURSES_H]: Include ncurses.h.
24728 [HAVE_CURSES_H]: Include curses.h.
24729 [!A_NORMAL] (A_NORMAL): Defined as zero.
24730 [!A_STANDOUT] (A_STANDOUT): Likewise.
24732 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
24734 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
24736 * configure.ac: Check for curses libraries and headers.
24738 * Makefile.in (LIBCURSES): New variable.
24740 * genmk.rb (Script::rule): Set the executable bits.
24742 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
24743 name of the PC partition map is "pc_partition_map" but not "pc".
24745 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
24747 * util/i386/pc/grub-install.in (grub_probefs): New variable.
24748 (modules): Likewise.
24749 (usage): Added descriptions for --modules and --grub-probefs.
24750 Handle --modules and --grub-probefs. Save the arguments in MODULES
24751 and GRUB_PROBEFS, respectively.
24752 Auto-detect a filesystem module against GRUBDIR. If the result is
24753 empty and modules are not specified explicitly, abort the
24754 installation. Add the result to MODULES.
24756 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
24757 disk/powerpc/ieee1275/ofdisk.c,
24758 include/grub/powerpc/ieee1275/init.h and
24759 term/powerpc/ieee1275/ofconsole.c.
24760 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
24761 term/ieee1275/ofconsole.c.
24763 * include/grub/powerpc/ieee1275/console.h: Resurrected.
24765 * COPYING: Upgraded to the latest version. Only the address of the
24766 FSF office has changed.
24768 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
24770 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
24771 kern/ieee1275.c with kern/ieee1275/of.c.
24773 * kern/ieee1275.c: Moved to ...
24774 * kern/ieee1275/of.c: ... here.
24776 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
24778 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
24781 * config.guess: Updated to the latest version from gnulib.
24782 * config.sub: Likewise.
24783 * install.sh: Likewise.
24784 * mkinstalldirs: Likewise.
24786 * include/grub/console.h: Removed. This file is arch-specific. Do
24787 not put this in include/grub.
24789 * include/grub/i386/pc/console.h: Resurrected.
24791 * util/console.c: Include grub/machine/console.h instead of
24793 * util/grub-emu.c: Likewise.
24795 2005-08-04 Marco Gerards <metgerards@student.han.nl>
24797 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
24800 From Vincent Pelletier <subdino2004@yahoo.fr>
24801 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
24802 Redefined to use grub_getwh.
24803 (grub_term): New member named getwh.
24804 (grub_getwh): New prototype.
24805 * kern/term.c (grub_getwh): New function.
24806 * term/i386/pc/console.c (grub_console_getwh): New function.
24807 (grub_console_term): New member `getwh'.
24808 * term/i386/pc/vga.c (grub_vga_getwh): New function.
24809 (grub_vga_term): New member `getwh'.
24810 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
24812 (grub_ofconsole_getw): New function.
24813 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
24814 (grub_ofconsole_term): New field named getwh and new initial
24817 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
24819 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
24820 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
24821 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
24822 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
24823 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
24824 of <grub/machine/ieee1275.h>.
24825 * commands/ieee1275/reboot.c: Likewise.
24826 * boot/powerpc/ieee1275/ieee1275.c: Move ...
24827 * kern/ieee1275.c: ... to here. All users updated. Change all
24828 parameter structs to use new type `grub_ieee1275_cell_t'.
24829 * term/powerpc/ieee1275/ofconsole.c: Move ...
24830 * term/ieee1275/ofconsole.c: ... to here. All users updated.
24831 * disk/powerpc/ieee1275/ofdisk.c: Move ...
24832 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
24833 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
24835 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
24836 Remove unused prototypes. All users updated.
24837 * include/grub/powerpc/ieee1275/console.h: Removed.
24838 * include/grub/powerpc/ieee1275/ieee1275.h: Define
24839 `grub_ieee1275_cell_t'.
24840 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
24841 Cast comparisons with -1 to the correct type.
24842 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
24843 type to match `grub_ieee1275_entry_fn'.
24845 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
24847 * DISTLIST: Added util/i386/pc/grub-probefs.c.
24849 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
24850 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
24852 (grub_probefs_SOURCES): New variable.
24854 * util/i386/pc/grub-probefs.c: New file.
24856 * util/i386/pc/grub-setup.c (main): Call
24857 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
24858 grub_hfs_init and grub_jfs_init to initialize the system. Call
24859 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
24860 grub_pc_partition_map_fini to finish the system.
24862 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
24864 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
24866 (grub_multiboot_load_elf32): Likewise.
24867 (grub_multiboot_is_elf64): Likewise.
24868 (grub_multiboot_load_elf64): Likewise.
24869 (grub_multiboot_load_elf): Likewise.
24870 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
24871 an ELF32 or ELF64 file.
24872 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
24874 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
24875 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
24876 NULL before calling FS->LABEL.
24877 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
24878 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
24879 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
24880 before calling FS->LABEL.
24882 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
24884 * util/i386/pc/grub-install.in (datadir): New variable.
24886 (pkgdatadir): New variable.
24887 (pkglibdir): Removed.
24889 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
24891 * DISTLIST: Added util/i386/pc/grub-install.in.
24893 * util/i386/pc/grub-install.in: New file.
24895 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
24896 (grub_install_SOURCES): Likewise.
24898 * genmk.rb: Added support for scripts.
24899 (Script): New class.
24900 (scripts): New variable.
24902 * Makefile.in (install-local): Install sbin_SCRIPTS by
24904 (uninstall): Remove sbin_SCRIPTS.
24906 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
24907 device, try to get a GRUB device by
24908 grub_util_biosdisk_get_grub_dev.
24911 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
24912 description for --device-map.
24914 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
24916 Change the semantics of variable hooks. They now return strings
24917 instead of error values.
24919 * util/i386/pc/grub-setup.c: Include grub/env.h.
24920 (setup): Use grub_device_set_root instead of grub_env_set.
24922 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
24923 grub_env_get instead of grub_device_set_root and
24924 grub_device_get_root, respectively.
24926 * kern/main.c (grub_env_write_root): New function.
24927 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
24928 grub_env_set instead of grub_device_set_root.
24930 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
24932 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
24933 rather than calling ENV->WRITE_HOOK afterwards.
24934 (grub_env_get): Return the result of ENV->READ_HOOK rather than
24935 passing a pointer of a pointer.
24936 (grub_register_variable_hook): Change the types of "read_hook" and
24937 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
24939 Allocate the default empty string on the heap, because this string
24940 may be freed later.
24942 * kern/device.c: Include grub/env.h.
24943 (grub_device_set_root): Removed.
24944 (grub_device_get_root): Likewise.
24945 (grub_device_open): Use grub_env_get instead of
24946 grub_device_get_root.
24948 * include/grub/env.h (grub_env_read_hook_t): New type.
24949 (grub_env_write_hook_t): Likewise.
24950 (grub_env_var): Change the types of "read_hook" and "write_hook"
24951 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
24952 (grub_register_variable_hook): Likewise.
24954 * include/grub/device.h (grub_device_set_root): Removed.
24955 (grub_device_set_root): Likewise.
24957 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
24958 make sure that DIRNAME terminates with '/', so that
24959 grub_fat_find_dir will fail if PATH is not a directory.
24961 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
24963 Use the qualifier auto for print_files and print_files_long.
24964 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
24966 Put a newline only if there is no error.
24967 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
24970 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
24972 * kern/partition.c (grub_partition_probe): Initialize PART to
24973 NULL. Otherwise, when no partition map is registered, this returns
24976 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
24978 * partmap/apple.c (apple_partition_map_iterate): Check if POS
24979 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
24982 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
24984 * commands/ls.c (grub_ls_list_disks): Print the filesystem
24985 information on each device, if it does not have partitions. Print
24986 "Device" instead of "Disk", because this function is not specific
24989 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
24990 static to ensure that it is put on the memory rather than a
24993 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
24995 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
24996 (grub_cat_init): Likewise.
24997 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
24998 (options): Likewise.
24999 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25000 (grub_configfile_init): Likewise.
25001 * font/manager.c (GRUB_MOD_INIT): Likewise.
25002 * commands/help.c (GRUB_MOD_INIT): Likewise.
25003 (grub_help_init): Likewise.
25004 * normal/command.c (grub_command_init): Likewise.
25005 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
25006 * disk/loopback.c (grub_loop_init): Likewise.
25007 (GRUB_MOD_INIT): Likewise.
25008 * commands/ls.c (grub_ls_init): Likewise.
25009 (GRUB_MOD_INIT): Likewise.
25010 (options): Likewise.
25011 * commands/boot.c (grub_boot_init): Likewise.
25012 (GRUB_MOD_INIT): Likewise.
25013 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
25014 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
25015 (GRUB_MOD_INIT): Likewise.
25016 * commands/cmp.c (grub_cmp_init): Likewise.
25017 (GRUB_MOD_INIT): Likewise.
25019 * normal/arg.c: Use <> instead of "" to include header files.
25020 (SHORT_ARG_HELP): New macro.
25021 (SHORT_ARG_USAGE): Likewise.
25022 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
25023 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
25025 (find_short): Check if C is 'h' or 'u' explicitly.
25026 (grub_arg_show_help): Use space characters instead of tabs. Treat
25027 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
25028 are shown with --help and --usage only if they are not used for
25029 the command itself.
25030 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
25033 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
25034 const into "longarg". Change the type of "shortarg" to int.
25036 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25038 * boot/i386/pc/boot.S (boot_drive_check): New label.
25040 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
25043 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
25044 which do not pass a boot drive correctly. Copied from GRUB Legacy.
25046 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25048 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
25049 When turning off Gate A20, skip the check and return immediately,
25050 because this is not fatal usually.
25052 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25054 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
25055 be 0x7C00 instead of 0x8000.
25057 * boot/i386/pc/pxeboot.S: Rewritten.
25059 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
25061 (gate_a20_check_state): Read a byte from 0x108000. Invert the
25064 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
25066 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
25067 robustness. This routine now supports a BIOS call and System
25068 Control Port A to modify the gate A20.
25070 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25071 Increased to 0x440.
25073 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
25075 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
25076 device path and resulting ihandle.
25077 (grub_ofdisk_close): dprintf the ihandle being closed.
25078 (grub_ofdisk_read): dprintf function parameters.
25079 * kern/mm.c (grub_mm_init_region): Likewise.
25080 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
25081 (grub_linux_boot): dprintf the Linux entry point, initrd address and
25082 size, and boot arguments.
25083 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
25084 before loading into memory.
25085 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
25086 before loading into memory.
25088 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
25090 * kern/mm.c: Added much documentation.
25091 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
25092 8, set to 5 instead of 8.
25094 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25096 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
25098 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
25099 (grub_mkdevicemap_SOURCES): New variable.
25101 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
25102 lib/device.c of GRUB Legacy.
25104 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25106 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
25107 instead of PATH is NULL.
25109 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
25111 * commands/cmp.c (BUFFER_SIZE): New macro.
25112 (grub_cmd_cmp): Close the right file at the right time. Compare
25113 only data just read. Don't report files of different size as
25114 identical. Dynamically allocate buffers. Move variable
25115 declarations at the beginning of function.
25117 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
25119 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
25122 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
25124 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
25125 when backspace is pressed at beginning of line.
25127 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
25129 * DISTLIST: Added genfslist.sh.
25131 * normal/main.c (fs_module_list): New variable.
25132 (autoload_fs_module): New function.
25133 (read_fs_list): Likewise.
25134 (grub_normal_execute): Call read_fs_list.
25136 * kern/fs.c (grub_fs_autoload_hook): New variable.
25137 (grub_fs_probe): Added support for auto-loading.
25139 * include/grub/normal.h (struct grub_fs_module_list): New struct.
25140 (grub_fs_module_list_t): New type.
25142 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
25143 (grub_fs_autoload_hook): New prototype.
25145 * genfslist.sh: New file.
25147 * genmk.rb: Added a rule to generate a filesystem list.
25149 2005-06-30 Marco Gerards <metgerards@student.han.nl>
25151 * configure.ac: Fix the test for cross-compiling.
25153 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
25154 define GRUB_UTIL anymore.
25156 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
25157 so this function works on other systems than just big endian.
25158 (load_modules): Likewise.
25159 (add_segments): Likewise.
25161 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
25163 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
25164 contains `l' modifier, get a long from va_arg().
25166 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
25168 * kern/mm.c (grub_free): If the next free block which is being
25169 merged is the first free block, set the first block to the block
25171 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
25173 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25175 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
25176 `grub_ieee1275_chosen'.
25178 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25180 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
25181 (grub_ieee1275_chosen): New variable.
25182 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
25184 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
25185 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
25186 Rename first argument to `phandle' for consistency.
25187 (grub_ieee1275_get_property_length): Likewise.
25188 (grub_ieee1275_next_property): Likewise. Change type of first argument
25189 to grub_ieee1275_phandle_t.
25190 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
25191 Move export next to declaration.
25192 (grub_ieee1275_chosen): New variable.
25193 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
25194 Correct cosmetic typo.
25195 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
25196 `grub_ieee1275_chosen'.
25197 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
25198 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
25199 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
25200 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
25201 `grub_ieee1275_chosen'.
25203 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
25205 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
25207 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
25208 /chosen/bootargs as "variable=value" pairs.
25210 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
25212 * include/grub/misc.h (grub_dprintf): New macro.
25213 (grub_real_dprintf): New prototype.
25214 (grub_strword): Likewise.
25215 (grub_iswordseparator): Likewise.
25216 * kern/misc.c (grub_real_dprintf): New function.
25217 (grub_strword): Likewise.
25218 (grub_iswordseparator): Likewise.
25220 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
25222 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
25223 (roundup): Remove macro.
25224 (grub_ieee1275_flags): Make static.
25225 (grub_ieee1275_realmode): Remove.
25226 (grub_ieee1275_test_flag): New function.
25227 (grub_ieee1275_set_flag): Likewise.
25228 (find_options): Rename to `grub_ieee1275_find_options'; update
25229 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
25230 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
25231 (cmain): New prototype.
25232 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
25233 `grub_ieee1275_flags' directly.
25234 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
25235 machine/biosdisk.h.
25236 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
25237 Don't include grub/machine/init.h.
25238 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
25239 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
25241 (grub_ieee1275_realmode): Likewise.
25242 (grub_ieee1275_flag): New enum.
25243 (grub_ieee1275_test_flag): New prototype.
25244 (grub_ieee1275_set_flag): New prototype.
25245 * include/grub/powerpc/ieee1275/init.h: Remove file.
25246 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
25247 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
25248 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
25249 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
25251 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
25252 `grub_ieee1275_test_flag'.
25253 (grub_ieee1275_encode_devname): Likewise.
25255 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
25257 * include/grub/powerpc/ieee1275/ieee1275.h
25258 (grub_ieee1275_encode_devname): New prototype.
25259 (grub_ieee1275_get_filename): Likewise.
25260 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
25262 (grub_set_prefix): Likewise.
25263 (grub_machine_init): Call grub_set_prefix.
25264 * kern/powerpc/ieee1275/openfw.c: Fix typos.
25265 (grub_parse_type): New enum.
25266 (grub_ieee1275_get_devargs): New function.
25267 (grub_ieee1275_get_devname): Likewise.
25268 (grub_ieee1275_parse_args): Likewise.
25269 (grub_ieee1275_get_filename): Likewise.
25270 (grub_ieee1275_encode_devname): Likewise.
25272 2005-03-30 Marco Gerards <metgerards@student.han.nl>
25274 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
25275 `grub_loader_unset'.
25277 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
25279 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
25280 instead of grub_ieee1275_interpret.
25281 (grub_halt_init): New function.
25282 (grub_halt_fini): Likewise.
25283 (GRUB_MOD_INIT): Correct message grammar.
25284 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
25285 instead of grub_ieee1275_interpret.
25286 (grub_reboot_init): New function.
25287 (grub_reboot_fini): Likewise.
25288 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
25289 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
25290 util/i386/pc/misc.c with commands/ieee1275/halt.c,
25291 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
25292 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
25294 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
25296 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
25298 (grub_halt): Likewise.
25299 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
25300 (cmain): Remove __attribute__((unused)).
25301 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
25302 (grub_heap_len): Likewise.
25303 (grub_machine_fini): New function.
25304 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
25305 (grub_halt): Likewise.
25306 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
25308 * util/powerpc/ieee1275/misc.c: New file.
25310 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
25312 * DISTLIST: New file.
25313 * gendistlist.sh: Likewise.
25315 * Makefile.in (COMMON_DISTFILES): Removed.
25316 (BOOT_DISTFILES): Likewise.
25317 (CONF_DISTFILES): Likewise.
25318 (DISK_DISTFILES): Likewise.
25319 (FS_DISTFILES): Likewise.
25320 (INCLUDE_DISTFILES): Likewise.
25321 (KERN_DISTFILES): Likewise.
25322 (LOADER_DISTFILES): Likewise.
25323 (TERM_DISTFILES): Likewise.
25324 (UTIL_DISTFILES): Likewise.
25325 (DISTFILES): Likewise.
25326 (uninstall): Uninstall files in $(pkgdata_DATA).
25327 (DISTLIST): New target.
25328 (distdir): Use the contents of the file DISTLIST to get a list of
25331 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
25333 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
25334 descriptor. This is ported from GRUB Legacy.
25336 * gencmdlist.sh: Added an extra semicolon to make it work with
25337 old sed versions. Reported by Robert Bihlmeyer
25338 <robbe@orcus.priv.at>.
25340 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
25342 Automatic loading of commands is supported.
25344 * normal/main.c (read_command_list): New function.
25345 (grub_normal_execute): Call read_command_list.
25347 * normal/command.c (grub_register_command): Return zero or CMD.
25348 Allocate CMD->NAME from the heap.
25349 Initialize CMD->MODULE_NAME to zero.
25350 Find the same name as well. If the same command is found and it is
25351 a dummy command, overwrite members. If it is not a dummy command,
25353 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
25354 (grub_command_find): If a dummy command is found, load a module
25355 and retry to find a command only once.
25357 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
25358 make sure that each command is loaded.
25360 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
25362 (struct grub_command): Remove const from the member `name'.
25363 Add a new member `module_name'.
25364 (grub_register_command): Return grub_command_t.
25366 * commands/help.c (grub_cmd_help): Call grub_command_find to make
25367 sure that each command is loaded.
25369 * genmk.rb (PModule::rule): Specify a module name without the
25370 suffix ".mod" to gencmdlist.sh.
25372 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25374 * gencmdlist.sh: New file.
25376 * genmk.rb (PModule::rule): Generate a rule for a command list.
25378 Generate command.lst from $(COMMANDFILES).
25380 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
25381 (DATA): Added $(pkgdata_DATA).
25382 (install-local): Install files in $(pkgdata_DATA).
25384 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25386 * term/i386/pc/vga.c (debug_command): Removed.
25387 (GRUB_MOD_INIT): Do not register the command "debug".
25389 From Hollis Blanchard:
25390 * commands/configfile.c: New file.
25391 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25392 commands/configfile.c.
25393 (pkgdata_MODULES): Added configfile.mod.
25394 (configfile_mod_SOURCES): New variable.
25395 (configfile_mod_CFLAGS): Likewise.
25396 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25397 commands/configfile.c.
25398 (pkgdata_MODULES): Added configfile.mod.
25399 (configfile_mod_SOURCES): New variable.
25400 (configfile_mod_CFLAGS): Likewise.
25401 * util/grub-emu.c (main): Call grub_configfile_init and
25402 grub_configfile_fini.
25403 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
25405 [GRUB_UTIL] (grub_configfile_fini): Likewise.
25407 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25409 * normal/arg.c (grub_arg_show_help): Do not show the bug report
25412 * commands/help.c (grub_cmd_help): Do not print newlines after
25413 the last command in print_command_help.
25415 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25417 * commands/default.h: New file.
25418 * commands/timeout.h: Likewise.
25419 * normal/context.c: Likewise.
25421 * util/misc.c: Do not include sys/times.h.
25422 Include sys/time.h and grub/machine/time.h.
25423 (grub_get_rtc): Rewritten with gettimeofday.
25425 * util/grub-emu.c (main): Call grub_default_init and
25426 grub_timeout_init before grub_normal_init, and call
25427 grub_timeout_fini and grub_default_fini after grub_main.
25429 * util/console.c (grub_ncurses_checkkey): Return the read
25432 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
25435 * normal/main.c (read_config_file): Push MENU. If this fails,
25436 print an error and wait for a user input.
25437 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
25438 If a menu is empty or an error occurs, pop MENU.
25439 (grub_normal_execute): Pop and free MENU after grub_menu_run
25442 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
25444 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
25446 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25448 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
25450 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25453 * include/grub/normal.h (struct grub_menu_list): New struct.
25454 (grub_menu_list_t): New type.
25455 (struct grub_context): New struct.
25456 (grub_context_t): New type.
25457 (grub_register_command): Got rid of EXPORT_FUNC.
25458 (grub_unregister_command): Likewise.
25459 (grub_context_get): New prototype.
25460 (grub_context_get_current_menu): Likewise.
25461 (grub_context_push_menu): Likewise.
25462 (grub_context_pop_menu): Likewise.
25463 [GRUB_UTIL] (grub_default_init): Likewise.
25464 [GRUB_UTIL] (grub_default_fini): Likewise.
25465 [GRUB_UTIL] (grub_timeout_init): Likewise.
25466 [GRUB_UTIL] (grub_timeout_fini): Likewise.
25468 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
25469 commands/timeout.c and normal/context.c.
25470 (pkgdata_MODULES): Added default.mod and timeout.mod.
25471 (normal_mod_SOURCES): Added normal/context.c.
25472 (default_mod_SOURCES): New variable.
25473 (default_mod_CFLAGS): Likewise.
25474 (timeout_mod_SOURCES): Likewise.
25475 (timeout_mod_CFLAGS): Likewise.
25476 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
25478 (pkgdata_MODULES): Added default.mod and timeout.mod.
25479 (normal_mod_SOURCES): Added normal/context.c.
25480 (default_mod_SOURCES): New variable.
25481 (default_mod_CFLAGS): Likewise.
25482 (timeout_mod_SOURCES): Likewise.
25483 (timeout_mod_CFLAGS): Likewise.
25485 * Makefile.in (all-local): Added $(MKFILES).
25487 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
25489 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
25490 (grub_emu_SOURCES): Likewise.
25491 (pkgdata_MODULES): Add `sun.mod'.
25492 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
25493 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25495 (pkgdata_MODULES): Add `sun.mod'.
25496 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
25497 * include/grub/partition.h (grub_sun_partition_map_init): New
25499 (grub_sun_partition_map_fini): Likewise.
25500 * partmap/sun.c: New file.
25501 * util/grub-emu.c (main): Initialize and de-initialize the sun
25502 partitionmap support.
25504 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
25506 This implements an Emacs-like menu entry editor.
25508 * normal/menu_entry.c: New file.
25510 * util/console.c (grub_ncurses_putchar): Translate some Unicode
25511 characters to ASCII.
25512 (saved_char): New variable.
25513 (grub_ncurses_checkkey): Rewritten completely.
25514 (grub_ncurses_getkey): Likewise.
25515 (grub_ncurses_init): Call raw instead of cbreak.
25517 * normal/menu.c (print_entry): Do not put a space.
25518 (init_page): Renamed to ...
25519 (grub_menu_init_page): ... this. All callers changed.
25520 (edit_menu_entry): Removed.
25521 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
25523 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
25525 * kern/misc.c (grub_vprintf): Call grub_refresh.
25527 * normal/menu.c (DISP_LEFT): Renamed to ...
25528 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
25529 * normal/menu.c (DISP_UP): Renamed to ...
25530 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
25531 * normal/menu.c (DISP_RIGHT): Renamed to ...
25532 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
25533 * normal/menu.c (DISP_DOWN): Renamed to ...
25534 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
25535 * normal/menu.c (DISP_HLINE): Renamed to ...
25536 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
25537 * normal/menu.c (DISP_VLINE): Renamed to ...
25538 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
25539 * normal/menu.c (DISP_UL): Renamed to ...
25540 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
25541 * normal/menu.c (DISP_UR): Renamed to ...
25542 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
25543 * normal/menu.c (DISP_LL): Renamed to ...
25544 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
25545 * normal/menu.c (DISP_LR): Renamed to ...
25546 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
25547 * normal/menu.c (TERM_WIDTH): Renamed to ...
25548 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
25549 * normal/menu.c (TERM_HEIGHT): Renamed to ...
25550 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
25551 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
25552 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
25553 * normal/menu.c (TERM_MARGIN): Renamed to ...
25554 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
25555 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
25556 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
25557 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
25558 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
25559 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
25560 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
25561 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
25562 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
25563 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
25564 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
25565 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
25566 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
25567 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
25568 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
25569 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
25570 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
25571 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
25572 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
25573 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
25574 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
25575 All callers changed.
25577 * include/grub/normal.h: New prototype.
25579 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25580 normal/menu_entry.c.
25581 (normal_mod_SOURCES): Likewise.
25582 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25583 (normal_mod_SOURCES): Likewise.
25585 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
25587 * include/grub/normal.h (grub_halt_init): New prototype.
25588 (grub_halt_fini): Likewise.
25589 (grub_reboot_init): Likewise.
25590 (grub_reboot_fini): Likewise.
25592 * util/grub-emu.c: Include signal.h.
25593 (main_env): New global variable.
25594 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
25596 (grub_machine_fini): New function.
25597 (main): Call grub_halt_init and grub_reboot_init before
25598 grub_main, and grub_reboot_fini and grub_halt_fini after it.
25599 Call setjmp with MAIN_ENV to go back afterwards.
25600 Call grub_machine_fini right before return.
25602 * include/grub/util/misc.h: Include setjmp.h.
25603 (main_env): New prototype.
25605 * include/grub/kernel.h (grub_machine_fini): New prototype.
25606 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
25607 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
25609 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
25610 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
25611 * term/i386/pc/console.c (grub_console_fini): Likewise.
25613 * util/i386/pc/misc.c: New file.
25615 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25616 util/i386/pc/misc.c, commands/i386/pc/halt.c and
25617 commands/i386/pc/reboot.c.
25619 2005-02-14 Guillem Jover <guillem@hadrons.org>
25621 * include/grub/dl.h (grub_dl_check_header): New prototype.
25622 (grub_arch_dl_check_header): Change return type to grub_err_t,
25623 remove size parameter and export function. Update all callers.
25624 * kern/dl.c (grub_dl_check_header): New function.
25625 (grub_dl_load_core): Use `grub_dl_check_header' instead of
25626 `grub_arch_dl_check_header'. Check ELF type. Check if sections
25627 are inside the core.
25628 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
25629 independent ELF header checks.
25630 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
25631 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
25632 `grub_dl_check_header' instead of explicit checks. Check for the
25634 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
25635 `grub_dl_check_header' instead of explicit checks. Remove arch
25636 specific ELF header checks.
25638 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
25641 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
25643 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
25644 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
25646 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
25648 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
25649 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
25650 (part_map_iterate): Clear `grub_errno' and return 0 if
25651 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
25652 * partmap/amiga.c (amiga_partition_map_iterate): Return
25653 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
25654 * partmap/apple.c (apple_partition_map_iterate): Likewise.
25656 2005-02-01 Guillem Jover <guillem@hadrons.org>
25658 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
25661 2005-01-31 Marco Gerards <metgerards@student.han.nl>
25663 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
25665 (grub_rescue_cmd_linux): New prototype.
25666 (grub_rescue_cmd_initrd): Likewise.
25667 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
25669 (grub_linux_release_mem): Release the memory for the initrd.
25670 (grub_load_linux): Renamed from this...
25671 (grub_rescue_cmd_linux): ...To this. Changed all callers.
25672 Changed `entry' not to be static. Loop over memory regions to
25673 find another one when the default fails.
25674 (grub_rescue_cmd_initrd): New function.
25675 (grub_linux_init): Remove function.
25676 (grub_linux_fini): Likewise.
25677 (GRUB_MOD_INIT): Register `initrd'.
25678 (GRUB_MOD_FINI): Unregister `initrd'.
25679 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
25681 (grub_linux_normal_fini): Likewise.
25682 (GRUB_MOD_INIT): Register `initrd'.
25683 (GRUB_MOD_FINI): Unregister `initrd'.
25685 2005-01-31 Marco Gerards <metgerards@student.han.nl>
25687 * commands/help.c: New file.
25688 * normal/arg.c (show_help): Renamed to...
25689 (grub_arg_show_help): ... this.
25690 * commands/i386/pc/halt.c: New file.
25691 * commands/i386/pc/reboot.c: Likewise.
25692 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
25693 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
25694 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
25695 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
25697 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25699 (pkgdata_MODULES): Add `help.mod'.
25700 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
25701 * grub/i386/pc/init.h (grub_reboot): New prototype.
25702 (grub_halt): Likewise.
25703 * include/grub/normal.h (grub_arg_show_help): New prototype.
25704 (grub_help_init): Likewise.
25705 (grub_help_fini): Likewise.
25706 * util/grub-emu.c (main): Initialize and deinitialize the help
25709 * normal/cmdline.c (grub_cmdline_get): Doc fix.
25711 * normal/command.c (grub_command_init): Fixed the description of
25712 the `set' and `unset' commands.
25714 2005-01-31 Marco Gerards <metgerards@student.han.nl>
25716 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
25718 * commands/ieee1275/halt.c: New file.
25719 * commands/ieee1275/reboot.c: Likewise.
25720 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
25721 `__attribute__ ((unused))'. Some GCS related fixed.
25722 (grub_suspend_init) [GRUB_UTIL]: Function removed.
25723 (grub_suspend_fini): Likewise.
25724 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
25726 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
25727 (halt_mod_CFLAGS): New variables.
25728 * include/grub/powerpc/ieee1275/ieee1275.h
25729 (grub_ieee1275_interpret): New prototype.
25731 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
25733 * include/grub/misc.h (memmove): New prototype.
25734 (memcpy): Likewise.
25736 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
25738 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
25739 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
25741 2005-01-22 Marco Gerards <metgerards@student.han.nl>
25743 * kern/misc.c (grub_strndup): Function rewritten.
25745 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
25747 * normal/menu.c (TERM_WIDTH): Macro redefined.
25748 (TERM_TOP_BORDER_Y): Likewise.
25749 (draw_border): Replaced while-loop by a for-loop. Make the number
25750 of lines consistent with the number of lines displayed in
25751 print_entries. Added a margin below the rectangle.
25752 (print_entry): Make the entry fit in the rectangle.
25753 (print_entries): Display the scroll arrows next to the right
25756 2005-01-21 Marco Gerards <metgerards@student.han.nl>
25758 * fs/minix.c (grub_minix_find_file): Reserve more space for
25759 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
25760 `grub_strncpy' to copy `path' into it.
25762 2005-01-21 Marco Gerards <metgerards@student.han.nl>
25764 Add the loopback device, a device via which files can be accessed
25767 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
25768 (pkgdata_MODULES): Add loopback.mod.
25769 (loopback_mod_SOURCES): New variable.
25770 (loopback_mod_CFLAGS): Likewise.
25771 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25773 (pkgdata_MODULES): Add loopback.mod.
25774 (loopback_mod_SOURCES): New variable.
25775 (loopback_mod_CFLAGS): Likewise.
25776 * disk/loopback.c: new file.
25777 * include/grub/normal.h (grub_loop_init): New prototype.
25778 (grub_loop_fini): New prototype.
25779 * util/grub-emu.c (main): Initialize and de-initialize loopback
25781 * include/grub/disk.h (grub_disk_dev_id): Add
25782 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
25784 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
25786 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
25788 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
25789 (suspend_mod_SOURCES): New variable.
25790 (suspend_mod_CFLAGS): Likewise.
25791 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
25793 * commands/ieee1275/suspend.c: New file.
25795 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
25797 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
25798 ((unused))' to `__attribute__ ((used))'.
25799 (GRUB_MOD_FINI): Likewise.
25800 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
25801 * genmk.rb (PModule): Assign space to common symbols when linking
25804 2005-01-20 Marco Gerards <metgerards@student.han.nl>
25806 * include/grub/mm.h (grub_mm_init_region): Change the type of the
25807 `unsigned' arguments to `grub_size_t'.
25808 (grub_malloc): Likewise.
25809 (grub_realloc): Likewise.
25810 (grub_memalign): Likewise.
25811 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
25812 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
25813 * util/misc.c (grub_malloc): Likewise.
25814 (grub_realloc): Likewise.
25815 * kern/mm.c (get_header_from_pointer): Change the casts to
25816 `unsigned' into a cast to `grub_size_t'.
25818 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
25819 point to `currnode' when `currnode' is changed.
25821 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
25822 Schottelius <nico-linux@schottelius.org>.
25824 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
25826 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
25827 (note_path): Remove variable.
25828 (GRUB_IEEE1275_NOTE_NAME): New macro.
25829 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
25830 (grub_ieee1275_note_hdr): New structure.
25831 (grub_ieee1275_note_desc): Likewise.
25832 (grub_ieee1275_note): Likewise.
25833 (load_note): Remove `dir' argument. All callers updated. Remove
25834 `note_img' and `path'. Do not load a file from `note_path'.
25835 Initialize a struct grub_ieee1275_note and write that to `out'.
25836 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
25838 2005-01-05 Marco Gerards <metgerards@student.han.nl>
25840 * util/misc.c (grub_util_read_image): Revert last change. It
25841 called `grub_util_read_at', which seeks from the beginning of the
25844 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
25846 * TODO: Add note about endianness in grub-mkimage.
25847 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
25849 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
25850 (grub_mkimage_SOURCES): New target.
25851 * include/grub/kernel.h (grub_start_addr): Remove variable.
25852 (grub_end_addr): Likewise.
25853 (grub_total_module_size): Likewise.
25854 (grub_kernel_image_size): Likewise.
25855 (GRUB_MODULE_MAGIC): New constant.
25856 (grub_module_info): New structure.
25857 (grub_arch_modules_addr): New prototype.
25858 (grub_get_end_addr): Remove prototype.
25859 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
25860 * include/grub/powerpc/ieee1275/kernel.h: New file.
25861 * include/grub/util/misc.h (grub_util_get_fp_size): New
25863 (grub_util_read_at): Likewise.
25864 (grub_util_write_image_at): Likewise.
25865 * kern/main.c (grub_get_end_addr): Remove function.
25866 (grub_load_modules): Call grub_arch_modules_addr instead of using
25867 grub_end_addr. Look for a grub_module_info struct in memory. Use
25868 the grub_module_info fields instead of calling grub_get_end_addr
25869 as loop conditions. Move grub_add_unused_region code here.
25870 (grub_add_unused_region): Remove function.
25871 * kern/i386/pc/init.c: Include grub/cache.h.
25872 (grub_machine_init): Remove call to grub_get_end_addr. Remove
25873 one call to add_mem_region.
25874 (grub_arch_modules_addr): New function.
25875 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
25876 (grub_total_module_size): Likewise.
25877 Include grub/machine/kernel.h.
25878 (grub_arch_modules_addr): New function.
25879 * util/grub-emu.c (grub_end_addr): Remove variable.
25880 (grub_total_module_size): Likewise.
25881 (grub_arch_modules_addr): New function.
25882 * util/misc.c: Include unistd.h.
25883 (grub_util_get_fp_size): New function.
25884 (grub_util_read_at): Likewise.
25885 (grub_util_write_image_at): Likewise.
25886 (grub_util_read_image): Call grub_util_read_at.
25887 (grub_util_write_image): Call grub_util_write_image_at.
25888 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
25889 additional memory in kernel_img for a struct grub_module_info.
25890 Fill in that grub_module_info.
25891 * util/powerpc/ieee1275/grub-mkimage.c: New file.
25893 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
25895 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
25897 * include/grub/powerpc/ieee1275/ieee1275.h
25898 (grub_ieee1275_milliseconds): New prototype.
25899 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
25901 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
25902 grub_ieee1275_milliseconds.
25904 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
25906 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
25908 (find_options): New function.
25909 (cmain): Call find_options.
25910 * include/grub/powerpc/ieee1275/ieee1275.h
25911 (grub_ieee1275_realmode): New extern variable.
25912 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
25913 grub_map if grub_ieee1275_realmode is false.
25915 2004-12-29 Marco Gerards <metgerards@student.han.nl>
25917 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
25918 lines are inserted and make it work like readline. Reported by
25919 Vincent Pelletier <subdino2004@yahoo.fr>.
25921 2004-12-28 Marco Gerards <metgerards@student.han.nl>
25923 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
25925 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
25926 `kern/powerpc/cache.S'.
25928 2004-12-27 Marco Gerards <metgerards@student.han.nl>
25930 * genmk.rb: Handle the `Program' class in the main loop. Written
25931 by Johan Rydberg <jrydberg@gnu.org>.
25932 (Program): New class.
25933 (programs): New variable.
25934 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
25935 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
25936 instead of "grub/kernel.h". Include <grub/machine/init.h>.
25937 (help_arch): Function removed.
25938 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
25939 `powerpc/libgcc.h' and `loader.h'.
25940 (pkgdata_PROGRAMS): New variable.
25941 (sbin_UTILITIES): Variable removed.
25942 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
25943 (grubof_SOURCES): Variable re-defined so it only includes the
25944 core functionality.
25945 (grubof_CFLAGS): Remove `-DGRUBOF'.
25946 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
25947 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
25948 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
25949 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
25950 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
25951 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
25952 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
25953 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
25954 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
25955 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
25956 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
25957 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
25958 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
25959 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
25960 (pc_mod_CFLAGS): New variables.
25961 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
25962 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
25963 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
25964 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
25966 * include/grub/i386/pc/init.h (grub_os_area_addr)
25967 (rub_os_area_size): ... to here.
25968 * include/grub/powerpc/ieee1275/ieee1275.h
25969 (grub_ieee1275_entry_fn): Export symbol.
25970 * include/grub/powerpc/ieee1275/init.h: New file.
25971 * include/grub/powerpc/libgcc.h: Likewise.
25972 * include/grub/cache.h: Likewise.
25973 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
25974 <hollis@penguinppc.org>.
25975 * kern/dl.c: Include <grub/cache.h>.
25976 (grub_dl_flush_cache): New function.
25977 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
25979 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
25980 (grub_console_init): Removed prototypes.
25981 (grub_machine_init): Don't initialize the modules anymore.
25982 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
25984 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
25985 Macro undef removed.
25986 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
25987 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
25988 relocation `R_PPC_REL32'. Return an error when the relocation is
25990 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
25991 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
25992 * util/misc.c (grub_arch_sync_caches): Likewise.
25994 2004-12-19 Marco Gerards <metgerards@student.han.nl>
25996 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
25997 `symlist.c', add `grubof_symlist.c'.
25998 (symlist.c): Variable removed.
25999 (grubof_HEADERS): Variable added.
26000 (grubof_symlist.c): New target.
26001 (kernel_syms.lst): Use `grubof_HEADERS' instead of
26002 `kernel_img_HEADERS'.
26003 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
26004 * kern/powerpc/dl.c: New file.
26005 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
26007 (grub_arch_dl_relocate_symbols): Likewise.
26008 (grub_register_exported_symbols): Likewise.
26010 2004-12-13 Marco Gerards <metgerards@student.han.nl>
26012 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
26013 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
26014 to fail instead. Reported by Vincent Pelletier
26015 <subdino2004@yahoo.fr>.
26017 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
26018 it is not allocated. Reported by Vincent Pelletier
26019 <subdino2004@yahoo.fr>.
26021 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
26022 output so the output looks better.
26024 2004-12-04 Marco Gerards <metgerards@student.han.nl>
26026 Modulize the partition map support and add support for the amiga
26029 * commands/ls.c: Include <grub/partition.h> instead of
26030 <grub/machine/partition.h>.
26031 * kern/disk.c: Likewise.
26032 * kern/rescue.c: Likewise.
26033 * loader/i386/pc/chainloader.c: Likewise.
26034 * normal/cmdline.c: Likewise.
26035 * kern/powerpc/ieee1275/init.c: Likewise.
26036 (grub_machine_init): Call `grub_pc_partition_map_init',
26037 `grub_amiga_partition_map_init' and
26038 `grub_apple_partition_map_init'.
26039 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
26040 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
26041 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
26042 `partition.h' and `pc_partition.h'.
26043 (grub_setup_SOURCES): Remove
26044 `disk/i386/pc/partition.c'. Add `kern/partition.c',
26045 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26046 (grub_emu_SOURCES): Likewise.
26047 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
26048 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
26049 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
26050 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26051 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
26052 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26053 (grubof_SOURCES): Likewise.
26054 * disk/i386/pc/partition.c: File removed.
26055 * disk/powerpc/ieee1275/partition.c: Likewise.
26056 * include/grub/powerpc/ieee1275/partition.h: Likewise.
26057 * include/grub/i386/pc/partition.h: Likewise.
26058 * kern/partition.c: New file.
26059 * partmap/amiga.c: Likewise.
26060 * partmap/apple.c: Likewise.
26061 * partmap/pc.c: Likewise.
26062 * include/grub/partition.h: Likewise..
26063 * include/grub/pc_partition.h: Likewise.
26064 * util/grub-emu.c: Include <grub/partition.h> instead of
26065 <grub/machine/partition.h>.
26066 (main): Call `grub_pc_partition_map_init',
26067 `grub_amiga_partition_map_init' and
26068 `grub_apple_partition_map_init' and deinitialize afterwards.
26069 * util/i386/pc/biosdisk.c: Include `#include
26070 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26071 `<grub/machine/partition.h>'.
26072 * util/i386/pc/grub-setup.c: Likewise.
26073 * util/i386/pc/biosdisk.c: Likewise.
26074 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
26075 partition information in case of a PC partition.
26076 * util/i386/pc/grub-setup.c: Include `#include
26077 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26078 `<grub/machine/partition.h>'.
26079 (setup): Only access the PC specific partition information in case
26082 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
26084 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
26085 (grub_longjmp): Likewise.
26086 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
26088 * normal/powerpc/setjmp.S: New file.
26089 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26090 `normal/powerpc/setjmp.S'.
26091 (grubof_CFLAGS): Add `-DGRUBOF'.
26092 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
26093 [GRUB_UTIL && !GRUBOF].
26095 2004-11-16 Marco Gerards <metgerards@student.han.nl>
26097 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
26098 property named `name'. Correctly handle the error returned by
26099 `grub_ieee1275_finddevice' if a device can not be opened.
26101 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
26103 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
26104 `actual' for negativity.
26105 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26108 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26110 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
26111 (PAGE_OFFSET): New macro.
26112 (CRTC_ADDR_PORT): Likewise.
26113 (CRTC_DATA_PORT): Likewise.
26114 (START_ADDR_HIGH_REGISTER): Likewise.
26115 (START_ADDR_LOW_REGISTER): Likewise.
26116 (GRAPHICS_ADDR_PORT): Likewise.
26117 (GRAPHICS_DATA_PORT): Likewise.
26118 (READ_MAP_REGISTER): Likewise.
26119 (INPUT_STATUS1_REGISTER): Likewise.
26120 (INPUT_STATUS1_VERTR_BIT): Likewise.
26121 (page): New variable.
26122 (wait_vretrace): New function.
26123 (set_read_map): Likewise.
26124 (set_start_address): Likewise.
26125 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
26127 (check_vga_mem): Take the page into account.
26128 (write_char): Likewise.
26129 (write_cursor): Likewise.
26130 (scroll_up): Likewise. Copy the page to the page that is not
26131 shown and switch between both pages.
26132 (grub_vga_putchar): Fix off by one error.
26133 (grub_vga_cls): Wait for the vertical retrace. Take the page into
26136 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26138 Add support for iso9660 (including rockridge).
26140 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26141 (iso9660_mod_SOURCES): New variable.
26142 (iso9660_mod_CFLAGS): Likewise.
26143 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26144 * include/grub/fs.h (grub_iso9660_init): New prototype.
26145 * util/grub-emu.c (main): Call `grub_iso9660_init'.
26146 * fs/iso9660.c: New file.
26148 * include/grub/misc.h (grub_strncat): New prototype.
26149 * kern/misc.c (grub_strncat): New function.
26151 * fs/hfs.c (grub_hfs_mount): Translate the error
26152 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
26153 * fs/jfs.c (grub_jfs_mount): Likewise.
26154 * fs/ufs.c (grub_ufs_mount): Likewise.
26156 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
26158 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
26159 which initialized BAT registers.
26160 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
26161 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26163 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
26164 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26166 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
26167 (grub_mapclaim): Likewise.
26168 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
26169 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
26172 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
26174 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
26175 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
26176 -ffreestanding and -msoft-float.
26178 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
26180 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
26181 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
26182 set in grub_ieee1275_flags.
26184 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
26186 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
26188 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
26189 grub_console_init first.
26190 Change the memory range used for grub_ieee1275_claim and
26191 grub_mm_init_region.
26192 Print an error message if the claim fails.
26193 Include <grub/misc.h>.
26195 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
26197 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
26198 Call grub_children_iterate for device nodes of type `scsi',
26200 (grub_ofdisk_open): Remove manual device alias resolution.
26201 Fix memory leak when device cannot be opened.
26202 * include/grub/powerpc/ieee1275/ieee1275.h
26203 (grub_children_iterate): New prototype.
26204 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
26206 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26207 Return -1 if args.size was -1.
26209 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26211 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
26212 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
26213 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
26214 Open Firmware's memory for it; claim memory from _start to _end.
26215 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
26216 (_end): New extern.
26217 (_start): Zero BSS from __bss_start to _end.
26218 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26220 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
26222 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26224 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
26225 -1 if args.base was -1.
26227 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
26229 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
26230 escape sequence instead of a literal ^L. Also call
26231 grub_ofconsole_gotoxy.
26233 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
26235 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
26236 void * arguments to grub_addr_t. All callers updated. Also make
26237 the `result' argument optional.
26238 (grub_ieee1275_release): change void * arguments to grub_addr_t.
26239 All callers updated.
26241 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
26243 * commands/ls.c (grub_ls_list_files): Use the string following the
26244 initial ')', if present, as the filesystem path.
26245 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
26247 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
26249 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
26251 Make the source code of the menu interface more readable.
26253 * normal/menu.c: Include grub/mm.h.
26254 (TERM_WIDTH): New macro.
26255 (TERM_HEIGHT): Likewise.
26256 (TERM_INFO_HEIGHT): Likewise.
26257 (TERM_MARGIN): Likewise.
26258 (TERM_SCROLL_WIDTH): Likewise.
26259 (TERM_TOP_BORDER_Y): Likewise.
26260 (TERM_LEFT_BORDER_X): Likewise.
26261 (TERM_BORDER_WIDTH): Likewise.
26262 (TERM_MESSAGE_HEIGHT): Likewise.
26263 (TERM_BORDER_HEIGHT): Likewise.
26264 (TERM_NUM_ENTRIES): Likewise.
26265 (TERM_FIRST_ENTRY_Y): Likewise.
26266 (TERM_ENTRY_WIDTH): Likewise.
26267 (TERM_CURSOR_X): Likewise.
26268 (draw_border): Use macros instead of magic numbers.
26269 (print_entry): Likewise.
26270 (print_entries): Likewise.
26271 (run_menu): Likewise. Also, handle the key 'e'.
26272 (run_menu_entry): Ignore empty command lines.
26273 (print_message): Added a new argument EDIT. If EDIT is true,
26274 print a different message.
26275 (init_page): Likewise.
26276 (edit_menu_entry): New function. Not implemented yet.
26278 2004-09-17 Marco Gerards <metgerards@student.han.nl>
26280 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
26281 can be loaded from normal mode.
26283 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
26285 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
26286 (multiboot_mod_CFLAGS): New variables.
26287 * loader/i386/pc/linux_normal.c: New file.
26288 * loader/i386/pc/multiboot_normal.c: Likewise.
26290 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
26291 attribute `unused'.
26293 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
26294 `fdiro' to read the mode information from instead of `diro'.
26296 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
26297 looking up a symlink.
26299 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
26301 * normal/command.c (grub_command_execute): Don't parse the
26302 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
26303 flags of the command.
26305 * normal/menu.c (grub_menu_run): Fix typo.
26307 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
26309 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
26311 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
26312 `y + 1' instead of `y - 1'.
26314 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
26316 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
26318 From Hollis Blanchard <hollis@penguinppc.org>:
26319 * kern/misc.c (memmove): New alias for grub_memmove.
26320 (memcmp): New alias for grub_memcmp.
26321 (memset): New alias for grub_memset.
26322 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26323 Change "int handle" to "grub_ieee1275_phandle_t handle".
26324 * include/grub/powerpc/ieee1275/ieee1275.h
26325 (grub_ieee1275_get_property): Likewise.
26327 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
26329 Added normal mode command `chainloader' as module chain.mod, which
26330 depends on normal.mod and _chain.mod.
26332 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
26333 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
26334 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
26336 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
26337 but arguments parsing moved to ...
26338 (grub_chainloader_cmd): ... here. New function.
26339 * include/grub/i386/pc/chainloader.h: New file.
26340 * loader/i386/pc/chainloader_normal.c: Likewise.
26342 2004-09-11 Marco Gerards <metgerards@student.han.nl>
26344 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
26345 (grub_mkimage_LDFLAGS): Likewise.
26346 (grub_emu_SOURCES): Likewise.
26347 (kernel_img_HEADERS): Added fshelp.h.
26348 * fs/ext2.c: Include <grub/fshelp.h>.
26349 (FILETYPE_REG): New macro.
26350 (FILETYPE_INO_REG): Likewise.
26351 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
26353 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
26355 (grub_fshelp_node): New struct.
26356 (grub_ext2_data): Added member `diropen'. Changed member `inode'
26358 (grub_ext2_get_file_block): Removed function.
26359 (grub_ext2_read_block): New function.
26360 (grub_ext2_read_file): Replaced parameter `data' by `node'.
26361 This function was written.
26362 (grub_ext2_mount): Read the root inode. Create a diropen struct.
26363 (grub_ext2_find_file): Removed function.
26364 (grub_ext2_read_symlink): New function.
26365 (grub_ext2_iterate_dir): Likewise.
26366 (grub_ext2_open): Rewritten.
26367 (grub_ext2_dir): Rewritten.
26368 * include/grub/fshelp.h: New file.
26369 * fs/fshelp.c: Likewise.
26371 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
26373 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
26374 (print_message): Add a missing newline.
26375 (run_menu): Added timeout support.
26376 (run_menu_entry): New local function.
26377 (grub_menu_run): Added support for booting.
26379 * kern/loader.c (grub_loader_is_loaded): New function.
26381 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
26382 (grub_get_rtc): Exported.
26384 * include/grub/i386/pc/time.h: Include grub/symbol.h.
26385 (grub_get_rtc): Exported.
26387 * include/grub/normal.h (struct grub_command_list): Remove
26388 constant from the member `command'.
26390 * include/grub/loader.h (grub_loader_is_loaded): Declared.
26392 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
26394 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
26396 2004-08-28 Marco Gerards <metgerards@student.han.nl>
26398 Add support for the JFS filesystem.
26400 * fs/jfs.c: New file.
26401 * include/grub/fs.h (grub_jfs_init): New prototype.
26402 (grub_jfs_fini): New prototype.
26403 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
26404 (grub_emu_SOURCES): Likewise.
26405 (pkgdata_MODULES): Add jfs.mod.
26406 (jfs_mod_SOURCES): New variable.
26407 (jfs_mod_CFLAGS): Likewise.
26408 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
26409 (grubof_SOURCES): Likewise.
26410 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
26412 * fs/fat.c (grub_fat_find_dir): Convert the filename little
26413 endian to the host endian.
26414 (grub_fat_utf16_to_utf8): Move function from there...
26415 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
26416 the endianness of the source string anymore.
26417 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
26419 2004-08-24 Marco Gerards <metgerards@student.han.nl>
26421 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
26422 (grub_boot_fini) [GRUB_UTIL]: Likewise.
26423 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
26424 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
26426 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
26427 (grub_hfs_iterate_dir): Make the function static. Add prototypes
26428 for `node_found' and `it_dir'.
26429 (grub_hfs_dir): Add prototype for `dir_hook'.
26431 * fs/minix.c (grub_minix_get_file_block): Add prototype for
26432 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
26433 and `indir32' to silence a gcc warning.
26435 * include/grub/fs.h (grub_hfs_init): New prototype.
26436 (grub_hfs_fini): Likewise.
26439 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
26441 Each disk device has its own id now. This is useful to make use
26442 of multiple disk devices.
26444 * include/grub/disk.h (grub_disk_dev_id): New enum.
26445 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
26446 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
26448 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
26449 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26451 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
26452 GRUB_DISK_DEVICE_OFDISK_ID as an id.
26454 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
26455 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26457 * include/grub/disk.h (struct grub_disk_dev): Added a new member
26458 "id" which is used by the cache manager.
26460 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
26463 2004-08-18 Marco Gerards <metgerards@student.han.nl>
26465 * fs/hfs.c: New file.
26466 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
26467 (grub_emu_SOURCES): Likewise.
26468 (pkgdata_MODULES): Add hfs.mod.
26469 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
26470 (grubof_SOURCES): Likewise.
26471 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
26473 * include/grub/misc.h (grub_strncasecmp): Add prototype.
26474 * kern/misc.c (grub_strncasecmp): Add function.
26476 2004-08-14 Marco Gerards <metgerards@student.han.nl>
26478 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
26481 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
26482 (grub_ext2_dir): In case the directory entry type is unknown, read
26485 2004-08-02 Peter Bruin <pjbruin@dds.nl>
26487 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
26488 grub_load_linux instead of grub_rescue_cmd_linux as second
26489 argument of grub_rescue_register_command.
26491 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
26493 2004-07-27 Marco Gerards <metgerards@student.han.nl>
26495 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
26497 * commands/boot.c: Remove the check for `GRUB_UTIL'.
26498 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26499 `loader/powerpc/ieee1275/linux.c',
26500 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
26501 * include/grub/powerpc/ieee1275/ieee1275.h
26502 (grub_ieee1275_release): New prototype.
26503 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
26504 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
26505 normal, boot, linux and linux_normal.
26506 * loader/powerpc/ieee1275/linux.c: New file.
26507 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
26509 2004-07-12 Marco Gerards <metgerards@student.han.nl>
26511 * normal/arg.c (grub_arg_parse): Correct error handling after
26512 reallocating the argumentlist (check if `argl' is not null instead
26513 of checking if `args' is not null).
26514 * kern/mm.c (grub_realloc): Return the same pointer when using the
26515 same region, instead of returning the header address.
26517 2004-07-11 Marco Gerards <metgerards@student.han.nl>
26519 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
26520 one block instead of two when looking for the initial partition.
26521 (grub_partition_probe): Initialize the local variable `p' with 0.
26522 Use base 10 for the grub_strtoul call.
26523 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
26524 need for one local variable.
26525 (grub_strtoul): Don't add the new value to `num', instead of that
26528 2004-07-11 Marco Gerards <metgerards@student.han.nl>
26530 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
26531 (pxeboot_img_SOURCES): New variable.
26532 (pxeboot_img_ASFLAGS): Likewise.
26533 (pxeboot_img_LDFLAGS): Likewise.
26534 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
26535 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
26536 <lode_leroy@hotmail.com>.
26538 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26540 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
26541 there was no input.
26543 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26545 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
26546 the history buffer logic.
26548 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26550 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
26551 (FILETYPE_INO_SYMLINK): New macros.
26552 (grub_ext2_find_file): Check if the node is a directory using the
26553 inode stat information instead of using the filetype in the
26554 dirent. Exclude the first character of an absolute symlink.
26555 (grub_ext2_dir): Mask out the filetype part of the mode member of
26558 2004-05-24 Marco Gerards <metgerards@student.han.nl>
26560 Add support for UFS version 1 and 2. Add support for the minix
26561 filesystem version 1 and 2, both the variants with 14 and 30 long
26564 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
26566 (grub_emu_SOURCES): Likewise.
26567 (pkgdata_MODULES): Add ufs.mod and minix.mod.
26568 (ufs_mod_SOURCES): New variable.
26569 (ufs_mod_CFLAGS): Likewise.
26570 (minix_mod_SOURCES): Likewise.
26571 (minix_mod_CFLAGS): Likewise.
26572 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
26574 (grubof_SOURCES): Likewise.
26575 * fs/ufs.c: New file.
26576 * fs/minix.c: New file.
26577 * include/grub/fs.h (grub_ufs_init): New prototype.
26578 (grub_ufs_fini): Likewise.
26579 (grub_minix_init): Likewise.
26580 (grub_minix_fini): Likewise.
26581 * util/grub-emu.c (main): Initialize and deinitialize UFS and
26584 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
26586 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
26587 commands/ls.c, commands/terminal.c, commands/boot.c,
26588 commands/cmp.c and commands/cat.c.
26589 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
26591 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
26594 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
26596 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
26597 and grub_, respectively. Because the conversion is trivial and
26598 mechanical, I omit the details here. Please refer to the CVS
26599 if you need more information.
26601 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
26603 * include/pupa: Renamed to ...
26604 * include/grub: ... this.
26605 * util/i386/pc/pupa-mkimage.c: Renamed to ...
26606 * util/i386/pc/grub-mkimage.c: ... this.
26607 * util/i386/pc/pupa-setup.c: Renamed to ...
26608 * util/i386/pc/grub-setup.c: ... this.
26609 * util/pupa-emu.c: Renamed to ...
26610 * util/grub-emu.c: ... this.
26612 2004-03-29 Marco Gerards <metgerards@student.han.nl>
26614 Add support for the newworld apple macintosh (PPC). This has been
26615 tested on the powerbook 2000 only. It only adds support for
26616 generic ieee1275 functions, console and disk support. This should
26617 be easy to port to other architectures with support for Open
26620 * configure.ac: Accept the powerpc as host_cpu. In the case of
26621 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
26622 specific tests are only executed while building for the i386.
26623 Inverse test for crosscompile.
26624 * genmk.rb (Utility): Allow assembler files.
26625 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
26626 * conf/powerpc-ieee1275.rmk: New file.
26627 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
26628 * disk/powerpc/ieee1275/partition.c: Likewise.
26629 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
26630 * include/pupa/powerpc/ieee1275/console.h: Likewise.
26631 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
26632 * include/pupa/powerpc/ieee1275/time.h: Likewise.
26633 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
26634 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
26635 * include/pupa/powerpc/ieee1275/loader.h
26636 * include/pupa/powerpc/setjmp.h: Likewise.
26637 * include/pupa/powerpc/types.h: Likewise.
26638 * kern/powerpc/ieee1275/init.c: Likewise.
26639 * kern/powerpc/ieee1275/openfw.c: Likewise.
26640 * term/powerpc/ieee1275/ofconsole.c: Likewise.
26642 These files were written by Johan Rydberg
26643 (jrydberg@night.trouble.net) and I only modified them slightly.
26645 * boot/powerpc/ieee1275/cmain.c: New file.
26646 * boot/powerpc/ieee1275/crt0.S: Likewise.
26647 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
26648 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
26650 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
26652 * Makefile.in: Update copyright.
26653 * genmodsrc.sh: Likewise.
26654 * gensymlist.sh: Likewise.
26655 * term/i386/pc/vga.c: Indent correctly.
26657 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
26658 bugreporting address.
26659 * util/i386/pc/pupa-setup.c (usage): Likewise,
26660 (main): Call pupa_ext2_init and pupa_ext2_fini.
26662 * fs/fat.c (log2): Renamed to ...
26663 (fat_log2): ... this.
26664 All callers changed.
26665 * kern/misc.c (memcpy): Alias to pupa_memmove.
26666 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
26668 * util/console.c (pupa_ncurses_fini): Return 0.
26670 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
26671 Move fail label here.
26672 [__GNU__]: Don't warn when using stat.
26673 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
26674 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
26675 long int. Use strtol instead of strtoul.
26677 2004-03-14 Marco Gerards <metgerards@student.han.nl>
26679 * commands/boot.c: New file.
26680 * commands/cat.c: Likewise.
26681 * commands/cmp.c: Likewise.
26682 * commands/ls.c: Likewise.
26683 * commands/terminal.c: Likewise.
26684 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
26685 (pupa_register_command): Changed interface to match the new
26687 (pupa_command_execute): Changed (almost rewritten) so it uses
26688 pupa_split_command. Added support for setting variables using the
26690 (rescue_command): Changed to work with the new argument parser.
26691 (terminal_command): Moved from here to commands/terminal.c.
26692 (set_command): New function.
26693 (unset_command): New function.
26694 (insmod_command): New function.
26695 (rmmod_command): New function.
26696 (lsmod_command): New function.
26697 (pupa_command_init): Don't initialize the command terminal
26698 anymore. Initialize the commands set, unset, insmod, rmmod and
26700 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
26701 (kernel_img_HEADERS): Add arg.h and env.h.
26702 (pupa_mkimage_LDFLAGS): Add kern/env.c.
26703 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
26704 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
26706 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
26708 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
26709 (boot_mod_SOURCES): New variable.
26710 (terminal_mod_SOURCES): Likewise.
26711 (ls_mod_SOURCES): Likewise.
26712 (cmp_mod_SOURCES): Likewise.
26713 (cat_mod_SOURCES): Likewise.
26715 * normal/arg.c: New file.
26716 * kern/env.c: Likewise.
26717 * include/pupa/arg.h: Likewise.
26718 * include/pupa/env.h: Likewise.
26719 * font/manager.c (font_command): Changed to match argument parsing
26721 (PUPA_MOD_INIT): Likewise.
26722 * hello/hello.c (pupa_cmd_hello): Likewise.
26723 (PUPA_MOD_INIT): Likewise.
26724 * include/pupa/disk.h: Include <pupa/device.h>.
26725 (pupa_print_partinfo): New prototype.
26726 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
26727 (pupa_dl_get_prefix): Likewise.
26728 * include/pupa/misc.h: Include <pupa/err.h>.
26729 (pupa_isgraph): New prototype.
26730 (pupa_isdigit): Likewise.
26731 (pupa_split_cmdline): Likewise.
26732 * include/pupa/normal.h: Include <pupa/arg.h>.
26733 (pupa_command): Changed the prototype of the member `func' to
26734 match the argument parsing interface. Added member `options'.
26735 (pupa_register_command): Updated to match function.
26736 (pupa_arg_parse): New prototype.
26737 (pupa_hello_init) [PUPA_UTIL]: New prototype.
26738 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
26739 (pupa_ls_init) [PUPA_UTIL]: Likewise.
26740 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
26741 (pupa_cat_init) [PUPA_UTIL]: Likewise.
26742 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
26743 (pupa_boot_init) [PUPA_UTIL]: Likewise.
26744 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
26745 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
26746 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
26747 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
26748 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
26749 * kern/disk.c: Include <pupa/file.h>.
26750 (pupa_print_partinfo): New function.
26751 * kern/dl.c: Include <pupa/env.h>.
26752 (pupa_dl_dir): Variable removed.
26753 (pupa_dl_load): Use the environment variable `prefix' instead of
26754 the variable pupa_dl_dir.
26755 (pupa_dl_set_prefix): Function removed.
26756 (pupa_dl_get_prefix): Likewise.
26757 * kern/i386/pc/init.c: Include <pupa/env.h>.
26758 (pupa_machine_init): Use the environment variable `prefix' instead of
26759 using pupa_dl_set_prefix to set the prefix.
26760 * kern/main.c: Include <pupa/env.h>.
26761 (pupa_set_root_dev): Use the environment variable `prefix' instead of
26762 using pupa_dl_get_prefix to get the prefix.
26763 * kern/misc.c: Include <pupa/env.h>.
26764 (pupa_isdigit): New function.
26765 (pupa_isgraph): Likewise.
26766 (pupa_ftoa): Likewise.
26767 (pupa_vsprintf): Added support for printing values of the type
26768 `double'. Make it possible to format variable output when using
26769 formatting like `%1.2%f'.
26770 (pupa_split_cmdline): New function.
26771 * kern/rescue.c: Include <pupa/env.h>.
26772 (next_word): Removed function.
26773 (pupa_rescue_cmd_prefix): Likewise.
26774 (pupa_rescue_cmd_set): New function.
26775 (pupa_rescue_cmd_unset): New function.
26776 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
26777 split the command line instead of splitting it here. Added
26778 support for setting variables using the syntax `foo=bar'. Don't
26779 initialize the prefix command anymore. Initialized the set and
26781 * normal/cmdline.c: Include <pupa/env.h>.
26782 (pupa_tab_complete): Added prototypes for print_simple_completion,
26783 print_partition_completion, add_completion, iterate_commands,
26784 iterate_dev, iterate_part and iterate_dir. Moved code to print
26785 partition information from here to kern/disk.c.
26786 (pupa_cmdline_run): Don't check if the function exists anymore.
26787 * normal/main.c: Include <pupa/env.h>.
26788 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
26789 instead of using pupa_dl_get_prefix to get the prefix.
26790 * term/i386/pc/vga.c: Include <pupa/arg.h>.
26791 (check_vga_mem): Cast pointers to `void *' to silence a gcc
26793 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
26794 (pupa_vga_setcolor): Declare unused variables with `__attribute__
26795 ((unused))' to silence a gcc warning.
26796 (pupa_vga_setcolor): Likewise.
26797 (debug_command): Changed to match argument parsing
26799 * util/pupa-emu.c: Include <pupa/env.h>.
26800 (options): Added 0's for unused fields to silence a gcc warning.
26802 (main): Use the environment variable `prefix' instead of using
26803 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
26804 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
26807 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
26808 * util/misc.c: Include <malloc.h>.
26809 (pupa_malloc): Rewritten so errors are correctly reported.
26810 (pupa_realloc): Likewise.
26811 (pupa_memalign): Likewise.
26812 (pupa_mm_init_region): Declare unused variables with
26813 `__attribute__ ((unused))' to silence a gcc warning.
26814 * normal/i386/setjmp.S: Remove tab at the end of the file to
26815 silence a gcc warning.
26816 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
26817 variables with `__attribute__ ((unused))' to silence a gcc
26819 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
26820 local variable i unsigned to silence a gcc warning.
26822 * kern/term.c: Include <pupa/misc.h>.
26823 (pupa_more_lines): New variable.
26824 (pupa_more): Likewise.
26825 (pupa_putcode): When the pager is active pause at the end of every
26827 (pupa_set_more): New function.
26828 * include/pupa/term.h (pupa_set_more): New prototype.
26831 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
26833 Now this project is GRUB 2 rather than PUPA. The location of
26834 the CVS repository was moved to GRUB's.
26836 * configure.ac: Use bug-grub as the reporting address.
26837 Use GRUB instead of PUPA.
26838 Change the version number to 1.90.
26840 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
26842 * genkernsyms.sh: Updated copyright information.
26843 * genmk.rb: Likewise.
26844 * genmodsrc.sh: Likewise.
26845 * gensymlist.sh: Likewise.
26846 * boot/i386/pc/boot.S: Likewise.
26847 * boot/i386/pc/diskboot.S: Likewise.
26848 * disk/i386/pc/biosdisk.c: Likewise.
26849 * disk/i386/pc/partition.c: Likewise.
26850 * font/manager.c: Likewise.
26851 * fs/ext2.c: Likewise.
26852 * fs/fat.c: Likewise.
26853 * include/pupa/boot.h: Likewise.
26854 * include/pupa/device.h: Likewise.
26855 * include/pupa/disk.h: Likewise.
26856 * include/pupa/dl.h: Likewise.
26857 * include/pupa/elf.h: Likewise.
26858 * include/pupa/err.h: Likewise.
26859 * include/pupa/file.h: Likewise.
26860 * include/pupa/font.h: Likewise.
26861 * include/pupa/fs.h: Likewise.
26862 * include/pupa/kernel.h: Likewise.
26863 * include/pupa/loader.h: Likewise.
26864 * include/pupa/misc.h: Likewise.
26865 * include/pupa/mm.h: Likewise.
26866 * include/pupa/net.h: Likewise.
26867 * include/pupa/normal.h: Likewise.
26868 * include/pupa/rescue.h: Likewise.
26869 * include/pupa/setjmp.h: Likewise.
26870 * include/pupa/symbol.h: Likewise.
26871 * include/pupa/term.h: Likewise.
26872 * include/pupa/types.h: Likewise.
26873 * include/pupa/i386/setjmp.h: Likewise.
26874 * include/pupa/i386/types.h: Likewise.
26875 * include/pupa/i386/pc/biosdisk.h: Likewise.
26876 * include/pupa/i386/pc/boot.h: Likewise.
26877 * include/pupa/i386/pc/console.h: Likewise.
26878 * include/pupa/i386/pc/init.h: Likewise.
26879 * include/pupa/i386/pc/kernel.h: Likewise.
26880 * include/pupa/i386/pc/linux.h: Likewise.
26881 * include/pupa/i386/pc/loader.h: Likewise.
26882 * include/pupa/i386/pc/memory.h: Likewise.
26883 * include/pupa/i386/pc/multiboot.h: Likewise.
26884 * include/pupa/i386/pc/partition.h: Likewise.
26885 * include/pupa/i386/pc/time.h: Likewise.
26886 * include/pupa/i386/pc/vga.h: Likewise.
26887 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
26888 * include/pupa/util/getroot.h: Likewise.
26889 * include/pupa/util/misc.h: Likewise.
26890 * include/pupa/util/resolve.h: Likewise.
26891 * kern/device.c: Likewise.
26892 * kern/disk.c: Likewise.
26893 * kern/dl.c: Likewise.
26894 * kern/err.c: Likewise.
26895 * kern/file.c: Likewise.
26896 * kern/fs.c: Likewise.
26897 * kern/loader.c: Likewise.
26898 * kern/main.c: Likewise.
26899 * kern/misc.c: Likewise.
26900 * kern/mm.c: Likewise.
26901 * kern/rescue.c: Likewise.
26902 * kern/term.c: Likewise.
26903 * kern/i386/dl.c: Likewise.
26904 * kern/i386/pc/init.c: Likewise.
26905 * kern/i386/pc/lzo1x.S: Likewise.
26906 * kern/i386/pc/startup.S: Likewise.
26907 * loader/i386/pc/chainloader.c: Likewise.
26908 * loader/i386/pc/linux.c: Likewise.
26909 * loader/i386/pc/multiboot.c: Likewise.
26910 * normal/cmdline.c: Likewise.
26911 * normal/command.c: Likewise.
26912 * normal/main.c: Likewise.
26913 * normal/menu.c: Likewise.
26914 * normal/i386/setjmp.S: Likewise.
26915 * term/i386/pc/console.c: Likewise.
26916 * term/i386/pc/vga.c: Likewise.
26917 * util/console.c: Likewise.
26918 * util/genmoddep.c: Likewise.
26919 * util/misc.c: Likewise.
26920 * util/pupa-emu.c: Likewise.
26921 * util/resolve.c: Likewise.
26922 * util/unifont2pff.rb: Likewise.
26923 * util/i386/pc/biosdisk.c: Likewise.
26924 * util/i386/pc/getroot.c: Likewise.
26925 * util/i386/pc/pupa-mkimage.c: Likewise.
26926 * util/i386/pc/pupa-setup.c: Likewise.
26928 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
26930 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
26931 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
26932 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
26933 reading and reset it after reading.
26934 (pupa_ext2_close): Return PUPA_ERR_NONE.
26936 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
26938 (struct linux_kernel_header): Add kernel_version and
26940 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
26941 pupa_file_read succeeds.
26942 (pupa_rescue_cmd_initrd): Implement.
26944 2003-12-03 Marco Gerards <metgerards@student.han.nl>
26946 * fs/ext2.c (pupa_ext2_label): New function.
26947 (pupa_ext2_fs): Added label.
26948 * fs/fat.c (pupa_fat_label): New function.
26949 (pupa_fat_fs): Added label.
26950 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
26952 * kern/misc.c (pupa_strndup): New function.
26953 * include/pupa/misc.h (pupa_strndup): New prototype.
26955 * include/pupa/normal.h: Include <pupa/err.h>.
26956 (pupa_set_history): New prototype.
26957 (pupa_iterate_commands): New prototype.
26958 * normal/cmdline.c: Include <pupa/machine/partition.h>,
26959 <pupa/disk.h>, <pupa/file.h>.
26960 (hist_size): New variable.
26961 (hist_lines): Likewise.
26962 (hist_end): Likewise.
26963 (hist_used): Likewise.
26964 (pupa_set_history): New function.
26965 (pupa_history_get): Likewise.
26966 (pupa_history_add): Likewise.
26967 (pupa_history_replace): Likewise.
26968 (pupa_tab_complete): Likewise.
26969 (pupa_cmdline_run): Added tab completion and history buffer. Tab
26970 completion shows partitionnames while completing partitions, this
26971 feature was suggested by Jeff Bailey.
26972 * normal/command.c (pupa_iterate_commands): New function.
26973 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
26974 (pupa_normal_init): Initialize history buffer.
26975 (PUPA_MOD_INIT): Likewise.
26976 (pupa_normal_fini): Free the history buffer.
26977 (PUPA_MOD_FINI): Likewise.
26979 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
26982 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
26983 * configure.ac [i386]: Check for regparam bug.
26984 (NESTED_FUNC_ATTR) [! i386]: Defined.
26986 2003-11-17 Marco Gerards <metgerards@student.han.nl>
26988 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
26989 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
26990 (pupa_emu_SOURCES): New variable.
26991 (pupa_emu_LDFLAGS): Likewise.
26992 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
26993 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
26994 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
26995 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
26996 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
26997 (pupa_jmp_buf): New typedef.
26998 (pupa_setjmp) [PUPA_UTIL]: New macro.
26999 (pupa_longjmp) [PUPA_UTIL]: Likewise.
27000 * include/pupa/term.h (struct pupa_term): New member `refresh'.
27001 (pupa_refresh): New prototype.
27002 * include/pupa/util/getroot.h: New file.
27003 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
27005 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
27006 (pupa_rescue_cmd_cat): Likewise.
27007 (pupa_rescue_cmd_ls): Likewise.
27008 (pupa_rescue_cmd_testload): Likewise.
27009 (pupa_rescue_cmd_lsmod): Likewise.
27010 * normal/cmdline.c (pupa_cmdline_get): Likewise.
27011 * normal/menu.c (run_menu): Likewise.
27012 * kern/term.c (pupa_cls): Likewise.
27013 (pupa_refresh): New function.
27014 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
27015 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27016 * util/console.c: New file.
27018 * util/i386/pc/getroot.c: New file.
27019 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
27020 (pupa_putchar): New function.
27021 (pupa_refresh): Likewise.
27022 (xgetcwd): Function moved to ...
27023 (strip_extra_slashes): Likewise.
27024 (get_prefix): Likewise.
27025 * util/i386/pc/getroot.c: ... here.
27026 (find_root_device): Function moved and renamed to...
27027 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
27028 Changed all callers.
27029 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
27031 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
27032 Changed all callers.
27033 * util/misc.c (pupa_memalign): New function.
27034 (pupa_mm_init_region): Likewise.
27035 (pupa_register_exported_symbols): Likewise.
27036 (pupa_putchar): Function removed.
27037 * util/pupa-emu.c: New file.
27039 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
27041 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
27042 (_multiboot_mod_SOURCES): New variable.
27043 (_multiboot_mod_CFLAGS): Likewise.
27044 * loader/i386/pc/multiboot.c: New file.
27045 * include/pupa/i386/pc/multiboot.h: Likewise.
27046 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
27047 (pupa_multiboot_real_boot): New function.
27048 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
27049 (pupa_multiboot_real_boot): New prototype.
27050 (pupa_rescue_cmd_multiboot): Likewise
27051 (pupa_rescue_cmd_module): Likewise.
27053 * kern/loader.c (pupa_loader_set): Continue when
27054 pupa_loader_unload_func() fails.
27055 (pupa_loader_unset): New function.
27056 * include/pupa/loader.h (pupa_loader_unset): New prototype.
27058 * kern/misc.c (pupa_stpcpy): New function.
27059 * include/pupa/misc.h (pupa_stpcpy): New prototype.
27061 2003-11-12 Marco Gerards <metgerards@student.han.nl>
27063 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
27064 for available extensions.
27066 * include/pupa/i386/pc/time.h: New file.
27067 * kern/disk.c: Include <pupa/machine/time.h>.
27068 (PUPA_CACHE_TIMEOUT): New macro.
27069 (pupa_last_time): New variable.
27070 (pupa_disk_open): Flush the cache when there was a timeout.
27071 (pupa_disk_close): Reset the timer.
27072 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
27074 * util/misc.c: Include <sys/times.h>
27075 (pupa_get_rtc): New function.
27077 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
27079 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
27081 (pupa_ext2_get_file_block): Use blocks member.
27083 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
27084 first block. Return -1 instead of pupa_errno on error.
27086 2003-10-27 Marco Gerards <metgerards@student.han.nl>
27088 * README: In the pupa-mkimage example use _chain instead of chain
27089 and ext2 instead of fat.
27090 * TODO: Replace ext2fs with jfs as an example. Add an item for
27091 adding journal playback for ext2fs.
27092 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
27093 (pkgdata_MODULES): Added ext2.mod.
27094 (ext2_mod_SOURCES): New variable.
27095 (ext2_mod_CFLAGS): Likewise.
27096 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
27097 * include/pupa/misc.h (pupa_strncpy): New prototype.
27098 (pupa_strcat): Likewise.
27099 (pupa_strncmp): Likewise.
27100 * kern/misc.c (pupa_strcat): Enable function.
27101 (pupa_strncpy): New function.
27102 (pupa_strncmp): Likewise.
27103 * fs/ext2.c: New file.
27105 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
27106 when the read failed before retrying.
27107 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
27108 (_FILE_OFFSET_BITS): Likewise.
27109 * configure.ac: Added AC_SYS_LARGEFILE.
27111 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27113 * genmk.rb (PModule#rule): Make sure to get only symbol names
27114 from the output of nm.
27115 Reported by Robert Millan <rmh.grub@aybabtu.com>.
27117 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27119 I forgot to check in these changes for a long time. This adds
27120 incomplete support for VGA console, and this is still very
27121 buggy. Also, a lot of consideration is required for I18N,
27122 UNICODE, and VGA font issues. Therefore, assume that this is
27123 such that "better than nothing".
27125 * font/manager.c: New file.
27126 * include/pupa/font.h: Likewise.
27127 * include/pupa/i386/pc/vga.h: Likewise.
27128 * term/i386/pc/vga.c: Likewise.
27129 * util/unifont2pff.rb: Likewise.
27131 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
27132 (pkgdata_MODULES): Added vga.mod and font.mod.
27133 (vga_mod_SOURCES): New variables.
27134 (vga_mod_CFLAGS): Likewise.
27135 (font_mod_SOURCES): Likewise.
27136 (font_mod_CFLAGS): Likewise.
27138 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
27140 * include/pupa/term.h: Include pupa/err.h.
27141 (struct pupa_term): Added init and fini.
27142 Changed the argument of putchar to pupa_uint32_t.
27144 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
27145 (pupa_console_real_putchar): New prototype.
27146 (pupa_console_putchar): Removed.
27147 (pupa_console_checkkey): Exported.
27148 (pupa_console_getkey): Likewise.
27150 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
27153 * kern/term.c (pupa_term_set_current): Rewritten.
27154 (pupa_putchar): Likewise.
27155 (pupa_putcode): New function.
27157 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
27158 (pupa_console_real_putchar): ... this.
27159 (pupa_vga_set_mode): New function.
27160 (pupa_vga_get_font): Likewise.
27162 * normal/command.c: Include pupa/term.h.
27163 (terminal_command): New function.
27164 (pupa_command_init): Register the command "terminal".
27166 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
27167 (DISP_UP): Likewise.
27168 (DISP_RIGHT): Likewise.
27169 (DISP_DOWN): Likewise.
27170 (DISP_HLINE): Likewise.
27171 (DISP_VLINE): Likewise.
27172 (DISP_UL): Likewise.
27173 (DISP_UR): Likewise.
27174 (DISP_LL): Likewise.
27175 (DISP_LR): Likewise.
27177 * term/i386/pc/console.c (pupa_console_putchar): New function.
27179 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
27181 * util/resolve.c (pupa_util_resolve_dependencies): BUG
27182 FIX. Reverse the path_list.
27184 * include/pupa/normal.h: Export pupa_register_command and
27185 pupa_unregister_command.
27187 * hello/hello.c (pupa_cmd_hello): New module.
27188 * conf/i386-pc.rmk: Added hello.mod.
27190 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
27192 * kern/i386/pc/lzo1x.S: New file.
27194 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
27195 (compress_kernel): New variable.
27196 (generate_image): Heavily modified to support compressing a
27197 large part of the core image.
27199 * util/misc.c (pupa_util_read_image): Fix a file descriptor
27201 (pupa_util_load_image): New function.
27203 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
27204 (pupa_compressed_size): New variable.
27205 (codestart): Enable Gate A20 here.
27206 Decompress the compressed part of the core image.
27207 Rearrange the code to put functions and variables which are
27208 required for initialization in the non-compressed part.
27211 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
27214 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
27216 * include/pupa/i386/pc/kernel.h
27217 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
27218 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
27219 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27220 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27221 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
27223 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
27225 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
27226 (Utility#rule): Likewise.
27228 * configure.ac: Check if LZO is available.
27230 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
27232 * include/pupa/normal.h: New file.
27233 * include/pupa/setjmp.h: Likewise.
27234 * include/pupa/i386/setjmp.h: Likewise.
27235 * normal/cmdline.c: Likewise.
27236 * normal/command.c: Likewise.
27237 * normal/main.c: Likewise.
27238 * normal/menu.c: Likewise.
27239 * normal/i386/setjmp.S: Likewise.
27241 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
27242 (pupa_rescue_cmd_initrd): Likewise.
27244 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
27247 * kern/i386/pc/startup.S (translation_table): New variable.
27248 (translate_keycode): New function.
27249 (pupa_console_getkey): Call translate_keycode.
27251 * kern/rescue.c (attempt_normal_mode): New function.
27252 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
27253 it failed, print a message.
27255 * kern/mm.c (pupa_real_malloc): Print more information when a
27256 free magic is broken.
27257 (pupa_free): If the first free header is not free actually, set
27260 * kern/main.c (pupa_load_normal_mode): Just load the module
27262 (pupa_main): Don't print the message
27263 "Entering into rescue mode..." here.
27265 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
27267 (pupa_rescue_cmd_initrd): Likewise.
27268 (pupa_rescue_cmd_initrd): Likewise.
27270 * include/pupa/symbol.h (FUNCTION): Specify the type.
27271 (VARIABLE): Likewise.
27273 * include/pupa/err.h (pupa_err_t): Added
27274 PUPA_ERR_UNKNOWN_COMMAND.
27276 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
27277 (pupa_dl_get_prefix): Likewise.
27279 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
27280 Added _chain.mod and _linux.mod instead of chain.mod and
27282 (chain_mod_SOURCES): Renamed to ...
27283 (_chain_mod_SOURCES): ... this.
27284 (chain_mod_CFLAGS): Renamed to ...
27285 (_chain_mod_CFLAGS): ... this.
27286 (linux_mod_SOURCES): Renamed to ...
27287 (_linux_mod_SOURCES): ... this.
27288 (linux_mod_CFLAGS): Renamed to ...
27289 (_linux_mod_CFLAGS): ... this.
27290 (normal_mod_SOURCES): New variable.
27291 (normal_mod_CFLAGS): Likewise.
27292 (normal_mod_ASFLAGS): Likewise.
27294 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
27296 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
27299 * kern/dl.c (pupa_dl_ref): Refer depending modules
27301 (pupa_dl_unref): Unrefer depending modules recursively.
27302 Don't call pupa_dl_unload implicitly, because PUPA can crash if
27303 a module is unloaded before one depending on that module is
27305 (pupa_dl_unload): Unload depending modules explicitly,
27308 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
27310 * include/pupa/i386/pc/linux.h: New file.
27311 * loader/i386/pc/linux.c: Likewise.
27313 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
27315 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
27316 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
27317 of PUPA_CHAINLOADER_BOOT_SECTOR.
27319 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
27320 (pupa_linux_prot_size): New variable.
27321 (pupa_linux_tmp_addr): Likewise.
27322 (pupa_linux_real_addr): Likewise.
27323 (pupa_linux_boot_zimage): New function.
27324 (pupa_linux_boot_bzimage): Likewise.
27326 * kern/i386/pc/init.c (struct mem_region): New structure.
27327 (MAX_REGIONS): New macro.
27328 (mem_regions): New variable.
27329 (num_regions): Likewise.
27330 (pupa_os_area_addr): Likewise.
27331 (pupa_os_area_size): Likewise.
27332 (pupa_lower_mem): Likewise.
27333 (pupa_upper_mem): Likewise.
27334 (add_mem_region): New function.
27335 (compact_mem_regions): Likewise.
27336 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
27337 the size of the conventional memory and that of so-called upper
27338 memory (before the first memory hole).
27339 Instead of adding each found region to free memory, use
27340 add_mem_region and add them after removing overlaps.
27341 Also, add only 1/4 of the upper memory to free memory. The rest
27342 is used for loading OS images. Maybe this is ad hoc, but this
27343 makes it much easier to relocate OS images when booting.
27345 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
27346 (pupa_enter_rescue_mode): Don't register initrd and module.
27348 * kern/mm.c: Include pupa/dl.h.
27350 * kern/main.c: Include pupa/file.h and pupa/device.h.
27352 * kern/loader.c (pupa_loader_load_module_func): Removed.
27353 (pupa_loader_load_module): Likewise.
27355 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
27358 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
27359 (pupa_linux_tmp_addr): Likewise.
27360 (pupa_linux_real_addr): Likewise.
27361 (pupa_linux_boot_zimage): Likewise.
27362 (pupa_linux_boot_bzimage): Likewise.
27364 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
27365 (pupa_upper_mem): Likewise.
27366 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
27367 module is too dangerous.
27369 * include/pupa/loader.h (pupa_os_area_addr): Declared.
27370 (pupa_os_area_size): Likewise.
27371 (pupa_loader_set): Remove the first argument. Loader doesn't
27372 manage modules or initrd any longer.
27373 (pupa_loader_load_module): Removed.
27375 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
27376 (linux_mod_SOURCES): New variable.
27377 (linux_mod_CFLAGS): Likewise.
27379 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
27381 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
27382 the length of a blocklist correctly.
27384 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
27385 Use ioctl only if the OS file is a block device.
27386 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
27387 not very useful for normal files.
27389 * kern/main.c (pupa_set_root_dev): New function.
27390 (pupa_load_normal_mode): Likewise.
27391 (pupa_main): Call those above.
27393 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
27396 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
27398 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27400 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
27401 (setup): Configure the installed partition information and the
27404 * loader/i386/pc/chainloader.c (my_mod): New variable.
27405 (pupa_chainloader_unload): New function.
27406 (pupa_rescue_cmd_chainloader): Refer itself.
27407 (PUPA_MOD_INIT): Save its own module in MY_MOD.
27409 * kern/i386/pc/startup.S (install_partition): Removed.
27410 (version_string): Likewise.
27411 (config_file): Likewise.
27412 (pupa_install_dos_part): New variable.
27413 (pupa_install_bsd_part): Likewise.
27414 (pupa_prefix): Likewise.
27415 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
27417 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
27419 (make_install_device): New function.
27420 (pupa_machine_init): Set the dl prefix.
27422 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
27423 (buf): Renamed to ...
27424 (linebuf): ... this.
27425 (pupa_rescue_cmd_prefix): New function.
27426 (pupa_rescue_cmd_insmod): Likewise.
27427 (pupa_rescue_cmd_rmmod): Likewise.
27428 (pupa_rescue_cmd_lsmod): Likewise.
27429 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
27432 * kern/mm.c (pupa_memalign): If failed even after invalidating
27433 disk caches, unload unneeded modules and retry.
27435 * kern/misc.c (pupa_memmove): New function.
27436 (pupa_memcpy): Removed.
27437 (pupa_strcpy): New function.
27438 (pupa_itoa): Made static.
27440 * kern/dl.c (pupa_dl_iterate): New function.
27441 (pupa_dl_ref): Likewise.
27442 (pupa_dl_unref): Likewise.
27443 (pupa_dl_unload): Return if succeeded or not.
27444 (pupa_dl_unload_unneeded): New function.
27445 (pupa_dl_unload_all): Likewise.
27446 (pupa_dl_init): Renamed to ...
27447 (pupa_dl_set_prefix): ... this.
27448 (pupa_dl_get_prefix): New function.
27450 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
27451 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
27452 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27453 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27454 (pupa_install_dos_part): Declared.
27455 (pupa_install_bsd_part): Likewise.
27456 (pupa_prefix): Likewise.
27457 (pupa_boot_drive): Likewise.
27459 * include/pupa/types.h: Fix a typo.
27461 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
27463 (pupa_memmove): Declared.
27464 (pupa_strcpy): Likewise.
27466 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
27467 pupa_mod_init takes one argument, its own module.
27468 (pupa_dl_unload_unneeded): Declared.
27469 (pupa_dl_unload_all): Likewise.
27470 (pupa_dl_ref): Likewise.
27471 (pupa_dl_unref): Likewise.
27472 (pupa_dl_iterate): Likewise.
27473 (pupa_dl_init): Renamed to ...
27474 (pupa_dl_set_prefix): ... this.
27475 (pupa_dl_get_prefix): Declared.
27477 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
27478 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
27480 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
27481 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
27483 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
27484 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
27486 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
27488 * util/i386/pc/pupa-setup.c (setup): Define the internal
27489 function find_first_partition_start at the top level, because GCC
27490 3.0.x cannot compile internal functions in deeper scopes
27492 (find_root_device): Use lstat instead of stat.
27493 Don't follow symbolic links.
27494 Fix the path-constructing code.
27496 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
27497 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
27498 by a BLKGETSIZE ioctl first, because block devices don't fill
27499 the member st_mode of the structure stat on Linux.
27500 [__linux__] (linux_find_partition): Use a temporary buffer
27501 REAL_DEV for the working space. Copy it to DEV before returning.
27502 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
27503 buffer cache consistent.
27504 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
27505 strncmp. The previous value was merely wrong.
27506 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
27508 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
27509 FAT size is 12. The previous value was merely wrong.
27511 * kern/main.c (pupa_main): Don't split the starting message from
27514 * kern/term.c (pupa_putchar): Put CR after LF instead of before
27515 LF, because BIOS goes crazy about character attributes in this
27518 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
27520 * include/i386/pc/util/biosdisk.h: New file.
27521 * util/i386/pc/biosdisk.c: Likewise.
27522 * util/i386/pc/pupa-setup.c: Likewise.
27524 * Makefile.in (INCLUDE_DISTFILES): Added
27525 include/pupa/i386/pc/util/biosdisk.h.
27526 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
27527 directory util/i386/pc.
27528 (install-local): Added a rule for sbin_UTILITIES.
27529 (uninstall): Likewise.
27531 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
27533 * util/misc.c (xrealloc): New function.
27534 (pupa_malloc): Likewise.
27535 (pupa_free): Likewise.
27536 (pupa_realloc): Likewise.
27537 (pupa_stop): Likewise.
27538 (pupa_putchar): Likewise.
27540 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
27542 * include/pupa/util/misc.h (xrealloc): Declared.
27544 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
27546 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
27547 (PUPA_BOOT_MACHINE_BPB_END): ... this.
27549 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
27550 [PUPA_UTIL] (pupa_fat_fini): Likewise.
27552 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
27553 way should be implemented.
27554 [PUPA_UTIL] (pupa_fat_fini): Likewise.
27556 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
27557 the size of NAME for safety.
27558 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
27561 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
27562 (pupa_setup_SOURCES): Likewise.
27564 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
27566 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
27568 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
27569 bunch of pushl's from pusha, because this destroys the return
27572 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
27574 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
27575 This means that any missing prototypes could be fatal. Also, you
27576 must take care when writing assembly code. See the comments at
27577 the beginning of startup.S, for more details.
27579 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
27580 compilation mechanism.
27581 (pupa_chainloader_real_boot): Likewise.
27582 (pupa_biosdisk_rw_int13_extensions): Likewise.
27583 (pupa_biosdisk_rw_standard): Likewise.
27584 (pupa_biosdisk_check_int13_extensions): Likewise.
27585 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
27586 (pupa_biosdisk_get_diskinfo_standard): Likewise.
27587 (pupa_get_memsize): Likewise.
27588 (pupa_get_mmap_entry): Likewise.
27589 (pupa_console_putchar): Likewise.
27590 (pupa_console_setcursor): Likewise.
27591 (pupa_getrtsecs): Use pushl instead of push.
27593 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
27594 memory instead of the stack for a mmap entry, because some
27595 BIOSes may ignore the maximum size and overflow.
27597 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
27599 * genmk.rb (PModule#rule): Compile automatically generated
27600 sources with module-specific CFLAGS as well as other sources.
27602 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27604 * configure.ac: Check ld.
27605 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
27606 respectively, before checking endianness and sizes.
27608 * Makefile.in (LD): New variable.
27610 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27612 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
27614 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27616 * Changelog: New file.