1 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
3 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
4 Suggested by: Thomas Schmitt.
6 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
8 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
9 Suggested by: Thomas Schmitt.
11 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
16 * util/grub.d/41_custom.in: New file.
18 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20 * util/grub-mkrescue.in (make_image): Remove sh module, which has
21 been merged back into normal.
23 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
25 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
26 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
28 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
30 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
31 when generating manual pages.
32 * docs/man/grub-bin2h.h2m: New file.
33 * docs/man/grub-editenv.h2m: New file.
34 * docs/man/grub-fstest.h2m: New file.
35 * docs/man/grub-install.h2m: New file.
36 * docs/man/grub-macho2img.h2m: New file.
37 * docs/man/grub-mkconfig.h2m: New file.
38 * docs/man/grub-mkdevicemap.h2m: New file.
39 * docs/man/grub-mkfont.h2m: New file.
40 * docs/man/grub-mkimage.h2m: New file.
41 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
42 * docs/man/grub-mkrelpath.h2m: New file.
43 * docs/man/grub-mkrescue.h2m: New file.
44 * docs/man/grub-ofpathname.h2m: New file.
45 * docs/man/grub-pe2elf.h2m: New file.
46 * docs/man/grub-probe.h2m: New file.
47 * docs/man/grub-reboot.h2m: New file.
48 * docs/man/grub-script-check.h2m: New file.
49 * docs/man/grub-set-default.h2m: New file.
50 * docs/man/grub-setup.h2m: New file.
52 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
54 Use FOR_* macros instead of *_iterate whenever possible.
56 * commands/handler.c: Removed.
57 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
58 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
59 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
60 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
61 (grub_probe_SOURCES): Remove kern/parser.c.
62 (util/grub-script-check.c_DEPENDENCIES): Removed.
63 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
64 and grub_script_check_init.c.
65 (grub_script_check_init.lst): Removed.
66 (grub_script_check_init.h): Likewise.
67 (grub_script_check_init.c): Likewise.
68 (pkglib_MODULES): Remove handler.mod and sh.mod.
69 (handler_mod_SOURCES): Removed.
70 (handler_mod_CFLAGS): Likewise.
71 (handler_mod_LDFLAGS): Likewise.
72 (normal_mod_SOURCES): Remove normal/handler.c.
73 Add script/main.c, script/script.c, script/execute.c,
74 script/function.c, script/lexer.c, grub_script.tab.c
76 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
77 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
78 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
79 (grub_setup_SOURCES): Remove kern/parser.c.
80 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
81 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
82 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
83 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
84 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
85 (grub_setup_SOURCES): Remove kern/parser.c.
86 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
87 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
88 * include/grub/command.h (grub_command_iterate): Removed.
89 (FOR_COMMANDS): New macro.
90 * include/grub/dl.h (grub_dl): New member next.
91 (grub_dl_iterate): Removed.
92 (grub_dl_head): New variable declaration.
93 (FOR_DL_MODULES): New macro.
94 * include/grub/fs.h: Include list.h.
95 (grub_fs): Make next first element.
96 (grub_fs_list): New variable declaration.
97 (grub_fs_register): Make inline.
98 (grub_fs_unregister): Likewise.
99 (grub_fs_iterate): Removed.
100 (FOR_FILESYSTEMS): New macro.
101 * include/grub/handler.h: Removed.
102 * include/grub/list.h (grub_list_hook_t): Removed.
103 (grub_list_test_t): Likewise.
104 (grub_list_pop): Likewise.
105 (grub_list_iterate): Likewise.
106 (grub_list_insert): Likewise.
107 (FOR_LIST_ELEMENTS): New macro.
108 * include/grub/parser.h (grub_parser_class): Removed.
109 (grub_parser_register): Likewise.
110 (grub_parser_unregister): Likewise.
111 (grub_parser_get_current): Likewise.
112 (grub_parser_set_current): Likewise.
113 (grub_register_rescue_parser): Likewise.
114 (grub_rescue_parse_line): New function.
115 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
116 * include/grub/script_sh.h (grub_script_function_list): New variable
118 (FOR_SCRIPT_FUNCTIONS): New macro.
119 (grub_script_function_iterate): Removed.
120 (grub_normal_parse_line): New prototype.
121 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
122 (FOR_DISABLED_TERM_INPUTS): Likewise.
123 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
124 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
125 * include/grub/video.h (grub_video_adapter): Move 'next' to first
127 (grub_video_register): Inline.
128 (grub_video_unregister): Likewise.
129 (grub_video_adapter_list): New variable declaration.
130 (grub_video_iterate): Removed.
131 (FOR_VIDEO_ADAPTERS): New macro.
132 * kern/dl.c (grub_dl_list): Removed. All users updated.
133 (grub_dl_iterate): Removed.
134 * kern/fs.c (grub_fs_list): Make global.
135 (grub_fs_register): Removed.
136 (grub_fs_unregister): Likewise.
137 (grub_fs_iterate): Likewise.
138 * kern/handler.c: Removed.
139 * kern/list.c (grub_list_pop): Removed.
140 (grub_list_iterate): Likewise.
141 (grub_list_insert): Likewise.
142 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
143 (grub_prio_list_insert): Don't use grub_list_insert.
144 * kern/main.c (grub_register_rescue_parser): Don't call
145 grub_register_rescue_parser.
146 * kern/parser.c (grub_parser_class): Removed.
147 (grub_parser_execute): Use grub_rescue_parse_line.
148 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
149 (grub_rescue_parser): Removed.
150 (grub_register_rescue_parser): Likewise.
151 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
152 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
153 (grub_auth_check_authentication): Likewise.
154 * normal/completion.c (iterate_command): Removed.
155 (grub_normal_do_completion): Use FOR_COMMANDS.
156 * normal/handler.c: Removed.
157 * normal/main.c (read_config_file): Remove parser changing.
158 (grub_normal_execute): Don't call read_handler_list.
159 (grub_normal_read_line_real): Statically allocate prompt.
160 (grub_cmdline_run): Use grub_normal_parse_line.
161 (GRUB_MOD_FINI): Don't call free_handler_list.
162 * normal/menu_entry.c (run): Likewise.
163 * script/function.c (grub_script_function_list): Make global.
164 (grub_script_function_iterate): Removed.
165 * script/main.c (grub_normal_parse_line): Make global.
166 (grub_sh_parser): Removed.
167 (GRUB_MOD_INIT): Likewise.
168 (GRUB_MOD_FINI): Likewise.
169 * tests/lib/functional_test.c (grub_functional_test): Use
171 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
172 (grub_test_run): Use FOR_LIST_ELEMENTS.
173 * tests/lib/unit_test.c (main): Likewise.
174 * util/deviceiter.c (grub_util_iterate_devices): Don't use
176 * util/grub-fstest.c (grub_term_input_class): Removed.
177 (grub_term_output_class): Likewise.
178 * util/grub-probe.c: Likewise.
179 * util/i386/pc/grub-setup.c: Likewise.
180 * util/sparc64/ieee1275/grub-setup.c: Likewise.
181 * util/grub-script-check.c (main): Don't call grub_init_all and
183 * video/video.c (grub_video_adapter_list): Make global.
184 (grub_video_register): Removed.
185 (grub_video_unregister): Likewise.
186 (grub_video_iterate): Likewise.
188 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
190 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
191 reported by Henrique Ferreiro.
193 2010-06-09 Robert Millan <rmh@gnu.org>
195 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
196 ones, when both are available.
198 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
200 Make --version uniform and avoid hard-coded program name.
202 * util/grub-mkimage.c (main): Use `program_name' instead of
204 * util/i386/pc/grub-setup.c (main): Likewise.
205 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
206 * util/grub-install.in: Save the basename of $0 in $self, and use the
207 latter in informational messages. Use the same format for --version
208 as the binary programs.
209 * util/grub-mkconfig.in: Likewise.
210 * util/grub-mkrescue.in: Likewise.
211 * util/grub-reboot.in: Likewise.
212 * util/grub-set-default.in: Likewise.
213 * util/i386/efi/grub-install.in: Likewise.
214 * util/ieee1275/grub-install.in: Likewise.
215 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
217 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
219 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
220 embedding area. Use <= instead of == when checking for non-emptiness.
222 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
224 * configure.ac: Add `.' to the directories searched for unifont.
226 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
228 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
231 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
233 * docs/grub.texi (History): Expand to cover GRUB 2.
234 (Serial terminal): Refer to `terminal_input' and `terminal_output'
235 commands, not `terminal'.
237 (terminal_input): New section.
238 (terminal_output): New section.
239 (uppermem): New section (stub).
240 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
242 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
244 * docs/grub.texi (Security): Menu entries are unrestricted by
245 default, not restricted to superusers as I had previously thought.
246 Reword to account for this.
248 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
250 * kern/emu/misc.c (device_mapper_null_log): New function.
251 (grub_device_mapper_supported): New function.
252 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
254 * kern/emu/hostdisk.c (find_partition_start): Check whether
255 device-mapper is supported before trying to use it.
256 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
258 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
260 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
261 (File name syntax): Likewise.
262 (help): --all is no longer supported in GRUB 2. Be more precise
263 about pattern matching.
265 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
267 * normal/completion.c (grub_normal_do_completion): When completing
268 arguments to "set" and the current word contains an equals sign,
269 skip to after the equals sign before starting completion.
271 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
273 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
275 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
277 * docs/grub.texi (Network): New section.
278 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
279 `(nd)' as in GRUB Legacy.
280 (pxe_unload): New section.
282 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
284 * docs/grub.texi (Troubleshooting): `echo' is not usually available
285 in the rescue shell, so recommend using `set' instead. Thanks,
288 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
290 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
291 (password): New section.
292 (password_pbkdf2): New section.
293 (search): New section.
294 (Security): New section.
295 (Troubleshooting): New section, currently very incomplete.
296 (Invoking grub-mkpasswd-pbkdf2): New section.
297 (Internals): New section, currently very incomplete.
299 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
301 * util/grub.d/00_header.in: Add some more quoting (of
302 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
304 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
306 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
308 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
309 to `count', fixing variable shadowing that broke the -c option.
311 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
313 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
314 in case they contain spaces.
316 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
318 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
319 "part_" to partmap module names, in line with grub-install.
320 Reported by: Jindřich Makovička (Debian bug #584426).
322 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
324 * util/grub-mkimage.c: Make target-related error messages slightly
325 more helpful; -O talks about "format". Explicitly point to the use
326 of -O if no target is specified.
327 Reported by: Didier Raboud (Debian bug #584415).
329 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
331 * INSTALL: Document several build requirements for optional features
332 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
334 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
336 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
337 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
338 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
340 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
342 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
343 Thanks to Jordan Uggla for spotting this.
345 2010-06-02 Aleš Nesrsta <starous@volny.cz>
347 Finally make USB usable.
349 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
350 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
351 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
352 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
353 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
354 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
355 (GRUB_OHCI_FSMPS): Likewise.
356 (GRUB_OHCI_PERIODIC_START): Likewise.
357 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
358 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
359 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
360 (GRUB_OHCI_SET_PORT_RESET): Likewise.
361 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
362 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
363 (grub_ohci_transaction): Likewise.
364 (grub_ohci_transfer): Improve condition detection algorithms.
365 Handle toggle property. Program the transactions correctly.
366 Improve error handling. Various important fixups.
367 (grub_ohci_portstatus): Put register writes in right order.
368 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
369 (grub_uhci_transfer): Don't show "failed" message on success.
370 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
372 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
374 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
375 before initialization is completed. Use IN direction for empty
376 transfers. Use last_trans and compute toggle.
377 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
378 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
379 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
380 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
381 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
382 (grub_usb_device): Increase toggle to 256.
383 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
384 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
385 GRUB_USBMS_SUBCLASS_SFF8070.
386 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
387 (grub_scsi_inquiry): New member page and alloc_length.
388 (grub_scsi_request_sense): New structure.
389 (grub_scsi_request_sense_data): Likewise.
390 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
392 * disk/scsi.c (grub_scsi_request_sense): New function.
393 (grub_scsi_test_unit_ready): Likewise.
394 (grub_scsi_inquiry): Fill new fields.
395 (grub_scsi_read_capacity): Likewise.
396 (grub_scsi_read10): Add request sense at the end.
397 (grub_scsi_read12): Likewise.
398 (grub_scsi_write10): Likewise.
399 (grub_scsi_write12): Likewise.
400 (grub_scsi_open): Add Test Unit Ready.
401 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
402 Support additional subclasses. Con't clear halt yet. Activate the
403 proper config. Calculate LUNs correctly.
404 (grub_usbms_transfer): Various important fixups.
406 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
408 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
409 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
410 (grub_ohci_fini_hw): New function.
411 (grub_ohci_restore_hw): Likewise.
412 (GRUB_MOD_INIT(ohci)): Register preboot hook.
413 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
414 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
416 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
418 Dedicated DMA allocations.
420 * bus/pci.c (grub_memalign_dma32): New function
421 (grub_dma_free): Likewise.
422 (grub_dma_get_virt): Likewise.
423 (grub_dma_get_phys): Likewise.
424 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
425 (grub_ohci_pci_iter): Use dma32_alloc.
426 (grub_ohci_transfer): Likewise.
427 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
428 (grub_usb_bulk_readwrite): Likewise.
429 * include/grub/pci.h: Add declarations.
431 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
435 * bus/cs5536.c: New file.
436 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
437 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
438 (cs5536_mod_SOURCES): New variable.
439 (cs5536_mod_CFLAGS): Likewise.
440 (cs5536_mod_LDFLAGS): Likewise.
441 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
443 (kernel_img_SOURCES): Add bus/cs5536.c.
444 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
446 (usb_mod_SOURCES): New variable.
447 (usb_mod_CFLAGS): New variable.
448 (usb_mod_LDFLAGS): New variable.
449 (usbtest_mod_SOURCES): New variable.
450 (usbtest_mod_CFLAGS): New variable.
451 (usbtest_mod_LDFLAGS): New variable.
452 (ohci_mod_SOURCES): New variable.
453 (ohci_mod_CFLAGS): New variable.
454 (ohci_mod_LDFLAGS): New variable.
455 (usbms_mod_SOURCES): New variable.
456 (usbms_mod_CFLAGS): New variable.
457 (usbms_mod_LDFLAGS): New variable.
458 (usb_keyboard_mod_SOURCES): New variable.
459 (usb_keyboard_mod_CFLAGS): New variable.
460 (usb_keyboard_mod_LDFLAGS): New variable.
461 * include/grub/smbus.h: New file.
462 * include/grub/cs5536.h: New file.
464 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
466 * util/grub.d/00_header.in: Add safety check to make sure that
467 ${locale_dir} exists before trying to probe it.
469 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
471 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
472 per the GNU Coding Standards; this is now too obscure to be worth
475 (chainloader): Remove cross-reference to `SCO UnixWare'.
477 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
479 * docs/grub.texi (Chain-loading): New section.
480 (DOS/Windows): New section, borrowed from GRUB Legacy with details
482 (SCO UnixWare): Likewise.
484 (chainloader): Add reference to `Block list syntax'.
485 (drivemap): New section.
486 (parttool): New section.
488 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
490 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
492 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
493 (Installing GRUB using grub-install): Remove reference to the grub
494 shell; mention `grub-mkimage' and `grub-setup' instead.
495 (Invoking grub-install): Likewise.
496 (Interface): Add reference to `Menu entry editor'.
497 (serial): Remove `--device' option.
499 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
501 * docs/grub.texi (Configuration): New section, documenting
502 configuration file generation using grub-mkconfig. I've left a slot
503 for documenting the full shell scripting format but have not yet
504 started on writing that up.
505 (Invoking grub-mkconfig): New section.
507 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
509 * docs/grub.texi (direntry): Remove grub-terminfo reference.
510 (GNU GRUB manual): Likewise.
511 (General commands): Update description of `terminfo' for GRUB 2.
513 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
515 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
516 (GRUB_MOD_INIT): Fix capitalisation.
517 * docs/grub.texi (Command-line and menu entry commands): Document
518 gettext and gptsync commands.
520 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
522 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
523 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
525 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
527 Add btrfs probing support, currently only in the single-device case.
529 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
531 (grub_guess_root_device): Call find_root_device_from_mountinfo
532 before looking in /dev.
534 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
536 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
537 GRUB_DISK_SIZE_UNKNOWN.
538 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
540 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
542 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
543 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
544 corrupted or not synced properly.
546 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
548 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
549 Reported by: Seth Goldberg.
551 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
553 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
555 Reported by: Seth Goldberg.
557 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
559 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
560 Reported by: Seth Goldberg.
562 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
564 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
565 64-bit address as signed on MIPS.
567 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
569 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
572 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
574 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
576 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
577 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
578 * kern/misc.c (__enable_execute_stack): Disable on
581 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
583 Make grub-probe work with symbolic links under /dev/mapper as well
584 as with real block devices. The Linux world seems to be (at best)
585 in transition here, and GRUB shouldn't get caught in the middle.
587 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
590 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
592 * util/grub-script-check.c (main): Ensure defined behaviour on empty
593 input files (in which case exit zero).
595 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
597 * kern/emu/misc.c (canonicalize_file_name): realpath can still
598 return NULL for various reasons even if it has a maximum-length
599 buffer: for example, there might be a symlink loop, or the path
600 might exceed PATH_MAX. If this happens, return NULL.
602 2010-05-27 Robert Millan <rmh@gnu.org>
604 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
605 partmap module to handle cross-partmap setups.
606 Reported by Orestes Mas. Gràcies!
608 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
610 * util/grub-mkrescue.in: Initialise override_dir rather than
611 assuming that it's unset or empty in the environment.
613 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
615 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
616 variable index into p_index to suppress a warning with -Wshadow.
618 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
620 * INSTALL: Added flex >= 2.5.35 requirement.
622 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
624 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
626 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
630 * commands/i386/cmostest.c: New file.
631 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
632 (cmostest_mod_SOURCES): New variable.
633 (cmostest_mod_CFLAGS): Likewise.
634 (cmostest_mod_LDFLAGS): Likewise.
635 * conf/i386-pc.rmk: Likewise.
636 * docs/grub.texi (Vendor power-on keys): New section.
637 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
638 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
639 and GRUB_BUTTON_CMOS_ADDRESS.
640 * util/grub.d/00_header.in: Handle powering-on by separate button.
642 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
644 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
645 Removed drawing_scrollbar argument. All users updated
647 Reported by Jo Shields
649 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
651 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
652 buffer since gfxterm handles double repaint.
654 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
656 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
657 * term/gfxterm.c (real_scroll): Likewise.
659 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
661 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
664 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
666 * include/grub/i18n.h: Always enable grub_gettext.
668 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
670 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
671 partition naming style.
673 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
675 * util/grub-mkconfig.in: Fix handling of -o so that it works when
676 not the first option.
678 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
680 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
682 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
684 * util/misc.c: Move inclusion of <limits.h> to ...
685 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
687 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
689 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
690 Fix merge error in NetBSD code.
691 (find_partition_start) [__NetBSD__]: Likewise.
693 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
695 Fix grub-mkrescue usage unit testing.
697 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
699 2010-05-18 Christian Franke <franke@computer.org>
701 * util/grub.d/10_windows.in: Use path names instead of
702 drive letters to prevent warning from Cygwin 1.7.
703 Add drivemap command to menuentry if needed.
705 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
707 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
708 gnumach and gnumach.gz.
710 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
712 * include/grub/i18n.h (gettext): Inline instead of using #define.
713 (grub_gettext): Likewise.
716 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
718 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
719 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
720 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
721 (main): Add a slash after pkglibdirroot.
723 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
725 * util/grub-install.in: Add missing "in" keyword.
727 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
729 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
730 Reported by: Seth Goldberg.
732 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
734 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
736 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
738 * configure.ac: Check for Linux device-mapper support.
740 * util/hostdisk.c (device_is_mapped): New function.
741 (find_partition_start): New function, partly broken out from
742 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
743 device-mapper support added.
744 (linux_find_partition): Use find_partition_start.
745 (convert_system_partition_to_system_disk): Add `st' argument.
746 Support Linux /dev/mapper/* devices if device-mapper support is
747 available; only DM-RAID devices are understood at present.
748 (find_system_device): Add `st' argument. Pass it to
749 convert_system_partition_to_system_disk.
750 (grub_util_biosdisk_get_grub_dev): Pass stat result to
751 find_system_device and convert_system_partition_to_system_disk. Use
752 find_partition_start.
754 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
755 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
756 * util/deviceiter.c [__linux__]: Define MINOR.
757 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
758 * util/mkdevicemap.c (grub_putchar): New function.
759 (grub_getkey): New function.
760 (grub_refresh): New function.
761 (main): Set debug=all if -v -v is used.
763 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
765 Fix build with non-GNU libcs.
767 * util/misc.c (canonicalize_file_name): Move to ...
768 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
769 grub_make_system_path_relative_to_its_root.
771 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
773 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
774 we handle finding grub-mkimage. Default to finding grub-mkimage in
775 ${bindir} with program_transform_name applied, and provide a
776 --grub-mkimage option to override this.
778 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
782 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
783 (grub_mkisofs_SOURCES): Removed.
784 (grub_mkisofs_CFLAGS): Removed.
785 * util/mkisofs/defaults.h: Removed.
786 * util/mkisofs/eltorito.c: Likewise.
787 * util/mkisofs/exclude.h: Likewise.
788 * util/mkisofs/hash.c: Likewise.
789 * util/mkisofs/include/: Likewise.
790 * util/mkisofs/include/fctldefs.h: Likewise.
791 * util/mkisofs/include/mconfig.h: Likewise.
792 * util/mkisofs/include/prototyp.h: Likewise.
793 * util/mkisofs/include/statdefs.h: Likewise.
794 * util/mkisofs/iso9660.h: Likewise.
795 * util/mkisofs/joliet.c: Likewise.
796 * util/mkisofs/match.c: Likewise.
797 * util/mkisofs/match.h: Likewise.
798 * util/mkisofs/mkisofs.c: Likewise.
799 * util/mkisofs/mkisofs.h: Likewise.
800 * util/mkisofs/msdos_partition.h: Likewise.
801 * util/mkisofs/multi.c: Likewise.
802 * util/mkisofs/name.c: Likewise.
803 * util/mkisofs/rock.c: Likewise.
804 * util/mkisofs/tree.c: Likewise.
805 * util/mkisofs/write.c: Likewise.
807 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
809 Unify grub-mkimage accross platforms.
811 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
812 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
813 (grub_mkelfimage_SOURCES): Removed.
814 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
815 (util/grub-mkimage.c_DEPENDENCIES): .. this.
816 (bin_UTILITIES): Add grub-mkimage.
817 (grub_mkimage_SOURCES): New variable.
818 (kernel_img_HEADERS): Remove machine/kernel.h.
819 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
820 (pkglib_PROGRAMS): Add kernel.img.
821 (kernel_img_HEADERS): Add machine/kernel.h.
822 (kernel_img_FORMAT): Removed.
823 (bin_UTILITIES): Remove grub-mkimage.
824 (grub_mkimage_SOURCES): Removed.
825 (grub_mkimage_CFLAGS): Likewise.
826 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
827 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
828 (pkglib_PROGRAMS): Add kernel.img.
829 (bin_UTILITIES): Remove grub-mkimage.
830 (grub_mkimage_SOURCES): Removed.
831 (grub_mkimage_CFLAGS): Likewise.
832 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
833 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
834 (pkglib_PROGRAMS): Add kernel.img.
835 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
836 (pkglib_PROGRAMS): Add kernel.img.
837 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
838 (grub_mkimage_SOURCES): Removed.
839 (grub_mkimage_CFLAGS): Likewise.
840 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
841 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
842 (pkglib_PROGRAMS): Add kernel.img.
843 (bin_UTILITIES): Remove grub-mkimage.
844 (grub_mkimage_SOURCES): Removed.
845 (grub_mkimage_CFLAGS): Likewise.
846 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
847 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
848 (grub_mkimage_SOURCES): Removed.
849 (grub_mkimage_CFLAGS): Likewise.
850 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
851 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
852 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
853 (grub_pe32_optional_header): ... this.
854 (grub_pe64_optional_header): ... and this. All users updated.
855 (GRUB_PE32_PE32_MAGIC): Split into ..
856 (GRUB_PE32_PE32_MAGIC): .. this.
857 (GRUB_PE32_PE64_MAGIC): .. and this.
858 (GRUB_PE32_SIGNATURE_SIZE): New definition.
859 * include/grub/elf.h (PT_GNU_STACK): New definition.
860 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
861 * include/grub/i386/efi/kernel.h: Likewise.
862 * include/grub/i386/kernel.h: Likewise.
863 * include/grub/i386/pc/kernel.h: Likewise.
864 * include/grub/i386/qemu/boot.h: Likewise.
865 * include/grub/mips/kernel.h: Likewise.
866 * include/grub/mips/qemu-mips/kernel.h: Likewise.
867 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
868 * include/grub/powerpc/kernel.h: Likewise.
869 * include/grub/sparc64/ieee1275/boot.h: Likewise.
870 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
871 * include/grub/sparc64/kernel.h: Likewise.
872 * include/grub/x86_64/efi/kernel.h: Likewise.
873 * include/grub/x86_64/kernel.h: Likewise.
874 * include/grub/offsets.h: New file.
875 * include/grub/kernel.h (grub_module_info): Split into ...
876 (grub_module_info32): ... this.
877 (grub_module_info64): ... and this.
878 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
879 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
880 (grub_boot_blocklist): Moved from here ...
881 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
882 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
883 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
884 * include/grub/types.h (grub_target_to_host16): Removed.
885 (grub_target_to_host32): Likewise.
886 (grub_target_to_host64): Likewise.
887 (grub_host_to_target16): Likewise.
888 (grub_host_to_target32): Likewise.
889 (grub_host_to_target64): Likewise.
890 (grub_host_to_target_addr): Likewise.
892 Support grub-mkrescue for efi, coreboot and qemu.
894 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
895 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
896 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
897 * util/grub-mkrawimage.c: Moved from here ...
898 * util/grub-mkimage.c: ... here. All users updated.
899 (ALIGN_ADDR): Use image_target.
900 (TARGET_NO_FIELD): New const.
901 (image_target_desc): New type.
902 (image_targets): New array.
903 (grub_target_to_host64): Use image_target.
904 (grub_target_to_host32): Likewise.
905 (grub_target_to_host16): Likewise.
906 (grub_host_to_target64): Likewise.
907 (grub_host_to_target32): Likewise.
908 (grub_host_to_target16): Likewise.
909 (grub_host_to_target_addr): Likewise.
910 (generate_image): Handle multiimage.
911 (main): Require -O parameter. All users updated.
912 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
913 util/efi/grub-mkimage.c
914 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
915 New option --rom-directory.
917 * util/i386/efi/grub-mkimage.c: Removed.
918 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
919 (grub_target_to_host32): Likewise.
920 (grub_target_to_host64): Likewise.
921 (grub_host_to_target16): Likewise.
922 (grub_host_to_target32): Likewise.
923 (grub_host_to_target64): Likewise.
924 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
925 (grub_target_to_host32): Likewise.
926 (grub_target_to_host64): Likewise.
927 (grub_host_to_target16): Likewise.
928 (grub_host_to_target32): Likewise.
929 (grub_host_to_target64): Likewise.
931 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
933 Source tree is reorganized for emu build.
935 * include/grub/util/console.h: Move from here...
936 * include/grub/emu/console.h: ...to here.
937 * include/grub/util/getroot.h: Move from here...
938 * include/grub/emu/getroot.h: ...to here.
939 * include/grub/util/hostdisk.h: Move from here...
940 * include/grub/emu/hostdisk.h: ...to here.
941 * util/console.c: Move from here...
942 * kern/emu/console.c: ...to here.
943 * util/getroot.c: Move from here...
944 * kern/emu/getroot.c: ...to here.
945 * util/grub-emu.c: Move from here...
946 * kern/emu/main.c: ...to here.
947 * util/hostdisk.c: Move from here...
948 * kern/emu/hostdisk.c: ...to here.
949 * util/hostfs.c: Move from here...
950 * kern/emu/hostfs.c: ...to here.
951 * util/mm.c: Move from here...
952 * kern/emu/mm.c: ...to here.
953 * util/pci.c: Move from here...
954 * bus/emu/pci.c: ...to here.
955 * util/sdl.c: Move from here...
956 * video/emu/sdl.c: ...to here.
957 * util/time.c: Move from here...
958 * kern/emu/time.c: ...to here.
959 * util/usb.c: Move from here...
960 * bus/usb/emu/usb.c: ...to here.
962 * include/grub/emu/misc.h: New header for grub-emu functions.
963 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
965 * conf/any-emu.rmk: Rule updates for above renames.
966 * conf/common.rmk: Likewise.
967 * conf/i386-pc.rmk: Likewise.
968 * conf/i386-qemu.rmk: Likewise.
969 * conf/mips.rmk: Likewise.
970 * conf/sparc64-ieee1275.rmk: Likewise.
971 * conf/x86-efi.rmk: Likewise.
973 * disk/lvm.h: #include updates for above renames.
974 * util/grub-mkrelpath.c: Likewise.
975 * util/grub-probe.c: Likewise.
976 * util/i386/pc/grub-setup.c: Likewise.
977 * util/sparc64/ieee1275/grub-setup.c: Likewise.
978 * kern/emu/console.c: Likewise.
979 * kern/emu/getroot.c: Likewise.
980 * kern/emu/hostdisk.c: Likewise.
981 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
983 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
984 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
985 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
986 * util/misc.c: Remove grub-emu functions.
988 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
991 Reported by: Thorsten Grützmacher.
993 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
995 (circprog_set_property): Register and unregister timeout hook.
996 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
997 (label_destroy): Free template. and unregister hook.
998 (label_set_state): New function.
999 (label_set_property): Handle templates and hooks.
1000 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
1002 (progress_bar_set_property): Register and unregister timeout hook.
1003 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
1004 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
1005 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
1006 (update_timeout_visit): Removed.
1007 (update_timeouts): New function.
1008 (redraw_timeouts): Likewise.
1009 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
1010 (grub_gfxmenu_clear_timeout): Likewise.
1011 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
1012 (grub_gfxmenu_timeout_notify): Likewise.
1013 (grub_gfxmenu_timeout_notifications): New external variable.
1014 (grub_gfxmenu_timeout_register): New function.
1015 (grub_gfxmenu_timeout_unregister): Likewise.
1017 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1019 Transform (broken) vga terminal into (working) vga video driver.
1021 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
1022 video/i386/pc/vga.c.
1023 * include/grub/video.h (grub_video_driver_id):
1024 Add GRUB_VIDEO_DRIVER_VGA.
1025 * term/i386/pc/vga.c: Renamed to ...
1026 * video/i386/pc/vga.c: ...this
1027 (DEBUG_VGA): Removed.
1028 (CHAR_WIDTH): Likewise.
1029 (CHAR_HEIGHT): Likewise.
1030 (TEXT_WIDTH): Likewise.
1031 (TEXT_HEIGHT): Likewise.
1032 (DEFAULT_FG_COLOR): Likewise.
1033 (DEFAULT_BG_COLOR): Likewise.
1034 (colored_char): Likewise.
1037 (cursor_state): Likewise.
1038 (fg_color): Likewise.
1039 (bg_color): Likewise.
1040 (text_buf): Likewise.
1043 (framebuffer): New variable.
1044 (set_read_map): Disabled.
1045 (setup): New variable.
1046 (is_target): Likewise.
1047 (grub_vga_mod_init): Likewise.
1048 (grub_vga_mod_fini): Likewise.
1049 (check_vga_mem): Likewise.
1050 (write_char): Likewise.
1051 (write_cursor): Likewise.
1052 (scroll_up): Likewise.
1053 (grub_vga_putchar): Likewise.
1054 (grub_vga_getcharwidth): Likewise.
1055 (grub_vga_getwh): Likewise.
1056 (grub_vga_getxy): Likewise.
1057 (grub_vga_gotoxy): Likewise.
1058 (grub_vga_cls): Likewise.
1059 (grub_vga_setcolorstate): Likewise.
1060 (grub_vga_setcursor): Likewise.
1061 (grub_video_vga_init): New function.
1062 (grub_video_vga_setup): Likewise.
1063 (grub_video_vga_fini): Likewise.
1064 (update_target): Likewise.
1065 (grub_video_vga_blit_bitmap): Likewise.
1066 (grub_video_vga_blit_render_target): Likewise.
1067 (grub_video_vga_set_active_render_target): Likewise.
1068 (grub_video_vga_get_active_render_target): Likewise.
1069 (grub_video_vga_swap_buffers): Likewise.
1070 (grub_video_vga_set_palette): Likewise.
1071 (grub_video_vga_get_info_and_fini): Likewise.
1072 (grub_vga_term): Removed.
1073 (grub_video_vga_adapter): New variable.
1074 (GRUB_MOD_INIT): Register a video driver instead of terminal.
1075 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
1077 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1079 * video/readers/jpeg.c: Indented.
1081 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1083 Various jpeg cleanups.
1085 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
1086 (grub_jpeg_decode_quan_table): Use sizeof.
1087 (grub_jpeg_decode_du): Use ARRAY_SIZE.
1089 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
1091 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
1092 tables. Ignore non-last ac bit.
1093 (grub_jpeg_decode_quan_table): Likewise.
1095 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1097 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1098 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
1099 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1100 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
1101 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
1102 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
1104 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1106 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
1109 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1111 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
1113 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1115 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
1118 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1120 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
1123 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1125 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
1128 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1130 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
1132 2010-05-01 Christian Franke <franke@computer.org>
1134 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
1135 Remove broken Cygwin path conversion.
1136 * util/misc.c: [__CYGWIN__] Add include and define.
1137 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
1139 (make_system_path_relative_to_its_root): Simplify loop, replace early
1141 [__CYGWIN__] Add conversion to win32 path.
1142 Include "/" case in trailing slash removal.
1144 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1146 * kern/main.c (grub_load_config): Fix copy-pasted comment.
1147 Reported by: Seth Goldberg
1149 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1151 * commands/help.c (grub_cmd_help): Fix a typo.
1152 Reported by: Seth Goldberg
1154 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1156 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
1158 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
1159 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
1160 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
1161 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
1162 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
1163 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
1164 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
1165 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
1166 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
1167 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
1168 * normal/context.c (GRUB_MOD_INIT): Likewise.
1169 * normal/main.c (GRUB_MOD_INIT): Likewise.
1170 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
1171 * term/serial.c (GRUB_MOD_INIT): Likewise.
1172 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
1174 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1176 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
1179 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1181 * commands/iorw.c: New file.
1182 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
1183 (iorw_mod_SOURCES): New variable.
1184 (iorw_mod_CFLAGS): Likewise.
1185 (iorw_mod_LDFLAGS): Likewise.
1187 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1191 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
1192 * normal/main.c (hotkey_aliases): New variable.
1193 (grub_normal_add_menu_entry): Parse "--hotkey".
1194 * normal/menu_text.c (run_menu): Handle hotkeys.
1196 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1198 * kern/i386/coreboot/init.c (grub_machine_init): Call
1199 grub_machine_mmap_init on qemu.
1201 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1203 * boot/i386/qemu/boot.S: Add a missing .code16.
1205 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1207 Use LBIO on coreboot.
1209 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
1210 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
1211 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
1213 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
1214 grub_machine_mmap_init on coreboot.
1215 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
1216 GRUB_LINUXBIOS_MEMBER_LINK.
1217 (grub_machine_mmap_iterate): Fix declaration.
1218 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
1220 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1222 Split coreboot and multiboot ports.
1224 * conf/i386-multiboot.rmk: New file.
1225 * configure.ac: Add multiboot port.
1226 * include/grub/i386/multiboot/boot.h: New file.
1227 * include/grub/i386/multiboot/console.h: Likewise.
1228 * include/grub/i386/multiboot/init.h: Likewise.
1229 * include/grub/i386/multiboot/kernel.h: Likewise.
1230 * include/grub/i386/multiboot/loader.h: Likewise.
1231 * include/grub/i386/multiboot/memory.h: Likewise.
1232 * include/grub/i386/multiboot/serial.h: Likewise.
1233 * include/grub/i386/multiboot/time.h: Likewise.
1234 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
1235 * loader/multiboot.c: Likewise.
1236 * loader/multiboot_mbi2.c: Likewise.
1237 * util/grub-mkrescue.in: Generate multiboot rescue.
1239 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1241 * kern/parser.c (grub_parser_execute): Cope with read-only config.
1243 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
1245 Merge handling of input and output terminals. Fix a hang.
1247 * commands/terminal.c (abstract_terminal): New struct.
1248 (handle_command): New function. Based on grub_cmd_terminal_input.
1249 (grub_cmd_terminal_input): Use handle_command.
1250 (grub_cmd_terminal_output): Use handle_command.
1252 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
1254 Fix comment handling.
1256 * tests/grub_script_comments.in: New testcase.
1257 * conf/tests.rmk: Rules for new testcase.
1258 * script/yylex.l: Updated flex rules.
1260 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1262 * docs/grub.texi (play): Document that zero pitches produce rests.
1263 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
1266 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1268 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
1271 2010-04-26 Christian Franke <franke@computer.org>
1273 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
1274 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
1275 (grub_get_prefix): Remove function.
1276 * util/grub-emu.c (main): Replace grub_get_prefix () call by
1277 make_system_path_relative_to_its_root ().
1278 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
1280 2010-04-24 Christian Franke <franke@computer.org>
1282 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
1283 (kernel_img_LDFLAGS): Remove -static-libgcc.
1285 2010-04-24 Christian Franke <franke@computer.org>
1287 * configure.ac: Do not CHECK_BSS_START_SYMBOL
1288 and CHECK_END_SYMBOL if grub-emu is built.
1289 Unset TARGET_OBJ2ELF if grub-emu is built
1290 without module support.
1292 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
1296 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
1297 (grub_fstest_SOURCES): Likewise.
1298 (pkglib_MODULES): Add nilfs2.mod.
1299 (nilfs2_mod_SOURCES): New variable.
1300 (nilfs2_mod_CFLAGS): Likewise.
1301 (nilfs2_mod_LDFLAGS): Likewise.
1302 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1303 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
1304 * fs/nilfs2.c: New file.
1306 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1308 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
1311 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
1313 Add grub-mkconfig support for NetBSD.
1315 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
1316 * util/grub-mkconfig.in: export new NetBSD specific variables.
1317 * po/POTFILES-shell: added 10_netbsd.in.
1318 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
1320 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
1322 Fix emu build with grub-emu-pci and grub-emu-modules.
1324 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
1326 * include/grub/libpciaccess.h: New file.
1327 * conf/any-emu.rmk: Update kernel headers for emu build.
1329 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1331 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
1333 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1335 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
1337 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1339 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
1340 Retrieve chosen/bootpath if bootpath isn't hardcoded.
1341 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
1342 util/ieee1275/ofpath.c.
1343 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
1344 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
1345 * include/grub/sparc64/ieee1275/boot.h
1346 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
1347 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
1348 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
1349 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
1351 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
1352 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
1353 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
1356 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
1358 * util/grub-mkconfig.in: Corrected two == equality tests.
1359 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
1360 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
1361 expect a number appended to it.
1362 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
1363 expects a number appended to it.
1365 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1367 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
1369 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1371 * util/hostdisk.c (make_device_name): Change to new partition naming.
1373 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1375 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
1377 2010-04-17 Christian Franke <franke@computer.org>
1379 * Makefile.in: Add missing localedir setting.
1381 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
1383 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
1384 mistake in r2156. Noticed by Anthony Fok.
1386 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
1388 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
1390 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
1392 Fix a spurious, uninitialized variable warning.
1394 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
1395 Initialize variable, shdr.
1396 (grub_freebsd_load_elfmodule): Likewise.
1397 (grub_freebsd_load_elf_meta): Likewise.
1399 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
1401 Fix for escaped dollar in double quoted strings.
1403 * script/yylex.l: Updated flex rules.
1404 * conf/tests.rmk: Rule for new testcase.
1405 * tests/grub_script_dollar.in: New testcase.
1407 2010-04-13 Carles Pina i Estany <carles@pina.cat>
1408 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
1410 Enclose all translated strings in grub.cfg in single quotes, and
1411 escape them appropriately (Ubuntu bug #552921).
1413 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
1414 * util/grub.d/10_hurd.in: Use it.
1415 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
1416 * util/grub.d/10_linux.in (linux_entry): Likewise.
1418 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1420 Fix cygwin compilation.
1422 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
1423 * include/grub/misc.h (__register_frame_info)
1424 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
1425 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1426 * kern/misc.c (__register_frame_info)
1427 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
1428 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
1430 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1432 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
1434 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1436 Unify libgcc processing.
1438 * Makefile.in (kernel_img_LDFLAGS): New variable.
1439 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
1440 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
1442 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
1443 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
1444 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
1445 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
1446 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
1447 overwriting. Remove -lgcc and -static-libgcc
1448 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
1449 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1450 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
1451 (kernel_img_LDFLAGS): Append instead of overwriting.
1452 Remove -lgcc and -static-libgcc
1453 * conf/sparc64-ieee1275.rmk: Likewise.
1454 * include/grub/powerpc/libgcc.h: Move to ...
1455 * include/grub/libgcc.h: .. this.
1456 * include/grub/libgcc.h: Don't export most of the function on x86.
1457 (__bswapsi2): New export.
1458 (__bswapdi2): Likewise.
1459 * include/grub/mips/libgcc.h: Removed.
1460 * include/grub/sparc64/libgcc.h: Likewise.
1462 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1464 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
1465 disk_info_msg (conflicts with gettexting into languages with cases).
1467 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
1469 Add grub-probe support for NetBSD.
1471 * util/getroot.c (find_root_device): Convert block device to
1472 character device on NetBSD.
1473 * util/probe.c (probe): Require character device on NetBSD.
1474 * util/hostdisk.c: NetBSD specific headers.
1475 (configure_device_driver): new function to tune device driver
1476 parameters (currently only for NetBSD floppy driver).
1477 (grub_util_biosdisk_open): NetBSD specific code (get disk size
1478 via disklabel ioctl).
1479 (open_device): call configure_device_driver on NetBSD.
1480 (convert_system_partition_to_system_disk): NetBSD specific code.
1481 (device_is_wholedisk): Likewise.
1482 (grub_util_biosdisk_get_grub_dev): Likewise.
1483 (make_device_name): Fixed a typo in bsd_part_str.
1484 * configure.ac: check for opendisk() and getrawpartition() on
1485 NetBSD and set LIBUTIL.
1486 * Makefile.in: add LIBUTIL to LIBS.
1488 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
1492 * util/grub-script-check.c: Better help message.
1494 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
1498 * configure.ac: Flex version check.
1499 * conf/common.rmk: Add -Wno-error to sh.mod.
1500 * script/yylex.l: Remove all #pragma.
1502 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1504 * include/grub/util/misc.h (canonicalise_file_name): Add missing
1506 Reported by: Seth Goldberg.
1508 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1510 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
1511 Rename "module" to "module2".
1512 Reported by: Seth Goldberg.
1514 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1516 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
1518 Reported by: Seth Goldberg.
1520 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1522 * lib/posix_wrap/locale.h: Add missing file.
1523 Reported by: Seth Goldberg.
1525 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1527 grub-emu module load support.
1529 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
1530 NO_DYNAMIC_MODULES switched to this.
1531 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
1533 * conf/any-emu.rmk: Generate symlist.
1534 (kernel_img_HEADERS): Add util/datetime.h.
1535 (kernel_img_HEADERS) [sdl]: Add sdl.h.
1536 (kernel_img_HEADERS) [libusb]: Add libusb.h.
1537 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
1538 kern/$(target_cpu)/cache.S.
1539 * configure.ac (grub-emu-modules): New option.
1540 * genmk.rb: Handle multiple source lists.
1541 * include/grub/sdl.h: New file.
1542 * include/grub/libusb.h: Likewise.
1543 * util/grub-emu.c (main): Hanle (host) root.
1544 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
1545 GRUB_ERR_UNKNOWN_DEVICE.
1546 * util/misc.c: Move mm functions to ...
1547 * util/mm.c: ... here. All users updated.
1549 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1551 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
1552 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
1554 (maintainer-clean): Remove libgcrypt-grub.
1556 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1558 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
1560 2010-04-09 EFI Coder <eficoder@hotmail.com>
1562 * normal/menu_text.c (print_message): Clean up the message and show
1563 the Fn information when on EFI
1564 * term/efi/console.c (grub_console_checkkey): Add F4 support.
1566 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1568 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
1570 * normal/crypto.c (read_crypto_list): Likewise.
1571 * normal/dyncmd.c (read_command_list): Likewise.
1572 * normal/term.c (read_terminal_list): Likewise.
1573 * normal/main.c (read_lists): Use explicit prefix.
1574 (read_lists_hook): Use read_lists.
1575 (grub_normal_execute): Likewise.
1577 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1579 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
1580 Reported by: Thomas Schmitt.
1581 Add -no-emul-boot to grub-mkisofs parameters.
1583 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1585 * font/font.c: Indented.
1587 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
1589 Elif support to GRUB script (by Deepak Vankadaru).
1591 * tests/grub_script_if.in: New testcase.
1592 * conf/tests.rmk: Rule for new testcase.
1593 * script/parser.y: Grammar rules for elif.
1595 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
1597 While and until loops support to GRUB script.
1599 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
1600 (grub_script_create_cmdwhile): New function prototype.
1601 (grub_script_execute_cmdwhile): New function prototype.
1602 * script/execute.c (grub_script_execute_cmdwhile): New function.
1603 * script/parser.y (command): New commands.
1604 (whilecmd): New grammar rule.
1605 (untilcmd): New grammar rule.
1606 * script/script.c (grub_script_create_cmdwhile): New function.
1607 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
1610 * tests/grub_script_while1.in: New testcase.
1611 * conf/tests.rmk: Rule for new testcase.
1613 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1615 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
1618 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
1620 GRUB_BACKGROUND support.
1622 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
1623 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
1625 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1627 Load fonts and modules for gfxmenu in grub-mkconfig.
1628 Idea by: Mario Vazquez
1630 * util/grub.d/00_header.in: Load pf2 and image modules.
1632 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1634 grub-mkconfig multiple terminal support.
1636 * util/grub-mkconfig.in: Handle multiple terminals correctly.
1637 * util/grub.d/00_header.in: Likewise.
1639 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
1641 * Makefile.in: Specify files explicitly instead of using $< and $@ since
1642 we use cd $(srcdir).
1644 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
1646 * util/grub.d/10_linux.in: Only use the first word of
1647 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
1648 spaces in GRUB_DISTRIBUTOR.
1649 * util/grub.d/10_kfreebsd.in: Likewise.
1650 * util/grub.d/10_hurd.in: Likewise.
1652 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
1654 Fix unit testing framework for Qemu 0.12.
1656 * tests/util/grub-shell.in: Remove -serial stdio option.
1658 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1660 POSIX header file wrappers.
1662 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
1664 * lib/posix_wrap/ctype.h: Likewise.
1665 * lib/posix_wrap/errno.h: Likewise.
1666 * lib/posix_wrap/langinfo.h: Likewise.
1667 * lib/posix_wrap/limits.h: Likewise.
1668 * lib/posix_wrap/localcharset.h: Likewise.
1669 * lib/posix_wrap/stdint.h: Likewise.
1670 * lib/posix_wrap/stdio.h: Likewise.
1671 * lib/posix_wrap/stdlib.h: Likewise.
1672 * lib/posix_wrap/string.h: Likewise.
1673 * lib/posix_wrap/sys/types.h: Likewise.
1674 * lib/posix_wrap/unistd.h: Likewise.
1675 * lib/posix_wrap/wchar.h: Likewise.
1676 * lib/posix_wrap/wctype.h: Likewise.
1677 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
1678 (grub_script.yy.h): Likewise.
1679 * script/yylex.l: Remove POSIX emulation #defines.
1680 * Makefile.in (POSIX_CFLAGS): New variable.
1681 (GNULIB_UTIL_CFLAGS): Likewise.
1685 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
1686 (regexp_mod_SOURCES): New variable.
1687 (regexp_mod_CFLAGS): Likewise.
1688 (regexp_mod_LDFLAGS): Likewise.
1689 * commands/regexp.c: New file.
1690 * gnulib/regcomp.c: New file. Imported from gnulib.
1691 * gnulib/regex.c: Likewise.
1692 * gnulib/regex_internal.c: Likewise.
1693 * gnulib/regex_internal.h: Likewise.
1694 * gnulib/regexec.c: Likewise.
1695 * gnulib/regex.h: Likewise.
1697 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1699 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
1700 unsupported video mode types.
1702 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1704 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
1706 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1708 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
1709 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
1711 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1713 Remove unused grub_vga_get_font.
1715 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
1716 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
1718 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1720 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
1721 * include/grub/misc.h: Likewise.
1723 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1725 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
1726 for which failure is fatal.
1728 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1730 * util/grub-install.in: Use mkdir -p to create grub directory.
1731 * util/i386/efi/grub-install.in: Likewise.
1732 * util/ieee1275/grub-install.in: Likewise.
1734 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1736 * Makefile.in (LEX): new variable.
1738 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
1740 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
1741 `=' and added double quotes on operands of this equality test.
1743 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1745 * Makefile.in (uninstall): Remove a leftover debug echo.
1746 Reported by: Grégoire Sutre
1748 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1750 MIPS multiboot2 support.
1752 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
1753 (multiboot2_mod_SOURCES): New variable.
1754 (multiboot2_mod_CFLAGS): Likewise.
1755 (multiboot2_mod_LDFLAGS): Likewise.
1756 (multiboot2_mod_ASFLAGS): Likewise.
1757 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
1759 (MULTIBOOT_ENTRY_REGISTER): Likewise.
1760 (MULTIBOOT_MBI_REGISTER): Likewise.
1761 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
1762 (MULTIBOOT_ELF32_MACHINE): Likewise.
1763 (MULTIBOOT_ELF64_MACHINE): Likewise.
1764 * include/grub/mips/multiboot.h: New file.
1765 * include/grub/video.h (grub_video_driver_id): New type
1766 GRUB_VIDEO_DRIVER_SM712.
1767 (grub_video_get_info_and_fini): Export.
1768 (grub_video_get_palette): Likewise.
1769 (grub_video_get_driver_id): Likewise.
1770 * include/multiboot2.h: Resynced with spec.
1771 * loader/i386/multiboot.c: Moved from here ...
1772 * loader/multiboot.c: ... here. All users updated.
1773 (grub_multiboot_boot): Use platform-specific macros.
1774 * loader/i386/multiboot_elfxx.c: Moved from here ...
1775 * loader/multiboot_elfxx.c: ... here. All users updated.
1776 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
1777 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
1778 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
1780 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1782 Import gnulib argp module.
1784 * gnulib/argp-ba.c: New file.
1785 * gnulib/argp-eexst.c: Likewise.
1786 * gnulib/argp-fmtstream.c: Likewise.
1787 * gnulib/argp-fmtstream.h: Likewise.
1788 * gnulib/argp-fs-xinl.c: Likewise.
1789 * gnulib/argp-help.c: Likewise.
1790 * gnulib/argp-namefrob.h: Likewise.
1791 * gnulib/argp-parse.c: Likewise.
1792 * gnulib/argp-pin.c: Likewise.
1793 * gnulib/argp-pv.c: Likewise.
1794 * gnulib/argp-pvh.c: Likewise.
1795 * gnulib/argp-version-etc.c: Likewise.
1796 * gnulib/argp-version-etc.h: Likewise.
1797 * gnulib/argp-xinl.c: Likewise.
1798 * gnulib/argp.h: Likewise.
1800 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
1802 * kern/device.c (grub_device_iterate): Clear errors after failed
1805 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
1807 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
1808 returned by firmware.
1810 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1812 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
1813 compilation on coreboot and qemu
1815 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
1817 * include/multiboot2.h: Resync with spec.
1819 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
1821 Multiboot2 tag support
1823 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
1824 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
1825 Remove loader/multiboot_loader.c.
1826 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
1827 (grub_multiboot2_real_boot): Likewise.
1828 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
1829 (grub_get_multiboot_mmap_count): New proto.
1830 (grub_fill_multiboot_mmap): Likewise.
1831 (grub_multiboot_set_video_mode): Likewise.
1832 (grub_multiboot_set_console): Likewise.
1833 (grub_multiboot_load): Likewise.
1834 (grub_multiboot_load_elf): Likewise.
1835 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
1836 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
1837 * include/multiboot.h: Resynced with specification.
1838 * include/multiboot2.h: Resynced with specification.
1839 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
1840 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
1841 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
1842 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
1844 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
1845 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
1846 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
1848 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
1850 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
1851 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
1853 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
1854 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
1855 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
1857 * loader/i386/multiboot_mbi2.c: New file.
1859 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
1863 * Makefile.in (GNULIB_CFLAGS): New variable.
1864 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
1865 (grub_script_check_CFLAGS): New variable.
1866 * gnulib/alloca.h: Resync with gnulib.
1867 * gnulib/error.c: Likewise.
1868 * gnulib/error.h: Likewise.
1869 * gnulib/fnmatch.c: Likewise.
1870 * gnulib/fnmatch_loop.c: Likewise.
1871 * gnulib/getdelim.c: Likewise.
1872 * gnulib/getline.c: Likewise.
1873 * gnulib/getopt.c: Likewise.
1874 * gnulib/getopt1.c: Likewise.
1875 * gnulib/getopt_int.h: Likewise.
1876 * gnulib/gettext.h: Likewise.
1877 * gnulib/progname.c: Likewise.
1878 * gnulib/progname.h: Likewise.
1880 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
1882 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
1883 which is the case with --disabled-nls.
1885 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
1886 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
1887 * util/misc.c: Likewise.
1888 * util/mkisofs/mkisofs.c: Likewise.
1889 * util/mkisofs/mkisofs.h: Likewise.
1891 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
1893 Simplify Apple CC support.
1895 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
1896 Add 0 byte at the end not to have a symbol with empty target.
1897 * mmap/i386/pc/mmap_helper.S: Likewise.
1898 * genmk.rb: Ignore errors 2030 and 2050.
1899 * kern/i386/pc/startup.S: Use LOCAL when possible.
1901 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
1903 Testcase and the fix for final semicolon on cmdline.
1905 * tests/grub_script_final_semicolon.in: New testcase.
1906 * conf/tests.rmk: Rules for the new testcase.
1907 * script/parser.y: Grammar fix.
1909 2010-03-26 BVK Chaitanya <bvk@localhost>
1911 Blank lines testcase for GRUB script.
1913 * tests/grub_script_blanklines.in: New testcase.
1914 * conf/tests.rmk: Rules for the new testcase.
1916 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1920 * genmk.rb: Add -DGRUB_FILE to all C targets.
1921 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
1922 * include/grub/list.h: Likewise.
1923 * include/grub/misc.h: Likewise.
1924 * include/grub/mm.h: Likewise.
1925 * include/grub/test.h: Likewise.
1926 * kern/mm.c: Likewise.
1927 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
1929 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1931 Sunpc partitions support.
1933 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
1934 (grub_fstest_SOURCES): Likewise.
1935 (pkglib_MODULES): Add part_sunpc.mod.
1936 (part_sunpc_mod_SOURCES): New variable.
1937 (part_sunpc_mod_CFLAGS): Likewise.
1938 (part_sunpc_mod_LDFLAGS): Likewise.
1939 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
1940 * partmap/sunpc.c: New file.
1942 2010-03-26 BVK Chaitanya <bvk@localhost>
1944 For loop support to GRUB script.
1946 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
1947 (grub_script_create_cmdfor): New function prototype.
1948 (grub_script_execute_cmdfor): New function prototype.
1949 * script/execute.c (grub_script_execute_cmdfor): New function.
1950 * script/parser.y (command): New for command.
1951 (forcmd): New grammar rule.
1952 * script/script.c (grub_script_create_cmdfor): New function.
1953 * util/grub-script-check.c (grub_script_execute_cmdfor): New
1955 * tests/grub_script_for1.in: New testcase.
1956 * conf/tests.rmk: Rules for new testcase.
1958 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1962 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
1963 'partition' is NULL, grub_partition_get_start already does that.
1964 * commands/loadenv.c (check_blocklists): Likewise.
1965 (write_blocklists): Likewise.
1966 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
1967 (grub_fstest_SOURCES): Likewise.
1968 (pkglib_MODULES): Add part_bsd.mod.
1969 (part_bsd_mod_SOURCES): New variable.
1970 (part_bsd_mod_CFLAGS): Likewise.
1971 (part_bsd_mod_LDFLAGS): Likewise.
1972 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
1973 (grub_emu_SOURCES): Likewise.
1974 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
1975 * include/grub/bsdlabel.h: New file.
1976 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
1978 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
1979 (grub_partition_map_list): New variable.
1980 (grub_partition_map_register): Inline.
1981 (grub_partition_map_unregister): Likewise.
1982 (FOR_PARTITION_MAPS): New macro.
1983 (grub_partition_map_iterate): Removed.
1984 (grub_partition_get_start): Handle nested partitions.
1985 * include/grub/msdos_partition.h: Remove bsd-related entries.
1986 (grub_pc_partition): Remove.
1987 * kern/disk.c (grub_disk_close): Free partition data.
1988 (grub_disk_adjust_range): Handle nested partitions.
1989 * kern/partition.c (grub_partition_map_probe): New function.
1990 (grub_partition_probe): Parse name to number, handle subpartitions.
1991 (get_partmap): New function.
1992 (grub_partition_iterate): Handle subpartitions.
1993 (grub_partition_get_name): Likewise.
1994 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
1995 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
1996 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
1997 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
1999 (acorn_partition_map_probe): Remove.
2000 (acorn_partition_map_get_name): Likewise.
2001 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
2003 Set 'index' to 0 since there can be only one partition entry per sector.
2004 (amiga_partition_map_probe): Remove.
2005 (amiga_partition_map_get_name): Likewise.
2006 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
2008 Set 'offset' and 'index' to real positions of partitions.
2009 (apple_partition_map_probe): Remove.
2010 (apple_partition_map_get_name): Likewise.
2011 * partmap/bsdlabel.c: New file.
2012 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
2014 Allocate 'data' so it can be correctly freed.
2015 Set 'index' to offset inside sector.
2016 (gpt_partition_map_probe): Remove.
2017 (gpt_partition_map_get_name): Likewise.
2018 * partmap/msdos.c (grub_partition_parse): Remove.
2019 (pc_partition_map_iterate): Don't force raw access.
2021 Make 'ext_offset' a local variable.
2022 (pc_partition_map_probe): Remove.
2023 (pc_partition_map_get_name): Remove.
2024 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
2026 (sun_partition_map_probe): Remove.
2027 (sun_partition_map_get_name): Likewise.
2028 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
2029 (grub_pcpart_type): Likewise.
2030 * util/hostdisk.c (open_device): Handle new numbering scheme.
2031 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
2032 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
2033 * util/grub-probe.c (probe_partmap): Handle nested paritions.
2034 * util/grub-install.in: Insert all subpartition modules.
2035 * util/ieee1275/grub-install.in: Likewise.
2037 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
2039 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
2042 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
2044 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
2046 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
2048 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
2049 match where 'make install' puts them.
2050 * util/i386/efi/grub-install.in: Likewise.
2052 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
2054 * .bzrignore: Add gentrigtables, grub-script-check,
2055 grub_script_check_init.c, grub_script_check_init.h, and
2058 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
2060 * kern/parser.c: Indented.
2062 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2064 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
2066 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2068 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
2069 alpha_mask_size == 0 case.
2071 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
2073 GRUB shell lexer and parser improvements.
2075 * conf/any-emu.rmk: Build rule updates.
2076 * conf/common.rmk: Likewise.
2077 * conf/i386-coreboot.rmk: Likewise.
2078 * conf/i386-efi.rmk: Likewise.
2079 * conf/i386-ieee1275.rmk: Likewise.
2080 * conf/i386-pc.rmk: Likewise.
2081 * conf/powerpc-ieee1275.rmk: Likewise.
2082 * conf/x86_64-efi.rmk: Likewise.
2084 * configure.ac: Configure check for flex.
2086 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
2088 (grub_lexer_param): Struct member updates.
2089 (grub_parser_param): Likewise.
2090 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
2091 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
2092 (grub_script_lexer_init): Prototype update.
2093 (grub_script_lexer_record_start): Likewise.
2094 (grub_script_lexer_record_stop): Likewise.
2095 (grub_script_lexer_yywrap): New function prototype.
2096 (grub_script_lexer_fini): Likewise.
2097 (grub_script_execute_argument_to_string): Removed by...
2098 (grub_script_execute_argument_to_argv): ...better version.
2100 * script/execute.c (ROUND_UPTO): New macro.
2101 (grub_script_execute_cmdline): Out of memory fixes.
2102 (grub_script_execute_menuentry): Likewise.
2103 (grub_script_execute_argument_to_string): Removed. Update all
2105 (grub_script_execute_argument_to_argv): ...better version.
2106 * script/function.c (grub_script_function_create): Use
2107 grub_script_execute_argument_to_argv instead of
2108 grub_script_execute_argument_to_string.
2110 * script/lexer.c (check_varstate): Removed.
2111 (check_textstate): Removed.
2112 (grub_script_lexer_record_start): Likewise.
2113 (grub_script_lexer_record_stop): Likewise.
2114 (recordchar): Replaced with...
2115 (grub_script_lexer_record): ...new function.
2116 (nextchar): Removed.
2117 (grub_script_lexer_init): Rewritten.
2118 (grub_script_yylex): Rewritten.
2119 (append_newline): New function.
2120 (grub_script_lexer_yywrap): New function.
2121 (grub_script_lexer_fini): New function.
2122 (grub_script_yyerror): Sets error flag.
2124 * script/yylex.l: New file.
2125 (grub_lexer_yyfree): Wrapper for flex yyffre.
2126 (grub_lexer_yyalloc): Likewise.
2127 (grub_lexer_yyrealloc): Likewise.
2128 * script/parser.y: Refactored.
2130 * script/script.c (grub_script_arg_add): Out of memory fixes.
2131 (grub_script_add_arglist): Likewise.
2132 (grub_script_create_cmdline): Likewise.
2133 (grub_script_create_cmdmenu): Likewise.
2134 (grub_script_add_cmd): Likewise.
2135 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
2136 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
2139 * tests/grub_script_echo1.in: New testcase.
2140 * tests/grub_script_vars1.in: New testcase.
2141 * tests/grub_script_echo_keywords.in: New testcase.
2143 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2145 Remove some redundancy in build system.
2147 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
2148 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
2149 (TARGET_LDFLAGS): Add -nostdlib.
2150 (TARGET_IMG_LDFLAGS): Likewise.
2151 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
2152 anything since mmap isn't available.
2153 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
2155 (pkglib_MODULES): Remove reboot.mod.
2156 (reboot_mod_SOURCES): Removed.
2157 (reboot_mod_CFLAGS): Likewise.
2158 (reboot_mod_LDFLAGS): Likewise.
2159 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
2160 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
2161 (DEFSYMFILES): Add kernel_syms.lst.
2162 (kernel_img_HEADERS): Add common headers.
2163 (symlist.c): New target.
2164 (kernel_syms.lst): Likewise.
2165 (pkglib_MODULES): Add memdisk.mod.
2166 (memdisk_mod_SOURCES): New variable.
2167 (memdisk_mod_CFLAGS): Likewise.
2168 (memdisk_mod_LDFLAGS): Likewise.
2169 (pkglib_MODULES): Add reboot.mod.
2170 (reboot_mod_SOURCES): New variable.
2171 (reboot_mod_CFLAGS): Likewise.
2172 (reboot_mod_LDFLAGS): Likewise.
2173 (pkglib_MODULES): Add date.mod.
2174 (date_mod_SOURCES): New variable.
2175 (date_mod_CFLAGS): Likewise.
2176 (date_mod_LDFLAGS): Likewise.
2177 (pkglib_MODULES): Add datehook.mod.
2178 (datehook_mod_SOURCES): New variable.
2179 (datehook_mod_CFLAGS): Likewise.
2180 (datehook_mod_LDFLAGS): Likewise.
2181 (pkglib_MODULES): Add lsmmap.mod.
2182 (lsmmap_mod_SOURCES): New variable.
2183 (lsmmap_mod_CFLAGS): Likewise.
2184 (lsmmap_mod_LDFLAGS): Likewise.
2185 (pkglib_MODULES): Add boot.mod.
2186 (boot_mod_SOURCES): New variable.
2187 (boot_mod_CFLAGS): Likewise.
2188 (boot_mod_LDFLAGS): Likewise.
2189 * conf/i386-coreboot.rmk: Removed redundant parts.
2190 * conf/i386-ieee1275.rmk: Likewise.
2191 * conf/i386-pc.rmk: Likewise.
2192 * conf/mips-yeeloong.rmk: Likewise.
2193 * conf/mips.rmk: Likewise.
2194 * conf/powerpc-ieee1275.rmk: Likewise.
2195 * conf/sparc64-ieee1275.rmk: Likewise.
2196 * conf/x86_64-efi.rmk: Likewise.
2197 * conf/i386-coreboot.rmk: Moved qemu parts ..
2198 * conf/i386-qemu.rmk: ... here
2199 * conf/i386-efi.rmk: Moved common parts to...
2200 * conf/x86-efi.rmk: ... here.
2201 * conf/i386.rmk: Added modules common to all x86 variants.
2202 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
2203 * disk/memdisk.c: Remove grub/machine/kernel.h.
2204 * gensymlist.sh.in: Include symbol.h.
2205 * hook/datehook.c: Correct module name.
2206 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
2207 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
2208 * include/grub/i386/efi/serial.h: New file.
2209 * include/grub/x86_64/efi/serial.h: Likewise.
2210 * util/time.c: Likewise.
2211 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
2213 2010-03-14 Colin King <colin.king@ubuntu.com>
2214 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2216 Shrink the pre-partition-table part of boot.img by eight bytes.
2218 * boot/i386/pc/boot.S (ERR): New macro.
2219 (chs_mode): Use ERR.
2220 (geometry_error): Likewise.
2221 (hd_probe_error): Remove. This is only used once, so we wrwite
2223 (read_error): Instead of printing read_error_string, just set up
2224 %si and fall through to ...
2225 (error_message): ... this new function, also used by ERR.
2227 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
2229 Speed up consecutive hostdisk operations on the same device.
2231 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
2232 (grub_util_biosdisk_open): Initialise disk->data.
2233 (struct linux_partition_cache): New structure.
2234 (linux_find_partition): Cache partition start positions; these are
2235 expensive to compute on every read and write.
2236 (open_device): Cache open file descriptor in disk->data, so that we
2237 don't have to reopen it and flush the buffer cache for consecutive
2238 operations on the same device.
2239 (grub_util_biosdisk_close): New function.
2240 (grub_util_biosdisk_dev): Set `close' member.
2242 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
2243 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
2244 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
2245 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
2246 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
2248 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2250 Compile parts of grub-emu as modules.
2252 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
2253 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
2254 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
2255 (all-local): Add $(GRUB_EMU).
2256 (install-local): Install $(GRUB_EMU).
2257 (uninstall): Uninstall $(GRUB_EMU).
2258 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
2259 * kern/dl.c: Likewise.
2260 * commands/sleep.c: Not include machine/time.h.
2261 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
2262 (COMMON_CFLAGS): Likewise.
2263 (sbin_UTILITIES): Remove grub-emu.
2264 (grub_emu_SOURCES): Removed.
2265 (kernel_img_RELOCATABLE): New variable.
2266 (pkglib_PROGRAMS): Add kernel.img.
2267 (kernel_img_SOURCES): New variable
2268 (kernel_img_CFLAGS): Likewise.
2269 (kernel_img_LDFLAGS): Likewise.
2270 (TARGET_NO_STRIP): Likewise.
2271 (TARGET_NO_DYNAMIC_MODULES): Likewise.
2272 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
2273 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
2274 (grub-emu): New target.
2275 (GRUB_EMU): New variable.
2276 * configure.ac: Whitelist -emu as possible x86_64 architecture.
2277 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
2278 * loader/xnu.c: Likewise.
2279 * include/grub/pci.h: Likewise.
2280 * genemuinit.sh: New file.
2281 * genemuinitheader.sh: Likewise.
2282 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
2283 Support TARGET_NO_DYNAMIC_MODULES.
2284 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
2285 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
2286 * disk/loopback.c: Likewise.
2287 * font/font_cmd.c: Likewise.
2288 * partmap/acorn.c: Likewise.
2289 * partmap/amiga.c: Likewise.
2290 * partmap/apple.c: Likewise.
2291 * partmap/gpt.c: Likewise.
2292 * partmap/msdos.c: Likewise.
2293 * partmap/sun.c: Likewise.
2294 * parttool/msdospart.c: Likewise.
2295 * term/gfxterm.c: Likewise.
2296 * video/bitmap.c: Likewise.
2297 * video/readers/jpeg.c: Likewise.
2298 * video/readers/png.c: Likewise.
2299 * video/readers/tga.c: Likewise.
2300 * video/video.c: Likewise.
2301 * util/grub-emu.c (read_command_list): Removed.
2302 (main): Don't call util_init_nls.
2303 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
2304 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
2306 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2308 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
2309 date.mod, datehook.mod.
2310 (datetime_mod_SOURCES): New variable.
2311 (datetime_mod_CFLAGS): Likewise.
2312 (datetime_mod_LDFLAGS): Likewise.
2313 (date_mod_SOURCES): Likewise.
2314 (date_mod_CFLAGS): Likewise.
2315 (date_mod_LDFLAGS): Likewise.
2316 (datehook_mod_SOURCES): Likewise.
2317 (datehook_mod_CFLAGS): Likewise.
2318 (datehook_mod_LDFLAGS): Likewise.
2319 * conf/sparc64-ieee1275.rmk: Likewise.
2320 * lib/ieee1275/datetime.c: New file.
2322 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2324 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
2325 (ieee1275_fb_mod_SOURCES): New variable.
2326 (ieee1275_fb_mod_CFLAGS): Likewise.
2327 (ieee1275_fb_mod_LDFLAGS): Likewise.
2328 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
2330 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
2331 (HEAP_MAX_ADDR): Likewise.
2332 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
2334 Correct stop condition.
2335 (grub_ieee1275_devices_iterate): New function.
2336 * video/ieee1275.c: New file.
2338 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
2340 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
2342 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
2344 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
2345 SCRATCH_PAD_DISKBOOT as scratch.
2346 (bootit): Pass Openfirmware pointer in %o4.
2347 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
2349 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
2350 with util/grub-mkrawimage.c.
2351 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
2352 * include/grub/aout.h (AOUT_MID_SUN): New definition.
2353 (grub_aout_get_type) [GRUB_UTIL]: Removed.
2354 (grub_aout_load) [GRUB_UTIL]: Likewise.
2355 * include/grub/kernel.h (grub_modules_get_end): New proto.
2356 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
2357 (SCRATCH_PAD_BOOT): New definition.
2358 (SCRATCH_PAD_DISKBOOT): Likewise.
2359 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
2360 * include/grub/sparc64/ieee1275/ieee1275.h
2361 (grub_ieee1275_original_stack): New variable
2362 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
2364 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
2365 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
2366 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
2367 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
2368 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
2369 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
2370 (grub_platform_image_format_t): New type.
2371 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
2372 * kern/main.c (grub_modules_get_end)
2373 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
2374 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
2375 (codestart): Switch stacks.
2376 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
2378 (grub_heap_init): Use grub_modules_get_end.
2379 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
2381 * util/grub-mkrawimage.c (generate_image): Support sparc64.
2383 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
2385 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
2387 * util/grub-mkrescue.in: Base ISO UUID on UTC.
2389 2010-03-08 Matt Kraai <kraai@ftbfs.org>
2391 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
2394 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2396 * genmoddep.awk: Output all missing symbols and not only first.
2398 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2400 * NEWS: Put the date of 1.98 release.
2402 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2404 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
2407 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2409 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
2410 completition in the middle of string.
2412 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2414 * util/grub-mkrescue.in: Use mktemp with explicit template.
2416 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2418 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
2420 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
2422 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
2425 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2427 Fix FreeBSD compilation.
2429 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
2430 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
2432 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2434 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
2436 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2438 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
2440 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2442 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
2444 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
2446 Support relative image path in theme file.
2448 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
2449 (image_set_property): Handle theme_dir and relative path.
2451 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2453 * configure.ac: Alias amd64 to x86_64.
2455 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2457 * NEWS: mention multiboot on EFI.
2459 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2461 * kern/main.c (grub_load_modules): Handle errors from init functions of
2464 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2466 * normal/autofs.c (autoload_fs_module): Handle errors.
2468 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2470 Disable linux.mod on qemu-mips since it's not functional and leads
2471 to compilation failure.
2473 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
2474 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
2475 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
2476 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
2477 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
2478 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
2479 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
2480 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
2481 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
2482 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
2483 Reported by: BVK Chaitanya
2485 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
2487 * INSTALL: Add gettext as a dependency and add qemu to a new section
2488 "Prerequisites for make-check".
2490 2010-03-04 Christian Franke <franke@computer.org>
2492 * util/grub-pe2elf.c: Add missing include "progname.h".
2494 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2496 * normal/crypto.c (read_crypto_list): Fix a typo.
2497 Reported by: Seth Goldberg.
2499 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2501 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
2502 Reported by: Seth Goldberg.
2504 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2506 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
2509 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2511 * genmk.rb: Remove terminal*.lst in make clean.
2512 Reported by: Seth Goldberg.
2514 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
2516 * util/i386/efi/grub-install.in: Copy gettext files.
2518 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2520 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
2522 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2524 Wait for user entry basing on presence of output rather than on errors.
2526 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
2527 (grub_install_newline_hook): Likewise.
2528 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
2529 * normal/menu.c (show_menu): Check line_counter to determine presence
2531 * normal/term.c (grub_normal_line_counter): New variable.
2532 (grub_normal_get_line_counter): New function.
2533 (grub_install_newline_hook): Likewise.
2535 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2537 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
2539 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2541 * configure.ac: Update version to 1.98.
2543 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
2545 * util/grub.d/10_linux.in (linux_entry): Don't default to
2546 gfxpayload=keep if Linux doesn't support video handover.
2548 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
2550 Don't compile video modules on yeeloong since video subsystem is part
2553 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
2554 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
2555 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
2556 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
2557 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
2558 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
2559 * include/grub/bitmap_scale.h: Likewise.
2560 * include/grub/bufio.h: Likewise.
2561 * include/grub/font.h: Likewise.
2562 * include/grub/gfxterm.h: Likewise.
2563 * include/grub/video.h: Likewise.
2564 * include/grub/vbe.h: Don't include video_fb.h.
2565 * video/i386/pc/vbe.c: Include video_fb.h.
2566 * commands/i386/pc/vbetest.c: Include video.h.
2568 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
2570 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
2571 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
2572 default entry if GRUB_SAVEDEFAULT=true. This allows using
2573 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
2574 saving a new default on every boot.
2576 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2578 * normal/crypto.c (read_crypto_list): Fix a memory leak.
2579 * normal/term.c (read_terminal_list): Likewise.
2580 * normal/main.c (grub_normal_init_page): Likewise.
2581 (grub_normal_read_line_real): Likewise.
2583 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2585 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
2587 Reported by: Seth Goldberg.
2589 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
2591 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
2592 duplicate declaration of `start'.
2594 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2596 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
2598 Reported by: Georgy Buranov
2600 2010-02-20 Carles Pina i Estany <carles@pina.cat>
2602 * util/grub-mkrawimage.c (usage): Change string formatting to
2605 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
2607 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
2610 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
2612 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
2613 Reported by: Michael Suchanek.
2615 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2617 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
2618 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
2620 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
2622 Remove any reference to non-free fonts.
2624 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
2625 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
2626 uses non-free components.
2627 * font/font.c (grub_font_get_name): Remove example name.
2628 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
2629 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
2630 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
2631 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
2633 2010-02-16 Georgy Buranov <gburanov@gmail.com>
2635 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
2637 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
2639 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
2641 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
2643 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
2645 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
2647 * gensymlist.sh.in: Use TARGET_CC instead of CC.
2649 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2651 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
2652 * docs/grub.texi (Command-line and menu entry commands): Document play
2655 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2657 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
2658 parse arguments as inline tempo and notes. Move code for playing notes
2660 (play): ... new function.
2662 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2664 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
2665 grub_uint16_t instead of short.
2666 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
2667 disk from little endian to cpu endianness.
2669 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
2671 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
2672 GRUB_TICKS_PER_SECOND instead of 120.
2674 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2676 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
2677 escape sequence after \e.
2679 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2681 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
2682 non-ASCII characters.
2684 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2686 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
2687 set root in single quotes to prevent \, from being unescaped.
2689 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2691 Prevent unknown commands from stopping menuentry execution.
2693 * script/execute.c (grub_script_execute_cmdline): Print error after
2696 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
2698 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
2699 Reported by: Pavel Pisa.
2701 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2703 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
2705 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2707 Merge grub_ieee1275_map_physical into grub_map and rename to
2710 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
2711 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
2713 * kern/ieee1275/openfw.c (grub_map): Rename to ...
2714 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
2716 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
2718 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2720 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
2721 opening and not after.
2723 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2725 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
2728 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2730 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
2731 (alloc_phys): Use ALIGN_UP instead of align_addr.
2733 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2735 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
2737 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2739 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
2741 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2743 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
2746 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2748 Fix over-4GiB seek on sparc64.
2750 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
2751 Replace pos_i and pos_lo with pos. All users updated.
2752 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
2754 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
2756 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
2759 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2761 * util/grub-mkrawimage.c (main): Call set_program_name.
2763 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2765 Properly align 64-bit targets.
2767 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
2768 (generate_image): Use ALIGN_ADDR.
2770 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2772 Properly create cross-endian images.
2774 * include/grub/types.h (grub_host_to_target_addr): New macro
2775 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
2777 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
2779 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
2781 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2783 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
2785 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
2786 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
2787 (grub_linux_boot): Divide by 64K when on VESA.
2789 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2791 Support GRUB_GFXPAYLOAD_LINUX.
2793 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
2794 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
2796 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
2798 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
2799 to show messages instead of discarding them.
2800 Process errors after executing command and not before. Keep old method
2803 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
2805 * configure.ac: Check for ft2build.h.
2807 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2809 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
2811 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2813 * genkernsyms.sh.in: Use TARGET_CC.
2815 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
2819 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2821 * include/grub/multiboot2.h: Remove leftover file.
2822 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
2823 * include/grub/partition.h [GRUB_UTIL]: Likewise.
2825 2010-02-07 Yves Blusseau <blusseau@zetam.org>
2827 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
2829 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2831 Fix warnings in grub-emu when compiling with maximum warning options.
2833 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
2834 (grub_arch_modules_addr): Return 0 and not NULL.
2835 * util/misc.c (ENABLE_RELOCATABLE): New definition.
2836 (xstrdup): Use newstr instead of dup.
2837 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
2838 of disk to dsk to avoid shadowing.
2839 (find_free_slot): Fix prototype.
2840 * util/getroot.c (grub_util_is_dmraid): Make static.
2841 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
2842 Add missing prototype.
2843 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
2845 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2847 * loader/i386/linux.c (grub_linux_setup_video): Handle error
2850 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2852 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
2855 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2857 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
2858 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
2859 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
2860 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
2861 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
2862 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
2864 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2866 * include/grub/err.h (grub_err_printf): Don't export.
2868 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2870 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
2872 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
2874 * include/grub/i18n.h (grub_gettext_dummy): Removed.
2875 * kern/misc.c (grub_gettext_dummy): Make static.
2877 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2879 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
2881 * kern/term.c (grub_putchar): Likewise.
2883 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2885 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
2886 buggy hook call and memory leak.
2888 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2890 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
2892 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2894 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
2896 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2898 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
2900 Return grub_errno on allocation error.
2902 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2904 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
2906 2010-02-06 Yves Blusseau <blusseau@zetam.org>
2908 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
2909 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
2911 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2913 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
2915 (grub_pxefs_open): Likewise.
2917 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
2919 * util/grub.d/10_hurd.in: Add --class information to menuentries.
2920 * util/grub.d/10_kfreebsd.in: Likewise.
2921 * util/grub.d/10_linux.in: Likewise.
2923 2010-02-06 Colin D Bennett <colin@gibibit.com>
2925 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
2926 (gfxmenu_mod_SOURCES): New variable.
2927 (gfxmenu_mod_CFLAGS): Likewise.
2928 (gfxmenu_mod_LDFLAGS): Likewise.
2929 * include/grub/term.h (grub_term_set_current_output): Declare
2931 * docs/gfxmenu-theme-example.txt: New file.
2932 * gfxmenu/gfxmenu.c: Likewise.
2933 * gfxmenu/gui_box.c: Likewise.
2934 * gfxmenu/gui_canvas.c: Likewise.
2935 * gfxmenu/gui_circular_progress.c: Likewise.
2936 * gfxmenu/gui_image.c: Likewise.
2937 * gfxmenu/gui_label.c: Likewise.
2938 * gfxmenu/gui_list.c: Likewise.
2939 * gfxmenu/gui_progress_bar.c: Likewise.
2940 * gfxmenu/gui_string_util.c: Likewise.
2941 * gfxmenu/gui_util.c: Likewise.
2942 * gfxmenu/icon_manager.c: Likewise.
2943 * gfxmenu/model.c: Likewise.
2944 * gfxmenu/named_colors.c: Likewise.
2945 * gfxmenu/theme_loader.c: Likewise.
2946 * gfxmenu/view.c: Likewise.
2947 * gfxmenu/widget-box.c: Likewise.
2948 * include/grub/gfxmenu_model.h: Likewise.
2949 * include/grub/gfxmenu_view.h: Likewise.
2950 * include/grub/gfxwidgets.h: Likewise.
2951 * include/grub/gui.h: Likewise.
2952 * include/grub/gui_string_util.h: Likewise.
2953 * include/grub/icon_manager.h: Likewise.
2955 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2957 Agglomerate scrolling in gfxterm.
2959 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
2960 (grub_virtual_screen_setup): Initialise 'total_screen'.
2961 (write_char): Split to ...
2962 (paint_char): ... this ...
2963 (write_char): ... and this.
2964 (paint_char): Handle delayed scrolling.
2965 (draw_cursor): Likewise.
2966 (scroll_up): Split to ...
2967 (real_scroll): ... this ...
2968 (scroll_up): ... and this.
2969 (real_scroll): Handle multi-line scroll and draw below-the-bottom
2971 (grub_gfxterm_refresh): Call real_scroll.
2973 2010-02-06 Colin D Bennett <colin@gibibit.com>
2975 * include/grub/misc.h (grub_iscntrl): New inline function.
2976 (grub_isalnum): Likewise.
2977 (grub_strtol): Likewise.
2979 2010-02-06 Colin D Bennett <colin@gibibit.com>
2981 * normal/menu_text.c (get_entry_number): Move from here ...
2982 * normal/menu.c (get_entry_number): ... moved here.
2983 * include/grub/menu.h (grub_menu_get_default_entry_index):
2985 * normal/menu.c (grub_menu_get_default_entry_index): New function.
2986 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
2987 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
2988 (grub_menu_viewer_should_return): Likewise.
2989 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
2990 * normal/menu_text.c (run_menu): Enable menu switching.
2991 * normal/menu_viewer.c (should_return): New variable.
2992 (menu_viewer_changed): Likewise.
2993 (grub_menu_viewer_show_menu): Handle menu viewer changes.
2994 (grub_menu_viewer_should_return): New function.
2995 (menuviewer_write_hook): Likewise.
2996 (grub_menu_viewer_init): Likewise.
2998 2010-02-06 Colin D Bennet <colin@gibibit.com>
2999 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3001 Support for gfxterm in a window.
3003 * include/grub/gfxterm.h: New file.
3004 * include/grub/video.h (struct grub_video_rect): New declaration.
3005 (grub_video_rect_t): Likewise.
3006 * term/gfxterm.c (struct grub_gfxterm_window): New type.
3007 (refcount): New variable.
3008 (render_target): Likewise.
3010 (repaint_callback): Likewise.
3011 (grub_virtual_screen_setup): Use 'render_target'.
3012 (init_window): New function.
3013 (grub_gfxterm_init_window): Likewise.
3014 (grub_gfxterm_init): Check reference counter.
3016 (destroy_window): New function.
3017 (grub_gfxterm_destroy_window): Likewise.
3018 (grub_gfxterm_fini): Check reference counter.
3020 (redraw_screen_rect): Restore viewport.
3021 Use 'render_target' and 'window'.
3022 Call 'repaint_callback'.
3023 (write_char): Use 'render_target'.
3024 (draw_cursor): Likewise.
3025 (scroll_up): Restore viewport.
3026 Use 'render_target' and 'window'.
3027 Call 'repaint_callback'.
3028 (grub_gfxterm_cls): Likewise.
3029 (grub_gfxterm_refresh): Use 'window'.
3030 (grub_gfxterm_set_repaint_callback): New function.
3031 (grub_gfxterm_background_image_cmd): Use 'window'.
3032 (grub_gfxterm_get_term): New function.
3033 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
3035 2010-02-06 Colin D Bennett <colin@gibibit.com>
3037 Bitmap scaling support.
3039 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
3040 (bitmap_scale_mod_SOURCES): New variable.
3041 (bitmap_scale_mod_CFLAGS): Likewise.
3042 (bitmap_scale_mod_LDFLAGS): Likewise.
3043 * include/grub/bitmap_scale.h: New file.
3044 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
3045 (background_image_cmd_options): New variable.
3046 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
3047 (cmd): Rename and change type to ...
3048 (background_image_cmd_handle): ... this. All users updated.
3049 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
3050 * video/bitmap_scale.c: New file.
3052 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3056 * Makefile.in (LIBSDL): New variable.
3057 (enable_grub_emu_sdl): Likewise.
3058 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
3059 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
3060 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
3061 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
3062 * util/sdl.c: New file.
3064 2010-02-06 Colin D Bennett <colin@gibibit.com>
3065 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3067 Double buffering support.
3069 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
3070 * include/grub/video.h: Update comment.
3071 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
3073 (grub_video_fb_doublebuf_blit_init): New prototype.
3074 * term/gfxterm.c (scroll_up): Support double buffering.
3075 (grub_gfxterm_refresh): Likewise.
3076 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
3077 (grub_video_fb_doublebuf_blit_init): Likewise.
3078 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
3079 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
3080 'displayed_page', 'render_page' and 'update_screen'.
3081 (grub_video_vbe_fini): Free offscreen buffer.
3082 (doublebuf_pageflipping_commit): New function.
3083 (doublebuf_pageflipping_update_screen): Likewise.
3084 (doublebuf_pageflipping_init): Likewise.
3085 (double_buffering_init): Likewise.
3086 (grub_video_vbe_setup): Enable doublebuffering.
3087 (grub_video_vbe_swap_buffers): Implement.
3088 (grub_video_vbe_set_active_render_target): Handle double buffering.
3089 (grub_video_vbe_get_active_render_target): Likewise.
3090 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
3091 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
3092 (grub_video_vbe_enable_double_buffering): Likewise.
3093 (grub_video_vbe_swap_buffers): Use update_screen.
3094 (grub_video_set_mode): Use double buffering.
3096 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3098 * maintainance/gentrigtables.py: Remove.
3099 * lib/trig.c: Likewise.
3101 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
3103 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
3105 (trigtables.c): New rule.
3106 (gentrigtables): Likewise.
3107 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
3109 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
3111 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
3114 2010-02-06 Colin D Bennet <colin@gibibit.com>
3116 Trigonometry support.
3118 * include/grub/trig.h: New file.
3119 * lib/trig.c: Likewise.
3120 * maintainance/gentrigtables.py: Likewise.
3121 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
3122 (trig_mod_SOURCES): New variable.
3123 (trig_mod_CFLAGS): Likewise.
3124 (trig_mod_LDFLAGS): Likewise.
3126 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3128 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
3131 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
3133 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
3136 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3138 * util/hostdisk.c (open_device): Don't use partition device when reading
3139 before the partition.
3140 (grub_util_biosdisk_read): Don't read from partition and before the
3141 partition in single operation.
3142 (grub_util_biosdisk_write): Don't write to partition and before the
3143 partition in single operation.
3145 2010-02-03 Torsten Landschoff <torsten@debian.org>
3147 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3150 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
3152 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
3154 (grub_biosdisk_write): Refuse to write to CDROM.
3156 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3158 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
3160 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
3162 * font/font.c (find_glyph): Check that bmp_idx is available before
3164 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
3165 with (font == NULL).
3167 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
3169 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
3171 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
3173 * include/grub/script_sh.h (sourcecode): Add const qualifier.
3174 * util/grub-script-check.c (getline): Fix empty lines case.
3176 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
3178 * Makefile.in (check): Exit with fail status when one of the tests
3180 * tests/example_functional_test.c (example_test): Fix reversed assert.
3181 * tests/example_unit_test.c (example_test): Likewise.
3183 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
3185 * util/grub.d/10_linux.in: This script does not use any of the
3186 contents of gettext.sh, only the external command `gettext', so stop
3187 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
3188 the same prefix as GRUB.)
3189 * util/grub.d/10_kfreebsd.in: Likewise.
3191 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3193 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
3196 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3198 * kern/disk.c (grub_disk_read): Fix offset computation when reading
3201 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
3203 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
3204 having a 4KiB and not 32KiB buffer size.
3206 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3208 * util/hostfs.c: Include `<errno.h>'.
3209 (grub_hostfs_read): Handle errors from fseeko() and fread().
3211 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3213 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
3214 loop when using read hooks on files whose size isn't sector-aligned.
3216 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3218 Remove unused parameter.
3220 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
3221 (grub_iso9660_open): Remove initialization of `data->length'.
3223 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
3225 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
3228 2010-01-27 Carles Pina i Estany <carles@pina.cat>
3230 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
3231 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
3233 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3235 * util/bin2h.c (usage): Fix warning (space after backslash).
3237 2010-01-26 Carles Pina i Estany <carles@pina.cat>
3239 * font/font.c: Include `grub/fontformat.h.
3240 Remove font file format constants.
3241 (grub_font_load): Use the new macros.
3242 * include/grub/fontformat.h: New file.
3243 * util/grub-mkfont.c: Include `grub/fontformat.c'.
3244 (write_font_pf2): Use the new macros.
3246 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3248 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
3251 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
3253 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
3255 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
3256 (_start): Macroify `0x7F'.
3258 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
3259 (make_install_device): Use "(pxe)" as fallback prefix when booting
3262 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
3264 * configure.ac: Reset LIBS after check for libgcc symbols.
3266 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
3268 * util/hostdisk.c (open_device): Add trailing newline to debug
3271 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
3273 * configure.ac: Check for `limits.h'.
3274 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
3276 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
3278 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
3279 capitalize error strings.
3281 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3283 * util/grub.d/10_hurd.in: Add a recovery mode.
3285 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
3287 * configure.ac: Check for libgcc symbols with -nostdlib.
3289 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
3291 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
3293 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3295 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
3296 stack since heap may be unavailable at that point.
3297 (grub_ofconsole_gotoxy): Likewise.
3299 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3301 * configure.ac: Check for _restgpr_14_x.
3302 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
3303 and _savegpr_* prototypes.
3305 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
3307 Use generic grub_reboot() for i386-efi.
3309 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
3310 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
3311 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
3313 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
3315 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
3316 presence of "prefix" variable as it breaks when normal.mod is
3319 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3321 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
3322 stack since heap is unavailable at that point.
3324 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3326 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
3327 (grub_freebsd_bootinfo): Rewritten.
3328 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
3330 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3332 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
3334 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
3336 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
3339 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
3341 * util/misc.c (make_system_path_relative_to_its_root): Change the work
3342 around for handling "/" to the correct fix. Fix a memory leak. Use
3343 xstrdup instead of strdup.
3345 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3347 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
3349 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3351 Optimise glyph lookup by Basic Multilingual Plane lookup array.
3353 * font/font.c (struct grub_font): New member 'bmp_idx'.
3354 (font_init): Initialise 'bmp_idx'.
3355 (load_font_index): Fill 'bmp_idx'.
3356 (find_glyph): Make inline. Use bmp_idx for BMP characters.
3358 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3360 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
3363 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3365 Move context handling out of the kernel.
3367 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
3368 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
3369 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
3370 * conf/i386-efi.rmk: Likewise.
3371 * conf/i386-ieee1275.rmk: Likewise.
3372 * conf/i386-pc.rmk: Likewise.
3373 * conf/powerpc-ieee1275.rmk: Likewise.
3374 * conf/sparc64-ieee1275.rmk: Likewise.
3375 * conf/x86_64-efi.rmk: Likewise.
3376 * include/grub/env.h: Include grub/menu.h.
3377 (grub_env_var_type): Removed.
3378 (grub_env_var): Replaced field 'type' with 'global'.
3379 (grub_env_find): New prototype.
3380 (grub_env_context_open): Remove EXPORT_FUNC.
3381 (grub_env_context_close): Likewise.
3382 (grub_env_export): Likewise.
3383 (grub_env_set_data_slot): Removed.
3384 (grub_env_get_data_slot): Likewise.
3385 (grub_env_unset_data_slot): Likewise.
3386 (grub_env_unset_menu): New prototype.
3387 (grub_env_set_menu): Likewise.
3388 (grub_env_get_menu): Likewise.
3389 * include/grub/env_private.h: New file.
3390 * include/grub/normal.h (grub_context_init): New prototype.
3391 (grub_context_fini): Likewise.
3392 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
3393 * normal/context.c (grub_cmd_export): ... to here.
3394 * kern/env.c: Include env_private.h.
3395 (HASHSZ): Moved to include/grub/env_private.h.
3396 (grub_env_context): Likewise.
3397 (grub_env_sorted_var): Likewise.
3398 (current_context): Renamed from this ...
3399 (grub_current_context): ...to this. 'static' removed. All users updated.
3400 (grub_env_find): Removed 'static'.
3401 (grub_env_context_open): Moved to normal/context.c.
3402 (grub_env_context_close): Likewise.
3403 (grub_env_export): Likewise.
3404 (mangle_data_slot_name): Removed.
3405 (grub_env_set_data_slot): Likewise.
3406 (grub_env_get_data_slot): Likewise.
3407 (grub_env_unset_data_slot): Likewise.
3408 * kern/main.c (grub_set_root_dev): Don't export root.
3409 It will be done later.
3410 (grub_main): Don't export prefix.
3411 It will be done later.
3412 * normal/context.c: New file.
3413 * normal/main.c (free_menu): Use grub_env_unset_menu.
3414 (grub_normal_add_menu_entry): Use grub_env_get_menu.
3415 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
3416 (GRUB_MOD_INIT(normal)): Call grub_context_init.
3417 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
3419 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3423 * commands/setpci.c: New file.
3424 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
3425 (setpci_mod_SOURCES): New variable.
3426 (setpci_mod_CFLAGS): Likewise.
3427 (setpci_mod_LDFLAGS): Likewise.
3429 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3431 Byte-addressable PCI configuration space.
3433 * bus/pci.c (grub_pci_make_address): Use byte address instead of
3435 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
3436 GRUB_PCI_REG_CACHELINE.
3437 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
3438 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
3439 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
3440 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
3441 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
3442 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
3443 grub_pci_make_address.
3444 (lock_rom_area): Likewise.
3445 * commands/lspci.c (grub_lspci_iter): Use macroses
3446 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
3447 of grub_pci_make_address.
3448 * disk/ata.c (grub_ata_pciinit): Likewise.
3449 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
3450 (GRUB_PCI_REG_VENDOR): Likewise.
3451 (GRUB_PCI_REG_DEVICE): Likewise.
3452 (GRUB_PCI_REG_COMMAND): Likewise.
3453 (GRUB_PCI_REG_STATUS): Likewise.
3454 (GRUB_PCI_REG_REVISION): Likewise.
3455 (GRUB_PCI_REG_CLASS): Likewise.
3456 (GRUB_PCI_REG_CACHELINE): Likewise.
3457 (GRUB_PCI_REG_LAT_TIMER): Likewise.
3458 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
3459 (GRUB_PCI_REG_BIST): Likewise.
3460 (GRUB_PCI_REG_ADDRESSES): Likewise.
3461 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3462 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3463 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3464 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3465 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3466 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
3467 (GRUB_PCI_REG_CIS_POINTER): Likewise.
3468 (GRUB_PCI_REG_SUBVENDOR): Likewise.
3469 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
3470 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
3471 (GRUB_PCI_REG_CAP_POINTER): Likewise.
3472 (GRUB_PCI_REG_IRQ_LINE): Likewise.
3473 (GRUB_PCI_REG_IRQ_PIN): Likewise.
3474 (GRUB_PCI_REG_MIN_GNT): Likewise.
3475 (GRUB_PCI_REG_MAX_LAT): Likewise.
3476 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
3477 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
3478 * video/efi_uga.c (find_framebuf): Likewise.
3479 * video/sm712.c (grub_video_sm712_setup): Likewise.
3480 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
3483 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3485 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
3486 can be reliably determined to be supported.
3488 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3490 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
3491 that VESA is supported.
3492 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
3495 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3497 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
3499 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3501 * util/misc.c (make_system_path_relative_to_its_root): Work around
3502 special-casing of "/", as previous incarnation of this routine did.
3504 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3506 Fix any-emu compilation.
3508 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
3509 * grub_bin2h_SOURCES: New variable.
3511 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3513 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
3515 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
3517 * util/grub.d/00_header.in: Fix handling of locale_dir.
3519 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3521 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
3522 as possible unifont location (Gentoo).
3523 Reported by: Alexander Brüning
3525 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3527 Don't try to generate lists for kernel.img.
3529 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
3530 (pkglib_MODULES): Remove kernel.img.
3531 (kernel_img_EXPORTS): Removed.
3532 (kernel_img_RELOCATABLE): New variable.
3533 * conf/x86_64-efi.rmk: Likewise.
3534 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
3536 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3538 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
3539 grub_xasprintf or grub_snprintf.
3540 (grub_vsprintf): Likewise.
3541 (grub_snprintf): New proto.
3542 (grub_vsnprintf): Likewise.
3543 (grub_xasprintf): Likewise.
3544 (grub_xvasprintf): Likewise.
3545 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
3546 (grub_sprintf): Removed.
3547 (grub_vsnprintf): New function.
3548 (grub_snprintf): Likewise.
3549 (grub_xvasprintf): Likewise.
3550 (grub_xasprintf): Likewise.
3551 (grub_vsprintf): Renamed to ...
3552 (grub_vsnprintf_real): ...this. New argument max_len.
3554 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
3556 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
3557 fix grub-script-check warning.
3559 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3561 * include/grub/font.h (grub_font_load): Fix prototype.
3563 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3565 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
3567 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3569 * include/grub/x86_64/at_keyboard.h: New file.
3571 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3573 * loader/mips/linux.c: Include missing grub/i18n.h.
3575 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3577 * normal/menu.c (notify_execution_failure): Clarify error message.
3579 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3581 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
3582 return value (and revert all return statements). Update users.
3584 2010-01-20 Dan Merillat <debian@dan.merillat.org>
3586 * kern/device.c (grub_device_iterate): Allocate new part_ent
3587 structure based on sizeof (*p) rather than sizeof (p->next), to
3588 account for structure padding.
3590 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
3591 disk is NULL, which might happen for LVM physical volumes with no
3594 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3596 * loader/mips/linux.c (grub_cmd_initrd)
3597 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
3599 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
3601 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
3602 (grub_video_video_init, grub_video_bitmap_init)
3603 (grub_font_manager_init, grub_term_gfxterm_init)
3604 (grub_at_keyboard_init): New extern declarations.
3605 (grub_machine_init): Initialize gfxterm and at_keyboard.
3607 * kern/main.c (grub_main): Revert grub_printf delay kludge.
3609 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
3610 `gfxterm.mod' into core image.
3612 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3613 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3614 (kernel_img_FORMAT): Copy to ...
3616 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3617 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3618 (kernel_img_FORMAT): ... here, and ...
3620 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
3621 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
3622 (kernel_img_FORMAT): ... here.
3624 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
3625 and input (at_keyboard) terminals in kernel.
3626 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
3628 (pkglib_MODULES): Remove `pci.mod'.
3629 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
3630 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
3631 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
3632 (at_keyboard_mod_LDFLAGS): Remove variables.
3634 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
3636 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
3638 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
3640 * include/grub/mips/libgcc.h: Only export symbols for functions
3641 that libgcc provides.
3643 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
3647 * bus/bonito.c: New file.
3648 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
3649 GRUB_PCI_NUM_DEVICES.
3650 * term/i386/pc/serial.c: Move to ...
3651 * term/serial.c: ... here. All users updated.
3652 * util/i386/pc/grub-mkimage.c: Move to ...
3653 * util/grub-mkrawimage.c: ... here. All users updated.
3654 * term/i386/pc/at_keyboard.c: Move to ...
3655 * term/at_keyboard.c: ... here. All users updated.
3656 * conf/mips-qemu-mips.rmk: New file.
3657 * conf/mips-yeeloong.rmk: Likewise.
3658 * conf/mips.rmk: Likewise.
3659 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
3661 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
3663 (grub_ata_pciinit): Support CS5536.
3664 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
3665 * font/font_cmd.c (loadfont_command): Open file before passing it to
3667 (pseudo_file_read): New function.
3668 (pseudo_file_close): Likewise.
3669 (pseudo_fs): New structure.
3670 (load_font_module): New function.
3671 (GRUB_MOD_INIT(font_manager)): Load embedded font.
3672 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
3673 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
3674 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
3675 * include/grub/i386/at_keyboard.h: Split into ...
3676 * include/grub/at_keyboard.h: ... this ...
3677 * include/grub/i386/at_keyboard.h: ... and this.
3678 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
3680 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
3682 (grub_elf64_size): Likewise.
3683 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
3685 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
3686 * include/grub/i386/coreboot/serial.h: Rewritten.
3687 * include/grub/i386/ieee1275/serial.h: Include
3688 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
3689 * include/grub/i386/pc/serial.h: Moved from here ...
3690 * include/grub/serial.h: ... to here. All users updated.
3691 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
3692 (GRUB_PCI_NUM_BUS): Likewise.
3693 (GRUB_PCI_NUM_DEVICES): Likewise.
3694 (grub_pci_device_map_range): Add missing volatile keyword.
3695 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
3696 * include/grub/mips/at_keyboard.h: New file.
3697 * include/grub/mips/cache.h: Likewise.
3698 * include/grub/mips/io.h: Likewise.
3699 * include/grub/mips/kernel.h: Likewise.
3700 * include/grub/mips/libgcc.h: Likewise.
3701 * include/grub/mips/pci.h: Likewise.
3702 * include/grub/mips/qemu-mips/boot.h: Likewise.
3703 * include/grub/mips/qemu-mips/kernel.h: Likewise.
3704 * include/grub/mips/qemu-mips/loader.h: Likewise.
3705 * include/grub/mips/qemu-mips/memory.h: Likewise.
3706 * include/grub/mips/qemu-mips/serial.h: Likewise.
3707 * include/grub/mips/qemu-mips/time.h: Likewise.
3708 * include/grub/mips/relocator.h: Likewise.
3709 * include/grub/mips/time.h: Likewise.
3710 * include/grub/mips/types.h: Likewise.
3711 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
3712 * include/grub/mips/yeeloong/boot.h: Likewise.
3713 * include/grub/mips/yeeloong/kernel.h: Likewise.
3714 * include/grub/mips/yeeloong/loader.h: Likewise.
3715 * include/grub/mips/yeeloong/memory.h: Likewise.
3716 * include/grub/mips/yeeloong/pci.h: Likewise.
3717 * include/grub/mips/yeeloong/serial.h: Likewise.
3718 * include/grub/mips/yeeloong/time.h: Likewise.
3719 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
3720 * kern/elf.c (grub_elf32_size): New parameter. All users
3722 (grub_elf64_size): Likewise.
3723 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
3724 Load modules before saying "Welcome to GRUB!".
3725 Call grub_refresh after saying "Welcome to GRUB!".
3726 * kern/mips/cache.S: New file.
3727 * kern/mips/cache_flush.S: Likewise.
3728 * kern/mips/dl.c: Likewise.
3729 * kern/mips/init.c: Likewise.
3730 * kern/mips/qemu-mips/init.c: Likewise.
3731 * kern/mips/startup.S: Likewise.
3732 * kern/mips/yeeloong/init.c: Likewise.
3733 * kern/term.c (grub_putcode): Handle NULL terminal.
3734 (grub_getcharwidth): Likewise.
3735 (grub_getkey): Likewise.
3736 (grub_checkkey): Likewise.
3737 (grub_getkeystatus): Likewise.
3738 (grub_getxy): Likewise.
3739 (grub_getwh): Likewise.
3740 (grub_gotoxy): Likewise.
3741 (grub_cls): Likewise.
3742 (grub_setcolorstate): Likewise.
3743 (grub_setcolor): Likewise.
3744 (grub_getcolor): Likewise.
3745 (grub_refresh): Likewise.
3746 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
3747 (write_jump): Add hatch nop.
3748 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
3749 * lib/mips/setjmp.S: New file.
3750 * loader/mips/linux.c: Likewise.
3751 * term/i386/pc/at_keyboard.c: Move from here ...
3752 * term/at_keyboard.c: ... to here.
3753 * term/i386/pc/serial.c: Moved from here ...
3754 * term/serial.c: ... to here. All users updated.
3755 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
3756 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
3757 (serial_translate_key_sequence): Avoid deadlock.
3758 (grub_serial_getkey): Handle backspace.
3759 (grub_serial_putchar): Fix newline handling.
3760 * util/i386/pc/grub-mkimage.c: Move from here ...
3761 * util/grub-mkrawimage.c: ... to here. All users updated.
3762 (generate_image): New parameters 'font_path' and 'format'.
3763 Support embedding font.
3764 Use grub_host_to_target* instead of grub_cpu_to_le*.
3765 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
3766 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
3767 (options): New option "--font".
3769 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
3770 (main): Handle "--font".
3771 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
3772 (grub_virtual_screen_setup): Set bg_color_display.
3773 (redraw_screen_rect): Use bg_color_display instead of incorrect
3775 (grub_gfxterm_cls): Likewise.
3776 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
3777 Support embedding config file.
3778 (add_segments): Likewise.
3779 (options): New option "--config".
3780 (main): Handle "--config".
3781 * video/sm712.c: New file.
3783 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3785 Fix parallel builds.
3787 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
3788 font.c depend on ascii.h).
3790 2010-01-12 Carles Pina i Estany <carles@pina.cat>
3792 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
3794 2010-01-11 Carles Pina i Estany <carles@pina.cat>
3796 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
3797 By default: disabled.
3798 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
3801 2010-01-10 Carles Pina i Estany <carles@pina.cat>
3803 * font/font.c: Update copyright years.
3804 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
3806 2010-01-10 Carles Pina i Estany <carles@pina.cat>
3808 * font/font.c: Include `ascii.h'.
3809 (ASCII_BITMAP_SIZE): New macro.
3810 (ascii_font_glyph): Define.
3811 (ascii_glyph_lookup): New function.
3812 (grub_font_get_string_width): Change comment. If glyph not found, use
3814 (grub_font_get_glyph_with_fallback): If glyph not available returns
3816 * util/grub-mkfont.c (file_formats): New enum.
3817 (options): Add `ascii-bitmaps' new option.
3818 (usage): Add `asii-bitmaps' new option.
3819 (write_font_ascii_bitmap): New function.
3820 (write_font): Rename to ...
3821 (write_font_p2): ... this. Remove print_glyphs call.
3822 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
3823 used. Call print_glyphs.
3824 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
3826 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
3828 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
3829 (grub_bin2h_SOURCES): New variable.
3830 * util/bin2h.c: New file.
3832 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3834 * include/multiboot.h: Resynced with spec.
3835 * include/multiboot2.h: Likewise.
3836 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
3837 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
3839 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3841 * include/grub/term.h (grub_term_register_input,
3842 grub_term_register_output): Check return of terminal init()
3843 routines, and abort if errors are raised.
3845 * commands/terminal.c: Update copyright year.
3847 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3849 * commands/terminal.c (grub_cmd_terminal_input)
3850 (grub_cmd_terminal_output): Check return of terminal init()
3851 routines, and abort if errors are raised.
3853 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3855 * include/grub/i386/bsd.h: Fix include pathes.
3857 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3859 Add missing *BSD copyright headers.
3861 * include/grub/aout.h: Add BSD licence.
3862 * include/grub/i386/bsd.h: Parts under different licences moved to ...
3863 * include/grub/i386/freebsd_linker.h: ... here,
3864 * include/grub/i386/freebsd_reboot.h: ... here,
3865 * include/grub/i386/netbsd_bootinfo.h: ... here,
3866 * include/grub/i386/netbsd_reboot.h: ... here,
3867 * include/grub/i386/openbsd_bootarg.h: ... here,
3868 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
3869 licence to each file.
3871 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3873 * acinclude.m4: Remove `nop' assembly instruction; it's not
3874 implemented by all architectures.
3876 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3878 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
3879 ELILO. This is no longer necessary.
3881 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
3883 Added new tool, grub-scrit-check to verify grub.cfg syntax.
3885 * util/grub-script-check.c: grub-script-check tool.
3886 * conf/common.rmk: Make rules for grub-script-check.
3888 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3890 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
3891 spotting it back in 2008. Shame on me for forgetting he did.
3893 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
3895 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
3897 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
3898 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
3899 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
3900 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
3901 (GRUB_VIDEO_TYPE_EFI): Rename to ...
3902 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
3904 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
3906 * include/grub/test.h: Add license header.
3907 * tests/example_functional_test.c: Likewise.
3908 * tests/example_unit_test.c: Likewise.
3909 * tests/lib/functional_test.c: Likewise.
3910 * tests/lib/test.c: Likewise.
3911 * tests/lib/unit_test.c: Likewise.
3913 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
3915 Use flag-based instead of hook-based video mode selection and "auto"
3918 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
3919 (grub_video_set_mode): Changed prototype. All users updated.
3920 (grub_video_check_mode_flag): New inline function.
3921 * video/video.c (parse_modespec): New function.
3922 (grub_video_set_mode): Parse flags and keywords.
3924 2010-01-17 Carles Pina i Estany <carles@pina.cat>
3926 * util/misc.c (grub_util_info): Fix the order of the parameters in a
3929 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
3931 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
3933 2010-01-16 Carles Pina i Estany <carles@pina.cat>
3935 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
3937 * util/grub-emu.c (usage): Likewise.
3938 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
3939 * util/i386/efi/grub-mkimage.c (usage): Likewise.
3940 * util/i386/pc/grub-mkimage.c (usage): Likewise.
3941 * util/i386/pc/grub-setup.c (usage): Likewise.
3943 2010-01-16 Carles Pina i Estany <carles@pina.cat>
3945 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
3947 (grub_util_info): Likewise.
3948 (grub_util_error): Likewise.
3949 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
3950 and/or new lines in `grub_util_warna', `grub_util_info',
3951 `grub_util_error' calls.
3952 * util/getroot.c: Likewise.
3953 * util/grub-editenv.c: Likewise.
3954 * util/grub-emu.c: Likewise.
3955 * util/grub-fstest.c: Likewise.
3956 * util/grub-mkdevicemap.c: Likewise.
3957 * util/grub-mkfont.c: Likewise.
3958 * util/grub-mkpasswd-pbkdf2.c: Likewise.
3959 * util/grub-mkrelpath.c: Likewise.
3960 * util/grub-pe2elf.c: Likewise.
3961 * util/grub-probe.c: Likewise.
3962 * util/hostdisk.c: Likewise.
3963 * util/i386/efi/grub-mkimage.c: Likewise.
3964 * util/i386/pc/grub-mkimage.c: Likewise.
3965 * util/i386/pc/grub-setup.c: Likewise.
3966 * util/ieee1275/ofpath.c: Likewise.
3967 * util/mkisofs/eltorito.c: Likewise.
3968 * util/mkisofs/rock.c: Likewise.
3969 * util/mkisofs/write.c: Likewise.
3970 * util/raid.c: Likewise.
3971 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
3972 * util/sparc64/ieee1275/grub-setup.c: Likewise.
3974 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
3976 Enable multiboot on non-pc.
3978 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
3979 multiboot.mod and multiboot2.mod to ...
3980 * conf/i386.rmk (pkglib_MODULES): ... here.
3981 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
3983 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
3984 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
3986 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
3987 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
3989 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
3990 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
3992 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
3993 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
3995 (ata_mod_SOURCES): Removed.
3996 (ata_mod_CFLAGS): Likewise.
3997 (ata_mod_LDFLAGS): Likewise.
3998 (relocator_mod_SOURCES): Removed.
3999 (relocator_mod_CFLAGS): Likewise.
4000 (relocator_mod_ASFLAGS): Likewise.
4001 (relocator_mod_LDFLAGS): Likewise.
4003 * include/grub/x86_64/multiboot.h: New file.
4004 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
4007 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4009 Video multiboot support.
4011 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
4013 * include/multiboot.h: Resynced with multiboot specification.
4014 * include/multiboot2.h: Likewise.
4015 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
4016 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
4017 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
4018 (HAS_VGA_TEXT): Likewise.
4019 (accepts_video): New variable.
4020 (grub_multiboot_set_accepts_video): New function.
4021 (grub_multiboot_get_mbi_size): Account for video structures.
4022 (set_video_mode): New function.
4023 (retrieve_video_parameters): Likewise.
4024 (grub_multiboot_make_mbi): Fill video fields.
4026 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
4030 * include/grub/video.h (grub_video_driver_id): New type.
4031 (grub_video_adapter): New member 'id'. All users updated.
4032 (grub_video_get_driver_id): New proto.
4033 * video/video.c (grub_video_get_driver_id): New function.
4035 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4037 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
4040 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4042 * normal/cmdline.c (print_completion): Gettextizze.
4044 2001-01-14 Carles Pina i Estany <carles@pina.cat>
4046 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
4048 2010-01-14 Carles Pina i Estany <carles@pina.cat>
4050 * gettext/gettext.c (grub_gettext_translate): Push and pop
4052 (grub_gettext_delete_list): Change comment style.
4053 * kern/err.c (grub_error): Gettextizze.
4054 (grub_fatal): Gettextizze.
4056 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
4058 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
4059 (grub_linux16_real_boot): ... this.
4060 * kern/i386/loader.S: Likewise.
4061 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
4062 (grub_linux16_boot): New function. Switches to text mode and calls
4063 grub_linux16_real_boot().
4065 * loader/i386/bsd.c: Include `<grub/video.h>'.
4066 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
4067 text mode before calling grub_unix_real_boot().
4069 * loader/i386/multiboot.c: Include `<grub/video.h>'.
4070 (grub_multiboot_boot): Switch to text mode before calling
4071 grub_relocator32_boot().
4073 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
4074 (grub_chainloader_boot): Switch to text mode before calling
4075 grub_chainloader_real_boot().
4077 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4078 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4080 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
4083 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4084 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4086 * util/grub.d/00_header.in: Define a "savedefault" function for use
4088 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
4090 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
4091 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4093 * util/grub-mkconfig_lib.in (save_default_entry): Only set
4094 saved_entry if boot_once is unset.
4095 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
4096 previous saved entry (i.e. grub-reboot).
4098 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4100 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
4102 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4104 * util/grub.d/00_header.in: Use `set var=val' rather than plain
4106 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
4108 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4110 * util/grub-reboot.in: Fix --version output.
4111 * util/grub-set-default.in: Likewise.
4113 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4115 * util/grub.d/00_header.in: Silently ignore zero-sized environment
4118 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4120 * util/grub.d/00_header.in: Quote the value assigned to `default',
4121 in case it contains spaces.
4123 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
4125 * util/grub.d/30_os-prober.in: Fix merge error that moved a
4126 `save_default_entry' call from the macosx case to the linux case.
4128 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4129 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
4131 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
4132 in `chosen' environment variable.
4133 * normal/menu_text.c (get_entry_number): Check if the variable
4134 matches the title of a menu entry.
4135 (run_menu): Pass menu to get_entry_number.
4137 * util/grub-reboot.in: New file.
4138 * util/grub-set-default.in: New file.
4139 * conf/common.rmk (grub-reboot): New utility.
4140 (grub-set-default): New utility.
4142 * util/grub-mkconfig_lib.in (save_default_entry): New function.
4143 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
4144 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
4145 move it to `saved_entry' for the next boot. Load environment on
4147 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
4148 * util/grub.d/10_hurd.in: Likewise.
4149 * util/grub.d/10_linux.in (linux_entry): Likewise.
4150 * util/grub.d/10_windows.in: Likewise.
4151 * util/grub.d/30_os-prober.in: Likewise.
4153 * util/grub-install.in: Create environment block.
4154 * util/i386/efi/grub-install.in: Likewise.
4155 * util/ieee1275/grub-install.in: Likewise.
4156 * util/sparc64/ieee1275/grub-install.in: Likewise.
4158 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
4160 Unit testing framework for GRUB.
4162 * Makefile.in: Test framework build rules for 'make check'.
4163 * conf/tests.rmk: Build rules for individual tests and framework.
4165 * include/grub/test.h: Header file for whitebox tests.
4166 * tests/lib/functional_test.c: Framework support for whitebox
4168 * tests/lib/test.c: Common whitebox testing code for unit and
4170 * tests/lib/unit_test.c: Framework support for whitebox unit
4173 * tests/util/grub-shell-tester.in: Support utility for grub-script
4175 * tests/util/grub-shell.in: Utility to execute grub-script
4176 commands in a Qemu instance.
4178 * tests/example_functional_test.c: Example whitebox functional
4180 * tests/example_grub_script_test.in: Example grub-script test.
4181 * tests/example_scripted_test.in: Example scripted test.
4182 * tests/example_unit_test.c: Example whitebox unit test.
4184 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
4186 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
4187 Add loader/i386/multiboot_mbi.c.
4188 (multiboot2_mod_SOURCES): Likewise.
4189 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
4190 (multiboot2_mod_SOURCES): Likewise.
4191 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
4192 (grub_multiboot_make_mbi): Likewise.
4193 (grub_multiboot_free_mbi): Likewise.
4194 (grub_multiboot_init_mbi): Likewise.
4195 (grub_multiboot_add_module): Likewise.
4196 (grub_multiboot_set_bootdev): Likewise.
4197 * loader/i386/multiboot.c (mbi): Removed.
4198 (mbi_dest): Likewise.
4199 (alloc_mbi): New variable.
4200 (grub_multiboot_payload_size): Removed. All users updated.
4201 (grub_multiboot_pure_size): New variable.
4202 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
4203 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
4204 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
4205 (grub_fill_multiboot_mmap): Likewise.
4206 (grub_multiboot_get_bootdev): Likewise.
4207 (grub_multiboot): Use multiboot_mbi functions.
4208 * loader/i386/multiboot_mbi.c: New file.
4210 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4212 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
4213 it would result in module crash.
4215 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4217 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
4218 (grub_ofconsole_getwh): Split to ...
4219 (grub_ofconsole_getwh): ... this.
4220 (grub_ofconsole_dimensions): ...and this.
4221 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
4223 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
4225 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
4227 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4229 * loader/i386/pc/multiboot2.c: Removed stalled file.
4231 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4233 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
4234 Reported by: Grégoire Sutre
4236 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
4238 * util/misc.c (canonicalize_file_name): New function.
4239 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
4240 instead of realpath().
4242 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
4244 * util/grub-install.in (usage): Clarify meaning of --root-directory,
4245 and make it clearer that it's optional. Based on confusion
4248 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4250 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
4251 in premature implicit newline.
4253 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4255 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
4256 which resulted in garbled command line at the end of screen.
4258 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4260 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
4261 initialization with similar approach as with other Linux loaders.
4263 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4265 Fix i386-ieee1275 build.
4267 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
4268 and grub_term_height() for video_{width,height} initialization.
4270 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
4274 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
4276 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4277 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4279 Support for multiple terminals.
4281 * Makefile.in (pkglib_DATA): terminal.lst.
4282 (terminal.lst): New target.
4283 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
4284 (GRUB_MOD_INIT(handler)): Likewise.
4285 (GRUB_MOD_FINI(handler)): Likewise.
4286 * commands/help.c (grub_cmd_help): Handle multiple terminals.
4287 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
4288 * commands/sleep.c (do_print): Use grub_term_restore_pos.
4289 (grub_cmd_sleep): Use grub_term_save_pos.
4290 * commands/terminal.c: New file.
4291 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
4292 commands/terminal.c and lib/charset.c.
4293 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
4294 (pkglib_MODULES): Add terminal.mod.
4295 (terminal_mod_SOURCES): New variable.
4296 (terminal_mod_CFLAGS): Likewise.
4297 (terminal_mod_LDFLAGS): Likewise.
4298 * genhandlerlist.sh: Don't handle terminals.
4299 * genmk.rb: Generate terminal-*.lst.
4300 * genterminallist.sh: New file.
4301 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
4302 (grub_is_valid_utf8): Likewise.
4303 (grub_utf8_to_ucs4_alloc): Likewise.
4304 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
4305 (grub_menu_register_viewer): Changed argument.
4306 (grub_menu_try_text): New proto.
4307 (grub_gfxmenu_try_hook): New declaration.
4308 * include/grub/normal.h (grub_normal_exit_level): New declaration.
4309 (grub_menu_init_page): Additional argument term.
4310 (grub_normal_init_page): Likewise.
4311 (grub_cmdline_get): Arguments simplified.
4312 (grub_utf8_to_ucs4_alloc): Removed.
4313 (grub_print_ucs4): Additional argument term.
4314 (grub_getstringwidth): Likewise.
4315 (grub_print_message_indented): Likewise.
4316 (grub_menu_text_register_instances): New proto.
4317 (grub_show_menu): Likewise.
4318 (read_terminal_list): Likewise.
4319 (grub_set_more): Likewise.
4320 * include/grub/parser.h: Include handler.h.
4321 * include/grub/reader.h: Rewritten.
4322 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
4323 (GRUB_TERM_WIDTH): Changed to function.
4324 (GRUB_TERM_HEIGHT): Likewise.
4325 (GRUB_TERM_BORDER_WIDTH): Likewise.
4326 (GRUB_TERM_BORDER_HEIGHT): Likewise.
4327 (GRUB_TERM_NUM_ENTRIES): Likewise.
4328 (GRUB_TERM_ENTRY_WIDTH): Likewise.
4329 (GRUB_TERM_CURSOR_X): Likewise.
4330 (grub_term_input_class): Likewise.
4331 (grub_term_output_class): Likewise.
4332 (grub_term_outputs_disabled): New declaration.
4333 (grub_term_inputs_disabled): Likewise.
4334 (grub_term_outputs): Likewise.
4335 (grub_term_inputs): Likewise.
4336 (grub_term_register_input): Rewritten.
4337 (grub_term_register_output): Likewise.
4338 (grub_term_unregister_input): Likewise.
4339 (grub_term_unregister_output): Likewise.
4340 (FOR_ACTIVE_TERM_INPUTS): New macro.
4341 (FOR_DISABLED_TERM_INPUTS): Likewise.
4342 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
4343 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
4344 * include/grub/terminfo.h: Add oterm argument to all protypes.
4345 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
4346 Use grub_rescue_run.
4347 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
4349 * kern/reader.c: Removed. All users updated.
4350 * kern/rescue_reader.c (grub_rescue_init): Removed.
4351 (grub_rescue_reader): Likewise.
4352 (grub_register_rescue_reader): Likewise.
4353 (grub_rescue_run): New function based on kern/reader.c.
4354 * kern/term.c: Adapted for multiterm.
4355 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
4356 (grub_is_valid_utf8): Likewise.
4357 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
4358 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
4360 * loader/i386/linux.c (grub_linux_boot): Likewise.
4361 * normal/auth.c (grub_username_get): New function.
4362 (grub_auth_check_authentication): Use grub_username_get.
4363 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
4364 * normal/color.c: Adapt for multiterm.
4365 * normal/main.c (read_config_file): Don't use grub_reader_loop.
4366 (grub_normal_init_page): Additional argument term.
4367 (read_lists): Call read_terminal_lists.
4368 (grub_enter_normal_mode): Call grub_cmdline_run.
4369 Handle grub_normal_exit_level.
4370 (grub_cmd_normal): Make reentrant.
4371 (grub_cmd_normal_exit): New function.
4372 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
4373 * normal/menu.c: Adapt for multiterm.
4374 * normal/menu_entry.c: Likewise.
4375 * normal/menu_text.c: Likewise.
4376 * normal/menu_viewer.c: Removed. All users updated.
4377 * normal/term.c: New file.
4378 * util/console.c: Change order of includes to workaround a bug in
4380 * term/terminfo.c: New argument oterm on all exported functions.
4382 * util/grub-editenv.c (grub_term_input_class): Removed.
4383 (grub_term_output_class): Likewise.
4385 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
4387 Make loader output a bit more user-friendly.
4389 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
4390 is being loaded. Likewise for the Hurd.
4392 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
4393 that kernel of FreeBSD ${version} is being loaded.
4395 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
4397 (grub_cmd_initrd): Likewise.
4398 * util/grub.d/10_linux.in (linux_entry): Print message indicating
4399 that Linux ${version} is being loaded. Likewise for initrd.
4401 2010-01-09 Carles Pina i Estany <carles@pina.cat>
4403 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
4405 2010-01-08 Carles Pina i Estany <carles@pina.cat>
4407 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
4408 (GRUB_MOD_INIT): Gettextizze.
4409 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
4410 (GRUB_MOD_INIT): Gettextizze.
4411 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
4412 (grub_cmd_linux): Capitalise Linux.
4413 (GRUB_MOD_INIT): Gettextizze.
4414 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
4415 (grub_cmd_linux): Capitalise Linux.
4416 (GRUB_MOD_INIT): Gettextizze.
4417 * loader/i386/linux.c: Include `<grub/i18n.h>'.
4418 (grub_cmd_linux): Capitalise Linux.
4419 (GRUB_MOD_INIT): Gettextizze.
4420 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
4421 (GRUB_MOD_INIT): Gettextizze.
4422 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
4423 (grub_cmd_linux): Capitalise Linux.
4424 (GRUB_MOD_INIT): Gettextizze.
4425 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
4426 (grub_cpu_xnu_init): Gettextizze.
4427 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
4428 (GRUB_MOD_INIT): Gettextizze.
4429 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
4430 (GRUB_MOD_INIT): Gettextizze.
4431 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
4432 (grub_linux_load64): Capitalise Linux.
4433 (GRUB_MOD_INIT): Gettextizze.
4434 * loader/xnu.c: Include `<grub/i18n.h>'.
4435 (GRUB_MOD_INIT): Gettextizze.
4436 * po/POTFILES: Add `loader/efi/appleloader.c',
4437 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
4438 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
4439 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
4440 `loader/i386/xnu.c', `loader/multiboot_loader.c',
4441 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
4444 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4446 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
4448 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
4450 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
4451 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
4452 * util/mkisofs/mkisofs.c (main): Readjust --version output.
4454 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4456 Reset Multiboot 2 support. New loader implements the draft in
4457 /branches/multiboot2 and shares as much code as possible with the
4458 production Multiboot 1 implementation.
4460 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
4461 * loader/multiboot2.c: Likewise.
4462 * loader/i386/multiboot_helper.S: Likewise.
4463 * include/multiboot2.h: Replace with latest version from the draft
4464 in /branches/multiboot2.
4466 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
4467 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
4468 and `loader/multiboot2.c'.
4469 (pkglib_MODULES): Add `multiboot2.mod'.
4470 (multiboot2_mod_SOURCES): New variable.
4471 (multiboot2_mod_LDFLAGS): Likewise.
4472 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
4474 * conf/i386-pc.rmk: Likewise.
4476 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
4477 (multiboot_mod_SOURCES): Remove variable.
4478 (multiboot_mod_LDFLAGS): Likewise.
4479 (multiboot_mod_CFLAGS): Likewise.
4481 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
4482 `<multiboot2.h>' instead of `<multiboot.h>'.
4483 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
4484 (MULTIBOOT_HEADER_MAGIC): New macros.
4486 * loader/multiboot_loader.c (module_version_status): Remove variable.
4487 (find_multi_boot2_header): Remove function.
4488 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
4489 logic. Always check for the Multiboot version we're compiling for.
4490 (grub_cmd_module_loader): Likewise.
4491 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
4492 command instead of `multiboot'.
4494 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4496 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
4497 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
4500 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4501 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4503 Fix breakage introduced with previous commit.
4505 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
4507 * normal/handler.c (read_handler_list): Revert part of previous commit
4508 affecting this file.
4509 * normal/main.c (read_lists): Move read_handler_list() call back to ...
4510 (grub_normal_execute): ... here.
4512 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
4514 Merge prefix-redefinition-fix branch.
4516 * normal/autofs.c (read_fs_list): Make function capable of being
4517 run multiple times, gracefuly replacing the previous data
4519 * normal/dyncmd.c (read_command_list): Likewise.
4520 * normal/handler.c (read_handler_list): Likewise.
4521 * normal/main.c (read_lists): New function. Calls all the
4522 list reading functions.
4523 (grub_normal_execute): Use read_lists() instead of calling all
4524 list reading functions explicitly. Register read_lists() as a
4525 variable hook attached to ${prefix}.
4527 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4529 Merge crypto branch.
4531 * Makefile.in (pkglib_DATA): Add crypto.lst.
4532 (crypto.lst): New target.
4533 * commands/hashsum.c: New file.
4534 * commands/password.c (check_password): Use grub_crypto_memcmp.
4535 * commands/password_pbkdf2.c: New file.
4536 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
4537 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
4538 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
4539 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
4540 -I$(srcdir)/lib/libgcrypt_wrap.
4541 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
4542 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
4543 password_pbkdf2.mod.
4544 (crypto_mod_SOURCES): New variable.
4545 (crypto_mod_CFLAGS): Likewise.
4546 (crypto_mod_LDFLAGS): Likewise.
4547 (hashsum_mod_SOURCES): New variable.
4548 (hashsum_mod_CFLAGS): Likewise.
4549 (hashsum_mod_LDFLAGS): Likewise.
4550 (pbkdf2_mod_SOURCES): New variable.
4551 (pbkdf2_mod_CFLAGS): Likewise.
4552 (pbkdf2_mod_LDFLAGS): Likewise.
4553 (password_pbkdf2_mod_SOURCES): New variable.
4554 (password_pbkdf2_mod_CFLAGS): Likewise.
4555 (password_pbkdf2_mod_LDFLAGS): Likewise.
4556 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
4557 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
4558 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
4559 Include conf/gcry.rmk.
4560 * include/grub/auth.h: Rewritten.
4561 * include/grub/crypto.h: New file.
4562 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
4563 * include/grub/normal.h (read_crypto_list): New prototype.
4564 * lib/crypto.c: New file.
4565 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
4566 * lib/pbkdf2.c: Likewise.
4567 * normal/auth.c (grub_auth_strcmp): Removed.
4568 (grub_iswordseparator): Likewise.
4569 (grub_auth_strword): Likewise.
4570 (is_authenticated): Use grub_strword.
4571 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
4572 and grub_strword. Pass entered password to authentication callback.
4573 * normal/crypto.c: New file.
4574 * normal/main.c: Call read_crypto_list.
4575 * util/grub-mkpasswd-pbkdf2.c: New file.
4576 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
4578 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
4580 Fix descent and ascent calculation.
4582 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
4583 (options): New option "asce".
4585 (add_char): Ignore invalid glyphs for descent calculation.
4586 Calculate ascent from actual content.
4587 (print_glyphs): Use 'asce'.
4588 (write_font): Likewise. Allow ascent override.
4589 (main): Handle "asce" option.
4591 2010-01-06 Carles Pina i Estany <carles@pina.cat>
4593 * kern/err.c: Include `<grub/i18n.h>'.
4594 (grub_print_error): Add full stop. Gettextizze.
4595 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
4596 (grub_bsd_load_elf): Capitalise ELF.
4597 (grub_cmd_freebsd_loadenv): Add `s' in error string.
4598 (grub_cmd_freebsd_module): Likewise.
4599 (grub_cmd_freebsd_module_elf): Likewise.
4600 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
4602 2010-01-06 Carles Pina i Estany <carles@pina.cat>
4604 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
4605 * commands/search_file.c (HELP_MESSAGE): New macro.
4606 * commands/search_label.c (HELP_MESSAGE): Likewise.
4607 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
4608 * po/POTFILES: Add `commands/search_file.c',
4609 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
4610 `commands/search.c'.
4612 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4614 * config.rpath: Update from Gnulib.
4616 2010-01-05 Yves Blusseau <blusseau@zetam.org>
4618 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
4620 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
4622 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
4624 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4626 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
4627 arguments to fread so that we get a return value in bytes, rather
4628 than something that will normally be rounded down to 0.
4629 Adjust error handling to avoid producing garbage when size_t is not
4630 the same size as long long.
4632 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
4634 * util/mkisofs/write.c (padblock_write): Check return value of
4637 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
4639 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
4642 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
4644 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
4646 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
4647 instead of manual alignment.
4648 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
4649 verbose). Avoid attempts to read past end of the device
4650 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
4651 but GRUB_DISK_CACHE_SIZE may exceed that).
4653 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
4655 * commands/crc.c (grub_cmd_crc): Abort on read errors.
4656 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
4659 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4661 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
4663 (grub_efi_piwg_device_path): New structure
4664 (grub_efi_piwg_device_path_t): New type.
4665 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
4666 (devpath_1): Transform to a structure. All users updated.
4667 (devpath_2): Likewise.
4668 (devpath_3): Likewise.
4669 (devpath_4): Likewise.
4670 (devpath_5): Likewise.
4672 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
4674 * loader/efi/appleloader.c: Restored. Update all users.
4676 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4678 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
4680 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
4681 (struct boot_blocklist): Move from here ...
4682 * include/grub/i386/pc/boot.h [ASM_FILE]
4683 (struct grub_boot_blocklist): ... to here. Update all users.
4684 (setup): Only initialize `start' member of `first_block'
4685 structure. Add assert() calls to verify the other members.
4687 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
4688 (generate_image): Fix broken blocklist length initialization.
4689 Add assert() call to verify blocklist `segment' field.
4691 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4693 * loader/efi/appleloader.c: Remove. Update all users.
4695 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
4697 * boot/i386/pc/boot.S: Update copyright year.
4698 * boot/i386/pc/cdboot.S: Likewise.
4699 * boot/i386/pc/diskboot.S: Likewise.
4700 * boot/i386/pc/lnxboot.S: Likewise.
4701 * boot/i386/pc/pxeboot.S: Likewise.
4702 * bus/pci.c: Likewise.
4703 * commands/cmp.c: Likewise.
4704 * commands/help.c: Likewise.
4705 * commands/hexdump.c: Likewise.
4706 * commands/i386/pc/halt.c: Likewise.
4707 * commands/i386/pc/play.c: Likewise.
4708 * commands/i386/pc/vbeinfo.c: Likewise.
4709 * commands/ls.c: Likewise.
4710 * commands/test.c: Likewise.
4711 * disk/dmraid_nvidia.c: Likewise.
4712 * disk/i386/pc/biosdisk.c: Likewise.
4713 * disk/ieee1275/nand.c: Likewise.
4714 * disk/ieee1275/ofdisk.c: Likewise.
4715 * disk/lvm.c: Likewise.
4716 * disk/raid.c: Likewise.
4717 * disk/raid6_recover.c: Likewise.
4718 * disk/scsi.c: Likewise.
4719 * fs/affs.c: Likewise.
4720 * fs/cpio.c: Likewise.
4721 * fs/ext2.c: Likewise.
4722 * fs/hfs.c: Likewise.
4723 * fs/iso9660.c: Likewise.
4724 * fs/ntfs.c: Likewise.
4725 * fs/sfs.c: Likewise.
4726 * fs/udf.c: Likewise.
4727 * fs/ufs.c: Likewise.
4728 * fs/xfs.c: Likewise.
4729 * gencmdlist.sh: Likewise.
4730 * genmk.rb: Likewise.
4731 * include/grub/disk.h: Likewise.
4732 * include/grub/efi/api.h: Likewise.
4733 * include/grub/efi/efi.h: Likewise.
4734 * include/grub/efi/pe32.h: Likewise.
4735 * include/grub/elf.h: Likewise.
4736 * include/grub/fs.h: Likewise.
4737 * include/grub/i386/at_keyboard.h: Likewise.
4738 * include/grub/i386/pc/memory.h: Likewise.
4739 * include/grub/i386/pc/vbe.h: Likewise.
4740 * include/grub/i386/pci.h: Likewise.
4741 * include/grub/i386/tsc.h: Likewise.
4742 * include/grub/ieee1275/ieee1275.h: Likewise.
4743 * include/grub/ntfs.h: Likewise.
4744 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
4745 * include/grub/sparc64/libgcc.h: Likewise.
4746 * include/grub/symbol.h: Likewise.
4747 * include/grub/types.h: Likewise.
4748 * include/multiboot2.h: Likewise.
4749 * io/gzio.c: Likewise.
4750 * kern/device.c: Likewise.
4751 * kern/disk.c: Likewise.
4752 * kern/efi/efi.c: Likewise.
4753 * kern/efi/mm.c: Likewise.
4754 * kern/elf.c: Likewise.
4755 * kern/file.c: Likewise.
4756 * kern/i386/dl.c: Likewise.
4757 * kern/i386/pc/init.c: Likewise.
4758 * kern/i386/pc/startup.S: Likewise.
4759 * kern/ieee1275/ieee1275.c: Likewise.
4760 * kern/ieee1275/init.c: Likewise.
4761 * kern/main.c: Likewise.
4762 * kern/mm.c: Likewise.
4763 * kern/powerpc/dl.c: Likewise.
4764 * kern/sparc64/dl.c: Likewise.
4765 * kern/x86_64/dl.c: Likewise.
4766 * lib/hexdump.c: Likewise.
4767 * loader/efi/appleloader.c: Likewise.
4768 * loader/i386/ieee1275/linux.c: Likewise.
4769 * loader/i386/pc/chainloader.c: Likewise.
4770 * loader/i386/pc/linux.c: Likewise.
4771 * loader/i386/pc/multiboot2.c: Likewise.
4772 * loader/ieee1275/multiboot2.c: Likewise.
4773 * loader/multiboot2.c: Likewise.
4774 * loader/multiboot_loader.c: Likewise.
4775 * loader/powerpc/ieee1275/linux.c: Likewise.
4776 * normal/completion.c: Likewise.
4777 * normal/menu_entry.c: Likewise.
4778 * partmap/apple.c: Likewise.
4779 * util/grub.d/10_hurd.in: Likewise.
4780 * util/hostfs.c: Likewise.
4781 * video/readers/png.c: Likewise.
4783 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
4785 * include/grub/misc.h (GNUC_PREREQ): New macro.
4786 (ATTRIBUTE_ERROR): New macro.
4787 * include/grub/list.h (grub_bad_type_cast_real): Use
4790 2010-01-03 Carles Pina i Estany <carles@pina.cat>
4792 * normal/menu_text.c (print_message): Change messages.
4794 2010-01-03 Carles Pina i Estany <carles@pina.cat>
4796 * normal/menu_entry.c (store_completion): Gettextizze.
4798 2010-01-03 Carles Pina i Estany <carles@pina.cat>
4800 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
4802 2010-01-03 Carles Pina i Estany <carles@pina.cat>
4804 * po/POTFILES: Sort correctly.
4806 2010-01-03 Carles Pina i Estany <carles@pina.cat>
4808 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
4809 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
4810 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
4812 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
4813 summary. Gettextizze the strings.
4814 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
4815 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
4816 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
4818 (GRUB_MOD_INIT): Remove command name from summary.
4819 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
4821 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
4822 * term/i386/pc/serial.c (options): Add full stops.
4823 (GRUB_MOD_INIT): Remove command name from the summary.
4825 2010-01-03 Carles Pina i Estany <carles@pina.cat>
4827 * commands/acpi.c: Gettextizze help strings and/or options. Include
4828 `grub/i18n.h' if needed.
4829 * commands/blocklist.c: Likewise.
4830 * commands/boot.c: Likewise.
4831 * commands/cat.c: Likewise.
4832 * commands/cmp.c: Likewise.
4833 * commands/configfile.c: Likewise.
4834 * commands/crc.c: Likewise.
4835 * commands/date.c: Likewise.
4836 * commands/echo.c: Likewise.
4837 * commands/efi/fixvideo.c: Likewise.
4838 * commands/efi/loadbios.c: Likewise.
4839 * commands/gptsync.c: Likewise.
4840 * commands/halt.c: Likewise.
4841 * commands/handler.c: Likewise.
4842 * commands/hdparm.c: Likewise.
4843 * commands/hexdump.c: Likewise.
4844 * commands/i386/cpuid.c: Likewise.
4845 * commands/i386/pc/drivemap.c: Likewise.
4846 * commands/i386/pc/halt.c: Likewise.
4847 * commands/i386/pc/pxecmd.c: Likewise.
4848 * commands/i386/pc/vbeinfo.c: Likewise.
4849 * commands/i386/pc/vbetest.c: Likewise.
4850 * commands/ieee1275/suspend.c: Likewise.
4851 * commands/keystatus.c: Likewise.
4852 * commands/loadenv.c: Likewise.
4853 * commands/ls.c: Likewise.
4854 * commands/lsmmap.c: Likewise.
4855 * commands/lspci.c: Likewise.
4856 * commands/memrw.c: Likewise.
4857 * commands/minicmd.c: Likewise.
4858 * commands/parttool.c: Likewise.
4859 * commands/password.c: Likewise.
4860 * commands/probe.c: Likewise.
4861 * commands/read.c: Likewise.
4862 * commands/reboot.c: Likewise.
4863 * commands/search.c: Likewise.
4864 * commands/sleep.c: Likewise.
4865 * commands/test.c: Likewise.
4866 * commands/true.c: Likewise.
4867 * commands/usbtest.c: Likewise.
4868 * commands/videotest.c: Likewise.
4869 * commands/xnu_uuid.c: Likewise.
4870 * disk/loopback.c: Likewise.
4871 * hello/hello.c: Likewise.
4872 * loader/i386/bsd.c: Likewise.
4873 * term/i386/pc/serial.c: Likewise.
4874 * po/POTFILES: Add new files.
4876 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
4878 * term/i386/pc/at_keyboard.c
4879 (keyboard_controller_wait_untill_ready): Rename to ...
4880 (keyboard_controller_wait_until_ready): ... this. Update all users.
4882 2010-01-01 Carles Pina i Estany <carles@pina.cat>
4884 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
4885 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
4886 string using string width.
4887 * normal/menu_text.c (grub_print_message_indented): Use
4888 grub_print_spaces and not print_spaces.
4889 (print_timeout): Likewise.
4890 (print_spaces): Move to...
4891 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
4893 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
4897 * gnulib/getdelim.c: New file.
4898 * gnulib/getline.c: Likewise.
4900 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
4902 * include/grub/list.h (grub_assert_fail): Removed.
4903 (grub_bad_type_cast_real): New function.
4904 (grub_bad_type_cast): New macro.
4905 (GRUB_AS_LIST): Use grub_bad_type_cast.
4906 (GRUB_AS_LIST_P): Likewise.
4907 (GRUB_AS_NAMED_LIST): Likewise.
4908 (GRUB_AS_NAMED_LIST_P): Likewise.
4909 (GRUB_AS_PRIO_LIST): Likewise.
4910 (GRUB_AS_PRIO_LIST_P): Likewise.
4911 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
4913 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
4915 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
4918 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
4920 * configure.ac: Check for TARGET_CFLAGS initialization before we
4921 initialize it ourselves (sigh).
4922 Move a few modifications to TARGET_CFLAGS to be unconditional
4923 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
4926 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
4927 * term/i386/pc/at_keyboard.c
4928 (keyboard_controller_wait_untill_ready): Likewise.
4929 (keyboard_controller_led): Rename `led_status' paramter to avoid
4932 2009-12-28 Carles Pina i Estany <carles@pina.cat>
4934 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
4937 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4939 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
4941 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4943 * normal/menu_text.c (grub_print_message_indented): Prevent
4944 past-the-end-of-array dereference.
4946 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
4948 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
4949 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
4951 2009-12-27 Carles Pina i Estany <carles@pina.cat>
4953 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
4954 * normal/main.c (grub_normal_read_line): Remove a space from the
4957 2009-12-27 Carles Pina i Estany <carles@pina.cat>
4959 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
4960 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4961 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
4962 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
4963 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4964 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4965 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
4967 2009-12-26 Carles Pina i Estany <carles@pina.cat>
4969 * video/readers/jpeg.c (cmd): Declare.
4970 (grub_cmd_jpegtest): Use `grub_command_t' type.
4971 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
4973 (GRUB_MOD_FINI): Use `cmd' to unregister.
4974 * video/readers/png.c (cmd): Declare.
4975 (grub_cmd_pngtest): Use `grub_command_t' type.
4976 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
4978 (GRUB_MOD_FINI): Use `cmd' to unregister.
4979 * video/readers/tga.c (cmd): Declare.
4980 (grub_cmd_tgatest): Use `grub_command_t' type.
4981 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
4983 (GRUB_MOD_FINI): Use `cmd' to unregister.
4985 2009-12-26 Carles Pina i Estany <carles@pina.cat>
4987 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
4989 * kern/corecmd.c (grub_register_core_commands): Likewise.
4990 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
4991 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
4992 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
4993 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4994 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
4995 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
4996 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
4997 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
4998 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
4999 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
5000 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5001 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5002 * normal/handler.c (insert_handler): Likewise.
5003 * normal/main.c (GRUB_MOD_INIT): Likewise.
5004 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
5006 2009-12-26 Carles Pina i Estany <carles@pina.cat>
5008 * commands/help.c (grub_cmd_help): Print the command name before the
5010 (GRUB_MOD_INIT): Remove command name from the summary.
5011 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
5013 * lib/arg.c (find_long): Print the command name before the summary.
5014 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
5016 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
5017 * commands/cat.c (GRUB_MOD_INIT): Likewise.
5018 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
5019 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
5020 * commands/crc.c (GRUB_MOD_INIT): Likewise.
5021 * commands/date.c (GRUB_MOD_INIT): Likewise.
5022 * commands/echo.c (GRUB_MOD_INIT): Likewise.
5023 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
5024 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5025 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5026 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
5027 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
5028 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
5029 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
5030 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5031 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
5032 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
5033 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
5034 * commands/ls.c (GRUB_MOD_INIT): Likewise.
5035 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5036 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5037 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5038 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
5039 * commands/password.c (GRUB_MOD_INIT): Likewise.
5040 * commands/probe.c (GRUB_MOD_INIT): Likewise.
5041 * commands/read.c (GRUB_MOD_INIT): Likewise.
5042 * commands/search.c (GRUB_MOD_INIT): Likewise.
5043 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
5044 * commands/test.c (GRUB_MOD_INIT): Likewise.
5045 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
5046 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
5047 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
5048 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
5049 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
5050 * lib/arg.c (GRUB_MOD_INIT): Likewise.
5051 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
5052 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
5053 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
5054 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
5055 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
5056 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
5057 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
5058 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
5060 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5062 Use search command for preliminar UUID search.
5064 * commands/search.c: Split into ...
5065 * commands/search_wrap.c: ...this
5066 * commands/search.c: ...and this.
5067 * commands/search_file.c: New file.
5068 * commands/search_label.c: New file.
5069 * commands/search_uuid.c: New file.
5070 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
5071 Add commands/search_wrap.c, commands/search_file.c,
5072 commands/search_label.c and commands/search_uuid.c.
5073 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
5074 (search_mod_SOURCES): Set to commands/search_wrap.c.
5075 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
5077 (search_fs_file_mod_SOURCES): New variable.
5078 (search_fs_file_mod_CFLAGS): Likewise.
5079 (search_fs_file_mod_LDFLAGS): Likewise.
5080 (search_label_mod_SOURCES): Likewise.
5081 (search_label_mod_CFLAGS): Likewise.
5082 (search_label_mod_LDFLAGS): Likewise.
5083 (search_fs_uuid_mod_SOURCES): New variable.
5084 (search_fs_uuid_mod_CFLAGS): Likewise.
5085 (search_fs_uuid_mod_LDFLAGS): Likewise.
5086 (fs_file_mod_SOURCES): Removed.
5087 (fs_file_mod_CFLAGS): Likewise.
5088 (fs_file_mod_LDFLAGS): Likewise.
5089 (fs_uuid_mod_SOURCES): Removed.
5090 (fs_uuid_mod_CFLAGS): Likewise.
5091 (fs_uuid_mod_LDFLAGS): Likewise.
5092 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
5093 Set to util/grub-install.in.
5094 * disk/fs_file.c: Removed.
5095 * disk/fs_uuid.c: Likewise.
5096 * include/grub/search.h: New file.
5097 * util/grub-install.in: Handle sparc64.
5098 Create and use load.cfg.
5099 * util/sparc64/ieee1275/grub-install.in: Removed.
5101 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5103 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
5104 Ignore return status if CF is cleared.
5105 (grub_biosdisk_get_diskinfo_standard): Likewise.
5107 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5109 * term/i386/pc/at_keyboard.c
5110 (keyboard_controller_wait_untill_ready): New function.
5111 (grub_keyboard_controller_write, grub_keyboard_controller_read)
5112 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
5113 for keyboard polling, rather than duplicate the same loop. This
5114 saves a few bytes in code size.
5116 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
5118 Support for (pxe[:server[:gateway]]) syntax and
5119 use environment variable for PXE.
5121 * commands/i386/pc/pxecmd.c (options): Removed.
5122 (print_ip): Removed.
5123 (grub_cmd_pxe): Removed
5124 (grub_cmd_pxe_unload): New function.
5125 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
5126 (grub_pxe_your_ip): Made static.
5127 (grub_pxe_default_server_ip): Likewise.
5128 (grub_pxe_default_gateway_ip): Likewise.
5129 (grub_pxe_blksize): Likewise.
5130 (parse_ip): New function.
5131 (grub_pxe_open): Support server and gateway specification.
5132 (grub_pxe_close): Free disk->data.
5133 (grub_pxefs_open): Use disk->data.
5134 (grub_pxefs_read): Likewise.
5135 (grub_env_write_readonly): New function.
5136 (set_mac_env): Likewise.
5137 (set_env_limn_ro): Likewise.
5138 (parse_dhcp_vendor): Likewise.
5139 (grub_pxe_detect): Set the environment variables.
5140 (set_ip_env): New function.
5141 (write_ip_env): Likewise.
5142 (grub_env_write_pxe_default_server): Likewise.
5143 (grub_env_write_pxe_default_gateway): Likewise.
5144 (grub_env_write_pxe_blocksize): Likewise.
5145 (GRUB_MOD_INIT(pxe)): Set environment variables.
5146 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
5147 (grub_pxe_mac_addr_t): ... this. All users updated.
5148 (grub_pxe_your_ip): Removed.
5149 (grub_pxe_server_ip): Likewise.
5150 (grub_pxe_gateway_ip): Likewise.
5151 (grub_pxe_blksize): Likewise.
5153 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5155 * commands/help.c: Include `<grub/i18n.h>'.
5156 (grub_cmd_help): Gettextizze.
5157 (GRUB_MOD_INIT): Likewise.
5158 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
5159 (GRUB_MOD_INIT): Gettextizze.
5160 * commands/search.c: Include `<grub/i18n.h>'.
5161 (options): Gettextizze.
5162 (GRUB_MOD_INIT): Gettextizze.
5163 * lib/arg.c: Include `<grub/i18n.h>'.
5164 (help_options): Gettextizze.
5165 (find_long): Likewise.
5166 (grub_arg_show_help): Likewise.
5167 * normal/dyncmd.c: Include `<grub/i18n.h>'.
5168 (read_command_list): Gettextizze.
5169 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
5170 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
5172 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
5174 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
5175 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
5176 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
5177 (led_status): New variable.
5178 (keyboard_controller_led): New function.
5179 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
5180 update led status for caps lock, num lock and scroll lock.
5182 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
5184 * util/hostdisk.c (open_device): Fix a comment.
5186 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5188 * util/grub-install.in (host_os): New variable.
5189 * util/i386/efi/grub-install.in (host_os): Likewise.
5191 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5193 * util/mkisofs/write.c (padblock_write): Abort when given an
5194 excedingly large embed image, instead of silently truncating it.
5196 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5198 * include/multiboot.h: Indentation fixes.
5200 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5202 * include/multiboot.h (struct multiboot_aout_symbol_table)
5203 (struct multiboot_elf_section_header_table): New structure
5204 declarations (stolen from GRUB Legacy).
5205 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
5208 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
5209 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
5212 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5214 * include/multiboot.h: Make comments src2texi-friendly.
5216 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5218 For consistency with [multiboot]/docs/boot.S.
5220 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
5221 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
5222 (MULTIBOOT_MAGIC2): Rename from this ...
5223 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
5225 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
5227 * include/multiboot.h: Remove `<grub/types.h>'.
5228 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
5229 types. Update all users.
5231 2009-12-25 Carles Pina i Estany <carles@pina.cat>
5233 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
5234 `couldn't' and `can not' by `cannot'.
5235 * commands/i386/pc/drivemap.c: Likewise.
5236 * disk/ata.c: Likewise.
5237 * disk/ieee1275/nand.c: Likewise.
5238 * fs/affs.c: Likewise.
5239 * fs/fat.c: Likewise.
5240 * fs/hfs.c: Likewise.
5241 * fs/hfsplus.c: Likewise.
5242 * fs/iso9660.c: Likewise.
5243 * fs/jfs.c: Likewise.
5244 * fs/minix.c: Likewise.
5245 * fs/reiserfs.c: Likewise.
5246 * fs/sfs.c: Likewise.
5247 * fs/udf.c: Likewise.
5248 * fs/ufs.c: Likewise.
5249 * fs/xfs.c: Likewise.
5250 * loader/powerpc/ieee1275/linux.c: Likewise.
5251 * loader/sparc64/ieee1275/linux.c: Likewise.
5252 * util/grub-probe.c: Likewise.
5253 * util/misc.c: Likewise.
5255 2009-12-24 Carles Pina i Estany <carles@pina.cat>
5257 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
5259 * commands/acpi.c: Likewise.
5260 * commands/blocklist.c: Likewise.
5261 * commands/efi/loadbios.c: Likewise.
5262 * commands/i386/pc/drivemap.c: Likewise.
5263 * commands/loadenv.c: Likewise.
5264 * commands/memrw.c: Likewise.
5265 * commands/password.c: Likewise.
5266 * commands/videotest.c: Likewise.
5267 * disk/ata.c: Likewise.
5268 * disk/ata_pthru.c: Likewise.
5269 * disk/dmraid_nvidia.c: Likewise.
5270 * disk/ieee1275/nand.c: Likewise.
5271 * disk/ieee1275/ofdisk.c: Likewise.
5272 * disk/loopback.c: Likewise.
5273 * disk/lvm.c: Likewise.
5274 * disk/mdraid_linux.c: Likewise.
5275 * disk/raid.c: Likewise.
5276 * disk/raid6_recover.c: Likewise.
5277 * disk/scsi.c: Likewise.
5278 * efiemu/main.c: Likewise.
5279 * efiemu/mm.c: Likewise.
5280 * efiemu/pnvram.c: Likewise.
5281 * efiemu/symbols.c: Likewise.
5282 * font/font.c: Likewise.
5283 * fs/cpio.c: Likewise.
5284 * fs/hfsplus.c: Likewise.
5285 * fs/iso9660.c: Likewise.
5286 * fs/jfs.c: Likewise.
5287 * fs/minix.c: Likewise.
5288 * fs/ntfs.c: Likewise.
5289 * fs/ntfscomp.c: Likewise.
5290 * fs/reiserfs.c: Likewise.
5291 * fs/ufs.c: Likewise.
5292 * fs/xfs.c: Likewise.
5293 * gettext/gettext.c: Likewise.
5294 * include/grub/auth.h: Likewise.
5295 * kern/elf.c: Likewise.
5296 * kern/file.c: Likewise.
5297 * kern/ieee1275/init.c: Likewise.
5298 * kern/ieee1275/mmap.c: Likewise.
5299 * kern/ieee1275/openfw.c: Likewise.
5300 * kern/powerpc/dl.c: Likewise.
5301 * kern/sparc64/dl.c: Likewise.
5302 * lib/arg.c: Likewise.
5303 * loader/i386/bsd.c: Likewise.
5304 * loader/i386/bsdXX.c: Likewise.
5305 * loader/i386/efi/linux.c: Likewise.
5306 * loader/i386/efi/xnu.c: Likewise.
5307 * loader/i386/ieee1275/linux.c: Likewise.
5308 * loader/i386/linux.c: Likewise.
5309 * loader/i386/multiboot.c: Likewise.
5310 * loader/i386/pc/linux.c: Likewise.
5311 * loader/i386/pc/multiboot2.c: Likewise.
5312 * loader/i386/xnu.c: Likewise.
5313 * loader/ieee1275/multiboot2.c: Likewise.
5314 * loader/macho.c: Likewise.
5315 * loader/machoXX.c: Likewise.
5316 * loader/multiboot2.c: Likewise.
5317 * loader/multiboot_loader.c: Likewise.
5318 * loader/powerpc/ieee1275/linux.c: Likewise.
5319 * loader/sparc64/ieee1275/linux.c: Likewise.
5320 * loader/xnu.c: Likewise.
5321 * loader/xnu_resume.c: Likewise.
5322 * mmap/i386/pc/mmap.c: Likewise.
5323 * normal/menu_viewer.c: Likewise.
5324 * partmap/acorn.c: Likewise.
5325 * partmap/amiga.c: Likewise.
5326 * partmap/apple.c: Likewise.
5327 * script/lexer.c: Likewise.
5328 * term/gfxterm.c: Likewise.
5329 * term/i386/pc/serial.c: Likewise.
5330 * term/i386/pc/vga.c: Likewise.
5331 * term/ieee1275/ofconsole.c: Likewise.
5332 * term/terminfo.c: Likewise.
5333 * video/bitmap.c: Likewise.
5334 * video/efi_gop.c: Likewise.
5335 * video/efi_uga.c: Likewise.
5336 * video/fb/video_fb.c: Likewise.
5337 * video/i386/pc/vbe.c: Likewise.
5338 * video/readers/tga.c: Likewise.
5339 * video/video.c: Likewise.
5341 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
5343 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
5344 * commands/lspci.c: Likewise.
5345 * commands/probe.c: Likewise.
5346 * commands/xnu_uuid.c: Likewise.
5347 * conf/i386-coreboot.rmk: Likewise.
5348 * conf/i386-efi.rmk: Likewise.
5349 * conf/i386-ieee1275.rmk: Likewise.
5350 * conf/i386-pc.rmk: Likewise.
5351 * conf/powerpc-ieee1275.rmk: Likewise.
5352 * conf/sparc64-ieee1275.rmk: Likewise.
5353 * conf/x86_64-efi.rmk: Likewise.
5354 * fs/i386/pc/pxe.c: Likewise.
5355 * gettext/gettext.c: Likewise.
5356 * include/grub/efi/graphics_output.h: Likewise.
5357 * include/grub/i386/pc/memory.h: Likewise.
5358 * kern/env.c: Likewise.
5359 * kern/i386/qemu/startup.S: Likewise.
5360 * lib/i386/pc/biosnum.c: Likewise.
5361 * lib/i386/relocator.c: Likewise.
5362 * lib/i386/relocator_asm.S: Likewise.
5363 * lib/relocator.c: Likewise.
5364 * loader/i386/bsd.c: Likewise.
5365 * loader/i386/multiboot.c: Likewise.
5366 * loader/i386/pc/chainloader.c: Likewise.
5367 * loader/i386/xnu.c: Likewise.
5368 * loader/xnu.c: Likewise.
5369 * normal/main.c: Likewise.
5370 * normal/menu_text.c: Likewise.
5371 * util/getroot.c: Likewise.
5372 * util/grub-mkconfig_lib.in: Likewise.
5373 * util/grub.d/00_header.in: Likewise.
5374 * util/i386/pc/grub-mkimage.c: Likewise.
5375 * util/mkisofs/eltorito.c: Likewise.
5376 * util/mkisofs/exclude.h: Likewise.
5377 * util/mkisofs/hash.c: Likewise.
5378 * util/mkisofs/iso9660.h: Likewise.
5379 * util/mkisofs/joliet.c: Likewise.
5380 * util/mkisofs/mkisofs.c: Likewise.
5381 * util/mkisofs/mkisofs.h: Likewise.
5382 * util/mkisofs/multi.c: Likewise.
5383 * util/mkisofs/name.c: Likewise.
5384 * util/mkisofs/rock.c: Likewise.
5385 * util/mkisofs/tree.c: Likewise.
5386 * util/mkisofs/write.c: Likewise.
5387 * video/efi_gop.c: Likewise.
5389 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
5391 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
5394 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5396 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
5397 * genmk.rb (class SCRIPT): Modify the target file instead of source.
5399 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5401 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
5402 (GRUB_MOD_INIT(memrw)): Update help line.
5404 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5406 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
5407 Use grub_extcmd_t. All users updated.
5408 (options): New variable.
5409 (grub_cmd_read): Restructure for readability. Support "-v" option.
5410 (grub_cmd_write): Restructure for readability.
5412 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5414 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
5416 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5418 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
5419 with the actual contents of the correspondending make variable.
5420 * util/grub-mkrescue.in (pkglib_DATA): New variable.
5421 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
5422 specifying `*.lst' and `efiemu??.o'
5424 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5426 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
5427 after function name.
5428 Noticed by Rene Engelhard <rene@debian.org>.
5430 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5432 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
5433 (options): New variable.
5434 (iospace): Likewise.
5435 (grub_lspci_iter): List IO spaces if "-i" was given.
5436 (grub_cmd_lspci): Parse options.
5437 (GRUB_MOD_INIT(lspci)): Use extcmd.
5438 (GRUB_MOD_FINI(lspci)): Likewise.
5440 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
5442 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
5444 Patch by Tony Mancill <tmancill@debian.org>.
5446 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
5448 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
5449 (grub_uhci_portstatus): Likewise.
5450 (grub_uhci_portstatus): Add necessary delay.
5451 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
5453 2009-12-21 Carles Pina i Estany <carles@pina.cat>
5455 * commands/acpi.c (options): Fix capitalizations and/or full stops.
5456 (GRUB_MOD_INIT): Likewise.
5457 * commands/boot.c (GRUB_MOD_INIT): Likewise.
5458 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
5459 * commands/echo.c (options): Fix capitalizations and/or full stops.
5460 * commands/efi/loadbios.c (enable_rom_area): Likewise.
5461 (enable_rom_area): Likewise.
5462 (GRUB_MOD_INIT): Likewise.
5463 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
5464 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
5465 * commands/handler.c (GRUB_MOD_INIT): Likewise.
5466 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
5467 * commands/hexdump.c (options): Likewise.
5468 * commands/i386/cpuid.c (options): Likewise.
5469 (GRUB_MOD_INIT): Likewise.
5470 * commands/i386/pc/drivemap.c (options): Likewise.
5471 (GRUB_MOD_INIT): Likewise.
5472 * commands/i386/pc/halt (options): Likewise.
5473 (GRUB_MOD_INIT): Likewise.
5474 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
5475 * commands/i386/pc/pxecmd.c (options): Likewise.
5476 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
5477 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
5478 * commands/keystatus.c (options): Likewise.
5479 (GRUB_MOD_INIT): Likewise.
5480 * commands/loadenv.c (options): Likewise.
5481 * commands/ls.c (options): Likewise.
5482 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
5483 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
5484 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
5485 * commands/parttool.c (helpmsg): Likewise.
5486 * commands/probe.c (options): Likewise.
5487 * commands/read.c (GRUB_MOD_INIT): Likewise.
5488 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
5489 * commands/search.c (options): Likewise.
5490 * commands/sleep.c (options): Likewise.
5491 * commands/test.c (GRUB_MOD_INIT): Likewise.
5492 * commands/true.c (GRUB_MOD_INIT): Likewise.
5493 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
5494 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
5495 * lib/arg.c (help_options): Likewise.
5496 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
5498 * po/POTFILES: Add `commands/loadenv.c'.
5500 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
5502 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
5503 instead of specifying them explicit.
5505 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5507 * NEWS: Add grub-probe support for GNU/Hurd.
5509 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5511 * NEWS: gettext was added after 1.97.
5513 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5515 * util/mkisofs/msdos_partition.h: New file (based on
5516 include/grub/msdos_partition.h).
5517 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
5518 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
5519 (ld_options, main): Recognize --protective-msdos-label.
5520 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
5521 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
5522 (padblock_write): If `use_protective_msdos_label' is set, patch a
5523 protective DOS-style label in the output image.
5525 * util/grub-mkrescue.in: Use --protective-msdos-label.
5527 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5529 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
5532 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5534 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
5536 (ld_options, main): Recognize `--embedded-boot'.
5537 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
5539 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
5540 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
5541 (padblock_write): Likewise. Rewrite to support embedded boot image.
5543 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
5544 for BIOS-based disk boot instead of only ElTorito.
5546 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5548 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
5549 build (not needed for bootstrap).
5551 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5553 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
5554 from i386-pc build (not needed for bootstrap).
5555 Rewrite a pair of strings.
5557 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
5559 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
5561 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
5563 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
5565 2009-12-21 Andreas Born <futur.andy@googlemail.com>
5567 * kern/env.c (grub_env_context_open): Mark exported variable for
5570 2009-12-21 Andreas Born <futur.andy@googlemail.com>
5572 * kern/env.c (grub_env_export): Create nonexistent variables before
5575 2009-12-20 Carles Pina i Estany <carles@pina.cat>
5577 * include/grub/auth.h: Include `<grub/i18n.h>'.
5578 (GRUB_GET_PASSWORD): Gettextizze string.
5579 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
5581 (grub_utf8_to_ucs4_alloc): Fix indentation.
5582 (grub_print_ucs4): Likewise.
5583 (grub_getstringwidth): Likewise.
5584 (print_message_indented): New declaration.
5585 * normal/auth.c: Include `<grub/i18n.h>'.
5586 (grub_auth_check_authentication): Gettexttize string.
5587 * normal/cmdline.c: Include `<grub/i18n.h>'.
5588 (grub_cmdline_get): Gettextizze.
5589 * normal/color.c: Include `<grub/i18n.h>'.
5590 (grub_parse_color_name_pair): Gettexttize strings.
5591 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
5592 string (use `print_message_indented').
5593 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
5594 `include/grub/normal.h'.
5595 (print_message_indented): Renamed to ...
5596 (grub_print_message_indented): ... this. Remove `static' qualifer (now
5597 used in normal/main.c).
5598 (print_message): Use `grub_print_message_indented' instead of
5599 `print_message_indented'.
5600 (print_timeout): Likewise.
5601 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
5602 (grub_normal_print_device_info): Gettexttize strings.
5603 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
5605 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5607 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
5608 of arguments. Return number of tokens and not arguments. All users
5611 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
5613 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
5614 non-MSDOS paritions.
5616 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
5618 * include/grub/types.h (UNUSED): Removed since it conflicts with
5619 NetBSD headers. All users changed to direct __attribute__ ((unused)).
5620 Reported by Grégoire Sutre.
5622 2009-12-19 Carles Pina i Estany <carles@pina.cat>
5624 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
5625 (grub_print_ucs4_alloc): Likewise.
5626 (grub_getstringwidth): Likewise.
5627 * normal/main.c (grub_normal_init_page): Gettextize version string.
5628 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
5629 (getstringwidth): Renamed to ...
5630 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
5631 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
5632 (grub_print_ucs4): Remove `static' qualifer (now used in
5634 * po/POTFILES: Add normal/main.c.
5636 2009-12-19 Carles Pina i Estany <carles@pina.cat>
5638 * normal/menu_text.c (STANDARD_MARGIN): New macro.
5639 (print_message_indented): Add `margin_left' and `margin_right'
5641 (print_message): Update `print_message_indented' calls. Adds '\n' to the
5643 (print_timeout): Use `print_message_indented' to print the message.
5644 Deletes `second_stage' parameter.
5645 (run_menu): Update `print_timeout' calls.
5647 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5649 Fix console palette on OpenFirmware.
5651 * term/ieee1275/ofconsole.c (MAX): Removed.
5652 (colors): Redone based on VGA palette.
5653 (grub_ofconsole_setcolor): Discard brightness bit since only 8
5654 colors are supported.
5655 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
5657 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5659 Fix potential EfiEmu double prepare.
5661 * efiemu/main.c (prepared): New variable
5662 (grub_efiemu_unload): Set prepare to '0'.
5663 (grub_efiemu_prepare): Return if already prepared. Set prepared.
5665 set_virtual_address_map support.
5667 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
5669 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
5671 (grub_efiemu_crc32): Likewise.
5672 (grub_efiemu_crc64): Likewise.
5673 (grub_efiemu_set_virtual_address_map): Likewise.
5674 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
5676 (grub_autoefi_set_virtual_address_map): Likewise.
5677 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
5678 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
5679 Restructure flow to accomodate it.
5680 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
5681 (grub_efiemu_crc): Recompute CRC32.
5682 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
5683 (efiemu_ptv_relocated): ... this. Made global. All users updated.
5684 * efiemu/symbols.c (relocated_handle): New variable.
5685 (grub_efiemu_free_syms): Free relocated_handle.
5686 (grub_efiemu_alloc_syms): Allocate relocated_handle.
5687 (grub_efiemu_write_sym_markers): New function.
5688 (grub_efiemu_set_virtual_address_map): Likewise.
5690 Newer XNU parameters.
5692 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
5693 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
5694 (grub_xnu_fill_devicetree): New prototype.
5695 (grub_xnu_heap_real_start): New variable.
5696 * loader/xnu.c (get_name_ptr): New function.
5697 (grub_xnu_load_driver): Fill namelen and name.
5701 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
5702 and 'loader/macho64.c'.
5703 * conf/i386-pc.rmk: Likewise.
5704 * conf/x86_64-efi.rmk: Likewise.
5705 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
5706 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
5707 * include/grub/macho.h (grub_macho_segment64): New structure.
5708 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
5709 (grub_macho_size32): ... to this.
5710 (grub_macho32_get_entry_point): Renamed from ...
5711 (grub_macho_get_entry_point32): ... to this.
5712 (grub_macho_contains_macho64): New prototype.
5713 (grub_macho_size64): Likewise.
5714 (grub_macho_get_entry_point64): Likewise.
5715 (grub_macho32_load): Renamed from ...
5716 (grub_macho_load32): ... to this.
5717 (grub_macho32_filesize): Renamed from ...
5718 (grub_macho_filesize32): ... to this.
5719 (grub_macho32_readfile): Renamed from ...
5720 (grub_macho_readfile32): ... to this.
5721 (grub_macho_filesize64): New prototype.
5722 (grub_macho_readfile64): Likewise.
5723 (grub_macho_parse32): Likewise.
5724 (grub_macho_parse64): Likewise.
5725 * loader/macho.c: Split into ...
5726 * loader/machoXX.c: ... and this. Replace 32 with XX.
5727 * loader/macho32.c: New file.
5728 * loader/macho64.c: Likewise.
5729 * loader/xnu.c (grub_xnu_is_64bit): New variable.
5730 (grub_cmd_xnu_kernel): Make 32-bit only.
5731 (grub_cmd_xnu_kernel64): New function.
5732 (grub_xnu_load_driver): Support Mach-O 64.
5733 (grub_cmd_xnu_mkext): Likewise.
5734 * util/grub.d/30_os-prober.in (osx_entry): New function.
5735 Generate entries for 64-bit boot too.
5737 Eliminate ad-hoc tree format in XNU and EfiEmu.
5739 * efiemu/main.c (grub_efiemu_prepare): Update comment.
5740 * efiemu/pnvram.c: Rewritten to use environment variables.
5743 Inline utf16_to_utf8.
5745 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
5746 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
5748 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
5750 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
5751 * commands/usbtest.c (grub_usb_get_string): ... move here.
5752 (usb_print_str): Fix error handling.
5753 * include/grub/usb.h (grub_usb_get_string): Remove.
5755 UTF-8 to UTF-16 transformation.
5757 * conf/common.rmk (pkglib_MODULES): Add charset.mod
5758 (charset_mod_SOURCES): New variable.
5759 (charset_mod_CFLAGS): Likewise.
5760 (charset_mod_LDFLAGS): Likewise.
5761 * include/grub/utf.h: New file.
5762 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
5764 Support for device properties.
5766 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
5767 (grub_xnu_devprop_device_header): Likewise.
5768 (grub_xnu_devprop_device_descriptor): Likewise.
5769 (grub_xnu_devprop_add_device): New prototype.
5770 (grub_xnu_devprop_remove_device): Likewise.
5771 (grub_xnu_devprop_remove_property): Likewise.
5772 (grub_xnu_devprop_add_property_utf8): Likewise.
5773 (grub_xnu_devprop_add_property_utf16): Likewise.
5774 (grub_cpu_xnu_init): Likewise.
5775 (grub_cpu_xnu_fini): Likewise.
5776 (grub_cpu_xnu_unload): Likewise.
5777 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
5778 (property_descriptor): Likewise.
5779 (devices): New variable.
5780 (grub_xnu_devprop_remove_property): New function.
5781 (grub_xnu_devprop_add_device): Likewise.
5782 (grub_xnu_devprop_remove_device): Likewise.
5783 (grub_xnu_devprop_add_property): Likewise.
5784 (grub_xnu_devprop_add_property_utf8): Likewise.
5785 (grub_xnu_devprop_add_property_utf16): Likewise.
5786 (hextoval): Likewise.
5787 (grub_cpu_xnu_fill_devprop): Likewise.
5788 (grub_cmd_devprop_load): Likewise.
5789 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
5790 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
5791 (cmd_devprop_load): New variable.
5792 (grub_cpu_xnu_init): New function.
5793 (grub_cpu_xnu_fini): Likewise.
5794 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
5795 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
5796 (grub_cmd_xnu_devtree): Likewise.
5797 (hextoval): New function.
5798 (unescape): Likewise.
5799 (grub_xnu_fill_devicetree): Likewise.
5801 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
5802 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
5804 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
5806 Workaround for broken ATI VBE.
5808 * video/i386/pc/vbe.c (last_set_mode): New variable.
5809 (grub_vbe_set_video_mode): Set 'last_set_mode'.
5810 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
5811 (grub_video_vbe_setup): Don't check for reserved flag.
5813 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
5815 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
5818 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
5820 UUID support for HFS.
5822 * fs/hfs.c (grub_hfs_uuid): New function.
5823 (grub_hfs_fs): New value .uuid.
5824 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
5826 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
5828 Fix a segfault with parsing unknown long options.
5830 * util/grub-mkrelpath.c (options): Zero terminate it.
5832 2009-12-13 Carles Pina i Estany <carles@pina.cat>
5834 * include/grub/misc.h (grub_puts): New declaration.
5835 (grub_puts_): Likewise.
5836 * kern/misc.c (grub_puts): New definition.
5837 (grub_puts_): Likewise.
5839 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
5841 * util/grub-probe.c (probe): Improve error message.
5843 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
5845 * loader/i386/multiboot_elfxx.c
5846 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
5849 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
5853 * loader/i386/xnu_helper.S: Removed. All users updated.
5854 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
5855 (relocator_mod_SOURCES): New variable.
5856 (relocator_mod_CFLAGS): Likewise.
5857 (relocator_mod_LDFLAGS): Likewise.
5858 (relocator_mod_ASFLAGS): Likewise.
5859 * conf/x86_64.rmk: Likewise.
5860 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
5861 (grub_multiboot_payload_entry_offset): Likewise.
5862 (grub_multiboot_forward_relocator): Likewise.
5863 (grub_multiboot_forward_relocator_end): Likewise.
5864 (grub_multiboot_backward_relocator): Likewise.
5865 (grub_multiboot_backward_relocator_end): Likewise.
5866 (grub_multiboot_payload_eip): New variable.
5867 (grub_multiboot_payload_orig): Likewise.
5868 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
5869 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
5870 * include/grub/i386/memory.h
5871 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
5872 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
5873 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
5874 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
5875 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
5876 * include/grub/i386/relocator.h: New file.
5877 * include/grub/x86_64/relocator.h: Likewise.
5878 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
5879 (XNU_RELOCATOR): New macro.
5880 (grub_xnu_launcher_start): Remove.
5881 (grub_xnu_launcher_end): Likewise.
5882 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
5883 (grub_xnu_heap_real_start): Remove.
5884 (grub_xnu_heap_start): Change to void *. All users updated.
5885 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
5886 * lib/i386/relocator.c: New file.
5887 * lib/i386/relocator_asm.S: Likewise.
5888 * lib/i386/relocator_backward.S: Likewise.
5889 * lib/mips/relocator.c: Likewise.
5890 * lib/mips/relocator_asm.S: Likewise.
5891 * lib/relocator.c: Likewise.
5892 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
5894 (playground): Likewise.
5895 (grub_multiboot_payload_orig): New variable.
5896 (grub_multiboot_payload_dest): Likewise.
5897 (grub_multiboot_payload_size): Likewise.
5898 (grub_multiboot_payload_eip): Likewise.
5899 (grub_multiboot_payload_esp): Likewise.
5900 (grub_multiboot_boot): Use grub_relocator32_boot.
5901 (grub_multiboot_unload): Free relocators.
5902 (grub_multiboot): Setup stack. Use relocators.
5903 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
5904 (grub_multiboot_load_elfXX): Use relocators.
5905 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
5906 (grub_multiboot_payload_size): Likewise.
5907 (grub_multiboot_payload_dest): Likewise.
5908 (grub_multiboot_payload_entry_offset): Likewise.
5909 (grub_multiboot_forward_relocator): Likewise.
5910 (grub_multiboot_backward_relocator): Likewise.
5911 (grub_multiboot_real_boot): Likewise.
5912 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
5913 (grub_xnu_entry_point): Likewise.
5914 (grub_xnu_arg1): Likewise.
5915 (grub_xnu_stack): Likewise.
5916 (grub_xnu_launch): Removed.
5917 (grub_xnu_boot_resume): New function.
5918 (grub_xnu_boot): Use relocators.
5919 * loader/i386/xnu_helper.S: Removed.
5920 * loader/xnu.c (grub_xnu_heap_start): New variable.
5921 (grub_xnu_heap_size): Likewise.
5922 (grub_xnu_heap_malloc): Use relocators.
5923 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
5925 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
5927 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
5930 2009-12-13 Carles Pina i Estany <carles@pina.cat>
5932 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
5933 GRUB_ERR_NONE before calling grub_env_set.
5935 2009-12-12 Robert Millan <rmh@aybabtu.com>
5937 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
5938 * genmk.rb (video): New variable.
5939 (CLEANFILES, VIDEOFILES): Add #{video}.
5940 (#{video}): New target rule.
5941 * genvideolist.sh: New file.
5942 * Makefile.in (pkglib_DATA): Add video.lst.
5943 (video.lst): New target rule.
5944 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
5946 * util/grub.d/30_os-prober.in: Replace `vbe' with
5947 ${GRUB_VIDEO_BACKEND}.
5949 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
5951 * THANKS: Add David Miller.
5953 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
5955 libpciaccess support.
5957 * Makefile.in (LIBPCIACCESS): New variable.
5958 (enable_grub_emu_pci): Likewise.
5959 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
5960 util/pci.c and commands/lspci.c.
5961 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
5962 * configure.ac (grub-emu-pci): New option.
5963 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
5964 (grub_pci_device_unmap_range): Likewise.
5965 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
5966 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
5967 (grub_pci_address_t) [!GRUB_UTIL]: New type.
5968 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
5969 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
5970 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
5971 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
5972 * include/grub/pciutils.h: New file.
5973 * util/pci.c: Likewise.
5975 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
5977 * util/misc.c: Don't include <errno.h> twice.
5979 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
5981 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
5982 name in an error message.
5983 (grub_biosdisk_rw): Likewise.
5985 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5987 Eliminate NTFS 4Gib barrier.
5989 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
5990 (read_run_data): Likewise.
5991 (grub_ntfs_read_run_list): Likewise.
5992 (grub_ntfs_read_block): Likewise.
5993 (grub_ntfs_iterate_dir): Likewise.
5994 (read_mft): Likewise.
5995 (read_data): Likewise.
5997 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
5998 to avoid 64-bit division
5999 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
6000 (grub_ntfs_rlst): Use grub_disk_addr_t.
6002 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6004 Eliminate grub-fstest 4Gib barrier.
6006 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
6007 (read_file): Fix error reporting.
6009 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6011 Eliminate hexdump 4Gib barrier.
6013 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
6014 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
6016 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
6018 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
6021 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
6023 Remove miscellaneous files in distclean target.
6025 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
6027 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
6029 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
6030 if they're already set. This resolves the conflict between my
6031 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
6032 fixing the --grub-probe option again.
6033 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
6034 change on 2009-10-06, so that we now once again source
6035 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
6037 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
6039 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
6040 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
6043 2009-12-08 Carles Pina i Estany <carles@pina.cat>
6045 * include/grub/misc.h (grub_printf_): New declaration.
6046 * kern/misc.c (grub_printf_): New definition.
6047 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
6048 instead of `grub_printf' and `_'.
6049 * normal/menu_entry.c (store_completion): Likewise.
6051 (grub_menu_entry_run): Likewise.
6052 * normal/menu_text.c (grub_wait_after_message): Likewise.
6053 (notify_booting): Likewise.
6054 (notify_fallback): Likewise.
6055 (notify_execution_failure): Likewise.
6057 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
6059 * configure.ac: Check for vasprintf.
6060 * util/misc.c (asprintf): Move allocation from here ...
6061 (vasprintf): ... to here. New function.
6062 (xasprintf): New function.
6063 * include/grub/util/misc.h (vasprintf, xasprintf): Add
6065 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
6066 * util/grub-mkfont.c (write_font): Likewise.
6067 * util/grub-probe.c (probe): Likewise.
6068 * util/hostdisk.c (make_device_name): Likewise.
6070 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
6072 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
6073 anything even prefixed with 'cdrom' as a cdrom.
6075 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
6077 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
6080 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6082 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
6083 grub_gettext_msg_list.
6084 (grub_gettext_gettranslation_from_position): Return const char *
6086 (grub_gettext_translate): Add the translated strings into a list,
6087 returns from the list if existing there.
6088 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
6089 (grub_gettext_delete_list): Delete the list.
6090 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
6091 lang environment variable is changed.
6092 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
6094 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6096 Rename kernel.mod to kernel.img.
6098 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
6099 (kernel_mod_EXPORTS): Rename to ...
6100 (kernel_img_EXPORTS): ... this.
6101 (kernel_mod_SOURCES): Rename to ...
6102 (kernel_img_SOURCES): ... this.
6103 (kernel_mod_HEADERS): Rename to ...
6104 (kernel_img_HEADERS): ... this. All users updated.
6105 (kernel_mod_CFLAGS): Rename to ...
6106 (kernel_img_CFLAGS): ... this.
6107 (kernel_mod_ASFLAGS): Rename to ...
6108 (kernel_img_ASFLAGS): ... this.
6109 (kernel_mod_LDFLAGS): Rename to ...
6110 (kernel_img_LDFLAGS): ... this.
6111 * conf/x86_64-efi.rmk: Likewise.
6112 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
6113 (read_kernel_image): ... this. All users updated.
6114 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
6116 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6118 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
6119 (print_spaces): New function.
6120 (grub_print_ucs4): New function.
6121 (getstringwidth): New function.
6122 (print_message_indented): New function.
6123 (print_message): Gettexttize strings using print_message_indented.
6124 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
6126 (get_entry_number): Gettextize and uses dynamic terminal width.
6127 (notify_booting, notify_fallback, notify_execution_failure):
6129 * normal/menu_entry.c (store_completion): Cleanup the gettextized
6132 (grub_menu_entry_run): Likewise.
6133 * PO/POTFILES: Add normal/menu_entry.c.
6135 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
6137 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
6139 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6141 * util/grub-install.in: Install gettext .mo files.
6142 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
6144 2009-12-05 Carles Pina i Estany <carles@pina.cat>
6146 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
6149 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
6151 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
6152 non-firmware-dependant one in realmode.S takes precedence.
6154 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
6156 * commands/halt.c: Replace misc arch-specific headers with
6158 * commands/reboot.c: Likewise.
6159 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
6161 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
6162 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
6163 (kernel_img_SOURCES): ... to here.
6165 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
6166 * include/grub/i386/pc/init.h: Likewise.
6167 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
6168 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
6170 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
6172 * include/grub/i386/halt.h: Remove.
6173 * include/grub/i386/reboot.h: Likewise.
6175 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
6177 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
6179 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
6180 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
6181 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
6183 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6184 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6185 (usage): Add missing comma in printf.
6187 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
6189 Use the same reboot approach on i386 coreboot and qemu as we do on
6192 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
6193 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
6194 * kern/i386/reboot.c: Remove.
6195 * include/grub/i386/reboot.h (grub_reboot): Export function.
6196 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
6197 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
6198 0xf000:0xfff0 instead of 0xffff:0x0000.
6199 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
6200 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
6202 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
6204 Fix $srcdir != $objdir build.
6206 * Makefile.in (po/%.po): Rewrite as ...
6207 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
6209 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
6211 Fix GNU/Hurd grub-install crash.
6212 * util/grub-probe.c (probe): Try to access `path' only when it is not
6215 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6217 Correct module naming.
6219 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6220 (GRUB_MOD_INIT(efi_uga)): ... to this
6221 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6222 (GRUB_MOD_FINI(efi_uga)): ... to this
6223 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
6224 (GRUB_MOD_INIT(efi_gop)): ... to this
6225 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
6226 (GRUB_MOD_FINI(efi_gop)): ... to this
6228 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
6230 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
6232 (usage): Translate `arg' strings using gettext().
6233 Thanks to Jordi Mallach for the suggestion.
6235 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6237 GOP support. Based on patch from Bean
6238 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6240 * video/efi_gop.c: New file.
6241 * include/grub/efi/graphics_output.h: Likewise.
6242 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
6243 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6245 * conf/x86_64-efi.rmk: Likewise.
6247 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
6249 Rename efi_fb to efi_uga.
6251 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6253 (efi_fb_mod_SOURCES): Rename this ...
6254 (efi_uga_mod_SOURCES): ... to this.
6255 (efi_fb_mod_CFLAGS): Rename this ...
6256 (efi_uga_mod_CFLAGS): ... to this.
6257 (efi_fb_mod_LDFLAGS): Rename this ...
6258 (efi_uga_mod_LDFLAGS): ... to this.
6259 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
6261 (efi_fb_mod_SOURCES): Rename this ...
6262 (efi_uga_mod_SOURCES): ... to this.
6263 (efi_fb_mod_CFLAGS): Rename this ...
6264 (efi_uga_mod_CFLAGS): ... to this.
6265 (efi_fb_mod_LDFLAGS): Rename this ...
6266 (efi_uga_mod_LDFLAGS): ... to this.
6267 * video/efi_fb.c: Move this ...
6268 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
6270 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6272 * po/README: New file. Explain our PO file workflow.
6274 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6276 * po/ChangeLog: Remove. Move relevant entries back to ...
6277 * ChangeLog: ... here.
6278 * po/ca.po: Remove (now handled by TLP).
6279 * po/id.po: Likewise.
6280 * po/zh_CN.po: Likewise.
6281 * Makefile.in (LINGUAS): Initialize in a way that supports
6284 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
6286 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
6287 reliing on po/LINGUAS.
6288 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
6289 (po/%.po): ... this.
6291 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6293 * util/i386/efi/grub-mkimage.c: Include "progname.h".
6294 (main): Use `program_name' instead of nonexistent `progname'.
6296 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6298 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6299 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
6301 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6303 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
6305 * conf/i386-efi.rmk: Likewise.
6306 * conf/i386-ieee1275.rmk: Likewise.
6307 * conf/powerpc-ieee1275.rmk: Likewise.
6308 * conf/sparc64-ieee1275.rmk: Likewise.
6309 * conf/x86_64-efi.rmk: Likewise.
6311 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6313 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
6315 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
6317 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
6319 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
6321 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
6322 (grub_mkdevicemap_SOURCES): New variable.
6323 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
6324 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
6325 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
6326 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
6327 (grub_mkdevicemap_SOURCES): Remove.
6328 * conf/i386-efi.rmk: Likewise.
6329 * conf/i386-ieee1275.rmk: Likewise.
6330 * conf/i386-pc.rmk: Likewise.
6331 * conf/powerpc-ieee1275.rmk: Likewise.
6332 * conf/sparc64-ieee1275.rmk: Likewise.
6333 * conf/x86_64-efi.rmk: Likewise.
6334 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
6335 (usage): Fix strings to use `program_name'.
6336 (main): Initialize gettext.
6337 * util/grub-editenv.c: Likewise.
6338 * util/grub-emu.c: Likewise.
6339 * util/grub-fstest.c: Likewise.
6340 * util/grub-mkdevicemap.c: Likewise.
6341 * util/grub-mkfont.c: Likewise.
6342 * util/grub-mkrelpath.c: Likewise.
6343 * util/grub-pe2elf.c: Likewise.
6344 * util/grub-probe.c: Likewise.
6345 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
6346 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
6347 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6349 * util/misc.c: Include `"progname.h"'.
6350 (progname): Remove variable.
6351 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
6353 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6355 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
6356 printf and print a newline after the menuentry header line.
6357 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
6359 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
6361 autoconf >= 2.60 support $(localedir).
6363 * INSTALL: Note that autoconf 2.60 is required.
6364 * configure.ac (AC_PREREQ): Bump to 2.60.
6365 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
6366 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
6368 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
6370 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
6373 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6375 * normal/main.c (grub_normal_read_line): Fix off-by-one
6378 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
6380 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
6381 "parser.grub" in grub_command_execute() call.
6383 2009-11-24 Carles Pina i Estany <carles@pina.cat>
6385 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
6386 * conf/i386-efi.rmk: Likewise.
6387 * conf/i386-ieee1275.rmk: Likewise.
6388 * conf/i386-pc.rmk: Likewise.
6389 * conf/powerpc-ieee1275.rmk: Likewise.
6390 * conf/sparc64-ieee1275.rmk: Likewise.
6391 * conf/x86_64-efi.rmk: Likewise.
6392 * gettext/gettex.c: Include <grub/i18n.h>.
6393 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
6395 * include/grub/i18n.h: ... to here
6396 * include/grub/i18n.h: ... to here.
6397 * kern/misc.c: Include <grub/i18n.h>
6398 (grub_gettext_dummy): Move above user.
6400 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6402 * util/Makefile.in (install-local): Convert a `for' into a normal
6405 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
6407 * autogen.sh: Add automake call.
6408 * config.guess: Remove.
6409 * config.sub: Likewise.
6410 * install-sh: Likewise.
6412 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6414 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
6416 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6418 * util/Makefile.in (install-local): Convert a make `$(foreach)'
6419 function to a normal shell `for'.
6421 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6423 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6425 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6427 * util/grub-mkrelpath.c: New file.
6428 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
6429 (grub_mkrelpath_SOURCES): New variable.
6430 * include/grub/util/misc.h: New function prototype.
6431 * util/misc.c (make_system_path_relative_to_its_root): New function.
6433 * util/grub-mkconfig_lib.in (bindir): New variable.
6434 (grub_mkrelpath): Likewise.
6435 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
6437 * util/probe.c (probe): Make the file path relative to its root.
6438 Change a info message to use the GRUB path. Enable again the
6439 check if we can read the file with GRUB facilities.
6441 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
6444 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6446 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
6449 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6451 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
6454 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
6456 * util/getroot.c (grub_util_is_dmraid): New function.
6457 (grub_util_get_dev_abstraction): Treat dmraid and multipath
6458 devices as normal ones, not as LVM.
6460 2009-11-23 Carles Pina i Estany <carles@pina.cat>
6462 * conf/common.rmk: Add grub-gettext_lib target and updates
6463 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
6465 * gettext/gettext.c: New file. (Reads mo files).
6466 * include/grub/file.h (grub_file_pread): New prototype.
6467 * include/grub/i18n.h (_): New prototype.
6468 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
6470 * kern/misc.c (grub_gettext_dummy): New function.
6471 * normal/menu_text.c: Include <grub/i18n.h>.
6472 * normal/menu_text.c (print_timeout): Gettexttize string.
6473 * normal/menu_text.c (print_message): Gettexttize string.
6474 * po/POTFILES: Add `normal/menu_text.c'.
6475 * po/ca.po: Add new translations.
6476 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
6477 gettext module and defines locale_dir and lang in grub.cfg.
6478 * NEWS: Add gettext support.
6480 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6482 * util/hostdisk.c: Include `<grub/i18n.h>'.
6483 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
6484 (make_device_name): Rewrite using asprintf.
6485 (convert_system_partition_to_system_disk): Replace 0 with NULL.
6486 (find_system_device): If a device is not found, generate one just
6487 by reusing the OS path name.
6488 (read_device_map): Make it permissible for device.map not to exist.
6490 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6492 * script/sh/execute.c: Move from here ...
6493 * script/execute.c: ... to here. Update all users.
6494 * script/sh/function.c: Move from here ...
6495 * script/function.c: ... to here. Update all users.
6496 * script/sh/lexer.c: Move from here ...
6497 * script/lexer.c: ... to here. Update all users.
6498 * script/sh/main.c: Move from here ...
6499 * script/main.c: ... to here. Update all users.
6500 * script/sh/parser.y: Move from here ...
6501 * script/parser.y: ... to here. Update all users.
6502 * script/sh/script.c: Move from here ...
6503 * script/script.c: ... to here. Update all users.
6505 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6507 * configure.ac: Detect all `emu' platforms. Define
6508 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
6509 --enable-grub-emu logic. Disable include/grub/machine
6510 symlink on `emu' platforms.
6512 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
6513 * gensymlist.sh.in: Likewise.
6515 * include/grub/i386/coreboot/machine.h: Remove file.
6516 * include/grub/i386/efi/machine.h: Likewise.
6517 * include/grub/i386/ieee1275/machine.h: Likewise.
6518 * include/grub/i386/pc/machine.h: Likewise.
6519 * include/grub/i386/qemu/machine.h: Likewise.
6520 * include/grub/powerpc/ieee1275/machine.h: Likewise.
6521 * include/grub/sparc64/ieee1275/machine.h: Likewise.
6522 * include/grub/x86_64/efi/machine.h: Likewise.
6524 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
6525 * commands/halt.c: Likewise.
6526 * commands/reboot.c: Likewise.
6527 * include/grub/autoefi.h: Likewise.
6528 * include/grub/i386/at_keyboard.h: Likewise.
6529 * include/grub/i386/kernel.h: Likewise.
6530 * include/grub/i386/loader.h: Likewise.
6531 * include/grub/i386/pc/memory.h: Likewise.
6532 * kern/dl.c: Likewise.
6533 * kern/i386/coreboot/init.c: Likewise.
6534 * loader/i386/bsd.c: Likewise.
6535 * loader/i386/linux.c: Likewise.
6536 * loader/multiboot_loader.c: Likewise.
6537 * term/i386/pc/serial.c: Likewise.
6538 * term/usb_keyboard.c: Likewise.
6540 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
6541 `<grub/machine/machine.h>'
6542 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
6543 * util/misc.c: Remove `<grub/machine/machine.h>' and
6544 `<grub/machine/time.h>'.
6546 * Makefile.in (enable_grub_emu): Remove variable.
6547 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
6549 * conf/any-emu.rmk: New file.
6550 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
6551 (grub_emu_init.c): Move from here ...
6552 * conf/any-emu.rmk: ... to here.
6554 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
6555 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
6556 * conf/any-emu.rmk: ... to here.
6558 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6560 * include/grub/parser.h (grub_parser_register): Document need
6561 of `name' parameter.
6562 * normal/main.c (grub_normal_read_line): Simplify prompt string.
6563 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
6566 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6568 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
6570 * include/grub/i18n.h (N_): New macro.
6571 * util/mkisofs/mkisofs.h: Likewise.
6572 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
6574 (usage): Use gettext() to translate help strings when printing them.
6576 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
6578 Based on patch from Bean
6579 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
6581 * video/efi_fb.c: New file.
6582 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
6583 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
6585 * conf/x86_64-efi.rmk: Likewise.
6587 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
6589 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
6590 * util/i386/pc/grub-setup.c: Likewise.
6592 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6594 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
6596 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
6597 file_get_storage_info to implement grub_guess_root_device.
6599 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6601 * Makefile.in (target): Use make's builtin $(shell) function
6602 instead of calling directly $(SHELL) to create the locale directories,
6603 inside the $(foreach) function.
6605 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6607 * util/grub-mkrescue.in: Print an error and usage if output option
6610 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
6612 Patch from Loïc Minier <loic.minier@ubuntu.com>.
6613 * util/grub.d/30_os-prober.in: Cope with Linux entries where
6614 root and /boot are on different devices.
6616 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6618 Fix build for srcdir != objdir.
6620 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
6621 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
6623 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
6624 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
6625 reference for input.
6627 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6629 * util/grub-mkrescue.in: Use source directory direcly (without copiing
6630 or hardlinking it). Remove -J option, Joliet is not compatible with
6631 multiple source directories.
6633 2009-11-21 Carles Pina i Estany <carles@pina.cat>
6634 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
6636 * util/grub-mkrescue.in: Recognize `--override-directory' option.
6637 (process_input_dir): New function. Process an arbitrary input
6639 Misc adjustments to support both "override mode" and system-wide mode.
6641 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
6643 * configure.ac (UNIFONT_BDF): Rename to ...
6644 (FONT_SOURCE): ... this. Update all users.
6646 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
6648 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
6649 to the list of unifont files to look for.
6651 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6653 Patch from Joe Auricchio <jauricchio@gmail.com>
6654 * commands/minicmd.c (grub_mini_cmd_clear): New function.
6655 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
6656 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
6658 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
6660 * Makefile.in (install-local): Add a missing backslash.
6662 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
6664 * include/grub/x86_64/io.h: New file.
6666 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6668 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
6669 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
6670 Include `"progname.h"'.
6671 (main): Initialize gettext.
6672 * util/i386/pc/grub-setup.c: Gettexttize.
6673 * util/i386/pc/grub-mkimage.c: Likewise.
6675 * Makefile.in (po/*.po): Redefine as ...
6676 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
6678 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
6680 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
6682 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
6683 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
6684 (program_name): Remove.
6685 (main): Initialize gettext support.
6686 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
6687 Include `<libintl.h>'.
6690 * util/mkisofs/eltorito.c: Gettexttize.
6691 * util/mkisofs/joliet.c: Likewise.
6692 * util/mkisofs/mkisofs.c: Likewise.
6693 * util/mkisofs/multi.c: Likewise.
6694 * util/mkisofs/rock.c: Likewise.
6695 * util/mkisofs/tree.c: Likewise.
6696 * util/mkisofs/write.c: Likewise.
6698 * po/POTFILES: Update with new files.
6700 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6702 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
6703 * util/mkisofs/iso9660.h: Likewise.
6704 * util/mkisofs/joliet.c: Likewise.
6705 * util/mkisofs/mkisofs.c: Likewise.
6706 * util/mkisofs/mkisofs.h: Likewise.
6707 * util/mkisofs/rock.c: Likewise.
6708 * util/mkisofs/tree.c: Likewise.
6709 * util/mkisofs/write.c: Likewise.
6711 * util/mkisofs/eltorito.c (rcsid): Remove.
6712 * util/mkisofs/hash.c: Likewise.
6713 * util/mkisofs/joliet.c: Likewise.
6714 * util/mkisofs/name.c: Likewise.
6715 * util/mkisofs/rock.c: Likewise.
6716 * util/mkisofs/tree.c: Likewise.
6717 * util/mkisofs/write.c: Likewise.
6719 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6721 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
6722 instead of static allocation.
6723 * util/mkisofs/match.h: Likewise.
6725 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6727 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
6728 and `util/grub.d/10_linux.in'.
6729 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
6730 translatable Shell files.
6732 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
6734 * Makefile.in ($(srcdir)/aclocal.m4): New target.
6736 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6738 * INSTALL: Document Automake is needed for bootstrap.
6739 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
6740 * util/grub.d/10_kfreebsd.in (bindir): New variable.
6741 Add gettext initialization.
6742 (kfreebsd_entry): Make menuentry output translatable.
6744 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6746 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
6747 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
6748 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
6749 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
6750 (LINGUAS): Auto-generate using `po/LINGUAS'.
6751 * po/LINGUAS: New file.
6753 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6755 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
6757 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
6758 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
6759 bindtextdomain() calls for gettext initialization.
6761 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6763 * gnulib/progname.c: New file (imported from Gnulib).
6764 * gnulib/progname.h: Likewise.
6765 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
6766 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
6767 (usage): Replace `progname' with `program_name'.
6768 (main): Use set_program_name() for program name initialization.
6770 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6772 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
6774 * Makefile.in (CPPFLAGS): ... to here.
6776 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
6778 * aclocal.m4: Move from here ...
6779 * acinclude.m4: ... to here.
6780 * autogen.sh: Add call to `aclocal'.
6781 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
6783 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
6785 * Makefile.in (CLEANFILES): Add `po/*.mo'.
6786 (LINGUAS): New variable.
6787 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
6788 (install-local): Install MO files.
6789 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
6790 * include/grub/i18n.h: New file.
6791 * po/POTFILES: New file.
6792 * po/ca.po: New file.
6793 * util/grub.d/10_linux.in (bindir): New variable.
6794 Add gettext initialization.
6795 (linux_entry): Make menuentry output translatable.
6796 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
6797 (usage): Make --help output translatable.
6798 (main): Initialize gettext.
6800 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6802 * import_gcry.py: New file (written by Vladimir with minor
6804 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
6806 * INSTALL: Document that Python is required for bootstrap.
6808 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
6810 Import ciphers from libgcrypt 1.4.4.
6812 * lib/libgcrypt/cipher/ChangeLog
6813 * lib/libgcrypt/cipher/ac.c
6814 * lib/libgcrypt/cipher/arcfour.c
6815 * lib/libgcrypt/cipher/bithelp.h
6816 * lib/libgcrypt/cipher/blowfish.c
6817 * lib/libgcrypt/cipher/camellia-glue.c
6818 * lib/libgcrypt/cipher/camellia.c
6819 * lib/libgcrypt/cipher/camellia.h
6820 * lib/libgcrypt/cipher/cast5.c
6821 * lib/libgcrypt/cipher/cipher.c
6822 * lib/libgcrypt/cipher/crc.c
6823 * lib/libgcrypt/cipher/des.c
6824 * lib/libgcrypt/cipher/dsa.c
6825 * lib/libgcrypt/cipher/ecc.c
6826 * lib/libgcrypt/cipher/elgamal.c
6827 * lib/libgcrypt/cipher/hash-common.c
6828 * lib/libgcrypt/cipher/hash-common.h
6829 * lib/libgcrypt/cipher/hmac-tests.c
6830 * lib/libgcrypt/cipher/md.c
6831 * lib/libgcrypt/cipher/md4.c
6832 * lib/libgcrypt/cipher/md5.c
6833 * lib/libgcrypt/cipher/primegen.c
6834 * lib/libgcrypt/cipher/pubkey.c
6835 * lib/libgcrypt/cipher/rfc2268.c
6836 * lib/libgcrypt/cipher/rijndael-tables.h
6837 * lib/libgcrypt/cipher/rijndael.c
6838 * lib/libgcrypt/cipher/rmd.h
6839 * lib/libgcrypt/cipher/rmd160.c
6840 * lib/libgcrypt/cipher/rsa.c
6841 * lib/libgcrypt/cipher/seed.c
6842 * lib/libgcrypt/cipher/serpent.c
6843 * lib/libgcrypt/cipher/sha1.c
6844 * lib/libgcrypt/cipher/sha256.c
6845 * lib/libgcrypt/cipher/sha512.c
6846 * lib/libgcrypt/cipher/tiger.c
6847 * lib/libgcrypt/cipher/twofish.c
6848 * lib/libgcrypt/cipher/whirlpool.c
6850 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
6852 Fix build for systems without error().
6854 * gnulib/error.c: New file (imported from Gnulib).
6855 * gnulib/error.h: Likewise.
6856 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
6857 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
6858 (this variable is now used by error()).
6860 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
6862 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
6863 instead of relying that char is signed.
6865 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
6867 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
6868 blocksize different from specified.
6869 (grub_pxefs_read): Likewise.
6871 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
6873 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
6875 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
6876 (grub_ata_readwrite): Likewise. Update 2 format strings.
6877 (grub_atapi_read): Likewise.
6879 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
6880 * conf/i386.rmk (pkglib_MODULES): ... to here ...
6881 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
6882 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
6883 (ata_mod_LDFLAGS): Move from here ...
6884 * conf/i386.rmk: ... to here ...
6885 * conf/x86_64-efi.rmk: ... and here.
6886 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
6887 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
6889 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
6891 Relicense multiboot.h, with RMS' blessing.
6893 * include/multiboot.h: Change to X11 license.
6895 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
6897 Support --version in grub-mkisofs.
6899 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
6900 (OPTION_VERSION): New macro.
6901 (ld_options): Recognize --version.
6902 (usage): Move `program_name' from here ...
6903 (program_name): ... to here. Add `static' qualifier.
6904 (main): Recognize `OPTION_VERSION'.
6906 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
6908 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
6909 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
6911 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
6913 Fix help2man generation for mkisofs.
6915 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
6916 (usage): Send output to stdout (rather than stderr).
6918 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
6920 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
6921 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
6922 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
6923 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
6924 (bin_SCRIPTS): Add `grub-mkfloppy'.
6925 (grub_mkfloppy_SOURCES): New variable.
6927 * util/grub-mkrescue.in: New file.
6928 * util/i386/pc/grub-mkfloppy.in: New file.
6930 * util/i386/coreboot/grub-mkrescue.in: Remove.
6931 * util/i386/pc/grub-mkrescue.in: Remove.
6933 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
6935 * include/grub/multiboot.h (struct grub_multiboot_header): Move
6937 * include/multiboot.h (struct multiboot_header): ... to here. Update
6939 * include/grub/multiboot.h (struct grub_multiboot_info): Move
6941 * include/multiboot.h (struct multiboot_info): ... to here. Update
6943 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
6945 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
6947 * include/grub/multiboot.h (struct grub_mod_list): Move
6949 * include/multiboot.h (struct multiboot_mod_list): ... to here.
6952 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
6954 * include/multiboot2.h (multiboot_word): Rename from this ...
6955 (multiboot2_word): ... to this. Update all users.
6956 (multiboot_header): Rename from this ...
6957 (multiboot2_header): ... to this. Update all users.
6958 (multiboot_tag_header): Rename from this ...
6959 (multiboot2_tag_header): ... to this. Update all users.
6960 (multiboot_tag_start): Rename from this ...
6961 (multiboot2_tag_start): ... to this. Update all users.
6962 (multiboot_tag_name): Rename from this ...
6963 (multiboot2_tag_name): ... to this. Update all users.
6964 (multiboot_tag_module): Rename from this ...
6965 (multiboot2_tag_module): ... to this. Update all users.
6966 (multiboot_tag_memory): Rename from this ...
6967 (multiboot2_tag_memory): ... to this. Update all users.
6968 (multiboot_tag_unused): Rename from this ...
6969 (multiboot2_tag_unused): ... to this. Update all users.
6970 (multiboot_tag_end): Rename from this ...
6971 (multiboot2_tag_end): ... to this. Update all users.
6973 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
6975 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
6976 this platform we should support Multiboot1 first.
6978 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
6979 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
6980 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
6982 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
6984 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
6985 of write calls (converting them to fwrite() if they aren't already).
6986 (get_torito_desc): Likewise.
6987 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
6989 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
6991 * util/i386/pc/grub-install.in: Move from here ...
6992 * util/grub-install.in: ... to here. Update all users.
6994 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
6996 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
6998 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7000 Support for El Torito without floppy emulation.
7002 * util/mkisofs/eltorito.c: Include `<errno.h>'.
7003 (init_boot_catalog): Improve error handling.
7004 (get_torito_desc): Don't use floppy emulation unless requested by
7005 user. Patch boot information table when requested via
7007 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
7008 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
7009 (use_boot_info_table): New variables.
7010 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
7011 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
7012 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
7013 `--eltorito-emul-floppy'.
7014 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
7015 and `OPTION_ELTORITO_EMUL_FLOPPY'.
7016 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
7017 (use_boot_info_table, get_731): New prototypes.
7018 * util/mkisofs/write.c (get_731): New function.
7020 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
7022 Fix the generation of the man page.
7024 * util/pc/i386/grub-install.in: Source
7025 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7027 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
7029 Large file support for grub-mkisofs.
7031 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
7032 * util/mkisofs/mkisofs.c (next_extent, last_extent)
7033 (session_start): Upgrade type to `uint64_t'. Update all users.
7034 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
7035 (struct directory_entry): Upgrade type of `starting_block' and
7036 `size' to `uint64_t'. Update all users.
7037 (struct deferred): Remove unused structure.
7038 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
7040 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
7041 file is larger than `UINT32_MAX'.
7042 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
7043 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
7045 (struct deferred_write): Upgrade type of `extent' and `size' to
7046 `uint64_t'. Update all users.
7047 (last_extent_written): Upgrade type to `uint64_t'. Update all
7049 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
7050 Update all users. Upgrade type of `remain' to `int64_t' and
7051 `use' to `size_t'. Use error() to handle fread() errors.
7052 (write_files): Rely on write_one_file() rather than calling
7055 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
7057 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
7059 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7061 * util/mkisofs/fnmatch.c: Remove.
7062 * util/mkisofs/getopt1.c: Likewise.
7063 * util/mkisofs/getopt.c: Likewise.
7064 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
7065 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
7066 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
7067 `gnulib/getopt1.c' and `gnulib/getopt.c'.
7068 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
7070 * configure.ac: Detect `mingw32msvc' host_os.
7071 Check for lstat(), getuid() and getgid().
7073 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
7074 instances of `u_char' with `uint8_t'.
7076 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
7077 [!HAVE_GETUID] (getuid): New function (stub).
7078 [!HAVE_GETGID] (getgid): Likewise.
7079 [!HAVE_LSTAT] (lstat): Likewise.
7080 [!S_IROTH] (S_IROTH): New macro (dummy).
7081 [!S_IRGRP] (S_IRGRP): Likewise.
7083 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7085 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
7086 conditional expression).
7088 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7092 * gnulib/fnmatch.c: New file.
7093 * gnulib/fnmatch.h: Likewise.
7094 * gnulib/fnmatch_loop.c: Likewise.
7095 * gnulib/getopt.c: Likewise.
7096 * gnulib/getopt.h: Likewise.
7097 * gnulib/getopt1.c: Likewise.
7098 * gnulib/getopt_int.h: Likewise.
7099 * gnulib/gettext.h: Likewise.
7101 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7103 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
7104 * normal/handler.c (read_handler_list): Likewise.
7106 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7110 * kern/command.c (grub_register_command_prio): Use
7111 grub_zalloc() instead of explicitly zeroing data.
7112 * kern/list.c: Include `<grub/mm.h>'.
7113 (grub_named_list_find): Replace `0' with `NULL'.
7114 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
7115 (fs_module_list): Change type to `grub_named_list_t'. Update all
7117 * normal/dyncmd.c (read_command_list): Add space between function
7118 call and parenthesis.
7119 * normal/handler.c (read_handler_list): Likewise.
7121 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7123 * normal/auth.c (punishment_delay): Moved from here ...
7124 (grub_auth_strcmp): ... to here (inside function).
7126 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7128 * include/grub/list.h (struct grub_named_list): Remove `const'
7129 qualifier from `name'.
7130 (struct grub_prio_list): Likewise.
7132 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7134 * normal/auth.c: Include `<grub/time.h>'.
7135 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
7137 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7139 * normal/auth.c (punishment_delay): New variable.
7140 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
7141 (grub_auth_check_authentication): Punish failed login attempts with
7142 an incremental (2^N) delay.
7144 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7146 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
7147 path with $(srcdir).
7149 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7151 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
7153 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
7155 * util/i386/coreboot/grub-mkrescue.in: New file.
7156 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
7159 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
7160 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
7161 * configure.ac: Add header and function checks to satisfy grub-mkisofs
7163 * util/mkisofs/defaults.h: New file.
7164 * util/mkisofs/eltorito.c: Likewise.
7165 * util/mkisofs/exclude.h: Likewise.
7166 * util/mkisofs/fnmatch.c: Likewise.
7167 * util/mkisofs/getopt.c: Likewise.
7168 * util/mkisofs/getopt1.c: Likewise.
7169 * util/mkisofs/hash.c: Likewise.
7170 * util/mkisofs/include/fctldefs.h: Likewise.
7171 * util/mkisofs/include/mconfig.h: Likewise.
7172 * util/mkisofs/include/prototyp.h: Likewise.
7173 * util/mkisofs/include/statdefs.h: Likewise.
7174 * util/mkisofs/iso9660.h: Likewise.
7175 * util/mkisofs/joliet.c: Likewise.
7176 * util/mkisofs/match.c: Likewise.
7177 * util/mkisofs/match.h: Likewise.
7178 * util/mkisofs/mkisofs.c: Likewise.
7179 * util/mkisofs/mkisofs.h: Likewise.
7180 * util/mkisofs/multi.c: Likewise.
7181 * util/mkisofs/name.c: Likewise.
7182 * util/mkisofs/rock.c: Likewise.
7183 * util/mkisofs/tree.c: Likewise.
7184 * util/mkisofs/write.c: Likewise.
7186 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
7188 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
7191 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7193 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
7194 `grub-mkimage' (and use $0 when possible).
7196 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7198 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
7199 error message for excessively large memory map.
7201 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7203 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
7206 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
7208 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
7209 message for coreboot users.
7211 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
7213 Fix build with GNU gold.
7215 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
7216 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
7217 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
7219 * aclocal.m4: Likewise.
7221 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
7223 * configure.ac (AC_PREREQ): Bump to 2.59d.
7224 * INSTALL: Make it more clear when Autoconf and Ruby are
7225 needed and when to run `./autogen.sh'.
7227 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7229 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
7232 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7234 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
7236 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7238 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
7239 giving it to GNU Mach.
7241 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7243 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
7244 GNU partition number to get internal GRUB partition number.
7246 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7248 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
7249 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
7251 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
7253 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
7254 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
7257 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
7259 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
7261 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7265 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
7266 `-isystem=$(srcdir)/include'.
7268 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
7270 * util/i386/pc/grub-install.in: Remove hint that device.map should be
7271 checked (grub-install doesn't currently rely on it).
7273 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
7277 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
7278 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7279 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
7280 * conf/i386-ieee1275.rmk: Likewise.
7281 * conf/i386-pc.rmk: Likewise.
7282 * conf/powerpc-ieee1275.rmk: Likewise.
7283 * conf/sparc64-ieee1275.rmk: Likewise.
7284 * conf/x86_64-efi.rmk: Likewise.
7286 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7288 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
7290 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7292 * include/grub/misc.h: Stop checking for APPLE_CC.
7294 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
7296 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
7297 doesn't cause an infinite call loop.
7299 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
7301 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
7304 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7306 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
7308 * Makefile.in: Likewise.
7310 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7312 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
7314 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7316 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
7318 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7320 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
7322 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7324 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
7326 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
7328 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7330 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
7331 in $(MAKEINFO) invocation. This makes it clear in output that
7332 errors are being ignored.
7334 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7336 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
7338 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
7339 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
7340 * conf/i386-ieee1275.rmk: Likewise.
7341 * conf/i386-pc.rmk: Likewise.
7342 * conf/powerpc-ieee1275.rmk: Likewise.
7343 * conf/sparc64-ieee1275.rmk: Likewise.
7344 * conf/x86_64-efi.rmk: Likewise.
7346 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7348 * util/grub-editenv.c (main): If only a command is given, use
7349 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
7350 (usage): FILENAME is now optional and has a default.
7352 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
7354 Improve grub-mkconfig performance when there are several menu
7355 entries on a single filesystem.
7357 * util/grub.d/10_linux.in (linux_entry): Cache the output of
7358 prepare_grub_to_access_device.
7359 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7360 * util/grub.d/30_os-prober.in: Likewise.
7362 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7364 * util/grub.d/10_freebsd.in: Remove.
7365 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
7366 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
7368 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
7370 * docs/grub.cfg: Fix example usage of *BSD loaders.
7372 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7374 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
7375 grub_util_error() call.
7377 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7379 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
7380 `reserved_first_sector' member.
7381 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
7382 `reserved_first_sector' to 1.
7383 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
7384 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
7385 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
7386 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
7387 filesystems which begin at first sector.
7388 (options): New option --skip-fs-probe.
7389 (main): Handle --skip-fs-probe and pass it to setup().
7391 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7393 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
7394 (memset): Fix function prototype.
7396 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7397 2009-10-25 Vasily Averin <vvs@parallels.com>
7399 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
7400 `dirent.direntlen == 0'.
7402 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7404 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
7406 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
7408 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7410 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
7411 `__trampoline_setup' and `__ucmpdi2'.
7412 * include/grub/powerpc/libgcc.h: Only export symbols for functions
7413 that libgcc provides.
7415 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7417 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
7418 * include/grub/sparc64/libgcc.h (memset): Likewise.
7419 * include/grub/misc.h (memset, memcmp): New function prototypes.
7421 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7423 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
7425 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
7427 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
7429 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
7430 * docs/grub.cfg: Compensate for recent change in multiboot
7431 loader (since 2009-08-14 it won't pass filename to payload).
7432 * util/grub.d/10_hurd.in: Likewise.
7434 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
7436 * config.guess: Update to latest version from config git
7438 * config.sub: Likewise.
7440 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
7442 Fix build on sparc64.
7444 * configure.ac: Perform checks for libgcc symbols before
7445 adding `-nostdlib' to LDFLAGS.
7447 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7449 Let user specify OpenBSD root device.
7451 * loader/i386/bsd.c (openbsd_root): New variable.
7452 (openbsd_opts): New option 'root'.
7453 (OPENBSD_ROOT_ARG): New macro.
7454 (grub_openbsd_boot): Use 'openbsd_root'.
7455 (grub_cmd_openbsd): Fill 'openbsd_root'.
7457 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7459 * NEWS: Misc adjustments.
7461 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
7463 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
7465 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
7467 * configure.ac: Bump version to 1.97.
7469 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
7471 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
7472 -mno-3dnow on x86 architectures. Some toolchains enable these
7473 features by default, but they rely on registers that aren't enabled
7474 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
7476 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
7478 Make entry text a bit more readable.
7480 * util/grub.d/10_linux.in: Add `with' before `Linux'.
7482 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7484 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
7486 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7488 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
7491 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7493 * configure.ac: Add missing dollar.
7495 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
7497 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
7499 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
7500 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
7502 * include/grub/sparc64/libgcc.h: Likewise. Use
7503 preprocessor conditionals.
7505 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
7507 * conf/common.rmk (grub-dumpbios): Remove rule.
7508 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
7509 * util/grub-dumpbios.in: Remove file.
7511 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
7513 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
7514 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
7516 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
7517 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
7520 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
7521 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
7522 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
7523 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
7526 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
7528 * term/tparm.c: Switch to GPLv3.
7530 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
7532 * include/grub/i386/cpuid.h: Add header protection.
7534 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
7536 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
7538 * include/grub/i386/cpuid.h: New file.
7539 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
7540 (has_longmode): Rename to ...
7541 (grub_cpuid_has_longmode): ... this. Update all users. Remove
7543 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
7544 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
7545 on a CPU that doesn't implement AMD64 instruction set.
7547 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7549 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
7550 that version.texi is rebuilt on version number changes.
7552 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7554 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
7557 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
7559 * util/i386/pc/grub-install.in: Source
7560 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
7561 that the --grub-probe option will work.
7562 * util/sparc64/ieee1275/grub-install.in: Likewise.
7564 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
7566 * configure.ac: Bump version to 1.97~beta4.
7568 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
7570 Resync grub-mkdevicemap in x86_64-efi.
7572 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
7573 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
7576 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
7578 * util/grub-editenv.c (create_envblk_file): Write new block with a
7579 .new suffix and then rename it into place, to ensure atomic
7582 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
7584 Do not automatically install headers.
7586 * Makefile.in (include_DATA): Remove. Update all users.
7588 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
7590 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
7591 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
7593 * util/osdetect.lua: Remove.
7594 * script/lua/lauxlib.c: Likewise.
7595 * script/lua/ldebug.c: Likewise.
7596 * script/lua/grub_main.c: Likewise.
7597 * script/lua/lauxlib.h: Likewise.
7598 * script/lua/ldebug.h: Likewise.
7599 * script/lua/ltablib.c: Likewise.
7600 * script/lua/liolib.c: Likewise.
7601 * script/lua/lstrlib.c: Likewise.
7602 * script/lua/lualib.h: Likewise.
7603 * script/lua/ldo.c: Likewise.
7604 * script/lua/ldump.c: Likewise.
7605 * script/lua/ldo.h: Likewise.
7606 * script/lua/loslib.c: Likewise.
7607 * script/lua/lundump.c: Likewise.
7608 * script/lua/grub_lib.c: Likewise.
7609 * script/lua/ldblib.c: Likewise.
7610 * script/lua/lundump.h: Likewise.
7611 * script/lua/lmem.c: Likewise.
7612 * script/lua/grub_lib.h: Likewise.
7613 * script/lua/lmathlib.c: Likewise.
7614 * script/lua/lstate.c: Likewise.
7615 * script/lua/ltm.c: Likewise.
7616 * script/lua/lvm.c: Likewise.
7617 * script/lua/lmem.h: Likewise.
7618 * script/lua/lstate.h: Likewise.
7619 * script/lua/ltm.h: Likewise.
7620 * script/lua/ltable.c: Likewise.
7621 * script/lua/lvm.h: Likewise.
7622 * script/lua/llex.c: Likewise.
7623 * script/lua/lgc.c: Likewise.
7624 * script/lua/grub_lua.h: Likewise.
7625 * script/lua/loadlib.c: Likewise.
7626 * script/lua/lfunc.c: Likewise.
7627 * script/lua/lopcodes.c: Likewise.
7628 * script/lua/lparser.c: Likewise.
7629 * script/lua/ltable.h: Likewise.
7630 * script/lua/llex.h: Likewise.
7631 * script/lua/lgc.h: Likewise.
7632 * script/lua/lfunc.h: Likewise.
7633 * script/lua/lbaselib.c: Likewise.
7634 * script/lua/lopcodes.h: Likewise.
7635 * script/lua/lparser.h: Likewise.
7636 * script/lua/lzio.c: Likewise.
7637 * script/lua/linit.c: Likewise.
7638 * script/lua/lobject.c: Likewise.
7639 * script/lua/llimits.h: Likewise.
7640 * script/lua/lstring.c: Likewise.
7641 * script/lua/lzio.h: Likewise.
7642 * script/lua/lapi.c: Likewise.
7643 * script/lua/lcode.c: Likewise.
7644 * script/lua/lua.h: Likewise.
7645 * script/lua/lobject.h: Likewise.
7646 * script/lua/lstring.h: Likewise.
7647 * script/lua/lapi.h: Likewise.
7648 * script/lua/lcode.h: Likewise.
7649 * script/lua/luaconf.h: Likewise.
7651 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
7653 * docs/grub.texi (Command-line and menu entry commands): Document
7654 date and echo commands.
7656 2009-09-24 Pavel Roskin <proski@gnu.org>
7658 * include/grub/kernel.h (struct grub_module_header): Remove
7659 `grub_module_header_types'. Make `type' unsigned. Make `size'
7660 32-bit on all platforms.
7661 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
7662 8-bit field. Use grub_host_to_target32() for `size'.
7663 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
7664 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
7665 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
7667 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7669 Fix "lost keypress" bug in at_keyboard.
7671 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
7672 Checks for readyness of input buffer (without flushing it).
7673 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
7674 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
7676 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7678 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
7679 size check within GRUB_MACHINE_PCBIOS section.
7681 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
7683 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
7685 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
7686 KEYBOARD_ISREADY check.
7687 (grub_at_keyboard_checkkey): Rename to ...
7688 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
7689 Remove gratuitous cast.
7691 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
7693 * configure.ac: Call AC_PROG_MKDIR_P.
7694 * Makefile.in (docs/stamp-vti): Create docs directory. Create
7695 version.texi in $(builddir) rather than $(srcdir).
7696 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
7697 to makeinfo's @include search path.
7699 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
7701 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
7703 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
7705 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
7708 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
7710 Build info documentation. Some code borrowed from Automake.
7712 * configure.ac: Check for makeinfo.
7713 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
7714 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
7716 (MOSTLYCLEANFILES): Add vti.tmp.
7717 (docs/version.texi, docs/stamp-vti): Update automatically.
7718 (docs/grub.info): Build info documentation. Use --force and ignore
7720 (all-local): Add $(INFOS).
7721 (install-local): Install info files.
7722 (uninstall): Uninstall info files.
7723 * docs/version.texi: Remove from revision control. This file is
7724 automatically generated on build now.
7725 * gendistlist.sh: Add `*.info'.
7727 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
7729 * kern/term.c: Fix indentation.
7731 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
7733 * util/hostdisk.c: Fix a comment.
7735 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
7737 Fix regression introduced in r2539.
7739 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
7742 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
7744 * util/grub.d/30_os-prober.in: Don't throw away stderr from
7745 os-prober. Under normal operation, it does not print anything to
7746 stderr; if it does, we need to debug it, and throwing away stderr
7747 makes that excessively difficult.
7749 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
7751 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
7753 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
7755 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
7756 AC_LANG_PROGRAM from autoconf.
7757 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
7758 prototypes (fixes warning).
7760 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
7761 `--disable-werror' was used.
7763 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
7765 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
7766 uninitialized `lastaddr'.
7768 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
7770 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
7772 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
7774 * commands/test.c (get_fileinfo): Return immediately if
7775 grub_fs_probe fails.
7777 2009-09-14 José Martínez <xosemp@gmail.com>
7779 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
7781 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
7783 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
7786 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
7788 * configure.ac: Remove --enable-grub-pe2elf. Only build
7789 grub-pe2elf when needed by the build system itself.
7790 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
7792 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
7794 * configure.ac: Bump version to 1.97~beta3.
7795 * docs/version.texi: Likewise.
7797 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
7799 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
7800 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
7802 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
7803 (grub_linux_setup_video): ... to here (with some adjustments).
7805 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
7807 Fix memory corruption issue (spotted by Colin Watson).
7809 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
7810 causing returned size to be stored in an incorrect memory location.
7811 Fix use of uninitialized value when storing the returned size.
7813 2009-09-12 Yves Blusseau <blusseau@zetam.org>
7815 Change clean rules to properly remove files
7817 * genmk.rb: add new clean rules
7818 * Makefile.in (clean): add the new targets
7819 (mostlyclean): likewise
7821 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
7823 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
7825 * fs/ntfs.c (init_file): Understand 64-bit sizes for
7828 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
7830 * configure.ac: Don't look for help2man when cross-compiling. Fixes
7833 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
7835 * util/grub-mkconfig.in: Make the created config mode 400 and
7836 print a warning if it fails.
7838 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
7840 * util/grub.d/40_custom.in: Ask user to type custom entries below
7841 comment, rather than below 'exec tail' line.
7843 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
7845 * util/grub.d/40_custom.in: Make sure that the explanatory text is
7846 visible in grub.cfg.
7848 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
7850 * util/grub.d/40_custom.in: Make it a little clearer how to use this
7853 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
7855 * docs/grub.cfg: Add an example menu entry for memtest86+.
7857 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
7859 * config.guess: Update to latest version from config git.
7860 * config.sub: Likewise.
7862 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
7864 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
7865 unknown-command case. Fixes bug #27320.
7867 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
7869 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
7870 `help' if the command exists.
7872 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
7874 * INSTALL: Require GCC 4.1.3 or later.
7876 2009-09-06 Yves Blusseau <blusseau@zetam.org>
7878 * Makefile.in (RMKFILES): add i386-qemu.rmk
7879 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
7880 $(srcdir)/stamp-h.in
7882 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
7884 * util/grub-probe.c (probe): Comment out buggy codepath, which
7885 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
7886 should be re-enabled after 1.97.
7888 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
7890 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
7893 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
7895 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
7896 unnecessary calls to grub_error.
7898 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
7900 * NEWS: Mention `keystatus' and Unicode fonts.
7902 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
7904 * configure.ac: Bump version to 1.97~beta2.
7905 * docs/version.texi: Likewise.
7907 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
7909 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
7910 containing unwind information in some cases where it previously did
7911 not. Use -fno-dwarf2-cfi-asm if available to restore the old
7912 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
7915 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
7917 Embedding loadenv module into grub-emu
7919 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
7921 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
7922 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
7923 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
7924 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
7925 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
7926 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
7928 2009-09-03 Magnus Granberg <zorry@ume.nu>
7930 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
7931 include -fPIE in the default specs.
7932 * configure.ac: Check if pie_possible is yes and add -fno-PIE
7935 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
7937 * INSTALL: Note that GNU Bison 2.3 or later is required.
7939 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
7941 * kern/i386/pc/startup.S: Fix typo.
7943 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
7945 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
7948 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
7950 * docs/grub.texi (Naming convention): Describe one-based partition
7952 (Device syntax): Likewise.
7953 (File name syntax): Likewise.
7954 (Block list syntax): Likewise.
7955 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
7957 (File name syntax): Likewise.
7958 (Command-line and menu entry commands): Document acpi, blocklist,
7959 crc, export, insmod, keystatus, ls, set, and unset commands.
7961 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
7963 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
7964 to avoid implying that only one of --shift, --ctrl, or --alt may be
7967 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
7969 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
7970 rather than comparing against S_IFREG, which will almost never work.
7972 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
7974 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
7975 (write_blocklists): Likewise.
7977 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
7979 * script/lua/grub_lua.h (fputs): Supply a format string as the first
7980 argument to grub_printf.
7982 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
7984 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
7987 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
7989 * kern/file.c (grub_file_read): Spelling fix
7991 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
7993 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
7994 loading of headers in some cases.
7996 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
7998 * configure.ac: Bump version to 1.97~beta1.
7999 * docs/version.texi: Likewise.
8001 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
8003 * include/grub/i386/xnu.h: Add license header.
8004 include grub/err.h explicitly.
8006 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8008 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
8009 to `ufs' in the vfs.root.mountfrom kernel parameter.
8011 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
8013 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
8015 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
8016 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
8018 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
8021 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8023 * kern/file.c (grub_file_read): Check offset.
8024 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
8025 * fs/jfs.c (grub_jfs_read_file): Likewise.
8026 * fs/ntfs.c (grub_ntfs_read): Likewise.
8027 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
8028 * fs/minix.c (grub_minix_read_file): Correct offset check.
8029 * fs/ufs.c (grub_ufs_read_file): Likewise.
8031 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8033 * term/i386/pc/console.c (bios_data_area): Cast
8034 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
8036 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8038 1-bit optimised blitters.
8040 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
8042 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8043 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8044 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8045 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8046 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8047 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8048 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
8050 (grub_video_fbblit_replace_24bit_1bit): Likewise.
8051 (grub_video_fbblit_replace_16bit_1bit): Likewise.
8052 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8053 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8054 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
8055 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
8056 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
8058 * video/video.c (grub_video_get_blit_format): Return
8059 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
8061 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8063 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
8064 the first argument to grub_printf.
8066 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
8067 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
8069 Add `getkeystatus' terminal method. Add a new `keystatus' command
8072 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
8073 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
8074 modifier key bitmasks.
8075 (struct grub_term_input): Add `getkeystatus' member.
8076 (grub_getkeystatus): Add prototype.
8077 * kern/term.c (grub_getkeystatus): New function.
8079 * include/grub/i386/pc/memory.h
8080 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
8081 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
8083 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
8084 (grub_console_term_input): Set `getkeystatus' member.
8085 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
8087 (grub_usb_keyboard_getreport): Likewise.
8088 (grub_usb_keyboard_checkkey): Likewise.
8089 (grub_usb_keyboard_getkeystatus): New function.
8090 (grub_usb_keyboard_term): Set `getkeystatus' member.
8092 * commands/keystatus.c: New file.
8093 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
8094 (keystatus_mod_SOURCES): New variable.
8095 (keystatus_mod_CFLAGS): Likewise.
8096 (keystatus_mod_LDFLAGS): Likewise.
8097 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
8098 commands/keystatus.c.
8099 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8100 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8101 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8103 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8104 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8106 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
8108 Split befs.mod and afs.mod into *_be.mod and *.mod
8110 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
8111 (grub_fstest_SOURCES): Likewise.
8112 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
8113 (afs_be_mod_SOURCES): New variable.
8114 (afs_be_mod_CFLAGS): Likewise.
8115 (afs_be_mod_LDFLAGS): Likewise.
8116 (befs_be_mod_SOURCES): Likewise.
8117 (befs_be_mod_CFLAGS): Likewise.
8118 (befs_be_mod_LDFLAGS): Likewise.
8119 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
8120 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8121 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8122 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8123 (grub_emu_SOURCES): Likewise.
8124 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8125 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8126 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8127 * fs/afs_be.c: New file.
8128 * fs/befs_be.c: New file.
8129 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
8130 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
8131 (U16): Replaced with ...
8132 (grub_afs_to_cpu16): ...this. All users updated.
8133 (U32): Replaced with ...
8134 (grub_afs_to_cpu32): ...this. All users updated.
8135 (U64): Replaced with ...
8136 (grub_afs_to_cpu64): ...this. All users updated.
8137 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
8138 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
8139 (grub_afs_validate_sblock): Check only one endianness.
8140 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8141 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8142 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8143 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8144 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
8145 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
8146 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
8147 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
8149 2009-08-26 Bean <bean123ch@gmail.com>
8151 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
8153 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
8154 (grub_xfs_inode_block): Change return type to grub_uint64_t.
8155 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
8157 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8159 NetBSD memory map support.
8161 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
8162 (grub_netbsd_btinfo_mmap_header): New structure.
8163 (grub_netbsd_btinfo_mmap_entry): Likewise.
8164 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
8166 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8168 Enable bsd.mod on coreboot.
8170 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
8171 (bsd_mod_SOURCES): New variable.
8172 (bsd_mod_CFLAGS): Likewise.
8173 (bsd_mod_LDFLAGS): Likewise.
8174 (bsd_mod_ASFLAGS): Likewise.
8175 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
8176 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
8178 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8180 Cleanup NetBSD root support.
8182 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
8183 grub_bsd_get_device.
8186 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
8188 * util/grub.d/00_header.in: Move check for the video backend of
8189 gfxterm from here ...
8190 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
8191 a suitable video backend.
8193 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8195 Fix breakage in grub-setup.
8197 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
8198 "msdos_partition_map".
8200 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8202 Fix breakage in normal/auth.c.
8204 * normal/auth.c (grub_iswordseparator): New function.
8206 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
8208 Authentication support.
8210 * commands/password.c: New file.
8211 * conf/common.rmk (pkglib_MODULES): Add password.mod.
8212 (password_mod_SOURCES): New variable.
8213 (password_mod_CFLAGS): Likewise.
8214 (password_mod_LDFLAGS): Likewise.
8215 (normal_mod_SOURCES): Add normal/auth.c.
8216 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
8218 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8219 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8220 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8221 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8222 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8223 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
8224 * include/grub/auth.h: New file.
8225 * include/grub/err.h (grub_err_t): New enum value
8226 GRUB_ERR_ACCESS_DENIED.
8227 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
8229 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
8230 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
8232 * normal/auth.c: New file.
8233 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
8234 (grub_cmdline_run): Don't allow to go to command line without
8236 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
8237 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
8238 menuentry without superuser rights.
8239 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
8240 user isn't a superuser.
8242 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8244 Save space by inlining misc.c functions.
8246 * kern/misc.c (grub_iswordseparator): Made static.
8247 * kern/misc.c (grub_strcat): Moved from here ...
8248 * include/grub/misc.h (grub_strcat): ... here. Inlined.
8249 * kern/misc.c (grub_strncat): Moved from here ...
8250 * include/grub/misc.h (grub_strncat): ... here. Inlined.
8251 * kern/misc.c (grub_strcasecmp): Moved from here ...
8252 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
8253 * kern/misc.c (grub_strncasecmp): Moved from here ...
8254 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
8255 * kern/misc.c (grub_isalpha): Moved from here ...
8256 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
8257 * kern/misc.c (grub_isdigit): Moved from here ...
8258 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
8259 * kern/misc.c (grub_isgraph): Moved from here ...
8260 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
8261 * kern/misc.c (grub_tolower): Moved from here ...
8262 * include/grub/misc.h (grub_tolower): ... here. Inlined.
8264 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8266 * script/sh/function.c (grub_script_function_find): Cut error message
8267 not to flood terminal.
8268 * script/sh/lexer.c (grub_script_yylex): Remove command line length
8270 * script/sh/script.c (grub_script_arg_add): Duplicate string.
8272 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
8274 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
8275 `report' grub_uint8_t *.
8276 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
8277 Use a 50-millisecond timeout rather than just repeating
8278 grub_usb_keyboard_getreport 50 times.
8279 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
8281 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8283 Rename *_partition_map to part_*
8285 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
8286 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
8287 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
8288 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
8290 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
8292 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
8293 * util/grub-probe.c (probe_partmap): Don't transform partition name
8296 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8298 Fix OpenBSD and NetBSD support.
8300 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
8301 memory address conflict.
8302 (OPENBSD_MMAP_ACPI): New definition.
8303 (OPENBSD_MMAP_NVS): Likewise.
8304 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
8305 and OPENBSD_MMAP_NVS.
8306 Add memory map terminator
8307 Explicit cast when calling grub_unix_real_boot.
8308 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
8310 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8312 Let user specify NetBSD root device.
8314 * loader/i386/bsd.c (netbsd_root): New variable.
8315 (netbsd_opts): New option 'root'.
8316 (NETBSD_ROOT_ARG): New macro.
8317 (grub_netbsd_boot): Use 'netbsd_root'.
8318 (grub_bsd_unload): Free 'netbsd_root'.
8319 (grub_cmd_netbsd): Fill 'netbsd_root'.
8321 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8323 Support for 64-bit NetBSD.
8325 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
8326 point when booting non-FreeBSD.
8328 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
8330 Support --no-smp and --no-acpi for NetBSD.
8332 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
8333 (NETBSD_AB_NOACPI): Likewise.
8334 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
8335 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
8337 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8339 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
8341 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
8342 errors. Call grub_error when needed.
8344 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8346 * commands/search.c (search_fs): Try searching without autoload first.
8347 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
8348 filesystem module explicitly for faster booting.
8350 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8352 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
8354 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
8356 * util/grub.d/30_os-prober.in: Disable os-prober if
8357 `GRUB_DISABLE_OS_PROBER' was set to true.
8359 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
8361 * partmap/pc.c: Rename to ...
8362 * partmap/msdos.c: ... this. Update all users.
8363 (grub_pc_partition_map): Rename to ...
8364 (grub_msdos_partition_map): ... this. Update all users.
8366 * parttool/pcpart.c: Rename to ...
8367 * parttool/msdospart.c: ... this. Update all users.
8369 * include/grub/pc_partition.h: Rename to ...
8370 * include/grub/msdos_partition.h: ... this. Update all users.
8371 (grub_pc_partition_bsd_entry): Rename to ...
8372 (grub_msdos_partition_bsd_entry): ... this. Update all users.
8373 (grub_pc_partition_disk_label): Rename to ...
8374 (grub_msdos_partition_disk_label): ... this. Update all users.
8375 (grub_pc_partition_entry): Rename to ...
8376 (grub_msdos_partition_entry): ... this. Update all users.
8377 (grub_pc_partition_mbr): Rename to ...
8378 (grub_msdos_partition_mbr): ... this. Update all users.
8379 (grub_pc_partition): Rename to ...
8380 (grub_msdos_partition): ... this. Update all users.
8381 (grub_pc_partition_is_empty): Rename to ...
8382 (grub_msdos_partition_is_empty): ... this. Update all users.
8383 (grub_pc_partition_is_extended): Rename to ...
8384 (grub_msdos_partition_is_extended): ... this. Update all users.
8385 (grub_pc_partition_is_bsd): Rename to ...
8386 (grub_msdos_partition_is_bsd): ... this. Update all users.
8388 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
8389 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
8390 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
8391 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
8392 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
8393 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
8394 (gpt_mod_LDFLAGS): Rename to ...
8395 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
8396 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
8397 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
8398 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
8399 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
8400 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
8401 (part_gpt_mod_LDFLAGS): ... this.
8402 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
8403 `pcpart.mod' to `msdospart.mod'.
8404 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
8406 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
8407 (msdospart_mod_LDFLAGS): ... this.
8409 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
8411 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
8412 (openbsd_opts): Likewise.
8413 (netbsd_opts): Likewise.
8414 (freebsd_flags): Added 0 terminator.
8415 (openbsd_flags): Likewise.
8416 (netbsd_flags): Likewise.
8417 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
8418 (grub_cmd_freebsd): Transformed into extended command.
8419 (grub_cmd_openbsd): Likewise.
8420 (grub_cmd_netbsd): Likewise.
8421 (cmd_freebsd): Changed type to grub_extcmd_t.
8422 (cmd_openbsd): Likewise.
8423 (cmd_netbsd): Likewise.
8424 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
8425 grub_cmd_openbsd as extended commands.
8426 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
8427 cmd_netbsd and cmd_openbsd
8429 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
8431 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
8433 2009-08-21 Pavel Roskin <proski@gnu.org>
8435 * Makefile.in (install-local): When checking if a file is in the
8436 build directory, use "test -e" to detect symlinks.
8438 * Makefile.in (install-local): Remove all files in
8439 $(DESTDIR)$(pkglibdir) before installing new files there.
8441 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
8443 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
8446 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
8448 * util/grub-mkconfig.in: Don't use gfxterm by default if not
8449 explicitly specified by the user.
8451 2009-08-18 Pavel Roskin <proski@gnu.org>
8453 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
8454 grub_uint8_t pointer for data.
8455 * include/grub/fbutil.h (struct grub_video_fbblit_info):
8457 * video/fb/fbutil.c: Remove unnecessary casts.
8459 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8463 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
8464 (grub_vbe_set_video_mode): Save active mode info
8465 only after setting the mode.
8466 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
8469 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8471 Rename variables for clarity.
8473 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
8474 (active_vbe_mode_info): ... this. All users updated.
8475 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
8477 (initial_mode): Rename to ...
8478 (initial_vbe_mode): ... this. All users updated.
8479 (mode_in_use): Rename to ..
8480 (vbe_mode_in_use): ... this. All users updated.
8481 (mode_list): Rename to ..
8482 (vbe_mode_list): ... this. All users updated.
8483 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
8484 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
8485 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
8486 'mode_list_size' to 'vbe_mode_list_size'.
8487 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
8488 'best_mode_info' to 'best_vbe_mode_info' and
8489 'best_mode' to 'best_vbe_mode'
8491 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
8493 Remove duplicate grub_video_fb_get_video_ptr.
8495 * include/grub/fbutil.h (get_data_ptr): Rename to ...
8496 (grub_video_fb_get_video_ptr): ... this.
8497 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
8498 * video/fb/fbutil.c: Add comment about addressing.
8499 (get_data_ptr): Rename to ...
8500 (grub_video_fb_get_video_ptr): ... this. All users updated.
8501 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
8503 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
8505 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
8506 grub_dprintf() that was just added.
8508 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
8510 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
8511 (DEFAULT_VIDEO_MODE): Remove macros.
8512 (grub_linux_boot): Remove assumption that Linux has FB support,
8513 and use "text" as default video mode.
8515 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
8517 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
8519 * fs/fat.c (grub_fat_read_data): Likewise.
8521 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8523 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
8525 (grub_module): Likewise.
8527 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8529 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
8530 mbi->cmdline but free playground.
8532 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8534 Handle group offset on UFS1.
8536 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
8537 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
8539 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8541 Split ufs.mod into ufs1.mod and ufs2.mod.
8543 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
8544 (grub_fstest_SOURCES): Likewise.
8545 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
8546 (ufs_mod_SOURCES): Remove.
8547 (ufs_mod_CFLAGS): Likewise.
8548 (ufs_mod_LDFLAGS): Likewise.
8549 (ufs1_mod_SOURCES): New variable.
8550 (ufs1_mod_CFLAGS): Likewise.
8551 (ufs1_mod_LDFLAGS): Likewise.
8552 (ufs2_mod_SOURCES): New variable.
8553 (ufs2_mod_CFLAGS): Likewise.
8554 (ufs2_mod_LDFLAGS): Likewise.
8555 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
8556 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
8558 (grub_emu_SOURCES): Likewise.
8559 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8560 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8561 (grub_setup_SOURCES): Likewise.
8562 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8563 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
8564 (grub_setup_SOURCES): Likewise.
8565 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
8567 * fs/ufs2.c: New file.
8568 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
8570 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
8574 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
8575 subsystem at the end.
8576 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
8577 (video_fb_mod_SOURCES): New variable.
8578 (video_fb_mod_CFLAGS): Likewise.
8579 (video_fb_mod_LDFLAGS): Likewise.
8580 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
8581 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
8582 * video/i386/pc/vbeblit.c: Moved from here ...
8583 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
8584 * video/i386/pc/vbefill.c: Moved from here ...
8585 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
8586 * video/i386/pc/vbeutil.c: Moved from here ...
8587 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
8588 * include/grub/i386/pc/vbeblit.h: Moved from here ...
8589 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
8590 * include/grub/i386/pc/vbefill.h: Moved from here ...
8591 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
8592 * include/grub/i386/pc/vbeutil.h: Moved from here ...
8593 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
8594 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
8595 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
8596 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
8597 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
8598 (grub_video_adapter): Added 'get_info_and_fini'.
8599 (grub_video_get_info_and_fini): New prototype.
8600 (grub_video_set_mode): make modestring const char *.
8601 * loader/i386/linux.c (grub_linux_setup_video): Use
8602 grub_video_get_info_and_fini.
8603 (grub_linux_boot): Move modesetting just before booting.
8604 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
8605 grub_video_get_info_and_fini.
8606 * video/i386/pc/vbe.c: Moved framebuffer part ...
8607 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
8608 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
8609 grub_video_fbstd_colors and grub_video_fb_set_palette.
8610 (grub_video_vbe_init): Clear 'framebuffer' variable and use
8612 (grub_video_vbe_fini): Use grub_video_fb_fini.
8613 (grub_video_vbe_setup): Use framebuffer.render_target instead of
8614 render_target and use grub_video_fb_set_active_render_target and
8615 grub_video_fb_set_palette.
8616 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
8617 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
8618 (grub_video_vbe_adapter): Use framebuffer.
8619 * video/video.c (grub_video_get_info_and_fini): New function.
8620 (grub_video_set_mode): Make modestring const char *.
8621 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
8622 values are already initialised.
8624 2009-08-14 Pavel Roskin <proski@gnu.org>
8626 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
8628 * boot/i386/pc/diskboot.S: Likewise.
8629 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
8630 sectors allow compilation on MacOSX.
8631 * conf/i386-pc.rmk: Enable unconditional compilation of
8634 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
8636 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
8637 * util/grub.d/00_header.in: Enter interruptible sleep if
8638 GRUB_HIDDEN_TIMEOUT is set.
8640 2009-08-13 Yves Blusseau <blusseau@zetam.org>
8642 * include/grub/symbol.h: Add the LOCAL macro.
8643 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
8646 2009-08-13 Pavel Roskin <proski@gnu.org>
8648 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
8649 any modern compilers we support.
8651 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
8652 Use local labels starting with "L_" so that Apple assembler
8653 knows they are local.
8655 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
8657 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
8658 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
8659 (bsd_kernel_types): ... this enum.
8661 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
8662 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
8663 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
8665 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
8666 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
8667 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
8670 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
8672 * util/grub-dumpdevtree: Moved from here ...
8673 * util/i386/efi/grub-dumpdevtree: ... to here.
8674 (hexify): New function. Converts a string to its hex version.
8675 Generate hex versions of "efi" and "device-properties" by calling
8676 hexify() on the ASCII strings rather than by hardcoding numbers.
8678 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
8680 * fs/jfs.c: Update copyright year.
8682 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
8684 * util/grub.d/00_header.in: Fix a comment.
8685 * util/grub.d/10_linux.in: Likewise.
8686 * util/grub.d/10_windows.in: Likewise.
8687 * util/grub.d/10_hurd.in: Likewise.
8689 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
8691 * util/grub-mkconfig.in: Allow the user to specify the used font
8694 2009-08-08 Pavel Roskin <proski@gnu.org>
8696 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
8697 available, xfs.mod needs it now.
8699 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
8700 the "g" modifier in sed when the intention is to strip something
8701 once. This fixes comparison of kernels with multiple dashes.
8703 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
8704 on it. Add missing space before closing bracket. Fix
8705 misleading formatting.
8707 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8709 * docs/grub.texi: Major overhaul. Remove all sections that are
8710 specific to GRUB Legacy, or mostly composed of Legacy-specific
8713 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8715 * docs/version.texi: New file. Provides version information for
8718 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8720 * docs/grub.texi: Update CVS information to SVN.
8721 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
8723 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
8725 * util/grub-mkconfig.in: Remove a wrong `fi'.
8727 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
8729 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
8730 (grub_jfs_uuid): New function.
8731 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
8733 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
8735 * util/grub-mkconfig_lib.in (font_path): Move the functionality
8737 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
8738 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
8740 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8742 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
8743 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
8746 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
8747 not just "vmlinu[zx]".
8749 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
8752 * util/grub.d/10_linux.in (find_latest): Moved from here ...
8753 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
8756 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
8758 * util/grub.d/10_freebsd.in: Use an absolute device path for
8759 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
8761 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
8763 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
8764 handling of multiple abstraction modules.
8766 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
8768 Fix a bug resulting in black screen when loading Linux using a
8771 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
8774 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
8775 (grub_vbe_bios_getset_dac_palette_width): New function.
8776 (grub_vbe_bios_get_dac_palette_width)
8777 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
8778 grub_vbe_bios_getset_dac_palette_width()).
8780 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
8781 check for return status.
8782 (grub_vbe_get_video_mode_info): When getting information for a packed
8783 mode (<= 8 bpp), obtain DAC palette width using
8784 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
8785 {red,green,blue}_mark_size.
8787 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
8789 * commands/search.c (options): Fix help output to match actual code.
8791 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
8793 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
8796 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
8798 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
8801 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
8803 Support Apple partition map with sector size different from 512 bytes.
8805 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
8806 (apple_partition_map_iterate): Respect 'aheader.blocksize'
8807 and 'apart.partmap_size'.
8809 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
8810 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
8814 * commands/i386/cpuid.c (options): New variable.
8815 (grub_cmd_cpuid): Return real error.
8816 (GRUB_MOD_INIT(cpuid)): Declare options.
8818 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
8820 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
8823 2009-07-31 Bean <bean123ch@gmail.com>
8825 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
8827 (grub_fshelp_node): Move inode field to the end.
8828 (grub_xfs_data): Remove inode field.
8829 (grub_xfs_inode_block): Calculate inode size using sblock.
8830 (grub_xfs_inode_offset): Likewise.
8831 (grub_xfs_read_inode): Calculate inode size using sblock.
8832 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
8833 (grub_xfs_iterate_dir): Calculate inode size using sblock.
8834 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
8835 to match inode size.
8836 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
8837 not accessible when data is null.
8838 (grub_xfs_open): Likewise.
8840 2009-07-31 Bean <bean123ch@gmail.com>
8842 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
8843 Don't change pv->disk if it's already set.
8845 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
8846 (grub_raid_register): ... here.
8847 (grub_raid_rescan): Removed.
8849 * include/grub/raid.h (grub_raid_rescan): Removed.
8851 * util/grub-fstest.c: Remove include file <grub/raid.h>.
8852 (fstest): Replace grub_raid_rescan with module fini function followed
8855 * util/grub-probe.c: Add include file <grub/raid.h>.
8856 (probe_raid_level): New function.
8857 (probe): Detect abstraction by walking the disk device, support two
8858 level of abstraction (LVM on RAID) when detecting partition map.
8860 2009-07-31 Pavel Roskin <proski@gnu.org>
8862 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
8863 to grub_zalloc(), it was erroneous.
8864 Reported by Bean <bean123ch@gmail.com>
8866 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
8868 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
8869 embedding zone, not only the first one.
8871 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
8873 * term/gfxterm.c (clear_char): New function.
8874 (grub_virtual_screen_setup): Use clear_char.
8875 (scroll_up): Likewise.
8876 (grub_virtual_screen_cls): Likewise.
8878 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
8880 * util/deviceiter.c (get_acceleraid_disk_name): New static
8882 (grub_util_iterate_devices): Handle Accelraid devices.
8883 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
8885 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
8887 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
8888 separator for the suggested gfxpayload string (';' collides with the
8889 parser and needs escaping).
8891 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
8893 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
8894 Clear direction flag before jumping to OS.
8895 (grub_multiboot2_real_boot): Likewise.
8897 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
8899 * util/i386/pc/grub-install: Fix parsing of --disk-module
8902 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
8904 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
8907 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
8909 * util/grub-mkconfig.in (package_version): New variable.
8910 Use it do display the version.
8912 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
8914 * kern/file.c (grub_file_open): Revert to previous check with
8917 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
8919 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
8920 from help line. It's out of sync with code.
8922 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
8924 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
8925 entries on failed boot.
8927 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
8929 * kern/file.c (grub_file_open): Fix an error check.
8931 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
8933 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
8934 partition map couldn't be identified.
8936 2009-07-23 Pavel Roskin <proski@gnu.org>
8938 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
8939 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
8940 case of little endian words becomes just an optimization.
8941 Respect const modifier.
8942 (md5_final): Use code that doesn't depend on endianness.
8944 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
8945 to avoid loss of upper bits if align is unsigned and shorter
8948 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
8950 UUID support for UFS
8952 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
8953 (grub_ufs_uuid): New function.
8954 (grub_ufs_fs): add .uuid
8956 2009-07-21 Pavel Roskin <proski@gnu.org>
8958 * kern/dl.c (grub_dl_check_header): Make static.
8960 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
8962 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
8963 add drivemap for Vista. It breaks Windows 7.
8965 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
8967 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
8970 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
8974 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
8975 (grub_fstest_SOURCES): Likewise.
8976 (pkglib_MODULES): Add befs.mod.
8977 (befs_mod_SOURCES): New variable.
8978 (befs_mod_CFLAGS): Likewise.
8979 (befs_mod_LDFLAGS): Likewise.
8980 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
8981 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
8982 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8983 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
8984 (grub_setup_SOURCES): Likewise.
8985 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8986 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8987 (grub_setup_SOURCES): Likewise.
8988 * fs/befs.c: New file.
8989 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
8990 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
8991 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
8992 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
8993 (B_KEY_INDEX_ALIGN): New declaration.
8994 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
8995 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
8996 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
8997 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
8998 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
8999 (grub_afs_mount) [MODE_BFS]: Likewise.
9000 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
9001 (grub_afs_fs): Use GRUB_AFS_FSNAME
9002 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
9003 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
9004 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
9005 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
9007 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
9009 * util/getroot.c (find_root_device): Add support for MacOSX.
9010 * util/hostdisk.c: Likewise.
9012 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9014 * font/font.c (find_glyph): Check whether a font is present to avoid
9017 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
9019 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
9021 2009-07-20 Pavel Roskin <proski@gnu.org>
9023 * configure.ac: Trim excessively wordy excuses.
9025 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9027 Add symlink, mtime and label support to AtheFS.
9029 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
9030 (grub_afs_iterate_dir): Handle symlinks.
9031 (grub_afs_open): Use grub_afs_read_symlink.
9032 (grub_afs_dir): Likewise.
9034 (grub_afs_label): New function.
9035 (grub_afs_fs): Add grub_afs_label.
9036 (grub_afs_read_symlink): New function.
9038 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
9042 * fs/afs.c: Fix comments style.
9043 (grub_afs_blockrun): Declare as packed.
9044 (grub_afs_datastream): Likewise.
9045 (grub_afs_bnode): Likewise.
9046 (grub_afs_btree): Likewise.
9047 (grub_afs_sblock): Likewise.
9048 Declare `name' as char.
9049 (grub_afs_inode): Declare as packed.
9050 Change void *vnode to grub_uint32_t unused.
9051 (grub_afs_iterate_dir): Check that key_size is positive.
9052 (grub_afs_mount): Don't read superblock twice.
9053 (grub_afs_dir): Don't free node in case of error,
9054 grub_fshelp_find_file already handles this.
9055 (grub_afs_open): Likewise.
9057 2009-07-19 Pavel Roskin <proski@gnu.org>
9059 * Makefile.in: Remove LIBLZO and enable_lzo.
9060 * conf/i386-pc.rmk: Remove lzo support.
9061 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
9062 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
9064 * kern/i386/pc/lzo1x.S: Remove.
9065 * kern/i386/pc/startup.S: Remove lzo support.
9066 * util/i386/pc/grub-mkimage.c: Likewise.
9068 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
9070 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
9071 * fs/xfs.c (grub_xfs_dir): Likewise.
9072 * fs/afs.c (grub_afs_dir): Likewise.
9073 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9074 (grub_iso9660_open): Likewise.
9075 * fs/jfs.c (grub_jfs_open): Likewise.
9076 * fs/ext2.c (grub_ext2_dir): Likewise.
9077 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
9078 * script/sh/lexer.c (grub_script_yylex): Likewise.
9080 2009-07-16 Pavel Roskin <proski@gnu.org>
9082 * configure.ac: Never add "-c" to CFLAGS.
9084 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
9086 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
9087 grub_cv_cc_efiemu should be used.
9089 * configure.ac: Typo fixes.
9091 * kern/mm.c (grub_zalloc): New function.
9092 (grub_debug_zalloc): Likewise.
9093 * include/grub/mm.h: Declare grub_zalloc() and
9094 grub_debug_zalloc().
9095 * util/misc.c (grub_zalloc): New function.
9096 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
9097 instead of grub_malloc(), remove unneeded initializations.
9098 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
9099 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
9100 * commands/parttool.c (grub_cmd_parttool): Likewise.
9101 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
9102 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
9103 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
9104 * disk/usbms.c (grub_usbms_finddevs): Likewise.
9105 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
9106 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
9107 (grub_cmd_efiemu_pnvram): Likewise.
9108 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
9109 * fs/iso9660.c (grub_iso9660_mount): Likewise.
9110 (grub_iso9660_iterate_dir): Likewise.
9111 * fs/jfs.c (grub_jfs_opendir): Likewise.
9112 * fs/ntfs.c (list_file): Likewise.
9113 (grub_ntfs_mount): Likewise.
9114 * kern/disk.c (grub_disk_open): Likewise.
9115 * kern/dl.c (grub_dl_load_core): Likewise.
9116 * kern/elf.c (grub_elf_file): Likewise.
9117 * kern/env.c (grub_env_context_open): Likewise.
9118 (grub_env_set): Likewise.
9119 (grub_env_set_data_slot): Likewise.
9120 * kern/file.c (grub_file_open): Likewise.
9121 * kern/fs.c (grub_fs_blocklist_open): Likewise.
9122 * loader/i386/multiboot.c (grub_module): Likewise.
9123 * loader/xnu.c (grub_xnu_create_key): Likewise.
9124 (grub_xnu_create_value): Likewise.
9125 * normal/main.c (grub_normal_add_menu_entry): Likewise.
9126 (read_config_file): Likewise.
9127 * normal/menu_entry.c (make_screen): Likewise.
9128 * partmap/sun.c (sun_partition_map_iterate): Likewise.
9129 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
9130 * script/sh/script.c (grub_script_parse): Likewise.
9131 * video/bitmap.c (grub_video_bitmap_create): Likewise.
9132 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
9133 * video/readers/png.c (grub_png_output_byte): Likewise.
9134 (grub_video_reader_png): Likewise.
9136 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9138 Enable all targets that can be built by default
9140 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
9141 grub-mkfont and grub-fstest if they can be built
9143 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9145 Fix hang and segmentation fault in grub-emu-usb
9147 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
9148 * util/usb.c (grub_libusb_devices): likewise
9149 (grub_libusb_init): rename to ...
9150 (GRUB_MOD_INIT (libusb)):...this
9151 (grub_libusb_fini): rename to ..
9152 (GRUB_MOD_FINI (libusb)):...this
9153 * disk/usbms.c (grub_usbms_transfer): fix retry logic
9154 * include/grub/disk.h (grub_raid_init): removed, it's useless
9155 (grub_raid_fini): likewise
9156 (grub_lvm_init): likewise
9157 (grub_lvm_fini): likewise
9158 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
9161 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9165 * Makefile.in (LIBUSB): new macro
9166 * genmk.rb (Utility/print_tail): new method
9167 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
9168 (top level): call util.print_tail at the end.
9170 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9172 Make FreeBSD accept zpool.cache
9174 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
9175 type is /boot/zfs/zpool.cache
9177 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
9181 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
9182 correct wrong typedef
9183 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
9185 2009-07-15 Pavel Roskin <proski@gnu.org>
9187 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
9188 * kern/disk.c (struct grub_disk_cache): Likewise.
9190 * commands/probe.c (options): Typo fix.
9192 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
9193 Increase to 0x5a to accommodate FAT32. Adjust other offsets
9195 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
9197 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
9198 the end of "Error" to make the message more readable.
9200 * boot/i386/pc/boot.S (kernel_segment): Remove.
9201 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
9204 * boot/i386/pc/boot.S (boot_version): Remove.
9205 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
9208 * include/grub/i386/pc/boot.h: Sort all offsets.
9209 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
9210 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
9211 * boot/i386/pc/boot.S: Assert location of every offset listed in
9212 include/grub/i386/pc/boot.h.
9214 2009-07-13 Pavel Roskin <proski@gnu.org>
9216 * include/grub/i386/coreboot/machine.h: Rename
9217 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
9218 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
9219 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
9221 * kern/dl.c: Force native word size to suppress warnings when
9224 * kern/device.c (grub_device_iterate): Change struct part_ent to
9225 hold the name, not a pointer to it. Use one grub_malloc() per
9226 partition, not two. Free partition_name if grub_malloc() fails.
9227 Set ents to NULL only before grub_partition_iterate() is called.
9229 2009-07-11 Bean <bean123ch@gmail.com>
9231 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
9234 2009-07-10 Bean <bean123ch@gmail.com>
9235 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
9237 * kern/ieee1275/openfw.c (grub_children_iterate)
9238 (grub_devalias_iterate): Fix size evaluation for property or path
9239 strings, which was broken since r2132.
9241 2009-07-07 Pavel Roskin <proski@gnu.org>
9243 * commands/search.c (search_file): Merge into ...
9244 (search_fs): ... this. Accept search type as argument.
9245 (grub_cmd_search): Pass search type to search_fs().
9247 * include/grub/util/console.h: New file.
9248 * util/console.c: Use it instead of grub/machine/console.h.
9249 * util/grub-emu.c: Likewise.
9251 * lib/arg.c (find_long_option): Remove.
9252 (find_long): Add `len' argument, make `s' const char *.
9253 (grub_arg_parse): Parse long options in place, not in a
9256 2009-07-06 Pavel Roskin <proski@gnu.org>
9258 * commands/search.c (search_fs): Fix potential NULL pointer
9261 * commands/search.c (search_fs): Replace QUID macro with quid_fn
9264 2009-07-06 Daniel Mierswa <impulze@impulze.org>
9266 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
9269 2009-07-05 Pavel Roskin <proski@gnu.org>
9271 * include/grub/i386/linux.h (struct linux_kernel_params):
9272 Restore padding3, it's still needed.
9274 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
9276 * util/osdetect.lua: Likewise.
9278 2009-07-05 Bean <bean123ch@gmail.com>
9280 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
9282 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
9283 (grub_lua_getenv): Likewise.
9284 (grub_lua_setenv): Likewise.
9285 (save_errno): New function.
9286 (push_result): Likewise.
9287 (grub_lua_enum_device): Likewise.
9288 (grub_lua_enum_file): Likewise.
9289 (grub_lua_file_open): Likewise.
9290 (grub_lua_file_close): Likewise.
9291 (grub_lua_file_seek): Likewise.
9292 (grub_lua_file_read): Likewise.
9293 (grub_lua_file_getline): Likewise.
9294 (grub_lua_file_getsize): Likewise.
9295 (grub_lua_file_getpos): Likewise.
9296 (grub_lua_file_eof): Likewise.
9297 (grub_lua_file_exist): Likewise.
9298 (grub_lua_add_menu): Likewise.
9300 * script/lua/grub_lua.h (isupper): New inline function.
9301 (islower): Likewise.
9302 (ispunct): Likewise.
9303 (isxdigit): Likewise.
9304 (strcspn): Change to normal function.
9305 (strpbkr): New function declaration.
9308 * script/lua/grub_main.c (scan_str): New function.
9309 (strcspn): Likewise.
9310 (strpbrk): Likewise.
9313 * script/lua/linit.c (lualibs): Enable the string library.
9315 * util/osdetect.lua: New file.
9317 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
9319 * include/grub/i386/linux.h (struct linux_kernel_params): Add
9320 `capabilities' member.
9322 2009-07-02 Pavel Roskin <proski@gnu.org>
9324 * genparttoollist.sh: Add missing newline at the end.
9326 2009-07-01 Pavel Roskin <proski@gnu.org>
9328 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
9330 * util/hostdisk.c (open_device): Remove `const' from
9331 `sysctl_size', as sysctlbyname() can change it (in this case it
9332 doesn't actually happen).
9334 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
9335 using signed long int constants.
9337 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
9338 constant to avoid a warning on FreeBSD.
9340 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
9343 * Makefile.in: Install include/grub/machine symlink.
9345 * Makefile.in: When installing symlinks, use "cp -fR", which
9346 works on FreeBSD and MacOSX.
9347 From Yves Blusseau <cl7m42e02@sneakemail.com>
9349 * kern/dl.c (grub_dl_resolve_symbol): Make static.
9350 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
9352 * util/misc.c: Move grub_reboot() and grub_halt() ...
9353 * util/grub-emu.c: ... here. Make main_env static.
9354 * include/grub/util/misc.h: Remove main_env.
9356 * kern/mm.c: Use correct format to print size_t.
9358 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
9359 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
9360 * kern/powerpc/dl.c: Likewise.
9361 * kern/sparc64/dl.c: Likewise.
9362 * kern/x86_64/dl.c: Likewise.
9364 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9366 Fix grub-emu build on sparc64-ieee1275.
9368 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
9369 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
9371 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9373 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
9374 (grub_reboot, grub_halt): New functions.
9376 * util/i386/pc/misc.c: Delete. Update all users.
9377 * util/sparc64/ieee1275/misc.c: Likewise.
9378 * util/powerpc/ieee1275/misc.c: Likewise.
9380 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9382 * conf/i386.rmk (setjmp_mod_SOURCES)
9383 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
9384 * conf/common.rmk (setjmp_mod_SOURCES)
9385 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
9386 to use $(target_cpu).
9387 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
9388 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
9389 * conf/powerpc-ieee1275.rmk: Likewise.
9390 * conf/sparc64-ieee1275.rmk: Likewise.
9392 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
9393 $(target_cpu) for kern/$(target_cpu)/dl.c.
9394 * conf/i386-efi.rmk: Likewise.
9395 * conf/i386-ieee1275.rmk: Likewise.
9396 * conf/x86_64-efi.rmk: Likewise.
9397 * conf/i386-coreboot.rmk: Likewise.
9398 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
9399 $(target_cpu) for kern/$(target_cpu)/dl.c and for
9400 kern/$(target_cpu)/cache.S.
9401 * conf/sparc64-ieee1275.rmk: Likewise.
9403 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
9405 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
9406 type to `grub_uint8_t', and adjust `padding9' accordingly.
9408 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9410 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
9412 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
9413 assembly in final jump, using register constraints.
9415 (grub_linux_boot): For text mode, initialize `have_vga' using
9416 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
9418 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
9419 right before the final jump.
9421 Set `video_mode' to 0x3.
9423 Document initialization of `video_page', `video_mode' and
9426 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9428 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
9429 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
9430 and set GRUB_LINUX_FLAG_QUIET appropriately.
9432 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
9434 Fix build on Debian / sparc.
9436 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
9438 2009-06-28 Pavel Roskin <proski@gnu.org>
9440 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
9443 * util/grub.d/10_linux.in: Match SUSE style initrd names.
9445 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9447 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
9450 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9454 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
9455 file can't be opened. grub_file_open() is already supposed to set
9456 grub_errno / grub_errmsg appropriately.
9457 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9459 2009-06-27 Pavel Roskin <proski@gnu.org>
9460 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
9462 * include/grub/dl.h: Include grub/elf.h.
9463 (struct grub_dl): Add symtab field.
9464 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
9465 GRUB_MODULES_MACHINE_READONLY.
9466 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
9467 of the header for read-only modules.
9468 (grub_dl_unload): Free mod->symtab for read-only modules.
9469 * kern/i386/dl.c: Use mod->symtab.
9470 * kern/powerpc/dl.c: Likewise.
9471 * kern/sparc64/dl.c: Likewise.
9472 * kern/x86_64/dl.c: Likewise.
9474 * conf/i386-qemu.rmk: New file.
9475 * kern/i386/qemu/startup.S: Likewise.
9476 * kern/i386/qemu/mmap.c: Likewise.
9477 * boot/i386/qemu/boot.S: Likewise.
9478 * include/grub/i386/qemu/time.h: Likewise.
9479 * include/grub/i386/qemu/serial.h: Likewise.
9480 * include/grub/i386/qemu/kernel.h: Likewise.
9481 * include/grub/i386/qemu/console.h: Likewise.
9482 * include/grub/i386/qemu/boot.h: Likewise.
9483 * include/grub/i386/qemu/init.h: Likewise.
9484 * include/grub/i386/qemu/machine.h: Likewise.
9485 * include/grub/i386/qemu/loader.h: Likewise.
9486 * include/grub/i386/qemu/memory.h: Likewise.
9488 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
9489 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
9490 [qemu] (pkglib_IMAGES): Add `boot.img'.
9491 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
9492 [qemu] (boot_img_FORMAT): New variables.
9493 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
9494 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
9495 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
9496 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9497 [qemu] (kernel_img_FORMAT): New variables.
9499 * configure.ac: Recognise `i386-qemu'.
9501 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
9502 (for no compression).
9503 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
9504 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
9505 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
9506 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
9509 2009-06-27 Pavel Roskin <proski@gnu.org>
9511 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
9513 * efiemu/prepare32.c: Likewise.
9514 * efiemu/prepare64.c: Likewise.
9516 2009-06-26 Pavel Roskin <proski@gnu.org>
9518 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
9519 * include/grub/elf.h: Define symbols without "32" or "64" based
9520 on GRUB_TARGET_WORDSIZE.
9521 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
9522 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
9524 * efiemu/loadcore64.c: Likewise.
9525 * loader/i386/bsd32.c: Likewise.
9526 * loader/i386/bsd64.c: Likewise.
9527 * kern/dl.c: Remove own ELF definitions.
9528 * util/i386/efi/grub-mkimage.c: Likewise.
9530 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
9532 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
9533 segment 0x0 unconditionally, because the reference generated by
9534 GAS is an absolute address.
9536 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9538 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
9539 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
9541 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9543 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
9544 indexes. Check for -f explicitly.
9545 (search_file): Improve error message.
9546 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
9548 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9550 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
9551 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
9553 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9555 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
9556 * conf/i386-ieee1275.rmk: Likewise.
9557 * conf/i386-coreboot.rmk: Likewise.
9559 * kern/i386/pc/startup.S (grub_stop): Remove function.
9560 * kern/i386/ieee1275/startup.S: Likewise.
9561 * kern/i386/coreboot/startup.S: Likewise.
9562 * kern/i386/misc.S (grub_stop): New function.
9564 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9566 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
9567 * kern/i386/realmode.S (real_to_prot): ... to here.
9569 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
9571 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
9573 (kernel_elf_SOURCES): Rename to ...
9574 (kernel_img_SOURCES): ... this.
9575 (kernel_elf_HEADERS): Rename to ...
9576 (kernel_img_HEADERS): ... this. Update all users.
9577 (kernel_elf_ASFLAGS): Rename to ...
9578 (kernel_img_ASFLAGS): ... this.
9579 (kernel_elf_CFLAGS): Rename to ...
9580 (kernel_img_CFLAGS): ... this.
9581 (kernel_elf_LDFLAGS): Rename to ...
9582 (kernel_img_LDFLAGS): ... this.
9583 * conf/i386-coreboot.rmk: Likewise.
9584 * conf/powerpc-ieee1275.rmk: Likewise.
9586 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
9589 2009-06-21 Pavel Roskin <proski@gnu.org>
9591 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
9592 to match nested functions.
9593 * loader/sparc64/ieee1275/linux.c: Likewise.
9595 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
9597 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
9599 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
9602 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
9604 Fix asm file handling on ELF, and remove workarounds.
9606 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
9607 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
9608 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
9609 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
9611 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9613 Load BSD ELF modules
9615 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
9616 and loader/i386/bsd64.c
9617 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
9618 (FREEBSD_MODTYPE_ELF_MODULE): New definition
9619 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
9620 (grub_freebsd_load_elfmodule32): New declaration
9621 (grub_freebsd_load_elfmoduleobj64): Likewise
9622 (grub_freebsd_load_elf_meta32): Likewise
9623 (grub_freebsd_load_elf_meta64): Likewise
9624 (grub_freebsd_add_meta): Likewise
9625 (grub_freebsd_add_meta_module): Likewise
9626 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
9627 (grub_freebsd_add_meta_module): Likewise and move module-specific
9628 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
9629 (grub_cmd_freebsd): Add elf-kernel specific parts
9630 based on grub_freebsd_add_meta_module
9631 (grub_cmd_freebsd_module): Add type parsing moved from
9632 grub_freebsd_add_meta_module
9633 (grub_cmd_freebsd_module_elf): New function
9634 (cmd_freebsd_module_elf): New variable
9635 (GRUB_MOD_INIT): Register freebsd_module_elf
9636 * loader/i386/bsd32.c: New file
9637 * loader/i386/bsd64.c: Likewise
9638 * loader/i386/bsdXX.c: Likewise
9639 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
9640 (grub_elf64_load): Likewise
9641 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
9643 (grub_elf64_load_hook_t): Likewise
9645 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
9647 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
9649 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
9650 don't write a menu entry for recovery mode.
9652 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
9654 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
9655 after it's no longer needed.
9657 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
9659 * include/grub/i386/loader.h (grub_linux_prot_size)
9660 (grub_linux_tmp_addr, grub_linux_real_addr)
9661 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
9662 GRUB_MACHINE_PCBIOS.
9663 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
9664 common grub_util_info() call to ...
9665 (generate_image): ... here.
9666 Fix use of uninitialized memory, comparison of signed with
9667 unsigned integers and memory leak.
9668 Remove bogus module address message.
9670 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9672 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
9674 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
9676 2009-06-19 Pavel Roskin <proski@gnu.org>
9678 * configure.ac: Remove stray AC_MSG_CHECKING.
9680 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9682 * disk/scsi.c (grub_scsi_open): use continue instead of big if
9684 2009-06-18 Pavel Roskin <proski@gnu.org>
9686 * conf/common.rmk: Add fs_file.mod.
9687 * disk/fs_file.c: New file.
9688 * include/grub/disk.h (enum grub_disk_dev_id): Add
9689 GRUB_DISK_DEVICE_FILE_ID.
9691 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9693 Fix build with Apple's toolchain. Part 2
9695 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
9698 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9700 Fix build with Apple's toolchain. Part 1
9702 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
9704 * configure.ac: remove a leftover AC_MSG_RESULT
9705 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
9708 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9712 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
9713 (decomp_block): initialize ch
9714 use grub_memcpy instead of memcpy
9716 2009-06-17 Pavel Roskin <proski@gnu.org>
9718 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
9719 version, use declarations needed to use vga_text as the startup
9722 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
9723 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
9725 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
9726 and grub_at_keyboard_fini(), it's done on module load and
9729 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
9731 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
9732 file can't be found.
9733 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9735 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9737 Fix newline handling
9739 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
9740 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
9741 (grub_script_yylex): don't segfault on unterminated script
9742 newline terminates command and variable
9744 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9746 avoid double grub_adjust_range call. Bug reported by David Simner
9748 * kern/disk.c (grub_disk_write): change to raw disk access before
9751 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
9753 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
9754 spaces, for the benefit of help2man.
9755 * util/i386/efi/grub-mkimage.c (usage): Likewise.
9757 2009-06-16 Pavel Roskin <proski@gnu.org>
9759 * kern/i386/halt.c: Include grub/machine/init.h.
9760 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
9762 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
9764 * util/grub.d/30_os-prober.in: Use ${root} in the generated
9767 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
9769 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
9772 2009-06-16 Pavel Roskin <proski@gnu.org>
9774 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
9775 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
9776 save %dx, we only need %dl and we never change it.
9777 * boot/i386/pc/cdboot.S: Don't set the root drive.
9778 * boot/i386/pc/pxeboot.S: Likewise.
9779 * include/grub/i386/pc/boot.h: Remove
9780 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
9781 GRUB_BOOT_MACHINE_DRIVE_CHECK.
9782 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
9783 * kern/i386/pc/init.c (make_install_device): Remove references
9785 * kern/i386/pc/startup.S: Likewise.
9786 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
9788 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9792 * commands/xnu_uuid.c: new file
9793 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
9794 (xnu_uuid_mod_SOURCES): new variable
9795 (xnu_uuid_mod_CFLAGS): likewise
9796 (xnu_uuid_mod_LDFLAGS): likewise
9797 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
9798 * conf/i386-ieee1275.rmk: likewise
9799 * conf/i386-pc.rmk: likewise
9800 * conf/powerpc-ieee1275.rmk: likewise
9801 * conf/sparc64-ieee1275.rmk: likewise
9802 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
9804 2009-06-16 Pavel Roskin <proski@gnu.org>
9806 * configure.ac: Avoid '==' in test command, it's not portable.
9808 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9812 * commands/probe.c: new file
9813 * conf/common.rmk (pkglib_MODULES): add probe.mod
9814 (probe_mod_SOURCES): new variable
9815 (probe_mod_CFLAGS): likewise
9816 (probe_mod_LDFLAGS): likewise
9817 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
9818 * conf/i386-ieee1275.rmk: likewise
9819 * conf/i386-pc.rmk: likewise
9820 * conf/powerpc-ieee1275.rmk: likewise
9821 * conf/sparc64-ieee1275.rmk: likewise
9823 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9825 Fix handling of string like \"hello\" and "a
9828 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
9829 (grub_script_yylex): fix parsing of quoting, escaping and newline
9831 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9833 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
9836 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
9838 * util/grub-mkconfig.in: Fix parsing of --output option.
9840 2009-06-12 Pavel Roskin <proski@gnu.org>
9842 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
9843 genmk.rb don't need to be generated or installed.
9845 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
9847 * commands/i386/pc/drivemap_int13h.S: add more comments
9849 2009-06-11 Pavel Roskin <proski@gnu.org>
9851 * Makefile.in (uninstall): Uninstall manuals.
9853 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
9854 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
9855 and update-grub_lib in two places.
9856 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
9858 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
9861 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
9862 `entry_lo' to fix variable shadowing.
9864 2009-06-11 Christian Franke <franke@computer.org>
9866 * kern/misc.c (__enable_execute_stack): Add missing return type
9867 to prevent gcc warning.
9869 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
9871 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
9873 2009-06-11 Pavel Roskin <proski@gnu.org>
9875 * Makefile.in: Don't rely on any scripts being executable.
9876 Always use $(SHELL) to run shell scripts.
9878 * configure.ac: Always define ___main if using -nostdlib. This
9879 fixes tests on Cygwin.
9881 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
9885 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
9886 is in bytes and not in blocks
9888 2009-06-11 Pavel Roskin <proski@gnu.org>
9890 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
9893 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
9895 * util/grub.d/30_os-prober.in: Fix a comment. Source
9896 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
9897 to set the root device. Place drivemap command in the generated
9900 2009-06-11 Pavel Roskin <proski@gnu.org>
9902 * configure.ac: Remove host_m32. Issues with 64-bit utilities
9903 have long been resolved.
9905 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
9907 * util/grub.d/10_linux.in: Capitalise "Linux".
9909 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
9911 2009-06-11 Pavel Roskin <proski@gnu.org>
9913 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
9914 fix a gcc warning and ensure that the function won't ever exit.
9916 * kern/i386/ieee1275/init.c: Add missing prototype for
9919 * loader/ieee1275/multiboot2.c [__i386__]: Include
9920 grub/cpu/multiboot.h.
9922 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
9923 casts to short - they are not portable and cause warnings. Fix
9924 use of uninitialized values in input_buf. Use ARRAY_SIZE.
9926 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9930 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
9932 (grub_get_root_biosnumber_saved): new variable
9933 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
9934 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
9935 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
9936 %dx after the call if necessary
9937 * conf/common.rmk (pkglib_MODULES): remove boot.mod
9938 (boot_mod_SOURCES): remove
9939 (boot_mod_CFLAGS): remove
9940 (boot_mod_LDFLAGS): remove
9941 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
9942 (boot_mod_SOURCES): new variable
9943 (boot_mod_CFLAGS): likewise
9944 (boot_mod_LDFLAGS): likewise
9945 * conf/i386-efi.rmk: likewise
9946 * conf/i386-ieee1275.rmk: likewise
9947 * conf/i386-pc.rmk: likewise
9948 * conf/powerpc-ieee1275.rmk: likewise
9949 * conf/sparc64-ieee1275.rmk: likewise
9950 * conf/x86_64-efi.rmk: likewise
9951 * include/grub/i386/pc/biosnum.h: new file
9952 * lib/i386/pc/biosnum.c: likewise
9953 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
9954 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
9955 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
9957 2009-06-10 Pavel Roskin <proski@gnu.org>
9959 * io/gzio.c (test_header): Don't reuse one buffer for all data.
9960 Use separate variables. Read only the file size at the end, but
9961 not the checksum that we don't use.
9963 * kern/file.c (grub_file_read): Use void pointer for the buffer.
9966 * kern/ieee1275/openfw.c: Remove libc includes.
9967 * kern/ieee1275/cmain.c: Likewise.
9968 * include/grub/ieee1275/ieee1275.h: Likewise.
9970 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
9973 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
9975 * Makefile.in: Remove all trailing whitespace.
9976 * conf/i386-pc.rmk: Likewise.
9977 * conf/powerpc-ieee1275.rmk: Likewise.
9978 * conf/sparc64-ieee1275.rmk: Likewise.
9979 * docs/grub.texi: Likewise.
9980 * docs/texinfo.tex: Likewise.
9981 * disk/fs_uuid.c: Likewise.
9982 * disk/lvm.c: Likewise.
9983 * disk/scsi.c: Likewise.
9984 * disk/ata.c: Likewise.
9985 * disk/ieee1275/ofdisk.c: Likewise.
9986 * disk/i386/pc/biosdisk.c: Likewise.
9987 * disk/host.c: Likewise.
9988 * disk/raid.c: Likewise.
9989 * disk/efi/efidisk.c: Likewise.
9990 * disk/usbms.c: Likewise.
9991 * disk/memdisk.c: Likewise.
9992 * disk/loopback.c: Likewise.
9993 * kern/powerpc/dl.c: Likewise.
9994 * kern/device.c: Likewise.
9995 * kern/dl.c: Likewise.
9996 * kern/sparc64/dl.c: Likewise.
9997 * kern/ieee1275/ieee1275.c: Likewise.
9998 * kern/term.c: Likewise.
9999 * kern/fs.c: Likewise.
10000 * kern/i386/dl.c: Likewise.
10001 * kern/i386/pc/startup.S: Likewise.
10002 * kern/i386/pc/init.c: Likewise.
10003 * kern/i386/pc/mmap.c: Likewise.
10004 * kern/i386/pc/lzo1x.S: Likewise.
10005 * kern/i386/ieee1275/init.c: Likewise.
10006 * kern/i386/realmode.S: Likewise.
10007 * kern/i386/tsc.c: Likewise.
10008 * kern/partition.c: Likewise.
10009 * kern/corecmd.c: Likewise.
10010 * kern/file.c: Likewise.
10011 * kern/efi/efi.c: Likewise.
10012 * kern/efi/init.c: Likewise.
10013 * kern/efi/mm.c: Likewise.
10014 * kern/main.c: Likewise.
10015 * kern/err.c: Likewise.
10016 * kern/env.c: Likewise.
10017 * kern/disk.c: Likewise.
10018 * kern/generic/millisleep.c: Likewise.
10019 * kern/generic/rtc_get_time_ms.c: Likewise.
10020 * kern/misc.c: Likewise.
10021 * kern/parser.c: Likewise.
10022 * genmk.rb: Likewise.
10023 * configure.ac: Likewise.
10024 * boot/i386/pc/diskboot.S: Likewise.
10025 * boot/i386/pc/pxeboot.S: Likewise.
10026 * boot/i386/pc/boot.S: Likewise.
10027 * boot/i386/pc/lnxboot.S: Likewise.
10028 * boot/i386/pc/cdboot.S: Likewise.
10029 * parttool/pcpart.c: Likewise.
10030 * video/readers/tga.c: Likewise.
10031 * video/video.c: Likewise.
10032 * video/bitmap.c: Likewise.
10033 * lib/envblk.c: Likewise.
10034 * lib/i386/setjmp.S: Likewise.
10035 * fs/xfs.c: Likewise.
10036 * fs/afs.c: Likewise.
10037 * fs/fat.c: Likewise.
10038 * fs/ntfs.c: Likewise.
10039 * fs/udf.c: Likewise.
10040 * fs/affs.c: Likewise.
10041 * fs/iso9660.c: Likewise.
10042 * fs/hfs.c: Likewise.
10043 * fs/fshelp.c: Likewise.
10044 * fs/ext2.c: Likewise.
10045 * fs/jfs.c: Likewise.
10046 * fs/reiserfs.c: Likewise.
10047 * fs/hfsplus.c: Likewise.
10048 * fs/minix.c: Likewise.
10049 * fs/cpio.c: Likewise.
10050 * fs/sfs.c: Likewise.
10051 * fs/ufs.c: Likewise.
10052 * efiemu/prepare.c: Likewise.
10053 * efiemu/loadcore_common.c: Likewise.
10054 * efiemu/runtime/efiemu.sh: Likewise.
10055 * efiemu/runtime/efiemu.S: Likewise.
10056 * efiemu/runtime/efiemu.c: Likewise.
10057 * efiemu/pnvram.c: Likewise.
10058 * efiemu/main.c: Likewise.
10059 * efiemu/i386/pc/cfgtables.c: Likewise.
10060 * efiemu/i386/loadcore64.c: Likewise.
10061 * efiemu/i386/loadcore32.c: Likewise.
10062 * efiemu/loadcore.c: Likewise.
10063 * efiemu/symbols.c: Likewise.
10064 * efiemu/mm.c: Likewise.
10065 * include/grub/autoefi.h: Likewise.
10066 * include/grub/datetime.h: Likewise.
10067 * include/grub/term.h: Likewise.
10068 * include/grub/hfs.h: Likewise.
10069 * include/grub/lvm.h: Likewise.
10070 * include/grub/i386/tsc.h: Likewise.
10071 * include/grub/i386/linux.h: Likewise.
10072 * include/grub/i386/xnu.h: Likewise.
10073 * include/grub/i386/efiemu.h: Likewise.
10074 * include/grub/i386/pc/biosdisk.h: Likewise.
10075 * include/grub/i386/pc/memory.h: Likewise.
10076 * include/grub/i386/pc/vbe.h: Likewise.
10077 * include/grub/parttool.h: Likewise.
10078 * include/grub/video.h: Likewise.
10079 * include/grub/memory.h: Likewise.
10080 * include/grub/fs.h: Likewise.
10081 * include/grub/partition.h: Likewise.
10082 * include/grub/xnu.h: Likewise.
10083 * include/grub/efi/api.h: Likewise.
10084 * include/grub/efi/pe32.h: Likewise.
10085 * include/grub/efi/memory.h: Likewise.
10086 * include/grub/multiboot.h: Likewise.
10087 * include/grub/usbdesc.h: Likewise.
10088 * include/grub/multiboot2.h: Likewise.
10089 * include/grub/acpi.h: Likewise.
10090 * include/grub/efiemu/efiemu.h: Likewise.
10091 * include/grub/disk.h: Likewise.
10092 * include/grub/ieee1275/ieee1275.h: Likewise.
10093 * include/grub/net.h: Likewise.
10094 * include/grub/machoload.h: Likewise.
10095 * include/grub/macho.h: Likewise.
10096 * include/multiboot.h: Likewise.
10097 * genmoddep.awk: Likewise.
10098 * normal/main.c: Likewise.
10099 * normal/menu_entry.c: Likewise.
10100 * normal/menu_viewer.c: Likewise.
10101 * normal/completion.c: Likewise.
10102 * normal/cmdline.c: Likewise.
10103 * normal/misc.c: Likewise.
10104 * normal/datetime.c: Likewise.
10105 * bus/usb/usbtrans.c: Likewise.
10106 * bus/usb/ohci.c: Likewise.
10107 * bus/usb/uhci.c: Likewise.
10108 * bus/usb/usb.c: Likewise.
10109 * mmap/efi/mmap.c: Likewise.
10110 * mmap/i386/pc/mmap_helper.S: Likewise.
10111 * mmap/i386/pc/mmap.c: Likewise.
10112 * mmap/i386/mmap.c: Likewise.
10113 * mmap/i386/uppermem.c: Likewise.
10114 * mmap/mmap.c: Likewise.
10115 * commands/acpi.c: Likewise.
10116 * commands/echo.c: Likewise.
10117 * commands/blocklist.c: Likewise.
10118 * commands/loadenv.c: Likewise.
10119 * commands/usbtest.c: Likewise.
10120 * commands/boot.c: Likewise.
10121 * commands/parttool.c: Likewise.
10122 * commands/search.c: Likewise.
10123 * commands/cat.c: Likewise.
10124 * commands/i386/pc/play.c: Likewise.
10125 * commands/i386/pc/drivemap.c: Likewise.
10126 * commands/i386/pc/vbeinfo.c: Likewise.
10127 * commands/i386/pc/acpi.c: Likewise.
10128 * commands/i386/pc/vbetest.c: Likewise.
10129 * commands/ls.c: Likewise.
10130 * commands/cmp.c: Likewise.
10131 * commands/test.c: Likewise.
10132 * commands/efi/acpi.c: Likewise.
10133 * commands/gptsync.c: Likewise.
10134 * commands/help.c: Likewise.
10135 * partmap/amiga.c: Likewise.
10136 * partmap/apple.c: Likewise.
10137 * partmap/acorn.c: Likewise.
10138 * partmap/pc.c: Likewise.
10139 * partmap/sun.c: Likewise.
10140 * partmap/gpt.c: Likewise.
10141 * script/sh/lexer.c: Likewise.
10142 * script/sh/function.c: Likewise.
10143 * font/font.c: Likewise.
10144 * font/font_cmd.c: Likewise.
10145 * loader/powerpc/ieee1275/linux.c: Likewise.
10146 * loader/efi/chainloader.c: Likewise.
10147 * loader/multiboot_loader.c: Likewise.
10148 * loader/macho.c: Likewise.
10149 * loader/i386/multiboot.c: Likewise.
10150 * loader/i386/linux.c: Likewise.
10151 * loader/i386/pc/linux.c: Likewise.
10152 * loader/i386/pc/multiboot2.c: Likewise.
10153 * loader/i386/pc/chainloader.c: Likewise.
10154 * loader/i386/pc/xnu.c: Likewise.
10155 * loader/i386/bsd_trampoline.S: Likewise.
10156 * loader/i386/efi/linux.c: Likewise.
10157 * loader/i386/multiboot_elfxx.c: Likewise.
10158 * loader/i386/bsd_helper.S: Likewise.
10159 * loader/i386/bsd.c: Likewise.
10160 * loader/i386/linux_trampoline.S: Likewise.
10161 * loader/i386/xnu_helper.S: Likewise.
10162 * loader/i386/xnu.c: Likewise.
10163 * loader/i386/bsd_pagetable.c: Likewise.
10164 * loader/i386/multiboot_helper.S: Likewise.
10165 * loader/xnu.c: Likewise.
10166 * loader/xnu_resume.c: Likewise.
10167 * io/gzio.c: Likewise.
10168 * term/efi/console.c: Likewise.
10169 * term/terminfo.c: Likewise.
10170 * term/ieee1275/ofconsole.c: Likewise.
10171 * term/i386/pc/serial.c: Likewise.
10172 * term/i386/pc/vesafb.c: Likewise.
10173 * term/i386/pc/vga.c: Likewise.
10174 * term/usb_keyboard.c: Likewise.
10175 * term/gfxterm.c: Likewise.
10176 * aclocal.m4: Likewise.
10177 * util/lvm.c: Likewise.
10178 * util/grub.d/30_os-prober.in: Likewise.
10179 * util/grub.d/10_hurd.in: Likewise.
10180 * util/console.c: Likewise.
10181 * util/grub-macho2img.c: Likewise.
10182 * util/grub-probe.c: Likewise.
10183 * util/hostfs.c: Likewise.
10184 * util/i386/pc/grub-mkimage.c: Likewise.
10185 * util/i386/pc/grub-setup.c: Likewise.
10186 * util/i386/efi/grub-mkimage.c: Likewise.
10187 * util/grub-mkconfig.in: Likewise.
10188 * util/raid.c: Likewise.
10189 * util/resolve.c: Likewise.
10190 * util/grub-mkdevicemap.c: Likewise.
10191 * util/grub-emu.c: Likewise.
10192 * util/getroot.c: Likewise.
10193 * util/hostdisk.c: Likewise.
10194 * util/usb.c: Likewise.
10195 * util/grub-editenv.c: Likewise.
10196 * util/misc.c: Likewise.
10198 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
10200 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
10201 `genparttoollist.sh'.
10202 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
10203 Add `*.sh' to the list find searches for and change `mdate.sh'
10206 2009-06-10 Pavel Roskin <proski@gnu.org>
10208 * include/grub/multiboot2.h: Provide compatibility defines for
10210 * include/multiboot2.h: Include stdint.h only if needed, using
10212 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
10214 * loader/ieee1275/multiboot2.c: Likewise.
10215 * loader/multiboot2.c: Likewise.
10216 * loader/multiboot_loader.c: Likewise.
10218 * configure.ac: Use -nostdlib when probing for the target. It
10219 should not be required to have libc for the target.
10221 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
10222 they fail without libc headers for the target.
10223 * include/grub/powerpc/libgcc.h: Use weak attribute for all
10225 * include/grub/sparc64/libgcc.h: Likewise. Don't use
10226 preprocessor conditionals.
10228 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
10229 build system doesn't need to be aware of the tar.c internals.
10231 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
10233 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
10235 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
10237 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
10238 disk limit to 26 for IDE, Virtio, Xen and SCSI.
10240 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
10242 * util/i386/pc/grub-install.in: Change the error message if UUIDs
10243 aren't available if ata.mod gets used.
10245 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
10247 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
10248 initialising controller.
10249 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10251 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10253 * util/i386/pc/grub-install.in: Add a parameter --disk-module
10254 to choose between ata and biosdisk module on i386-pc.
10256 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
10258 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
10259 Subclass and Programming Interface fields in terms of the 3 byte
10260 Class Code register.
10261 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
10263 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
10264 interface is OHCI. Add grub_dprintf for symmetry with
10266 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
10267 interface is UHCI. Add interf variable for programming
10268 interface. Print interface with class/subclass.
10270 * bus/usb/ohci.c: Set interf with correct field.
10272 * bus/usb/uhci.c: Remove unneeded doubled lines.
10273 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
10274 Remove whitespace inside comment.
10276 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
10278 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
10279 as fallback an equivalent option without depth.
10281 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10283 Not fail if unable to retrieve C/H/S on LBA disks
10285 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
10286 if unable to retrieve C/H/S on LBA disks
10288 2009-06-08 Pavel Roskin <proski@gnu.org>
10290 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
10293 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10295 * Makefile.in (uninstall): Remove all $lib_DATA files.
10297 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
10299 Bugfix: install on partitionless device
10301 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
10304 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10306 * Makefile.in (uninstall): Remove all $include_DATA files.
10308 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
10310 * commands/true.c: New file. Implement the true and false commands.
10311 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
10312 (true_mod_SOURCES): New variable.
10313 (true_mod_CFLAGS): Likewise.
10314 (true_mod_LDFLAGS): Likewise.
10316 2009-06-05 Colin D Bennett <colin@gibibit.com>
10318 Optimized font character lookup using binary search instead of linear
10319 search. Fonts now are required to have the character index ordered by
10322 * font/font.c (load_font_index): Verify that fonts have ordered
10324 (find_glyph): Use binary search instead of linear search to find a
10325 character in a font.
10327 2009-06-05 Michael Scherer <misc@mandriva.org>
10329 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
10330 uses case sensitive btree.
10331 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
10332 only for case insensitive filesystems.
10334 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
10336 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
10337 * conf/common.rmk (search_mod_CFLAGS): likewise
10339 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10341 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
10342 compensate a compiler bug
10344 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10346 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
10349 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10351 Definitions for creating asm symbols with Apple's CC
10353 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
10354 [APPLE_CC] (VARIABLE): likewise
10356 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10358 Disable lnxboot.img when compiled
10361 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
10362 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
10363 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
10364 [! APPLE_CC] (CODE_LENG): skip
10365 [! APPLE_CC] (setup_sects): likewise
10366 [! APPLE_CC]: skip filling
10368 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10370 Address in trampolines based on 32-bit registers when compiled
10373 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
10375 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
10377 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10379 Avoid aliases when compiling with Apple's CC for PCBIOS machine
10381 * kern/misc.c [APPLE_CC] (memcpy): new function
10382 [APPLE_CC] (memmove): likewise
10383 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
10384 (memcpy): define alias conditionally on !APPLE_CC
10387 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
10388 APPLE_CC are defined
10389 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
10390 (grub_assert_fail): make prototype conditional
10392 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10394 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
10396 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
10398 (CLEANFILES): add grub-macho2img
10399 (grub_macho2img_SOURCES): new variable
10400 * kern/i386/pc/startup.S (bss_start): new variable
10401 (bss_end): likewise
10402 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
10403 * util/grub-macho2img.c: new file
10405 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10407 Use objconv when compiling with Apple's CC
10409 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
10410 (efiemu64.o): likewise
10411 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
10412 when compiling with Apple's CC
10413 (efiemu64_s.o): likewise
10414 * configure.ac: check for objconv when compiling with Apple's CC
10415 * genmk.rb: use objconv for modules when compiled with Apple's CC
10417 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10419 Define segment as well as section when compiling with
10422 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
10423 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
10424 (efiemu_convert_pointer): likewise
10425 (efiemu_set_virtual_address_map): likewise
10426 (efiemu_convert_pointer): likewise
10427 (efiemu_getcrc32): likewise
10428 (init_crc32_table): likewise
10429 (reflect): likewise
10430 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
10431 (GRUB_MOD_DEP): likewise
10433 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10435 Allow a compilation without -mcmodel=large
10437 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
10438 when compiled without -mcmodel=large
10439 (filter_memory_map): remove memory post 4 GiB when compiled
10440 without -mcmodel=large
10441 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
10442 TARGET_CFLAGS when -mcmodel=large isn't supported
10444 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10446 Remove nested functions in efiemu core
10448 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
10450 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10452 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
10454 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
10456 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
10458 (grub_cpu_is_tsc_supported): likewise
10459 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
10461 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10463 Absolute addressing through constant with Apple's cc
10465 * kern/i386/pc/startup.S: Define necessary constants
10466 and address through it when using ABS with Apple's CC
10467 * boot/i386/pc/diskboot.S: likewise
10468 * boot/i386/pc/boot.S: likewise
10469 * boot/i386/pc/lnxboot.S: likewise
10470 * boot/i386/pc/cdboot.S: likewise
10471 * mmap/i386/pc/mmap_helper.S: likewise
10472 * commands/i386/pc/drivemap_int13h.S: likewise
10474 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10476 Check if compiler is apple cc
10478 * Makefile.in (ASFLAGS): new variable
10479 (TARGET_ASFLAGS): likewise
10480 (TARGET_MODULE_FORMAT): likewise
10481 (TARGET_APPLE_CC): likewise
10482 (OBJCONV): likewise
10483 (TARGET_IMG_CFLAGS): likewise
10484 (TARGET_CPPFLAGS): add includedir
10485 * configure.ac: call grub_apple_cc and grub_apple_target_cc
10486 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
10487 Check for linker script only if compiler isn't Apple's CC
10488 (TARGET_MODULE_FORMAT): set
10489 (TARGET_APPLE_CC): likewise
10490 (TARGET_ASFLAGS): likewise
10491 (ASFLAGS): likewise
10492 Check for objcopy only if compiler isn't Apple's CC
10493 Check for BSS symbol only if compiler isn't Apple's CC
10494 * genmk.rb: adapt nm options if we use Apple's utils
10495 * aclocal.m4 (grub_apple_cc): new test
10496 (grub_apple_target_cc): likewise
10498 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10500 Simplify sed expressions and improve awk
10502 * Makefile.in (install-local): simplify sed expression
10503 * gencmdlist.sh: likewise
10504 * genmoddep.awk: avoid adding module as a dependency of itself
10506 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10508 Add missing start symbols
10510 * boot/i386/pc/boot.S: add start
10511 * boot/i386/pc/pxeboot.S: likewise
10513 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10515 Fix wrong assumptions with grub-mkimage on EFI
10517 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
10518 (relocate_addresses): consider both r_addend and value at offset
10519 (make_mods_section): zerofill modinfo and header
10520 (convert_elf): write prefix here
10522 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10524 Use .asciz instead of .string
10526 * i386/pc/diskboot.S: use .asciz instead of .string
10527 * i386/pc/boot.S: likewise
10528 * include/grub/dl.h (GRUB_MOD_DEP): likewise
10529 (GRUB_MOD_NAME): likewise
10531 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10535 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
10536 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
10537 (grub_video_setup): remove
10538 (grub_video_set_mode): new prototype
10539 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
10541 (linux_vesafb_res): compile only on PCBIOS
10542 (grub_linux_boot): support gfxpayload
10543 * loader/i386/pc/xnu.c (video_hook): new function
10544 (grub_xnu_set_video): support gfxpayload
10545 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
10546 (DEFAULT_VIDEO_HEIGHT): likewise
10547 (DEFAULT_VIDEO_FLAGS): likewise
10548 (DEFAULT_VIDEO_MODE): new definition
10549 (video_hook): new function
10550 (grub_gfxterm_init): use grub_video_set_mode
10551 * util/grub.d/30_os-prober.in: remove explicit modesetting before
10553 * video/video.c (grub_video_setup): removed
10554 (grub_video_set_mode): new function based on grub_gfxterm_init and
10557 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10559 Avoid calling biosdisk in drivemap
10561 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
10562 (revparse_biosdisk): likewise
10563 (list_mappings): derive name from id directly
10564 (grub_cmd_drivemap): use tryparse_diskstring
10566 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
10570 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
10571 (grub_lexer_param): add tokenonhold
10572 (grub_script_create_cmdline): remove cmdline. All callers updated
10573 (grub_script_function_create): make functionname
10574 grub_script_arg. All callers updated
10575 (grub_script_execute_argument_to_string): new prototype
10576 * kern/parser.c (state_transitions): reorder
10577 (grub_parser_cmdline_state): fix a bug and make more compact
10578 * script/sh/execute.c (grub_script_execute_argument_to_string):
10580 (grub_script_execute_cmdline): use new format
10581 * script/sh/function.c (grub_script_function_create): make functionname
10582 grub_script_arg. All callers updated
10583 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
10584 (grub_script_yylex): remove
10585 (grub_script_yylex2): renamed to ...
10586 (grub_script_yylex): ...renamed
10587 parse the expressions like a${b}c
10588 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
10589 (GRUB_PARSER_TOKEN_VAR): remove
10590 (GRUB_PARSER_TOKEN_NAME): likewise
10591 ("if"): declare as typeless
10592 ("while"): likewise
10593 ("function"): likewise
10598 (argument): likewise
10599 (script): accept empty scripts and make exit on error
10600 (arguments): use GRUB_PARSER_TOKEN_ARG
10601 (function): likewise
10602 (command): move error handling to script
10603 (menuentry): move grub_script_lexer_ref before
10604 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
10605 argument. All callers updated
10607 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10609 Prevent GRUB from probing floppies during boot.
10611 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
10612 * commands/search.c (options): Add --no-floppy.
10613 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
10614 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
10615 --no-floppy when searching for UUIDs.
10617 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
10619 Simplify the code duplication in commands/search.c.
10621 * commands/search.c (search_label, search_fs_uuid): Merge into ...
10622 (search_fs): ... this. Update all users.
10624 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
10626 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
10628 2009-05-28 Pavel Roskin <proski@gnu.org>
10630 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
10631 Remove the original symlink explicitly.
10633 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
10634 just one slash. That's how grub_fshelp_find_file() does it.
10636 2009-05-26 Pavel Roskin <proski@gnu.org>
10638 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
10641 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
10644 2009-05-25 Christian Franke <franke@computer.org>
10646 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
10648 (grub_atapi_identify): Add wait after drive select.
10649 (grub_ata_identify): Do more strict status register check before
10650 calling grub_atapi_identify (). Suppress error message if status
10651 register is 0x00 after command failure. Add status register
10652 check after PIO read to avoid bogus identify due to stuck DRQ.
10653 Thanks to Pavel Roskin for testing.
10654 (grub_device_initialize): Remove unsafe status register check.
10655 Thanks to 'phcoder' for problem report and patch.
10656 Prevent sign extension in debug message.
10658 2009-05-23 Colin D Bennett <colin@gibibit.com>
10660 Cleaned up `include/grub/normal.h'. Grouped prototypes by
10661 definition file, and functions defined in `normal/menu.c' have had
10662 their prototypes moved to `include/grub/menu.h' for consistency.
10664 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
10666 (grub_menu_get_entry): Likewise.
10667 (grub_menu_get_timeout): Likewise.
10668 (grub_menu_set_timeout): Likewise.
10669 (grub_menu_execute_entry): Likewise.
10670 (grub_menu_execute_with_fallback): Likewise.
10671 (grub_menu_entry_run): Likewise.
10673 * include/grub/normal.h: Re-ordered and grouped function
10674 prototypes by file that the function is defined in.
10675 (grub_menu_execute_callback): Removed; moved to menu.h.
10676 (grub_menu_get_entry): Likewise.
10677 (grub_menu_get_timeout): Likewise.
10678 (grub_menu_set_timeout): Likewise.
10679 (grub_menu_execute_entry): Likewise.
10680 (grub_menu_execute_with_fallback): Likewise.
10681 (grub_menu_entry_run): Likewise.
10682 (grub_menu_addentry): Renamed from this ...
10683 (grub_normal_add_menu_entry): ... to this.
10685 * normal/main.c (grub_menu_addentry): Renamed from this ...
10686 (grub_normal_add_menu_entry): ... to this.
10688 * script/sh/execute.c (grub_script_execute_menuentry): Update
10689 reference to renamed grub_menu_addentry function.
10691 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
10693 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
10695 2009-05-22 Pavel Roskin <proski@gnu.org>
10697 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
10698 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
10699 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
10700 compiling for the i386 targets, but not for the utilities.
10702 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
10704 (grub_root_drive): Likewise.
10705 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
10707 (grub_root_drive): Change size to byte.
10708 (grub_start_addr): Remove.
10709 (grub_end_addr): Likewise.
10710 (grub_apm_bios_info): Likewise.
10712 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
10714 * normal/i386: Remove.
10715 * normal/powerpc: Likewise.
10716 * normal/sparc64: Likewise.
10717 * normal/x86_64: Likewise.
10719 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
10721 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
10722 * loader/i386/linux_trampoline.S: Fix indentation
10723 * loader/i386/xnu_helper.S: Likewise
10725 2009-05-18 Colin D Bennett <colin@gibibit.com>
10727 Display error messages when parsing a Lua statement fails.
10728 Previously, executing a syntactically invalid statement like
10729 ")foo" or "bar;" would silently fail.
10731 * script/lua/grub_main.c (handle_lua_error): New function.
10732 (grub_lua_parse_line): Improved reporting of Lua parser and
10735 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10737 Remove -Werror which causes build to fail on some systems
10739 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
10740 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
10741 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
10743 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10745 trampoline for linux on 64-bit platform
10747 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
10748 loader/i386/efi/linux_trampoline.S
10749 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
10751 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
10753 * loader/i386/linux_trampoline.S: moved here
10754 * loader/i386/efi/linux.c (allocate_pages): reserve space for
10756 (jumpvector): removed
10757 (grub_linux_trampoline_start): new declaration
10758 (grub_linux_trampoline_end): likewise
10759 (grub_linux_boot): use trampoline when on 64-bit platform
10760 * loader/i386/linux.c: likewise
10762 2009-05-16 Pavel Roskin <proski@gnu.org>
10764 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
10765 const to avoid a warning.
10766 (grub_lua_setenv): Likewise.
10767 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
10768 lmsg to fix a warning.
10770 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
10772 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
10773 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
10774 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
10775 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
10776 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
10777 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
10778 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
10779 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
10781 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
10783 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
10785 2009-05-16 Bean <bean123ch@gmail.com>
10787 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
10788 (lua_mod_SOURCES): New variable.
10789 (lua_mod_CFLAGS): Likewise.
10790 (lua_mod_LDFLAGS): Likewise.
10792 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
10793 (setjmp_mod_SOURCES): New variable.
10794 (setjmp_mod_CFLAGS): Likewise.
10795 (setjmp_LDFLAGS): Likewise.
10797 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
10798 (setjmp_mod_SOURCES): New variable.
10799 (setjmp_mod_CFLAGS): Likewise.
10800 (setjmp_LDFLAGS): Likewise.
10802 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
10803 (setjmp_mod_SOURCES): New variable.
10804 (setjmp_mod_CFLAGS): Likewise.
10805 (setjmp_LDFLAGS): Likewise.
10807 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
10808 (setjmp_mod_SOURCES): New variable.
10809 (setjmp_mod_CFLAGS): Likewise.
10810 (setjmp_LDFLAGS): Likewise.
10812 * normal/i386/setjmp.S: Moved from here ...
10813 * lib/i386/setjmp.S: ... Moved here
10814 * normal/x86_64/setjmp.S: Moved from here ...
10815 * lib/x86_64/setjmp.S: ... Moved here
10816 * normal/powerpc/setjmp.S: Moved from here ...
10817 * lib/powerpc/setjmp.S: ... Moved here
10818 * normal/sparc64/setjmp.S: Moved from here ...
10819 * lib/sparc64/setjmp.S: ... Moved here
10821 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
10822 returns_twice in mingw.
10824 * script/lua/grub_lib.c: New file.
10825 * script/lua/grub_lib.h: Likewise.
10826 * script/lua/grub_lua.h: Likewise.
10827 * script/lua/grub_main.c: Likewise.
10828 * script/lua/lapi.c: Likewise.
10829 * script/lua/lapi.h: Likewise.
10830 * script/lua/lauxlib.c: Likewise.
10831 * script/lua/lauxlib.h: Likewise.
10832 * script/lua/lbaselib.c: Likewise.
10833 * script/lua/lcode.c: Likewise.
10834 * script/lua/lcode.h: Likewise.
10835 * script/lua/ldblib.c: Likewise.
10836 * script/lua/ldebug.c: Likewise.
10837 * script/lua/ldebug.h: Likewise.
10838 * script/lua/ldo.c: Likewise.
10839 * script/lua/ldo.h: Likewise.
10840 * script/lua/ldump.c: Likewise.
10841 * script/lua/lfunc.c: Likewise.
10842 * script/lua/lfunc.h: Likewise.
10843 * script/lua/lgc.c: Likewise.
10844 * script/lua/lgc.h: Likewise.
10845 * script/lua/linit.c: Likewise.
10846 * script/lua/liolib.c: Likewise.
10847 * script/lua/llex.c: Likewise.
10848 * script/lua/llex.h: Likewise.
10849 * script/lua/llimits.h: Likewise.
10850 * script/lua/lmathlib.c: Likewise.
10851 * script/lua/lmem.c: Likewise.
10852 * script/lua/lmem.h: Likewise.
10853 * script/lua/loadlib.c: Likewise.
10854 * script/lua/lobject.c: Likewise.
10855 * script/lua/lobject.h: Likewise.
10856 * script/lua/lopcodes.c: Likewise.
10857 * script/lua/lopcodes.h: Likewise.
10858 * script/lua/loslib.c: Likewise.
10859 * script/lua/lparser.c: Likewise.
10860 * script/lua/lparser.h: Likewise.
10861 * script/lua/lstate.c: Likewise.
10862 * script/lua/lstate.h: Likewise.
10863 * script/lua/lstring.c: Likewise.
10864 * script/lua/lstring.h: Likewise.
10865 * script/lua/lstrlib.c: Likewise.
10866 * script/lua/ltable.c: Likewise.
10867 * script/lua/ltable.h: Likewise.
10868 * script/lua/ltablib.c: Likewise.
10869 * script/lua/ltm.c: Likewise.
10870 * script/lua/ltm.h: Likewise.
10871 * script/lua/lua.h: Likewise.
10872 * script/lua/luaconf.h: Likewise.
10873 * script/lua/lualib.h: Likewise.
10874 * script/lua/lundump.c: Likewise.
10875 * script/lua/lundump.h: Likewise.
10876 * script/lua/lvm.c: Likewise.
10877 * script/lua/lvm.h: Likewise.
10878 * script/lua/lzio.c: Likewise.
10879 * script/lua/lzio.h: Likewise.
10881 2009-05-16 Bean <bean123ch@gmail.com>
10883 * include/grub/kernel.h (grub_module_header_types): Add type
10886 * kern/main.c (grub_load_config): New function.
10887 (grub_main): Call grub_load_config to read boot config.
10889 * grub-mkimage (generate_image): New parameter config_path.
10890 (options): New option --config.
10891 (main): Parse --config option, and pass it to generate_image.
10893 2009-05-14 Christian Franke <franke@computer.org>
10895 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
10896 This fixes build on Cygwin.
10898 2009-05-14 Pavel Roskin <proski@gnu.org>
10900 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
10901 jump. This saves two bytes, so the typical case of 2 swapped
10902 drives would fit 32 bytes.
10904 2009-05-13 Pavel Roskin <proski@gnu.org>
10906 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
10907 grub_uint32_t to avoid a warning.
10909 * loader/i386/linux.c (allocate_pages): When assigning
10910 real_mode_mem, cast through grub_size_t to fix a warning. The
10911 code already makes sure that the value would fit a pointer.
10912 (grub_linux_setup_video): Cast render_target->data to
10913 grub_size_t to fix a warning.
10915 2009-05-13 Javier Martín <lordhabbit@gmail.com>
10917 * commands/i386/pc/drivemap.c: New file - implement drivemap
10919 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
10920 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
10922 2009-05-13 Pavel Roskin <proski@gnu.org>
10924 * util/i386/pc/grub-setup.c (setup): Remove unused variable
10925 embedding_area_exists.
10927 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
10929 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
10930 it easier to understand / work with.
10931 Improve warning messages for cases where there's no embedding area,
10932 or when it is too small (or core.img too large).
10934 2009-05-13 Pavel Roskin <proski@gnu.org>
10936 * loader/i386/pc/multiboot2.c: Add necessary includes for
10937 grub_multiboot2_real_boot().
10939 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
10940 PX record is always little-endian. We only need the lower 2
10943 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
10944 facilitate code reuse.
10945 (grub_cpio_mount): Use "struct head", not a char buffer. This
10946 fixes a warning reported by gcc 4.4.
10948 * kernel/disk.c (grub_disk_read): Use void pointer for the
10950 (grub_disk_write): Use const void pointer for the buffer.
10951 Adjust all callers. Remove unnecessary casts.
10953 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
10955 * util/i386/pc/grub-install.in: Update copyright year.
10957 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10961 * commands/gptsync.c: new file
10962 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
10963 (gptsync_mod_SOURCES): new variable
10964 (gptsync_mod_CFLAGS): likewise
10965 (gptsync_mod_LDFLAGS): likewise
10966 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
10968 (GRUB_PC_PARTITION_TYPE_HFS): likewise
10969 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
10970 * conf/i386-ieee1275.rmk: likewise
10971 * conf/i386-pc.rmk: likewise
10972 * conf/powerpc-ieee1275.rmk: likewise
10974 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10978 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
10979 (grub_dl_ref): likewise
10981 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
10983 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
10984 split in two functions (one for msdos and one for gpt).
10986 2009-05-08 Pavel Roskin <proski@gnu.org>
10988 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
10991 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
10992 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
10993 Initialize them with -1. Add sanity check for bad1. Eliminate
10996 2009-05-08 David S. Miller <davem@davemloft.net>
10998 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
11000 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
11002 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
11005 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
11007 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
11008 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
11010 2009-05-05 David S. Miller <davem@davemloft.net>
11012 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
11014 2009-05-05 Pavel Roskin <proski@gnu.org>
11016 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
11017 of grub_dl_ref() and grub_dl_unref().
11018 * commands/parttool.c: Remove preprocessor conditionals around
11019 grub_dl_ref() and grub_dl_unref().
11020 * fs/affs.c: Likewise.
11021 * fs/afs.c: Likewise.
11022 * fs/cpio.c: Likewise.
11023 * fs/ext2.c: Likewise.
11024 * fs/fat.c: Likewise.
11025 * fs/hfs.c: Likewise.
11026 * fs/hfsplus.c: Likewise.
11027 * fs/iso9660.c: Likewise.
11028 * fs/jfs.c: Likewise.
11029 * fs/minix.c: Likewise.
11030 * fs/ntfs.c: Likewise.
11031 * fs/reiserfs.c: Likewise.
11032 * fs/sfs.c: Likewise.
11033 * fs/udf.c: Likewise.
11034 * fs/ufs.c: Likewise.
11035 * fs/xfs.c: Likewise.
11036 * include/grub/dl.h: Likewise.
11037 * loader/xnu.c: Likewise.
11039 2009-05-04 Pavel Roskin <proski@gnu.org>
11041 * commands/acpi.c: Remove unused variable my_mod.
11042 * partmap/amiga.c: Likewise.
11043 * partmap/apple.c: Likewise.
11044 * partmap/gpt.c: Likewise.
11045 * partmap/pc.c: Likewise.
11046 * partmap/sun.c: Likewise.
11047 * term/gfxterm.c: Likewise.
11048 * term/i386/pc/vesafb.c: Likewise.
11049 * term/i386/pc/vga.c: Likewise.
11051 2009-05-04 David S. Miller <davem@davemloft.net>
11053 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
11054 pointer args to grub_ieee1275_get_property().
11056 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
11058 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
11059 devices, and do not traverse down under controller nodes.
11061 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
11062 (grub_ofdisk_open): Use it to un-escape "," characters.
11063 * kern/disk.c (find_part_sep): New.
11064 (grub_disk_open): Use it to find the first non-escaped ','
11065 character in the disk name.
11066 * util/ieee1275/devicemap.c (escape_of_path): New.
11067 (grub_util_emit_devicemap_entry): Use it.
11068 * util/sparc64/ieee1275/grub-install.in: Update script to
11069 strip partition specifiers properly by not triggering on
11070 '\' escaped ',' characters.
11072 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11074 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
11076 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
11078 (linux_vesafb_modes): Add a lot of additional modes to the list (based
11079 on documentation from Wikipedia).
11081 2009-05-04 Pavel Roskin <proski@gnu.org>
11083 * disk/ata.c: Spelling fixes.
11084 * disk/raid.c: Likewise.
11085 * disk/usbms.c: Likewise.
11086 * disk/dmraid_nvidia.c: Likewise.
11087 * kern/ieee1275/openfw.c: Likewise.
11088 * kern/ieee1275/init.c: Likewise.
11089 * kern/ieee1275/cmain.c: Likewise.
11090 * boot/i386/pc/cdboot.S: Likewise.
11091 * video/readers/png.c: Likewise.
11092 * video/i386/pc/vbe.c: Likewise.
11093 * fs/udf.c: Likewise.
11094 * fs/hfs.c: Likewise.
11095 * fs/reiserfs.c: Likewise.
11096 * efiemu/runtime/efiemu.c: Likewise.
11097 * efiemu/main.c: Likewise.
11098 * efiemu/mm.c: Likewise.
11099 * include/grub/elf.h: Likewise.
11100 * include/grub/xnu.h: Likewise.
11101 * include/grub/usbdesc.h: Likewise.
11102 * include/grub/usb.h: Likewise.
11103 * include/grub/script_sh.h: Likewise.
11104 * include/grub/lib/LzmaEnc.h: Likewise.
11105 * include/grub/efiemu/efiemu.h: Likewise.
11106 * include/grub/command.h: Likewise.
11107 * normal/menu.c: Likewise.
11108 * normal/main.c: Likewise.
11109 * normal/datetime.c: Likewise.
11110 * bus/usb/uhci.c: Likewise.
11111 * mmap/i386/uppermem.c: Likewise.
11112 * mmap/mmap.c: Likewise.
11113 * commands/acpi.c: Likewise.
11114 * commands/test.c: Likewise.
11115 * partmap/apple.c: Likewise.
11116 * font/font.c: Likewise.
11117 * loader/sparc64/ieee1275/linux.c: Likewise.
11118 * loader/macho.c: Likewise.
11119 * loader/i386/bsd_trampoline.S: Likewise.
11120 * loader/i386/bsd.c: Likewise.
11121 * loader/xnu.c: Likewise.
11122 * term/i386/pc/vesafb.c: Likewise.
11123 * term/usb_keyboard.c: Likewise.
11124 * util/resolve.c: Likewise.
11125 * util/getroot.c: Likewise.
11127 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11129 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
11131 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11133 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
11136 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11138 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
11139 parameter only available on BIOS.
11141 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11143 Removed wrong semicolon in declaration
11145 * grub/misc.h (grub_dprintf): remove semicolon
11147 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11149 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
11150 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
11151 is done by grub_cmd_linux() now).
11152 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
11153 restore video to text mode.
11154 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
11155 indicates lack of "vga=" parameter. "vga=0" is mapped to
11156 `GRUB_LINUX_VID_MODE_NORMAL'.
11158 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
11160 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
11161 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
11162 and `normal/script.c'. Add `kern/rescue_reader.c',
11163 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
11164 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
11165 `grub_script.tab.c'.
11167 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11168 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
11169 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11170 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
11171 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
11173 * Makefile.in: Remove duplicated 2008 in Copyright line.
11175 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
11177 * util/misc.c (grub_util_warn): New function. Emits a warning
11179 * include/grub/util/misc.h (grub_util_warn): New declaration.
11181 * util/i386/pc/grub-install.in: Understand --force and pass it down
11184 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
11186 (setup): Improve error messages and add warnings when requested to
11187 install in odd layouts. Refuse to install using blocklists unless
11190 2009-05-04 martin f. krafft <madduck@madduck.net>
11192 * disk/raid.c (grub_raid_scan_device): Improve debug message.
11194 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11196 Updated copyright year
11198 * fs/hfsplus.c: updated copyright year
11200 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
11204 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
11205 in the space previously used by unused3
11206 (grub_hfsplus_uuid): new function
11207 (grub_hfsplus_fs): added uuid field
11209 2009-05-03 Pavel Roskin <proski@gnu.org>
11211 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
11212 suppress warnings. It's no longer needed.
11213 * disk/host.c: Likewise.
11214 * disk/ata_pthru.c: Likewise.
11215 * disk/loopback.c: Likewise.
11216 * hook/datehook.c: Likewise.
11217 * parttool/pcpart.c: Likewise.
11218 * fs/i386/pc/pxe.c: Likewise.
11219 * fs/ntfscomp.c: Likewise.
11220 * efiemu/main.c: Likewise.
11221 * mmap/mmap.c: Likewise.
11222 * commands/crc.c: Likewise.
11223 * commands/hexdump.c: Likewise.
11224 * commands/hdparm.c: Likewise.
11225 * commands/acpi.c: Likewise.
11226 * commands/echo.c: Likewise.
11227 * commands/minicmd.c: Likewise.
11228 * commands/blocklist.c: Likewise.
11229 * commands/memrw.c: Likewise.
11230 * commands/loadenv.c: Likewise.
11231 * commands/usbtest.c: Likewise.
11232 * commands/lsmmap.c: Likewise.
11233 * commands/boot.c: Likewise.
11234 * commands/parttool.c: Likewise.
11235 * commands/configfile.c: Likewise.
11236 * commands/search.c: Likewise.
11237 * commands/ieee1275/suspend.c: Likewise.
11238 * commands/cat.c: Likewise.
11239 * commands/i386/pc/pxecmd.c: Likewise.
11240 * commands/i386/pc/play.c: Likewise.
11241 * commands/i386/pc/halt.c: Likewise.
11242 * commands/i386/pc/vbeinfo.c: Likewise.
11243 * commands/i386/pc/vbetest.c: Likewise.
11244 * commands/lspci.c: Likewise.
11245 * commands/date.c: Likewise.
11246 * commands/handler.c: Likewise.
11247 * commands/ls.c: Likewise.
11248 * commands/test.c: Likewise.
11249 * commands/cmp.c: Likewise.
11250 * commands/efi/loadbios.c: Likewise.
11251 * commands/efi/fixvideo.c: Likewise.
11252 * commands/halt.c: Likewise.
11253 * commands/help.c: Likewise.
11254 * commands/reboot.c: Likewise.
11255 * hello/hello.c: Likewise.
11256 * script/sh/main.c: Likewise.
11257 * loader/xnu.c: Likewise.
11258 * term/terminfo.c: Likewise.
11259 * term/i386/pc/serial.c: Likewise.
11260 * term/usb_keyboard.c: Likewise.
11262 2009-05-03 David S. Miller <davem@davemloft.net>
11264 * normal/menu.c: Include grub/parser.h
11266 2009-05-03 Pavel Roskin <proski@gnu.org>
11268 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
11270 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
11271 Suggested by Javier Martín <lordhabbit@gmail.com>
11273 * util/i386/pc/grub-mkrescue.in: Allow for the case when
11274 efiemu??.o doesn't exist.
11275 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
11278 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
11280 FreeBSD 64-bit support
11282 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
11283 and loader/i386/bsd_trampoline.S
11284 (bsd_mod_ASFLAGS): new variable
11285 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
11286 (FREEBSD_MODTYPE_KERNEL64): likewise
11287 (grub_bsd64_trampoline_start): likewise
11288 (grub_bsd64_trampoline_end): likewise
11289 (grub_bsd64_trampoline_selfjump): likewise
11290 (grub_bsd64_trampoline_gdt): likewise
11291 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
11292 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
11293 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
11294 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
11295 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
11297 * loader/i386/bsd_pagetable.c: new file
11298 * loader/i386/bsd_trampoline.S: likewise
11299 * loader/i386/bsd.c (ALIGN_QWORD): new macro
11300 (ALIGN_VAR): likewise
11301 (entry_hi): new variable
11302 (kern_end_mdofs): likewise
11303 (is_64bit): likewise
11304 (grub_freebsd_add_meta): use ALIGN_VAR
11305 (grub_e820_mmap): new declaration
11306 (grub_freebsd_add_mmap): new function
11307 (grub_freebsd_add_meta_module): support 64 bit kernels
11308 (grub_freebsd_list_modules): use ALIGN_VAR
11309 (gdt_descriptor): new declaration
11310 (grub_freebsd_boot): support 64 bit kernels
11311 (grub_bsd_elf64_hook): new function
11312 (grub_bsd_load_elf): support elf64
11314 2009-05-03 Bean <bean123ch@gmail.com>
11316 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
11317 after we get the result of if statement.
11319 2009-05-03 Bean <bean123ch@gmail.com>
11321 * Makefile.in (enable_efiemu): New variable.
11323 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
11325 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
11327 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
11328 path, add -mno-red-zone option.
11329 (efiemu64_s.o): Likewise.
11330 (efiemu64.o): Use macro $^ for source file.
11332 * configure.ac (--enable-efiemu): New option.
11334 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11338 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
11339 (pkglib_MODULES): add xnu.mod
11340 (xnu_mod_SOURCES): new variable
11341 (xnu_mod_CFLAGS): likewise
11342 (xnu_mod_LDFLAGS): likewise
11343 (xnu_mod_ASFLAGS): likewise
11344 * conf/i386-pc.rmk: likewise
11345 * conf/x86_64-efi.rmk: likewise
11346 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
11348 * include/grub/i386/macho.h: new file
11349 * include/grub/i386/xnu.h: likewise
11350 * include/grub/macho.h: likewise
11351 * include/grub/machoload.h: likewise
11352 * include/grub/x86_64/macho.h: likewise
11353 * include/grub/x86_64/xnu.h: likewise
11354 * include/grub/xnu.h: likewise
11355 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
11356 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
11357 * loader/i386/efi/xnu.c: new file
11358 * loader/i386/pc/xnu.c: likewise
11359 * loader/i386/xnu.c: likewise
11360 * loader/i386/xnu_helper.S: likewise
11361 * loader/macho.c: likewise
11362 * loader/xnu.c: likewise
11363 * loader/xnu_resume.c: likewise
11364 * util/grub-dumpdevtree: likewise
11365 * include/grub/i386/pit.h: include grub/err.h
11366 (grub_pit_wait): export
11367 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
11369 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11373 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
11374 _linux_efi, linux_efi.
11375 new files in grub-emu
11376 new targets efiemu32.o and efiemu64.o
11377 * loader/linux_normal_efiemu.c: likewise
11378 * loader/i386/efi/linux.c: added preliminary efiemu support
11379 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
11381 * include/grub/autoefi.h: new file
11382 * include/grub/i386/efiemu.h: likewise
11383 * include/grub/i386/pc/efiemu.h: likewise
11384 * include/grub/efi/api.h: add LL suffix when necessary
11385 new definitions relating to tables
11386 * include/grub/efiemu/efiemu.h: new file
11387 * include/grub/efiemu/runtime.h: likewise
11388 * efiemu/prepare.c: likewise
11389 * efiemu/loadcore_common.c: likewise
11390 * efiemu/loadcore64.c: likewise
11391 * efiemu/runtime/efiemu.sh: likewise
11392 * efiemu/runtime/efiemu.S: likewise
11393 * efiemu/runtime/efiemu.c: likewise
11394 * efiemu/runtime/config.h: likewise
11395 * efiemu/prepare32.c: likewise
11396 * efiemu/main.c: likewise
11397 * efiemu/modules/pnvram.c: likewise
11398 * efiemu/modules/i386: likewise
11399 * efiemu/modules/i386/pc: likewise
11400 * efiemu/modules/acpi.c: likewise
11401 * efiemu/i386/pc/cfgtables.c: likewise
11402 * efiemu/i386/loadcore64.c: likewise
11403 * efiemu/i386/loadcore32.c: likewise
11404 * efiemu/prepare64.c: likewise
11405 * efiemu/loadcore.c: likewise
11406 * efiemu/symbols.c: likewise
11407 * efiemu/mm.c: likewise
11408 * efiemu/loadcore32.c: likewise
11410 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11414 * commands/acpi.c: new file
11415 * commands/i386/pc/acpi.c: likewise
11416 * commands/efi/acpi.c: likewise
11417 * include/grub/acpi.h: likewise
11418 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
11419 (acpi_mod_SOURCES): new variable
11420 (acpi_mod_CFLAGS): likewise
11421 (acpi_mod_LDFLAGS): likewise
11422 * conf/i386-efi.rmk: likewise
11423 * conf/x86_64-efi.rmk: likewise
11425 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11427 Missing part from mmap patch
11429 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
11430 (grub_mmap_unregister)
11431 (grub_mmap_free_and_unregister): use grub_mmap_register
11433 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11437 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
11438 * loader/i386/linux.c (find_mmap_size): likewise
11439 (allocate_pages): likewise
11440 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
11441 (grub_fill_multiboot_mmap): likewise
11442 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
11443 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
11444 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
11445 (OPENBSD_MMAP_RESERVED): likewise
11446 * include/grub/i386/pc/memory.h: include grub/memory.h
11447 (grub_lower_mem): removed
11448 (grub_upper_mem): likewise
11449 (GRUB_MACHINE_MEMORY_ACPI): new definition
11450 (GRUB_MACHINE_MEMORY_NVS): likewise
11451 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
11452 (GRUB_MACHINE_MEMORY_HOLE): likewise
11453 (grub_machine_mmap_register): likewise
11454 (grub_machine_mmap_unregister): likewise
11455 (grub_machine_get_upper): likewise
11456 (grub_machine_get_lower): likewise
11457 (grub_machine_get_post64): likewise
11458 * include/grub/i386/efi/memory.h: new file
11459 * include/grub/x86_64/efi/memory.h: likewise
11460 * include/grub/efi/memory.h: likewise
11461 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
11462 (mmap_mod_SOURCES): new variable
11463 (mmap_mod_LDFLAGS): likewise
11464 (mmap_mod_ASFLAGS): likewise
11465 * conf/i386-coreboot.rmk: likewise
11466 * conf/i386-ieee1275.rmk: likewise
11467 * conf/i386-efi.rmk: likewise
11468 * conf/x86_64-efi.rmk: likewise
11469 * include/grub/types.h (UINT_TO_PTR): new macro
11470 (PTR_TO_UINT32): likewise
11471 (PTR_TO_UINT64): likewise
11472 * include/grub/memory.h: new file
11473 * mmap/i386/pc/mmap.c: likewise
11474 * mmap/i386/pc/mmap_helper.S: likewise
11475 * mmap/i386/uppermem.c: likewise
11476 * mmap/mmap.c: likewise
11477 * mmap/efi/mmap.c: likewise
11478 * kern/i386/coreboot/init.c (grub_machine_init): don't use
11480 * kern/i386/pc/init.c (grub_lower_mem): removed variable
11481 (grub_upper_mem): likewise
11482 (grub_machine_init): don't use grub_upper_mem,
11483 make grub_lower_mem local
11484 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
11485 grub_mmap_iterate and grub_mmap_get_upper
11486 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
11488 2009-05-02 Bean <bean123ch@gmail.com>
11490 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
11491 script/sh/parser.y.
11492 (pkglib_MODULES): Add normal.mod and sh.mod.
11493 (normal_SOURCES): New variable.
11494 (normal_mod_CFLAGS): Likewise.
11495 (normal_mod_LDFLAGS): Likewise.
11496 (sh_mod_SOURCES): Likewise.
11497 (sh_mod_CFLAGS): Likewise.
11498 (sh_mod_LDFLAGS): Likewise.
11500 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
11501 script/sh/lexer.c_DEPENDENCIES.
11502 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
11503 kern/rescue_reader.c and kern/rescue_parser.c.
11504 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
11505 (grub_emu_SOURCES): Change source files.
11506 (pkglib_MODULES): Remove normal.mod.
11507 (normal_SOURCES): Removed.
11508 (normal_mod_CFLAGS): Likewise.
11509 (normal_mod_LDFLAGS): Likewise.
11510 * conf/i386-coreboot.rmk: Likewise.
11511 * conf/i386-efi.rmk: Likewise.
11512 * conf/i386-ieee1276.rmk: Likewise.
11513 * conf/powerpc-ieee1275.rmk: Likewise.
11514 * conf/sparc64-ieee1275.rmk: Likewise.
11515 * conf/x86_64-efi.rmk: Likewise.
11517 * include/grub/command.h (grub_command_execute): New inline function.
11519 * include/grub/menu.h (grub_menu_entry): Removed commands field.
11521 * include/grub/normal.h: Remove <grub/setjmp.h>.
11522 (grub_fs_module_list): Moved to normal/autofs.c.
11523 (grub_exit_env): Removed.
11524 (grub_command_execute): Likewise.
11525 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
11527 (read_command_list): New function declaration.
11528 (read_fs_list): Likewise.
11530 * include/parser.h: Include <grub/reader.h>.
11531 (grub_parser_split_cmdline): Change type of getline parameter.
11532 (grub_parser): New structure.
11533 (grub_parser_class): New variable.
11534 (grub_parser_execute): New function declaration.
11535 (grub_register_rescue_parser): Likewise.
11536 (grub_parser_register): New inline function.
11537 (grub_parser_unregister): Likewise.
11538 (grub_parser_get_current): Likewise.
11539 (grub_parser_set_current): Likewise.
11541 * include/grub/reader.h: New file.
11542 * kern/reader.c: Likewise.
11543 * kern/rescue_parser.c: Likewise.
11544 * kern/rescue_reader.c: Likewise.
11545 * normal/autofs.c: Likewise.
11546 * normal/dyncmd.c: Likewise.
11548 * include/grub/rescue.h: Removed.
11549 * normal/command.h: Likewise.
11551 * include/grub/script.h: Moved to ...
11552 * include/grub/script_sh.h: ... Moved here.
11553 * normal/execute.c: Moved to ...
11554 * script/sh/execute.c: ... Moved here.
11555 * normal/function.c: Moved to ...
11556 * script/sh/function.c: ... Moved here.
11557 * normal/lexer.c: Moved to ...
11558 * script/sh/lexer.c: ... Moved here.
11559 * normal/parser.y: Moved to ...
11560 * script/sh/parser.y: ... Moved here.
11561 * normal/script.c: Moved to ...
11562 * script/sh/script.c: ... Moved here.
11564 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
11566 (grub_exit_env): Removed.
11567 (fs_module_list): Moved to normal/autofs.c.
11568 (grub_file_getline): Don't handle comment here.
11569 (free_menu): Skip removed field entry->commands.
11570 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
11572 (read_config_file): Removed nested parameter, change getline function.
11573 (grub_enter_normal_mode): Removed.
11574 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
11575 (read_command_list): Likewise.
11576 (autoload_fs_module): Moved to normal/autofs.c.
11577 (read_fs_list): Likewise.
11578 (reader_nested): New variable.
11579 (grub_normal_execute): Run parser.sh to switch to sh parser.
11580 (grub_cmd_rescue): Removed.
11581 (cmd_normal): Removed.
11582 (grub_cmd_normal): Unregister itself at the beginning. Don't register
11584 (grub_cmdline_run): New function.
11585 (grub_normal_reader_init): Likewise.
11586 (grub_normal_read_line): Likewise.
11587 (grub_env_write_pager): Likewise.
11588 (cmdline): New variable.
11589 (grub_normal_reader): Likewise.
11590 (GRUB_MOD_INIT): Register normal reader and set as current, register
11591 pager hook, register normal command with grub_register_command_prio,
11592 so that it won't show up in command.lst.
11593 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
11594 grub_fs_autoload_hook.
11596 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
11597 (grub_menu_execute_entry): Replace grub_script_execute with
11598 grub_parser_execute, change parameter to grub_command_execute.
11600 * normal/menu_text.c: Remove <grub/script.h>.
11602 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
11603 and <grub/parser.h>.
11604 (run): Change editor_getline to use new parser interface. Change
11605 parameter to grub_command_execute.
11607 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
11608 <grub/reader.h> and <grub/parser.h>.
11609 (grub_load_normal_mode): Execute normal command.
11610 (grub_main): Call grub_register_core_commands,
11611 grub_register_rescue_parser and grub_register_rescue_reader, use
11612 grub_reader_loop to enter input loop.
11614 * kern/parser.c (grub_parser_split_cmdline): Change type of
11616 (grub_parser_class): New variable.
11617 (grub_parser_execute): New function.
11619 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
11620 * loader/multiboot2.c: Likewise.
11621 * loader/sparc64/ieee1275/linux.c: Likewise.
11623 * util/grub-emu.c (read_command_list): New dummy function.
11625 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11627 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
11628 count to 16 for CCISS and IDA.
11630 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
11632 * normal/menu_text.c (grub_wait_after_message): Print a newline
11633 after waiting for user input.
11635 * loader/i386/linux.c: Include `<grub/normal.h>'.
11636 (grub_cmd_linux): Improve the error message about `ask' mode, by
11637 waiting for user input so it's not missed (we can do this, since
11638 user requested interaction).
11640 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
11642 Added missing lst to grub-mkrescue
11644 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
11645 and ${input_dir}/parttool.lst
11647 2009-04-30 David S. Miller <davem@davemloft.net>
11649 * util/hostdisk.c (device_is_wholedisk): New function.
11650 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
11651 zero only if device_is_wholedisk() returns true.
11653 * util/hostdisk.c (convert_system_partition_to_system_disk):
11654 Handle virtual disk devices named /dev/vdiskX as found on sparc
11657 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
11658 lettered partition specifier is found, convert to numbered.
11660 2009-04-29 David S. Miller <davem@davemloft.net>
11662 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
11663 * include/grub/sparc64/ieee1275/memory.h: Likewise.
11665 * normal/command.c: Add missing newline at end of file.
11667 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
11669 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
11670 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
11671 grub_ofdisk_read): Likewise, and deal similarly with the fact that
11672 ihandles have a 32-bit type but need to be stored in a "void *".
11674 2009-04-28 Pavel Roskin <proski@gnu.org>
11676 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
11677 not disk. Adjust all dependencies.
11678 (grub_fs_uuid_close): Use grub_device_close(), not
11681 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
11682 parent's partition, don't copy it by reference, as it gets freed
11685 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
11687 Preboot hooks support
11689 * commands/boot.c (struct grub_preboot_t): new declaration
11690 (preboots_head): new variable
11691 (preboots_tail): likewise
11692 (grub_loader_register_preboot_hook): new function
11693 (grub_loader_unregister_preboot_hook): likewise
11694 (grub_loader_set): launch preboot hooks
11695 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
11696 (grub_loader_register_preboot_hook): new declaration
11697 (grub_loader_unregister_preboot_hook): likewise
11699 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
11703 * disk/scsi.c (grub_scsi_open): added missing cast when
11704 calling grub_dprintf
11706 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
11708 Bug and warning fixes
11710 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
11712 * commands/test.c (test_parse): fixed bug with file tests and corrected
11713 declaration of find_file
11715 2009-04-26 Pavel Roskin <proski@gnu.org>
11717 * Makefile.in: Don't install empty manual pages if help2man is
11718 missing. Use help2man option for output, not shell redirection.
11720 2009-04-26 David S. Miller <davem@davemloft.net>
11722 * util/grub-mkdevicemap.c (make_device_map): Add missing
11723 NESTED_FUNC_ATTR to process_device().
11725 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11729 * commands/test.c: rewritten to use bash-like test
11731 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
11733 Parttool autoloading and improvements
11735 * Makefile.in (pkglib_DATA): add parttool.lst
11736 (parttool.lst): new target
11737 * genmk.rb: generate parttool-*
11738 (CLEANFILES): add #{parttool}
11739 (PARTTOOLFILES): new variable
11740 * genparttoollist.sh: new file
11741 * parttool/pcpart.c (grub_pcpart_boot): more feedback
11742 (grub_pcpart_type): likewise
11743 * commands/parttool.c (helpmsg): new variable
11744 (grub_cmd_parttool): output help if not enough arguments are supplied
11746 (GRUB_MOD_INIT(parttool)): use helpmsg
11748 2009-04-24 David S. Miller <davem@davemloft.net>
11750 Avoiding opening same device multiple times in device iterator.
11752 * kern/device.c: (grub_device_iterate): Define struct part_ent,
11753 and use it to build a list of partitions in iterate_disk() and
11754 iterate_partition().
11756 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
11759 * disk/ieee1275/nand.c (grub_nand_iterate): Return
11760 grub_devalias_iterate() result instead of unconditional 0.
11761 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
11762 Also, capture hook return value, either directly or via
11763 grub_children_iterate(), and propagate to caller.
11764 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
11765 grub_children_iterate): Return value is now 'int' instead of
11767 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
11768 like a proper iterator, stopping when hooks return non-zero.
11769 (grub_devalias_iterate): Likewise.
11771 2009-04-23 David S. Miller <davem@davemloft.net>
11773 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
11775 2009-04-22 David S. Miller <davem@davemloft.net>
11777 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
11778 is larger than address_cells, use that value for address_cells too.
11780 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
11781 IEEE1275_MAX_PATH_LEN): Define.
11782 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
11783 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
11784 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
11785 'devtype'. Explicitly NULL terminate devalias expansion.
11787 * util/sparc64/ieee1275/misc.c: New file.
11788 * util/sparc64/ieee1275/grub-setup.c: New file.
11789 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
11790 * util/sparc64/ieee1275/grub-mkimage.c: New file.
11791 * util/sparc64/ieee1275/grub-install.in: New file.
11792 * util/ieee1275/ofpath.c: New file.
11793 * util/ieee1275/devicemap.c: New file.
11794 * util/devicemap.c: New file.
11795 * util/deviceiter.c: New file.
11796 * kern/sparc64/ieee1275/init.c: New file.
11797 * include/grub/util/ofpath.h: New file.
11798 * include/grub/util/deviceiter.h: New file.
11799 * util/grub-mkdevicemap.c: Include deviceiter.h.
11800 Implement using grub_util_emit_devicemap_entry and
11801 grub_util_iterate_devices.
11802 * conf/i386-corebook.rmk: Build util/deviceiter.c and
11803 util/devicemap.c into grub-mkdevicemap
11804 * conf/i386-efi.rmk: Likewise.
11805 * conf/i386-ieee1275.rmk: Likewise.
11806 * conf/i386-pc.rmk: Likewise.
11807 * conf/powerpc-ieee1275.rmk: Likewise.
11808 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
11809 images and installation utilities. Build kernel as image
11810 instead of as elf binary. Use common rules as much as possible.
11812 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
11814 Correct GPT definition
11816 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
11819 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
11821 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
11823 2009-04-19 David S. Miller <davem@davemloft.net>
11825 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
11826 (grub_rescue_cmd_linux): Rename to...
11827 (grub_cmd_linux): and fix prototype.
11828 (grub_rescue_cmd_initrd): Rename to...
11829 (grub_cmd_initrd): and fix prototype.
11830 (cmd_linux, cmd_initrd): New.
11831 (GRUB_MOD_INIT(linux)): Use grub_register_command().
11832 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
11834 2009-04-17 Pavel Roskin <proski@gnu.org>
11836 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
11838 (grub_ohci_transfer): Likewise.
11840 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
11842 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
11843 return without a value. Fix inconsistent indentation.
11845 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
11846 match struct grub_fs.
11848 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
11849 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
11850 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
11851 * commands/lspci.c (grub_lspci_iter): Likewise.
11853 2009-04-16 Bean <bean123ch@gmail.com>
11855 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
11858 2009-04-15 Pavel Roskin <proski@gnu.org>
11860 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
11861 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
11862 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
11865 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
11867 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
11868 that no multiple data or metadata areas are supported and `Unknown
11871 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
11873 Move loader out of the kernel
11875 * kern/loader.c: moved to ...
11876 * commands/boot.c: ... moved here
11877 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
11878 * commands/boot.c (grub_cmd_boot): moved here. All users updated
11879 * include/grub/kernel.h (grub_machine_fini): export
11880 * include/grub/loader.h (grub_loader_is_loaded): update declaration
11881 (grub_loader_set): likewise
11882 (grub_loader_unset): likewise
11883 (grub_loader_boot): likewise
11884 * conf/common.rmk: new module boot.mod
11885 (pkglib_MODULES): add boot.mod
11886 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
11887 (grub_emu_SOURCES): likewise
11888 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
11889 (grub_emu_SOURCES): likewise
11890 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
11891 (grub_emu_SOURCES): likewise
11892 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
11893 (grub_emu_SOURCES): likewise
11894 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
11895 (grub_emu_SOURCES): likewise
11896 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
11897 (grub_emu_SOURCES): likewise
11898 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
11899 (grub_emu_SOURCES): likewise
11901 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
11903 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
11905 * kern/misc.c (grub_itoa): Removed function
11906 (grub_ltoa): likewise
11907 (grub_vsprintf): use grub_lltoa
11909 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
11913 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
11914 * conf/i386-coreboot.rmk: likewise
11915 * conf/i386-ieee1275.rmk: likewise
11916 * conf/powerpc-ieee1275.rmk: likewise
11918 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
11920 * INSTALL: Add that `./autogen.sh' needs to be run before
11923 2009-04-14 Bean <bean123ch@gmail.com>
11925 * Makefile.in (pkglib_DATA): Add handler.lst.
11926 (handler.lst): New rule.
11928 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
11929 * conf/i386-coreboot.rmk: Likewise.
11930 * conf/i386-ieee1275.rmk: Likewise.
11931 * conf/i386-efi.rmk: Likewise.
11932 * conf/x86_64-efi.rmk: Likewise.
11933 * conf/powerpc-ieee1275.rmk: Likewise.
11934 * conf/sparc64-ieee1275.rmk: Likewise.
11936 * genhandlerlist.sh: New file.
11938 * genmk.rb: Add rules to generate handler.lst.
11940 * include/grub/normal.h (grub_file_getline): New function definition.
11941 (read_handler_list): Likewise.
11942 (free_handler_list): Likewise.
11944 * include/grub/term.h (grub_term_register_input): Add name parameter
11945 for auto generation of handler.lst.
11946 (grub_term_register_output): Likewise.
11948 * normal/handler.c: New file.
11950 * normal/main.c (get_line): Renamed to grub_file_getline.
11951 (read_config_file): Use the newly renamed grub_file_getline.
11952 (read_command_list): Likewise.
11953 (read_fs_list): Likewise.
11954 (grub_normal_execute): Call read_handler_list to parse handler.lst.
11955 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
11957 * term/efi/console.c (grub_console_init): Add name parameter for auto
11958 generation of handler.lst.
11959 * term/gfxterm.c: Likewise.
11960 * term/i386/pc/at_keyboard.c: Likewise.
11961 * term/i386/pc/console.c: Likewise.
11962 * term/i386/pc/serial.c: Likewise.
11963 * term/i386/pc/vesafb.c: Likewise.
11964 * term/i386/pc/vga.c: Likewise.
11965 * term/i386/pc/vga_text.c: Likewise.
11966 * term/ieee1275/ofconsole.c: Likewise.
11967 * term/usb_keyboard.c: Likewise.
11969 2009-04-14 Bean <bean123ch@gmail.com>
11971 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
11972 properly with null character.
11974 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
11976 * configure: Remove.
11977 * config.h.in: Likewise.
11978 * stamp-h.in: Likewise.
11979 * DISTLIST: Likewise.
11980 * conf/common.mk: Likewise.
11981 * conf/i386-coreboot.mk: Likewise.
11982 * conf/i386-efi.mk: Likewise.
11983 * conf/i386-ieee1275.mk: Likewise.
11984 * conf/i386.mk: Likewise.
11985 * conf/i386-pc.mk: Likewise.
11986 * conf/powerpc-ieee1275.mk: Likewise.
11987 * conf/sparc64-ieee1275.mk: Likewise.
11988 * conf/x86_64-efi.mk: Likewise.
11990 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
11993 2009-04-14 John Stanley <jpsinthemix@verizon.net>
11994 David S. Miller <davem@davemloft.net>
11996 * util/hostdisk.c (make_device_name): Fix buffer length
11999 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
12001 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
12002 <sys/param.h> and <sys/sysctl.h>.
12003 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
12004 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
12005 opening the device and reset them afterwards.
12007 2009-04-13 Pavel Roskin <proski@gnu.org>
12009 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
12010 Reported by John Stanley <jpsinthemix@verizon.net>
12012 2009-04-13 Robert Millan <rmh@aybabtu.com>
12014 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
12015 that name for menuentries when appropriate.
12017 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12019 * util/grub.d/10_freebsd.in: Add a missing `fi'.
12021 2009-04-13 Robert Millan <rmh@aybabtu.com>
12023 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
12024 to Linux, simply abort telling the user it's no longer supported.
12026 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12028 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
12029 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
12030 `freebsd_loadenv' only when devices.hints exist.
12032 2009-04-13 Pavel Roskin <proski@gnu.org>
12034 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
12036 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
12038 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
12040 (grub_drive): Likewise.
12042 2009-04-13 David S. Miller <davem@davemloft.net>
12044 * kern/sparc64/ieee1275/ieee1275.c: New file.
12045 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
12046 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
12047 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
12048 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
12049 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
12050 grub_ieee1275_alloc_physmem): Declare new exported functions.
12052 * include/grub/sparc64/ieee1275/loader.h: New file.
12053 * include/grub/sparc64/ieee1275/memory.h: Likewise.
12054 * include/grub/sparc64/kernel.h: Likewise.
12055 * loader/sparc64/ieee1275/linux.c: Likewise.
12057 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
12058 (grub_fstest_SOURCES): Likewise.
12060 * util/hostdisk.c (make_device_name): Do not make any assumptions
12061 about the length of drive names.
12063 * kern/dl.c (grub_dl_load_file): Close file immediately when
12064 we are done using it.
12066 2009-04-12 David S. Miller <davem@davemloft.net>
12068 * kern/misc.c (grub_ltoa): Fix cast when handling negative
12069 values. Noticed by Pavel Roskin.
12071 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
12074 * genmk.rb: Add more flexible image type specification, also
12075 pass --strip-unneeded to objcopy.
12076 * conf/i386-pc.rmk: Use *_FORMAT.
12077 * conf/i386-pc.mk: Rebuilt.
12079 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
12080 (OFDISK_HASH_SZ): Define.
12081 (ofdisk_hash): New hash table.
12082 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
12083 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
12084 instead of device phandle which is not unique.
12086 * kern/sparc64/ieee1275/init.c: Delete, replace with...
12087 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
12088 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
12089 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
12090 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
12091 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
12092 GRUB_KERNEL_MACHINE_DATA_END): Define.
12093 (grub_kernel_image_size, grub_total_module_size): Declare.
12095 2009-04-12 Pavel Roskin <proski@gnu.org>
12097 * configure.ac: Change the logic when we check for target tools.
12098 Do it when the target is specified and it's different from the
12099 specified value of the host.
12101 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
12103 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
12104 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
12105 GNU/kFreeBSD. Check if a device is a character device. Use
12106 DIOCGMEDIASIZE to get the size.
12107 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
12108 support for GNU/kFreeBSD.
12109 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
12110 is a character device instead of a block device. Add support for
12111 FreeBSD device names.
12113 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
12114 is a character device instead of a block device.
12116 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
12117 is a character device instead of a block device.
12119 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
12121 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
12122 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
12123 FreeBSD. Check if a device is a character device. Use
12124 DIOCGMEDIASIZE to get the size.
12125 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
12126 support for FreeBSD.
12127 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
12128 is a character device instead of a block device. Add support for
12129 FreeBSD device names.
12131 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
12132 a character device instead of a block device.
12133 (grub_util_check_char_device): New function.
12135 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
12136 a character device instead of a block device.
12138 * include/grub/util/getroot.h (grub_util_check_char_device): New
12141 2009-04-11 David S. Miller <davem@davemloft.net>
12143 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
12145 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
12146 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
12147 function, if present.
12148 (__bswapdi2): Likewise.
12150 * include/grub/sparc64/ieee1275/boot.h: New file.
12151 * boot/sparc64/ieee1275/boot.S: Likewise.
12152 * boot/sparc64/ieee1275/diskboot.S: Likewise.
12154 * kern/misc.c (grub_ltoa): New function.
12155 (grub_vsprintf): Use it to format 'long' integers.
12157 2009-04-10 David S. Miller <davem@davemloft.net>
12159 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
12160 slots are of type grub_ieee1275_cell_t.
12161 (grub_nand_read): Likewise.
12162 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
12163 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
12164 macros are used to compare values in arg/ret block of the call.
12165 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
12166 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
12167 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
12168 grub_ieee1275_instance_to_path, grub_ieee1275_write,
12169 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
12170 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
12171 grub_ieee1275_close, grub_ieee1275_set_property,
12172 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
12173 grub_ieee1275_cell_t.
12174 * kern/ieee1275/openfw.c (grub_map): Likewise.
12175 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
12176 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
12178 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
12179 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12180 (grub_devalias_iterate): Likewise.
12182 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12186 * fs/ufs.c (INODE_NBLOCKS): new definition
12187 (struct grub_ufs_dirent): added fields for non-BSD dirents
12188 (grub_ufs_get_file_block): fixed double indirect handling
12189 (grub_ufs_lookup_symlink): use more robust way to determine whether
12191 (grub_ufs_find_file): support for non-BSD dirents
12192 (grub_ufs_dir): support for non-BSD dirents
12194 2009-04-10 Bean <bean123ch@gnail.com>
12196 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
12197 attribute, otherwise the size would be wrong for i386 platform.
12199 * include/grub/pci.h (grub_pci_read_word): New inline function.
12200 (grub_pci_read_byte): Likewise.
12201 (grub_pci_write): Likewise.
12202 (grub_pci_write_word): Likewise.
12203 (grub_pci_write_byte): Likewise.
12205 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
12207 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
12208 (find_framebuf): Scan pci to locate the frame buffer address.
12210 * commands/efi/fixvideo.c: New file.
12212 * commands/efi/loadbios.c: Likewise.
12214 * commands/memrw.c: Likewise.
12216 * util/grub-dumpbios.in: Likewise.
12218 * conf/common.rmk (grub-dumpbios): New utility.
12219 (pkglib_MODULES): New module memrw.mod.
12220 (memrw_mod_SOURCE): New macro.
12221 (memrw_mod_CFLAGS): Likewise.
12222 (memrw_mod_LDFLAGS): Likewise.
12224 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
12226 (loadbios_mod_SOURCE): New macro.
12227 (loadbios_mod_CFLAGS): Likewise.
12228 (loadbios_mod_LDFLAGS): Likewise.
12229 (fixvideo_mod_SOURCE): Likewise.
12230 (fixvideo_mod_CFLAGS): Likewise.
12231 (fixvideo_mod_LDFLAGS): Likewise.
12233 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
12235 (loadbios_mod_SOURCE): New macro.
12236 (loadbios_mod_CFLAGS): Likewise.
12237 (loadbios_mod_LDFLAGS): Likewise.
12238 (fixvideo_mod_SOURCE): Likewise.
12239 (fixvideo_mod_CFLAGS): Likewise.
12240 (fixvideo_mod_LDFLAGS): Likewise.
12242 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
12244 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
12246 2009-04-07 David S. Miller <davem@davemloft.net>
12248 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
12249 support for R_SPARC_OLO10 relocations. Fix compile warning for
12250 R_SPARC_WDISP30 case.
12251 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
12253 2009-04-06 Pavel Roskin <proski@gnu.org>
12255 * include/grub/misc.h (ARRAY_SIZE): New macro.
12256 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
12258 * loader/i386/linux.c (allocate_pages): Use free_pages().
12259 (grub_linux_unload): Don't use free_pages().
12260 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
12261 wrong index. Treat all other modes as text modes.
12262 (grub_cmd_linux): Initialize vid_mode unconditionally to
12263 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
12265 * commands/help.c (print_command_help): Use cmd->prio, not
12266 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
12268 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12272 * parttool/pcpart.c: new file
12273 * commands/parttool.c: likewise
12274 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
12275 (parttool_mod_SOURCES): new variable
12276 (parttool_mod_CFLAGS): likewise
12277 (parttool_mod_LDFLAGS): likewise
12278 (pcpart_mod_SOURCES): likewise
12279 (pcpart_mod_CFLAGS): likewise
12280 (pcpart_mod_LDFLAGS): likewise
12281 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
12282 and parttool/pcpart.c
12283 * conf/i386-efi.rmk: likewise
12284 * conf/i386-ieee1275.rmk: likewise
12285 * conf/i386-pc.rmk: likewise
12286 * conf/powerpc-ieee1275.rmk: likewise
12287 * conf/sparc64-ieee1275.rmk: likewise
12288 * conf/x86_64-ieee1275.rmk: likewise
12290 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12292 Support for mtime and further expandability of dir command
12294 * include/grub/lib/datetime.h: moved to ...
12295 * include/grub/datetime.h: ... moved here and added
12296 declaration of grub_unixtime2datetime. All users updated
12297 * include/grub/fs.h: new syntax for dir and mtime functions in
12299 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
12300 and GRUB_FSHELP_FLAGS_MASK
12301 * commands/ls.c (grub_ls_list_files): Write mtime in long format
12302 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
12303 (grub_ext2_mtime): new function
12304 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
12305 (grub_hfsplus_mtime): new function
12306 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
12307 (GRUB_UFS_ATTR_FILE): likewise
12308 (GRUB_UFS_ATTR_LNK): likewise
12309 (struct grub_ufs_sblock): new fields mtime
12310 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
12312 (grub_ufs_dir): mtime support
12313 (grub_ufs_mtime): new function
12314 * fs/affs.c (grub_affs_dir): use new dir syntax
12315 * fs/afs.c (grub_afs_dir): likewise
12316 * fs/cpio.c (grub_cpio_dir): likewise
12317 * fs/fat.c (grub_fat_find_dir): likewise
12318 * fs/hfs.c (grub_hfs_dir): likewise
12319 * fs/iso9660.c (grub_iso9660_dir): likewise
12320 * fs/jfs.c (grub_jfs_dir): likewise
12321 * fs/minix.c (grub_minix_dir): likewise
12322 * fs/ntfs.c (grub_ntfs_dir): likewise
12323 * fs/reiserfs.c (grub_reiserfs_dir): likewise
12324 * fs/sfs.c (grub_sfs_dir): likewise
12325 * fs/xfs.c (grub_xfs_dir): likewise
12326 * util/hostfs.c (grub_hostfs_dir): likewise
12327 * lib/datetime.c: moved to ...
12328 * normal/datetime.c: ... moved here
12329 (grub_unixtime2datetime): new function
12330 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
12331 * normal/completion.c (iterate_dir): use new dir syntax
12332 * normal/misc.c (grub_normal_print_device_info): tell the
12333 last modification time of a volume
12334 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
12335 * conf/common.rmk: added lib/datetime.c to ls.mod
12336 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
12337 (normal_mod_SOURCES): likewise
12338 (datetime_mod_SOURCES): Removed lib/datetime.c
12339 * conf/i386-efi.rmk: likewise
12340 * conf/i386-ieee1275.rmk: likewise
12341 * conf/i386-pc.rmk: likewise
12342 * conf/powerpc-ieee1275.rmk: likewise
12343 * conf/sparc64-ieee1275.rmk: likewise
12344 * conf/x86_64-efi.rmk: likewise
12346 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
12348 Trim trailing spaces in FAT label and support mtools-like labels
12350 * fs/fat.c (grub_fat_iterate_dir): New function based
12351 on grub_fat_find_dir
12352 (grub_fat_find_dir): use grub_fat_iterate_dir
12353 (grub_fat_label): likewise
12355 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
12357 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
12359 remove extraneous kernel_elf_HEADERS
12361 2009-04-04 Bean <bean123ch@gnail.com>
12363 * include/grub/util/misc.h: Add dummy function fsync for mingw.
12365 * util/misc.c: Likewise.
12367 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
12369 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
12370 instead of grub_printf.
12372 2009-04-03 Robert Millan <rmh@aybabtu.com>
12374 * loader/i386/linux.c (grub_linux_setup_video): Fill
12375 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
12376 values from `mode info' structure instead of hardcoded
12379 2009-04-01 Pavel Roskin <proski@gnu.org>
12381 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
12383 * genmk.rb: Likewise.
12384 * configure.ac: Likewise.
12386 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
12388 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
12389 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
12391 2009-04-01 David S. Miller <davem@davemloft.net>
12393 * normal/sparc64/setjmp.S: Fix setjmp implementation.
12394 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
12395 (grub_setjmp): Mark with 'returns_twice' attribute.
12396 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
12397 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
12398 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
12400 2009-04-01 Robert Millan <rmh@aybabtu.com>
12402 Reapply fix from 2008-07-28 which was accidentally reverted; also
12403 perform the same fix to a similar check in same function.
12405 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
12406 with the same number are found, just use issue a warning with
12407 grub_dprintf(), as this error has been reported to be non-fatal.
12409 2009-03-31 Pavel Roskin <proski@gnu.org>
12411 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
12412 for cross-compilation.
12414 2009-03-30 Robert Millan <rmh@aybabtu.com>
12416 Fix i386-ieee1275 build.
12418 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
12419 Remove declaration.
12421 2009-03-30 Pavel Roskin <proski@gnu.org>
12423 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
12424 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
12425 zero-terminated, rely only on the strlen value. Fix comparison
12426 of strings differing in length.
12428 2009-03-30 Robert Millan <rmh@aybabtu.com>
12430 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
12431 checking for abi version. Improve error messages on BIOS to notify
12432 user about `linux16' command.
12434 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
12438 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
12439 in case of collision
12440 * disk/scsi.c (grub_scsi_open): free scsi in case of error
12442 2009-03-29 Robert Millan <rmh@aybabtu.com>
12444 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
12445 set `vid_mode' accordingly.
12446 (grub_linux_boot): Process `vid_mode' and set video mode.
12448 2009-03-29 Robert Millan <rmh@aybabtu.com>
12450 * util/grub.d/10_linux.in (linux_entry): New function.
12451 Factorize generation of Linux boot entries.
12453 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
12455 Make the format of Environment Block plain text. The boot loader
12456 part is not tested well yet.
12458 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
12460 (envblk): Likewise.
12461 (usage): Remove "info" and "clear". Add "unset". Update the
12462 description of "set", as this does not delete variables any
12464 (create_envblk_file): Complete rewrite.
12465 (open_envblk_file): Likewise.
12466 (cmd_info): Removed.
12467 (cmd_list): Likewise.
12468 (cmd_set): Likewise.
12469 (cmd_clear): Likewise.
12470 (list_variables): New function.
12471 (write_envblk): Likewise.
12472 (set_variables): Likewise.
12473 (unset_variables): Likewise.
12474 (main): Complete rewrite.
12476 * commands/loadenv.c (buffer): Removed.
12477 (envblk): Likewise.
12478 (open_envblk_file): New function.
12479 (read_envblk_file): Complete rewrite.
12480 (grub_cmd_load_env): Likewise.
12481 (grub_cmd_list_env): Likewise.
12482 (struct blocklist): New struct.
12483 (free_blocklists): New function.
12484 (check_blocklists): Likewise.
12485 (write_blocklists): Likewise.
12486 (grub_cmd_save_env): Complete rewrite.
12488 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
12489 a plain text signature.
12490 (GRUB_ENVBLK_MAXLEN): Removed.
12491 (struct grub_envblk): Complete rewrite.
12492 (grub_envblk_find): Removed.
12493 (grub_envblk_insert): Likewise.
12494 (grub_envblk_open): New prototype.
12495 (grub_envblk_set): Likewise.
12496 (grub_envblk_delete): Put const to VALUE.
12497 (grub_envblk_iterate): Put const to NAME and VALUE.
12498 (grub_envblk_close): New prototype.
12499 (grub_envblk_buffer): New inline function.
12500 (grub_envblk_size): Likewise.
12502 * lib/envblk.c: Include grub/mm.h.
12503 (grub_env_find): Removed.
12504 (grub_envblk_open): New function.
12505 (grub_envblk_close): Likewise.
12506 (escaped_value_len): Likewise.
12507 (find_next_line): Likewise.
12508 (grub_envblk_insert): Removed.
12509 (grub_envblk_set): New function.
12510 (grub_envblk_delete): Complete rewrite.
12511 (grub_envblk_iterate): Likewise.
12513 2009-03-28 Robert Millan <rmh@aybabtu.com>
12515 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
12516 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
12517 variables. Use 16-bit loader.
12518 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
12520 * kern/i386/loader.S (grub_linux_boot): Rename to ...
12521 (grub_linux16_boot): ... this. Update all users.
12522 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
12523 (grub_linux_boot): ... this. Update all users.
12525 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
12526 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
12527 commands to `linux16' and `initrd16'.
12528 (GRUB_MOD_FINI(linux)): Rename to ...
12529 (GRUB_MOD_FINI(linux16)): ... this.
12531 2009-03-24 Pavel Roskin <proski@gnu.org>
12533 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
12534 not just for compilation.
12536 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
12538 Move multiboot helper out of kernel
12540 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
12541 `loader/i386/multiboot_helper.S'.
12542 * conf/i386-coreboot.rmk: Likewise
12543 * conf/i386-ieee1275.rmk: Likewise
12545 * kern/i386/loader.S: Move multiboot helpers from here...
12546 * loader/i386/multiboot_helper.S: ...moved here
12547 * include/grub/i386/loader.h: Move declarations of multiboot
12548 helpers from here...
12549 * include/grub/i386/multiboot.h: ...moved here
12550 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
12552 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12554 * kern/env.c (grub_env_context_open): Added an argument to specify
12555 whether a new context inherits exported variables from current
12556 one. This is useful when making a sandbox to interpret a config
12558 All callers updated.
12560 * include/grub/env.h (grub_env_context_open): Updated the prototype.
12562 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12564 * kern/env.c (grub_env_context_close): Fix memory leaks.
12566 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
12568 * normal/main.c (grub_normal_execute): Added an argument
12569 BATCH to specify if an interactive interface should be provided
12570 after reading a config file.
12571 All callers updated.
12572 (read_command_list): Prevent being executed twice.
12573 (read_fs_list): Likewise.
12575 * include/grub/normal.h (grub_normal_execute): Updated the
12578 2009-03-22 Pavel Roskin <proski@gno.org>
12580 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
12582 * kern/i386/pc/startup.S: Likewise.
12583 * kern/i386/efi/startup.S: Likewise.
12584 * kern/i386/ieee1275/startup.S: Likewise.
12585 * kern/i386/coreboot/startup.S: Likewise.
12586 * kern/x86_64/efi/startup.S: Likewise.
12588 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
12589 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
12590 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
12592 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
12594 Bugfixes in multiboot for bugs uncovered by solaris kernel.
12596 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
12598 Use vaddr of correct segment for entry_point.
12600 2009-03-21 Bean <bean123ch@gmail.com>
12602 * commands/blocklist.c: Add include file <grub/command.h>, remove
12603 <grub/normal.h> and <grub/arg.h>.
12604 (grub_cmd_blocklist): Use the new command interface.
12605 (GRUB_MOD_INIT): Likewise.
12606 (GRUB_MOD_FINI): Likewise.
12607 * commands/boot.c: Likewise.
12608 * commands/cat.c: Likewise.
12609 * commands/cmp.c: Likewise.
12610 * commands/configfile.c: Likewise.
12611 * commands/crc.c: Likewise.
12612 * commands/echo.c: Likewise.
12613 * commands/halt.c: Likewise.
12614 * commands/handler.c: Likewise.
12615 * commands/hdparm.c: Likewise.
12616 * commands/help.c: Likewise.
12617 * commands/hexdump.c: Likewise.
12618 * commands/loadenv.c: Likewise.
12619 * commands/ls.c: Likewise.
12620 * commands/lsmmap.c: Likewise.
12621 * commands/lspci.c: Likewise.
12622 * commands/loadenv.c: Likewise.
12623 * commands/read.c: Likewise.
12624 * commands/reboot.c: Likewise.
12625 * commands/search.c: Likewise.
12626 * commands/sleep.c: Likewise.
12627 * commands/test.c: Likewise.
12628 * commands/usbtest.c: Likewise.
12629 * commands/videotest.c: Likewise.
12630 * commands/i386/cpuid.c: Likewise.
12631 * commands/i386/pc/halt.c: Likewise.
12632 * commands/i386/pc/play.c: Likewise.
12633 * commands/i386/pc/pxecmd.c: Likewise.
12634 * commands/i386/pc/vbeinfo.c: Likewise.
12635 * commands/i386/pc/vbetest.c: Likewise.
12636 * commands/ieee1275/suspend.c: Likewise.
12637 * disk/loopback.c: Likewise.
12638 * font/font_cmd.c: Likewise.
12639 * hello/hello.c: Likewise.
12640 * loader/efi/appleloader.c: Likewise.
12641 * loader/efi/chainloader.c: Likewise.
12642 * loader/i386/bsd.c: Likewise.
12643 * loader/i386/efi/linux.c: Likewise.
12644 * loader/i386/ieee1275/linux.c: Likewise.
12645 * loader/i386/linux.c: Likewise.
12646 * loader/i386/pc/chainloader.c: Likewise.
12647 * loader/i386/pc/linux.c: Likewise.
12648 * loader/powerpc/ieee1275/linux.c: Likewise.
12649 * loader/multiboot_loader.c: Likewise.
12650 * term/gfxterm.c: Likewise.
12651 * term/i386/pc/serial.c: Likewise.
12652 * term/terminfo.c: Likewise.
12654 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
12655 * term/i386/pc/vga.c: Likewise.
12656 * video/readers/jpeg.c: Likewise.
12657 * video/readers/png.c: Likewise.
12658 * video/readers/tga.c: Likewise.
12660 * util/grub-fstest (cmd_loopback): Removed.
12661 (cmd_blocklist): Likewise.
12662 (cmd_ls): Likewise.
12663 (grub_register_command): Likewise.
12664 (grub_unregister_command): Likewise.
12665 (execute_command): Use grub_command_find to locate command and execute
12668 * include/grub/efi/chainloader.h: Removed.
12669 * loader/efi/chainloader_normal.c: Likewise.
12670 * loader/i386/bsd_normal.c: Likewise.
12671 * loader/i386/pc/chainloader_normal.c: Likewise.
12672 * loader/i386/pc/multiboot_normal.c: Likewise.
12673 * loader/linux_normal.c: Likewise.
12674 * loader/multiboot_loader_normal.c: Likewise.
12675 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
12677 * gencmdlist.sh: Scan new registration command grub_register_extcmd
12678 and grub_register_command_p1.
12680 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
12681 kern/command.c, lib/arg.c and commands/extcmd.c.
12682 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
12683 (minicmd_mod_SOURCES): New variable.
12684 (minicmd_mod_CFLAGS): Likewise.
12685 (minicmd_mod_LDFLAGS): Likewise.
12686 (extcmd_mod_SOURCES): Likewise.
12687 (extcmd_mod_CFLAGS): Likewise.
12688 (extcmd_mod_LDFLAGS): Likewise.
12689 (boot_mod_SOURCES): Removed.
12690 (boot_mod_CFLAGS): Likewise.
12691 (boot_mod_LDFLAGS): Likewise.
12693 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
12695 (kernel_img_HEADERS): Add command.h.
12696 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
12697 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
12699 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
12700 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
12701 remove the corresponding normal mode command.
12702 (normal_mod_SOURCES): Remove normal/arg.c.
12703 * conf/i386-coreboot.rmk: Likewise.
12704 * conf/i386-efi.rmk: Likewise.
12705 * conf/i386-ieee1275.rmk: Likewise.
12706 * conf/powerpc-ieee1275.rmk: Likewise.
12707 * conf/x86_64-efi.rmk: Likewise.
12709 * include/grub/arg.h: Move from here ...
12710 * include/grub/lib/arg.h: ... to here.
12712 * normal/arg.c: Move from here ...
12713 * lib/arg.c: ... to here.
12715 * commands/extcmd.c: New file.
12716 * commands/minicmd.c: Likewise.
12717 * include/grub/command.h: Likewise.
12718 * include/grub/extcmd.h: Likewise.
12719 * kern/command.c: Likewise.
12720 * kern/corecmd.c: Likewise.
12722 * kern/list.c (grub_list_iterate): Return int instead of void.
12723 (grub_list_insert): New function.
12724 (grub_prio_list_insert): Likewise.
12726 * kern/rescue.c (grub_rescue_command): Removed.
12727 (grub_rescue_command_list): Likewise.
12728 (grub_rescue_register_command): Likewise.
12729 (grub_rescue_unregister_command): Likewise.
12730 (grub_rescue_cmd_boot): Move to minicmd.c
12731 (grub_rescue_cmd_help): Likewise.
12732 (grub_rescue_cmd_info): Likewise.
12733 (grub_rescue_cmd_boot): Likewise.
12734 (grub_rescue_cmd_testload): Likewise.
12735 (grub_rescue_cmd_dump): Likewise.
12736 (grub_rescue_cmd_rmmod): Likewise.
12737 (grub_rescue_cmd_lsmod): Likewise.
12738 (grub_rescue_cmd_exit): Likewise.
12739 (grub_rescue_print_devices): Moved to corecmd.c.
12740 (grub_rescue_print_files): Likewise.
12741 (grub_rescue_cmd_ls): Likewise.
12742 (grub_rescue_cmd_insmod): Likewise.
12743 (grub_rescue_cmd_set): Likewise.
12744 (grub_rescue_cmd_unset): Likewise.
12745 (attempt_normal_mode): Use grub_command_find to get normal module.
12746 (grub_enter_rescue_mode): Use grub_register_core_commands to register
12747 commands, remove grub_rescue_register_command calls.
12749 * normal/command.c (grub_register_command): Removed.
12750 (grub_unregister_command): Likewise.
12751 (grub_command_find): Likewise.
12752 (grub_iterate_commands): Likewise.
12753 (rescue_command): Likewise.
12754 (export_command): Moved to corecmd.c.
12755 (set_command): Removed.
12756 (unset_command): Likewise.
12757 (insmod_command): Likewise.
12758 (rmmod_command): Likewise.
12759 (lsmod_command): Likewise.
12760 (grub_command_init): Likewise.
12762 * normal/completion.c (iterate_command): Use cmd->prio to check for
12764 (complete_arguments): Use grub_extcmd_t structure to find options.
12765 (grub_normal_do_completion): Change function grub_iterate_commands to
12766 grub_command_iterate.
12768 * normal/execute.c (grub_script_execute_cmd): No need to parse
12771 * normal/main.c (grub_dyncmd_dispatcher): New function.
12772 (read_command_list): Register unload commands as dyncmd.
12773 (grub_cmd_normal): Use new command interface, register rescue,
12774 unregister normal at entry, register normal, unregister rescue at exit.
12776 * include/grub/list.h (grub_list_test_t): New type.
12777 (grub_list_iterate): Return int instead of void.
12778 (grub_list_insert): New function.
12779 (GRUB_AS_NAMED_LIST_P): New macro.
12780 (GRUB_AS_PRIO_LIST): Likewise.
12781 (GRUB_AS_PRIO_LIST_P): Likewise.
12782 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
12783 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
12784 (grub_prio_list): New structure.
12785 (grub_prio_list_insert): New function.
12786 (grub_prio_list_remove): New inline function.
12788 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
12789 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
12790 (GRUB_COMMAND_FLAG_MENU): Likewise.
12791 (GRUB_COMMAND_FLAG_BOTH): Likewise.
12792 (GRUB_COMMAND_FLAG_TITLE): Likewise.
12793 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
12794 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
12795 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
12796 (grub_command): Likewise.
12797 (grub_register_command): Likewise.
12798 (grub_command_find): Likewise.
12799 (grub_iterate_commands): Likewise.
12800 (grub_command_init): Likewise.
12801 (grub_arg_parse): Likewise.
12802 (grub_arg_show_help): Likewise.
12804 * include/grub/rescue.h (grub_rescue_register_command): Removed.
12805 (grub_rescue_unregister_command): Likewise.
12807 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
12808 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
12809 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
12811 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
12812 grub_rescue_cmd_initrd.
12813 * include/grub/i386/loader.h: Likewise.
12814 * include/grub/x86_64/loader.h: Likewise.
12816 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
12818 2009-03-21 Bean <bean123ch@gmail.com>
12820 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
12821 instead of stat in mingw environment.
12823 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
12825 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
12827 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
12830 2009-03-21 Bean <bean123ch@gmail.com>
12832 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
12833 out of range error.
12835 2009-03-18 Michel Dänzer <michel@daenzer.net>
12837 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
12838 checking inode flags for EXT4_EXTENTS_FLAG.
12840 2009-03-18 Robert Millan <rmh@aybabtu.com>
12842 * loader/i386/linux.c: Include `<grub/video.h>' and
12843 `<grub/i386/pc/vbe.h>'..
12844 (grub_linux_setup_video): New function. Loosely based on the EFI one.
12845 (grub_linux32_boot): Attempt to configure video settings with
12846 grub_linux_setup_video().
12847 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
12848 to avoid grub_console_fini() which would step out of graphical mode
12851 2009-03-14 Robert Millan <rmh@aybabtu.com>
12853 Fix build on powerpc.
12854 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
12856 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
12858 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
12859 background image command.
12861 2009-03-12 Colin D Bennett <colin@gibibit.com>
12863 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
12864 (grub_gfxterm_putchar): Extract pairs of identical calls to
12865 draw_cursor out of conditional blocks.
12867 2009-03-11 Pavel Roskin <proski@gnu.org>
12869 * fs/hfs.c (grub_hfs_strncasecmp): New function.
12870 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
12872 2009-03-11 Robert Millan <rmh@aybabtu.com>
12874 * loader/i386/multiboot_elfxx.c
12875 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
12877 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
12879 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
12882 2009-03-11 Robert Millan <rmh@aybabtu.com>
12884 * loader/i386/multiboot.c (code_size): New variable.
12885 (grub_multiboot): Define offsets by adding to `code_size' rather
12886 than subtracting from `grub_multiboot_payload_size'. Provide
12887 4-byte alignment to MBI and others by increasing
12888 `boot_loader_name_length' appropriately.
12890 * loader/i386/multiboot_elfxx.c
12891 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
12893 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
12895 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
12898 2009-03-08 Robert Millan <rmh@aybabtu.com>
12900 Make loader/i386/linux.c usable on i386-pc again.
12902 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
12904 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
12907 2009-03-07 Bean <bean123ch@gmail.com>
12909 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
12912 2009-03-06 Robert Millan <rmh@aybabtu.com>
12914 Fix display issue on terminals with screen size other than 80x25
12915 (e.g. gfxterm with resolution higher than 640x480).
12917 * normal/main.c (grub_normal_init_page): Display title text in a
12918 position relative to the center of the terminal instead of relying
12919 on a hardcoded offset.
12921 2009-03-04 Robert Millan <rmh@aybabtu.com>
12923 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
12926 * Makefile.in (host_kernel): New variable.
12927 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
12928 scripts instead of just the windows one.
12929 * configure.ac: Initialize and AC_SUBST `host_kernel'.
12931 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
12933 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
12935 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
12936 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12937 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
12938 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12939 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12940 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12942 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
12944 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
12945 or if there's no space for the disk label and print the partition number on a
12948 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
12950 * util/misc.c: Include <time.h>.
12951 (grub_millisleep): New function.
12953 2009-03-04 Bean <bean123ch@gmail.com>
12955 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
12956 another option -mno-red-zone.
12958 * commands/handler.c: Change module description.
12960 * kern/handler.c: Add missing space at the end of description line.
12962 * kern/list.c: Likewise.
12964 2009-03-03 Robert Millan <rmh@aybabtu.com>
12966 Move more components to the relocation area, and fix mbi pointer
12967 handling to use the destination rather than the origin (thanks to
12968 Vladimir Serbinenko for spotting).
12970 * loader/i386/multiboot.c (mbi_dest): New variable.
12971 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
12972 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
12975 2009-03-01 Bean <bean123ch@gmail.com>
12977 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
12978 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
12979 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
12980 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
12982 * loader/i386/efi/linux.c (acpi_guid): New variable.
12983 (acpi_guid): Likewise.
12984 (EBDA_SEG_ADDR): New constant.
12985 (LOW_MEM_ADDR): Likewise.
12986 (FAKE_EBDA_SEG): Likewise.
12987 (fake_bios_data): New function.
12988 (grub_linux_boot): Call fake_bios_data.
12990 2009-03-01 Bean <bean123ch@gmail.com>
12992 * commands/terminal.c: Removed.
12994 * commands/handler.c: New file.
12996 * include/grub/list.h: Likewise.
12998 * include/grub/handler.h: Likewise.
13000 * kern/list.c: Likewise.
13002 * kern/handler.c: Likewise.
13004 * kern/term.h: Include header file <grub/handler.h>.
13005 (grub_term_input): Move next field to the beginning.
13006 (grub_term_output): Likewise.
13007 (grub_term_input_class): New variable.
13008 (grub_term_output_class): Likewise.
13009 (grub_term_register_input): Changed to inline function.
13010 (grub_term_register_output): Likewise.
13011 (grub_term_unregister_input): Likewise.
13012 (grub_term_unregister_output): Likewise.
13013 (grub_term_set_current_input): Likewise.
13014 (grub_term_set_current_output): Likewise.
13015 (grub_term_get_current_input): Likewise.
13016 (grub_term_get_current_output): Likewise.
13017 (grub_term_iterate_input): Removed.
13018 (grub_term_iterate_output): Likewise.
13020 * kern/term.c (grub_term_list_input): Removed.
13021 (grub_term_list_output): Likewise.
13022 (grub_term_input_class): New variable.
13023 (grub_term_output_class): Likewise.
13024 (grub_cur_term_input): Change variable as macro.
13025 (grub_cur_term_output): Likewise.
13026 (grub_term_register_input): Removed.
13027 (grub_term_register_output): Likewise.
13028 (grub_term_unregister_input): Likewise.
13029 (grub_term_unregister_output): Likewise.
13030 (grub_term_set_current_input): Likewise.
13031 (grub_term_set_current_output): Likewise.
13032 (grub_term_iterate_input): Likewise.
13033 (grub_term_iterate_output): Likewise.
13034 (grub_term_get_current_input): Likewise.
13035 (grub_term_get_current_output): Likewise.
13037 * util/grub-editenv.c: Include header file <grub/handler.h>.
13038 (grub_term_get_current_input): Removed.
13039 (grub_term_get_current_output): Likewise.
13040 (grub_term_input_class): New variable.
13041 (grub_term_output_class): Likewise.
13043 * util/grub-fstest.c (grub_term_get_current_input): Removed.
13044 (grub_term_get_current_output): Likewise.
13045 (grub_term_input_class): New variable.
13046 (grub_term_output_class): Likewise.
13048 * util/grub-probe.c (grub_term_get_current_input): Removed.
13049 (grub_term_get_current_output): Likewise.
13050 (grub_term_input_class): New variable.
13051 (grub_term_output_class): Likewise.
13053 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
13054 (grub_term_get_current_output): Likewise.
13055 (grub_term_input_class): New variable.
13056 (grub_term_output_class): Likewise.
13058 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
13059 (terminal_mod_SOURCES): Likewise.
13060 (terminal_mod_CFLAGS): Likewise.
13061 (terminal_mod_LDFLAGS): Likewise.
13063 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
13065 (kernel_img_SOURCES): Add list.c and handler.c.
13066 (kernel_img_HEADERS): Add list.h and handler.h.
13068 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13070 (kernel_mod_SOURCES): Add list.c and handler.c.
13071 (kernel_mod_HEADERS): Add list.h and handler.h.
13073 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
13075 (kernel_elf_SOURCES): Add list.c and handler.c.
13076 (kernel_elf_HEADERS): Add list.h and handler.h.
13078 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13080 (kernel_elf_SOURCES): Add list.c and handler.c.
13081 (kernel_elf_HEADERS): Add list.h and handler.h.
13083 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
13085 (kernel_mod_SOURCES): Add list.c and handler.c.
13086 (kernel_mod_HEADERS): Add list.h and handler.h.
13088 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
13090 (kernel_elf_SOURCES): Add list.c and handler.c.
13091 (kernel_elf_HEADERS): Add list.h and handler.h.
13093 2009-02-27 Robert Millan <rmh@aybabtu.com>
13095 Factorize elf32 / elf64 code in Multiboot loader. This will
13096 prevent it from getting out of sync again.
13098 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
13099 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
13100 grub_multiboot_load_elf64): Move from here ...
13101 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
13102 grub_multiboot_load_elf): ... to here (new file).
13104 2009-02-27 Robert Millan <rmh@aybabtu.com>
13106 * util/grub.d/10_linux.in: Rename "single-user mode" to
13109 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
13111 Don't leak in SCSI code.
13112 * disk/scsi.c (grub_scsi_close): free `scsi'.
13114 2009-02-27 Robert Millan <rmh@aybabtu.com>
13116 * loader/i386/pc/multiboot.c: Move from here ...
13117 * loader/i386/multiboot.c: ... to here. Update all users.
13119 2009-02-27 Robert Millan <rmh@aybabtu.com>
13121 Patch from Alexandre Bique <bique.alexandre@gmail.com>
13122 * util/i386/pc/grub-setup.c (setup): Fix directory path.
13124 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
13126 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
13129 2009-02-27 Robert Millan <rmh@aybabtu.com>
13131 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
13132 `0x' qualifier as 0 when base is specified as parameter).
13134 2009-02-24 Bean <bean123ch@gmail.com>
13136 * configure.ac: Check for -mcmodel=large in x86_64 target.
13138 * include/grub/efi/api.h (efi_call_10): New macro.
13139 (efi_wrap_10): New function.
13141 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
13142 (GRUB_PE32_REL_BASED_HIGH): Likewise.
13143 (GRUB_PE32_REL_BASED_LOW): Likewise.
13144 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
13145 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
13146 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
13147 (GRUB_PE32_REL_BASED_SECTION): Likewise.
13148 (GRUB_PE32_REL_BASED_REL): Likewise.
13149 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
13150 (GRUB_PE32_REL_BASED_DIR64): Likewise.
13151 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
13153 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
13156 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
13157 (efi_wrap_10): New function.
13159 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
13161 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
13162 MB/MBP model (NV chipset).
13163 (devdata_devs): Add devpath_5 to the list.
13165 * load/i386/efi/linux.c (video_base): Remove variable.
13166 (RGB_MASK): New macro.
13167 (RGB_MAGIC): Likewise.
13168 (LINE_MIN): Likewise.
13169 (LINE_MAX): Likewise.
13170 (FBTEST_STEP): Likewise.
13171 (FBTEST_COUNT): Likewise.
13172 (fb_list): New variable.
13173 (grub_find_video_card): Remove function.
13174 (find_framebuf): New function.
13175 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
13178 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
13179 problem for x86_64.
13181 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
13183 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
13185 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
13188 2009-02-22 Robert Millan <rmh@aybabtu.com>
13190 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
13191 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
13192 in our relocation, instead of using it directly from heap. Also
13193 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
13195 2009-02-21 Robert Millan <rmh@aybabtu.com>
13197 Implement USB keyboard support (based on patch by Marco Gerards)
13199 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
13200 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
13201 (usb_keyboard_mod_LDFLAGS): New variables.
13203 * term/usb_keyboard.c: New file.
13205 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
13207 Corrected wrong declaration
13209 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
13211 2009-02-14 Christian Franke <franke@computer.org>
13213 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
13214 (grub_lspci_iter): Print class code and programming interface byte.
13216 2009-02-14 Christian Franke <franke@computer.org>
13218 * gendistlist.sh: Ignore `.svn' directories.
13220 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
13222 * fs/fat.c: Add 2009 to Copyright line.
13224 2009-02-14 Christian Franke <franke@computer.org>
13226 * commands/hdparm.c: New file. Provides `hdparm' command
13227 which sends ATA commands via grub_disk_ata_pass_through ().
13229 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
13231 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
13232 and <grub/cpu/io.h> to include/grub/ata.h.
13233 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
13234 (GRUB_CDROM_SECTOR_SIZE): Remove.
13235 (GRUB_ATA_*): Move to include/grub/ata.h.
13236 (GRUB_ATAPI_*): Likewise.
13237 (enum grub_ata_commands): Likewise.
13238 (enum grub_ata_timeout_milliseconds): Likewise.
13239 (struct grub_ata_device): Likewise.
13240 (grub_ata_regset): Likewise.
13241 (grub_ata_regget): Likewise.
13242 (grub_ata_regset2): Likewise.
13243 (grub_ata_regget2): Likewise.
13244 (grub_ata_check_ready): Likewise.
13245 (grub_ata_wait_not_busy): Remove static, exported in
13246 include/grub/ata.h.
13247 (grub_ata_wait_drq): Likewise.
13248 (grub_ata_pio_read): Likewise.
13250 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
13251 function for hdparm.mod.
13253 * include/grub/ata.h: New file, contains declarations from
13255 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
13257 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
13258 (grub_disk_ata_pass_through): New exported variable.
13260 * kern/disk.c (grub_disk_ata_pass_through): New variable.
13262 2009-02-13 Colin D Bennett <colin@gibibit.com>
13264 Support multiple fallback entries, and provide an API to support
13265 executing default+fallback menu entries. Renamed the `terminal' menu
13268 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
13269 variable declaration.
13270 (grub_menu_execute_callback): New structure declaration.
13271 (grub_menu_execute_callback_t): New typedef.
13272 (grub_menu_execute_with_fallback): New function declaration.
13273 (grub_menu_get_entry): Likewise.
13274 (grub_menu_get_timeout): Likewise.
13275 (grub_menu_set_timeout): Likewise.
13277 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
13279 * normal/menu.c (grub_wait_after_message): Moved to
13280 `normal/menu_text.c'.
13281 (draw_border): Likewise.
13282 (print_message): Likewise.
13283 (print_entry): Likewise.
13284 (print_entries): Likewise.
13285 (grub_menu_init_page): Likewise.
13286 (get_entry_number): Likewise.
13287 (print_timeout): Likewise.
13288 (run_menu): Likewise.
13289 (grub_menu_execute_entry): Likewise.
13290 (show_text_menu): Likewise.
13291 (get_and_remove_first_entry_number): New function.
13292 (grub_menu_execute_with_fallback): Likewise.
13293 (get_entry): Renamed to ...
13294 (grub_menu_get_entry): .. this and made it global.
13295 (get_timeout): Renamed to ...
13296 (grub_menu_get_timeout): ... this and made it global.
13297 (set_timeout): Renamed to ...
13298 (grub_menu_set_timeout): ... this and made it global.
13299 (grub_normal_terminal_menu_viewer): Renamed to ...
13300 (grub_normal_text_menu_viewer): ... this.
13302 * normal/menu_text.c: New file. Extracted text-menu-specific code
13303 from normal/menu.c.
13305 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
13306 (normal_mod_SOURCES): Likewise.
13308 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13309 (normal_mod_SOURCES): Likewise.
13311 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13312 (normal_mod_SOURCES): Likewise.
13314 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
13315 (normal_mod_SOURCES): Likewise.
13317 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13318 (normal_mod_SOURCES): Likewise.
13320 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13321 (normal_mod_SOURCES): Likewise.
13323 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13324 (normal_mod_SOURCES): Likewise.
13326 2009-02-11 Robert Millan <rmh@aybabtu.com>
13328 * util/grub.d/00_header.in: Update old reference to `font' command.
13330 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
13332 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
13334 Based on patch from Javier Martín.
13336 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13338 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
13339 to avoid false positives with FAT.
13340 (grub_fstest_SOURCES): Likewise.
13341 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13342 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13343 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13344 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13345 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13346 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13348 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
13350 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
13351 bpb.version_specific.fat12_or_fat16.fstype and
13352 bpb.version_specific.fat32.fstype.
13354 2009-02-08 Robert Millan <rmh@aybabtu.com>
13356 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
13358 2009-02-08 Robert Millan <rmh@aybabtu.com>
13360 * Makefile.in (host_os, host_cpu): New variables.
13361 (target_os): Remove. Update all users.
13363 2009-02-08 Marco Gerards <marco@gnu.org>
13365 * Makefile.in (enable_grub_emu_usb): New variable.
13366 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
13367 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
13368 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
13369 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
13370 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
13371 `usbtest.mod' and `usbms.mod'.
13372 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
13373 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
13374 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
13375 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
13376 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
13379 * disk/usbms.c: New file.
13381 * include/grub/usb.h: Likewise.
13383 * include/grub/usbtrans.h: Likewise.
13385 * include/grub/usbdesc.h: Likewise.
13387 * bus/usb/usbtrans.c: Likewise.
13389 * bus/usb/ohci.c: Likewise.
13391 * bus/usb/uhci.c: Likewise.
13393 * bus/usb/usbhub.c: Likewise.
13395 * bus/usb/usb.c: Likewise.
13397 * commands/usbtest.c: Likewise.
13399 * util/usb.c: Likewise.
13401 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
13403 * configure.ac: Test for libusb presence.
13405 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
13407 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
13409 * kern/mm.c: Add more comments.
13411 2009-02-08 Robert Millan <rmh@aybabtu.com>
13413 Patch from Javier Martín.
13414 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
13415 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
13417 2009-02-08 Robert Millan <rmh@aybabtu.com>
13419 * fs/cpio.c: Split tar functionality to ...
13420 * fs/tar.c: ... here (new file). Update all users.
13422 2009-02-07 Robert Millan <rmh@aybabtu.com>
13424 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
13425 backward-incompatible features.
13427 Based on patch from Javier Martín, with some adjustments.
13429 2009-02-07 Michael Scherer <misc@mandriva.org>
13431 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
13433 2009-02-07 Robert Millan <rmh@aybabtu.com>
13435 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
13436 position of `disk/lvm.c' to ensure grub_init_all() always picks it
13437 after the RAID stuff.
13439 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
13441 Fixes problem when running vbetest command as reported by
13442 Vladimir Serbinenko <phcoder@gmail.com>.
13444 * (grub_vbe_set_video_mode): Fixed problem with text modes.
13446 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
13448 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
13449 /dev/md/NpN style mdraid devices.
13451 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13453 * util/unifont2pff.rb: Remove.
13455 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13457 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
13460 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
13462 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
13463 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13464 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13465 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
13466 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13467 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13468 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13470 2009-02-02 Christian Franke <franke@computer.org>
13472 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
13474 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
13476 * INSTALL: Note that we now require at least autoconf 2.59 and
13477 that LZO is optional.
13479 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
13481 Base on patch on bug #24154 created by Tomas Tintera
13482 <trosos@seznam.cz>.
13484 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
13486 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
13488 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
13489 <bero@arklinux.org>.
13491 * normal/parser.y (script_init): Add missing semicolon.
13493 2009-01-31 Colin D Bennett <colin@gibibit.com>
13495 * normal/main.c: Add include to grub/menu_viewer.h.
13496 (free_menu_entry_classes): Added.
13497 (grub_normal_menu_addentry): Added class property handling.
13498 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
13499 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
13501 * normal/menu_viewer.c: New file.
13503 * normal/menu.c (run_menu_entry): Renamed to ...
13504 (grub_menu_execute_entry): ... this and made it as global.
13505 (grub_menu_run): Renamed to ...
13506 (show_text_menu): ... this and made it local.
13507 (show_text_menu): Adapt to new function names.
13508 (grub_normal_terminal_menu_viewer): New global variable.
13510 * include/grub/menu.h: New file.
13512 * include/grub/menu_viewer.h: New file.
13514 * include/grub/normal.h: Added include to grub/menu.h.
13515 (grub_menu_entry): Moved to include/grub/menu.h.
13516 (grub_menu_entry_t): Likewise.
13517 (grub_menu): Likewise.
13518 (grub_menu_t): Likewise.
13519 (grub_normal_terminal_menu_viewer): Added.
13520 (grub_menu_execute_entry): Likewise.
13521 (grub_menu_run): Removed.
13523 * DISTLIST: Added include/grub/menu.h.
13524 Added include/grub/menu_viewer.h.
13525 Added normal/menu_viewer.c.
13527 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
13529 * normal/execute.c (grub_script_execute_menuentry): Changed to use
13530 arglist for menutitle arguments.
13532 * normal/main.c (grub_normal_menu_addentry): Likewise.
13534 * normal/parser.y (menuentry): Likewise.
13536 * normal/script.c (grub_script_create_cmdmenu): Likewise.
13538 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
13539 (grub_script_create_cmdmenu): Likewise.
13541 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
13543 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
13546 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
13548 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
13550 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
13552 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13554 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13556 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
13558 2009-01-30 Christian Franke <franke@computer.org>
13560 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
13561 in option help text.
13563 2009-01-27 Pavel Roskin <proski@gnu.org>
13565 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
13567 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
13569 * commands/lsmmap.c: Add include to grub/machine/memory.h.
13571 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
13573 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
13574 unregister function.
13576 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
13578 * disk/scsi.c (grub_scsi_read): Fix sign problem.
13580 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
13582 * util/grub-mkfont.c (usage): Fix typo.
13584 * util/elf/grub-mkimage.c (load_modules): Fix warning.
13586 2009-01-26 Daniel Mierswa <impulze@impulze.org>
13588 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
13590 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
13592 * kern/misc.c (grub_strcasecmp): New function.
13593 (grub_strcasecmp): Use grub_size_t instead of int for length.
13595 * include/grub/misc.h: Update function prototypes.
13597 2009-01-26 Robert Millan <rmh@aybabtu.com>
13599 * configure.ac: Fix cross-compilation check.
13601 2009-01-22 Christian Franke <franke@computer.org>
13603 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
13604 (precision) digit string. Allow `.format2' without `format1' (width).
13605 Limit input chars for `%s' output to `format2' if specified. This is
13606 compatible with standard printf ().
13608 2009-01-22 Christian Franke <franke@computer.org>
13610 * disk/ata.c (grub_ata_wait_status): Replace by ...
13611 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
13612 other status bits may be invalid while BSY is asserted.
13613 (grub_ata_check_ready): New function.
13614 (grub_ata_cmd): Removed.
13615 (grub_ata_wait_drq): New function.
13616 (grub_ata_strncpy): Remove inline.
13617 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
13618 and error check now done by grub_ata_wait_drq ().
13619 (grub_ata_pio_write): Likewise.
13620 (grub_atapi_identify): Set DEV before check for !BSY. Use
13621 grub_ata_wait_drq () to wait for data.
13622 (grub_ata_device_initialize): Add status register check to
13623 detect missing SATA slave devices. Add debug messages.
13624 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
13625 (grub_atapi_packet): Set DEV before check for !BSY. Replace
13626 transfer loop by grub_ata_pio_write ().
13627 (grub_ata_identify): Set DEV before check for !BSY. Use
13628 grub_ata_wait_drq () to wait for data.
13629 (grub_ata_setaddress): Set DEV before check for !BSY.
13630 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
13631 read/write in one loop. Fix invalid command on write. Fix incomplete
13632 command on (size % batch) == 0. Add missing error check after write of
13633 last block. Add debug messages.
13634 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
13636 2009-01-19 Christian Franke <franke@computer.org>
13638 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
13639 (GRUB_ATAPI_IREASON_*): Likewise.
13640 (grub_ata_pio_write): Fix timeout error return.
13641 (grub_atapi_identify): Add grub_ata_wait () after cmd.
13642 (grub_atapi_wait_drq): New function.
13643 (grub_atapi_packet): New parameter `size'.
13644 Use grub_atapi_wait_drq () and direct write instead of
13645 grub_ata_pio_write ().
13646 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
13647 reads the number of bytes requested by the device for each DRQ
13649 (grub_atapi_write): Remove old implementation, return not
13650 implemented instead.
13652 2009-01-19 Christian Franke <franke@computer.org>
13654 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
13655 of 512 to calculate data size.
13656 (grub_scsi_read12): Likewise.
13657 (grub_scsi_write10): Likewise.
13658 (grub_scsi_write12): Likewise.
13659 (grub_scsi_read): Adjust size according to blocksize.
13660 Add checks for invalid blocksize and unaligned transfer.
13662 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
13664 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
13666 * term/gfxterm.c (write_char): Fix background rendering for wide
13669 2009-01-19 Robert Millan <rmh@aybabtu.com>
13671 * config.guess: Update to latest version from config git.
13672 * config.sub: Likewise.
13674 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
13676 * Makefile.in: Change font compilation to use new grub-mkfont instead
13679 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
13680 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
13681 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13682 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13683 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
13684 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
13685 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
13686 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
13687 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
13689 2009-01-16 Christian Franke <franke@computer.org>
13691 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
13692 (enum grub_ata_timeout_milliseconds): New enum.
13693 (grub_ata_wait_status): Add parameter milliseconds.
13694 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
13695 recovery from timed-out commands.
13696 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
13697 return grub_errno instead of REG_ERROR.
13698 (grub_ata_pio_write): Add parameter milliseconds.
13699 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
13700 Pass milliseconds to grub_ata_wait_status () and
13701 grub_ata_pio_read ().
13702 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
13703 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
13704 grub_ata_wait_status (). Fix IDENTIFY timeout check.
13705 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
13706 It is not suitable for device detection, because DEV bit is ignored,
13707 the command may run too long, and not all devices set the signature
13709 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
13710 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
13711 Fix device selection, DEV bit must be set first to address the registers
13712 of the correct device.
13713 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
13714 grub_ata_pio_read/write ().
13715 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
13716 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
13718 2009-01-13 Carles Pina i Estany <carles@pina.cat>
13720 * util/grub-editenv.c (main): Use fseeko(), not fseek().
13722 2009-01-13 Bean <bean123ch@gmail.com>
13724 * util/grub-mkfont.c (write_font): forget to remove some debug code.
13726 2009-01-13 Bean <bean123ch@gmail.com>
13728 * Makefile.in: (enable_grub_mkfont): New variable.
13729 (freetype_cflags): Likewise.
13730 (freetype_libs): Likewise.
13732 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
13733 (grub_mkfont_SOURCES): New variable.
13734 (grub_mkfont_CFLAGS): Likewise.
13735 (grub_mkfont_LDFLAGS): Likewise.
13737 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
13738 library if `--enable-grub-mkfont' is requested.
13739 (enable_grub_mkfont): New variable.
13740 (freetype_cflags): Likewise.
13741 (freetype_libs): Likewise.
13743 * util/grub-mkfont.c: New file.
13745 2009-01-12 Christian Franke <franke@computer.org>
13747 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
13748 mode check. Fix setting of compat_use[].
13750 2009-01-10 Robert Millan <rmh@aybabtu.com>
13752 Update a few copyright years which we forgot to do in 2008 (only for
13753 files whose changes made in 2008 were copyright-significant)
13755 * Makefile.in: Add 2008 to Copyright line.
13756 * disk/ieee1275/ofdisk.c: Likewise.
13757 * disk/efi/efidisk.c: Likewise.
13758 * kern/dl.c: Likewise.
13759 * kern/sparc64/ieee1275/init.c: Likewise.
13760 * kern/mm.c: Likewise.
13761 * kern/efi/mm.c: Likewise.
13762 * boot/i386/pc/boot.S: Likewise.
13763 * genfslist.sh: Likewise.
13764 * fs/iso9660.c: Likewise.
13765 * fs/hfs.c: Likewise.
13766 * fs/jfs.c: Likewise.
13767 * fs/minix.c: Likewise.
13768 * fs/ufs.c: Likewise.
13769 * gensymlist.sh.in: Likewise.
13770 * genkernsyms.sh.in: Likewise.
13771 * include/grub/misc.h: Likewise.
13772 * include/grub/types.h: Likewise.
13773 * include/grub/symbol.h: Likewise.
13774 * include/grub/elf.h: Likewise.
13775 * include/grub/kernel.h: Likewise.
13776 * include/grub/disk.h: Likewise.
13777 * include/grub/dl.h: Likewise.
13778 * include/grub/i386/linux.h: Likewise.
13779 * include/grub/i386/pc/biosdisk.h: Likewise.
13780 * include/grub/efi/api.h: Likewise.
13781 * include/grub/efi/pe32.h: Likewise.
13782 * include/grub/util/misc.h: Likewise.
13783 * normal/execute.c: Likewise.
13784 * normal/arg.c: Likewise.
13785 * normal/completion.c: Likewise.
13786 * normal/lexer.c: Likewise.
13787 * normal/parser.y: Likewise.
13788 * normal/misc.c: Likewise.
13789 * commands/i386/pc/vbeinfo.c: Likewise.
13790 * commands/hexdump.c: Likewise.
13791 * commands/terminal.c: Likewise.
13792 * commands/ls.c: Likewise.
13793 * commands/help.c: Likewise.
13794 * partmap/pc.c: Likewise.
13795 * loader/efi/chainloader.c: Likewise.
13796 * loader/multiboot_loader.c: Likewise.
13797 * loader/i386/pc/multiboot2.c: Likewise.
13798 * term/efi/console.c: Likewise.
13799 * term/i386/pc/serial.c: Likewise.
13800 * util/lvm.c: Likewise.
13801 * util/console.c: Likewise.
13802 * util/i386/efi/grub-mkimage.c: Likewise.
13803 * util/raid.c: Likewise.
13805 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
13807 * commands/videotest.c: Removed include to grub/machine/memory.h.
13809 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
13810 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
13811 (video_mod_SOURCES): Removed.
13812 (video_mod_CFLAGS): Likewise.
13813 (video_mod_LDFLAGS): Likewise.
13814 (gfxterm_mod_SOURCES): Likewise.
13815 (gfxterm_mod_CFLAGS): Likewise.
13816 (gfxterm_mod_LDFLAGS): Likewise.
13817 (videotest_mod_SOURCES): Likewise.
13818 (videotest_mod_CFLAGS): Likewise.
13819 (videotest_mod_LDFLAGS): Likewise.
13820 (bitmap_mod_SOURCES): Likewise.
13821 (bitmap_mod_CFLAGS): Likewise.
13822 (bitmap_mod_LDFLAGS): Likewise.
13823 (tga_mod_SOURCES): Likewise.
13824 (tga_mod_CFLAGS): Likewise.
13825 (tga_mod_LDFLAGS): Likewise.
13826 (jpeg_mod_SOURCES): Likewise.
13827 (jpeg_mod_CFLAGS): Likewise.
13828 (jpeg_mod_LDFLAGS): Likewise.
13829 (png_mod_SOURCES): Likewise.
13830 (png_mod_CFLAGS): Likewise.
13831 (png_mod_LDFLAGS): Likewise.
13833 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
13834 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
13835 (video_mod_SOURCES): Added.
13836 (video_mod_CFLAGS): Likewise.
13837 (video_mod_LDFLAGS): Likewise.
13838 (videotest_mod_SOURCES): Likewise.
13839 (videotest_mod_CFLAGS): Likewise.
13840 (videotest_mod_LDFLAGS): Likewise.
13841 (bitmap_mod_SOURCES): Likewise.
13842 (bitmap_mod_CFLAGS): Likewise.
13843 (bitmap_mod_LDFLAGS): Likewise.
13844 (tga_mod_SOURCES): Likewise.
13845 (tga_mod_CFLAGS): Likewise.
13846 (tga_mod_LDFLAGS): Likewise.
13847 (jpeg_mod_SOURCES): Likewise.
13848 (jpeg_mod_CFLAGS): Likewise.
13849 (jpeg_mod_LDFLAGS): Likewise.
13850 (png_mod_SOURCES): Likewise.
13851 (png_mod_CFLAGS): Likewise.
13852 (png_mod_LDFLAGS): Likewise.
13853 (gfxterm_mod_SOURCES): Likewise.
13854 (gfxterm_mod_CFLAGS): Likewise.
13855 (gfxterm_mod_LDFLAGS): Likewise.
13857 * term/gfxterm.c: Removed include to grub/machine/memory.h,
13858 grub/machine/console.h.
13860 2009-01-04 Jerone Young <jerone@gmail.com>
13862 Make on screen instructions clearer
13864 Based on patch created by Jidanni <jidanni@jidanni.org>
13866 * normal/menu.c: print clearer instructions on the screen
13868 2009-01-02 Colin D Bennett <colin@gibibit.com>
13872 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
13873 build system and fixed gfxterm.c to work with different sized fonts.
13875 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
13877 * configure: Re-generated.
13879 * DISTLIST: Removed font/manager.c.
13881 Added font/font_cmd.c.
13883 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
13886 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
13888 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
13890 * kern/term.c: Changed users of grub_utf8_to_ucs4.
13892 * normal/menu.c: Likewise.
13894 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
13895 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
13897 * include/grub/font.h: Replaced with new file.
13899 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
13900 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
13901 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
13902 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
13903 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
13904 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
13905 fg_red, fg_green, fg_blue, fg_alpha.
13906 (grub_video_adapter): Removed blit_glyph.
13907 (grub_video_blit_glyph): Removed.
13909 * font/manager.c: Removed file.
13911 * font/font.c: New file.
13913 * font/font_cmd.c: Likewise.
13915 * video/video.c (grub_video_blit_glyph): Removed.
13917 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
13918 (grub_video_vbe_map_rgba): Likewise.
13919 (grub_video_vbe_unmap_color_int): Likewise.
13920 (grub_video_vbe_blit_glyph): Removed.
13921 (grub_video_vbe_adapter): Removed blit_glyph.
13923 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
13924 (get_pixel): Likewise.
13925 (set_pixel): Likewise.
13927 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
13929 * term/gfxterm.c: Adapted to new font engine.
13931 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
13933 * term/i386/pc/vga.c: Likewise.
13935 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
13937 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
13939 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13941 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
13943 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
13945 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
13947 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
13949 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
13951 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
13953 * util/grub.d/00_header.in: Changed to use new loadfont command.
13955 * util/grub-mkconfig_lib.in: Changed font extension.
13957 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
13959 * util/getroot.c (grub_util_get_grub_dev): Add support for
13960 /dev/md/dNNpNN style partitionable mdraid devices.
13962 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
13964 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
13965 at a time limit of the PXE TFTP API correctly.
13966 (grub_pxefs_close): Likewise.
13968 2008-11-29 Robert Millan <rmh@aybabtu.com>
13970 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
13971 grub_ata_device_initialize() calls.
13973 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
13975 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
13977 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
13979 2008-11-28 Robert Millan <rmh@aybabtu.com>
13981 Fix build on powerpc-ieee1275. Based on patch created by
13982 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
13983 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
13984 `kern/ieee1275/mmap.c'.
13985 * include/grub/powerpc/ieee1275/memory.h: New file.
13987 Provide grub-install on coreboot.
13988 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
13989 (grub_install_SOURCES): New variable.
13990 * util/i386/pc/grub-install.in: Add a few condition checks to make it
13991 usable on coreboot.
13993 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
13995 * util/grub-fstest.c (grub_term_get_current_input): Change return type
13996 to `grub_term_input_t'.
13997 (grub_term_get_current_output): Change return type to
13998 `grub_term_output_t'.
14000 2008-11-22 Robert Millan <rmh@aybabtu.com>
14002 Fix breakage on coreboot due to declaration mismatch.
14003 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
14004 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
14005 grub_vga_text_cls().
14007 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
14008 comments. Avoid copying one more byte than necessary (just in case).
14010 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
14011 to 0x200000 (avoids trouble with some OFW implementations, and matches
14012 with the one in Yaboot).
14013 Reported by Manoel Abranches
14015 2008-11-20 Robert Millan <rmh@aybabtu.com>
14017 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
14018 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
14020 * util/grub-mkconfig_lib.in (grub_warn): New function.
14021 (convert_system_path_to_grub_path): Use grub_warn() when issuing
14022 warnings, to obtain consistent formatting.
14023 * util/grub.d/00_header.in: Likewise.
14024 * util/update-grub_lib.in: Likewise.
14026 * loader/i386/linux.c (allocate_pages): Fix a warning.
14027 Move comment text to `#error' stanza.
14029 Harmonize ieee1275's grub_available_iterate() with the generic
14030 grub_machine_mmap_iterate() interface (fixes a recently-introduced
14031 build problem on i386-ieee1275):
14032 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
14033 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
14034 parameter `type'. Update all users of this function.
14035 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
14036 `kern/ieee1275/mmap.c'.
14037 * kern/ieee1275/init.c
14038 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
14040 (grub_machine_mmap_iterate): ... this.
14041 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
14042 return type to `grub_err_t'. Update all implementations of this
14043 function prototype.
14044 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
14047 Add `lsmmap' command (lists firmware-provided memory map):
14048 * commands/lsmmap.c: New file.
14049 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
14050 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
14052 * conf/powerpc-ieee1275.rmk: Likewise.
14053 * conf/i386-coreboot.rmk: Likewise.
14054 * conf/i386-ieee1275.rmk: Likewise.
14056 2008-11-19 Robert Millan <rmh@aybabtu.com>
14058 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
14059 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
14060 constraints to initrd allocation (based on code from
14061 loader/i386/pc/linux.c). Without them, initrd was allocated too high
14062 for Linux to find it.
14064 2008-11-14 Robert Millan <rmh@aybabtu.com>
14066 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
14067 order to cope with duplicate slashes.
14069 2008-11-14 Robert Millan <rmh@aybabtu.com>
14071 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
14072 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
14073 don't want to mess with lower memory, because it is used in the Linux
14076 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
14077 an appropriate place in lower memory, between 0x10000 and 0x90000,
14078 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
14079 is in our heap (probably as a result of it being corrupted during
14080 decompression). Add #error instance with comment to explain why this
14081 loader isn't currently usable on PC/BIOS.
14083 2008-11-14 Robert Millan <rmh@aybabtu.com>
14085 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
14086 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
14088 2008-11-12 Robert Millan <rmh@aybabtu.com>
14090 Make loader/i386/linux.c buildable on i386-pc (although disabled).
14092 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
14093 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
14095 * include/grub/i386/pc/memory.h: ... to here.
14097 2008-11-12 Robert Millan <rmh@aybabtu.com>
14099 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
14102 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
14103 (grub_console_cur_color, grub_console_real_putchar)
14104 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14105 (grub_console_setcolorstate, grub_console_setcolor)
14106 (grub_console_getcolor): Move from here ...
14107 * include/grub/i386/vga_common.h: ... to here (new file).
14109 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
14110 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
14111 `<grub/i386/io.h>'.
14112 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
14113 `<grub/i386/vga_common.h>'.
14115 2008-11-12 Robert Millan <rmh@aybabtu.com>
14117 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
14118 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
14119 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
14121 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14122 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
14124 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
14125 grub_console_init() with call to grub_vga_text_init().
14126 (grub_machine_fini): Replace call to
14127 grub_console_fini() with call to grub_vga_text_fini() and
14128 grub_at_keyboard_fini().
14130 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
14131 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
14132 (grub_console_setcolorstate, grub_console_setcolor)
14133 (grub_console_getcolor): New function prototypes.
14135 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
14136 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
14137 (grub_vga_text_setcursor): Static-ize.
14138 (grub_vga_text_term): New structure.
14139 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
14141 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
14142 (grub_console_cur_color, grub_console_standard_color)
14143 (grub_console_normal_color, grub_console_highlight_color)
14144 (map_char, grub_console_putchar, grub_console_getcharwidth)
14145 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
14146 (grub_console_getcolor): Move from here ...
14147 * term/i386/vga_common.c: ... to here (same function names).
14149 2008-11-12 Robert Millan <rmh@aybabtu.com>
14151 Use newly-added Multiboot support in coreboot.
14153 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
14154 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
14156 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
14157 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
14158 (codestart): Store the MBI in `startup_multiboot_info' when we're
14159 being loaded using Multiboot.
14161 * kern/i386/coreboot/init.c (grub_machine_init): Move
14162 grub_at_keyboard_init() call to beginning of function (useful for
14163 debugging). Call grub_machine_mmap_init() before attempting to use
14164 grub_machine_mmap_iterate().
14165 (grub_lower_mem, grub_upper_mem): Move from here ...
14166 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
14169 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
14170 function prototype.
14172 2008-11-12 Robert Millan <rmh@aybabtu.com>
14174 Fix a regression introduced by the at_keyboard.mod split. Because
14175 some terminals are default on some platforms and non-default on
14176 others, the first terminal being registered determines which is
14177 going to be default.
14179 * kern/term.c (grub_term_register_input): If this is the first
14180 terminal being registered, set it as the current one.
14181 (grub_term_register_output): Likewise.
14183 * term/efi/console.c (grub_console_init): Do not call
14184 grub_term_set_current_output() or grub_term_set_current_input().
14185 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
14186 * term/i386/pc/console.c (grub_console_init): Likewise.
14187 (grub_console_fini): Do not call grub_term_set_current_input()
14188 (but leave grub_term_set_current_output() to restore text mode).
14190 2008-11-10 Robert Millan <rmh@aybabtu.com>
14192 * util/grub.d/00_header.in: Add backward compatibility check for
14193 versions of terminal.mod that don't understand `terminal_input' or
14196 2008-11-09 Robert Millan <rmh@aybabtu.com>
14198 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
14199 `terminal_input' / `terminal_output', not `terminal'.
14201 2008-11-08 Robert Millan <rmh@aybabtu.com>
14203 * Makefile.in (include_DATA): Fix srcdir=. assumption.
14204 (DISTCLEANFILES): Add `build_env.mk'.
14206 2008-11-08 Robert Millan <rmh@aybabtu.com>
14208 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
14209 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14210 members. Update all users.
14211 * util/console.c (grub_ncurses_term): Split in ...
14212 (grub_ncurses_term_input): ... this, and ...
14213 (grub_ncurses_term_output): ... this. Update all users.
14214 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
14216 2008-11-08 Robert Millan <rmh@aybabtu.com>
14218 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
14219 (PKGDATA): Add $(pkgdata_SRCDIR).
14220 (pkglib_BUILDDIR): New variable.
14221 (pkgdata_SRCDIR): New variable.
14222 (build_env.mk): New target.
14223 (include_DATA): New variable.
14224 (install-local): Install $(include_DATA) files in $(includedir).
14226 2008-11-07 Pavel Roskin <proski@gnu.org>
14228 * gendistlist.sh: Use C locale for sorting to ensure consistent
14229 output on all systems.
14231 * util/grub.d/00_header.in: Remove incorrect space before
14234 2008-11-07 Robert Millan <rmh@aybabtu.com>
14236 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
14238 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
14239 * loader/multiboot_loader.c (find_multi_boot2_header): New function
14240 (based on find_multi_boot1_header).
14241 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
14242 using find_multi_boot2_header(), and abort if neither Multiboot or
14243 Multiboot headers were found.
14245 2008-11-07 Robert Millan <rmh@aybabtu.com>
14247 Modularize at_keyboard.mod:
14249 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
14250 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
14251 (at_keyboard_mod_LDFLAGS): New variables.
14253 Actual terminal split:
14255 * include/grub/term.h (struct grub_term): Split in ...
14256 (struct grub_term_input): ... this, and ...
14257 (struct grub_term_output): ... this. Update all users.
14258 (grub_term_set_current): Split in ...
14259 (grub_term_set_current_input): ... this, and ...
14260 (grub_term_set_current_output): ... this.
14261 (grub_term_get_current): Split in ...
14262 (grub_term_get_current_input): ... this, and ...
14263 (grub_term_get_current_output): ... this.
14264 (grub_term_register): Split in ...
14265 (grub_term_register_input): ... this, and ...
14266 (grub_term_register_output): ... this.
14267 (grub_term_unregister): Split in ...
14268 (grub_term_unregister_input): ... this, and ...
14269 (grub_term_unregister_output): ... this.
14270 (grub_term_iterate): Split in ...
14271 (grub_term_iterate_input): ... this, and ...
14272 (grub_term_iterate_output): ... this.
14274 * kern/term.c (grub_term_list): Split in ...
14275 (grub_term_list_input): ... this, and ...
14276 (grub_term_list_output): ... this. Update all users.
14277 (grub_cur_term): Split in ...
14278 (grub_cur_term_input): ... this, and ...
14279 (grub_cur_term_output): ... this. Update all users.
14280 (grub_term_set_current): Split in ...
14281 (grub_term_set_current_input): ... this, and ...
14282 (grub_term_set_current_output): ... this.
14283 (grub_term_get_current): Split in ...
14284 (grub_term_get_current_input): ... this, and ...
14285 (grub_term_get_current_output): ... this.
14286 (grub_term_register): Split in ...
14287 (grub_term_register_input): ... this, and ...
14288 (grub_term_register_output): ... this.
14289 (grub_term_unregister): Split in ...
14290 (grub_term_unregister_input): ... this, and ...
14291 (grub_term_unregister_output): ... this.
14292 (grub_term_iterate): Split in ...
14293 (grub_term_iterate_input): ... this, and ...
14294 (grub_term_iterate_output): ... this.
14296 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
14297 a check for input and one for output (and only attempt to get keys
14298 from user when input works).
14300 * util/grub-probe.c (grub_term_get_current): Split in ...
14301 (grub_term_get_current_input): ... this, and ...
14302 (grub_term_get_current_output): ... this.
14303 * util/grub-fstest.c: Likewise.
14304 * util/i386/pc/grub-setup.c: Likewise.
14305 * util/grub-editenv.c: Likewise.
14307 Portability adjustments:
14309 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
14310 `term/i386/pc/at_keyboard.c'.
14311 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
14312 grub_keyboard_controller_init() (now handled by terminal .init).
14313 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
14314 grub_at_keyboard_init().
14315 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
14316 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
14317 at_keyboard.mod via input terminal interface).
14318 * include/grub/i386/coreboot/console.h: Convert into a stub for
14319 `<grub/i386/pc/console.h>'.
14321 Migrate full terminals to new API:
14323 * term/efi/console.c (grub_console_term): Split into ...
14324 (grub_console_term_input): ... this, and ...
14325 (grub_console_term_output): ... this. Update all users.
14326 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
14327 (grub_ofconsole_init): Split into ...
14328 (grub_ofconsole_init_input): ... this, and ...
14329 (grub_ofconsole_init_output): ... this.
14330 (grub_ofconsole_term): Split into ...
14331 (grub_ofconsole_term_input): ... this, and ...
14332 (grub_ofconsole_term_output): ... this. Update all users.
14333 * term/i386/pc/serial.c (grub_serial_term): Split into ...
14334 (grub_serial_term_input): ... this, and ...
14335 (grub_serial_term_output): ... this. Update all users.
14336 * term/i386/pc/console.c (grub_console_term): Split into ...
14337 (grub_console_term_input): ... this, and ...
14338 (grub_console_term_output): ... this. Update all users.
14339 (grub_console_term_input): Only enable it on PC/BIOS platform.
14340 (grub_console_init): Remove grub_keyboard_controller_init() call.
14342 Migrate input terminals to new API:
14344 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
14345 `i386' and `i386/pc' to enable build on x86_64 (this driver is
14346 i386-specific anyway).
14347 (grub_console_checkkey): Rename to ...
14348 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
14350 (grub_keyboard_controller_orig): New variable.
14351 (grub_console_getkey): Rename to ...
14352 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
14354 (grub_keyboard_controller_init): Static-ize. Save original
14355 controller value so that it can be restored ...
14356 (grub_keyboard_controller_fini): ... here (new function).
14357 (grub_at_keyboard_term): New structure.
14358 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
14361 Migrate output terminals to new API:
14363 * term/i386/pc/vga.c (grub_vga_term): Change type to
14364 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14365 members. Update all users.
14366 * term/gfxterm.c (grub_video_term): Change type to
14367 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
14368 members. Update all users.
14369 * include/grub/i386/pc/console.h (grub_console_checkkey)
14370 (grub_console_getkey): Do not export (no longer needed by gfxterm,
14373 Migrate `terminal' command and userland tools to new API:
14375 * commands/terminal.c (grub_cmd_terminal): Split into ...
14376 (grub_cmd_terminal_input): ... this, and ...
14377 (grub_cmd_terminal_output): ... this.
14378 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
14379 `terminal_input' and `terminal_output'.
14380 * util/grub.d/00_header.in: Adjust `terminal' calls to new
14381 `terminal_input' / `terminal_output' API.
14382 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
14383 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
14384 provided ${GRUB_TERMINAL}, convert it).
14386 2008-11-04 Robert Millan <rmh@aybabtu.com>
14388 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
14390 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
14392 2008-11-03 Bean <bean123ch@gmail.com>
14394 * kern/elf.c (grub_elf32_load): Revert to previous code.
14395 (grub_elf64_load): Likewise.
14397 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
14399 2008-11-01 Robert Millan <rmh@aybabtu.com>
14401 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
14402 (TARGET_CPPFLAGS): Likewise.
14403 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
14405 2008-11-01 Carles Pina i Estany <carles@pina.cat>
14407 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
14409 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14411 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
14412 addition of objects until the code is not going to be able to fail.
14414 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
14416 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
14417 (add a missing NULL check, and correct them by moving the pointer
14418 operations after the actual check).
14420 2008-10-29 Robert Millan <rmh@aybabtu.com>
14422 * util/i386/pc/grub-install.in: Handle empty string as output from
14423 make_system_path_relative_to_its_root().
14425 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
14427 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
14428 circular metadata worst case scenario. If the metadata is circular
14429 then copy the wrap in place.
14430 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
14431 project lib/format_text/layout.h
14432 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
14434 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
14436 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
14438 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
14440 * util/update-grub_lib.in: Mention filename in warning message.
14442 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
14444 * NEWS: Update for rename of update-grub to grub-mkconfig.
14446 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
14448 * util/update-grub_lib.in: Copy to ...
14449 * util/grub-mkconfig_lib.in: ... this. Update all users.
14450 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
14451 * util/update-grub.in: Rename to ...
14452 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
14453 option. Add `--output' option to allow users to specify the generated
14454 configuration file. Default to stdout.
14455 (update_grub_dir): Rename to ...
14456 (grub_mkconfig_dir): ... this.
14457 (grub_cfg): Default to an empty string.
14458 * conf/common.rmk (update-grub): Rename to ...
14459 (grub-mkconfig): ... this.
14460 (update-grub_lib): Copy to ...
14461 (grub-mkconfig_lib): ... this.
14462 (update-grub_SCRIPTS): Copy to ...
14463 (grub-mkconfig_SCRIPTS): ... this. Update all users.
14464 (update-grub_DATA): Rename to ...
14465 (grub-mkconfig_DATA): ... this.
14467 2008-09-28 Robert Millan <rmh@aybabtu.com>
14469 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
14470 to `modified'. Add the real `created' field.
14471 (grub_iso9660_uuid): Use `modified' rather than `created' for
14472 constructing the UUID.
14474 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
14476 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
14477 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
14479 2008-09-28 Bean <bean123ch@gmail.com>
14481 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
14482 Thanks to Christian Franke for finding this bug.
14484 2008-09-25 Robert Millan <rmh@aybabtu.com>
14486 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
14487 instances of grub_util_get_disk_name() (see previous commit).
14489 2008-09-25 Robert Millan <rmh@aybabtu.com>
14491 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
14492 `util/i386/get_disk_name.c'.
14493 * conf/i386-efi.rmk: Likewise.
14494 * conf/x86_64-efi.rmk: Likewise.
14495 * conf/i386-coreboot.rmk: Likewise.
14496 * conf/i386-ieee1275.rmk: Likewise.
14497 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
14498 `util/ieee1275/get_disk_name.c'.
14499 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
14500 * util/ieee1275/get_disk_name.c: Remove file.
14501 * util/i386/get_disk_name.c: Remove file.
14502 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
14503 "hd%d" for device.map entries, rather than using
14504 grub_util_get_disk_name().
14506 2008-09-24 Carles Pina i Estany <carles@pina.cat>
14508 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
14510 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
14512 2008-09-24 Carles Pina i Estany <carles@pina.cat>
14514 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
14516 (GRUB_TERM_PPAGE): Changed to 0x4900.
14518 2008-09-24 Robert Millan <rmh@aybabtu.com>
14520 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
14521 macros (they were i386-pc specific).
14522 * include/grub/sparc64/ieee1275/console.h: Likewise.
14523 * include/grub/efi/console.h: Likewise.
14525 2008-09-22 Bean <bean123ch@gmail.com>
14527 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
14528 resident and in attribute list.
14530 * include/grub/ntfs.h (BMP_LEN): Removed.
14532 2008-09-22 Bean <bean123ch@gmail.com>
14534 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
14535 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
14537 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
14538 error occurs, as grub_disk_open will call grub_disk_close, which will
14539 call p->close (scsi).
14541 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
14543 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
14544 (AC_PREREQ): Bumped to 2.59.
14545 (AC_TRY_COMPILE): Replace obsolete macro with ...
14546 (AC_COMPILE_IFELSE): ... this.
14547 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
14548 (AC_LINK_IFELSE): ... this.
14550 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
14552 * autogen.sh: Add a call to `gendistlist.sh'.
14554 2008-09-19 Christian Franke <franke@computer.org>
14556 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
14557 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
14558 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
14559 Export __enable_execute_stack() to modules.
14560 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
14563 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
14565 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
14568 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
14570 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
14571 #include <grub/util/hostdisk.h>.
14573 2008-09-08 Robert Millan <rmh@aybabtu.com>
14575 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
14576 segments when their filesz is zero (grub_file_read() interprets
14577 zero-size as "read until EOF", which results in memory corruption).
14578 Use `lowest_segment' rather than 0 for calculating the current
14579 segment load address.
14581 2008-09-08 Robert Millan <rmh@aybabtu.com>
14583 * util/hostdisk.c (open_device): Replace a grub_util_info() call
14584 with grub_dprintf("hostdisk", ...), as it was so verbose that it
14585 clobbered useful information.
14587 2008-09-08 Robert Millan <rmh@aybabtu.com>
14589 * include/grub/util/biosdisk.h: Move to ...
14590 * include/grub/util/hostdisk.h: ... here. Update all users.
14591 * util/biosdisk.c: Move to ...
14592 * util/hostdisk.c: ... here. Update all users.
14594 2008-09-07 Robert Millan <rmh@aybabtu.com>
14596 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
14598 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
14599 and length can be stored directly in the `mbi->mmap_addr' and
14600 `mbi->mmap_length' struct fields.
14602 2008-09-07 Robert Millan <rmh@aybabtu.com>
14604 * conf/i386.rmk: New file. Provides declaration for building
14606 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
14607 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
14609 Include `conf/i386.mk'.
14610 * conf/i386-efi.rmk: Likewise.
14611 * conf/x86_64-efi.rmk: Likewise.
14612 * conf/i386-coreboot.rmk: Likewise.
14613 * conf/i386-ieee1275.rmk: Likewise.
14615 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
14617 Based on patch created by Colin D Bennett <colin@gibibit.com>.
14618 Adds optimization support for BGR based modes.
14620 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
14621 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
14622 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14623 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14624 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14625 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14626 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14627 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14628 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14629 (grub_video_i386_vbeblit_index_index): Likewise.
14630 (grub_video_i386_vbeblit_replace_directN): Added.
14631 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
14632 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
14633 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
14634 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
14635 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
14636 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
14637 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
14638 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
14639 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
14640 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
14641 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
14642 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
14643 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
14645 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
14646 (grub_video_i386_vbefill_R8G8B8): Likewise.
14647 (grub_video_i386_vbefill_index): Likewise.
14648 (grub_video_i386_vbefill_direct32): Added.
14649 (grub_video_i386_vbefill_direct24): Likewise.
14650 (grub_video_i386_vbefill_direct16): Likewise.
14651 (grub_video_i386_vbefill_direct8): Likewise.
14653 * include/grub/video.h (grub_video_blit_format): Removed
14654 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
14655 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
14656 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
14657 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
14658 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
14660 * video/video.c (grub_video_get_blit_format): Updated to use new
14661 blit formats. Added handling for 16 bit color modes.
14663 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
14665 (common_blitter): Updated to use new blitters.
14667 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
14669 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
14670 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
14671 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
14672 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
14673 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
14674 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
14675 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
14676 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
14677 (grub_video_i386_vbeblit_index_index): Likewise.
14678 (grub_video_i386_vbeblit_replace_directN): Added.
14679 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
14680 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
14681 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
14682 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
14683 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
14684 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
14685 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
14686 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
14687 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
14688 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
14689 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
14690 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
14691 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
14693 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
14694 (grub_video_i386_vbefill_R8G8B8): Likewise.
14695 (grub_video_i386_vbefill_index): Likewise.
14696 (grub_video_i386_vbefill_direct32): Added.
14697 (grub_video_i386_vbefill_direct24): Likewise.
14698 (grub_video_i386_vbefill_direct16): Likewise.
14699 (grub_video_i386_vbefill_direct8): Likewise.
14701 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
14704 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
14707 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
14710 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
14713 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
14715 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
14718 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
14720 * fs/iso9660.c (grub_iso9660_date): New structure.
14721 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
14722 (grub_iso9660_uuid): New function.
14724 2008-09-05 Bean <bean123ch@gmail.com>
14726 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
14728 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
14729 insensitive bit for names in Win32 and Win32 & DOS namespace.
14731 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
14733 * include/grub/types.h (LONG_MAX): Likewise.
14735 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
14737 * util/getroot.c: Include <config.h>.
14738 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
14739 add support for /dev/md/N devices and handle LVM double dash escaping.
14741 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
14743 * config.guess: Update to latest version from config git.
14744 * config.sub: Likewise.
14746 2008-09-03 Robert Millan <rmh@aybabtu.com>
14748 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
14749 `disk->total_sectors'.
14751 2008-09-01 Colin D Bennett <colin@gibibit.com>
14753 * include/grub/normal.h: Fixed incorrect comment for
14754 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
14756 2008-09-01 Colin D Bennett <colin@gibibit.com>
14758 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
14759 values with defines.
14761 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
14762 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
14763 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
14764 (GRUB_VBE_MODEATTR_COLOR): Likewise.
14765 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
14766 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
14767 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
14768 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
14769 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
14770 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
14771 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
14772 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
14773 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
14774 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
14775 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
14776 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
14777 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
14778 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
14779 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
14781 2008-08-31 Robert Millan <rmh@aybabtu.com>
14783 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
14785 (grub_multiboot): Fix a few warnings.
14787 2008-08-31 Robert Millan <rmh@aybabtu.com>
14789 * loader/i386/pc/multiboot.c: Update comment not to say that
14790 boot_device support is unimplemented.
14792 2008-08-31 Robert Millan <rmh@aybabtu.com>
14794 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
14795 or memory map support are unimplemented.
14797 2008-08-31 Colin D Bennett <colin@gibibit.com>
14799 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
14801 2008-08-31 Colin D Bennett <colin@gibibit.com>
14803 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
14804 total video memory in 'vbeinfo' output; show color format details for
14807 2008-08-30 Pavel Roskin <proski@gnu.org>
14809 * util/genmoddep.c: Remove for real this time.
14810 * DISTLIST: Remove util/genmoddep.c.
14812 2008-08-30 Robert Millan <rmh@aybabtu.com>
14814 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
14815 as required by Multiboot spec (it was already 4-byte aligned, but
14818 2008-08-29 Pavel Roskin <proski@gnu.org>
14820 * kern/powerpc/ieee1275/crt0.S: Rename to ...
14821 * kern/powerpc/ieee1275/startup.S: ... this.
14822 * conf/powerpc-ieee1275.rmk: Adjust for the above.
14823 * DISTLIST: Likewise.
14825 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
14826 grub/cpu/kernel.h. Add start label for consistency with other
14827 platforms. Add grub_prefix immediately after start. Add jump
14828 to the code after grub_prefix.
14829 * include/grub/powerpc/kernel.h: Provide valid values for
14830 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
14832 2008-08-29 Bean <bean123ch@gmail.com>
14834 * configure.ac: Change host_os to cygwin for mingw.
14835 (asprintf): New check for function.
14837 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
14838 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
14840 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
14841 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
14842 sync, sleep and grub_util_get_disk_size for mingw.
14844 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
14845 to get size in mingw.
14846 (open_device): Use flag O_BINARY if it's defined.
14847 (find_root_device): Add dummy code for mingw.
14849 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
14850 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
14851 (get_scsi_disk_name): Return 0 for mingw.
14853 * util/hostfs.c: #include <grub/util/misc.h>.
14854 (grub_hostfs_open): Use "rb" flag to open file, use
14855 grub_util_get_disk_size to get disk size for mingw.
14857 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
14858 (asprintf): New function if HAVE_ASPRINTF is not set.
14859 (sync): New function for mingw.
14861 (grub_util_get_disk_size): Likewise.
14863 2008-08-28 Pavel Roskin <proski@gnu.org>
14865 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
14868 2008-08-28 Robert Millan <rmh@aybabtu.com>
14870 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
14872 2008-08-28 Robert Millan <rmh@aybabtu.com>
14874 Change find_grub_drive() syntax so it doesn't prevent it from
14875 detecting NULL names as errors.
14877 * util/biosdisk.c (find_grub_drive): Move free slot search code
14879 (find_free_slot): ... to here.
14880 (read_device_map): Use find_free_slot() to search for free slots.
14882 2008-08-27 Marco Gerards <marco@gnu.org>
14884 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
14885 (scsi_mod_SOURCES): New variable.
14886 (scsi_mod_CFLAGS): Likewise
14887 (scsi_mod_LDFLAGS): Likewise.
14889 * disk/scsi.c: New file.
14891 * include/grub/scsi.h: Likewise.
14893 * include/grub/scsicmd.h: Likewise.
14895 * disk/ata.c: Include <grub/scsi.h>.
14896 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
14898 (grub_ata_iterate): Skip ATAPI devices.
14899 (grub_ata_open): Only handle ATAPI devices.
14900 (struct grub_atapi_read): Removed.
14901 (grub_atapi_readsector): Likewise.
14902 (grub_ata_read): No longer handle ATAPI devices.
14903 (grub_ata_write): Likewise.
14904 (grub_atapi_iterate): New function.
14905 (grub_atapi_read): Likewise.
14906 (grub_atapi_write): Likewise.
14907 (grub_atapi_open): Likewise.
14908 (grub_atapi_close): Likewise.
14909 (grub_atapi_dev): New variable.
14910 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
14911 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
14913 * include/grub/disk.h (enum grub_disk_dev_id): Add
14914 `GRUB_DISK_DEVICE_SCSI_ID'.
14916 2008-08-26 Robert Millan <rmh@aybabtu.com>
14918 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
14919 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
14922 2008-08-23 Bean <bean123ch@gmail.com>
14924 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
14925 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
14926 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
14927 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
14929 (raid5rec_mod_SOURCES): New macro.
14930 (raid5rec_mod_CFLAGS): Likewise.
14931 (raid5rec_mod_LDFLAGS): Likewise.
14932 (raid6rec_mod_SOURCES): Likewise.
14933 (raid6rec_mod_CFLAGS): Likewise.
14934 (raid6rec_mod_LDFLAGS): Likewise.
14935 (mdraid_mod_SOURCES): Likewise.
14936 (mdraid_mod_CFLAGS): Likewise.
14937 (mdraid_mod_LDFLAGS): Likewise.
14938 (dm_nv_mod_SOURCES): Likewise.
14939 (dm_nv_mod_CFLAGS): Likewise.
14940 (dm_nv_mod_LDFLAGS): Likewise.
14942 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
14943 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
14944 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
14946 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
14947 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
14949 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14951 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14953 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14955 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14957 * disk/raid5_recover.c: New file.
14959 * disk/raid6_recover.c: Likewise.
14961 * disk/mdraid_linux.c: Likewise.
14963 * disk/dmraid_nvidia.c: Likewise.
14965 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
14968 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
14969 calculate the size of raid device.
14970 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
14971 different layout of raid5.
14972 (grub_raid_scan_device): Remove code specific to mdraid.
14973 (grub_raid_list): New variable.
14974 (free_array): New function.
14975 (grub_raid_register): Likewise.
14976 (grub_raid_unregister): Likewise.
14977 (grub_raid_rescan): Likewise.
14978 (GRUB_MOD_INIT): Don't iterate device here.
14979 (GRUB_MOD_FINI): Use free_array to release resource.
14981 * include/grub/raid.h: Remove macro and structure specific to mdraid.
14982 (grub_raid5_recover_func_t): New function variable type.
14983 (grub_raid6_recover_func_t): Likewise.
14984 (grub_raid5_recover_func): New variable.
14985 (grub_raid6_recover_func): Likewise.
14986 (grub_raid_register): New function.
14987 (grub_raid_unregister): Likewise.
14988 (grub_raid_rescan): Likewise.
14989 (grub_raid_block_xor): Likewise.
14991 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
14992 (CMD_CRC): New macro.
14994 (read_file): Handle device as well as file.
14995 (cmd_crc): New function.
14996 (fstest): Handle multiple disks.
14997 (options): Remove part, raw and long, add root and diskcount.
14998 (usage): Add crc, remove -p, -r, -l, add -r and -c.
14999 (main): Find the first non option entry and ignore subsequent options,
15000 add handling for the new options, support multiple disks.
15002 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
15004 2008-08-23 Bean <bean123ch@gmail.com>
15006 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
15008 * genfslist.sh: Ignore kernel.mod.
15010 * genpartmaplist.sh: Likewise.
15012 2008-08-23 Robert Millan <rmh@aybabtu.com>
15014 * util/getroot.c (find_root_device): Skip anything that starts with
15015 a dot, not just directories. This avoids things like /dev/.tmp.md0.
15017 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
15019 * util/update-grub.in (GRUB_GFXMODE): Export variable.
15020 * util/grub.d/00_header.in: Allow the administrator to change default
15021 gfxmode via ${GRUB_GFXMODE}.
15023 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
15025 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
15027 2008-08-21 Robert Millan <rmh@aybabtu.com>
15029 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
15031 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
15032 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
15034 2008-08-20 Carles Pina i Estany <carles@pina.cat>
15036 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
15037 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
15039 2008-08-19 Robert Millan <rmh@aybabtu.com>
15041 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
15042 (struct grub_virtual_screen): Remove `cursor_color'.
15043 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
15045 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
15047 2008-08-18 Robert Millan <rmh@aybabtu.com>
15049 Unify (identical) linux_normal.c files.
15050 * loader/i386/efi/linux_normal.c: Move from here ...
15051 * loader/linux_normal.c: ... to here. Update all users.
15052 * loader/i386/pc/linux_normal.c: Delete. Update all users.
15053 * loader/i386/ieee1275/linux_normal.c: Likewise.
15055 2008-08-18 Robert Millan <rmh@aybabtu.com>
15057 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
15058 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
15059 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
15060 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
15061 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
15063 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
15064 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
15065 (GRUB_LINUX_CL_END_OFFSET): ... to here.
15066 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
15067 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
15068 (GRUB_EFI_CL_END_OFFSET): Rename to ...
15069 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
15070 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
15071 Initialize `params->video_cursor_x' and `params->video_cursor_y'
15072 portably using grub_getxy().
15073 Replace `-EFI' with `-bzImage' in boot message.
15075 2008-08-17 Robert Millan <rmh@aybabtu.com>
15077 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
15079 2008-08-17 Robert Millan <rmh@aybabtu.com>
15081 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
15083 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
15084 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
15085 (grub_machine_mmap_iterate): New function declaration.
15086 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
15088 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
15091 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
15092 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
15093 Move e820 parsing from here ...
15094 * kern/i386/pc/mmap.c: New file.
15095 (grub_machine_mmap_iterate): ... to here.
15097 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
15098 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
15099 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
15100 (grub_available_iterate): Redeclare to return `void', and redeclare
15101 its hook to use grub_uint64_t as addr and size parameters, and rename
15103 (grub_machine_mmap_iterate): ... this. Update all users.
15105 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
15106 to make it more readable. Rename to ...
15107 (grub_machine_mmap_iterate): ... this.
15109 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
15110 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
15111 (grub_multiboot): Allocate an extra region after the payload, and fill
15112 it with a Multiboot memory map. Adjust a.out loader to calculate size
15113 with the extra space.
15114 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
15115 with the extra space.
15117 2008-08-17 Carles Pina i Estany <carles@pina.cat>
15119 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
15121 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
15123 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
15124 mdate-sh to the list `find' searches for.
15125 * DISTLIST: Regenerated.
15127 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
15129 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
15130 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
15131 genmoddep.awk, gensymlist.sh.in.
15132 (DISTDIRS): Add bus, docs, hook, lib.
15133 * DISTLIST: Regenerated.
15134 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
15136 2008-08-16 Robert Millan <rmh@aybabtu.com>
15138 * disk/raid.c (grub_raid_init): Handle/report errors set by
15139 grub_device_iterate().
15140 * disk/lvm.c (grub_lvm_init): Likewise.
15142 2008-08-15 Bean <bean123ch@gmail.com>
15144 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15146 (datetime_mod_SOURCES): New macro.
15147 (datetime_mod_CFLAGS): Likewise.
15148 (datetime_mod_LDFLAGS): Likewise.
15149 (date_mod_SOURCES): Likewise.
15150 (date_mod_CFLAGS): Likewise.
15151 (date_mod_LDFLAGS): Likewise.
15152 (datehook_mod_SOURCES): Likewise.
15153 (datehook_mod_CFLAGS): Likewise.
15154 (datehook_mod_LDFLAGS): Likewise.
15156 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15158 (datetime_mod_SOURCES): New macro.
15159 (datetime_mod_CFLAGS): Likewise.
15160 (datetime_mod_LDFLAGS): Likewise.
15161 (date_mod_SOURCES): Likewise.
15162 (date_mod_CFLAGS): Likewise.
15163 (date_mod_LDFLAGS): Likewise.
15164 (datehook_mod_SOURCES): Likewise.
15165 (datehook_mod_CFLAGS): Likewise.
15166 (datehook_mod_LDFLAGS): Likewise.
15168 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15170 (datetime_mod_SOURCES): New macro.
15171 (datetime_mod_CFLAGS): Likewise.
15172 (datetime_mod_LDFLAGS): Likewise.
15173 (date_mod_SOURCES): Likewise.
15174 (date_mod_CFLAGS): Likewise.
15175 (date_mod_LDFLAGS): Likewise.
15176 (datehook_mod_SOURCES): Likewise.
15177 (datehook_mod_CFLAGS): Likewise.
15178 (datehook_mod_LDFLAGS): Likewise.
15180 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15182 (datetime_mod_SOURCES): New macro.
15183 (datetime_mod_CFLAGS): Likewise.
15184 (datetime_mod_LDFLAGS): Likewise.
15185 (date_mod_SOURCES): Likewise.
15186 (date_mod_CFLAGS): Likewise.
15187 (date_mod_LDFLAGS): Likewise.
15188 (datehook_mod_SOURCES): Likewise.
15189 (datehook_mod_CFLAGS): Likewise.
15190 (datehook_mod_LDFLAGS): Likewise.
15192 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
15194 (datetime_mod_SOURCES): New macro.
15195 (datetime_mod_CFLAGS): Likewise.
15196 (datetime_mod_LDFLAGS): Likewise.
15197 (date_mod_SOURCES): Likewise.
15198 (date_mod_CFLAGS): Likewise.
15199 (date_mod_LDFLAGS): Likewise.
15200 (datehook_mod_SOURCES): Likewise.
15201 (datehook_mod_CFLAGS): Likewise.
15202 (datehook_mod_LDFLAGS): Likewise.
15204 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
15206 * commands/date.c: New file.
15208 * hook/datehook.c: Likewise.
15210 * include/grub/lib/datetime.h: Likewise.
15212 * include/grub/i386/cmos.h: Likewise.
15214 * lib/datetime.c: Likewise.
15216 * lib/i386/datetime.c: Likewise.
15218 * lib/efi/datetime.c: Likewise.
15220 2008-08-14 Robert Millan <rmh@aybabtu.com>
15222 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
15223 (grub_mkelfimage_SOURCES): New variable.
15224 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
15226 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
15227 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
15228 * conf/powerpc-ieee1275.rmk: Likewise.
15229 * conf/i386-ieee1275.rmk: Likewise.
15231 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
15232 * kern/i386/coreboot/init.c: Likewise.
15234 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
15235 with `<grub/cpu/kernel.h>'.
15236 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
15238 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
15239 * kern/i386/coreboot/startup.S: Likewise.
15241 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
15242 (GRUB_MOD_GAP): Remove.
15243 * include/grub/powerpc/kernel.h: New file.
15244 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
15245 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15246 * include/grub/i386/kernel.h: New file.
15247 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
15248 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
15249 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
15251 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
15253 Use --directory when invoking grub_mkimage.
15255 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
15256 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
15257 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
15258 and GRUB_KERNEL_CPU_PREFIX.
15260 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
15262 * include/grub/err.h (grub_err_printf): New function prototype.
15263 * util/misc.c (grub_err_printf): New function.
15264 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
15266 * kern/err.c (grub_print_error): Use grub_err_printf.
15268 2008-08-13 Robert Millan <rmh@aybabtu.com>
15270 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
15272 2008-08-13 Robert Millan <rmh@aybabtu.com>
15274 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
15277 2008-08-12 Robert Millan <rmh@aybabtu.com>
15279 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
15280 of the relocation code from here ...
15281 (grub_multiboot): ... to here.
15282 (forward_relocator, backward_relocator): Move from here ...
15283 * kern/i386/loader.S (grub_multiboot_forward_relocator)
15284 (grub_multiboot_backward_relocator): ... to here.
15285 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
15286 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
15287 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
15288 (grub_multiboot_forward_relocator_end)
15289 (grub_multiboot_backward_relocator)
15290 (grub_multiboot_backward_relocator_end): New variables.
15292 2008-08-12 Bean <bean123ch@gmail.com>
15294 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
15296 2008-08-11 Robert Millan <rmh@aybabtu.com>
15298 * kern/i386/linuxbios/startup.S: Move from here ...
15299 * kern/i386/coreboot/startup.S: ... to here.
15301 * kern/i386/linuxbios/init.c: Move from here ...
15302 * kern/i386/coreboot/init.c: ... to here.
15304 * kern/i386/linuxbios/table.c: Move from here ...
15305 * kern/i386/coreboot/mmap.c: ... to here.
15307 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
15309 2008-08-11 Robert Millan <rmh@aybabtu.com>
15311 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
15312 errors. Leave it to the upper layer to handle them.
15314 2008-08-09 Christian Franke <franke@computer.org>
15316 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
15317 * conf/common.rmk: Install `grub-pe2elf' only if requested.
15318 Install `grub.d/10_windows' only on Cygwin.
15319 * configure.ac: Add subst of `target_os'.
15320 Check `target_os' also before setting TARGET_OBJ2ELF.
15321 Add `--enable-grub-pe2elf'.
15323 2008-08-08 Robert Millan <rmh@aybabtu.com>
15325 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15326 (grub_last_time): Change type to grub_uint64_t.
15327 (grub_disk_open): Migrate code from to using grub_get_time_ms().
15328 (grub_disk_close): Likewise.
15330 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
15331 (run_menu): Migrate code from to using grub_get_time_ms().
15333 * util/misc.c (grub_get_time_ms): New function.
15335 2008-08-08 Marco Gerards <marco@gnu.org>
15337 * disk/ata.c (grub_ata_regget): Change return type to
15339 (grub_ata_regget2): Likewise.
15340 (grub_ata_wait_status): New function.
15341 (grub_ata_wait_busy): Removed function, updated all users to use
15342 `grub_ata_wait_status'.
15343 (grub_ata_wait_drq): Likewise.
15344 (grub_ata_cmd): New function.
15345 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
15347 (grub_ata_pio_write): Add error handling.
15348 (grub_atapi_identify): Likewise.
15349 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
15351 (grub_ata_identify): Use `grub_ata_cmd' and improve error
15352 handling. Actually use the detected registers. Reorder the
15353 detection logic such that it is easier to read.
15354 (grub_ata_pciinit): Do not assign the same ID to each controller.
15355 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
15357 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
15359 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
15361 2008-08-08 Marco Gerards <marco@gnu.org>
15365 2008-08-07 Bean <bean123ch@gmail.com>
15367 * include/grub/x86_64/pci.h: New file.
15369 2008-08-07 Christian Franke <franke@computer.org>
15371 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
15372 (TIMER2_GATE): Likewise.
15373 (grub_pit_wait): Add enable/disable of the timer2 gate
15374 bit of port 0x61. This fixes a possible infinite loop.
15376 2008-08-07 Bean <bean123ch@gmail.com>
15378 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
15379 kern/i386/tsc.c and kern/i386/pit.c.
15381 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
15384 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
15387 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
15389 2008-08-07 Bean <bean123ch@gmail.com>
15391 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
15393 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
15395 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
15396 multiple inclusion. Add #include <grub/types.h>.
15398 2008-08-06 Christian Franke <franke@computer.org>
15400 * conf/common.rmk: Build and install `10_windows'.
15401 * util/grub.d/10_windows.in: New script.
15403 2008-08-06 Pavel Roskin <proski@gnu.org>
15405 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
15407 2008-08-06 Robert Millan <rmh@aybabtu.com>
15409 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
15410 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
15412 2008-08-06 Bean <bean123ch@gmail.com>
15414 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
15415 (grub_pxefs_fs_int): Remove dummy definition.
15416 (grub_pxefs_open): Use data->block_size to store the current block
15418 (grub_pxefs_read): Use block size stored in data->block_size. As the
15419 value of grub_pxe_blksize can be changed after the file is opened.
15421 2008-08-06 Bean <bean123ch@gmail.com>
15423 * fs/i386/pc/pxe.c (curr_file): new variable.
15424 (grub_pxefs_open): Simply the handling of pxe file system. Don't
15425 require the dummy internal file system anymore.
15426 (grub_pxefs_read): Removed.
15427 (grub_pxefs_close): Likewise.
15428 (grub_pxefs_fs_int): Likewise.
15429 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
15430 connection when we switch file.
15431 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
15433 2008-08-06 Robert Millan <rmh@aybabtu.com>
15435 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
15437 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
15438 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
15440 * kern/i386/halt.c: New file.
15441 * kern/i386/reboot.c: Likewise.
15442 * include/grub/i386/reboot.h: Likewise.
15443 * include/grub/i386/halt.h: Likewise.
15445 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
15446 Include `<grub/cpu/halt.h>'.
15447 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
15448 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
15450 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
15451 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
15452 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
15453 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
15454 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
15455 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
15457 * include/grub/i386/at_keyboard.h: ... to here.
15459 2008-08-05 Robert Millan <rmh@aybabtu.com>
15461 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
15462 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
15463 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
15464 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15465 `kern/generic/millisleep.c'.
15467 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
15468 instead of grub_get_rtc().
15469 (grub_tsc_init): Initialize `tsc_boot_time'.
15471 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
15472 (grub_machine_init): Use grub_tsc_init() rather than
15473 installing an RTC-based handler via grub_install_get_time_ms().
15475 * kern/i386/pit.c: New file.
15476 * include/grub/i386/pit.h: Likewise.
15478 2008-08-05 Bean <bean123ch@gmail.com>
15480 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
15482 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
15483 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
15484 (pxe_mod_SOURCES): New macro.
15485 (pxe_mod_CFLAGS): Likewise.
15486 (pxe_mod_LDFLAGS): Likewise.
15487 (pxecmd_mod_SOURCES): Likewise.
15488 (pxecmd_mod_CFLAGS): Likewise.
15489 (pxecmd_mod_LDFLAGS): Likewise.
15491 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
15492 (grub_pxe_call): Likewise.
15494 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
15496 * commands/i386/pc/pxecmd.c: New file.
15498 * fs/i386/pc/pxe.c: Likewise.
15500 * include/grub/i386/pc/pxe.h: Likewise.
15502 2008-08-05 Bean <bean123ch@gmail.com>
15504 * util/console.c (grub_console_cur_color): New variable.
15505 (grub_console_standard_color): Likewise.
15506 (grub_console_normal_color): Likewise.
15507 (grub_console_highlight_color): Likewise.
15508 (color_map): Likewise.
15509 (use_color): Likewise.
15510 (NUM_COLORS): New macro.
15511 (grub_ncurses_setcolorstate): Handle color properly.
15512 (grub_ncurses_setcolor): Don't change color here, just remember the
15513 settings, color will be set in grub_ncurses_setcolorstate.
15514 (grub_ncurses_getcolor): New function.
15515 (grub_ncurses_init): Initialize color pairs.
15516 (grub_ncurses_term): New member grub_ncurses_getcolor.
15518 2008-08-05 Colin D Bennett <colin@gibibit.com>
15520 High resolution timer support. Implemented for x86 CPUs using TSC.
15521 Extracted generic grub_millisleep() so it's linked in only as needed.
15522 This requires a Pentium compatible CPU; if the RDTSC instruction is
15523 not supported, then it falls back on the generic grub_get_time_ms()
15524 implementation that uses the machine's RTC.
15526 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
15527 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
15528 `kern/generic/millisleep.c'.
15530 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
15531 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
15533 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
15534 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
15536 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
15538 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15539 `kern/generic/millisleep.c'.
15541 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
15543 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
15545 * kern/generic/rtc_get_time_ms.c: New file.
15547 * kern/generic/millisleep.c: New file.
15549 * kern/misc.c: Don't include
15550 <kern/time.h> anymore.
15551 (grub_millisleep_generic): Removed.
15553 * commands/sleep.c (grub_interruptible_millisleep): Uses
15554 grub_get_time_ms() instead of grub_get_rtc().
15556 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
15558 (grub_cpu_is_cpuid_supported): New inline function.
15559 (grub_cpu_is_tsc_supported): New inline function.
15560 (grub_tsc_init): New function prototype.
15561 (grub_tsc_get_time_ms): New function prototype.
15563 * kern/i386/tsc.c (grub_get_time_ms): New file.
15565 * include/grub/time.h: Include <grub/types.h.
15566 (grub_millisleep_generic): Removed.
15567 (grub_get_time_ms): New prototype.
15568 (grub_install_get_time_ms): New prototype.
15569 (grub_rtc_get_time_ms): New prototype.
15571 * kern/time.c (grub_get_time_ms): New function.
15572 (grub_install_get_time_ms): New function.
15574 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
15575 <grub/time.h> anymore.
15576 (grub_millisleep): Removed.
15577 (grub_machine_init): Call grub_tsc_init.
15579 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
15580 get_time_ms() implementation.
15582 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
15583 (ieee1275_get_time_ms): New function.
15584 (grub_machine_init): Install get_time_ms() implementation.
15586 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
15587 (grub_machine_init): Call grub_tsc_init().
15588 (grub_millisleep): Removed.
15590 * kern/ieee1275/init.c (grub_millisleep): Removed.
15591 (grub_machine_init): Install ieee1275_get_time_ms()
15593 (ieee1275_get_time_ms): New function.
15594 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
15597 2008-08-05 Marco Gerards <marco@gnu.org>
15599 * disk/ata.c: Include <grub/pci.h>.
15600 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
15601 (grub_ata_initialize): Rewritten.
15602 (grub_ata_device_initialize): New function.
15604 2008-08-04 Pavel Roskin <proski@gnu.org>
15606 * kern/main.c: Include grub/mm.h.
15608 2008-08-04 Robert Millan <rmh@aybabtu.com>
15610 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
15611 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
15612 corruption problem).
15614 2008-08-04 Robert Millan <rmh@aybabtu.com>
15616 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
15617 warnings introduced in my last commit.
15619 2008-08-03 Robert Millan <rmh@aybabtu.com>
15621 Make PCI available on all i386 architectures.
15623 * include/grub/i386/pc/pci.h: Move from here ...
15624 * include/grub/i386/pci.h: ... to here.
15626 * include/grub/i386/pc/pci.h: Remove.
15627 * include/grub/i386/efi/pci.h: Remove.
15628 * include/grub/x86_64/efi/pci.h: Remove.
15630 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
15631 `<grub/cpu/pci.h>'.
15633 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
15634 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
15635 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
15637 * conf/i386-ieee1275.rmk: Likewise.
15639 2008-08-03 Robert Millan <rmh@aybabtu.com>
15641 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
15642 (grub_console_setcursor): Make it possible to set cursor off.
15644 2008-08-03 Robert Millan <rmh@aybabtu.com>
15646 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
15647 of modules instead of assuming which platform provides what.
15648 * util/update-grub.in: Likewise.
15650 2008-08-03 Robert Millan <rmh@aybabtu.com>
15652 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
15653 instead of `grub_install_dos_part' to determine whether a drive needs
15654 to be prepended to prefix (`grub_install_dos_part' is not reliable,
15655 because it can be overridden when loading GRUB via Multiboot).
15657 2008-08-02 Robert Millan <rmh@aybabtu.com>
15659 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
15661 2008-08-02 Robert Millan <rmh@aybabtu.com>
15663 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
15664 of informational grub_dprintf() calls.
15666 2008-08-02 Robert Millan <rmh@aybabtu.com>
15668 * disk/memdisk.c (memdisk_size): Don't initialize.
15669 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
15671 * include/grub/i386/pc/kernel.h
15672 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
15673 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
15674 (grub_memdisk_image_size, grub_arch_memdisk_addr)
15675 (grub_arch_memdisk_size): Remove.
15677 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
15678 field (was only used to transfer a constant). Add `type' field to
15679 support multiple module types.
15680 (grub_module_iterate): New function.
15682 * kern/device.c (grub_device_open): Do not hide error messages
15683 when grub_disk_open() fails. Use grub_print_error() instead.
15685 * kern/i386/pc/init.c (grub_arch_modules_addr)
15686 (grub_arch_memdisk_size): Remove functions.
15687 (grub_arch_modules_addr): Return the module address in high memory
15688 (now that it isn't copied anymore).
15690 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
15691 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
15692 decompression routine (grub_total_module_size already includes that
15693 now). Don't copy modules back to low memory.
15695 * kern/main.c: Include `<grub/mm.h>'.
15696 (grub_load_modules): Split out (and use) ...
15697 (grub_module_iterate): ... this function, which iterates through
15698 module objects and runs a hook.
15699 Comment out grub_mm_init_region() call, as it would cause non-ELF
15700 modules to be overwritten.
15702 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
15703 the memdisk image in its own region, make it part of the module list.
15704 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
15705 (main): Parse --memdisk|-m option, and pass user-provided path as
15706 parameter to generate_image().
15707 (add_segments): Pass `memdisk_path' down to load_modules().
15708 (load_modules): Embed memdisk image in module section when requested.
15709 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
15710 `header.type' instead of `header.offset'.
15712 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
15713 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
15714 (memdisk_mod_LDFLAGS): New variables.
15715 * conf/i386-coreboot.rmk: Likewise.
15716 * conf/i386-ieee1275.rmk: Likewise.
15718 2008-08-02 Robert Millan <rmh@aybabtu.com>
15720 * loader/i386/pc/multiboot.c (playground, forward_relocator)
15721 (backward_relocator): New variables. Used to allocate and relocate
15722 the payload, respectively.
15723 (grub_multiboot_load_elf32): Load into heap instead of requested
15724 address, install the appropriate relocator code in each bound of
15725 the payload, and set the entry point such that
15726 grub_multiboot_real_boot() will jump to one of them.
15728 * kern/i386/loader.S (grub_multiboot_payload_size)
15729 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
15730 (grub_multiboot_payload_entry_offset): New variables.
15731 (grub_multiboot_real_boot): Set cpu context to what the relocator
15732 expects, and jump to the relocator instead of the payload.
15734 * include/grub/i386/loader.h (grub_multiboot_payload_size)
15735 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
15736 (grub_multiboot_payload_entry_offset): Export.
15738 2008-08-01 Bean <bean123ch@gmail.com>
15740 * normal/menu_entry.c (editor_getline): Don't return the original
15741 string as result, as it will be released by lexer once it has done
15744 2008-08-01 Robert Millan <rmh@aybabtu.com>
15746 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
15747 within menuentries, not before them.
15748 util/grub.d/10_hurd.in: Likewise.
15750 2008-08-01 Bean <bean123ch@gmail.com>
15752 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
15753 (bufio_mod_SOURCES): New macro.
15754 (bufio_mod_CFLAGS): Likewise.
15755 (bufio_mod_LDFLAGS): Likewise.
15757 * include/grub/bufio.h: New file.
15759 * io/bufio.c: Likewise.
15761 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
15762 (grub_video_reader_png): Use grub_buffile_open to open file.
15764 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
15765 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
15767 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
15768 (grub_video_reader_tga): Use grub_buffile_open to open file.
15770 * font/manager.c: Include <grub/bufio.h>.
15771 (add_font): Use grub_buffile_open to open file.
15773 2008-07-31 Robert Millan <rmh@aybabtu.com>
15775 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
15776 ELF segments, use a macro for arbitrarily accessing any of them instead
15777 of preparing a pointer that allows access to one at a time.
15778 (grub_multiboot_load_elf64): Likewise.
15780 2008-07-31 Bean <bean123ch@gmail.com>
15782 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
15783 GRUB_KERNEL_MACHINE_DATA_END.
15785 2008-07-30 Robert Millan <rmh@aybabtu.com>
15787 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
15788 Increase from 0x50 to 0x60.
15789 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
15790 use UUIDs to identify the root drive for them. If that's not
15792 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
15793 check, for cross-disk installs.
15795 2008-07-30 Robert Millan <rmh@aybabtu.com>
15797 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
15798 is non-empty, use it to set the `prefix' environment variable instead
15799 of the usual approach.
15800 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
15801 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
15802 environment variable instead of dummy make_install_device().
15804 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
15805 (start): Insert a data section, with `grub_prefix' variable.
15806 * kern/i386/linuxbios/startup.S: Likewise.
15808 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
15809 New variable reference.
15810 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
15811 New macro. Defines offset of `grub_prefix' within startup.S (relative
15813 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
15814 section within startup.S (relative to `start').
15815 * include/grub/i386/coreboot/kernel.h: Likewise.
15817 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
15818 Overwrite grub_prefix with its contents, at the beginning of the
15820 (main): Understand -p|--prefix.
15822 2008-07-30 Robert Millan <rmh@aybabtu.com>
15824 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
15826 2008-07-30 Robert Millan <rmh@aybabtu.com>
15828 * term/i386/pc/vga_text.c (grub_console_cls): Use
15829 grub_console_gotoxy() to go back to beginning of the screen.
15830 Found by Patrick Georgi <patrick.georgi@coresystems.de>
15832 2008-07-29 Christian Franke <franke@computer.org>
15834 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
15835 Add conversion of emulated mount points on Cygwin.
15837 2008-07-29 Christian Franke <franke@computer.org>
15839 * util/update-grub.in: Add a check for admin
15841 Remove old `grub.cfg.new' before creation.
15842 Add `-f' to `mv' to handle the different filesystem
15843 semantics of Windows.
15845 2008-07-29 Bean <bean123ch@gmail.com>
15847 * normal/main.c (get_line): Fix buffer overflow bug.
15849 2008-07-28 Robert Millan <rmh@aybabtu.com>
15851 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
15852 (struct grub_apple_header): New struct. Describes the layout of
15853 the partmap header.
15854 (apple_partition_map_iterate): Check the header magic as well as the
15855 partition magic (which was already being checked).
15857 2008-07-28 Pavel Roskin <proski@gnu.org>
15859 * genmk.rb: Add a warning to the beginning of the output that
15860 it's a generated file and should not be edited.
15862 2008-07-28 Robert Millan <rmh@aybabtu.com>
15864 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
15865 with the same number are found, just use issue a warning with
15866 grub_dprintf(), as this error has been reported to be non-fatal.
15868 2008-07-27 Robert Millan <rmh@aybabtu.com>
15870 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
15873 2008-07-27 Bean <bean123ch@gmail.com>
15875 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
15876 (grub_fat_find_dir): Ignore case when comparing filename.
15878 2008-07-27 Bean <bean123ch@gmail.com>
15880 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
15881 smallino, as it's more descriptive, and i8count can be confused with
15882 the other field count.
15883 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
15886 2008-07-27 Bean <bean123ch@gmail.com>
15888 * commands/crc.c: New file.
15890 * lib/crc.c: Likewise.
15892 * include/grub/lib/crc.h: Likewise.
15894 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
15896 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
15897 (hexdump): Move this function to ...
15899 * lib/hexdump.c: ... here.
15901 * include/grub/hexdump.h: Renamed to ...
15903 * include/grub/lib/hexdump.h: ... this.
15905 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
15907 * util/grub-editenv.c: Likewise.
15909 * include/envblk.h: Renamed to ...
15911 * include/lib/envblk.h: ... this.
15913 * util/envblk.c: Renamed to ...
15915 * lib/envblk.c: ... this.
15917 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
15919 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
15920 (pkglib_MODULES): Add crc.mod.
15921 (hexdump_mod_SOURCES): Add lib/hexdump.c.
15922 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
15923 (crc_mod_SOURCES): New macro.
15924 (crc_mod_CFLAGS): Likewise.
15925 (crc_mod_LDFLAGS): Likewise.
15927 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
15929 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15931 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15933 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15935 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15937 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
15939 * commands/help.c: Include <grub/term.h>.
15940 (TERM_WIDTH): Removed. Updated all users.
15942 2008-07-27 Pavel Roskin <proski@gnu.org>
15944 * util/getroot.c (find_root_device): Rephrase a comment to avoid
15945 spurious warnings about a comment within a comment.
15947 2008-07-25 Robert Millan <rmh@aybabtu.com>
15949 * util/getroot.c (find_root_device): Skip devices that match
15950 /dev/dm-[0-9]. This lets the real device be found for any type of
15951 abstraction (LVM, EVMS, RAID..).
15952 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
15953 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
15954 device is found first, find_root_device() will now skip it.
15956 2008-07-24 Pavel Roskin <proski@gnu.org>
15958 * include/grub/types.h: Use __builtin_bswap32() and
15959 __builtin_bswap64() with gcc 4.3 and newer.
15961 2008-07-24 Christian Franke <franke@computer.org>
15963 * util/i386/pc/grub-install.in: If `--debug' is specified,
15964 pass `--verbose' to grub-setup.
15965 Abort script if make_system_path_relative_to_its_root() fails.
15967 2008-07-24 Bean <bean123ch@gmail.com>
15969 * configure.ac: Fixed a bug caused by the previous cygwin patch,
15970 variable `target_platform' should be `platform'.
15972 2008-07-24 Bean <bean123ch@gmail.com>
15974 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
15975 (grub_png_init_fixed_block): New function.
15976 (grub_png_decode_image_data): Handle fixed huffman code compression.
15978 2008-07-24 Bean <bean123ch@gmail.com>
15980 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
15981 (grub_pe2elf_SOURCES): New macro.
15982 (CLEANFILES): Add grub-pe2elf.
15984 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
15985 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
15986 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
15987 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
15988 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
15989 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
15990 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
15991 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
15992 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
15993 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
15994 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
15995 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
15996 (GRUB_PE32_DT_FUNCTION): Likewise.
15997 (GRUB_PE32_REL_I386_DIR32): Likewise.
15998 (GRUB_PE32_REL_I386_REL32): Likewise.
15999 (grub_pe32_symbol): New structure.
16000 (grub_pe32_reloc): Likewise.
16002 * util/grub-pe2elf.c: New file.
16004 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
16005 start symbol in non pc platform.
16007 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
16009 The following patches are from Christian Franke.
16011 * include/grub/dl.h: Remove .previous, gas supports this only
16014 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
16015 Remove .type, gas supports this only for ELF format.
16017 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
16018 nullbytes in symbol table. This fixes an infinite loop if table is
16021 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
16022 TARGET_IMG_LDFLAGS and EXEEXT.
16024 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
16025 TARGET_IMG_LDFLAGS_AC.
16026 (grub_CHECK_STACK_ARG_PROBE): New function.
16028 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
16030 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
16032 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
16033 to set TARGET_IMG_LD* accordingly.
16034 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
16035 Add call to grub_CHECK_STACK_ARG_PROBE.
16036 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
16038 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
16040 * genmk.rb: Add EXEEXT to CLEANFILES.
16042 2008-07-23 Robert Millan <rmh@aybabtu.com>
16044 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
16045 define the codes for arrows and lines used for the menu).
16046 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
16049 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
16050 fonts, because the latter are too slow.
16052 2008-07-21 Bean <bean123ch@gmail.com>
16054 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
16055 a20. Run keyboard test last, as it will cause macbook to halt.
16057 2008-07-18 Pavel Roskin <proski@gnu.org>
16059 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
16060 load foreign architecture modules correctly anyway. Keep
16061 support for loading host architecture modules, whether we
16062 compile them or not.
16064 2008-07-17 Pavel Roskin <proski@gnu.org>
16066 * configure.ac: Use -m32 or -m64 regardless of whether we had to
16067 change target_cpu. The compiler default can mismatch target_cpu
16070 * disk/efi/efidisk.c: Fix format warnings on x86_64.
16071 * kern/efi/efi.c: Likewise.
16073 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
16074 target compiler is functional.
16075 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
16078 * configure.ac: Default to efi platform for x86_64-apple. Allow
16079 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
16080 adjustments from the rest, only do them if target is not
16081 explicitly given. Merge other adjustments with the final sanity
16082 check. Remove an extraneous check for supported CPU. Be
16083 specific which CPU and which platform is not supported.
16085 * configure.ac: Default to pc platform for x86_64.
16087 2008-07-17 Robert Millan <rmh@aybabtu.com>
16089 Partial LinuxBIOS -> Coreboot rename.
16091 * conf/i386-linuxbios.rmk: Renamed to ...
16092 * conf/i386-coreboot.rmk: ... this.
16093 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
16094 * configure.ac: Accept "coreboot" as input platform (but maintain
16095 compatibility with "linuxbios").
16096 * include/grub/i386/linuxbios: Renamed to ...
16097 * include/grub/i386/coreboot: ... this.
16099 2008-07-17 Bean <bean123ch@gmail.com>
16101 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
16102 (appleldr_mod_SOURCE): New variable.
16103 (appleldr_mod_CFLAGS): Likewise.
16104 (appleldr_mod_LDFLAGS): Likewise.
16105 (pci_mod_SOURCES): Likewise.
16106 (pci_mod_CFLAGS): Likewise.
16107 (pci_mod_LDFLAGS): Likewise.
16108 (lspci_mod_SOURCES): Likewise.
16109 (lspci_mod_CFLAGS): Likewise.
16110 (lspci_mod_LDFLAGS): Likewise.
16112 * conf/x86_64-efi.rmk: New file.
16114 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
16116 (grub_efidisk_write): Likewise.
16118 * include/efi/api.h (efi_call_0): New macro.
16119 (efi_call_1): Likewise.
16120 (efi_call_2): Likewise.
16121 (efi_call_3): Likewise.
16122 (efi_call_4): Likewise.
16123 (efi_call_5): Likewise.
16124 (efi_call_6): Likewise.
16126 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
16127 grub_rescue_cmd_chainloader.
16129 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
16130 (grub_pe32_optional_header): Change some fields based on i386 or
16132 (GRUB_PE32_PE32_MAGIC): Likewise.
16134 * include/grub/efi/uga_draw.h: New file.
16136 * include/grub/elf.h (STN_ABS): New constant.
16137 (R_X86_64_NONE): Relocation constant for x86_64.
16138 (R_X86_64_64): Likewise.
16139 (R_X86_64_PC32): Likewise.
16140 (R_X86_64_GOT32): Likewise.
16141 (R_X86_64_PLT32): Likewise.
16142 (R_X86_64_COPY): Likewise.
16143 (R_X86_64_GLOB_DAT): Likewise.
16144 (R_X86_64_JUMP_SLOT): Likewise.
16145 (R_X86_64_RELATIVE): Likewise.
16146 (R_X86_64_GOTPCREL): Likewise.
16147 (R_X86_64_32): Likewise.
16148 (R_X86_64_32S): Likewise.
16149 (R_X86_64_16): Likewise.
16150 (R_X86_64_PC16): Likewise.
16151 (R_X86_64_8): Likewise.
16152 (R_X86_64_PC8): Likewise.
16154 * include/grub/i386/efi/pci.h: New file.
16156 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
16157 Change it value based on platform.
16158 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
16159 (GRUB_E820_RAM): Likewise.
16160 (GRUB_E820_RESERVED): Likewise.
16161 (GRUB_E820_ACPI): Likewise.
16162 (GRUB_E820_NVS): Likewise.
16163 (GRUB_E820_EXEC_CODE): Likewise.
16164 (GRUB_E820_MAX_ENTRY): Likewise.
16165 (grub_e820_mmap): New structure.
16166 (linux_kernel_header): Change the efi field according to different
16167 kernel version, also field from linux_kernel_header.
16169 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
16171 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
16172 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
16173 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
16174 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
16175 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
16176 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
16177 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
16178 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
16179 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
16180 (GRUB_PCI_ADDR_IO_MASK): Likewise.
16182 * include/grub/x86_64/efi/kernel.h: New file.
16184 * include/grub/x86_64/efi/loader.h: Likewise.
16186 * include/grub/x86_64/efi/machine.h: Likewise.
16188 * include/grub/x86_64/efi/pci.h: Likewise.
16190 * include/grub/x86_64/efi/time.h: Likewise.
16192 * include/grub/x86_64/linux.h: Likewise.
16194 * include/grub/x86_64/setjmp.h: Likewise.
16196 * include/grub/x86_64/time.h: Likewise.
16198 * include/grub/x86_64/types.h: Likewise.
16200 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
16201 GRUB_TARGET_SIZEOF_VOID_P.
16203 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
16204 (grub_efi_locate_handle): Likewise.
16205 (grub_efi_open_protocol): Likewise.
16206 (grub_efi_set_text_mode): Likewise.
16207 (grub_efi_stall): Likewise.
16208 (grub_exit): Likewise.
16209 (grub_reboot): Likewise.
16210 (grub_halt): Likewise.
16211 (grub_efi_exit_boot_services): Likewise.
16212 (grub_get_rtc): Likewise.
16214 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
16215 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
16216 (grub_efi_allocate_pages): Wrap efi calls.
16217 (grub_efi_free_pages): Wrap efi calls.
16218 (grub_efi_get_memory_map): Wrap efi calls.
16220 * kern/x86_64/dl.c: New file.
16222 * kern/x86_64/efi/callwrap.S: Likewise.
16224 * kern/x86_64/efi/startup.S: Likewise.
16226 * loader/efi/appleloader.c: Likewise.
16228 * loader/efi/chainloader.c (cmdline): New variable.
16229 (grub_chainloader_unload): Wrap efi calls.
16230 (grub_chainloader_boot): Likewise.
16231 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
16234 * loader/efi/chainloader_normal.c (chainloader_command):
16235 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
16238 * loader/i386/efi/linux.c (allocate_pages): Change allocation
16240 (grub_e820_add_region): New function.
16241 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
16243 (grub_find_video_card): New function.
16244 (grub_linux_setup_video): New function.
16245 (grub_rescue_cmd_linux): Probe for video information.
16247 * normal/x86_64/setjmp.S: New file.
16249 * term/efi/console.c (map_char): New function.
16250 (grub_console_putchar): Map unicode char.
16251 (grub_console_checkkey): Wrap efi calls.
16252 (grub_console_getkey): Likewise.
16253 (grub_console_getwh): Likewise.
16254 (grub_console_gotoxy): Likewise.
16255 (grub_console_cls): Likewise.
16256 (grub_console_setcolorstate): Likewise.
16257 (grub_console_setcursor): Likewise.
16259 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
16261 2008-07-16 Pavel Roskin <proski@gnu.org>
16263 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
16266 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
16267 pointer, not an integer. This fixes a warning and prevents
16268 precision loss on 64-bit systems.
16269 (relocate_addresses): Remove unneeded cast.
16271 2008-07-15 Pavel Roskin <proski@gnu.org>
16273 * kern/i386/ieee1275/init.c: Include grub/cache.h.
16275 * term/ieee1275/ofconsole.c: Disable code unused on i386.
16277 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
16278 Fix comparison between signed and unsigned.
16280 * include/grub/i386/ieee1275/console.h: Declare
16281 grub_console_init() and grub_console_fini().
16283 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
16284 It's empty and unused.
16286 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
16287 beginning to avoid warnings with some compilers.
16289 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
16290 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
16292 2008-07-14 Pavel Roskin <proski@gnu.org>
16294 * kern/env.c (grub_register_variable_hook): Don't copy empty
16295 string, it leaks memory. Pass "" to grub_env_set(), it should
16296 handle constant strings.
16298 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
16299 * commands/cmp.c (grub_cmd_cmp): Likewise.
16300 * kern/dl.c (grub_dl_flush_cache): Likewise.
16301 (grub_dl_load_core): Likewise.
16302 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
16303 (grub_elf64_load_phdrs): Likewise.
16305 2008-07-13 Pavel Roskin <proski@gnu.org>
16307 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
16308 between signed and unsigned.
16309 (LzmaEnc_Finish): Fix warning about an unused parameter.
16311 2008-07-13 Bean <bean123ch@gmail.com>
16313 * Makefile.in (enable_lzo): New rule.
16315 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
16317 * configure.ac (ENABLE_LZO): New option --enable-lzo.
16319 * boot/i386/pc/lnxboot.S: #include <config.h>.
16321 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
16322 its value according to the compression algorithm used, lzo or lzma.
16324 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
16325 compression algorithm according to configure macro.
16327 * kern/i386/pc/startup.S (codestart): Likewise.
16329 * kern/i386/pc/lzma_decode.S: New file.
16331 * include/grub/lib/LzFind.h: Likewise.
16333 * include/grub/lib/LzHash.h: Likewise.
16335 * include/grub/lib/LzmaDec.h: Likewise.
16337 * include/grub/lib/LzmaEnc.h: Likewise.
16339 * include/grub/lib/LzmaTypes.h: Likewise.
16341 * lib/LzFind.c: Likewise.
16343 * lib/LzmaDec.c: Likewise.
16345 * lib/LzmaEnc.c: Likewise.
16347 2008-07-13 Bean <bean123ch@gmail.com>
16349 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
16350 (grub_ext4_extent_header): New structure.
16351 (grub_ext4_extent): Likewise.
16352 (grub_ext4_extent_idx): Likewise.
16353 (grub_ext4_find_leaf): New function.
16354 (grub_ext2_read_block): Handle extents.
16356 2008-07-12 Robert Millan <rmh@aybabtu.com>
16358 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
16360 2008-07-11 Robert Millan <rmh@aybabtu.com>
16362 * util/grub.d/40_custom.in: New file. Example on how to add custom
16363 entries to /etc/grub.d.
16364 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
16365 40_custom (implicitly, by merging all the grub.d rules).
16367 2008-07-11 Pavel Roskin <proski@gnu.org>
16369 * commands/read.c (grub_getline): Fix invalid memory access.
16370 Don't add newline to the variable value.
16372 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
16373 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
16374 (serial_hw_get_port): Check validity of the port number.
16375 (grub_cmd_serial): Check return value of serial_hw_get_port().
16377 2008-07-07 Pavel Roskin <proski@gnu.org>
16379 * boot/i386/pc/diskboot.S (notification_string): Replace
16380 "Loading kernel" with just "loading". This is shorter, less
16381 confusing and saves a few bytes for possible future changes.
16383 2008-07-05 Pavel Roskin <proski@gnu.org>
16385 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
16386 size for ATAPI devices, they are undefined. Output sector
16387 number in decimal form.
16389 * disk/ata.c: Use named constants for status bits.
16391 2008-07-04 Pavel Roskin <proski@gnu.org>
16393 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
16394 grub_addr_t before casting it to the void pointer to fix a
16395 warning. Non-addressable regions are discarded earlier.
16396 (grub_arch_modules_addr): Cast _end to grub_addr_t.
16397 * kern/i386/linuxbios/table.c: Include grub/misc.h.
16398 (check_signature): Don't shadow table_header.
16399 (grub_linuxbios_table_iterate): Cast numeric constants to
16400 grub_linuxbios_table_header_t.
16401 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
16404 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
16407 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
16408 pointer, which can cause warnings. Support 64-bit addresses.
16410 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
16411 of sizeof(long). This fixes PowerPC image generation on x86_64.
16413 2008-07-04 Robert Millan <rmh@aybabtu.com>
16415 This fixes a performance issue when pc & gpt partmap iterators
16416 didn't abort iteration even after our hook found what it was
16417 looking for (often causing expensive probes of non-existent drives).
16419 Some callers relied on previous buggy behaviour, since they would
16420 raise an error when their own hooks caused early abortion of its
16423 * kern/device.c (grub_device_open): Improve error message.
16424 * disk/lvm.c (grub_lvm_open): Likewise.
16425 * disk/raid.c (grub_raid_open): Likewise.
16427 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
16428 when hook requests it, independently of grub_errno.
16429 (pc_partition_map_probe): Do not fail when find_func() caused
16430 early abortion of pc_partition_map_iterate().
16432 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
16433 when hook requests it, independently of grub_errno.
16434 (gpt_partition_map_probe): Do not fail when find_func() caused
16435 early abortion of gpt_partition_map_iterate().
16437 * kern/partition.c (grub_partition_iterate): Abort parent iteration
16438 when hook requests it, independently of grub_errno. Do not fail when
16439 part_map_iterate_hook() caused early abortion of p->iterate().
16441 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
16442 when grub_partition_iterate() returned with non-zero.
16444 2008-07-03 Pavel Roskin <proski@gnu.org>
16446 * disk/ata.c (grub_ata_pio_write): Check status before writing,
16447 like we do in grub_ata_pio_read().
16448 (grub_ata_readwrite): Always write individual sectors. Fix the
16449 sector count for the remainder.
16450 (grub_ata_write): Enable writing to ATA devices. Correctly
16451 report error for ATAPI devices.
16453 2008-07-02 Pavel Roskin <proski@gnu.org>
16455 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
16458 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
16459 for every read sector, we already increment it for the whole
16460 batch. This fixes reading more than 256 sectors at once.
16462 * util/grub-editenv.c (cmd_info): Cast argument to long
16463 explicitly. ptrdiff_t reduces to int on i386.
16465 * util/grub-editenv.c (main): Be specific which parameter is
16468 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
16469 (memdisk): Make memdisk_orig_addr a pointer.
16471 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
16472 for file offsets, use grub_off_t instead. Fix printf format
16475 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
16476 there. Real unexpected warnings should not drown in the noise
16477 about known problems.
16479 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
16480 grub_disk_addr_t for memory addresses.
16482 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
16483 explicitly to fix a warning.
16485 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
16487 * Makefile.in (MODULE_LDFLAGS): New variable.
16488 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
16489 the linker accepts --build-id=none.
16490 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
16492 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
16494 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
16495 those in Linux XFS code. Provide a way to access 64-bit parent
16497 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
16498 the end of struct grub_xfs_dir_header.
16500 2008-07-02 Bean <bean123ch@gmail.com>
16502 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
16503 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
16504 and GRUB_IEEE1275_FLAG_NO_ANSI.
16506 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
16507 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
16508 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
16510 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
16511 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
16513 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
16514 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
16516 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
16517 esc sequence on non ANSI terminal.
16518 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
16520 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
16523 2008-07-02 Bean <bean123ch@gmail.com>
16525 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
16526 (grub_editenv_SOURCES): New variable.
16527 (pkglib_MODULES): Add loadenv.mod.
16528 (loadenv_mod_SOURCES): New variable.
16529 (loadenv_mod_CFLAGS): Likewise.
16530 (loadenv_mod_LDFLAGS): Likewise.
16532 * include/grub/envblk.h: New file.
16534 * util/envblk.c: New file.
16536 * util/grub-editenv.c: New file.
16538 * commands/loadenv.c: New file.
16540 2008-07-01 Pavel Roskin <proski@gnu.org>
16542 * include/multiboot2.h (struct multiboot_tag_module): Use char,
16543 not unsigned char. This fixes warnings and is consistent with
16546 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
16548 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
16550 * term/tparm.c (analyze): Always set *popcount.
16552 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
16553 cast to fix a warning.
16555 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
16556 cast to suppress a warning.
16558 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
16559 grub_fshelp_read_file() expects.
16561 * fs/fat.c: Fix UUID calculation on big-endian systems. We
16562 write uuid as a 32-bit value in CPU byte order, so declare and
16565 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
16566 long if the format specifier expects it.
16567 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
16568 * partmap/pc.c (pc_partition_map_iterate): Likewise.
16569 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
16570 long to fix a warning.
16571 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
16572 grub_dprintf() arguments to fix warnings.
16574 2008-06-30 Pavel Roskin <proski@gnu.org>
16576 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
16577 install_bsd_part immediately before core.img is embedded or
16578 modified on disk. This fixes core.img verification if core.img
16579 cannot be embedded.
16581 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
16582 core_path to calculate the blocklist.
16583 Patch from Javier Martín <lordhabbit@gmail.com>
16585 2008-06-29 Robert Millan <rmh@aybabtu.com>
16587 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
16588 block to disk block.
16589 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
16590 Patch from Niels Böhm <bitbucket@arcor.de>
16592 2008-06-29 Robert Millan <rmh@aybabtu.com>
16594 * util/update-grub_lib.in (font_path): Search for fonts in
16595 /boot/grub first, which is more likely to be readable (we aren't
16596 deciding where fonts live, just looking for them).
16598 2008-06-26 Pavel Roskin <proski@gnu.org>
16600 * util/biosdisk.c (read_device_map): Don't leave dead map
16601 entries for devices failing stat() check.
16603 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
16604 core_path_dev for the core.img path on the target device.
16606 2008-06-26 Robert Millan <rmh@aybabtu.com>
16608 * disk/fs_uuid.c: New file.
16609 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
16610 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
16611 (fs_uuid_mod_LDFLAGS): New variables.
16612 * include/grub/disk.h (grub_disk_dev_id): Add
16613 `GRUB_DISK_DEVICE_UUID_ID'.
16614 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
16615 implement iterate().
16617 2008-06-26 Robert Millan <rmh@aybabtu.com>
16619 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
16620 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
16621 Linux image includes no initrd.
16623 2008-06-21 Javier Martín <lordhabbit@gmail.com>
16625 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
16626 call to resolve the core image location that effectively appended the
16629 2008-06-21 Robert Millan <rmh@aybabtu.com>
16631 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
16634 * util/grub.d/10_hurd.in: ... to here ...
16635 * util/grub.d/10_linux.in: ... and here.
16637 2008-06-19 Robert Millan <rmh@aybabtu.com>
16639 * kern/main.c (grub_main): Export `prefix' variable immediately
16640 after it has been set by grub_machine_set_prefix().
16642 2008-06-19 Robert Millan <rmh@aybabtu.com>
16644 * commands/search.c (search_label, search_fs_uuid, search_file): Print
16645 search result when not saving to variable, not the other way around.
16646 When saving to variable, abort iteration as soon as a match is found.
16648 2008-06-19 Robert Millan <rmh@aybabtu.com>
16650 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
16651 check for partition that provides /boot/grub. Its logic is flawed,
16652 as it prevents prepare_grub_to_access_device() from being called
16655 2008-06-19 Robert Millan <rmh@aybabtu.com>
16657 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
16658 "insmod" command directly when abstraction modules are needed,
16659 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
16660 since it had already been processed).
16662 2008-06-19 Pavel Roskin <proski@gnu.org>
16664 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
16665 changed. This is needed in case GRUB_LIBDIR changes.
16666 * conf/i386-ieee1275.rmk: Likewise.
16667 * conf/i386-linuxbios.rmk: Likewise.
16668 * conf/i386-pc.rmk: Likewise.
16669 * conf/powerpc-ieee1275.rmk: Likewise.
16671 2008-06-18 Pavel Roskin <proski@gnu.org>
16673 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
16674 kernel_elf_symlist.c to symlist.c for consistency with other
16675 architectures. Update all users.
16676 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16678 2008-06-18 Robert Millan <rmh@aybabtu.com>
16680 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
16683 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
16684 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
16685 a RAID device, run setup() for all members independently on whether
16686 LVM abstraction is being used.
16687 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
16688 If grub-mkimage has set `*install_dos_part == -2', don't override this
16690 Perform *install_dos_part adjustments independently on whether
16691 we're embedding or not.
16692 Clarify error message when image is too big for embedding.
16693 Remove duplicate *install_dos_part stanza.
16695 2008-06-17 Robert Millan <rmh@aybabtu.com>
16697 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
16698 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
16700 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
16701 values in grub_ofconsole_normal_color and
16702 grub_ofconsole_highlight_color (they're not directly related to
16703 background and foreground).
16704 (grub_ofconsole_setcolorstate): Extract background and foreground
16705 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
16707 2008-06-17 Robert Millan <rmh@aybabtu.com>
16709 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
16710 /boot/grub for the check in last commit, not /boot (they could be
16711 different partitions).
16713 2008-06-16 Robert Millan <rmh@aybabtu.com>
16715 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
16716 asked to setup access for the same partition that provides /boot,
16717 don't bother using UUIDs since our root already has the value we
16720 2008-06-16 Robert Millan <rmh@aybabtu.com>
16722 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
16724 Patch from Sven Mueller <sven@debian.org>.
16726 2008-06-16 Robert Millan <rmh@aybabtu.com>
16728 * util/update-grub.in: Check for $EUID instead of $UID.
16729 Reported by Vincent Zweije.
16731 2008-06-16 Bean <bean123ch@gmail.com>
16733 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
16734 (grub_ext2_read_block): Likewise.
16735 (grub_ext2_read_inode): Likewise.
16736 (grub_ext2_mount): Likewise.
16737 (grub_ext2_close): Likewise.
16738 (grub_ext3_get_journal): Removed.
16740 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
16741 (grub_reiserfs_read_symlink): Likewise.
16742 (grub_reiserfs_mount): Likewise.
16743 (grub_reiserfs_open): Likewise.
16744 (grub_reiserfs_read): Likewise.
16745 (grub_reiserfs_close): Likewise.
16746 (grub_reiserfs_get_journal): Removed.
16748 * fs/fshelp.c (grub_fshelp_read): Removed.
16749 (grub_fshelp_map_block): Likewise.
16751 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
16752 (grub_fshelp_journal): Likewise.
16753 (grub_fshelp_read): Likewise.
16754 (grub_fshelp_map_block): Likewise.
16756 2008-06-16 Pavel Roskin <proski@gnu.org>
16758 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
16759 floating point anymore.
16760 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
16762 2008-06-15 Pavel Roskin <proski@gnu.org>
16764 * commands/ls.c (grub_ls_list_files): Use integer calculations
16765 for human readable format, avoid floating point use.
16766 * kern/misc.c (grub_ftoa): Remove.
16767 (grub_vsprintf): Remove floating point support.
16769 2008-06-15 Robert Millan <rmh@aybabtu.com>
16771 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
16773 Reported by Max Vozeler.
16775 2008-06-15 Robert Millan <rmh@aybabtu.com>
16777 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
16778 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
16780 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
16781 the beginning of the prefix.
16783 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
16784 It is assumed that if we have a memdisk, grub-mkimage has set
16785 grub_prefix to include the "(memdisk)" drive in it.
16787 2008-06-15 Robert Millan <rmh@aybabtu.com>
16789 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
16790 Initialize keyboard controller after registering the terminal, so that
16791 grub_printf() can be called from grub_keyboard_controller_init().
16793 2008-06-15 Robert Millan <rmh@aybabtu.com>
16795 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
16796 extent-btree which is written as big endian on disk.
16797 Reported by Alain Greppin <al@chilibi.org>.
16799 2008-06-14 Robert Millan <rmh@aybabtu.com>
16801 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
16802 * util/i386/pc/grub-install.in (modules): Likewise.
16804 2008-06-13 Pavel Roskin <proski@gnu.org>
16806 * commands/ls.c (grub_ls_list_files): Fix format warnings.
16808 2008-06-13 Bean <bean123ch@gmail.com>
16810 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
16812 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
16814 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
16815 to indicate sparse block.
16817 2008-06-12 Pavel Roskin <proski@gnu.org>
16819 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
16820 number, grub_fshelp_read() does it for us.
16822 * fs/fshelp.c (grub_fshelp_read): New function. Implement
16823 linear disk read with journal translation.
16824 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
16825 * include/grub/fshelp.h: Declare grub_fshelp_read().
16827 2008-06-09 Pavel Roskin <proski@gnu.org>
16829 * fs/minix.c (grub_minix_mount): Handle error reading
16832 2008-06-08 Robert Millan <rmh@aybabtu.com>
16834 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
16835 don't append the RAID prefix afterwards.
16836 Reported by Clint Adams.
16838 2008-06-08 Robert Millan <rmh@aybabtu.com>
16840 Based on description from Pavel:
16841 * kern/disk.c (grub_disk_check_range): Rename to ...
16842 (grub_disk_adjust_range): ... this. Add a comment explaining the
16843 tasks performed by this function.
16845 2008-06-08 Robert Millan <rmh@aybabtu.com>
16847 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
16848 `num_serial' (for consistency with other variables).
16849 (struct grub_ntfs_data): Add `uuid' member.
16850 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
16851 (grub_ntfs_uuid): New function.
16852 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
16854 2008-06-07 Pavel Roskin <proski@gnu.org>
16856 * util/biosdisk.c (open_device): Revert last change to the
16857 function, it broke installation. The sector needs to be
16858 different dependent on which device is opened.
16860 2008-06-06 Robert Millan <rmh@aybabtu.com>
16862 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
16863 rest of GRUB, and breakage doesn't happen if its value were modified.
16865 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
16866 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
16867 a constant (same value).
16868 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
16869 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
16871 2008-06-06 Robert Millan <rmh@aybabtu.com>
16873 * util/biosdisk.c (open_device): Do not modify sector offset when
16874 accessing a partition. kern/disk.c already handles this for us.
16876 2008-06-06 Robert Millan <rmh@aybabtu.com>
16878 * util/grub-emu.c (grub_machine_init): Move code in this function from
16880 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
16881 segfault in case grub_printf() is called).
16883 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
16884 grub_probe. Update all users not to explicitly add it again.
16885 (grub_device): New variable; contains corresponding device for grubdir.
16886 (fs_module, partmap_module, devabstraction_module): Pass
16887 `--device ${grub_device}' to grub_probe to avoid traversing /dev
16890 2008-06-05 Robert Millan <rmh@aybabtu.com>
16892 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
16893 is found, print it (same layout as with labels).
16895 2008-06-04 Robert Millan <rmh@aybabtu.com>
16897 * util/biosdisk.c (get_drive): Rename to ...
16898 (find_grub_drive): ... this. Update all users.
16900 (get_os_disk): Rename to ...
16901 (convert_system_partition_to_system_disk): ... this. Update all users.
16903 (find_drive): Rename to ...
16904 (find_system_device): ... this. Update all users.
16906 2008-06-04 Robert Millan <rmh@aybabtu.com>
16908 * util/biosdisk.c (get_os_disk): Handle IDA devices.
16909 * util/grub-mkdevicemap.c (get_mmc_disk_name)
16910 (make_device_map): Likewise.
16912 2008-06-01 Robert Millan <rmh@aybabtu.com>
16914 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
16915 before dereferencing it.
16917 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
16918 union with fat12/fat16-specific ones. Add some new fields, including
16919 `num_serial' for both versions.
16920 (struct grub_fat_data): Add `uuid' member.
16921 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
16922 names. Initialize `data->uuid' using `num_serial'.
16923 (grub_fat_uuid): New function.
16924 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
16926 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
16927 (grub_reiserfs_uuid): New function.
16928 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
16931 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
16932 (grub_xfs_uuid): New function.
16933 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
16935 2008-06-01 Robert Millan <rmh@aybabtu.com>
16937 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
16938 code that is backward compatible with pre-uuid search command.
16940 2008-05-31 Robert Millan <rmh@aybabtu.com>
16942 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
16943 floppies after everything else, to ensure floppy drive isn't accessed
16944 unnecessarily (patch from Bean).
16946 2008-05-31 Robert Millan <rmh@aybabtu.com>
16948 * commands/search.c (search_label, search_fs_uuid, search_file): Do
16949 not print device names when we were asked to set a variable.
16951 2008-05-31 Robert Millan <rmh@aybabtu.com>
16953 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
16954 using "cursor-on" and "cursor-off" commands (understood at least by
16955 the Open Firmware flavour on OLPC).
16957 2008-05-31 Michael Gorven <michael@gorven.za.net>
16959 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
16960 on and off sequences.
16962 2008-05-31 Robert Millan <rmh@aybabtu.com>
16964 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
16965 * util/update-grub.in: Likewise.
16967 2008-05-30 Pavel Roskin <proski@gnu.org>
16969 * util/biosdisk.c (linux_find_partition): Simplify logic and
16970 make the code more universal. Keep special processing for
16971 devfs, but use a simple rule for all other devices. If the
16972 device ends with a number, append 'p' and the partition number.
16973 Otherwise, append only the partition number.
16975 2008-05-30 Robert Millan <rmh@aybabtu.com>
16977 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
16978 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
16979 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
16980 the `root' parameter to Linux.
16982 2008-05-30 Robert Millan <rmh@aybabtu.com>
16984 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
16985 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
16986 --fs_uuid with --fs-uuid.
16987 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
16988 all filesystems support them).
16990 2008-05-30 Robert Millan <rmh@aybabtu.com>
16992 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
16993 grub_printf() flags, since we're printing in units of 2 bytes.
16995 2008-05-30 Robert Millan <rmh@aybabtu.com>
16997 * util/grub.d/00_header.in: Remove obsolete comment referencing
16998 convert_system_path_to_grub_path().
16999 * util/update-grub.in: Likewise.
17000 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
17001 (convert_system_path_to_grub_path): Add a warning message explaining
17002 that this function is deprecated. Rely on is_path_readable_by_grub()
17003 for the readability checks.
17004 (font_path): Use is_path_readable_by_grub() for the readability
17005 check rather than convert_system_path_to_grub_path().
17007 2008-05-30 Robert Millan <rmh@aybabtu.com>
17009 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
17010 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
17011 converting it first.
17012 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
17013 grub.cfg for access to font file, and afterwards call it again to set
17016 2008-05-30 Robert Millan <rmh@aybabtu.com>
17018 * commands/search.c (options): Add --fs_uuid option.
17019 (search_fs_uuid): New function.
17020 (grub_cmd_search): Fix --set argument passing.
17021 Use search_fs_uuid() when requested via --fs_uuid.
17022 (grub_search_init): Update help message.
17023 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
17024 and redeclare it as an array of 16-bit words.
17025 (grub_ext2_uuid): New function.
17026 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
17027 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
17028 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
17029 (GRUB_DEVICE_BOOT_UUID): New variables.
17030 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
17031 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
17033 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
17034 just assume `root' variable has the right value.
17035 * util/grub.d/10_linux.in: Likewise.
17036 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
17038 (main): Recognise `-t fs_uuid' argument.
17040 2008-05-30 Robert Millan <rmh@aybabtu.com>
17042 * util/biosdisk.c (map): Redefine structure to hold information
17043 about GRUB drive name.
17044 (get_drive): Reimplement without assuming (and verifying) BIOS-like
17046 (call_hook): Remove.
17047 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
17048 member. Assume drive has partitions.
17049 (grub_util_biosdisk_open): Access device names via `.device' struct
17051 (open_device): Likewise.
17052 (find_drive): Likewise.
17053 (read_device_map): Adjust map[] usage to match the new struct
17054 definition. Don't check for duplicates (still possible, but not cheap
17056 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
17057 (make_device_name): Remove assumption of BIOS-like drive names.
17059 2008-05-30 Pavel Roskin <proski@gnu.org>
17061 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
17062 compiling execute.c doesn't need grub_script.tab.h anymore.
17063 (normal/command.c_DEPENDENCIES): Likewise.
17064 (normal/function.c_DEPENDENCIES): Likewise.
17065 * conf/i386-ieee1275.rmk: Likewise.
17066 * conf/i386-linuxbios.rmk: Likewise.
17067 * conf/i386-pc.rmk: Likewise.
17068 * conf/powerpc-ieee1275.rmk: Likewise.
17069 * conf/sparc64-ieee1275.rmk: Likewise.
17071 2008-05-29 Pavel Roskin <proski@gnu.org>
17073 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
17074 when scanning metadata for volume group name.
17076 * include/grub/script.h: Don't include grub_script.tab.h. It's
17077 a generated file, which may only be included from the files with
17078 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
17079 use union YYSTYPE, as the later allows forward declaration.
17080 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
17082 2008-05-29 Robert Millan <rmh@aybabtu.com>
17084 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
17085 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
17086 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
17087 (grub_console_checkkey): Add grub_dprintf() call to report unknown
17090 2008-05-29 Robert Millan <rmh@aybabtu.com>
17092 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
17093 control key combinations.
17095 2008-05-29 Robert Millan <rmh@aybabtu.com>
17097 * util/powerpc/ieee1275/grub-install.in: Move from here ...
17098 * util/ieee1275/grub-install.in: ... to here.
17099 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
17100 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
17101 (grub_install_SOURCES): Likewise.
17103 2008-05-29 Robert Millan <rmh@aybabtu.com>
17105 * fs/affs.c: Update copyright year.
17106 * fs/ext2.c: Likewise.
17107 * fs/fshelp.c: Likewise.
17108 * fs/hfsplus.c: Likewise.
17109 * fs/ntfs.c: Likewise.
17110 * fs/xfs.c: Likewise.
17111 * include/grub/fshelp.h: Likewise.
17112 * util/grub-mkdevicemap.c: Likewise.
17114 2008-05-28 Robert Millan <rmh@aybabtu.com>
17116 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
17117 might need to be fatfs to support some firmware implementations
17120 2008-05-28 Robert Millan <rmh@aybabtu.com>
17122 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
17124 * util/grub-mkdevicemap.c (get_mmc_disk_name)
17125 (make_device_map): Likewise.
17127 2008-05-20 Bean <bean123ch@gmail.com>
17129 * fs/fshelp.c (grub_fshelp_map_block): New function.
17130 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
17131 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
17133 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
17134 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
17135 (grub_fshelp_journal): New structure.
17136 (grub_fshelp_map_block): New function prototype.
17137 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
17138 (grub_fshelp_map_block): Likewise.
17140 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
17141 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
17142 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
17143 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
17144 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
17145 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
17146 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
17147 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
17148 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
17149 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
17150 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
17151 (grub_ext2_sblock): New members for journal support.
17152 (grub_ext3_journal_header): New structure.
17153 (grub_ext3_journal_revoke_header): Likewise.
17154 (grub_ext3_journal_block_tag): Likewise.
17155 (grub_ext3_journal_sblock): Likewise.
17156 (grub_fshelp_node): New members logfile and journal.
17157 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
17158 grub_fshelp_map_block to get real block number.
17159 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
17161 (grub_ext2_read_inode): Likewise.
17162 (grub_ext3_get_journal): New function.
17163 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
17164 (grub_ext2_close): Release memory used by journal.
17166 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
17167 (REISERFS_MAGIC_DESC_BLOCK): New macro.
17168 (grub_reiserfs_transaction_header): Renamed to
17169 grub_reiserfs_description_block, replace field data with real_blocks.
17170 (grub_reiserfs_commit_block): New structure.
17171 (grub_reiserfs_data): New member journal.
17172 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
17174 (grub_reiserfs_read_symlink): Likewise.
17175 (grub_reiserfs_iterate_dir): Likewise.
17176 (grub_reiserfs_open): Likewise.
17177 (grub_reiserfs_read): Likewise.
17178 (grub_reiserfs_get_journal): New function.
17179 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
17180 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
17181 using grub_reiserfs_get_journal.
17182 (grub_reiserfs_close): Release memory used by journal.
17184 * fs/affs.c (grub_affs_read_block): Change block type to
17185 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
17187 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
17189 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
17191 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
17193 * fs/udf.c (grub_udf_read_block): Change block type to
17194 grub_disk_addr_t. Use type cast to avoid warning.
17196 * fs/xfs.c (grub_xfs_read_block): Likewise.
17198 2008-05-16 Christian Franke <franke@computer.org>
17200 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
17201 to ensure that break with ESC will always work.
17202 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
17203 Remove ESC from keyboard queue.
17205 2008-05-16 Christian Franke <franke@computer.org>
17207 * util/biosdisk.c: [__CYGWIN__] Add includes.
17208 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
17209 (get_os_disk): Move variable declarations to OS specific
17210 parts to avoid warning.
17211 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
17212 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
17213 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
17215 * util/getroot.c: [__CYGWIN__] Add includes.
17216 (strip_extra_slashes): Fix "/" case.
17217 [__CYGWIN__] (get_win32_path): New function.
17218 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
17219 [__CYGWIN__] (find_root_device): Disable.
17220 [__CYGWIN__] (get_bootsec_serial): New function.
17221 [__CYGWIN__] (find_cygwin_root_device): Likewise.
17222 [__linux__] (grub_guess_root_device): Add early returns to simplify
17224 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
17225 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
17226 check for Linux only.
17228 2008-05-15 Bean <bean123ch@gmail.com>
17230 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
17231 keyboard hang problem in apple's intel mac.
17233 2008-05-09 Robert Millan <rmh@aybabtu.com>
17235 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
17237 * util/grub-mkdevicemap.c (get_virtio_disk_name)
17238 (make_device_map): Likewise.
17239 Reported by Aurelien Jarno <aurel32@debian.org>
17241 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
17243 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
17244 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
17245 (make_device_map): Output entries for xvd type disks.
17247 2008-05-07 Robert Millan <rmh@aybabtu.com>
17249 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
17251 * util/grub-mkdevicemap.c (get_cciss_disk_name)
17252 (make_device_map): Likewise.
17253 Reported by Roland Dreier <rdreier@cisco.com>
17255 2008-05-07 Robert Millan <rmh@aybabtu.com>
17257 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
17258 grub_strstr() call. Correct a few mistakes in failure path handling.
17260 2008-05-06 Robert Millan <rmh@aybabtu.com>
17262 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
17263 Do not print a trailing slash (therefore, the root directory is an
17265 (convert_system_path_to_grub_path): Do not remove trailing slash
17266 from make_system_path_relative_to_its_root() output.
17268 * util/i386/pc/grub-install.in: Add trailing slash to output from
17269 make_system_path_relative_to_its_root().
17271 2008-05-06 Robert Millan <rmh@aybabtu.com>
17273 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
17274 ensures that output lines aren't intermangled with those sent to
17275 stderr (via grub_util_info()).
17276 * util/grub-probe.c (grub_refresh): Likewise.
17277 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
17279 2008-05-05 Christian Franke <franke@computer.org>
17281 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
17282 Add Cygwin device names.
17283 (get_ide_disk_name) [__CYGWIN__]: Likewise.
17284 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
17285 (check_device): Return error instead of success on empty name.
17286 (make_device_map): Move label inside linux specific code to
17287 prevent compiler warning.
17289 2008-04-30 Robert Millan <rmh@aybabtu.com>
17291 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
17292 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
17294 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
17296 2008-04-29 Robert Millan <rmh@aybabtu.com>
17298 * docs/grub.cfg: New file (example GRUB configuration).
17300 2008-04-26 Robert Millan <rmh@aybabtu.com>
17302 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
17303 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
17304 and `disk/ieee1275/nand.c'.
17306 2008-04-25 Bean <bean123ch@gmail.com>
17308 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
17311 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
17312 change the buffer size to 4096 for cdrom device.
17314 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
17316 (_linux_mod_SOURCES): New variable.
17317 (_linux_mod_CFLAGS): Likewise.
17318 (_linux_mod_LDFLAGS): Likewise.
17319 (linux_mod_SOURCES): Likewise.
17320 (linux_mod_CFLAGS): Likewise.
17321 (linux_mod_LDFLAGS): Likewise.
17322 (nand_mod_SOURCES): Likewise.
17323 (nand_mod_CFLAGS): Likewise.
17324 (nand_mod_LDFLAGS): Likewise.
17326 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
17327 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
17328 type property. (nand device in olpc don't have this property)
17330 * include/grub/disk.h (grub_disk_dev_id): New macro
17331 GRUB_DISK_DEVICE_NAND_ID.
17333 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
17334 function prototype.
17335 (grub_rescue_cmd_initrd): Likewise.
17337 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
17338 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
17339 ofw_cif_handler and ofw_idt, adjust padding number.
17341 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
17342 GRUB_MACHINE_IEEE1275 is defined.
17344 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
17345 Use NESTED_FUNC_ATTR attribute on the hook parameter.
17347 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
17348 on nested function heap_init.
17349 (grub_upper_mem): New variable for i386-ieee1275.
17350 (grub_get_extended_memory): New function for i386-ieee1275.
17351 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
17353 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
17354 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
17357 * loader/i386/ieee1275/linux.c: New file.
17359 * loader/i386/ieee1275/linux_normal.c: New file.
17361 * disk/ieee1275/nand.c: New file.
17363 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
17365 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
17367 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
17369 2008-04-18 Robert Millan <rmh@aybabtu.com>
17371 Restructures early code path on ieee1275 to unify grub_main() as
17372 the first C function that is executed in every platform.
17374 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
17375 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
17377 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
17378 * kern/ieee1275/cmain.c (cmain): Rename to ...
17379 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
17380 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
17383 2008-04-18 Robert Millan <rmh@aybabtu.com>
17385 * util/update-grub.in: Fix syntax error when setting
17386 `GRUB_PRELOAD_MODULES'.
17387 Reported by Stephane Chazelas <stephane@artesyncp.com>
17389 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
17391 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
17392 section into account, newer toolchains generate unique build ids
17393 * configure.ac: remove the test for --build-id=none acceptance,
17394 we want build ids to be preserved
17395 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
17396 far from other sections don't cause the raw binary images grow
17399 2008-04-15 Robert Millan <rmh@aybabtu.com>
17401 * disk/lvm.c: Update copyright year.
17402 * kern/misc.c: Likewise.
17404 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17406 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
17407 there is no memory left for physical volume name.
17409 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
17411 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
17412 volume name mapping to support bigger than 9 character names properly.
17414 2008-04-13 Robert Millan <rmh@aybabtu.com>
17416 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
17417 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
17419 2008-04-13 Christian Franke <franke@computer.org>
17421 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
17422 to create a floppy emulation boot CD when non emulation mode
17424 Enable Joliet CD filesystem extension.
17426 2008-04-13 Robert Millan <rmh@aybabtu.com>
17428 * kern/misc.c (grub_strncat): Fix off-by-one error.
17429 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
17431 * kern/env.c (grub_env_context_close): Clear current context, not
17433 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
17435 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
17437 2008-04-13 Robert Millan <rmh@aybabtu.com>
17439 Improve robustness when handling LVM.
17441 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
17442 (and leave `*p' unmodified).
17443 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
17445 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
17446 iterating through it.
17447 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
17449 (grub_lvm_scan_device): Check the return value (and fail gracefully
17450 when due) on each grub_lvm_getvalue() or grub_strstr() call.
17451 Don't assume `vg->pvs != NULL' when iterating through it.
17453 2008-04-13 Robert Millan <rmh@aybabtu.com>
17455 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
17456 * genmk.rb (partmap): New variable.
17457 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
17458 (#{partmap}): New target rule.
17459 * genpartmaplist.sh: New file.
17460 * Makefile.in (pkglib_DATA): Add partmap.lst.
17461 (partmap.lst): New target rule.
17462 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
17463 modules (including all partition maps), instead of preloading them.
17465 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
17467 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
17468 `linux-boot-prober' (if installed) to detect other operating
17469 systems which are installed on the computer and add them to
17471 * conf/common.rmk: Build and install 30_os-prober.
17473 2008-04-12 Robert Millan <rmh@aybabtu.com>
17475 * kern/powerpc/ieee1275/init.c: Move from here ...
17476 * kern/ieee1275/init.c: ... to here. Update all users.
17478 * kern/powerpc/ieee1275/cmain.c: Move from here ...
17479 * kern/ieee1275/cmain.c: ... to here. Update all users.
17481 * kern/powerpc/ieee1275/openfw.c: Move from here ...
17482 * kern/ieee1275/openfw.c: ... to here. Update all users.
17484 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
17485 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
17487 2008-04-10 Pavel Roskin <proski@gnu.org>
17489 * configure.ac: Always use "_cv_" in cache variables for
17490 compatibility with Autoconf 2.62.
17492 2008-04-07 Robert Millan <rmh@aybabtu.com>
17494 Revert grub/machine/init.h addition by Pavel (since it breaks on
17495 i386-ieee1275 and others):
17496 * util/i386/pc/misc.c: Remove grub/machine/init.h.
17497 * util/powerpc/ieee1275/misc.c: Likewise.
17499 2008-04-07 Robert Millan <rmh@aybabtu.com>
17501 * util/grub-probe.c (probe): Improve error message.
17503 2008-04-07 Robert Millan <rmh@aybabtu.com>
17505 * util/biosdisk.c (read_device_map): Skip devices that don't exist
17506 (this prevents the presence of a bogus entry from ruining the whole
17509 2008-04-06 Pavel Roskin <proski@gnu.org>
17511 * util/biosdisk.c: Include grub/util/biosdisk.h.
17512 * util/grub-fstest.c (execute_command): Make static.
17513 * util/grub-mkdevicemap.c (check_device): Likewise.
17514 * util/i386/pc/misc.c: Include grub/machine/init.h.
17515 * util/powerpc/ieee1275/misc.c: Likewise.
17516 * util/lvm.c: Include grub/util/lvm.h.
17517 * util/misc.c: Include grub/kernel.h, grub/misc.h and
17519 * util/raid.c: Include grub/util/raid.h.
17520 (grub_util_getdiskname): Make static.
17522 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
17523 grub_hostfs_fini(), as they are called from grub_init_all() and
17524 grub_fini_all() respectively. This fixes an infinite loop in
17525 grub-fstest due to double registration of hostfs.
17526 Reported by Christian Franke <Christian.Franke@t-online.de>
17528 2008-04-05 Pavel Roskin <proski@gnu.org>
17530 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
17531 all 8 functions. Otherwise, probe function 0 only.
17533 2008-04-04 Pavel Roskin <proski@gnu.org>
17535 * commands/lspci.c (grub_lspci_iter): Print the bus number
17538 * commands/lspci.c (grub_pci_classes): Fix typos.
17539 (grub_lspci_iter): Don't print func twice. Print vendor ID
17540 before device ID, as it's normally done.
17542 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
17543 Fix signedness warnings.
17544 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
17546 * util/ieee1275/get_disk_name.c: Include config.h so that
17547 _GNU_SOURCE is defined and getline() is declared. Mark an
17548 unused argument as such. Fix a signedness warning.
17550 2008-04-02 Pavel Roskin <proski@gnu.org>
17552 * genkernsyms.sh.in: Use more robust assignments for CC and
17553 srcdir. Quote srcdir.
17554 * gensymlist.sh.in: Likewise. Assert at the compile time that
17555 the symbol table is not empty.
17557 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
17558 * fs/cpio.c (grub_cpio_read): Likewise.
17560 2008-04-01 Pavel Roskin <proski@gnu.org>
17562 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
17563 * disk/host.c (grub_host_open): Likewise.
17564 * disk/loopback.c (grub_loopback_open): Likewise.
17565 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
17566 disk->id as in disk/host.c, not a multi-character constant.
17568 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
17569 later is obsolete, potentially dangerous and sets a bad example.
17570 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
17571 * util/misc.c (grub_util_get_image_size): Likewise.
17573 * disk/loopback.c (options): Improve help for "--partitions".
17575 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
17576 options to align them with the short options, e.g. "echo -e".
17578 2008-03-31 Bean <bean123ch@gmail.com>
17580 * video/reader/png.c (grub_png_data): New member is_16bit and
17582 (grub_png_decode_image_header): Detect 16 bit png image.
17583 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
17584 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
17585 (grub_video_reader_png): Release memory occupied by image_data.
17587 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
17589 (grub_nfs_mount): Skip the test for sector per cluster.
17591 * include/grub/ntfs.h (MAX_SPC): Removed.
17593 2008-03-31 Bean <bean123ch@gmail.com>
17595 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
17596 (grub_probe_SOURCES): Add fs/afs.c.
17597 (grub_fstest_SOURCES): Likewise.
17598 (afs_mod_SOURCES): New variable.
17599 (afs_mod_CFLAGS): Likewise.
17600 (afs_mod_LDFLAGS): Likewise.
17602 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
17603 (grub_emu_SOURCES): Likewise.
17605 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17607 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17609 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
17611 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17613 * fs/afs.c: New file.
17615 2008-03-30 Pavel Roskin <proski@gnu.org>
17617 * disk/host.c: Include grub/misc.h to fix a warning.
17618 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
17619 warnings about implicit declarations.
17621 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
17623 * include/grub/i386/loader.h: Change declaration of
17624 grub_linux_boot() to match what grub_loader_set() expects.
17625 * util/getroot.c (grub_guess_root_device): Return const char* to
17627 * util/grub-probe.c (probe): Fix a warning about uninitialized
17628 abstraction_name variable.
17629 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
17630 second argument as unused to fix a warning.
17632 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
17633 missing grub_error() call.
17635 * util/update-grub_lib.in: Define datarootdir, since Autoconf
17636 2.60 and newer uses it to define datadir.
17638 * commands/sleep.c: Fix warning about implicit declaration.
17639 * disk/memdisk.c: Likewise.
17640 * loader/aout.c: Likewise.
17641 * loader/i386/bsd_normal.c: Likewise.
17642 * util/grub-probe.c: Likewise.
17644 * commands/i386/cpuid.c (has_longmode): Make static.
17645 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
17646 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
17648 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
17649 GDT. This is more robust, as %ds can change.
17650 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
17651 calling real_to_prot().
17652 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
17654 2008-03-28 Pavel Roskin <proski@gnu.org>
17656 * kern/i386/pc/startup.S: Assert that uncompressed functions
17657 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
17658 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
17659 code, as they push parts of the code (error handlers) beyond
17660 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
17661 code as correctness and size.
17663 2008-03-28 Pavel Roskin <proski@gnu.org>
17665 * kern/i386/pc/startup.S
17666 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
17667 data block address to the real mode, keep offset minimal. This
17668 works around a bug in AWARD BIOS on old Athlon systems, which
17669 makes CD detection hang.
17671 2008-03-26 Pavel Roskin <proski@gnu.org>
17673 * normal/color.c (grub_parse_color_name_pair): Make `name' a
17675 * include/grub/normal.h: Add grub_parse_color_name_pair()
17678 2008-03-24 Bean <bean123ch@gmail.com>
17680 * disk/i386/pc/biosdisk.c (cd_start): Removed.
17681 (cd_count): Removed.
17682 (cd_drive): New variable.
17683 (grub_biosdisk_get_drive): Don't check for (cdN) device.
17684 (grub_biosdisk_call_hook): Likewise.
17685 (grub_biosdisk_iterate): Change cdrom detection method.
17686 (grub_biosdisk_open): Replace cd_start with cd_drive.
17687 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
17688 detect cdrom device.
17690 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
17692 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
17693 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
17694 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
17695 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
17696 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
17697 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
17698 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
17699 (grub_biosdisk_cdrp): New structure.
17700 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
17702 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
17704 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
17707 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
17710 2008-03-20 Robert Millan <rmh@aybabtu.com>
17712 Remove 2 TiB limit in ata.mod.
17713 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
17714 (grub_ata_dumpinfo): Print sector count with 0x%llx.
17715 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
17716 grub_uint64_t instead of grub_uint32_t.
17718 2008-03-05 Bean <bean123ch@gmail.com>
17720 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
17721 (grub_multiboot): Set boot device.
17723 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
17725 2008-03-02 Bean <bean123ch@gmail.com>
17727 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
17730 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
17732 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
17735 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
17738 * docs/fdl.texi: New file.
17740 * docs/mdate-sh: New file. Copied from gnulib.
17741 * docs/texinfo.tex: Likewise.
17743 * config.guess: Updated from gnulib.
17744 * install-sh: Likewise.
17746 2008-02-28 Robert Millan <rmh@aybabtu.com>
17748 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
17749 (aout_mod_SOURCES): New variable.
17750 (aout_mod_CFLAGS): Likewise.
17751 (aout_mod_LDFLAGS): Likewise.
17753 * conf/i386-ieee1275.rmk: Likewise.
17755 2008-02-28 Robert Millan <rmh@aybabtu.com>
17757 * util/update-grub.in: Reorganise terminal validity check. Accept
17758 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
17759 Based on suggestion by Franklin PIAT.
17761 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
17763 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
17765 * util/getroot.c (grub_util_check_block_device): New function that
17766 returns the given argument if it is a block device and returns NULL else.
17767 * util/grub-probe.c (argument_is_device): New variable.
17768 (probe): Promote device_name from a variable to an argument. Receive
17769 device_name from grub_util_check_block_device() if path is NULL and from
17770 grub_guess_root_device() else. Do not free() device_name anymore.
17771 (options): Introduce new parameter '-d, --device'.
17772 (main): Add description of the new parameter to the help screen.
17773 Rename path variable to argument. Set argument_is_device if the '-d'
17774 option is given. Pass argument to probe() depending on
17775 argument_is_device.
17777 2008-02-24 Bean <bean123ch@gmail.com>
17779 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
17780 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
17781 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
17782 (GRUB_ISO9660_VOLDESC_PART): Likewise.
17783 (GRUB_ISO9660_VOLDESC_END): Likewise.
17784 (grub_iso9660_primary_voldesc): New member escape.
17785 (grub_iso9660_data): New member joliet.
17786 (grub_iso9660_convert_string): New function.
17787 (grub_iso9660_mount): Detect joliet extension.
17788 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
17789 (grub_iso9660_iso9660_label): Likewise.
17791 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
17792 (grub_setup_SOURCES): Add fs/udf.c.
17793 (grub_fstest_SOURCES): Likewise.
17794 (udf_mod_SOURCES): New variable.
17795 (udf_mod_CFLAGS): Likewise.
17796 (udf_mod_LDFLAGS): Likewise.
17798 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
17799 (grub_emu_SOURCES): Likewise.
17801 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17803 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17805 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
17807 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17809 * fs/udf.c: New file.
17811 2008-02-24 Robert Millan <rmh@aybabtu.com>
17813 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
17814 (normal/lexer.c_DEPENDENCIES): New variables.
17815 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
17816 (normal/lexer.c_DEPENDENCIES): Likewise.
17817 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
17818 (normal/lexer.c_DEPENDENCIES): Likewise.
17819 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
17820 (normal/lexer.c_DEPENDENCIES): Likewise.
17821 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
17822 (normal/lexer.c_DEPENDENCIES): Likewise.
17823 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
17824 (normal/lexer.c_DEPENDENCIES): Likewise.
17826 2008-02-23 Robert Millan <rmh@aybabtu.com>
17828 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
17829 since they were intended to be in hex. This didn't break previously
17830 because of a bug in gpt_partition_map_iterate() (see below).
17832 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
17833 when checking the validity of GPT header.
17834 Remove `partno', since it always provides the same information as `i'.
17836 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
17838 * include/grub/efi/time.h: Fix a wrong comment.
17840 2008-02-19 Pavel Roskin <proski@gnu.org>
17842 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
17845 2008-02-19 Bean <bean123ch@gmail.com>
17847 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
17848 (aout_mod_SOURCES): New variable.
17849 (aout_mod_CFLAGS): Likewise.
17850 (aout_mod_LDFLAGS): Likewise.
17851 (_bsd_mod_SOURCES): New variable.
17852 (_bsd_mod_CFLAGS): Likewise.
17853 (_bsd_mod_LDFLAGS): Likewise.
17854 (bsd_mod_SOURCES): New variable.
17855 (bsd_mod_CFLAGS): Likewise.
17856 (bsd_mod_LDFLAGS): Likewise.
17858 * include/grub/aout.h: New file.
17860 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
17862 * include/grub/i386/bsd.h: New file.
17864 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
17867 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
17868 function is called, so that it's possible to change it inside the hook.
17869 (grub_elf64_load): Likewise.
17870 (grub_elf_file): Don't close the file if elf header is not found.
17871 (grub_elf_close): Close the file if grub_elf_file fails (The new
17872 grub_elf_file won't close it).
17873 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
17874 (grub_elf64_size): Likewise.
17876 * kern/i386/loader.S (grub_unix_real_boot): New function.
17878 * loader/aout.c: New file.
17880 * loader/i386/bsd.c: New file.
17882 * loader/i386/bsd_normal.c: New file.
17884 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
17886 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
17887 can test other formats.
17889 2008-02-19 Robert Millan <rmh@aybabtu.com>
17891 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
17892 (grub_gpt_partition_type_empty): Redefine with macro from
17893 `<grub/gpt_partition.h>'.
17894 (gpt_partition_map_iterate): Adjust partition type comparison.
17896 Export `entry' as partmap-specific `part.data' struct.
17897 (grub_gpt_header, grub_gpt_partentry): Move from here ...
17899 * include/grub/gpt_partition.h (grub_gpt_header)
17900 (grub_gpt_partentry): ... to here (new file).
17902 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
17904 (grub_gpt_partition_type_bios_boot): New const variable, defined
17905 with macro from `<grub/gpt_partition.h>'.
17907 (setup): Replace `first_start' with `embed_region', which keeps
17908 track of the embed region (and is partmap-agnostic).
17910 Replace find_first_partition_start() with find_usable_region(),
17911 which finds a usable region for embedding using partmap-specific
17912 knowledge (supports PC/MSDOS and GPT).
17914 Fix all assumptions that the embed region start at sector 1, using
17915 `embed_region.start' from now on. Similarly, use `embed_region.end'
17916 rather than `first_start' to calculate available size.
17918 In grub_util_info() message, replace "into after the MBR" with an
17919 indication of the specific sector our embed region starts at.
17921 2008-02-19 Robert Millan <rmh@aybabtu.com>
17923 * DISTLIST: Replace `commands/ieee1275/halt.c' and
17924 `commands/ieee1275/reboot.c' with `commands/halt.c' and
17925 `commands/reboot.c'.
17926 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
17927 (halt_mod_SOURCES): Likewise.
17928 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
17929 (halt_mod_SOURCES): Likewise.
17931 2008-02-17 Christian Franke <franke@computer.org>
17933 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
17935 2008-02-17 Robert Millan <rmh@aybabtu.com>
17937 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
17938 set `first_start' to 0 for non-PC/MSDOS partition maps.
17940 2008-02-16 Robert Millan <rmh@aybabtu.com>
17942 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
17943 do not assume partition map is PC/MSDOS before performing checks that
17944 are specific to that layout.
17946 2008-02-13 Robert Millan <rmh@aybabtu.com>
17948 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
17949 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
17950 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
17952 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
17954 * configure.ac: Only a cosmetic change on the handling of
17955 -fno-stack-protector.
17957 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
17959 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
17960 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
17962 (grub_install_SOURCES): Add halt.mod and reboot.mod.
17963 (halt_mod_SOURCES): New variable.
17964 (halt_mod_CFLAGS): Likewise.
17965 (halt_mod_LDFLAGS): Likewise.
17966 (reboot_mod_SOURCES): Likewise.
17967 (reboot_mod_CFLAGS): Likewise.
17968 (reboot_mod_LDFLAGS): Likewise.
17970 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
17971 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
17973 (halt_mod_SOURCES): Likewise.
17974 (reboot_mod_SOURCES): Likewise.
17976 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
17977 commands/i386/pc/reboot.c by commands/reboot.c.
17978 (reboot_mod_SOURCES): Likewise.
17980 * commands/i386/pc/reboot.c: merge this file ...
17982 * commands/ieee1275/reboot.c: ... and this file ...
17984 * commands/reboot.c: ... to this file.
17985 Add some precompiler directive to include the correct header for
17988 * commands/ieee1275/halt.c: move this file ...
17990 * commands/halt.c: ... to here.
17991 Add some precompiler directive to include the correct header for
17994 * include/grub/efi/efi.h (grub_reboot): New function declaration.
17995 (grub_halt): Likewise.
17997 * kern/efi/efi.c (grub_reboot): New function.
17998 (grub_halt): Likewise.
18000 2008-02-12 Robert Millan <rmh@aybabtu.com>
18002 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
18003 /dev (like it is done for /dev/mapper). This doesn't provide support
18004 for EVMS, but at least it is now easy to identify the problem when it
18007 2008-02-11 Robert Millan <rmh@aybabtu.com>
18009 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
18010 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
18011 comparing it with -1, not 0.
18013 2008-02-10 Robert Millan <rmh@aybabtu.com>
18015 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
18017 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18018 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
18020 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
18021 `disk/lvm.c' to the end of the list.
18022 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18023 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
18025 2008-02-10 Robert Millan <rmh@aybabtu.com>
18027 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
18028 grub_print_error() instead. This will let user know why we're entering
18030 Based on suggestions from Sam Morris.
18032 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
18034 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
18035 on remaining N args, instead of "--" arg N times.
18037 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
18039 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
18040 (fill_with_default_glyph): Changed to use unknown_glyph for fill
18041 pattern for unknown glyphs.
18043 2008-02-09 Robert Millan <rmh@aybabtu.com>
18045 * configure.ac: Probe for `help2man'.
18046 * Makefile.in (builddir): New variable.
18047 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
18048 or otherwise add a few flags/options to it.
18049 (install-local): For every executable utility or script that is
18050 installed, invoke $(HELP2MAN) to install a manpage based on --help
18053 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
18054 that it doesn't prevent --help from working in build tree.
18056 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
18057 with `bug-grub@gnu.org'.
18058 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
18059 * util/update-grub.in (usage): New function.
18060 Implement proper argument check, with support for --help and --version
18061 (as well as existing -y).
18063 2008-02-09 Christian Franke <franke@computer.org>
18065 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
18066 avoid overwriting previous output.
18067 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
18069 2008-02-09 Robert Millan <rmh@aybabtu.com>
18071 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
18074 2008-02-09 Robert Millan <rmh@aybabtu.com>
18076 * commands/sleep.c: New file.
18077 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
18078 (sleep_mod_SOURCES): New variable.
18079 (sleep_mod_CFLAGS): Likewise.
18080 (sleep_mod_LDFLAGS): Likewise.
18082 2008-02-09 Robert Millan <rmh@aybabtu.com>
18084 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
18085 situations in which we can deduce the RAID size and the superblock
18088 2008-02-09 Robert Millan <rmh@aybabtu.com>
18090 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
18091 and return a grub_diskmemberlist_t composed of LVM physical volumes.
18092 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
18094 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
18095 and return a grub_diskmemberlist_t composed of physical array members.
18096 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
18098 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
18100 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
18101 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
18102 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
18104 * util/grub-probe.c (probe): Move partmap probing code from here ...
18105 (probe_partmap): ... to here.
18106 (probe): Use probe_partmap() once for the disk we're probing, and
18107 additionally, when such disk contains a memberlist() struct member,
18108 once for each disk that is contained in the structure returned by
18111 2008-02-09 Robert Millan <rmh@aybabtu.com>
18113 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
18114 environment variable to 'all' in order to obtain debug output from
18116 * util/i386/pc/grub-setup.c (main): Likewise.
18118 2008-02-08 Robert Millan <rmh@aybabtu.com>
18120 * disk/raid.c (grub_raid_scan_device): Check for
18121 `array->device[sb.this_disk.number]' rather than for
18122 `array->device[sb.this_disk.number]->name', since the latter is not
18123 guaranteed to be accessible.
18125 2008-02-08 Robert Millan <rmh@aybabtu.com>
18127 * disk/raid.c: Update copyright.
18128 * fs/cpio.c: Likewise.
18129 * include/grub/raid.h: Likewise.
18130 * loader/i386/pc/multiboot.c: Likewise.
18131 * util/hostfs.c: Likewise.
18133 2008-02-08 Robert Millan <rmh@aybabtu.com>
18135 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
18136 to a grub_disk_t array.
18137 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
18139 (grub_raid_scan_device): Replace `device[x].name' accesses with
18140 `device[x]->name'. Simplify initialization of `array->device[x]'.
18142 2008-02-08 Robert Millan <rmh@aybabtu.com>
18144 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
18145 grub_dprintf() calls.
18146 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
18149 2008-02-07 Christian Franke <franke@computer.org>
18151 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
18152 instead of fseek and ftell to support large files.
18153 (grub_hostfs_read): Likewise.
18155 2008-02-07 Robert Millan <rmh@aybabtu.com>
18157 Patch from Jeroen Dekkers.
18158 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
18159 failure, since successfully reading all array members might not be
18162 2008-02-06 Robert Millan <rmh@aybabtu.com>
18164 * util/grub-probe.c (probe): Simplify partmap probing (with the
18165 assumption that the first word up to the underscore equals to
18168 2008-02-06 Christian Franke <franke@computer.org>
18170 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
18171 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
18172 last block of a cpio or tar stream.
18173 Check for "TRAILER!!!" instead of any empty data
18174 block to detect last block of a cpio stream.
18175 (grub_cpio_dir): Fix constness of variable np.
18176 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
18177 cpio or tar trailer is detected. This fixes a crash
18178 on open of a non existing file.
18180 2008-02-05 Bean <bean123ch@gmail.com>
18182 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
18184 (grub_multiboot_load_elf64): Likewise.
18185 (grub_multiboot): Initialize mbi structure.
18187 * util/grub-fstest.c: Don't include unused header file script.h.
18189 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
18191 (grub_fstest_SOURCES): Likewise.
18193 2008-02-05 Robert Millan <rmh@aybabtu.com>
18195 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
18196 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
18197 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
18198 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
18200 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
18201 (translation_table): Replace hardcoded values with macros
18202 provided by `<grub/term.h>'.
18204 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
18205 (keyboard_map): Correct/add a few values, with macros provided
18206 by `<grub/term.h>'.
18207 (keyboard_map_shift): Zero values that don't differ from their
18208 `keyboard_map' equivalents.
18209 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
18210 Discard the second scan code that is always sent by Caps lock.
18211 Only use `keyboard_map_shift' when it provides a non-zero value,
18212 otherwise fallback to `keyboard_map'.
18214 2008-02-04 Bean <bean123ch@gmail.com>
18216 * Makefile.in (enable_grub_fstest): New variable.
18218 * conf/common.rmk (grub_fstest_init.lst): New rule.
18219 (grub_fstest_init.h): Likewise.
18220 (grub_fstest_init.c): Likewise.
18221 (util/grub-fstest.c_DEPENDENCIES): New variable.
18222 (grub_fstest_SOURCES): Likewise.
18224 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
18226 * util/grub-fstest.c: New file.
18228 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18230 Make grub-setup handle a separate root device.
18232 * util/i386/pc/grub-setup.c (setup): Always open the root device,
18233 so that the root device can be compared with the destination
18235 When embedding the core image, if the root and destination devices
18236 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
18238 When not embedding, set ROOT_DRIVE to 0xFF.
18240 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18242 Add support for having a grub directory in a different drive. This
18243 is still only the data handling part.
18245 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
18246 (codestart): Save %dh in GRUB_ROOT_DRIVE.
18247 (grub_root_drive): New variable.
18249 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
18250 instead of GRUB_BOOT_DRIVE to construct a device name. Set
18251 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
18254 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
18256 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
18258 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
18260 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
18261 is bogus, because PXE booting does not specify any drive
18264 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
18265 am not sure if this is really correct.
18267 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
18268 is always identical to the boot drive when booting from a CD.
18270 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
18272 (root_drive): New variable.
18273 (real_start): Unconditionally set %dh to ROOT_DRIVE.
18274 (setup_sectors): Push %dx right after popping it, because %dh will
18276 (copy_buffer): Restore %dx.
18278 2008-02-03 Robert Millan <rmh@aybabtu.com>
18280 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
18281 use `cdboot.img' for cdrom images.
18283 2008-02-03 Robert Millan <rmh@aybabtu.com>
18285 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
18286 only setup gfxterm when `font' command has succeeded.
18288 2008-02-03 Robert Millan <rmh@aybabtu.com>
18290 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
18291 (grub_rescue_cmd_multiboot_loader)
18292 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
18294 2008-02-03 Pavel Roskin <proski@gnu.org>
18296 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
18297 %edx and %esi from stack only after grub_gate_a20() is called.
18298 grub_gate_a20() clobbers %edx.
18300 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
18302 * configure.ac (AC_INIT): Bumped to 1.96.
18304 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
18305 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
18306 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
18307 video/readers/png.c.
18309 2008-02-03 Bean <bean123ch@gmail.com>
18311 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
18312 (cdboot_img_SOURCES): New variable.
18313 (cdboot_img_ASFLAGS): New variable.
18314 (cdboot_img_LDFLAGS): New variable.
18316 * boot/i386/pc/cdboot.S: New file.
18318 * disk/i386/pc/biosdisk.c (cd_start): New variable.
18319 (cd_count): Likewise.
18320 (grub_biosdisk_get_drive): Add support for cd device.
18321 (grub_biosdisk_call_hook): Likewise.
18322 (grub_biosdisk_iterate): Likewise.
18323 (grub_biosdisk_open): Likewise.
18324 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
18325 (grub_biosdisk_rw): Support reading from cd device.
18326 (GRUB_MOD_INIT): Iterate cd devices.
18328 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
18329 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
18330 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
18332 * kern/i386/pc/init.c (make_install_device): Check for cd device.
18334 2008-02-02 Robert Millan <rmh@aybabtu.com>
18336 * commands/read.c: New file.
18337 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
18338 (read_mod_SOURCES): New variable.
18339 (read_mod_CFLAGS): Likewise.
18340 (read_mod_LDFLAGS): Likewise.
18342 2008-02-02 Robert Millan <rmh@aybabtu.com>
18344 * normal/main.c (grub_normal_execute): Check for `menu->size' when
18345 determining whether menu has to be displayed.
18347 2008-02-02 Marco Gerards <marco@gnu.org>
18349 * bus/pci.c: New file.
18351 * include/grub/pci.h: Likewise.
18353 * include/grub/i386/pc/pci.h: Likewise.
18355 * commands/lspci.c: Likewise.
18357 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
18359 (pci_mod_SOURCES): New variable.
18360 (pci_mod_CFLAGS): Likewise.
18361 (pci_mod_LDFLAGS): Likewise.
18362 (lspci_mod_SOURCES): Likewise.
18363 (lspci_mod_CFLAGS): Likewise.
18364 (lspci_mod_LDFLAGS): Likewise.
18366 2008-02-02 Bean <bean123ch@gmail.com>
18368 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
18369 (grub_ufs_get_file_block): Fix indirect block calculation problem.
18371 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
18372 (grub_xfs_btree_node): New structure.
18373 (grub_xfs_btree_root): New structure.
18374 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
18375 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
18376 (GRUB_XFS_EXTENT_BLOCK): Likewise.
18377 (GRUB_XFS_EXTENT_SIZE): Likewise.
18378 (grub_xfs_read_block): Support btree format type.
18379 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
18380 Use directory block as basic unit.
18382 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
18384 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
18385 __attribute__ ((__regparm__ (1))).
18387 2008-02-01 Robert Millan <rmh@aybabtu.com>
18389 Correct a mistake in previous commit.
18391 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
18393 (normal/command.c_DEPENDENCIES): New variable.
18395 2008-02-01 Robert Millan <rmh@aybabtu.com>
18397 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
18399 (normal/command.c_DEPENDENCIES): New variable.
18400 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
18401 * conf/i386-ieee1275.rmk: Likewise.
18402 * conf/i386-linuxbios.rmk: Likewise.
18403 * conf/i386-pc.rmk: Likewise.
18404 * conf/sparc64-ieee1275.rmk: Likewise.
18405 * conf/powerpc-ieee1275.rmk: Likewise.
18406 (grub_emu_SOURCES): Add `fs/fshelp.c'.
18408 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
18410 2008-02-01 Robert Millan <rmh@aybabtu.com>
18412 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
18413 call at beginning of function.
18415 2008-01-31 Pavel Roskin <proski@gnu.org>
18417 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
18418 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
18419 (grub_mkrescue_SOURCES): Likewise.
18420 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
18422 2008-01-30 Robert Millan <rmh@aybabtu.com>
18424 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
18425 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
18426 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
18427 (grub_probe_SOURCES): ... to here.
18429 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
18430 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
18431 * conf/i386-ieee1275.rmk: Likewise.
18432 * conf/i386-linuxbios.rmk: Likewise.
18433 * conf/powerpc-ieee1275.rmk: Likewise.
18435 2008-01-30 Tristan Gingold <gingold@free.fr>
18437 * kern/rescue.c: Silently accept empty lines.
18439 2008-01-29 Bean <bean123ch@gmail.com>
18441 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
18442 (real_code_2): Code cleanup and change comment style.
18443 (move_memory): Avoid using 32-bit address mode.
18445 2008-01-29 Bean <bean123ch@gmail.com>
18447 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
18448 (png_mod_SOURCES): New variable.
18449 (png_mod_CFLAGS): Likewise.
18450 (png_mod_LDFLAGS): Likewise.
18452 * video/readers/png.c: New file.
18454 2008-01-28 Robert Millan <rmh@aybabtu.com>
18456 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
18457 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
18458 `ifndef GRUB_MOD_GAP' hack.
18459 * util/elf/grub-mkimage.c (add_segments): Likewise.
18461 2008-01-27 Robert Millan <rmh@aybabtu.com>
18463 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
18464 `GRUB_MOD_GAP' for platforms in which it's not defined.
18465 * util/elf/grub-mkimage.c (add_segments): Likewise.
18467 2008-01-27 Robert Millan <rmh@aybabtu.com>
18469 Get grub-emu to build again (including parallel builds).
18471 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
18473 (util/grub-emu.c_DEPENDENCIES): ... this, ...
18474 (normal/execute.c_DEPENDENCIES): ... this, ...
18475 (grub-emu_DEPENDENCIES): ... and this.
18477 * conf/i386-efi.rmk: Likewise.
18478 * conf/i386-linuxbios.rmk: Likewise.
18479 * conf/i386-ieee1275.rmk: Likewise.
18480 * conf/powerpc-ieee1275.rmk: Likewise.
18481 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
18483 2008-01-27 Robert Millan <rmh@aybabtu.com>
18485 * NEWS: Add a few items.
18487 2008-01-27 Robert Millan <rmh@aybabtu.com>
18489 Fix parallel builds with grub-emu. Based on earlier commit for
18490 grub-probe and grub-setup.
18492 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18493 (util/grub-emu.c_DEPENDENCIES): ... this.
18494 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18495 (util/grub-emu.c_DEPENDENCIES): ... this.
18496 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18497 (util/grub-emu.c_DEPENDENCIES): ... this.
18498 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18499 (util/grub-emu.c_DEPENDENCIES): ... this.
18500 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
18501 (util/grub-emu.c_DEPENDENCIES): ... this.
18503 2008-01-27 Pavel Roskin <proski@gnu.org>
18505 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
18506 to create a gap between _end and the modules added to the image
18507 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
18508 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
18509 * util/elf/grub-mkimage.c (add_segments): Likewise.
18511 2008-01-26 Pavel Roskin <proski@gnu.org>
18513 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
18514 just return an error.
18516 2008-01-26 Bean <bean123ch@gmail.com>
18518 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
18519 (grub_reiserfs_get_item): Save offset of the next item.
18520 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
18522 2008-01-25 Robert Millan <rmh@aybabtu.com>
18524 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
18525 make all filesystem sources appear together (possibly fixing omissions
18527 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18528 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18529 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
18530 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18532 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
18534 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
18535 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
18536 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
18537 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
18539 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
18540 (probe): Add a sanity check to make sure of our ability to read
18541 requested files when probing for filesystem type.
18543 * genmk.rb: Update copyright year (2007).
18545 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
18546 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
18547 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
18548 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
18549 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
18550 : Remove function prototypes.
18552 2008-01-25 Robert Millan <rmh@aybabtu.com>
18554 Revert my previous commits (based on wrong assumption of how grub_errno
18557 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
18558 * kern/file.c (grub_file_open): Likewise.
18560 2008-01-24 Pavel Roskin <proski@gnu.org>
18562 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
18563 that hang if GRUB tries to setup colors.
18564 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
18565 colors for firmwares that don't support it.
18566 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
18567 Recognize Open Hack'Ware, set flags to work around its
18570 2008-01-24 Robert Millan <rmh@aybabtu.com>
18572 * kern/file.c (grub_file_open): Do not account previous failures of
18573 unrelated functions when grub_errno is checked for.
18574 Reported by Oleg Strikov.
18576 2008-01-24 Bean <bean123ch@gmail.com>
18578 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
18579 (grub_ufs_sblock): New member volume name.
18580 (grub_ufs_find_file): Fix string copy bug.
18581 (grub_ufs_label): Implement this function properly.
18583 * fs/hfs.c (grub_hfs_cnid_type): New enum.
18584 (grub_hfs_iterate_records): Use the correct file number for extents
18585 and catalog file. Fix problem in next index calculation.
18586 (grub_hfs_find_node): Replace recursive function call with loop.
18587 (grub_hfs_iterate_dir): Replace recursive function call with loop.
18589 2008-01-23 Robert Millan <rmh@aybabtu.com>
18591 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
18592 `<grub/symbol.h>' and `<grub/multiboot.h>'.
18593 (grub_multiboot2_real_boot): New function prototype.
18595 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
18596 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
18598 * kern/i386/ieee1275/init.c (grub_os_area_addr)
18599 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
18601 2008-01-23 Robert Millan <rmh@aybabtu.com>
18603 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
18604 #ifdef'ed out grub_printf().
18606 2008-01-23 Robert Millan <rmh@aybabtu.com>
18608 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
18609 grub_dprintf calls, since they make "debug=all" mode unusable.
18610 (grub_console_checkkey): Likewise.
18612 2008-01-23 Robert Millan <rmh@aybabtu.com>
18614 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
18615 `term/i386/pc/at_keyboard.c'.
18616 (pkglib_MODULES): Add `serial.mod'.
18617 (serial_mod_SOURCES): New variable.
18618 (serial_mod_CFLAGS): Likewise.
18619 (serial_mod_LDFLAGS): Likewise.
18621 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
18622 `<grub/powerpc/ieee1275/console.h>'.
18623 (grub_keyboard_controller_init): New function prototype.
18624 (grub_console_checkkey): Likewise.
18625 (grub_console_getkey): Likewise.
18627 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
18630 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
18631 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
18633 2008-01-23 Robert Millan <rmh@aybabtu.com>
18635 * kern/i386/pc/init.c (make_install_device): When memdisk image is
18636 present, "(memdisk)/boot/grub" becomes the default prefix.
18638 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
18639 a memdisk tarball with all the modules. Add --overlay=DIR option that
18640 allows users to overlay additional files into the image.
18642 2008-01-23 Robert Millan <rmh@aybabtu.com>
18644 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
18645 and `machine/memory.h'.
18646 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
18647 (_multiboot_mod_SOURCES): New variable.
18648 (_multiboot_mod_CFLAGS): Likewise.
18649 (_multiboot_mod_LDFLAGS): Likewise.
18650 (multiboot_mod_SOURCES): Likewise.
18651 (multiboot_mod_CFLAGS): Likewise.
18652 (multiboot_mod_LDFLAGS): Likewise.
18654 * include/grub/i386/ieee1275/loader.h: New file.
18656 * include/grub/i386/ieee1275/machine.h: Likewise.
18658 * include/grub/i386/ieee1275/memory.h: Likewise.
18660 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
18661 variable declaration.
18662 (grub_os_area_size): Likewise.
18664 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
18665 (grub_lower_mem, grub_upper_mem): New variables.
18666 (grub_stop_floppy): New function (just to make
18667 grub_multiboot2_real_boot() happy).
18669 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
18670 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
18671 (grub_stop): New function.
18672 Include `"../realmode.S"' and `"../loader.S"'.
18674 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
18675 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
18677 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
18678 rely on grub_multiboot2_real_boot() for final boot.
18680 2008-01-22 Robert Millan <rmh@aybabtu.com>
18682 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
18683 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
18684 device that doesn't look like an SD card.
18685 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
18686 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
18687 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
18688 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
18691 2008-01-22 Robert Millan <rmh@aybabtu.com>
18693 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
18694 avoid claiming over our own code.
18696 2008-01-22 Bean <bean123ch@gmail.com>
18698 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
18699 (jpeg_mod_SOURCES): New variable.
18700 (jpeg_mod_CFLAGS): Likewise.
18701 (jpeg_mod_LDFLAGS): Likewise.
18703 * video/readers/jpeg.c : New file.
18705 2008-01-22 Bean <bean123ch@gmail.com>
18707 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
18708 there are no more items.
18710 2008-01-21 Robert Millan <rmh@aybabtu.com>
18712 * kern/mm.c (grub_mm_init_region): Improve debug message.
18714 2008-01-21 Robert Millan <rmh@aybabtu.com>
18716 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
18717 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
18719 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
18721 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
18722 Indicates start of upper memory.
18723 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
18724 (generate_image): Abort when image size is big enough to corrupt
18727 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
18728 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
18729 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
18730 instead of hardcoding 0xA0000.
18731 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
18732 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
18733 instead of hardcoding 0xA0000.
18735 2008-01-21 Robert Millan <rmh@aybabtu.com>
18737 * disk/memdisk.c (memdisk_size): New variable.
18738 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
18740 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
18741 image to dynamic memory.
18742 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
18743 `memdisk_size'. Free memdisk block.
18745 2008-01-21 Robert Millan <rmh@aybabtu.com>
18747 Fix detection of very small filesystems (like tar).
18749 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
18750 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
18751 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
18752 a problem with this disk).
18754 2008-01-21 Robert Millan <rmh@aybabtu.com>
18756 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
18757 on grub_biosdisk_rw_standard() error.
18759 2008-01-21 Robert Millan <rmh@aybabtu.com>
18761 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
18763 * kern/elf.c: Likewise.
18764 * kern/ieee1275/ieee1275.c: Likewise.
18765 * kern/powerpc/ieee1275/openfw.c: Likewise.
18766 * term/ieee1275/ofconsole.c: Likewise.
18768 2008-01-21 Robert Millan <rmh@aybabtu.com>
18770 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
18772 * include/grub/kernel.h (grub_arch_memdisk_addr)
18773 (grub_arch_memdisk_size): Moved from here ...
18775 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
18776 (grub_arch_memdisk_size): ... to here.
18778 2008-01-21 Robert Millan <rmh@aybabtu.com>
18780 Mostly based on bugfix from Bean.
18782 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
18783 attribute with hook() parameter.
18784 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
18786 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
18787 attribute with hook() parameter.
18788 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
18791 2008-01-21 Robert Millan <rmh@aybabtu.com>
18793 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
18794 (pkglib_MODULES): Add `memdisk.mod'.
18795 (memdisk_mod_SOURCES): New variable.
18796 (memdisk_mod_CFLAGS): Likewise.
18797 (memdisk_mod_LDFLAGS): Likewise.
18799 * disk/memdisk.c: New file.
18801 * include/grub/disk.h (grub_disk_dev_id): Add
18802 `GRUB_DISK_DEVICE_MEMDISK_ID'.
18804 * include/grub/i386/pc/kernel.h
18805 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
18806 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
18807 (grub_kernel_image_size): New variable declaration.
18808 (grub_total_module_size): Likewise.
18809 (grub_memdisk_image_size): Likewise.
18811 * include/grub/i386/pc/memory.h
18812 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
18814 * include/grub/kernel.h: Include `<grub/symbol.h>'.
18815 (grub_arch_memdisk_addr): New variable declaration.
18816 (grub_arch_memdisk_size): Likewise.
18818 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
18819 (grub_arch_memdisk_size): Likewise.
18821 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
18822 (codestart): Replace hardcoded `0x100000' with
18823 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
18825 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
18826 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
18827 not NULL, append the contents of the file it refers to, at the end of
18828 the compressed kernel image. Initialize `grub_memdisk_image_size'
18829 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
18830 (options): Add "memdisk"|'m' option.
18831 (main): Parse --memdisk|-m option, and pass user-provided path as
18832 parameter to generate_image().
18834 2008-01-20 Robert Millan <rmh@aybabtu.com>
18836 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
18837 grub_dprintf() calls from here ...
18838 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
18840 2008-01-20 Robert Millan <rmh@aybabtu.com>
18842 Fix detection of "real mode" when /options/real-mode? doesn't exist.
18844 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
18846 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
18847 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
18848 `GRUB_IEEE1275_FLAG_REAL_MODE'.
18849 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
18851 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
18852 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
18854 2008-01-19 Robert Millan <rmh@aybabtu.com>
18856 Get rid of confusing function (superseded by
18857 `grub_ieee1275_get_integer_property')
18858 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
18860 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
18862 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
18863 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
18864 in native endianness from grub_ieee1275_get_integer_property().
18866 2008-01-19 Robert Millan <rmh@aybabtu.com>
18868 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
18869 command after "shut-down", since implementations differ on which
18870 the command for halt is.
18872 2008-01-19 Robert Millan <rmh@aybabtu.com>
18874 * include/grub/i386/linuxbios/console.h: Add header protection.
18875 (grub_keyboard_controller_init): New function prototype.
18876 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
18877 (KEYBOARD_COMMAND_READ): Likewise.
18878 (KEYBOARD_COMMAND_WRITE): Likewise.
18879 (KEYBOARD_SCANCODE_SET1): Likewise.
18880 (grub_keyboard_controller_write): New function.
18881 (grub_keyboard_controller_read): Likewise.
18882 (grub_keyboard_controller_init): Likewise.
18884 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
18885 (grub_console_init): On coreboot/LinuxBIOS, call
18886 grub_keyboard_controller_init().
18888 2008-01-19 Robert Millan <rmh@aybabtu.com>
18890 PowerPC changes provided by Pavel Roskin.
18892 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
18893 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
18894 don't rely on cmain() doing it.
18895 * kern/i386/ieee1275/startup.S (_start): Store %eax in
18896 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
18898 2008-01-16 Robert Millan <rmh@aybabtu.com>
18900 * include/grub/i386/linuxbios/memory.h
18901 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
18902 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
18903 receive `table_header' as argument. Instead, probe for it in the
18904 known memory ranges where it can be present.
18905 (grub_available_iterate): Do not pass a fixed `table_header' address
18906 to grub_linuxbios_table_iterate().
18908 2008-01-15 Robert Millan <rmh@aybabtu.com>
18910 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
18911 * conf/i386-ieee1275.rmk: New file.
18912 * include/grub/i386/ieee1275/console.h: Likewise.
18913 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
18914 * include/grub/i386/ieee1275/kernel.h: Likewise.
18915 * include/grub/i386/ieee1275/time.h: Likewise.
18916 * kern/i386/ieee1275/init.c: Likewise.
18917 * kern/i386/ieee1275/startup.S: Likewise.
18919 2008-01-15 Robert Millan <rmh@aybabtu.com>
18921 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
18922 when pointers are 32-bit (but still do set it to one when they are
18925 2008-01-15 Robert Millan <rmh@aybabtu.com>
18927 * include/grub/ieee1275/ieee1275.h
18928 (grub_ieee1275_get_integer_property): New function prototype.
18930 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
18931 (grub_ieee1275_get_integer_property): New function. Wraps around
18932 grub_ieee1275_get_property() to handle endianness.
18934 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
18935 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
18937 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
18938 (grub_map): Likewise.
18939 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
18941 2008-01-15 Bean <bean123ch@gmail.com>
18943 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
18944 (grub_script_execute_cmdline): Reset grub_errno.
18946 * normal/main.c (read_config_file): Reset grub_errno.
18948 * normal/parse.y (script_init): New.
18949 (script): Move function and menuentry here.
18951 (command): Add delimiter at the end of command.
18952 (commands): Adjust to match the new command.
18953 (commandblock): Remove grub_script_lexer_record_start.
18954 (menuentry): Add grub_script_lexer_record_start, use the new commands.
18955 (if): Use the new commands.
18957 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
18959 2008-01-15 Robert Millan <rmh@aybabtu.com>
18961 * normal/menu.c (run_menu): Move timeout message from here ...
18962 (print_timeout): ... to here.
18963 (run_menu): Use print_timeout() once during initial draw to print
18964 the whole message, and again in every clock tick to update only
18965 the number of seconds.
18967 2008-01-15 Robert Millan <rmh@aybabtu.com>
18969 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
18970 actual size of `available' from grub_ieee1275_get_property(), and
18971 restrict parsing to that bound.
18973 2008-01-15 Christian Franke <franke@computer.org>
18975 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
18976 (argp_program_version): Remove variable.
18977 (argp_program_bug_address): Likewise.
18978 (options): Convert from struct argp_option to struct option.
18979 (struct arguments): Remove.
18980 (parse_opt): Remove.
18981 (usage): New function.
18982 (main): Replace struct args members by simple variables.
18983 Replace argp_parse() by getopt_long().
18984 Add switch to evaluate options.
18985 Add missing "(...)" around root_dev in prefix string.
18987 2008-01-14 Robert Millan <rmh@aybabtu.com>
18989 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
18990 for grub_ieee1275_exit(), in order to improve portability.
18992 2008-01-14 Robert Millan <rmh@aybabtu.com>
18994 * util/grub.d/10_linux.in (prefix): Define.
18995 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
18997 2008-01-13 Pavel Roskin <proski@gnu.org>
18999 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
19000 grub_errno if no errors have been detected.
19002 2008-01-12 Robert Millan <rmh@aybabtu.com>
19004 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
19005 (grub_util_get_dev_abstraction): New function prototype.
19007 * util/getroot.c: Include `<grub/util/getroot.h>'
19008 (grub_util_get_grub_dev): Move detection of abstraction type to ...
19009 (grub_util_get_dev_abstraction): ... here (new function).
19011 * util/grub-probe.c: Convert PRINT_* to an enum. Add
19012 `PRINT_ABSTRACTION'.
19013 (probe): Probe for abstraction type when requested.
19014 (main): Understand `--target=abstraction'.
19016 * util/i386/efi/grub-install.in: Add abstraction module to core
19017 image when it is found to be necessary.
19018 * util/i386/pc/grub-install.in: Likewise.
19019 * util/powerpc/ieee1275/grub-install.in: Likewise.
19021 * util/update-grub_lib.in (font_path): Return system path without
19022 converting to GRUB path.
19023 * util/update-grub.in: Convert system path returned by font_path()
19024 to a GRUB path. Use `grub-probe -t abstraction' to determine what
19025 abstraction module is needed for loading fonts (if any). Export
19026 that as `GRUB_PRELOAD_MODULES'.
19027 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
19030 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
19032 Remove some unused code from reiserfs.
19034 * fs/reiserfs.c (struct grub_reiserfs_key)
19035 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
19036 (struct grub_reiserfs_node_body): Removed.
19037 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19039 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19041 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19043 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
19045 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
19047 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
19049 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19050 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19051 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
19053 2008-01-10 Robert Millan <rmh@aybabtu.com>
19055 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
19056 Determines if a file is garbage left by packaging systems, etc.
19057 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
19058 for processing /etc/grub.d scripts.
19059 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
19060 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
19061 as a condition for processing Linux images.
19063 2008-01-10 Pavel Roskin <proski@gnu.org>
19065 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
19066 to compile reiserfs.c on PowerPC.
19068 2008-01-10 Robert Millan <rmh@aybabtu.com>
19070 * kern/device.c (grub_device_iterate): Do not abort device iteration
19071 when one of the devices cannot be opened.
19072 * kern/disk.c (grub_disk_open): Do not account previous failures of
19073 unrelated functions when grub_errno is checked for.
19075 2008-01-08 Robert Millan <rmh@aybabtu.com>
19077 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
19078 `! grub_linux_is_bzimage', change order of address comparison to make
19079 it more intuitive, and improve "too big zImage" error message.
19081 2008-01-08 Robert Millan <rmh@aybabtu.com>
19083 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
19084 `$(update-grub_DATA)'.
19085 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
19088 2008-01-07 Robert Millan <rmh@aybabtu.com>
19090 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
19091 which instruction is modified by grub-setup during installation
19092 (since it wasn't obvious by only looking at this file).
19094 2008-01-07 Robert Millan <rmh@aybabtu.com>
19096 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
19097 listing actual TODO items.
19099 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19101 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
19103 (grub_reiserfs_get_key_offset): Likewise.
19104 (grub_reiserfs_set_key_offset): Likewise.
19105 (grub_reiserfs_set_key_type): Likewise.
19106 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
19108 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
19109 better to remove the bitfield version completely.
19111 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19113 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
19114 allocated from the heap, due to the fshelp implementation.
19115 (grub_reiserfs_dir): Free NODE, due to the same reason.
19117 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
19119 Mostly from Vincent Pelletier:
19121 * fs/reiserfs.c: New file.
19123 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
19124 (reiserfs_mod_SOURCES): New variable.
19125 (reiserfs_mod_CFLAGS): Likewise.
19126 (reiserfs_mod_LDFLAGS): Likewise.
19128 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
19129 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
19130 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
19133 2008-01-06 Robert Millan <rmh@aybabtu.com>
19135 * normal/color.c: Remove `<grub/env.h>'.
19137 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
19139 * include/grub/normal.h: Include <grub/env.h>.
19141 2008-01-05 Robert Millan <rmh@aybabtu.com>
19143 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
19144 usage example with `(hd0,1)'.
19145 Reported by Samuel Thibault.
19147 2008-01-05 Robert Millan <rmh@aybabtu.com>
19149 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
19150 (grub_linux_boot_zimage): Rename to ...
19151 (grub_linux_boot): ... this.
19152 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
19153 (grub_linux_boot_zimage): Conditionalize zImage copy.
19155 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
19156 (grub_linux_boot_bzimage): Remove prototype.
19157 (grub_linux_boot_zimage): Rename to ...
19158 (grub_linux_boot): ... this.
19160 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
19161 (grub_linux_boot): Remove function.
19163 2008-01-05 Robert Millan <rmh@aybabtu.com>
19165 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
19166 (grub_env_write_color_highlight): Likewise.
19167 (grub_wait_after_message): Likewise.
19169 * normal/color.c: New file.
19171 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19172 (normal_mod_DEPENDENCIES): Likewise.
19174 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19175 (normal_mod_DEPENDENCIES): Likewise.
19177 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19178 (normal_mod_DEPENDENCIES): Likewise.
19180 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
19181 (normal_mod_DEPENDENCIES): Likewise.
19183 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
19184 for waiting after a message is printed.
19185 * normal/main.c (read_config_file): Likewise.
19186 (grub_normal_init): Register grub_env_write_color_normal() and
19187 grub_env_write_color_highlight() hooks. Mark `color_normal' and
19188 `color_highlight' variables as global.
19190 * normal/menu.c (grub_wait_after_message): New function.
19191 (grub_color_menu_normal): New variable. Replaces ...
19192 (GRUB_COLOR_MENU_NORMAL): ... this macro.
19193 (grub_color_menu_highlight): New variable. Replaces ...
19194 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
19195 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
19196 `GRUB_TERM_COLOR_STANDARD'.
19197 (print_message): Use `grub_setcolorstate' to reload colors. Rename
19198 `normal_code' and `highlight_code' to `old_color_normal' and
19199 `old_color_highlight', respectively.
19200 (grub_menu_init_page): Update colors when drawing the menu, based on
19201 `menu_color_normal' and `menu_color_highlight' variables.
19202 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
19203 a message is printed.
19205 2008-01-05 Robert Millan <rmh@aybabtu.com>
19207 * kern/env.c (grub_env_context_open): Propagate hooks for global
19208 variables to new context.
19210 * kern/main.c (grub_set_root_dev): Export `root' variable.
19212 2008-01-05 Robert Millan <rmh@aybabtu.com>
19214 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
19215 discs unconditionally, since udev and others have options to provide
19218 2008-01-05 Robert Millan <rmh@aybabtu.com>
19220 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
19222 2008-01-04 Christian Franke <franke@computer.org>
19224 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
19227 2008-01-03 Pavel Roskin <proski@gnu.org>
19229 * kern/i386/linuxbios/init.c: Put "void" to all function
19230 declarations with no arguments.
19231 * kern/powerpc/ieee1275/init.c: Likewise.
19232 * term/i386/pc/at_keyboard.c: Likewise.
19233 * term/i386/pc/vga_text.c: Likewise.
19234 * util/grub-mkdevicemap.c: Likewise.
19236 2008-01-02 Robert Millan <rmh@aybabtu.com>
19238 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
19239 message when loaded image is out of bounds.
19240 (grub_multiboot_load_elf64): Likewise.
19242 2008-01-02 Pavel Roskin <proski@gnu.org>
19244 * util/grub.d/10_linux.in: Try version without ".old" when
19245 looking for initrd. It's better to use initrd from the newer
19246 kernel of the same version than no initrd at all.
19248 2008-01-01 Robert Millan <rmh@aybabtu.com>
19250 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
19252 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
19254 * include/grub/video.h: Added grub_video_unmap_color and
19255 grub_video_get_active_render_target.
19256 (grub_video_adapter): Added unmap_color and get_active_render_target.
19258 * video/video.c: Added grub_video_unmap_color and
19259 grub_video_get_active_render_target.
19260 (grub_video_get_info): Changed method to accept NULL pointer as an
19261 argument to allow detection of active video adapter.
19263 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
19264 grub_video_vbe_unmap_color_int.
19265 Added grub_video_vbe_unmap_color and
19266 grub_video_vbe_get_active_render_target.
19267 (grub_video_vbe_adapter): Added unmap_color and
19268 get_active_render_target.
19270 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
19271 with grub_video_vbe_unmap_color_int.
19273 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
19274 (DEFAULT_NORMAL_COLOR): Likewise.
19275 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
19276 (DEFAULT_FG_COLOR): Removed.
19277 (DEFAULT_BG_COLOR): Likewise.
19278 (DEFAULT_CURSOR_COLOR): Changed value.
19279 (grub_virtual_screen): Added standard_color_setting,
19280 normal_color_setting, highlight_color_setting and term_color.
19281 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
19282 (bitmap_width): Added.
19283 (bitmap_height): Likewise.
19284 (bitmap): Likewise.
19285 (set_term_color): Likewise.
19286 (grub_virtual_screen_setup): Changed to use new terminal coloring
19288 (grub_gfxterm_init): Added init for bitmap.
19289 (grub_gfxterm_fini): Added destroy for bitmap.
19290 (redraw_screen_rect): Updated to use background bitmap and new
19292 (scroll_up): Added optimization for case when there is no bitmap.
19293 (grub_gfxterm_cls): Fixed to use correct background color.
19294 (grub_virtual_screen_setcolorstate): Changed to use new terminal
19296 (grub_virtual_screen_setcolor): Likewise.
19297 (grub_virtual_screen_getcolor): Added.
19298 (grub_gfxterm_background_image_cmd): Likewise.
19299 (grub_video_term): Added setcolor and getcolor.
19300 (MOD_INIT): Added registration of background_image command.
19301 (MOD_TERM): Added unregistration for background_image command.
19303 2007-12-30 Pavel Roskin <proski@gnu.org>
19305 * loader/multiboot_loader.c: Fix multiboot command
19306 unregistration. Fix all typos in the word "multiboot".
19308 2007-12-29 Pavel Roskin <proski@gnu.org>
19310 * util/grub.d/10_linux.in: Refactor search for initrd. Add
19311 support for initrd names used in Fedora.
19313 2007-12-26 Bean <bean123ch@gmail.com>
19315 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
19316 (cpio_mod_SOURCES): New variable.
19317 (cpio_mod_CFLAGS): Likewise.
19318 (cpio_mod_LDFLAGS): Likewise.
19320 * fs/cpio.c: New file.
19322 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
19324 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19326 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19328 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19330 2007-12-25 Robert Millan <rmh@aybabtu.com>
19332 * include/grub/term.h (struct grub_term): Add `getcolor' function.
19333 (grub_getcolor): New function.
19335 * kern/term.c (grub_getcolor): New function.
19336 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
19337 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
19338 (print_entry): Set normal and highlight colors to
19339 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
19340 respectively, before printing and restore them to old
19342 (grub_menu_init_page): Likewise. Fill an additional colored space
19343 that would otherwise be left blank.
19345 * term/efi/console.c (grub_console_getcolor): New function.
19346 (struct grub_console_term.getcolor): New variable.
19347 * term/i386/pc/console.c (grub_console_getcolor): New function.
19348 (struct grub_console_term.getcolor): New variable.
19349 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
19350 (struct grub_console_term.getcolor): New variable.
19352 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
19353 (struct grub_console_term.setcolor): Remove variable.
19354 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
19355 (struct grub_console_term.setcolor): Remove variable.
19356 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
19357 (struct grub_console_term.setcolor): Remove variable.
19358 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
19359 (struct grub_console_term.setcolor): Remove variable.
19361 2007-12-25 Robert Millan <rmh@aybabtu.com>
19363 * configure.ac: Search for possible unifont.hex locations, and
19364 define UNIFONT_HEX if found.
19366 * Makefile.in (UNIFONT_HEX): Define variable.
19367 (DATA): Rename to ...
19368 (PKGLIB): ... this. Update all users.
19369 (PKGDATA): New variable.
19370 (pkgdata_IMAGES): Rename to ...
19371 (pkglib_IMAGES): ... this. Update all users.
19372 (pkgdata_MODULES): Rename to ...
19373 (pkglib_MODULES): ... this. Update all users.
19374 (pkgdata_PROGRAMS): Rename to ...
19375 (pkglib_PROGRAMS): ... this. Update all users.
19376 (pkgdata_DATA): Rename to ...
19377 (pkglib_DATA): ... this. Update all users.
19378 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
19379 (unicode.pff, ascii.pff): New rules.
19380 (all-local): Add `$(PKGDATA)' dependency.
19381 (install-local): Process `$(PKGDATA)'.
19383 * util/update-grub_lib.in (font_path): Search for *.pff files in
19384 a few more locations, including `${pkgdata}'.
19386 2007-12-23 Robert Millan <rmh@aybabtu.com>
19388 Patch from Bean <bean123ch@gmail.com>:
19389 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
19392 2007-12-21 Bean <bean123ch@gmail.com>
19394 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
19395 (ntfscomp_mod_SOURCES): New variable.
19396 (ntfscomp_mod_CFLAGS): Likewise.
19397 (ntfscomp_mod_LDFLAGS): Likewise.
19399 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
19400 (grub_probe_SOURCES): Likewise.
19401 (grub_emu_SOURCES): Likewise.
19403 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19404 (grub_emu_SOURCES): Likewise.
19406 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19407 (grub_emu_SOURCES): Likewise.
19409 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
19410 (grub_emu_SOURCES): Likewise.
19412 * fs/ntfs.c (grub_ntfscomp_func): New variable.
19413 (read_run_list): Renamed to grub_ntfs_read_run_list.
19414 (decomp_nextvcn): Moved to ntfscomp.c.
19415 (decomp_getch): Likewise.
19416 (decomp_get16): Likewise.
19417 (decomp_block): Likewise.
19418 (read_block): Likewise.
19419 (read_data): Partially moved to ntfscomp.c.
19420 (fixup): Change unsigned to grub_uint16_t.
19421 (read_mft): Change unsigned long to grub_uint32_t.
19422 (read_attr): Likewise.
19423 (read_data): Likewise.
19424 (read_run_data): Likewise.
19425 (read_run_list): Likewise.
19426 (read_mft): Likewise.
19428 * fs/ntfscomp.c: New file.
19430 * include/grub/ntfs.h: New file.
19432 2007-12-16 Robert Millan <rmh@aybabtu.com>
19434 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
19435 IDE disk check, since Linux is known to support 20 IDE disks.
19436 Reported by Colin Watson.
19438 2007-12-15 Bean <bean123ch@gmail.com>
19440 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
19441 (lnxboot_img_SOURCES): New variable.
19442 (lnxboot_img_ASFLAGS): Likewise.
19443 (lnxboot_img_LDFLAGS): Likewise.
19445 * boot/i386/pc/lnxboot.S: New file.
19447 2007-11-24 Pavel Roskin <proski@gnu.org>
19449 * configure.ac: Test if '--build-id=none' is supported by the
19450 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
19451 objcopy to generate incorrect binary files (binutils
19452 2.17.50.0.18-1 as shipped by Fedora 8).
19453 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
19454 linking, so that build ID doesn't break the test.
19456 2007-11-24 Pavel Roskin <proski@gnu.org>
19458 * include/grub/i386/time.h: use "void" in the argument list
19459 of grub_cpu_idle().
19460 * include/grub/powerpc/time.h: Likewise.
19461 * include/grub/sparc64/time.h: Likewise.
19463 2007-11-18 Christian Franke <franke@computer.org>
19465 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
19466 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
19467 This fixes the problem that function keys did not work in grub-emu.
19469 2007-11-18 Christian Franke <franke@computer.org>
19471 * disk/host.c (grub_host_open): Remove attribute unused from
19472 name parameter. Add check for "host". This fixes the problem
19473 that grub-emu does not find partitions.
19475 2007-11-18 Christian Franke <franke@computer.org>
19477 * util/hostfs.c (is_dir): New function.
19478 (grub_hostfs_dir): Handle missing dirent.d_type case.
19479 (grub_hostfs_read): Add missing fseek().
19480 (grub_hostfs_label): Clear label pointer. This fixes a crash
19481 of grub-emu on "ls (host)".
19483 2007-11-18 Christian Franke <franke@computer.org>
19485 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
19486 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
19487 to 64 bit boundary by default.
19489 2007-11-18 Bean <bean123ch@gmail.com>
19491 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
19492 (hexdump_mod_SOURCES): New variable.
19493 (hexdump_mod_CFLAGS): Likewise.
19494 (hexdump_mod_LDFLAGS): Likewise.
19496 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19498 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19500 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19502 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
19504 * include/grub/hexdump.h: New file.
19506 * commands/hexdump.c: New file.
19508 2007-11-10 Robert Millan <rmh@aybabtu.com>
19510 * commands/i386/pc/play.c (beep_off): Switch order of arguments
19511 in grub_outb() calls.
19512 (beep_on): Likewise.
19514 2007-11-10 Christian Franke <franke@computer.org>
19516 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
19517 (grub_menu_run): Likewise.
19519 2007-11-10 Robert Millan <rmh@aybabtu.com>
19521 * include/grub/i386/efi/machine.h: New file.
19522 * include/grub/i386/linuxbios/machine.h: Likewise.
19523 * include/grub/i386/pc/machine.h: Likewise.
19524 * include/grub/powerpc/ieee1275/machine.h: Likewise.
19525 * include/grub/sparc64/ieee1275/machine.h: Likewise.
19527 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
19528 (serial_hw_io_addr): New variable.
19529 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
19530 instead of `(unsigned short *) 0x400'.
19532 2007-11-10 Bean <bean123ch@gmail.com>
19534 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
19536 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
19538 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
19539 (vga_mod_SOURCES): Added.
19540 (vga_mod_CFLAGS): Likewise.
19541 (vga_mod_LDFLAGS): Likewise.
19543 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
19545 (set_map_mask): Likewise.
19546 (set_read_map): Likewise.
19547 (set_read_address): Likewise.
19548 (vga_font): Removed variable.
19549 (get_vga_glyph): Removed function.
19550 (invalidate_char): Likewise.
19551 (write_char): Changed to use grub_font_get_glyph() for font
19553 (grub_vga_putchar): Likewise.
19554 (grub_vga_getcharwidth): Likewise.
19556 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
19558 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
19560 (pxeboot_img_LDFLAGS): Likewise.
19561 (diskboot_img_LDFLAGS): Likewise.
19562 (kernel_img_LDFLAGS): Likewise.
19564 2007-11-06 Robert Millan <rmh@aybabtu.com>
19566 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
19567 in grub_outb() calls.
19568 (serial_hw_init): Likewise.
19570 2007-11-05 Robert Millan <rmh@aybabtu.com>
19572 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
19573 spaces. Skip non-regular files.
19575 2007-11-05 Robert Millan <rmh@aybabtu.com>
19577 * kern/disk.c (grub_disk_firmware_fini)
19578 (grub_disk_firmware_is_tainted): New variables.
19580 * include/grub/disk.h (grub_disk_firmware_fini)
19581 (grub_disk_firmware_is_tainted): Likewise.
19583 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
19584 (grub_disk_biosdisk_fini): ... to here.
19585 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
19586 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
19587 is set. Register grub_disk_biosdisk_fini() in
19588 `grub_disk_firmware_fini'.
19590 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
19591 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
19592 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
19593 to finish existing firmware disk interface.
19595 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
19596 (ata_mod_SOURCES): New variable.
19597 (ata_mod_CFLAGS): Likewise.
19598 (ata_mod_LDFLAGS): Likewise.
19600 2007-11-05 Robert Millan <rmh@aybabtu.com>
19602 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
19603 (grub_ata_wait): Reimplement using grub_millisleep().
19605 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
19606 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
19608 2007-11-03 Marco Gerards <marco@gnu.org>
19610 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
19611 (CRTC_ADDR_PORT): New macro.
19612 (CRTC_DATA_PORT): Likewise.
19613 (CRTC_CURSOR): Likewise.
19614 (CRTC_CURSOR_ADDR_HIGH): Likewise.
19615 (CRTC_CURSOR_ADDR_LOW): Likewise.
19616 (update_cursor): New function.
19617 (grub_console_real_putchar): Call `update_cursor'.
19618 (grub_console_gotoxy): Likewise.
19619 (grub_console_cls): Set the default color when clearing the
19621 (grub_console_setcursor): Implemented.
19623 2007-11-03 Marco Gerards <marco@gnu.org>
19625 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
19627 (grub_ata_pio_write): Likewise.
19629 (grub_atapi_identify): Wait after issuing an ATA command.
19630 (grub_atapi_packet): Likewise.
19631 (grub_ata_identify): Likewise.
19632 (grub_ata_readwrite): Likewise.
19634 2007-11-03 Marco Gerards <marco@gnu.org>
19636 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
19637 (grub_ata_pio_write): Likewise.
19638 (grub_ata_readwrite): Use `grub_error', instead of
19639 returning `grub_errno'.
19641 2007-11-03 Marco Gerards <marco@gnu.org>
19643 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
19644 grub_ata_pio_write once for every single sector, instead of for
19647 2007-10-31 Robert Millan <rmh@aybabtu.com>
19649 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
19651 * conf/i386-linuxbios.rmk: New file.
19653 * kern/i386/pc/hardware.c: Likewise.
19654 * term/i386/pc/at_keyboard.c: Likewise.
19655 * term/i386/pc/vga_text.c: Likewise.
19657 * include/grub/i386/linuxbios/boot.h: Likewise.
19658 * include/grub/i386/linuxbios/console.h: Likewise.
19659 * include/grub/i386/linuxbios/init.h: Likewise.
19660 * include/grub/i386/linuxbios/kernel.h: Likewise.
19661 * include/grub/i386/linuxbios/loader.h: Likewise.
19662 * include/grub/i386/linuxbios/memory.h: Likewise.
19663 * include/grub/i386/linuxbios/serial.h: Likewise.
19664 * include/grub/i386/linuxbios/time.h: Likewise.
19666 * kern/i386/linuxbios/init.c: Likewise.
19667 * kern/i386/linuxbios/startup.S: Likewise.
19668 * kern/i386/linuxbios/table.c: Likewise.
19670 2007-10-31 Marco Gerards <marco@gnu.org>
19672 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
19673 (ata_mod_SOURCES): New variable.
19674 (ata_mod_CFLAGS): Likewise.
19675 (ata_mod_LDFLAGS): Likewise.
19677 * disk/ata.c: New file.
19679 * include/grub/disk.h (grub_disk_dev_id): Add
19680 `GRUB_DISK_DEV_ATA_ID'.
19682 2007-10-31 Robert Millan <rmh@aybabtu.com>
19684 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
19685 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
19687 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
19688 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
19690 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
19693 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
19695 2007-10-27 Robert Millan <rmh@aybabtu.com>
19697 * include/grub/types.h (ULONG_MAX): Define macro.
19699 2007-10-22 Robert Millan <rmh@aybabtu.com>
19701 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
19703 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
19705 2007-10-22 Robert Millan <rmh@aybabtu.com>
19707 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
19708 (pkgdata_MODULES): Add `biosdisk.mod'.
19709 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
19712 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
19713 (grub_biosdisk_init): Replace with ...
19714 (GRUB_MOD_INIT(biosdisk)): ... this.
19715 (grub_biosdisk_fini): Replace with ...
19716 (GRUB_MOD_FINI(biosdisk)): ... this.
19718 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
19719 (grub_machine_init): Remove call to grub_biosdisk_init().
19720 (grub_machine_fini): Remove call to grub_machine_fini().
19722 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
19724 2007-10-22 Robert Millan <rmh@aybabtu.com>
19726 * include/grub/time.h: New file.
19727 * include/grub/i386/time.h: Likewise.
19728 * include/grub/powerpc/time.h: Likewise.
19729 * include/grub/sparc64/time.h: Likewise.
19731 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
19733 (KERNEL_MACHINE_TIME_HEADER): ... this.
19734 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
19736 (KERNEL_MACHINE_TIME_HEADER): ... this.
19737 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
19739 (KERNEL_MACHINE_TIME_HEADER): ... this.
19741 * kern/i386/efi/init.c: Include `<grub/time.h>'.
19742 (grub_millisleep): New function.
19743 * kern/i386/pc/init.c: Include `<grub/time.h>'.
19744 (grub_millisleep): New function.
19745 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
19746 Remove `grub/machine/time.h' include.
19747 (grub_millisleep): New function.
19748 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
19749 Remove `grub/machine/time.h' include.
19750 (grub_millisleep): New function.
19752 * include/grub/misc.h (grub_div_roundup): New function.
19754 * kern/misc.c: Include `<grub/time.h>'.
19755 (grub_millisleep_generic): New function.
19757 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
19759 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
19761 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
19762 `machine/time.h'. Add `time.h'.
19763 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
19765 2007-10-21 Robert Millan <rmh@aybabtu.com>
19767 * include/grub/misc.h (grub_max): New function.
19769 2007-10-21 Robert Millan <rmh@aybabtu.com>
19771 * util/misc.c (grub_util_info): Call fflush() before returning.
19773 2007-10-20 Robert Millan <rmh@aybabtu.com>
19775 * genmk.rb (Image): Copy `extra_flags' from here ...
19776 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
19778 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
19779 to `argc' and `args' arguments.
19781 2007-10-17 Robert Millan <rmh@aybabtu.com>
19783 * kern/i386/loader.S: New file.
19785 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
19786 * kern/i386/loader.S (grub_linux_prot_size)... to here.
19787 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
19788 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
19789 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
19790 * kern/i386/loader.S (grub_linux_real_addr)... to here.
19791 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
19792 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
19793 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
19794 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
19795 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
19796 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
19797 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
19798 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
19800 * kern/i386/realmode.S: New file.
19802 * kern/i386/pc/startup.S (protstack): Moved from here ...
19803 * kern/i386/realmode.S (protstack)... to here.
19804 * kern/i386/pc/startup.S (gdt): Moved from here ...
19805 * kern/i386/realmode.S (gdt)... to here.
19806 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
19807 * kern/i386/realmode.S (prot_to_real)... to here.
19809 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
19810 `kern/i386/realmode.S'.
19812 2007-10-17 Robert Millan <rmh@aybabtu.com>
19814 * include/grub/i386/loader.h: New file.
19816 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
19817 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
19818 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
19819 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
19820 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
19821 * include/grub/i386/loader.h (grub_linux_prot_size)
19822 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
19823 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
19824 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
19825 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
19827 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
19829 2007-10-15 Robert Millan <rmh@aybabtu.com>
19831 * normal/misc.c (grub_normal_print_device_info): Do not probe for
19832 filesystem when dev->disk is unset.
19833 Do probe for filesystem even when dev->disk->has_partitions is set.
19834 In case a filesystem is found, always report it.
19835 In case it isn't, if dev->disk->has_partitions is set, report that
19836 a partition table was found instead of reporting that no filesystem
19837 could be identified.
19839 2007-10-12 Robert Millan <rmh@aybabtu.com>
19841 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
19842 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
19844 * include/grub/types.h (grub_host_to_target16): New macro.
19845 (grub_host_to_target32): Likewise.
19846 (grub_host_to_target64): Likewise.
19847 (grub_target_to_host16): Likewise.
19848 (grub_target_to_host32): Likewise.
19849 (grub_target_to_host64): Likewise.
19851 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
19852 Renamed from to ...
19853 (GRUB_MOD_ALIGN): ...this. Update all users.
19855 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
19856 grub_host_to_target32.
19857 Replace grub_be_to_cpu32 with grub_target_to_host32.
19858 (load_modules): Likewise.
19859 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
19860 Replace grub_be_to_cpu32 with grub_target_to_host32.
19861 Replace grub_cpu_to_be16 with grub_host_to_target16.
19862 Replace grub_cpu_to_be32 grub_host_to_target32.
19864 2007-10-12 Robert Millan <rmh@aybabtu.com>
19866 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
19867 * util/elf/grub-mkimage.c: ... here.
19869 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
19870 `util/powerpc/ieee1275/grub-mkimage.c'.
19872 2007-10-07 Robert Millan <rmh@aybabtu.com>
19874 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
19875 and make it easier to figure out.
19876 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
19877 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
19878 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
19879 leave us with less than HEAP_MIN_SIZE total heap.
19880 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
19882 2007-10-03 Robert Millan <rmh@aybabtu.com>
19884 * include/grub/i386/io.h: New file.
19885 * commands/i386/pc/play.c (inb): Removed.
19887 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
19889 * term/i386/pc/serial.c (inb): Removed.
19891 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
19893 * term/i386/pc/vga.c (inb): Removed.
19895 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
19898 2007-10-02 Robert Millan <rmh@aybabtu.com>
19900 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
19901 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19902 Reported by Marcin Kurek.
19904 2007-09-07 Robert Millan <rmh@aybabtu.com>
19906 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
19907 SmartFirmware version updates (as released by Sven Luther), and avoid
19908 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
19909 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
19912 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
19914 From Hitoshi Ozeki:
19915 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
19916 when merging two regions.
19918 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
19920 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
19921 * normal/completion.c (grub_normal_do_completion): Likewise.
19922 Reported by Hitoshi Ozeki.
19924 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
19926 Do not use devices at boot in chainloading.
19928 * loader/i386/pc/chainloader.c (boot_drive): New variable.
19929 (boot_part_addr): Likewise.
19930 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
19931 with BOOT_DRIVE and BOOT_PART_ADDR.
19932 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
19933 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
19935 2007-08-29 Robert Millan <rmh@aybabtu.com>
19937 Patch from Simon Peter <dn.tlp@gmx.net>:
19938 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
19939 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
19940 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
19941 util/i386/pc/grub-setup.c_DEPENDENCIES.
19942 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
19943 util/grub-probe.c_DEPENDENCIES.
19944 * conf/powerpc-ieee1275.rmk: Likewise.
19946 2007-08-28 Robert Millan <rmh@aybabtu.com>
19948 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
19949 to tell grub-mkdevicemap how to name devices.
19950 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
19953 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
19954 util/i386/get_disk_name.c.
19955 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
19956 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
19957 util/ieee1275/get_disk_name.c.
19959 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
19961 * DISTLIST: Add util/i386/get_disk_name.c and
19962 util/ieee1275/get_disk_name.c.
19964 * util/grub-mkdevicemap.c: Replace device naming logic with
19965 grub_util_get_disk_name() calls.
19967 2007-08-20 Robert Millan <rmh@aybabtu.com>
19969 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
19970 (so that it works for both plural and singular quantities).
19972 2007-08-05 Robert Millan <rmh@aybabtu.com>
19974 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
19975 so that [xz] isn't taken into account when determining order.
19977 2007-08-02 Marco Gerards <marco@gnu.org>
19979 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
19980 `include/multiboot2.h', `include/grub/elfload.h',
19981 `include/multiboot.h', `include/grub/multiboot.h',
19982 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
19983 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
19984 `kern/elf.c', `loader/multiboot_loader.c',
19985 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
19986 `loader/i386/pc/multiboot2.c',
19987 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
19988 `util/i386/pc/grub-mkrescue.in'. Remove
19989 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
19990 `include/grub/i386/pc/util/biosdisk.h' and
19991 `include/grub/powerpc/ieee1275/multiboot.h'.
19993 2007-08-02 Bean <bean123ch@gmail.com>
19995 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
19996 (ntfs_mod_SOURCES): New variable.
19997 (ntfs_mod_CFLAGS): Likewise.
19998 (ntfs_mod_LDFLAGS): Likewise.
20000 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
20001 (grub_probe_SOURCES): Likewise.
20002 (grub_emu_SOURCES): Likewise.
20004 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20005 (grub_emu_SOURCES): Likewise.
20007 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
20008 (grub_emu_SOURCES): Likewise.
20010 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
20012 * fs/ntfs.c: New file.
20014 2007-08-02 Bean <bean123ch@gmail.com>
20016 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
20018 * file.h (grub_file): Likewise.
20020 * fshelp.h (grub_fshelp_read_file): Likewise.
20022 * util/i386/pc/grub-setup.c (setup): Likewise.
20023 (save_first_sector): Likewise.
20024 (save_blocklists): Likewise.
20026 * fs/affs.c (grub_affs_read_file): Likewise.
20028 * fs/ext2.c (grub_ext2_read_file): Likewise.
20030 * fs/fat.c (grub_fat_read_data): Likewise.
20032 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
20034 * fs/hfs.c (grub_hfs_read_file): Likewise.
20036 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
20038 * fs/jfs.c (grub_jfs_read_file): Likewise.
20040 * fs/minix.c (grub_minix_read_file): Likewise.
20042 * fs/sfs.c (grub_sfs_read_file): Likewise.
20044 * fs/ufs.c (grub_ufs_read_file): Likewise.
20046 * fs/xfs.c (grub_xfs_read_file): Likewise.
20048 * command/blocklist.c (read_blocklist): Likewise.
20049 (print_blocklist): Likewise.
20051 2007-08-02 Marco Gerards <marco@gnu.org>
20053 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
20056 * disk/host.c: New file.
20058 * util/hostfs.c: Likewise.
20060 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
20061 return `GRUB_ERR_BAD_FS'.
20062 * fs/sfs.c (grub_sfs_mount): Likewise.
20063 * fs/xfs.c (grub_xfs_mount): Likewise.
20065 * include/grub/disk.h (enum grub_disk_dev_id): Add
20066 `GRUB_DISK_DEVICE_HOST_ID'.
20068 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
20070 2007-07-24 Jerone Young <jerone@gmail.com>
20072 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
20073 modules for compilation.
20074 * conf/powerpc-ieee1275.rmk: Likewise.
20076 * include/multiboot.h: Move multiboot definitions to one file. Rename
20077 many definitions to not get grub specific.
20078 * include/multiboot2.h: Create header with multiboot 2 definitions.
20079 * include/grub/multiboot.h: Header for grub specific function
20080 prototypes and definitions.
20081 * include/grub/multiboot2.h: Likewise.
20082 * include/grub/multiboot_loader.h: Likewise.
20083 * include/grub/i386/pc/multiboot.h: Removed.
20084 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
20086 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
20087 and 2 to allow for one multiboot and module commands.
20088 * loader/multiboot2.c: Add multiboot2 functionality.
20089 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
20090 and definition names.
20091 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
20093 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
20094 ieee1275 specific multiboot2 code.
20096 * kern/i386/pc/startup.S: Change headers and definition names for
20097 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
20099 2007-07-22 Robert Millan <rmh@aybabtu.com>
20101 * geninitheader.sh: Process file specified in first parameter rather
20102 than hardcoding grub_modules_init.lst.
20103 * geninit.sh: Likewise. Also, construct header name dynamically rather
20104 than hardcoding grub_modules_init.h.
20106 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
20107 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
20108 grub_probe_init.[ch] and grub_setup_init.[ch].
20110 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
20111 grub_modules_init.h with grub_emu_init.h.
20112 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
20113 grub_probe_init.[ch] files.
20114 * conf/i386-efi.rmk: Likewise.
20115 * conf/i386-pc.rmk: Likewise.
20116 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
20117 grub_setup_init.[ch] files.
20119 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
20120 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
20121 to initialize modules rather than a list of hardcoded functions.
20122 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
20123 grub_init_all() to initialize modules rather than a list of hardcoded
20126 2007-07-22 Robert Millan <rmh@aybabtu.com>
20128 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20129 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
20131 2007-07-22 Robert Millan <rmh@aybabtu.com>
20133 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
20134 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
20135 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
20136 flag when running on SmartFirmware.
20137 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
20138 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
20141 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
20142 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
20143 rather than decreasing it.
20145 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
20146 there's not enough space to do it, fail in the same way as when it
20147 can't be done because there are no partitions.
20149 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
20150 when nvsetenv failed.
20152 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20154 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
20155 because this rule is automatically generated.
20156 (grub-mkrescue): Removed for the same reason as above.
20158 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
20160 Migrate to GNU General Public License Version 3.
20162 * COPYING: Replaced with the plain text version of GPLv3.
20164 * config.guess: Updated from gnulib.
20165 * config.sub: Likewise.
20167 * geninit.sh: Output a GPLv3 copyright notice.
20168 * geninitheader.sh: Likewise.
20169 * genmodsrc.sh: Likewise.
20170 * gensymlist.sh.in: Likewise.
20172 * boot/i386/pc/boot.S: Upgraded to GPLv3.
20173 * boot/i386/pc/diskboot.S: Likewise.
20174 * boot/i386/pc/pxeboot.S: Likewise.
20175 * commands/blocklist.c: Likewise.
20176 * commands/boot.c: Likewise.
20177 * commands/cat.c: Likewise.
20178 * commands/cmp.c: Likewise.
20179 * commands/configfile.c: Likewise.
20180 * commands/echo.c: Likewise.
20181 * commands/help.c: Likewise.
20182 * commands/ls.c: Likewise.
20183 * commands/search.c: Likewise.
20184 * commands/terminal.c: Likewise.
20185 * commands/test.c: Likewise.
20186 * commands/videotest.c: Likewise.
20187 * commands/i386/cpuid.c: Likewise.
20188 * commands/i386/pc/halt.c: Likewise.
20189 * commands/i386/pc/play.c: Likewise.
20190 * commands/i386/pc/reboot.c: Likewise.
20191 * commands/i386/pc/vbeinfo.c: Likewise.
20192 * commands/i386/pc/vbetest.c: Likewise.
20193 * commands/ieee1275/halt.c: Likewise.
20194 * commands/ieee1275/reboot.c: Likewise.
20195 * commands/ieee1275/suspend.c: Likewise.
20196 * disk/loopback.c: Likewise.
20197 * disk/lvm.c: Likewise.
20198 * disk/raid.c: Likewise.
20199 * disk/efi/efidisk.c: Likewise.
20200 * disk/i386/pc/biosdisk.c: Likewise.
20201 * disk/ieee1275/ofdisk.c: Likewise.
20202 * font/manager.c: Likewise.
20203 * fs/affs.c: Likewise.
20204 * fs/ext2.c: Likewise.
20205 * fs/fat.c: Likewise.
20206 * fs/fshelp.c: Likewise.
20207 * fs/hfs.c: Likewise.
20208 * fs/hfsplus.c: Likewise.
20209 * fs/iso9660.c: Likewise.
20210 * fs/jfs.c: Likewise.
20211 * fs/minix.c: Likewise.
20212 * fs/sfs.c: Likewise.
20213 * fs/ufs.c: Likewise.
20214 * fs/xfs.c: Likewise.
20215 * hello/hello.c: Likewise.
20216 * include/grub/acorn_filecore.h: Likewise.
20217 * include/grub/arg.h: Likewise.
20218 * include/grub/bitmap.h: Likewise.
20219 * include/grub/boot.h: Likewise.
20220 * include/grub/cache.h: Likewise.
20221 * include/grub/device.h: Likewise.
20222 * include/grub/disk.h: Likewise.
20223 * include/grub/dl.h: Likewise.
20224 * include/grub/elfload.h: Likewise.
20225 * include/grub/env.h: Likewise.
20226 * include/grub/err.h: Likewise.
20227 * include/grub/file.h: Likewise.
20228 * include/grub/font.h: Likewise.
20229 * include/grub/fs.h: Likewise.
20230 * include/grub/fshelp.h: Likewise.
20231 * include/grub/gzio.h: Likewise.
20232 * include/grub/hfs.h: Likewise.
20233 * include/grub/kernel.h: Likewise.
20234 * include/grub/loader.h: Likewise.
20235 * include/grub/lvm.h: Likewise.
20236 * include/grub/misc.h: Likewise.
20237 * include/grub/mm.h: Likewise.
20238 * include/grub/net.h: Likewise.
20239 * include/grub/normal.h: Likewise.
20240 * include/grub/parser.h: Likewise.
20241 * include/grub/partition.h: Likewise.
20242 * include/grub/pc_partition.h: Likewise.
20243 * include/grub/raid.h: Likewise.
20244 * include/grub/rescue.h: Likewise.
20245 * include/grub/script.h: Likewise.
20246 * include/grub/setjmp.h: Likewise.
20247 * include/grub/symbol.h: Likewise.
20248 * include/grub/term.h: Likewise.
20249 * include/grub/terminfo.h: Likewise.
20250 * include/grub/tparm.h: Likewise.
20251 * include/grub/types.h: Likewise.
20252 * include/grub/video.h: Likewise.
20253 * include/grub/efi/api.h: Likewise.
20254 * include/grub/efi/chainloader.h: Likewise.
20255 * include/grub/efi/console.h: Likewise.
20256 * include/grub/efi/console_control.h: Likewise.
20257 * include/grub/efi/disk.h: Likewise.
20258 * include/grub/efi/efi.h: Likewise.
20259 * include/grub/efi/pe32.h: Likewise.
20260 * include/grub/efi/time.h: Likewise.
20261 * include/grub/i386/linux.h: Likewise.
20262 * include/grub/i386/setjmp.h: Likewise.
20263 * include/grub/i386/types.h: Likewise.
20264 * include/grub/i386/efi/kernel.h: Likewise.
20265 * include/grub/i386/efi/loader.h: Likewise.
20266 * include/grub/i386/efi/time.h: Likewise.
20267 * include/grub/i386/pc/biosdisk.h: Likewise.
20268 * include/grub/i386/pc/boot.h: Likewise.
20269 * include/grub/i386/pc/chainloader.h: Likewise.
20270 * include/grub/i386/pc/console.h: Likewise.
20271 * include/grub/i386/pc/init.h: Likewise.
20272 * include/grub/i386/pc/kernel.h: Likewise.
20273 * include/grub/i386/pc/loader.h: Likewise.
20274 * include/grub/i386/pc/memory.h: Likewise.
20275 * include/grub/i386/pc/multiboot.h: Likewise.
20276 * include/grub/i386/pc/serial.h: Likewise.
20277 * include/grub/i386/pc/time.h: Likewise.
20278 * include/grub/i386/pc/vbe.h: Likewise.
20279 * include/grub/i386/pc/vbeblit.h: Likewise.
20280 * include/grub/i386/pc/vbefill.h: Likewise.
20281 * include/grub/i386/pc/vbeutil.h: Likewise.
20282 * include/grub/i386/pc/vga.h: Likewise.
20283 * include/grub/ieee1275/ieee1275.h: Likewise.
20284 * include/grub/ieee1275/ofdisk.h: Likewise.
20285 * include/grub/powerpc/libgcc.h: Likewise.
20286 * include/grub/powerpc/setjmp.h: Likewise.
20287 * include/grub/powerpc/types.h: Likewise.
20288 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
20289 * include/grub/powerpc/ieee1275/console.h: Likewise.
20290 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
20291 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
20292 * include/grub/powerpc/ieee1275/loader.h: Likewise.
20293 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
20294 * include/grub/powerpc/ieee1275/time.h: Likewise.
20295 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
20296 * include/grub/sparc64/libgcc.h: Likewise.
20297 * include/grub/sparc64/setjmp.h: Likewise.
20298 * include/grub/sparc64/types.h: Likewise.
20299 * include/grub/sparc64/ieee1275/console.h: Likewise.
20300 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
20301 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
20302 * include/grub/sparc64/ieee1275/time.h: Likewise.
20303 * include/grub/util/biosdisk.h: Likewise.
20304 * include/grub/util/getroot.h: Likewise.
20305 * include/grub/util/lvm.h: Likewise.
20306 * include/grub/util/misc.h: Likewise.
20307 * include/grub/util/raid.h: Likewise.
20308 * include/grub/util/resolve.h: Likewise.
20309 * io/gzio.c: Likewise.
20310 * kern/device.c: Likewise.
20311 * kern/disk.c: Likewise.
20312 * kern/dl.c: Likewise.
20313 * kern/elf.c: Likewise.
20314 * kern/env.c: Likewise.
20315 * kern/err.c: Likewise.
20316 * kern/file.c: Likewise.
20317 * kern/fs.c: Likewise.
20318 * kern/loader.c: Likewise.
20319 * kern/main.c: Likewise.
20320 * kern/misc.c: Likewise.
20321 * kern/mm.c: Likewise.
20322 * kern/parser.c: Likewise.
20323 * kern/partition.c: Likewise.
20324 * kern/rescue.c: Likewise.
20325 * kern/term.c: Likewise.
20326 * kern/efi/efi.c: Likewise.
20327 * kern/efi/init.c: Likewise.
20328 * kern/efi/mm.c: Likewise.
20329 * kern/i386/dl.c: Likewise.
20330 * kern/i386/efi/init.c: Likewise.
20331 * kern/i386/efi/startup.S: Likewise.
20332 * kern/i386/pc/init.c: Likewise.
20333 * kern/i386/pc/lzo1x.S: Likewise.
20334 * kern/i386/pc/startup.S: Likewise.
20335 * kern/ieee1275/ieee1275.c: Likewise.
20336 * kern/powerpc/cache.S: Likewise.
20337 * kern/powerpc/dl.c: Likewise.
20338 * kern/powerpc/ieee1275/cmain.c: Likewise.
20339 * kern/powerpc/ieee1275/crt0.S: Likewise.
20340 * kern/powerpc/ieee1275/init.c: Likewise.
20341 * kern/powerpc/ieee1275/openfw.c: Likewise.
20342 * kern/sparc64/cache.S: Likewise.
20343 * kern/sparc64/dl.c: Likewise.
20344 * kern/sparc64/ieee1275/init.c: Likewise.
20345 * kern/sparc64/ieee1275/openfw.c: Likewise.
20346 * loader/efi/chainloader.c: Likewise.
20347 * loader/efi/chainloader_normal.c: Likewise.
20348 * loader/i386/efi/linux.c: Likewise.
20349 * loader/i386/efi/linux_normal.c: Likewise.
20350 * loader/i386/pc/chainloader.c: Likewise.
20351 * loader/i386/pc/chainloader_normal.c: Likewise.
20352 * loader/i386/pc/linux.c: Likewise.
20353 * loader/i386/pc/linux_normal.c: Likewise.
20354 * loader/i386/pc/multiboot.c: Likewise.
20355 * loader/i386/pc/multiboot_normal.c: Likewise.
20356 * loader/powerpc/ieee1275/linux.c: Likewise.
20357 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
20358 * normal/arg.c: Likewise.
20359 * normal/cmdline.c: Likewise.
20360 * normal/command.c: Likewise.
20361 * normal/completion.c: Likewise.
20362 * normal/execute.c: Likewise.
20363 * normal/function.c: Likewise.
20364 * normal/lexer.c: Likewise.
20365 * normal/main.c: Likewise.
20366 * normal/menu.c: Likewise.
20367 * normal/menu_entry.c: Likewise.
20368 * normal/misc.c: Likewise.
20369 * normal/parser.y: Likewise.
20370 * normal/script.c: Likewise.
20371 * normal/i386/setjmp.S: Likewise.
20372 * normal/powerpc/setjmp.S: Likewise.
20373 * normal/sparc64/setjmp.S: Likewise.
20374 * partmap/acorn.c: Likewise.
20375 * partmap/amiga.c: Likewise.
20376 * partmap/apple.c: Likewise.
20377 * partmap/gpt.c: Likewise.
20378 * partmap/pc.c: Likewise.
20379 * partmap/sun.c: Likewise.
20380 * term/gfxterm.c: Likewise.
20381 * term/terminfo.c: Likewise.
20382 * term/efi/console.c: Likewise.
20383 * term/i386/pc/console.c: Likewise.
20384 * term/i386/pc/serial.c: Likewise.
20385 * term/i386/pc/vesafb.c: Likewise.
20386 * term/i386/pc/vga.c: Likewise.
20387 * term/ieee1275/ofconsole.c: Likewise.
20388 * util/biosdisk.c: Likewise.
20389 * util/console.c: Likewise.
20390 * util/genmoddep.c: Likewise.
20391 * util/getroot.c: Likewise.
20392 * util/grub-emu.c: Likewise.
20393 * util/grub-mkdevicemap.c: Likewise.
20394 * util/grub-probe.c: Likewise.
20395 * util/lvm.c: Likewise.
20396 * util/misc.c: Likewise.
20397 * util/raid.c: Likewise.
20398 * util/resolve.c: Likewise.
20399 * util/update-grub.in: Likewise.
20400 * util/update-grub_lib.in: Likewise.
20401 * util/grub.d/00_header.in: Likewise.
20402 * util/grub.d/10_hurd.in: Likewise.
20403 * util/grub.d/10_linux.in: Likewise.
20404 * util/i386/efi/grub-install.in: Likewise.
20405 * util/i386/efi/grub-mkimage.c: Likewise.
20406 * util/i386/pc/grub-install.in: Likewise.
20407 * util/i386/pc/grub-mkimage.c: Likewise.
20408 * util/i386/pc/grub-mkrescue.in: Likewise.
20409 * util/i386/pc/grub-setup.c: Likewise.
20410 * util/i386/pc/misc.c: Likewise.
20411 * util/powerpc/ieee1275/grub-install.in: Likewise.
20412 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
20413 * util/powerpc/ieee1275/misc.c: Likewise.
20414 * video/bitmap.c: Likewise.
20415 * video/video.c: Likewise.
20416 * video/i386/pc/vbe.c: Likewise.
20417 * video/i386/pc/vbeblit.c: Likewise.
20418 * video/i386/pc/vbefill.c: Likewise.
20419 * video/i386/pc/vbeutil.c: Likewise.
20420 * video/readers/tga.c: Likewise.
20422 2007-07-02 Robert Millan <rmh@aybabtu.com>
20424 * conf/i386-efi.rmk: Replace obsolete reference to
20425 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
20426 with util/getroot.c.
20427 * conf/powerpc-ieee1275.rmk: Likewise.
20428 * conf/sparc64-ieee1275.rmk: Likewise.
20430 * util/grub-emu.c (main): Fix unchecked pointer handling.
20432 2007-07-02 Robert Millan <rmh@aybabtu.com>
20434 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
20435 invocation to fail, in order to support partition-less media.
20437 * util/i386/pc/grub-install.in: Likewise.
20439 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
20440 which fs or partmap modules are needed (akin to its sister scripts).
20442 Also use grub-probe to get rid of unportable /proc/mounts check.
20444 Print the same informational message that the other scripts do, before
20447 2007-06-23 Robert Millan <rmh@aybabtu.com>
20449 * util/update-grub_lib.in (font_path): New function. Determine whether
20450 a font file can be found and, if so, echo the GRUB path to it.
20452 * util/update-grub.in: Handle multiple terminals depending on user
20453 input, platform availability and font file presence. Propagate
20454 variables of our findings to /etc/grub.d/ children.
20456 * util/grub.d/00_header.in: Handle multiple terminals, based on
20457 environment setup by update-grub.
20459 2007-06-23 Robert Millan <rmh@aybabtu.com>
20461 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
20463 2007-06-21 Robert Millan <rmh@aybabtu.com>
20465 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
20466 indicate end of data section in kernel image.
20467 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
20468 GRUB_KERNEL_MACHINE_DATA_END.
20470 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
20472 * kern/i386/efi/startup.S: Likewise.
20474 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
20475 during image generation. Implement --prefix option to override this
20477 * util/i386/efi/grub-mkimage.c: Likewise.
20479 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
20480 code to make path relative to its root into a separate function.
20482 * util/i386/pc/grub-install.in: Use newly provided
20483 make_system_path_relative_to_its_root() to convert ${grubdir}, then
20484 pass the result to grub-install --prefix.
20486 2007-06-13 Robert Millan <rmh@aybabtu.com>
20488 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
20489 DEFAULT_DEVICE_MAP.
20490 * util/grub-emu.c: Use above definitions from misc.h instead of
20492 * util/grub-mkdevicemap.c: Likewise.
20493 * util/i386/pc/grub-setup.c: Likewise.
20494 * util/grub-probe.c: Likewise.
20495 (probe): Abort with grub_util_error() when either
20496 grub_guess_root_device or grub_util_get_grub_dev fails.
20498 2007-06-12 Robert Millan <rmh@aybabtu.com>
20500 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
20501 "pager" assignment.
20502 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
20504 * util/grub-probe.c (probe): Likewise for "drive_name".
20506 2007-06-11 Robert Millan <rmh@aybabtu.com>
20508 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
20509 not just the cdrom one.
20511 2007-06-11 Robert Millan <rmh@aybabtu.com>
20513 * util/i386/pc/grub-mkrescue.in: Add "set -e".
20514 Add --pkglibdir=DIR option to override pkglibdir.
20515 Mention --image-type=TYPE in help output.
20516 Fix --grub-mkimage (it was a no-op).
20517 Abort gracefully when no parameter is given.
20519 2007-06-11 Robert Millan <rmh@aybabtu.com>
20521 * util/i386/pc/grub-mkrescue.in: New file.
20522 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
20523 * Makefile.in: Handle bin_SCRIPTS.
20525 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
20527 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
20528 list of video modes.
20530 2007-06-06 Robert Millan <rmh@aybabtu.com>
20532 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
20533 file doesn't exist, or if it is in a filesystem grub can't read.
20535 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
20536 not abort if GRUB_DRIVE could not be defined. Rearrange generated
20537 header comment to fit in 80 columns when the variables are resolved.
20539 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
20540 could be identified by update-grub. Remove redundant check for
20541 unifont.pff existence (since convert_system_path_to_grub_path now
20544 2007-06-04 Robert Millan <rmh@aybabtu.com>
20546 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
20548 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
20550 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
20552 2007-06-04 Robert Millan <rmh@aybabtu.com>
20554 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
20556 * include/grub/partition.h: Declare grub_apple_partition_map_init and
20557 grub_apple_partition_map_fini.
20560 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
20561 to access >2 TiB disks).
20563 Print disk->total_sectors with %llu instead of %lu, since this
20564 variable is always 64-bit (prevents wrong disk size from being displayed
20565 on either >2 TiB disk or big-endian CPU).
20567 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
20568 into a generic case that supports all (sane) partition maps.
20570 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
20573 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
20574 and grub_apple_partition_map_fini() after that.
20576 2007-06-01 Robert Millan <rmh@aybabtu.com>
20578 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
20580 * util/grub.d/00_header.in: Only enable gfxterm when
20581 convert_system_path_to_grub_path() succeeds.
20583 2007-05-20 Robert Millan <rmh@aybabtu.com>
20585 * util/update-grub_lib.in: New file.
20586 * DISTLIST: Add update-grub_lib.in.
20587 * conf/common.rmk: Generate update-grub_lib and install it in
20589 * Makefile.in: Add install routine for $(lib_DATA).
20591 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
20592 function provided by update-grub_lib to support arbitrary paths of
20594 * util/update-grub.in: Use convert_system_path_to_grub_path() to
20595 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
20597 2007-05-19 Robert Millan <rmh@aybabtu.com>
20599 * commands/i386/cpuid.c: New module.
20600 * DISTLIST: Add it.
20601 * conf/i386-efi.rmk: Enable cpuid.mod.
20602 * conf/i386-pc.rmk: Likewise.
20604 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
20606 * kern/disk.c (grub_disk_read): Check return value of
20609 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
20611 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
20613 * disk/raid.c (grub_raid_open): Likewise.
20615 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20617 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
20618 stack instead of on the heap.
20620 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
20621 before doing a read on it.
20623 * configure.ac: Only use -fno-stack-protector for the target
20626 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
20628 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
20629 __attribute_ ((unused)) to mode_type argument.
20631 * util/getroot.c (grub_guess_root_device): Fix #endif.
20633 * kern/misc.c (memcmp): Fix prototype.
20635 * include/grub/partition.h [GRUB_UTIL]
20636 (grub_gpt_partition_map_init): Add prototype.
20637 (grub_gpt_partition_map_fini): Likewise.
20639 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
20640 at the right place.
20642 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
20643 (grub_fat_read_data): Likewise.
20644 (grub_fat_find_dir): Likewise.
20646 * font/manager.c (find_glyph): Make table a const.
20647 (grub_font_get_glyph): Remove bitmap from if statement.
20649 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
20651 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
20652 code, first search for device in /dev/mapper, then in /dev.
20653 (grub_util_get_grub_dev): New function.
20654 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
20656 * util/grub-probe.c (probe): Remove check for RAID, call
20657 grub_util_get_grub_dev() instead of
20658 grub_util_biosdisk_get_grub_dev().
20659 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
20660 grub_util_biosdisk_get_grub_dev().
20661 * util/i386/pc/grub-setup.c (main): Likewise.
20663 2007-05-16 Robert Millan <rmh@aybabtu.com>
20665 * DISTLIST: Update for the latest changes.
20666 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
20667 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
20668 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
20669 grub/util/biosdisk.h.
20670 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
20671 grub/util/biosdisk.h.
20673 2007-05-16 Robert Millan <rmh@aybabtu.com>
20675 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
20677 2007-05-16 Robert Millan <rmh@aybabtu.com>
20679 * util/i386/efi/grub-install.in: New.
20680 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
20681 newly added grub-install.
20682 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
20684 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
20685 grub/util/biosdisk.h.
20686 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
20687 grub/util/biosdisk.h.
20689 2007-05-16 Robert Millan <rmh@aybabtu.com>
20691 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
20692 * include/grub/util/biosdisk.h: ... here.
20693 * util/i386/pc/biosdisk.c: Moved to ...
20694 * util/biosdisk.c: ... here.
20695 * util/i386/pc/getroot.c: Moved to ...
20696 * util/getroot.c: ... here.
20697 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
20698 * util/grub-mkdevicemap.c: ... here.
20699 * util/i386/pc/grub-probe.c: Moved to ...
20700 * util/grub-probe.c: ... here.
20702 2007-05-15 Robert Millan <rmh@aybabtu.com>
20704 * util/update-grub.in: Remove duplicated line in grub.cfg header
20707 2007-05-13 Robert Millan <rmh@aybabtu.com>
20709 * util/update-grub.in: Fix a few assumptions about the devices holding
20710 /, /boot and /boot/grub being the same.
20711 * util/grub.d/00_header.in: Likewise.
20712 * util/grub.d/10_hurd.in: Likewise.
20713 * util/grub.d/10_linux.in: Likewise.
20715 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
20716 patterns. Use that to define the `.old' suffix as older than `'.
20718 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
20720 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
20721 the grub.cfg header message.
20723 2007-05-11 Robert Millan <rmh@aybabtu.com>
20725 * util/update-grub.in: Create device.map if it doesn't already exist,
20726 before attempting to run grub-probe.
20727 Check for grub-probe and grub-mkdevicemap with the same code
20728 grub-install is using.
20731 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
20733 * Makefile.in: Add the datarootdir autoconf variable.
20735 2007-05-09 Robert Millan <rmh@aybabtu.com>
20737 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
20738 fail gracefully if dev->disk->partition == NULL.
20740 2007-05-07 Robert Millan <rmh@aybabtu.com>
20742 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
20743 determine partition map module.
20744 * util/i386/pc/grub-install.in: Use this feature to decide which
20745 partition module to load, instead of hardcoding pc and gpt.
20747 2007-05-07 Robert Millan <rmh@aybabtu.com>
20749 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
20750 source directory differs from build directory.
20752 2007-05-05 Robert Millan <rmh@aybabtu.com>
20754 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
20757 2007-05-05 Robert Millan <rmh@aybabtu.com>
20759 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
20761 2007-05-05 Robert Millan <rmh@aybabtu.com>
20763 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
20764 command-line arguments via ${GRUB_CMDLINE_LINUX}.
20766 2007-05-05 Robert Millan <rmh@aybabtu.com>
20768 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
20769 (grub_probe_SOURCES): Likewise.
20770 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
20771 GPT and initialize dos_part and bsd_part accordingly.
20772 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
20774 (main): Activate gpt module for use during partition identification,
20775 and deactivate it afterwards.
20776 * util/i386/pc/grub-install.in: Add gpt module to core.img.
20777 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
20778 partition identification, and deactivate it afterwards.
20780 2007-05-05 Robert Millan <rmh@aybabtu.com>
20782 * term/i386/pc/console.c (grub_console_fini): Call
20783 grub_term_set_current() before grub_term_unregister().
20785 2007-05-04 Robert Millan <rmh@aybabtu.com>
20787 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
20788 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
20789 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
20790 and update-grub_DATA.
20791 * conf/common.rmk: Build and install update-grub components.
20792 * conf/common.mk: Regenerate.
20793 * util/update-grub.in: New. Core of update-grub.
20794 * util/grub.d/00_header.in: New. Generates grub.cfg header.
20795 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
20796 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
20797 * util/grub.d/README: New. Document grub.d directory layout.
20799 2007-05-01 Robert Millan <rmh@aybabtu.com>
20801 * util/grub-emu.c: Move initialization functions
20802 grub_util_biosdisk_init() and grub_init_all() before
20803 grub_util_biosdisk_get_grub_dev(), which relies on them.
20805 2007-04-19 Robert Millan <rmh@aybabtu.com>
20807 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
20810 2007-04-18 Jerone Young <jerone@gmail.com>
20812 * kernel/elf.c: Add missing parenthesis for conditional statement
20815 2007-04-10 Jerone Young <jerone@gmail.com>
20817 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
20818 continue on and look for device node with real device name.
20820 2007-04-10 Jerone Young <jerone@gmail.com>
20822 * configure.ac: Add argument for autoconf to use transformation
20824 * Makefile.in: Add autoconf package transformation code.
20825 * util/i386/pc/grub-install.in: Likewise.
20826 * util/powerpc/ieee1275/grub-install.in: Likewise.
20828 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
20830 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
20831 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
20832 (EXT2_REVISION): Likewise.
20833 (EXT2_INODE_SIZE): Likewise.
20834 (struct grub_ext2_block_group): Added a missing member
20836 (grub_ext2_read_inode): Divide by the inode size in a superblock
20837 instead of 128 to obtain INODES_PER_BLOCK.
20838 Use the macro EXT2_INODE_SIZE instead of directly using
20839 SBLOCK->INODE_SIZE.
20841 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
20843 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
20844 superblock instead of the structure size to compute an
20845 offset. This fixes the problem that GRUB could not read a
20846 filesystem when inode size is different from 128-byte.
20848 2007-03-05 Marco Gerards <marco@gnu.org>
20850 * normal/main.c (read_config_file): When "menu" is not set, create
20851 an initial context.
20853 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
20855 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
20856 (HEAP_LIMIT): New macro.
20857 (grub_claim_heap): Claim memory up to `heaplimit'.
20859 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
20861 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
20862 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
20863 (_start): Likewise.
20864 (grub_arch_modules_addr): Return address after `_end'.
20865 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
20866 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
20867 (add_segments): Calculate `_end' from phdr size and location.
20868 (ALIGN_UP): Moved to ...
20869 * include/grub/misc.h: here.
20870 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
20872 (GRUB_IEEE1275_MODULE_BASE): Removed.
20874 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
20876 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
20879 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
20881 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
20883 (grub_elf64_load_hook_t): Likewise.
20884 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
20887 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
20889 * kern/mm.c: Update copyright.
20890 (grub_mm_debug): Correct syntax error.
20891 (grub_mm_dump_free): New function.
20892 (grub_debug_free): Call `grub_free'.
20893 * include/grub/mm.h: Update copyright.
20894 (grub_mm_dump_free): Add declaration.
20896 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
20898 * include/grub/ieee1275/ieee1275.h: Update copyright.
20899 * kern/powerpc/ieee1275/init.c: Likewise.
20900 * kern/powerpc/ieee1275/openfw.c: Likewise.
20902 * loader/powerpc/ieee1275/linux.c: Likewise.
20903 * include/grub/elfload.h: Likewise.
20904 * kern/elf.c: Likewise.
20905 (grub_elf32_load): Pass `base' and `size' parameters. Update all
20907 (grub_elf64_load): Likewise.
20908 (grub_elf32_load_segment): Move to a nested function.
20909 (grub_elf64_load_segment): Likewise.
20911 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
20913 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
20915 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
20916 (grub_heap_len): Likewise.
20917 (HEAP_SIZE): New macro.
20918 (grub_claim_heap): New function.
20919 (grub_machine_init): Don't claim heap directly. Call
20921 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
20922 (grub_available_iterate): New function.
20924 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
20926 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
20927 * configure.ac: Use it for testing the HOST and TARGET compilers.
20929 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
20931 * Makefile.in (enable_grub_emu): New variable.
20932 * configure.ac (--enable-grub-emu): New option.
20933 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
20934 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
20935 * conf/i386-pc.rmk: Likewise.
20936 * conf/powerpc-ieee1275.rmk: Likewise.
20937 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
20939 2006-12-12 Marco Gerards <marco@gnu.org>
20941 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
20943 * kern/env.c (grub_env_unset): Don't free the member `value' when
20944 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
20947 * normal/main.c (current_menu): Removed.
20948 (free_menu): Unset the `menu' environment variable.
20949 (grub_normal_menu_addentry): Make use of the environment variable
20950 `menu', instead of using the global `current_menu'. Allocate
20951 memory for the sourcecode of this entry.
20952 (read_config_file): New argument `nested', changed all callers.
20953 Only in the case of a new context, initialize a new menu. Set the
20954 `menu' environment variable.
20955 (grub_normal_execute): Don't set and unset the environment
20956 variable `menu' here anymore. Only free the menu when leaving the
20959 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
20962 2006-12-11 Marco Gerards <marco@gnu.org>
20964 * normal/menu_entry.c (run): Fix off by one bug so the last line
20965 is executed. Move the loader check to outside the loop.
20967 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
20969 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
20971 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
20973 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
20974 the number of sectors. Reported by Andrey Shuvikov
20975 <mr_hyro@yahoo.com>.
20977 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
20979 * kern/disk.c (grub_disk_read): When there is a read error, always
20980 try to read only the necessary data.
20982 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
20984 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
20986 [GRUB_UTIL] (grub_raid_fini): Likewise.
20987 [GRUB_UTIL] (grub_lvm_init): Likewise.
20988 [GRUB_UTIL] (grub_lvm_fini): Likewise.
20989 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
20990 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
20991 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
20992 and grub_raid_fini().
20994 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
20996 * include/grub/types.h (__unused): Rename to UNUSED.
20997 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
20998 (grub_elf64_size): Likewise.
21000 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21002 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
21003 grub_error_push and grub_error_pop in the error-handling path.
21004 (grub_elf32_load_segment): Only call grub_file_read with non-zero
21007 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
21009 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
21010 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21011 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21012 (kernel_elf_SOURCES): Likewise.
21013 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
21014 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
21015 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21016 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21017 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
21018 (elf_mod_SOURCES): New variable.
21019 (elf_mod_CFLAGS): Likewise.
21020 (elf_mod_LDFLAGS): Likewise.
21021 * include/grub/types.h (__unused): New macro.
21022 * include/grub/elfload.h: New file.
21023 * kern/elf.c: Likewise.
21024 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
21025 (ELF32_LOADMASK): New macro.
21026 (ELF64_LOADMASK): Likewise.
21027 (vmlinux): Removed.
21028 (grub_linux_load32): New function.
21029 (grub_linux_load64): Likewise.
21030 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
21031 Use grub_elf_t instead of grub_file_t.
21033 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
21035 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
21036 `catch_result' to struct set_color_args.
21038 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
21040 * normal/menu.c: Include grub/script.h.
21041 * normal/menu_entry.c: Likewise.
21042 * include/grub/normal.h: Do not include grub/script.h.
21044 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21046 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
21048 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21050 * kern/disk.c (grub_disk_open): Print debug messages when opening a
21052 (grub_disk_close): Print debug messages when closing a disk.
21053 (grub_disk_read): Print debug messages when disk read fails.
21054 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
21056 * kern/partition.c: Include misc.h.
21057 (grub_partition_iterate): Print debug messages when detecting
21060 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
21062 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
21064 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
21066 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
21068 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21069 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
21071 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
21073 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
21074 instead of sizeof(lv). Patch by Michael Guntsche.
21076 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
21078 * disk/lvm.c: Rename VGS to VG_LIST.
21079 (grub_lvm_iterate): Change VGS->LV to VG-LV.
21080 (grub_lvm_open): Likewise.
21081 Thanks to Michael Guntsche for finding this bug.
21083 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
21085 * configure.ac (AC_INIT): Bumped to 1.95.
21087 2006-10-14 Robert Millan <rmh@aybabtu.com>
21089 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
21090 with "/dev/.static/dev/md".
21092 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21094 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
21095 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
21096 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
21097 DRIVE_NAME are always freed.
21099 * util/i386/pc/biosdisk.c (make_device_name): Add one into
21100 DOS_PART, as a DOS partition is counted from one instead of zero
21101 now. Reported by Robert Millan.
21103 2006-10-14 Robert Millan <rmh@aybabtu.com>
21105 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
21106 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
21107 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
21108 string returned by grub_guess_root_device.
21109 * util/i386/pc/grub-setup.c: Likewise.
21110 * util/i386/pc/grub-probefs.c: Likewise.
21112 * util/i386/pc/grub-probefs.c: Rename to ...
21113 * util/i386/pc/grub-probe.c: ... this.
21114 * DISTLIST: Remove grub-probefs, add grub-probe.
21115 * conf/i386-efi.rmk: Likewise.
21116 * conf/i386-pc.rmk: Likewise.
21117 * util/i386/pc/grub-install.in: Likewise.
21119 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
21120 choose which information we want to print.
21122 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
21124 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
21125 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
21126 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
21127 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
21128 video/readers/tga.c and video/i386/pc/vbeutil.c.
21130 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
21132 Added support for RAID and LVM.
21134 * disk/lvm.c: New file.
21135 * disk/raid.c: Likewise.
21136 * include/grub/lvm.h: Likewise.
21137 * include/grub/raid.h: Likewise.
21138 * include/grub/util/lvm.h: Likewise.
21139 * include/grub/util/raid.h: Likewise.
21140 * util/lvm.c: Likewise.
21141 * util/raid.c: Likewise.
21143 * include/grub/disk.h (grub_disk_dev_id): Add
21144 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
21145 (grub_disk_get_size): New prototype.
21146 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
21147 returns a partition.
21148 (grub_disk_get_size): New function.
21150 * kern/i386/pc/init.c (make_install_device): Copy the prefix
21151 verbatim if grub_install_dos_part is -2.
21153 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
21156 * util/i386/pc/grub-setup.c (setup): New argument
21157 MUST_EMBED. Force embedding of GRUB when the argument is
21158 true. Close FILE before returning.
21159 (main): Add support for RAID and LVM.
21161 * conf/common.rmk: Add RAID and LVM modules.
21162 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
21164 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
21166 * kern/misc.c (grub_strstr): New function.
21167 * include/grub/misc.h (grub_strstr): New prototype.
21169 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
21171 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
21173 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
21175 * kern/misc.c (grub_strtoull): Guess the base only if not
21178 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21180 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
21183 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21185 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
21187 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
21188 Remove `flags' argument. All callers changed.
21189 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
21190 (IEEE1275_IHANDLE_INVALID): New variable.
21191 (IEEE1275_CELL_INVALID): New variable.
21192 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
21193 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
21194 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
21195 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
21196 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
21197 codes from Open Firmware. All callers updated.
21198 (grub_ieee1275_next_property): Directly return Open Firmware return
21200 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
21201 Standardize error checking from `grub_ieee1275_get_property'.
21202 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
21203 `devalias' to `aliases'. Correct comments. Consolidate error paths.
21205 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
21207 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
21208 `instance_to_package_args' to `instance_to_path_args'.
21210 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
21211 `grub_ieee1275_chosen'.
21213 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
21214 `grub_ieee1275_interpret'.
21216 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21218 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
21220 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
21222 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
21223 (__cmpdi): Likewise.
21225 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
21226 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
21229 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
21231 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
21232 to type `grub_ssize_t'.
21233 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
21235 2006-09-22 Marco Gerards <marco@gnu.org>
21237 * normal/script.c (grub_script_create_cmdmenu): Skip leading
21240 2006-09-22 Marco Gerards <marco@gnu.org>
21242 * commands/echo.c: New file.
21244 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
21246 * conf/common.rmk (echo_mod_SOURCES): New variable.
21247 (echo_mod_CFLAGS): Likewise.
21248 (echo_mod_LDFLAGS): Likewise.
21250 2006-09-22 Marco Gerards <marco@gnu.org>
21252 * normal/main.c (get_line): Malloc memory instead of using
21253 preallocated memory. Removed the arguments `cmdline' and
21254 `max_len'. Updated all callers.
21256 2006-09-22 Marco Gerards <marco@gnu.org>
21258 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
21259 (normal_mod_DEPENDENCIES): Likewise.
21261 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
21262 (normal_mod_DEPENDENCIES): Likewise.
21264 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
21266 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
21268 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
21270 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
21271 (normal_mod_DEPENDENCIES): Likewise.
21272 * conf/i386-pc.mk: Regenerate.
21273 * conf/i386-efi.mk: Likewise
21274 * conf/common.mk: Likewise.
21275 * conf/powerpc-ieee1275.mk: Likewise.
21276 * conf/sparc64-ieee1275.mk: Likewise.
21278 2006-09-22 Robert Millan <rmh@aybabtu.com>
21280 Sync with i386 version.
21281 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
21282 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
21284 2006-09-21 Robert Millan <rmh@aybabtu.com>
21286 Import from GRUB Legacy (lib/device.c):
21287 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
21288 (init_device_map) [__linux__]: Add support for I2O devices.
21290 2006-09-14 Marco Gerards <marco@gnu.org>
21292 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
21295 2006-09-14 Robert Millan <rmh@aybabtu.com>
21297 * util/i386/pc/grub-install.in: Skip menu.lst when removing
21300 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
21302 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
21303 before adding it to device.map.
21305 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
21307 * genmk.rb: Let GCC generate dependencies the first time it
21308 compiles a file; using the -MD option.
21309 * conf/common.mk: Regenerate.
21310 * conf/i386-pc.mk: Likewise.
21311 * conf/i386-efi.mk: Likewise.
21312 * conf/powerpc-ieee1275.mk: Likewise.
21313 * conf/sparc64-ieee1275.mk: Likewise.
21315 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
21317 Move the prototypes of grub_setjmp and grub_longjmp to
21318 cpu/setjmp.h, so that each architecture may specify different
21321 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
21322 (grub_longjmp): Likewise.
21323 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
21324 (grub_longjmp): Likewise.
21325 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
21326 (grub_longjmp): Likewise.
21328 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
21329 [!GRUB_UTIL] (grub_longjmp): Removed.
21331 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
21333 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
21334 "color!" method does not return any value.
21336 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21338 * include/grub/bitmap.h: New file.
21340 * include/grub/i386/pc/vbeutil.h: Likewise.
21342 * video/bitmap.c: Likewise.
21344 * video/readers/tga.c: Likewise.
21346 * video/i386/pc/vbeutil.c: Likewise.
21348 * commands/videotest.c: Code cleanup and updated to reflect to new
21351 * term/gfxterm.c: Likewise.
21353 * video/video.c: Likewise.
21355 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
21356 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
21357 (bitmap_mod_SOURCES): New entry.
21358 (bitmap_mod_CFLAGS): Likewise.
21359 (bitmap_mod_LDFLAGS): Likewise.
21360 (tga_mod_SOURCES): Likewise.
21361 (tga_mod_CFLAGS): Likewise.
21362 (tga_mod_LDFLAGS): Likewise.
21364 * include/grub/video.h (grub_video_blit_operators): New enum type.
21365 (grub_video_render_target): Changed as forward declaration and moved
21366 actual definition to be video driver specific.
21367 (grub_video_adapter.blit_bitmap): Added blitting operator.
21368 (grub_video_adapter.blit_render_target): Likewise.
21369 (grub_video_blit_bitmap): Likewise.
21370 (grub_video_blit_render_target): Likewise.
21372 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
21373 driver specific render target definition.
21374 (grub_video_vbe_map_rgba): Added driver internal helper.
21375 (grub_video_vbe_unmap_color): Updated to use
21376 grub_video_i386_vbeblit_info.
21377 (grub_video_vbe_get_video_ptr): Likewise.
21379 * include/grub/i386/pc/vbeblit.h
21380 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
21381 grub_video_i386_vbeblit_info.
21382 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
21383 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
21384 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
21385 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
21386 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
21387 (grub_video_i386_vbeblit_index_index): Likewise.
21388 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
21389 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
21390 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
21391 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
21393 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
21396 * video/i386/pc/vbeblit.c: Updated to reflect changes on
21397 include/grub/i386/pc/vbeblit.h.
21399 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
21400 Updated to use grub_video_i386_vbeblit_info.
21401 (grub_video_i386_vbefill_R8G8B8): Likewise.
21402 (grub_video_i386_vbefill_index): Likewise.
21403 (grub_video_i386_vbefill): Added generic filler.
21405 * video/i386/pc/vbefill.c: Updated to reflect changes on
21406 include/grub/i386/pc/vbefill.h.
21408 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
21409 grub_video_i386_vbeblit_info.
21410 (grub_video_vbe_unmap_color): Likewise.
21411 (grub_video_vbe_blit_glyph): Likewise.
21412 (grub_video_vbe_scroll): Likewise.
21413 (grub_video_vbe_draw_pixel): Removed function.
21414 (grub_video_vbe_get_pixel): Likewise.
21415 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
21416 updated code to use it.
21417 (common_blitter): Added common blitter for render target and bitmap.
21418 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
21419 (grub_video_vbe_blit_render_target): Likewise.
21421 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
21423 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
21424 is in text mode if there is no console control protocol instance
21427 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21429 * include/grub/video.h: Code cleanup.
21431 * include/grub/i386/pc/vbe.h: Likewise.
21433 * video/i386/pc/vbe.c: Likewise.
21435 * video/i386/pc/vbeblit.c: Likewise.
21437 * video/i386/pc/vbefill.c: Likewise.
21439 * video/video.c: Likewise. Also added more comments.
21441 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
21443 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
21444 (struct grub_biosdisk_dap): Likewise.
21446 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
21447 linkage settings for all functions.
21449 2006-07-12 Marco Gerards <marco@gnu.org>
21451 * configure.ac (--enable-mm-debug): Fix typo.
21453 * genkernsyms.sh.in: Use proper quoting for `CC'.
21455 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
21457 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
21458 (normal_mod_ASFLAGS): Remove "-m32".
21460 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
21462 * util/misc.c: Include config.h.
21463 [!HAVE_MEMALIGN]: Do not include malloc.h.
21464 (grub_memalign): Use posix_memalign, if present. Then, use
21465 memalign, if present. Otherwise, emit an error.
21467 * util/grub-emu.c: Do not include malloc.h.
21469 * include/grub/util/misc.h: Include unistd.h. This is required for
21470 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
21471 D. Eades III <hde@foobar-qux.org>.
21473 * configure.ac (AC_GNU_SOURCE): Added.
21474 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
21477 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
21479 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
21480 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
21482 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
21484 * include/grub/types.h (grub_host_addr_t): Rename to
21485 grub_target_addr_t.
21486 (grub_host_off_t): Rename to grub_target_off_t.
21487 (grub_host_size_t): Rename to grub_target_size_t.
21488 (grub_host_ssize_t): Rename to grub_target_ssize_t.
21489 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
21491 * include/grub/kernel.h (struct grub_module_header): Change type
21492 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
21493 (grub_module_info): Likewise.
21495 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
21497 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
21498 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
21499 Velazquez <jesus.velazquez@gmail.com>.
21501 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
21503 Count partitions from 1 instead of 0 in the string representation
21504 of partitions. Still use 0-based internally.
21506 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
21507 (sun_partition_map_iterate): Use grub_partition_t instead of
21508 struct grub_partition *. Cast DESC->START_CYLINDER to
21509 grub_uint64_t after converting the endian.
21510 (sun_partition_map_probe): Subtract 1 for PARTNUM.
21511 (sun_partition_map_get_name): Add 1 to P->INDEX.
21513 * partmap/pc.c (grub_partition_parse): Subtract 1 for
21515 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
21517 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
21518 zero instead of one.
21519 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
21520 (gpt_partition_map_get_name): Add 1 into P->INDEX.
21522 * partmap/apple.c (apple_partition_map_iterate): Change the type
21523 of POS to unsigned.
21524 (apple_partition_map_probe): Subtract 1 for PARTNUM.
21525 (apple_partition_map_get_name): Add 1 into P->INDEX.
21527 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
21528 of POS to unsigned.
21529 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
21530 calculate the offset of a partition.
21531 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
21532 (amiga_partition_map_get_name): Add 1 into P->INDEX.
21534 * partmap/acorn.c (acorn_partition_map_find): Change the type of
21535 SECTOR to grub_disk_addr_t.
21536 (acorn_partition_map_iterate): Likewise.
21537 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
21538 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
21540 (acorn_partition_map_get_name): Add 1 into P->INDEX.
21542 * kern/i386/pc/init.c (make_install_device): Add 1 into
21543 GRUB_INSTALL_DOS_PART.
21545 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
21548 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
21550 Clean up the code to support 64-bit addressing in disks and
21551 files. This change is not enough for filesystems yet.
21553 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
21554 type of "start" to grub_uint64_t.
21555 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
21556 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
21557 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
21560 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
21561 to grub_disk_addr_t.
21563 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
21566 * partmap/pc.c (pc_partition_map_iterate): Likewise.
21568 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
21571 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
21573 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
21575 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
21577 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
21578 to grub_off_t, to detect an error from grub_file_seek.
21579 (grub_multiboot_load_elf32): Likewise.
21581 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
21582 maximum unsigned long value when an overflow is detected.
21583 (grub_strtoull): New function.
21584 (grub_divmod64): Likewise.
21585 (grub_lltoa): use grub_divmod64.
21587 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
21589 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
21590 the pointer to next character. Use grub_strtoull instead of
21592 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
21593 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
21596 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
21597 return value is signed.
21598 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
21599 test if OFFSET is less than zero, as OFFSET is unsigned now.
21601 * kern/disk.c (struct grub_disk_cache): Change the type of
21602 "sector" to grub_disk_addr_t.
21603 (grub_disk_cache_get_index): Change the type of SECTOR to
21604 grub_disk_addr_t. Calculate the hash with SECTOR casted to
21605 unsigned after shifting.
21606 (grub_disk_cache_invalidate): Change the type of SECTOR to
21608 (grub_disk_cache_unlock): Likewise.
21609 (grub_disk_cache_store): Likewise.
21610 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
21611 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
21612 grub_disk_addr_t and grub_uint64_t, respectively.
21613 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
21614 body, as the value of OFFSET is tweaked by
21615 grub_disk_check_range. Change the types of START_SECTOR, LEN and
21616 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
21618 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
21619 body, as the value of OFFSET is tweaked by
21620 grub_disk_check_range. Change the types of LEN and N to
21623 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
21624 and "saved_offset" to grub_off_t.
21625 (test_header): Cast BUF to char *.
21626 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
21628 (grub_gzio_read): Change the types of OFFSET and SIZE to
21629 grub_off_t and grub_size_t, respectively.
21631 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
21633 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
21634 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
21635 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
21636 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
21637 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
21639 * include/grub/types.h (grub_off_t): Unconditionally set to
21641 (grub_disk_addr_t): Changed to grub_uint64_t.
21643 * include/grub/partition.h (struct grub_partition): Change the
21644 types of "start", "len" and "offset" to grub_disk_addr_t,
21645 grub_uint64_t and grub_disk_addr_t, respectively.
21646 (grub_partition_get_start): Return grub_disk_addr_t.
21647 (grub_partition_get_len): Return grub_uint64_t.
21649 * include/grub/misc.h (grub_strtoull): New prototype.
21650 (grub_divmod64): Likewise.
21652 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
21653 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
21654 grub_off_t, respectively.
21655 All callers and references changed.
21657 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
21658 grub_size_t in "read".
21659 All callers and references changed.
21661 * include/grub/file.h (struct grub_file): Change the types of
21662 "offset" and "size" to grub_off_t and grub_off_t,
21663 respectively. Change the type of SECTOR to grub_disk_addr_t in
21665 (grub_file_read): Change the type of LEN to grub_size_t.
21666 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
21668 (grub_file_size): Return grub_off_t.
21669 (grub_file_tell): Likewise.
21670 All callers and references changed.
21672 * include/grub/disk.h (struct grub_disk_dev): Change the types of
21673 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
21675 (struct grub_disk): Change the type of "total_sectors" to
21676 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
21678 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
21679 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
21680 (grub_disk_write): Likewise.
21681 All callers and references changed.
21683 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
21684 char * for grub_strncmp to silence gcc.
21685 (grub_iso9660_mount): Likewise.
21686 (grub_iso9660_mount): Likewise.
21687 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
21689 (grub_iso9660_iterate_dir): Likewise.
21690 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
21692 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
21693 LEN to grub_disk_addr_t and grub_size_t, respectively.
21695 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
21697 * fs/jfs.c (grub_jfs_read_file): Likewise.
21699 * fs/minix.c (grub_jfs_read_file): Likewise.
21701 * fs/sfs.c (grub_jfs_read_file): Likewise.
21703 * fs/ufs.c (grub_jfs_read_file): Likewise.
21705 * fs/xfs.c (grub_jfs_read_file): Likewise.
21707 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
21708 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
21711 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
21712 BLKNR to -1 instead of returning GRUB_ERRNO.
21713 (grub_ext2_read_file): Change the types of SECTOR and
21714 LEN to grub_disk_addr_t and grub_size_t, respectively.
21716 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
21717 LEN to grub_disk_addr_t and grub_size_t, respectively.
21719 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
21722 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
21723 string. Do not cast SECTOR explicitly.
21725 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
21726 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
21727 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
21728 grub_disk_addr_t and grub_size_t, respectively. If the sector is
21729 over 2TB and LBA mode is not supported, raise an error.
21730 (get_safe_sectors): New function.
21731 (grub_biosdisk_read): Use get_safe_sectors.
21732 (grub_biosdisk_write): Likewise.
21734 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
21735 (grub_efidisk_write): Likewise.
21737 * disk/loopback.c (delete_loopback): Cosmetic changes.
21738 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
21740 (grub_loopback_open): Likewise.
21741 (grub_loopback_read): Likewise. Also, change the type of POS to
21742 grub_off_t, and fix the usage of grub_memset.
21744 * commands/i386/pc/play.c: Include grub/machine/time.h.
21746 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
21749 * commands/configfile.c: Include grub/env.h.
21751 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
21752 GRUB_ERRNO directly instead. Change the type of POS to
21753 grub_off_t. Follow the coding standard.
21755 * commands/blocklist.c: Include grub/partition.h.
21756 (grub_cmd_blocklist): Return an error if the underlying device is
21757 not a disk. Take the starting sector of a partition into account,
21758 if a partition is used.
21760 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
21762 (lba_mode): Support 64-bit addresses.
21763 (chs_mode): Likewise.
21764 (copy_buffer): Adapted to the new offsets of a length field and a
21766 (blocklist_default_start): Allocate 64-bit space.
21768 * boot/i386/pc/boot.S (force_lba): Removed.
21769 (boot_drive): Moved to under KERNEL_SECTOR.
21770 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
21772 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
21774 (lba_mode): Refactored to support a 64-bit address. More size
21776 (setup_sectors): Likewise.
21778 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
21780 * DISTLIST: Added include/grub/i386/linux.h. Removed
21781 include/grub/i386/pc/linux.h
21783 * configure.ac (AC_INIT): Bumped to 1.94.
21785 * config.guess: Updated from gnulib.
21786 * config.sub: Likewise.
21787 * install-sh: Likewise.
21788 * mkinstalldirs: Likewise.
21790 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
21792 * conf/common.rmk (grub_modules_init.lst): Depended on
21793 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
21796 * genmk.rb (PModule::rule): Reverted the previous change.
21798 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
21800 * conf/common.rmk (grub_modules_init.lst): Depends on
21801 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
21802 that the target does not exist before producing.
21803 (grub_modules_init.h): Remove the target before generating.
21804 (grub_emu_init.c): Likewise.
21806 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
21808 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
21810 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
21811 for the target-specific tests. Make sure that we also have the
21812 up-to-date target variables for those tests.
21814 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
21816 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
21817 (PModule::rule): Likewise.
21819 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
21821 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
21822 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
21823 target-specific flags should be prefixed.
21824 (PModule::rule): Likewise.
21826 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
21828 * configure.ac (CMP): Check if cmp is available explicitly.
21830 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
21832 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
21833 (target_cpu): New variable.
21834 (pkglibdir): Use target_cpu instead of host_cpu.
21836 * util/i386/pc/grub-install.in (host_cpu): Removed.
21837 (target_cpu): New variable.
21838 (pkglibdir): Use target_cpu instead of host_cpu.
21840 * util/genmoddep.c: Removed.
21842 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
21843 instead of GRUB_HOST_SIZEOF_VOID_P.
21844 * kern/dl.c: Likewise.
21846 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
21848 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
21849 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
21850 (GRUB_TARGET_SIZEOF_LONG): ... this.
21851 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
21852 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
21853 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
21855 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
21856 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
21857 (GRUB_TARGET_SIZEOF_LONG): ... this.
21858 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
21859 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
21860 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
21862 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
21863 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
21864 (GRUB_TARGET_SIZEOF_LONG): ... this.
21865 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
21866 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
21868 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
21869 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
21870 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
21871 instead of GRUB_HOST_SIZEOF_LONG.
21872 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
21873 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
21874 GRUB_CPU_WORDS_BIGENDIAN.
21875 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
21876 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
21879 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
21880 (genmoddep_SOURCES): Likewise.
21881 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
21882 (genmoddep_SOURCES): Likewise.
21883 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
21884 (genmoddep_SOURCES): Likewise.
21885 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
21887 (genmoddep_SOURCES): Likewise.
21889 * genmoddep.awk: New file.
21891 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
21892 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
21893 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
21894 (PModule::rule): Likewise.
21895 (Program::rule): Likewise.
21896 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
21897 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
21900 * configure.ac: Rewritten intensively to use host and target
21901 instead of build and host, respectively.
21903 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
21904 (host_cpu): Removed.
21905 (target_cpu): New variable.
21906 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
21907 (BUILD_CC): Removed.
21908 (BUILD_CFLAGS): Likewise.
21909 (BUILD_CPPFLAGS): Likewise.
21910 (TARGET_CC): New variable.
21911 (TARGET_CFLAGS): Likewise.
21912 (TARGET_CPPFLAGS): Likewise.
21913 (TARGET_LDFLAGS): Likewise.
21915 (include): Use target_cpu instead of host_cpu.
21916 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
21918 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
21920 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
21922 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
21923 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
21924 field 'false' to 'exec_on_false'.
21925 (grub_script_create_cmdif): Renamed argument names to reflect above
21928 * normal/execute.c (grub_script_execute_cmdif): Likewise.
21930 * normal/script.c (grub_script_create_cmdif): Likewise.
21932 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
21934 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
21936 (grub_hfsplus_btree_recptr): Likewise.
21937 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
21938 FILEBLOCK both to pass a block number and store next block
21940 (grub_hfsplus_read_block): Rewritten heavily to support an extent
21941 overflow file correctly. Specify errors appropriately, because
21942 fshelp expects that GRUB_ERRNO is set when fails. Reuse
21943 grub_hfsplus_btree_recptr to get the pointer to a found key.
21944 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
21947 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
21949 (_linux_mod_SOURCES): New variable.
21950 (_linux_mod_CFLAGS): Likewise.
21951 (_linux_mod_LDFLAGS): Likewise.
21952 (linux_mod_SOURCES): Likewise.
21953 (linux_mod_CFLAGS): Likewise.
21954 (linux_mod_LDFLAGS): Likewise.
21956 * DISTLIST: Added loader/i386/efi/linux.c,
21957 loader/i386/efi/linux_normal.c and
21958 include/grub/i386/efi/loader.h.
21960 * loader/i386/efi/linux.c: New file.
21961 * loader/i386/efi/linux_normal.c: Likewise.
21962 * include/grub/i386/efi/loader.h: Likewise.
21964 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
21966 * commands/blocklist.c: New file.
21968 * DISTLIST: Added commands/blocklist.c.
21970 * term/efi/console.c (grub_console_highlight_color): Use a lighter
21971 color for the background, and a darker color for the foreground.
21972 (grub_console_checkkey): Return READ_KEY.
21973 (grub_console_cls): Set the background to
21974 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
21976 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
21978 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
21979 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
21981 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
21984 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
21985 BG. The spec is wrong again.
21987 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
21989 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
21991 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
21992 commands/blocklist.c.
21993 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21995 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
21996 (blocklist_mod_SOURCES): New variable.
21997 (blocklist_mod_CFLAGS): Likewise.
21998 (blocklist_mod_LDFLAGS): Likewise.
22000 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
22002 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
22004 (lba_mode): Use %eax more intensively to reduce the code size.
22006 2006-05-20 Marco Gerards <marco@gnu.org>
22008 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
22010 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
22012 (script): Accept leading newlines.
22013 (newlines): New rule to describe 0 or more newlines.
22014 (commands): Accept `command' with trailing newline. Fixed the
22015 order in which arguments were passed to `grub_script_add_cmd'.
22016 Accept commands separated by newlines.
22017 (function): Changed to accept newlines.
22018 (menuentry) Rewritten.
22020 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
22021 front of the list, instead of to the end.
22023 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
22025 * util/i386/pc/grub-install.in (bindir): New variable.
22026 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
22027 Shaver <lbgwjl@gmail.com>.
22029 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
22031 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
22032 grub/machine/linux.h
22033 * loader/i386/pc/linux.c: Likewise.
22035 * include/grub/i386/pc/linux.h: Moved to ...
22036 * include/grub/i386/linux.h: ... here.
22038 * include/grub/i386/linux.h (struct linux_kernel_params): New
22041 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
22043 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
22045 (grub_video_vbe_blit_glyph): Likewise.
22046 (grub_video_vbe_blit_bitmap): Likewise.
22047 (grub_video_vbe_blit_render_target): Likewise.
22049 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
22051 * configure.ac (--with-platform): Properly quote the square
22054 2006-05-08 Marco Gerards <marco@gnu.org>
22056 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
22058 (kernel_elf_HEADERS): ...to this. Updated all users.
22059 (grubof_symlist.c): Renamed from this...
22060 (kernel_elf_symlist.c): ...to this. Updated all users.
22061 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22062 (grubof_SOURCES): Renamed from this...
22063 (kernel_elf_SOURCES): ...to this.
22064 (grubof_HEADERS): Renamed from this...
22065 (kernel_elf_HEADERS): ...to this.
22066 (grubof_CFLAGS): Renamed from this...
22067 (kernel_elf_CFLAGS): ...to this.
22068 (grubof_ASFLAGS): Renamed from this...
22069 (kernel_elf_ASFLAGS): ...to this.
22070 (grubof_LDFLAGS): Renamed from this...
22071 (kernel_elf_LDFLAGS): ...to this.
22073 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
22075 (kernel_elf_HEADERS): ...to this. Updated all users.
22076 (grubof_symlist.c): Renamed from this...
22077 (kernel_elf_symlist.c): ...to this. Updated all users.
22078 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
22079 (grubof_SOURCES): Renamed from this...
22080 (kernel_elf_SOURCES): ...to this.
22081 (grubof_HEADERS): Renamed from this...
22082 (kernel_elf_HEADERS): ...to this.
22083 (grubof_CFLAGS): Renamed from this...
22084 (kernel_elf_CFLAGS): ...to this.
22085 (grubof_ASFLAGS): Renamed from this...
22086 (kernel_elf_ASFLAGS): ...to this.
22087 (grubof_LDFLAGS): Renamed from this...
22088 (kernel_elf_LDFLAGS): ...to this.
22090 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
22091 `kernel.elf' instead of `grubof'.
22093 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
22095 Add --with-platform to configure. Use pkglibdir instead of
22096 pkgdatadir. This is reported by Roger Leigh.
22098 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
22099 (host_vendor): Likewise.
22100 (host_os): Likewise.
22101 (pkgdatadir): Likewise.
22102 (platform): New variable.
22103 (pkglibdir): Likewise.
22104 Use PKGLIBDIR instead of PKGDATADIR.
22106 * util/i386/pc/grub-install.in (datadir): Removed.
22107 (host_vendor): Likewise.
22108 (host_os): Likewise.
22109 (pkgdatadir): Likewise.
22110 (platform): New variable.
22111 (pkglibdir): Likewise.
22112 Use PKGLIBDIR instead of PKGDATADIR.
22114 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
22115 instead of GRUB_DATADIR.
22117 * util/i386/pc/grub-mkimage.c (usage): Likewise.
22119 * util/i386/efi/grub-mkimage.c (usage): Likewise.
22122 * configure.ac (--with-platform): New option.
22123 Use PLATFORM instead of HOST_VENDOR to specify a platform.
22125 * Makefile.in: Include a makefile based on PLATFORM instead of
22127 (pkgdatadir): Not appended by the machine type.
22128 (pkglibdir): Appended by the machine type.
22129 (host_vendor): Removed.
22130 (platform): New variable.
22131 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
22132 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
22133 (uninstall): Likewise.
22135 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
22137 Use the environment context in the menu. Remove the commands
22138 "default" and "timeout", and use variables instead.
22140 * normal/menu.c: Include grub/env.h.
22141 (print_entry): Cast TITLE to silence gcc.
22142 (get_timeout): New function.
22143 (set_timeout): Likewise.
22144 (get_entry_number): Likewise.
22145 (run_menu): Use a default entry, a fallback entry and a timeout
22146 in the environment variables "default", "fallback" and
22147 "timeout". Also, tweak the default entry if it is not within the
22148 current menu entries.
22149 (grub_menu_run): Use a fallback entry in the environment variable
22152 * normal/main.c (read_config_file): Do not initialize
22153 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
22155 (grub_normal_execute): Use a data slot to store the menu.
22157 * include/grub/normal.h (struct grub_menu): Removed default_entry,
22158 fallback_entry and timeout.
22159 (struct grub_menu_list): Removed.
22160 (grub_menu_list_t): Likewise.
22161 (struct grub_context): Likewise.
22162 (grub_context_t): Likewise.
22163 (grub_context_get): Likewise.
22164 (grub_context_get_current_menu): Likewise.
22165 (grub_context_push_menu): Likewise.
22166 (grub_context_pop_menu): Likewise.
22167 (grub_default_init): Likewise.
22168 (grub_default_fini): Likewise.
22169 (grub_timeout_init): Likewise.
22170 (grub_timeout_fini): Likewise.
22172 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
22174 (normal_mod_SOURCES): Removed normal/context.c.
22176 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
22177 commands/default.c, commands/timeout.c and normal/context.c.
22178 (normal_mod_SOURCES): Removed normal/context.c.
22180 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
22181 commands/timeout.c and normal/context.c.
22182 (normal_mod_SOURCES): Removed normal/context.c.
22184 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
22185 commands/default.c, commands/timeout.c and normal/context.c.
22186 (normal_mod_SOURCES): Removed normal/context.c.
22188 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
22190 (default_mod_SOURCES): Removed.
22191 (default_mod_CFLAGS): Likewise.
22192 (default_mod_LDFLAGS): Likewise.
22193 (timeout_mod_SOURCES): Removed.
22194 (timeout_mod_CFLAGS): Likewise.
22195 (timeout_mod_LDFLAGS): Likewise.
22197 * DISTLIST: Removed commands/default.c, commands/timeout.c and
22200 * commands/default.c: Removed.
22201 * commands/timeout.c: Likewise.
22202 * normal/context.c: Likewise.
22204 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
22206 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
22208 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
22210 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
22211 "next" to "prev" for readability.
22212 (struct grub_env_sorted_var): New struct.
22213 (grub_env_context): Renamed to ...
22214 (initial_context): ... this.
22215 (grub_env_var_context): Renamed to ...
22216 (current_context): ... this.
22217 (grub_env_find): Look only at CURRENT_CONTEXT.
22218 (grub_env_context_open): Rewritten to copy exported variables from
22220 (grub_env_context_close): Rewritten according to the new
22221 scheme. Also, add an assertion to prevent the initial context from
22223 (grub_env_insert): Removed the code for the sorted list.
22224 (grub_env_remove): Likewise.
22225 (grub_env_export): Simply mark the variable with
22226 GRUB_ENV_VAR_GLOBAL.
22227 (grub_env_set): A cosmetic change for naming consistency.
22228 (grub_env_get): Likewise.
22229 (grub_env_unset): Likewise.
22230 (grub_env_iterate): Rewritten to sort variables within this
22232 (grub_register_variable_hook): Fixed for naming consistency. Call
22233 grub_env_find again, only if NAME is not found at the first time.
22234 (mangle_data_slot_name): New function.
22235 (grub_env_set_data_slot): Likewise.
22236 (grub_env_get_data_slot): Likewise.
22237 (grub_env_unset_data_slot): Likewise.
22239 * include/grub/env.h (grub_env_var_type): New enum.
22240 (GRUB_ENV_VAR_LOCAL): New constant.
22241 (GRUB_ENV_VAR_GLOBAL): Likewise.
22242 (GRUB_ENV_VAR_DATA): Likewise.
22243 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
22245 (grub_env_set): Replace VAR with NAME for consistency.
22246 (grub_register_variable_hook): Likewise.
22247 (grub_env_export): Specify the name of the argument.
22248 (grub_env_set_data_slot): New prototype.
22249 (grub_env_get_data_slot): Likewise.
22250 (grub_env_unset_data_slot): Likewise.
22252 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22254 Extend the loader so that GRUB can accept a loader which comes
22255 back to GRUB when a loaded image exits. Also, this change adds
22256 support for a chainloader on EFI.
22258 * term/efi/console.c: Include grub/misc.h.
22259 (grub_console_checkkey): Display a scan code on the top for
22260 debugging. This will be removed once the EFI port gets stable.
22261 Correct the scan code mapping.
22263 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
22264 allocate memory from larger regions, in order to reduce the number
22265 of allocated regions. Otherwise, the MacOSX loader panics.
22266 (filter_memory_map): Avoid less than 1MB for compatibility with
22268 (add_memory_regions): Allocate from the tail of a region, if
22269 possible, to avoid allocating a region near to 1MB, for the MacOSX
22272 * kern/efi/init.c (grub_efi_set_prefix): Specify
22273 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
22275 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
22276 argument IMAGE_HANDLE and specify it to get a loaded image.
22277 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
22278 grub_efi_get_loaded_image.
22279 (grub_efi_get_filename): Divide the length by the size of
22281 (grub_efi_get_device_path): New function.
22282 (grub_efi_print_device_path): Print End Device Path nodes. Divide
22283 the length by the size of grub_efi_char16_t for a file path device
22286 * kern/loader.c (grub_loader_noreturn): New variable.
22287 (grub_loader_set): Accept a new argument NORETURN. Set
22288 GRUB_LOADER_NORETURN to NORETURN.
22289 All callers changed.
22290 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
22293 * include/grub/efi/efi.h (grub_efi_get_device_path): New
22295 (grub_efi_get_loaded_image): Take an argument to specify an image
22298 * include/grub/loader.h (grub_loader_set): Added one more argument
22301 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
22302 instead of grub_efi_open_protocol.
22303 (grub_efidisk_get_device_name): Likewise.
22304 (grub_efidisk_close): Print a newline.
22305 (grub_efidisk_get_device_handle): Fixed to use
22306 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
22307 GRUB_EFI_DEVICE_PATH_TYPE.
22309 * disk/efi/efidisk.c (device_path_guid): Moved to ...
22310 * kern/efi/efi.c (device_path_guid): ... here.
22312 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
22314 (kernel_mod_HEADERS): Added efi/disk.h.
22315 (_chain_mod_SOURCES): New variable.
22316 (_chain_mod_CFLAGS): Likewise.
22317 (_chain_mod_LDFLAGS): Likewise.
22318 (chain_mod_SOURCES): Likewise.
22319 (chain_mod_CFLAGS): Likewise.
22320 (chain_mod_LDFLAGS): Likewise.
22322 * DISTLIST: Added include/grub/efi/chainloader.h,
22323 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
22325 * include/grub/efi/chainloader.h: New file.
22326 * loader/efi/chainloader.c: Likewise.
22327 * loader/efi/chainloader_normal.c: Likewise.
22329 2006-04-30 Marco Gerards <marco@gnu.org>
22331 * commands/configfile.c (grub_cmd_source): New function.
22332 (GRUB_MOD_INIT): Register the commands `source' and `.'.
22333 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
22335 2006-04-30 Marco Gerards <marco@gnu.org>
22337 * normal/execute.c (grub_script_execute_cmd): Change the return
22338 type to `grub_err_t'. Correctly return the error.
22339 (grub_script_execute_cmdline): In case a command line is not a
22340 command or a function, try to interpret it as an assignment.
22342 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
22344 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
22345 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
22346 skip a node whose name is obviously invalid as UTF-16,
22347 i.e. contains a NUL character. Stop the iteration when the last
22348 directory entry is found. Instead of using the return value of
22349 grub_hfsplus_btree_iterate_node, store the value in RET and use
22350 it, because the iterator can be stopped by the last directory
22353 2006-04-30 Marco Gerards <marco@gnu.org>
22355 * include/grub/env.h (grub_env_export): New prototype. Reported
22356 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
22358 2006-04-30 Marco Gerards <marco@gnu.org>
22360 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
22361 size of the extents in a catalog file record.
22363 2006-04-29 Marco Gerards <marco@gnu.org>
22365 * commands/configfile.c (grub_cmd_configfile): Execute the
22366 configfile within its own context.
22368 * include/grub/env.h (grub_env_context_open): New prototype.
22369 (grub_env_context_close): Likewise.
22371 * kern/env.c (grub_env): Removed.
22372 (grub_env_sorted): Likewise.
22373 (grub_env_context): New variable.
22374 (grub_env_var_context): Likewise.
22375 (grub_env_find): Search both the active context and the global
22377 (grub_env_context_open): New function.
22378 (grub_env_context_close): Likewise.
22379 (grub_env_insert): Likewise.
22380 (grub_env_remove): Likewise.
22381 (grub_env_export): Likewise.
22382 (grub_env_set): Changed to use helper functions to avoid code
22384 (grub_env_iterate): Rewritten so both the current context and the
22385 global context are being used.
22387 * normal/command.c (export_command): New function.
22388 (grub_command_init): Register the `export' function.
22390 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
22392 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
22393 explicitly to suppress gcc's warnings.
22394 * fs/fat.c (grub_fat_find_dir): Likewise.
22395 (grub_fat_label): Likewise.
22396 * fs/xfs.c (grub_xfs_read_inode): Likewise.
22397 (grub_xfs_mount): Likewise.
22398 (grub_xfs_label): Likewise.
22399 * fs/affs.c (grub_affs_mount): Likewise.
22400 (grub_affs_label): Likewise.
22401 (grub_affs_iterate_dir): Likewise.
22402 * fs/sfs.c (grub_sfs_mount): Likewise.
22403 (grub_sfs_iterate_dir): Likewise.
22404 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
22405 * fs/hfs.c (grub_hfs_mount): Likewise.
22406 (grub_hfs_cmp_catkeys): Likewise.
22407 (grub_hfs_find_dir): Likewise.
22408 (grub_hfs_dir): Likewise.
22409 (grub_hfs_label): Likewise.
22410 * fs/jfs.c (grub_jfs_mount): Likewise.
22411 (grub_jfs_opendir): Likewise.
22412 (grub_jfs_getent): Likewise.
22413 (grub_jfs_lookup_symlink): Likewise.
22414 (grub_jfs_label): Likewise.
22415 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
22416 (grub_hfsplus_iterate_dir): Likewise.
22417 (grub_hfsplus_btree_iterate_node): Made static.
22419 * util/grub-emu.c (prefix): New variable.
22420 (grub_machine_set_prefix): New function.
22421 (main): Do not set the environment variable "prefix" here. Only
22422 set PREFIX, which is used later by grub_machine_set_prefix.
22424 * include/grub/video.h: Do not include grub/symbol.h.
22425 (grub_video_register): Not exported. This symbol is not defined in
22427 (grub_video_unregister): Likewise.
22428 (grub_video_iterate): Likewise.
22429 (grub_video_setup): Likewise.
22430 (grub_video_restore): Likewise.
22431 (grub_video_get_info): Likewise.
22432 (grub_video_get_blit_format): Likewise.
22433 (grub_video_set_palette): Likewise.
22434 (grub_video_get_palette): Likewise.
22435 (grub_video_set_viewport): Likewise.
22436 (grub_video_get_viewport): Likewise.
22437 (grub_video_map_color): Likewise.
22438 (grub_video_map_rgb): Likewise.
22439 (grub_video_map_rgba): Likewise.
22440 (grub_video_fill_rect): Likewise.
22441 (grub_video_blit_glyph): Likewise.
22442 (grub_video_blit_bitmap): Likewise.
22443 (grub_video_blit_render_target): Likewise.
22444 (grub_video_scroll): Likewise.
22445 (grub_video_swap_buffers): Likewise.
22446 (grub_video_create_render_target): Likewise.
22447 (grub_video_delete_render_target): Likewise.
22448 (grub_video_set_active_render_target): Likewise.
22450 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
22452 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
22454 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
22455 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22456 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22457 instead of $(srcdir)/genkernsyms.sh.
22459 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
22460 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22461 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22462 instead of $(srcdir)/genkernsyms.sh.
22464 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
22465 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22466 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22467 instead of $(srcdir)/genkernsyms.sh.
22469 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
22470 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
22471 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
22472 instead of $(srcdir)/genkernsyms.sh.
22474 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
22477 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
22479 (gensymlist.sh): New target.
22480 (genkernsyms.sh): Likewise.
22482 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
22483 genkernsyms.sh.in and gensymlist.sh.in.
22485 * genkernsyms.sh: Removed.
22486 * gensymlist.sh: Likewise.
22488 * genkernsyms.sh.in: New file.
22489 * gensymlist.sh.in: Likewise.
22491 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
22493 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
22494 clobber "prefix", since we may have already set it manually.
22496 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
22498 * kern/misc.c (abort): New alias for grub_abort.
22500 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
22502 A new machine-specific function "grub_machine_set_prefix" is
22503 defined. This is called after loading modules, so that a prefix
22504 initialization can use modules. Also, this change adds an
22505 intensive debugging feature for the memory manager via the
22506 configure option "--enable-mm-debug".
22508 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
22511 * kern/sparc64/ieee1275/init.c (abort): Removed.
22512 (grub_stop): Likewise.
22513 (grub_exit): New function.
22514 (grub_set_prefix): Renamed to ...
22515 (grub_machine_set_prefix): ... this.
22516 (grub_machine_init): Do not call grub_set_prefix.
22518 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
22519 (grub_machine_set_prefix): ... this.
22520 (grub_machine_init): Do not call grub_set_prefix.
22522 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
22523 (grub_machine_init): Do not set the prefix here.
22525 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
22527 * kern/efi/init.c: Include grub/mm.h.
22528 (grub_efi_set_prefix): New function.
22530 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
22531 (grub_efi_get_filename): New function.
22532 (grub_print_device_path): Renamed to ...
22533 (grub_efi_print_device_path): ... this.
22535 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
22536 [MM_DEBUG] (grub_realloc): Likewise.
22537 [MM_DEBUG] (grub_free): Likewise.
22538 [MM_DEBUG] (grub_memalign): Likewise.
22539 [MM_DEBUG] (grub_mm_debug): New variable.
22540 [MM_DEBUG] (grub_debug_malloc): New function.
22541 [MM_DEBUG] (grub_debug_free): New function.
22542 [MM_DEBUG] (grub_debug_realloc): New function.
22543 [MM_DEBUG] (grub_debug_memalign): New function.
22545 * kern/misc.c (grub_abort): Print a newline to distinguish
22548 * kern/main.c (grub_main): Call grub_machine_set_prefix and
22549 grub_set_root_dev after loading modules. This is necessary when
22550 setting a prefix depends on modules.
22552 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
22553 (grub_efi_print_device_path): ... this.
22554 (grub_efi_get_filename): New prototype.
22555 (grub_efi_set_prefix): Likewise.
22557 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
22559 (grub_efidisk_get_device_handle): New prototype.
22560 (grub_efidisk_get_device_name): Likewise.
22562 * include/grub/mm.h: Include config.h.
22563 (MM_DEBUG): Removed.
22564 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
22565 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
22566 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
22567 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
22568 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
22569 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
22570 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
22571 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
22572 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
22574 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
22576 * disk/efi/efidisk.c: Include grub/partition.h.
22577 (iterate_child_devices): New function.
22578 (add_device): First, compare only last device path nodes, so that
22579 devices are sorted by the types.
22580 (grub_efidisk_get_device_handle): New function.
22581 (grub_efidisk_get_device_name): Likewise.
22583 * configure.ac (--enable-mm-debug): New option to enable the
22584 memory manager debugging feature. This makes the binary much
22585 bigger, so is disabled by default.
22587 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
22589 Use grub_abort instead of grub_stop, and grub_exit must be
22590 define in each architecture now. Also, this change adds support
22593 * util/i386/pc/grub-probefs.c: Include grub/term.h.
22594 (grub_getkey): New function.
22595 (grub_term_get_current): Likewise.
22597 * util/i386/pc/grub-setup.c: Include grub/term.h.
22598 (grub_getkey): New function.
22599 (grub_term_get_current): Likewise.
22601 * util/misc.c (grub_stop): Renamed to ...
22602 (grub_exit): ... this.
22604 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
22605 (grub_exit): ... this.
22606 (grub_machine_init): Use grub_abort instead of abort.
22607 (grub_stop): Removed.
22609 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
22612 * kern/i386/pc/startup.S (grub_exit): New function.
22613 (cold_reboot): New label.
22615 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
22616 (grub_efi_init): Call grub_efidisk_init.
22617 (grub_efi_fini): Call grub_efidisk_fini.
22619 * kern/efi/efi.c: Include grub/mm.h.
22620 (grub_efi_console_control_guid): Renamed to ...
22621 (console_control_guid): ... this.
22622 (grub_efi_loaded_image_guid): Renamed to ...
22623 (loaded_image_guid): ... this.
22624 (grub_efi_locate_handle): New function.
22625 (grub_efi_open_protocol): Likewise.
22626 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
22627 GRUB_EFI_CONSOLE_CONTROL_GUID.
22628 (grub_efi_exit): Removed.
22629 (grub_stop): Likewise.
22630 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
22631 (grub_exit): New function.
22632 (grub_print_device_path): Likewise.
22634 * kern/rescue.c (grub_rescue_cmd_exit): New function.
22635 (grub_enter_rescue_mode): Register "exit".
22637 * kern/misc.c (grub_real_dprintf): A cosmetic change.
22638 (grub_abort): New function.
22640 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
22642 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
22644 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
22646 * include/grub/efi/efi.h (grub_efi_exit): Removed.
22647 (grub_print_device_path): New prototype.
22648 (grub_efi_locate_handle): Likewise.
22649 (grub_efi_open_protocol): Likewise.
22651 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
22652 * disk/efi/efidisk.c: Likewise.
22654 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
22656 * include/grub/efi/console_control.h
22657 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
22659 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
22660 last 8 bytes as an array.
22661 (GRUB_EFI_DISK_IO_GUID): New macro.
22662 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
22663 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
22664 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
22666 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
22667 (struct grub_efi_device_path): Rename the member "sub_type" to
22669 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
22670 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
22671 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
22672 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
22673 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
22674 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
22675 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
22676 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
22677 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
22678 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
22679 (struct grub_efi_pci_device_path): New structure.
22680 (grub_efi_pci_device_path_t): New type.
22681 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
22682 (struct grub_efi_pccard_device_path): New structure.
22683 (grub_efi_pccard_device_path_t): New type.
22684 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
22685 (struct grub_efi_memory_mapped_device_path): New structure.
22686 (grub_efi_memory_mapped_device_path_t): New type.
22687 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
22688 (struct grub_efi_vendor_device_path): New structure.
22689 (grub_efi_vendor_device_path_t): New type.
22690 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
22691 (struct grub_efi_controller_device_path): New structure.
22692 (grub_efi_controller_device_path_t): New type.
22693 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
22694 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
22695 (struct grub_efi_acpi_device_path): New structure.
22696 (grub_efi_acpi_device_path_t): New type.
22697 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
22698 (struct grub_efi_expanded_acpi_device_path): New structure.
22699 (grub_efi_expanded_acpi_device_path_t): New type.
22700 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
22701 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
22702 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
22703 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
22704 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
22705 (struct grub_efi_atapi_device_path): New structure.
22706 (grub_efi_atapi_device_path_t): New type.
22707 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
22708 (struct grub_efi_fibre_channel_device_path): New structure.
22709 (grub_efi_fibre_channel_device_path_t): New type.
22710 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
22711 (struct grub_efi_1394_device_path): New structure.
22712 (grub_efi_1394_device_path_t): New type.
22713 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
22714 (struct grub_efi_usb_device_path): New structure.
22715 (grub_efi_usb_device_path_t): New type.
22716 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
22717 (struct grub_efi_usb_class_device_path): New structure.
22718 (grub_efi_usb_class_device_path_t): New type.
22719 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
22720 (struct grub_efi_i2o_device_path): New structure.
22721 (grub_efi_i2o_device_path_t): New type.
22722 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
22723 (struct grub_efi_mac_address_device_path): New structure.
22724 (grub_efi_mac_address_device_path_t): New type.
22725 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
22726 (struct grub_efi_ipv4_device_path): New structure.
22727 (grub_efi_ipv4_device_path_t): New type.
22728 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
22729 (struct grub_efi_ipv6_device_path): New structure.
22730 (grub_efi_ipv6_device_path_t): New type.
22731 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
22732 (struct grub_efi_infiniband_device_path): New structure.
22733 (grub_efi_infiniband_device_path_t): New type.
22734 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
22735 (struct grub_efi_uart_device_path): New structure.
22736 (grub_efi_uart_device_path_t): New type.
22737 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
22738 (struct grub_efi_vendor_messaging_device_path): New structure.
22739 (grub_efi_vendor_messaging_device_path_t): New type.
22740 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
22741 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
22742 (struct grub_efi_hard_drive_device_path): New structure.
22743 (grub_efi_hard_drive_device_path_t): New type.
22744 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
22745 (struct grub_efi_cdrom_device_path): New structure.
22746 (grub_efi_cdrom_device_path_t): New type.
22747 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
22748 (struct grub_efi_vendor_media_device_path): New structure.
22749 (grub_efi_vendor_media_device_path_t): New type.
22750 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
22751 (struct grub_efi_file_path_device_path): New structure.
22752 (grub_efi_file_path_device_path_t): New type.
22753 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
22754 (struct grub_efi_protocol_device_path): New structure.
22755 (grub_efi_protocol_device_path_t): New type.
22756 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
22757 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
22758 (struct grub_efi_bios_device_path): New structure.
22759 (grub_efi_bios_device_path_t): New type.
22760 (struct grub_efi_disk_io): New structure.
22761 (grub_efi_disk_io_t): New type.
22762 (struct grub_efi_block_io_media): New structure.
22763 (grub_efi_block_io_media_t): New type.
22764 (struct grub_efi_block_io): New structure.
22765 (grub_efi_block_io_t): New type.
22767 * include/grub/misc.h (grub_stop): Removed.
22768 (grub_exit): New prototype.
22769 (grub_abort): Likewise.
22771 * include/grub/disk.h (enum grub_disk_dev_id): Added
22772 GRUB_DISK_DEVICE_EFIDISK_ID.
22774 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
22775 disk/efi/efidisk.c.
22776 (kernel_syms.lst): Remove the target if an error occurs.
22778 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
22780 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
22781 as it was simply too buggy.
22783 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
22785 * kern/misc.c (grub_lltoa): New function.
22786 (grub_vsprintf): Added support for the long long suffix,
22789 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
22791 * Makefile.in (LDFLAGS): Add variable.
22792 (LD): Remove variable.
22793 * configure.ac: Add -m32 to LDFLAGS.
22794 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
22795 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
22796 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
22797 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
22798 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
22800 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
22801 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
22802 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
22804 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
22806 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
22807 length for unknown glyph.
22809 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
22811 Add support for pre-loaded modules into the EFI port.
22813 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
22814 completely. Accept one more argument DIR. The caller has changed.
22816 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
22818 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
22819 (grub_efi_loaded_image_guid): New variable.
22820 (grub_efi_get_loaded_image): New function.
22821 (grub_arch_modules_addr): Likewise.
22823 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
22826 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
22827 (struct grub_efi_loaded_image): New structure.
22828 (grub_efi_loaded_image_t): New type.
22830 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
22832 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
22833 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
22834 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
22836 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
22838 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
22840 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
22842 * DISTLIST: Added include/grub/efi/console.h,
22843 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
22844 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
22846 * include/grub/efi/console.h: New file.
22847 * include/grub/efi/time.h: Likewise.
22848 * include/grub/i386/efi/kernel.h: Likewise.
22849 * kern/efi/init.c: Likewise.
22850 * kern/efi/mm.c: Likewise.
22851 * term/efi/console.c: Likewise.
22853 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
22854 (grub_stop): Removed.
22855 (grub_get_rtc): Likewise.
22856 (grub_machine_init): Simply call grub_efi_init.
22857 (grub_machine_fini): Call grub_efi_fini.
22859 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
22860 (grub_efi_output_string): Removed.
22861 (grub_efi_stall): New function.
22862 (grub_stop): Likewise.
22863 (grub_get_rtc): Likewise.
22865 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
22866 (grub_efi_stall): New prototype.
22867 (grub_efi_allocate_pages): Likewise.
22868 (grub_efi_free_pages): Likewise.
22869 (grub_efi_get_memory_map): Likewise.
22870 (grub_efi_mm_init): Likewise.
22871 (grub_efi_mm_fini): Likewise.
22872 (grub_efi_init): Likewise.
22873 (grub_efi_fini): Likewise.
22875 * include/grub/i386/efi/time.h: Do not include
22876 grub/symbol.h. Include grub/efi/time.h.
22877 (GRUB_TICKS_PER_SECOND): Removed.
22878 (grub_get_rtc): Likewise.
22880 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
22881 Added padding. The EFI spec is buggy.
22882 (GRUB_EFI_BLACK): New macro.
22883 (GRUB_EFI_BLUE): Likewise.
22884 (GRUB_EFI_GREEN): Likewise.
22885 (GRUB_EFI_CYAN): Likewise.
22886 (GRUB_EFI_RED): Likewise.
22887 (GRUB_EFI_MAGENTA): Likewise.
22888 (GRUB_EFI_BROWN): Likewise.
22889 (GRUB_EFI_LIGHTGRAY): Likewise.
22890 (GRUB_EFI_BRIGHT): Likewise.
22891 (GRUB_EFI_DARKGRAY): Likewise.
22892 (GRUB_EFI_LIGHTBLUE): Likewise.
22893 (GRUB_EFI_LIGHTGREEN): Likewise.
22894 (GRUB_EFI_LIGHTCYAN): Likewise.
22895 (GRUB_EFI_LIGHTRED): Likewise.
22896 (GRUB_EFI_LIGHTMAGENTA): Likewise.
22897 (GRUB_EFI_YELLOW): Likewise.
22898 (GRUB_EFI_WHITE): Likewise.
22899 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
22900 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
22901 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
22902 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
22903 (GRUB_EFI_BACKGROUND_RED): Likewise.
22904 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
22905 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
22906 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
22907 (GRUB_EFI_TEXT_ATTR): Likewise.
22909 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
22910 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
22911 (kernel_mod_HEADERS): Added efi/time.h.
22913 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
22915 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
22916 include/grub/efi/api.h, include/grub/efi/console_control.h,
22917 include/grub/efi/efi.h, include/grub/efi/pe32.h,
22918 include/grub/i386/efi/time.h, kern/efi/efi.c,
22919 kern/i386/efi/init.c, kern/i386/efi/startup.S,
22920 and util/i386/efi/grub-mkimage.c.
22922 * Makefile.in (RMKFILES): Added i386-efi.rmk.
22924 * genmk.rb (PModule#rule): Do not export symbols if
22925 #{prefix}_EXPORTS is set to "no".
22927 * conf/i386-efi.mk: New file.
22928 * conf/i386-efi.rmk: Likewise.
22929 * include/grub/efi/api.h: Likewise.
22930 * include/grub/efi/console_control.h: Likewise.
22931 * include/grub/efi/efi.h: Likewise.
22932 * include/grub/efi/pe32.h: Likewise.
22933 * include/grub/i386/efi/time.h: Likewise.
22934 * kern/efi/efi.c: Likewise.
22935 * kern/i386/efi/init.c: Likewise.
22936 * kern/i386/efi/startup.S: Likewise.
22937 * util/i386/efi/grub-mkimage.c: Likewise.
22939 2006-04-17 Marco Gerards <marco@gnu.org>
22941 * include/grub/script.h: Include <grub/parser.h> and
22942 "grub_script.tab.h".
22943 (struct grub_lexer_param): New struct.
22944 (struct grub_parser_param): Likewise.
22945 (grub_script_create_arglist): Pass the state in an argument.
22946 (grub_script_add_arglist): Likewise.
22947 (grub_script_create_cmdline): Likewise.
22948 (grub_script_create_cmdblock): Likewise.
22949 (grub_script_create_cmdif): Likewise.
22950 (grub_script_create_cmdmenu): Likewise.
22951 (grub_script_add_cmd): Likewise.
22952 (grub_script_arg_add): Likewise.
22953 (grub_script_lexer_ref): Likewise.
22954 (grub_script_lexer_deref): Likewise.
22955 (grub_script_lexer_record_start): Likewise.
22956 (grub_script_lexer_record_stop): Likewise.
22957 (grub_script_mem_record): Likewise.
22958 (grub_script_mem_record_stop): Likewise.
22959 (grub_script_malloc): Likewise.
22960 (grub_script_yylex): Likewise.
22961 (grub_script_yyparse): Likewise.
22962 (grub_script_yyerror): Likewise.
22963 (grub_script_yylex): Likewise.
22964 (grub_script_lexer_init): Return the state.
22966 * normal/lexer.c (grub_script_lexer_state): Removed variable.
22967 (grub_script_lexer_done): Likewise.
22968 (grub_script_lexer_getline): Likewise.
22969 (grub_script_lexer_refs): Likewise.
22970 (script): Likewise.
22971 (newscript): Likewise.
22972 (record): Likewise.
22973 (recording): Likewise.
22974 (recordpos): Likewise.
22975 (recordlen): Likewise.
22976 (grub_script_lexer_init): Return the state instead of setting
22978 (grub_script_lexer_ref): Use the newly added argument for state
22979 instead of globals.
22980 (grub_script_lexer_deref): Likewise.
22981 (grub_script_lexer_record_start): Likewise.
22982 (grub_script_lexer_record_stop): Likewise.
22983 (recordchar): Likewise.
22984 (nextchar): Likewise.
22985 (grub_script_yylex2): Likewise.
22986 (grub_script_yylex): Likewise.
22987 (grub_script_yyerror): Likewise.
22989 * normal/parser.y (func_mem): Removed variable.
22990 (menu_entry): Likewise.
22992 (%lex-param): New parser option.
22993 (%parse-param): Likewise.
22994 (script): Always return the AST.
22995 (argument): Pass the state around.
22996 (arguments): Likewise.
22997 (grubcmd): Likewise.
22998 (commands): Likewise.
22999 (function): Likewise.
23000 (menuentry): Likewise.
23001 (if_statement): Likewise.
23004 * normal/script.c (grub_script_memused): Removed variable.
23005 (grub_script_parsed): Likewise.
23006 (grub_script_malloc): Added a state argument. Use that instead of
23008 (grub_script_mem_record): Likewise.
23009 (grub_script_mem_record_stop): Likewise.
23010 (grub_script_arg_add): Likewise.
23011 (grub_script_add_arglist): Likewise.
23012 (grub_script_create_cmdline): Likewise.
23013 (grub_script_create_cmdif): Likewise.
23014 (grub_script_create_cmdmenu): Likewise.
23015 (grub_script_add_cmd): Likewise.
23016 (grub_script_parse): Setup the state before calling the parser.
23018 2006-04-16 Marco Gerards <marco@gnu.org>
23020 * normal/command.c (grub_command_init): Remove the title command.
23022 * normal/lexer.c (grub_script_yylex): Renamed from this...
23023 (grub_script_yylex2): ... to this.
23024 (grub_script_yylex): New function. Temporary
23025 introduced to filter some tokens.
23026 (grub_script_yyerror): Print a newline.
23028 * normal/main.c (read_config_file): Output information about the
23029 lines that contain errors. Wait for a key after all lines have
23030 been processed. Don't return an empty menu.
23032 * normal/parser.y (func_mem): Don't initialize.
23033 (menu_entry): Likewise.
23034 (err): New variable.
23035 (script): Don't return anything when an error was encountered.
23036 (ws, returns): Removed rules.
23037 (argument): Disabled concatenated variable support.
23038 (arguments): Remove explicit separators.
23039 (grubcmd): Likewise.
23040 (function): Likewise.
23041 (menuentry): Likewise.
23043 (commands): Likewise. Add error handling.
23045 * normal/script.c (grub_script_create_cmdline): If
23046 `grub_script_parsed' is 0, assume the parser encountered an error.
23048 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
23050 * configure.ac: Add support for EFI. Fix the typo
23051 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
23053 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23055 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
23056 foreign multibyte characters should be shown correctly.
23058 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
23060 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
23062 (read_config_file): Made it to close file before returning.
23064 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
23066 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
23067 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
23068 video/i386/pc/vbefill.c.
23070 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
23071 video/i386/pc/vbefill.c.
23073 * include/grub/video.h (grub_video_blit_format): New enum.
23074 (grub_video_mode_info): Added new member blit_format.
23075 (grub_video_get_blit_format): New function prototype.
23077 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
23078 function prototype.
23079 (grub_video_vbe_map_rgb): Likewise.
23080 (grub_video_vbe_unmap_color): Likewise.
23082 * include/grub/i386/pc/vbeblit.h: New file.
23084 * include/grub/i386/pc/vbefill.h: New file.
23086 * video/video.c (grub_video_get_blit_format): New function.
23087 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
23088 (grub_video_vbe_map_rgb): Likewise.
23089 (grub_video_vbe_unmap_color): Likewise.
23091 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
23093 (grub_video_vbe_blit_render_target): Changed to use more optimized
23095 (grub_video_vbe_setup): Added detection for optimized settings.
23096 (grub_video_vbe_create_render_target): Likewise.
23098 * video/i386/pc/vbeblit.c: New file.
23100 * video/i386/pc/vbefill.c: New file.
23102 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
23104 * font/manager.c (grub_font_get_glyph): Removed font fixup from
23107 * util/unifont2pff.rb: ... and moved it to here. Improved argument
23108 parsing to support both hex and dec ranges. If filename was missing
23109 show usage information.
23111 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
23113 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
23114 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
23116 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
23117 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
23118 (video_mod_SOURCES): Added.
23119 (video_mod_CFLAGS): Likewise.
23120 (video_mod_LDFLAGS): Likewise.
23121 (gfxterm_mod_SOURCES): Likewise.
23122 (gfxterm_mod_CFLAGS): Likewise.
23123 (gfxterm_mod_LDFLAGS): Likewise.
23124 (videotest_mod_SOURCES): Likewise.
23125 (videotest_mod_CFLAGS): Likewise.
23126 (videotest_mod_LDFLAGS): Likewise.
23127 (vesafb_mod_SOURCES): Removed.
23128 (vesafb_mod_CFLAGS): Likewise.
23129 (vesafb_mod_LDFLAGS): Likewise.
23130 (vga_mod_SOURCES): Likewise.
23131 (vga_mod_CFLAGS): Likewise.
23132 (vga_mod_LDFLAGS): Likewise.
23134 * commands/videotest.c: New file.
23136 * font/manager.c (fill_with_default_glyph): Modified to use
23138 (grub_font_get_glyph): Likewise.
23139 (fontmanager): Renamed from this...
23140 (font_manager): ... to this.
23142 * include/grub/font.h (grub_font_glyph): Added new structure.
23143 (grub_font_get_glyph): Modified to use grub_font_glyph.
23145 * include/grub/misc.h (grub_abs): Added as inline function.
23147 * include/grub/video.h: New file.
23149 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
23150 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
23151 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
23152 (grub_vbe_get_controller_info): Renamed from this...
23153 (grub_vbe_bios_get_controller_info): ... to this.
23154 (grub_vbe_get_mode_info): Renamed from this...
23155 (grub_vbe_bios_get_mode_info): ... to this.
23156 (grub_vbe_set_mode): Renamed from this...
23157 (grub_vbe_bios_set_mode): ... to this.
23158 (grub_vbe_get_mode): Renamed from this...
23159 (grub_vbe_bios_get_mode): ... to this.
23160 (grub_vbe_set_memory_window): Renamed from this...
23161 (grub_vbe_bios_set_memory_window): ... to this.
23162 (grub_vbe_get_memory_window): Renamed from this...
23163 (grub_vbe_bios_get_memory_window): ... to this.
23164 (grub_vbe_set_scanline_length): Renamed from this...
23165 (grub_vbe_set_scanline_length): ... to this.
23166 (grub_vbe_get_scanline_length): Renamed from this...
23167 (grub_vbe_bios_get_scanline_length): ... to this.
23168 (grub_vbe_set_display_start): Renamed from this...
23169 (grub_vbe_bios_set_display_start): ... to this.
23170 (grub_vbe_get_display_start): Renamed from this...
23171 (grub_vbe_bios_get_display_start): ... to this.
23172 (grub_vbe_set_palette_data): Renamed from this...
23173 (grub_vbe_bios_set_palette_data): ... to this.
23174 (grub_vbe_set_pixel_rgb): Removed.
23175 (grub_vbe_set_pixel_index): Likewise.
23177 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
23179 (grub_vbe_bios_get_controller_info): ... to this.
23180 (grub_vbe_get_mode_info): Renamed from this...
23181 (grub_vbe_bios_get_mode_info): ... to this.
23182 (grub_vbe_set_mode): Renamed from this...
23183 (grub_vbe_bios_set_mode): ... to this.
23184 (grub_vbe_get_mode): Renamed from this...
23185 (grub_vbe_bios_get_mode): ... to this.
23186 (grub_vbe_set_memory_window): Renamed from this...
23187 (grub_vbe_bios_set_memory_window): ... to this.
23188 (grub_vbe_get_memory_window): Renamed from this...
23189 (grub_vbe_bios_get_memory_window): ... to this.
23190 (grub_vbe_set_scanline_length): Renamed from this...
23191 (grub_vbe_set_scanline_length): ... to this.
23192 (grub_vbe_get_scanline_length): Renamed from this...
23193 (grub_vbe_bios_get_scanline_length): ... to this.
23194 (grub_vbe_set_display_start): Renamed from this...
23195 (grub_vbe_bios_set_display_start): ... to this.
23196 (grub_vbe_get_display_start): Renamed from this...
23197 (grub_vbe_bios_get_display_start): ... to this.
23198 (grub_vbe_set_palette_data): Renamed from this...
23199 (grub_vbe_bios_set_palette_data): ... to this.
23200 (grub_vbe_bios_get_controller_info): Fixed problem with registers
23201 getting corrupted after calling it. Added more pushes and pops.
23202 (grub_vbe_bios_set_mode): Likewise.
23203 (grub_vbe_bios_get_mode): Likewise.
23204 (grub_vbe_bios_get_memory_window): Likewise.
23205 (grub_vbe_bios_set_scanline_length): Likewise.
23206 (grub_vbe_bios_get_scanline_length): Likewise.
23207 (grub_vbe_bios_get_display_start): Likewise.
23208 (grub_vbe_bios_set_palette_data): Likewise.
23210 * normal/cmdline.c (cl_set_pos): Refresh the screen.
23211 (cl_insert): Likewise.
23212 (cl_delete): Likewise.
23214 * term/gfxterm.c: New file.
23216 * term/i386/pc/vesafb.c: Removed file.
23218 * video/video.c: New file.
23220 * video/i386/pc/vbe.c (real2pm): Added new function.
23221 (grub_video_vbe_draw_pixel): Likewise.
23222 (grub_video_vbe_get_video_ptr): Likewise.
23223 (grub_video_vbe_get_pixel): Likewise
23224 (grub_video_vbe_init): Likewise.
23225 (grub_video_vbe_fini): Likewise.
23226 (grub_video_vbe_setup): Likewise.
23227 (grub_video_vbe_get_info): Likewise.
23228 (grub_video_vbe_set_palette): Likewise.
23229 (grub_video_vbe_get_palette): Likewise.
23230 (grub_video_vbe_set_viewport): Likewise.
23231 (grub_video_vbe_get_viewport): Likewise.
23232 (grub_video_vbe_map_color): Likewise.
23233 (grub_video_vbe_map_rgb): Likewise.
23234 (grub_video_vbe_map_rgba): Likewise.
23235 (grub_video_vbe_unmap_color): Likewise.
23236 (grub_video_vbe_fill_rect): Likewise.
23237 (grub_video_vbe_blit_glyph): Likewise.
23238 (grub_video_vbe_blit_bitmap): Likewise.
23239 (grub_video_vbe_blit_render_target): Likewise.
23240 (grub_video_vbe_scroll): Likewise.
23241 (grub_video_vbe_swap_buffers): Likewise.
23242 (grub_video_vbe_create_render_target): Likewise.
23243 (grub_video_vbe_delete_render_target): Likewise.
23244 (grub_video_vbe_set_active_render_target): Likewise.
23245 (grub_vbe_set_pixel_rgb): Remove function.
23246 (grub_vbe_set_pixel_index): Likewise.
23247 (index_color_mode): Remove static variable.
23248 (active_mode): Likewise.
23249 (framebuffer): Likewise.
23250 (bytes_per_scan_line): Likewise.
23251 (grub_video_vbe_adapter): Added new static variable.
23252 (framebuffer): Likewise.
23253 (render_target): Likewise.
23254 (initial_mode): Likewise.
23255 (mode_in_use): Likewise.
23256 (mode_list): Likewise.
23258 2006-03-10 Marco Gerards <marco@gnu.org>
23260 * configure.ac (AC_INIT): Bumped to 1.93.
23262 * DISTLIST: Added `include/grub/hfs.h'.
23264 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
23266 * boot/i386/pc/boot.S (general_error): Before looping, try INT
23267 18H, which might help the BIOS falling back to next boot media.
23269 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
23271 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
23272 Poe Chen <poe.poechen@gmail.com>.
23274 2006-01-17 Marco Gerards <marco@gnu.org>
23276 * include/grub/normal.h: Include <grub/script.h>.
23277 (grub_command_list): Removed struct.
23278 (grub_command_list_t): Removed type.
23279 (grub_menu_entry): Remove members `num' and `command_list'. Add
23280 members `commands' and `sourcecode'.
23281 * include/grub/script.h: Add inclusion guards.
23282 (grub_script_cmd_menuentry): New struct.
23283 (grub_script_execute_menuentry): New prototype.
23284 (grub_script_lexer_record_start): Likewise.
23285 (grub_script_lexer_record_stop): Likewise.
23286 * normal/execute.c (grub_script_execute_menuentry): New function.
23287 * normal/lexer.c (record, recording, recordpos, recordlen): New
23289 (grub_script_lexer_record_start): New function.
23290 (grub_script_lexer_record_stop): Likewise.
23291 (recordchar): Likewise.
23292 (nextchar): Likewise.
23293 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
23294 2048 as the buffer size. Add the tokens `menuentry' and `@'.
23295 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
23296 (current_menu): New variable.
23297 (free_menu): Mainly rewritten.
23298 (grub_normal_menu_addentry): New function.
23299 (read_config_file): Rewritten.
23300 * normal/menu.c (run_menu_entry): Mainly rewritten.
23301 * normal/menu_entry.c (make_screen): Rewritten the code to insert
23303 (run): Mainly rewritten.
23304 * normal/parser.y (menu_entry): New variable.
23305 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
23306 (menuentry): New rule.
23307 (command): Add `menuentry'.
23308 (if_statement): Allow additional returns before `fi'.
23309 * normal/script.c (grub_script_create_cmdmenu): New function.
23311 2006-01-03 Marco Gerards <marco@gnu.org>
23313 * INSTALL: GNU Bison is required.
23314 * configure.ac: Rewritten the test to detect Bison.
23315 * Makefile.in (YACC): New variable. Reported by Xun Sun
23316 <xun.sun.cn@gmail.com>.
23318 2006-01-03 Marco Gerards <marco@gnu.org>
23320 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
23321 the HFS+ filesystem to filesystem blocks.
23322 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
23323 GCC warning is silenced.
23325 2006-01-03 Marco Gerards <marco@gnu.org>
23327 * partmap/apple.c (apple_partition_map_iterate): Convert the data
23328 read from disk from big endian to host byte order.
23330 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
23332 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
23334 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
23335 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
23336 embedded HFS+ filesystem.
23337 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
23338 (grub_hfs_sblock): Move from here...
23339 * include/grub/hfs.h: To here... New file.
23340 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
23342 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
23344 (grub_hfsplus_volheader): Change type of member `magic' to
23346 (grub_hfsplus_data): Add new member `embedded_offset'.
23347 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
23349 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
23350 Calculate the offset.
23352 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23354 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
23356 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
23358 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23360 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
23361 ENV->NAME is NULL after allocating ENV->VALUE.
23363 2005-12-25 Marco Gerards <marco@gnu.org>
23365 * kern/env.c (grub_env_set): Rewritten the error handling code.
23367 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23369 * geninit.sh: Made more robust, and more portable.
23371 2005-12-25 Marco Gerards <marco@gnu.org>
23373 Add support for Apple HFS+ filesystems.
23375 * fs/hfsplus.c: New file.
23377 * DISTLIST: Added `fs/hfsplus.c'.
23379 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
23380 (hfsplus_mod_SOURCES): New variable.
23381 (hfsplus_mod_CFLAGS): Likewise.
23382 (hfsplus_mod_LDFLAGS): Likewise.
23383 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
23384 (grub_setup_SOURCES): Likewise.
23385 (grub_mkdevicemap_SOURCES): Likewise.
23386 (grub_emu_SOURCES): Likewise.
23387 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23389 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
23391 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
23393 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
23395 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
23396 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
23397 include/grub/parser.h, include/grub/script.h, kern/parser.c,
23398 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
23399 normal/lexer.c, normal/parser.y, normal/script.c, and
23401 Removed kern/sparc64/cache.c.
23403 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
23404 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
23407 * configure.ac (AC_INIT): Bumped to 1.92.
23409 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
23411 * kern/err.c (grub_error_push): Added new function to support error
23413 (grub_error_pop): Likewise.
23414 (grub_error_stack_items): New local variable to support error stacks.
23415 (grub_error_stack_pos): Likewise.
23416 (grub_error_stack_assert): Likewise.
23417 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
23419 (grub_print_error): Added support to print errors from error stack.
23421 * include/grub/err.h (grub_error_push): Added function prototype.
23422 (grub_error_pop): Likewise.
23424 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
23426 * configure.ac: Accept `powerpc64' as host_cpu.
23427 (amd64): Rename to `biarch32'.
23429 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
23430 non-cacheline-aligned addresses.
23432 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
23433 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
23434 if `size' is non-zero.
23436 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
23438 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
23439 and `cd' to make sure the filename is not prefixed with a
23441 (pkgdata_MODULES): Add `gpt.mod'.
23442 (gpt_mod_SOURCES): New variable.
23443 (gpt_mod_CFLAGS): Likewise.
23444 (gpt_mod_LDFLAGS): Likewise.
23446 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
23448 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
23451 * partmap/gpt.c: New file.
23453 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
23454 GPT partition map is detected.
23456 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
23458 * commands/i386/pc/play.c: New file.
23459 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
23460 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
23463 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
23465 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
23466 ((unused))' to silence gcc warning.
23468 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
23470 * configure.ac: Correct `AC_PROG_YACC' test.
23472 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23474 * util/powerpc/ieee1275/grub-install.in: Run the mount point
23475 check before installing files.
23477 2005-11-22 Mike Small <smallm@panix.com>
23479 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
23480 number regex so multidigit numbers are recognized correctly.
23482 2005-11-22 Mike Small <smallm@panix.com>
23484 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
23485 debugging message before attempting to claim memory.
23486 (grub_rescue_cmd_initrd): Add a claim debugging message and try
23487 multiple addresses in case of failure.
23489 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23491 * term/tparm.c (get_space): Remove empty `if' statement.
23493 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
23495 * kern/parser.c (check_varstate): Rename `state' to 's'.
23497 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23499 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
23500 variable definitions to the beginning of each function. Sort stack
23502 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
23503 `buf' argument to `char *'.
23505 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
23507 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
23508 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
23509 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
23510 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
23511 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
23512 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
23513 configfile.mod, search.mod, gzio.mod and test.mod.
23514 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
23515 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
23516 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
23517 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
23518 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
23519 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
23520 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
23521 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
23522 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
23523 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
23524 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23525 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23526 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
23527 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
23528 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
23529 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
23530 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23531 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
23532 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
23533 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
23534 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
23535 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
23536 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
23538 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
23540 (pkgdata_MODULES): Add test.mod.
23542 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23544 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
23545 appending to variables with "+=".
23546 (PModule): Use full pathname to generate *.lst filenames.
23548 * Makefile.in: Fixed list rules moved from genmk.rb.
23549 (.DELETE_ON_ERROR): New special target.
23550 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
23552 * conf/i386-pc.rmk: Include conf/common.mk.
23553 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
23554 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
23555 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
23556 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
23557 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
23558 configfile.mod, search.mod, gzio.mod and test.mod.
23559 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
23560 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
23561 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
23562 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
23563 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
23564 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
23565 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
23566 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
23567 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
23568 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
23569 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23570 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23571 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
23572 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
23573 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
23574 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
23575 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
23576 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
23577 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
23578 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
23579 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
23580 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
23581 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
23583 * conf/common.rmk: ... to here. New file.
23585 * conf/common.mk: New file.
23587 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
23589 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
23590 (grub_script.tab.c): ... here.
23592 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
23593 (grub_script.tab.c): ... here.
23595 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
23596 (grub_script.tab.c): ... here.
23598 * normal/command.c (grub_command_find): Fixed a memory leak of
23599 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
23601 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23603 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
23604 "@" which marks the start of a comment on ARM.
23605 (VARIABLE): Likewise.
23607 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23609 Add support for Linux/ADFS partition tables.
23611 * partmap/acorn.c: New file.
23613 * include/grub/acorn_filecore.h: Likewise.
23615 * DISTLIST: Added `partmap/acorn.c' and
23616 `include/grub/acorn_filecore.h'.
23618 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23620 (pkgdata_MODULES): Add `acorn.mod'.
23621 (acorn_mod_SOURCES): New variable.
23622 (acorn_mod_CFLAGS): Likewise.
23624 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
23626 (pkgdata_MODULES): Add `acorn.mod'.
23627 (acorn_mod_SOURCES): New variable.
23628 (acorn_mod_CFLAGS): Likewise.
23630 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
23631 (pkgdata_MODULES): Add `acorn.mod'.
23632 (acorn_mod_SOURCES): New variable.
23633 (acorn_mod_CFLAGS): Likewise.
23634 (acorn_mod_LDFLAGS): Likewise.
23636 * include/types.h (grub_disk_addr_t): New typedef.
23638 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
23640 * geninit.sh: New file.
23642 * geninitheader.sh: Likewise.
23644 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
23645 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
23646 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
23647 * commands/configfile.c (grub_configfile_init)
23648 (grub_configfile_fini): Likewise.
23649 * commands/default.c (grub_default_init, grub_default_fini):
23651 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
23652 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
23653 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
23654 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
23656 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
23657 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
23659 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
23660 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
23662 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
23664 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
23666 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
23667 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
23668 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
23669 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
23670 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
23671 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
23672 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
23673 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
23674 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
23675 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
23676 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
23677 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
23678 * partmap/amiga.c (grub_amiga_partition_map_init)
23679 (grub_amiga_partition_map_fini): Likewise.
23680 * partmap/apple.c (grub_apple_partition_map_init)
23681 (grub_apple_partition_map_fini): Likewise.
23682 * partmap/pc.c (grub_pc_partition_map_init)
23683 (grub_pc_partition_map_fini): Likewise.
23684 * partmap/sun.c (grub_sun_partition_map_init,
23685 grub_sun_partition_map_fini): Likewise.
23686 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
23689 * util/grub-emu.c: Include <grub_modules_init.h>.
23690 (main): Don't initialize and de-initialize any modules directly,
23691 use `grub_init_all' and `grub_fini_all' instead.
23693 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
23694 `grub_vesafb_mod_init'.
23695 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
23697 * term/i386/pc/vga.c (grub_vga_init): Renamed to
23698 `grub_vga_mod_init'. Updated all users.
23699 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
23701 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
23702 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
23705 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
23706 Generate a function to initialize the module in utilities.
23707 Updated all callers.
23708 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
23709 initialize the module in utilities. Updated all callers.
23711 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
23713 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
23714 escape sequence and a literal ^L to clear the screen.
23716 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
23717 when returning from Open Firmware.
23719 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
23721 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
23722 (grub_ofconsole_height): Likewise.
23723 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
23724 manually insert a '\n'.
23725 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
23726 `grub_ofconsole_height'. Return early if these are already set.
23728 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
23730 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
23731 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
23732 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
23733 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
23734 and `normal/script.c'.
23735 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
23736 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
23737 (test_mod_SOURCES): New variable.
23738 (test_mod_CFLAGS): Likewise.
23739 (test_mod_LDFLAGS): Likewise.
23740 (pkgdata_MODULES): Add `test.mod'.
23741 (grub_script.tab.c): New rule.
23742 (grub_script.tab.h): Likewise.
23744 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
23746 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
23747 `commands/test.c', `normal/execute.c', `normal/lexer.c',
23748 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
23749 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
23750 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
23751 (test_mod_SOURCES): New variable.
23752 (test_mod_CFLAGS): Likewise.
23753 (pkgdata_MODULES): Add `test.mod'.
23754 (grub_script.tab.c): New rule.
23755 (grub_script.tab.h): Likewise.
23757 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
23759 Add initial scripting support.
23761 * commands/test.c: New file.
23762 * include/grub/script.h: Likewise.
23763 * normal/execute.c: Likewise.
23764 * normal/function.c: Likewise.
23765 * normal/lexer.c: Likewise.
23766 * normal/parser.y: Likewise.
23767 * normal/script.c: Likewise.
23769 * configure.ac: Add `AC_PROG_YACC' test.
23771 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
23772 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
23773 `normal/function.c' and `normal/script.c'.
23774 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
23775 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
23776 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
23778 (pkgdata_MODULES): Add `test.mod'.
23779 (grub_script.tab.c): New rule.
23780 (grub_script.tab.h): Likewise.
23782 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
23784 * include/grub/normal.h (grub_test_init): New prototype.
23785 (grub_test_fini): Likewise.
23787 * normal/command.c: Include <grub/script.h>.
23788 (grub_command_execute): Rewritten.
23790 * util/grub-emu.c (main): Call `grub_test_init' and
23793 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
23795 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
23797 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
23798 there are no pending characters.
23800 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
23802 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
23803 `grub_strndup' to drop device arguments. Replace unnecessary
23804 `grub_strndup' with `grub_strdup'.
23806 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
23808 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
23809 `debug' environment variable has been set.
23811 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
23813 * Makefile.in (install-local): Use $(DATA).
23814 (uninstall): Likewise.
23815 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
23816 (sbin_UTILITIES): ... to here.
23817 (sbin_SCRIPTS): New variable.
23818 (grub_install_SOURCES): New variable.
23819 * util/powerpc/ieee1275/grub-install.in: New file.
23820 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
23822 (add_segments): Call `grub_util_get_path'.
23824 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
23826 From Timothy Baldwin:
23827 * commands/ls.c (grub_ls_list_files): Close FILE with
23829 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
23831 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
23833 * include/grub/parser.h: New file.
23835 * kern/parser.c: Likewise.
23837 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
23838 (grub_setup_SOURCES): Likewise.
23839 (grub_probefs_SOURCES): Likewise.
23840 (grub_emu_SOURCES): Likewise.
23841 (kernel_img_HEADERS): Add `parser.h'.
23843 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
23844 (grub_emu_SOURCES): Add `kern/parser.c'.
23845 (grubof_SOURCES): Likewise.
23847 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
23848 (grubof_SOURCES): Add `kern/parser.c'.
23850 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
23852 * kern/misc.c (grub_split_cmdline): Removed function.
23854 * kern/rescue.c: Include <grub/parser.h>.
23855 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
23856 of `grub_split_cmdline'.
23858 * normal/command.c: Include <grub/parser.h>.
23859 (grub_command_execute): Use `grub_parser_split_cmdline' instead
23860 of `grub_split_cmdline'.
23862 * normal/completion.c: Include <grub/parser.h>.
23863 (cmdline_state): New variable.
23864 (iterate_dir): End the filename with a quote depending on the
23865 command line state.
23866 (get_state): new function.
23867 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
23868 split the arguments and determine the current argument. When the
23869 argument string is not quoted, escape all spaces.
23871 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
23873 * normal/sparc64/setjmp.S: New file.
23875 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
23877 * include/grub/sparc64/libgcc.h: New file.
23878 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
23879 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
23880 normal/sparc64/setjmp.c.
23882 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
23884 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
23885 * kern/sparc64/cache.S: New file.
23886 * kern/sparc64/cache.c: Removed.
23887 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
23888 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
23890 (COMMON_LDFLAGS): Add -melf64_sparc.
23891 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
23892 (grubof_SOURCES): Use cache.S instead of cache.c.
23893 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
23894 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
23895 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
23897 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
23898 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
23899 (linux_mod_CFLAGS): Commented out.
23900 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
23901 out because module isn't built.
23902 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
23903 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
23904 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
23905 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
23906 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
23907 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
23908 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
23909 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
23910 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
23911 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
23912 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
23913 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
23914 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
23915 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
23917 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
23919 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
23920 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
23921 longer, because HFS should not be used on PC.
23923 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
23925 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
23926 consistently within the loop.
23928 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
23930 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
23931 directory can not be read.
23933 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
23935 * configure.ac (AC_INIT): Increase the version number to 1.91.
23937 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
23938 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
23939 term/i386/pc/serial.c.
23941 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
23943 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
23944 file size must be permitted.
23946 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
23947 between %ah and %al.
23949 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
23951 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
23953 Call the hook with a NUL-terminated filename.
23954 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
23957 * kern/term.c (cursor_state): New variable.
23958 (grub_term_set_current): Reset the cursor state on a new
23960 (grub_setcursor): Rewritten to use CURSOR_STATE.
23961 (grub_getcursor): New function.
23963 * include/grub/term.h (grub_getcursor): New prototype.
23965 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
23966 integers on ARM. Reported by Timothy Baldwin
23967 <T.E.Baldwin99@members.leeds.ac.uk>.
23969 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
23971 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
23973 (grub_sfs_dir): Likewise.
23975 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
23977 Add support for the SFS filesystem.
23979 * fs/sfs.c: New file.
23981 * DISTLIST: Added `fs/sfs.c'.
23983 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
23984 (grub_probefs_SOURCES): Likewise.
23985 (grub_emu_SOURCES): Likewise.
23986 (pkgdata_MODULES): Add `sfs.mod'.
23987 (sfs_mod_SOURCES): New variable.
23988 (sfs_mod_CFLAGS): Likewise.
23989 (sfs_mod_LDFLAGS): Likewise.
23991 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
23992 (pkgdata_MODULES): Add `sfs.mod'.
23993 (sfs_mod_SOURCES): New variable.
23994 (sfs_mod_CFLAGS): Likewise.
23996 * util/grub-emu.c (main): Call `grub_sfs_init' and
23999 * include/grub/fs.h (grub_sfs_init): New prototype.
24000 (grub_sfs_fini): Likewise.
24002 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
24004 Add support for the AFFS filesystem.
24006 * fs/affs.c: New file.
24008 * DISTLIST: Added `fs/affs.c'.
24010 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
24011 (grub_probefs_SOURCES): Likewise.
24012 (grub_emu_SOURCES): Likewise.
24013 (pkgdata_MODULES): Add `affs.mod'.
24014 (affs_mod_SOURCES): New variable.
24015 (affs_mod_CFLAGS): Likewise.
24016 (affs_mod_LDFLAGS): Likewise.
24018 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
24019 (pkgdata_MODULES): Add `affs.mod'.
24020 (affs_mod_SOURCES): New variable.
24021 (affs_mod_CFLAGS): Likewise.
24023 * util/grub-emu.c (main): Call `grub_affs_init' and
24026 * include/grub/fs.h (grub_affs_init): New prototype.
24027 (grub_affs_fini): Likewise.
24029 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24031 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
24033 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
24035 * configure.ac: Accept `x86_64' as host_cpu. In that case add
24038 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
24041 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
24042 (COMMON_LDFLAGS): New variable.
24043 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
24044 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
24045 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
24046 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
24047 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
24048 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
24049 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
24050 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
24051 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
24052 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
24053 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
24054 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
24055 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
24056 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
24057 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
24059 (normal_mod_ASFLAGS): Add `-m32'.
24061 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
24062 (grub_host_size_t, grub_host_ssize_t): New types.
24063 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
24064 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
24065 `GRUB_HOST_SIZEOF_VOID_P'.
24067 * include/grub/kernel.h (struct grub_module_header): Type of
24068 member offset changed to `grub_host_off_t'. Type of member size
24069 changed to `grub_host_size_t'.
24070 (struct grub_module_info): Type of member offset changed to
24071 `grub_host_off_t'. Type of member size changed to
24072 `grub_host_size_t'.
24074 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
24076 Make GRUB's kernel compliant to Multiboot Specification.
24078 * kern/i386/pc/startup.S (multiboot_header): New label.
24079 (multiboot_entry): Likewise.
24080 (multiboot_trampoline): Likewise.
24082 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24083 Increased to 0x4A0.
24085 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
24086 put parentheses after a question mark.
24087 [!GRUB_UTIL] (my_mod): New variable.
24089 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
24091 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
24093 Adds support for the XFS filesystem. Btrees are not supported
24096 * fs/xfs.c: New file.
24098 * DISTLIST: Added `fs/xfs.c'.
24100 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
24101 (grub_probefs_SOURCES): Likewise.
24102 (grub_emu_SOURCES): Likewise.
24103 (pkgdata_MODULES): Add `xfs.mod'.
24104 (xfs_mod_SOURCES): New variable.
24105 (xfs_mod_CFLAGS): Likewise.
24107 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
24108 (pkgdata_MODULES): Add `xfs.mod'.
24109 (xfs_mod_SOURCES): New variable.
24110 (xfs_mod_CFLAGS): Likewise.
24112 * util/grub-emu.c (main): Call `grub_xfs_init' and
24115 * include/grub/fs.h (grub_xfs_init): New prototype.
24116 (grub_xfs_fini): Likewise.
24119 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
24121 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
24122 color modes, allow greater than 16 colors to be configured as
24125 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
24127 * normal/completion.c (complete_arguments): Add the qualifier
24128 const into OPTIONS.
24130 From Omniflux <omniflux+lists@omniflux.com>:
24131 * include/grub/terminfo.h: New file.
24132 * include/grub/tparm.h: Likewise.
24133 * include/grub/i386/pc/serial.h: Likewise.
24134 * term/terminfo.c: Likewise.
24135 * term/tparm.c: Likewise.
24136 * term/i386/pc/serial.c: Likewise.
24137 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
24139 (terminfo_mod_SOURCES): New variable.
24140 (terminfo_mod_CFLAGS): Likewise.
24141 (serial_mod_SOURCES): Likewise.
24142 (serial_mod_CFLAGS): Likewise.
24144 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
24146 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
24147 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
24148 and kern/powerpc/ieee1275/cmain.c, respectively.
24150 * boot/powerpc/ieee1275/crt0.S: Moved to ...
24151 * kern/powerpc/ieee1275/crt0.S: ... here.
24153 * boot/powerpc/ieee1275/cmain.c: Moved to ...
24154 * kern/powerpc/ieee1275/cmain.c: ... here.
24156 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
24157 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
24158 instead of boot/powerpc/ieee1275/crt0.S and
24159 boot/powerpc/ieee1275/cmain.c, respectively.
24161 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
24162 sectors. It was not used anyway.
24164 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24166 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
24167 `unused parameter' warning.
24169 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
24171 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
24173 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
24176 2005-08-28 Marco Gerards <metgerards@student.han.nl>
24178 * include/grub/normal.h (enum grub_completion_type): Added
24179 `GRUB_COMPLETION_TYPE_ARGUMENT'.
24181 * normal/cmdline.c (print_completion): Handle
24182 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
24183 * normal/menu_entry.c (store_completion): Likewise.
24185 * normal/completion.c (complete_arguments): New function.
24186 (grub_normal_do_completion): Call `complete_arguments' when the
24187 current words start with a dash.
24189 2005-08-27 Marco Gerards <metgerards@student.han.nl>
24191 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
24192 `gzio.mod' instead of `io.mod').
24194 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
24196 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
24197 (DISTDIRS): Added io and video.
24198 Rewrite the search routine to make an output consistently.
24200 * DISTLIST: Added conf/sparc64-ieee1275.mk,
24201 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
24202 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
24203 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
24204 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
24205 util/powerpc/ieee1275/misc.c.
24207 * include/grub/gzio.h: New file.
24208 * io/gzio.c: Likewise.
24210 * kern/file.c (grub_file_close): Call grub_device_close only if
24211 FILE->DEVICE is not NULL.
24213 * include/grub/mm.h [!NULL] (NULL): New macro.
24215 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
24217 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
24218 (pkgdata_MODULES): Added gzio.mod.
24219 (gzio_mod_SOURCES): New variable.
24220 (gzio_mod_CFLAGS): Likewise.
24222 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
24223 (pkgdata_MODULES): Added gzio.mod.
24224 (gzio_mod_SOURCES): New variable.
24225 (gzio_mod_CFLAGS): Likewise.
24227 * commands/cat.c: Include grub/gzio.h.
24228 (grub_cmd_cat): Use grub_gzfile_open instead of
24231 * commands/cmp.c: Include grub/gzio.h.
24232 (grub_cmd_cmp): Use grub_gzfile_open instead of
24235 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
24236 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
24238 (grub_rescue_cmd_module): Likewise.
24240 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24242 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
24243 kern/sparc64/ieee1275/init.c because it contains _start.
24244 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
24246 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
24248 * configure.ac: Add support for sparc64 host with ieee1275
24250 * configure: Generated from configure.ac.
24251 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
24253 (grub_ofdisk_read): Likewise.
24254 (grub_ofdisk_open): Use %p to print pointer values, and cast the
24255 pointers as (void *) to remove a warning.
24256 (grub_ofdisk_close): Likewise.
24257 (grub_ofdisk_read): Likewise.
24258 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
24259 returns, so make it return void to remove a warning.
24260 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
24261 Corresponding prototype change.
24262 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
24263 values, and cast the pointers as (void *) to remove a warning.
24264 (grub_mm_dump): Likewise.
24265 * conf/sparc64-ieee1275.mk: New file.
24266 * conf/sparc64-ieee1275.rmk: Likewise.
24267 * include/grub/sparc64/setjmp.h: Likewise.
24268 * include/grub/sparc64/types.h: Likewise.
24269 * include/grub/sparc64/ieee1275/console.h: Likewise.
24270 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24271 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
24272 * include/grub/sparc64/ieee1275/time.h: Likewise.
24273 * kern/sparc64/cache.c: Likewise.
24274 * kern/sparc64/dl.c: Likewise.
24275 * kern/sparc64/ieee1275/init.c: Likewise.
24276 * kern/sparc64/ieee1275/openfw.c: Likewise.
24278 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
24280 * util/console.c (grub_ncurses_putchar): If C is greater than
24281 0x7f, set C to a question mark.
24282 (grub_ncurses_getcharwidth): New function.
24283 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
24286 * normal/menu.c (print_entry): Made aware of Unicode. First,
24287 convert TITLE to UCS-4, and predict the cursor position by
24290 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
24292 * kern/misc.c (grub_utf16_to_utf8): Likewise.
24294 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24296 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
24297 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24300 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
24301 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
24302 grub_strcpy and grub_strlen. Take it into account that a space
24303 character is inserted as a delimiter.
24305 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24307 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
24308 invalid magic in the error.
24310 * commands/search.c: New file.
24312 * util/grub-emu.c (main): Call grub_search_init and
24315 * kern/rescue.c (grub_rescue_print_disks): Removed.
24316 (grub_rescue_print_devices): New function.
24317 (grub_rescue_cmd_ls): Use grub_device_iterate with
24318 grub_rescue_print_devices instead of grub_disk_dev_iterate with
24319 grub_rescue_print_disks.
24321 * kern/partition.c (grub_partition_iterate): Return the result of
24322 PARTMAP->ITERATE instead of GRUB_ERRNO.
24324 * kern/device.c: Include grub/partition.h.
24325 (grub_device_iterate): New function.
24327 * include/grub/partition.h (grub_partition_iterate): Return int
24328 instead of grub_err_t.
24330 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
24332 [GRUB_UTIL] (grub_search_fini): Likewise.
24334 * include/grub/device.h (grub_device_iterate): New prototype.
24336 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24338 (pkgdata_MODULES): Added search.mod.
24339 (search_mod_SOURCES): New variable.
24340 (search_mod_CFLAGS): Likewise.
24342 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
24343 (pkgdata_MODULES): Added search.mod.
24344 (search_mod_SOURCES): New variable.
24345 (search_mod_CFLAGS): Likewise.
24347 * commands/ls.c (grub_ls_list_disks): Renamed to ...
24348 (grub_ls_list_devices): ... this, and use grub_device_iterate.
24349 All callers changed.
24351 * DISTLIST: Added commands/search.c.
24353 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
24355 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
24357 (grub_getcharwidth): New function.
24359 * kern/misc.c (grub_utf8_to_ucs4): New function.
24361 * include/grub/term.h (struct grub_term): Added a new member
24363 (grub_getcharwidth): New prototype.
24365 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
24367 * term/i386/pc/console.c (map_char): New function. Segregated from
24368 grub_console_putchar.
24369 (grub_console_putchar): Use map_char.
24370 (grub_console_getcharwidth): New function.
24371 (grub_console_term): Specified grub_console_getcharwidth as
24374 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
24375 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
24377 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
24379 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
24380 on grub_strtoul completely.
24381 (write_char): Declare local variables in the beginning of the
24383 (grub_vesafb_getcharwidth): New function.
24384 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
24387 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
24389 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
24390 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
24391 commands/i386/pc/vbetest.c.
24393 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
24394 call grub_vbe_get_controller_info again, because the returned
24395 information is volatile.
24396 (grub_vbe_set_video_mode): Mostly rewritten.
24397 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
24398 grub_vbe_status_t correctly.
24399 (grub_vbe_get_video_mode_info): Likewise.
24400 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
24401 several if statements.
24403 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
24404 * commands/i386/pc/vbeinfo.c: ... this.
24406 * commands/i386/pc/vbe_test.c: Renamed to ...
24407 * commands/i386/pc/vbetest.c: ... this.
24409 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
24411 (grub_cmd_vbeinfo): ... this. Save video modes before
24412 iterating. Skip a video mode, if it is not available, not enough
24413 information is given or it is monochrome. Show the memory
24414 model. Leave the interpretation of MODEVAR to grub_strtoul
24416 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
24417 (GRUB_MOD_FINI): Likewise.
24419 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
24420 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
24421 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
24422 duplicated grub_env_get. Leave the interpretation of MODEVAR to
24423 grub_strtoul completely.
24424 (real2pm): Removed.
24425 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
24426 (GRUB_MOD_FINI): Likewise.
24428 * normal/misc.c: Include grub/mm.h.
24430 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
24431 vbe_list_modes with vbetest.mod and vbeinfo.mod.
24432 (vbe_list_modes_mod_SOURCES): Removed.
24433 (vbe_list_modes_mod_CFLAGS): Likewise.
24434 (vbe_test_mod_SOURCES): Likewise.
24435 (vbe_test_mod_CFLAGS): Likewise.
24436 (vbeinfo_mod_SOURCES): New variable.
24437 (vbeinfo_mod_CFLAGS): Likewise.
24438 (vbetest_mod_SOURCES): Likewise.
24439 (vbetest_mod_CFLAGS): Likewise.
24441 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
24443 * normal/misc.c: New file.
24445 * DISTLIST: Added normal/misc.c.
24447 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
24448 DISK to HOOK. Call HOOK with DISK.
24449 * partmap/apple.c (apple_partition_map_iterate): Likewise.
24450 * partmap/pc.c (pc_partition_map_iterate): Likewise.
24451 * partmap/sun.c (sun_partition_map_iterate): Likewise.
24453 * normal/menu_entry.c (struct screen): Added a new member
24454 "completion_shown".
24455 (completion_buffer): New global variable.
24456 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
24457 (store_completion): New function.
24458 (complete): Likewise.
24459 (clear_completions): Likewise.
24460 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
24461 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
24462 a tab, call complete.
24464 * normal/completion.c (disk_dev): Removed.
24465 (print_simple_completion): Likewise.
24466 (print_partition_completion): Likewise.
24467 (print_func): New global variable.
24468 (add_completion): Do not take the arguments WHAT or PRINT any
24469 longer. Added a new argument TYPE. Instead of printing directly,
24470 call PRINT_FUNC if not NULL.
24471 All callers changed.
24472 (complete_device): Use a local variable DEV instead of
24473 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
24474 (grub_normal_do_completion): Take a new argument HOOK. Do not
24475 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
24476 empty string, return NULL instead.
24477 All callers changed.
24479 * normal/cmdline.c (print_completion): New function.
24481 * kern/partition.c (grub_partition_iterate): Add an argument DISK
24483 All callers changed.
24485 * kern/disk.c (grub_print_partinfo): Removed.
24487 * include/grub/partition.h (struct grub_partition_map): Add a new
24488 argument DISK into HOOK of ITERATE.
24489 (grub_partition_iterate): Add a new argument DISK to HOOK.
24491 * include/grub/normal.h (enum grub_completion_type): New enum.
24492 (grub_completion_type_t): New type.
24493 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
24494 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
24495 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
24496 (GRUB_COMPLETION_TYPE_FILE): Likewise.
24497 (grub_normal_do_completion): Added a new argument HOOK.
24498 (grub_normal_print_device_info): New prototype.
24500 * include/grub/disk.h (grub_print_partinfo): Removed.
24502 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
24503 (normal_mod_SOURCES): Likewise.
24504 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24505 (normal_mod_SOURCES): Likewise.
24507 * commands/ls.c (grub_ls_list_disks): Use
24508 grub_normal_print_device_info instead of grub_print_partinfo. Free
24510 (grub_ls_list_files): Use grub_normal_print_device_info instead of
24511 duplicating the code.
24513 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
24515 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
24516 follow GCS more precisely.
24517 * commands/i386/pc/vbe_test.c: Likewise.
24518 * include/grub/i386/pc/vbe.h: Likewise.
24519 * term/i386/pc/vesafb.c: Likewise.
24520 * video/i386/pc/vbe.c: Likewise.
24522 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
24524 * DISTLIST: Added term/i386/pc/vesafb.c
24525 DISTLIST: Added video/i386/pc/vbe.c
24526 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
24527 DISTLIST: Added commands/i386/pc/vbe_test.c.
24528 * commands/i386/pc/vbe_list_modes.c: New file.
24529 * commands/i386/pc/vbe_test.c: Likewise.
24530 * term/i386/pc/vesafb.c: Likewise.
24531 * video/i386/pc/vbe.c: Likewise.
24532 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
24533 (grub_vbe_probe) Added prototype.
24534 (grub_vbe_set_video_mode) Likewise.
24535 (grub_vbe_get_video_mode) Likewise.
24536 (grub_vbe_get_video_mode_info) Likewise.
24537 (grub_vbe_set_pixel_rgb) Likewise.
24538 (grub_vbe_set_pixel_index) Likewise.
24539 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
24540 (pkgdata_MODULES): Added vesafb.mod.
24541 (pkgdata_MODULES): Added vbe_list_modes.mod.
24542 (pkgdata_MODULES): Added vbe_test.mod.
24543 (vbe_mod_SOURCES): Added.
24544 (vbe_mod_CFLAGS): Likewise.
24545 (vesafb_mod_SOURCES): Likewise.
24546 (vesafb_mod_CFLAGS): Likewise.
24547 (vbe_list_modes_mod_SOURCES): Likewise.
24548 (vbe_list_modes_mod_CFLAGS): Likewise.
24549 (vbe_test_mod_SOURCES): Likewise.
24550 (vbe_test_mod_CFLAGS): Likewise.
24552 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
24554 * normal/command.c (grub_command_execute): If INTERACTIVE is
24555 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
24556 CMDLINE. Disable the pager if INTERACTIVE is true.
24557 All callers are changed.
24559 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
24560 before reading a config file.
24561 * normal/main.c (read_config_file): Even if a command is not
24562 found, register it if it is within an entry.
24564 * util/grub-emu.c: Include sys/types.h and unistd.h.
24565 (options): Added --hold.
24566 (struct arguments): Added a new member "hold".
24567 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
24569 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
24570 cleared by a debugger, if it is not zero.
24572 * include/grub/normal.h (grub_command_execute): Add an argument
24575 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
24577 * DISTLIST: Added include/grub/i386/pc/vbe.h.
24579 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
24581 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
24582 program with another one, because the old one didn't detect a bug
24583 in gcc-3.4. Always use regparm 2, because the new test is still
24584 not enough for gcc-4.0. Someone must investigate a simple test
24585 case which detects a bug in gcc-4.0.
24587 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
24589 * DISTLIST: Added normal/completion.c.
24591 * normal/completion.c: New file.
24593 * term/i386/pc/console.c (grub_console_getwh): New function.
24594 (grub_console_term): Assign grub_console_getwh to getwh.
24596 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
24597 function is defined in normal/completion.c as
24598 grub_normal_do_completion.
24599 (grub_cmdline_get): Use grub_normal_do_completion instead of
24602 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
24603 returns non-zero, otherwise return 0.
24604 (grub_partition_iterate): First, probe the partition map. Then,
24605 call ITERATE only for this partition map.
24607 * kern/misc.c (grub_strncmp): Rewritten.
24609 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
24610 returns non-zero. Otherwise return 0.
24612 * include/grub/partition.h (grub_partition_map_iterate): Return
24613 int instead of void.
24615 * include/grub/normal.h (grub_normal_do_completion): New prototype.
24617 * include/grub/misc.h (grub_strncmp): Change the type of N to
24620 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
24623 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
24624 unsigned explicitly before comparing it with I.
24626 * kern/main.c (grub_env_write_root): Add the attribute unused into
24629 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
24630 normal/completion.c.
24631 (normal_mod_SOURCES): Likewise.
24632 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24633 (normal_mod_SOURCES): Likewise.
24635 * normal/command.c (grub_iterate_commands): If ITERATE returns
24636 non-zero, return one immediately.
24638 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
24640 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
24641 * kern/i386/pc/startup.S: Updated Global Descriptor table's
24643 (grub_vbe_get_controller_info): New function.
24644 (grub_vbe_get_mode_info): Likewise.
24645 (grub_vbe_set_mode): Likewise.
24646 (grub_vbe_get_mode): Likewise.
24647 (grub_vbe_set_memory_window): Likewise.
24648 (grub_vbe_get_memory_window): Likewise.
24649 (grub_vbe_set_scanline_length): Likewise.
24650 (grub_vbe_get_scanline_length): Likewise.
24651 (grub_vbe_set_display_start): Likewise.
24652 (grub_vbe_get_display_start): Likewise.
24653 (grub_vbe_set_palette_data): Likewise.
24654 * include/grub/i386/pc/vbe.h: New file.
24656 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24658 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
24659 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
24660 * DISTLIST: Likewise.
24661 * kern/ieee1275/of.c: Moved to ...
24662 * kern/ieee1275/ieee1275.c: ... here.
24664 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24666 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
24667 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
24668 Pass 0 as `end' parameter to grub_strtoul().
24670 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
24672 * include/grub/powerpc/ieee1275/console.h: Do not include
24673 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
24675 (grub_console_cur_color): Remove i386-specific prototype.
24676 (grub_console_real_putchar): Likewise.
24677 (grub_console_checkkey): Likewise.
24678 (grub_console_getkey): Likewise.
24679 (grub_console_getxy): Likewise.
24680 (grub_console_gotoxy): Likewise.
24681 (grub_console_cls): Likewise.
24682 (grub_console_setcursor): Likewise.
24683 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
24684 Include <grub/machine/console.h>.
24685 * term/ieee1275/ofconsole.c: Likewise.
24687 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
24689 * Makefile.in (LIBLZO): New variable.
24691 * configure.ac: Check for LZO version 2.
24693 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
24694 lzo/lzo1x.h instead of lzo1x.h.
24696 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
24699 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
24700 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
24702 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
24703 copying the data from PARTITION to P.
24705 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
24707 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
24708 negative, unload the module.
24710 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
24711 map is "pc_partition_map" but not "pc".
24712 (usage): Fix the description. The options are --boot-image and
24713 --core-image but not --boot-file or --core-file.
24714 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
24715 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
24718 * util/i386/pc/grub-install.in: Do not specify --boot-file or
24719 --core-file. Specify INSTALL_DEVICE as an argument.
24721 * util/console.c: Include config.h.
24722 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
24723 [HAVE_NCURSES_H]: Include ncurses.h.
24724 [HAVE_CURSES_H]: Include curses.h.
24725 [!A_NORMAL] (A_NORMAL): Defined as zero.
24726 [!A_STANDOUT] (A_STANDOUT): Likewise.
24728 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
24730 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
24732 * configure.ac: Check for curses libraries and headers.
24734 * Makefile.in (LIBCURSES): New variable.
24736 * genmk.rb (Script::rule): Set the executable bits.
24738 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
24739 name of the PC partition map is "pc_partition_map" but not "pc".
24741 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
24743 * util/i386/pc/grub-install.in (grub_probefs): New variable.
24744 (modules): Likewise.
24745 (usage): Added descriptions for --modules and --grub-probefs.
24746 Handle --modules and --grub-probefs. Save the arguments in MODULES
24747 and GRUB_PROBEFS, respectively.
24748 Auto-detect a filesystem module against GRUBDIR. If the result is
24749 empty and modules are not specified explicitly, abort the
24750 installation. Add the result to MODULES.
24752 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
24753 disk/powerpc/ieee1275/ofdisk.c,
24754 include/grub/powerpc/ieee1275/init.h and
24755 term/powerpc/ieee1275/ofconsole.c.
24756 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
24757 term/ieee1275/ofconsole.c.
24759 * include/grub/powerpc/ieee1275/console.h: Resurrected.
24761 * COPYING: Upgraded to the latest version. Only the address of the
24762 FSF office has changed.
24764 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
24766 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
24767 kern/ieee1275.c with kern/ieee1275/of.c.
24769 * kern/ieee1275.c: Moved to ...
24770 * kern/ieee1275/of.c: ... here.
24772 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
24774 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
24777 * config.guess: Updated to the latest version from gnulib.
24778 * config.sub: Likewise.
24779 * install.sh: Likewise.
24780 * mkinstalldirs: Likewise.
24782 * include/grub/console.h: Removed. This file is arch-specific. Do
24783 not put this in include/grub.
24785 * include/grub/i386/pc/console.h: Resurrected.
24787 * util/console.c: Include grub/machine/console.h instead of
24789 * util/grub-emu.c: Likewise.
24791 2005-08-04 Marco Gerards <metgerards@student.han.nl>
24793 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
24796 From Vincent Pelletier <subdino2004@yahoo.fr>
24797 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
24798 Redefined to use grub_getwh.
24799 (grub_term): New member named getwh.
24800 (grub_getwh): New prototype.
24801 * kern/term.c (grub_getwh): New function.
24802 * term/i386/pc/console.c (grub_console_getwh): New function.
24803 (grub_console_term): New member `getwh'.
24804 * term/i386/pc/vga.c (grub_vga_getwh): New function.
24805 (grub_vga_term): New member `getwh'.
24806 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
24808 (grub_ofconsole_getw): New function.
24809 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
24810 (grub_ofconsole_term): New field named getwh and new initial
24813 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
24815 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
24816 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
24817 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
24818 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
24819 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
24820 of <grub/machine/ieee1275.h>.
24821 * commands/ieee1275/reboot.c: Likewise.
24822 * boot/powerpc/ieee1275/ieee1275.c: Move ...
24823 * kern/ieee1275.c: ... to here. All users updated. Change all
24824 parameter structs to use new type `grub_ieee1275_cell_t'.
24825 * term/powerpc/ieee1275/ofconsole.c: Move ...
24826 * term/ieee1275/ofconsole.c: ... to here. All users updated.
24827 * disk/powerpc/ieee1275/ofdisk.c: Move ...
24828 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
24829 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
24831 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
24832 Remove unused prototypes. All users updated.
24833 * include/grub/powerpc/ieee1275/console.h: Removed.
24834 * include/grub/powerpc/ieee1275/ieee1275.h: Define
24835 `grub_ieee1275_cell_t'.
24836 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
24837 Cast comparisons with -1 to the correct type.
24838 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
24839 type to match `grub_ieee1275_entry_fn'.
24841 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
24843 * DISTLIST: Added util/i386/pc/grub-probefs.c.
24845 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
24846 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
24848 (grub_probefs_SOURCES): New variable.
24850 * util/i386/pc/grub-probefs.c: New file.
24852 * util/i386/pc/grub-setup.c (main): Call
24853 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
24854 grub_hfs_init and grub_jfs_init to initialize the system. Call
24855 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
24856 grub_pc_partition_map_fini to finish the system.
24858 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
24860 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
24862 (grub_multiboot_load_elf32): Likewise.
24863 (grub_multiboot_is_elf64): Likewise.
24864 (grub_multiboot_load_elf64): Likewise.
24865 (grub_multiboot_load_elf): Likewise.
24866 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
24867 an ELF32 or ELF64 file.
24868 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
24870 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
24871 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
24872 NULL before calling FS->LABEL.
24873 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
24874 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
24875 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
24876 before calling FS->LABEL.
24878 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
24880 * util/i386/pc/grub-install.in (datadir): New variable.
24882 (pkgdatadir): New variable.
24883 (pkglibdir): Removed.
24885 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
24887 * DISTLIST: Added util/i386/pc/grub-install.in.
24889 * util/i386/pc/grub-install.in: New file.
24891 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
24892 (grub_install_SOURCES): Likewise.
24894 * genmk.rb: Added support for scripts.
24895 (Script): New class.
24896 (scripts): New variable.
24898 * Makefile.in (install-local): Install sbin_SCRIPTS by
24900 (uninstall): Remove sbin_SCRIPTS.
24902 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
24903 device, try to get a GRUB device by
24904 grub_util_biosdisk_get_grub_dev.
24907 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
24908 description for --device-map.
24910 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
24912 Change the semantics of variable hooks. They now return strings
24913 instead of error values.
24915 * util/i386/pc/grub-setup.c: Include grub/env.h.
24916 (setup): Use grub_device_set_root instead of grub_env_set.
24918 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
24919 grub_env_get instead of grub_device_set_root and
24920 grub_device_get_root, respectively.
24922 * kern/main.c (grub_env_write_root): New function.
24923 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
24924 grub_env_set instead of grub_device_set_root.
24926 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
24928 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
24929 rather than calling ENV->WRITE_HOOK afterwards.
24930 (grub_env_get): Return the result of ENV->READ_HOOK rather than
24931 passing a pointer of a pointer.
24932 (grub_register_variable_hook): Change the types of "read_hook" and
24933 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
24935 Allocate the default empty string on the heap, because this string
24936 may be freed later.
24938 * kern/device.c: Include grub/env.h.
24939 (grub_device_set_root): Removed.
24940 (grub_device_get_root): Likewise.
24941 (grub_device_open): Use grub_env_get instead of
24942 grub_device_get_root.
24944 * include/grub/env.h (grub_env_read_hook_t): New type.
24945 (grub_env_write_hook_t): Likewise.
24946 (grub_env_var): Change the types of "read_hook" and "write_hook"
24947 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
24948 (grub_register_variable_hook): Likewise.
24950 * include/grub/device.h (grub_device_set_root): Removed.
24951 (grub_device_set_root): Likewise.
24953 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
24954 make sure that DIRNAME terminates with '/', so that
24955 grub_fat_find_dir will fail if PATH is not a directory.
24957 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
24959 Use the qualifier auto for print_files and print_files_long.
24960 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
24962 Put a newline only if there is no error.
24963 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
24966 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
24968 * kern/partition.c (grub_partition_probe): Initialize PART to
24969 NULL. Otherwise, when no partition map is registered, this returns
24972 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
24974 * partmap/apple.c (apple_partition_map_iterate): Check if POS
24975 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
24978 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
24980 * commands/ls.c (grub_ls_list_disks): Print the filesystem
24981 information on each device, if it does not have partitions. Print
24982 "Device" instead of "Disk", because this function is not specific
24985 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
24986 static to ensure that it is put on the memory rather than a
24989 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
24991 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
24992 (grub_cat_init): Likewise.
24993 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
24994 (options): Likewise.
24995 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
24996 (grub_configfile_init): Likewise.
24997 * font/manager.c (GRUB_MOD_INIT): Likewise.
24998 * commands/help.c (GRUB_MOD_INIT): Likewise.
24999 (grub_help_init): Likewise.
25000 * normal/command.c (grub_command_init): Likewise.
25001 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
25002 * disk/loopback.c (grub_loop_init): Likewise.
25003 (GRUB_MOD_INIT): Likewise.
25004 * commands/ls.c (grub_ls_init): Likewise.
25005 (GRUB_MOD_INIT): Likewise.
25006 (options): Likewise.
25007 * commands/boot.c (grub_boot_init): Likewise.
25008 (GRUB_MOD_INIT): Likewise.
25009 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
25010 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
25011 (GRUB_MOD_INIT): Likewise.
25012 * commands/cmp.c (grub_cmp_init): Likewise.
25013 (GRUB_MOD_INIT): Likewise.
25015 * normal/arg.c: Use <> instead of "" to include header files.
25016 (SHORT_ARG_HELP): New macro.
25017 (SHORT_ARG_USAGE): Likewise.
25018 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
25019 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
25021 (find_short): Check if C is 'h' or 'u' explicitly.
25022 (grub_arg_show_help): Use space characters instead of tabs. Treat
25023 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
25024 are shown with --help and --usage only if they are not used for
25025 the command itself.
25026 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
25029 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
25030 const into "longarg". Change the type of "shortarg" to int.
25032 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25034 * boot/i386/pc/boot.S (boot_drive_check): New label.
25036 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
25039 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
25040 which do not pass a boot drive correctly. Copied from GRUB Legacy.
25042 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25044 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
25045 When turning off Gate A20, skip the check and return immediately,
25046 because this is not fatal usually.
25048 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
25050 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
25051 be 0x7C00 instead of 0x8000.
25053 * boot/i386/pc/pxeboot.S: Rewritten.
25055 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
25057 (gate_a20_check_state): Read a byte from 0x108000. Invert the
25060 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
25062 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
25063 robustness. This routine now supports a BIOS call and System
25064 Control Port A to modify the gate A20.
25066 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25067 Increased to 0x440.
25069 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
25071 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
25072 device path and resulting ihandle.
25073 (grub_ofdisk_close): dprintf the ihandle being closed.
25074 (grub_ofdisk_read): dprintf function parameters.
25075 * kern/mm.c (grub_mm_init_region): Likewise.
25076 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
25077 (grub_linux_boot): dprintf the Linux entry point, initrd address and
25078 size, and boot arguments.
25079 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
25080 before loading into memory.
25081 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
25082 before loading into memory.
25084 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
25086 * kern/mm.c: Added much documentation.
25087 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
25088 8, set to 5 instead of 8.
25090 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25092 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
25094 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
25095 (grub_mkdevicemap_SOURCES): New variable.
25097 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
25098 lib/device.c of GRUB Legacy.
25100 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
25102 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
25103 instead of PATH is NULL.
25105 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
25107 * commands/cmp.c (BUFFER_SIZE): New macro.
25108 (grub_cmd_cmp): Close the right file at the right time. Compare
25109 only data just read. Don't report files of different size as
25110 identical. Dynamically allocate buffers. Move variable
25111 declarations at the beginning of function.
25113 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
25115 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
25118 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
25120 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
25121 when backspace is pressed at beginning of line.
25123 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
25125 * DISTLIST: Added genfslist.sh.
25127 * normal/main.c (fs_module_list): New variable.
25128 (autoload_fs_module): New function.
25129 (read_fs_list): Likewise.
25130 (grub_normal_execute): Call read_fs_list.
25132 * kern/fs.c (grub_fs_autoload_hook): New variable.
25133 (grub_fs_probe): Added support for auto-loading.
25135 * include/grub/normal.h (struct grub_fs_module_list): New struct.
25136 (grub_fs_module_list_t): New type.
25138 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
25139 (grub_fs_autoload_hook): New prototype.
25141 * genfslist.sh: New file.
25143 * genmk.rb: Added a rule to generate a filesystem list.
25145 2005-06-30 Marco Gerards <metgerards@student.han.nl>
25147 * configure.ac: Fix the test for cross-compiling.
25149 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
25150 define GRUB_UTIL anymore.
25152 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
25153 so this function works on other systems than just big endian.
25154 (load_modules): Likewise.
25155 (add_segments): Likewise.
25157 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
25159 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
25160 contains `l' modifier, get a long from va_arg().
25162 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
25164 * kern/mm.c (grub_free): If the next free block which is being
25165 merged is the first free block, set the first block to the block
25167 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
25169 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25171 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
25172 `grub_ieee1275_chosen'.
25174 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
25176 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
25177 (grub_ieee1275_chosen): New variable.
25178 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
25180 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
25181 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
25182 Rename first argument to `phandle' for consistency.
25183 (grub_ieee1275_get_property_length): Likewise.
25184 (grub_ieee1275_next_property): Likewise. Change type of first argument
25185 to grub_ieee1275_phandle_t.
25186 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
25187 Move export next to declaration.
25188 (grub_ieee1275_chosen): New variable.
25189 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
25190 Correct cosmetic typo.
25191 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
25192 `grub_ieee1275_chosen'.
25193 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
25194 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
25195 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
25196 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
25197 `grub_ieee1275_chosen'.
25199 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
25201 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
25203 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
25204 /chosen/bootargs as "variable=value" pairs.
25206 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
25208 * include/grub/misc.h (grub_dprintf): New macro.
25209 (grub_real_dprintf): New prototype.
25210 (grub_strword): Likewise.
25211 (grub_iswordseparator): Likewise.
25212 * kern/misc.c (grub_real_dprintf): New function.
25213 (grub_strword): Likewise.
25214 (grub_iswordseparator): Likewise.
25216 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
25218 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
25219 (roundup): Remove macro.
25220 (grub_ieee1275_flags): Make static.
25221 (grub_ieee1275_realmode): Remove.
25222 (grub_ieee1275_test_flag): New function.
25223 (grub_ieee1275_set_flag): Likewise.
25224 (find_options): Rename to `grub_ieee1275_find_options'; update
25225 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
25226 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
25227 (cmain): New prototype.
25228 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
25229 `grub_ieee1275_flags' directly.
25230 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
25231 machine/biosdisk.h.
25232 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
25233 Don't include grub/machine/init.h.
25234 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
25235 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
25237 (grub_ieee1275_realmode): Likewise.
25238 (grub_ieee1275_flag): New enum.
25239 (grub_ieee1275_test_flag): New prototype.
25240 (grub_ieee1275_set_flag): New prototype.
25241 * include/grub/powerpc/ieee1275/init.h: Remove file.
25242 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
25243 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
25244 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
25245 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
25247 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
25248 `grub_ieee1275_test_flag'.
25249 (grub_ieee1275_encode_devname): Likewise.
25251 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
25253 * include/grub/powerpc/ieee1275/ieee1275.h
25254 (grub_ieee1275_encode_devname): New prototype.
25255 (grub_ieee1275_get_filename): Likewise.
25256 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
25258 (grub_set_prefix): Likewise.
25259 (grub_machine_init): Call grub_set_prefix.
25260 * kern/powerpc/ieee1275/openfw.c: Fix typos.
25261 (grub_parse_type): New enum.
25262 (grub_ieee1275_get_devargs): New function.
25263 (grub_ieee1275_get_devname): Likewise.
25264 (grub_ieee1275_parse_args): Likewise.
25265 (grub_ieee1275_get_filename): Likewise.
25266 (grub_ieee1275_encode_devname): Likewise.
25268 2005-03-30 Marco Gerards <metgerards@student.han.nl>
25270 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
25271 `grub_loader_unset'.
25273 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
25275 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
25276 instead of grub_ieee1275_interpret.
25277 (grub_halt_init): New function.
25278 (grub_halt_fini): Likewise.
25279 (GRUB_MOD_INIT): Correct message grammar.
25280 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
25281 instead of grub_ieee1275_interpret.
25282 (grub_reboot_init): New function.
25283 (grub_reboot_fini): Likewise.
25284 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
25285 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
25286 util/i386/pc/misc.c with commands/ieee1275/halt.c,
25287 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
25288 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
25290 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
25292 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
25294 (grub_halt): Likewise.
25295 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
25296 (cmain): Remove __attribute__((unused)).
25297 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
25298 (grub_heap_len): Likewise.
25299 (grub_machine_fini): New function.
25300 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
25301 (grub_halt): Likewise.
25302 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
25304 * util/powerpc/ieee1275/misc.c: New file.
25306 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
25308 * DISTLIST: New file.
25309 * gendistlist.sh: Likewise.
25311 * Makefile.in (COMMON_DISTFILES): Removed.
25312 (BOOT_DISTFILES): Likewise.
25313 (CONF_DISTFILES): Likewise.
25314 (DISK_DISTFILES): Likewise.
25315 (FS_DISTFILES): Likewise.
25316 (INCLUDE_DISTFILES): Likewise.
25317 (KERN_DISTFILES): Likewise.
25318 (LOADER_DISTFILES): Likewise.
25319 (TERM_DISTFILES): Likewise.
25320 (UTIL_DISTFILES): Likewise.
25321 (DISTFILES): Likewise.
25322 (uninstall): Uninstall files in $(pkgdata_DATA).
25323 (DISTLIST): New target.
25324 (distdir): Use the contents of the file DISTLIST to get a list of
25327 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
25329 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
25330 descriptor. This is ported from GRUB Legacy.
25332 * gencmdlist.sh: Added an extra semicolon to make it work with
25333 old sed versions. Reported by Robert Bihlmeyer
25334 <robbe@orcus.priv.at>.
25336 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
25338 Automatic loading of commands is supported.
25340 * normal/main.c (read_command_list): New function.
25341 (grub_normal_execute): Call read_command_list.
25343 * normal/command.c (grub_register_command): Return zero or CMD.
25344 Allocate CMD->NAME from the heap.
25345 Initialize CMD->MODULE_NAME to zero.
25346 Find the same name as well. If the same command is found and it is
25347 a dummy command, overwrite members. If it is not a dummy command,
25349 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
25350 (grub_command_find): If a dummy command is found, load a module
25351 and retry to find a command only once.
25353 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
25354 make sure that each command is loaded.
25356 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
25358 (struct grub_command): Remove const from the member `name'.
25359 Add a new member `module_name'.
25360 (grub_register_command): Return grub_command_t.
25362 * commands/help.c (grub_cmd_help): Call grub_command_find to make
25363 sure that each command is loaded.
25365 * genmk.rb (PModule::rule): Specify a module name without the
25366 suffix ".mod" to gencmdlist.sh.
25368 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25370 * gencmdlist.sh: New file.
25372 * genmk.rb (PModule::rule): Generate a rule for a command list.
25374 Generate command.lst from $(COMMANDFILES).
25376 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
25377 (DATA): Added $(pkgdata_DATA).
25378 (install-local): Install files in $(pkgdata_DATA).
25380 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
25382 * term/i386/pc/vga.c (debug_command): Removed.
25383 (GRUB_MOD_INIT): Do not register the command "debug".
25385 From Hollis Blanchard:
25386 * commands/configfile.c: New file.
25387 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25388 commands/configfile.c.
25389 (pkgdata_MODULES): Added configfile.mod.
25390 (configfile_mod_SOURCES): New variable.
25391 (configfile_mod_CFLAGS): Likewise.
25392 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25393 commands/configfile.c.
25394 (pkgdata_MODULES): Added configfile.mod.
25395 (configfile_mod_SOURCES): New variable.
25396 (configfile_mod_CFLAGS): Likewise.
25397 * util/grub-emu.c (main): Call grub_configfile_init and
25398 grub_configfile_fini.
25399 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
25401 [GRUB_UTIL] (grub_configfile_fini): Likewise.
25403 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25405 * normal/arg.c (grub_arg_show_help): Do not show the bug report
25408 * commands/help.c (grub_cmd_help): Do not print newlines after
25409 the last command in print_command_help.
25411 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
25413 * commands/default.h: New file.
25414 * commands/timeout.h: Likewise.
25415 * normal/context.c: Likewise.
25417 * util/misc.c: Do not include sys/times.h.
25418 Include sys/time.h and grub/machine/time.h.
25419 (grub_get_rtc): Rewritten with gettimeofday.
25421 * util/grub-emu.c (main): Call grub_default_init and
25422 grub_timeout_init before grub_normal_init, and call
25423 grub_timeout_fini and grub_default_fini after grub_main.
25425 * util/console.c (grub_ncurses_checkkey): Return the read
25428 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
25431 * normal/main.c (read_config_file): Push MENU. If this fails,
25432 print an error and wait for a user input.
25433 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
25434 If a menu is empty or an error occurs, pop MENU.
25435 (grub_normal_execute): Pop and free MENU after grub_menu_run
25438 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
25440 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
25442 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25444 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
25446 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
25449 * include/grub/normal.h (struct grub_menu_list): New struct.
25450 (grub_menu_list_t): New type.
25451 (struct grub_context): New struct.
25452 (grub_context_t): New type.
25453 (grub_register_command): Got rid of EXPORT_FUNC.
25454 (grub_unregister_command): Likewise.
25455 (grub_context_get): New prototype.
25456 (grub_context_get_current_menu): Likewise.
25457 (grub_context_push_menu): Likewise.
25458 (grub_context_pop_menu): Likewise.
25459 [GRUB_UTIL] (grub_default_init): Likewise.
25460 [GRUB_UTIL] (grub_default_fini): Likewise.
25461 [GRUB_UTIL] (grub_timeout_init): Likewise.
25462 [GRUB_UTIL] (grub_timeout_fini): Likewise.
25464 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
25465 commands/timeout.c and normal/context.c.
25466 (pkgdata_MODULES): Added default.mod and timeout.mod.
25467 (normal_mod_SOURCES): Added normal/context.c.
25468 (default_mod_SOURCES): New variable.
25469 (default_mod_CFLAGS): Likewise.
25470 (timeout_mod_SOURCES): Likewise.
25471 (timeout_mod_CFLAGS): Likewise.
25472 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
25474 (pkgdata_MODULES): Added default.mod and timeout.mod.
25475 (normal_mod_SOURCES): Added normal/context.c.
25476 (default_mod_SOURCES): New variable.
25477 (default_mod_CFLAGS): Likewise.
25478 (timeout_mod_SOURCES): Likewise.
25479 (timeout_mod_CFLAGS): Likewise.
25481 * Makefile.in (all-local): Added $(MKFILES).
25483 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
25485 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
25486 (grub_emu_SOURCES): Likewise.
25487 (pkgdata_MODULES): Add `sun.mod'.
25488 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
25489 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25491 (pkgdata_MODULES): Add `sun.mod'.
25492 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
25493 * include/grub/partition.h (grub_sun_partition_map_init): New
25495 (grub_sun_partition_map_fini): Likewise.
25496 * partmap/sun.c: New file.
25497 * util/grub-emu.c (main): Initialize and de-initialize the sun
25498 partitionmap support.
25500 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
25502 This implements an Emacs-like menu entry editor.
25504 * normal/menu_entry.c: New file.
25506 * util/console.c (grub_ncurses_putchar): Translate some Unicode
25507 characters to ASCII.
25508 (saved_char): New variable.
25509 (grub_ncurses_checkkey): Rewritten completely.
25510 (grub_ncurses_getkey): Likewise.
25511 (grub_ncurses_init): Call raw instead of cbreak.
25513 * normal/menu.c (print_entry): Do not put a space.
25514 (init_page): Renamed to ...
25515 (grub_menu_init_page): ... this. All callers changed.
25516 (edit_menu_entry): Removed.
25517 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
25519 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
25521 * kern/misc.c (grub_vprintf): Call grub_refresh.
25523 * normal/menu.c (DISP_LEFT): Renamed to ...
25524 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
25525 * normal/menu.c (DISP_UP): Renamed to ...
25526 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
25527 * normal/menu.c (DISP_RIGHT): Renamed to ...
25528 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
25529 * normal/menu.c (DISP_DOWN): Renamed to ...
25530 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
25531 * normal/menu.c (DISP_HLINE): Renamed to ...
25532 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
25533 * normal/menu.c (DISP_VLINE): Renamed to ...
25534 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
25535 * normal/menu.c (DISP_UL): Renamed to ...
25536 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
25537 * normal/menu.c (DISP_UR): Renamed to ...
25538 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
25539 * normal/menu.c (DISP_LL): Renamed to ...
25540 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
25541 * normal/menu.c (DISP_LR): Renamed to ...
25542 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
25543 * normal/menu.c (TERM_WIDTH): Renamed to ...
25544 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
25545 * normal/menu.c (TERM_HEIGHT): Renamed to ...
25546 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
25547 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
25548 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
25549 * normal/menu.c (TERM_MARGIN): Renamed to ...
25550 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
25551 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
25552 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
25553 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
25554 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
25555 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
25556 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
25557 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
25558 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
25559 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
25560 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
25561 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
25562 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
25563 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
25564 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
25565 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
25566 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
25567 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
25568 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
25569 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
25570 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
25571 All callers changed.
25573 * include/grub/normal.h: New prototype.
25575 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25576 normal/menu_entry.c.
25577 (normal_mod_SOURCES): Likewise.
25578 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25579 (normal_mod_SOURCES): Likewise.
25581 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
25583 * include/grub/normal.h (grub_halt_init): New prototype.
25584 (grub_halt_fini): Likewise.
25585 (grub_reboot_init): Likewise.
25586 (grub_reboot_fini): Likewise.
25588 * util/grub-emu.c: Include signal.h.
25589 (main_env): New global variable.
25590 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
25592 (grub_machine_fini): New function.
25593 (main): Call grub_halt_init and grub_reboot_init before
25594 grub_main, and grub_reboot_fini and grub_halt_fini after it.
25595 Call setjmp with MAIN_ENV to go back afterwards.
25596 Call grub_machine_fini right before return.
25598 * include/grub/util/misc.h: Include setjmp.h.
25599 (main_env): New prototype.
25601 * include/grub/kernel.h (grub_machine_fini): New prototype.
25602 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
25603 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
25605 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
25606 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
25607 * term/i386/pc/console.c (grub_console_fini): Likewise.
25609 * util/i386/pc/misc.c: New file.
25611 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
25612 util/i386/pc/misc.c, commands/i386/pc/halt.c and
25613 commands/i386/pc/reboot.c.
25615 2005-02-14 Guillem Jover <guillem@hadrons.org>
25617 * include/grub/dl.h (grub_dl_check_header): New prototype.
25618 (grub_arch_dl_check_header): Change return type to grub_err_t,
25619 remove size parameter and export function. Update all callers.
25620 * kern/dl.c (grub_dl_check_header): New function.
25621 (grub_dl_load_core): Use `grub_dl_check_header' instead of
25622 `grub_arch_dl_check_header'. Check ELF type. Check if sections
25623 are inside the core.
25624 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
25625 independent ELF header checks.
25626 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
25627 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
25628 `grub_dl_check_header' instead of explicit checks. Check for the
25630 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
25631 `grub_dl_check_header' instead of explicit checks. Remove arch
25632 specific ELF header checks.
25634 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
25637 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
25639 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
25640 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
25642 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
25644 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
25645 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
25646 (part_map_iterate): Clear `grub_errno' and return 0 if
25647 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
25648 * partmap/amiga.c (amiga_partition_map_iterate): Return
25649 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
25650 * partmap/apple.c (apple_partition_map_iterate): Likewise.
25652 2005-02-01 Guillem Jover <guillem@hadrons.org>
25654 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
25657 2005-01-31 Marco Gerards <metgerards@student.han.nl>
25659 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
25661 (grub_rescue_cmd_linux): New prototype.
25662 (grub_rescue_cmd_initrd): Likewise.
25663 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
25665 (grub_linux_release_mem): Release the memory for the initrd.
25666 (grub_load_linux): Renamed from this...
25667 (grub_rescue_cmd_linux): ...To this. Changed all callers.
25668 Changed `entry' not to be static. Loop over memory regions to
25669 find another one when the default fails.
25670 (grub_rescue_cmd_initrd): New function.
25671 (grub_linux_init): Remove function.
25672 (grub_linux_fini): Likewise.
25673 (GRUB_MOD_INIT): Register `initrd'.
25674 (GRUB_MOD_FINI): Unregister `initrd'.
25675 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
25677 (grub_linux_normal_fini): Likewise.
25678 (GRUB_MOD_INIT): Register `initrd'.
25679 (GRUB_MOD_FINI): Unregister `initrd'.
25681 2005-01-31 Marco Gerards <metgerards@student.han.nl>
25683 * commands/help.c: New file.
25684 * normal/arg.c (show_help): Renamed to...
25685 (grub_arg_show_help): ... this.
25686 * commands/i386/pc/halt.c: New file.
25687 * commands/i386/pc/reboot.c: Likewise.
25688 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
25689 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
25690 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
25691 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
25693 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25695 (pkgdata_MODULES): Add `help.mod'.
25696 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
25697 * grub/i386/pc/init.h (grub_reboot): New prototype.
25698 (grub_halt): Likewise.
25699 * include/grub/normal.h (grub_arg_show_help): New prototype.
25700 (grub_help_init): Likewise.
25701 (grub_help_fini): Likewise.
25702 * util/grub-emu.c (main): Initialize and deinitialize the help
25705 * normal/cmdline.c (grub_cmdline_get): Doc fix.
25707 * normal/command.c (grub_command_init): Fixed the description of
25708 the `set' and `unset' commands.
25710 2005-01-31 Marco Gerards <metgerards@student.han.nl>
25712 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
25714 * commands/ieee1275/halt.c: New file.
25715 * commands/ieee1275/reboot.c: Likewise.
25716 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
25717 `__attribute__ ((unused))'. Some GCS related fixed.
25718 (grub_suspend_init) [GRUB_UTIL]: Function removed.
25719 (grub_suspend_fini): Likewise.
25720 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
25722 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
25723 (halt_mod_CFLAGS): New variables.
25724 * include/grub/powerpc/ieee1275/ieee1275.h
25725 (grub_ieee1275_interpret): New prototype.
25727 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
25729 * include/grub/misc.h (memmove): New prototype.
25730 (memcpy): Likewise.
25732 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
25734 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
25735 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
25737 2005-01-22 Marco Gerards <metgerards@student.han.nl>
25739 * kern/misc.c (grub_strndup): Function rewritten.
25741 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
25743 * normal/menu.c (TERM_WIDTH): Macro redefined.
25744 (TERM_TOP_BORDER_Y): Likewise.
25745 (draw_border): Replaced while-loop by a for-loop. Make the number
25746 of lines consistent with the number of lines displayed in
25747 print_entries. Added a margin below the rectangle.
25748 (print_entry): Make the entry fit in the rectangle.
25749 (print_entries): Display the scroll arrows next to the right
25752 2005-01-21 Marco Gerards <metgerards@student.han.nl>
25754 * fs/minix.c (grub_minix_find_file): Reserve more space for
25755 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
25756 `grub_strncpy' to copy `path' into it.
25758 2005-01-21 Marco Gerards <metgerards@student.han.nl>
25760 Add the loopback device, a device via which files can be accessed
25763 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
25764 (pkgdata_MODULES): Add loopback.mod.
25765 (loopback_mod_SOURCES): New variable.
25766 (loopback_mod_CFLAGS): Likewise.
25767 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25769 (pkgdata_MODULES): Add loopback.mod.
25770 (loopback_mod_SOURCES): New variable.
25771 (loopback_mod_CFLAGS): Likewise.
25772 * disk/loopback.c: new file.
25773 * include/grub/normal.h (grub_loop_init): New prototype.
25774 (grub_loop_fini): New prototype.
25775 * util/grub-emu.c (main): Initialize and de-initialize loopback
25777 * include/grub/disk.h (grub_disk_dev_id): Add
25778 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
25780 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
25782 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
25784 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
25785 (suspend_mod_SOURCES): New variable.
25786 (suspend_mod_CFLAGS): Likewise.
25787 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
25789 * commands/ieee1275/suspend.c: New file.
25791 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
25793 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
25794 ((unused))' to `__attribute__ ((used))'.
25795 (GRUB_MOD_FINI): Likewise.
25796 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
25797 * genmk.rb (PModule): Assign space to common symbols when linking
25800 2005-01-20 Marco Gerards <metgerards@student.han.nl>
25802 * include/grub/mm.h (grub_mm_init_region): Change the type of the
25803 `unsigned' arguments to `grub_size_t'.
25804 (grub_malloc): Likewise.
25805 (grub_realloc): Likewise.
25806 (grub_memalign): Likewise.
25807 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
25808 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
25809 * util/misc.c (grub_malloc): Likewise.
25810 (grub_realloc): Likewise.
25811 * kern/mm.c (get_header_from_pointer): Change the casts to
25812 `unsigned' into a cast to `grub_size_t'.
25814 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
25815 point to `currnode' when `currnode' is changed.
25817 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
25818 Schottelius <nico-linux@schottelius.org>.
25820 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
25822 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
25823 (note_path): Remove variable.
25824 (GRUB_IEEE1275_NOTE_NAME): New macro.
25825 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
25826 (grub_ieee1275_note_hdr): New structure.
25827 (grub_ieee1275_note_desc): Likewise.
25828 (grub_ieee1275_note): Likewise.
25829 (load_note): Remove `dir' argument. All callers updated. Remove
25830 `note_img' and `path'. Do not load a file from `note_path'.
25831 Initialize a struct grub_ieee1275_note and write that to `out'.
25832 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
25834 2005-01-05 Marco Gerards <metgerards@student.han.nl>
25836 * util/misc.c (grub_util_read_image): Revert last change. It
25837 called `grub_util_read_at', which seeks from the beginning of the
25840 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
25842 * TODO: Add note about endianness in grub-mkimage.
25843 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
25845 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
25846 (grub_mkimage_SOURCES): New target.
25847 * include/grub/kernel.h (grub_start_addr): Remove variable.
25848 (grub_end_addr): Likewise.
25849 (grub_total_module_size): Likewise.
25850 (grub_kernel_image_size): Likewise.
25851 (GRUB_MODULE_MAGIC): New constant.
25852 (grub_module_info): New structure.
25853 (grub_arch_modules_addr): New prototype.
25854 (grub_get_end_addr): Remove prototype.
25855 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
25856 * include/grub/powerpc/ieee1275/kernel.h: New file.
25857 * include/grub/util/misc.h (grub_util_get_fp_size): New
25859 (grub_util_read_at): Likewise.
25860 (grub_util_write_image_at): Likewise.
25861 * kern/main.c (grub_get_end_addr): Remove function.
25862 (grub_load_modules): Call grub_arch_modules_addr instead of using
25863 grub_end_addr. Look for a grub_module_info struct in memory. Use
25864 the grub_module_info fields instead of calling grub_get_end_addr
25865 as loop conditions. Move grub_add_unused_region code here.
25866 (grub_add_unused_region): Remove function.
25867 * kern/i386/pc/init.c: Include grub/cache.h.
25868 (grub_machine_init): Remove call to grub_get_end_addr. Remove
25869 one call to add_mem_region.
25870 (grub_arch_modules_addr): New function.
25871 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
25872 (grub_total_module_size): Likewise.
25873 Include grub/machine/kernel.h.
25874 (grub_arch_modules_addr): New function.
25875 * util/grub-emu.c (grub_end_addr): Remove variable.
25876 (grub_total_module_size): Likewise.
25877 (grub_arch_modules_addr): New function.
25878 * util/misc.c: Include unistd.h.
25879 (grub_util_get_fp_size): New function.
25880 (grub_util_read_at): Likewise.
25881 (grub_util_write_image_at): Likewise.
25882 (grub_util_read_image): Call grub_util_read_at.
25883 (grub_util_write_image): Call grub_util_write_image_at.
25884 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
25885 additional memory in kernel_img for a struct grub_module_info.
25886 Fill in that grub_module_info.
25887 * util/powerpc/ieee1275/grub-mkimage.c: New file.
25889 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
25891 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
25893 * include/grub/powerpc/ieee1275/ieee1275.h
25894 (grub_ieee1275_milliseconds): New prototype.
25895 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
25897 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
25898 grub_ieee1275_milliseconds.
25900 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
25902 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
25904 (find_options): New function.
25905 (cmain): Call find_options.
25906 * include/grub/powerpc/ieee1275/ieee1275.h
25907 (grub_ieee1275_realmode): New extern variable.
25908 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
25909 grub_map if grub_ieee1275_realmode is false.
25911 2004-12-29 Marco Gerards <metgerards@student.han.nl>
25913 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
25914 lines are inserted and make it work like readline. Reported by
25915 Vincent Pelletier <subdino2004@yahoo.fr>.
25917 2004-12-28 Marco Gerards <metgerards@student.han.nl>
25919 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
25921 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
25922 `kern/powerpc/cache.S'.
25924 2004-12-27 Marco Gerards <metgerards@student.han.nl>
25926 * genmk.rb: Handle the `Program' class in the main loop. Written
25927 by Johan Rydberg <jrydberg@gnu.org>.
25928 (Program): New class.
25929 (programs): New variable.
25930 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
25931 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
25932 instead of "grub/kernel.h". Include <grub/machine/init.h>.
25933 (help_arch): Function removed.
25934 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
25935 `powerpc/libgcc.h' and `loader.h'.
25936 (pkgdata_PROGRAMS): New variable.
25937 (sbin_UTILITIES): Variable removed.
25938 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
25939 (grubof_SOURCES): Variable re-defined so it only includes the
25940 core functionality.
25941 (grubof_CFLAGS): Remove `-DGRUBOF'.
25942 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
25943 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
25944 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
25945 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
25946 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
25947 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
25948 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
25949 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
25950 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
25951 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
25952 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
25953 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
25954 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
25955 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
25956 (pc_mod_CFLAGS): New variables.
25957 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
25958 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
25959 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
25960 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
25962 * include/grub/i386/pc/init.h (grub_os_area_addr)
25963 (rub_os_area_size): ... to here.
25964 * include/grub/powerpc/ieee1275/ieee1275.h
25965 (grub_ieee1275_entry_fn): Export symbol.
25966 * include/grub/powerpc/ieee1275/init.h: New file.
25967 * include/grub/powerpc/libgcc.h: Likewise.
25968 * include/grub/cache.h: Likewise.
25969 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
25970 <hollis@penguinppc.org>.
25971 * kern/dl.c: Include <grub/cache.h>.
25972 (grub_dl_flush_cache): New function.
25973 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
25975 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
25976 (grub_console_init): Removed prototypes.
25977 (grub_machine_init): Don't initialize the modules anymore.
25978 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
25980 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
25981 Macro undef removed.
25982 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
25983 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
25984 relocation `R_PPC_REL32'. Return an error when the relocation is
25986 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
25987 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
25988 * util/misc.c (grub_arch_sync_caches): Likewise.
25990 2004-12-19 Marco Gerards <metgerards@student.han.nl>
25992 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
25993 `symlist.c', add `grubof_symlist.c'.
25994 (symlist.c): Variable removed.
25995 (grubof_HEADERS): Variable added.
25996 (grubof_symlist.c): New target.
25997 (kernel_syms.lst): Use `grubof_HEADERS' instead of
25998 `kernel_img_HEADERS'.
25999 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
26000 * kern/powerpc/dl.c: New file.
26001 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
26003 (grub_arch_dl_relocate_symbols): Likewise.
26004 (grub_register_exported_symbols): Likewise.
26006 2004-12-13 Marco Gerards <metgerards@student.han.nl>
26008 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
26009 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
26010 to fail instead. Reported by Vincent Pelletier
26011 <subdino2004@yahoo.fr>.
26013 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
26014 it is not allocated. Reported by Vincent Pelletier
26015 <subdino2004@yahoo.fr>.
26017 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
26018 output so the output looks better.
26020 2004-12-04 Marco Gerards <metgerards@student.han.nl>
26022 Modulize the partition map support and add support for the amiga
26025 * commands/ls.c: Include <grub/partition.h> instead of
26026 <grub/machine/partition.h>.
26027 * kern/disk.c: Likewise.
26028 * kern/rescue.c: Likewise.
26029 * loader/i386/pc/chainloader.c: Likewise.
26030 * normal/cmdline.c: Likewise.
26031 * kern/powerpc/ieee1275/init.c: Likewise.
26032 (grub_machine_init): Call `grub_pc_partition_map_init',
26033 `grub_amiga_partition_map_init' and
26034 `grub_apple_partition_map_init'.
26035 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
26036 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
26037 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
26038 `partition.h' and `pc_partition.h'.
26039 (grub_setup_SOURCES): Remove
26040 `disk/i386/pc/partition.c'. Add `kern/partition.c',
26041 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26042 (grub_emu_SOURCES): Likewise.
26043 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
26044 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
26045 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
26046 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26047 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
26048 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
26049 (grubof_SOURCES): Likewise.
26050 * disk/i386/pc/partition.c: File removed.
26051 * disk/powerpc/ieee1275/partition.c: Likewise.
26052 * include/grub/powerpc/ieee1275/partition.h: Likewise.
26053 * include/grub/i386/pc/partition.h: Likewise.
26054 * kern/partition.c: New file.
26055 * partmap/amiga.c: Likewise.
26056 * partmap/apple.c: Likewise.
26057 * partmap/pc.c: Likewise.
26058 * include/grub/partition.h: Likewise..
26059 * include/grub/pc_partition.h: Likewise.
26060 * util/grub-emu.c: Include <grub/partition.h> instead of
26061 <grub/machine/partition.h>.
26062 (main): Call `grub_pc_partition_map_init',
26063 `grub_amiga_partition_map_init' and
26064 `grub_apple_partition_map_init' and deinitialize afterwards.
26065 * util/i386/pc/biosdisk.c: Include `#include
26066 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26067 `<grub/machine/partition.h>'.
26068 * util/i386/pc/grub-setup.c: Likewise.
26069 * util/i386/pc/biosdisk.c: Likewise.
26070 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
26071 partition information in case of a PC partition.
26072 * util/i386/pc/grub-setup.c: Include `#include
26073 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
26074 `<grub/machine/partition.h>'.
26075 (setup): Only access the PC specific partition information in case
26078 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
26080 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
26081 (grub_longjmp): Likewise.
26082 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
26084 * normal/powerpc/setjmp.S: New file.
26085 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26086 `normal/powerpc/setjmp.S'.
26087 (grubof_CFLAGS): Add `-DGRUBOF'.
26088 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
26089 [GRUB_UTIL && !GRUBOF].
26091 2004-11-16 Marco Gerards <metgerards@student.han.nl>
26093 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
26094 property named `name'. Correctly handle the error returned by
26095 `grub_ieee1275_finddevice' if a device can not be opened.
26097 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
26099 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
26100 `actual' for negativity.
26101 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
26104 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26106 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
26107 (PAGE_OFFSET): New macro.
26108 (CRTC_ADDR_PORT): Likewise.
26109 (CRTC_DATA_PORT): Likewise.
26110 (START_ADDR_HIGH_REGISTER): Likewise.
26111 (START_ADDR_LOW_REGISTER): Likewise.
26112 (GRAPHICS_ADDR_PORT): Likewise.
26113 (GRAPHICS_DATA_PORT): Likewise.
26114 (READ_MAP_REGISTER): Likewise.
26115 (INPUT_STATUS1_REGISTER): Likewise.
26116 (INPUT_STATUS1_VERTR_BIT): Likewise.
26117 (page): New variable.
26118 (wait_vretrace): New function.
26119 (set_read_map): Likewise.
26120 (set_start_address): Likewise.
26121 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
26123 (check_vga_mem): Take the page into account.
26124 (write_char): Likewise.
26125 (write_cursor): Likewise.
26126 (scroll_up): Likewise. Copy the page to the page that is not
26127 shown and switch between both pages.
26128 (grub_vga_putchar): Fix off by one error.
26129 (grub_vga_cls): Wait for the vertical retrace. Take the page into
26132 2004-11-01 Marco Gerards <metgerards@student.han.nl>
26134 Add support for iso9660 (including rockridge).
26136 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26137 (iso9660_mod_SOURCES): New variable.
26138 (iso9660_mod_CFLAGS): Likewise.
26139 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
26140 * include/grub/fs.h (grub_iso9660_init): New prototype.
26141 * util/grub-emu.c (main): Call `grub_iso9660_init'.
26142 * fs/iso9660.c: New file.
26144 * include/grub/misc.h (grub_strncat): New prototype.
26145 * kern/misc.c (grub_strncat): New function.
26147 * fs/hfs.c (grub_hfs_mount): Translate the error
26148 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
26149 * fs/jfs.c (grub_jfs_mount): Likewise.
26150 * fs/ufs.c (grub_ufs_mount): Likewise.
26152 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
26154 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
26155 which initialized BAT registers.
26156 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
26157 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26159 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
26160 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
26162 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
26163 (grub_mapclaim): Likewise.
26164 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
26165 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
26168 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
26170 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
26171 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
26172 -ffreestanding and -msoft-float.
26174 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
26176 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
26177 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
26178 set in grub_ieee1275_flags.
26180 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
26182 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
26184 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
26185 grub_console_init first.
26186 Change the memory range used for grub_ieee1275_claim and
26187 grub_mm_init_region.
26188 Print an error message if the claim fails.
26189 Include <grub/misc.h>.
26191 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
26193 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
26194 Call grub_children_iterate for device nodes of type `scsi',
26196 (grub_ofdisk_open): Remove manual device alias resolution.
26197 Fix memory leak when device cannot be opened.
26198 * include/grub/powerpc/ieee1275/ieee1275.h
26199 (grub_children_iterate): New prototype.
26200 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
26202 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26203 Return -1 if args.size was -1.
26205 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26207 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
26208 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
26209 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
26210 Open Firmware's memory for it; claim memory from _start to _end.
26211 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
26212 (_end): New extern.
26213 (_start): Zero BSS from __bss_start to _end.
26214 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26216 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
26218 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
26220 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
26221 -1 if args.base was -1.
26223 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
26225 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
26226 escape sequence instead of a literal ^L. Also call
26227 grub_ofconsole_gotoxy.
26229 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
26231 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
26232 void * arguments to grub_addr_t. All callers updated. Also make
26233 the `result' argument optional.
26234 (grub_ieee1275_release): change void * arguments to grub_addr_t.
26235 All callers updated.
26237 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
26239 * commands/ls.c (grub_ls_list_files): Use the string following the
26240 initial ')', if present, as the filesystem path.
26241 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
26243 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
26245 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
26247 Make the source code of the menu interface more readable.
26249 * normal/menu.c: Include grub/mm.h.
26250 (TERM_WIDTH): New macro.
26251 (TERM_HEIGHT): Likewise.
26252 (TERM_INFO_HEIGHT): Likewise.
26253 (TERM_MARGIN): Likewise.
26254 (TERM_SCROLL_WIDTH): Likewise.
26255 (TERM_TOP_BORDER_Y): Likewise.
26256 (TERM_LEFT_BORDER_X): Likewise.
26257 (TERM_BORDER_WIDTH): Likewise.
26258 (TERM_MESSAGE_HEIGHT): Likewise.
26259 (TERM_BORDER_HEIGHT): Likewise.
26260 (TERM_NUM_ENTRIES): Likewise.
26261 (TERM_FIRST_ENTRY_Y): Likewise.
26262 (TERM_ENTRY_WIDTH): Likewise.
26263 (TERM_CURSOR_X): Likewise.
26264 (draw_border): Use macros instead of magic numbers.
26265 (print_entry): Likewise.
26266 (print_entries): Likewise.
26267 (run_menu): Likewise. Also, handle the key 'e'.
26268 (run_menu_entry): Ignore empty command lines.
26269 (print_message): Added a new argument EDIT. If EDIT is true,
26270 print a different message.
26271 (init_page): Likewise.
26272 (edit_menu_entry): New function. Not implemented yet.
26274 2004-09-17 Marco Gerards <metgerards@student.han.nl>
26276 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
26277 can be loaded from normal mode.
26279 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
26281 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
26282 (multiboot_mod_CFLAGS): New variables.
26283 * loader/i386/pc/linux_normal.c: New file.
26284 * loader/i386/pc/multiboot_normal.c: Likewise.
26286 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
26287 attribute `unused'.
26289 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
26290 `fdiro' to read the mode information from instead of `diro'.
26292 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
26293 looking up a symlink.
26295 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
26297 * normal/command.c (grub_command_execute): Don't parse the
26298 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
26299 flags of the command.
26301 * normal/menu.c (grub_menu_run): Fix typo.
26303 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
26305 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
26307 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
26308 `y + 1' instead of `y - 1'.
26310 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
26312 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
26314 From Hollis Blanchard <hollis@penguinppc.org>:
26315 * kern/misc.c (memmove): New alias for grub_memmove.
26316 (memcmp): New alias for grub_memcmp.
26317 (memset): New alias for grub_memset.
26318 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26319 Change "int handle" to "grub_ieee1275_phandle_t handle".
26320 * include/grub/powerpc/ieee1275/ieee1275.h
26321 (grub_ieee1275_get_property): Likewise.
26323 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
26325 Added normal mode command `chainloader' as module chain.mod, which
26326 depends on normal.mod and _chain.mod.
26328 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
26329 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
26330 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
26332 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
26333 but arguments parsing moved to ...
26334 (grub_chainloader_cmd): ... here. New function.
26335 * include/grub/i386/pc/chainloader.h: New file.
26336 * loader/i386/pc/chainloader_normal.c: Likewise.
26338 2004-09-11 Marco Gerards <metgerards@student.han.nl>
26340 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
26341 (grub_mkimage_LDFLAGS): Likewise.
26342 (grub_emu_SOURCES): Likewise.
26343 (kernel_img_HEADERS): Added fshelp.h.
26344 * fs/ext2.c: Include <grub/fshelp.h>.
26345 (FILETYPE_REG): New macro.
26346 (FILETYPE_INO_REG): Likewise.
26347 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
26349 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
26351 (grub_fshelp_node): New struct.
26352 (grub_ext2_data): Added member `diropen'. Changed member `inode'
26354 (grub_ext2_get_file_block): Removed function.
26355 (grub_ext2_read_block): New function.
26356 (grub_ext2_read_file): Replaced parameter `data' by `node'.
26357 This function was written.
26358 (grub_ext2_mount): Read the root inode. Create a diropen struct.
26359 (grub_ext2_find_file): Removed function.
26360 (grub_ext2_read_symlink): New function.
26361 (grub_ext2_iterate_dir): Likewise.
26362 (grub_ext2_open): Rewritten.
26363 (grub_ext2_dir): Rewritten.
26364 * include/grub/fshelp.h: New file.
26365 * fs/fshelp.c: Likewise.
26367 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
26369 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
26370 (print_message): Add a missing newline.
26371 (run_menu): Added timeout support.
26372 (run_menu_entry): New local function.
26373 (grub_menu_run): Added support for booting.
26375 * kern/loader.c (grub_loader_is_loaded): New function.
26377 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
26378 (grub_get_rtc): Exported.
26380 * include/grub/i386/pc/time.h: Include grub/symbol.h.
26381 (grub_get_rtc): Exported.
26383 * include/grub/normal.h (struct grub_command_list): Remove
26384 constant from the member `command'.
26386 * include/grub/loader.h (grub_loader_is_loaded): Declared.
26388 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
26390 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
26392 2004-08-28 Marco Gerards <metgerards@student.han.nl>
26394 Add support for the JFS filesystem.
26396 * fs/jfs.c: New file.
26397 * include/grub/fs.h (grub_jfs_init): New prototype.
26398 (grub_jfs_fini): New prototype.
26399 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
26400 (grub_emu_SOURCES): Likewise.
26401 (pkgdata_MODULES): Add jfs.mod.
26402 (jfs_mod_SOURCES): New variable.
26403 (jfs_mod_CFLAGS): Likewise.
26404 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
26405 (grubof_SOURCES): Likewise.
26406 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
26408 * fs/fat.c (grub_fat_find_dir): Convert the filename little
26409 endian to the host endian.
26410 (grub_fat_utf16_to_utf8): Move function from there...
26411 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
26412 the endianness of the source string anymore.
26413 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
26415 2004-08-24 Marco Gerards <metgerards@student.han.nl>
26417 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
26418 (grub_boot_fini) [GRUB_UTIL]: Likewise.
26419 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
26420 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
26422 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
26423 (grub_hfs_iterate_dir): Make the function static. Add prototypes
26424 for `node_found' and `it_dir'.
26425 (grub_hfs_dir): Add prototype for `dir_hook'.
26427 * fs/minix.c (grub_minix_get_file_block): Add prototype for
26428 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
26429 and `indir32' to silence a gcc warning.
26431 * include/grub/fs.h (grub_hfs_init): New prototype.
26432 (grub_hfs_fini): Likewise.
26435 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
26437 Each disk device has its own id now. This is useful to make use
26438 of multiple disk devices.
26440 * include/grub/disk.h (grub_disk_dev_id): New enum.
26441 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
26442 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
26444 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
26445 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26447 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
26448 GRUB_DISK_DEVICE_OFDISK_ID as an id.
26450 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
26451 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
26453 * include/grub/disk.h (struct grub_disk_dev): Added a new member
26454 "id" which is used by the cache manager.
26456 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
26459 2004-08-18 Marco Gerards <metgerards@student.han.nl>
26461 * fs/hfs.c: New file.
26462 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
26463 (grub_emu_SOURCES): Likewise.
26464 (pkgdata_MODULES): Add hfs.mod.
26465 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
26466 (grubof_SOURCES): Likewise.
26467 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
26469 * include/grub/misc.h (grub_strncasecmp): Add prototype.
26470 * kern/misc.c (grub_strncasecmp): Add function.
26472 2004-08-14 Marco Gerards <metgerards@student.han.nl>
26474 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
26477 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
26478 (grub_ext2_dir): In case the directory entry type is unknown, read
26481 2004-08-02 Peter Bruin <pjbruin@dds.nl>
26483 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
26484 grub_load_linux instead of grub_rescue_cmd_linux as second
26485 argument of grub_rescue_register_command.
26487 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
26489 2004-07-27 Marco Gerards <metgerards@student.han.nl>
26491 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
26493 * commands/boot.c: Remove the check for `GRUB_UTIL'.
26494 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
26495 `loader/powerpc/ieee1275/linux.c',
26496 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
26497 * include/grub/powerpc/ieee1275/ieee1275.h
26498 (grub_ieee1275_release): New prototype.
26499 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
26500 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
26501 normal, boot, linux and linux_normal.
26502 * loader/powerpc/ieee1275/linux.c: New file.
26503 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
26505 2004-07-12 Marco Gerards <metgerards@student.han.nl>
26507 * normal/arg.c (grub_arg_parse): Correct error handling after
26508 reallocating the argumentlist (check if `argl' is not null instead
26509 of checking if `args' is not null).
26510 * kern/mm.c (grub_realloc): Return the same pointer when using the
26511 same region, instead of returning the header address.
26513 2004-07-11 Marco Gerards <metgerards@student.han.nl>
26515 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
26516 one block instead of two when looking for the initial partition.
26517 (grub_partition_probe): Initialize the local variable `p' with 0.
26518 Use base 10 for the grub_strtoul call.
26519 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
26520 need for one local variable.
26521 (grub_strtoul): Don't add the new value to `num', instead of that
26524 2004-07-11 Marco Gerards <metgerards@student.han.nl>
26526 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
26527 (pxeboot_img_SOURCES): New variable.
26528 (pxeboot_img_ASFLAGS): Likewise.
26529 (pxeboot_img_LDFLAGS): Likewise.
26530 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
26531 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
26532 <lode_leroy@hotmail.com>.
26534 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26536 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
26537 there was no input.
26539 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26541 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
26542 the history buffer logic.
26544 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
26546 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
26547 (FILETYPE_INO_SYMLINK): New macros.
26548 (grub_ext2_find_file): Check if the node is a directory using the
26549 inode stat information instead of using the filetype in the
26550 dirent. Exclude the first character of an absolute symlink.
26551 (grub_ext2_dir): Mask out the filetype part of the mode member of
26554 2004-05-24 Marco Gerards <metgerards@student.han.nl>
26556 Add support for UFS version 1 and 2. Add support for the minix
26557 filesystem version 1 and 2, both the variants with 14 and 30 long
26560 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
26562 (grub_emu_SOURCES): Likewise.
26563 (pkgdata_MODULES): Add ufs.mod and minix.mod.
26564 (ufs_mod_SOURCES): New variable.
26565 (ufs_mod_CFLAGS): Likewise.
26566 (minix_mod_SOURCES): Likewise.
26567 (minix_mod_CFLAGS): Likewise.
26568 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
26570 (grubof_SOURCES): Likewise.
26571 * fs/ufs.c: New file.
26572 * fs/minix.c: New file.
26573 * include/grub/fs.h (grub_ufs_init): New prototype.
26574 (grub_ufs_fini): Likewise.
26575 (grub_minix_init): Likewise.
26576 (grub_minix_fini): Likewise.
26577 * util/grub-emu.c (main): Initialize and deinitialize UFS and
26580 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
26582 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
26583 commands/ls.c, commands/terminal.c, commands/boot.c,
26584 commands/cmp.c and commands/cat.c.
26585 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
26587 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
26590 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
26592 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
26593 and grub_, respectively. Because the conversion is trivial and
26594 mechanical, I omit the details here. Please refer to the CVS
26595 if you need more information.
26597 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
26599 * include/pupa: Renamed to ...
26600 * include/grub: ... this.
26601 * util/i386/pc/pupa-mkimage.c: Renamed to ...
26602 * util/i386/pc/grub-mkimage.c: ... this.
26603 * util/i386/pc/pupa-setup.c: Renamed to ...
26604 * util/i386/pc/grub-setup.c: ... this.
26605 * util/pupa-emu.c: Renamed to ...
26606 * util/grub-emu.c: ... this.
26608 2004-03-29 Marco Gerards <metgerards@student.han.nl>
26610 Add support for the newworld apple macintosh (PPC). This has been
26611 tested on the powerbook 2000 only. It only adds support for
26612 generic ieee1275 functions, console and disk support. This should
26613 be easy to port to other architectures with support for Open
26616 * configure.ac: Accept the powerpc as host_cpu. In the case of
26617 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
26618 specific tests are only executed while building for the i386.
26619 Inverse test for crosscompile.
26620 * genmk.rb (Utility): Allow assembler files.
26621 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
26622 * conf/powerpc-ieee1275.rmk: New file.
26623 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
26624 * disk/powerpc/ieee1275/partition.c: Likewise.
26625 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
26626 * include/pupa/powerpc/ieee1275/console.h: Likewise.
26627 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
26628 * include/pupa/powerpc/ieee1275/time.h: Likewise.
26629 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
26630 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
26631 * include/pupa/powerpc/ieee1275/loader.h
26632 * include/pupa/powerpc/setjmp.h: Likewise.
26633 * include/pupa/powerpc/types.h: Likewise.
26634 * kern/powerpc/ieee1275/init.c: Likewise.
26635 * kern/powerpc/ieee1275/openfw.c: Likewise.
26636 * term/powerpc/ieee1275/ofconsole.c: Likewise.
26638 These files were written by Johan Rydberg
26639 (jrydberg@night.trouble.net) and I only modified them slightly.
26641 * boot/powerpc/ieee1275/cmain.c: New file.
26642 * boot/powerpc/ieee1275/crt0.S: Likewise.
26643 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
26644 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
26646 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
26648 * Makefile.in: Update copyright.
26649 * genmodsrc.sh: Likewise.
26650 * gensymlist.sh: Likewise.
26651 * term/i386/pc/vga.c: Indent correctly.
26653 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
26654 bugreporting address.
26655 * util/i386/pc/pupa-setup.c (usage): Likewise,
26656 (main): Call pupa_ext2_init and pupa_ext2_fini.
26658 * fs/fat.c (log2): Renamed to ...
26659 (fat_log2): ... this.
26660 All callers changed.
26661 * kern/misc.c (memcpy): Alias to pupa_memmove.
26662 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
26664 * util/console.c (pupa_ncurses_fini): Return 0.
26666 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
26667 Move fail label here.
26668 [__GNU__]: Don't warn when using stat.
26669 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
26670 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
26671 long int. Use strtol instead of strtoul.
26673 2004-03-14 Marco Gerards <metgerards@student.han.nl>
26675 * commands/boot.c: New file.
26676 * commands/cat.c: Likewise.
26677 * commands/cmp.c: Likewise.
26678 * commands/ls.c: Likewise.
26679 * commands/terminal.c: Likewise.
26680 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
26681 (pupa_register_command): Changed interface to match the new
26683 (pupa_command_execute): Changed (almost rewritten) so it uses
26684 pupa_split_command. Added support for setting variables using the
26686 (rescue_command): Changed to work with the new argument parser.
26687 (terminal_command): Moved from here to commands/terminal.c.
26688 (set_command): New function.
26689 (unset_command): New function.
26690 (insmod_command): New function.
26691 (rmmod_command): New function.
26692 (lsmod_command): New function.
26693 (pupa_command_init): Don't initialize the command terminal
26694 anymore. Initialize the commands set, unset, insmod, rmmod and
26696 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
26697 (kernel_img_HEADERS): Add arg.h and env.h.
26698 (pupa_mkimage_LDFLAGS): Add kern/env.c.
26699 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
26700 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
26702 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
26704 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
26705 (boot_mod_SOURCES): New variable.
26706 (terminal_mod_SOURCES): Likewise.
26707 (ls_mod_SOURCES): Likewise.
26708 (cmp_mod_SOURCES): Likewise.
26709 (cat_mod_SOURCES): Likewise.
26711 * normal/arg.c: New file.
26712 * kern/env.c: Likewise.
26713 * include/pupa/arg.h: Likewise.
26714 * include/pupa/env.h: Likewise.
26715 * font/manager.c (font_command): Changed to match argument parsing
26717 (PUPA_MOD_INIT): Likewise.
26718 * hello/hello.c (pupa_cmd_hello): Likewise.
26719 (PUPA_MOD_INIT): Likewise.
26720 * include/pupa/disk.h: Include <pupa/device.h>.
26721 (pupa_print_partinfo): New prototype.
26722 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
26723 (pupa_dl_get_prefix): Likewise.
26724 * include/pupa/misc.h: Include <pupa/err.h>.
26725 (pupa_isgraph): New prototype.
26726 (pupa_isdigit): Likewise.
26727 (pupa_split_cmdline): Likewise.
26728 * include/pupa/normal.h: Include <pupa/arg.h>.
26729 (pupa_command): Changed the prototype of the member `func' to
26730 match the argument parsing interface. Added member `options'.
26731 (pupa_register_command): Updated to match function.
26732 (pupa_arg_parse): New prototype.
26733 (pupa_hello_init) [PUPA_UTIL]: New prototype.
26734 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
26735 (pupa_ls_init) [PUPA_UTIL]: Likewise.
26736 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
26737 (pupa_cat_init) [PUPA_UTIL]: Likewise.
26738 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
26739 (pupa_boot_init) [PUPA_UTIL]: Likewise.
26740 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
26741 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
26742 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
26743 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
26744 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
26745 * kern/disk.c: Include <pupa/file.h>.
26746 (pupa_print_partinfo): New function.
26747 * kern/dl.c: Include <pupa/env.h>.
26748 (pupa_dl_dir): Variable removed.
26749 (pupa_dl_load): Use the environment variable `prefix' instead of
26750 the variable pupa_dl_dir.
26751 (pupa_dl_set_prefix): Function removed.
26752 (pupa_dl_get_prefix): Likewise.
26753 * kern/i386/pc/init.c: Include <pupa/env.h>.
26754 (pupa_machine_init): Use the environment variable `prefix' instead of
26755 using pupa_dl_set_prefix to set the prefix.
26756 * kern/main.c: Include <pupa/env.h>.
26757 (pupa_set_root_dev): Use the environment variable `prefix' instead of
26758 using pupa_dl_get_prefix to get the prefix.
26759 * kern/misc.c: Include <pupa/env.h>.
26760 (pupa_isdigit): New function.
26761 (pupa_isgraph): Likewise.
26762 (pupa_ftoa): Likewise.
26763 (pupa_vsprintf): Added support for printing values of the type
26764 `double'. Make it possible to format variable output when using
26765 formatting like `%1.2%f'.
26766 (pupa_split_cmdline): New function.
26767 * kern/rescue.c: Include <pupa/env.h>.
26768 (next_word): Removed function.
26769 (pupa_rescue_cmd_prefix): Likewise.
26770 (pupa_rescue_cmd_set): New function.
26771 (pupa_rescue_cmd_unset): New function.
26772 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
26773 split the command line instead of splitting it here. Added
26774 support for setting variables using the syntax `foo=bar'. Don't
26775 initialize the prefix command anymore. Initialized the set and
26777 * normal/cmdline.c: Include <pupa/env.h>.
26778 (pupa_tab_complete): Added prototypes for print_simple_completion,
26779 print_partition_completion, add_completion, iterate_commands,
26780 iterate_dev, iterate_part and iterate_dir. Moved code to print
26781 partition information from here to kern/disk.c.
26782 (pupa_cmdline_run): Don't check if the function exists anymore.
26783 * normal/main.c: Include <pupa/env.h>.
26784 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
26785 instead of using pupa_dl_get_prefix to get the prefix.
26786 * term/i386/pc/vga.c: Include <pupa/arg.h>.
26787 (check_vga_mem): Cast pointers to `void *' to silence a gcc
26789 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
26790 (pupa_vga_setcolor): Declare unused variables with `__attribute__
26791 ((unused))' to silence a gcc warning.
26792 (pupa_vga_setcolor): Likewise.
26793 (debug_command): Changed to match argument parsing
26795 * util/pupa-emu.c: Include <pupa/env.h>.
26796 (options): Added 0's for unused fields to silence a gcc warning.
26798 (main): Use the environment variable `prefix' instead of using
26799 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
26800 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
26803 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
26804 * util/misc.c: Include <malloc.h>.
26805 (pupa_malloc): Rewritten so errors are correctly reported.
26806 (pupa_realloc): Likewise.
26807 (pupa_memalign): Likewise.
26808 (pupa_mm_init_region): Declare unused variables with
26809 `__attribute__ ((unused))' to silence a gcc warning.
26810 * normal/i386/setjmp.S: Remove tab at the end of the file to
26811 silence a gcc warning.
26812 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
26813 variables with `__attribute__ ((unused))' to silence a gcc
26815 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
26816 local variable i unsigned to silence a gcc warning.
26818 * kern/term.c: Include <pupa/misc.h>.
26819 (pupa_more_lines): New variable.
26820 (pupa_more): Likewise.
26821 (pupa_putcode): When the pager is active pause at the end of every
26823 (pupa_set_more): New function.
26824 * include/pupa/term.h (pupa_set_more): New prototype.
26827 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
26829 Now this project is GRUB 2 rather than PUPA. The location of
26830 the CVS repository was moved to GRUB's.
26832 * configure.ac: Use bug-grub as the reporting address.
26833 Use GRUB instead of PUPA.
26834 Change the version number to 1.90.
26836 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
26838 * genkernsyms.sh: Updated copyright information.
26839 * genmk.rb: Likewise.
26840 * genmodsrc.sh: Likewise.
26841 * gensymlist.sh: Likewise.
26842 * boot/i386/pc/boot.S: Likewise.
26843 * boot/i386/pc/diskboot.S: Likewise.
26844 * disk/i386/pc/biosdisk.c: Likewise.
26845 * disk/i386/pc/partition.c: Likewise.
26846 * font/manager.c: Likewise.
26847 * fs/ext2.c: Likewise.
26848 * fs/fat.c: Likewise.
26849 * include/pupa/boot.h: Likewise.
26850 * include/pupa/device.h: Likewise.
26851 * include/pupa/disk.h: Likewise.
26852 * include/pupa/dl.h: Likewise.
26853 * include/pupa/elf.h: Likewise.
26854 * include/pupa/err.h: Likewise.
26855 * include/pupa/file.h: Likewise.
26856 * include/pupa/font.h: Likewise.
26857 * include/pupa/fs.h: Likewise.
26858 * include/pupa/kernel.h: Likewise.
26859 * include/pupa/loader.h: Likewise.
26860 * include/pupa/misc.h: Likewise.
26861 * include/pupa/mm.h: Likewise.
26862 * include/pupa/net.h: Likewise.
26863 * include/pupa/normal.h: Likewise.
26864 * include/pupa/rescue.h: Likewise.
26865 * include/pupa/setjmp.h: Likewise.
26866 * include/pupa/symbol.h: Likewise.
26867 * include/pupa/term.h: Likewise.
26868 * include/pupa/types.h: Likewise.
26869 * include/pupa/i386/setjmp.h: Likewise.
26870 * include/pupa/i386/types.h: Likewise.
26871 * include/pupa/i386/pc/biosdisk.h: Likewise.
26872 * include/pupa/i386/pc/boot.h: Likewise.
26873 * include/pupa/i386/pc/console.h: Likewise.
26874 * include/pupa/i386/pc/init.h: Likewise.
26875 * include/pupa/i386/pc/kernel.h: Likewise.
26876 * include/pupa/i386/pc/linux.h: Likewise.
26877 * include/pupa/i386/pc/loader.h: Likewise.
26878 * include/pupa/i386/pc/memory.h: Likewise.
26879 * include/pupa/i386/pc/multiboot.h: Likewise.
26880 * include/pupa/i386/pc/partition.h: Likewise.
26881 * include/pupa/i386/pc/time.h: Likewise.
26882 * include/pupa/i386/pc/vga.h: Likewise.
26883 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
26884 * include/pupa/util/getroot.h: Likewise.
26885 * include/pupa/util/misc.h: Likewise.
26886 * include/pupa/util/resolve.h: Likewise.
26887 * kern/device.c: Likewise.
26888 * kern/disk.c: Likewise.
26889 * kern/dl.c: Likewise.
26890 * kern/err.c: Likewise.
26891 * kern/file.c: Likewise.
26892 * kern/fs.c: Likewise.
26893 * kern/loader.c: Likewise.
26894 * kern/main.c: Likewise.
26895 * kern/misc.c: Likewise.
26896 * kern/mm.c: Likewise.
26897 * kern/rescue.c: Likewise.
26898 * kern/term.c: Likewise.
26899 * kern/i386/dl.c: Likewise.
26900 * kern/i386/pc/init.c: Likewise.
26901 * kern/i386/pc/lzo1x.S: Likewise.
26902 * kern/i386/pc/startup.S: Likewise.
26903 * loader/i386/pc/chainloader.c: Likewise.
26904 * loader/i386/pc/linux.c: Likewise.
26905 * loader/i386/pc/multiboot.c: Likewise.
26906 * normal/cmdline.c: Likewise.
26907 * normal/command.c: Likewise.
26908 * normal/main.c: Likewise.
26909 * normal/menu.c: Likewise.
26910 * normal/i386/setjmp.S: Likewise.
26911 * term/i386/pc/console.c: Likewise.
26912 * term/i386/pc/vga.c: Likewise.
26913 * util/console.c: Likewise.
26914 * util/genmoddep.c: Likewise.
26915 * util/misc.c: Likewise.
26916 * util/pupa-emu.c: Likewise.
26917 * util/resolve.c: Likewise.
26918 * util/unifont2pff.rb: Likewise.
26919 * util/i386/pc/biosdisk.c: Likewise.
26920 * util/i386/pc/getroot.c: Likewise.
26921 * util/i386/pc/pupa-mkimage.c: Likewise.
26922 * util/i386/pc/pupa-setup.c: Likewise.
26924 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
26926 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
26927 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
26928 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
26929 reading and reset it after reading.
26930 (pupa_ext2_close): Return PUPA_ERR_NONE.
26932 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
26934 (struct linux_kernel_header): Add kernel_version and
26936 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
26937 pupa_file_read succeeds.
26938 (pupa_rescue_cmd_initrd): Implement.
26940 2003-12-03 Marco Gerards <metgerards@student.han.nl>
26942 * fs/ext2.c (pupa_ext2_label): New function.
26943 (pupa_ext2_fs): Added label.
26944 * fs/fat.c (pupa_fat_label): New function.
26945 (pupa_fat_fs): Added label.
26946 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
26948 * kern/misc.c (pupa_strndup): New function.
26949 * include/pupa/misc.h (pupa_strndup): New prototype.
26951 * include/pupa/normal.h: Include <pupa/err.h>.
26952 (pupa_set_history): New prototype.
26953 (pupa_iterate_commands): New prototype.
26954 * normal/cmdline.c: Include <pupa/machine/partition.h>,
26955 <pupa/disk.h>, <pupa/file.h>.
26956 (hist_size): New variable.
26957 (hist_lines): Likewise.
26958 (hist_end): Likewise.
26959 (hist_used): Likewise.
26960 (pupa_set_history): New function.
26961 (pupa_history_get): Likewise.
26962 (pupa_history_add): Likewise.
26963 (pupa_history_replace): Likewise.
26964 (pupa_tab_complete): Likewise.
26965 (pupa_cmdline_run): Added tab completion and history buffer. Tab
26966 completion shows partitionnames while completing partitions, this
26967 feature was suggested by Jeff Bailey.
26968 * normal/command.c (pupa_iterate_commands): New function.
26969 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
26970 (pupa_normal_init): Initialize history buffer.
26971 (PUPA_MOD_INIT): Likewise.
26972 (pupa_normal_fini): Free the history buffer.
26973 (PUPA_MOD_FINI): Likewise.
26975 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
26978 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
26979 * configure.ac [i386]: Check for regparam bug.
26980 (NESTED_FUNC_ATTR) [! i386]: Defined.
26982 2003-11-17 Marco Gerards <metgerards@student.han.nl>
26984 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
26985 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
26986 (pupa_emu_SOURCES): New variable.
26987 (pupa_emu_LDFLAGS): Likewise.
26988 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
26989 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
26990 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
26991 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
26992 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
26993 (pupa_jmp_buf): New typedef.
26994 (pupa_setjmp) [PUPA_UTIL]: New macro.
26995 (pupa_longjmp) [PUPA_UTIL]: Likewise.
26996 * include/pupa/term.h (struct pupa_term): New member `refresh'.
26997 (pupa_refresh): New prototype.
26998 * include/pupa/util/getroot.h: New file.
26999 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
27001 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
27002 (pupa_rescue_cmd_cat): Likewise.
27003 (pupa_rescue_cmd_ls): Likewise.
27004 (pupa_rescue_cmd_testload): Likewise.
27005 (pupa_rescue_cmd_lsmod): Likewise.
27006 * normal/cmdline.c (pupa_cmdline_get): Likewise.
27007 * normal/menu.c (run_menu): Likewise.
27008 * kern/term.c (pupa_cls): Likewise.
27009 (pupa_refresh): New function.
27010 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
27011 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
27012 * util/console.c: New file.
27014 * util/i386/pc/getroot.c: New file.
27015 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
27016 (pupa_putchar): New function.
27017 (pupa_refresh): Likewise.
27018 (xgetcwd): Function moved to ...
27019 (strip_extra_slashes): Likewise.
27020 (get_prefix): Likewise.
27021 * util/i386/pc/getroot.c: ... here.
27022 (find_root_device): Function moved and renamed to...
27023 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
27024 Changed all callers.
27025 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
27027 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
27028 Changed all callers.
27029 * util/misc.c (pupa_memalign): New function.
27030 (pupa_mm_init_region): Likewise.
27031 (pupa_register_exported_symbols): Likewise.
27032 (pupa_putchar): Function removed.
27033 * util/pupa-emu.c: New file.
27035 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
27037 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
27038 (_multiboot_mod_SOURCES): New variable.
27039 (_multiboot_mod_CFLAGS): Likewise.
27040 * loader/i386/pc/multiboot.c: New file.
27041 * include/pupa/i386/pc/multiboot.h: Likewise.
27042 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
27043 (pupa_multiboot_real_boot): New function.
27044 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
27045 (pupa_multiboot_real_boot): New prototype.
27046 (pupa_rescue_cmd_multiboot): Likewise
27047 (pupa_rescue_cmd_module): Likewise.
27049 * kern/loader.c (pupa_loader_set): Continue when
27050 pupa_loader_unload_func() fails.
27051 (pupa_loader_unset): New function.
27052 * include/pupa/loader.h (pupa_loader_unset): New prototype.
27054 * kern/misc.c (pupa_stpcpy): New function.
27055 * include/pupa/misc.h (pupa_stpcpy): New prototype.
27057 2003-11-12 Marco Gerards <metgerards@student.han.nl>
27059 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
27060 for available extensions.
27062 * include/pupa/i386/pc/time.h: New file.
27063 * kern/disk.c: Include <pupa/machine/time.h>.
27064 (PUPA_CACHE_TIMEOUT): New macro.
27065 (pupa_last_time): New variable.
27066 (pupa_disk_open): Flush the cache when there was a timeout.
27067 (pupa_disk_close): Reset the timer.
27068 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
27070 * util/misc.c: Include <sys/times.h>
27071 (pupa_get_rtc): New function.
27073 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
27075 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
27077 (pupa_ext2_get_file_block): Use blocks member.
27079 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
27080 first block. Return -1 instead of pupa_errno on error.
27082 2003-10-27 Marco Gerards <metgerards@student.han.nl>
27084 * README: In the pupa-mkimage example use _chain instead of chain
27085 and ext2 instead of fat.
27086 * TODO: Replace ext2fs with jfs as an example. Add an item for
27087 adding journal playback for ext2fs.
27088 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
27089 (pkgdata_MODULES): Added ext2.mod.
27090 (ext2_mod_SOURCES): New variable.
27091 (ext2_mod_CFLAGS): Likewise.
27092 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
27093 * include/pupa/misc.h (pupa_strncpy): New prototype.
27094 (pupa_strcat): Likewise.
27095 (pupa_strncmp): Likewise.
27096 * kern/misc.c (pupa_strcat): Enable function.
27097 (pupa_strncpy): New function.
27098 (pupa_strncmp): Likewise.
27099 * fs/ext2.c: New file.
27101 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
27102 when the read failed before retrying.
27103 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
27104 (_FILE_OFFSET_BITS): Likewise.
27105 * configure.ac: Added AC_SYS_LARGEFILE.
27107 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27109 * genmk.rb (PModule#rule): Make sure to get only symbol names
27110 from the output of nm.
27111 Reported by Robert Millan <rmh.grub@aybabtu.com>.
27113 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
27115 I forgot to check in these changes for a long time. This adds
27116 incomplete support for VGA console, and this is still very
27117 buggy. Also, a lot of consideration is required for I18N,
27118 UNICODE, and VGA font issues. Therefore, assume that this is
27119 such that "better than nothing".
27121 * font/manager.c: New file.
27122 * include/pupa/font.h: Likewise.
27123 * include/pupa/i386/pc/vga.h: Likewise.
27124 * term/i386/pc/vga.c: Likewise.
27125 * util/unifont2pff.rb: Likewise.
27127 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
27128 (pkgdata_MODULES): Added vga.mod and font.mod.
27129 (vga_mod_SOURCES): New variables.
27130 (vga_mod_CFLAGS): Likewise.
27131 (font_mod_SOURCES): Likewise.
27132 (font_mod_CFLAGS): Likewise.
27134 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
27136 * include/pupa/term.h: Include pupa/err.h.
27137 (struct pupa_term): Added init and fini.
27138 Changed the argument of putchar to pupa_uint32_t.
27140 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
27141 (pupa_console_real_putchar): New prototype.
27142 (pupa_console_putchar): Removed.
27143 (pupa_console_checkkey): Exported.
27144 (pupa_console_getkey): Likewise.
27146 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
27149 * kern/term.c (pupa_term_set_current): Rewritten.
27150 (pupa_putchar): Likewise.
27151 (pupa_putcode): New function.
27153 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
27154 (pupa_console_real_putchar): ... this.
27155 (pupa_vga_set_mode): New function.
27156 (pupa_vga_get_font): Likewise.
27158 * normal/command.c: Include pupa/term.h.
27159 (terminal_command): New function.
27160 (pupa_command_init): Register the command "terminal".
27162 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
27163 (DISP_UP): Likewise.
27164 (DISP_RIGHT): Likewise.
27165 (DISP_DOWN): Likewise.
27166 (DISP_HLINE): Likewise.
27167 (DISP_VLINE): Likewise.
27168 (DISP_UL): Likewise.
27169 (DISP_UR): Likewise.
27170 (DISP_LL): Likewise.
27171 (DISP_LR): Likewise.
27173 * term/i386/pc/console.c (pupa_console_putchar): New function.
27175 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
27177 * util/resolve.c (pupa_util_resolve_dependencies): BUG
27178 FIX. Reverse the path_list.
27180 * include/pupa/normal.h: Export pupa_register_command and
27181 pupa_unregister_command.
27183 * hello/hello.c (pupa_cmd_hello): New module.
27184 * conf/i386-pc.rmk: Added hello.mod.
27186 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
27188 * kern/i386/pc/lzo1x.S: New file.
27190 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
27191 (compress_kernel): New variable.
27192 (generate_image): Heavily modified to support compressing a
27193 large part of the core image.
27195 * util/misc.c (pupa_util_read_image): Fix a file descriptor
27197 (pupa_util_load_image): New function.
27199 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
27200 (pupa_compressed_size): New variable.
27201 (codestart): Enable Gate A20 here.
27202 Decompress the compressed part of the core image.
27203 Rearrange the code to put functions and variables which are
27204 required for initialization in the non-compressed part.
27207 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
27210 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
27212 * include/pupa/i386/pc/kernel.h
27213 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
27214 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
27215 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27216 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27217 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
27219 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
27221 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
27222 (Utility#rule): Likewise.
27224 * configure.ac: Check if LZO is available.
27226 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
27228 * include/pupa/normal.h: New file.
27229 * include/pupa/setjmp.h: Likewise.
27230 * include/pupa/i386/setjmp.h: Likewise.
27231 * normal/cmdline.c: Likewise.
27232 * normal/command.c: Likewise.
27233 * normal/main.c: Likewise.
27234 * normal/menu.c: Likewise.
27235 * normal/i386/setjmp.S: Likewise.
27237 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
27238 (pupa_rescue_cmd_initrd): Likewise.
27240 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
27243 * kern/i386/pc/startup.S (translation_table): New variable.
27244 (translate_keycode): New function.
27245 (pupa_console_getkey): Call translate_keycode.
27247 * kern/rescue.c (attempt_normal_mode): New function.
27248 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
27249 it failed, print a message.
27251 * kern/mm.c (pupa_real_malloc): Print more information when a
27252 free magic is broken.
27253 (pupa_free): If the first free header is not free actually, set
27256 * kern/main.c (pupa_load_normal_mode): Just load the module
27258 (pupa_main): Don't print the message
27259 "Entering into rescue mode..." here.
27261 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
27263 (pupa_rescue_cmd_initrd): Likewise.
27264 (pupa_rescue_cmd_initrd): Likewise.
27266 * include/pupa/symbol.h (FUNCTION): Specify the type.
27267 (VARIABLE): Likewise.
27269 * include/pupa/err.h (pupa_err_t): Added
27270 PUPA_ERR_UNKNOWN_COMMAND.
27272 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
27273 (pupa_dl_get_prefix): Likewise.
27275 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
27276 Added _chain.mod and _linux.mod instead of chain.mod and
27278 (chain_mod_SOURCES): Renamed to ...
27279 (_chain_mod_SOURCES): ... this.
27280 (chain_mod_CFLAGS): Renamed to ...
27281 (_chain_mod_CFLAGS): ... this.
27282 (linux_mod_SOURCES): Renamed to ...
27283 (_linux_mod_SOURCES): ... this.
27284 (linux_mod_CFLAGS): Renamed to ...
27285 (_linux_mod_CFLAGS): ... this.
27286 (normal_mod_SOURCES): New variable.
27287 (normal_mod_CFLAGS): Likewise.
27288 (normal_mod_ASFLAGS): Likewise.
27290 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
27292 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
27295 * kern/dl.c (pupa_dl_ref): Refer depending modules
27297 (pupa_dl_unref): Unrefer depending modules recursively.
27298 Don't call pupa_dl_unload implicitly, because PUPA can crash if
27299 a module is unloaded before one depending on that module is
27301 (pupa_dl_unload): Unload depending modules explicitly,
27304 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
27306 * include/pupa/i386/pc/linux.h: New file.
27307 * loader/i386/pc/linux.c: Likewise.
27309 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
27311 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
27312 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
27313 of PUPA_CHAINLOADER_BOOT_SECTOR.
27315 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
27316 (pupa_linux_prot_size): New variable.
27317 (pupa_linux_tmp_addr): Likewise.
27318 (pupa_linux_real_addr): Likewise.
27319 (pupa_linux_boot_zimage): New function.
27320 (pupa_linux_boot_bzimage): Likewise.
27322 * kern/i386/pc/init.c (struct mem_region): New structure.
27323 (MAX_REGIONS): New macro.
27324 (mem_regions): New variable.
27325 (num_regions): Likewise.
27326 (pupa_os_area_addr): Likewise.
27327 (pupa_os_area_size): Likewise.
27328 (pupa_lower_mem): Likewise.
27329 (pupa_upper_mem): Likewise.
27330 (add_mem_region): New function.
27331 (compact_mem_regions): Likewise.
27332 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
27333 the size of the conventional memory and that of so-called upper
27334 memory (before the first memory hole).
27335 Instead of adding each found region to free memory, use
27336 add_mem_region and add them after removing overlaps.
27337 Also, add only 1/4 of the upper memory to free memory. The rest
27338 is used for loading OS images. Maybe this is ad hoc, but this
27339 makes it much easier to relocate OS images when booting.
27341 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
27342 (pupa_enter_rescue_mode): Don't register initrd and module.
27344 * kern/mm.c: Include pupa/dl.h.
27346 * kern/main.c: Include pupa/file.h and pupa/device.h.
27348 * kern/loader.c (pupa_loader_load_module_func): Removed.
27349 (pupa_loader_load_module): Likewise.
27351 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
27354 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
27355 (pupa_linux_tmp_addr): Likewise.
27356 (pupa_linux_real_addr): Likewise.
27357 (pupa_linux_boot_zimage): Likewise.
27358 (pupa_linux_boot_bzimage): Likewise.
27360 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
27361 (pupa_upper_mem): Likewise.
27362 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
27363 module is too dangerous.
27365 * include/pupa/loader.h (pupa_os_area_addr): Declared.
27366 (pupa_os_area_size): Likewise.
27367 (pupa_loader_set): Remove the first argument. Loader doesn't
27368 manage modules or initrd any longer.
27369 (pupa_loader_load_module): Removed.
27371 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
27372 (linux_mod_SOURCES): New variable.
27373 (linux_mod_CFLAGS): Likewise.
27375 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
27377 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
27378 the length of a blocklist correctly.
27380 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
27381 Use ioctl only if the OS file is a block device.
27382 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
27383 not very useful for normal files.
27385 * kern/main.c (pupa_set_root_dev): New function.
27386 (pupa_load_normal_mode): Likewise.
27387 (pupa_main): Call those above.
27389 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
27392 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
27394 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27396 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
27397 (setup): Configure the installed partition information and the
27400 * loader/i386/pc/chainloader.c (my_mod): New variable.
27401 (pupa_chainloader_unload): New function.
27402 (pupa_rescue_cmd_chainloader): Refer itself.
27403 (PUPA_MOD_INIT): Save its own module in MY_MOD.
27405 * kern/i386/pc/startup.S (install_partition): Removed.
27406 (version_string): Likewise.
27407 (config_file): Likewise.
27408 (pupa_install_dos_part): New variable.
27409 (pupa_install_bsd_part): Likewise.
27410 (pupa_prefix): Likewise.
27411 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
27413 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
27415 (make_install_device): New function.
27416 (pupa_machine_init): Set the dl prefix.
27418 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
27419 (buf): Renamed to ...
27420 (linebuf): ... this.
27421 (pupa_rescue_cmd_prefix): New function.
27422 (pupa_rescue_cmd_insmod): Likewise.
27423 (pupa_rescue_cmd_rmmod): Likewise.
27424 (pupa_rescue_cmd_lsmod): Likewise.
27425 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
27428 * kern/mm.c (pupa_memalign): If failed even after invalidating
27429 disk caches, unload unneeded modules and retry.
27431 * kern/misc.c (pupa_memmove): New function.
27432 (pupa_memcpy): Removed.
27433 (pupa_strcpy): New function.
27434 (pupa_itoa): Made static.
27436 * kern/dl.c (pupa_dl_iterate): New function.
27437 (pupa_dl_ref): Likewise.
27438 (pupa_dl_unref): Likewise.
27439 (pupa_dl_unload): Return if succeeded or not.
27440 (pupa_dl_unload_unneeded): New function.
27441 (pupa_dl_unload_all): Likewise.
27442 (pupa_dl_init): Renamed to ...
27443 (pupa_dl_set_prefix): ... this.
27444 (pupa_dl_get_prefix): New function.
27446 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
27447 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
27448 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
27449 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
27450 (pupa_install_dos_part): Declared.
27451 (pupa_install_bsd_part): Likewise.
27452 (pupa_prefix): Likewise.
27453 (pupa_boot_drive): Likewise.
27455 * include/pupa/types.h: Fix a typo.
27457 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
27459 (pupa_memmove): Declared.
27460 (pupa_strcpy): Likewise.
27462 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
27463 pupa_mod_init takes one argument, its own module.
27464 (pupa_dl_unload_unneeded): Declared.
27465 (pupa_dl_unload_all): Likewise.
27466 (pupa_dl_ref): Likewise.
27467 (pupa_dl_unref): Likewise.
27468 (pupa_dl_iterate): Likewise.
27469 (pupa_dl_init): Renamed to ...
27470 (pupa_dl_set_prefix): ... this.
27471 (pupa_dl_get_prefix): Declared.
27473 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
27474 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
27476 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
27477 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
27479 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
27480 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
27482 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
27484 * util/i386/pc/pupa-setup.c (setup): Define the internal
27485 function find_first_partition_start at the top level, because GCC
27486 3.0.x cannot compile internal functions in deeper scopes
27488 (find_root_device): Use lstat instead of stat.
27489 Don't follow symbolic links.
27490 Fix the path-constructing code.
27492 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
27493 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
27494 by a BLKGETSIZE ioctl first, because block devices don't fill
27495 the member st_mode of the structure stat on Linux.
27496 [__linux__] (linux_find_partition): Use a temporary buffer
27497 REAL_DEV for the working space. Copy it to DEV before returning.
27498 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
27499 buffer cache consistent.
27500 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
27501 strncmp. The previous value was merely wrong.
27502 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
27504 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
27505 FAT size is 12. The previous value was merely wrong.
27507 * kern/main.c (pupa_main): Don't split the starting message from
27510 * kern/term.c (pupa_putchar): Put CR after LF instead of before
27511 LF, because BIOS goes crazy about character attributes in this
27514 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
27516 * include/i386/pc/util/biosdisk.h: New file.
27517 * util/i386/pc/biosdisk.c: Likewise.
27518 * util/i386/pc/pupa-setup.c: Likewise.
27520 * Makefile.in (INCLUDE_DISTFILES): Added
27521 include/pupa/i386/pc/util/biosdisk.h.
27522 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
27523 directory util/i386/pc.
27524 (install-local): Added a rule for sbin_UTILITIES.
27525 (uninstall): Likewise.
27527 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
27529 * util/misc.c (xrealloc): New function.
27530 (pupa_malloc): Likewise.
27531 (pupa_free): Likewise.
27532 (pupa_realloc): Likewise.
27533 (pupa_stop): Likewise.
27534 (pupa_putchar): Likewise.
27536 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
27538 * include/pupa/util/misc.h (xrealloc): Declared.
27540 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
27542 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
27543 (PUPA_BOOT_MACHINE_BPB_END): ... this.
27545 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
27546 [PUPA_UTIL] (pupa_fat_fini): Likewise.
27548 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
27549 way should be implemented.
27550 [PUPA_UTIL] (pupa_fat_fini): Likewise.
27552 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
27553 the size of NAME for safety.
27554 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
27557 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
27558 (pupa_setup_SOURCES): Likewise.
27560 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
27562 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
27564 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
27565 bunch of pushl's from pusha, because this destroys the return
27568 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
27570 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
27571 This means that any missing prototypes could be fatal. Also, you
27572 must take care when writing assembly code. See the comments at
27573 the beginning of startup.S, for more details.
27575 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
27576 compilation mechanism.
27577 (pupa_chainloader_real_boot): Likewise.
27578 (pupa_biosdisk_rw_int13_extensions): Likewise.
27579 (pupa_biosdisk_rw_standard): Likewise.
27580 (pupa_biosdisk_check_int13_extensions): Likewise.
27581 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
27582 (pupa_biosdisk_get_diskinfo_standard): Likewise.
27583 (pupa_get_memsize): Likewise.
27584 (pupa_get_mmap_entry): Likewise.
27585 (pupa_console_putchar): Likewise.
27586 (pupa_console_setcursor): Likewise.
27587 (pupa_getrtsecs): Use pushl instead of push.
27589 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
27590 memory instead of the stack for a mmap entry, because some
27591 BIOSes may ignore the maximum size and overflow.
27593 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
27595 * genmk.rb (PModule#rule): Compile automatically generated
27596 sources with module-specific CFLAGS as well as other sources.
27598 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27600 * configure.ac: Check ld.
27601 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
27602 respectively, before checking endianness and sizes.
27604 * Makefile.in (LD): New variable.
27606 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27608 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
27610 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
27612 * Changelog: New file.