]> git.proxmox.com Git - grub2.git/blob - ChangeLog
2010-08-01 Robert Millan <rmh@gnu.org>
[grub2.git] / ChangeLog
1 2010-08-01 Robert Millan <rmh@gnu.org>
2
3 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
4
5 2010-07-31 Robert Millan <rmh@gnu.org>
6
7 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
8
9 2010-07-31 Robert Millan <rmh@gnu.org>
10
11 * kern/emu/misc.c: Add missing license header.
12
13 2010-07-31 Robert Millan <rmh@gnu.org>
14
15 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
16
17 * include/grub/util/libnvpair.h: Include `<config.h>'.
18 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
19 declaring libnvpair prototypes ourselves.
20 * include/grub/util/libzfs.h: Include `<config.h>'.
21 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
22 declaring libzfs prototypes ourselves.
23
24 (libzfs_handle): Moved to ...
25 * include/grub/util/misc.h (libzfs_handle): ... here.
26 Include `<grub/util/libzfs.h>'.
27
28 2010-07-30 Robert Millan <rmh@gnu.org>
29
30 * include/grub/emu/misc.h: Add missing license header.
31
32 2010-07-30 Robert Millan <rmh@gnu.org>
33
34 Enable `grub-probe -t device' resolution on ZFS.
35
36 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
37 * include/grub/util/libnvpair.h: New file.
38 * include/grub/util/libzfs.h: New file.
39
40 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
41 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
42 `<grub/util/libnvpair.h>'.
43 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
44
45 (find_mount_point_from_dir): New static function.
46 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
47 function.
48 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
49 find_root_device_from_libzfs() before ressorting to find_root_device().
50
51 * include/grub/util/misc.h (grub_util_init_libzfs): New function
52 prototype.
53 * util/misc.c: Include `<grub/util/libzfs.h>'.
54 (grub_util_init_libzfs): New function.
55 [HAVE_LIBZFS] (libzfs_handle): New global variable.
56 [HAVE_LIBZFS] (fini_libzfs): New static function.
57 (grub_util_init_libzfs): New function.
58 * util/grub-probe.c (main): Call grub_util_init_libzfs().
59
60 2010-07-30 Robert Millan <rmh@gnu.org>
61
62 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
63 (xmalloc, xrealloc, xstrdup, xasprintf): Add
64 `warn_unused_result' attribute.
65 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
66 (grub_xasprintf, grub_xvasprintf): Likewise.
67 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
68
69 2010-07-29 Robert Millan <rmh@gnu.org>
70
71 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
72 (probe): Handle `PRINT_FS_LABEL'.
73 (main): Handle `-t fs_label'.
74
75 2010-07-29 Robert Millan <rmh@gnu.org>
76
77 * configure.ac: Remove grub-mkisofs checks.
78
79 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
80
81 * util/ieee1275/grub-install.in: Don't use empty grub_device.
82 Reported by: Lennart Sorensen.
83
84 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
85
86 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
87 prior to terminal_input/terminal_output separation. It's been over 1.5
88 years and those versions weren't widely deployed.
89
90 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
91
92 * disk/raid.c (insert_array): Don't count named arrays when looking
93 for unused array numbers.
94 Reported and tested by: Michael Guntsche.
95
96 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
97
98 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
99 implementation of this so that grub-emu links again, with a note
100 that this should support hotplugging in the future.
101
102 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
103
104 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
105
106 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
107
108 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
109 handle on failure.
110 (grub_loopback_close): Remove empty function.
111 (grub_loopback_dev): Remove close method.
112
113 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
114
115 Disable EFI cursor when the EFI console becomes inactive.
116
117 * term/efi/console.c (grub_efi_console_init): New function.
118 (grub_efi_console_fini): New function.
119 (grub_console_term_output): Register init and fini methods.
120
121 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
122
123 * tests/util/grub-shell-tester.in: Remove bashism and declare as
124 sh script.
125
126 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
127
128 * disk/loopback.c (grub_loopback): Replace filename with file.
129 (delete_loopback): Handle new semantics.
130 (grub_cmd_loopback): Likewise.
131 (grub_loopback_iterate): Likewise.
132 (grub_loopback_close): Likewise.
133
134 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
135
136 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
137 with -p "".
138 Reported by: Tito Keitel.
139
140 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
141
142 * docs/grub.texi (Naming convention): Document new naming convention.
143
144 2010-07-20 Vadim Solomin <vadic052@gmail.com>
145 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
146
147 Generate device.map in something closer to the old ordering.
148
149 * util/deviceiter.c (struct device): New declaration.
150 (compare_file_names): Rename to ...
151 (compare_devices): ... this. Sort by kernel name in preference to
152 the stable by-id name, but keep the latter as a fallback comparison.
153 Update header comment.
154 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
155 of `struct device' rather than of plain file names.
156
157 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
158
159 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
160 on i386.
161
162 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
163
164 * commands/acpi.c (setup_common_tables): Use sizeof instead of
165 hardcoding size.
166 (setv1table): Likewise.
167
168 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
169
170 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
171 removing the homehost if present.
172 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
173 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
174 removing the homehost if present.
175 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
176 if possible.
177 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
178
179 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
180 parameter. Set its pointer target to 0.
181 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
182 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
183 `data_offset' value from the superblock for 1.x metadata.
184 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
185 data on the device.
186 (insert_array): Record the start sector of data on the device.
187 (grub_raid_register): Pass start_sector parameters to
188 grub_raid_list->detect and insert_array.
189 * include/grub/raid.h (struct grub_raid_array): Add start_sector
190 member.
191 (struct grub_raid): Add start_sector parameter to `detect'.
192
193 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
194 __attribute__ ((packed)), leaving a comment.
195 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
196 (grub_mdraid_detect_09): ... here and ...
197 (grub_mdraid_detect_1x): ... here.
198
199 2010-07-20 Peter Henn <peter.henn@web.de>
200
201 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
202 chunk size and disk size, which are already given as sector counts
203 as distinct from the 0.90 units. Fetch the correct device number
204 from the role table instead of using the table index.
205
206 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
207
208 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
209 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
210 (WriteMostly1): New macro.
211 Set array->name to NULL for metadata format 0.90. Add support for
212 metadata 1.x. Fix some comments.
213 * disk/raid.c (): Add support for name based RAID arrays. Fix a
214 few comments.
215 * util/getroot.c (grub_util_get_grub_dev): Add support for
216 /dev/md/name style devices.
217
218 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
219
220 * .bzrignore: Ignore 20_linux_xen.
221
222 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
223
224 * util/import_unicode.py: Remove unnecessary imports.
225
226 2010-07-17 Aleš Nesrsta <starous@volny.cz>
227
228 Hotplugging and USB hub support.
229
230 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
231 (grub_ohci): Likewise.
232 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
233 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
234 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
235 (GRUB_OHCI_CTRL_EDS): Likewise.
236 (GRUB_OHCI_BULK_EDS): Likewise.
237 (GRUB_OHCI_TDS): Likewise.
238 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
239 (grub_ohci_ed_phys2virt): New function.
240 (grub_ohci_virt_to_phys): Likewise.
241 (grub_ohci_td_phys2virt): Likewise.
242 (grub_ohci_td_virt2phys): Likewise.
243 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
244 attachment.
245 (grub_ohci_find_ed): New function.
246 (grub_ohci_alloc_td): Likewise.
247 (grub_ohci_free_td): Likewise.
248 (grub_ohci_free_tds): Likewise.
249 (grub_ohci_transfer): Use previously allocated memory.
250 (grub_ohci_portstatus): Reset status changed bit.
251 (grub_ohci_detect_dev): Supply status changed.
252 (grub_ohci_fini_hw): Free memory.
253 (grub_ohci_restore_hw): Reallocate memory.
254 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
255 Reset status change.
256 (grub_uhci_detect_dev): Supply status_change.
257 * bus/usb/usb.c (attach_hooks): New var.
258 (grub_usb_device_attach): New function.
259 (grub_usb_register_attach_hook_class): Likewise.
260 (grub_usb_unregister_attach_hook_class): Likewise.
261 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
262 (grub_usb_add_hub): Reset connection changed bit.
263 (attach_root_port): New function.
264 (grub_usb_root_hub): Likewise.
265 (poll_nonroot_hub): Likewise.
266 (grub_usb_poll_devices): Likewise.
267 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
268 * disk/usbms.c (grub_usbms_open): Use device hooks.
269 (grub_usbms_iterate) :Poll devices.
270 (grub_usbms_finddevs): Split into ...
271 (grub_usbms_attach): ... this ...
272 (grub_usbms_attach): ... and this.
273 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
274 in detect_dev.
275 (grub_usb_interface): New fields attached and detach_hook.
276 (grub_usb_attach_hook_class): New type.
277 (grub_usb_attach_desc): New struct.
278 (grub_usb_register_attach_hook_class): New function.
279 (grub_usb_unregister_attach_hook_class): Likewise.
280 (grub_usb_poll_devices): Likewise.
281 (grub_usb_device_attach): Likewise.
282 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
283 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
284
285 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
286
287 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
288 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
289 delta determination style. Works with most NetBSD partitions too.
290
291 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
292
293 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
294 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
295
296 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
297
298 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
299
300 2010-07-14 Anton Blanchard <anton@samba.org>
301
302 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
303 ET_DYN files.
304
305 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
306
307 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
308
309 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
310
311 * kern/partition.c (grub_partition_check_containment): New function to
312 check that a partition is physically contained in a parent. Since
313 offsets are relative (and non-negative), this reduces to checking that
314 the partition ends before its parent.
315 (grub_partition_map_probe): Discard out-of-range sub-partitions.
316 (grub_partition_iterate): Likewise.
317 * include/grub/partition.h (grub_partition_map): Slightly more detailed
318 comments.
319 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
320 partitions that start before their parent, and add debug printfs.
321
322 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
323
324 * Makefile.in (.SUFFIX): Spell correctly, as ...
325 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
326 bare module name without `.mod', e.g. `test') tried to invoke a
327 Modula-2 compiler.
328
329 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
330
331 * README: Point to the Info manual.
332
333 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
334
335 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
336 2nd superblock position from partition size.
337
338 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
339
340 * Makefile.in (MAINTAINER_CLEANFILES): Remove
341 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
342 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
343 outputs.
344
345 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
346
347 Restructure SCSI .id handling.
348 Reported and tested by: Aleš Nesrsta.
349
350 * disk/ata.c (grub_atapi_close): Removed. All users updated.
351 (grub_atapi_dev): Changed .name to "ata". New field .id.
352 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
353 (grub_usbms_dev): New field .id.
354 * disk/scsi.c (grub_scsi_iterate): Generate name.
355 (grub_scsi_open): Parse name.
356 * include/grub/scsi.h (grub_make_scsi_id): New function.
357 (grub_scsi_dev): Change iterate and open to number instead of naming
358 busses. All users updated.
359 (grub_scsi): Remove name. Add .bus.
360
361 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
362
363 * commands/help.c (grub_cmd_help): Fix a typo.
364
365 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
366
367 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
368 Reported and tested by: Colin Watson.
369
370 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
371
372 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
373 in this context.
374
375 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
376
377 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
378
379 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
380
381 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
382 indentation.
383
384 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
385
386 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
387 and disk/raid6_recover.c.
388 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
389 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
390
391 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
392
393 * term/gfxterm.c (repaint_schedulded): Rename to ...
394 (repaint_scheduled): ... this. Update all callers.
395 (repaint_was_schedulded): Rename to ...
396 (repaint_was_scheduled): ... this. Update all callers.
397
398 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
399
400 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
401 which we expect to be handled by upper layers.
402
403 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
404
405 * bus/usb/usbhub.c: #include time.h header.
406
407 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
408
409 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
410 entry_name also for entries without stat blocks (e.g. ".."); fixes
411 corruption of the first entry in a directory.
412
413 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
414
415 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
416 after setting gfxterm as the active terminal. GRUB_BACKGROUND
417 doesn't work otherwise.
418
419 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
420
421 * docs/grub.texi (Features): Update list of supported file systems.
422 (GNU/Linux): Update for GRUB 2.
423 (Serial terminal): Remove mention of --disable-serial, which was a
424 GRUB Legacy configure option. Update instructions to use
425 `terminal_input' and `terminal_output' rather than `terminal'.
426 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
427 configuration' and `Installing GRUB using grub-install'.
428 (Menu entry editor): Update for GRUB 2.
429 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
430 Document new -a, -u, and -v options.
431 (initrd): New section.
432 (initrd16): New section.
433 (linux): New section.
434 (linux16): New section.
435 (search): The `var' argument to `--set' is optional.
436 (GRUB only offers a rescue shell): Go into a little more detail on
437 drive ordering.
438
439 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
440
441 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
442
443 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
444
445 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
446 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
447
448 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
449
450 * util/i386/pc/grub-setup.c (setup): Rename prefix to
451 install_prefix, in line with install_dos_part and install_bsd_part.
452 Add new prefix variable, which is copied to install_prefix after
453 comparing core.img in memory with the one read from disk in the
454 no-embedding case, and use that rather than overwriting
455 install_prefix immediately when installing to a partition.
456 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
457 Bicakci.
458
459 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
460
461 * configure.ac: Avoid == in test command, it's not portable.
462 * util/grub.d/30_os-prober.in: Likewise.
463
464 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
465
466 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
467
468 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
469
470 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
471 multiple (top-level) partmaps.
472
473 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
474
475 * util/i386/efi/grub-install.in: Don't use empty grub_device.
476 Reported by: Tino Keitel.
477
478 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
479
480 Bidi and diacritics support.
481
482 * Makefile.in (widthspec.bin): New target.
483 (widthspec.h): Likewise.
484 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
485 * autogen.sh: Generate unidata.c.
486 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
487 * commands/ls.c (grub_ls_list_devices): Likewise.
488 (grub_ls_list_files): Likewise.
489 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
490 (grub_mini_cmd_lsmod): Likewise.
491 * commands/read.c: Likewise.
492 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
493 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
494 * lib/arg.c (grub_arg_show_help): Likewise.
495 * lib/crypto.c (grub_password_get): Likewise.
496 * normal/auth.c (grub_username_get): Likewise.
497 * normal/misc.c (grub_normal_print_device_info): Likewise.
498 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
499 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
500 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
501 (normal/charset.c_DEPENDENCIES): New variable.
502 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
503 (pkglib_MODULES): Remove charset.mod.
504 (charset_mod_SOURCES): Removed.
505 (charset_mod_CFLAGS): Likewise.
506 (charset_mod_LDFLAGS): Likewise.
507 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
508 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
509 and term/tparm.c.
510 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
511 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
512 (kernel_img_HEADERS): Add terminfo.h.
513 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
514 Fill ->font. Reverse ascii bitmaps.
515 (grub_font_get_xheight): New function.
516 * font/font.c (grub_font_get_string_width): Moved from here ...
517 * gfxmenu/font.c (grub_font_get_string_width): ... here.
518 * font/font.c (grub_font_draw_string): Moved from here ...
519 * gfxmenu/font.c (grub_font_draw_string): ... here.
520 * font/font.c (grub_font_dup_glyph): New function.
521 (grub_font_blit_glyph): Likewise.
522 (grub_font_blit_glyph_mirror): Likewise.
523 (blit_comb): Likewise.
524 (grub_font_construct_dry_run): Likewise.
525 (grub_font_get_constructed_device_width): Likewise.
526 (grub_font_construct_glyph): Likewise.
527 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
528 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
529 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
530 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
531 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
532 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
533 (grub_font_get_xheight): New proto.
534 (grub_font_get_constructed_device_width): Likewise.
535 (grub_font_construct_glyph): Likewise.
536 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
537 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
538 * include/grub/font.h (grub_font_draw_string): Moved from here ...
539 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
540 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
541 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
542 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
543 (grub_console_getcharwidth): Likewise.
544 * include/grub/misc.h (grub_xputs): New proto.
545 (grub_puts): Inlined.
546 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
547 (grub_normal_get_line_counter): Removed.
548 (grub_install_newline_hook): Likewise.
549 (grub_normal_get_char_counter): New proto.
550 (grub_normal_reset_more): Likewise.
551 (grub_xputs_normal): Likewise.
552 * include/grub/powerpc/ieee1275/console.h: Removed.
553 * include/grub/sparc64/ieee1275/console.h: Likewise.
554 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
555 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
556 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
557 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
558 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
559 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
560 (grub_term_input): Pass reference to self. All users updated.
561 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
562 Pass reference to self. New fields normal_color, highlight_color and
563 data. All users updated.
564 (grub_putchar): Removed.
565 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
566 (grub_unicode_estimate_width): New function.
567 (grub_term_getcharwidth): Add defaults.
568 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
569 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
570 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
571 (grub_cls): Remove EXPORT_FUNC.
572 (grub_setcolorstate): Inline.
573 (grub_newline_hook): Removed.
574 * include/grub/terminfo.h: Rewritten. All users updated.
575 * include/grub/unicode.h: New file.
576 * include/grub/video.h (grub_video_signed_rect): New type.
577 * kern/emu/console.c (grub_console_highlight_color): Removed.
578 (grub_console_normal_color): Likewise.
579 (grub_console_standard_color): Made static.
580 (grub_ncurses_putchar): Remove mapping.
581 (grub_ncurses_getcharwidth): Removed.
582 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
583 (grub_ncurses_setcolor): Removed.
584 (grub_ncurses_getcolor): Likewise.
585 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
586 (grub_console_putchar): ... this.
587 (grub_console_putchar): Handle argument difference.
588 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
589 console_init_early and console_init_lately.
590 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
591 * kern/misc.c (grub_puts): Removed.
592 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
593 (grub_vsnprintf_real): Remove str = NULL support.
594 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
595 * normal/charset.c (grub_utf8_to_ucs4): ... here.
596 * kern/term.c (grub_putcode): Renamed to ...
597 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
598 (grub_putchar): Removed.
599 (grub_xputs_dumb): New function.
600 (grub_xputs): New variable.
601 * lib/charset.c: Move from here ...
602 * normal/charset.c: ... to here.
603 (grub_ucs4_to_utf8): New function.
604 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
605 (join_types): New variable.
606 (unpack_join): New function.
607 (bidi_types): New variable.
608 (unpack_bidi): New function.
609 (get_bidi_type): Likewise.
610 (get_join_type): Likewise.
611 (is_mirrored): Likewise.
612 (grub_unicode_get_comb_type): Likewise.
613 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
614 (is_type_after): Likewise.
615 (grub_unicode_aglomerate_comb): Likewise.
616 (bidi_line_wrap): Likewise.
617 (grub_bidi_line_logical_to_visual): Likewise.
618 (grub_bidi_logical_to_visual): Likewise.
619 (grub_unicode_mirror_code): Likewise.
620 (grub_unicode_shape_code): Likewise.
621 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
622 Don't use grub_putchar.
623 * normal/main.c (grub_normal_init_page): Use grub_putcode.
624 (grub_normal_reader_init): Likewise.
625 (grub_xputs_saved): New variable.
626 (GRUB_MOD_INIT): Set grub_xputs.
627 (GRUB_MOD_FINI): Restore grub_xputs.
628 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
629 (menu_init): Avoid printing gfxmenu error.
630 (show_menu): Use grub_normal_get_char_counter.
631 * normal/menu_entry.c (update_screen): Fix out-of-array.
632 (complete): Avoid NULL dereferencing.
633 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
634 * normal/menu_text.c (print_spaces): Removed.
635 (grub_print_ucs4): Likewise.
636 (grub_print_message_indented): Use grub_print_ucs4.
637 (print_message): Use grub_putcode.
638 (print_entry): Hanlde diacritics.
639 * normal/term.c (term_state): New type.
640 (grub_more_lines): Removed.
641 (term_states): New variable.
642 (grub_normal_line_counter): Renamed to ..
643 (grub_normal_char_counter): ...this. All users updated.
644 (grub_normal_get_line_counter): Renamed to ...
645 (grub_normal_get_char_counter): ... this.
646 (grub_normal_reset_more): New function.
647 (process_newline): Removed.
648 (print_more): New function.
649 (grub_install_newline_hook): Removed.
650 (map_code): New function.
651 (grub_puts_terminal): Use grub_print_ucs4.
652 (putglyph): New function.
653 (putcode_real): Likewise.
654 (grub_putcode): Use putcode_real.
655 (get_maxwidth): New function.
656 (get_startwidth): Likewise.
657 (print_ucs4_terminal): Likewise.
658 (find_term_state): Likewise.
659 (put_glyphs_terminal): Likewise.
660 (print_backlog): Likewise.
661 (print_ucs4_real): Likewise.
662 (grub_print_ucs4): Likewise.
663 (grub_xputs_normal): Likewise.
664 * term/efi/console.c (grub_console_putchar): Output diacritics.
665 (grub_console_getcharwidth): Removed.
666 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
667 * term/gfxterm.c (clear_char): Free chars.
668 (scroll_up): Avoid leaking memory.
669 (grub_gfxterm_putchar): Support diacritics.
670 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
671 * term/i386/pc/console.c (grub_console_term_output): Declare as
672 GRUB_TERM_CODE_TYPE_VGA.
673 * term/i386/pc/vga.c (grub_vga_term): Declare as
674 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
675 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
676 GRUB_TERM_CODE_TYPE_VGA.
677 * term/i386/vga_common.c (map_char): Removed.
678 (grub_console_putchar): Likewise.
679 (grub_console_getcharwidth): Likewise.
680 * term/ieee1275/ofconsole.c: Simplify using terminfo.
681 (colors): Reordered to match terminfo.
682 (grub_ofconsole_normal_color): Removed.
683 (grub_ofconsole_writeesc): Likewise.
684 (grub_ofconsole_highlight_color): Likewise.
685 (grub_ofconsole_getcharwidth): Likewise.
686 (grub_ofconsole_setcolorstate): Likewise.
687 (grub_ofconsole_setcolor): Likewise.
688 (grub_ofconsole_getcolor): Likewise.
689 (grub_ofconsole_readkey): Renamed to ...
690 (readkey): ... this. Remove escape sequence handling. Return -1 on no
691 key.
692 (grub_ofconsole_checkkey): Removed.
693 (grub_ofconsole_getkey): Likewise.
694 (grub_ofconsole_getxy): Likewise.
695 (grub_ofconsole_gotoxy): Likewise.
696 (grub_ofconsole_cls): Likewise.
697 (grub_ofconsole_refresh): Likewise.
698 (grub_ofconsole_terminfo_input): New struct.
699 (grub_ofconsole_terminfo_output): Likewise.
700 (grub_ofconsole_term_input): Use terminfo.
701 (grub_ofconsole_term_output): Likewise.
702 (grub_console_init): Split into ...
703 (grub_console_init_early): ...this and ...
704 (grub_console_init_lately): ...this. Use terminfo.
705 (grub_ofconsole_putchar): Renamed to ...
706 (put): ... this. Remove mapping.
707 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
708 * term/serial.c: Simplify using terminfo.
709 (xpos): Removed.
710 (ypos): Likewise.
711 (keep_track): Likewise.
712 (registered): Likewise.
713 (input_buf): Likewise.
714 (npending): Likewise.
715 (serial_translate_key_sequence): Likewise.
716 (fill_input_buf): Likewise.
717 (grub_serial_checkkey): Likewise.
718 (grub_serial_getkey): Likewise.
719 (grub_serial_getxy): Likewise.
720 (grub_serial_gotoxy): Likewise.
721 (grub_serial_putchar): Likewise.
722 (grub_serial_cls): Likewise.
723 (grub_serial_setcolorstate): Likewise.
724 (grub_serial_setcursor): Likewise.
725 (serial_hw_init): Use serial_hw_fetch.
726 (grub_serial_terminfo_input): New variable.
727 (grub_serial_terminfo_output): Likewise.
728 (grub_serial_term_input): Use terminfo.
729 (grub_serial_term_output): Likewise.
730 * term/terminfo.c (putstr): Use put.
731 (grub_terminfo_all_free): New function
732 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
733 (grub_terminfo_output_register): New function.
734 (grub_terminfo_output_unregister): Likewise.
735 (grub_terminfo_getxy): Likewise.
736 (grub_terminfo_readkey): Likewise.
737 (grub_terminfo_checkkey): Likewise.
738 (grub_terminfo_getkey): Likewise.
739 (grub_terminfo_input_init): Likewise.
740 (print_terminfo): Likewise.
741 (grub_cmd_terminfo): Handle encoding.
742 (grub_terminfo_gotoxy): Track position.
743 (grub_terminfo_cls): Likewise.
744 (grub_terminfo_putchar): Likewise.
745 (grub_terminfo_setcolorstate): Handle colors
746 (grub_terminfo_cursor_on): This ...
747 (grub_terminfo_cursor_off): ... and this merged into ...
748 (grub_terminfo_setcursor): ... this.
749 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
750 * unicode/ArabicShaping.txt: New file (imported from Unicode).
751 * unicode/BidiMirroring.txt: Likewise.
752 * unicode/UnicodeData.txt: Likewise.
753 * unicode/COPYING: Likewise.
754 * util/grub-editenv.c (grub_putchar): Removed.
755 (grub_xputs_real): New function.
756 (grub_xputs): New variable.
757 * util/grub-fstest.c (grub_putchar): Removed.
758 (grub_xputs_real): New function.
759 (grub_xputs): New variable.
760 * util/grub-mkdevicemap.c (grub_putchar): Removed.
761 (grub_xputs_real): New function.
762 (grub_xputs): New variable.
763 * util/grub-probe.c (grub_putchar): Removed.
764 (grub_xputs_real): New function.
765 (grub_xputs): New variable.
766 * util/grub-script-check.c (grub_putchar): Removed.
767 (grub_xputs_real): New function.
768 (grub_xputs): New variable.
769 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
770 (grub_xputs_real): New function.
771 (grub_xputs): New variable.
772 * util/import_unicode.py: New file.
773 * util/grub-mkfont.c (ft_errmsgs): New array.
774 (grub_glyph_info): Make bitmap a pointer.
775 (file_formats): New type WIDTH_SPEC.
776 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
777 (options): Add width-spec.
778 (help): Likewise.
779 (add_char): Renamed to ...
780 (add_glyph): ... this.
781 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
782 (glyph_replace): New type.
783 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
784 (add_char): New function.
785 (add_subst): Likewise.
786 (process_cursive): Likewise.
787 (add_font): Handle GSUB.
788 (write_font_width_spec): New function.
789 (main): Sort glyphs.
790 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
791 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
792 * kern/term.c (grub_cls): Moved from here...
793 * normal/term.c (grub_cls): ... here.
794
795 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
796
797 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
798 suitable for using within the format argument of printf when
799 converting grub_size_t.
800 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
801 "x" to convert grub_size_t arguments.
802
803 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
804
805 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
806 too long captions.
807 (list_get_minimal_size): Take selection box into account.
808
809 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
810
811 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
812 NULL font.
813
814 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
815
816 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
817 devices when iterating over /dev/disk/by-id; they will be handled
818 later if appropriate, which they aren't always (e.g. LVM).
819
820 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
821
822 * include/grub/misc.h (grub_reboot): Declare as noreturn.
823 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
824 fails.
825 (grub_halt): Likewise.
826 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
827 reset-all fails.
828 (grub_halt): Don't return, even if all of shut-down, power-off, and
829 poweroff fail.
830
831 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
832
833 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
834 arguments, not three.
835
836 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
837
838 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
839 * util/grub.d/10_linux.in: Use it to check for LVM, so that
840 LVM-on-RAID is handled correctly.
841
842 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
843
844 * docs/grub.texi (Changes from GRUB Legacy): New section.
845 (Future): Fix typo.
846
847 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
848
849 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
850 grub.d/README accidentally ends up executable for one reason or
851 another. Ignore it.
852
853 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
854
855 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
856 (gpt_partition_map_iterate): Support non-512B sectors.
857
858 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
859
860 * kern/efi/init.c (grub_efi_init): Disable watchdog.
861 Tested by: Seth Goldberg.
862
863 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
864
865 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
866 Properly align mbi.
867 Reported by: Seth Goldberg.
868
869 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
870
871 * util/grub-mkrescue.in: Avoid module duplication.
872
873 2010-07-01 Sean Finney <seanius@seanius.net>
874
875 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
876
877 2010-07-01 Sean Finney <seanius@seanius.net>
878
879 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
880
881 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
882
883 * disk/lvm.c (grub_lvm_checkvalue): New function.
884 (grub_lvm_check_flag): Likewise.
885
886 2010-07-01 Robert Millan <rmh@gnu.org>
887
888 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
889 Support 'p' as partition separator on kernel of FreeBSD (used
890 with GPT labels).
891 (grub_util_biosdisk_get_grub_dev): Likewise.
892
893 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
894
895 Yeeloong firmware port.
896
897 * boot/mips/yeeloong/fwstart.S: New file.
898 * bus/cs5536.c (gpiodump): New const.
899 (set_io_space): New function.
900 (set_iod): Likewise.
901 (set_p2d): Likewise.
902 (grub_cs5536_init_geode): Likewise.
903 * commands/mips/yeeloong/lsspd.c: New file.
904 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
905 (serial_mod_SOURCES): New variable.
906 (serial_mod_CFLAGS): Likewise.
907 (serial_mod_LDFLAGS): Likewise.
908 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
909 term/terminfo.c and term/tparm.c.
910 (pkglib_IMAGES): Add fwstart.img.
911 (fwstart_img_SOURCES): New variable.
912 (fwstart_img_CFLAGS): Likewise.
913 (fwstart_img_ASFLAGS): Likewise.
914 (fwstart_img_LDFLAGS): Likewise.
915 (fwstart_img_FORMAT): Likewise.
916 (pkglib_MODULES): Add lsspd.mod.
917 (lsspd_mod_SOURCES): New variable.
918 (lsspd_mod_CFLAGS): Likewise.
919 (lsspd_mod_LDFLAGS): Likewise.
920 (pkglib_MODULES): Add halt.mod.
921 (halt_mod_SOURCES): New variable.
922 (halt_mod_CFLAGS): Likewise.
923 (halt_mod_LDFLAGS): Likewise.
924 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
925 (serial_mod_SOURCES): Removed.
926 (serial_mod_CFLAGS): Likewise.
927 (serial_mod_LDFLAGS): Likewise.
928 * disk/ata.c (check_device): New function.
929 (grub_ata_device_initialize): Use check_device.
930 (grub_ata_iterate): Recheck devices.
931 (grub_ata_open): Likewise.
932 (grub_atapi_iterate): Likewise.
933 (grub_atapi_open): Likewise.
934 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
935 (GRUB_ATA_CH1_PORT1): Likewise.
936 (GRUB_ATA_CH0_PORT2): Likewise.
937 (GRUB_ATA_CH1_PORT2): Likewise.
938 * include/grub/mips/loongson.h: New file.
939 * include/grub/mips/yeeloong/ec.h: Likewise.
940 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
941 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
942 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
943 * include/grub/misc.h (grub_halt): Declare as noreturn.
944 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
945 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
946 (UART_ENABLE_FIFO_TRIGGER1): New definition.
947 (UART_ENABLE_DTRRTS): Likewise.
948 (UART_ENABLE_MODEM): Removed.
949 (UART_ENABLE_OUT2): New const.
950 * include/grub/term.h (grub_term_register_input_active): New function.
951 (grub_term_register_output_active): Likewise.
952 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
953 argument.
954 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
955 (init_pci): New function.
956 (grub_machine_init): Execute platform init when firmware. Init serial.
957 (grub_halt): Implement.
958 (grub_exit): Likewise.
959 (grub_reboot): Likewise.
960 * term/serial.c (serial_hw_init): Update macros.
961 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
962 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
963 (image_targets): New target mipsel-yeeloong-flash.
964 (generate_image): Support IMAGE_YEELOONG_FLASH.
965 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
966 (grub_video_sm712_setup): Init card.
967 (grub_video_sm712_set_palette): Removed.
968 * video/sm712_init.c: New file.
969
970 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
971
972 * Makefile.in (install-local): Temporarily prepend $(builddir) to
973 PATH when running help2man and then run it on the unadorned
974 executable names, rather than passing $(builddir)/* paths to
975 help2man. This avoids the build directory ending up in generated
976 manual pages.
977
978 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
979
980 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
981 to avoid accidents when debugging with 'sh -x'.
982 * util/grub-mkrescue.in: Likewise.
983 * util/grub.d/00_header.in: Likewise.
984 * util/grub.d/10_hurd.in: Likewise.
985 * util/grub.d/10_kfreebsd.in: Likewise.
986 * util/grub.d/10_linux.in: Likewise.
987 * util/grub.d/10_netbsd.in: Likewise.
988 * util/grub.d/10_windows.in: Likewise.
989 * util/grub.d/20_linux_xen.in: Likewise.
990 * util/grub.d/30_os-prober.in: Likewise.
991 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
992
993 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
994
995 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
996 last character in the buffer.
997 Reported by: Vladimir Serbinenko.
998
999 2010-06-29 Robert Millan <rmh@gnu.org>
1000
1001 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
1002 (Command-line and menu entry commands): Document `badram' command.
1003
1004 2010-06-28 Robert Millan <rmh@gnu.org>
1005
1006 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
1007 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
1008 command using ${GRUB_BADRAM} as parameter.
1009
1010 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
1011
1012 * docs/grub.texi (Device map): New section.
1013 (Themes): New section (stub).
1014 * Makefile.in (docs/grub.info): The info documentation now builds
1015 without errors. Make sure it stays that way.
1016
1017 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1018
1019 Use normal parser for menu entries.
1020 Reported by: Thomas Frauendorfer
1021
1022 * include/grub/parser.h (grub_parser_execute): Don't export.
1023 * normal/menu.c (grub_menu_execute_entry_real): New function.
1024 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
1025
1026 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
1027
1028 * docs/grub.texi (Embedded configuration): New section (replacing
1029 old "Preset Menu" stub).
1030 (Images): New section.
1031 (configfile): Note that any menu entries defined in `file' are shown
1032 immediately.
1033
1034 2010-06-28 Josh Triplett <josh@joshtriplett.org>
1035
1036 * mmap/i386/pc/mmap_helper.S: Set CF on return.
1037
1038 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
1039
1040 * util/grub-install.in: Add --debug-image= option.
1041
1042 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
1043
1044 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
1045 possible on Linux.
1046
1047 * util/deviceiter.c (check_device): Rename to ...
1048 (check_device_readable_unique): ... this. Update all callers.
1049 Maintain and check a list of which devices (by canonicalized name)
1050 have already been seen.
1051 (clear_seen_devices): New function.
1052 (compare_file_names) [__linux__]: New function.
1053 (grub_util_iterate_devices): Clear the list of seen devices on exit
1054 and (just in case) on entry.
1055 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
1056 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
1057 seen-devices list, superseded by general code in check_device.
1058
1059 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
1060
1061 * commands/cat.c (options): New variable.
1062 (grub_cmd_cat): Parse options. If the --dos option is given, print
1063 DOS-style "\r\n" line endings as simple newlines (Debian bug
1064 #586358).
1065 (GRUB_MOD_INIT): Use extcmd.
1066 (GRUB_MOD_FINI): Likewise.
1067 * docs/grub.texi (cat): Document --dos.
1068
1069 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1070
1071 XEN with Linux grub-mkconfig support.
1072
1073 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
1074 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
1075 GRUB_CMDLINE_XEN_DEFAULT.
1076 * util/grub.d/20_linux_xen.in: New file.
1077
1078 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1079
1080 Initialise VGA video on qemu ourselves.
1081
1082 * boot/i386/qemu/boot.S: Don't call 0xc000.
1083 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
1084 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
1085 (kernel_img_HEADERS): Add pci.h.
1086 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
1087 * configure.ac: Force unifont on qemu and yeeloong.
1088 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
1089 (grub_vga_palette_write): Use correct register.
1090 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
1091 Call grub_qemu_init_cirrus.
1092 * kern/i386/qemu/init.c: New file.
1093 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
1094
1095 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
1096
1097 2010-06-26 Pavel Roskin <proski@gnu.org>
1098
1099 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
1100 13.
1101
1102 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
1103
1104 * docs/grub.texi (Simple configuration): Explain that
1105 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
1106 set to `true' to disable their respective recovery entries, not
1107 merely set.
1108
1109 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
1110
1111 Make the `source' command slightly faster.
1112
1113 * normal/main.c (grub_normal_execute): Don't re-read list files when
1114 nested.
1115
1116 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
1117
1118 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
1119 field position and mask size to red fields from mode_info, not
1120 green.
1121 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
1122 Remove redundant tag->common.framebuffer_type assignment.
1123 Reported by: Seth Goldberg.
1124
1125 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
1126
1127 Sync up other versions of the Linux loader with Robert Millan's
1128 change of 2010-01-09, "Make loader output a bit more user-friendly".
1129
1130 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
1131 grub_dprintf().
1132 (grub_cmd_linux): Likewise.
1133 (grub_cmd_initrd): Likewise.
1134 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
1135 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
1136
1137 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
1138
1139 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
1140 larger than MEMORY_MAP_SIZE.
1141
1142 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
1143
1144 Fix parallel build.
1145
1146 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
1147 dependency.
1148 * script/parser.y: #include grub_script.tab.h header.
1149
1150 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1151
1152 Support >3GiB and <16MiB RAM in i386-qemu.
1153
1154 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
1155 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
1156 (grub_lower_mem): Removed.
1157 (grub_upper_mem): Likewise.
1158 (mem_size): Made static.
1159 (above_4g): New variable.
1160 (grub_machine_mmap_init): Detect small mem_size and above_4g.
1161 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
1162 support.
1163
1164 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1165
1166 Cirrus 5446 and Bochs video cards support.
1167
1168 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
1169 video_bochs.mod
1170 (video_cirrus_mod_SOURCES): New variable.
1171 (video_cirrus_mod_CFLAGS): Likewise.
1172 (video_cirrus_mod_LDFLAGS): Likewise.
1173 (video_bochs_mod_SOURCES): Likewise.
1174 (video_bochs_mod_CFLAGS): Likewise.
1175 (video_bochs_mod_LDFLAGS): Likewise.
1176 * include/grub/vga.h: New file.
1177 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
1178 (grub_video_fb_set_page_t): New type.
1179 (grub_video_fb_setup): New prototype.
1180 (grub_video_fb_swap_buffers): Likewise.
1181 (grub_video_fb_get_info_and_fini): Likewise.
1182 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
1183 (CRTC_DATA_PORT): Likewise.
1184 (CRTC_CURSOR): Likewise.
1185 (CRTC_CURSOR_ADDR_HIGH): Likewise.
1186 (CRTC_CURSOR_ADDR_LOW): Likewise.
1187 (CRTC_CURSOR_DISABLE): Likewise.
1188 (update_cursor): Use grub_vga_cr_write.
1189 (grub_vga_text_setcursor): Likewise.
1190 * video/bochs.c: New file.
1191 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
1192 (palette): Likewise.
1193 (palette_size): Likewise.
1194 (framebuffer): New variable.
1195 (grub_video_fb_init): Use 'framebuffer'.
1196 (grub_video_fb_fini): Likewise.
1197 (grub_video_fb_get_info): Likewise.
1198 (grub_video_fb_get_palette): Likewise.
1199 (grub_video_fb_set_palette): Likewise.
1200 (grub_video_fb_set_viewport): Likewise.
1201 (grub_video_fb_get_viewport): Likewise.
1202 (grub_video_fb_map_color): Likewise.
1203 (grub_video_fb_map_rgb): Likewise.
1204 (grub_video_fb_map_rgba): Likewise.
1205 (grub_video_fb_unmap_color): Likewise.
1206 (grub_video_fb_unmap_color_int): Likewise.
1207 (grub_video_fb_fill_rect): Likewise.
1208 (grub_video_fb_blit_bitmap): Likewise.
1209 (grub_video_fb_blit_render_target): Likewise.
1210 (grub_video_fb_scroll): Likewise.
1211 (grub_video_fb_create_render_target): Likewise.
1212 (grub_video_fb_doublebuf_blit_init): Likewise.
1213 (grub_video_fb_set_active_render_target): Handle doublebuffering.
1214 (doublebuf_pageflipping_update_screen): New function.
1215 (doublebuf_pageflipping_init): Likewise.
1216 (grub_video_fb_setup): Likewise.
1217 (grub_video_fb_swap_buffers): Likewise.
1218 (grub_video_fb_get_info_and_fini): Likewise.
1219 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
1220 All users updated.
1221 (doublebuf_pageflipping_commit): Restructured into ...
1222 (doublebuf_pageflipping_set_page): ... this.
1223 (doublebuf_pageflipping_update_screen): Removed.
1224 (doublebuf_pageflipping_init): Likewise.
1225 (double_buffering_init): Likewise.
1226 (grub_video_vbe_setup): Use grub_video_fb_setup.
1227 (grub_video_vbe_swap_buffers): Removed.
1228 (grub_video_vbe_set_active_render_target): Likewise.
1229 (grub_video_vbe_get_active_render_target): Likewise.
1230 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
1231 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
1232 grub_video_fb_set_active_render_target and
1233 grub_video_fb_get_active_render_target.
1234 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
1235 (SEQUENCER_DATA_PORT): Likewise.
1236 (MAP_MASK_REGISTER): Likewise.
1237 (CRTC_ADDR_PORT): Likewise.
1238 (CRTC_DATA_PORT): Likewise.
1239 (START_ADDR_HIGH_REGISTER): Likewise.
1240 (START_ADDR_LOW_REGISTER): Likewise.
1241 (GRAPHICS_ADDR_PORT): Likewise.
1242 (GRAPHICS_DATA_PORT): Likewise.
1243 (READ_MAP_REGISTER): Likewise.
1244 (INPUT_STATUS1_REGISTER): Likewise.
1245 (INPUT_STATUS1_VERTR_BIT): Likewise.
1246 (get_map_mask): Use grub_vga_sr_read.
1247 (set_map_mask): Use grub_vga_sr_write.
1248 (set_read_map): Use grub_vga_gr_write.
1249 (set_start_address): Use grub_vga_cr_write.
1250 * video/sm712.c (framebuffer): Remove leftover fields.
1251
1252 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
1253
1254 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
1255 setting GRUB_VIDEO_BACKEND. Make it available as a user override
1256 instead. Replace the gfxterm backend check with a check that
1257 ${GRUB_PREFIX}/video.lst is non-empty.
1258 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
1259 again.
1260 (load_video): New generated function. Call it before loading
1261 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
1262 * util/grub.d/10_linux.in (linux_entry): Call load_video.
1263 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
1264 * docs/grub.texi (Simple configuration): Document
1265 GRUB_VIDEO_BACKEND.
1266
1267 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1268
1269 Use video functions in linux and xnu loaders.
1270
1271 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
1272 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
1273 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
1274 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
1275 loader/i386/pc/linux.c.
1276 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
1277 (find_line_len): Removed.
1278 (find_framebuf): Likewise.
1279 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
1280 * loader/i386/efi/xnu.c: Removed.
1281 * loader/i386/pc/xnu.c: Moved from here...
1282 * loader/i386/xnu.c: ...here.
1283
1284 Enable priorities in video drivers.
1285
1286 * include/grub/video.h (grub_video_adapter_prio_t): New type.
1287 (grub_video_adapter): New field prio.
1288 (grub_video_register): Respect prio when inserting.
1289 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
1290 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
1291 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
1292 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
1293 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
1294 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
1295 * video/sm712.c (grub_video_sm712_adapter): Likewise.
1296
1297 Fix SDL driver ID.
1298
1299 * include/grub/video.h (grub_video_driver_id_t): New value
1300 GRUB_VIDEO_DRIVER_SDL.
1301 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
1302
1303 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
1304
1305 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
1306 argument to printf.
1307 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
1308
1309 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
1310
1311 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
1312 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
1313
1314 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
1315
1316 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
1317 directly, and recommend grub-install instead.
1318 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
1319
1320 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
1321
1322 Fix i386-pc prefix handling with nested partitions (Debian bug
1323 #585068). Note that the case where the core image is booted using
1324 multiboot and relocated from its original location still requires
1325 more work.
1326
1327 * kern/i386/pc/init.c (make_install_device): If the prefix starts
1328 with "(,", fill the boot drive in between those two characters, but
1329 expect that a full partition specification including partition map
1330 names will follow.
1331 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
1332 specified, write a prefix without the drive name but including a
1333 full partition specification.
1334
1335 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
1336
1337 * util/grub-mkconfig.in: Ignore non-option arguments, for
1338 compatibility with older versions (before 2010-06-12) which did the
1339 same. In particular, this makes it easier to ship an update-grub
1340 wrapper which is compatible with that used with GRUB Legacy (Debian
1341 bug #586056).
1342
1343 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
1344
1345 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
1346 for manual page generation.
1347
1348 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
1349
1350 * po/POTFILES: Remove leftover commands/handler.c.
1351
1352 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
1353
1354 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
1355 left this script non-functional.
1356
1357 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
1358
1359 * docs/man/grub-emu.h2m: New file.
1360
1361 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
1362
1363 * docs/grub.texi (Commands): Document reduced command set in rescue
1364 mode.
1365 (cpuid): New section.
1366
1367 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
1368
1369 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
1370 new partition naming style.
1371 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
1372
1373 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
1374
1375 Add "-o grub.iso" like cmdline options support.
1376
1377 * util/grub-install.in: Improve cmdline option parsing.
1378 * util/grub-mkconfig.in: Likewise.
1379 * util/grub-mkrescue.in: Likewise.
1380 * util/grub-reboot.in: Likewise.
1381 * util/grub-set-default.in: Likewise.
1382 * util/i386/efi/grub-install.in: Likewise.
1383 * util/ieee1275/grub-install.in: Likewise.
1384 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1385
1386 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
1387
1388 * .bzrignore: Ignore 41_custom.
1389
1390 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
1391
1392 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
1393
1394 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
1395
1396 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
1397 prototype declarations.
1398
1399 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
1400 generating fs, partmap, and video lists.
1401 * include/grub/fs.h (grub_fs_register): Omit prototype if
1402 GRUB_LST_GENERATOR is defined.
1403 * include/grub/partition.h (grub_partition_map_register): Likewise.
1404 * include/grub/video.h (grub_video_register): Likewise.
1405
1406 2010-06-12 Javier Martín <lordhabbit@gmail.com>
1407
1408 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
1409
1410 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
1411
1412 * util/grub-mkrescue.in: Support --xorriso argument.
1413
1414 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1415
1416 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
1417 Suggested by: Thomas Schmitt.
1418
1419 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1420
1421 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
1422 Suggested by: Thomas Schmitt.
1423
1424 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
1425
1426 custom.cfg support.
1427
1428 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
1429 * util/grub.d/41_custom.in: New file.
1430
1431 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
1432
1433 * util/grub-mkrescue.in (make_image): Remove sh module, which has
1434 been merged back into normal.
1435
1436 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
1437
1438 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
1439 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
1440
1441 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
1442
1443 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
1444 when generating manual pages.
1445 * docs/man/grub-bin2h.h2m: New file.
1446 * docs/man/grub-editenv.h2m: New file.
1447 * docs/man/grub-fstest.h2m: New file.
1448 * docs/man/grub-install.h2m: New file.
1449 * docs/man/grub-macho2img.h2m: New file.
1450 * docs/man/grub-mkconfig.h2m: New file.
1451 * docs/man/grub-mkdevicemap.h2m: New file.
1452 * docs/man/grub-mkfont.h2m: New file.
1453 * docs/man/grub-mkimage.h2m: New file.
1454 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
1455 * docs/man/grub-mkrelpath.h2m: New file.
1456 * docs/man/grub-mkrescue.h2m: New file.
1457 * docs/man/grub-ofpathname.h2m: New file.
1458 * docs/man/grub-pe2elf.h2m: New file.
1459 * docs/man/grub-probe.h2m: New file.
1460 * docs/man/grub-reboot.h2m: New file.
1461 * docs/man/grub-script-check.h2m: New file.
1462 * docs/man/grub-set-default.h2m: New file.
1463 * docs/man/grub-setup.h2m: New file.
1464
1465 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
1466
1467 Use FOR_* macros instead of *_iterate whenever possible.
1468
1469 * commands/handler.c: Removed.
1470 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
1471 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
1472 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1473 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
1474 (grub_probe_SOURCES): Remove kern/parser.c.
1475 (util/grub-script-check.c_DEPENDENCIES): Removed.
1476 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
1477 and grub_script_check_init.c.
1478 (grub_script_check_init.lst): Removed.
1479 (grub_script_check_init.h): Likewise.
1480 (grub_script_check_init.c): Likewise.
1481 (pkglib_MODULES): Remove handler.mod and sh.mod.
1482 (handler_mod_SOURCES): Removed.
1483 (handler_mod_CFLAGS): Likewise.
1484 (handler_mod_LDFLAGS): Likewise.
1485 (normal_mod_SOURCES): Remove normal/handler.c.
1486 Add script/main.c, script/script.c, script/execute.c,
1487 script/function.c, script/lexer.c, grub_script.tab.c
1488 and grub_script.yy.c.
1489 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1490 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1491 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
1492 (grub_setup_SOURCES): Remove kern/parser.c.
1493 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1494 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
1495 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
1496 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1497 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
1498 (grub_setup_SOURCES): Remove kern/parser.c.
1499 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
1500 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
1501 * include/grub/command.h (grub_command_iterate): Removed.
1502 (FOR_COMMANDS): New macro.
1503 * include/grub/dl.h (grub_dl): New member next.
1504 (grub_dl_iterate): Removed.
1505 (grub_dl_head): New variable declaration.
1506 (FOR_DL_MODULES): New macro.
1507 * include/grub/fs.h: Include list.h.
1508 (grub_fs): Make next first element.
1509 (grub_fs_list): New variable declaration.
1510 (grub_fs_register): Make inline.
1511 (grub_fs_unregister): Likewise.
1512 (grub_fs_iterate): Removed.
1513 (FOR_FILESYSTEMS): New macro.
1514 * include/grub/handler.h: Removed.
1515 * include/grub/list.h (grub_list_hook_t): Removed.
1516 (grub_list_test_t): Likewise.
1517 (grub_list_pop): Likewise.
1518 (grub_list_iterate): Likewise.
1519 (grub_list_insert): Likewise.
1520 (FOR_LIST_ELEMENTS): New macro.
1521 * include/grub/parser.h (grub_parser_class): Removed.
1522 (grub_parser_register): Likewise.
1523 (grub_parser_unregister): Likewise.
1524 (grub_parser_get_current): Likewise.
1525 (grub_parser_set_current): Likewise.
1526 (grub_register_rescue_parser): Likewise.
1527 (grub_rescue_parse_line): New function.
1528 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
1529 * include/grub/script_sh.h (grub_script_function_list): New variable
1530 declaration.
1531 (FOR_SCRIPT_FUNCTIONS): New macro.
1532 (grub_script_function_iterate): Removed.
1533 (grub_normal_parse_line): New prototype.
1534 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
1535 (FOR_DISABLED_TERM_INPUTS): Likewise.
1536 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
1537 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
1538 * include/grub/video.h (grub_video_adapter): Move 'next' to first
1539 element.
1540 (grub_video_register): Inline.
1541 (grub_video_unregister): Likewise.
1542 (grub_video_adapter_list): New variable declaration.
1543 (grub_video_iterate): Removed.
1544 (FOR_VIDEO_ADAPTERS): New macro.
1545 * kern/dl.c (grub_dl_list): Removed. All users updated.
1546 (grub_dl_iterate): Removed.
1547 * kern/fs.c (grub_fs_list): Make global.
1548 (grub_fs_register): Removed.
1549 (grub_fs_unregister): Likewise.
1550 (grub_fs_iterate): Likewise.
1551 * kern/handler.c: Removed.
1552 * kern/list.c (grub_list_pop): Removed.
1553 (grub_list_iterate): Likewise.
1554 (grub_list_insert): Likewise.
1555 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
1556 (grub_prio_list_insert): Don't use grub_list_insert.
1557 * kern/main.c (grub_register_rescue_parser): Don't call
1558 grub_register_rescue_parser.
1559 * kern/parser.c (grub_parser_class): Removed.
1560 (grub_parser_execute): Use grub_rescue_parse_line.
1561 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
1562 (grub_rescue_parser): Removed.
1563 (grub_register_rescue_parser): Likewise.
1564 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
1565 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
1566 (grub_auth_check_authentication): Likewise.
1567 * normal/completion.c (iterate_command): Removed.
1568 (grub_normal_do_completion): Use FOR_COMMANDS.
1569 * normal/handler.c: Removed.
1570 * normal/main.c (read_config_file): Remove parser changing.
1571 (grub_normal_execute): Don't call read_handler_list.
1572 (grub_normal_read_line_real): Statically allocate prompt.
1573 (grub_cmdline_run): Use grub_normal_parse_line.
1574 (GRUB_MOD_FINI): Don't call free_handler_list.
1575 * normal/menu_entry.c (run): Likewise.
1576 * script/function.c (grub_script_function_list): Make global.
1577 (grub_script_function_iterate): Removed.
1578 * script/main.c (grub_normal_parse_line): Make global.
1579 (grub_sh_parser): Removed.
1580 (GRUB_MOD_INIT): Likewise.
1581 (GRUB_MOD_FINI): Likewise.
1582 * tests/lib/functional_test.c (grub_functional_test): Use
1583 FOR_LIST_ELEMENTS.
1584 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
1585 (grub_test_run): Use FOR_LIST_ELEMENTS.
1586 * tests/lib/unit_test.c (main): Likewise.
1587 * util/deviceiter.c (grub_util_iterate_devices): Don't use
1588 grub_list_pop.
1589 * util/grub-fstest.c (grub_term_input_class): Removed.
1590 (grub_term_output_class): Likewise.
1591 * util/grub-probe.c: Likewise.
1592 * util/i386/pc/grub-setup.c: Likewise.
1593 * util/sparc64/ieee1275/grub-setup.c: Likewise.
1594 * util/grub-script-check.c (main): Don't call grub_init_all and
1595 grub_fini_all.
1596 * video/video.c (grub_video_adapter_list): Make global.
1597 (grub_video_register): Removed.
1598 (grub_video_unregister): Likewise.
1599 (grub_video_iterate): Likewise.
1600
1601 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1602
1603 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
1604 reported by Henrique Ferreiro.
1605
1606 2010-06-09 Robert Millan <rmh@gnu.org>
1607
1608 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
1609 ones, when both are available.
1610
1611 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
1612
1613 Make --version uniform and avoid hard-coded program name.
1614
1615 * util/grub-mkimage.c (main): Use `program_name' instead of
1616 hard-coded string.
1617 * util/i386/pc/grub-setup.c (main): Likewise.
1618 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
1619 * util/grub-install.in: Save the basename of $0 in $self, and use the
1620 latter in informational messages. Use the same format for --version
1621 as the binary programs.
1622 * util/grub-mkconfig.in: Likewise.
1623 * util/grub-mkrescue.in: Likewise.
1624 * util/grub-reboot.in: Likewise.
1625 * util/grub-set-default.in: Likewise.
1626 * util/i386/efi/grub-install.in: Likewise.
1627 * util/ieee1275/grub-install.in: Likewise.
1628 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1629
1630 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
1631
1632 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
1633 embedding area. Use <= instead of == when checking for non-emptiness.
1634
1635 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
1636
1637 * configure.ac: Add `.' to the directories searched for unifont.
1638
1639 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
1640
1641 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
1642 grub_script.yy.h.
1643
1644 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
1645
1646 * docs/grub.texi (History): Expand to cover GRUB 2.
1647 (Serial terminal): Refer to `terminal_input' and `terminal_output'
1648 commands, not `terminal'.
1649 (serial): Likewise.
1650 (terminal_input): New section.
1651 (terminal_output): New section.
1652 (uppermem): New section (stub).
1653 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
1654
1655 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
1656
1657 * docs/grub.texi (Security): Menu entries are unrestricted by
1658 default, not restricted to superusers as I had previously thought.
1659 Reword to account for this.
1660
1661 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1662
1663 * kern/emu/misc.c (device_mapper_null_log): New function.
1664 (grub_device_mapper_supported): New function.
1665 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
1666 prototype.
1667 * kern/emu/hostdisk.c (find_partition_start): Check whether
1668 device-mapper is supported before trying to use it.
1669 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
1670
1671 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1672
1673 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
1674 (File name syntax): Likewise.
1675 (help): --all is no longer supported in GRUB 2. Be more precise
1676 about pattern matching.
1677
1678 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1679
1680 * normal/completion.c (grub_normal_do_completion): When completing
1681 arguments to "set" and the current word contains an equals sign,
1682 skip to after the equals sign before starting completion.
1683
1684 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1685
1686 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
1687
1688 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1689
1690 * docs/grub.texi (Network): New section.
1691 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
1692 `(nd)' as in GRUB Legacy.
1693 (pxe_unload): New section.
1694
1695 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1696
1697 * docs/grub.texi (Troubleshooting): `echo' is not usually available
1698 in the rescue shell, so recommend using `set' instead. Thanks,
1699 Jordan Uggla.
1700
1701 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1702
1703 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
1704 (password): New section.
1705 (password_pbkdf2): New section.
1706 (search): New section.
1707 (Security): New section.
1708 (Troubleshooting): New section, currently very incomplete.
1709 (Invoking grub-mkpasswd-pbkdf2): New section.
1710 (Internals): New section, currently very incomplete.
1711
1712 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1713
1714 * util/grub.d/00_header.in: Add some more quoting (of
1715 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
1716 work again.
1717 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
1718
1719 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
1720
1721 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
1722 to `count', fixing variable shadowing that broke the -c option.
1723
1724 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
1725
1726 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
1727 in case they contain spaces.
1728
1729 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
1730
1731 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
1732 "part_" to partmap module names, in line with grub-install.
1733 Reported by: Jindřich Makovička (Debian bug #584426).
1734
1735 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
1736
1737 * util/grub-mkimage.c: Make target-related error messages slightly
1738 more helpful; -O talks about "format". Explicitly point to the use
1739 of -O if no target is specified.
1740 Reported by: Didier Raboud (Debian bug #584415).
1741
1742 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
1743
1744 * INSTALL: Document several build requirements for optional features
1745 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
1746
1747 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
1748
1749 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
1750 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
1751 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
1752
1753 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1754
1755 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
1756 Thanks to Jordan Uggla for spotting this.
1757
1758 2010-06-02 Aleš Nesrsta <starous@volny.cz>
1759
1760 Finally make USB usable.
1761
1762 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
1763 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
1764 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
1765 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
1766 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
1767 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
1768 (GRUB_OHCI_FSMPS): Likewise.
1769 (GRUB_OHCI_PERIODIC_START): Likewise.
1770 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
1771 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
1772 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
1773 (GRUB_OHCI_SET_PORT_RESET): Likewise.
1774 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
1775 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
1776 (grub_ohci_transaction): Likewise.
1777 (grub_ohci_transfer): Improve condition detection algorithms.
1778 Handle toggle property. Program the transactions correctly.
1779 Improve error handling. Various important fixups.
1780 (grub_ohci_portstatus): Put register writes in right order.
1781 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
1782 (grub_uhci_transfer): Don't show "failed" message on success.
1783 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
1784 array.
1785 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
1786 determine its size.
1787 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
1788 before initialization is completed. Use IN direction for empty
1789 transfers. Use last_trans and compute toggle.
1790 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
1791 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
1792 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
1793 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
1794 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
1795 (grub_usb_device): Increase toggle to 256.
1796 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
1797 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
1798 GRUB_USBMS_SUBCLASS_SFF8070.
1799 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
1800 (grub_scsi_inquiry): New member page and alloc_length.
1801 (grub_scsi_request_sense): New structure.
1802 (grub_scsi_request_sense_data): Likewise.
1803 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
1804 control.
1805 * disk/scsi.c (grub_scsi_request_sense): New function.
1806 (grub_scsi_test_unit_ready): Likewise.
1807 (grub_scsi_inquiry): Fill new fields.
1808 (grub_scsi_read_capacity): Likewise.
1809 (grub_scsi_read10): Add request sense at the end.
1810 (grub_scsi_read12): Likewise.
1811 (grub_scsi_write10): Likewise.
1812 (grub_scsi_write12): Likewise.
1813 (grub_scsi_open): Add Test Unit Ready.
1814 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
1815 Support additional subclasses. Con't clear halt yet. Activate the
1816 proper config. Calculate LUNs correctly.
1817 (grub_usbms_transfer): Various important fixups.
1818
1819 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1820
1821 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
1822 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
1823 (grub_ohci_fini_hw): New function.
1824 (grub_ohci_restore_hw): Likewise.
1825 (GRUB_MOD_INIT(ohci)): Register preboot hook.
1826 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
1827 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
1828
1829 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1830
1831 Dedicated DMA allocations.
1832
1833 * bus/pci.c (grub_memalign_dma32): New function
1834 (grub_dma_free): Likewise.
1835 (grub_dma_get_virt): Likewise.
1836 (grub_dma_get_phys): Likewise.
1837 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
1838 (grub_ohci_pci_iter): Use dma32_alloc.
1839 (grub_ohci_transfer): Likewise.
1840 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
1841 (grub_usb_bulk_readwrite): Likewise.
1842 * include/grub/pci.h: Add declarations.
1843
1844 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
1845
1846 CS5536 support.
1847
1848 * bus/cs5536.c: New file.
1849 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
1850 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
1851 (cs5536_mod_SOURCES): New variable.
1852 (cs5536_mod_CFLAGS): Likewise.
1853 (cs5536_mod_LDFLAGS): Likewise.
1854 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
1855 machine/pci.h.
1856 (kernel_img_SOURCES): Add bus/cs5536.c.
1857 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
1858 usb_keyboard.mod.
1859 (usb_mod_SOURCES): New variable.
1860 (usb_mod_CFLAGS): New variable.
1861 (usb_mod_LDFLAGS): New variable.
1862 (usbtest_mod_SOURCES): New variable.
1863 (usbtest_mod_CFLAGS): New variable.
1864 (usbtest_mod_LDFLAGS): New variable.
1865 (ohci_mod_SOURCES): New variable.
1866 (ohci_mod_CFLAGS): New variable.
1867 (ohci_mod_LDFLAGS): New variable.
1868 (usbms_mod_SOURCES): New variable.
1869 (usbms_mod_CFLAGS): New variable.
1870 (usbms_mod_LDFLAGS): New variable.
1871 (usb_keyboard_mod_SOURCES): New variable.
1872 (usb_keyboard_mod_CFLAGS): New variable.
1873 (usb_keyboard_mod_LDFLAGS): New variable.
1874 * include/grub/smbus.h: New file.
1875 * include/grub/cs5536.h: New file.
1876
1877 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1878
1879 * util/grub.d/00_header.in: Add safety check to make sure that
1880 ${locale_dir} exists before trying to probe it.
1881
1882 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1883
1884 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
1885 per the GNU Coding Standards; this is now too obscure to be worth
1886 documenting.
1887 (QNX): Likewise.
1888 (chainloader): Remove cross-reference to `SCO UnixWare'.
1889
1890 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1891
1892 * docs/grub.texi (Chain-loading): New section.
1893 (DOS/Windows): New section, borrowed from GRUB Legacy with details
1894 adjusted for GRUB 2.
1895 (SCO UnixWare): Likewise.
1896 (QNX): Likewise.
1897 (chainloader): Add reference to `Block list syntax'.
1898 (drivemap): New section.
1899 (parttool): New section.
1900
1901 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1902
1903 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
1904 the grub shell'.
1905 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
1906 (Installing GRUB using grub-install): Remove reference to the grub
1907 shell; mention `grub-mkimage' and `grub-setup' instead.
1908 (Invoking grub-install): Likewise.
1909 (Interface): Add reference to `Menu entry editor'.
1910 (serial): Remove `--device' option.
1911
1912 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1913
1914 * docs/grub.texi (Configuration): New section, documenting
1915 configuration file generation using grub-mkconfig. I've left a slot
1916 for documenting the full shell scripting format but have not yet
1917 started on writing that up.
1918 (Invoking grub-mkconfig): New section.
1919
1920 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1921
1922 * docs/grub.texi (direntry): Remove grub-terminfo reference.
1923 (GNU GRUB manual): Likewise.
1924 (General commands): Update description of `terminfo' for GRUB 2.
1925
1926 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1927
1928 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
1929 (GRUB_MOD_INIT): Fix capitalisation.
1930 * docs/grub.texi (Command-line and menu entry commands): Document
1931 gettext and gptsync commands.
1932
1933 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
1934
1935 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
1936 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
1937
1938 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
1939
1940 Add btrfs probing support, currently only in the single-device case.
1941
1942 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
1943 function.
1944 (grub_guess_root_device): Call find_root_device_from_mountinfo
1945 before looking in /dev.
1946
1947 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1948
1949 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
1950 GRUB_DISK_SIZE_UNKNOWN.
1951 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
1952
1953 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
1954
1955 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
1956 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
1957 corrupted or not synced properly.
1958
1959 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1960
1961 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
1962 Reported by: Seth Goldberg.
1963
1964 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1965
1966 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
1967 addition of dest.
1968 Reported by: Seth Goldberg.
1969
1970 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1971
1972 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
1973 Reported by: Seth Goldberg.
1974
1975 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1976
1977 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
1978 64-bit address as signed on MIPS.
1979
1980 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
1981
1982 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
1983 to the empty string.
1984
1985 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
1986
1987 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
1988
1989 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
1990 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
1991 * kern/misc.c (__enable_execute_stack): Disable on
1992 GRUB_MACHINE_EMU.
1993
1994 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
1995
1996 Make grub-probe work with symbolic links under /dev/mapper as well
1997 as with real block devices. The Linux world seems to be (at best)
1998 in transition here, and GRUB shouldn't get caught in the middle.
1999
2000 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
2001 /dev/mapper.
2002
2003 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
2004
2005 * util/grub-script-check.c (main): Ensure defined behaviour on empty
2006 input files (in which case exit zero).
2007
2008 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
2009
2010 * kern/emu/misc.c (canonicalize_file_name): realpath can still
2011 return NULL for various reasons even if it has a maximum-length
2012 buffer: for example, there might be a symlink loop, or the path
2013 might exceed PATH_MAX. If this happens, return NULL.
2014
2015 2010-05-27 Robert Millan <rmh@gnu.org>
2016
2017 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
2018 partmap module to handle cross-partmap setups.
2019 Reported by Orestes Mas. Gràcies!
2020
2021 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
2022
2023 * util/grub-mkrescue.in: Initialise override_dir rather than
2024 assuming that it's unset or empty in the environment.
2025
2026 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
2027
2028 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
2029 variable index into p_index to suppress a warning with -Wshadow.
2030
2031 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
2032
2033 * INSTALL: Added flex >= 2.5.35 requirement.
2034
2035 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2036
2037 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
2038
2039 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2040
2041 cmostest support.
2042
2043 * commands/i386/cmostest.c: New file.
2044 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
2045 (cmostest_mod_SOURCES): New variable.
2046 (cmostest_mod_CFLAGS): Likewise.
2047 (cmostest_mod_LDFLAGS): Likewise.
2048 * conf/i386-pc.rmk: Likewise.
2049 * docs/grub.texi (Vendor power-on keys): New section.
2050 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
2051 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
2052 and GRUB_BUTTON_CMOS_ADDRESS.
2053 * util/grub.d/00_header.in: Handle powering-on by separate button.
2054
2055 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2056
2057 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
2058 Removed drawing_scrollbar argument. All users updated
2059 Fixes #29792.
2060 Reported by Jo Shields
2061
2062 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2063
2064 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
2065 buffer since gfxterm handles double repaint.
2066
2067 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2068
2069 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
2070 * term/gfxterm.c (real_scroll): Likewise.
2071
2072 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2073
2074 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
2075 before calling BIOS.
2076
2077 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 * include/grub/i18n.h: Always enable grub_gettext.
2080
2081 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2082
2083 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
2084 partition naming style.
2085
2086 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
2087
2088 * util/grub-mkconfig.in: Fix handling of -o so that it works when
2089 not the first option.
2090
2091 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
2092
2093 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
2094
2095 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
2096
2097 * util/misc.c: Move inclusion of <limits.h> to ...
2098 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
2099
2100 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
2101
2102 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
2103 Fix merge error in NetBSD code.
2104 (find_partition_start) [__NetBSD__]: Likewise.
2105
2106 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
2107
2108 Fix grub-mkrescue usage unit testing.
2109
2110 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
2111
2112 2010-05-18 Christian Franke <franke@computer.org>
2113
2114 * util/grub.d/10_windows.in: Use path names instead of
2115 drive letters to prevent warning from Cygwin 1.7.
2116 Add drivemap command to menuentry if needed.
2117
2118 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
2119
2120 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
2121 gnumach and gnumach.gz.
2122
2123 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2124
2125 * include/grub/i18n.h (gettext): Inline instead of using #define.
2126 (grub_gettext): Likewise.
2127 (_): Likewise.
2128
2129 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2130
2131 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
2132 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
2133 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
2134 (main): Add a slash after pkglibdirroot.
2135
2136 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2137
2138 * util/grub-install.in: Add missing "in" keyword.
2139
2140 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2141
2142 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
2143 Reported by: Seth Goldberg.
2144
2145 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2146
2147 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
2148
2149 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
2150
2151 * configure.ac: Check for Linux device-mapper support.
2152
2153 * util/hostdisk.c (device_is_mapped): New function.
2154 (find_partition_start): New function, partly broken out from
2155 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
2156 device-mapper support added.
2157 (linux_find_partition): Use find_partition_start.
2158 (convert_system_partition_to_system_disk): Add `st' argument.
2159 Support Linux /dev/mapper/* devices if device-mapper support is
2160 available; only DM-RAID devices are understood at present.
2161 (find_system_device): Add `st' argument. Pass it to
2162 convert_system_partition_to_system_disk.
2163 (grub_util_biosdisk_get_grub_dev): Pass stat result to
2164 find_system_device and convert_system_partition_to_system_disk. Use
2165 find_partition_start.
2166
2167 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
2168 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
2169 * util/deviceiter.c [__linux__]: Define MINOR.
2170 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
2171 * util/mkdevicemap.c (grub_putchar): New function.
2172 (grub_getkey): New function.
2173 (grub_refresh): New function.
2174 (main): Set debug=all if -v -v is used.
2175
2176 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
2177
2178 Fix build with non-GNU libcs.
2179
2180 * util/misc.c (canonicalize_file_name): Move to ...
2181 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
2182 grub_make_system_path_relative_to_its_root.
2183
2184 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
2185
2186 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
2187 we handle finding grub-mkimage. Default to finding grub-mkimage in
2188 ${bindir} with program_transform_name applied, and provide a
2189 --grub-mkimage option to override this.
2190
2191 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2192
2193 Remove grub-mkisofs.
2194
2195 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
2196 (grub_mkisofs_SOURCES): Removed.
2197 (grub_mkisofs_CFLAGS): Removed.
2198 * util/mkisofs/defaults.h: Removed.
2199 * util/mkisofs/eltorito.c: Likewise.
2200 * util/mkisofs/exclude.h: Likewise.
2201 * util/mkisofs/hash.c: Likewise.
2202 * util/mkisofs/include/: Likewise.
2203 * util/mkisofs/include/fctldefs.h: Likewise.
2204 * util/mkisofs/include/mconfig.h: Likewise.
2205 * util/mkisofs/include/prototyp.h: Likewise.
2206 * util/mkisofs/include/statdefs.h: Likewise.
2207 * util/mkisofs/iso9660.h: Likewise.
2208 * util/mkisofs/joliet.c: Likewise.
2209 * util/mkisofs/match.c: Likewise.
2210 * util/mkisofs/match.h: Likewise.
2211 * util/mkisofs/mkisofs.c: Likewise.
2212 * util/mkisofs/mkisofs.h: Likewise.
2213 * util/mkisofs/msdos_partition.h: Likewise.
2214 * util/mkisofs/multi.c: Likewise.
2215 * util/mkisofs/name.c: Likewise.
2216 * util/mkisofs/rock.c: Likewise.
2217 * util/mkisofs/tree.c: Likewise.
2218 * util/mkisofs/write.c: Likewise.
2219
2220 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2221
2222 Unify grub-mkimage accross platforms.
2223
2224 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
2225 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
2226 (grub_mkelfimage_SOURCES): Removed.
2227 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
2228 (util/grub-mkimage.c_DEPENDENCIES): .. this.
2229 (bin_UTILITIES): Add grub-mkimage.
2230 (grub_mkimage_SOURCES): New variable.
2231 (kernel_img_HEADERS): Remove machine/kernel.h.
2232 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
2233 (pkglib_PROGRAMS): Add kernel.img.
2234 (kernel_img_HEADERS): Add machine/kernel.h.
2235 (kernel_img_FORMAT): Removed.
2236 (bin_UTILITIES): Remove grub-mkimage.
2237 (grub_mkimage_SOURCES): Removed.
2238 (grub_mkimage_CFLAGS): Likewise.
2239 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
2240 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
2241 (pkglib_PROGRAMS): Add kernel.img.
2242 (bin_UTILITIES): Remove grub-mkimage.
2243 (grub_mkimage_SOURCES): Removed.
2244 (grub_mkimage_CFLAGS): Likewise.
2245 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
2246 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
2247 (pkglib_PROGRAMS): Add kernel.img.
2248 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
2249 (pkglib_PROGRAMS): Add kernel.img.
2250 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
2251 (grub_mkimage_SOURCES): Removed.
2252 (grub_mkimage_CFLAGS): Likewise.
2253 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
2254 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
2255 (pkglib_PROGRAMS): Add kernel.img.
2256 (bin_UTILITIES): Remove grub-mkimage.
2257 (grub_mkimage_SOURCES): Removed.
2258 (grub_mkimage_CFLAGS): Likewise.
2259 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
2260 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
2261 (grub_mkimage_SOURCES): Removed.
2262 (grub_mkimage_CFLAGS): Likewise.
2263 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
2264 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
2265 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
2266 (grub_pe32_optional_header): ... this.
2267 (grub_pe64_optional_header): ... and this. All users updated.
2268 (GRUB_PE32_PE32_MAGIC): Split into ..
2269 (GRUB_PE32_PE32_MAGIC): .. this.
2270 (GRUB_PE32_PE64_MAGIC): .. and this.
2271 (GRUB_PE32_SIGNATURE_SIZE): New definition.
2272 * include/grub/elf.h (PT_GNU_STACK): New definition.
2273 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
2274 * include/grub/i386/efi/kernel.h: Likewise.
2275 * include/grub/i386/kernel.h: Likewise.
2276 * include/grub/i386/pc/kernel.h: Likewise.
2277 * include/grub/i386/qemu/boot.h: Likewise.
2278 * include/grub/mips/kernel.h: Likewise.
2279 * include/grub/mips/qemu-mips/kernel.h: Likewise.
2280 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
2281 * include/grub/powerpc/kernel.h: Likewise.
2282 * include/grub/sparc64/ieee1275/boot.h: Likewise.
2283 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
2284 * include/grub/sparc64/kernel.h: Likewise.
2285 * include/grub/x86_64/efi/kernel.h: Likewise.
2286 * include/grub/x86_64/kernel.h: Likewise.
2287 * include/grub/offsets.h: New file.
2288 * include/grub/kernel.h (grub_module_info): Split into ...
2289 (grub_module_info32): ... this.
2290 (grub_module_info64): ... and this.
2291 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
2292 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
2293 (grub_boot_blocklist): Moved from here ...
2294 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
2295 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
2296 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
2297 * include/grub/types.h (grub_target_to_host16): Removed.
2298 (grub_target_to_host32): Likewise.
2299 (grub_target_to_host64): Likewise.
2300 (grub_host_to_target16): Likewise.
2301 (grub_host_to_target32): Likewise.
2302 (grub_host_to_target64): Likewise.
2303 (grub_host_to_target_addr): Likewise.
2304
2305 Support grub-mkrescue for efi, coreboot and qemu.
2306
2307 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
2308 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
2309 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
2310 * util/grub-mkrawimage.c: Moved from here ...
2311 * util/grub-mkimage.c: ... here. All users updated.
2312 (ALIGN_ADDR): Use image_target.
2313 (TARGET_NO_FIELD): New const.
2314 (image_target_desc): New type.
2315 (image_targets): New array.
2316 (grub_target_to_host64): Use image_target.
2317 (grub_target_to_host32): Likewise.
2318 (grub_target_to_host16): Likewise.
2319 (grub_host_to_target64): Likewise.
2320 (grub_host_to_target32): Likewise.
2321 (grub_host_to_target16): Likewise.
2322 (grub_host_to_target_addr): Likewise.
2323 (generate_image): Handle multiimage.
2324 (main): Require -O parameter. All users updated.
2325 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
2326 util/efi/grub-mkimage.c
2327 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
2328 New option --rom-directory.
2329 Use xorriso.
2330 * util/i386/efi/grub-mkimage.c: Removed.
2331 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
2332 (grub_target_to_host32): Likewise.
2333 (grub_target_to_host64): Likewise.
2334 (grub_host_to_target16): Likewise.
2335 (grub_host_to_target32): Likewise.
2336 (grub_host_to_target64): Likewise.
2337 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
2338 (grub_target_to_host32): Likewise.
2339 (grub_target_to_host64): Likewise.
2340 (grub_host_to_target16): Likewise.
2341 (grub_host_to_target32): Likewise.
2342 (grub_host_to_target64): Likewise.
2343
2344 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
2345
2346 Source tree is reorganized for emu build.
2347
2348 * include/grub/util/console.h: Move from here...
2349 * include/grub/emu/console.h: ...to here.
2350 * include/grub/util/getroot.h: Move from here...
2351 * include/grub/emu/getroot.h: ...to here.
2352 * include/grub/util/hostdisk.h: Move from here...
2353 * include/grub/emu/hostdisk.h: ...to here.
2354 * util/console.c: Move from here...
2355 * kern/emu/console.c: ...to here.
2356 * util/getroot.c: Move from here...
2357 * kern/emu/getroot.c: ...to here.
2358 * util/grub-emu.c: Move from here...
2359 * kern/emu/main.c: ...to here.
2360 * util/hostdisk.c: Move from here...
2361 * kern/emu/hostdisk.c: ...to here.
2362 * util/hostfs.c: Move from here...
2363 * kern/emu/hostfs.c: ...to here.
2364 * util/mm.c: Move from here...
2365 * kern/emu/mm.c: ...to here.
2366 * util/pci.c: Move from here...
2367 * bus/emu/pci.c: ...to here.
2368 * util/sdl.c: Move from here...
2369 * video/emu/sdl.c: ...to here.
2370 * util/time.c: Move from here...
2371 * kern/emu/time.c: ...to here.
2372 * util/usb.c: Move from here...
2373 * bus/usb/emu/usb.c: ...to here.
2374
2375 * include/grub/emu/misc.h: New header for grub-emu functions.
2376 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
2377
2378 * conf/any-emu.rmk: Rule updates for above renames.
2379 * conf/common.rmk: Likewise.
2380 * conf/i386-pc.rmk: Likewise.
2381 * conf/i386-qemu.rmk: Likewise.
2382 * conf/mips.rmk: Likewise.
2383 * conf/sparc64-ieee1275.rmk: Likewise.
2384 * conf/x86-efi.rmk: Likewise.
2385
2386 * disk/lvm.h: #include updates for above renames.
2387 * util/grub-mkrelpath.c: Likewise.
2388 * util/grub-probe.c: Likewise.
2389 * util/i386/pc/grub-setup.c: Likewise.
2390 * util/sparc64/ieee1275/grub-setup.c: Likewise.
2391 * kern/emu/console.c: Likewise.
2392 * kern/emu/getroot.c: Likewise.
2393 * kern/emu/hostdisk.c: Likewise.
2394 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
2395
2396 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
2397 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
2398 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
2399 * util/misc.c: Remove grub-emu functions.
2400
2401 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 Fix gfxmenu crash.
2404 Reported by: Thorsten Grützmacher.
2405
2406 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
2407 timeout hook.
2408 (circprog_set_property): Register and unregister timeout hook.
2409 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
2410 (label_destroy): Free template. and unregister hook.
2411 (label_set_state): New function.
2412 (label_set_property): Handle templates and hooks.
2413 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
2414 timeout hook.
2415 (progress_bar_set_property): Register and unregister timeout hook.
2416 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
2417 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
2418 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
2419 (update_timeout_visit): Removed.
2420 (update_timeouts): New function.
2421 (redraw_timeouts): Likewise.
2422 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
2423 (grub_gfxmenu_clear_timeout): Likewise.
2424 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
2425 (grub_gfxmenu_timeout_notify): Likewise.
2426 (grub_gfxmenu_timeout_notifications): New external variable.
2427 (grub_gfxmenu_timeout_register): New function.
2428 (grub_gfxmenu_timeout_unregister): Likewise.
2429
2430 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2431
2432 Transform (broken) vga terminal into (working) vga video driver.
2433
2434 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
2435 video/i386/pc/vga.c.
2436 * include/grub/video.h (grub_video_driver_id):
2437 Add GRUB_VIDEO_DRIVER_VGA.
2438 * term/i386/pc/vga.c: Renamed to ...
2439 * video/i386/pc/vga.c: ...this
2440 (DEBUG_VGA): Removed.
2441 (CHAR_WIDTH): Likewise.
2442 (CHAR_HEIGHT): Likewise.
2443 (TEXT_WIDTH): Likewise.
2444 (TEXT_HEIGHT): Likewise.
2445 (DEFAULT_FG_COLOR): Likewise.
2446 (DEFAULT_BG_COLOR): Likewise.
2447 (colored_char): Likewise.
2448 (xpos): Likewise.
2449 (ypos): Likewise.
2450 (cursor_state): Likewise.
2451 (fg_color): Likewise.
2452 (bg_color): Likewise.
2453 (text_buf): Likewise.
2454 (page): Likewise.
2455 (font): Likewise.
2456 (framebuffer): New variable.
2457 (set_read_map): Disabled.
2458 (setup): New variable.
2459 (is_target): Likewise.
2460 (grub_vga_mod_init): Likewise.
2461 (grub_vga_mod_fini): Likewise.
2462 (check_vga_mem): Likewise.
2463 (write_char): Likewise.
2464 (write_cursor): Likewise.
2465 (scroll_up): Likewise.
2466 (grub_vga_putchar): Likewise.
2467 (grub_vga_getcharwidth): Likewise.
2468 (grub_vga_getwh): Likewise.
2469 (grub_vga_getxy): Likewise.
2470 (grub_vga_gotoxy): Likewise.
2471 (grub_vga_cls): Likewise.
2472 (grub_vga_setcolorstate): Likewise.
2473 (grub_vga_setcursor): Likewise.
2474 (grub_video_vga_init): New function.
2475 (grub_video_vga_setup): Likewise.
2476 (grub_video_vga_fini): Likewise.
2477 (update_target): Likewise.
2478 (grub_video_vga_blit_bitmap): Likewise.
2479 (grub_video_vga_blit_render_target): Likewise.
2480 (grub_video_vga_set_active_render_target): Likewise.
2481 (grub_video_vga_get_active_render_target): Likewise.
2482 (grub_video_vga_swap_buffers): Likewise.
2483 (grub_video_vga_set_palette): Likewise.
2484 (grub_video_vga_get_info_and_fini): Likewise.
2485 (grub_vga_term): Removed.
2486 (grub_video_vga_adapter): New variable.
2487 (GRUB_MOD_INIT): Register a video driver instead of terminal.
2488 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
2489
2490 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2491
2492 * video/readers/jpeg.c: Indented.
2493
2494 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2495
2496 Various jpeg cleanups.
2497
2498 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
2499 (grub_jpeg_decode_quan_table): Use sizeof.
2500 (grub_jpeg_decode_du): Use ARRAY_SIZE.
2501
2502 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
2503
2504 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
2505 tables. Ignore non-last ac bit.
2506 (grub_jpeg_decode_quan_table): Likewise.
2507
2508 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2509
2510 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
2511 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
2512 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2513 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
2514 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
2515 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
2516
2517 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2518
2519 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
2520 error.
2521
2522 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2523
2524 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
2525
2526 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2527
2528 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
2529 condition.
2530
2531 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2532
2533 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
2534 part.
2535
2536 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2537
2538 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
2539 pointers.
2540
2541 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2542
2543 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
2544
2545 2010-05-01 Christian Franke <franke@computer.org>
2546
2547 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
2548 Remove broken Cygwin path conversion.
2549 * util/misc.c: [__CYGWIN__] Add include and define.
2550 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
2551 for Cygwin 1.7.
2552 (make_system_path_relative_to_its_root): Simplify loop, replace early
2553 return by break.
2554 [__CYGWIN__] Add conversion to win32 path.
2555 Include "/" case in trailing slash removal.
2556
2557 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2558
2559 * kern/main.c (grub_load_config): Fix copy-pasted comment.
2560 Reported by: Seth Goldberg
2561
2562 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2563
2564 * commands/help.c (grub_cmd_help): Fix a typo.
2565 Reported by: Seth Goldberg
2566
2567 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2568
2569 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
2570 name and add N_.
2571 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
2572 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
2573 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
2574 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
2575 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
2576 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
2577 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
2578 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
2579 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
2580 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
2581 * normal/context.c (GRUB_MOD_INIT): Likewise.
2582 * normal/main.c (GRUB_MOD_INIT): Likewise.
2583 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
2584 * term/serial.c (GRUB_MOD_INIT): Likewise.
2585 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
2586
2587 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2588
2589 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
2590 extra == 0.
2591
2592 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2593
2594 * commands/iorw.c: New file.
2595 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
2596 (iorw_mod_SOURCES): New variable.
2597 (iorw_mod_CFLAGS): Likewise.
2598 (iorw_mod_LDFLAGS): Likewise.
2599
2600 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2601
2602 Hotkey support
2603
2604 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
2605 * normal/main.c (hotkey_aliases): New variable.
2606 (grub_normal_add_menu_entry): Parse "--hotkey".
2607 * normal/menu_text.c (run_menu): Handle hotkeys.
2608
2609 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2610
2611 * kern/i386/coreboot/init.c (grub_machine_init): Call
2612 grub_machine_mmap_init on qemu.
2613
2614 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2615
2616 * boot/i386/qemu/boot.S: Add a missing .code16.
2617
2618 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2619
2620 Use LBIO on coreboot.
2621
2622 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
2623 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
2624 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
2625 New declaration.
2626 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
2627 grub_machine_mmap_init on coreboot.
2628 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
2629 GRUB_LINUXBIOS_MEMBER_LINK.
2630 (grub_machine_mmap_iterate): Fix declaration.
2631 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
2632
2633 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2634
2635 Split coreboot and multiboot ports.
2636
2637 * conf/i386-multiboot.rmk: New file.
2638 * configure.ac: Add multiboot port.
2639 * include/grub/i386/multiboot/boot.h: New file.
2640 * include/grub/i386/multiboot/console.h: Likewise.
2641 * include/grub/i386/multiboot/init.h: Likewise.
2642 * include/grub/i386/multiboot/kernel.h: Likewise.
2643 * include/grub/i386/multiboot/loader.h: Likewise.
2644 * include/grub/i386/multiboot/memory.h: Likewise.
2645 * include/grub/i386/multiboot/serial.h: Likewise.
2646 * include/grub/i386/multiboot/time.h: Likewise.
2647 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
2648 * loader/multiboot.c: Likewise.
2649 * loader/multiboot_mbi2.c: Likewise.
2650 * util/grub-mkrescue.in: Generate multiboot rescue.
2651
2652 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2653
2654 * kern/parser.c (grub_parser_execute): Cope with read-only config.
2655
2656 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
2657
2658 Merge handling of input and output terminals. Fix a hang.
2659
2660 * commands/terminal.c (abstract_terminal): New struct.
2661 (handle_command): New function. Based on grub_cmd_terminal_input.
2662 (grub_cmd_terminal_input): Use handle_command.
2663 (grub_cmd_terminal_output): Use handle_command.
2664
2665 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
2666
2667 Fix comment handling.
2668
2669 * tests/grub_script_comments.in: New testcase.
2670 * conf/tests.rmk: Rules for new testcase.
2671 * script/yylex.l: Updated flex rules.
2672
2673 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
2674
2675 * docs/grub.texi (play): Document that zero pitches produce rests.
2676 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
2677 if argc is 1.
2678
2679 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
2680
2681 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
2682 autogen issues.
2683
2684 2010-04-26 Christian Franke <franke@computer.org>
2685
2686 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
2687 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
2688 (grub_get_prefix): Remove function.
2689 * util/grub-emu.c (main): Replace grub_get_prefix () call by
2690 make_system_path_relative_to_its_root ().
2691 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
2692
2693 2010-04-24 Christian Franke <franke@computer.org>
2694
2695 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
2696 (kernel_img_LDFLAGS): Remove -static-libgcc.
2697
2698 2010-04-24 Christian Franke <franke@computer.org>
2699
2700 * configure.ac: Do not CHECK_BSS_START_SYMBOL
2701 and CHECK_END_SYMBOL if grub-emu is built.
2702 Unset TARGET_OBJ2ELF if grub-emu is built
2703 without module support.
2704
2705 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
2706
2707 Nilfs2 support.
2708
2709 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
2710 (grub_fstest_SOURCES): Likewise.
2711 (pkglib_MODULES): Add nilfs2.mod.
2712 (nilfs2_mod_SOURCES): New variable.
2713 (nilfs2_mod_CFLAGS): Likewise.
2714 (nilfs2_mod_LDFLAGS): Likewise.
2715 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
2716 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
2717 * fs/nilfs2.c: New file.
2718
2719 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2720
2721 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
2722 is not supported.
2723
2724 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
2725
2726 Add grub-mkconfig support for NetBSD.
2727
2728 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
2729 * util/grub-mkconfig.in: export new NetBSD specific variables.
2730 * po/POTFILES-shell: added 10_netbsd.in.
2731 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
2732
2733 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
2734
2735 Fix emu build with grub-emu-pci and grub-emu-modules.
2736
2737 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
2738 functions.
2739 * include/grub/libpciaccess.h: New file.
2740 * conf/any-emu.rmk: Update kernel headers for emu build.
2741
2742 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2743
2744 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
2745
2746 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2747
2748 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
2749
2750 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2751
2752 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
2753 Retrieve chosen/bootpath if bootpath isn't hardcoded.
2754 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
2755 util/ieee1275/ofpath.c.
2756 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
2757 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
2758 * include/grub/sparc64/ieee1275/boot.h
2759 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
2760 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
2761 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
2762 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
2763 const char *.
2764 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
2765 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
2766 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
2767 install.
2768
2769 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
2770
2771 * util/grub-mkconfig.in: Corrected two == equality tests.
2772 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
2773 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
2774 expect a number appended to it.
2775 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
2776 expects a number appended to it.
2777
2778 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2779
2780 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
2781
2782 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
2783
2784 * util/hostdisk.c (make_device_name): Change to new partition naming.
2785
2786 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2787
2788 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
2789
2790 2010-04-17 Christian Franke <franke@computer.org>
2791
2792 * Makefile.in: Add missing localedir setting.
2793
2794 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
2795
2796 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
2797 mistake in r2156. Noticed by Anthony Fok.
2798
2799 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
2800 @localedir@.
2801 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
2802
2803 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
2804
2805 Fix a spurious, uninitialized variable warning.
2806
2807 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
2808 Initialize variable, shdr.
2809 (grub_freebsd_load_elfmodule): Likewise.
2810 (grub_freebsd_load_elf_meta): Likewise.
2811
2812 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
2813
2814 Fix for escaped dollar in double quoted strings.
2815
2816 * script/yylex.l: Updated flex rules.
2817 * conf/tests.rmk: Rule for new testcase.
2818 * tests/grub_script_dollar.in: New testcase.
2819
2820 2010-04-13 Carles Pina i Estany <carles@pina.cat>
2821 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
2822
2823 Enclose all translated strings in grub.cfg in single quotes, and
2824 escape them appropriately (Ubuntu bug #552921).
2825
2826 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
2827 * util/grub.d/10_hurd.in: Use it.
2828 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
2829 * util/grub.d/10_linux.in (linux_entry): Likewise.
2830
2831 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2832
2833 Fix cygwin compilation.
2834
2835 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
2836 * include/grub/misc.h (__register_frame_info)
2837 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
2838 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
2839 * kern/misc.c (__register_frame_info)
2840 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
2841 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
2842
2843 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2844
2845 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
2846
2847 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2848
2849 Unify libgcc processing.
2850
2851 * Makefile.in (kernel_img_LDFLAGS): New variable.
2852 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
2853 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
2854 overwriting.
2855 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
2856 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
2857 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
2858 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
2859 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
2860 overwriting. Remove -lgcc and -static-libgcc
2861 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
2862 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
2863 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
2864 (kernel_img_LDFLAGS): Append instead of overwriting.
2865 Remove -lgcc and -static-libgcc
2866 * conf/sparc64-ieee1275.rmk: Likewise.
2867 * include/grub/powerpc/libgcc.h: Move to ...
2868 * include/grub/libgcc.h: .. this.
2869 * include/grub/libgcc.h: Don't export most of the function on x86.
2870 (__bswapsi2): New export.
2871 (__bswapdi2): Likewise.
2872 * include/grub/mips/libgcc.h: Removed.
2873 * include/grub/sparc64/libgcc.h: Likewise.
2874
2875 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2876
2877 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
2878 disk_info_msg (conflicts with gettexting into languages with cases).
2879
2880 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
2881
2882 Add grub-probe support for NetBSD.
2883
2884 * util/getroot.c (find_root_device): Convert block device to
2885 character device on NetBSD.
2886 * util/probe.c (probe): Require character device on NetBSD.
2887 * util/hostdisk.c: NetBSD specific headers.
2888 (configure_device_driver): new function to tune device driver
2889 parameters (currently only for NetBSD floppy driver).
2890 (grub_util_biosdisk_open): NetBSD specific code (get disk size
2891 via disklabel ioctl).
2892 (open_device): call configure_device_driver on NetBSD.
2893 (convert_system_partition_to_system_disk): NetBSD specific code.
2894 (device_is_wholedisk): Likewise.
2895 (grub_util_biosdisk_get_grub_dev): Likewise.
2896 (make_device_name): Fixed a typo in bsd_part_str.
2897 * configure.ac: check for opendisk() and getrawpartition() on
2898 NetBSD and set LIBUTIL.
2899 * Makefile.in: add LIBUTIL to LIBS.
2900
2901 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2902
2903 Documentation fix.
2904
2905 * util/grub-script-check.c: Better help message.
2906
2907 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
2908
2909 Fix FreeBSD build.
2910
2911 * configure.ac: Flex version check.
2912 * conf/common.rmk: Add -Wno-error to sh.mod.
2913 * script/yylex.l: Remove all #pragma.
2914
2915 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2916
2917 * include/grub/util/misc.h (canonicalise_file_name): Add missing
2918 prototype.
2919 Reported by: Seth Goldberg.
2920
2921 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2922
2923 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
2924 Rename "module" to "module2".
2925 Reported by: Seth Goldberg.
2926
2927 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2928
2929 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
2930 EXPORT_FUNC.
2931 Reported by: Seth Goldberg.
2932
2933 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2934
2935 * lib/posix_wrap/locale.h: Add missing file.
2936 Reported by: Seth Goldberg.
2937
2938 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
2939
2940 grub-emu module load support.
2941
2942 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
2943 NO_DYNAMIC_MODULES switched to this.
2944 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
2945 (CFLAGS): Likewise.
2946 * conf/any-emu.rmk: Generate symlist.
2947 (kernel_img_HEADERS): Add util/datetime.h.
2948 (kernel_img_HEADERS) [sdl]: Add sdl.h.
2949 (kernel_img_HEADERS) [libusb]: Add libusb.h.
2950 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
2951 kern/$(target_cpu)/cache.S.
2952 * configure.ac (grub-emu-modules): New option.
2953 * genmk.rb: Handle multiple source lists.
2954 * include/grub/sdl.h: New file.
2955 * include/grub/libusb.h: Likewise.
2956 * util/grub-emu.c (main): Hanle (host) root.
2957 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
2958 GRUB_ERR_UNKNOWN_DEVICE.
2959 * util/misc.c: Move mm functions to ...
2960 * util/mm.c: ... here. All users updated.
2961
2962 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2963
2964 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
2965 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
2966 missing files.
2967 (maintainer-clean): Remove libgcrypt-grub.
2968
2969 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2970
2971 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
2972
2973 2010-04-09 EFI Coder <eficoder@hotmail.com>
2974
2975 * normal/menu_text.c (print_message): Clean up the message and show
2976 the Fn information when on EFI
2977 * term/efi/console.c (grub_console_checkkey): Add F4 support.
2978
2979 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2980
2981 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
2982 All users updated.
2983 * normal/crypto.c (read_crypto_list): Likewise.
2984 * normal/dyncmd.c (read_command_list): Likewise.
2985 * normal/term.c (read_terminal_list): Likewise.
2986 * normal/main.c (read_lists): Use explicit prefix.
2987 (read_lists_hook): Use read_lists.
2988 (grub_normal_execute): Likewise.
2989
2990 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2991
2992 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
2993 Reported by: Thomas Schmitt.
2994 Add -no-emul-boot to grub-mkisofs parameters.
2995
2996 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
2997
2998 * font/font.c: Indented.
2999
3000 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
3001
3002 Elif support to GRUB script (by Deepak Vankadaru).
3003
3004 * tests/grub_script_if.in: New testcase.
3005 * conf/tests.rmk: Rule for new testcase.
3006 * script/parser.y: Grammar rules for elif.
3007
3008 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
3009
3010 While and until loops support to GRUB script.
3011
3012 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
3013 (grub_script_create_cmdwhile): New function prototype.
3014 (grub_script_execute_cmdwhile): New function prototype.
3015 * script/execute.c (grub_script_execute_cmdwhile): New function.
3016 * script/parser.y (command): New commands.
3017 (whilecmd): New grammar rule.
3018 (untilcmd): New grammar rule.
3019 * script/script.c (grub_script_create_cmdwhile): New function.
3020 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
3021 function.
3022
3023 * tests/grub_script_while1.in: New testcase.
3024 * conf/tests.rmk: Rule for new testcase.
3025
3026 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
3027
3028 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
3029 as *.jpg.
3030
3031 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
3032
3033 GRUB_BACKGROUND support.
3034
3035 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
3036 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
3037
3038 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
3039
3040 Load fonts and modules for gfxmenu in grub-mkconfig.
3041 Idea by: Mario Vazquez
3042
3043 * util/grub.d/00_header.in: Load pf2 and image modules.
3044
3045 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
3046
3047 grub-mkconfig multiple terminal support.
3048
3049 * util/grub-mkconfig.in: Handle multiple terminals correctly.
3050 * util/grub.d/00_header.in: Likewise.
3051
3052 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
3053
3054 * Makefile.in: Specify files explicitly instead of using $< and $@ since
3055 we use cd $(srcdir).
3056
3057 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
3058
3059 * util/grub.d/10_linux.in: Only use the first word of
3060 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
3061 spaces in GRUB_DISTRIBUTOR.
3062 * util/grub.d/10_kfreebsd.in: Likewise.
3063 * util/grub.d/10_hurd.in: Likewise.
3064
3065 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
3066
3067 Fix unit testing framework for Qemu 0.12.
3068
3069 * tests/util/grub-shell.in: Remove -serial stdio option.
3070
3071 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
3072
3073 POSIX header file wrappers.
3074
3075 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
3076 equivalents.
3077 * lib/posix_wrap/ctype.h: Likewise.
3078 * lib/posix_wrap/errno.h: Likewise.
3079 * lib/posix_wrap/langinfo.h: Likewise.
3080 * lib/posix_wrap/limits.h: Likewise.
3081 * lib/posix_wrap/localcharset.h: Likewise.
3082 * lib/posix_wrap/stdint.h: Likewise.
3083 * lib/posix_wrap/stdio.h: Likewise.
3084 * lib/posix_wrap/stdlib.h: Likewise.
3085 * lib/posix_wrap/string.h: Likewise.
3086 * lib/posix_wrap/sys/types.h: Likewise.
3087 * lib/posix_wrap/unistd.h: Likewise.
3088 * lib/posix_wrap/wchar.h: Likewise.
3089 * lib/posix_wrap/wctype.h: Likewise.
3090 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
3091 (grub_script.yy.h): Likewise.
3092 * script/yylex.l: Remove POSIX emulation #defines.
3093 * Makefile.in (POSIX_CFLAGS): New variable.
3094 (GNULIB_UTIL_CFLAGS): Likewise.
3095
3096 Regexp support.
3097
3098 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
3099 (regexp_mod_SOURCES): New variable.
3100 (regexp_mod_CFLAGS): Likewise.
3101 (regexp_mod_LDFLAGS): Likewise.
3102 * commands/regexp.c: New file.
3103 * gnulib/regcomp.c: New file. Imported from gnulib.
3104 * gnulib/regex.c: Likewise.
3105 * gnulib/regex_internal.c: Likewise.
3106 * gnulib/regex_internal.h: Likewise.
3107 * gnulib/regexec.c: Likewise.
3108 * gnulib/regex.h: Likewise.
3109
3110 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3111
3112 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
3113 unsupported video mode types.
3114
3115 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3116
3117 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
3118
3119 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3120
3121 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
3122 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
3123
3124 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3125
3126 Remove unused grub_vga_get_font.
3127
3128 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
3129 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
3130
3131 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
3132
3133 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
3134 * include/grub/misc.h: Likewise.
3135
3136 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
3137
3138 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
3139 for which failure is fatal.
3140
3141 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
3142
3143 * util/grub-install.in: Use mkdir -p to create grub directory.
3144 * util/i386/efi/grub-install.in: Likewise.
3145 * util/ieee1275/grub-install.in: Likewise.
3146
3147 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
3148
3149 * Makefile.in (LEX): new variable.
3150
3151 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
3152
3153 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
3154 `=' and added double quotes on operands of this equality test.
3155
3156 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3157
3158 * Makefile.in (uninstall): Remove a leftover debug echo.
3159 Reported by: Grégoire Sutre
3160
3161 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3162
3163 MIPS multiboot2 support.
3164
3165 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
3166 (multiboot2_mod_SOURCES): New variable.
3167 (multiboot2_mod_CFLAGS): Likewise.
3168 (multiboot2_mod_LDFLAGS): Likewise.
3169 (multiboot2_mod_ASFLAGS): Likewise.
3170 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
3171 definition.
3172 (MULTIBOOT_ENTRY_REGISTER): Likewise.
3173 (MULTIBOOT_MBI_REGISTER): Likewise.
3174 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
3175 (MULTIBOOT_ELF32_MACHINE): Likewise.
3176 (MULTIBOOT_ELF64_MACHINE): Likewise.
3177 * include/grub/mips/multiboot.h: New file.
3178 * include/grub/video.h (grub_video_driver_id): New type
3179 GRUB_VIDEO_DRIVER_SM712.
3180 (grub_video_get_info_and_fini): Export.
3181 (grub_video_get_palette): Likewise.
3182 (grub_video_get_driver_id): Likewise.
3183 * include/multiboot2.h: Resynced with spec.
3184 * loader/i386/multiboot.c: Moved from here ...
3185 * loader/multiboot.c: ... here. All users updated.
3186 (grub_multiboot_boot): Use platform-specific macros.
3187 * loader/i386/multiboot_elfxx.c: Moved from here ...
3188 * loader/multiboot_elfxx.c: ... here. All users updated.
3189 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
3190 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
3191 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
3192
3193 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
3194
3195 Import gnulib argp module.
3196
3197 * gnulib/argp-ba.c: New file.
3198 * gnulib/argp-eexst.c: Likewise.
3199 * gnulib/argp-fmtstream.c: Likewise.
3200 * gnulib/argp-fmtstream.h: Likewise.
3201 * gnulib/argp-fs-xinl.c: Likewise.
3202 * gnulib/argp-help.c: Likewise.
3203 * gnulib/argp-namefrob.h: Likewise.
3204 * gnulib/argp-parse.c: Likewise.
3205 * gnulib/argp-pin.c: Likewise.
3206 * gnulib/argp-pv.c: Likewise.
3207 * gnulib/argp-pvh.c: Likewise.
3208 * gnulib/argp-version-etc.c: Likewise.
3209 * gnulib/argp-version-etc.h: Likewise.
3210 * gnulib/argp-xinl.c: Likewise.
3211 * gnulib/argp.h: Likewise.
3212
3213 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3214
3215 * kern/device.c (grub_device_iterate): Clear errors after failed
3216 opening device.
3217
3218 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3219
3220 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
3221 returned by firmware.
3222
3223 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
3224
3225 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
3226 compilation on coreboot and qemu
3227
3228 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3229
3230 * include/multiboot2.h: Resync with spec.
3231
3232 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3233
3234 Multiboot2 tag support
3235
3236 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
3237 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
3238 Remove loader/multiboot_loader.c.
3239 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
3240 (grub_multiboot2_real_boot): Likewise.
3241 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
3242 (grub_get_multiboot_mmap_count): New proto.
3243 (grub_fill_multiboot_mmap): Likewise.
3244 (grub_multiboot_set_video_mode): Likewise.
3245 (grub_multiboot_set_console): Likewise.
3246 (grub_multiboot_load): Likewise.
3247 (grub_multiboot_load_elf): Likewise.
3248 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
3249 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
3250 * include/multiboot.h: Resynced with specification.
3251 * include/multiboot2.h: Resynced with specification.
3252 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
3253 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
3254 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
3255 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
3256 users updated.
3257 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
3258 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
3259 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
3260 Removed.
3261 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
3262 Moved from here...
3263 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
3264 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
3265 Moved from here...
3266 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
3267 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
3268 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
3269 All users updated.
3270 * loader/i386/multiboot_mbi2.c: New file.
3271
3272 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
3273
3274 Resync with gnulib.
3275
3276 * Makefile.in (GNULIB_CFLAGS): New variable.
3277 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
3278 (grub_script_check_CFLAGS): New variable.
3279 * gnulib/alloca.h: Resync with gnulib.
3280 * gnulib/error.c: Likewise.
3281 * gnulib/error.h: Likewise.
3282 * gnulib/fnmatch.c: Likewise.
3283 * gnulib/fnmatch_loop.c: Likewise.
3284 * gnulib/getdelim.c: Likewise.
3285 * gnulib/getline.c: Likewise.
3286 * gnulib/getopt.c: Likewise.
3287 * gnulib/getopt1.c: Likewise.
3288 * gnulib/getopt_int.h: Likewise.
3289 * gnulib/gettext.h: Likewise.
3290 * gnulib/progname.c: Likewise.
3291 * gnulib/progname.h: Likewise.
3292
3293 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
3294
3295 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
3296 which is the case with --disabled-nls.
3297
3298 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
3299 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
3300 * util/misc.c: Likewise.
3301 * util/mkisofs/mkisofs.c: Likewise.
3302 * util/mkisofs/mkisofs.h: Likewise.
3303
3304 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
3305
3306 Simplify Apple CC support.
3307
3308 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
3309 Add 0 byte at the end not to have a symbol with empty target.
3310 * mmap/i386/pc/mmap_helper.S: Likewise.
3311 * genmk.rb: Ignore errors 2030 and 2050.
3312 * kern/i386/pc/startup.S: Use LOCAL when possible.
3313
3314 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
3315
3316 Testcase and the fix for final semicolon on cmdline.
3317
3318 * tests/grub_script_final_semicolon.in: New testcase.
3319 * conf/tests.rmk: Rules for the new testcase.
3320 * script/parser.y: Grammar fix.
3321
3322 2010-03-26 BVK Chaitanya <bvk@localhost>
3323
3324 Blank lines testcase for GRUB script.
3325
3326 * tests/grub_script_blanklines.in: New testcase.
3327 * conf/tests.rmk: Rules for the new testcase.
3328
3329 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3330
3331 Don't use __FILE__.
3332
3333 * genmk.rb: Add -DGRUB_FILE to all C targets.
3334 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
3335 * include/grub/list.h: Likewise.
3336 * include/grub/misc.h: Likewise.
3337 * include/grub/mm.h: Likewise.
3338 * include/grub/test.h: Likewise.
3339 * kern/mm.c: Likewise.
3340 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
3341
3342 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3343
3344 Sunpc partitions support.
3345
3346 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
3347 (grub_fstest_SOURCES): Likewise.
3348 (pkglib_MODULES): Add part_sunpc.mod.
3349 (part_sunpc_mod_SOURCES): New variable.
3350 (part_sunpc_mod_CFLAGS): Likewise.
3351 (part_sunpc_mod_LDFLAGS): Likewise.
3352 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
3353 * partmap/sunpc.c: New file.
3354
3355 2010-03-26 BVK Chaitanya <bvk@localhost>
3356
3357 For loop support to GRUB script.
3358
3359 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
3360 (grub_script_create_cmdfor): New function prototype.
3361 (grub_script_execute_cmdfor): New function prototype.
3362 * script/execute.c (grub_script_execute_cmdfor): New function.
3363 * script/parser.y (command): New for command.
3364 (forcmd): New grammar rule.
3365 * script/script.c (grub_script_create_cmdfor): New function.
3366 * util/grub-script-check.c (grub_script_execute_cmdfor): New
3367 function.
3368 * tests/grub_script_for1.in: New testcase.
3369 * conf/tests.rmk: Rules for new testcase.
3370
3371 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3372
3373 Nested partitions
3374
3375 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
3376 'partition' is NULL, grub_partition_get_start already does that.
3377 * commands/loadenv.c (check_blocklists): Likewise.
3378 (write_blocklists): Likewise.
3379 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
3380 (grub_fstest_SOURCES): Likewise.
3381 (pkglib_MODULES): Add part_bsd.mod.
3382 (part_bsd_mod_SOURCES): New variable.
3383 (part_bsd_mod_CFLAGS): Likewise.
3384 (part_bsd_mod_LDFLAGS): Likewise.
3385 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
3386 (grub_emu_SOURCES): Likewise.
3387 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
3388 * include/grub/bsdlabel.h: New file.
3389 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
3390 'get_name'.
3391 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
3392 (grub_partition_map_list): New variable.
3393 (grub_partition_map_register): Inline.
3394 (grub_partition_map_unregister): Likewise.
3395 (FOR_PARTITION_MAPS): New macro.
3396 (grub_partition_map_iterate): Removed.
3397 (grub_partition_get_start): Handle nested partitions.
3398 * include/grub/msdos_partition.h: Remove bsd-related entries.
3399 (grub_pc_partition): Remove.
3400 * kern/disk.c (grub_disk_close): Free partition data.
3401 (grub_disk_adjust_range): Handle nested partitions.
3402 * kern/partition.c (grub_partition_map_probe): New function.
3403 (grub_partition_probe): Parse name to number, handle subpartitions.
3404 (get_partmap): New function.
3405 (grub_partition_iterate): Handle subpartitions.
3406 (grub_partition_get_name): Likewise.
3407 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
3408 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
3409 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
3410 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
3411 Set 'number'.
3412 (acorn_partition_map_probe): Remove.
3413 (acorn_partition_map_get_name): Likewise.
3414 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
3415 Set 'number'.
3416 Set 'index' to 0 since there can be only one partition entry per sector.
3417 (amiga_partition_map_probe): Remove.
3418 (amiga_partition_map_get_name): Likewise.
3419 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
3420 Set 'number'.
3421 Set 'offset' and 'index' to real positions of partitions.
3422 (apple_partition_map_probe): Remove.
3423 (apple_partition_map_get_name): Likewise.
3424 * partmap/bsdlabel.c: New file.
3425 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
3426 Set 'number'.
3427 Allocate 'data' so it can be correctly freed.
3428 Set 'index' to offset inside sector.
3429 (gpt_partition_map_probe): Remove.
3430 (gpt_partition_map_get_name): Likewise.
3431 * partmap/msdos.c (grub_partition_parse): Remove.
3432 (pc_partition_map_iterate): Don't force raw access.
3433 Set 'number'.
3434 Make 'ext_offset' a local variable.
3435 (pc_partition_map_probe): Remove.
3436 (pc_partition_map_get_name): Remove.
3437 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
3438 Set 'number'.
3439 (sun_partition_map_probe): Remove.
3440 (sun_partition_map_get_name): Likewise.
3441 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
3442 (grub_pcpart_type): Likewise.
3443 * util/hostdisk.c (open_device): Handle new numbering scheme.
3444 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
3445 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
3446 * util/grub-probe.c (probe_partmap): Handle nested paritions.
3447 * util/grub-install.in: Insert all subpartition modules.
3448 * util/ieee1275/grub-install.in: Likewise.
3449
3450 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
3451
3452 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
3453 grammar.
3454
3455 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
3456
3457 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
3458
3459 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
3460
3461 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
3462 match where 'make install' puts them.
3463 * util/i386/efi/grub-install.in: Likewise.
3464
3465 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
3466
3467 * .bzrignore: Add gentrigtables, grub-script-check,
3468 grub_script_check_init.c, grub_script_check_init.h, and
3469 trigtables.c.
3470
3471 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
3472
3473 * kern/parser.c: Indented.
3474
3475 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3476
3477 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
3478
3479 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3480
3481 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
3482 alpha_mask_size == 0 case.
3483
3484 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
3485
3486 GRUB shell lexer and parser improvements.
3487
3488 * conf/any-emu.rmk: Build rule updates.
3489 * conf/common.rmk: Likewise.
3490 * conf/i386-coreboot.rmk: Likewise.
3491 * conf/i386-efi.rmk: Likewise.
3492 * conf/i386-ieee1275.rmk: Likewise.
3493 * conf/i386-pc.rmk: Likewise.
3494 * conf/powerpc-ieee1275.rmk: Likewise.
3495 * conf/x86_64-efi.rmk: Likewise.
3496
3497 * configure.ac: Configure check for flex.
3498
3499 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
3500 types.
3501 (grub_lexer_param): Struct member updates.
3502 (grub_parser_param): Likewise.
3503 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
3504 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
3505 (grub_script_lexer_init): Prototype update.
3506 (grub_script_lexer_record_start): Likewise.
3507 (grub_script_lexer_record_stop): Likewise.
3508 (grub_script_lexer_yywrap): New function prototype.
3509 (grub_script_lexer_fini): Likewise.
3510 (grub_script_execute_argument_to_string): Removed by...
3511 (grub_script_execute_argument_to_argv): ...better version.
3512
3513 * script/execute.c (ROUND_UPTO): New macro.
3514 (grub_script_execute_cmdline): Out of memory fixes.
3515 (grub_script_execute_menuentry): Likewise.
3516 (grub_script_execute_argument_to_string): Removed. Update all
3517 users by...
3518 (grub_script_execute_argument_to_argv): ...better version.
3519 * script/function.c (grub_script_function_create): Use
3520 grub_script_execute_argument_to_argv instead of
3521 grub_script_execute_argument_to_string.
3522
3523 * script/lexer.c (check_varstate): Removed.
3524 (check_textstate): Removed.
3525 (grub_script_lexer_record_start): Likewise.
3526 (grub_script_lexer_record_stop): Likewise.
3527 (recordchar): Replaced with...
3528 (grub_script_lexer_record): ...new function.
3529 (nextchar): Removed.
3530 (grub_script_lexer_init): Rewritten.
3531 (grub_script_yylex): Rewritten.
3532 (append_newline): New function.
3533 (grub_script_lexer_yywrap): New function.
3534 (grub_script_lexer_fini): New function.
3535 (grub_script_yyerror): Sets error flag.
3536
3537 * script/yylex.l: New file.
3538 (grub_lexer_yyfree): Wrapper for flex yyffre.
3539 (grub_lexer_yyalloc): Likewise.
3540 (grub_lexer_yyrealloc): Likewise.
3541 * script/parser.y: Refactored.
3542
3543 * script/script.c (grub_script_arg_add): Out of memory fixes.
3544 (grub_script_add_arglist): Likewise.
3545 (grub_script_create_cmdline): Likewise.
3546 (grub_script_create_cmdmenu): Likewise.
3547 (grub_script_add_cmd): Likewise.
3548 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
3549 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
3550 unnecessary code.
3551
3552 * tests/grub_script_echo1.in: New testcase.
3553 * tests/grub_script_vars1.in: New testcase.
3554 * tests/grub_script_echo_keywords.in: New testcase.
3555
3556 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3557
3558 Remove some redundancy in build system.
3559
3560 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
3561 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
3562 (TARGET_LDFLAGS): Add -nostdlib.
3563 (TARGET_IMG_LDFLAGS): Likewise.
3564 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
3565 anything since mmap isn't available.
3566 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
3567 Add util/time.c.
3568 (pkglib_MODULES): Remove reboot.mod.
3569 (reboot_mod_SOURCES): Removed.
3570 (reboot_mod_CFLAGS): Likewise.
3571 (reboot_mod_LDFLAGS): Likewise.
3572 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
3573 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
3574 (DEFSYMFILES): Add kernel_syms.lst.
3575 (kernel_img_HEADERS): Add common headers.
3576 (symlist.c): New target.
3577 (kernel_syms.lst): Likewise.
3578 (pkglib_MODULES): Add memdisk.mod.
3579 (memdisk_mod_SOURCES): New variable.
3580 (memdisk_mod_CFLAGS): Likewise.
3581 (memdisk_mod_LDFLAGS): Likewise.
3582 (pkglib_MODULES): Add reboot.mod.
3583 (reboot_mod_SOURCES): New variable.
3584 (reboot_mod_CFLAGS): Likewise.
3585 (reboot_mod_LDFLAGS): Likewise.
3586 (pkglib_MODULES): Add date.mod.
3587 (date_mod_SOURCES): New variable.
3588 (date_mod_CFLAGS): Likewise.
3589 (date_mod_LDFLAGS): Likewise.
3590 (pkglib_MODULES): Add datehook.mod.
3591 (datehook_mod_SOURCES): New variable.
3592 (datehook_mod_CFLAGS): Likewise.
3593 (datehook_mod_LDFLAGS): Likewise.
3594 (pkglib_MODULES): Add lsmmap.mod.
3595 (lsmmap_mod_SOURCES): New variable.
3596 (lsmmap_mod_CFLAGS): Likewise.
3597 (lsmmap_mod_LDFLAGS): Likewise.
3598 (pkglib_MODULES): Add boot.mod.
3599 (boot_mod_SOURCES): New variable.
3600 (boot_mod_CFLAGS): Likewise.
3601 (boot_mod_LDFLAGS): Likewise.
3602 * conf/i386-coreboot.rmk: Removed redundant parts.
3603 * conf/i386-ieee1275.rmk: Likewise.
3604 * conf/i386-pc.rmk: Likewise.
3605 * conf/mips-yeeloong.rmk: Likewise.
3606 * conf/mips.rmk: Likewise.
3607 * conf/powerpc-ieee1275.rmk: Likewise.
3608 * conf/sparc64-ieee1275.rmk: Likewise.
3609 * conf/x86_64-efi.rmk: Likewise.
3610 * conf/i386-coreboot.rmk: Moved qemu parts ..
3611 * conf/i386-qemu.rmk: ... here
3612 * conf/i386-efi.rmk: Moved common parts to...
3613 * conf/x86-efi.rmk: ... here.
3614 * conf/i386.rmk: Added modules common to all x86 variants.
3615 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
3616 * disk/memdisk.c: Remove grub/machine/kernel.h.
3617 * gensymlist.sh.in: Include symbol.h.
3618 * hook/datehook.c: Correct module name.
3619 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
3620 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
3621 * include/grub/i386/efi/serial.h: New file.
3622 * include/grub/x86_64/efi/serial.h: Likewise.
3623 * util/time.c: Likewise.
3624 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
3625
3626 2010-03-14 Colin King <colin.king@ubuntu.com>
3627 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
3628
3629 Shrink the pre-partition-table part of boot.img by eight bytes.
3630
3631 * boot/i386/pc/boot.S (ERR): New macro.
3632 (chs_mode): Use ERR.
3633 (geometry_error): Likewise.
3634 (hd_probe_error): Remove. This is only used once, so we wrwite
3635 it inline instead.
3636 (read_error): Instead of printing read_error_string, just set up
3637 %si and fall through to ...
3638 (error_message): ... this new function, also used by ERR.
3639
3640 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
3641
3642 Speed up consecutive hostdisk operations on the same device.
3643
3644 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
3645 (grub_util_biosdisk_open): Initialise disk->data.
3646 (struct linux_partition_cache): New structure.
3647 (linux_find_partition): Cache partition start positions; these are
3648 expensive to compute on every read and write.
3649 (open_device): Cache open file descriptor in disk->data, so that we
3650 don't have to reopen it and flush the buffer cache for consecutive
3651 operations on the same device.
3652 (grub_util_biosdisk_close): New function.
3653 (grub_util_biosdisk_dev): Set `close' member.
3654
3655 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
3656 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
3657 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
3658 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
3659 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
3660
3661 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3662
3663 Compile parts of grub-emu as modules.
3664
3665 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
3666 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
3667 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
3668 (all-local): Add $(GRUB_EMU).
3669 (install-local): Install $(GRUB_EMU).
3670 (uninstall): Uninstall $(GRUB_EMU).
3671 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
3672 * kern/dl.c: Likewise.
3673 * commands/sleep.c: Not include machine/time.h.
3674 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
3675 (COMMON_CFLAGS): Likewise.
3676 (sbin_UTILITIES): Remove grub-emu.
3677 (grub_emu_SOURCES): Removed.
3678 (kernel_img_RELOCATABLE): New variable.
3679 (pkglib_PROGRAMS): Add kernel.img.
3680 (kernel_img_SOURCES): New variable
3681 (kernel_img_CFLAGS): Likewise.
3682 (kernel_img_LDFLAGS): Likewise.
3683 (TARGET_NO_STRIP): Likewise.
3684 (TARGET_NO_DYNAMIC_MODULES): Likewise.
3685 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
3686 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
3687 (grub-emu): New target.
3688 (GRUB_EMU): New variable.
3689 * configure.ac: Whitelist -emu as possible x86_64 architecture.
3690 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
3691 * loader/xnu.c: Likewise.
3692 * include/grub/pci.h: Likewise.
3693 * genemuinit.sh: New file.
3694 * genemuinitheader.sh: Likewise.
3695 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
3696 Support TARGET_NO_DYNAMIC_MODULES.
3697 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
3698 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
3699 * disk/loopback.c: Likewise.
3700 * font/font_cmd.c: Likewise.
3701 * partmap/acorn.c: Likewise.
3702 * partmap/amiga.c: Likewise.
3703 * partmap/apple.c: Likewise.
3704 * partmap/gpt.c: Likewise.
3705 * partmap/msdos.c: Likewise.
3706 * partmap/sun.c: Likewise.
3707 * parttool/msdospart.c: Likewise.
3708 * term/gfxterm.c: Likewise.
3709 * video/bitmap.c: Likewise.
3710 * video/readers/jpeg.c: Likewise.
3711 * video/readers/png.c: Likewise.
3712 * video/readers/tga.c: Likewise.
3713 * video/video.c: Likewise.
3714 * util/grub-emu.c (read_command_list): Removed.
3715 (main): Don't call util_init_nls.
3716 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
3717 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
3718
3719 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3720
3721 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
3722 date.mod, datehook.mod.
3723 (datetime_mod_SOURCES): New variable.
3724 (datetime_mod_CFLAGS): Likewise.
3725 (datetime_mod_LDFLAGS): Likewise.
3726 (date_mod_SOURCES): Likewise.
3727 (date_mod_CFLAGS): Likewise.
3728 (date_mod_LDFLAGS): Likewise.
3729 (datehook_mod_SOURCES): Likewise.
3730 (datehook_mod_CFLAGS): Likewise.
3731 (datehook_mod_LDFLAGS): Likewise.
3732 * conf/sparc64-ieee1275.rmk: Likewise.
3733 * lib/ieee1275/datetime.c: New file.
3734
3735 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3736
3737 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
3738 (ieee1275_fb_mod_SOURCES): New variable.
3739 (ieee1275_fb_mod_CFLAGS): Likewise.
3740 (ieee1275_fb_mod_LDFLAGS): Likewise.
3741 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
3742 New proto.
3743 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
3744 (HEAP_MAX_ADDR): Likewise.
3745 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
3746 type.
3747 Correct stop condition.
3748 (grub_ieee1275_devices_iterate): New function.
3749 * video/ieee1275.c: New file.
3750
3751 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
3752
3753 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
3754
3755 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
3756 as scratch.
3757 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
3758 SCRATCH_PAD_DISKBOOT as scratch.
3759 (bootit): Pass Openfirmware pointer in %o4.
3760 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
3761 of 0x200000.
3762 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
3763 with util/grub-mkrawimage.c.
3764 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
3765 * include/grub/aout.h (AOUT_MID_SUN): New definition.
3766 (grub_aout_get_type) [GRUB_UTIL]: Removed.
3767 (grub_aout_load) [GRUB_UTIL]: Likewise.
3768 * include/grub/kernel.h (grub_modules_get_end): New proto.
3769 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
3770 (SCRATCH_PAD_BOOT): New definition.
3771 (SCRATCH_PAD_DISKBOOT): Likewise.
3772 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
3773 * include/grub/sparc64/ieee1275/ieee1275.h
3774 (grub_ieee1275_original_stack): New variable
3775 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
3776 New definition
3777 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
3778 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
3779 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
3780 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
3781 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
3782 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
3783 (grub_platform_image_format_t): New type.
3784 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
3785 * kern/main.c (grub_modules_get_end)
3786 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
3787 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
3788 (codestart): Switch stacks.
3789 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
3790 variable.
3791 (grub_heap_init): Use grub_modules_get_end.
3792 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
3793 stack.
3794 * util/grub-mkrawimage.c (generate_image): Support sparc64.
3795 (main): Likewise.
3796 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
3797
3798 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
3799
3800 * util/grub-mkrescue.in: Base ISO UUID on UTC.
3801
3802 2010-03-08 Matt Kraai <kraai@ftbfs.org>
3803
3804 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
3805 bug #559005).
3806
3807 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3808
3809 * genmoddep.awk: Output all missing symbols and not only first.
3810
3811 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3812
3813 * NEWS: Put the date of 1.98 release.
3814
3815 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3816
3817 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
3818 ft2build.h.
3819
3820 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3821
3822 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
3823 completition in the middle of string.
3824
3825 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3826
3827 * util/grub-mkrescue.in: Use mktemp with explicit template.
3828
3829 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3830
3831 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
3832
3833 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
3834
3835 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
3836 right pointer.
3837
3838 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3839
3840 Fix FreeBSD compilation.
3841
3842 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
3843 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
3844
3845 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3846
3847 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
3848
3849 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3850
3851 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
3852
3853 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3854
3855 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
3856
3857 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
3858
3859 Support relative image path in theme file.
3860
3861 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
3862 (image_set_property): Handle theme_dir and relative path.
3863
3864 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3865
3866 * configure.ac: Alias amd64 to x86_64.
3867
3868 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3869
3870 * NEWS: mention multiboot on EFI.
3871
3872 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3873
3874 * kern/main.c (grub_load_modules): Handle errors from init functions of
3875 embeded modules.
3876
3877 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3878
3879 * normal/autofs.c (autoload_fs_module): Handle errors.
3880
3881 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3882
3883 Disable linux.mod on qemu-mips since it's not functional and leads
3884 to compilation failure.
3885
3886 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
3887 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
3888 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
3889 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
3890 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
3891 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
3892 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
3893 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
3894 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
3895 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
3896 Reported by: BVK Chaitanya
3897
3898 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
3899
3900 * INSTALL: Add gettext as a dependency and add qemu to a new section
3901 "Prerequisites for make-check".
3902
3903 2010-03-04 Christian Franke <franke@computer.org>
3904
3905 * util/grub-pe2elf.c: Add missing include "progname.h".
3906
3907 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3908
3909 * normal/crypto.c (read_crypto_list): Fix a typo.
3910 Reported by: Seth Goldberg.
3911
3912 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3913
3914 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
3915 Reported by: Seth Goldberg.
3916
3917 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3918
3919 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
3920 ascii.bitmaps.
3921
3922 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3923
3924 * genmk.rb: Remove terminal*.lst in make clean.
3925 Reported by: Seth Goldberg.
3926
3927 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
3928
3929 * util/i386/efi/grub-install.in: Copy gettext files.
3930
3931 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3932
3933 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
3934
3935 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3936
3937 Wait for user entry basing on presence of output rather than on errors.
3938
3939 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
3940 (grub_install_newline_hook): Likewise.
3941 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
3942 * normal/menu.c (show_menu): Check line_counter to determine presence
3943 of output.
3944 * normal/term.c (grub_normal_line_counter): New variable.
3945 (grub_normal_get_line_counter): New function.
3946 (grub_install_newline_hook): Likewise.
3947
3948 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3949
3950 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
3951
3952 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
3953
3954 * configure.ac: Update version to 1.98.
3955
3956 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
3957
3958 * util/grub.d/10_linux.in (linux_entry): Don't default to
3959 gfxpayload=keep if Linux doesn't support video handover.
3960
3961 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
3962
3963 Don't compile video modules on yeeloong since video subsystem is part
3964 of kernel.
3965
3966 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
3967 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
3968 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
3969 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
3970 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
3971 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
3972 * include/grub/bitmap_scale.h: Likewise.
3973 * include/grub/bufio.h: Likewise.
3974 * include/grub/font.h: Likewise.
3975 * include/grub/gfxterm.h: Likewise.
3976 * include/grub/video.h: Likewise.
3977 * include/grub/vbe.h: Don't include video_fb.h.
3978 * video/i386/pc/vbe.c: Include video_fb.h.
3979 * commands/i386/pc/vbetest.c: Include video.h.
3980
3981 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
3982
3983 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
3984 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
3985 default entry if GRUB_SAVEDEFAULT=true. This allows using
3986 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
3987 saving a new default on every boot.
3988
3989 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3990
3991 * normal/crypto.c (read_crypto_list): Fix a memory leak.
3992 * normal/term.c (read_terminal_list): Likewise.
3993 * normal/main.c (grub_normal_init_page): Likewise.
3994 (grub_normal_read_line_real): Likewise.
3995
3996 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
3997
3998 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
3999 memory leak.
4000 Reported by: Seth Goldberg.
4001
4002 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
4003
4004 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
4005 duplicate declaration of `start'.
4006
4007 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
4008
4009 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
4010 filename.
4011 Reported by: Georgy Buranov
4012
4013 2010-02-20 Carles Pina i Estany <carles@pina.cat>
4014
4015 * util/grub-mkrawimage.c (usage): Change string formatting to
4016 improve gettext.
4017
4018 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
4019
4020 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
4021 backspace keys.
4022
4023 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
4024
4025 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
4026 Reported by: Michael Suchanek.
4027
4028 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
4029
4030 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
4031 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
4032
4033 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
4034
4035 Remove any reference to non-free fonts.
4036
4037 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
4038 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
4039 uses non-free components.
4040 * font/font.c (grub_font_get_name): Remove example name.
4041 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
4042 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
4043 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
4044 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
4045
4046 2010-02-16 Georgy Buranov <gburanov@gmail.com>
4047
4048 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
4049
4050 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
4051
4052 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
4053 Double divisor.
4054 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
4055 features.
4056 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
4057
4058 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
4059
4060 * gensymlist.sh.in: Use TARGET_CC instead of CC.
4061
4062 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4063
4064 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
4065 * docs/grub.texi (Command-line and menu entry commands): Document play
4066 command.
4067
4068 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4069
4070 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
4071 parse arguments as inline tempo and notes. Move code for playing notes
4072 to...
4073 (play): ... new function.
4074
4075 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4076
4077 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
4078 grub_uint16_t instead of short.
4079 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
4080 disk from little endian to cpu endianness.
4081
4082 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4083
4084 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
4085 GRUB_TICKS_PER_SECOND instead of 120.
4086
4087 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
4088
4089 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
4090 escape sequence after \e.
4091
4092 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
4093
4094 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
4095 non-ASCII characters.
4096
4097 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
4098
4099 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
4100 set root in single quotes to prevent \, from being unescaped.
4101
4102 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
4103
4104 Prevent unknown commands from stopping menuentry execution.
4105
4106 * script/execute.c (grub_script_execute_cmdline): Print error after
4107 unknown command.
4108
4109 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
4110
4111 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
4112 Reported by: Pavel Pisa.
4113
4114 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4115
4116 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
4117
4118 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4119
4120 Merge grub_ieee1275_map_physical into grub_map and rename to
4121 grub_ieee1275_map
4122
4123 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
4124 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
4125 Remove.
4126 * kern/ieee1275/openfw.c (grub_map): Rename to ...
4127 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
4128 necessary.
4129 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
4130
4131 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4132
4133 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
4134 opening and not after.
4135
4136 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4137
4138 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
4139 constants.
4140
4141 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4142
4143 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
4144 (alloc_phys): Use ALIGN_UP instead of align_addr.
4145
4146 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4147
4148 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
4149
4150 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4151
4152 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
4153
4154 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4155
4156 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
4157 verbose dprintf.
4158
4159 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4160
4161 Fix over-4GiB seek on sparc64.
4162
4163 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
4164 Replace pos_i and pos_lo with pos. All users updated.
4165 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
4166 New constant.
4167 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
4168 Likewise.
4169 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
4170 and pos_lo.
4171
4172 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4173
4174 * util/grub-mkrawimage.c (main): Call set_program_name.
4175
4176 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4177
4178 Properly align 64-bit targets.
4179
4180 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
4181 (generate_image): Use ALIGN_ADDR.
4182
4183 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4184
4185 Properly create cross-endian images.
4186
4187 * include/grub/types.h (grub_host_to_target_addr): New macro
4188 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
4189
4190 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
4191
4192 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
4193
4194 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4195
4196 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
4197
4198 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
4199 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
4200 (grub_linux_boot): Divide by 64K when on VESA.
4201
4202 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4203
4204 Support GRUB_GFXPAYLOAD_LINUX.
4205
4206 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
4207 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
4208
4209 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
4210
4211 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
4212 to show messages instead of discarding them.
4213 Process errors after executing command and not before. Keep old method
4214 too as precaution.
4215
4216 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
4217
4218 * configure.ac: Check for ft2build.h.
4219
4220 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4221
4222 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
4223
4224 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4225
4226 * genkernsyms.sh.in: Use TARGET_CC.
4227
4228 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
4229
4230 * NEWS: Update.
4231
4232 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4233
4234 * include/grub/multiboot2.h: Remove leftover file.
4235 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
4236 * include/grub/partition.h [GRUB_UTIL]: Likewise.
4237
4238 2010-02-07 Yves Blusseau <blusseau@zetam.org>
4239
4240 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
4241
4242 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4243
4244 Fix warnings in grub-emu when compiling with maximum warning options.
4245
4246 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
4247 (grub_arch_modules_addr): Return 0 and not NULL.
4248 * util/misc.c (ENABLE_RELOCATABLE): New definition.
4249 (xstrdup): Use newstr instead of dup.
4250 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
4251 of disk to dsk to avoid shadowing.
4252 (find_free_slot): Fix prototype.
4253 * util/getroot.c (grub_util_is_dmraid): Make static.
4254 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
4255 Add missing prototype.
4256 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
4257
4258 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4259
4260 * loader/i386/linux.c (grub_linux_setup_video): Handle error
4261 appropriately.
4262
4263 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4264
4265 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
4266 code out.
4267
4268 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4269
4270 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
4271 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
4272 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
4273 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
4274 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
4275 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
4276
4277 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4278
4279 * include/grub/err.h (grub_err_printf): Don't export.
4280
4281 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4282
4283 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
4284
4285 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
4286
4287 * include/grub/i18n.h (grub_gettext_dummy): Removed.
4288 * kern/misc.c (grub_gettext_dummy): Make static.
4289
4290 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4291
4292 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
4293 by non-valid ones.
4294 * kern/term.c (grub_putchar): Likewise.
4295
4296 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4297
4298 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
4299 buggy hook call and memory leak.
4300
4301 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4302
4303 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
4304
4305 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4306
4307 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
4308
4309 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4310
4311 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
4312 modevar.
4313 Return grub_errno on allocation error.
4314
4315 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4316
4317 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
4318
4319 2010-02-06 Yves Blusseau <blusseau@zetam.org>
4320
4321 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
4322 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
4323
4324 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4325
4326 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
4327 non-pxe disk.
4328 (grub_pxefs_open): Likewise.
4329
4330 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
4331
4332 * util/grub.d/10_hurd.in: Add --class information to menuentries.
4333 * util/grub.d/10_kfreebsd.in: Likewise.
4334 * util/grub.d/10_linux.in: Likewise.
4335
4336 2010-02-06 Colin D Bennett <colin@gibibit.com>
4337
4338 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
4339 (gfxmenu_mod_SOURCES): New variable.
4340 (gfxmenu_mod_CFLAGS): Likewise.
4341 (gfxmenu_mod_LDFLAGS): Likewise.
4342 * include/grub/term.h (grub_term_set_current_output): Declare
4343 argument as const.
4344 * docs/gfxmenu-theme-example.txt: New file.
4345 * gfxmenu/gfxmenu.c: Likewise.
4346 * gfxmenu/gui_box.c: Likewise.
4347 * gfxmenu/gui_canvas.c: Likewise.
4348 * gfxmenu/gui_circular_progress.c: Likewise.
4349 * gfxmenu/gui_image.c: Likewise.
4350 * gfxmenu/gui_label.c: Likewise.
4351 * gfxmenu/gui_list.c: Likewise.
4352 * gfxmenu/gui_progress_bar.c: Likewise.
4353 * gfxmenu/gui_string_util.c: Likewise.
4354 * gfxmenu/gui_util.c: Likewise.
4355 * gfxmenu/icon_manager.c: Likewise.
4356 * gfxmenu/model.c: Likewise.
4357 * gfxmenu/named_colors.c: Likewise.
4358 * gfxmenu/theme_loader.c: Likewise.
4359 * gfxmenu/view.c: Likewise.
4360 * gfxmenu/widget-box.c: Likewise.
4361 * include/grub/gfxmenu_model.h: Likewise.
4362 * include/grub/gfxmenu_view.h: Likewise.
4363 * include/grub/gfxwidgets.h: Likewise.
4364 * include/grub/gui.h: Likewise.
4365 * include/grub/gui_string_util.h: Likewise.
4366 * include/grub/icon_manager.h: Likewise.
4367
4368 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4369
4370 Agglomerate scrolling in gfxterm.
4371
4372 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
4373 (grub_virtual_screen_setup): Initialise 'total_screen'.
4374 (write_char): Split to ...
4375 (paint_char): ... this ...
4376 (write_char): ... and this.
4377 (paint_char): Handle delayed scrolling.
4378 (draw_cursor): Likewise.
4379 (scroll_up): Split to ...
4380 (real_scroll): ... this ...
4381 (scroll_up): ... and this.
4382 (real_scroll): Handle multi-line scroll and draw below-the-bottom
4383 characters.
4384 (grub_gfxterm_refresh): Call real_scroll.
4385
4386 2010-02-06 Colin D Bennett <colin@gibibit.com>
4387
4388 * include/grub/misc.h (grub_iscntrl): New inline function.
4389 (grub_isalnum): Likewise.
4390 (grub_strtol): Likewise.
4391
4392 2010-02-06 Colin D Bennett <colin@gibibit.com>
4393
4394 * normal/menu_text.c (get_entry_number): Move from here ...
4395 * normal/menu.c (get_entry_number): ... moved here.
4396 * include/grub/menu.h (grub_menu_get_default_entry_index):
4397 New prototype.
4398 * normal/menu.c (grub_menu_get_default_entry_index): New function.
4399 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
4400 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
4401 (grub_menu_viewer_should_return): Likewise.
4402 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
4403 * normal/menu_text.c (run_menu): Enable menu switching.
4404 * normal/menu_viewer.c (should_return): New variable.
4405 (menu_viewer_changed): Likewise.
4406 (grub_menu_viewer_show_menu): Handle menu viewer changes.
4407 (grub_menu_viewer_should_return): New function.
4408 (menuviewer_write_hook): Likewise.
4409 (grub_menu_viewer_init): Likewise.
4410
4411 2010-02-06 Colin D Bennet <colin@gibibit.com>
4412 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4413
4414 Support for gfxterm in a window.
4415
4416 * include/grub/gfxterm.h: New file.
4417 * include/grub/video.h (struct grub_video_rect): New declaration.
4418 (grub_video_rect_t): Likewise.
4419 * term/gfxterm.c (struct grub_gfxterm_window): New type.
4420 (refcount): New variable.
4421 (render_target): Likewise.
4422 (window): Likewise.
4423 (repaint_callback): Likewise.
4424 (grub_virtual_screen_setup): Use 'render_target'.
4425 (init_window): New function.
4426 (grub_gfxterm_init_window): Likewise.
4427 (grub_gfxterm_init): Check reference counter.
4428 Use init_window.
4429 (destroy_window): New function.
4430 (grub_gfxterm_destroy_window): Likewise.
4431 (grub_gfxterm_fini): Check reference counter.
4432 Use destroy_window.
4433 (redraw_screen_rect): Restore viewport.
4434 Use 'render_target' and 'window'.
4435 Call 'repaint_callback'.
4436 (write_char): Use 'render_target'.
4437 (draw_cursor): Likewise.
4438 (scroll_up): Restore viewport.
4439 Use 'render_target' and 'window'.
4440 Call 'repaint_callback'.
4441 (grub_gfxterm_cls): Likewise.
4442 (grub_gfxterm_refresh): Use 'window'.
4443 (grub_gfxterm_set_repaint_callback): New function.
4444 (grub_gfxterm_background_image_cmd): Use 'window'.
4445 (grub_gfxterm_get_term): New function.
4446 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
4447
4448 2010-02-06 Colin D Bennett <colin@gibibit.com>
4449
4450 Bitmap scaling support.
4451
4452 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
4453 (bitmap_scale_mod_SOURCES): New variable.
4454 (bitmap_scale_mod_CFLAGS): Likewise.
4455 (bitmap_scale_mod_LDFLAGS): Likewise.
4456 * include/grub/bitmap_scale.h: New file.
4457 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
4458 (background_image_cmd_options): New variable.
4459 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
4460 (cmd): Rename and change type to ...
4461 (background_image_cmd_handle): ... this. All users updated.
4462 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
4463 * video/bitmap_scale.c: New file.
4464
4465 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4466
4467 SDL support.
4468
4469 * Makefile.in (LIBSDL): New variable.
4470 (enable_grub_emu_sdl): Likewise.
4471 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
4472 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
4473 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
4474 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
4475 * util/sdl.c: New file.
4476
4477 2010-02-06 Colin D Bennett <colin@gibibit.com>
4478 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4479
4480 Double buffering support.
4481
4482 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
4483 * include/grub/video.h: Update comment.
4484 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
4485 New type.
4486 (grub_video_fb_doublebuf_blit_init): New prototype.
4487 * term/gfxterm.c (scroll_up): Support double buffering.
4488 (grub_gfxterm_refresh): Likewise.
4489 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
4490 (grub_video_fb_doublebuf_blit_init): Likewise.
4491 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
4492 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
4493 'displayed_page', 'render_page' and 'update_screen'.
4494 (grub_video_vbe_fini): Free offscreen buffer.
4495 (doublebuf_pageflipping_commit): New function.
4496 (doublebuf_pageflipping_update_screen): Likewise.
4497 (doublebuf_pageflipping_init): Likewise.
4498 (double_buffering_init): Likewise.
4499 (grub_video_vbe_setup): Enable doublebuffering.
4500 (grub_video_vbe_swap_buffers): Implement.
4501 (grub_video_vbe_set_active_render_target): Handle double buffering.
4502 (grub_video_vbe_get_active_render_target): Likewise.
4503 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
4504 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
4505 (grub_video_vbe_enable_double_buffering): Likewise.
4506 (grub_video_vbe_swap_buffers): Use update_screen.
4507 (grub_video_set_mode): Use double buffering.
4508
4509 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
4510
4511 * maintainance/gentrigtables.py: Remove.
4512 * lib/trig.c: Likewise.
4513
4514 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
4515
4516 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
4517 `trigtables.c'.
4518 (trigtables.c): New rule.
4519 (gentrigtables): Likewise.
4520 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
4521
4522 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
4523
4524 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
4525 integer constants.
4526
4527 2010-02-06 Colin D Bennet <colin@gibibit.com>
4528
4529 Trigonometry support.
4530
4531 * include/grub/trig.h: New file.
4532 * lib/trig.c: Likewise.
4533 * maintainance/gentrigtables.py: Likewise.
4534 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
4535 (trig_mod_SOURCES): New variable.
4536 (trig_mod_CFLAGS): Likewise.
4537 (trig_mod_LDFLAGS): Likewise.
4538
4539 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4540
4541 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
4542 disk devices.
4543
4544 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4545
4546 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
4547 error.
4548
4549 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
4550
4551 * util/hostdisk.c (open_device): Don't use partition device when reading
4552 before the partition.
4553 (grub_util_biosdisk_read): Don't read from partition and before the
4554 partition in single operation.
4555 (grub_util_biosdisk_write): Don't write to partition and before the
4556 partition in single operation.
4557
4558 2010-02-03 Torsten Landschoff <torsten@debian.org>
4559
4560 * kern/disk.c (grub_disk_read): Fix offset computation when reading
4561 last sectors.
4562
4563 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
4564
4565 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
4566 CDROM reads.
4567 (grub_biosdisk_write): Refuse to write to CDROM.
4568
4569 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
4570
4571 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
4572
4573 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
4574
4575 * font/font.c (find_glyph): Check that bmp_idx is available before
4576 using it.
4577 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
4578 with (font == NULL).
4579
4580 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
4581
4582 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
4583
4584 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
4585
4586 * include/grub/script_sh.h (sourcecode): Add const qualifier.
4587 * util/grub-script-check.c (getline): Fix empty lines case.
4588
4589 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
4590
4591 * Makefile.in (check): Exit with fail status when one of the tests
4592 fails.
4593 * tests/example_functional_test.c (example_test): Fix reversed assert.
4594 * tests/example_unit_test.c (example_test): Likewise.
4595
4596 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
4597
4598 * util/grub.d/10_linux.in: This script does not use any of the
4599 contents of gettext.sh, only the external command `gettext', so stop
4600 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
4601 the same prefix as GRUB.)
4602 * util/grub.d/10_kfreebsd.in: Likewise.
4603
4604 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4605
4606 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
4607 of the line.
4608
4609 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4610
4611 * kern/disk.c (grub_disk_read): Fix offset computation when reading
4612 last sectors.
4613
4614 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4615
4616 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
4617 having a 4KiB and not 32KiB buffer size.
4618
4619 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4620
4621 * util/hostfs.c: Include `<errno.h>'.
4622 (grub_hostfs_read): Handle errors from fseeko() and fread().
4623
4624 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4625
4626 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
4627 loop when using read hooks on files whose size isn't sector-aligned.
4628
4629 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4630
4631 Remove unused parameter.
4632
4633 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
4634 (grub_iso9660_open): Remove initialization of `data->length'.
4635
4636 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
4637
4638 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
4639 memleak conditions.
4640
4641 2010-01-27 Carles Pina i Estany <carles@pina.cat>
4642
4643 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
4644 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
4645
4646 2010-01-26 Carles Pina i Estany <carles@pina.cat>
4647
4648 * util/bin2h.c (usage): Fix warning (space after backslash).
4649
4650 2010-01-26 Carles Pina i Estany <carles@pina.cat>
4651
4652 * font/font.c: Include `grub/fontformat.h.
4653 Remove font file format constants.
4654 (grub_font_load): Use the new macros.
4655 * include/grub/fontformat.h: New file.
4656 * util/grub-mkfont.c: Include `grub/fontformat.c'.
4657 (write_font_pf2): Use the new macros.
4658
4659 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
4660
4661 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
4662 does.
4663
4664 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
4665
4666 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
4667
4668 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
4669 (_start): Macroify `0x7F'.
4670
4671 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
4672 (make_install_device): Use "(pxe)" as fallback prefix when booting
4673 via PXE.
4674
4675 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
4676
4677 * configure.ac: Reset LIBS after check for libgcc symbols.
4678
4679 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
4680
4681 * util/hostdisk.c (open_device): Add trailing newline to debug
4682 message.
4683
4684 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
4685
4686 * configure.ac: Check for `limits.h'.
4687 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
4688
4689 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
4690
4691 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
4692 capitalize error strings.
4693
4694 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
4695
4696 * util/grub.d/10_hurd.in: Add a recovery mode.
4697
4698 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
4699
4700 * configure.ac: Check for libgcc symbols with -nostdlib.
4701
4702 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
4703
4704 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
4705
4706 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4707
4708 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
4709 stack since heap may be unavailable at that point.
4710 (grub_ofconsole_gotoxy): Likewise.
4711
4712 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4713
4714 * configure.ac: Check for _restgpr_14_x.
4715 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
4716 and _savegpr_* prototypes.
4717
4718 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
4719
4720 Use generic grub_reboot() for i386-efi.
4721
4722 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
4723 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
4724 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
4725
4726 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
4727
4728 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
4729 presence of "prefix" variable as it breaks when normal.mod is
4730 embedded.
4731
4732 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4733
4734 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
4735 stack since heap is unavailable at that point.
4736
4737 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4738
4739 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
4740 (grub_freebsd_bootinfo): Rewritten.
4741 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
4742
4743 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4744
4745 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
4746
4747 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
4748
4749 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
4750 domain now.
4751
4752 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
4753
4754 * util/misc.c (make_system_path_relative_to_its_root): Change the work
4755 around for handling "/" to the correct fix. Fix a memory leak. Use
4756 xstrdup instead of strdup.
4757
4758 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4759
4760 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
4761
4762 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4763
4764 Optimise glyph lookup by Basic Multilingual Plane lookup array.
4765
4766 * font/font.c (struct grub_font): New member 'bmp_idx'.
4767 (font_init): Initialise 'bmp_idx'.
4768 (load_font_index): Fill 'bmp_idx'.
4769 (find_glyph): Make inline. Use bmp_idx for BMP characters.
4770
4771 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4772
4773 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
4774 unnecessary calls.
4775
4776 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4777
4778 Move context handling out of the kernel.
4779
4780 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
4781 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
4782 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
4783 * conf/i386-efi.rmk: Likewise.
4784 * conf/i386-ieee1275.rmk: Likewise.
4785 * conf/i386-pc.rmk: Likewise.
4786 * conf/powerpc-ieee1275.rmk: Likewise.
4787 * conf/sparc64-ieee1275.rmk: Likewise.
4788 * conf/x86_64-efi.rmk: Likewise.
4789 * include/grub/env.h: Include grub/menu.h.
4790 (grub_env_var_type): Removed.
4791 (grub_env_var): Replaced field 'type' with 'global'.
4792 (grub_env_find): New prototype.
4793 (grub_env_context_open): Remove EXPORT_FUNC.
4794 (grub_env_context_close): Likewise.
4795 (grub_env_export): Likewise.
4796 (grub_env_set_data_slot): Removed.
4797 (grub_env_get_data_slot): Likewise.
4798 (grub_env_unset_data_slot): Likewise.
4799 (grub_env_unset_menu): New prototype.
4800 (grub_env_set_menu): Likewise.
4801 (grub_env_get_menu): Likewise.
4802 * include/grub/env_private.h: New file.
4803 * include/grub/normal.h (grub_context_init): New prototype.
4804 (grub_context_fini): Likewise.
4805 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
4806 * normal/context.c (grub_cmd_export): ... to here.
4807 * kern/env.c: Include env_private.h.
4808 (HASHSZ): Moved to include/grub/env_private.h.
4809 (grub_env_context): Likewise.
4810 (grub_env_sorted_var): Likewise.
4811 (current_context): Renamed from this ...
4812 (grub_current_context): ...to this. 'static' removed. All users updated.
4813 (grub_env_find): Removed 'static'.
4814 (grub_env_context_open): Moved to normal/context.c.
4815 (grub_env_context_close): Likewise.
4816 (grub_env_export): Likewise.
4817 (mangle_data_slot_name): Removed.
4818 (grub_env_set_data_slot): Likewise.
4819 (grub_env_get_data_slot): Likewise.
4820 (grub_env_unset_data_slot): Likewise.
4821 * kern/main.c (grub_set_root_dev): Don't export root.
4822 It will be done later.
4823 (grub_main): Don't export prefix.
4824 It will be done later.
4825 * normal/context.c: New file.
4826 * normal/main.c (free_menu): Use grub_env_unset_menu.
4827 (grub_normal_add_menu_entry): Use grub_env_get_menu.
4828 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
4829 (GRUB_MOD_INIT(normal)): Call grub_context_init.
4830 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
4831
4832 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4833
4834 setpci support.
4835
4836 * commands/setpci.c: New file.
4837 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
4838 (setpci_mod_SOURCES): New variable.
4839 (setpci_mod_CFLAGS): Likewise.
4840 (setpci_mod_LDFLAGS): Likewise.
4841
4842 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4843
4844 Byte-addressable PCI configuration space.
4845
4846 * bus/pci.c (grub_pci_make_address): Use byte address instead of
4847 dword address.
4848 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
4849 GRUB_PCI_REG_CACHELINE.
4850 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
4851 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
4852 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
4853 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
4854 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
4855 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
4856 grub_pci_make_address.
4857 (lock_rom_area): Likewise.
4858 * commands/lspci.c (grub_lspci_iter): Use macroses
4859 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
4860 of grub_pci_make_address.
4861 * disk/ata.c (grub_ata_pciinit): Likewise.
4862 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
4863 (GRUB_PCI_REG_VENDOR): Likewise.
4864 (GRUB_PCI_REG_DEVICE): Likewise.
4865 (GRUB_PCI_REG_COMMAND): Likewise.
4866 (GRUB_PCI_REG_STATUS): Likewise.
4867 (GRUB_PCI_REG_REVISION): Likewise.
4868 (GRUB_PCI_REG_CLASS): Likewise.
4869 (GRUB_PCI_REG_CACHELINE): Likewise.
4870 (GRUB_PCI_REG_LAT_TIMER): Likewise.
4871 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
4872 (GRUB_PCI_REG_BIST): Likewise.
4873 (GRUB_PCI_REG_ADDRESSES): Likewise.
4874 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4875 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4876 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4877 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4878 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4879 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
4880 (GRUB_PCI_REG_CIS_POINTER): Likewise.
4881 (GRUB_PCI_REG_SUBVENDOR): Likewise.
4882 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
4883 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
4884 (GRUB_PCI_REG_CAP_POINTER): Likewise.
4885 (GRUB_PCI_REG_IRQ_LINE): Likewise.
4886 (GRUB_PCI_REG_IRQ_PIN): Likewise.
4887 (GRUB_PCI_REG_MIN_GNT): Likewise.
4888 (GRUB_PCI_REG_MAX_LAT): Likewise.
4889 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
4890 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
4891 * video/efi_uga.c (find_framebuf): Likewise.
4892 * video/sm712.c (grub_video_sm712_setup): Likewise.
4893 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
4894 space.
4895
4896 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4897
4898 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
4899 can be reliably determined to be supported.
4900
4901 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4902
4903 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
4904 that VESA is supported.
4905 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
4906 supported.
4907
4908 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4909
4910 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
4911
4912 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4913
4914 * util/misc.c (make_system_path_relative_to_its_root): Work around
4915 special-casing of "/", as previous incarnation of this routine did.
4916
4917 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4918
4919 Fix any-emu compilation.
4920
4921 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
4922 * grub_bin2h_SOURCES: New variable.
4923
4924 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4925
4926 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
4927
4928 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
4929
4930 * util/grub.d/00_header.in: Fix handling of locale_dir.
4931
4932 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4933
4934 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
4935 as possible unifont location (Gentoo).
4936 Reported by: Alexander Brüning
4937
4938 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4939
4940 Don't try to generate lists for kernel.img.
4941
4942 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
4943 (pkglib_MODULES): Remove kernel.img.
4944 (kernel_img_EXPORTS): Removed.
4945 (kernel_img_RELOCATABLE): New variable.
4946 * conf/x86_64-efi.rmk: Likewise.
4947 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
4948
4949 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4950
4951 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
4952 grub_xasprintf or grub_snprintf.
4953 (grub_vsprintf): Likewise.
4954 (grub_snprintf): New proto.
4955 (grub_vsnprintf): Likewise.
4956 (grub_xasprintf): Likewise.
4957 (grub_xvasprintf): Likewise.
4958 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
4959 (grub_sprintf): Removed.
4960 (grub_vsnprintf): New function.
4961 (grub_snprintf): Likewise.
4962 (grub_xvasprintf): Likewise.
4963 (grub_xasprintf): Likewise.
4964 (grub_vsprintf): Renamed to ...
4965 (grub_vsnprintf_real): ...this. New argument max_len.
4966
4967 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
4968
4969 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
4970 fix grub-script-check warning.
4971
4972 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4973
4974 * include/grub/font.h (grub_font_load): Fix prototype.
4975
4976 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4977
4978 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
4979
4980 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4981
4982 * include/grub/x86_64/at_keyboard.h: New file.
4983
4984 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4985
4986 * loader/mips/linux.c: Include missing grub/i18n.h.
4987
4988 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4989
4990 * normal/menu.c (notify_execution_failure): Clarify error message.
4991
4992 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
4993
4994 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
4995 return value (and revert all return statements). Update users.
4996
4997 2010-01-20 Dan Merillat <debian@dan.merillat.org>
4998
4999 * kern/device.c (grub_device_iterate): Allocate new part_ent
5000 structure based on sizeof (*p) rather than sizeof (p->next), to
5001 account for structure padding.
5002
5003 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
5004 disk is NULL, which might happen for LVM physical volumes with no
5005 LVM signature.
5006
5007 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
5008
5009 * loader/mips/linux.c (grub_cmd_initrd)
5010 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
5011
5012 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
5013
5014 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
5015 (grub_video_video_init, grub_video_bitmap_init)
5016 (grub_font_manager_init, grub_term_gfxterm_init)
5017 (grub_at_keyboard_init): New extern declarations.
5018 (grub_machine_init): Initialize gfxterm and at_keyboard.
5019
5020 * kern/main.c (grub_main): Revert grub_printf delay kludge.
5021
5022 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
5023 `gfxterm.mod' into core image.
5024
5025 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
5026 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
5027 (kernel_img_FORMAT): Copy to ...
5028
5029 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
5030 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
5031 (kernel_img_FORMAT): ... here, and ...
5032
5033 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
5034 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
5035 (kernel_img_FORMAT): ... here.
5036
5037 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
5038 and input (at_keyboard) terminals in kernel.
5039 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
5040
5041 (pkglib_MODULES): Remove `pci.mod'.
5042 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
5043 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
5044 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
5045 (at_keyboard_mod_LDFLAGS): Remove variables.
5046
5047 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
5048
5049 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
5050
5051 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
5052
5053 * include/grub/mips/libgcc.h: Only export symbols for functions
5054 that libgcc provides.
5055
5056 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
5057
5058 MIPS support.
5059
5060 * bus/bonito.c: New file.
5061 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
5062 GRUB_PCI_NUM_DEVICES.
5063 * term/i386/pc/serial.c: Move to ...
5064 * term/serial.c: ... here. All users updated.
5065 * util/i386/pc/grub-mkimage.c: Move to ...
5066 * util/grub-mkrawimage.c: ... here. All users updated.
5067 * term/i386/pc/at_keyboard.c: Move to ...
5068 * term/at_keyboard.c: ... here. All users updated.
5069 * conf/mips-qemu-mips.rmk: New file.
5070 * conf/mips-yeeloong.rmk: Likewise.
5071 * conf/mips.rmk: Likewise.
5072 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
5073 mipsel-qemu-mips.
5074 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
5075 to port addresses.
5076 (grub_ata_pciinit): Support CS5536.
5077 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
5078 * font/font_cmd.c (loadfont_command): Open file before passing it to
5079 grub_font_load.
5080 (pseudo_file_read): New function.
5081 (pseudo_file_close): Likewise.
5082 (pseudo_fs): New structure.
5083 (load_font_module): New function.
5084 (GRUB_MOD_INIT(font_manager)): Load embedded font.
5085 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
5086 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
5087 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
5088 * include/grub/i386/at_keyboard.h: Split into ...
5089 * include/grub/at_keyboard.h: ... this ...
5090 * include/grub/i386/at_keyboard.h: ... and this.
5091 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
5092 New prototype.
5093 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
5094 updated.
5095 (grub_elf64_size): Likewise.
5096 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
5097 filename.
5098 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
5099 * include/grub/i386/coreboot/serial.h: Rewritten.
5100 * include/grub/i386/ieee1275/serial.h: Include
5101 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
5102 * include/grub/i386/pc/serial.h: Moved from here ...
5103 * include/grub/serial.h: ... to here. All users updated.
5104 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
5105 (GRUB_PCI_NUM_BUS): Likewise.
5106 (GRUB_PCI_NUM_DEVICES): Likewise.
5107 (grub_pci_device_map_range): Add missing volatile keyword.
5108 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
5109 * include/grub/mips/at_keyboard.h: New file.
5110 * include/grub/mips/cache.h: Likewise.
5111 * include/grub/mips/io.h: Likewise.
5112 * include/grub/mips/kernel.h: Likewise.
5113 * include/grub/mips/libgcc.h: Likewise.
5114 * include/grub/mips/pci.h: Likewise.
5115 * include/grub/mips/qemu-mips/boot.h: Likewise.
5116 * include/grub/mips/qemu-mips/kernel.h: Likewise.
5117 * include/grub/mips/qemu-mips/loader.h: Likewise.
5118 * include/grub/mips/qemu-mips/memory.h: Likewise.
5119 * include/grub/mips/qemu-mips/serial.h: Likewise.
5120 * include/grub/mips/qemu-mips/time.h: Likewise.
5121 * include/grub/mips/relocator.h: Likewise.
5122 * include/grub/mips/time.h: Likewise.
5123 * include/grub/mips/types.h: Likewise.
5124 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
5125 * include/grub/mips/yeeloong/boot.h: Likewise.
5126 * include/grub/mips/yeeloong/kernel.h: Likewise.
5127 * include/grub/mips/yeeloong/loader.h: Likewise.
5128 * include/grub/mips/yeeloong/memory.h: Likewise.
5129 * include/grub/mips/yeeloong/pci.h: Likewise.
5130 * include/grub/mips/yeeloong/serial.h: Likewise.
5131 * include/grub/mips/yeeloong/time.h: Likewise.
5132 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
5133 * kern/elf.c (grub_elf32_size): New parameter. All users
5134 updated.
5135 (grub_elf64_size): Likewise.
5136 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
5137 Load modules before saying "Welcome to GRUB!".
5138 Call grub_refresh after saying "Welcome to GRUB!".
5139 * kern/mips/cache.S: New file.
5140 * kern/mips/cache_flush.S: Likewise.
5141 * kern/mips/dl.c: Likewise.
5142 * kern/mips/init.c: Likewise.
5143 * kern/mips/qemu-mips/init.c: Likewise.
5144 * kern/mips/startup.S: Likewise.
5145 * kern/mips/yeeloong/init.c: Likewise.
5146 * kern/term.c (grub_putcode): Handle NULL terminal.
5147 (grub_getcharwidth): Likewise.
5148 (grub_getkey): Likewise.
5149 (grub_checkkey): Likewise.
5150 (grub_getkeystatus): Likewise.
5151 (grub_getxy): Likewise.
5152 (grub_getwh): Likewise.
5153 (grub_gotoxy): Likewise.
5154 (grub_cls): Likewise.
5155 (grub_setcolorstate): Likewise.
5156 (grub_setcolor): Likewise.
5157 (grub_getcolor): Likewise.
5158 (grub_refresh): Likewise.
5159 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
5160 (write_jump): Add hatch nop.
5161 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
5162 * lib/mips/setjmp.S: New file.
5163 * loader/mips/linux.c: Likewise.
5164 * term/i386/pc/at_keyboard.c: Move from here ...
5165 * term/at_keyboard.c: ... to here.
5166 * term/i386/pc/serial.c: Moved from here ...
5167 * term/serial.c: ... to here. All users updated.
5168 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
5169 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
5170 (serial_translate_key_sequence): Avoid deadlock.
5171 (grub_serial_getkey): Handle backspace.
5172 (grub_serial_putchar): Fix newline handling.
5173 * util/i386/pc/grub-mkimage.c: Move from here ...
5174 * util/grub-mkrawimage.c: ... to here. All users updated.
5175 (generate_image): New parameters 'font_path' and 'format'.
5176 Support embedding font.
5177 Use grub_host_to_target* instead of grub_cpu_to_le*.
5178 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
5179 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
5180 (options): New option "--font".
5181 (usage): Likewise.
5182 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
5183 (main): Handle "--font".
5184 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
5185 (grub_virtual_screen_setup): Set bg_color_display.
5186 (redraw_screen_rect): Use bg_color_display instead of incorrect
5187 bg_color.
5188 (grub_gfxterm_cls): Likewise.
5189 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
5190 Support embedding config file.
5191 (add_segments): Likewise.
5192 (options): New option "--config".
5193 (main): Handle "--config".
5194 * video/sm712.c: New file.
5195
5196 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
5197
5198 Fix parallel builds.
5199
5200 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
5201 font.c depend on ascii.h).
5202
5203 2010-01-12 Carles Pina i Estany <carles@pina.cat>
5204
5205 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
5206
5207 2010-01-11 Carles Pina i Estany <carles@pina.cat>
5208
5209 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
5210 By default: disabled.
5211 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
5212 parameter.
5213
5214 2010-01-10 Carles Pina i Estany <carles@pina.cat>
5215
5216 * font/font.c: Update copyright years.
5217 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
5218
5219 2010-01-10 Carles Pina i Estany <carles@pina.cat>
5220
5221 * font/font.c: Include `ascii.h'.
5222 (ASCII_BITMAP_SIZE): New macro.
5223 (ascii_font_glyph): Define.
5224 (ascii_glyph_lookup): New function.
5225 (grub_font_get_string_width): Change comment. If glyph not found, use
5226 ascii_glyph_lookup.
5227 (grub_font_get_glyph_with_fallback): If glyph not available returns
5228 ascii_glyph_lookup.
5229 * util/grub-mkfont.c (file_formats): New enum.
5230 (options): Add `ascii-bitmaps' new option.
5231 (usage): Add `asii-bitmaps' new option.
5232 (write_font_ascii_bitmap): New function.
5233 (write_font): Rename to ...
5234 (write_font_p2): ... this. Remove print_glyphs call.
5235 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
5236 used. Call print_glyphs.
5237 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
5238
5239 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
5240
5241 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
5242 (grub_bin2h_SOURCES): New variable.
5243 * util/bin2h.c: New file.
5244
5245 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
5246
5247 * include/multiboot.h: Resynced with spec.
5248 * include/multiboot2.h: Likewise.
5249 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
5250 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
5251
5252 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
5253
5254 * include/grub/term.h (grub_term_register_input,
5255 grub_term_register_output): Check return of terminal init()
5256 routines, and abort if errors are raised.
5257
5258 * commands/terminal.c: Update copyright year.
5259
5260 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
5261
5262 * commands/terminal.c (grub_cmd_terminal_input)
5263 (grub_cmd_terminal_output): Check return of terminal init()
5264 routines, and abort if errors are raised.
5265
5266 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
5267
5268 * include/grub/i386/bsd.h: Fix include pathes.
5269
5270 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
5271
5272 Add missing *BSD copyright headers.
5273
5274 * include/grub/aout.h: Add BSD licence.
5275 * include/grub/i386/bsd.h: Parts under different licences moved to ...
5276 * include/grub/i386/freebsd_linker.h: ... here,
5277 * include/grub/i386/freebsd_reboot.h: ... here,
5278 * include/grub/i386/netbsd_bootinfo.h: ... here,
5279 * include/grub/i386/netbsd_reboot.h: ... here,
5280 * include/grub/i386/openbsd_bootarg.h: ... here,
5281 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
5282 licence to each file.
5283
5284 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
5285
5286 * acinclude.m4: Remove `nop' assembly instruction; it's not
5287 implemented by all architectures.
5288
5289 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
5290
5291 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
5292 ELILO. This is no longer necessary.
5293
5294 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
5295
5296 Added new tool, grub-scrit-check to verify grub.cfg syntax.
5297
5298 * util/grub-script-check.c: grub-script-check tool.
5299 * conf/common.rmk: Make rules for grub-script-check.
5300
5301 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
5302
5303 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
5304 spotting it back in 2008. Shame on me for forgetting he did.
5305
5306 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
5307
5308 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
5309
5310 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
5311 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
5312 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
5313 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
5314 (GRUB_VIDEO_TYPE_EFI): Rename to ...
5315 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
5316
5317 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
5318
5319 * include/grub/test.h: Add license header.
5320 * tests/example_functional_test.c: Likewise.
5321 * tests/example_unit_test.c: Likewise.
5322 * tests/lib/functional_test.c: Likewise.
5323 * tests/lib/test.c: Likewise.
5324 * tests/lib/unit_test.c: Likewise.
5325
5326 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
5327
5328 Use flag-based instead of hook-based video mode selection and "auto"
5329 keyword.
5330
5331 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
5332 (grub_video_set_mode): Changed prototype. All users updated.
5333 (grub_video_check_mode_flag): New inline function.
5334 * video/video.c (parse_modespec): New function.
5335 (grub_video_set_mode): Parse flags and keywords.
5336
5337 2010-01-17 Carles Pina i Estany <carles@pina.cat>
5338
5339 * util/misc.c (grub_util_info): Fix the order of the parameters in a
5340 fprintf call.
5341
5342 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5343
5344 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
5345
5346 2010-01-16 Carles Pina i Estany <carles@pina.cat>
5347
5348 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
5349 string.
5350 * util/grub-emu.c (usage): Likewise.
5351 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
5352 * util/i386/efi/grub-mkimage.c (usage): Likewise.
5353 * util/i386/pc/grub-mkimage.c (usage): Likewise.
5354 * util/i386/pc/grub-setup.c (usage): Likewise.
5355
5356 2010-01-16 Carles Pina i Estany <carles@pina.cat>
5357
5358 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
5359 the message.
5360 (grub_util_info): Likewise.
5361 (grub_util_error): Likewise.
5362 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
5363 and/or new lines in `grub_util_warna', `grub_util_info',
5364 `grub_util_error' calls.
5365 * util/getroot.c: Likewise.
5366 * util/grub-editenv.c: Likewise.
5367 * util/grub-emu.c: Likewise.
5368 * util/grub-fstest.c: Likewise.
5369 * util/grub-mkdevicemap.c: Likewise.
5370 * util/grub-mkfont.c: Likewise.
5371 * util/grub-mkpasswd-pbkdf2.c: Likewise.
5372 * util/grub-mkrelpath.c: Likewise.
5373 * util/grub-pe2elf.c: Likewise.
5374 * util/grub-probe.c: Likewise.
5375 * util/hostdisk.c: Likewise.
5376 * util/i386/efi/grub-mkimage.c: Likewise.
5377 * util/i386/pc/grub-mkimage.c: Likewise.
5378 * util/i386/pc/grub-setup.c: Likewise.
5379 * util/ieee1275/ofpath.c: Likewise.
5380 * util/mkisofs/eltorito.c: Likewise.
5381 * util/mkisofs/rock.c: Likewise.
5382 * util/mkisofs/write.c: Likewise.
5383 * util/raid.c: Likewise.
5384 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
5385 * util/sparc64/ieee1275/grub-setup.c: Likewise.
5386
5387 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
5388
5389 Enable multiboot on non-pc.
5390
5391 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
5392 multiboot.mod and multiboot2.mod to ...
5393 * conf/i386.rmk (pkglib_MODULES): ... here.
5394 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
5395 Moved to ...
5396 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
5397 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
5398 Moved to ...
5399 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
5400 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
5401 Moved to ...
5402 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
5403 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
5404 Moved to ...
5405 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
5406 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
5407 relocator.mod.
5408 (ata_mod_SOURCES): Removed.
5409 (ata_mod_CFLAGS): Likewise.
5410 (ata_mod_LDFLAGS): Likewise.
5411 (relocator_mod_SOURCES): Removed.
5412 (relocator_mod_CFLAGS): Likewise.
5413 (relocator_mod_ASFLAGS): Likewise.
5414 (relocator_mod_LDFLAGS): Likewise.
5415 Include i386.mk.
5416 * include/grub/x86_64/multiboot.h: New file.
5417 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
5418 Terminate EFI.
5419
5420 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
5421
5422 Video multiboot support.
5423
5424 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
5425 New prototype.
5426 * include/multiboot.h: Resynced with multiboot specification.
5427 * include/multiboot2.h: Likewise.
5428 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
5429 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
5430 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
5431 (HAS_VGA_TEXT): Likewise.
5432 (accepts_video): New variable.
5433 (grub_multiboot_set_accepts_video): New function.
5434 (grub_multiboot_get_mbi_size): Account for video structures.
5435 (set_video_mode): New function.
5436 (retrieve_video_parameters): Likewise.
5437 (grub_multiboot_make_mbi): Fill video fields.
5438
5439 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
5440
5441 Video driver ids.
5442
5443 * include/grub/video.h (grub_video_driver_id): New type.
5444 (grub_video_adapter): New member 'id'. All users updated.
5445 (grub_video_get_driver_id): New proto.
5446 * video/video.c (grub_video_get_driver_id): New function.
5447
5448 2010-01-14 Carles Pina i Estany <carles@pina.cat>
5449
5450 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
5451 `var=val'.
5452
5453 2010-01-14 Carles Pina i Estany <carles@pina.cat>
5454
5455 * normal/cmdline.c (print_completion): Gettextizze.
5456
5457 2001-01-14 Carles Pina i Estany <carles@pina.cat>
5458
5459 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
5460
5461 2010-01-14 Carles Pina i Estany <carles@pina.cat>
5462
5463 * gettext/gettext.c (grub_gettext_translate): Push and pop
5464 grub_errno.
5465 (grub_gettext_delete_list): Change comment style.
5466 * kern/err.c (grub_error): Gettextizze.
5467 (grub_fatal): Gettextizze.
5468
5469 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
5470
5471 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
5472 (grub_linux16_real_boot): ... this.
5473 * kern/i386/loader.S: Likewise.
5474 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
5475 (grub_linux16_boot): New function. Switches to text mode and calls
5476 grub_linux16_real_boot().
5477
5478 * loader/i386/bsd.c: Include `<grub/video.h>'.
5479 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
5480 text mode before calling grub_unix_real_boot().
5481
5482 * loader/i386/multiboot.c: Include `<grub/video.h>'.
5483 (grub_multiboot_boot): Switch to text mode before calling
5484 grub_relocator32_boot().
5485
5486 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
5487 (grub_chainloader_boot): Switch to text mode before calling
5488 grub_chainloader_real_boot().
5489
5490 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
5491 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5492
5493 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
5494 non-empty value.
5495
5496 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
5497 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5498
5499 * util/grub.d/00_header.in: Define a "savedefault" function for use
5500 in menu entries.
5501 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
5502
5503 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
5504 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
5505
5506 * util/grub-mkconfig_lib.in (save_default_entry): Only set
5507 saved_entry if boot_once is unset.
5508 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
5509 previous saved entry (i.e. grub-reboot).
5510
5511 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5512
5513 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
5514
5515 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5516
5517 * util/grub.d/00_header.in: Use `set var=val' rather than plain
5518 `var=val'.
5519 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
5520
5521 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5522
5523 * util/grub-reboot.in: Fix --version output.
5524 * util/grub-set-default.in: Likewise.
5525
5526 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5527
5528 * util/grub.d/00_header.in: Silently ignore zero-sized environment
5529 blocks.
5530
5531 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5532
5533 * util/grub.d/00_header.in: Quote the value assigned to `default',
5534 in case it contains spaces.
5535
5536 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
5537
5538 * util/grub.d/30_os-prober.in: Fix merge error that moved a
5539 `save_default_entry' call from the macosx case to the linux case.
5540
5541 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
5542 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
5543
5544 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
5545 in `chosen' environment variable.
5546 * normal/menu_text.c (get_entry_number): Check if the variable
5547 matches the title of a menu entry.
5548 (run_menu): Pass menu to get_entry_number.
5549
5550 * util/grub-reboot.in: New file.
5551 * util/grub-set-default.in: New file.
5552 * conf/common.rmk (grub-reboot): New utility.
5553 (grub-set-default): New utility.
5554
5555 * util/grub-mkconfig_lib.in (save_default_entry): New function.
5556 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
5557 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
5558 move it to `saved_entry' for the next boot. Load environment on
5559 initialisation.
5560 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
5561 * util/grub.d/10_hurd.in: Likewise.
5562 * util/grub.d/10_linux.in (linux_entry): Likewise.
5563 * util/grub.d/10_windows.in: Likewise.
5564 * util/grub.d/30_os-prober.in: Likewise.
5565
5566 * util/grub-install.in: Create environment block.
5567 * util/i386/efi/grub-install.in: Likewise.
5568 * util/ieee1275/grub-install.in: Likewise.
5569 * util/sparc64/ieee1275/grub-install.in: Likewise.
5570
5571 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
5572
5573 Unit testing framework for GRUB.
5574
5575 * Makefile.in: Test framework build rules for 'make check'.
5576 * conf/tests.rmk: Build rules for individual tests and framework.
5577
5578 * include/grub/test.h: Header file for whitebox tests.
5579 * tests/lib/functional_test.c: Framework support for whitebox
5580 functional tests.
5581 * tests/lib/test.c: Common whitebox testing code for unit and
5582 functional tests.
5583 * tests/lib/unit_test.c: Framework support for whitebox unit
5584 tests.
5585
5586 * tests/util/grub-shell-tester.in: Support utility for grub-script
5587 tests.
5588 * tests/util/grub-shell.in: Utility to execute grub-script
5589 commands in a Qemu instance.
5590
5591 * tests/example_functional_test.c: Example whitebox functional
5592 test.
5593 * tests/example_grub_script_test.in: Example grub-script test.
5594 * tests/example_scripted_test.in: Example scripted test.
5595 * tests/example_unit_test.c: Example whitebox unit test.
5596
5597 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
5598
5599 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
5600 Add loader/i386/multiboot_mbi.c.
5601 (multiboot2_mod_SOURCES): Likewise.
5602 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
5603 (multiboot2_mod_SOURCES): Likewise.
5604 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
5605 (grub_multiboot_make_mbi): Likewise.
5606 (grub_multiboot_free_mbi): Likewise.
5607 (grub_multiboot_init_mbi): Likewise.
5608 (grub_multiboot_add_module): Likewise.
5609 (grub_multiboot_set_bootdev): Likewise.
5610 * loader/i386/multiboot.c (mbi): Removed.
5611 (mbi_dest): Likewise.
5612 (alloc_mbi): New variable.
5613 (grub_multiboot_payload_size): Removed. All users updated.
5614 (grub_multiboot_pure_size): New variable.
5615 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
5616 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
5617 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
5618 (grub_fill_multiboot_mmap): Likewise.
5619 (grub_multiboot_get_bootdev): Likewise.
5620 (grub_multiboot): Use multiboot_mbi functions.
5621 * loader/i386/multiboot_mbi.c: New file.
5622
5623 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5624
5625 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
5626 it would result in module crash.
5627
5628 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5629
5630 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
5631 (grub_ofconsole_getwh): Split to ...
5632 (grub_ofconsole_getwh): ... this.
5633 (grub_ofconsole_dimensions): ...and this.
5634 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
5635
5636 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
5637
5638 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
5639
5640 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5641
5642 * loader/i386/pc/multiboot2.c: Removed stalled file.
5643
5644 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5645
5646 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
5647 Reported by: Grégoire Sutre
5648
5649 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
5650
5651 * util/misc.c (canonicalize_file_name): New function.
5652 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
5653 instead of realpath().
5654
5655 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
5656
5657 * util/grub-install.in (usage): Clarify meaning of --root-directory,
5658 and make it clearer that it's optional. Based on confusion
5659 witnessed on IRC.
5660
5661 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5662
5663 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
5664 in premature implicit newline.
5665
5666 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5667
5668 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
5669 which resulted in garbled command line at the end of screen.
5670
5671 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
5672
5673 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
5674 initialization with similar approach as with other Linux loaders.
5675
5676 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
5677
5678 Fix i386-ieee1275 build.
5679
5680 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
5681 and grub_term_height() for video_{width,height} initialization.
5682
5683 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
5684
5685 Fix grub-emu build.
5686
5687 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
5688
5689 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5690 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
5691
5692 Support for multiple terminals.
5693
5694 * Makefile.in (pkglib_DATA): terminal.lst.
5695 (terminal.lst): New target.
5696 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
5697 (GRUB_MOD_INIT(handler)): Likewise.
5698 (GRUB_MOD_FINI(handler)): Likewise.
5699 * commands/help.c (grub_cmd_help): Handle multiple terminals.
5700 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
5701 * commands/sleep.c (do_print): Use grub_term_restore_pos.
5702 (grub_cmd_sleep): Use grub_term_save_pos.
5703 * commands/terminal.c: New file.
5704 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
5705 commands/terminal.c and lib/charset.c.
5706 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
5707 (pkglib_MODULES): Add terminal.mod.
5708 (terminal_mod_SOURCES): New variable.
5709 (terminal_mod_CFLAGS): Likewise.
5710 (terminal_mod_LDFLAGS): Likewise.
5711 * genhandlerlist.sh: Don't handle terminals.
5712 * genmk.rb: Generate terminal-*.lst.
5713 * genterminallist.sh: New file.
5714 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
5715 (grub_is_valid_utf8): Likewise.
5716 (grub_utf8_to_ucs4_alloc): Likewise.
5717 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
5718 (grub_menu_register_viewer): Changed argument.
5719 (grub_menu_try_text): New proto.
5720 (grub_gfxmenu_try_hook): New declaration.
5721 * include/grub/normal.h (grub_normal_exit_level): New declaration.
5722 (grub_menu_init_page): Additional argument term.
5723 (grub_normal_init_page): Likewise.
5724 (grub_cmdline_get): Arguments simplified.
5725 (grub_utf8_to_ucs4_alloc): Removed.
5726 (grub_print_ucs4): Additional argument term.
5727 (grub_getstringwidth): Likewise.
5728 (grub_print_message_indented): Likewise.
5729 (grub_menu_text_register_instances): New proto.
5730 (grub_show_menu): Likewise.
5731 (read_terminal_list): Likewise.
5732 (grub_set_more): Likewise.
5733 * include/grub/parser.h: Include handler.h.
5734 * include/grub/reader.h: Rewritten.
5735 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
5736 (GRUB_TERM_WIDTH): Changed to function.
5737 (GRUB_TERM_HEIGHT): Likewise.
5738 (GRUB_TERM_BORDER_WIDTH): Likewise.
5739 (GRUB_TERM_BORDER_HEIGHT): Likewise.
5740 (GRUB_TERM_NUM_ENTRIES): Likewise.
5741 (GRUB_TERM_ENTRY_WIDTH): Likewise.
5742 (GRUB_TERM_CURSOR_X): Likewise.
5743 (grub_term_input_class): Likewise.
5744 (grub_term_output_class): Likewise.
5745 (grub_term_outputs_disabled): New declaration.
5746 (grub_term_inputs_disabled): Likewise.
5747 (grub_term_outputs): Likewise.
5748 (grub_term_inputs): Likewise.
5749 (grub_term_register_input): Rewritten.
5750 (grub_term_register_output): Likewise.
5751 (grub_term_unregister_input): Likewise.
5752 (grub_term_unregister_output): Likewise.
5753 (FOR_ACTIVE_TERM_INPUTS): New macro.
5754 (FOR_DISABLED_TERM_INPUTS): Likewise.
5755 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
5756 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
5757 * include/grub/terminfo.h: Add oterm argument to all protypes.
5758 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
5759 Use grub_rescue_run.
5760 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
5761 All users updated.
5762 * kern/reader.c: Removed. All users updated.
5763 * kern/rescue_reader.c (grub_rescue_init): Removed.
5764 (grub_rescue_reader): Likewise.
5765 (grub_register_rescue_reader): Likewise.
5766 (grub_rescue_run): New function based on kern/reader.c.
5767 * kern/term.c: Adapted for multiterm.
5768 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
5769 (grub_is_valid_utf8): Likewise.
5770 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
5771 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
5772 right terminal.
5773 * loader/i386/linux.c (grub_linux_boot): Likewise.
5774 * normal/auth.c (grub_username_get): New function.
5775 (grub_auth_check_authentication): Use grub_username_get.
5776 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
5777 * normal/color.c: Adapt for multiterm.
5778 * normal/main.c (read_config_file): Don't use grub_reader_loop.
5779 (grub_normal_init_page): Additional argument term.
5780 (read_lists): Call read_terminal_lists.
5781 (grub_enter_normal_mode): Call grub_cmdline_run.
5782 Handle grub_normal_exit_level.
5783 (grub_cmd_normal): Make reentrant.
5784 (grub_cmd_normal_exit): New function.
5785 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
5786 * normal/menu.c: Adapt for multiterm.
5787 * normal/menu_entry.c: Likewise.
5788 * normal/menu_text.c: Likewise.
5789 * normal/menu_viewer.c: Removed. All users updated.
5790 * normal/term.c: New file.
5791 * util/console.c: Change order of includes to workaround a bug in
5792 ncurses headers.
5793 * term/terminfo.c: New argument oterm on all exported functions.
5794 All users updated.
5795 * util/grub-editenv.c (grub_term_input_class): Removed.
5796 (grub_term_output_class): Likewise.
5797
5798 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
5799
5800 Make loader output a bit more user-friendly.
5801
5802 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
5803 is being loaded. Likewise for the Hurd.
5804
5805 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
5806 that kernel of FreeBSD ${version} is being loaded.
5807
5808 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
5809 grub_dprintf().
5810 (grub_cmd_initrd): Likewise.
5811 * util/grub.d/10_linux.in (linux_entry): Print message indicating
5812 that Linux ${version} is being loaded. Likewise for initrd.
5813
5814 2010-01-09 Carles Pina i Estany <carles@pina.cat>
5815
5816 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
5817
5818 2010-01-08 Carles Pina i Estany <carles@pina.cat>
5819
5820 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
5821 (GRUB_MOD_INIT): Gettextizze.
5822 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
5823 (GRUB_MOD_INIT): Gettextizze.
5824 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
5825 (grub_cmd_linux): Capitalise Linux.
5826 (GRUB_MOD_INIT): Gettextizze.
5827 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
5828 (grub_cmd_linux): Capitalise Linux.
5829 (GRUB_MOD_INIT): Gettextizze.
5830 * loader/i386/linux.c: Include `<grub/i18n.h>'.
5831 (grub_cmd_linux): Capitalise Linux.
5832 (GRUB_MOD_INIT): Gettextizze.
5833 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
5834 (GRUB_MOD_INIT): Gettextizze.
5835 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
5836 (grub_cmd_linux): Capitalise Linux.
5837 (GRUB_MOD_INIT): Gettextizze.
5838 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
5839 (grub_cpu_xnu_init): Gettextizze.
5840 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
5841 (GRUB_MOD_INIT): Gettextizze.
5842 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
5843 (GRUB_MOD_INIT): Gettextizze.
5844 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
5845 (grub_linux_load64): Capitalise Linux.
5846 (GRUB_MOD_INIT): Gettextizze.
5847 * loader/xnu.c: Include `<grub/i18n.h>'.
5848 (GRUB_MOD_INIT): Gettextizze.
5849 * po/POTFILES: Add `loader/efi/appleloader.c',
5850 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
5851 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
5852 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
5853 `loader/i386/xnu.c', `loader/multiboot_loader.c',
5854 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
5855 and `loader/xnu.c'.
5856
5857 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
5858
5859 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
5860
5861 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
5862
5863 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
5864 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
5865 * util/mkisofs/mkisofs.c (main): Readjust --version output.
5866
5867 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5868
5869 Reset Multiboot 2 support. New loader implements the draft in
5870 /branches/multiboot2 and shares as much code as possible with the
5871 production Multiboot 1 implementation.
5872
5873 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
5874 * loader/multiboot2.c: Likewise.
5875 * loader/i386/multiboot_helper.S: Likewise.
5876 * include/multiboot2.h: Replace with latest version from the draft
5877 in /branches/multiboot2.
5878
5879 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
5880 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
5881 and `loader/multiboot2.c'.
5882 (pkglib_MODULES): Add `multiboot2.mod'.
5883 (multiboot2_mod_SOURCES): New variable.
5884 (multiboot2_mod_LDFLAGS): Likewise.
5885 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
5886
5887 * conf/i386-pc.rmk: Likewise.
5888
5889 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
5890 (multiboot_mod_SOURCES): Remove variable.
5891 (multiboot_mod_LDFLAGS): Likewise.
5892 (multiboot_mod_CFLAGS): Likewise.
5893
5894 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
5895 `<multiboot2.h>' instead of `<multiboot.h>'.
5896 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
5897 (MULTIBOOT_HEADER_MAGIC): New macros.
5898
5899 * loader/multiboot_loader.c (module_version_status): Remove variable.
5900 (find_multi_boot2_header): Remove function.
5901 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
5902 logic. Always check for the Multiboot version we're compiling for.
5903 (grub_cmd_module_loader): Likewise.
5904 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
5905 command instead of `multiboot'.
5906
5907 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5908
5909 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
5910 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
5911 all users.
5912
5913 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5914 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5915
5916 Fix breakage introduced with previous commit.
5917
5918 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
5919 commands.
5920 * normal/handler.c (read_handler_list): Revert part of previous commit
5921 affecting this file.
5922 * normal/main.c (read_lists): Move read_handler_list() call back to ...
5923 (grub_normal_execute): ... here.
5924
5925 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
5926
5927 Merge prefix-redefinition-fix branch.
5928
5929 * normal/autofs.c (read_fs_list): Make function capable of being
5930 run multiple times, gracefuly replacing the previous data
5931 structures.
5932 * normal/dyncmd.c (read_command_list): Likewise.
5933 * normal/handler.c (read_handler_list): Likewise.
5934 * normal/main.c (read_lists): New function. Calls all the
5935 list reading functions.
5936 (grub_normal_execute): Use read_lists() instead of calling all
5937 list reading functions explicitly. Register read_lists() as a
5938 variable hook attached to ${prefix}.
5939
5940 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5941
5942 Merge crypto branch.
5943
5944 * Makefile.in (pkglib_DATA): Add crypto.lst.
5945 (crypto.lst): New target.
5946 * commands/hashsum.c: New file.
5947 * commands/password.c (check_password): Use grub_crypto_memcmp.
5948 * commands/password_pbkdf2.c: New file.
5949 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
5950 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
5951 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
5952 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
5953 -I$(srcdir)/lib/libgcrypt_wrap.
5954 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
5955 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
5956 password_pbkdf2.mod.
5957 (crypto_mod_SOURCES): New variable.
5958 (crypto_mod_CFLAGS): Likewise.
5959 (crypto_mod_LDFLAGS): Likewise.
5960 (hashsum_mod_SOURCES): New variable.
5961 (hashsum_mod_CFLAGS): Likewise.
5962 (hashsum_mod_LDFLAGS): Likewise.
5963 (pbkdf2_mod_SOURCES): New variable.
5964 (pbkdf2_mod_CFLAGS): Likewise.
5965 (pbkdf2_mod_LDFLAGS): Likewise.
5966 (password_pbkdf2_mod_SOURCES): New variable.
5967 (password_pbkdf2_mod_CFLAGS): Likewise.
5968 (password_pbkdf2_mod_LDFLAGS): Likewise.
5969 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
5970 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
5971 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
5972 Include conf/gcry.rmk.
5973 * include/grub/auth.h: Rewritten.
5974 * include/grub/crypto.h: New file.
5975 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
5976 * include/grub/normal.h (read_crypto_list): New prototype.
5977 * lib/crypto.c: New file.
5978 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
5979 * lib/pbkdf2.c: Likewise.
5980 * normal/auth.c (grub_auth_strcmp): Removed.
5981 (grub_iswordseparator): Likewise.
5982 (grub_auth_strword): Likewise.
5983 (is_authenticated): Use grub_strword.
5984 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
5985 and grub_strword. Pass entered password to authentication callback.
5986 * normal/crypto.c: New file.
5987 * normal/main.c: Call read_crypto_list.
5988 * util/grub-mkpasswd-pbkdf2.c: New file.
5989 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
5990
5991 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
5992
5993 Fix descent and ascent calculation.
5994
5995 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
5996 (options): New option "asce".
5997 (usage): Likewise.
5998 (add_char): Ignore invalid glyphs for descent calculation.
5999 Calculate ascent from actual content.
6000 (print_glyphs): Use 'asce'.
6001 (write_font): Likewise. Allow ascent override.
6002 (main): Handle "asce" option.
6003
6004 2010-01-06 Carles Pina i Estany <carles@pina.cat>
6005
6006 * kern/err.c: Include `<grub/i18n.h>'.
6007 (grub_print_error): Add full stop. Gettextizze.
6008 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
6009 (grub_bsd_load_elf): Capitalise ELF.
6010 (grub_cmd_freebsd_loadenv): Add `s' in error string.
6011 (grub_cmd_freebsd_module): Likewise.
6012 (grub_cmd_freebsd_module_elf): Likewise.
6013 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
6014
6015 2010-01-06 Carles Pina i Estany <carles@pina.cat>
6016
6017 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
6018 * commands/search_file.c (HELP_MESSAGE): New macro.
6019 * commands/search_label.c (HELP_MESSAGE): Likewise.
6020 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
6021 * po/POTFILES: Add `commands/search_file.c',
6022 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
6023 `commands/search.c'.
6024
6025 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
6026
6027 * config.rpath: Update from Gnulib.
6028
6029 2010-01-05 Yves Blusseau <blusseau@zetam.org>
6030
6031 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
6032
6033 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
6034
6035 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
6036
6037 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
6038
6039 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
6040 arguments to fread so that we get a return value in bytes, rather
6041 than something that will normally be rounded down to 0.
6042 Adjust error handling to avoid producing garbage when size_t is not
6043 the same size as long long.
6044
6045 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
6046
6047 * util/mkisofs/write.c (padblock_write): Check return value of
6048 fread.
6049
6050 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
6051
6052 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
6053 floppy images now.
6054
6055 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
6056
6057 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
6058
6059 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
6060 instead of manual alignment.
6061 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
6062 verbose). Avoid attempts to read past end of the device
6063 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
6064 but GRUB_DISK_CACHE_SIZE may exceed that).
6065
6066 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
6067
6068 * commands/crc.c (grub_cmd_crc): Abort on read errors.
6069 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
6070 it to upper layer.
6071
6072 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6073
6074 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
6075 New constant.
6076 (grub_efi_piwg_device_path): New structure
6077 (grub_efi_piwg_device_path_t): New type.
6078 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
6079 (devpath_1): Transform to a structure. All users updated.
6080 (devpath_2): Likewise.
6081 (devpath_3): Likewise.
6082 (devpath_4): Likewise.
6083 (devpath_5): Likewise.
6084
6085 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
6086
6087 * loader/efi/appleloader.c: Restored. Update all users.
6088
6089 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
6090
6091 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
6092
6093 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
6094 (struct boot_blocklist): Move from here ...
6095 * include/grub/i386/pc/boot.h [ASM_FILE]
6096 (struct grub_boot_blocklist): ... to here. Update all users.
6097 (setup): Only initialize `start' member of `first_block'
6098 structure. Add assert() calls to verify the other members.
6099
6100 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
6101 (generate_image): Fix broken blocklist length initialization.
6102 Add assert() call to verify blocklist `segment' field.
6103
6104 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
6105
6106 * loader/efi/appleloader.c: Remove. Update all users.
6107
6108 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
6109
6110 * boot/i386/pc/boot.S: Update copyright year.
6111 * boot/i386/pc/cdboot.S: Likewise.
6112 * boot/i386/pc/diskboot.S: Likewise.
6113 * boot/i386/pc/lnxboot.S: Likewise.
6114 * boot/i386/pc/pxeboot.S: Likewise.
6115 * bus/pci.c: Likewise.
6116 * commands/cmp.c: Likewise.
6117 * commands/help.c: Likewise.
6118 * commands/hexdump.c: Likewise.
6119 * commands/i386/pc/halt.c: Likewise.
6120 * commands/i386/pc/play.c: Likewise.
6121 * commands/i386/pc/vbeinfo.c: Likewise.
6122 * commands/ls.c: Likewise.
6123 * commands/test.c: Likewise.
6124 * disk/dmraid_nvidia.c: Likewise.
6125 * disk/i386/pc/biosdisk.c: Likewise.
6126 * disk/ieee1275/nand.c: Likewise.
6127 * disk/ieee1275/ofdisk.c: Likewise.
6128 * disk/lvm.c: Likewise.
6129 * disk/raid.c: Likewise.
6130 * disk/raid6_recover.c: Likewise.
6131 * disk/scsi.c: Likewise.
6132 * fs/affs.c: Likewise.
6133 * fs/cpio.c: Likewise.
6134 * fs/ext2.c: Likewise.
6135 * fs/hfs.c: Likewise.
6136 * fs/iso9660.c: Likewise.
6137 * fs/ntfs.c: Likewise.
6138 * fs/sfs.c: Likewise.
6139 * fs/udf.c: Likewise.
6140 * fs/ufs.c: Likewise.
6141 * fs/xfs.c: Likewise.
6142 * gencmdlist.sh: Likewise.
6143 * genmk.rb: Likewise.
6144 * include/grub/disk.h: Likewise.
6145 * include/grub/efi/api.h: Likewise.
6146 * include/grub/efi/efi.h: Likewise.
6147 * include/grub/efi/pe32.h: Likewise.
6148 * include/grub/elf.h: Likewise.
6149 * include/grub/fs.h: Likewise.
6150 * include/grub/i386/at_keyboard.h: Likewise.
6151 * include/grub/i386/pc/memory.h: Likewise.
6152 * include/grub/i386/pc/vbe.h: Likewise.
6153 * include/grub/i386/pci.h: Likewise.
6154 * include/grub/i386/tsc.h: Likewise.
6155 * include/grub/ieee1275/ieee1275.h: Likewise.
6156 * include/grub/ntfs.h: Likewise.
6157 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
6158 * include/grub/sparc64/libgcc.h: Likewise.
6159 * include/grub/symbol.h: Likewise.
6160 * include/grub/types.h: Likewise.
6161 * include/multiboot2.h: Likewise.
6162 * io/gzio.c: Likewise.
6163 * kern/device.c: Likewise.
6164 * kern/disk.c: Likewise.
6165 * kern/efi/efi.c: Likewise.
6166 * kern/efi/mm.c: Likewise.
6167 * kern/elf.c: Likewise.
6168 * kern/file.c: Likewise.
6169 * kern/i386/dl.c: Likewise.
6170 * kern/i386/pc/init.c: Likewise.
6171 * kern/i386/pc/startup.S: Likewise.
6172 * kern/ieee1275/ieee1275.c: Likewise.
6173 * kern/ieee1275/init.c: Likewise.
6174 * kern/main.c: Likewise.
6175 * kern/mm.c: Likewise.
6176 * kern/powerpc/dl.c: Likewise.
6177 * kern/sparc64/dl.c: Likewise.
6178 * kern/x86_64/dl.c: Likewise.
6179 * lib/hexdump.c: Likewise.
6180 * loader/efi/appleloader.c: Likewise.
6181 * loader/i386/ieee1275/linux.c: Likewise.
6182 * loader/i386/pc/chainloader.c: Likewise.
6183 * loader/i386/pc/linux.c: Likewise.
6184 * loader/i386/pc/multiboot2.c: Likewise.
6185 * loader/ieee1275/multiboot2.c: Likewise.
6186 * loader/multiboot2.c: Likewise.
6187 * loader/multiboot_loader.c: Likewise.
6188 * loader/powerpc/ieee1275/linux.c: Likewise.
6189 * normal/completion.c: Likewise.
6190 * normal/menu_entry.c: Likewise.
6191 * partmap/apple.c: Likewise.
6192 * util/grub.d/10_hurd.in: Likewise.
6193 * util/hostfs.c: Likewise.
6194 * video/readers/png.c: Likewise.
6195
6196 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
6197
6198 * include/grub/misc.h (GNUC_PREREQ): New macro.
6199 (ATTRIBUTE_ERROR): New macro.
6200 * include/grub/list.h (grub_bad_type_cast_real): Use
6201 ATTRIBUTE_ERROR.
6202
6203 2010-01-03 Carles Pina i Estany <carles@pina.cat>
6204
6205 * normal/menu_text.c (print_message): Change messages.
6206
6207 2010-01-03 Carles Pina i Estany <carles@pina.cat>
6208
6209 * normal/menu_entry.c (store_completion): Gettextizze.
6210
6211 2010-01-03 Carles Pina i Estany <carles@pina.cat>
6212
6213 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
6214
6215 2010-01-03 Carles Pina i Estany <carles@pina.cat>
6216
6217 * po/POTFILES: Sort correctly.
6218
6219 2010-01-03 Carles Pina i Estany <carles@pina.cat>
6220
6221 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
6222 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
6223 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
6224 full stop.
6225 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
6226 summary. Gettextizze the strings.
6227 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
6228 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
6229 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
6230 full stop.
6231 (GRUB_MOD_INIT): Remove command name from summary.
6232 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
6233 summary.
6234 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
6235 * term/i386/pc/serial.c (options): Add full stops.
6236 (GRUB_MOD_INIT): Remove command name from the summary.
6237
6238 2010-01-03 Carles Pina i Estany <carles@pina.cat>
6239
6240 * commands/acpi.c: Gettextizze help strings and/or options. Include
6241 `grub/i18n.h' if needed.
6242 * commands/blocklist.c: Likewise.
6243 * commands/boot.c: Likewise.
6244 * commands/cat.c: Likewise.
6245 * commands/cmp.c: Likewise.
6246 * commands/configfile.c: Likewise.
6247 * commands/crc.c: Likewise.
6248 * commands/date.c: Likewise.
6249 * commands/echo.c: Likewise.
6250 * commands/efi/fixvideo.c: Likewise.
6251 * commands/efi/loadbios.c: Likewise.
6252 * commands/gptsync.c: Likewise.
6253 * commands/halt.c: Likewise.
6254 * commands/handler.c: Likewise.
6255 * commands/hdparm.c: Likewise.
6256 * commands/hexdump.c: Likewise.
6257 * commands/i386/cpuid.c: Likewise.
6258 * commands/i386/pc/drivemap.c: Likewise.
6259 * commands/i386/pc/halt.c: Likewise.
6260 * commands/i386/pc/pxecmd.c: Likewise.
6261 * commands/i386/pc/vbeinfo.c: Likewise.
6262 * commands/i386/pc/vbetest.c: Likewise.
6263 * commands/ieee1275/suspend.c: Likewise.
6264 * commands/keystatus.c: Likewise.
6265 * commands/loadenv.c: Likewise.
6266 * commands/ls.c: Likewise.
6267 * commands/lsmmap.c: Likewise.
6268 * commands/lspci.c: Likewise.
6269 * commands/memrw.c: Likewise.
6270 * commands/minicmd.c: Likewise.
6271 * commands/parttool.c: Likewise.
6272 * commands/password.c: Likewise.
6273 * commands/probe.c: Likewise.
6274 * commands/read.c: Likewise.
6275 * commands/reboot.c: Likewise.
6276 * commands/search.c: Likewise.
6277 * commands/sleep.c: Likewise.
6278 * commands/test.c: Likewise.
6279 * commands/true.c: Likewise.
6280 * commands/usbtest.c: Likewise.
6281 * commands/videotest.c: Likewise.
6282 * commands/xnu_uuid.c: Likewise.
6283 * disk/loopback.c: Likewise.
6284 * hello/hello.c: Likewise.
6285 * loader/i386/bsd.c: Likewise.
6286 * term/i386/pc/serial.c: Likewise.
6287 * po/POTFILES: Add new files.
6288
6289 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
6290
6291 * term/i386/pc/at_keyboard.c
6292 (keyboard_controller_wait_untill_ready): Rename to ...
6293 (keyboard_controller_wait_until_ready): ... this. Update all users.
6294
6295 2010-01-01 Carles Pina i Estany <carles@pina.cat>
6296
6297 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
6298 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
6299 string using string width.
6300 * normal/menu_text.c (grub_print_message_indented): Use
6301 grub_print_spaces and not print_spaces.
6302 (print_timeout): Likewise.
6303 (print_spaces): Move to...
6304 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
6305
6306 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
6307
6308 Import from Gnulib.
6309
6310 * gnulib/getdelim.c: New file.
6311 * gnulib/getline.c: Likewise.
6312
6313 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
6314
6315 * include/grub/list.h (grub_assert_fail): Removed.
6316 (grub_bad_type_cast_real): New function.
6317 (grub_bad_type_cast): New macro.
6318 (GRUB_AS_LIST): Use grub_bad_type_cast.
6319 (GRUB_AS_LIST_P): Likewise.
6320 (GRUB_AS_NAMED_LIST): Likewise.
6321 (GRUB_AS_NAMED_LIST_P): Likewise.
6322 (GRUB_AS_PRIO_LIST): Likewise.
6323 (GRUB_AS_PRIO_LIST_P): Likewise.
6324 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
6325
6326 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
6327
6328 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
6329 Fix syntax error.
6330
6331 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
6332
6333 * configure.ac: Check for TARGET_CFLAGS initialization before we
6334 initialize it ourselves (sigh).
6335 Move a few modifications to TARGET_CFLAGS to be unconditional
6336 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
6337 eh_frame)
6338
6339 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
6340 * term/i386/pc/at_keyboard.c
6341 (keyboard_controller_wait_untill_ready): Likewise.
6342 (keyboard_controller_led): Rename `led_status' paramter to avoid
6343 name conflict.
6344
6345 2009-12-28 Carles Pina i Estany <carles@pina.cat>
6346
6347 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
6348 quotes.
6349
6350 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6351
6352 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
6353
6354 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6355
6356 * normal/menu_text.c (grub_print_message_indented): Prevent
6357 past-the-end-of-array dereference.
6358
6359 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
6360
6361 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
6362 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
6363
6364 2009-12-27 Carles Pina i Estany <carles@pina.cat>
6365
6366 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
6367 * normal/main.c (grub_normal_read_line): Remove a space from the
6368 default prompt.
6369
6370 2009-12-27 Carles Pina i Estany <carles@pina.cat>
6371
6372 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
6373 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6374 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
6375 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
6376 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6377 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6378 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
6379
6380 2009-12-26 Carles Pina i Estany <carles@pina.cat>
6381
6382 * video/readers/jpeg.c (cmd): Declare.
6383 (grub_cmd_jpegtest): Use `grub_command_t' type.
6384 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
6385 Assign to `cmd'.
6386 (GRUB_MOD_FINI): Use `cmd' to unregister.
6387 * video/readers/png.c (cmd): Declare.
6388 (grub_cmd_pngtest): Use `grub_command_t' type.
6389 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
6390 Assign to `cmd'.
6391 (GRUB_MOD_FINI): Use `cmd' to unregister.
6392 * video/readers/tga.c (cmd): Declare.
6393 (grub_cmd_tgatest): Use `grub_command_t' type.
6394 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
6395 Assign to `cmd'.
6396 (GRUB_MOD_FINI): Use `cmd' to unregister.
6397
6398 2009-12-26 Carles Pina i Estany <carles@pina.cat>
6399
6400 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
6401 stops.
6402 * kern/corecmd.c (grub_register_core_commands): Likewise.
6403 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
6404 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
6405 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
6406 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6407 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
6408 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
6409 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
6410 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
6411 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6412 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
6413 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
6414 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
6415 * normal/handler.c (insert_handler): Likewise.
6416 * normal/main.c (GRUB_MOD_INIT): Likewise.
6417 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
6418
6419 2009-12-26 Carles Pina i Estany <carles@pina.cat>
6420
6421 * commands/help.c (grub_cmd_help): Print the command name before the
6422 summary.
6423 (GRUB_MOD_INIT): Remove command name from the summary.
6424 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
6425 string as summary.
6426 * lib/arg.c (find_long): Print the command name before the summary.
6427 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
6428 summary.
6429 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
6430 * commands/cat.c (GRUB_MOD_INIT): Likewise.
6431 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
6432 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
6433 * commands/crc.c (GRUB_MOD_INIT): Likewise.
6434 * commands/date.c (GRUB_MOD_INIT): Likewise.
6435 * commands/echo.c (GRUB_MOD_INIT): Likewise.
6436 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
6437 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
6438 * commands/handler.c (GRUB_MOD_INIT): Likewise.
6439 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
6440 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
6441 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
6442 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
6443 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
6444 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
6445 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
6446 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
6447 * commands/ls.c (GRUB_MOD_INIT): Likewise.
6448 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
6449 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
6450 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
6451 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
6452 * commands/password.c (GRUB_MOD_INIT): Likewise.
6453 * commands/probe.c (GRUB_MOD_INIT): Likewise.
6454 * commands/read.c (GRUB_MOD_INIT): Likewise.
6455 * commands/search.c (GRUB_MOD_INIT): Likewise.
6456 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
6457 * commands/test.c (GRUB_MOD_INIT): Likewise.
6458 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
6459 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
6460 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
6461 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
6462 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
6463 * lib/arg.c (GRUB_MOD_INIT): Likewise.
6464 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
6465 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
6466 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
6467 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
6468 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
6469 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
6470 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
6471 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
6472
6473 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6474
6475 Use search command for preliminar UUID search.
6476
6477 * commands/search.c: Split into ...
6478 * commands/search_wrap.c: ...this
6479 * commands/search.c: ...and this.
6480 * commands/search_file.c: New file.
6481 * commands/search_label.c: New file.
6482 * commands/search_uuid.c: New file.
6483 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
6484 Add commands/search_wrap.c, commands/search_file.c,
6485 commands/search_label.c and commands/search_uuid.c.
6486 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
6487 (search_mod_SOURCES): Set to commands/search_wrap.c.
6488 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
6489 search_label.mod.
6490 (search_fs_file_mod_SOURCES): New variable.
6491 (search_fs_file_mod_CFLAGS): Likewise.
6492 (search_fs_file_mod_LDFLAGS): Likewise.
6493 (search_label_mod_SOURCES): Likewise.
6494 (search_label_mod_CFLAGS): Likewise.
6495 (search_label_mod_LDFLAGS): Likewise.
6496 (search_fs_uuid_mod_SOURCES): New variable.
6497 (search_fs_uuid_mod_CFLAGS): Likewise.
6498 (search_fs_uuid_mod_LDFLAGS): Likewise.
6499 (fs_file_mod_SOURCES): Removed.
6500 (fs_file_mod_CFLAGS): Likewise.
6501 (fs_file_mod_LDFLAGS): Likewise.
6502 (fs_uuid_mod_SOURCES): Removed.
6503 (fs_uuid_mod_CFLAGS): Likewise.
6504 (fs_uuid_mod_LDFLAGS): Likewise.
6505 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
6506 Set to util/grub-install.in.
6507 * disk/fs_file.c: Removed.
6508 * disk/fs_uuid.c: Likewise.
6509 * include/grub/search.h: New file.
6510 * util/grub-install.in: Handle sparc64.
6511 Create and use load.cfg.
6512 * util/sparc64/ieee1275/grub-install.in: Removed.
6513
6514 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6515
6516 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
6517 Ignore return status if CF is cleared.
6518 (grub_biosdisk_get_diskinfo_standard): Likewise.
6519
6520 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
6521
6522 * term/i386/pc/at_keyboard.c
6523 (keyboard_controller_wait_untill_ready): New function.
6524 (grub_keyboard_controller_write, grub_keyboard_controller_read)
6525 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
6526 for keyboard polling, rather than duplicate the same loop. This
6527 saves a few bytes in code size.
6528
6529 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
6530
6531 Support for (pxe[:server[:gateway]]) syntax and
6532 use environment variable for PXE.
6533
6534 * commands/i386/pc/pxecmd.c (options): Removed.
6535 (print_ip): Removed.
6536 (grub_cmd_pxe): Removed
6537 (grub_cmd_pxe_unload): New function.
6538 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
6539 (grub_pxe_your_ip): Made static.
6540 (grub_pxe_default_server_ip): Likewise.
6541 (grub_pxe_default_gateway_ip): Likewise.
6542 (grub_pxe_blksize): Likewise.
6543 (parse_ip): New function.
6544 (grub_pxe_open): Support server and gateway specification.
6545 (grub_pxe_close): Free disk->data.
6546 (grub_pxefs_open): Use disk->data.
6547 (grub_pxefs_read): Likewise.
6548 (grub_env_write_readonly): New function.
6549 (set_mac_env): Likewise.
6550 (set_env_limn_ro): Likewise.
6551 (parse_dhcp_vendor): Likewise.
6552 (grub_pxe_detect): Set the environment variables.
6553 (set_ip_env): New function.
6554 (write_ip_env): Likewise.
6555 (grub_env_write_pxe_default_server): Likewise.
6556 (grub_env_write_pxe_default_gateway): Likewise.
6557 (grub_env_write_pxe_blocksize): Likewise.
6558 (GRUB_MOD_INIT(pxe)): Set environment variables.
6559 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
6560 (grub_pxe_mac_addr_t): ... this. All users updated.
6561 (grub_pxe_your_ip): Removed.
6562 (grub_pxe_server_ip): Likewise.
6563 (grub_pxe_gateway_ip): Likewise.
6564 (grub_pxe_blksize): Likewise.
6565
6566 2009-12-25 Carles Pina i Estany <carles@pina.cat>
6567
6568 * commands/help.c: Include `<grub/i18n.h>'.
6569 (grub_cmd_help): Gettextizze.
6570 (GRUB_MOD_INIT): Likewise.
6571 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
6572 (GRUB_MOD_INIT): Gettextizze.
6573 * commands/search.c: Include `<grub/i18n.h>'.
6574 (options): Gettextizze.
6575 (GRUB_MOD_INIT): Gettextizze.
6576 * lib/arg.c: Include `<grub/i18n.h>'.
6577 (help_options): Gettextizze.
6578 (find_long): Likewise.
6579 (grub_arg_show_help): Likewise.
6580 * normal/dyncmd.c: Include `<grub/i18n.h>'.
6581 (read_command_list): Gettextizze.
6582 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
6583 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
6584
6585 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
6586
6587 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
6588 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
6589 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
6590 (led_status): New variable.
6591 (keyboard_controller_led): New function.
6592 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
6593 update led status for caps lock, num lock and scroll lock.
6594
6595 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
6596
6597 * util/hostdisk.c (open_device): Fix a comment.
6598
6599 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6600
6601 * util/grub-install.in (host_os): New variable.
6602 * util/i386/efi/grub-install.in (host_os): Likewise.
6603
6604 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6605
6606 * util/mkisofs/write.c (padblock_write): Abort when given an
6607 excedingly large embed image, instead of silently truncating it.
6608
6609 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6610
6611 * include/multiboot.h: Indentation fixes.
6612
6613 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6614
6615 * include/multiboot.h (struct multiboot_aout_symbol_table)
6616 (struct multiboot_elf_section_header_table): New structure
6617 declarations (stolen from GRUB Legacy).
6618 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
6619 table information.
6620
6621 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
6622 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
6623 type aliases.
6624
6625 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6626
6627 * include/multiboot.h: Make comments src2texi-friendly.
6628
6629 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6630
6631 For consistency with [multiboot]/docs/boot.S.
6632
6633 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
6634 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
6635 (MULTIBOOT_MAGIC2): Rename from this ...
6636 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
6637
6638 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
6639
6640 * include/multiboot.h: Remove `<grub/types.h>'.
6641 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
6642 types. Update all users.
6643
6644 2009-12-25 Carles Pina i Estany <carles@pina.cat>
6645
6646 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
6647 `couldn't' and `can not' by `cannot'.
6648 * commands/i386/pc/drivemap.c: Likewise.
6649 * disk/ata.c: Likewise.
6650 * disk/ieee1275/nand.c: Likewise.
6651 * fs/affs.c: Likewise.
6652 * fs/fat.c: Likewise.
6653 * fs/hfs.c: Likewise.
6654 * fs/hfsplus.c: Likewise.
6655 * fs/iso9660.c: Likewise.
6656 * fs/jfs.c: Likewise.
6657 * fs/minix.c: Likewise.
6658 * fs/reiserfs.c: Likewise.
6659 * fs/sfs.c: Likewise.
6660 * fs/udf.c: Likewise.
6661 * fs/ufs.c: Likewise.
6662 * fs/xfs.c: Likewise.
6663 * loader/powerpc/ieee1275/linux.c: Likewise.
6664 * loader/sparc64/ieee1275/linux.c: Likewise.
6665 * util/grub-probe.c: Likewise.
6666 * util/misc.c: Likewise.
6667
6668 2009-12-24 Carles Pina i Estany <carles@pina.cat>
6669
6670 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
6671 grub_errno calls.
6672 * commands/acpi.c: Likewise.
6673 * commands/blocklist.c: Likewise.
6674 * commands/efi/loadbios.c: Likewise.
6675 * commands/i386/pc/drivemap.c: Likewise.
6676 * commands/loadenv.c: Likewise.
6677 * commands/memrw.c: Likewise.
6678 * commands/password.c: Likewise.
6679 * commands/videotest.c: Likewise.
6680 * disk/ata.c: Likewise.
6681 * disk/ata_pthru.c: Likewise.
6682 * disk/dmraid_nvidia.c: Likewise.
6683 * disk/ieee1275/nand.c: Likewise.
6684 * disk/ieee1275/ofdisk.c: Likewise.
6685 * disk/loopback.c: Likewise.
6686 * disk/lvm.c: Likewise.
6687 * disk/mdraid_linux.c: Likewise.
6688 * disk/raid.c: Likewise.
6689 * disk/raid6_recover.c: Likewise.
6690 * disk/scsi.c: Likewise.
6691 * efiemu/main.c: Likewise.
6692 * efiemu/mm.c: Likewise.
6693 * efiemu/pnvram.c: Likewise.
6694 * efiemu/symbols.c: Likewise.
6695 * font/font.c: Likewise.
6696 * fs/cpio.c: Likewise.
6697 * fs/hfsplus.c: Likewise.
6698 * fs/iso9660.c: Likewise.
6699 * fs/jfs.c: Likewise.
6700 * fs/minix.c: Likewise.
6701 * fs/ntfs.c: Likewise.
6702 * fs/ntfscomp.c: Likewise.
6703 * fs/reiserfs.c: Likewise.
6704 * fs/ufs.c: Likewise.
6705 * fs/xfs.c: Likewise.
6706 * gettext/gettext.c: Likewise.
6707 * include/grub/auth.h: Likewise.
6708 * kern/elf.c: Likewise.
6709 * kern/file.c: Likewise.
6710 * kern/ieee1275/init.c: Likewise.
6711 * kern/ieee1275/mmap.c: Likewise.
6712 * kern/ieee1275/openfw.c: Likewise.
6713 * kern/powerpc/dl.c: Likewise.
6714 * kern/sparc64/dl.c: Likewise.
6715 * lib/arg.c: Likewise.
6716 * loader/i386/bsd.c: Likewise.
6717 * loader/i386/bsdXX.c: Likewise.
6718 * loader/i386/efi/linux.c: Likewise.
6719 * loader/i386/efi/xnu.c: Likewise.
6720 * loader/i386/ieee1275/linux.c: Likewise.
6721 * loader/i386/linux.c: Likewise.
6722 * loader/i386/multiboot.c: Likewise.
6723 * loader/i386/pc/linux.c: Likewise.
6724 * loader/i386/pc/multiboot2.c: Likewise.
6725 * loader/i386/xnu.c: Likewise.
6726 * loader/ieee1275/multiboot2.c: Likewise.
6727 * loader/macho.c: Likewise.
6728 * loader/machoXX.c: Likewise.
6729 * loader/multiboot2.c: Likewise.
6730 * loader/multiboot_loader.c: Likewise.
6731 * loader/powerpc/ieee1275/linux.c: Likewise.
6732 * loader/sparc64/ieee1275/linux.c: Likewise.
6733 * loader/xnu.c: Likewise.
6734 * loader/xnu_resume.c: Likewise.
6735 * mmap/i386/pc/mmap.c: Likewise.
6736 * normal/menu_viewer.c: Likewise.
6737 * partmap/acorn.c: Likewise.
6738 * partmap/amiga.c: Likewise.
6739 * partmap/apple.c: Likewise.
6740 * script/lexer.c: Likewise.
6741 * term/gfxterm.c: Likewise.
6742 * term/i386/pc/serial.c: Likewise.
6743 * term/i386/pc/vga.c: Likewise.
6744 * term/ieee1275/ofconsole.c: Likewise.
6745 * term/terminfo.c: Likewise.
6746 * video/bitmap.c: Likewise.
6747 * video/efi_gop.c: Likewise.
6748 * video/efi_uga.c: Likewise.
6749 * video/fb/video_fb.c: Likewise.
6750 * video/i386/pc/vbe.c: Likewise.
6751 * video/readers/tga.c: Likewise.
6752 * video/video.c: Likewise.
6753
6754 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
6755
6756 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
6757 * commands/lspci.c: Likewise.
6758 * commands/probe.c: Likewise.
6759 * commands/xnu_uuid.c: Likewise.
6760 * conf/i386-coreboot.rmk: Likewise.
6761 * conf/i386-efi.rmk: Likewise.
6762 * conf/i386-ieee1275.rmk: Likewise.
6763 * conf/i386-pc.rmk: Likewise.
6764 * conf/powerpc-ieee1275.rmk: Likewise.
6765 * conf/sparc64-ieee1275.rmk: Likewise.
6766 * conf/x86_64-efi.rmk: Likewise.
6767 * fs/i386/pc/pxe.c: Likewise.
6768 * gettext/gettext.c: Likewise.
6769 * include/grub/efi/graphics_output.h: Likewise.
6770 * include/grub/i386/pc/memory.h: Likewise.
6771 * kern/env.c: Likewise.
6772 * kern/i386/qemu/startup.S: Likewise.
6773 * lib/i386/pc/biosnum.c: Likewise.
6774 * lib/i386/relocator.c: Likewise.
6775 * lib/i386/relocator_asm.S: Likewise.
6776 * lib/relocator.c: Likewise.
6777 * loader/i386/bsd.c: Likewise.
6778 * loader/i386/multiboot.c: Likewise.
6779 * loader/i386/pc/chainloader.c: Likewise.
6780 * loader/i386/xnu.c: Likewise.
6781 * loader/xnu.c: Likewise.
6782 * normal/main.c: Likewise.
6783 * normal/menu_text.c: Likewise.
6784 * util/getroot.c: Likewise.
6785 * util/grub-mkconfig_lib.in: Likewise.
6786 * util/grub.d/00_header.in: Likewise.
6787 * util/i386/pc/grub-mkimage.c: Likewise.
6788 * util/mkisofs/eltorito.c: Likewise.
6789 * util/mkisofs/exclude.h: Likewise.
6790 * util/mkisofs/hash.c: Likewise.
6791 * util/mkisofs/iso9660.h: Likewise.
6792 * util/mkisofs/joliet.c: Likewise.
6793 * util/mkisofs/mkisofs.c: Likewise.
6794 * util/mkisofs/mkisofs.h: Likewise.
6795 * util/mkisofs/multi.c: Likewise.
6796 * util/mkisofs/name.c: Likewise.
6797 * util/mkisofs/rock.c: Likewise.
6798 * util/mkisofs/tree.c: Likewise.
6799 * util/mkisofs/write.c: Likewise.
6800 * video/efi_gop.c: Likewise.
6801
6802 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
6803
6804 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
6805 size counting.
6806
6807 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6808
6809 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
6810 * genmk.rb (class SCRIPT): Modify the target file instead of source.
6811
6812 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6813
6814 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
6815 (GRUB_MOD_INIT(memrw)): Update help line.
6816
6817 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6818
6819 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
6820 Use grub_extcmd_t. All users updated.
6821 (options): New variable.
6822 (grub_cmd_read): Restructure for readability. Support "-v" option.
6823 (grub_cmd_write): Restructure for readability.
6824
6825 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6826
6827 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
6828
6829 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6830
6831 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
6832 with the actual contents of the correspondending make variable.
6833 * util/grub-mkrescue.in (pkglib_DATA): New variable.
6834 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
6835 specifying `*.lst' and `efiemu??.o'
6836
6837 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6838
6839 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
6840 after function name.
6841 Noticed by Rene Engelhard <rene@debian.org>.
6842
6843 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6844
6845 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
6846 (options): New variable.
6847 (iospace): Likewise.
6848 (grub_lspci_iter): List IO spaces if "-i" was given.
6849 (grub_cmd_lspci): Parse options.
6850 (GRUB_MOD_INIT(lspci)): Use extcmd.
6851 (GRUB_MOD_FINI(lspci)): Likewise.
6852
6853 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
6854
6855 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
6856 `function' keyword.
6857 Patch by Tony Mancill <tmancill@debian.org>.
6858
6859 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
6860
6861 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
6862 (grub_uhci_portstatus): Likewise.
6863 (grub_uhci_portstatus): Add necessary delay.
6864 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
6865
6866 2009-12-21 Carles Pina i Estany <carles@pina.cat>
6867
6868 * commands/acpi.c (options): Fix capitalizations and/or full stops.
6869 (GRUB_MOD_INIT): Likewise.
6870 * commands/boot.c (GRUB_MOD_INIT): Likewise.
6871 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
6872 * commands/echo.c (options): Fix capitalizations and/or full stops.
6873 * commands/efi/loadbios.c (enable_rom_area): Likewise.
6874 (enable_rom_area): Likewise.
6875 (GRUB_MOD_INIT): Likewise.
6876 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
6877 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
6878 * commands/handler.c (GRUB_MOD_INIT): Likewise.
6879 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
6880 * commands/hexdump.c (options): Likewise.
6881 * commands/i386/cpuid.c (options): Likewise.
6882 (GRUB_MOD_INIT): Likewise.
6883 * commands/i386/pc/drivemap.c (options): Likewise.
6884 (GRUB_MOD_INIT): Likewise.
6885 * commands/i386/pc/halt (options): Likewise.
6886 (GRUB_MOD_INIT): Likewise.
6887 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
6888 * commands/i386/pc/pxecmd.c (options): Likewise.
6889 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
6890 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
6891 * commands/keystatus.c (options): Likewise.
6892 (GRUB_MOD_INIT): Likewise.
6893 * commands/loadenv.c (options): Likewise.
6894 * commands/ls.c (options): Likewise.
6895 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
6896 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
6897 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
6898 * commands/parttool.c (helpmsg): Likewise.
6899 * commands/probe.c (options): Likewise.
6900 * commands/read.c (GRUB_MOD_INIT): Likewise.
6901 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
6902 * commands/search.c (options): Likewise.
6903 * commands/sleep.c (options): Likewise.
6904 * commands/test.c (GRUB_MOD_INIT): Likewise.
6905 * commands/true.c (GRUB_MOD_INIT): Likewise.
6906 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
6907 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
6908 * lib/arg.c (help_options): Likewise.
6909 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
6910 `$(XGETTEXT)'.
6911 * po/POTFILES: Add `commands/loadenv.c'.
6912
6913 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
6914
6915 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
6916 instead of specifying them explicit.
6917
6918 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6919
6920 * NEWS: Add grub-probe support for GNU/Hurd.
6921
6922 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6923
6924 * NEWS: gettext was added after 1.97.
6925
6926 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6927
6928 * util/mkisofs/msdos_partition.h: New file (based on
6929 include/grub/msdos_partition.h).
6930 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
6931 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
6932 (ld_options, main): Recognize --protective-msdos-label.
6933 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
6934 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
6935 (padblock_write): If `use_protective_msdos_label' is set, patch a
6936 protective DOS-style label in the output image.
6937
6938 * util/grub-mkrescue.in: Use --protective-msdos-label.
6939
6940 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6941
6942 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
6943 boot.
6944
6945 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6946
6947 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
6948 variables.
6949 (ld_options, main): Recognize `--embedded-boot'.
6950 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
6951 declarations.
6952 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
6953 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
6954 (padblock_write): Likewise. Rewrite to support embedded boot image.
6955
6956 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
6957 for BIOS-based disk boot instead of only ElTorito.
6958
6959 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6960
6961 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
6962 build (not needed for bootstrap).
6963
6964 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6965
6966 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
6967 from i386-pc build (not needed for bootstrap).
6968 Rewrite a pair of strings.
6969
6970 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
6971
6972 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
6973
6974 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
6975
6976 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
6977
6978 2009-12-21 Andreas Born <futur.andy@googlemail.com>
6979
6980 * kern/env.c (grub_env_context_open): Mark exported variable for
6981 reexport.
6982
6983 2009-12-21 Andreas Born <futur.andy@googlemail.com>
6984
6985 * kern/env.c (grub_env_export): Create nonexistent variables before
6986 exporting.
6987
6988 2009-12-20 Carles Pina i Estany <carles@pina.cat>
6989
6990 * include/grub/auth.h: Include `<grub/i18n.h>'.
6991 (GRUB_GET_PASSWORD): Gettextizze string.
6992 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
6993 menu_text.c.
6994 (grub_utf8_to_ucs4_alloc): Fix indentation.
6995 (grub_print_ucs4): Likewise.
6996 (grub_getstringwidth): Likewise.
6997 (print_message_indented): New declaration.
6998 * normal/auth.c: Include `<grub/i18n.h>'.
6999 (grub_auth_check_authentication): Gettexttize string.
7000 * normal/cmdline.c: Include `<grub/i18n.h>'.
7001 (grub_cmdline_get): Gettextizze.
7002 * normal/color.c: Include `<grub/i18n.h>'.
7003 (grub_parse_color_name_pair): Gettexttize strings.
7004 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
7005 string (use `print_message_indented').
7006 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
7007 `include/grub/normal.h'.
7008 (print_message_indented): Renamed to ...
7009 (grub_print_message_indented): ... this. Remove `static' qualifer (now
7010 used in normal/main.c).
7011 (print_message): Use `grub_print_message_indented' instead of
7012 `print_message_indented'.
7013 (print_timeout): Likewise.
7014 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
7015 (grub_normal_print_device_info): Gettexttize strings.
7016 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
7017
7018 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7019
7020 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
7021 of arguments. Return number of tokens and not arguments. All users
7022 updated.
7023
7024 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7025
7026 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
7027 non-MSDOS paritions.
7028
7029 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
7030
7031 * include/grub/types.h (UNUSED): Removed since it conflicts with
7032 NetBSD headers. All users changed to direct __attribute__ ((unused)).
7033 Reported by Grégoire Sutre.
7034
7035 2009-12-19 Carles Pina i Estany <carles@pina.cat>
7036
7037 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
7038 (grub_print_ucs4_alloc): Likewise.
7039 (grub_getstringwidth): Likewise.
7040 * normal/main.c (grub_normal_init_page): Gettextize version string.
7041 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
7042 (getstringwidth): Renamed to ...
7043 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
7044 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
7045 (grub_print_ucs4): Remove `static' qualifer (now used in
7046 normal/main.c).
7047 * po/POTFILES: Add normal/main.c.
7048
7049 2009-12-19 Carles Pina i Estany <carles@pina.cat>
7050
7051 * normal/menu_text.c (STANDARD_MARGIN): New macro.
7052 (print_message_indented): Add `margin_left' and `margin_right'
7053 parameters.
7054 (print_message): Update `print_message_indented' calls. Adds '\n' to the
7055 strings.
7056 (print_timeout): Use `print_message_indented' to print the message.
7057 Deletes `second_stage' parameter.
7058 (run_menu): Update `print_timeout' calls.
7059
7060 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
7061
7062 Fix console palette on OpenFirmware.
7063
7064 * term/ieee1275/ofconsole.c (MAX): Removed.
7065 (colors): Redone based on VGA palette.
7066 (grub_ofconsole_setcolor): Discard brightness bit since only 8
7067 colors are supported.
7068 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
7069
7070 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
7071
7072 Fix potential EfiEmu double prepare.
7073
7074 * efiemu/main.c (prepared): New variable
7075 (grub_efiemu_unload): Set prepare to '0'.
7076 (grub_efiemu_prepare): Return if already prepared. Set prepared.
7077
7078 set_virtual_address_map support.
7079
7080 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
7081 prototype.
7082 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
7083 prototype.
7084 (grub_efiemu_crc32): Likewise.
7085 (grub_efiemu_crc64): Likewise.
7086 (grub_efiemu_set_virtual_address_map): Likewise.
7087 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
7088 New definition.
7089 (grub_autoefi_set_virtual_address_map): Likewise.
7090 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
7091 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
7092 Restructure flow to accomodate it.
7093 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
7094 (grub_efiemu_crc): Recompute CRC32.
7095 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
7096 (efiemu_ptv_relocated): ... this. Made global. All users updated.
7097 * efiemu/symbols.c (relocated_handle): New variable.
7098 (grub_efiemu_free_syms): Free relocated_handle.
7099 (grub_efiemu_alloc_syms): Allocate relocated_handle.
7100 (grub_efiemu_write_sym_markers): New function.
7101 (grub_efiemu_set_virtual_address_map): Likewise.
7102
7103 Newer XNU parameters.
7104
7105 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
7106 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
7107 (grub_xnu_fill_devicetree): New prototype.
7108 (grub_xnu_heap_real_start): New variable.
7109 * loader/xnu.c (get_name_ptr): New function.
7110 (grub_xnu_load_driver): Fill namelen and name.
7111
7112 64-bit xnu support.
7113
7114 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
7115 and 'loader/macho64.c'.
7116 * conf/i386-pc.rmk: Likewise.
7117 * conf/x86_64-efi.rmk: Likewise.
7118 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
7119 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
7120 * include/grub/macho.h (grub_macho_segment64): New structure.
7121 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
7122 (grub_macho_size32): ... to this.
7123 (grub_macho32_get_entry_point): Renamed from ...
7124 (grub_macho_get_entry_point32): ... to this.
7125 (grub_macho_contains_macho64): New prototype.
7126 (grub_macho_size64): Likewise.
7127 (grub_macho_get_entry_point64): Likewise.
7128 (grub_macho32_load): Renamed from ...
7129 (grub_macho_load32): ... to this.
7130 (grub_macho32_filesize): Renamed from ...
7131 (grub_macho_filesize32): ... to this.
7132 (grub_macho32_readfile): Renamed from ...
7133 (grub_macho_readfile32): ... to this.
7134 (grub_macho_filesize64): New prototype.
7135 (grub_macho_readfile64): Likewise.
7136 (grub_macho_parse32): Likewise.
7137 (grub_macho_parse64): Likewise.
7138 * loader/macho.c: Split into ...
7139 * loader/machoXX.c: ... and this. Replace 32 with XX.
7140 * loader/macho32.c: New file.
7141 * loader/macho64.c: Likewise.
7142 * loader/xnu.c (grub_xnu_is_64bit): New variable.
7143 (grub_cmd_xnu_kernel): Make 32-bit only.
7144 (grub_cmd_xnu_kernel64): New function.
7145 (grub_xnu_load_driver): Support Mach-O 64.
7146 (grub_cmd_xnu_mkext): Likewise.
7147 * util/grub.d/30_os-prober.in (osx_entry): New function.
7148 Generate entries for 64-bit boot too.
7149
7150 Eliminate ad-hoc tree format in XNU and EfiEmu.
7151
7152 * efiemu/main.c (grub_efiemu_prepare): Update comment.
7153 * efiemu/pnvram.c: Rewritten to use environment variables.
7154 All users updated.
7155
7156 Inline utf16_to_utf8.
7157
7158 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
7159 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
7160 All users updated.
7161 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
7162
7163 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
7164 * commands/usbtest.c (grub_usb_get_string): ... move here.
7165 (usb_print_str): Fix error handling.
7166 * include/grub/usb.h (grub_usb_get_string): Remove.
7167
7168 UTF-8 to UTF-16 transformation.
7169
7170 * conf/common.rmk (pkglib_MODULES): Add charset.mod
7171 (charset_mod_SOURCES): New variable.
7172 (charset_mod_CFLAGS): Likewise.
7173 (charset_mod_LDFLAGS): Likewise.
7174 * include/grub/utf.h: New file.
7175 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
7176
7177 Support for device properties.
7178
7179 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
7180 (grub_xnu_devprop_device_header): Likewise.
7181 (grub_xnu_devprop_device_descriptor): Likewise.
7182 (grub_xnu_devprop_add_device): New prototype.
7183 (grub_xnu_devprop_remove_device): Likewise.
7184 (grub_xnu_devprop_remove_property): Likewise.
7185 (grub_xnu_devprop_add_property_utf8): Likewise.
7186 (grub_xnu_devprop_add_property_utf16): Likewise.
7187 (grub_cpu_xnu_init): Likewise.
7188 (grub_cpu_xnu_fini): Likewise.
7189 (grub_cpu_xnu_unload): Likewise.
7190 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
7191 (property_descriptor): Likewise.
7192 (devices): New variable.
7193 (grub_xnu_devprop_remove_property): New function.
7194 (grub_xnu_devprop_add_device): Likewise.
7195 (grub_xnu_devprop_remove_device): Likewise.
7196 (grub_xnu_devprop_add_property): Likewise.
7197 (grub_xnu_devprop_add_property_utf8): Likewise.
7198 (grub_xnu_devprop_add_property_utf16): Likewise.
7199 (hextoval): Likewise.
7200 (grub_cpu_xnu_fill_devprop): Likewise.
7201 (grub_cmd_devprop_load): Likewise.
7202 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
7203 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
7204 (cmd_devprop_load): New variable.
7205 (grub_cpu_xnu_init): New function.
7206 (grub_cpu_xnu_fini): Likewise.
7207 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
7208 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
7209 (grub_cmd_xnu_devtree): Likewise.
7210 (hextoval): New function.
7211 (unescape): Likewise.
7212 (grub_xnu_fill_devicetree): Likewise.
7213
7214 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
7215 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
7216
7217 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
7218
7219 Workaround for broken ATI VBE.
7220
7221 * video/i386/pc/vbe.c (last_set_mode): New variable.
7222 (grub_vbe_set_video_mode): Set 'last_set_mode'.
7223 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
7224 (grub_video_vbe_setup): Don't check for reserved flag.
7225
7226 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
7227
7228 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
7229 the `find' command.
7230
7231 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
7232
7233 UUID support for HFS.
7234
7235 * fs/hfs.c (grub_hfs_uuid): New function.
7236 (grub_hfs_fs): New value .uuid.
7237 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
7238
7239 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
7240
7241 Fix a segfault with parsing unknown long options.
7242
7243 * util/grub-mkrelpath.c (options): Zero terminate it.
7244
7245 2009-12-13 Carles Pina i Estany <carles@pina.cat>
7246
7247 * include/grub/misc.h (grub_puts): New declaration.
7248 (grub_puts_): Likewise.
7249 * kern/misc.c (grub_puts): New definition.
7250 (grub_puts_): Likewise.
7251
7252 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
7253
7254 * util/grub-probe.c (probe): Improve error message.
7255
7256 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
7257
7258 * loader/i386/multiboot_elfxx.c
7259 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
7260 initialization.
7261
7262 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7263
7264 Relocator framework
7265
7266 * loader/i386/xnu_helper.S: Removed. All users updated.
7267 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
7268 (relocator_mod_SOURCES): New variable.
7269 (relocator_mod_CFLAGS): Likewise.
7270 (relocator_mod_LDFLAGS): Likewise.
7271 (relocator_mod_ASFLAGS): Likewise.
7272 * conf/x86_64.rmk: Likewise.
7273 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
7274 (grub_multiboot_payload_entry_offset): Likewise.
7275 (grub_multiboot_forward_relocator): Likewise.
7276 (grub_multiboot_forward_relocator_end): Likewise.
7277 (grub_multiboot_backward_relocator): Likewise.
7278 (grub_multiboot_backward_relocator_end): Likewise.
7279 (grub_multiboot_payload_eip): New variable.
7280 (grub_multiboot_payload_orig): Likewise.
7281 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
7282 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
7283 * include/grub/i386/memory.h
7284 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
7285 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
7286 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
7287 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
7288 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
7289 * include/grub/i386/relocator.h: New file.
7290 * include/grub/x86_64/relocator.h: Likewise.
7291 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
7292 (XNU_RELOCATOR): New macro.
7293 (grub_xnu_launcher_start): Remove.
7294 (grub_xnu_launcher_end): Likewise.
7295 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
7296 (grub_xnu_heap_real_start): Remove.
7297 (grub_xnu_heap_start): Change to void *. All users updated.
7298 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
7299 * lib/i386/relocator.c: New file.
7300 * lib/i386/relocator_asm.S: Likewise.
7301 * lib/i386/relocator_backward.S: Likewise.
7302 * lib/mips/relocator.c: Likewise.
7303 * lib/mips/relocator_asm.S: Likewise.
7304 * lib/relocator.c: Likewise.
7305 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
7306 (entry): Removed.
7307 (playground): Likewise.
7308 (grub_multiboot_payload_orig): New variable.
7309 (grub_multiboot_payload_dest): Likewise.
7310 (grub_multiboot_payload_size): Likewise.
7311 (grub_multiboot_payload_eip): Likewise.
7312 (grub_multiboot_payload_esp): Likewise.
7313 (grub_multiboot_boot): Use grub_relocator32_boot.
7314 (grub_multiboot_unload): Free relocators.
7315 (grub_multiboot): Setup stack. Use relocators.
7316 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
7317 (grub_multiboot_load_elfXX): Use relocators.
7318 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
7319 (grub_multiboot_payload_size): Likewise.
7320 (grub_multiboot_payload_dest): Likewise.
7321 (grub_multiboot_payload_entry_offset): Likewise.
7322 (grub_multiboot_forward_relocator): Likewise.
7323 (grub_multiboot_backward_relocator): Likewise.
7324 (grub_multiboot_real_boot): Likewise.
7325 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
7326 (grub_xnu_entry_point): Likewise.
7327 (grub_xnu_arg1): Likewise.
7328 (grub_xnu_stack): Likewise.
7329 (grub_xnu_launch): Removed.
7330 (grub_xnu_boot_resume): New function.
7331 (grub_xnu_boot): Use relocators.
7332 * loader/i386/xnu_helper.S: Removed.
7333 * loader/xnu.c (grub_xnu_heap_start): New variable.
7334 (grub_xnu_heap_size): Likewise.
7335 (grub_xnu_heap_malloc): Use relocators.
7336 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
7337
7338 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
7339
7340 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
7341 anything.
7342
7343 2009-12-13 Carles Pina i Estany <carles@pina.cat>
7344
7345 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
7346 GRUB_ERR_NONE before calling grub_env_set.
7347
7348 2009-12-12 Robert Millan <rmh@aybabtu.com>
7349
7350 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
7351 * genmk.rb (video): New variable.
7352 (CLEANFILES, VIDEOFILES): Add #{video}.
7353 (#{video}): New target rule.
7354 * genvideolist.sh: New file.
7355 * Makefile.in (pkglib_DATA): Add video.lst.
7356 (video.lst): New target rule.
7357 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
7358 `video.lst'.
7359 * util/grub.d/30_os-prober.in: Replace `vbe' with
7360 ${GRUB_VIDEO_BACKEND}.
7361
7362 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
7363
7364 * THANKS: Add David Miller.
7365
7366 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
7367
7368 libpciaccess support.
7369
7370 * Makefile.in (LIBPCIACCESS): New variable.
7371 (enable_grub_emu_pci): Likewise.
7372 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
7373 util/pci.c and commands/lspci.c.
7374 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
7375 * configure.ac (grub-emu-pci): New option.
7376 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
7377 (grub_pci_device_unmap_range): Likewise.
7378 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
7379 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
7380 (grub_pci_address_t) [!GRUB_UTIL]: New type.
7381 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
7382 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
7383 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
7384 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
7385 * include/grub/pciutils.h: New file.
7386 * util/pci.c: Likewise.
7387
7388 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
7389
7390 * util/misc.c: Don't include <errno.h> twice.
7391
7392 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
7393
7394 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
7395 name in an error message.
7396 (grub_biosdisk_rw): Likewise.
7397
7398 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7399
7400 Eliminate NTFS 4Gib barrier.
7401
7402 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
7403 (read_run_data): Likewise.
7404 (grub_ntfs_read_run_list): Likewise.
7405 (grub_ntfs_read_block): Likewise.
7406 (grub_ntfs_iterate_dir): Likewise.
7407 (read_mft): Likewise.
7408 (read_data): Likewise.
7409 Use COM_LOG_LEN.
7410 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
7411 to avoid 64-bit division
7412 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
7413 (grub_ntfs_rlst): Use grub_disk_addr_t.
7414
7415 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7416
7417 Eliminate grub-fstest 4Gib barrier.
7418
7419 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
7420 (read_file): Fix error reporting.
7421
7422 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7423
7424 Eliminate hexdump 4Gib barrier.
7425
7426 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
7427 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
7428
7429 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
7430
7431 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
7432 Fixes amarsh bug.
7433
7434 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
7435
7436 Remove miscellaneous files in distclean target.
7437
7438 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
7439
7440 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
7441
7442 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
7443 if they're already set. This resolves the conflict between my
7444 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
7445 fixing the --grub-probe option again.
7446 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
7447 change on 2009-10-06, so that we now once again source
7448 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
7449
7450 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
7451
7452 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
7453 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
7454 `util/devicemap.c'.
7455
7456 2009-12-08 Carles Pina i Estany <carles@pina.cat>
7457
7458 * include/grub/misc.h (grub_printf_): New declaration.
7459 * kern/misc.c (grub_printf_): New definition.
7460 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
7461 instead of `grub_printf' and `_'.
7462 * normal/menu_entry.c (store_completion): Likewise.
7463 (run): Likewise.
7464 (grub_menu_entry_run): Likewise.
7465 * normal/menu_text.c (grub_wait_after_message): Likewise.
7466 (notify_booting): Likewise.
7467 (notify_fallback): Likewise.
7468 (notify_execution_failure): Likewise.
7469
7470 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
7471
7472 * configure.ac: Check for vasprintf.
7473 * util/misc.c (asprintf): Move allocation from here ...
7474 (vasprintf): ... to here. New function.
7475 (xasprintf): New function.
7476 * include/grub/util/misc.h (vasprintf, xasprintf): Add
7477 prototypes.
7478 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
7479 * util/grub-mkfont.c (write_font): Likewise.
7480 * util/grub-probe.c (probe): Likewise.
7481 * util/hostdisk.c (make_device_name): Likewise.
7482
7483 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
7484
7485 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
7486 anything even prefixed with 'cdrom' as a cdrom.
7487
7488 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
7489
7490 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
7491 mount points.
7492
7493 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7494
7495 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
7496 grub_gettext_msg_list.
7497 (grub_gettext_gettranslation_from_position): Return const char *
7498 and not char *.
7499 (grub_gettext_translate): Add the translated strings into a list,
7500 returns from the list if existing there.
7501 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
7502 (grub_gettext_delete_list): Delete the list.
7503 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
7504 lang environment variable is changed.
7505 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
7506
7507 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
7508
7509 Rename kernel.mod to kernel.img.
7510
7511 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
7512 (kernel_mod_EXPORTS): Rename to ...
7513 (kernel_img_EXPORTS): ... this.
7514 (kernel_mod_SOURCES): Rename to ...
7515 (kernel_img_SOURCES): ... this.
7516 (kernel_mod_HEADERS): Rename to ...
7517 (kernel_img_HEADERS): ... this. All users updated.
7518 (kernel_mod_CFLAGS): Rename to ...
7519 (kernel_img_CFLAGS): ... this.
7520 (kernel_mod_ASFLAGS): Rename to ...
7521 (kernel_img_ASFLAGS): ... this.
7522 (kernel_mod_LDFLAGS): Rename to ...
7523 (kernel_img_LDFLAGS): ... this.
7524 * conf/x86_64-efi.rmk: Likewise.
7525 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
7526 (read_kernel_image): ... this. All users updated.
7527 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
7528
7529 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7530
7531 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
7532 (print_spaces): New function.
7533 (grub_print_ucs4): New function.
7534 (getstringwidth): New function.
7535 (print_message_indented): New function.
7536 (print_message): Gettexttize strings using print_message_indented.
7537 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
7538 width.
7539 (get_entry_number): Gettextize and uses dynamic terminal width.
7540 (notify_booting, notify_fallback, notify_execution_failure):
7541 Gettextize.
7542 * normal/menu_entry.c (store_completion): Cleanup the gettextized
7543 string.
7544 (run): Likewise.
7545 (grub_menu_entry_run): Likewise.
7546 * PO/POTFILES: Add normal/menu_entry.c.
7547
7548 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
7549
7550 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
7551
7552 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7553
7554 * util/grub-install.in: Install gettext .mo files.
7555 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
7556
7557 2009-12-05 Carles Pina i Estany <carles@pina.cat>
7558
7559 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
7560 grub_dprintf.
7561
7562 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
7563
7564 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
7565 non-firmware-dependant one in realmode.S takes precedence.
7566
7567 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
7568
7569 * commands/halt.c: Replace misc arch-specific headers with
7570 `<grub/misc.h>'.
7571 * commands/reboot.c: Likewise.
7572 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
7573 `<grub/misc.h>'.
7574 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
7575 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
7576 (kernel_img_SOURCES): ... to here.
7577
7578 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
7579 * include/grub/i386/pc/init.h: Likewise.
7580 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
7581 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
7582
7583 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
7584
7585 * include/grub/i386/halt.h: Remove.
7586 * include/grub/i386/reboot.h: Likewise.
7587
7588 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
7589
7590 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
7591
7592 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
7593 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
7594 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
7595 "progname.h"
7596 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
7597 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7598 (usage): Add missing comma in printf.
7599
7600 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
7601
7602 Use the same reboot approach on i386 coreboot and qemu as we do on
7603 BIOS.
7604
7605 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
7606 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
7607 * kern/i386/reboot.c: Remove.
7608 * include/grub/i386/reboot.h (grub_reboot): Export function.
7609 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
7610 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
7611 0xf000:0xfff0 instead of 0xffff:0x0000.
7612 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
7613 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
7614
7615 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
7616
7617 Fix $srcdir != $objdir build.
7618
7619 * Makefile.in (po/%.po): Rewrite as ...
7620 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
7621
7622 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
7623
7624 Fix GNU/Hurd grub-install crash.
7625 * util/grub-probe.c (probe): Try to access `path' only when it is not
7626 NULL.
7627
7628 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
7629
7630 Correct module naming.
7631
7632 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
7633 (GRUB_MOD_INIT(efi_uga)): ... to this
7634 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
7635 (GRUB_MOD_FINI(efi_uga)): ... to this
7636 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
7637 (GRUB_MOD_INIT(efi_gop)): ... to this
7638 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
7639 (GRUB_MOD_FINI(efi_gop)): ... to this
7640
7641 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
7642
7643 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
7644 translatable.
7645 (usage): Translate `arg' strings using gettext().
7646 Thanks to Jordi Mallach for the suggestion.
7647
7648 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
7649
7650 GOP support. Based on patch from Bean
7651 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
7652
7653 * video/efi_gop.c: New file.
7654 * include/grub/efi/graphics_output.h: Likewise.
7655 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
7656 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
7657 variables.
7658 * conf/x86_64-efi.rmk: Likewise.
7659
7660 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
7661
7662 Rename efi_fb to efi_uga.
7663
7664 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
7665 'efi_uga.mod'.
7666 (efi_fb_mod_SOURCES): Rename this ...
7667 (efi_uga_mod_SOURCES): ... to this.
7668 (efi_fb_mod_CFLAGS): Rename this ...
7669 (efi_uga_mod_CFLAGS): ... to this.
7670 (efi_fb_mod_LDFLAGS): Rename this ...
7671 (efi_uga_mod_LDFLAGS): ... to this.
7672 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
7673 'efi_uga.mod'.
7674 (efi_fb_mod_SOURCES): Rename this ...
7675 (efi_uga_mod_SOURCES): ... to this.
7676 (efi_fb_mod_CFLAGS): Rename this ...
7677 (efi_uga_mod_CFLAGS): ... to this.
7678 (efi_fb_mod_LDFLAGS): Rename this ...
7679 (efi_uga_mod_LDFLAGS): ... to this.
7680 * video/efi_fb.c: Move this ...
7681 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
7682
7683 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
7684
7685 * po/README: New file. Explain our PO file workflow.
7686
7687 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
7688
7689 * po/ChangeLog: Remove. Move relevant entries back to ...
7690 * ChangeLog: ... here.
7691 * po/ca.po: Remove (now handled by TLP).
7692 * po/id.po: Likewise.
7693 * po/zh_CN.po: Likewise.
7694 * Makefile.in (LINGUAS): Initialize in a way that supports
7695 empty set.
7696
7697 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
7698
7699 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
7700 reliing on po/LINGUAS.
7701 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
7702 (po/%.po): ... this.
7703
7704 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7705
7706 * util/i386/efi/grub-mkimage.c: Include "progname.h".
7707 (main): Use `program_name' instead of nonexistent `progname'.
7708
7709 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7710
7711 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7712 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
7713
7714 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
7715
7716 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
7717 commit.
7718 * conf/i386-efi.rmk: Likewise.
7719 * conf/i386-ieee1275.rmk: Likewise.
7720 * conf/powerpc-ieee1275.rmk: Likewise.
7721 * conf/sparc64-ieee1275.rmk: Likewise.
7722 * conf/x86_64-efi.rmk: Likewise.
7723
7724 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7725
7726 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
7727
7728 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
7729
7730 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
7731
7732 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
7733
7734 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
7735 (grub_mkdevicemap_SOURCES): New variable.
7736 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
7737 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
7738 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
7739 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
7740 (grub_mkdevicemap_SOURCES): Remove.
7741 * conf/i386-efi.rmk: Likewise.
7742 * conf/i386-ieee1275.rmk: Likewise.
7743 * conf/i386-pc.rmk: Likewise.
7744 * conf/powerpc-ieee1275.rmk: Likewise.
7745 * conf/sparc64-ieee1275.rmk: Likewise.
7746 * conf/x86_64-efi.rmk: Likewise.
7747 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
7748 (usage): Fix strings to use `program_name'.
7749 (main): Initialize gettext.
7750 * util/grub-editenv.c: Likewise.
7751 * util/grub-emu.c: Likewise.
7752 * util/grub-fstest.c: Likewise.
7753 * util/grub-mkdevicemap.c: Likewise.
7754 * util/grub-mkfont.c: Likewise.
7755 * util/grub-mkrelpath.c: Likewise.
7756 * util/grub-pe2elf.c: Likewise.
7757 * util/grub-probe.c: Likewise.
7758 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
7759 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
7760 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7761
7762 * util/misc.c: Include `"progname.h"'.
7763 (progname): Remove variable.
7764 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
7765
7766 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
7767
7768 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
7769 printf and print a newline after the menuentry header line.
7770 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7771
7772 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
7773
7774 autoconf >= 2.60 support $(localedir).
7775
7776 * INSTALL: Note that autoconf 2.60 is required.
7777 * configure.ac (AC_PREREQ): Bump to 2.60.
7778 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
7779 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
7780
7781 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
7782
7783 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
7784 aclocal is run.
7785
7786 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
7787
7788 * normal/main.c (grub_normal_read_line): Fix off-by-one
7789 buffer overflow.
7790
7791 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
7792
7793 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
7794 "parser.grub" in grub_command_execute() call.
7795
7796 2009-11-24 Carles Pina i Estany <carles@pina.cat>
7797
7798 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
7799 * conf/i386-efi.rmk: Likewise.
7800 * conf/i386-ieee1275.rmk: Likewise.
7801 * conf/i386-pc.rmk: Likewise.
7802 * conf/powerpc-ieee1275.rmk: Likewise.
7803 * conf/sparc64-ieee1275.rmk: Likewise.
7804 * conf/x86_64-efi.rmk: Likewise.
7805 * gettext/gettex.c: Include <grub/i18n.h>.
7806 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
7807 here ...
7808 * include/grub/i18n.h: ... to here
7809 * include/grub/i18n.h: ... to here.
7810 * kern/misc.c: Include <grub/i18n.h>
7811 (grub_gettext_dummy): Move above user.
7812
7813 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7814
7815 * util/Makefile.in (install-local): Convert a `for' into a normal
7816 shell expansion.
7817
7818 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
7819
7820 * autogen.sh: Add automake call.
7821 * config.guess: Remove.
7822 * config.sub: Likewise.
7823 * install-sh: Likewise.
7824
7825 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7826
7827 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
7828
7829 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7830
7831 * util/Makefile.in (install-local): Convert a make `$(foreach)'
7832 function to a normal shell `for'.
7833
7834 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7835
7836 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
7837
7838 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7839
7840 * util/grub-mkrelpath.c: New file.
7841 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
7842 (grub_mkrelpath_SOURCES): New variable.
7843 * include/grub/util/misc.h: New function prototype.
7844 * util/misc.c (make_system_path_relative_to_its_root): New function.
7845
7846 * util/grub-mkconfig_lib.in (bindir): New variable.
7847 (grub_mkrelpath): Likewise.
7848 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
7849
7850 * util/probe.c (probe): Make the file path relative to its root.
7851 Change a info message to use the GRUB path. Enable again the
7852 check if we can read the file with GRUB facilities.
7853
7854 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
7855 to its root.
7856
7857 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7858
7859 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
7860 platform.
7861
7862 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7863
7864 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
7865 strncmp().
7866
7867 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
7868
7869 * util/getroot.c (grub_util_is_dmraid): New function.
7870 (grub_util_get_dev_abstraction): Treat dmraid and multipath
7871 devices as normal ones, not as LVM.
7872
7873 2009-11-23 Carles Pina i Estany <carles@pina.cat>
7874
7875 * conf/common.rmk: Add grub-gettext_lib target and updates
7876 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
7877 LDFLAGS.
7878 * gettext/gettext.c: New file. (Reads mo files).
7879 * include/grub/file.h (grub_file_pread): New prototype.
7880 * include/grub/i18n.h (_): New prototype.
7881 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
7882 prototypes.
7883 * kern/misc.c (grub_gettext_dummy): New function.
7884 * normal/menu_text.c: Include <grub/i18n.h>.
7885 * normal/menu_text.c (print_timeout): Gettexttize string.
7886 * normal/menu_text.c (print_message): Gettexttize string.
7887 * po/POTFILES: Add `normal/menu_text.c'.
7888 * po/ca.po: Add new translations.
7889 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
7890 gettext module and defines locale_dir and lang in grub.cfg.
7891 * NEWS: Add gettext support.
7892
7893 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7894
7895 * util/hostdisk.c: Include `<grub/i18n.h>'.
7896 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
7897 (make_device_name): Rewrite using asprintf.
7898 (convert_system_partition_to_system_disk): Replace 0 with NULL.
7899 (find_system_device): If a device is not found, generate one just
7900 by reusing the OS path name.
7901 (read_device_map): Make it permissible for device.map not to exist.
7902
7903 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7904
7905 * script/sh/execute.c: Move from here ...
7906 * script/execute.c: ... to here. Update all users.
7907 * script/sh/function.c: Move from here ...
7908 * script/function.c: ... to here. Update all users.
7909 * script/sh/lexer.c: Move from here ...
7910 * script/lexer.c: ... to here. Update all users.
7911 * script/sh/main.c: Move from here ...
7912 * script/main.c: ... to here. Update all users.
7913 * script/sh/parser.y: Move from here ...
7914 * script/parser.y: ... to here. Update all users.
7915 * script/sh/script.c: Move from here ...
7916 * script/script.c: ... to here. Update all users.
7917
7918 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7919
7920 * configure.ac: Detect all `emu' platforms. Define
7921 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
7922 --enable-grub-emu logic. Disable include/grub/machine
7923 symlink on `emu' platforms.
7924
7925 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
7926 * gensymlist.sh.in: Likewise.
7927
7928 * include/grub/i386/coreboot/machine.h: Remove file.
7929 * include/grub/i386/efi/machine.h: Likewise.
7930 * include/grub/i386/ieee1275/machine.h: Likewise.
7931 * include/grub/i386/pc/machine.h: Likewise.
7932 * include/grub/i386/qemu/machine.h: Likewise.
7933 * include/grub/powerpc/ieee1275/machine.h: Likewise.
7934 * include/grub/sparc64/ieee1275/machine.h: Likewise.
7935 * include/grub/x86_64/efi/machine.h: Likewise.
7936
7937 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
7938 * commands/halt.c: Likewise.
7939 * commands/reboot.c: Likewise.
7940 * include/grub/autoefi.h: Likewise.
7941 * include/grub/i386/at_keyboard.h: Likewise.
7942 * include/grub/i386/kernel.h: Likewise.
7943 * include/grub/i386/loader.h: Likewise.
7944 * include/grub/i386/pc/memory.h: Likewise.
7945 * kern/dl.c: Likewise.
7946 * kern/i386/coreboot/init.c: Likewise.
7947 * loader/i386/bsd.c: Likewise.
7948 * loader/i386/linux.c: Likewise.
7949 * loader/multiboot_loader.c: Likewise.
7950 * term/i386/pc/serial.c: Likewise.
7951 * term/usb_keyboard.c: Likewise.
7952
7953 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
7954 `<grub/machine/machine.h>'
7955 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
7956 * util/misc.c: Remove `<grub/machine/machine.h>' and
7957 `<grub/machine/time.h>'.
7958
7959 * Makefile.in (enable_grub_emu): Remove variable.
7960 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
7961
7962 * conf/any-emu.rmk: New file.
7963 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
7964 (grub_emu_init.c): Move from here ...
7965 * conf/any-emu.rmk: ... to here.
7966
7967 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
7968 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
7969 * conf/any-emu.rmk: ... to here.
7970
7971 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7972
7973 * include/grub/parser.h (grub_parser_register): Document need
7974 of `name' parameter.
7975 * normal/main.c (grub_normal_read_line): Simplify prompt string.
7976 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
7977 "sh" to "grub".
7978
7979 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7980
7981 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
7982 `$(XGETTEXT)'.
7983 * include/grub/i18n.h (N_): New macro.
7984 * util/mkisofs/mkisofs.h: Likewise.
7985 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
7986 around N_().
7987 (usage): Use gettext() to translate help strings when printing them.
7988
7989 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
7990
7991 Based on patch from Bean
7992 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
7993
7994 * video/efi_fb.c: New file.
7995 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
7996 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
7997 variables.
7998 * conf/x86_64-efi.rmk: Likewise.
7999
8000 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
8001
8002 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
8003 * util/i386/pc/grub-setup.c: Likewise.
8004
8005 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
8006
8007 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
8008 <hurd/fs.h>
8009 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
8010 file_get_storage_info to implement grub_guess_root_device.
8011
8012 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
8013
8014 * Makefile.in (target): Use make's builtin $(shell) function
8015 instead of calling directly $(SHELL) to create the locale directories,
8016 inside the $(foreach) function.
8017
8018 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
8019
8020 * util/grub-mkrescue.in: Print an error and usage if output option
8021 has not been given.
8022
8023 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
8024
8025 Patch from Loïc Minier <loic.minier@ubuntu.com>.
8026 * util/grub.d/30_os-prober.in: Cope with Linux entries where
8027 root and /boot are on different devices.
8028
8029 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
8030
8031 Fix build for srcdir != objdir.
8032
8033 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
8034 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
8035 $(srcdir).
8036 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
8037 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
8038 reference for input.
8039
8040 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
8041
8042 * util/grub-mkrescue.in: Use source directory direcly (without copiing
8043 or hardlinking it). Remove -J option, Joliet is not compatible with
8044 multiple source directories.
8045
8046 2009-11-21 Carles Pina i Estany <carles@pina.cat>
8047 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
8048
8049 * util/grub-mkrescue.in: Recognize `--override-directory' option.
8050 (process_input_dir): New function. Process an arbitrary input
8051 directory.
8052 Misc adjustments to support both "override mode" and system-wide mode.
8053
8054 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
8055
8056 * configure.ac (UNIFONT_BDF): Rename to ...
8057 (FONT_SOURCE): ... this. Update all users.
8058
8059 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
8060
8061 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
8062 to the list of unifont files to look for.
8063
8064 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
8065
8066 Patch from Joe Auricchio <jauricchio@gmail.com>
8067 * commands/minicmd.c (grub_mini_cmd_clear): New function.
8068 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
8069 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
8070
8071 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
8072
8073 * Makefile.in (install-local): Add a missing backslash.
8074
8075 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
8076
8077 * include/grub/x86_64/io.h: New file.
8078
8079 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
8080
8081 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
8082 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
8083 Include `"progname.h"'.
8084 (main): Initialize gettext.
8085 * util/i386/pc/grub-setup.c: Gettexttize.
8086 * util/i386/pc/grub-mkimage.c: Likewise.
8087
8088 * Makefile.in (po/*.po): Redefine as ...
8089 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
8090
8091 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
8092
8093 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
8094
8095 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
8096 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
8097 (program_name): Remove.
8098 (main): Initialize gettext support.
8099 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
8100 Include `<libintl.h>'.
8101 (_): New macro.
8102
8103 * util/mkisofs/eltorito.c: Gettexttize.
8104 * util/mkisofs/joliet.c: Likewise.
8105 * util/mkisofs/mkisofs.c: Likewise.
8106 * util/mkisofs/multi.c: Likewise.
8107 * util/mkisofs/rock.c: Likewise.
8108 * util/mkisofs/tree.c: Likewise.
8109 * util/mkisofs/write.c: Likewise.
8110
8111 * po/POTFILES: Update with new files.
8112
8113 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
8114
8115 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
8116 * util/mkisofs/iso9660.h: Likewise.
8117 * util/mkisofs/joliet.c: Likewise.
8118 * util/mkisofs/mkisofs.c: Likewise.
8119 * util/mkisofs/mkisofs.h: Likewise.
8120 * util/mkisofs/rock.c: Likewise.
8121 * util/mkisofs/tree.c: Likewise.
8122 * util/mkisofs/write.c: Likewise.
8123
8124 * util/mkisofs/eltorito.c (rcsid): Remove.
8125 * util/mkisofs/hash.c: Likewise.
8126 * util/mkisofs/joliet.c: Likewise.
8127 * util/mkisofs/name.c: Likewise.
8128 * util/mkisofs/rock.c: Likewise.
8129 * util/mkisofs/tree.c: Likewise.
8130 * util/mkisofs/write.c: Likewise.
8131
8132 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
8133
8134 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
8135 instead of static allocation.
8136 * util/mkisofs/match.h: Likewise.
8137
8138 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
8139
8140 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
8141 and `util/grub.d/10_linux.in'.
8142 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
8143 translatable Shell files.
8144
8145 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
8146
8147 * Makefile.in ($(srcdir)/aclocal.m4): New target.
8148
8149 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
8150
8151 * INSTALL: Document Automake is needed for bootstrap.
8152 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
8153 * util/grub.d/10_kfreebsd.in (bindir): New variable.
8154 Add gettext initialization.
8155 (kfreebsd_entry): Make menuentry output translatable.
8156
8157 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
8158
8159 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
8160 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
8161 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
8162 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
8163 (LINGUAS): Auto-generate using `po/LINGUAS'.
8164 * po/LINGUAS: New file.
8165
8166 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
8167
8168 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
8169 other things).
8170 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
8171 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
8172 bindtextdomain() calls for gettext initialization.
8173
8174 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
8175
8176 * gnulib/progname.c: New file (imported from Gnulib).
8177 * gnulib/progname.h: Likewise.
8178 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
8179 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
8180 (usage): Replace `progname' with `program_name'.
8181 (main): Use set_program_name() for program name initialization.
8182
8183 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
8184
8185 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
8186 from here ...
8187 * Makefile.in (CPPFLAGS): ... to here.
8188
8189 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
8190
8191 * aclocal.m4: Move from here ...
8192 * acinclude.m4: ... to here.
8193 * autogen.sh: Add call to `aclocal'.
8194 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
8195
8196 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
8197
8198 * Makefile.in (CLEANFILES): Add `po/*.mo'.
8199 (LINGUAS): New variable.
8200 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
8201 (install-local): Install MO files.
8202 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
8203 * include/grub/i18n.h: New file.
8204 * po/POTFILES: New file.
8205 * po/ca.po: New file.
8206 * util/grub.d/10_linux.in (bindir): New variable.
8207 Add gettext initialization.
8208 (linux_entry): Make menuentry output translatable.
8209 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
8210 (usage): Make --help output translatable.
8211 (main): Initialize gettext.
8212
8213 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
8214
8215 * import_gcry.py: New file (written by Vladimir with minor
8216 adjustments).
8217 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
8218 ciphers.
8219 * INSTALL: Document that Python is required for bootstrap.
8220
8221 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
8222
8223 Import ciphers from libgcrypt 1.4.4.
8224
8225 * lib/libgcrypt/cipher/ChangeLog
8226 * lib/libgcrypt/cipher/ac.c
8227 * lib/libgcrypt/cipher/arcfour.c
8228 * lib/libgcrypt/cipher/bithelp.h
8229 * lib/libgcrypt/cipher/blowfish.c
8230 * lib/libgcrypt/cipher/camellia-glue.c
8231 * lib/libgcrypt/cipher/camellia.c
8232 * lib/libgcrypt/cipher/camellia.h
8233 * lib/libgcrypt/cipher/cast5.c
8234 * lib/libgcrypt/cipher/cipher.c
8235 * lib/libgcrypt/cipher/crc.c
8236 * lib/libgcrypt/cipher/des.c
8237 * lib/libgcrypt/cipher/dsa.c
8238 * lib/libgcrypt/cipher/ecc.c
8239 * lib/libgcrypt/cipher/elgamal.c
8240 * lib/libgcrypt/cipher/hash-common.c
8241 * lib/libgcrypt/cipher/hash-common.h
8242 * lib/libgcrypt/cipher/hmac-tests.c
8243 * lib/libgcrypt/cipher/md.c
8244 * lib/libgcrypt/cipher/md4.c
8245 * lib/libgcrypt/cipher/md5.c
8246 * lib/libgcrypt/cipher/primegen.c
8247 * lib/libgcrypt/cipher/pubkey.c
8248 * lib/libgcrypt/cipher/rfc2268.c
8249 * lib/libgcrypt/cipher/rijndael-tables.h
8250 * lib/libgcrypt/cipher/rijndael.c
8251 * lib/libgcrypt/cipher/rmd.h
8252 * lib/libgcrypt/cipher/rmd160.c
8253 * lib/libgcrypt/cipher/rsa.c
8254 * lib/libgcrypt/cipher/seed.c
8255 * lib/libgcrypt/cipher/serpent.c
8256 * lib/libgcrypt/cipher/sha1.c
8257 * lib/libgcrypt/cipher/sha256.c
8258 * lib/libgcrypt/cipher/sha512.c
8259 * lib/libgcrypt/cipher/tiger.c
8260 * lib/libgcrypt/cipher/twofish.c
8261 * lib/libgcrypt/cipher/whirlpool.c
8262
8263 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
8264
8265 Fix build for systems without error().
8266
8267 * gnulib/error.c: New file (imported from Gnulib).
8268 * gnulib/error.h: Likewise.
8269 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
8270 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
8271 (this variable is now used by error()).
8272
8273 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
8274
8275 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
8276 instead of relying that char is signed.
8277
8278 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8279
8280 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
8281 blocksize different from specified.
8282 (grub_pxefs_read): Likewise.
8283
8284 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
8285
8286 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
8287
8288 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
8289 (grub_ata_readwrite): Likewise. Update 2 format strings.
8290 (grub_atapi_read): Likewise.
8291
8292 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
8293 * conf/i386.rmk (pkglib_MODULES): ... to here ...
8294 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
8295 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
8296 (ata_mod_LDFLAGS): Move from here ...
8297 * conf/i386.rmk: ... to here ...
8298 * conf/x86_64-efi.rmk: ... and here.
8299 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
8300 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
8301
8302 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
8303
8304 Relicense multiboot.h, with RMS' blessing.
8305
8306 * include/multiboot.h: Change to X11 license.
8307
8308 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
8309
8310 Support --version in grub-mkisofs.
8311
8312 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
8313 (OPTION_VERSION): New macro.
8314 (ld_options): Recognize --version.
8315 (usage): Move `program_name' from here ...
8316 (program_name): ... to here. Add `static' qualifier.
8317 (main): Recognize `OPTION_VERSION'.
8318
8319 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
8320
8321 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
8322 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
8323
8324 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
8325
8326 Fix help2man generation for mkisofs.
8327
8328 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
8329 (usage): Send output to stdout (rather than stderr).
8330
8331 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
8332
8333 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
8334 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
8335 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
8336 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
8337 (bin_SCRIPTS): Add `grub-mkfloppy'.
8338 (grub_mkfloppy_SOURCES): New variable.
8339
8340 * util/grub-mkrescue.in: New file.
8341 * util/i386/pc/grub-mkfloppy.in: New file.
8342
8343 * util/i386/coreboot/grub-mkrescue.in: Remove.
8344 * util/i386/pc/grub-mkrescue.in: Remove.
8345
8346 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
8347
8348 * include/grub/multiboot.h (struct grub_multiboot_header): Move
8349 from here ...
8350 * include/multiboot.h (struct multiboot_header): ... to here. Update
8351 all users.
8352 * include/grub/multiboot.h (struct grub_multiboot_info): Move
8353 from here ...
8354 * include/multiboot.h (struct multiboot_info): ... to here. Update
8355 all users.
8356 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
8357 from here ...
8358 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
8359 Update all users.
8360 * include/grub/multiboot.h (struct grub_mod_list): Move
8361 from here ...
8362 * include/multiboot.h (struct multiboot_mod_list): ... to here.
8363 Update all users.
8364
8365 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
8366
8367 * include/multiboot2.h (multiboot_word): Rename from this ...
8368 (multiboot2_word): ... to this. Update all users.
8369 (multiboot_header): Rename from this ...
8370 (multiboot2_header): ... to this. Update all users.
8371 (multiboot_tag_header): Rename from this ...
8372 (multiboot2_tag_header): ... to this. Update all users.
8373 (multiboot_tag_start): Rename from this ...
8374 (multiboot2_tag_start): ... to this. Update all users.
8375 (multiboot_tag_name): Rename from this ...
8376 (multiboot2_tag_name): ... to this. Update all users.
8377 (multiboot_tag_module): Rename from this ...
8378 (multiboot2_tag_module): ... to this. Update all users.
8379 (multiboot_tag_memory): Rename from this ...
8380 (multiboot2_tag_memory): ... to this. Update all users.
8381 (multiboot_tag_unused): Rename from this ...
8382 (multiboot2_tag_unused): ... to this. Update all users.
8383 (multiboot_tag_end): Rename from this ...
8384 (multiboot2_tag_end): ... to this. Update all users.
8385
8386 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
8387
8388 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
8389 this platform we should support Multiboot1 first.
8390
8391 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
8392 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
8393 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
8394
8395 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
8396
8397 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
8398 of write calls (converting them to fwrite() if they aren't already).
8399 (get_torito_desc): Likewise.
8400 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
8401
8402 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
8403
8404 * util/i386/pc/grub-install.in: Move from here ...
8405 * util/grub-install.in: ... to here. Update all users.
8406
8407 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
8408
8409 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
8410
8411 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
8412
8413 Support for El Torito without floppy emulation.
8414
8415 * util/mkisofs/eltorito.c: Include `<errno.h>'.
8416 (init_boot_catalog): Improve error handling.
8417 (get_torito_desc): Don't use floppy emulation unless requested by
8418 user. Patch boot information table when requested via
8419 `-boot-info-table'.
8420 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
8421 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
8422 (use_boot_info_table): New variables.
8423 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
8424 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
8425 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
8426 `--eltorito-emul-floppy'.
8427 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
8428 and `OPTION_ELTORITO_EMUL_FLOPPY'.
8429 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
8430 (use_boot_info_table, get_731): New prototypes.
8431 * util/mkisofs/write.c (get_731): New function.
8432
8433 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
8434
8435 Fix the generation of the man page.
8436
8437 * util/pc/i386/grub-install.in: Source
8438 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
8439
8440 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
8441
8442 Large file support for grub-mkisofs.
8443
8444 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
8445 * util/mkisofs/mkisofs.c (next_extent, last_extent)
8446 (session_start): Upgrade type to `uint64_t'. Update all users.
8447 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
8448 (struct directory_entry): Upgrade type of `starting_block' and
8449 `size' to `uint64_t'. Update all users.
8450 (struct deferred): Remove unused structure.
8451 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
8452 Update all users.
8453 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
8454 file is larger than `UINT32_MAX'.
8455 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
8456 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
8457 return value.
8458 (struct deferred_write): Upgrade type of `extent' and `size' to
8459 `uint64_t'. Update all users.
8460 (last_extent_written): Upgrade type to `uint64_t'. Update all
8461 users.
8462 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
8463 Update all users. Upgrade type of `remain' to `int64_t' and
8464 `use' to `size_t'. Use error() to handle fread() errors.
8465 (write_files): Rely on write_one_file() rather than calling
8466 xfwrite() directly.
8467
8468 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
8469
8470 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
8471
8472 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8473
8474 * util/mkisofs/fnmatch.c: Remove.
8475 * util/mkisofs/getopt1.c: Likewise.
8476 * util/mkisofs/getopt.c: Likewise.
8477 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
8478 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
8479 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
8480 `gnulib/getopt1.c' and `gnulib/getopt.c'.
8481 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
8482
8483 * configure.ac: Detect `mingw32msvc' host_os.
8484 Check for lstat(), getuid() and getgid().
8485
8486 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
8487 instances of `u_char' with `uint8_t'.
8488
8489 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
8490 [!HAVE_GETUID] (getuid): New function (stub).
8491 [!HAVE_GETGID] (getgid): Likewise.
8492 [!HAVE_LSTAT] (lstat): Likewise.
8493 [!S_IROTH] (S_IROTH): New macro (dummy).
8494 [!S_IRGRP] (S_IRGRP): Likewise.
8495
8496 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8497
8498 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
8499 conditional expression).
8500
8501 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8502
8503 Import from Gnulib.
8504
8505 * gnulib/fnmatch.c: New file.
8506 * gnulib/fnmatch.h: Likewise.
8507 * gnulib/fnmatch_loop.c: Likewise.
8508 * gnulib/getopt.c: Likewise.
8509 * gnulib/getopt.h: Likewise.
8510 * gnulib/getopt1.c: Likewise.
8511 * gnulib/getopt_int.h: Likewise.
8512 * gnulib/gettext.h: Likewise.
8513
8514 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8515
8516 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
8517 * normal/handler.c (read_handler_list): Likewise.
8518
8519 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8520
8521 Misc cleanup.
8522
8523 * kern/command.c (grub_register_command_prio): Use
8524 grub_zalloc() instead of explicitly zeroing data.
8525 * kern/list.c: Include `<grub/mm.h>'.
8526 (grub_named_list_find): Replace `0' with `NULL'.
8527 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
8528 (fs_module_list): Change type to `grub_named_list_t'. Update all
8529 users.
8530 * normal/dyncmd.c (read_command_list): Add space between function
8531 call and parenthesis.
8532 * normal/handler.c (read_handler_list): Likewise.
8533
8534 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8535
8536 * normal/auth.c (punishment_delay): Moved from here ...
8537 (grub_auth_strcmp): ... to here (inside function).
8538
8539 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8540
8541 * include/grub/list.h (struct grub_named_list): Remove `const'
8542 qualifier from `name'.
8543 (struct grub_prio_list): Likewise.
8544
8545 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8546
8547 * normal/auth.c: Include `<grub/time.h>'.
8548 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
8549
8550 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8551
8552 * normal/auth.c (punishment_delay): New variable.
8553 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
8554 (grub_auth_check_authentication): Punish failed login attempts with
8555 an incremental (2^N) delay.
8556
8557 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8558
8559 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
8560 path with $(srcdir).
8561
8562 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8563
8564 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
8565
8566 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
8567
8568 * util/i386/coreboot/grub-mkrescue.in: New file.
8569 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
8570 variables.
8571
8572 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
8573 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
8574 * configure.ac: Add header and function checks to satisfy grub-mkisofs
8575 requirements.
8576 * util/mkisofs/defaults.h: New file.
8577 * util/mkisofs/eltorito.c: Likewise.
8578 * util/mkisofs/exclude.h: Likewise.
8579 * util/mkisofs/fnmatch.c: Likewise.
8580 * util/mkisofs/getopt.c: Likewise.
8581 * util/mkisofs/getopt1.c: Likewise.
8582 * util/mkisofs/hash.c: Likewise.
8583 * util/mkisofs/include/fctldefs.h: Likewise.
8584 * util/mkisofs/include/mconfig.h: Likewise.
8585 * util/mkisofs/include/prototyp.h: Likewise.
8586 * util/mkisofs/include/statdefs.h: Likewise.
8587 * util/mkisofs/iso9660.h: Likewise.
8588 * util/mkisofs/joliet.c: Likewise.
8589 * util/mkisofs/match.c: Likewise.
8590 * util/mkisofs/match.h: Likewise.
8591 * util/mkisofs/mkisofs.c: Likewise.
8592 * util/mkisofs/mkisofs.h: Likewise.
8593 * util/mkisofs/multi.c: Likewise.
8594 * util/mkisofs/name.c: Likewise.
8595 * util/mkisofs/rock.c: Likewise.
8596 * util/mkisofs/tree.c: Likewise.
8597 * util/mkisofs/write.c: Likewise.
8598
8599 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
8600
8601 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
8602 being insecure.
8603
8604 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8605
8606 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
8607 `grub-mkimage' (and use $0 when possible).
8608
8609 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8610
8611 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
8612 error message for excessively large memory map.
8613
8614 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8615
8616 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
8617 executable bit.
8618
8619 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
8620
8621 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
8622 message for coreboot users.
8623
8624 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
8625
8626 Fix build with GNU gold.
8627
8628 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
8629 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
8630 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
8631 link addresses.
8632 * aclocal.m4: Likewise.
8633
8634 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
8635
8636 * configure.ac (AC_PREREQ): Bump to 2.59d.
8637 * INSTALL: Make it more clear when Autoconf and Ruby are
8638 needed and when to run `./autogen.sh'.
8639
8640 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
8641
8642 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
8643 OSes.
8644
8645 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8646
8647 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
8648
8649 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8650
8651 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
8652 giving it to GNU Mach.
8653
8654 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8655
8656 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
8657 GNU partition number to get internal GRUB partition number.
8658
8659 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8660
8661 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
8662 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
8663
8664 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
8665
8666 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
8667 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
8668 case.
8669
8670 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
8671
8672 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
8673
8674 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
8675
8676 Fix build problem.
8677
8678 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
8679 `-isystem=$(srcdir)/include'.
8680
8681 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
8682
8683 * util/i386/pc/grub-install.in: Remove hint that device.map should be
8684 checked (grub-install doesn't currently rely on it).
8685
8686 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
8687
8688 Revert SVN r2660.
8689
8690 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
8691 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
8692 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
8693 * conf/i386-ieee1275.rmk: Likewise.
8694 * conf/i386-pc.rmk: Likewise.
8695 * conf/powerpc-ieee1275.rmk: Likewise.
8696 * conf/sparc64-ieee1275.rmk: Likewise.
8697 * conf/x86_64-efi.rmk: Likewise.
8698
8699 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
8700
8701 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
8702
8703 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
8704
8705 * include/grub/misc.h: Stop checking for APPLE_CC.
8706
8707 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
8708
8709 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
8710 doesn't cause an infinite call loop.
8711
8712 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
8713
8714 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
8715 strings.
8716
8717 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8718
8719 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
8720 variable.
8721 * Makefile.in: Likewise.
8722
8723 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8724
8725 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
8726
8727 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8728
8729 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
8730
8731 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8732
8733 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
8734
8735 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8736
8737 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
8738 from here ...
8739 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
8740
8741 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8742
8743 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
8744 in $(MAKEINFO) invocation. This makes it clear in output that
8745 errors are being ignored.
8746
8747 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8748
8749 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
8750 from here ...
8751 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
8752 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
8753 * conf/i386-ieee1275.rmk: Likewise.
8754 * conf/i386-pc.rmk: Likewise.
8755 * conf/powerpc-ieee1275.rmk: Likewise.
8756 * conf/sparc64-ieee1275.rmk: Likewise.
8757 * conf/x86_64-efi.rmk: Likewise.
8758
8759 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
8760
8761 * util/grub-editenv.c (main): If only a command is given, use
8762 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
8763 (usage): FILENAME is now optional and has a default.
8764
8765 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
8766
8767 Improve grub-mkconfig performance when there are several menu
8768 entries on a single filesystem.
8769
8770 * util/grub.d/10_linux.in (linux_entry): Cache the output of
8771 prepare_grub_to_access_device.
8772 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
8773 * util/grub.d/30_os-prober.in: Likewise.
8774
8775 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8776
8777 * util/grub.d/10_freebsd.in: Remove.
8778 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
8779 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
8780
8781 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
8782
8783 * docs/grub.cfg: Fix example usage of *BSD loaders.
8784
8785 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8786
8787 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
8788 grub_util_error() call.
8789
8790 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8791
8792 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
8793 `reserved_first_sector' member.
8794 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
8795 `reserved_first_sector' to 1.
8796 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
8797 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
8798 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
8799 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
8800 filesystems which begin at first sector.
8801 (options): New option --skip-fs-probe.
8802 (main): Handle --skip-fs-probe and pass it to setup().
8803
8804 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8805
8806 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
8807 (memset): Fix function prototype.
8808
8809 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8810 2009-10-25 Vasily Averin <vvs@parallels.com>
8811
8812 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
8813 `dirent.direntlen == 0'.
8814
8815 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8816
8817 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
8818 `cpio'.
8819 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
8820
8821 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8822
8823 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
8824 `__trampoline_setup' and `__ucmpdi2'.
8825 * include/grub/powerpc/libgcc.h: Only export symbols for functions
8826 that libgcc provides.
8827
8828 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8829
8830 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
8831 * include/grub/sparc64/libgcc.h (memset): Likewise.
8832 * include/grub/misc.h (memset, memcmp): New function prototypes.
8833
8834 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8835
8836 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
8837 `cpio'.
8838 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
8839
8840 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
8841
8842 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
8843 * docs/grub.cfg: Compensate for recent change in multiboot
8844 loader (since 2009-08-14 it won't pass filename to payload).
8845 * util/grub.d/10_hurd.in: Likewise.
8846
8847 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
8848
8849 * config.guess: Update to latest version from config git
8850 repository.
8851 * config.sub: Likewise.
8852
8853 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
8854
8855 Fix build on sparc64.
8856
8857 * configure.ac: Perform checks for libgcc symbols before
8858 adding `-nostdlib' to LDFLAGS.
8859
8860 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8861
8862 Let user specify OpenBSD root device.
8863
8864 * loader/i386/bsd.c (openbsd_root): New variable.
8865 (openbsd_opts): New option 'root'.
8866 (OPENBSD_ROOT_ARG): New macro.
8867 (grub_openbsd_boot): Use 'openbsd_root'.
8868 (grub_cmd_openbsd): Fill 'openbsd_root'.
8869
8870 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
8871
8872 * NEWS: Misc adjustments.
8873
8874 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8875
8876 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
8877
8878 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
8879
8880 * configure.ac: Bump version to 1.97.
8881
8882 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
8883
8884 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
8885 -mno-3dnow on x86 architectures. Some toolchains enable these
8886 features by default, but they rely on registers that aren't enabled
8887 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
8888
8889 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
8890
8891 Make entry text a bit more readable.
8892
8893 * util/grub.d/10_linux.in: Add `with' before `Linux'.
8894
8895 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8896
8897 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
8898
8899 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8900
8901 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
8902 operations.
8903
8904 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8905
8906 * configure.ac: Add missing dollar.
8907
8908 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
8909
8910 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
8911
8912 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
8913 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
8914 exports.
8915 * include/grub/sparc64/libgcc.h: Likewise. Use
8916 preprocessor conditionals.
8917
8918 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8919
8920 * conf/common.rmk (grub-dumpbios): Remove rule.
8921 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
8922 * util/grub-dumpbios.in: Remove file.
8923
8924 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
8925
8926 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
8927 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
8928
8929 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
8930 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
8931 users.
8932
8933 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
8934 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
8935 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
8936 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
8937 users.
8938
8939 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
8940
8941 * term/tparm.c: Switch to GPLv3.
8942
8943 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8944
8945 * include/grub/i386/cpuid.h: Add header protection.
8946
8947 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
8948
8949 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
8950
8951 * include/grub/i386/cpuid.h: New file.
8952 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
8953 (has_longmode): Rename to ...
8954 (grub_cpuid_has_longmode): ... this. Update all users. Remove
8955 `static' attribute.
8956 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
8957 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
8958 on a CPU that doesn't implement AMD64 instruction set.
8959
8960 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8961
8962 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
8963 that version.texi is rebuilt on version number changes.
8964
8965 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8966
8967 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
8968 Fixes bug #27602.
8969
8970 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
8971
8972 * util/i386/pc/grub-install.in: Source
8973 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
8974 that the --grub-probe option will work.
8975 * util/sparc64/ieee1275/grub-install.in: Likewise.
8976
8977 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
8978
8979 * configure.ac: Bump version to 1.97~beta4.
8980
8981 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
8982
8983 Resync grub-mkdevicemap in x86_64-efi.
8984
8985 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
8986 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
8987 `util/devicemap.c'.
8988
8989 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
8990
8991 * util/grub-editenv.c (create_envblk_file): Write new block with a
8992 .new suffix and then rename it into place, to ensure atomic
8993 creation.
8994
8995 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
8996
8997 Do not automatically install headers.
8998
8999 * Makefile.in (include_DATA): Remove. Update all users.
9000
9001 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
9002
9003 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
9004 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
9005
9006 * util/osdetect.lua: Remove.
9007 * script/lua/lauxlib.c: Likewise.
9008 * script/lua/ldebug.c: Likewise.
9009 * script/lua/grub_main.c: Likewise.
9010 * script/lua/lauxlib.h: Likewise.
9011 * script/lua/ldebug.h: Likewise.
9012 * script/lua/ltablib.c: Likewise.
9013 * script/lua/liolib.c: Likewise.
9014 * script/lua/lstrlib.c: Likewise.
9015 * script/lua/lualib.h: Likewise.
9016 * script/lua/ldo.c: Likewise.
9017 * script/lua/ldump.c: Likewise.
9018 * script/lua/ldo.h: Likewise.
9019 * script/lua/loslib.c: Likewise.
9020 * script/lua/lundump.c: Likewise.
9021 * script/lua/grub_lib.c: Likewise.
9022 * script/lua/ldblib.c: Likewise.
9023 * script/lua/lundump.h: Likewise.
9024 * script/lua/lmem.c: Likewise.
9025 * script/lua/grub_lib.h: Likewise.
9026 * script/lua/lmathlib.c: Likewise.
9027 * script/lua/lstate.c: Likewise.
9028 * script/lua/ltm.c: Likewise.
9029 * script/lua/lvm.c: Likewise.
9030 * script/lua/lmem.h: Likewise.
9031 * script/lua/lstate.h: Likewise.
9032 * script/lua/ltm.h: Likewise.
9033 * script/lua/ltable.c: Likewise.
9034 * script/lua/lvm.h: Likewise.
9035 * script/lua/llex.c: Likewise.
9036 * script/lua/lgc.c: Likewise.
9037 * script/lua/grub_lua.h: Likewise.
9038 * script/lua/loadlib.c: Likewise.
9039 * script/lua/lfunc.c: Likewise.
9040 * script/lua/lopcodes.c: Likewise.
9041 * script/lua/lparser.c: Likewise.
9042 * script/lua/ltable.h: Likewise.
9043 * script/lua/llex.h: Likewise.
9044 * script/lua/lgc.h: Likewise.
9045 * script/lua/lfunc.h: Likewise.
9046 * script/lua/lbaselib.c: Likewise.
9047 * script/lua/lopcodes.h: Likewise.
9048 * script/lua/lparser.h: Likewise.
9049 * script/lua/lzio.c: Likewise.
9050 * script/lua/linit.c: Likewise.
9051 * script/lua/lobject.c: Likewise.
9052 * script/lua/llimits.h: Likewise.
9053 * script/lua/lstring.c: Likewise.
9054 * script/lua/lzio.h: Likewise.
9055 * script/lua/lapi.c: Likewise.
9056 * script/lua/lcode.c: Likewise.
9057 * script/lua/lua.h: Likewise.
9058 * script/lua/lobject.h: Likewise.
9059 * script/lua/lstring.h: Likewise.
9060 * script/lua/lapi.h: Likewise.
9061 * script/lua/lcode.h: Likewise.
9062 * script/lua/luaconf.h: Likewise.
9063
9064 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
9065
9066 * docs/grub.texi (Command-line and menu entry commands): Document
9067 date and echo commands.
9068
9069 2009-09-24 Pavel Roskin <proski@gnu.org>
9070
9071 * include/grub/kernel.h (struct grub_module_header): Remove
9072 `grub_module_header_types'. Make `type' unsigned. Make `size'
9073 32-bit on all platforms.
9074 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
9075 8-bit field. Use grub_host_to_target32() for `size'.
9076 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
9077 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
9078 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
9079
9080 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
9081
9082 Fix "lost keypress" bug in at_keyboard.
9083
9084 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
9085 Checks for readyness of input buffer (without flushing it).
9086 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
9087 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
9088
9089 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
9090
9091 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
9092 size check within GRUB_MACHINE_PCBIOS section.
9093
9094 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
9095
9096 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
9097 return value.
9098 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
9099 KEYBOARD_ISREADY check.
9100 (grub_at_keyboard_checkkey): Rename to ...
9101 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
9102 Remove gratuitous cast.
9103
9104 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
9105
9106 * configure.ac: Call AC_PROG_MKDIR_P.
9107 * Makefile.in (docs/stamp-vti): Create docs directory. Create
9108 version.texi in $(builddir) rather than $(srcdir).
9109 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
9110 to makeinfo's @include search path.
9111
9112 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
9113
9114 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
9115
9116 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
9117
9118 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
9119 for `*.dpkg-new'.
9120
9121 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
9122
9123 Build info documentation. Some code borrowed from Automake.
9124
9125 * configure.ac: Check for makeinfo.
9126 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
9127 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
9128 docs/version.texi.
9129 (MOSTLYCLEANFILES): Add vti.tmp.
9130 (docs/version.texi, docs/stamp-vti): Update automatically.
9131 (docs/grub.info): Build info documentation. Use --force and ignore
9132 errors for now.
9133 (all-local): Add $(INFOS).
9134 (install-local): Install info files.
9135 (uninstall): Uninstall info files.
9136 * docs/version.texi: Remove from revision control. This file is
9137 automatically generated on build now.
9138 * gendistlist.sh: Add `*.info'.
9139
9140 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
9141
9142 * kern/term.c: Fix indentation.
9143
9144 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
9145
9146 * util/hostdisk.c: Fix a comment.
9147
9148 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
9149
9150 Fix regression introduced in r2539.
9151
9152 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
9153 to 0xA1.
9154
9155 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
9156
9157 * util/grub.d/30_os-prober.in: Don't throw away stderr from
9158 os-prober. Under normal operation, it does not print anything to
9159 stderr; if it does, we need to debug it, and throwing away stderr
9160 makes that excessively difficult.
9161
9162 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
9163
9164 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
9165
9166 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
9167
9168 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
9169 AC_LANG_PROGRAM from autoconf.
9170 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
9171 prototypes (fixes warning).
9172
9173 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
9174 `--disable-werror' was used.
9175
9176 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
9177
9178 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
9179 uninitialized `lastaddr'.
9180
9181 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9182
9183 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
9184
9185 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
9186
9187 * commands/test.c (get_fileinfo): Return immediately if
9188 grub_fs_probe fails.
9189
9190 2009-09-14 José Martínez <xosemp@gmail.com>
9191
9192 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
9193
9194 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
9195
9196 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
9197 output.
9198
9199 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
9200
9201 * configure.ac: Remove --enable-grub-pe2elf. Only build
9202 grub-pe2elf when needed by the build system itself.
9203 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
9204
9205 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
9206
9207 * configure.ac: Bump version to 1.97~beta3.
9208 * docs/version.texi: Likewise.
9209
9210 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
9211
9212 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
9213 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
9214 from here ...
9215 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
9216 (grub_linux_setup_video): ... to here (with some adjustments).
9217
9218 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
9219
9220 Fix memory corruption issue (spotted by Colin Watson).
9221
9222 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
9223 causing returned size to be stored in an incorrect memory location.
9224 Fix use of uninitialized value when storing the returned size.
9225
9226 2009-09-12 Yves Blusseau <blusseau@zetam.org>
9227
9228 Change clean rules to properly remove files
9229
9230 * genmk.rb: add new clean rules
9231 * Makefile.in (clean): add the new targets
9232 (mostlyclean): likewise
9233
9234 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
9235
9236 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
9237 to grub_uint64_t.
9238 * fs/ntfs.c (init_file): Understand 64-bit sizes for
9239 non-resident files.
9240
9241 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
9242
9243 * configure.ac: Don't look for help2man when cross-compiling. Fixes
9244 part of bug #27349.
9245
9246 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
9247
9248 * util/grub-mkconfig.in: Make the created config mode 400 and
9249 print a warning if it fails.
9250
9251 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
9252
9253 * util/grub.d/40_custom.in: Ask user to type custom entries below
9254 comment, rather than below 'exec tail' line.
9255
9256 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
9257
9258 * util/grub.d/40_custom.in: Make sure that the explanatory text is
9259 visible in grub.cfg.
9260
9261 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
9262
9263 * util/grub.d/40_custom.in: Make it a little clearer how to use this
9264 file.
9265
9266 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
9267
9268 * docs/grub.cfg: Add an example menu entry for memtest86+.
9269
9270 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
9271
9272 * config.guess: Update to latest version from config git.
9273 * config.sub: Likewise.
9274
9275 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
9276
9277 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
9278 unknown-command case. Fixes bug #27320.
9279
9280 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
9281
9282 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
9283 `help' if the command exists.
9284
9285 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
9286
9287 * INSTALL: Require GCC 4.1.3 or later.
9288
9289 2009-09-06 Yves Blusseau <blusseau@zetam.org>
9290
9291 * Makefile.in (RMKFILES): add i386-qemu.rmk
9292 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
9293 $(srcdir)/stamp-h.in
9294
9295 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
9296
9297 * util/grub-probe.c (probe): Comment out buggy codepath, which
9298 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
9299 should be re-enabled after 1.97.
9300
9301 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
9302
9303 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
9304 find searches for.
9305
9306 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
9307
9308 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
9309 unnecessary calls to grub_error.
9310
9311 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
9312
9313 * NEWS: Mention `keystatus' and Unicode fonts.
9314
9315 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
9316
9317 * configure.ac: Bump version to 1.97~beta2.
9318 * docs/version.texi: Likewise.
9319
9320 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
9321
9322 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
9323 containing unwind information in some cases where it previously did
9324 not. Use -fno-dwarf2-cfi-asm if available to restore the old
9325 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
9326 discussion.
9327
9328 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
9329
9330 Embedding loadenv module into grub-emu
9331
9332 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
9333 commands/loadenv.c
9334 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
9335 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
9336 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
9337 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
9338 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
9339 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
9340
9341 2009-09-03 Magnus Granberg <zorry@ume.nu>
9342
9343 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
9344 include -fPIE in the default specs.
9345 * configure.ac: Check if pie_possible is yes and add -fno-PIE
9346 to TARGET_CFLAGS.
9347
9348 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
9349
9350 * INSTALL: Note that GNU Bison 2.3 or later is required.
9351
9352 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
9353
9354 * kern/i386/pc/startup.S: Fix typo.
9355
9356 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
9357
9358 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
9359 according to GCS.
9360
9361 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
9362
9363 * docs/grub.texi (Naming convention): Describe one-based partition
9364 numbering.
9365 (Device syntax): Likewise.
9366 (File name syntax): Likewise.
9367 (Block list syntax): Likewise.
9368 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
9369 menu.lst.
9370 (File name syntax): Likewise.
9371 (Command-line and menu entry commands): Document acpi, blocklist,
9372 crc, export, insmod, keystatus, ls, set, and unset commands.
9373
9374 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
9375
9376 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
9377 to avoid implying that only one of --shift, --ctrl, or --alt may be
9378 used.
9379
9380 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
9381
9382 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
9383 rather than comparing against S_IFREG, which will almost never work.
9384
9385 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
9386
9387 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
9388 (write_blocklists): Likewise.
9389
9390 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
9391
9392 * script/lua/grub_lua.h (fputs): Supply a format string as the first
9393 argument to grub_printf.
9394
9395 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
9396
9397 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
9398 non GNU test.
9399
9400 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9401
9402 * kern/file.c (grub_file_read): Spelling fix
9403
9404 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
9405
9406 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
9407 loading of headers in some cases.
9408
9409 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
9410
9411 * configure.ac: Bump version to 1.97~beta1.
9412 * docs/version.texi: Likewise.
9413
9414 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
9415
9416 * include/grub/i386/xnu.h: Add license header.
9417 include grub/err.h explicitly.
9418
9419 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
9420
9421 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
9422 to `ufs' in the vfs.root.mountfrom kernel parameter.
9423
9424 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
9425
9426 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
9427
9428 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
9429 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
9430
9431 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
9432 `ARRAY_SIZE' macro.
9433
9434 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9435
9436 * kern/file.c (grub_file_read): Check offset.
9437 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
9438 * fs/jfs.c (grub_jfs_read_file): Likewise.
9439 * fs/ntfs.c (grub_ntfs_read): Likewise.
9440 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
9441 * fs/minix.c (grub_minix_read_file): Correct offset check.
9442 * fs/ufs.c (grub_ufs_read_file): Likewise.
9443
9444 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
9445
9446 * term/i386/pc/console.c (bios_data_area): Cast
9447 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
9448
9449 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9450
9451 1-bit optimised blitters.
9452
9453 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
9454 prototype.
9455 (grub_video_fbblit_replace_24bit_1bit): Likewise.
9456 (grub_video_fbblit_replace_16bit_1bit): Likewise.
9457 (grub_video_fbblit_replace_8bit_1bit): Likewise.
9458 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
9459 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
9460 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
9461 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
9462 function.
9463 (grub_video_fbblit_replace_24bit_1bit): Likewise.
9464 (grub_video_fbblit_replace_16bit_1bit): Likewise.
9465 (grub_video_fbblit_replace_8bit_1bit): Likewise.
9466 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
9467 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
9468 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
9469 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
9470 when possible.
9471 * video/video.c (grub_video_get_blit_format): Return
9472 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
9473
9474 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
9475
9476 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
9477 the first argument to grub_printf.
9478
9479 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
9480 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
9481
9482 Add `getkeystatus' terminal method. Add a new `keystatus' command
9483 to query it.
9484
9485 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
9486 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
9487 modifier key bitmasks.
9488 (struct grub_term_input): Add `getkeystatus' member.
9489 (grub_getkeystatus): Add prototype.
9490 * kern/term.c (grub_getkeystatus): New function.
9491
9492 * include/grub/i386/pc/memory.h
9493 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
9494 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
9495 Data Area layout.
9496 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
9497 (grub_console_term_input): Set `getkeystatus' member.
9498 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
9499 constants.
9500 (grub_usb_keyboard_getreport): Likewise.
9501 (grub_usb_keyboard_checkkey): Likewise.
9502 (grub_usb_keyboard_getkeystatus): New function.
9503 (grub_usb_keyboard_term): Set `getkeystatus' member.
9504
9505 * commands/keystatus.c: New file.
9506 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
9507 (keystatus_mod_SOURCES): New variable.
9508 (keystatus_mod_CFLAGS): Likewise.
9509 (keystatus_mod_LDFLAGS): Likewise.
9510 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
9511 commands/keystatus.c.
9512 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9513 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9514 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9515 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9516 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9517 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9518
9519 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
9520
9521 Split befs.mod and afs.mod into *_be.mod and *.mod
9522
9523 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
9524 (grub_fstest_SOURCES): Likewise.
9525 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
9526 (afs_be_mod_SOURCES): New variable.
9527 (afs_be_mod_CFLAGS): Likewise.
9528 (afs_be_mod_LDFLAGS): Likewise.
9529 (befs_be_mod_SOURCES): Likewise.
9530 (befs_be_mod_CFLAGS): Likewise.
9531 (befs_be_mod_LDFLAGS): Likewise.
9532 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
9533 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9534 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9535 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
9536 (grub_emu_SOURCES): Likewise.
9537 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9538 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9539 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9540 * fs/afs_be.c: New file.
9541 * fs/befs_be.c: New file.
9542 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
9543 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
9544 (U16): Replaced with ...
9545 (grub_afs_to_cpu16): ...this. All users updated.
9546 (U32): Replaced with ...
9547 (grub_afs_to_cpu32): ...this. All users updated.
9548 (U64): Replaced with ...
9549 (grub_afs_to_cpu64): ...this. All users updated.
9550 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
9551 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
9552 (grub_afs_validate_sblock): Check only one endianness.
9553 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
9554 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
9555 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
9556 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
9557 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
9558 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
9559 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
9560 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
9561
9562 2009-08-26 Bean <bean123ch@gmail.com>
9563
9564 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
9565 64-bit number.
9566 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
9567 (grub_xfs_inode_block): Change return type to grub_uint64_t.
9568 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
9569
9570 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9571
9572 NetBSD memory map support.
9573
9574 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
9575 (grub_netbsd_btinfo_mmap_header): New structure.
9576 (grub_netbsd_btinfo_mmap_entry): Likewise.
9577 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
9578
9579 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9580
9581 Enable bsd.mod on coreboot.
9582
9583 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
9584 (bsd_mod_SOURCES): New variable.
9585 (bsd_mod_CFLAGS): Likewise.
9586 (bsd_mod_LDFLAGS): Likewise.
9587 (bsd_mod_ASFLAGS): Likewise.
9588 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
9589 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
9590
9591 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9592
9593 Cleanup NetBSD root support.
9594
9595 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
9596 grub_bsd_get_device.
9597 Fix typo.
9598
9599 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
9600
9601 * util/grub.d/00_header.in: Move check for the video backend of
9602 gfxterm from here ...
9603 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
9604 a suitable video backend.
9605
9606 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9607
9608 Fix breakage in grub-setup.
9609
9610 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
9611 "msdos_partition_map".
9612
9613 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9614
9615 Fix breakage in normal/auth.c.
9616
9617 * normal/auth.c (grub_iswordseparator): New function.
9618
9619 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
9620
9621 Authentication support.
9622
9623 * commands/password.c: New file.
9624 * conf/common.rmk (pkglib_MODULES): Add password.mod.
9625 (password_mod_SOURCES): New variable.
9626 (password_mod_CFLAGS): Likewise.
9627 (password_mod_LDFLAGS): Likewise.
9628 (normal_mod_SOURCES): Add normal/auth.c.
9629 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
9630 normal/auth.c.
9631 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
9632 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9633 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9634 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9635 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9636 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
9637 * include/grub/auth.h: New file.
9638 * include/grub/err.h (grub_err_t): New enum value
9639 GRUB_ERR_ACCESS_DENIED.
9640 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
9641 'users'.
9642 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
9643 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
9644 users updated.
9645 * normal/auth.c: New file.
9646 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
9647 (grub_cmdline_run): Don't allow to go to command line without
9648 authentication.
9649 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
9650 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
9651 menuentry without superuser rights.
9652 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
9653 user isn't a superuser.
9654
9655 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9656
9657 Save space by inlining misc.c functions.
9658
9659 * kern/misc.c (grub_iswordseparator): Made static.
9660 * kern/misc.c (grub_strcat): Moved from here ...
9661 * include/grub/misc.h (grub_strcat): ... here. Inlined.
9662 * kern/misc.c (grub_strncat): Moved from here ...
9663 * include/grub/misc.h (grub_strncat): ... here. Inlined.
9664 * kern/misc.c (grub_strcasecmp): Moved from here ...
9665 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
9666 * kern/misc.c (grub_strncasecmp): Moved from here ...
9667 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
9668 * kern/misc.c (grub_isalpha): Moved from here ...
9669 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
9670 * kern/misc.c (grub_isdigit): Moved from here ...
9671 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
9672 * kern/misc.c (grub_isgraph): Moved from here ...
9673 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
9674 * kern/misc.c (grub_tolower): Moved from here ...
9675 * include/grub/misc.h (grub_tolower): ... here. Inlined.
9676
9677 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9678
9679 * script/sh/function.c (grub_script_function_find): Cut error message
9680 not to flood terminal.
9681 * script/sh/lexer.c (grub_script_yylex): Remove command line length
9682 limit.
9683 * script/sh/script.c (grub_script_arg_add): Duplicate string.
9684
9685 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
9686
9687 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
9688 `report' grub_uint8_t *.
9689 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
9690 Use a 50-millisecond timeout rather than just repeating
9691 grub_usb_keyboard_getreport 50 times.
9692 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
9693
9694 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9695
9696 Rename *_partition_map to part_*
9697
9698 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
9699 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
9700 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
9701 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
9702 All users updated.
9703 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
9704 All users updated.
9705 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
9706 * util/grub-probe.c (probe_partmap): Don't transform partition name
9707 to get module name.
9708
9709 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9710
9711 Fix OpenBSD and NetBSD support.
9712
9713 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
9714 memory address conflict.
9715 (OPENBSD_MMAP_ACPI): New definition.
9716 (OPENBSD_MMAP_NVS): Likewise.
9717 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
9718 and OPENBSD_MMAP_NVS.
9719 Add memory map terminator
9720 Explicit cast when calling grub_unix_real_boot.
9721 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
9722
9723 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9724
9725 Let user specify NetBSD root device.
9726
9727 * loader/i386/bsd.c (netbsd_root): New variable.
9728 (netbsd_opts): New option 'root'.
9729 (NETBSD_ROOT_ARG): New macro.
9730 (grub_netbsd_boot): Use 'netbsd_root'.
9731 (grub_bsd_unload): Free 'netbsd_root'.
9732 (grub_cmd_netbsd): Fill 'netbsd_root'.
9733
9734 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9735
9736 Support for 64-bit NetBSD.
9737
9738 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
9739 point when booting non-FreeBSD.
9740
9741 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
9742
9743 Support --no-smp and --no-acpi for NetBSD.
9744
9745 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
9746 (NETBSD_AB_NOACPI): Likewise.
9747 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
9748 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
9749
9750 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9751
9752 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
9753 errors.
9754 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
9755 errors. Call grub_error when needed.
9756
9757 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9758
9759 * commands/search.c (search_fs): Try searching without autoload first.
9760 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
9761 filesystem module explicitly for faster booting.
9762
9763 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
9764
9765 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
9766
9767 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
9768
9769 * util/grub.d/30_os-prober.in: Disable os-prober if
9770 `GRUB_DISABLE_OS_PROBER' was set to true.
9771
9772 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
9773
9774 * partmap/pc.c: Rename to ...
9775 * partmap/msdos.c: ... this. Update all users.
9776 (grub_pc_partition_map): Rename to ...
9777 (grub_msdos_partition_map): ... this. Update all users.
9778
9779 * parttool/pcpart.c: Rename to ...
9780 * parttool/msdospart.c: ... this. Update all users.
9781
9782 * include/grub/pc_partition.h: Rename to ...
9783 * include/grub/msdos_partition.h: ... this. Update all users.
9784 (grub_pc_partition_bsd_entry): Rename to ...
9785 (grub_msdos_partition_bsd_entry): ... this. Update all users.
9786 (grub_pc_partition_disk_label): Rename to ...
9787 (grub_msdos_partition_disk_label): ... this. Update all users.
9788 (grub_pc_partition_entry): Rename to ...
9789 (grub_msdos_partition_entry): ... this. Update all users.
9790 (grub_pc_partition_mbr): Rename to ...
9791 (grub_msdos_partition_mbr): ... this. Update all users.
9792 (grub_pc_partition): Rename to ...
9793 (grub_msdos_partition): ... this. Update all users.
9794 (grub_pc_partition_is_empty): Rename to ...
9795 (grub_msdos_partition_is_empty): ... this. Update all users.
9796 (grub_pc_partition_is_extended): Rename to ...
9797 (grub_msdos_partition_is_extended): ... this. Update all users.
9798 (grub_pc_partition_is_bsd): Rename to ...
9799 (grub_msdos_partition_is_bsd): ... this. Update all users.
9800
9801 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
9802 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
9803 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
9804 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
9805 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
9806 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
9807 (gpt_mod_LDFLAGS): Rename to ...
9808 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
9809 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
9810 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
9811 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
9812 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
9813 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
9814 (part_gpt_mod_LDFLAGS): ... this.
9815 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
9816 `pcpart.mod' to `msdospart.mod'.
9817 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
9818 to ...
9819 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
9820 (msdospart_mod_LDFLAGS): ... this.
9821
9822 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
9823
9824 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
9825 (openbsd_opts): Likewise.
9826 (netbsd_opts): Likewise.
9827 (freebsd_flags): Added 0 terminator.
9828 (openbsd_flags): Likewise.
9829 (netbsd_flags): Likewise.
9830 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
9831 (grub_cmd_freebsd): Transformed into extended command.
9832 (grub_cmd_openbsd): Likewise.
9833 (grub_cmd_netbsd): Likewise.
9834 (cmd_freebsd): Changed type to grub_extcmd_t.
9835 (cmd_openbsd): Likewise.
9836 (cmd_netbsd): Likewise.
9837 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
9838 grub_cmd_openbsd as extended commands.
9839 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
9840 cmd_netbsd and cmd_openbsd
9841
9842 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
9843
9844 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
9845
9846 2009-08-21 Pavel Roskin <proski@gnu.org>
9847
9848 * Makefile.in (install-local): When checking if a file is in the
9849 build directory, use "test -e" to detect symlinks.
9850
9851 * Makefile.in (install-local): Remove all files in
9852 $(DESTDIR)$(pkglibdir) before installing new files there.
9853
9854 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
9855
9856 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
9857 grub-mkelfimage.
9858
9859 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
9860
9861 * util/grub-mkconfig.in: Don't use gfxterm by default if not
9862 explicitly specified by the user.
9863
9864 2009-08-18 Pavel Roskin <proski@gnu.org>
9865
9866 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
9867 grub_uint8_t pointer for data.
9868 * include/grub/fbutil.h (struct grub_video_fbblit_info):
9869 Likewise.
9870 * video/fb/fbutil.c: Remove unnecessary casts.
9871
9872 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9873
9874 VBE cleanup.
9875
9876 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
9877 (grub_vbe_set_video_mode): Save active mode info
9878 only after setting the mode.
9879 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
9880 second argument.
9881
9882 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9883
9884 Rename variables for clarity.
9885
9886 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
9887 (active_vbe_mode_info): ... this. All users updated.
9888 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
9889 All users updated.
9890 (initial_mode): Rename to ...
9891 (initial_vbe_mode): ... this. All users updated.
9892 (mode_in_use): Rename to ..
9893 (vbe_mode_in_use): ... this. All users updated.
9894 (mode_list): Rename to ..
9895 (vbe_mode_list): ... this. All users updated.
9896 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
9897 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
9898 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
9899 'mode_list_size' to 'vbe_mode_list_size'.
9900 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
9901 'best_mode_info' to 'best_vbe_mode_info' and
9902 'best_mode' to 'best_vbe_mode'
9903
9904 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
9905
9906 Remove duplicate grub_video_fb_get_video_ptr.
9907
9908 * include/grub/fbutil.h (get_data_ptr): Rename to ...
9909 (grub_video_fb_get_video_ptr): ... this.
9910 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
9911 * video/fb/fbutil.c: Add comment about addressing.
9912 (get_data_ptr): Rename to ...
9913 (grub_video_fb_get_video_ptr): ... this. All users updated.
9914 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
9915
9916 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9917
9918 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
9919 grub_dprintf() that was just added.
9920
9921 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
9922
9923 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
9924 (DEFAULT_VIDEO_MODE): Remove macros.
9925 (grub_linux_boot): Remove assumption that Linux has FB support,
9926 and use "text" as default video mode.
9927
9928 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
9929
9930 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
9931 grub_dprintf.
9932 * fs/fat.c (grub_fat_read_data): Likewise.
9933
9934 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9935
9936 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
9937 payload.
9938 (grub_module): Likewise.
9939
9940 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9941
9942 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
9943 mbi->cmdline but free playground.
9944
9945 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9946
9947 Handle group offset on UFS1.
9948
9949 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
9950 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
9951
9952 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9953
9954 Split ufs.mod into ufs1.mod and ufs2.mod.
9955
9956 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
9957 (grub_fstest_SOURCES): Likewise.
9958 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
9959 (ufs_mod_SOURCES): Remove.
9960 (ufs_mod_CFLAGS): Likewise.
9961 (ufs_mod_LDFLAGS): Likewise.
9962 (ufs1_mod_SOURCES): New variable.
9963 (ufs1_mod_CFLAGS): Likewise.
9964 (ufs1_mod_LDFLAGS): Likewise.
9965 (ufs2_mod_SOURCES): New variable.
9966 (ufs2_mod_CFLAGS): Likewise.
9967 (ufs2_mod_LDFLAGS): Likewise.
9968 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
9969 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9970 Likewise.
9971 (grub_emu_SOURCES): Likewise.
9972 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9973 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
9974 (grub_setup_SOURCES): Likewise.
9975 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9976 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
9977 (grub_setup_SOURCES): Likewise.
9978 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
9979 Likewise.
9980 * fs/ufs2.c: New file.
9981 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
9982
9983 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
9984
9985 Framebuffer split.
9986
9987 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
9988 subsystem at the end.
9989 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
9990 (video_fb_mod_SOURCES): New variable.
9991 (video_fb_mod_CFLAGS): Likewise.
9992 (video_fb_mod_LDFLAGS): Likewise.
9993 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
9994 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
9995 * video/i386/pc/vbeblit.c: Moved from here ...
9996 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
9997 * video/i386/pc/vbefill.c: Moved from here ...
9998 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
9999 * video/i386/pc/vbeutil.c: Moved from here ...
10000 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
10001 * include/grub/i386/pc/vbeblit.h: Moved from here ...
10002 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
10003 * include/grub/i386/pc/vbefill.h: Moved from here ...
10004 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
10005 * include/grub/i386/pc/vbeutil.h: Moved from here ...
10006 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
10007 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
10008 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
10009 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
10010 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
10011 (grub_video_adapter): Added 'get_info_and_fini'.
10012 (grub_video_get_info_and_fini): New prototype.
10013 (grub_video_set_mode): make modestring const char *.
10014 * loader/i386/linux.c (grub_linux_setup_video): Use
10015 grub_video_get_info_and_fini.
10016 (grub_linux_boot): Move modesetting just before booting.
10017 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
10018 grub_video_get_info_and_fini.
10019 * video/i386/pc/vbe.c: Moved framebuffer part ...
10020 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
10021 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
10022 grub_video_fbstd_colors and grub_video_fb_set_palette.
10023 (grub_video_vbe_init): Clear 'framebuffer' variable and use
10024 grub_video_fb_init.
10025 (grub_video_vbe_fini): Use grub_video_fb_fini.
10026 (grub_video_vbe_setup): Use framebuffer.render_target instead of
10027 render_target and use grub_video_fb_set_active_render_target and
10028 grub_video_fb_set_palette.
10029 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
10030 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
10031 (grub_video_vbe_adapter): Use framebuffer.
10032 * video/video.c (grub_video_get_info_and_fini): New function.
10033 (grub_video_set_mode): Make modestring const char *.
10034 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
10035 values are already initialised.
10036
10037 2009-08-14 Pavel Roskin <proski@gnu.org>
10038
10039 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
10040 ABS and APPLE_CC.
10041 * boot/i386/pc/diskboot.S: Likewise.
10042 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
10043 sectors allow compilation on MacOSX.
10044 * conf/i386-pc.rmk: Enable unconditional compilation of
10045 lnxboot.img.
10046
10047 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
10048
10049 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
10050 * util/grub.d/00_header.in: Enter interruptible sleep if
10051 GRUB_HIDDEN_TIMEOUT is set.
10052
10053 2009-08-13 Yves Blusseau <blusseau@zetam.org>
10054
10055 * include/grub/symbol.h: Add the LOCAL macro.
10056 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
10057 starting with "L_".
10058
10059 2009-08-13 Pavel Roskin <proski@gnu.org>
10060
10061 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
10062 any modern compilers we support.
10063
10064 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
10065 Use local labels starting with "L_" so that Apple assembler
10066 knows they are local.
10067
10068 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
10069
10070 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
10071 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
10072 (bsd_kernel_types): ... this enum.
10073
10074 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
10075 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
10076 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
10077
10078 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
10079 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
10080 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
10081 messages.
10082
10083 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
10084
10085 * util/grub-dumpdevtree: Moved from here ...
10086 * util/i386/efi/grub-dumpdevtree: ... to here.
10087 (hexify): New function. Converts a string to its hex version.
10088 Generate hex versions of "efi" and "device-properties" by calling
10089 hexify() on the ASCII strings rather than by hardcoding numbers.
10090
10091 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
10092
10093 * fs/jfs.c: Update copyright year.
10094
10095 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
10096
10097 * util/grub.d/00_header.in: Fix a comment.
10098 * util/grub.d/10_linux.in: Likewise.
10099 * util/grub.d/10_windows.in: Likewise.
10100 * util/grub.d/10_hurd.in: Likewise.
10101
10102 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
10103
10104 * util/grub-mkconfig.in: Allow the user to specify the used font
10105 with GRUB_FONT.
10106
10107 2009-08-08 Pavel Roskin <proski@gnu.org>
10108
10109 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
10110 available, xfs.mod needs it now.
10111
10112 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
10113 the "g" modifier in sed when the intention is to strip something
10114 once. This fixes comparison of kernels with multiple dashes.
10115
10116 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
10117 on it. Add missing space before closing bracket. Fix
10118 misleading formatting.
10119
10120 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
10121
10122 * docs/grub.texi: Major overhaul. Remove all sections that are
10123 specific to GRUB Legacy, or mostly composed of Legacy-specific
10124 information.
10125
10126 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
10127
10128 * docs/version.texi: New file. Provides version information for
10129 grub.texi.
10130
10131 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
10132
10133 * docs/grub.texi: Update CVS information to SVN.
10134 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
10135
10136 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
10137
10138 * util/grub-mkconfig.in: Remove a wrong `fi'.
10139
10140 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
10141
10142 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
10143 (grub_jfs_uuid): New function.
10144 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
10145
10146 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
10147
10148 * util/grub-mkconfig_lib.in (font_path): Move the functionality
10149 of it to ...
10150 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
10151 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
10152
10153 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
10154
10155 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
10156 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
10157 Update all users.
10158
10159 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
10160 not just "vmlinu[zx]".
10161 Moved from here ...
10162 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
10163 all users.
10164
10165 * util/grub.d/10_linux.in (find_latest): Moved from here ...
10166 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
10167 all users.
10168
10169 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
10170
10171 * util/grub.d/10_freebsd.in: Use an absolute device path for
10172 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
10173
10174 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
10175
10176 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
10177 handling of multiple abstraction modules.
10178
10179 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
10180
10181 Fix a bug resulting in black screen when loading Linux using a
10182 packed video mode.
10183
10184 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
10185 function.
10186
10187 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
10188 (grub_vbe_bios_getset_dac_palette_width): New function.
10189 (grub_vbe_bios_get_dac_palette_width)
10190 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
10191 grub_vbe_bios_getset_dac_palette_width()).
10192
10193 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
10194 check for return status.
10195 (grub_vbe_get_video_mode_info): When getting information for a packed
10196 mode (<= 8 bpp), obtain DAC palette width using
10197 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
10198 {red,green,blue}_mark_size.
10199
10200 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
10201
10202 * commands/search.c (options): Fix help output to match actual code.
10203
10204 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
10205
10206 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
10207 of homegrown code.
10208
10209 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
10210
10211 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
10212 on XFS or ReiserFS.
10213
10214 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
10215
10216 Support Apple partition map with sector size different from 512 bytes.
10217
10218 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
10219 (apple_partition_map_iterate): Respect 'aheader.blocksize'
10220 and 'apart.partmap_size'.
10221
10222 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
10223 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
10224
10225 Fix cpuid command.
10226
10227 * commands/i386/cpuid.c (options): New variable.
10228 (grub_cmd_cpuid): Return real error.
10229 (GRUB_MOD_INIT(cpuid)): Declare options.
10230
10231 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
10232
10233 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
10234 valid.
10235
10236 2009-07-31 Bean <bean123ch@gmail.com>
10237
10238 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
10239 log2_inode.
10240 (grub_fshelp_node): Move inode field to the end.
10241 (grub_xfs_data): Remove inode field.
10242 (grub_xfs_inode_block): Calculate inode size using sblock.
10243 (grub_xfs_inode_offset): Likewise.
10244 (grub_xfs_read_inode): Calculate inode size using sblock.
10245 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
10246 (grub_xfs_iterate_dir): Calculate inode size using sblock.
10247 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
10248 to match inode size.
10249 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
10250 not accessible when data is null.
10251 (grub_xfs_open): Likewise.
10252
10253 2009-07-31 Bean <bean123ch@gmail.com>
10254
10255 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
10256 Don't change pv->disk if it's already set.
10257
10258 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
10259 (grub_raid_register): ... here.
10260 (grub_raid_rescan): Removed.
10261
10262 * include/grub/raid.h (grub_raid_rescan): Removed.
10263
10264 * util/grub-fstest.c: Remove include file <grub/raid.h>.
10265 (fstest): Replace grub_raid_rescan with module fini function followed
10266 by init function.
10267
10268 * util/grub-probe.c: Add include file <grub/raid.h>.
10269 (probe_raid_level): New function.
10270 (probe): Detect abstraction by walking the disk device, support two
10271 level of abstraction (LVM on RAID) when detecting partition map.
10272
10273 2009-07-31 Pavel Roskin <proski@gnu.org>
10274
10275 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
10276 to grub_zalloc(), it was erroneous.
10277 Reported by Bean <bean123ch@gmail.com>
10278
10279 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
10280
10281 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
10282 embedding zone, not only the first one.
10283
10284 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
10285
10286 * term/gfxterm.c (clear_char): New function.
10287 (grub_virtual_screen_setup): Use clear_char.
10288 (scroll_up): Likewise.
10289 (grub_virtual_screen_cls): Likewise.
10290
10291 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
10292
10293 * util/deviceiter.c (get_acceleraid_disk_name): New static
10294 function.
10295 (grub_util_iterate_devices): Handle Accelraid devices.
10296 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
10297
10298 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
10299
10300 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
10301 separator for the suggested gfxpayload string (';' collides with the
10302 parser and needs escaping).
10303
10304 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
10305
10306 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
10307 Clear direction flag before jumping to OS.
10308 (grub_multiboot2_real_boot): Likewise.
10309
10310 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
10311
10312 * util/i386/pc/grub-install: Fix parsing of --disk-module
10313 option.
10314
10315 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
10316
10317 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
10318 when embedding.
10319
10320 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
10321
10322 * util/grub-mkconfig.in (package_version): New variable.
10323 Use it do display the version.
10324
10325 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
10326
10327 * kern/file.c (grub_file_open): Revert to previous check with
10328 grub_errno.
10329
10330 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10331
10332 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
10333 from help line. It's out of sync with code.
10334
10335 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10336
10337 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
10338 entries on failed boot.
10339
10340 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
10341
10342 * kern/file.c (grub_file_open): Fix an error check.
10343
10344 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
10345
10346 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
10347 partition map couldn't be identified.
10348
10349 2009-07-23 Pavel Roskin <proski@gnu.org>
10350
10351 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
10352 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
10353 case of little endian words becomes just an optimization.
10354 Respect const modifier.
10355 (md5_final): Use code that doesn't depend on endianness.
10356
10357 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
10358 to avoid loss of upper bits if align is unsigned and shorter
10359 than addr.
10360
10361 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
10362
10363 UUID support for UFS
10364
10365 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
10366 (grub_ufs_uuid): New function.
10367 (grub_ufs_fs): add .uuid
10368
10369 2009-07-21 Pavel Roskin <proski@gnu.org>
10370
10371 * kern/dl.c (grub_dl_check_header): Make static.
10372
10373 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
10374
10375 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
10376 add drivemap for Vista. It breaks Windows 7.
10377
10378 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
10379
10380 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
10381 128 bytes
10382
10383 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10384
10385 Add BFS support
10386
10387 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
10388 (grub_fstest_SOURCES): Likewise.
10389 (pkglib_MODULES): Add befs.mod.
10390 (befs_mod_SOURCES): New variable.
10391 (befs_mod_CFLAGS): Likewise.
10392 (befs_mod_LDFLAGS): Likewise.
10393 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
10394 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
10395 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10396 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
10397 (grub_setup_SOURCES): Likewise.
10398 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10399 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10400 (grub_setup_SOURCES): Likewise.
10401 * fs/befs.c: New file.
10402 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
10403 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
10404 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
10405 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
10406 (B_KEY_INDEX_ALIGN): New declaration.
10407 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
10408 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
10409 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
10410 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
10411 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
10412 (grub_afs_mount) [MODE_BFS]: Likewise.
10413 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
10414 (grub_afs_fs): Use GRUB_AFS_FSNAME
10415 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
10416 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
10417 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
10418 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
10419
10420 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
10421
10422 * util/getroot.c (find_root_device): Add support for MacOSX.
10423 * util/hostdisk.c: Likewise.
10424
10425 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10426
10427 * font/font.c (find_glyph): Check whether a font is present to avoid
10428 segmentation fault.
10429
10430 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
10431
10432 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
10433
10434 2009-07-20 Pavel Roskin <proski@gnu.org>
10435
10436 * configure.ac: Trim excessively wordy excuses.
10437
10438 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10439
10440 Add symlink, mtime and label support to AtheFS.
10441
10442 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
10443 (grub_afs_iterate_dir): Handle symlinks.
10444 (grub_afs_open): Use grub_afs_read_symlink.
10445 (grub_afs_dir): Likewise.
10446 Pass mtime.
10447 (grub_afs_label): New function.
10448 (grub_afs_fs): Add grub_afs_label.
10449 (grub_afs_read_symlink): New function.
10450
10451 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
10452
10453 Fix AtheFS support.
10454
10455 * fs/afs.c: Fix comments style.
10456 (grub_afs_blockrun): Declare as packed.
10457 (grub_afs_datastream): Likewise.
10458 (grub_afs_bnode): Likewise.
10459 (grub_afs_btree): Likewise.
10460 (grub_afs_sblock): Likewise.
10461 Declare `name' as char.
10462 (grub_afs_inode): Declare as packed.
10463 Change void *vnode to grub_uint32_t unused.
10464 (grub_afs_iterate_dir): Check that key_size is positive.
10465 (grub_afs_mount): Don't read superblock twice.
10466 (grub_afs_dir): Don't free node in case of error,
10467 grub_fshelp_find_file already handles this.
10468 (grub_afs_open): Likewise.
10469
10470 2009-07-19 Pavel Roskin <proski@gnu.org>
10471
10472 * Makefile.in: Remove LIBLZO and enable_lzo.
10473 * conf/i386-pc.rmk: Remove lzo support.
10474 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
10475 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
10476 support.
10477 * kern/i386/pc/lzo1x.S: Remove.
10478 * kern/i386/pc/startup.S: Remove lzo support.
10479 * util/i386/pc/grub-mkimage.c: Likewise.
10480
10481 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
10482
10483 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
10484 * fs/xfs.c (grub_xfs_dir): Likewise.
10485 * fs/afs.c (grub_afs_dir): Likewise.
10486 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
10487 (grub_iso9660_open): Likewise.
10488 * fs/jfs.c (grub_jfs_open): Likewise.
10489 * fs/ext2.c (grub_ext2_dir): Likewise.
10490 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
10491 * script/sh/lexer.c (grub_script_yylex): Likewise.
10492
10493 2009-07-16 Pavel Roskin <proski@gnu.org>
10494
10495 * configure.ac: Never add "-c" to CFLAGS.
10496
10497 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
10498
10499 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
10500 grub_cv_cc_efiemu should be used.
10501
10502 * configure.ac: Typo fixes.
10503
10504 * kern/mm.c (grub_zalloc): New function.
10505 (grub_debug_zalloc): Likewise.
10506 * include/grub/mm.h: Declare grub_zalloc() and
10507 grub_debug_zalloc().
10508 * util/misc.c (grub_zalloc): New function.
10509 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
10510 instead of grub_malloc(), remove unneeded initializations.
10511 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
10512 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
10513 * commands/parttool.c (grub_cmd_parttool): Likewise.
10514 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
10515 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
10516 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
10517 * disk/usbms.c (grub_usbms_finddevs): Likewise.
10518 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
10519 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
10520 (grub_cmd_efiemu_pnvram): Likewise.
10521 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
10522 * fs/iso9660.c (grub_iso9660_mount): Likewise.
10523 (grub_iso9660_iterate_dir): Likewise.
10524 * fs/jfs.c (grub_jfs_opendir): Likewise.
10525 * fs/ntfs.c (list_file): Likewise.
10526 (grub_ntfs_mount): Likewise.
10527 * kern/disk.c (grub_disk_open): Likewise.
10528 * kern/dl.c (grub_dl_load_core): Likewise.
10529 * kern/elf.c (grub_elf_file): Likewise.
10530 * kern/env.c (grub_env_context_open): Likewise.
10531 (grub_env_set): Likewise.
10532 (grub_env_set_data_slot): Likewise.
10533 * kern/file.c (grub_file_open): Likewise.
10534 * kern/fs.c (grub_fs_blocklist_open): Likewise.
10535 * loader/i386/multiboot.c (grub_module): Likewise.
10536 * loader/xnu.c (grub_xnu_create_key): Likewise.
10537 (grub_xnu_create_value): Likewise.
10538 * normal/main.c (grub_normal_add_menu_entry): Likewise.
10539 (read_config_file): Likewise.
10540 * normal/menu_entry.c (make_screen): Likewise.
10541 * partmap/sun.c (sun_partition_map_iterate): Likewise.
10542 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
10543 * script/sh/script.c (grub_script_parse): Likewise.
10544 * video/bitmap.c (grub_video_bitmap_create): Likewise.
10545 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
10546 * video/readers/png.c (grub_png_output_byte): Likewise.
10547 (grub_video_reader_png): Likewise.
10548
10549 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10550
10551 Enable all targets that can be built by default
10552
10553 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
10554 grub-mkfont and grub-fstest if they can be built
10555
10556 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10557
10558 Fix hang and segmentation fault in grub-emu-usb
10559
10560 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
10561 * util/usb.c (grub_libusb_devices): likewise
10562 (grub_libusb_init): rename to ...
10563 (GRUB_MOD_INIT (libusb)):...this
10564 (grub_libusb_fini): rename to ..
10565 (GRUB_MOD_FINI (libusb)):...this
10566 * disk/usbms.c (grub_usbms_transfer): fix retry logic
10567 * include/grub/disk.h (grub_raid_init): removed, it's useless
10568 (grub_raid_fini): likewise
10569 (grub_lvm_init): likewise
10570 (grub_lvm_fini): likewise
10571 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
10572 by grub_init_all
10573
10574 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10575
10576 Fix libusb
10577
10578 * Makefile.in (LIBUSB): new macro
10579 * genmk.rb (Utility/print_tail): new method
10580 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
10581 (top level): call util.print_tail at the end.
10582
10583 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10584
10585 Make FreeBSD accept zpool.cache
10586
10587 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
10588 type is /boot/zfs/zpool.cache
10589
10590 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
10591
10592 Fix 64-bit efiemu
10593
10594 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
10595 correct wrong typedef
10596 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
10597
10598 2009-07-15 Pavel Roskin <proski@gnu.org>
10599
10600 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
10601 * kern/disk.c (struct grub_disk_cache): Likewise.
10602
10603 * commands/probe.c (options): Typo fix.
10604
10605 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
10606 Increase to 0x5a to accommodate FAT32. Adjust other offsets
10607 accordingly.
10608 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
10609
10610 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
10611 the end of "Error" to make the message more readable.
10612
10613 * boot/i386/pc/boot.S (kernel_segment): Remove.
10614 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
10615 for destination.
10616
10617 * boot/i386/pc/boot.S (boot_version): Remove.
10618 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10619 Remove.
10620
10621 * include/grub/i386/pc/boot.h: Sort all offsets.
10622 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
10623 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
10624 * boot/i386/pc/boot.S: Assert location of every offset listed in
10625 include/grub/i386/pc/boot.h.
10626
10627 2009-07-13 Pavel Roskin <proski@gnu.org>
10628
10629 * include/grub/i386/coreboot/machine.h: Rename
10630 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
10631 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
10632 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
10633
10634 * kern/dl.c: Force native word size to suppress warnings when
10635 compiling grub-emu.
10636
10637 * kern/device.c (grub_device_iterate): Change struct part_ent to
10638 hold the name, not a pointer to it. Use one grub_malloc() per
10639 partition, not two. Free partition_name if grub_malloc() fails.
10640 Set ents to NULL only before grub_partition_iterate() is called.
10641
10642 2009-07-11 Bean <bean123ch@gmail.com>
10643
10644 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
10645 childname.
10646
10647 2009-07-10 Bean <bean123ch@gmail.com>
10648 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
10649
10650 * kern/ieee1275/openfw.c (grub_children_iterate)
10651 (grub_devalias_iterate): Fix size evaluation for property or path
10652 strings, which was broken since r2132.
10653
10654 2009-07-07 Pavel Roskin <proski@gnu.org>
10655
10656 * commands/search.c (search_file): Merge into ...
10657 (search_fs): ... this. Accept search type as argument.
10658 (grub_cmd_search): Pass search type to search_fs().
10659
10660 * include/grub/util/console.h: New file.
10661 * util/console.c: Use it instead of grub/machine/console.h.
10662 * util/grub-emu.c: Likewise.
10663
10664 * lib/arg.c (find_long_option): Remove.
10665 (find_long): Add `len' argument, make `s' const char *.
10666 (grub_arg_parse): Parse long options in place, not in a
10667 temporary buffer.
10668
10669 2009-07-06 Pavel Roskin <proski@gnu.org>
10670
10671 * commands/search.c (search_fs): Fix potential NULL pointer
10672 dereference.
10673
10674 * commands/search.c (search_fs): Replace QUID macro with quid_fn
10675 function pointer.
10676
10677 2009-07-06 Daniel Mierswa <impulze@impulze.org>
10678
10679 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
10680 comparison.
10681
10682 2009-07-05 Pavel Roskin <proski@gnu.org>
10683
10684 * include/grub/i386/linux.h (struct linux_kernel_params):
10685 Restore padding3, it's still needed.
10686
10687 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
10688 FreeBSD.
10689 * util/osdetect.lua: Likewise.
10690
10691 2009-07-05 Bean <bean123ch@gmail.com>
10692
10693 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
10694
10695 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
10696 (grub_lua_getenv): Likewise.
10697 (grub_lua_setenv): Likewise.
10698 (save_errno): New function.
10699 (push_result): Likewise.
10700 (grub_lua_enum_device): Likewise.
10701 (grub_lua_enum_file): Likewise.
10702 (grub_lua_file_open): Likewise.
10703 (grub_lua_file_close): Likewise.
10704 (grub_lua_file_seek): Likewise.
10705 (grub_lua_file_read): Likewise.
10706 (grub_lua_file_getline): Likewise.
10707 (grub_lua_file_getsize): Likewise.
10708 (grub_lua_file_getpos): Likewise.
10709 (grub_lua_file_eof): Likewise.
10710 (grub_lua_file_exist): Likewise.
10711 (grub_lua_add_menu): Likewise.
10712
10713 * script/lua/grub_lua.h (isupper): New inline function.
10714 (islower): Likewise.
10715 (ispunct): Likewise.
10716 (isxdigit): Likewise.
10717 (strcspn): Change to normal function.
10718 (strpbkr): New function declaration.
10719 (memchr): Likewise.
10720
10721 * script/lua/grub_main.c (scan_str): New function.
10722 (strcspn): Likewise.
10723 (strpbrk): Likewise.
10724 (memchr): Likewise.
10725
10726 * script/lua/linit.c (lualibs): Enable the string library.
10727
10728 * util/osdetect.lua: New file.
10729
10730 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
10731
10732 * include/grub/i386/linux.h (struct linux_kernel_params): Add
10733 `capabilities' member.
10734
10735 2009-07-02 Pavel Roskin <proski@gnu.org>
10736
10737 * genparttoollist.sh: Add missing newline at the end.
10738
10739 2009-07-01 Pavel Roskin <proski@gnu.org>
10740
10741 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
10742
10743 * util/hostdisk.c (open_device): Remove `const' from
10744 `sysctl_size', as sysctlbyname() can change it (in this case it
10745 doesn't actually happen).
10746
10747 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
10748 using signed long int constants.
10749
10750 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
10751 constant to avoid a warning on FreeBSD.
10752
10753 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
10754 where it's needed.
10755
10756 * Makefile.in: Install include/grub/machine symlink.
10757
10758 * Makefile.in: When installing symlinks, use "cp -fR", which
10759 works on FreeBSD and MacOSX.
10760 From Yves Blusseau <cl7m42e02@sneakemail.com>
10761
10762 * kern/dl.c (grub_dl_resolve_symbol): Make static.
10763 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
10764
10765 * util/misc.c: Move grub_reboot() and grub_halt() ...
10766 * util/grub-emu.c: ... here. Make main_env static.
10767 * include/grub/util/misc.h: Remove main_env.
10768
10769 * kern/mm.c: Use correct format to print size_t.
10770
10771 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
10772 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
10773 * kern/powerpc/dl.c: Likewise.
10774 * kern/sparc64/dl.c: Likewise.
10775 * kern/x86_64/dl.c: Likewise.
10776
10777 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10778
10779 Fix grub-emu build on sparc64-ieee1275.
10780
10781 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
10782 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
10783
10784 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10785
10786 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
10787 (grub_reboot, grub_halt): New functions.
10788
10789 * util/i386/pc/misc.c: Delete. Update all users.
10790 * util/sparc64/ieee1275/misc.c: Likewise.
10791 * util/powerpc/ieee1275/misc.c: Likewise.
10792
10793 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10794
10795 * conf/i386.rmk (setjmp_mod_SOURCES)
10796 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
10797 * conf/common.rmk (setjmp_mod_SOURCES)
10798 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
10799 to use $(target_cpu).
10800 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
10801 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
10802 * conf/powerpc-ieee1275.rmk: Likewise.
10803 * conf/sparc64-ieee1275.rmk: Likewise.
10804
10805 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
10806 $(target_cpu) for kern/$(target_cpu)/dl.c.
10807 * conf/i386-efi.rmk: Likewise.
10808 * conf/i386-ieee1275.rmk: Likewise.
10809 * conf/x86_64-efi.rmk: Likewise.
10810 * conf/i386-coreboot.rmk: Likewise.
10811 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
10812 $(target_cpu) for kern/$(target_cpu)/dl.c and for
10813 kern/$(target_cpu)/cache.S.
10814 * conf/sparc64-ieee1275.rmk: Likewise.
10815
10816 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
10817
10818 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
10819 type to `grub_uint8_t', and adjust `padding9' accordingly.
10820
10821 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10822
10823 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
10824
10825 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
10826 assembly in final jump, using register constraints.
10827
10828 (grub_linux_boot): For text mode, initialize `have_vga' using
10829 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
10830
10831 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
10832 right before the final jump.
10833
10834 Set `video_mode' to 0x3.
10835
10836 Document initialization of `video_page', `video_mode' and
10837 `video_ega_bx'.
10838
10839 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10840
10841 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
10842 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
10843 and set GRUB_LINUX_FLAG_QUIET appropriately.
10844
10845 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
10846
10847 Fix build on Debian / sparc.
10848
10849 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
10850
10851 2009-06-28 Pavel Roskin <proski@gnu.org>
10852
10853 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
10854 fix a warning.
10855
10856 * util/grub.d/10_linux.in: Match SUSE style initrd names.
10857
10858 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10859
10860 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
10861 `err'.
10862
10863 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10864
10865 Revert r2338.
10866
10867 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
10868 file can't be opened. grub_file_open() is already supposed to set
10869 grub_errno / grub_errmsg appropriately.
10870 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10871
10872 2009-06-27 Pavel Roskin <proski@gnu.org>
10873 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
10874
10875 * include/grub/dl.h: Include grub/elf.h.
10876 (struct grub_dl): Add symtab field.
10877 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
10878 GRUB_MODULES_MACHINE_READONLY.
10879 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
10880 of the header for read-only modules.
10881 (grub_dl_unload): Free mod->symtab for read-only modules.
10882 * kern/i386/dl.c: Use mod->symtab.
10883 * kern/powerpc/dl.c: Likewise.
10884 * kern/sparc64/dl.c: Likewise.
10885 * kern/x86_64/dl.c: Likewise.
10886
10887 * conf/i386-qemu.rmk: New file.
10888 * kern/i386/qemu/startup.S: Likewise.
10889 * kern/i386/qemu/mmap.c: Likewise.
10890 * boot/i386/qemu/boot.S: Likewise.
10891 * include/grub/i386/qemu/time.h: Likewise.
10892 * include/grub/i386/qemu/serial.h: Likewise.
10893 * include/grub/i386/qemu/kernel.h: Likewise.
10894 * include/grub/i386/qemu/console.h: Likewise.
10895 * include/grub/i386/qemu/boot.h: Likewise.
10896 * include/grub/i386/qemu/init.h: Likewise.
10897 * include/grub/i386/qemu/machine.h: Likewise.
10898 * include/grub/i386/qemu/loader.h: Likewise.
10899 * include/grub/i386/qemu/memory.h: Likewise.
10900
10901 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
10902 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
10903 [qemu] (pkglib_IMAGES): Add `boot.img'.
10904 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
10905 [qemu] (boot_img_FORMAT): New variables.
10906 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
10907 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
10908 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
10909 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
10910 [qemu] (kernel_img_FORMAT): New variables.
10911
10912 * configure.ac: Recognise `i386-qemu'.
10913
10914 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
10915 (for no compression).
10916 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
10917 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
10918 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
10919 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
10920 ifdefs).
10921
10922 2009-06-27 Pavel Roskin <proski@gnu.org>
10923
10924 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
10925 read.
10926 * efiemu/prepare32.c: Likewise.
10927 * efiemu/prepare64.c: Likewise.
10928
10929 2009-06-26 Pavel Roskin <proski@gnu.org>
10930
10931 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
10932 * include/grub/elf.h: Define symbols without "32" or "64" based
10933 on GRUB_TARGET_WORDSIZE.
10934 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
10935 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
10936 ELF definitions.
10937 * efiemu/loadcore64.c: Likewise.
10938 * loader/i386/bsd32.c: Likewise.
10939 * loader/i386/bsd64.c: Likewise.
10940 * kern/dl.c: Remove own ELF definitions.
10941 * util/i386/efi/grub-mkimage.c: Likewise.
10942
10943 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
10944
10945 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
10946 segment 0x0 unconditionally, because the reference generated by
10947 GAS is an absolute address.
10948
10949 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10950
10951 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
10952 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
10953
10954 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10955
10956 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
10957 indexes. Check for -f explicitly.
10958 (search_file): Improve error message.
10959 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
10960
10961 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10962
10963 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
10964 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
10965
10966 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10967
10968 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
10969 * conf/i386-ieee1275.rmk: Likewise.
10970 * conf/i386-coreboot.rmk: Likewise.
10971
10972 * kern/i386/pc/startup.S (grub_stop): Remove function.
10973 * kern/i386/ieee1275/startup.S: Likewise.
10974 * kern/i386/coreboot/startup.S: Likewise.
10975 * kern/i386/misc.S (grub_stop): New function.
10976
10977 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10978
10979 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
10980 * kern/i386/realmode.S (real_to_prot): ... to here.
10981
10982 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
10983
10984 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
10985 with `kernel.img'.
10986 (kernel_elf_SOURCES): Rename to ...
10987 (kernel_img_SOURCES): ... this.
10988 (kernel_elf_HEADERS): Rename to ...
10989 (kernel_img_HEADERS): ... this. Update all users.
10990 (kernel_elf_ASFLAGS): Rename to ...
10991 (kernel_img_ASFLAGS): ... this.
10992 (kernel_elf_CFLAGS): Rename to ...
10993 (kernel_img_CFLAGS): ... this.
10994 (kernel_elf_LDFLAGS): Rename to ...
10995 (kernel_img_LDFLAGS): ... this.
10996 * conf/i386-coreboot.rmk: Likewise.
10997 * conf/powerpc-ieee1275.rmk: Likewise.
10998
10999 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
11000 with "kernel.img".
11001
11002 2009-06-21 Pavel Roskin <proski@gnu.org>
11003
11004 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
11005 to match nested functions.
11006 * loader/sparc64/ieee1275/linux.c: Likewise.
11007
11008 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
11009
11010 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
11011
11012 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
11013 all i386 platforms.
11014
11015 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
11016
11017 Fix asm file handling on ELF, and remove workarounds.
11018
11019 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
11020 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
11021 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
11022 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
11023
11024 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
11025
11026 Load BSD ELF modules
11027
11028 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
11029 and loader/i386/bsd64.c
11030 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
11031 (FREEBSD_MODTYPE_ELF_MODULE): New definition
11032 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
11033 (grub_freebsd_load_elfmodule32): New declaration
11034 (grub_freebsd_load_elfmoduleobj64): Likewise
11035 (grub_freebsd_load_elf_meta32): Likewise
11036 (grub_freebsd_load_elf_meta64): Likewise
11037 (grub_freebsd_add_meta): Likewise
11038 (grub_freebsd_add_meta_module): Likewise
11039 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
11040 (grub_freebsd_add_meta_module): Likewise and move module-specific
11041 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
11042 (grub_cmd_freebsd): Add elf-kernel specific parts
11043 based on grub_freebsd_add_meta_module
11044 (grub_cmd_freebsd_module): Add type parsing moved from
11045 grub_freebsd_add_meta_module
11046 (grub_cmd_freebsd_module_elf): New function
11047 (cmd_freebsd_module_elf): New variable
11048 (GRUB_MOD_INIT): Register freebsd_module_elf
11049 * loader/i386/bsd32.c: New file
11050 * loader/i386/bsd64.c: Likewise
11051 * loader/i386/bsdXX.c: Likewise
11052 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
11053 (grub_elf64_load): Likewise
11054 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
11055 All users updated
11056 (grub_elf64_load_hook_t): Likewise
11057
11058 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
11059
11060 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
11061 variable.
11062 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
11063 don't write a menu entry for recovery mode.
11064
11065 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
11066
11067 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
11068 after it's no longer needed.
11069
11070 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
11071
11072 * include/grub/i386/loader.h (grub_linux_prot_size)
11073 (grub_linux_tmp_addr, grub_linux_real_addr)
11074 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
11075 GRUB_MACHINE_PCBIOS.
11076 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
11077 common grub_util_info() call to ...
11078 (generate_image): ... here.
11079 Fix use of uninitialized memory, comparison of signed with
11080 unsigned integers and memory leak.
11081 Remove bogus module address message.
11082
11083 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
11084
11085 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
11086 grub_raid_register
11087 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
11088
11089 2009-06-19 Pavel Roskin <proski@gnu.org>
11090
11091 * configure.ac: Remove stray AC_MSG_CHECKING.
11092
11093 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
11094
11095 * disk/scsi.c (grub_scsi_open): use continue instead of big if
11096
11097 2009-06-18 Pavel Roskin <proski@gnu.org>
11098
11099 * conf/common.rmk: Add fs_file.mod.
11100 * disk/fs_file.c: New file.
11101 * include/grub/disk.h (enum grub_disk_dev_id): Add
11102 GRUB_DISK_DEVICE_FILE_ID.
11103
11104 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
11105
11106 Fix build with Apple's toolchain. Part 2
11107
11108 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
11109 a fake start
11110
11111 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
11112
11113 Fix build with Apple's toolchain. Part 1
11114
11115 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
11116 for long calls
11117 * configure.ac: remove a leftover AC_MSG_RESULT
11118 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
11119 Apple's toolchain
11120
11121 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
11122
11123 Fix warnings
11124
11125 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
11126 (decomp_block): initialize ch
11127 use grub_memcpy instead of memcpy
11128
11129 2009-06-17 Pavel Roskin <proski@gnu.org>
11130
11131 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
11132 version, use declarations needed to use vga_text as the startup
11133 console.
11134
11135 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
11136 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
11137 the kernel.
11138 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
11139 and grub_at_keyboard_fini(), it's done on module load and
11140 unload.
11141
11142 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
11143
11144 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
11145 file can't be found.
11146 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
11147
11148 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
11149
11150 Fix newline handling
11151
11152 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
11153 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
11154 (grub_script_yylex): don't segfault on unterminated script
11155 newline terminates command and variable
11156
11157 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
11158
11159 avoid double grub_adjust_range call. Bug reported by David Simner
11160
11161 * kern/disk.c (grub_disk_write): change to raw disk access before
11162 calling disk_read
11163
11164 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
11165
11166 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
11167 spaces, for the benefit of help2man.
11168 * util/i386/efi/grub-mkimage.c (usage): Likewise.
11169
11170 2009-06-16 Pavel Roskin <proski@gnu.org>
11171
11172 * kern/i386/halt.c: Include grub/machine/init.h.
11173 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
11174
11175 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
11176
11177 * util/grub.d/30_os-prober.in: Use ${root} in the generated
11178 drivemap menuentry.
11179
11180 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
11181
11182 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
11183 `echo' command.
11184
11185 2009-06-16 Pavel Roskin <proski@gnu.org>
11186
11187 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
11188 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
11189 save %dx, we only need %dl and we never change it.
11190 * boot/i386/pc/cdboot.S: Don't set the root drive.
11191 * boot/i386/pc/pxeboot.S: Likewise.
11192 * include/grub/i386/pc/boot.h: Remove
11193 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
11194 GRUB_BOOT_MACHINE_DRIVE_CHECK.
11195 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
11196 * kern/i386/pc/init.c (make_install_device): Remove references
11197 to grub_root_drive.
11198 * kern/i386/pc/startup.S: Likewise.
11199 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
11200
11201 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
11202
11203 xnu_uuid command
11204
11205 * commands/xnu_uuid.c: new file
11206 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
11207 (xnu_uuid_mod_SOURCES): new variable
11208 (xnu_uuid_mod_CFLAGS): likewise
11209 (xnu_uuid_mod_LDFLAGS): likewise
11210 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
11211 * conf/i386-ieee1275.rmk: likewise
11212 * conf/i386-pc.rmk: likewise
11213 * conf/powerpc-ieee1275.rmk: likewise
11214 * conf/sparc64-ieee1275.rmk: likewise
11215 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
11216
11217 2009-06-16 Pavel Roskin <proski@gnu.org>
11218
11219 * configure.ac: Avoid '==' in test command, it's not portable.
11220
11221 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
11222
11223 Probe command
11224
11225 * commands/probe.c: new file
11226 * conf/common.rmk (pkglib_MODULES): add probe.mod
11227 (probe_mod_SOURCES): new variable
11228 (probe_mod_CFLAGS): likewise
11229 (probe_mod_LDFLAGS): likewise
11230 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
11231 * conf/i386-ieee1275.rmk: likewise
11232 * conf/i386-pc.rmk: likewise
11233 * conf/powerpc-ieee1275.rmk: likewise
11234 * conf/sparc64-ieee1275.rmk: likewise
11235
11236 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
11237
11238 Fix handling of string like \"hello\" and "a
11239 b"
11240
11241 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
11242 (grub_script_yylex): fix parsing of quoting, escaping and newline
11243
11244 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
11245
11246 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
11247 handling
11248
11249 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
11250
11251 * util/grub-mkconfig.in: Fix parsing of --output option.
11252
11253 2009-06-12 Pavel Roskin <proski@gnu.org>
11254
11255 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
11256 genmk.rb don't need to be generated or installed.
11257
11258 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
11259
11260 * commands/i386/pc/drivemap_int13h.S: add more comments
11261
11262 2009-06-11 Pavel Roskin <proski@gnu.org>
11263
11264 * Makefile.in (uninstall): Uninstall manuals.
11265
11266 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
11267 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
11268 and update-grub_lib in two places.
11269 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
11270
11271 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
11272 a compiler warning.
11273
11274 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
11275 `entry_lo' to fix variable shadowing.
11276
11277 2009-06-11 Christian Franke <franke@computer.org>
11278
11279 * kern/misc.c (__enable_execute_stack): Add missing return type
11280 to prevent gcc warning.
11281
11282 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
11283
11284 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
11285
11286 2009-06-11 Pavel Roskin <proski@gnu.org>
11287
11288 * Makefile.in: Don't rely on any scripts being executable.
11289 Always use $(SHELL) to run shell scripts.
11290
11291 * configure.ac: Always define ___main if using -nostdlib. This
11292 fixes tests on Cygwin.
11293
11294 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
11295
11296 UDF fix
11297
11298 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
11299 is in bytes and not in blocks
11300
11301 2009-06-11 Pavel Roskin <proski@gnu.org>
11302
11303 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
11304 warning.
11305
11306 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
11307
11308 * util/grub.d/30_os-prober.in: Fix a comment. Source
11309 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
11310 to set the root device. Place drivemap command in the generated
11311 chain entry.
11312
11313 2009-06-11 Pavel Roskin <proski@gnu.org>
11314
11315 * configure.ac: Remove host_m32. Issues with 64-bit utilities
11316 have long been resolved.
11317
11318 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
11319
11320 * util/grub.d/10_linux.in: Capitalise "Linux".
11321
11322 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
11323
11324 2009-06-11 Pavel Roskin <proski@gnu.org>
11325
11326 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
11327 fix a gcc warning and ensure that the function won't ever exit.
11328
11329 * kern/i386/ieee1275/init.c: Add missing prototype for
11330 grub_stop_floppy().
11331
11332 * loader/ieee1275/multiboot2.c [__i386__]: Include
11333 grub/cpu/multiboot.h.
11334
11335 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
11336 casts to short - they are not portable and cause warnings. Fix
11337 use of uninitialized values in input_buf. Use ARRAY_SIZE.
11338
11339 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
11340
11341 Drivemap fixes
11342
11343 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
11344 new function
11345 (grub_get_root_biosnumber_saved): new variable
11346 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
11347 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
11348 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
11349 %dx after the call if necessary
11350 * conf/common.rmk (pkglib_MODULES): remove boot.mod
11351 (boot_mod_SOURCES): remove
11352 (boot_mod_CFLAGS): remove
11353 (boot_mod_LDFLAGS): remove
11354 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
11355 (boot_mod_SOURCES): new variable
11356 (boot_mod_CFLAGS): likewise
11357 (boot_mod_LDFLAGS): likewise
11358 * conf/i386-efi.rmk: likewise
11359 * conf/i386-ieee1275.rmk: likewise
11360 * conf/i386-pc.rmk: likewise
11361 * conf/powerpc-ieee1275.rmk: likewise
11362 * conf/sparc64-ieee1275.rmk: likewise
11363 * conf/x86_64-efi.rmk: likewise
11364 * include/grub/i386/pc/biosnum.h: new file
11365 * lib/i386/pc/biosnum.c: likewise
11366 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
11367 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
11368 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
11369
11370 2009-06-10 Pavel Roskin <proski@gnu.org>
11371
11372 * io/gzio.c (test_header): Don't reuse one buffer for all data.
11373 Use separate variables. Read only the file size at the end, but
11374 not the checksum that we don't use.
11375
11376 * kern/file.c (grub_file_read): Use void pointer for the buffer.
11377 Adjust all callers.
11378
11379 * kern/ieee1275/openfw.c: Remove libc includes.
11380 * kern/ieee1275/cmain.c: Likewise.
11381 * include/grub/ieee1275/ieee1275.h: Likewise.
11382
11383 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
11384 compiler warnings.
11385
11386 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
11387
11388 * Makefile.in: Remove all trailing whitespace.
11389 * conf/i386-pc.rmk: Likewise.
11390 * conf/powerpc-ieee1275.rmk: Likewise.
11391 * conf/sparc64-ieee1275.rmk: Likewise.
11392 * docs/grub.texi: Likewise.
11393 * docs/texinfo.tex: Likewise.
11394 * disk/fs_uuid.c: Likewise.
11395 * disk/lvm.c: Likewise.
11396 * disk/scsi.c: Likewise.
11397 * disk/ata.c: Likewise.
11398 * disk/ieee1275/ofdisk.c: Likewise.
11399 * disk/i386/pc/biosdisk.c: Likewise.
11400 * disk/host.c: Likewise.
11401 * disk/raid.c: Likewise.
11402 * disk/efi/efidisk.c: Likewise.
11403 * disk/usbms.c: Likewise.
11404 * disk/memdisk.c: Likewise.
11405 * disk/loopback.c: Likewise.
11406 * kern/powerpc/dl.c: Likewise.
11407 * kern/device.c: Likewise.
11408 * kern/dl.c: Likewise.
11409 * kern/sparc64/dl.c: Likewise.
11410 * kern/ieee1275/ieee1275.c: Likewise.
11411 * kern/term.c: Likewise.
11412 * kern/fs.c: Likewise.
11413 * kern/i386/dl.c: Likewise.
11414 * kern/i386/pc/startup.S: Likewise.
11415 * kern/i386/pc/init.c: Likewise.
11416 * kern/i386/pc/mmap.c: Likewise.
11417 * kern/i386/pc/lzo1x.S: Likewise.
11418 * kern/i386/ieee1275/init.c: Likewise.
11419 * kern/i386/realmode.S: Likewise.
11420 * kern/i386/tsc.c: Likewise.
11421 * kern/partition.c: Likewise.
11422 * kern/corecmd.c: Likewise.
11423 * kern/file.c: Likewise.
11424 * kern/efi/efi.c: Likewise.
11425 * kern/efi/init.c: Likewise.
11426 * kern/efi/mm.c: Likewise.
11427 * kern/main.c: Likewise.
11428 * kern/err.c: Likewise.
11429 * kern/env.c: Likewise.
11430 * kern/disk.c: Likewise.
11431 * kern/generic/millisleep.c: Likewise.
11432 * kern/generic/rtc_get_time_ms.c: Likewise.
11433 * kern/misc.c: Likewise.
11434 * kern/parser.c: Likewise.
11435 * genmk.rb: Likewise.
11436 * configure.ac: Likewise.
11437 * boot/i386/pc/diskboot.S: Likewise.
11438 * boot/i386/pc/pxeboot.S: Likewise.
11439 * boot/i386/pc/boot.S: Likewise.
11440 * boot/i386/pc/lnxboot.S: Likewise.
11441 * boot/i386/pc/cdboot.S: Likewise.
11442 * parttool/pcpart.c: Likewise.
11443 * video/readers/tga.c: Likewise.
11444 * video/video.c: Likewise.
11445 * video/bitmap.c: Likewise.
11446 * lib/envblk.c: Likewise.
11447 * lib/i386/setjmp.S: Likewise.
11448 * fs/xfs.c: Likewise.
11449 * fs/afs.c: Likewise.
11450 * fs/fat.c: Likewise.
11451 * fs/ntfs.c: Likewise.
11452 * fs/udf.c: Likewise.
11453 * fs/affs.c: Likewise.
11454 * fs/iso9660.c: Likewise.
11455 * fs/hfs.c: Likewise.
11456 * fs/fshelp.c: Likewise.
11457 * fs/ext2.c: Likewise.
11458 * fs/jfs.c: Likewise.
11459 * fs/reiserfs.c: Likewise.
11460 * fs/hfsplus.c: Likewise.
11461 * fs/minix.c: Likewise.
11462 * fs/cpio.c: Likewise.
11463 * fs/sfs.c: Likewise.
11464 * fs/ufs.c: Likewise.
11465 * efiemu/prepare.c: Likewise.
11466 * efiemu/loadcore_common.c: Likewise.
11467 * efiemu/runtime/efiemu.sh: Likewise.
11468 * efiemu/runtime/efiemu.S: Likewise.
11469 * efiemu/runtime/efiemu.c: Likewise.
11470 * efiemu/pnvram.c: Likewise.
11471 * efiemu/main.c: Likewise.
11472 * efiemu/i386/pc/cfgtables.c: Likewise.
11473 * efiemu/i386/loadcore64.c: Likewise.
11474 * efiemu/i386/loadcore32.c: Likewise.
11475 * efiemu/loadcore.c: Likewise.
11476 * efiemu/symbols.c: Likewise.
11477 * efiemu/mm.c: Likewise.
11478 * include/grub/autoefi.h: Likewise.
11479 * include/grub/datetime.h: Likewise.
11480 * include/grub/term.h: Likewise.
11481 * include/grub/hfs.h: Likewise.
11482 * include/grub/lvm.h: Likewise.
11483 * include/grub/i386/tsc.h: Likewise.
11484 * include/grub/i386/linux.h: Likewise.
11485 * include/grub/i386/xnu.h: Likewise.
11486 * include/grub/i386/efiemu.h: Likewise.
11487 * include/grub/i386/pc/biosdisk.h: Likewise.
11488 * include/grub/i386/pc/memory.h: Likewise.
11489 * include/grub/i386/pc/vbe.h: Likewise.
11490 * include/grub/parttool.h: Likewise.
11491 * include/grub/video.h: Likewise.
11492 * include/grub/memory.h: Likewise.
11493 * include/grub/fs.h: Likewise.
11494 * include/grub/partition.h: Likewise.
11495 * include/grub/xnu.h: Likewise.
11496 * include/grub/efi/api.h: Likewise.
11497 * include/grub/efi/pe32.h: Likewise.
11498 * include/grub/efi/memory.h: Likewise.
11499 * include/grub/multiboot.h: Likewise.
11500 * include/grub/usbdesc.h: Likewise.
11501 * include/grub/multiboot2.h: Likewise.
11502 * include/grub/acpi.h: Likewise.
11503 * include/grub/efiemu/efiemu.h: Likewise.
11504 * include/grub/disk.h: Likewise.
11505 * include/grub/ieee1275/ieee1275.h: Likewise.
11506 * include/grub/net.h: Likewise.
11507 * include/grub/machoload.h: Likewise.
11508 * include/grub/macho.h: Likewise.
11509 * include/multiboot.h: Likewise.
11510 * genmoddep.awk: Likewise.
11511 * normal/main.c: Likewise.
11512 * normal/menu_entry.c: Likewise.
11513 * normal/menu_viewer.c: Likewise.
11514 * normal/completion.c: Likewise.
11515 * normal/cmdline.c: Likewise.
11516 * normal/misc.c: Likewise.
11517 * normal/datetime.c: Likewise.
11518 * bus/usb/usbtrans.c: Likewise.
11519 * bus/usb/ohci.c: Likewise.
11520 * bus/usb/uhci.c: Likewise.
11521 * bus/usb/usb.c: Likewise.
11522 * mmap/efi/mmap.c: Likewise.
11523 * mmap/i386/pc/mmap_helper.S: Likewise.
11524 * mmap/i386/pc/mmap.c: Likewise.
11525 * mmap/i386/mmap.c: Likewise.
11526 * mmap/i386/uppermem.c: Likewise.
11527 * mmap/mmap.c: Likewise.
11528 * commands/acpi.c: Likewise.
11529 * commands/echo.c: Likewise.
11530 * commands/blocklist.c: Likewise.
11531 * commands/loadenv.c: Likewise.
11532 * commands/usbtest.c: Likewise.
11533 * commands/boot.c: Likewise.
11534 * commands/parttool.c: Likewise.
11535 * commands/search.c: Likewise.
11536 * commands/cat.c: Likewise.
11537 * commands/i386/pc/play.c: Likewise.
11538 * commands/i386/pc/drivemap.c: Likewise.
11539 * commands/i386/pc/vbeinfo.c: Likewise.
11540 * commands/i386/pc/acpi.c: Likewise.
11541 * commands/i386/pc/vbetest.c: Likewise.
11542 * commands/ls.c: Likewise.
11543 * commands/cmp.c: Likewise.
11544 * commands/test.c: Likewise.
11545 * commands/efi/acpi.c: Likewise.
11546 * commands/gptsync.c: Likewise.
11547 * commands/help.c: Likewise.
11548 * partmap/amiga.c: Likewise.
11549 * partmap/apple.c: Likewise.
11550 * partmap/acorn.c: Likewise.
11551 * partmap/pc.c: Likewise.
11552 * partmap/sun.c: Likewise.
11553 * partmap/gpt.c: Likewise.
11554 * script/sh/lexer.c: Likewise.
11555 * script/sh/function.c: Likewise.
11556 * font/font.c: Likewise.
11557 * font/font_cmd.c: Likewise.
11558 * loader/powerpc/ieee1275/linux.c: Likewise.
11559 * loader/efi/chainloader.c: Likewise.
11560 * loader/multiboot_loader.c: Likewise.
11561 * loader/macho.c: Likewise.
11562 * loader/i386/multiboot.c: Likewise.
11563 * loader/i386/linux.c: Likewise.
11564 * loader/i386/pc/linux.c: Likewise.
11565 * loader/i386/pc/multiboot2.c: Likewise.
11566 * loader/i386/pc/chainloader.c: Likewise.
11567 * loader/i386/pc/xnu.c: Likewise.
11568 * loader/i386/bsd_trampoline.S: Likewise.
11569 * loader/i386/efi/linux.c: Likewise.
11570 * loader/i386/multiboot_elfxx.c: Likewise.
11571 * loader/i386/bsd_helper.S: Likewise.
11572 * loader/i386/bsd.c: Likewise.
11573 * loader/i386/linux_trampoline.S: Likewise.
11574 * loader/i386/xnu_helper.S: Likewise.
11575 * loader/i386/xnu.c: Likewise.
11576 * loader/i386/bsd_pagetable.c: Likewise.
11577 * loader/i386/multiboot_helper.S: Likewise.
11578 * loader/xnu.c: Likewise.
11579 * loader/xnu_resume.c: Likewise.
11580 * io/gzio.c: Likewise.
11581 * term/efi/console.c: Likewise.
11582 * term/terminfo.c: Likewise.
11583 * term/ieee1275/ofconsole.c: Likewise.
11584 * term/i386/pc/serial.c: Likewise.
11585 * term/i386/pc/vesafb.c: Likewise.
11586 * term/i386/pc/vga.c: Likewise.
11587 * term/usb_keyboard.c: Likewise.
11588 * term/gfxterm.c: Likewise.
11589 * aclocal.m4: Likewise.
11590 * util/lvm.c: Likewise.
11591 * util/grub.d/30_os-prober.in: Likewise.
11592 * util/grub.d/10_hurd.in: Likewise.
11593 * util/console.c: Likewise.
11594 * util/grub-macho2img.c: Likewise.
11595 * util/grub-probe.c: Likewise.
11596 * util/hostfs.c: Likewise.
11597 * util/i386/pc/grub-mkimage.c: Likewise.
11598 * util/i386/pc/grub-setup.c: Likewise.
11599 * util/i386/efi/grub-mkimage.c: Likewise.
11600 * util/grub-mkconfig.in: Likewise.
11601 * util/raid.c: Likewise.
11602 * util/resolve.c: Likewise.
11603 * util/grub-mkdevicemap.c: Likewise.
11604 * util/grub-emu.c: Likewise.
11605 * util/getroot.c: Likewise.
11606 * util/hostdisk.c: Likewise.
11607 * util/usb.c: Likewise.
11608 * util/grub-editenv.c: Likewise.
11609 * util/misc.c: Likewise.
11610
11611 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
11612
11613 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
11614 `genparttoollist.sh'.
11615 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
11616 Add `*.sh' to the list find searches for and change `mdate.sh'
11617 to `mdate-sh'.
11618
11619 2009-06-10 Pavel Roskin <proski@gnu.org>
11620
11621 * include/grub/multiboot2.h: Provide compatibility defines for
11622 multiboot2.h.
11623 * include/multiboot2.h: Include stdint.h only if needed, using
11624 angle brackets.
11625 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
11626 grub/multiboot2.h.
11627 * loader/ieee1275/multiboot2.c: Likewise.
11628 * loader/multiboot2.c: Likewise.
11629 * loader/multiboot_loader.c: Likewise.
11630
11631 * configure.ac: Use -nostdlib when probing for the target. It
11632 should not be required to have libc for the target.
11633
11634 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
11635 they fail without libc headers for the target.
11636 * include/grub/powerpc/libgcc.h: Use weak attribute for all
11637 exports.
11638 * include/grub/sparc64/libgcc.h: Likewise. Don't use
11639 preprocessor conditionals.
11640
11641 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
11642 build system doesn't need to be aware of the tar.c internals.
11643
11644 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
11645
11646 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
11647
11648 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
11649
11650 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
11651 disk limit to 26 for IDE, Virtio, Xen and SCSI.
11652
11653 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
11654
11655 * util/i386/pc/grub-install.in: Change the error message if UUIDs
11656 aren't available if ata.mod gets used.
11657
11658 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
11659
11660 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
11661 initialising controller.
11662 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
11663
11664 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11665
11666 * util/i386/pc/grub-install.in: Add a parameter --disk-module
11667 to choose between ata and biosdisk module on i386-pc.
11668
11669 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
11670
11671 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
11672 Subclass and Programming Interface fields in terms of the 3 byte
11673 Class Code register.
11674 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
11675
11676 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
11677 interface is OHCI. Add grub_dprintf for symmetry with
11678 bus/usb/uhci.c.
11679 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
11680 interface is UHCI. Add interf variable for programming
11681 interface. Print interface with class/subclass.
11682
11683 * bus/usb/ohci.c: Set interf with correct field.
11684
11685 * bus/usb/uhci.c: Remove unneeded doubled lines.
11686 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
11687 Remove whitespace inside comment.
11688
11689 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
11690
11691 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
11692 as fallback an equivalent option without depth.
11693
11694 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
11695
11696 Not fail if unable to retrieve C/H/S on LBA disks
11697
11698 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
11699 if unable to retrieve C/H/S on LBA disks
11700
11701 2009-06-08 Pavel Roskin <proski@gnu.org>
11702
11703 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
11704 about aliasing.
11705
11706 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11707
11708 * Makefile.in (uninstall): Remove all $lib_DATA files.
11709
11710 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
11711
11712 Bugfix: install on partitionless device
11713
11714 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
11715 is a whole disk
11716
11717 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11718
11719 * Makefile.in (uninstall): Remove all $include_DATA files.
11720
11721 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
11722
11723 * commands/true.c: New file. Implement the true and false commands.
11724 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
11725 (true_mod_SOURCES): New variable.
11726 (true_mod_CFLAGS): Likewise.
11727 (true_mod_LDFLAGS): Likewise.
11728
11729 2009-06-05 Colin D Bennett <colin@gibibit.com>
11730
11731 Optimized font character lookup using binary search instead of linear
11732 search. Fonts now are required to have the character index ordered by
11733 code point.
11734
11735 * font/font.c (load_font_index): Verify that fonts have ordered
11736 character indices.
11737 (find_glyph): Use binary search instead of linear search to find a
11738 character in a font.
11739
11740 2009-06-05 Michael Scherer <misc@mandriva.org>
11741
11742 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
11743 uses case sensitive btree.
11744 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
11745 only for case insensitive filesystems.
11746
11747 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
11748
11749 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
11750 * conf/common.rmk (search_mod_CFLAGS): likewise
11751
11752 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11753
11754 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
11755 compensate a compiler bug
11756
11757 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11758
11759 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
11760 instead of '\b'
11761
11762 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11763
11764 Definitions for creating asm symbols with Apple's CC
11765
11766 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
11767 [APPLE_CC] (VARIABLE): likewise
11768
11769 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11770
11771 Disable lnxboot.img when compiled
11772 with Apple's CC
11773
11774 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
11775 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
11776 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
11777 [! APPLE_CC] (CODE_LENG): skip
11778 [! APPLE_CC] (setup_sects): likewise
11779 [! APPLE_CC]: skip filling
11780
11781 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11782
11783 Address in trampolines based on 32-bit registers when compiled
11784 with Apple's CC
11785
11786 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
11787 for addresses
11788 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
11789
11790 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11791
11792 Avoid aliases when compiling with Apple's CC for PCBIOS machine
11793
11794 * kern/misc.c [APPLE_CC] (memcpy): new function
11795 [APPLE_CC] (memmove): likewise
11796 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
11797 (memcpy): define alias conditionally on !APPLE_CC
11798 (memset): likewise
11799 (abort): likewise
11800 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
11801 APPLE_CC are defined
11802 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
11803 (grub_assert_fail): make prototype conditional
11804
11805 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11806
11807 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
11808
11809 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
11810 grub-macho2img
11811 (CLEANFILES): add grub-macho2img
11812 (grub_macho2img_SOURCES): new variable
11813 * kern/i386/pc/startup.S (bss_start): new variable
11814 (bss_end): likewise
11815 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
11816 * util/grub-macho2img.c: new file
11817
11818 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11819
11820 Use objconv when compiling with Apple's CC
11821
11822 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
11823 (efiemu64.o): likewise
11824 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
11825 when compiling with Apple's CC
11826 (efiemu64_s.o): likewise
11827 * configure.ac: check for objconv when compiling with Apple's CC
11828 * genmk.rb: use objconv for modules when compiled with Apple's CC
11829
11830 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11831
11832 Define segment as well as section when compiling with
11833 Apple's CC
11834
11835 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
11836 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
11837 (efiemu_convert_pointer): likewise
11838 (efiemu_set_virtual_address_map): likewise
11839 (efiemu_convert_pointer): likewise
11840 (efiemu_getcrc32): likewise
11841 (init_crc32_table): likewise
11842 (reflect): likewise
11843 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
11844 (GRUB_MOD_DEP): likewise
11845
11846 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11847
11848 Allow a compilation without -mcmodel=large
11849
11850 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
11851 when compiled without -mcmodel=large
11852 (filter_memory_map): remove memory post 4 GiB when compiled
11853 without -mcmodel=large
11854 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
11855 TARGET_CFLAGS when -mcmodel=large isn't supported
11856
11857 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11858
11859 Remove nested functions in efiemu core
11860
11861 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
11862
11863 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11864
11865 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
11866
11867 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
11868 temporary storage
11869 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
11870 using Apple's CC
11871 (grub_cpu_is_tsc_supported): likewise
11872 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
11873
11874 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11875
11876 Absolute addressing through constant with Apple's cc
11877
11878 * kern/i386/pc/startup.S: Define necessary constants
11879 and address through it when using ABS with Apple's CC
11880 * boot/i386/pc/diskboot.S: likewise
11881 * boot/i386/pc/boot.S: likewise
11882 * boot/i386/pc/lnxboot.S: likewise
11883 * boot/i386/pc/cdboot.S: likewise
11884 * mmap/i386/pc/mmap_helper.S: likewise
11885 * commands/i386/pc/drivemap_int13h.S: likewise
11886
11887 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11888
11889 Check if compiler is apple cc
11890
11891 * Makefile.in (ASFLAGS): new variable
11892 (TARGET_ASFLAGS): likewise
11893 (TARGET_MODULE_FORMAT): likewise
11894 (TARGET_APPLE_CC): likewise
11895 (OBJCONV): likewise
11896 (TARGET_IMG_CFLAGS): likewise
11897 (TARGET_CPPFLAGS): add includedir
11898 * configure.ac: call grub_apple_cc and grub_apple_target_cc
11899 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
11900 Check for linker script only if compiler isn't Apple's CC
11901 (TARGET_MODULE_FORMAT): set
11902 (TARGET_APPLE_CC): likewise
11903 (TARGET_ASFLAGS): likewise
11904 (ASFLAGS): likewise
11905 Check for objcopy only if compiler isn't Apple's CC
11906 Check for BSS symbol only if compiler isn't Apple's CC
11907 * genmk.rb: adapt nm options if we use Apple's utils
11908 * aclocal.m4 (grub_apple_cc): new test
11909 (grub_apple_target_cc): likewise
11910
11911 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11912
11913 Simplify sed expressions and improve awk
11914
11915 * Makefile.in (install-local): simplify sed expression
11916 * gencmdlist.sh: likewise
11917 * genmoddep.awk: avoid adding module as a dependency of itself
11918
11919 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11920
11921 Add missing start symbols
11922
11923 * boot/i386/pc/boot.S: add start
11924 * boot/i386/pc/pxeboot.S: likewise
11925
11926 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11927
11928 Fix wrong assumptions with grub-mkimage on EFI
11929
11930 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
11931 (relocate_addresses): consider both r_addend and value at offset
11932 (make_mods_section): zerofill modinfo and header
11933 (convert_elf): write prefix here
11934
11935 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11936
11937 Use .asciz instead of .string
11938
11939 * i386/pc/diskboot.S: use .asciz instead of .string
11940 * i386/pc/boot.S: likewise
11941 * include/grub/dl.h (GRUB_MOD_DEP): likewise
11942 (GRUB_MOD_NAME): likewise
11943
11944 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11945
11946 gfxpayload support
11947
11948 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
11949 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
11950 (grub_video_setup): remove
11951 (grub_video_set_mode): new prototype
11952 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
11953 (vid_mode): remove
11954 (linux_vesafb_res): compile only on PCBIOS
11955 (grub_linux_boot): support gfxpayload
11956 * loader/i386/pc/xnu.c (video_hook): new function
11957 (grub_xnu_set_video): support gfxpayload
11958 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
11959 (DEFAULT_VIDEO_HEIGHT): likewise
11960 (DEFAULT_VIDEO_FLAGS): likewise
11961 (DEFAULT_VIDEO_MODE): new definition
11962 (video_hook): new function
11963 (grub_gfxterm_init): use grub_video_set_mode
11964 * util/grub.d/30_os-prober.in: remove explicit modesetting before
11965 loading xnu
11966 * video/video.c (grub_video_setup): removed
11967 (grub_video_set_mode): new function based on grub_gfxterm_init and
11968 grub_video_setup
11969
11970 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11971
11972 Avoid calling biosdisk in drivemap
11973
11974 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
11975 (revparse_biosdisk): likewise
11976 (list_mappings): derive name from id directly
11977 (grub_cmd_drivemap): use tryparse_diskstring
11978
11979 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
11980
11981 Script fixes
11982
11983 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
11984 (grub_lexer_param): add tokenonhold
11985 (grub_script_create_cmdline): remove cmdline. All callers updated
11986 (grub_script_function_create): make functionname
11987 grub_script_arg. All callers updated
11988 (grub_script_execute_argument_to_string): new prototype
11989 * kern/parser.c (state_transitions): reorder
11990 (grub_parser_cmdline_state): fix a bug and make more compact
11991 * script/sh/execute.c (grub_script_execute_argument_to_string):
11992 make global
11993 (grub_script_execute_cmdline): use new format
11994 * script/sh/function.c (grub_script_function_create): make functionname
11995 grub_script_arg. All callers updated
11996 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
11997 (grub_script_yylex): remove
11998 (grub_script_yylex2): renamed to ...
11999 (grub_script_yylex): ...renamed
12000 parse the expressions like a${b}c
12001 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
12002 (GRUB_PARSER_TOKEN_VAR): remove
12003 (GRUB_PARSER_TOKEN_NAME): likewise
12004 ("if"): declare as typeless
12005 ("while"): likewise
12006 ("function"): likewise
12007 ("else"): likewise
12008 ("then"): likewise
12009 ("fi"): likewise
12010 (text): remove
12011 (argument): likewise
12012 (script): accept empty scripts and make exit on error
12013 (arguments): use GRUB_PARSER_TOKEN_ARG
12014 (function): likewise
12015 (command): move error handling to script
12016 (menuentry): move grub_script_lexer_ref before
12017 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
12018 argument. All callers updated
12019
12020 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
12021
12022 Prevent GRUB from probing floppies during boot.
12023
12024 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
12025 * commands/search.c (options): Add --no-floppy.
12026 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
12027 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
12028 --no-floppy when searching for UUIDs.
12029
12030 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
12031
12032 Simplify the code duplication in commands/search.c.
12033
12034 * commands/search.c (search_label, search_fs_uuid): Merge into ...
12035 (search_fs): ... this. Update all users.
12036
12037 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
12038
12039 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
12040
12041 2009-05-28 Pavel Roskin <proski@gnu.org>
12042
12043 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
12044 Remove the original symlink explicitly.
12045
12046 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
12047 just one slash. That's how grub_fshelp_find_file() does it.
12048
12049 2009-05-26 Pavel Roskin <proski@gnu.org>
12050
12051 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
12052 to `str'.
12053
12054 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
12055 possibly unused.
12056
12057 2009-05-25 Christian Franke <franke@computer.org>
12058
12059 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
12060 register.
12061 (grub_atapi_identify): Add wait after drive select.
12062 (grub_ata_identify): Do more strict status register check before
12063 calling grub_atapi_identify (). Suppress error message if status
12064 register is 0x00 after command failure. Add status register
12065 check after PIO read to avoid bogus identify due to stuck DRQ.
12066 Thanks to Pavel Roskin for testing.
12067 (grub_device_initialize): Remove unsafe status register check.
12068 Thanks to 'phcoder' for problem report and patch.
12069 Prevent sign extension in debug message.
12070
12071 2009-05-23 Colin D Bennett <colin@gibibit.com>
12072
12073 Cleaned up `include/grub/normal.h'. Grouped prototypes by
12074 definition file, and functions defined in `normal/menu.c' have had
12075 their prototypes moved to `include/grub/menu.h' for consistency.
12076
12077 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
12078 from normal.h.
12079 (grub_menu_get_entry): Likewise.
12080 (grub_menu_get_timeout): Likewise.
12081 (grub_menu_set_timeout): Likewise.
12082 (grub_menu_execute_entry): Likewise.
12083 (grub_menu_execute_with_fallback): Likewise.
12084 (grub_menu_entry_run): Likewise.
12085
12086 * include/grub/normal.h: Re-ordered and grouped function
12087 prototypes by file that the function is defined in.
12088 (grub_menu_execute_callback): Removed; moved to menu.h.
12089 (grub_menu_get_entry): Likewise.
12090 (grub_menu_get_timeout): Likewise.
12091 (grub_menu_set_timeout): Likewise.
12092 (grub_menu_execute_entry): Likewise.
12093 (grub_menu_execute_with_fallback): Likewise.
12094 (grub_menu_entry_run): Likewise.
12095 (grub_menu_addentry): Renamed from this ...
12096 (grub_normal_add_menu_entry): ... to this.
12097
12098 * normal/main.c (grub_menu_addentry): Renamed from this ...
12099 (grub_normal_add_menu_entry): ... to this.
12100
12101 * script/sh/execute.c (grub_script_execute_menuentry): Update
12102 reference to renamed grub_menu_addentry function.
12103
12104 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
12105
12106 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
12107
12108 2009-05-22 Pavel Roskin <proski@gnu.org>
12109
12110 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
12111 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
12112 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
12113 compiling for the i386 targets, but not for the utilities.
12114
12115 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
12116 to grub_uint8_t.
12117 (grub_root_drive): Likewise.
12118 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
12119 remove alignment.
12120 (grub_root_drive): Change size to byte.
12121 (grub_start_addr): Remove.
12122 (grub_end_addr): Likewise.
12123 (grub_apm_bios_info): Likewise.
12124
12125 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
12126
12127 * normal/i386: Remove.
12128 * normal/powerpc: Likewise.
12129 * normal/sparc64: Likewise.
12130 * normal/x86_64: Likewise.
12131
12132 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
12133
12134 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
12135 * loader/i386/linux_trampoline.S: Fix indentation
12136 * loader/i386/xnu_helper.S: Likewise
12137
12138 2009-05-18 Colin D Bennett <colin@gibibit.com>
12139
12140 Display error messages when parsing a Lua statement fails.
12141 Previously, executing a syntactically invalid statement like
12142 ")foo" or "bar;" would silently fail.
12143
12144 * script/lua/grub_main.c (handle_lua_error): New function.
12145 (grub_lua_parse_line): Improved reporting of Lua parser and
12146 execution errors.
12147
12148 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12149
12150 Remove -Werror which causes build to fail on some systems
12151
12152 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
12153 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
12154 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
12155
12156 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12157
12158 trampoline for linux on 64-bit platform
12159
12160 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
12161 loader/i386/efi/linux_trampoline.S
12162 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
12163 declaration
12164 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
12165 here
12166 * loader/i386/linux_trampoline.S: moved here
12167 * loader/i386/efi/linux.c (allocate_pages): reserve space for
12168 trampoline
12169 (jumpvector): removed
12170 (grub_linux_trampoline_start): new declaration
12171 (grub_linux_trampoline_end): likewise
12172 (grub_linux_boot): use trampoline when on 64-bit platform
12173 * loader/i386/linux.c: likewise
12174
12175 2009-05-16 Pavel Roskin <proski@gnu.org>
12176
12177 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
12178 const to avoid a warning.
12179 (grub_lua_setenv): Likewise.
12180 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
12181 lmsg to fix a warning.
12182
12183 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
12184
12185 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
12186 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
12187 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
12188 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
12189 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
12190 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
12191 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
12192 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
12193
12194 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
12195
12196 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
12197
12198 2009-05-16 Bean <bean123ch@gmail.com>
12199
12200 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
12201 (lua_mod_SOURCES): New variable.
12202 (lua_mod_CFLAGS): Likewise.
12203 (lua_mod_LDFLAGS): Likewise.
12204
12205 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
12206 (setjmp_mod_SOURCES): New variable.
12207 (setjmp_mod_CFLAGS): Likewise.
12208 (setjmp_LDFLAGS): Likewise.
12209
12210 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
12211 (setjmp_mod_SOURCES): New variable.
12212 (setjmp_mod_CFLAGS): Likewise.
12213 (setjmp_LDFLAGS): Likewise.
12214
12215 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
12216 (setjmp_mod_SOURCES): New variable.
12217 (setjmp_mod_CFLAGS): Likewise.
12218 (setjmp_LDFLAGS): Likewise.
12219
12220 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
12221 (setjmp_mod_SOURCES): New variable.
12222 (setjmp_mod_CFLAGS): Likewise.
12223 (setjmp_LDFLAGS): Likewise.
12224
12225 * normal/i386/setjmp.S: Moved from here ...
12226 * lib/i386/setjmp.S: ... Moved here
12227 * normal/x86_64/setjmp.S: Moved from here ...
12228 * lib/x86_64/setjmp.S: ... Moved here
12229 * normal/powerpc/setjmp.S: Moved from here ...
12230 * lib/powerpc/setjmp.S: ... Moved here
12231 * normal/sparc64/setjmp.S: Moved from here ...
12232 * lib/sparc64/setjmp.S: ... Moved here
12233
12234 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
12235 returns_twice in mingw.
12236
12237 * script/lua/grub_lib.c: New file.
12238 * script/lua/grub_lib.h: Likewise.
12239 * script/lua/grub_lua.h: Likewise.
12240 * script/lua/grub_main.c: Likewise.
12241 * script/lua/lapi.c: Likewise.
12242 * script/lua/lapi.h: Likewise.
12243 * script/lua/lauxlib.c: Likewise.
12244 * script/lua/lauxlib.h: Likewise.
12245 * script/lua/lbaselib.c: Likewise.
12246 * script/lua/lcode.c: Likewise.
12247 * script/lua/lcode.h: Likewise.
12248 * script/lua/ldblib.c: Likewise.
12249 * script/lua/ldebug.c: Likewise.
12250 * script/lua/ldebug.h: Likewise.
12251 * script/lua/ldo.c: Likewise.
12252 * script/lua/ldo.h: Likewise.
12253 * script/lua/ldump.c: Likewise.
12254 * script/lua/lfunc.c: Likewise.
12255 * script/lua/lfunc.h: Likewise.
12256 * script/lua/lgc.c: Likewise.
12257 * script/lua/lgc.h: Likewise.
12258 * script/lua/linit.c: Likewise.
12259 * script/lua/liolib.c: Likewise.
12260 * script/lua/llex.c: Likewise.
12261 * script/lua/llex.h: Likewise.
12262 * script/lua/llimits.h: Likewise.
12263 * script/lua/lmathlib.c: Likewise.
12264 * script/lua/lmem.c: Likewise.
12265 * script/lua/lmem.h: Likewise.
12266 * script/lua/loadlib.c: Likewise.
12267 * script/lua/lobject.c: Likewise.
12268 * script/lua/lobject.h: Likewise.
12269 * script/lua/lopcodes.c: Likewise.
12270 * script/lua/lopcodes.h: Likewise.
12271 * script/lua/loslib.c: Likewise.
12272 * script/lua/lparser.c: Likewise.
12273 * script/lua/lparser.h: Likewise.
12274 * script/lua/lstate.c: Likewise.
12275 * script/lua/lstate.h: Likewise.
12276 * script/lua/lstring.c: Likewise.
12277 * script/lua/lstring.h: Likewise.
12278 * script/lua/lstrlib.c: Likewise.
12279 * script/lua/ltable.c: Likewise.
12280 * script/lua/ltable.h: Likewise.
12281 * script/lua/ltablib.c: Likewise.
12282 * script/lua/ltm.c: Likewise.
12283 * script/lua/ltm.h: Likewise.
12284 * script/lua/lua.h: Likewise.
12285 * script/lua/luaconf.h: Likewise.
12286 * script/lua/lualib.h: Likewise.
12287 * script/lua/lundump.c: Likewise.
12288 * script/lua/lundump.h: Likewise.
12289 * script/lua/lvm.c: Likewise.
12290 * script/lua/lvm.h: Likewise.
12291 * script/lua/lzio.c: Likewise.
12292 * script/lua/lzio.h: Likewise.
12293
12294 2009-05-16 Bean <bean123ch@gmail.com>
12295
12296 * include/grub/kernel.h (grub_module_header_types): Add type
12297 OBJ_TYPE_CONFIG.
12298
12299 * kern/main.c (grub_load_config): New function.
12300 (grub_main): Call grub_load_config to read boot config.
12301
12302 * grub-mkimage (generate_image): New parameter config_path.
12303 (options): New option --config.
12304 (main): Parse --config option, and pass it to generate_image.
12305
12306 2009-05-14 Christian Franke <franke@computer.org>
12307
12308 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
12309 This fixes build on Cygwin.
12310
12311 2009-05-14 Pavel Roskin <proski@gnu.org>
12312
12313 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
12314 jump. This saves two bytes, so the typical case of 2 swapped
12315 drives would fit 32 bytes.
12316
12317 2009-05-13 Pavel Roskin <proski@gnu.org>
12318
12319 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
12320 grub_uint32_t to avoid a warning.
12321
12322 * loader/i386/linux.c (allocate_pages): When assigning
12323 real_mode_mem, cast through grub_size_t to fix a warning. The
12324 code already makes sure that the value would fit a pointer.
12325 (grub_linux_setup_video): Cast render_target->data to
12326 grub_size_t to fix a warning.
12327
12328 2009-05-13 Javier Martín <lordhabbit@gmail.com>
12329
12330 * commands/i386/pc/drivemap.c: New file - implement drivemap
12331 command.
12332 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
12333 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
12334
12335 2009-05-13 Pavel Roskin <proski@gnu.org>
12336
12337 * util/i386/pc/grub-setup.c (setup): Remove unused variable
12338 embedding_area_exists.
12339
12340 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
12341
12342 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
12343 it easier to understand / work with.
12344 Improve warning messages for cases where there's no embedding area,
12345 or when it is too small (or core.img too large).
12346
12347 2009-05-13 Pavel Roskin <proski@gnu.org>
12348
12349 * loader/i386/pc/multiboot2.c: Add necessary includes for
12350 grub_multiboot2_real_boot().
12351
12352 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
12353 PX record is always little-endian. We only need the lower 2
12354 bytes of the mode.
12355
12356 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
12357 facilitate code reuse.
12358 (grub_cpio_mount): Use "struct head", not a char buffer. This
12359 fixes a warning reported by gcc 4.4.
12360
12361 * kernel/disk.c (grub_disk_read): Use void pointer for the
12362 buffer.
12363 (grub_disk_write): Use const void pointer for the buffer.
12364 Adjust all callers. Remove unnecessary casts.
12365
12366 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
12367
12368 * util/i386/pc/grub-install.in: Update copyright year.
12369
12370 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12371
12372 gptsync
12373
12374 * commands/gptsync.c: new file
12375 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
12376 (gptsync_mod_SOURCES): new variable
12377 (gptsync_mod_CFLAGS): likewise
12378 (gptsync_mod_LDFLAGS): likewise
12379 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
12380 new definition
12381 (GRUB_PC_PARTITION_TYPE_HFS): likewise
12382 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
12383 * conf/i386-ieee1275.rmk: likewise
12384 * conf/i386-pc.rmk: likewise
12385 * conf/powerpc-ieee1275.rmk: likewise
12386
12387 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12388
12389 Fixed grub-emu
12390
12391 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
12392 (grub_dl_ref): likewise
12393
12394 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
12395
12396 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
12397 split in two functions (one for msdos and one for gpt).
12398
12399 2009-05-08 Pavel Roskin <proski@gnu.org>
12400
12401 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
12402 not modified.
12403
12404 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
12405 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
12406 Initialize them with -1. Add sanity check for bad1. Eliminate
12407 nerr variable.
12408
12409 2009-05-08 David S. Miller <davem@davemloft.net>
12410
12411 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
12412
12413 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
12414
12415 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
12416 existence.
12417
12418 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
12419
12420 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
12421 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
12422
12423 2009-05-05 David S. Miller <davem@davemloft.net>
12424
12425 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
12426
12427 2009-05-05 Pavel Roskin <proski@gnu.org>
12428
12429 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
12430 of grub_dl_ref() and grub_dl_unref().
12431 * commands/parttool.c: Remove preprocessor conditionals around
12432 grub_dl_ref() and grub_dl_unref().
12433 * fs/affs.c: Likewise.
12434 * fs/afs.c: Likewise.
12435 * fs/cpio.c: Likewise.
12436 * fs/ext2.c: Likewise.
12437 * fs/fat.c: Likewise.
12438 * fs/hfs.c: Likewise.
12439 * fs/hfsplus.c: Likewise.
12440 * fs/iso9660.c: Likewise.
12441 * fs/jfs.c: Likewise.
12442 * fs/minix.c: Likewise.
12443 * fs/ntfs.c: Likewise.
12444 * fs/reiserfs.c: Likewise.
12445 * fs/sfs.c: Likewise.
12446 * fs/udf.c: Likewise.
12447 * fs/ufs.c: Likewise.
12448 * fs/xfs.c: Likewise.
12449 * include/grub/dl.h: Likewise.
12450 * loader/xnu.c: Likewise.
12451
12452 2009-05-04 Pavel Roskin <proski@gnu.org>
12453
12454 * commands/acpi.c: Remove unused variable my_mod.
12455 * partmap/amiga.c: Likewise.
12456 * partmap/apple.c: Likewise.
12457 * partmap/gpt.c: Likewise.
12458 * partmap/pc.c: Likewise.
12459 * partmap/sun.c: Likewise.
12460 * term/gfxterm.c: Likewise.
12461 * term/i386/pc/vesafb.c: Likewise.
12462 * term/i386/pc/vga.c: Likewise.
12463
12464 2009-05-04 David S. Miller <davem@davemloft.net>
12465
12466 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
12467 pointer args to grub_ieee1275_get_property().
12468
12469 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
12470
12471 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
12472 devices, and do not traverse down under controller nodes.
12473
12474 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
12475 (grub_ofdisk_open): Use it to un-escape "," characters.
12476 * kern/disk.c (find_part_sep): New.
12477 (grub_disk_open): Use it to find the first non-escaped ','
12478 character in the disk name.
12479 * util/ieee1275/devicemap.c (escape_of_path): New.
12480 (grub_util_emit_devicemap_entry): Use it.
12481 * util/sparc64/ieee1275/grub-install.in: Update script to
12482 strip partition specifiers properly by not triggering on
12483 '\' escaped ',' characters.
12484
12485 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12486
12487 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
12488 to 0x300.
12489 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
12490 resolutions.
12491 (linux_vesafb_modes): Add a lot of additional modes to the list (based
12492 on documentation from Wikipedia).
12493
12494 2009-05-04 Pavel Roskin <proski@gnu.org>
12495
12496 * disk/ata.c: Spelling fixes.
12497 * disk/raid.c: Likewise.
12498 * disk/usbms.c: Likewise.
12499 * disk/dmraid_nvidia.c: Likewise.
12500 * kern/ieee1275/openfw.c: Likewise.
12501 * kern/ieee1275/init.c: Likewise.
12502 * kern/ieee1275/cmain.c: Likewise.
12503 * boot/i386/pc/cdboot.S: Likewise.
12504 * video/readers/png.c: Likewise.
12505 * video/i386/pc/vbe.c: Likewise.
12506 * fs/udf.c: Likewise.
12507 * fs/hfs.c: Likewise.
12508 * fs/reiserfs.c: Likewise.
12509 * efiemu/runtime/efiemu.c: Likewise.
12510 * efiemu/main.c: Likewise.
12511 * efiemu/mm.c: Likewise.
12512 * include/grub/elf.h: Likewise.
12513 * include/grub/xnu.h: Likewise.
12514 * include/grub/usbdesc.h: Likewise.
12515 * include/grub/usb.h: Likewise.
12516 * include/grub/script_sh.h: Likewise.
12517 * include/grub/lib/LzmaEnc.h: Likewise.
12518 * include/grub/efiemu/efiemu.h: Likewise.
12519 * include/grub/command.h: Likewise.
12520 * normal/menu.c: Likewise.
12521 * normal/main.c: Likewise.
12522 * normal/datetime.c: Likewise.
12523 * bus/usb/uhci.c: Likewise.
12524 * mmap/i386/uppermem.c: Likewise.
12525 * mmap/mmap.c: Likewise.
12526 * commands/acpi.c: Likewise.
12527 * commands/test.c: Likewise.
12528 * partmap/apple.c: Likewise.
12529 * font/font.c: Likewise.
12530 * loader/sparc64/ieee1275/linux.c: Likewise.
12531 * loader/macho.c: Likewise.
12532 * loader/i386/bsd_trampoline.S: Likewise.
12533 * loader/i386/bsd.c: Likewise.
12534 * loader/xnu.c: Likewise.
12535 * term/i386/pc/vesafb.c: Likewise.
12536 * term/usb_keyboard.c: Likewise.
12537 * util/resolve.c: Likewise.
12538 * util/getroot.c: Likewise.
12539
12540 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
12541
12542 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
12543
12544 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12545
12546 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
12547 build error.
12548
12549 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12550
12551 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
12552 parameter only available on BIOS.
12553
12554 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
12555
12556 Removed wrong semicolon in declaration
12557
12558 * grub/misc.h (grub_dprintf): remove semicolon
12559
12560 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12561
12562 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
12563 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
12564 is done by grub_cmd_linux() now).
12565 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
12566 restore video to text mode.
12567 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
12568 indicates lack of "vga=" parameter. "vga=0" is mapped to
12569 `GRUB_LINUX_VID_MODE_NORMAL'.
12570
12571 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
12572
12573 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
12574 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
12575 and `normal/script.c'. Add `kern/rescue_reader.c',
12576 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
12577 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
12578 `grub_script.tab.c'.
12579
12580 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12581 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
12582 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12583 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
12584 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
12585
12586 * Makefile.in: Remove duplicated 2008 in Copyright line.
12587
12588 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
12589
12590 * util/misc.c (grub_util_warn): New function. Emits a warning
12591 unconditionally.
12592 * include/grub/util/misc.h (grub_util_warn): New declaration.
12593
12594 * util/i386/pc/grub-install.in: Understand --force and pass it down
12595 to grub-setup.
12596
12597 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
12598 down to setup().
12599 (setup): Improve error messages and add warnings when requested to
12600 install in odd layouts. Refuse to install using blocklists unless
12601 --force was set.
12602
12603 2009-05-04 martin f. krafft <madduck@madduck.net>
12604
12605 * disk/raid.c (grub_raid_scan_device): Improve debug message.
12606
12607 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
12608
12609 Updated copyright year
12610
12611 * fs/hfsplus.c: updated copyright year
12612
12613 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
12614
12615 HFS+ UUID
12616
12617 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
12618 in the space previously used by unused3
12619 (grub_hfsplus_uuid): new function
12620 (grub_hfsplus_fs): added uuid field
12621
12622 2009-05-03 Pavel Roskin <proski@gnu.org>
12623
12624 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
12625 suppress warnings. It's no longer needed.
12626 * disk/host.c: Likewise.
12627 * disk/ata_pthru.c: Likewise.
12628 * disk/loopback.c: Likewise.
12629 * hook/datehook.c: Likewise.
12630 * parttool/pcpart.c: Likewise.
12631 * fs/i386/pc/pxe.c: Likewise.
12632 * fs/ntfscomp.c: Likewise.
12633 * efiemu/main.c: Likewise.
12634 * mmap/mmap.c: Likewise.
12635 * commands/crc.c: Likewise.
12636 * commands/hexdump.c: Likewise.
12637 * commands/hdparm.c: Likewise.
12638 * commands/acpi.c: Likewise.
12639 * commands/echo.c: Likewise.
12640 * commands/minicmd.c: Likewise.
12641 * commands/blocklist.c: Likewise.
12642 * commands/memrw.c: Likewise.
12643 * commands/loadenv.c: Likewise.
12644 * commands/usbtest.c: Likewise.
12645 * commands/lsmmap.c: Likewise.
12646 * commands/boot.c: Likewise.
12647 * commands/parttool.c: Likewise.
12648 * commands/configfile.c: Likewise.
12649 * commands/search.c: Likewise.
12650 * commands/ieee1275/suspend.c: Likewise.
12651 * commands/cat.c: Likewise.
12652 * commands/i386/pc/pxecmd.c: Likewise.
12653 * commands/i386/pc/play.c: Likewise.
12654 * commands/i386/pc/halt.c: Likewise.
12655 * commands/i386/pc/vbeinfo.c: Likewise.
12656 * commands/i386/pc/vbetest.c: Likewise.
12657 * commands/lspci.c: Likewise.
12658 * commands/date.c: Likewise.
12659 * commands/handler.c: Likewise.
12660 * commands/ls.c: Likewise.
12661 * commands/test.c: Likewise.
12662 * commands/cmp.c: Likewise.
12663 * commands/efi/loadbios.c: Likewise.
12664 * commands/efi/fixvideo.c: Likewise.
12665 * commands/halt.c: Likewise.
12666 * commands/help.c: Likewise.
12667 * commands/reboot.c: Likewise.
12668 * hello/hello.c: Likewise.
12669 * script/sh/main.c: Likewise.
12670 * loader/xnu.c: Likewise.
12671 * term/terminfo.c: Likewise.
12672 * term/i386/pc/serial.c: Likewise.
12673 * term/usb_keyboard.c: Likewise.
12674
12675 2009-05-03 David S. Miller <davem@davemloft.net>
12676
12677 * normal/menu.c: Include grub/parser.h
12678
12679 2009-05-03 Pavel Roskin <proski@gnu.org>
12680
12681 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
12682 not char*.
12683 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
12684 Suggested by Javier Martín <lordhabbit@gmail.com>
12685
12686 * util/i386/pc/grub-mkrescue.in: Allow for the case when
12687 efiemu??.o doesn't exist.
12688 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
12689 copying.
12690
12691 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
12692
12693 FreeBSD 64-bit support
12694
12695 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
12696 and loader/i386/bsd_trampoline.S
12697 (bsd_mod_ASFLAGS): new variable
12698 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
12699 (FREEBSD_MODTYPE_KERNEL64): likewise
12700 (grub_bsd64_trampoline_start): likewise
12701 (grub_bsd64_trampoline_end): likewise
12702 (grub_bsd64_trampoline_selfjump): likewise
12703 (grub_bsd64_trampoline_gdt): likewise
12704 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
12705 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
12706 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
12707 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
12708 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
12709 of "attrib" member
12710 * loader/i386/bsd_pagetable.c: new file
12711 * loader/i386/bsd_trampoline.S: likewise
12712 * loader/i386/bsd.c (ALIGN_QWORD): new macro
12713 (ALIGN_VAR): likewise
12714 (entry_hi): new variable
12715 (kern_end_mdofs): likewise
12716 (is_64bit): likewise
12717 (grub_freebsd_add_meta): use ALIGN_VAR
12718 (grub_e820_mmap): new declaration
12719 (grub_freebsd_add_mmap): new function
12720 (grub_freebsd_add_meta_module): support 64 bit kernels
12721 (grub_freebsd_list_modules): use ALIGN_VAR
12722 (gdt_descriptor): new declaration
12723 (grub_freebsd_boot): support 64 bit kernels
12724 (grub_bsd_elf64_hook): new function
12725 (grub_bsd_load_elf): support elf64
12726
12727 2009-05-03 Bean <bean123ch@gmail.com>
12728
12729 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
12730 after we get the result of if statement.
12731
12732 2009-05-03 Bean <bean123ch@gmail.com>
12733
12734 * Makefile.in (enable_efiemu): New variable.
12735
12736 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
12737 set.
12738 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
12739 path.
12740 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
12741 path, add -mno-red-zone option.
12742 (efiemu64_s.o): Likewise.
12743 (efiemu64.o): Use macro $^ for source file.
12744
12745 * configure.ac (--enable-efiemu): New option.
12746
12747 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
12748
12749 xnu support
12750
12751 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
12752 (pkglib_MODULES): add xnu.mod
12753 (xnu_mod_SOURCES): new variable
12754 (xnu_mod_CFLAGS): likewise
12755 (xnu_mod_LDFLAGS): likewise
12756 (xnu_mod_ASFLAGS): likewise
12757 * conf/i386-pc.rmk: likewise
12758 * conf/x86_64-efi.rmk: likewise
12759 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
12760 new declaration
12761 * include/grub/i386/macho.h: new file
12762 * include/grub/i386/xnu.h: likewise
12763 * include/grub/macho.h: likewise
12764 * include/grub/machoload.h: likewise
12765 * include/grub/x86_64/macho.h: likewise
12766 * include/grub/x86_64/xnu.h: likewise
12767 * include/grub/xnu.h: likewise
12768 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
12769 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
12770 * loader/i386/efi/xnu.c: new file
12771 * loader/i386/pc/xnu.c: likewise
12772 * loader/i386/xnu.c: likewise
12773 * loader/i386/xnu_helper.S: likewise
12774 * loader/macho.c: likewise
12775 * loader/xnu.c: likewise
12776 * loader/xnu_resume.c: likewise
12777 * util/grub-dumpdevtree: likewise
12778 * include/grub/i386/pit.h: include grub/err.h
12779 (grub_pit_wait): export
12780 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
12781
12782 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12783
12784 Efiemu
12785
12786 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
12787 _linux_efi, linux_efi.
12788 new files in grub-emu
12789 new targets efiemu32.o and efiemu64.o
12790 * loader/linux_normal_efiemu.c: likewise
12791 * loader/i386/efi/linux.c: added preliminary efiemu support
12792 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
12793 files to copy
12794 * include/grub/autoefi.h: new file
12795 * include/grub/i386/efiemu.h: likewise
12796 * include/grub/i386/pc/efiemu.h: likewise
12797 * include/grub/efi/api.h: add LL suffix when necessary
12798 new definitions relating to tables
12799 * include/grub/efiemu/efiemu.h: new file
12800 * include/grub/efiemu/runtime.h: likewise
12801 * efiemu/prepare.c: likewise
12802 * efiemu/loadcore_common.c: likewise
12803 * efiemu/loadcore64.c: likewise
12804 * efiemu/runtime/efiemu.sh: likewise
12805 * efiemu/runtime/efiemu.S: likewise
12806 * efiemu/runtime/efiemu.c: likewise
12807 * efiemu/runtime/config.h: likewise
12808 * efiemu/prepare32.c: likewise
12809 * efiemu/main.c: likewise
12810 * efiemu/modules/pnvram.c: likewise
12811 * efiemu/modules/i386: likewise
12812 * efiemu/modules/i386/pc: likewise
12813 * efiemu/modules/acpi.c: likewise
12814 * efiemu/i386/pc/cfgtables.c: likewise
12815 * efiemu/i386/loadcore64.c: likewise
12816 * efiemu/i386/loadcore32.c: likewise
12817 * efiemu/prepare64.c: likewise
12818 * efiemu/loadcore.c: likewise
12819 * efiemu/symbols.c: likewise
12820 * efiemu/mm.c: likewise
12821 * efiemu/loadcore32.c: likewise
12822
12823 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12824
12825 ACPI spoofing
12826
12827 * commands/acpi.c: new file
12828 * commands/i386/pc/acpi.c: likewise
12829 * commands/efi/acpi.c: likewise
12830 * include/grub/acpi.h: likewise
12831 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
12832 (acpi_mod_SOURCES): new variable
12833 (acpi_mod_CFLAGS): likewise
12834 (acpi_mod_LDFLAGS): likewise
12835 * conf/i386-efi.rmk: likewise
12836 * conf/x86_64-efi.rmk: likewise
12837
12838 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12839
12840 Missing part from mmap patch
12841
12842 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
12843 (grub_mmap_unregister)
12844 (grub_mmap_free_and_unregister): use grub_mmap_register
12845
12846 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
12847
12848 Mmap services
12849
12850 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
12851 * loader/i386/linux.c (find_mmap_size): likewise
12852 (allocate_pages): likewise
12853 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
12854 (grub_fill_multiboot_mmap): likewise
12855 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
12856 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
12857 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
12858 (OPENBSD_MMAP_RESERVED): likewise
12859 * include/grub/i386/pc/memory.h: include grub/memory.h
12860 (grub_lower_mem): removed
12861 (grub_upper_mem): likewise
12862 (GRUB_MACHINE_MEMORY_ACPI): new definition
12863 (GRUB_MACHINE_MEMORY_NVS): likewise
12864 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
12865 (GRUB_MACHINE_MEMORY_HOLE): likewise
12866 (grub_machine_mmap_register): likewise
12867 (grub_machine_mmap_unregister): likewise
12868 (grub_machine_get_upper): likewise
12869 (grub_machine_get_lower): likewise
12870 (grub_machine_get_post64): likewise
12871 * include/grub/i386/efi/memory.h: new file
12872 * include/grub/x86_64/efi/memory.h: likewise
12873 * include/grub/efi/memory.h: likewise
12874 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
12875 (mmap_mod_SOURCES): new variable
12876 (mmap_mod_LDFLAGS): likewise
12877 (mmap_mod_ASFLAGS): likewise
12878 * conf/i386-coreboot.rmk: likewise
12879 * conf/i386-ieee1275.rmk: likewise
12880 * conf/i386-efi.rmk: likewise
12881 * conf/x86_64-efi.rmk: likewise
12882 * include/grub/types.h (UINT_TO_PTR): new macro
12883 (PTR_TO_UINT32): likewise
12884 (PTR_TO_UINT64): likewise
12885 * include/grub/memory.h: new file
12886 * mmap/i386/pc/mmap.c: likewise
12887 * mmap/i386/pc/mmap_helper.S: likewise
12888 * mmap/i386/uppermem.c: likewise
12889 * mmap/mmap.c: likewise
12890 * mmap/efi/mmap.c: likewise
12891 * kern/i386/coreboot/init.c (grub_machine_init): don't use
12892 grub_upper_mem
12893 * kern/i386/pc/init.c (grub_lower_mem): removed variable
12894 (grub_upper_mem): likewise
12895 (grub_machine_init): don't use grub_upper_mem,
12896 make grub_lower_mem local
12897 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
12898 grub_mmap_iterate and grub_mmap_get_upper
12899 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
12900
12901 2009-05-02 Bean <bean123ch@gmail.com>
12902
12903 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
12904 script/sh/parser.y.
12905 (pkglib_MODULES): Add normal.mod and sh.mod.
12906 (normal_SOURCES): New variable.
12907 (normal_mod_CFLAGS): Likewise.
12908 (normal_mod_LDFLAGS): Likewise.
12909 (sh_mod_SOURCES): Likewise.
12910 (sh_mod_CFLAGS): Likewise.
12911 (sh_mod_LDFLAGS): Likewise.
12912
12913 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
12914 script/sh/lexer.c_DEPENDENCIES.
12915 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
12916 kern/rescue_reader.c and kern/rescue_parser.c.
12917 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
12918 (grub_emu_SOURCES): Change source files.
12919 (pkglib_MODULES): Remove normal.mod.
12920 (normal_SOURCES): Removed.
12921 (normal_mod_CFLAGS): Likewise.
12922 (normal_mod_LDFLAGS): Likewise.
12923 * conf/i386-coreboot.rmk: Likewise.
12924 * conf/i386-efi.rmk: Likewise.
12925 * conf/i386-ieee1276.rmk: Likewise.
12926 * conf/powerpc-ieee1275.rmk: Likewise.
12927 * conf/sparc64-ieee1275.rmk: Likewise.
12928 * conf/x86_64-efi.rmk: Likewise.
12929
12930 * include/grub/command.h (grub_command_execute): New inline function.
12931
12932 * include/grub/menu.h (grub_menu_entry): Removed commands field.
12933
12934 * include/grub/normal.h: Remove <grub/setjmp.h>.
12935 (grub_fs_module_list): Moved to normal/autofs.c.
12936 (grub_exit_env): Removed.
12937 (grub_command_execute): Likewise.
12938 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
12939 parameter script.
12940 (read_command_list): New function declaration.
12941 (read_fs_list): Likewise.
12942
12943 * include/parser.h: Include <grub/reader.h>.
12944 (grub_parser_split_cmdline): Change type of getline parameter.
12945 (grub_parser): New structure.
12946 (grub_parser_class): New variable.
12947 (grub_parser_execute): New function declaration.
12948 (grub_register_rescue_parser): Likewise.
12949 (grub_parser_register): New inline function.
12950 (grub_parser_unregister): Likewise.
12951 (grub_parser_get_current): Likewise.
12952 (grub_parser_set_current): Likewise.
12953
12954 * include/grub/reader.h: New file.
12955 * kern/reader.c: Likewise.
12956 * kern/rescue_parser.c: Likewise.
12957 * kern/rescue_reader.c: Likewise.
12958 * normal/autofs.c: Likewise.
12959 * normal/dyncmd.c: Likewise.
12960
12961 * include/grub/rescue.h: Removed.
12962 * normal/command.h: Likewise.
12963
12964 * include/grub/script.h: Moved to ...
12965 * include/grub/script_sh.h: ... Moved here.
12966 * normal/execute.c: Moved to ...
12967 * script/sh/execute.c: ... Moved here.
12968 * normal/function.c: Moved to ...
12969 * script/sh/function.c: ... Moved here.
12970 * normal/lexer.c: Moved to ...
12971 * script/sh/lexer.c: ... Moved here.
12972 * normal/parser.y: Moved to ...
12973 * script/sh/parser.y: ... Moved here.
12974 * normal/script.c: Moved to ...
12975 * script/sh/script.c: ... Moved here.
12976
12977 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
12978 <grub/reader.h>.
12979 (grub_exit_env): Removed.
12980 (fs_module_list): Moved to normal/autofs.c.
12981 (grub_file_getline): Don't handle comment here.
12982 (free_menu): Skip removed field entry->commands.
12983 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
12984 script parameter.
12985 (read_config_file): Removed nested parameter, change getline function.
12986 (grub_enter_normal_mode): Removed.
12987 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
12988 (read_command_list): Likewise.
12989 (autoload_fs_module): Moved to normal/autofs.c.
12990 (read_fs_list): Likewise.
12991 (reader_nested): New variable.
12992 (grub_normal_execute): Run parser.sh to switch to sh parser.
12993 (grub_cmd_rescue): Removed.
12994 (cmd_normal): Removed.
12995 (grub_cmd_normal): Unregister itself at the beginning. Don't register
12996 rescue command.
12997 (grub_cmdline_run): New function.
12998 (grub_normal_reader_init): Likewise.
12999 (grub_normal_read_line): Likewise.
13000 (grub_env_write_pager): Likewise.
13001 (cmdline): New variable.
13002 (grub_normal_reader): Likewise.
13003 (GRUB_MOD_INIT): Register normal reader and set as current, register
13004 pager hook, register normal command with grub_register_command_prio,
13005 so that it won't show up in command.lst.
13006 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
13007 grub_fs_autoload_hook.
13008
13009 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
13010 (grub_menu_execute_entry): Replace grub_script_execute with
13011 grub_parser_execute, change parameter to grub_command_execute.
13012
13013 * normal/menu_text.c: Remove <grub/script.h>.
13014
13015 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
13016 and <grub/parser.h>.
13017 (run): Change editor_getline to use new parser interface. Change
13018 parameter to grub_command_execute.
13019
13020 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
13021 <grub/reader.h> and <grub/parser.h>.
13022 (grub_load_normal_mode): Execute normal command.
13023 (grub_main): Call grub_register_core_commands,
13024 grub_register_rescue_parser and grub_register_rescue_reader, use
13025 grub_reader_loop to enter input loop.
13026
13027 * kern/parser.c (grub_parser_split_cmdline): Change type of
13028 getline parameter.
13029 (grub_parser_class): New variable.
13030 (grub_parser_execute): New function.
13031
13032 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
13033 * loader/multiboot2.c: Likewise.
13034 * loader/sparc64/ieee1275/linux.c: Likewise.
13035
13036 * util/grub-emu.c (read_command_list): New dummy function.
13037
13038 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
13039
13040 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
13041 count to 16 for CCISS and IDA.
13042
13043 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
13044
13045 * normal/menu_text.c (grub_wait_after_message): Print a newline
13046 after waiting for user input.
13047
13048 * loader/i386/linux.c: Include `<grub/normal.h>'.
13049 (grub_cmd_linux): Improve the error message about `ask' mode, by
13050 waiting for user input so it's not missed (we can do this, since
13051 user requested interaction).
13052
13053 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
13054
13055 Added missing lst to grub-mkrescue
13056
13057 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
13058 and ${input_dir}/parttool.lst
13059
13060 2009-04-30 David S. Miller <davem@davemloft.net>
13061
13062 * util/hostdisk.c (device_is_wholedisk): New function.
13063 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
13064 zero only if device_is_wholedisk() returns true.
13065
13066 * util/hostdisk.c (convert_system_partition_to_system_disk):
13067 Handle virtual disk devices named /dev/vdiskX as found on sparc
13068 and powerpc.
13069
13070 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
13071 lettered partition specifier is found, convert to numbered.
13072
13073 2009-04-29 David S. Miller <davem@davemloft.net>
13074
13075 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
13076 * include/grub/sparc64/ieee1275/memory.h: Likewise.
13077
13078 * normal/command.c: Add missing newline at end of file.
13079
13080 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
13081 warnings.
13082 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
13083 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
13084 grub_ofdisk_read): Likewise, and deal similarly with the fact that
13085 ihandles have a 32-bit type but need to be stored in a "void *".
13086
13087 2009-04-28 Pavel Roskin <proski@gnu.org>
13088
13089 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
13090 not disk. Adjust all dependencies.
13091 (grub_fs_uuid_close): Use grub_device_close(), not
13092 grub_disk_close().
13093
13094 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
13095 parent's partition, don't copy it by reference, as it gets freed
13096 on close.
13097
13098 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
13099
13100 Preboot hooks support
13101
13102 * commands/boot.c (struct grub_preboot_t): new declaration
13103 (preboots_head): new variable
13104 (preboots_tail): likewise
13105 (grub_loader_register_preboot_hook): new function
13106 (grub_loader_unregister_preboot_hook): likewise
13107 (grub_loader_set): launch preboot hooks
13108 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
13109 (grub_loader_register_preboot_hook): new declaration
13110 (grub_loader_unregister_preboot_hook): likewise
13111
13112 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
13113
13114 Warning fix
13115
13116 * disk/scsi.c (grub_scsi_open): added missing cast when
13117 calling grub_dprintf
13118
13119 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
13120
13121 Bug and warning fixes
13122
13123 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
13124 declaration
13125 * commands/test.c (test_parse): fixed bug with file tests and corrected
13126 declaration of find_file
13127
13128 2009-04-26 Pavel Roskin <proski@gnu.org>
13129
13130 * Makefile.in: Don't install empty manual pages if help2man is
13131 missing. Use help2man option for output, not shell redirection.
13132
13133 2009-04-26 David S. Miller <davem@davemloft.net>
13134
13135 * util/grub-mkdevicemap.c (make_device_map): Add missing
13136 NESTED_FUNC_ATTR to process_device().
13137
13138 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13139
13140 Test command
13141
13142 * commands/test.c: rewritten to use bash-like test
13143
13144 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13145
13146 Parttool autoloading and improvements
13147
13148 * Makefile.in (pkglib_DATA): add parttool.lst
13149 (parttool.lst): new target
13150 * genmk.rb: generate parttool-*
13151 (CLEANFILES): add #{parttool}
13152 (PARTTOOLFILES): new variable
13153 * genparttoollist.sh: new file
13154 * parttool/pcpart.c (grub_pcpart_boot): more feedback
13155 (grub_pcpart_type): likewise
13156 * commands/parttool.c (helpmsg): new variable
13157 (grub_cmd_parttool): output help if not enough arguments are supplied
13158 autoload modules
13159 (GRUB_MOD_INIT(parttool)): use helpmsg
13160
13161 2009-04-24 David S. Miller <davem@davemloft.net>
13162
13163 Avoiding opening same device multiple times in device iterator.
13164
13165 * kern/device.c: (grub_device_iterate): Define struct part_ent,
13166 and use it to build a list of partitions in iterate_disk() and
13167 iterate_partition().
13168
13169 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
13170 on disk->data.
13171
13172 * disk/ieee1275/nand.c (grub_nand_iterate): Return
13173 grub_devalias_iterate() result instead of unconditional 0.
13174 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
13175 Also, capture hook return value, either directly or via
13176 grub_children_iterate(), and propagate to caller.
13177 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
13178 grub_children_iterate): Return value is now 'int' instead of
13179 'grub_err_t'.
13180 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
13181 like a proper iterator, stopping when hooks return non-zero.
13182 (grub_devalias_iterate): Likewise.
13183
13184 2009-04-23 David S. Miller <davem@davemloft.net>
13185
13186 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
13187
13188 2009-04-22 David S. Miller <davem@davemloft.net>
13189
13190 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
13191 is larger than address_cells, use that value for address_cells too.
13192
13193 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
13194 IEEE1275_MAX_PATH_LEN): Define.
13195 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
13196 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
13197 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
13198 'devtype'. Explicitly NULL terminate devalias expansion.
13199
13200 * util/sparc64/ieee1275/misc.c: New file.
13201 * util/sparc64/ieee1275/grub-setup.c: New file.
13202 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
13203 * util/sparc64/ieee1275/grub-mkimage.c: New file.
13204 * util/sparc64/ieee1275/grub-install.in: New file.
13205 * util/ieee1275/ofpath.c: New file.
13206 * util/ieee1275/devicemap.c: New file.
13207 * util/devicemap.c: New file.
13208 * util/deviceiter.c: New file.
13209 * kern/sparc64/ieee1275/init.c: New file.
13210 * include/grub/util/ofpath.h: New file.
13211 * include/grub/util/deviceiter.h: New file.
13212 * util/grub-mkdevicemap.c: Include deviceiter.h.
13213 Implement using grub_util_emit_devicemap_entry and
13214 grub_util_iterate_devices.
13215 * conf/i386-corebook.rmk: Build util/deviceiter.c and
13216 util/devicemap.c into grub-mkdevicemap
13217 * conf/i386-efi.rmk: Likewise.
13218 * conf/i386-ieee1275.rmk: Likewise.
13219 * conf/i386-pc.rmk: Likewise.
13220 * conf/powerpc-ieee1275.rmk: Likewise.
13221 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
13222 images and installation utilities. Build kernel as image
13223 instead of as elf binary. Use common rules as much as possible.
13224
13225 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13226
13227 Correct GPT definition
13228
13229 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
13230 of "attrib" member
13231
13232 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
13233
13234 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
13235
13236 2009-04-19 David S. Miller <davem@davemloft.net>
13237
13238 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
13239 (grub_rescue_cmd_linux): Rename to...
13240 (grub_cmd_linux): and fix prototype.
13241 (grub_rescue_cmd_initrd): Rename to...
13242 (grub_cmd_initrd): and fix prototype.
13243 (cmd_linux, cmd_initrd): New.
13244 (GRUB_MOD_INIT(linux)): Use grub_register_command().
13245 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
13246
13247 2009-04-17 Pavel Roskin <proski@gnu.org>
13248
13249 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
13250 format.
13251 (grub_ohci_transfer): Likewise.
13252
13253 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
13254
13255 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
13256 return without a value. Fix inconsistent indentation.
13257
13258 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
13259 match struct grub_fs.
13260
13261 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
13262 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
13263 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
13264 * commands/lspci.c (grub_lspci_iter): Likewise.
13265
13266 2009-04-16 Bean <bean123ch@gmail.com>
13267
13268 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
13269 value.
13270
13271 2009-04-15 Pavel Roskin <proski@gnu.org>
13272
13273 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
13274 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
13275 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
13276 definitions.
13277
13278 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
13279
13280 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
13281 that no multiple data or metadata areas are supported and `Unknown
13282 metadata header'.
13283
13284 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13285
13286 Move loader out of the kernel
13287
13288 * kern/loader.c: moved to ...
13289 * commands/boot.c: ... moved here
13290 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
13291 * commands/boot.c (grub_cmd_boot): moved here. All users updated
13292 * include/grub/kernel.h (grub_machine_fini): export
13293 * include/grub/loader.h (grub_loader_is_loaded): update declaration
13294 (grub_loader_set): likewise
13295 (grub_loader_unset): likewise
13296 (grub_loader_boot): likewise
13297 * conf/common.rmk: new module boot.mod
13298 (pkglib_MODULES): add boot.mod
13299 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
13300 (grub_emu_SOURCES): likewise
13301 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
13302 (grub_emu_SOURCES): likewise
13303 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
13304 (grub_emu_SOURCES): likewise
13305 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
13306 (grub_emu_SOURCES): likewise
13307 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
13308 (grub_emu_SOURCES): likewise
13309 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
13310 (grub_emu_SOURCES): likewise
13311 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
13312 (grub_emu_SOURCES): likewise
13313
13314 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13315
13316 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
13317
13318 * kern/misc.c (grub_itoa): Removed function
13319 (grub_ltoa): likewise
13320 (grub_vsprintf): use grub_lltoa
13321
13322 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13323
13324 Restore grub-emu
13325
13326 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
13327 * conf/i386-coreboot.rmk: likewise
13328 * conf/i386-ieee1275.rmk: likewise
13329 * conf/powerpc-ieee1275.rmk: likewise
13330
13331 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
13332
13333 * INSTALL: Add that `./autogen.sh' needs to be run before
13334 `./configure.'.
13335
13336 2009-04-14 Bean <bean123ch@gmail.com>
13337
13338 * Makefile.in (pkglib_DATA): Add handler.lst.
13339 (handler.lst): New rule.
13340
13341 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
13342 * conf/i386-coreboot.rmk: Likewise.
13343 * conf/i386-ieee1275.rmk: Likewise.
13344 * conf/i386-efi.rmk: Likewise.
13345 * conf/x86_64-efi.rmk: Likewise.
13346 * conf/powerpc-ieee1275.rmk: Likewise.
13347 * conf/sparc64-ieee1275.rmk: Likewise.
13348
13349 * genhandlerlist.sh: New file.
13350
13351 * genmk.rb: Add rules to generate handler.lst.
13352
13353 * include/grub/normal.h (grub_file_getline): New function definition.
13354 (read_handler_list): Likewise.
13355 (free_handler_list): Likewise.
13356
13357 * include/grub/term.h (grub_term_register_input): Add name parameter
13358 for auto generation of handler.lst.
13359 (grub_term_register_output): Likewise.
13360
13361 * normal/handler.c: New file.
13362
13363 * normal/main.c (get_line): Renamed to grub_file_getline.
13364 (read_config_file): Use the newly renamed grub_file_getline.
13365 (read_command_list): Likewise.
13366 (read_fs_list): Likewise.
13367 (grub_normal_execute): Call read_handler_list to parse handler.lst.
13368 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
13369
13370 * term/efi/console.c (grub_console_init): Add name parameter for auto
13371 generation of handler.lst.
13372 * term/gfxterm.c: Likewise.
13373 * term/i386/pc/at_keyboard.c: Likewise.
13374 * term/i386/pc/console.c: Likewise.
13375 * term/i386/pc/serial.c: Likewise.
13376 * term/i386/pc/vesafb.c: Likewise.
13377 * term/i386/pc/vga.c: Likewise.
13378 * term/i386/pc/vga_text.c: Likewise.
13379 * term/ieee1275/ofconsole.c: Likewise.
13380 * term/usb_keyboard.c: Likewise.
13381
13382 2009-04-14 Bean <bean123ch@gmail.com>
13383
13384 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
13385 properly with null character.
13386
13387 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
13388
13389 * configure: Remove.
13390 * config.h.in: Likewise.
13391 * stamp-h.in: Likewise.
13392 * DISTLIST: Likewise.
13393 * conf/common.mk: Likewise.
13394 * conf/i386-coreboot.mk: Likewise.
13395 * conf/i386-efi.mk: Likewise.
13396 * conf/i386-ieee1275.mk: Likewise.
13397 * conf/i386.mk: Likewise.
13398 * conf/i386-pc.mk: Likewise.
13399 * conf/powerpc-ieee1275.mk: Likewise.
13400 * conf/sparc64-ieee1275.mk: Likewise.
13401 * conf/x86_64-efi.mk: Likewise.
13402
13403 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
13404 develop on GRUB.
13405
13406 2009-04-14 John Stanley <jpsinthemix@verizon.net>
13407 David S. Miller <davem@davemloft.net>
13408
13409 * util/hostdisk.c (make_device_name): Fix buffer length
13410 calculations.
13411
13412 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
13413
13414 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
13415 <sys/param.h> and <sys/sysctl.h>.
13416 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
13417 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
13418 opening the device and reset them afterwards.
13419
13420 2009-04-13 Pavel Roskin <proski@gnu.org>
13421
13422 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
13423 Reported by John Stanley <jpsinthemix@verizon.net>
13424
13425 2009-04-13 Robert Millan <rmh@aybabtu.com>
13426
13427 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
13428 that name for menuentries when appropriate.
13429
13430 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
13431
13432 * util/grub.d/10_freebsd.in: Add a missing `fi'.
13433
13434 2009-04-13 Robert Millan <rmh@aybabtu.com>
13435
13436 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
13437 to Linux, simply abort telling the user it's no longer supported.
13438
13439 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
13440
13441 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
13442 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
13443 `freebsd_loadenv' only when devices.hints exist.
13444
13445 2009-04-13 Pavel Roskin <proski@gnu.org>
13446
13447 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
13448
13449 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
13450
13451 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
13452 partition number.
13453 (grub_drive): Likewise.
13454
13455 2009-04-13 David S. Miller <davem@davemloft.net>
13456
13457 * kern/sparc64/ieee1275/ieee1275.c: New file.
13458 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
13459 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
13460 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
13461 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
13462 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
13463 grub_ieee1275_alloc_physmem): Declare new exported functions.
13464
13465 * include/grub/sparc64/ieee1275/loader.h: New file.
13466 * include/grub/sparc64/ieee1275/memory.h: Likewise.
13467 * include/grub/sparc64/kernel.h: Likewise.
13468 * loader/sparc64/ieee1275/linux.c: Likewise.
13469
13470 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
13471 (grub_fstest_SOURCES): Likewise.
13472
13473 * util/hostdisk.c (make_device_name): Do not make any assumptions
13474 about the length of drive names.
13475
13476 * kern/dl.c (grub_dl_load_file): Close file immediately when
13477 we are done using it.
13478
13479 2009-04-12 David S. Miller <davem@davemloft.net>
13480
13481 * kern/misc.c (grub_ltoa): Fix cast when handling negative
13482 values. Noticed by Pavel Roskin.
13483
13484 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
13485 target compiler.
13486
13487 * genmk.rb: Add more flexible image type specification, also
13488 pass --strip-unneeded to objcopy.
13489 * conf/i386-pc.rmk: Use *_FORMAT.
13490 * conf/i386-pc.mk: Rebuilt.
13491
13492 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
13493 (OFDISK_HASH_SZ): Define.
13494 (ofdisk_hash): New hash table.
13495 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
13496 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
13497 instead of device phandle which is not unique.
13498
13499 * kern/sparc64/ieee1275/init.c: Delete, replace with...
13500 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
13501 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
13502 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
13503 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
13504 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
13505 GRUB_KERNEL_MACHINE_DATA_END): Define.
13506 (grub_kernel_image_size, grub_total_module_size): Declare.
13507
13508 2009-04-12 Pavel Roskin <proski@gnu.org>
13509
13510 * configure.ac: Change the logic when we check for target tools.
13511 Do it when the target is specified and it's different from the
13512 specified value of the host.
13513
13514 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
13515
13516 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
13517 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
13518 GNU/kFreeBSD. Check if a device is a character device. Use
13519 DIOCGMEDIASIZE to get the size.
13520 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
13521 support for GNU/kFreeBSD.
13522 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
13523 is a character device instead of a block device. Add support for
13524 FreeBSD device names.
13525
13526 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
13527 is a character device instead of a block device.
13528
13529 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
13530 is a character device instead of a block device.
13531
13532 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
13533
13534 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
13535 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
13536 FreeBSD. Check if a device is a character device. Use
13537 DIOCGMEDIASIZE to get the size.
13538 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
13539 support for FreeBSD.
13540 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
13541 is a character device instead of a block device. Add support for
13542 FreeBSD device names.
13543
13544 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
13545 a character device instead of a block device.
13546 (grub_util_check_char_device): New function.
13547
13548 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
13549 a character device instead of a block device.
13550
13551 * include/grub/util/getroot.h (grub_util_check_char_device): New
13552 prototype.
13553
13554 2009-04-11 David S. Miller <davem@davemloft.net>
13555
13556 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
13557 static libgcc.
13558 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
13559 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
13560 function, if present.
13561 (__bswapdi2): Likewise.
13562
13563 * include/grub/sparc64/ieee1275/boot.h: New file.
13564 * boot/sparc64/ieee1275/boot.S: Likewise.
13565 * boot/sparc64/ieee1275/diskboot.S: Likewise.
13566
13567 * kern/misc.c (grub_ltoa): New function.
13568 (grub_vsprintf): Use it to format 'long' integers.
13569
13570 2009-04-10 David S. Miller <davem@davemloft.net>
13571
13572 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
13573 slots are of type grub_ieee1275_cell_t.
13574 (grub_nand_read): Likewise.
13575 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
13576 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
13577 macros are used to compare values in arg/ret block of the call.
13578 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
13579 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
13580 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
13581 grub_ieee1275_instance_to_path, grub_ieee1275_write,
13582 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
13583 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
13584 grub_ieee1275_close, grub_ieee1275_set_property,
13585 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
13586 grub_ieee1275_cell_t.
13587 * kern/ieee1275/openfw.c (grub_map): Likewise.
13588 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
13589 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
13590
13591 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
13592 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
13593 (grub_devalias_iterate): Likewise.
13594
13595 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13596
13597 UFS improvements
13598
13599 * fs/ufs.c (INODE_NBLOCKS): new definition
13600 (struct grub_ufs_dirent): added fields for non-BSD dirents
13601 (grub_ufs_get_file_block): fixed double indirect handling
13602 (grub_ufs_lookup_symlink): use more robust way to determine whether
13603 symlink is inline
13604 (grub_ufs_find_file): support for non-BSD dirents
13605 (grub_ufs_dir): support for non-BSD dirents
13606
13607 2009-04-10 Bean <bean123ch@gnail.com>
13608
13609 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
13610 attribute, otherwise the size would be wrong for i386 platform.
13611
13612 * include/grub/pci.h (grub_pci_read_word): New inline function.
13613 (grub_pci_read_byte): Likewise.
13614 (grub_pci_write): Likewise.
13615 (grub_pci_write_word): Likewise.
13616 (grub_pci_write_byte): Likewise.
13617
13618 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
13619
13620 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
13621 (find_framebuf): Scan pci to locate the frame buffer address.
13622
13623 * commands/efi/fixvideo.c: New file.
13624
13625 * commands/efi/loadbios.c: Likewise.
13626
13627 * commands/memrw.c: Likewise.
13628
13629 * util/grub-dumpbios.in: Likewise.
13630
13631 * conf/common.rmk (grub-dumpbios): New utility.
13632 (pkglib_MODULES): New module memrw.mod.
13633 (memrw_mod_SOURCE): New macro.
13634 (memrw_mod_CFLAGS): Likewise.
13635 (memrw_mod_LDFLAGS): Likewise.
13636
13637 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
13638 fixvideo.mod.
13639 (loadbios_mod_SOURCE): New macro.
13640 (loadbios_mod_CFLAGS): Likewise.
13641 (loadbios_mod_LDFLAGS): Likewise.
13642 (fixvideo_mod_SOURCE): Likewise.
13643 (fixvideo_mod_CFLAGS): Likewise.
13644 (fixvideo_mod_LDFLAGS): Likewise.
13645
13646 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
13647 fixvideo.mod.
13648 (loadbios_mod_SOURCE): New macro.
13649 (loadbios_mod_CFLAGS): Likewise.
13650 (loadbios_mod_LDFLAGS): Likewise.
13651 (fixvideo_mod_SOURCE): Likewise.
13652 (fixvideo_mod_CFLAGS): Likewise.
13653 (fixvideo_mod_LDFLAGS): Likewise.
13654
13655 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
13656
13657 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
13658
13659 2009-04-07 David S. Miller <davem@davemloft.net>
13660
13661 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
13662 support for R_SPARC_OLO10 relocations. Fix compile warning for
13663 R_SPARC_WDISP30 case.
13664 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
13665
13666 2009-04-06 Pavel Roskin <proski@gnu.org>
13667
13668 * include/grub/misc.h (ARRAY_SIZE): New macro.
13669 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
13670 New macro.
13671 * loader/i386/linux.c (allocate_pages): Use free_pages().
13672 (grub_linux_unload): Don't use free_pages().
13673 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
13674 wrong index. Treat all other modes as text modes.
13675 (grub_cmd_linux): Initialize vid_mode unconditionally to
13676 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
13677
13678 * commands/help.c (print_command_help): Use cmd->prio, not
13679 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
13680
13681 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13682
13683 Parttool
13684
13685 * parttool/pcpart.c: new file
13686 * commands/parttool.c: likewise
13687 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
13688 (parttool_mod_SOURCES): new variable
13689 (parttool_mod_CFLAGS): likewise
13690 (parttool_mod_LDFLAGS): likewise
13691 (pcpart_mod_SOURCES): likewise
13692 (pcpart_mod_CFLAGS): likewise
13693 (pcpart_mod_LDFLAGS): likewise
13694 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
13695 and parttool/pcpart.c
13696 * conf/i386-efi.rmk: likewise
13697 * conf/i386-ieee1275.rmk: likewise
13698 * conf/i386-pc.rmk: likewise
13699 * conf/powerpc-ieee1275.rmk: likewise
13700 * conf/sparc64-ieee1275.rmk: likewise
13701 * conf/x86_64-ieee1275.rmk: likewise
13702
13703 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
13704
13705 Support for mtime and further expandability of dir command
13706
13707 * include/grub/lib/datetime.h: moved to ...
13708 * include/grub/datetime.h: ... moved here and added
13709 declaration of grub_unixtime2datetime. All users updated
13710 * include/grub/fs.h: new syntax for dir and mtime functions in
13711 struct grub_fs
13712 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
13713 and GRUB_FSHELP_FLAGS_MASK
13714 * commands/ls.c (grub_ls_list_files): Write mtime in long format
13715 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
13716 (grub_ext2_mtime): new function
13717 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
13718 (grub_hfsplus_mtime): new function
13719 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
13720 (GRUB_UFS_ATTR_FILE): likewise
13721 (GRUB_UFS_ATTR_LNK): likewise
13722 (struct grub_ufs_sblock): new fields mtime
13723 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
13724 all users updated
13725 (grub_ufs_dir): mtime support
13726 (grub_ufs_mtime): new function
13727 * fs/affs.c (grub_affs_dir): use new dir syntax
13728 * fs/afs.c (grub_afs_dir): likewise
13729 * fs/cpio.c (grub_cpio_dir): likewise
13730 * fs/fat.c (grub_fat_find_dir): likewise
13731 * fs/hfs.c (grub_hfs_dir): likewise
13732 * fs/iso9660.c (grub_iso9660_dir): likewise
13733 * fs/jfs.c (grub_jfs_dir): likewise
13734 * fs/minix.c (grub_minix_dir): likewise
13735 * fs/ntfs.c (grub_ntfs_dir): likewise
13736 * fs/reiserfs.c (grub_reiserfs_dir): likewise
13737 * fs/sfs.c (grub_sfs_dir): likewise
13738 * fs/xfs.c (grub_xfs_dir): likewise
13739 * util/hostfs.c (grub_hostfs_dir): likewise
13740 * lib/datetime.c: moved to ...
13741 * normal/datetime.c: ... moved here
13742 (grub_unixtime2datetime): new function
13743 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
13744 * normal/completion.c (iterate_dir): use new dir syntax
13745 * normal/misc.c (grub_normal_print_device_info): tell the
13746 last modification time of a volume
13747 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
13748 * conf/common.rmk: added lib/datetime.c to ls.mod
13749 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
13750 (normal_mod_SOURCES): likewise
13751 (datetime_mod_SOURCES): Removed lib/datetime.c
13752 * conf/i386-efi.rmk: likewise
13753 * conf/i386-ieee1275.rmk: likewise
13754 * conf/i386-pc.rmk: likewise
13755 * conf/powerpc-ieee1275.rmk: likewise
13756 * conf/sparc64-ieee1275.rmk: likewise
13757 * conf/x86_64-efi.rmk: likewise
13758
13759 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
13760
13761 Trim trailing spaces in FAT label and support mtools-like labels
13762
13763 * fs/fat.c (grub_fat_iterate_dir): New function based
13764 on grub_fat_find_dir
13765 (grub_fat_find_dir): use grub_fat_iterate_dir
13766 (grub_fat_label): likewise
13767
13768 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
13769
13770 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
13771 and command.h
13772 remove extraneous kernel_elf_HEADERS
13773
13774 2009-04-04 Bean <bean123ch@gnail.com>
13775
13776 * include/grub/util/misc.h: Add dummy function fsync for mingw.
13777
13778 * util/misc.c: Likewise.
13779
13780 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
13781
13782 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
13783 instead of grub_printf.
13784
13785 2009-04-03 Robert Millan <rmh@aybabtu.com>
13786
13787 * loader/i386/linux.c (grub_linux_setup_video): Fill
13788 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
13789 values from `mode info' structure instead of hardcoded
13790 values.
13791
13792 2009-04-01 Pavel Roskin <proski@gnu.org>
13793
13794 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
13795 unused now.
13796 * genmk.rb: Likewise.
13797 * configure.ac: Likewise.
13798
13799 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
13800
13801 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
13802 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
13803
13804 2009-04-01 David S. Miller <davem@davemloft.net>
13805
13806 * normal/sparc64/setjmp.S: Fix setjmp implementation.
13807 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
13808 (grub_setjmp): Mark with 'returns_twice' attribute.
13809 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
13810 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
13811 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
13812
13813 2009-04-01 Robert Millan <rmh@aybabtu.com>
13814
13815 Reapply fix from 2008-07-28 which was accidentally reverted; also
13816 perform the same fix to a similar check in same function.
13817
13818 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
13819 with the same number are found, just use issue a warning with
13820 grub_dprintf(), as this error has been reported to be non-fatal.
13821
13822 2009-03-31 Pavel Roskin <proski@gnu.org>
13823
13824 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
13825 for cross-compilation.
13826
13827 2009-03-30 Robert Millan <rmh@aybabtu.com>
13828
13829 Fix i386-ieee1275 build.
13830
13831 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
13832 Remove declaration.
13833
13834 2009-03-30 Pavel Roskin <proski@gnu.org>
13835
13836 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
13837 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
13838 zero-terminated, rely only on the strlen value. Fix comparison
13839 of strings differing in length.
13840
13841 2009-03-30 Robert Millan <rmh@aybabtu.com>
13842
13843 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
13844 checking for abi version. Improve error messages on BIOS to notify
13845 user about `linux16' command.
13846
13847 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13848
13849 Leak fixes
13850
13851 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
13852 in case of collision
13853 * disk/scsi.c (grub_scsi_open): free scsi in case of error
13854
13855 2009-03-29 Robert Millan <rmh@aybabtu.com>
13856
13857 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
13858 set `vid_mode' accordingly.
13859 (grub_linux_boot): Process `vid_mode' and set video mode.
13860
13861 2009-03-29 Robert Millan <rmh@aybabtu.com>
13862
13863 * util/grub.d/10_linux.in (linux_entry): New function.
13864 Factorize generation of Linux boot entries.
13865
13866 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
13867
13868 Make the format of Environment Block plain text. The boot loader
13869 part is not tested well yet.
13870
13871 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
13872 (buffer): Removed.
13873 (envblk): Likewise.
13874 (usage): Remove "info" and "clear". Add "unset". Update the
13875 description of "set", as this does not delete variables any
13876 longer.
13877 (create_envblk_file): Complete rewrite.
13878 (open_envblk_file): Likewise.
13879 (cmd_info): Removed.
13880 (cmd_list): Likewise.
13881 (cmd_set): Likewise.
13882 (cmd_clear): Likewise.
13883 (list_variables): New function.
13884 (write_envblk): Likewise.
13885 (set_variables): Likewise.
13886 (unset_variables): Likewise.
13887 (main): Complete rewrite.
13888
13889 * commands/loadenv.c (buffer): Removed.
13890 (envblk): Likewise.
13891 (open_envblk_file): New function.
13892 (read_envblk_file): Complete rewrite.
13893 (grub_cmd_load_env): Likewise.
13894 (grub_cmd_list_env): Likewise.
13895 (struct blocklist): New struct.
13896 (free_blocklists): New function.
13897 (check_blocklists): Likewise.
13898 (write_blocklists): Likewise.
13899 (grub_cmd_save_env): Complete rewrite.
13900
13901 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
13902 a plain text signature.
13903 (GRUB_ENVBLK_MAXLEN): Removed.
13904 (struct grub_envblk): Complete rewrite.
13905 (grub_envblk_find): Removed.
13906 (grub_envblk_insert): Likewise.
13907 (grub_envblk_open): New prototype.
13908 (grub_envblk_set): Likewise.
13909 (grub_envblk_delete): Put const to VALUE.
13910 (grub_envblk_iterate): Put const to NAME and VALUE.
13911 (grub_envblk_close): New prototype.
13912 (grub_envblk_buffer): New inline function.
13913 (grub_envblk_size): Likewise.
13914
13915 * lib/envblk.c: Include grub/mm.h.
13916 (grub_env_find): Removed.
13917 (grub_envblk_open): New function.
13918 (grub_envblk_close): Likewise.
13919 (escaped_value_len): Likewise.
13920 (find_next_line): Likewise.
13921 (grub_envblk_insert): Removed.
13922 (grub_envblk_set): New function.
13923 (grub_envblk_delete): Complete rewrite.
13924 (grub_envblk_iterate): Likewise.
13925
13926 2009-03-28 Robert Millan <rmh@aybabtu.com>
13927
13928 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
13929 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
13930 variables. Use 16-bit loader.
13931 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
13932 loader.
13933 * kern/i386/loader.S (grub_linux_boot): Rename to ...
13934 (grub_linux16_boot): ... this. Update all users.
13935 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
13936 (grub_linux_boot): ... this. Update all users.
13937
13938 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
13939 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
13940 commands to `linux16' and `initrd16'.
13941 (GRUB_MOD_FINI(linux)): Rename to ...
13942 (GRUB_MOD_FINI(linux16)): ... this.
13943
13944 2009-03-24 Pavel Roskin <proski@gnu.org>
13945
13946 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
13947 not just for compilation.
13948
13949 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
13950
13951 Move multiboot helper out of kernel
13952
13953 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
13954 `loader/i386/multiboot_helper.S'.
13955 * conf/i386-coreboot.rmk: Likewise
13956 * conf/i386-ieee1275.rmk: Likewise
13957
13958 * kern/i386/loader.S: Move multiboot helpers from here...
13959 * loader/i386/multiboot_helper.S: ...moved here
13960 * include/grub/i386/loader.h: Move declarations of multiboot
13961 helpers from here...
13962 * include/grub/i386/multiboot.h: ...moved here
13963 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
13964
13965 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13966
13967 * kern/env.c (grub_env_context_open): Added an argument to specify
13968 whether a new context inherits exported variables from current
13969 one. This is useful when making a sandbox to interpret a config
13970 file.
13971 All callers updated.
13972
13973 * include/grub/env.h (grub_env_context_open): Updated the prototype.
13974
13975 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13976
13977 * kern/env.c (grub_env_context_close): Fix memory leaks.
13978
13979 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
13980
13981 * normal/main.c (grub_normal_execute): Added an argument
13982 BATCH to specify if an interactive interface should be provided
13983 after reading a config file.
13984 All callers updated.
13985 (read_command_list): Prevent being executed twice.
13986 (read_fs_list): Likewise.
13987
13988 * include/grub/normal.h (grub_normal_execute): Updated the
13989 prototype.
13990
13991 2009-03-22 Pavel Roskin <proski@gno.org>
13992
13993 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
13994 _start.
13995 * kern/i386/pc/startup.S: Likewise.
13996 * kern/i386/efi/startup.S: Likewise.
13997 * kern/i386/ieee1275/startup.S: Likewise.
13998 * kern/i386/coreboot/startup.S: Likewise.
13999 * kern/x86_64/efi/startup.S: Likewise.
14000
14001 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
14002 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
14003 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
14004
14005 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
14006
14007 Bugfixes in multiboot for bugs uncovered by solaris kernel.
14008
14009 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
14010 limit detection.
14011 Use vaddr of correct segment for entry_point.
14012
14013 2009-03-21 Bean <bean123ch@gmail.com>
14014
14015 * commands/blocklist.c: Add include file <grub/command.h>, remove
14016 <grub/normal.h> and <grub/arg.h>.
14017 (grub_cmd_blocklist): Use the new command interface.
14018 (GRUB_MOD_INIT): Likewise.
14019 (GRUB_MOD_FINI): Likewise.
14020 * commands/boot.c: Likewise.
14021 * commands/cat.c: Likewise.
14022 * commands/cmp.c: Likewise.
14023 * commands/configfile.c: Likewise.
14024 * commands/crc.c: Likewise.
14025 * commands/echo.c: Likewise.
14026 * commands/halt.c: Likewise.
14027 * commands/handler.c: Likewise.
14028 * commands/hdparm.c: Likewise.
14029 * commands/help.c: Likewise.
14030 * commands/hexdump.c: Likewise.
14031 * commands/loadenv.c: Likewise.
14032 * commands/ls.c: Likewise.
14033 * commands/lsmmap.c: Likewise.
14034 * commands/lspci.c: Likewise.
14035 * commands/loadenv.c: Likewise.
14036 * commands/read.c: Likewise.
14037 * commands/reboot.c: Likewise.
14038 * commands/search.c: Likewise.
14039 * commands/sleep.c: Likewise.
14040 * commands/test.c: Likewise.
14041 * commands/usbtest.c: Likewise.
14042 * commands/videotest.c: Likewise.
14043 * commands/i386/cpuid.c: Likewise.
14044 * commands/i386/pc/halt.c: Likewise.
14045 * commands/i386/pc/play.c: Likewise.
14046 * commands/i386/pc/pxecmd.c: Likewise.
14047 * commands/i386/pc/vbeinfo.c: Likewise.
14048 * commands/i386/pc/vbetest.c: Likewise.
14049 * commands/ieee1275/suspend.c: Likewise.
14050 * disk/loopback.c: Likewise.
14051 * font/font_cmd.c: Likewise.
14052 * hello/hello.c: Likewise.
14053 * loader/efi/appleloader.c: Likewise.
14054 * loader/efi/chainloader.c: Likewise.
14055 * loader/i386/bsd.c: Likewise.
14056 * loader/i386/efi/linux.c: Likewise.
14057 * loader/i386/ieee1275/linux.c: Likewise.
14058 * loader/i386/linux.c: Likewise.
14059 * loader/i386/pc/chainloader.c: Likewise.
14060 * loader/i386/pc/linux.c: Likewise.
14061 * loader/powerpc/ieee1275/linux.c: Likewise.
14062 * loader/multiboot_loader.c: Likewise.
14063 * term/gfxterm.c: Likewise.
14064 * term/i386/pc/serial.c: Likewise.
14065 * term/terminfo.c: Likewise.
14066
14067 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
14068 * term/i386/pc/vga.c: Likewise.
14069 * video/readers/jpeg.c: Likewise.
14070 * video/readers/png.c: Likewise.
14071 * video/readers/tga.c: Likewise.
14072
14073 * util/grub-fstest (cmd_loopback): Removed.
14074 (cmd_blocklist): Likewise.
14075 (cmd_ls): Likewise.
14076 (grub_register_command): Likewise.
14077 (grub_unregister_command): Likewise.
14078 (execute_command): Use grub_command_find to locate command and execute
14079 it.
14080
14081 * include/grub/efi/chainloader.h: Removed.
14082 * loader/efi/chainloader_normal.c: Likewise.
14083 * loader/i386/bsd_normal.c: Likewise.
14084 * loader/i386/pc/chainloader_normal.c: Likewise.
14085 * loader/i386/pc/multiboot_normal.c: Likewise.
14086 * loader/linux_normal.c: Likewise.
14087 * loader/multiboot_loader_normal.c: Likewise.
14088 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
14089
14090 * gencmdlist.sh: Scan new registration command grub_register_extcmd
14091 and grub_register_command_p1.
14092
14093 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
14094 kern/command.c, lib/arg.c and commands/extcmd.c.
14095 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
14096 (minicmd_mod_SOURCES): New variable.
14097 (minicmd_mod_CFLAGS): Likewise.
14098 (minicmd_mod_LDFLAGS): Likewise.
14099 (extcmd_mod_SOURCES): Likewise.
14100 (extcmd_mod_CFLAGS): Likewise.
14101 (extcmd_mod_LDFLAGS): Likewise.
14102 (boot_mod_SOURCES): Removed.
14103 (boot_mod_CFLAGS): Likewise.
14104 (boot_mod_LDFLAGS): Likewise.
14105
14106 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
14107 kern/corecmd.c.
14108 (kernel_img_HEADERS): Add command.h.
14109 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
14110 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
14111 and lib/arg.c.
14112 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
14113 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
14114 remove the corresponding normal mode command.
14115 (normal_mod_SOURCES): Remove normal/arg.c.
14116 * conf/i386-coreboot.rmk: Likewise.
14117 * conf/i386-efi.rmk: Likewise.
14118 * conf/i386-ieee1275.rmk: Likewise.
14119 * conf/powerpc-ieee1275.rmk: Likewise.
14120 * conf/x86_64-efi.rmk: Likewise.
14121
14122 * include/grub/arg.h: Move from here ...
14123 * include/grub/lib/arg.h: ... to here.
14124
14125 * normal/arg.c: Move from here ...
14126 * lib/arg.c: ... to here.
14127
14128 * commands/extcmd.c: New file.
14129 * commands/minicmd.c: Likewise.
14130 * include/grub/command.h: Likewise.
14131 * include/grub/extcmd.h: Likewise.
14132 * kern/command.c: Likewise.
14133 * kern/corecmd.c: Likewise.
14134
14135 * kern/list.c (grub_list_iterate): Return int instead of void.
14136 (grub_list_insert): New function.
14137 (grub_prio_list_insert): Likewise.
14138
14139 * kern/rescue.c (grub_rescue_command): Removed.
14140 (grub_rescue_command_list): Likewise.
14141 (grub_rescue_register_command): Likewise.
14142 (grub_rescue_unregister_command): Likewise.
14143 (grub_rescue_cmd_boot): Move to minicmd.c
14144 (grub_rescue_cmd_help): Likewise.
14145 (grub_rescue_cmd_info): Likewise.
14146 (grub_rescue_cmd_boot): Likewise.
14147 (grub_rescue_cmd_testload): Likewise.
14148 (grub_rescue_cmd_dump): Likewise.
14149 (grub_rescue_cmd_rmmod): Likewise.
14150 (grub_rescue_cmd_lsmod): Likewise.
14151 (grub_rescue_cmd_exit): Likewise.
14152 (grub_rescue_print_devices): Moved to corecmd.c.
14153 (grub_rescue_print_files): Likewise.
14154 (grub_rescue_cmd_ls): Likewise.
14155 (grub_rescue_cmd_insmod): Likewise.
14156 (grub_rescue_cmd_set): Likewise.
14157 (grub_rescue_cmd_unset): Likewise.
14158 (attempt_normal_mode): Use grub_command_find to get normal module.
14159 (grub_enter_rescue_mode): Use grub_register_core_commands to register
14160 commands, remove grub_rescue_register_command calls.
14161
14162 * normal/command.c (grub_register_command): Removed.
14163 (grub_unregister_command): Likewise.
14164 (grub_command_find): Likewise.
14165 (grub_iterate_commands): Likewise.
14166 (rescue_command): Likewise.
14167 (export_command): Moved to corecmd.c.
14168 (set_command): Removed.
14169 (unset_command): Likewise.
14170 (insmod_command): Likewise.
14171 (rmmod_command): Likewise.
14172 (lsmod_command): Likewise.
14173 (grub_command_init): Likewise.
14174
14175 * normal/completion.c (iterate_command): Use cmd->prio to check for
14176 active command.
14177 (complete_arguments): Use grub_extcmd_t structure to find options.
14178 (grub_normal_do_completion): Change function grub_iterate_commands to
14179 grub_command_iterate.
14180
14181 * normal/execute.c (grub_script_execute_cmd): No need to parse
14182 argument here.
14183
14184 * normal/main.c (grub_dyncmd_dispatcher): New function.
14185 (read_command_list): Register unload commands as dyncmd.
14186 (grub_cmd_normal): Use new command interface, register rescue,
14187 unregister normal at entry, register normal, unregister rescue at exit.
14188
14189 * include/grub/list.h (grub_list_test_t): New type.
14190 (grub_list_iterate): Return int instead of void.
14191 (grub_list_insert): New function.
14192 (GRUB_AS_NAMED_LIST_P): New macro.
14193 (GRUB_AS_PRIO_LIST): Likewise.
14194 (GRUB_AS_PRIO_LIST_P): Likewise.
14195 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
14196 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
14197 (grub_prio_list): New structure.
14198 (grub_prio_list_insert): New function.
14199 (grub_prio_list_remove): New inline function.
14200
14201 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
14202 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
14203 (GRUB_COMMAND_FLAG_MENU): Likewise.
14204 (GRUB_COMMAND_FLAG_BOTH): Likewise.
14205 (GRUB_COMMAND_FLAG_TITLE): Likewise.
14206 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
14207 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
14208 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
14209 (grub_command): Likewise.
14210 (grub_register_command): Likewise.
14211 (grub_command_find): Likewise.
14212 (grub_iterate_commands): Likewise.
14213 (grub_command_init): Likewise.
14214 (grub_arg_parse): Likewise.
14215 (grub_arg_show_help): Likewise.
14216
14217 * include/grub/rescue.h (grub_rescue_register_command): Removed.
14218 (grub_rescue_unregister_command): Likewise.
14219
14220 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
14221 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
14222 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
14223
14224 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
14225 grub_rescue_cmd_initrd.
14226 * include/grub/i386/loader.h: Likewise.
14227 * include/grub/x86_64/loader.h: Likewise.
14228
14229 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
14230
14231 2009-03-21 Bean <bean123ch@gmail.com>
14232
14233 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
14234 instead of stat in mingw environment.
14235
14236 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
14237
14238 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
14239
14240 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
14241 AC_CONFIG_LINKS.
14242
14243 2009-03-21 Bean <bean123ch@gmail.com>
14244
14245 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
14246 out of range error.
14247
14248 2009-03-18 Michel Dänzer <michel@daenzer.net>
14249
14250 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
14251 checking inode flags for EXT4_EXTENTS_FLAG.
14252
14253 2009-03-18 Robert Millan <rmh@aybabtu.com>
14254
14255 * loader/i386/linux.c: Include `<grub/video.h>' and
14256 `<grub/i386/pc/vbe.h>'..
14257 (grub_linux_setup_video): New function. Loosely based on the EFI one.
14258 (grub_linux32_boot): Attempt to configure video settings with
14259 grub_linux_setup_video().
14260 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
14261 to avoid grub_console_fini() which would step out of graphical mode
14262 unconditionally.
14263
14264 2009-03-14 Robert Millan <rmh@aybabtu.com>
14265
14266 Fix build on powerpc.
14267 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
14268
14269 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
14270
14271 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
14272 background image command.
14273
14274 2009-03-12 Colin D Bennett <colin@gibibit.com>
14275
14276 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
14277 (grub_gfxterm_putchar): Extract pairs of identical calls to
14278 draw_cursor out of conditional blocks.
14279
14280 2009-03-11 Pavel Roskin <proski@gnu.org>
14281
14282 * fs/hfs.c (grub_hfs_strncasecmp): New function.
14283 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
14284
14285 2009-03-11 Robert Millan <rmh@aybabtu.com>
14286
14287 * loader/i386/multiboot_elfxx.c
14288 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
14289
14290 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
14291
14292 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
14293 `kern/handler.c'.
14294
14295 2009-03-11 Robert Millan <rmh@aybabtu.com>
14296
14297 * loader/i386/multiboot.c (code_size): New variable.
14298 (grub_multiboot): Define offsets by adding to `code_size' rather
14299 than subtracting from `grub_multiboot_payload_size'. Provide
14300 4-byte alignment to MBI and others by increasing
14301 `boot_loader_name_length' appropriately.
14302
14303 * loader/i386/multiboot_elfxx.c
14304 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
14305
14306 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
14307
14308 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
14309 `fs/ext2.c'.
14310
14311 2009-03-08 Robert Millan <rmh@aybabtu.com>
14312
14313 Make loader/i386/linux.c usable on i386-pc again.
14314
14315 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
14316 memory to heap.
14317 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
14318 `#error' stanza.
14319
14320 2009-03-07 Bean <bean123ch@gmail.com>
14321
14322 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
14323 allocation.
14324
14325 2009-03-06 Robert Millan <rmh@aybabtu.com>
14326
14327 Fix display issue on terminals with screen size other than 80x25
14328 (e.g. gfxterm with resolution higher than 640x480).
14329
14330 * normal/main.c (grub_normal_init_page): Display title text in a
14331 position relative to the center of the terminal instead of relying
14332 on a hardcoded offset.
14333
14334 2009-03-04 Robert Millan <rmh@aybabtu.com>
14335
14336 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
14337 installed.
14338
14339 * Makefile.in (host_kernel): New variable.
14340 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
14341 scripts instead of just the windows one.
14342 * configure.ac: Initialize and AC_SUBST `host_kernel'.
14343
14344 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
14345
14346 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
14347 `kern/handler.c'.
14348 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14349 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14350 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14351 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14352 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14353 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14354
14355 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
14356
14357 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
14358 or if there's no space for the disk label and print the partition number on a
14359 invalid magic.
14360
14361 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
14362
14363 * util/misc.c: Include <time.h>.
14364 (grub_millisleep): New function.
14365
14366 2009-03-04 Bean <bean123ch@gmail.com>
14367
14368 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
14369 another option -mno-red-zone.
14370
14371 * commands/handler.c: Change module description.
14372
14373 * kern/handler.c: Add missing space at the end of description line.
14374
14375 * kern/list.c: Likewise.
14376
14377 2009-03-03 Robert Millan <rmh@aybabtu.com>
14378
14379 Move more components to the relocation area, and fix mbi pointer
14380 handling to use the destination rather than the origin (thanks to
14381 Vladimir Serbinenko for spotting).
14382
14383 * loader/i386/multiboot.c (mbi_dest): New variable.
14384 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
14385 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
14386 relocation area.
14387
14388 2009-03-01 Bean <bean123ch@gmail.com>
14389
14390 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
14391 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
14392 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
14393 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
14394
14395 * loader/i386/efi/linux.c (acpi_guid): New variable.
14396 (acpi_guid): Likewise.
14397 (EBDA_SEG_ADDR): New constant.
14398 (LOW_MEM_ADDR): Likewise.
14399 (FAKE_EBDA_SEG): Likewise.
14400 (fake_bios_data): New function.
14401 (grub_linux_boot): Call fake_bios_data.
14402
14403 2009-03-01 Bean <bean123ch@gmail.com>
14404
14405 * commands/terminal.c: Removed.
14406
14407 * commands/handler.c: New file.
14408
14409 * include/grub/list.h: Likewise.
14410
14411 * include/grub/handler.h: Likewise.
14412
14413 * kern/list.c: Likewise.
14414
14415 * kern/handler.c: Likewise.
14416
14417 * kern/term.h: Include header file <grub/handler.h>.
14418 (grub_term_input): Move next field to the beginning.
14419 (grub_term_output): Likewise.
14420 (grub_term_input_class): New variable.
14421 (grub_term_output_class): Likewise.
14422 (grub_term_register_input): Changed to inline function.
14423 (grub_term_register_output): Likewise.
14424 (grub_term_unregister_input): Likewise.
14425 (grub_term_unregister_output): Likewise.
14426 (grub_term_set_current_input): Likewise.
14427 (grub_term_set_current_output): Likewise.
14428 (grub_term_get_current_input): Likewise.
14429 (grub_term_get_current_output): Likewise.
14430 (grub_term_iterate_input): Removed.
14431 (grub_term_iterate_output): Likewise.
14432
14433 * kern/term.c (grub_term_list_input): Removed.
14434 (grub_term_list_output): Likewise.
14435 (grub_term_input_class): New variable.
14436 (grub_term_output_class): Likewise.
14437 (grub_cur_term_input): Change variable as macro.
14438 (grub_cur_term_output): Likewise.
14439 (grub_term_register_input): Removed.
14440 (grub_term_register_output): Likewise.
14441 (grub_term_unregister_input): Likewise.
14442 (grub_term_unregister_output): Likewise.
14443 (grub_term_set_current_input): Likewise.
14444 (grub_term_set_current_output): Likewise.
14445 (grub_term_iterate_input): Likewise.
14446 (grub_term_iterate_output): Likewise.
14447 (grub_term_get_current_input): Likewise.
14448 (grub_term_get_current_output): Likewise.
14449
14450 * util/grub-editenv.c: Include header file <grub/handler.h>.
14451 (grub_term_get_current_input): Removed.
14452 (grub_term_get_current_output): Likewise.
14453 (grub_term_input_class): New variable.
14454 (grub_term_output_class): Likewise.
14455
14456 * util/grub-fstest.c (grub_term_get_current_input): Removed.
14457 (grub_term_get_current_output): Likewise.
14458 (grub_term_input_class): New variable.
14459 (grub_term_output_class): Likewise.
14460
14461 * util/grub-probe.c (grub_term_get_current_input): Removed.
14462 (grub_term_get_current_output): Likewise.
14463 (grub_term_input_class): New variable.
14464 (grub_term_output_class): Likewise.
14465
14466 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
14467 (grub_term_get_current_output): Likewise.
14468 (grub_term_input_class): New variable.
14469 (grub_term_output_class): Likewise.
14470
14471 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
14472 (terminal_mod_SOURCES): Likewise.
14473 (terminal_mod_CFLAGS): Likewise.
14474 (terminal_mod_LDFLAGS): Likewise.
14475
14476 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
14477 handler.c.
14478 (kernel_img_SOURCES): Add list.c and handler.c.
14479 (kernel_img_HEADERS): Add list.h and handler.h.
14480
14481 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
14482 handler.c.
14483 (kernel_mod_SOURCES): Add list.c and handler.c.
14484 (kernel_mod_HEADERS): Add list.h and handler.h.
14485
14486 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
14487 handler.c.
14488 (kernel_elf_SOURCES): Add list.c and handler.c.
14489 (kernel_elf_HEADERS): Add list.h and handler.h.
14490
14491 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
14492 handler.c.
14493 (kernel_elf_SOURCES): Add list.c and handler.c.
14494 (kernel_elf_HEADERS): Add list.h and handler.h.
14495
14496 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
14497 handler.c.
14498 (kernel_mod_SOURCES): Add list.c and handler.c.
14499 (kernel_mod_HEADERS): Add list.h and handler.h.
14500
14501 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
14502 handler.c.
14503 (kernel_elf_SOURCES): Add list.c and handler.c.
14504 (kernel_elf_HEADERS): Add list.h and handler.h.
14505
14506 2009-02-27 Robert Millan <rmh@aybabtu.com>
14507
14508 Factorize elf32 / elf64 code in Multiboot loader. This will
14509 prevent it from getting out of sync again.
14510
14511 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
14512 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
14513 grub_multiboot_load_elf64): Move from here ...
14514 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
14515 grub_multiboot_load_elf): ... to here (new file).
14516
14517 2009-02-27 Robert Millan <rmh@aybabtu.com>
14518
14519 * util/grub.d/10_linux.in: Rename "single-user mode" to
14520 "recovery mode".
14521
14522 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
14523
14524 Don't leak in SCSI code.
14525 * disk/scsi.c (grub_scsi_close): free `scsi'.
14526
14527 2009-02-27 Robert Millan <rmh@aybabtu.com>
14528
14529 * loader/i386/pc/multiboot.c: Move from here ...
14530 * loader/i386/multiboot.c: ... to here. Update all users.
14531
14532 2009-02-27 Robert Millan <rmh@aybabtu.com>
14533
14534 Patch from Alexandre Bique <bique.alexandre@gmail.com>
14535 * util/i386/pc/grub-setup.c (setup): Fix directory path.
14536
14537 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
14538
14539 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
14540 b-tree.
14541
14542 2009-02-27 Robert Millan <rmh@aybabtu.com>
14543
14544 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
14545 `0x' qualifier as 0 when base is specified as parameter).
14546
14547 2009-02-24 Bean <bean123ch@gmail.com>
14548
14549 * configure.ac: Check for -mcmodel=large in x86_64 target.
14550
14551 * include/grub/efi/api.h (efi_call_10): New macro.
14552 (efi_wrap_10): New function.
14553
14554 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
14555 (GRUB_PE32_REL_BASED_HIGH): Likewise.
14556 (GRUB_PE32_REL_BASED_LOW): Likewise.
14557 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
14558 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
14559 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
14560 (GRUB_PE32_REL_BASED_SECTION): Likewise.
14561 (GRUB_PE32_REL_BASED_REL): Likewise.
14562 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
14563 (GRUB_PE32_REL_BASED_DIR64): Likewise.
14564 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
14565
14566 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
14567 issue.
14568
14569 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
14570 (efi_wrap_10): New function.
14571
14572 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
14573
14574 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
14575 MB/MBP model (NV chipset).
14576 (devdata_devs): Add devpath_5 to the list.
14577
14578 * load/i386/efi/linux.c (video_base): Remove variable.
14579 (RGB_MASK): New macro.
14580 (RGB_MAGIC): Likewise.
14581 (LINE_MIN): Likewise.
14582 (LINE_MAX): Likewise.
14583 (FBTEST_STEP): Likewise.
14584 (FBTEST_COUNT): Likewise.
14585 (fb_list): New variable.
14586 (grub_find_video_card): Remove function.
14587 (find_framebuf): New function.
14588 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
14589 line length.
14590
14591 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
14592 problem for x86_64.
14593
14594 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
14595
14596 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
14597
14598 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
14599 coding tool name.
14600
14601 2009-02-22 Robert Millan <rmh@aybabtu.com>
14602
14603 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
14604 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
14605 in our relocation, instead of using it directly from heap. Also
14606 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
14607
14608 2009-02-21 Robert Millan <rmh@aybabtu.com>
14609
14610 Implement USB keyboard support (based on patch by Marco Gerards)
14611
14612 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
14613 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
14614 (usb_keyboard_mod_LDFLAGS): New variables.
14615
14616 * term/usb_keyboard.c: New file.
14617
14618 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
14619
14620 Corrected wrong declaration
14621
14622 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
14623
14624 2009-02-14 Christian Franke <franke@computer.org>
14625
14626 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
14627 (grub_lspci_iter): Print class code and programming interface byte.
14628
14629 2009-02-14 Christian Franke <franke@computer.org>
14630
14631 * gendistlist.sh: Ignore `.svn' directories.
14632
14633 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
14634
14635 * fs/fat.c: Add 2009 to Copyright line.
14636
14637 2009-02-14 Christian Franke <franke@computer.org>
14638
14639 * commands/hdparm.c: New file. Provides `hdparm' command
14640 which sends ATA commands via grub_disk_ata_pass_through ().
14641
14642 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
14643
14644 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
14645 and <grub/cpu/io.h> to include/grub/ata.h.
14646 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
14647 (GRUB_CDROM_SECTOR_SIZE): Remove.
14648 (GRUB_ATA_*): Move to include/grub/ata.h.
14649 (GRUB_ATAPI_*): Likewise.
14650 (enum grub_ata_commands): Likewise.
14651 (enum grub_ata_timeout_milliseconds): Likewise.
14652 (struct grub_ata_device): Likewise.
14653 (grub_ata_regset): Likewise.
14654 (grub_ata_regget): Likewise.
14655 (grub_ata_regset2): Likewise.
14656 (grub_ata_regget2): Likewise.
14657 (grub_ata_check_ready): Likewise.
14658 (grub_ata_wait_not_busy): Remove static, exported in
14659 include/grub/ata.h.
14660 (grub_ata_wait_drq): Likewise.
14661 (grub_ata_pio_read): Likewise.
14662
14663 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
14664 function for hdparm.mod.
14665
14666 * include/grub/ata.h: New file, contains declarations from
14667 disk/ata.c.
14668 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
14669
14670 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
14671 (grub_disk_ata_pass_through): New exported variable.
14672
14673 * kern/disk.c (grub_disk_ata_pass_through): New variable.
14674
14675 2009-02-13 Colin D Bennett <colin@gibibit.com>
14676
14677 Support multiple fallback entries, and provide an API to support
14678 executing default+fallback menu entries. Renamed the `terminal' menu
14679 viewer to `text'.
14680
14681 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
14682 variable declaration.
14683 (grub_menu_execute_callback): New structure declaration.
14684 (grub_menu_execute_callback_t): New typedef.
14685 (grub_menu_execute_with_fallback): New function declaration.
14686 (grub_menu_get_entry): Likewise.
14687 (grub_menu_get_timeout): Likewise.
14688 (grub_menu_set_timeout): Likewise.
14689
14690 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
14691
14692 * normal/menu.c (grub_wait_after_message): Moved to
14693 `normal/menu_text.c'.
14694 (draw_border): Likewise.
14695 (print_message): Likewise.
14696 (print_entry): Likewise.
14697 (print_entries): Likewise.
14698 (grub_menu_init_page): Likewise.
14699 (get_entry_number): Likewise.
14700 (print_timeout): Likewise.
14701 (run_menu): Likewise.
14702 (grub_menu_execute_entry): Likewise.
14703 (show_text_menu): Likewise.
14704 (get_and_remove_first_entry_number): New function.
14705 (grub_menu_execute_with_fallback): Likewise.
14706 (get_entry): Renamed to ...
14707 (grub_menu_get_entry): .. this and made it global.
14708 (get_timeout): Renamed to ...
14709 (grub_menu_get_timeout): ... this and made it global.
14710 (set_timeout): Renamed to ...
14711 (grub_menu_set_timeout): ... this and made it global.
14712 (grub_normal_terminal_menu_viewer): Renamed to ...
14713 (grub_normal_text_menu_viewer): ... this.
14714
14715 * normal/menu_text.c: New file. Extracted text-menu-specific code
14716 from normal/menu.c.
14717
14718 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
14719 (normal_mod_SOURCES): Likewise.
14720
14721 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14722 (normal_mod_SOURCES): Likewise.
14723
14724 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14725 (normal_mod_SOURCES): Likewise.
14726
14727 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
14728 (normal_mod_SOURCES): Likewise.
14729
14730 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14731 (normal_mod_SOURCES): Likewise.
14732
14733 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14734 (normal_mod_SOURCES): Likewise.
14735
14736 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14737 (normal_mod_SOURCES): Likewise.
14738
14739 2009-02-11 Robert Millan <rmh@aybabtu.com>
14740
14741 * util/grub.d/00_header.in: Update old reference to `font' command.
14742
14743 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
14744
14745 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
14746
14747 Based on patch from Javier Martín.
14748
14749 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
14750
14751 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
14752 to avoid false positives with FAT.
14753 (grub_fstest_SOURCES): Likewise.
14754 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14755 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14756 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14757 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14758 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14759 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14760
14761 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
14762
14763 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
14764 bpb.version_specific.fat12_or_fat16.fstype and
14765 bpb.version_specific.fat32.fstype.
14766
14767 2009-02-08 Robert Millan <rmh@aybabtu.com>
14768
14769 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
14770
14771 2009-02-08 Robert Millan <rmh@aybabtu.com>
14772
14773 * Makefile.in (host_os, host_cpu): New variables.
14774 (target_os): Remove. Update all users.
14775
14776 2009-02-08 Marco Gerards <marco@gnu.org>
14777
14778 * Makefile.in (enable_grub_emu_usb): New variable.
14779 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
14780 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
14781 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
14782 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
14783 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
14784 `usbtest.mod' and `usbms.mod'.
14785 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
14786 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
14787 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
14788 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
14789 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
14790 variables.
14791
14792 * disk/usbms.c: New file.
14793
14794 * include/grub/usb.h: Likewise.
14795
14796 * include/grub/usbtrans.h: Likewise.
14797
14798 * include/grub/usbdesc.h: Likewise.
14799
14800 * bus/usb/usbtrans.c: Likewise.
14801
14802 * bus/usb/ohci.c: Likewise.
14803
14804 * bus/usb/uhci.c: Likewise.
14805
14806 * bus/usb/usbhub.c: Likewise.
14807
14808 * bus/usb/usb.c: Likewise.
14809
14810 * commands/usbtest.c: Likewise.
14811
14812 * util/usb.c: Likewise.
14813
14814 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
14815
14816 * configure.ac: Test for libusb presence.
14817
14818 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
14819
14820 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
14821
14822 * kern/mm.c: Add more comments.
14823
14824 2009-02-08 Robert Millan <rmh@aybabtu.com>
14825
14826 Patch from Javier Martín.
14827 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
14828 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
14829
14830 2009-02-08 Robert Millan <rmh@aybabtu.com>
14831
14832 * fs/cpio.c: Split tar functionality to ...
14833 * fs/tar.c: ... here (new file). Update all users.
14834
14835 2009-02-07 Robert Millan <rmh@aybabtu.com>
14836
14837 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
14838 backward-incompatible features.
14839
14840 Based on patch from Javier Martín, with some adjustments.
14841
14842 2009-02-07 Michael Scherer <misc@mandriva.org>
14843
14844 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
14845
14846 2009-02-07 Robert Millan <rmh@aybabtu.com>
14847
14848 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
14849 position of `disk/lvm.c' to ensure grub_init_all() always picks it
14850 after the RAID stuff.
14851
14852 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
14853
14854 Fixes problem when running vbetest command as reported by
14855 Vladimir Serbinenko <phcoder@gmail.com>.
14856
14857 * (grub_vbe_set_video_mode): Fixed problem with text modes.
14858
14859 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
14860
14861 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
14862 /dev/md/NpN style mdraid devices.
14863
14864 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14865
14866 * util/unifont2pff.rb: Remove.
14867
14868 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14869
14870 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
14871 `#'.
14872
14873 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
14874
14875 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
14876 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14877 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14878 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14879 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14880 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14881 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14882
14883 2009-02-02 Christian Franke <franke@computer.org>
14884
14885 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
14886
14887 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
14888
14889 * INSTALL: Note that we now require at least autoconf 2.59 and
14890 that LZO is optional.
14891
14892 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14893
14894 Base on patch on bug #24154 created by Tomas Tintera
14895 <trosos@seznam.cz>.
14896
14897 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
14898
14899 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
14900
14901 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
14902 <bero@arklinux.org>.
14903
14904 * normal/parser.y (script_init): Add missing semicolon.
14905
14906 2009-01-31 Colin D Bennett <colin@gibibit.com>
14907
14908 * normal/main.c: Add include to grub/menu_viewer.h.
14909 (free_menu_entry_classes): Added.
14910 (grub_normal_menu_addentry): Added class property handling.
14911 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
14912 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
14913
14914 * normal/menu_viewer.c: New file.
14915
14916 * normal/menu.c (run_menu_entry): Renamed to ...
14917 (grub_menu_execute_entry): ... this and made it as global.
14918 (grub_menu_run): Renamed to ...
14919 (show_text_menu): ... this and made it local.
14920 (show_text_menu): Adapt to new function names.
14921 (grub_normal_terminal_menu_viewer): New global variable.
14922
14923 * include/grub/menu.h: New file.
14924
14925 * include/grub/menu_viewer.h: New file.
14926
14927 * include/grub/normal.h: Added include to grub/menu.h.
14928 (grub_menu_entry): Moved to include/grub/menu.h.
14929 (grub_menu_entry_t): Likewise.
14930 (grub_menu): Likewise.
14931 (grub_menu_t): Likewise.
14932 (grub_normal_terminal_menu_viewer): Added.
14933 (grub_menu_execute_entry): Likewise.
14934 (grub_menu_run): Removed.
14935
14936 * DISTLIST: Added include/grub/menu.h.
14937 Added include/grub/menu_viewer.h.
14938 Added normal/menu_viewer.c.
14939
14940 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
14941
14942 * normal/execute.c (grub_script_execute_menuentry): Changed to use
14943 arglist for menutitle arguments.
14944
14945 * normal/main.c (grub_normal_menu_addentry): Likewise.
14946
14947 * normal/parser.y (menuentry): Likewise.
14948
14949 * normal/script.c (grub_script_create_cmdmenu): Likewise.
14950
14951 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
14952 (grub_script_create_cmdmenu): Likewise.
14953
14954 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
14955
14956 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
14957 changes.
14958
14959 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
14960
14961 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
14962
14963 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
14964
14965 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14966
14967 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14968
14969 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
14970
14971 2009-01-30 Christian Franke <franke@computer.org>
14972
14973 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
14974 in option help text.
14975
14976 2009-01-27 Pavel Roskin <proski@gnu.org>
14977
14978 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
14979
14980 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14981
14982 * commands/lsmmap.c: Add include to grub/machine/memory.h.
14983
14984 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
14985
14986 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
14987 unregister function.
14988
14989 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
14990
14991 * disk/scsi.c (grub_scsi_read): Fix sign problem.
14992
14993 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
14994
14995 * util/grub-mkfont.c (usage): Fix typo.
14996
14997 * util/elf/grub-mkimage.c (load_modules): Fix warning.
14998
14999 2009-01-26 Daniel Mierswa <impulze@impulze.org>
15000
15001 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
15002
15003 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
15004
15005 * kern/misc.c (grub_strcasecmp): New function.
15006 (grub_strcasecmp): Use grub_size_t instead of int for length.
15007 Fix return value.
15008 * include/grub/misc.h: Update function prototypes.
15009
15010 2009-01-26 Robert Millan <rmh@aybabtu.com>
15011
15012 * configure.ac: Fix cross-compilation check.
15013
15014 2009-01-22 Christian Franke <franke@computer.org>
15015
15016 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
15017 (precision) digit string. Allow `.format2' without `format1' (width).
15018 Limit input chars for `%s' output to `format2' if specified. This is
15019 compatible with standard printf ().
15020
15021 2009-01-22 Christian Franke <franke@computer.org>
15022
15023 * disk/ata.c (grub_ata_wait_status): Replace by ...
15024 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
15025 other status bits may be invalid while BSY is asserted.
15026 (grub_ata_check_ready): New function.
15027 (grub_ata_cmd): Removed.
15028 (grub_ata_wait_drq): New function.
15029 (grub_ata_strncpy): Remove inline.
15030 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
15031 and error check now done by grub_ata_wait_drq ().
15032 (grub_ata_pio_write): Likewise.
15033 (grub_atapi_identify): Set DEV before check for !BSY. Use
15034 grub_ata_wait_drq () to wait for data.
15035 (grub_ata_device_initialize): Add status register check to
15036 detect missing SATA slave devices. Add debug messages.
15037 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
15038 (grub_atapi_packet): Set DEV before check for !BSY. Replace
15039 transfer loop by grub_ata_pio_write ().
15040 (grub_ata_identify): Set DEV before check for !BSY. Use
15041 grub_ata_wait_drq () to wait for data.
15042 (grub_ata_setaddress): Set DEV before check for !BSY.
15043 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
15044 read/write in one loop. Fix invalid command on write. Fix incomplete
15045 command on (size % batch) == 0. Add missing error check after write of
15046 last block. Add debug messages.
15047 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
15048
15049 2009-01-19 Christian Franke <franke@computer.org>
15050
15051 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
15052 (GRUB_ATAPI_IREASON_*): Likewise.
15053 (grub_ata_pio_write): Fix timeout error return.
15054 (grub_atapi_identify): Add grub_ata_wait () after cmd.
15055 (grub_atapi_wait_drq): New function.
15056 (grub_atapi_packet): New parameter `size'.
15057 Use grub_atapi_wait_drq () and direct write instead of
15058 grub_ata_pio_write ().
15059 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
15060 reads the number of bytes requested by the device for each DRQ
15061 assertion.
15062 (grub_atapi_write): Remove old implementation, return not
15063 implemented instead.
15064
15065 2009-01-19 Christian Franke <franke@computer.org>
15066
15067 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
15068 of 512 to calculate data size.
15069 (grub_scsi_read12): Likewise.
15070 (grub_scsi_write10): Likewise.
15071 (grub_scsi_write12): Likewise.
15072 (grub_scsi_read): Adjust size according to blocksize.
15073 Add checks for invalid blocksize and unaligned transfer.
15074
15075 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
15076
15077 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
15078
15079 * term/gfxterm.c (write_char): Fix background rendering for wide
15080 width glyphs.
15081
15082 2009-01-19 Robert Millan <rmh@aybabtu.com>
15083
15084 * config.guess: Update to latest version from config git.
15085 * config.sub: Likewise.
15086
15087 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
15088
15089 * Makefile.in: Change font compilation to use new grub-mkfont instead
15090 of java version.
15091
15092 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
15093 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
15094 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
15095 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
15096 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
15097 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
15098 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
15099 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
15100 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
15101
15102 2009-01-16 Christian Franke <franke@computer.org>
15103
15104 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
15105 (enum grub_ata_timeout_milliseconds): New enum.
15106 (grub_ata_wait_status): Add parameter milliseconds.
15107 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
15108 recovery from timed-out commands.
15109 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
15110 return grub_errno instead of REG_ERROR.
15111 (grub_ata_pio_write): Add parameter milliseconds.
15112 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
15113 Pass milliseconds to grub_ata_wait_status () and
15114 grub_ata_pio_read ().
15115 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
15116 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
15117 grub_ata_wait_status (). Fix IDENTIFY timeout check.
15118 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
15119 It is not suitable for device detection, because DEV bit is ignored,
15120 the command may run too long, and not all devices set the signature
15121 properly.
15122 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
15123 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
15124 Fix device selection, DEV bit must be set first to address the registers
15125 of the correct device.
15126 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
15127 grub_ata_pio_read/write ().
15128 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
15129 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
15130
15131 2009-01-13 Carles Pina i Estany <carles@pina.cat>
15132
15133 * util/grub-editenv.c (main): Use fseeko(), not fseek().
15134
15135 2009-01-13 Bean <bean123ch@gmail.com>
15136
15137 * util/grub-mkfont.c (write_font): forget to remove some debug code.
15138
15139 2009-01-13 Bean <bean123ch@gmail.com>
15140
15141 * Makefile.in: (enable_grub_mkfont): New variable.
15142 (freetype_cflags): Likewise.
15143 (freetype_libs): Likewise.
15144
15145 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
15146 (grub_mkfont_SOURCES): New variable.
15147 (grub_mkfont_CFLAGS): Likewise.
15148 (grub_mkfont_LDFLAGS): Likewise.
15149
15150 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
15151 library if `--enable-grub-mkfont' is requested.
15152 (enable_grub_mkfont): New variable.
15153 (freetype_cflags): Likewise.
15154 (freetype_libs): Likewise.
15155
15156 * util/grub-mkfont.c: New file.
15157
15158 2009-01-12 Christian Franke <franke@computer.org>
15159
15160 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
15161 mode check. Fix setting of compat_use[].
15162
15163 2009-01-10 Robert Millan <rmh@aybabtu.com>
15164
15165 Update a few copyright years which we forgot to do in 2008 (only for
15166 files whose changes made in 2008 were copyright-significant)
15167
15168 * Makefile.in: Add 2008 to Copyright line.
15169 * disk/ieee1275/ofdisk.c: Likewise.
15170 * disk/efi/efidisk.c: Likewise.
15171 * kern/dl.c: Likewise.
15172 * kern/sparc64/ieee1275/init.c: Likewise.
15173 * kern/mm.c: Likewise.
15174 * kern/efi/mm.c: Likewise.
15175 * boot/i386/pc/boot.S: Likewise.
15176 * genfslist.sh: Likewise.
15177 * fs/iso9660.c: Likewise.
15178 * fs/hfs.c: Likewise.
15179 * fs/jfs.c: Likewise.
15180 * fs/minix.c: Likewise.
15181 * fs/ufs.c: Likewise.
15182 * gensymlist.sh.in: Likewise.
15183 * genkernsyms.sh.in: Likewise.
15184 * include/grub/misc.h: Likewise.
15185 * include/grub/types.h: Likewise.
15186 * include/grub/symbol.h: Likewise.
15187 * include/grub/elf.h: Likewise.
15188 * include/grub/kernel.h: Likewise.
15189 * include/grub/disk.h: Likewise.
15190 * include/grub/dl.h: Likewise.
15191 * include/grub/i386/linux.h: Likewise.
15192 * include/grub/i386/pc/biosdisk.h: Likewise.
15193 * include/grub/efi/api.h: Likewise.
15194 * include/grub/efi/pe32.h: Likewise.
15195 * include/grub/util/misc.h: Likewise.
15196 * normal/execute.c: Likewise.
15197 * normal/arg.c: Likewise.
15198 * normal/completion.c: Likewise.
15199 * normal/lexer.c: Likewise.
15200 * normal/parser.y: Likewise.
15201 * normal/misc.c: Likewise.
15202 * commands/i386/pc/vbeinfo.c: Likewise.
15203 * commands/hexdump.c: Likewise.
15204 * commands/terminal.c: Likewise.
15205 * commands/ls.c: Likewise.
15206 * commands/help.c: Likewise.
15207 * partmap/pc.c: Likewise.
15208 * loader/efi/chainloader.c: Likewise.
15209 * loader/multiboot_loader.c: Likewise.
15210 * loader/i386/pc/multiboot2.c: Likewise.
15211 * term/efi/console.c: Likewise.
15212 * term/i386/pc/serial.c: Likewise.
15213 * util/lvm.c: Likewise.
15214 * util/console.c: Likewise.
15215 * util/i386/efi/grub-mkimage.c: Likewise.
15216 * util/raid.c: Likewise.
15217
15218 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
15219
15220 * commands/videotest.c: Removed include to grub/machine/memory.h.
15221
15222 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
15223 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
15224 (video_mod_SOURCES): Removed.
15225 (video_mod_CFLAGS): Likewise.
15226 (video_mod_LDFLAGS): Likewise.
15227 (gfxterm_mod_SOURCES): Likewise.
15228 (gfxterm_mod_CFLAGS): Likewise.
15229 (gfxterm_mod_LDFLAGS): Likewise.
15230 (videotest_mod_SOURCES): Likewise.
15231 (videotest_mod_CFLAGS): Likewise.
15232 (videotest_mod_LDFLAGS): Likewise.
15233 (bitmap_mod_SOURCES): Likewise.
15234 (bitmap_mod_CFLAGS): Likewise.
15235 (bitmap_mod_LDFLAGS): Likewise.
15236 (tga_mod_SOURCES): Likewise.
15237 (tga_mod_CFLAGS): Likewise.
15238 (tga_mod_LDFLAGS): Likewise.
15239 (jpeg_mod_SOURCES): Likewise.
15240 (jpeg_mod_CFLAGS): Likewise.
15241 (jpeg_mod_LDFLAGS): Likewise.
15242 (png_mod_SOURCES): Likewise.
15243 (png_mod_CFLAGS): Likewise.
15244 (png_mod_LDFLAGS): Likewise.
15245
15246 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
15247 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
15248 (video_mod_SOURCES): Added.
15249 (video_mod_CFLAGS): Likewise.
15250 (video_mod_LDFLAGS): Likewise.
15251 (videotest_mod_SOURCES): Likewise.
15252 (videotest_mod_CFLAGS): Likewise.
15253 (videotest_mod_LDFLAGS): Likewise.
15254 (bitmap_mod_SOURCES): Likewise.
15255 (bitmap_mod_CFLAGS): Likewise.
15256 (bitmap_mod_LDFLAGS): Likewise.
15257 (tga_mod_SOURCES): Likewise.
15258 (tga_mod_CFLAGS): Likewise.
15259 (tga_mod_LDFLAGS): Likewise.
15260 (jpeg_mod_SOURCES): Likewise.
15261 (jpeg_mod_CFLAGS): Likewise.
15262 (jpeg_mod_LDFLAGS): Likewise.
15263 (png_mod_SOURCES): Likewise.
15264 (png_mod_CFLAGS): Likewise.
15265 (png_mod_LDFLAGS): Likewise.
15266 (gfxterm_mod_SOURCES): Likewise.
15267 (gfxterm_mod_CFLAGS): Likewise.
15268 (gfxterm_mod_LDFLAGS): Likewise.
15269
15270 * term/gfxterm.c: Removed include to grub/machine/memory.h,
15271 grub/machine/console.h.
15272
15273 2009-01-04 Jerone Young <jerone@gmail.com>
15274
15275 Make on screen instructions clearer
15276
15277 Based on patch created by Jidanni <jidanni@jidanni.org>
15278
15279 * normal/menu.c: print clearer instructions on the screen
15280
15281 2009-01-02 Colin D Bennett <colin@gibibit.com>
15282
15283 New font engine.
15284
15285 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
15286 build system and fixed gfxterm.c to work with different sized fonts.
15287
15288 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
15289
15290 * configure: Re-generated.
15291
15292 * DISTLIST: Removed font/manager.c.
15293 Added font/font.c.
15294 Added font/font_cmd.c.
15295
15296 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
15297 compilation.
15298
15299 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
15300
15301 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
15302
15303 * kern/term.c: Changed users of grub_utf8_to_ucs4.
15304
15305 * normal/menu.c: Likewise.
15306
15307 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
15308 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
15309
15310 * include/grub/font.h: Replaced with new file.
15311
15312 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
15313 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
15314 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
15315 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
15316 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
15317 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
15318 fg_red, fg_green, fg_blue, fg_alpha.
15319 (grub_video_adapter): Removed blit_glyph.
15320 (grub_video_blit_glyph): Removed.
15321
15322 * font/manager.c: Removed file.
15323
15324 * font/font.c: New file.
15325
15326 * font/font_cmd.c: Likewise.
15327
15328 * video/video.c (grub_video_blit_glyph): Removed.
15329
15330 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
15331 (grub_video_vbe_map_rgba): Likewise.
15332 (grub_video_vbe_unmap_color_int): Likewise.
15333 (grub_video_vbe_blit_glyph): Removed.
15334 (grub_video_vbe_adapter): Removed blit_glyph.
15335
15336 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
15337 (get_pixel): Likewise.
15338 (set_pixel): Likewise.
15339
15340 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
15341
15342 * term/gfxterm.c: Adapted to new font engine.
15343
15344 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
15345
15346 * term/i386/pc/vga.c: Likewise.
15347
15348 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
15349
15350 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
15351
15352 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
15353
15354 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
15355
15356 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
15357
15358 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
15359
15360 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
15361
15362 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
15363
15364 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
15365
15366 * util/grub.d/00_header.in: Changed to use new loadfont command.
15367
15368 * util/grub-mkconfig_lib.in: Changed font extension.
15369
15370 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
15371
15372 * util/getroot.c (grub_util_get_grub_dev): Add support for
15373 /dev/md/dNNpNN style partitionable mdraid devices.
15374
15375 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
15376
15377 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
15378 at a time limit of the PXE TFTP API correctly.
15379 (grub_pxefs_close): Likewise.
15380
15381 2008-11-29 Robert Millan <rmh@aybabtu.com>
15382
15383 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
15384 grub_ata_device_initialize() calls.
15385
15386 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
15387
15388 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
15389 iteration failed.
15390 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
15391
15392 2008-11-28 Robert Millan <rmh@aybabtu.com>
15393
15394 Fix build on powerpc-ieee1275. Based on patch created by
15395 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
15396 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
15397 `kern/ieee1275/mmap.c'.
15398 * include/grub/powerpc/ieee1275/memory.h: New file.
15399
15400 Provide grub-install on coreboot.
15401 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
15402 (grub_install_SOURCES): New variable.
15403 * util/i386/pc/grub-install.in: Add a few condition checks to make it
15404 usable on coreboot.
15405
15406 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
15407
15408 * util/grub-fstest.c (grub_term_get_current_input): Change return type
15409 to `grub_term_input_t'.
15410 (grub_term_get_current_output): Change return type to
15411 `grub_term_output_t'.
15412
15413 2008-11-22 Robert Millan <rmh@aybabtu.com>
15414
15415 Fix breakage on coreboot due to declaration mismatch.
15416 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
15417 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
15418 grub_vga_text_cls().
15419
15420 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
15421 comments. Avoid copying one more byte than necessary (just in case).
15422
15423 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
15424 to 0x200000 (avoids trouble with some OFW implementations, and matches
15425 with the one in Yaboot).
15426 Reported by Manoel Abranches
15427
15428 2008-11-20 Robert Millan <rmh@aybabtu.com>
15429
15430 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
15431 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
15432
15433 * util/grub-mkconfig_lib.in (grub_warn): New function.
15434 (convert_system_path_to_grub_path): Use grub_warn() when issuing
15435 warnings, to obtain consistent formatting.
15436 * util/grub.d/00_header.in: Likewise.
15437 * util/update-grub_lib.in: Likewise.
15438
15439 * loader/i386/linux.c (allocate_pages): Fix a warning.
15440 Move comment text to `#error' stanza.
15441
15442 Harmonize ieee1275's grub_available_iterate() with the generic
15443 grub_machine_mmap_iterate() interface (fixes a recently-introduced
15444 build problem on i386-ieee1275):
15445 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
15446 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
15447 parameter `type'. Update all users of this function.
15448 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
15449 `kern/ieee1275/mmap.c'.
15450 * kern/ieee1275/init.c
15451 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
15452 with ...
15453 (grub_machine_mmap_iterate): ... this.
15454 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
15455 return type to `grub_err_t'. Update all implementations of this
15456 function prototype.
15457 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
15458 Likewise.
15459
15460 Add `lsmmap' command (lists firmware-provided memory map):
15461 * commands/lsmmap.c: New file.
15462 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
15463 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
15464 variables.
15465 * conf/powerpc-ieee1275.rmk: Likewise.
15466 * conf/i386-coreboot.rmk: Likewise.
15467 * conf/i386-ieee1275.rmk: Likewise.
15468
15469 2008-11-19 Robert Millan <rmh@aybabtu.com>
15470
15471 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
15472 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
15473 constraints to initrd allocation (based on code from
15474 loader/i386/pc/linux.c). Without them, initrd was allocated too high
15475 for Linux to find it.
15476
15477 2008-11-14 Robert Millan <rmh@aybabtu.com>
15478
15479 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
15480 order to cope with duplicate slashes.
15481
15482 2008-11-14 Robert Millan <rmh@aybabtu.com>
15483
15484 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
15485 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
15486 don't want to mess with lower memory, because it is used in the Linux
15487 loader.
15488
15489 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
15490 an appropriate place in lower memory, between 0x10000 and 0x90000,
15491 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
15492 is in our heap (probably as a result of it being corrupted during
15493 decompression). Add #error instance with comment to explain why this
15494 loader isn't currently usable on PC/BIOS.
15495
15496 2008-11-14 Robert Millan <rmh@aybabtu.com>
15497
15498 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
15499 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
15500
15501 2008-11-12 Robert Millan <rmh@aybabtu.com>
15502
15503 Make loader/i386/linux.c buildable on i386-pc (although disabled).
15504
15505 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
15506 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
15507 from here ...
15508 * include/grub/i386/pc/memory.h: ... to here.
15509
15510 2008-11-12 Robert Millan <rmh@aybabtu.com>
15511
15512 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
15513 split).
15514
15515 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
15516 (grub_console_cur_color, grub_console_real_putchar)
15517 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
15518 (grub_console_setcolorstate, grub_console_setcolor)
15519 (grub_console_getcolor): Move from here ...
15520 * include/grub/i386/vga_common.h: ... to here (new file).
15521
15522 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
15523 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
15524 `<grub/i386/io.h>'.
15525 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
15526 `<grub/i386/vga_common.h>'.
15527
15528 2008-11-12 Robert Millan <rmh@aybabtu.com>
15529
15530 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
15531 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
15532 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
15533 variables.
15534 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
15535 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
15536
15537 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
15538 grub_console_init() with call to grub_vga_text_init().
15539 (grub_machine_fini): Replace call to
15540 grub_console_fini() with call to grub_vga_text_fini() and
15541 grub_at_keyboard_fini().
15542
15543 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
15544 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
15545 (grub_console_setcolorstate, grub_console_setcolor)
15546 (grub_console_getcolor): New function prototypes.
15547
15548 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
15549 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
15550 (grub_vga_text_setcursor): Static-ize.
15551 (grub_vga_text_term): New structure.
15552 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
15553
15554 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
15555 (grub_console_cur_color, grub_console_standard_color)
15556 (grub_console_normal_color, grub_console_highlight_color)
15557 (map_char, grub_console_putchar, grub_console_getcharwidth)
15558 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
15559 (grub_console_getcolor): Move from here ...
15560 * term/i386/vga_common.c: ... to here (same function names).
15561
15562 2008-11-12 Robert Millan <rmh@aybabtu.com>
15563
15564 Use newly-added Multiboot support in coreboot.
15565
15566 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
15567 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
15568
15569 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
15570 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
15571 (codestart): Store the MBI in `startup_multiboot_info' when we're
15572 being loaded using Multiboot.
15573
15574 * kern/i386/coreboot/init.c (grub_machine_init): Move
15575 grub_at_keyboard_init() call to beginning of function (useful for
15576 debugging). Call grub_machine_mmap_init() before attempting to use
15577 grub_machine_mmap_iterate().
15578 (grub_lower_mem, grub_upper_mem): Move from here ...
15579 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
15580 here (new file).
15581
15582 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
15583 function prototype.
15584
15585 2008-11-12 Robert Millan <rmh@aybabtu.com>
15586
15587 Fix a regression introduced by the at_keyboard.mod split. Because
15588 some terminals are default on some platforms and non-default on
15589 others, the first terminal being registered determines which is
15590 going to be default.
15591
15592 * kern/term.c (grub_term_register_input): If this is the first
15593 terminal being registered, set it as the current one.
15594 (grub_term_register_output): Likewise.
15595
15596 * term/efi/console.c (grub_console_init): Do not call
15597 grub_term_set_current_output() or grub_term_set_current_input().
15598 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
15599 * term/i386/pc/console.c (grub_console_init): Likewise.
15600 (grub_console_fini): Do not call grub_term_set_current_input()
15601 (but leave grub_term_set_current_output() to restore text mode).
15602
15603 2008-11-10 Robert Millan <rmh@aybabtu.com>
15604
15605 * util/grub.d/00_header.in: Add backward compatibility check for
15606 versions of terminal.mod that don't understand `terminal_input' or
15607 `terminal_output'.
15608
15609 2008-11-09 Robert Millan <rmh@aybabtu.com>
15610
15611 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
15612 `terminal_input' / `terminal_output', not `terminal'.
15613
15614 2008-11-08 Robert Millan <rmh@aybabtu.com>
15615
15616 * Makefile.in (include_DATA): Fix srcdir=. assumption.
15617 (DISTCLEANFILES): Add `build_env.mk'.
15618
15619 2008-11-08 Robert Millan <rmh@aybabtu.com>
15620
15621 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
15622 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
15623 members. Update all users.
15624 * util/console.c (grub_ncurses_term): Split in ...
15625 (grub_ncurses_term_input): ... this, and ...
15626 (grub_ncurses_term_output): ... this. Update all users.
15627 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
15628
15629 2008-11-08 Robert Millan <rmh@aybabtu.com>
15630
15631 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
15632 (PKGDATA): Add $(pkgdata_SRCDIR).
15633 (pkglib_BUILDDIR): New variable.
15634 (pkgdata_SRCDIR): New variable.
15635 (build_env.mk): New target.
15636 (include_DATA): New variable.
15637 (install-local): Install $(include_DATA) files in $(includedir).
15638
15639 2008-11-07 Pavel Roskin <proski@gnu.org>
15640
15641 * gendistlist.sh: Use C locale for sorting to ensure consistent
15642 output on all systems.
15643
15644 * util/grub.d/00_header.in: Remove incorrect space before
15645 "serial".
15646
15647 2008-11-07 Robert Millan <rmh@aybabtu.com>
15648
15649 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
15650 per specification.
15651 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
15652 * loader/multiboot_loader.c (find_multi_boot2_header): New function
15653 (based on find_multi_boot1_header).
15654 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
15655 using find_multi_boot2_header(), and abort if neither Multiboot or
15656 Multiboot headers were found.
15657
15658 2008-11-07 Robert Millan <rmh@aybabtu.com>
15659
15660 Modularize at_keyboard.mod:
15661
15662 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
15663 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
15664 (at_keyboard_mod_LDFLAGS): New variables.
15665
15666 Actual terminal split:
15667
15668 * include/grub/term.h (struct grub_term): Split in ...
15669 (struct grub_term_input): ... this, and ...
15670 (struct grub_term_output): ... this. Update all users.
15671 (grub_term_set_current): Split in ...
15672 (grub_term_set_current_input): ... this, and ...
15673 (grub_term_set_current_output): ... this.
15674 (grub_term_get_current): Split in ...
15675 (grub_term_get_current_input): ... this, and ...
15676 (grub_term_get_current_output): ... this.
15677 (grub_term_register): Split in ...
15678 (grub_term_register_input): ... this, and ...
15679 (grub_term_register_output): ... this.
15680 (grub_term_unregister): Split in ...
15681 (grub_term_unregister_input): ... this, and ...
15682 (grub_term_unregister_output): ... this.
15683 (grub_term_iterate): Split in ...
15684 (grub_term_iterate_input): ... this, and ...
15685 (grub_term_iterate_output): ... this.
15686
15687 * kern/term.c (grub_term_list): Split in ...
15688 (grub_term_list_input): ... this, and ...
15689 (grub_term_list_output): ... this. Update all users.
15690 (grub_cur_term): Split in ...
15691 (grub_cur_term_input): ... this, and ...
15692 (grub_cur_term_output): ... this. Update all users.
15693 (grub_term_set_current): Split in ...
15694 (grub_term_set_current_input): ... this, and ...
15695 (grub_term_set_current_output): ... this.
15696 (grub_term_get_current): Split in ...
15697 (grub_term_get_current_input): ... this, and ...
15698 (grub_term_get_current_output): ... this.
15699 (grub_term_register): Split in ...
15700 (grub_term_register_input): ... this, and ...
15701 (grub_term_register_output): ... this.
15702 (grub_term_unregister): Split in ...
15703 (grub_term_unregister_input): ... this, and ...
15704 (grub_term_unregister_output): ... this.
15705 (grub_term_iterate): Split in ...
15706 (grub_term_iterate_input): ... this, and ...
15707 (grub_term_iterate_output): ... this.
15708
15709 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
15710 a check for input and one for output (and only attempt to get keys
15711 from user when input works).
15712
15713 * util/grub-probe.c (grub_term_get_current): Split in ...
15714 (grub_term_get_current_input): ... this, and ...
15715 (grub_term_get_current_output): ... this.
15716 * util/grub-fstest.c: Likewise.
15717 * util/i386/pc/grub-setup.c: Likewise.
15718 * util/grub-editenv.c: Likewise.
15719
15720 Portability adjustments:
15721
15722 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
15723 `term/i386/pc/at_keyboard.c'.
15724 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
15725 grub_keyboard_controller_init() (now handled by terminal .init).
15726 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
15727 grub_at_keyboard_init().
15728 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
15729 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
15730 at_keyboard.mod via input terminal interface).
15731 * include/grub/i386/coreboot/console.h: Convert into a stub for
15732 `<grub/i386/pc/console.h>'.
15733
15734 Migrate full terminals to new API:
15735
15736 * term/efi/console.c (grub_console_term): Split into ...
15737 (grub_console_term_input): ... this, and ...
15738 (grub_console_term_output): ... this. Update all users.
15739 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
15740 (grub_ofconsole_init): Split into ...
15741 (grub_ofconsole_init_input): ... this, and ...
15742 (grub_ofconsole_init_output): ... this.
15743 (grub_ofconsole_term): Split into ...
15744 (grub_ofconsole_term_input): ... this, and ...
15745 (grub_ofconsole_term_output): ... this. Update all users.
15746 * term/i386/pc/serial.c (grub_serial_term): Split into ...
15747 (grub_serial_term_input): ... this, and ...
15748 (grub_serial_term_output): ... this. Update all users.
15749 * term/i386/pc/console.c (grub_console_term): Split into ...
15750 (grub_console_term_input): ... this, and ...
15751 (grub_console_term_output): ... this. Update all users.
15752 (grub_console_term_input): Only enable it on PC/BIOS platform.
15753 (grub_console_init): Remove grub_keyboard_controller_init() call.
15754
15755 Migrate input terminals to new API:
15756
15757 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
15758 `i386' and `i386/pc' to enable build on x86_64 (this driver is
15759 i386-specific anyway).
15760 (grub_console_checkkey): Rename to ...
15761 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
15762 users.
15763 (grub_keyboard_controller_orig): New variable.
15764 (grub_console_getkey): Rename to ...
15765 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
15766 users.
15767 (grub_keyboard_controller_init): Static-ize. Save original
15768 controller value so that it can be restored ...
15769 (grub_keyboard_controller_fini): ... here (new function).
15770 (grub_at_keyboard_term): New structure.
15771 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
15772 functions.
15773
15774 Migrate output terminals to new API:
15775
15776 * term/i386/pc/vga.c (grub_vga_term): Change type to
15777 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
15778 members. Update all users.
15779 * term/gfxterm.c (grub_video_term): Change type to
15780 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
15781 members. Update all users.
15782 * include/grub/i386/pc/console.h (grub_console_checkkey)
15783 (grub_console_getkey): Do not export (no longer needed by gfxterm,
15784 etc).
15785
15786 Migrate `terminal' command and userland tools to new API:
15787
15788 * commands/terminal.c (grub_cmd_terminal): Split into ...
15789 (grub_cmd_terminal_input): ... this, and ...
15790 (grub_cmd_terminal_output): ... this.
15791 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
15792 `terminal_input' and `terminal_output'.
15793 * util/grub.d/00_header.in: Adjust `terminal' calls to new
15794 `terminal_input' / `terminal_output' API.
15795 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
15796 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
15797 provided ${GRUB_TERMINAL}, convert it).
15798
15799 2008-11-04 Robert Millan <rmh@aybabtu.com>
15800
15801 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
15802 for FreeBSD.
15803 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
15804
15805 2008-11-03 Bean <bean123ch@gmail.com>
15806
15807 * kern/elf.c (grub_elf32_load): Revert to previous code.
15808 (grub_elf64_load): Likewise.
15809
15810 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
15811
15812 2008-11-01 Robert Millan <rmh@aybabtu.com>
15813
15814 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
15815 (TARGET_CPPFLAGS): Likewise.
15816 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
15817
15818 2008-11-01 Carles Pina i Estany <carles@pina.cat>
15819
15820 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
15821
15822 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
15823
15824 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
15825 addition of objects until the code is not going to be able to fail.
15826
15827 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
15828
15829 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
15830 (add a missing NULL check, and correct them by moving the pointer
15831 operations after the actual check).
15832
15833 2008-10-29 Robert Millan <rmh@aybabtu.com>
15834
15835 * util/i386/pc/grub-install.in: Handle empty string as output from
15836 make_system_path_relative_to_its_root().
15837
15838 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
15839
15840 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
15841 circular metadata worst case scenario. If the metadata is circular
15842 then copy the wrap in place.
15843 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
15844 project lib/format_text/layout.h
15845 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
15846
15847 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
15848
15849 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
15850
15851 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
15852
15853 * util/update-grub_lib.in: Mention filename in warning message.
15854
15855 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
15856
15857 * NEWS: Update for rename of update-grub to grub-mkconfig.
15858
15859 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
15860
15861 * util/update-grub_lib.in: Copy to ...
15862 * util/grub-mkconfig_lib.in: ... this. Update all users.
15863 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
15864 * util/update-grub.in: Rename to ...
15865 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
15866 option. Add `--output' option to allow users to specify the generated
15867 configuration file. Default to stdout.
15868 (update_grub_dir): Rename to ...
15869 (grub_mkconfig_dir): ... this.
15870 (grub_cfg): Default to an empty string.
15871 * conf/common.rmk (update-grub): Rename to ...
15872 (grub-mkconfig): ... this.
15873 (update-grub_lib): Copy to ...
15874 (grub-mkconfig_lib): ... this.
15875 (update-grub_SCRIPTS): Copy to ...
15876 (grub-mkconfig_SCRIPTS): ... this. Update all users.
15877 (update-grub_DATA): Rename to ...
15878 (grub-mkconfig_DATA): ... this.
15879
15880 2008-09-28 Robert Millan <rmh@aybabtu.com>
15881
15882 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
15883 to `modified'. Add the real `created' field.
15884 (grub_iso9660_uuid): Use `modified' rather than `created' for
15885 constructing the UUID.
15886
15887 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
15888
15889 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
15890 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
15891
15892 2008-09-28 Bean <bean123ch@gmail.com>
15893
15894 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
15895 Thanks to Christian Franke for finding this bug.
15896
15897 2008-09-25 Robert Millan <rmh@aybabtu.com>
15898
15899 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
15900 instances of grub_util_get_disk_name() (see previous commit).
15901
15902 2008-09-25 Robert Millan <rmh@aybabtu.com>
15903
15904 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
15905 `util/i386/get_disk_name.c'.
15906 * conf/i386-efi.rmk: Likewise.
15907 * conf/x86_64-efi.rmk: Likewise.
15908 * conf/i386-coreboot.rmk: Likewise.
15909 * conf/i386-ieee1275.rmk: Likewise.
15910 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
15911 `util/ieee1275/get_disk_name.c'.
15912 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
15913 * util/ieee1275/get_disk_name.c: Remove file.
15914 * util/i386/get_disk_name.c: Remove file.
15915 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
15916 "hd%d" for device.map entries, rather than using
15917 grub_util_get_disk_name().
15918
15919 2008-09-24 Carles Pina i Estany <carles@pina.cat>
15920
15921 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
15922 warning.
15923 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
15924
15925 2008-09-24 Carles Pina i Estany <carles@pina.cat>
15926
15927 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
15928 Changed to 0x5100.
15929 (GRUB_TERM_PPAGE): Changed to 0x4900.
15930
15931 2008-09-24 Robert Millan <rmh@aybabtu.com>
15932
15933 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
15934 macros (they were i386-pc specific).
15935 * include/grub/sparc64/ieee1275/console.h: Likewise.
15936 * include/grub/efi/console.h: Likewise.
15937
15938 2008-09-22 Bean <bean123ch@gmail.com>
15939
15940 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
15941 resident and in attribute list.
15942
15943 * include/grub/ntfs.h (BMP_LEN): Removed.
15944
15945 2008-09-22 Bean <bean123ch@gmail.com>
15946
15947 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
15948 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
15949
15950 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
15951 error occurs, as grub_disk_open will call grub_disk_close, which will
15952 call p->close (scsi).
15953
15954 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
15955
15956 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
15957 (AC_PREREQ): Bumped to 2.59.
15958 (AC_TRY_COMPILE): Replace obsolete macro with ...
15959 (AC_COMPILE_IFELSE): ... this.
15960 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
15961 (AC_LINK_IFELSE): ... this.
15962
15963 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
15964
15965 * autogen.sh: Add a call to `gendistlist.sh'.
15966
15967 2008-09-19 Christian Franke <franke@computer.org>
15968
15969 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
15970 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
15971 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
15972 Export __enable_execute_stack() to modules.
15973 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
15974 New function.
15975
15976 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
15977
15978 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
15979 Sort the list.
15980
15981 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
15982
15983 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
15984 #include <grub/util/hostdisk.h>.
15985
15986 2008-09-08 Robert Millan <rmh@aybabtu.com>
15987
15988 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
15989 segments when their filesz is zero (grub_file_read() interprets
15990 zero-size as "read until EOF", which results in memory corruption).
15991 Use `lowest_segment' rather than 0 for calculating the current
15992 segment load address.
15993
15994 2008-09-08 Robert Millan <rmh@aybabtu.com>
15995
15996 * util/hostdisk.c (open_device): Replace a grub_util_info() call
15997 with grub_dprintf("hostdisk", ...), as it was so verbose that it
15998 clobbered useful information.
15999
16000 2008-09-08 Robert Millan <rmh@aybabtu.com>
16001
16002 * include/grub/util/biosdisk.h: Move to ...
16003 * include/grub/util/hostdisk.h: ... here. Update all users.
16004 * util/biosdisk.c: Move to ...
16005 * util/hostdisk.c: ... here. Update all users.
16006
16007 2008-09-07 Robert Millan <rmh@aybabtu.com>
16008
16009 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
16010 variables.
16011 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
16012 and length can be stored directly in the `mbi->mmap_addr' and
16013 `mbi->mmap_length' struct fields.
16014
16015 2008-09-07 Robert Millan <rmh@aybabtu.com>
16016
16017 * conf/i386.rmk: New file. Provides declaration for building
16018 `cpuid.mod'.
16019 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
16020 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
16021 variables.
16022 Include `conf/i386.mk'.
16023 * conf/i386-efi.rmk: Likewise.
16024 * conf/x86_64-efi.rmk: Likewise.
16025 * conf/i386-coreboot.rmk: Likewise.
16026 * conf/i386-ieee1275.rmk: Likewise.
16027
16028 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
16029
16030 Based on patch created by Colin D Bennett <colin@gibibit.com>.
16031 Adds optimization support for BGR based modes.
16032
16033 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
16034 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
16035 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
16036 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
16037 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
16038 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
16039 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
16040 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
16041 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
16042 (grub_video_i386_vbeblit_index_index): Likewise.
16043 (grub_video_i386_vbeblit_replace_directN): Added.
16044 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
16045 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
16046 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
16047 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
16048 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
16049 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
16050 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
16051 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
16052 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
16053 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
16054 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
16055 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
16056 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
16057
16058 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
16059 (grub_video_i386_vbefill_R8G8B8): Likewise.
16060 (grub_video_i386_vbefill_index): Likewise.
16061 (grub_video_i386_vbefill_direct32): Added.
16062 (grub_video_i386_vbefill_direct24): Likewise.
16063 (grub_video_i386_vbefill_direct16): Likewise.
16064 (grub_video_i386_vbefill_direct8): Likewise.
16065
16066 * include/grub/video.h (grub_video_blit_format): Removed
16067 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
16068 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
16069 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
16070 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
16071 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
16072
16073 * video/video.c (grub_video_get_blit_format): Updated to use new
16074 blit formats. Added handling for 16 bit color modes.
16075
16076 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
16077 fillers.
16078 (common_blitter): Updated to use new blitters.
16079
16080 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
16081 Removed.
16082 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
16083 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
16084 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
16085 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
16086 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
16087 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
16088 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
16089 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
16090 (grub_video_i386_vbeblit_index_index): Likewise.
16091 (grub_video_i386_vbeblit_replace_directN): Added.
16092 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
16093 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
16094 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
16095 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
16096 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
16097 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
16098 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
16099 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
16100 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
16101 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
16102 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
16103 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
16104 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
16105
16106 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
16107 (grub_video_i386_vbefill_R8G8B8): Likewise.
16108 (grub_video_i386_vbefill_index): Likewise.
16109 (grub_video_i386_vbefill_direct32): Added.
16110 (grub_video_i386_vbefill_direct24): Likewise.
16111 (grub_video_i386_vbefill_direct16): Likewise.
16112 (grub_video_i386_vbefill_direct8): Likewise.
16113
16114 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
16115 types.
16116
16117 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
16118 types.
16119
16120 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
16121 blitter types.
16122
16123 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
16124 types.
16125
16126 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
16127
16128 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
16129 RAID level 1.
16130
16131 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
16132
16133 * fs/iso9660.c (grub_iso9660_date): New structure.
16134 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
16135 (grub_iso9660_uuid): New function.
16136
16137 2008-09-05 Bean <bean123ch@gmail.com>
16138
16139 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
16140
16141 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
16142 insensitive bit for names in Win32 and Win32 & DOS namespace.
16143
16144 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
16145
16146 * include/grub/types.h (LONG_MAX): Likewise.
16147
16148 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
16149
16150 * util/getroot.c: Include <config.h>.
16151 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
16152 add support for /dev/md/N devices and handle LVM double dash escaping.
16153
16154 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
16155
16156 * config.guess: Update to latest version from config git.
16157 * config.sub: Likewise.
16158
16159 2008-09-03 Robert Millan <rmh@aybabtu.com>
16160
16161 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
16162 `disk->total_sectors'.
16163
16164 2008-09-01 Colin D Bennett <colin@gibibit.com>
16165
16166 * include/grub/normal.h: Fixed incorrect comment for
16167 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
16168
16169 2008-09-01 Colin D Bennett <colin@gibibit.com>
16170
16171 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
16172 values with defines.
16173
16174 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
16175 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
16176 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
16177 (GRUB_VBE_MODEATTR_COLOR): Likewise.
16178 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
16179 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
16180 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
16181 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
16182 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
16183 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
16184 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
16185 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
16186 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
16187 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
16188 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
16189 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
16190 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
16191 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
16192 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
16193
16194 2008-08-31 Robert Millan <rmh@aybabtu.com>
16195
16196 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
16197 declaration.
16198 (grub_multiboot): Fix a few warnings.
16199
16200 2008-08-31 Robert Millan <rmh@aybabtu.com>
16201
16202 * loader/i386/pc/multiboot.c: Update comment not to say that
16203 boot_device support is unimplemented.
16204
16205 2008-08-31 Robert Millan <rmh@aybabtu.com>
16206
16207 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
16208 or memory map support are unimplemented.
16209
16210 2008-08-31 Colin D Bennett <colin@gibibit.com>
16211
16212 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
16213
16214 2008-08-31 Colin D Bennett <colin@gibibit.com>
16215
16216 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
16217 total video memory in 'vbeinfo' output; show color format details for
16218 each video mode.
16219
16220 2008-08-30 Pavel Roskin <proski@gnu.org>
16221
16222 * util/genmoddep.c: Remove for real this time.
16223 * DISTLIST: Remove util/genmoddep.c.
16224
16225 2008-08-30 Robert Millan <rmh@aybabtu.com>
16226
16227 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
16228 as required by Multiboot spec (it was already 4-byte aligned, but
16229 only by chance).
16230
16231 2008-08-29 Pavel Roskin <proski@gnu.org>
16232
16233 * kern/powerpc/ieee1275/crt0.S: Rename to ...
16234 * kern/powerpc/ieee1275/startup.S: ... this.
16235 * conf/powerpc-ieee1275.rmk: Adjust for the above.
16236 * DISTLIST: Likewise.
16237
16238 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
16239 grub/cpu/kernel.h. Add start label for consistency with other
16240 platforms. Add grub_prefix immediately after start. Add jump
16241 to the code after grub_prefix.
16242 * include/grub/powerpc/kernel.h: Provide valid values for
16243 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
16244
16245 2008-08-29 Bean <bean123ch@gmail.com>
16246
16247 * configure.ac: Change host_os to cygwin for mingw.
16248 (asprintf): New check for function.
16249
16250 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
16251 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
16252
16253 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
16254 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
16255 sync, sleep and grub_util_get_disk_size for mingw.
16256
16257 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
16258 to get size in mingw.
16259 (open_device): Use flag O_BINARY if it's defined.
16260 (find_root_device): Add dummy code for mingw.
16261
16262 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
16263 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
16264 (get_scsi_disk_name): Return 0 for mingw.
16265
16266 * util/hostfs.c: #include <grub/util/misc.h>.
16267 (grub_hostfs_open): Use "rb" flag to open file, use
16268 grub_util_get_disk_size to get disk size for mingw.
16269
16270 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
16271 (asprintf): New function if HAVE_ASPRINTF is not set.
16272 (sync): New function for mingw.
16273 (sleep): Likewise.
16274 (grub_util_get_disk_size): Likewise.
16275
16276 2008-08-28 Pavel Roskin <proski@gnu.org>
16277
16278 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
16279 kern/time.c.
16280
16281 2008-08-28 Robert Millan <rmh@aybabtu.com>
16282
16283 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
16284
16285 2008-08-28 Robert Millan <rmh@aybabtu.com>
16286
16287 Change find_grub_drive() syntax so it doesn't prevent it from
16288 detecting NULL names as errors.
16289
16290 * util/biosdisk.c (find_grub_drive): Move free slot search code
16291 from here ...
16292 (find_free_slot): ... to here.
16293 (read_device_map): Use find_free_slot() to search for free slots.
16294
16295 2008-08-27 Marco Gerards <marco@gnu.org>
16296
16297 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
16298 (scsi_mod_SOURCES): New variable.
16299 (scsi_mod_CFLAGS): Likewise
16300 (scsi_mod_LDFLAGS): Likewise.
16301
16302 * disk/scsi.c: New file.
16303
16304 * include/grub/scsi.h: Likewise.
16305
16306 * include/grub/scsicmd.h: Likewise.
16307
16308 * disk/ata.c: Include <grub/scsi.h>.
16309 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
16310 instead.
16311 (grub_ata_iterate): Skip ATAPI devices.
16312 (grub_ata_open): Only handle ATAPI devices.
16313 (struct grub_atapi_read): Removed.
16314 (grub_atapi_readsector): Likewise.
16315 (grub_ata_read): No longer handle ATAPI devices.
16316 (grub_ata_write): Likewise.
16317 (grub_atapi_iterate): New function.
16318 (grub_atapi_read): Likewise.
16319 (grub_atapi_write): Likewise.
16320 (grub_atapi_open): Likewise.
16321 (grub_atapi_close): Likewise.
16322 (grub_atapi_dev): New variable.
16323 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
16324 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
16325
16326 * include/grub/disk.h (enum grub_disk_dev_id): Add
16327 `GRUB_DISK_DEVICE_SCSI_ID'.
16328
16329 2008-08-26 Robert Millan <rmh@aybabtu.com>
16330
16331 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
16332 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
16333 descriptive.
16334
16335 2008-08-23 Bean <bean123ch@gmail.com>
16336
16337 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
16338 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
16339 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
16340 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
16341 dm_nv.mod.
16342 (raid5rec_mod_SOURCES): New macro.
16343 (raid5rec_mod_CFLAGS): Likewise.
16344 (raid5rec_mod_LDFLAGS): Likewise.
16345 (raid6rec_mod_SOURCES): Likewise.
16346 (raid6rec_mod_CFLAGS): Likewise.
16347 (raid6rec_mod_LDFLAGS): Likewise.
16348 (mdraid_mod_SOURCES): Likewise.
16349 (mdraid_mod_CFLAGS): Likewise.
16350 (mdraid_mod_LDFLAGS): Likewise.
16351 (dm_nv_mod_SOURCES): Likewise.
16352 (dm_nv_mod_CFLAGS): Likewise.
16353 (dm_nv_mod_LDFLAGS): Likewise.
16354
16355 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
16356 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
16357 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
16358
16359 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
16360 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
16361
16362 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16363
16364 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16365
16366 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16367
16368 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16369
16370 * disk/raid5_recover.c: New file.
16371
16372 * disk/raid6_recover.c: Likewise.
16373
16374 * disk/mdraid_linux.c: Likewise.
16375
16376 * disk/dmraid_nvidia.c: Likewise.
16377
16378 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
16379 ULONG_MAX.
16380
16381 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
16382 calculate the size of raid device.
16383 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
16384 different layout of raid5.
16385 (grub_raid_scan_device): Remove code specific to mdraid.
16386 (grub_raid_list): New variable.
16387 (free_array): New function.
16388 (grub_raid_register): Likewise.
16389 (grub_raid_unregister): Likewise.
16390 (grub_raid_rescan): Likewise.
16391 (GRUB_MOD_INIT): Don't iterate device here.
16392 (GRUB_MOD_FINI): Use free_array to release resource.
16393
16394 * include/grub/raid.h: Remove macro and structure specific to mdraid.
16395 (grub_raid5_recover_func_t): New function variable type.
16396 (grub_raid6_recover_func_t): Likewise.
16397 (grub_raid5_recover_func): New variable.
16398 (grub_raid6_recover_func): Likewise.
16399 (grub_raid_register): New function.
16400 (grub_raid_unregister): Likewise.
16401 (grub_raid_rescan): Likewise.
16402 (grub_raid_block_xor): Likewise.
16403
16404 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
16405 (CMD_CRC): New macro.
16406 (part): Removed.
16407 (read_file): Handle device as well as file.
16408 (cmd_crc): New function.
16409 (fstest): Handle multiple disks.
16410 (options): Remove part, raw and long, add root and diskcount.
16411 (usage): Add crc, remove -p, -r, -l, add -r and -c.
16412 (main): Find the first non option entry and ignore subsequent options,
16413 add handling for the new options, support multiple disks.
16414
16415 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
16416
16417 2008-08-23 Bean <bean123ch@gmail.com>
16418
16419 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
16420
16421 * genfslist.sh: Ignore kernel.mod.
16422
16423 * genpartmaplist.sh: Likewise.
16424
16425 2008-08-23 Robert Millan <rmh@aybabtu.com>
16426
16427 * util/getroot.c (find_root_device): Skip anything that starts with
16428 a dot, not just directories. This avoids things like /dev/.tmp.md0.
16429
16430 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
16431
16432 * util/update-grub.in (GRUB_GFXMODE): Export variable.
16433 * util/grub.d/00_header.in: Allow the administrator to change default
16434 gfxmode via ${GRUB_GFXMODE}.
16435
16436 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
16437
16438 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
16439
16440 2008-08-21 Robert Millan <rmh@aybabtu.com>
16441
16442 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
16443 loader.
16444 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
16445 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
16446
16447 2008-08-20 Carles Pina i Estany <carles@pina.cat>
16448
16449 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
16450 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
16451
16452 2008-08-19 Robert Millan <rmh@aybabtu.com>
16453
16454 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
16455 (struct grub_virtual_screen): Remove `cursor_color'.
16456 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
16457 initialization.
16458 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
16459
16460 2008-08-18 Robert Millan <rmh@aybabtu.com>
16461
16462 Unify (identical) linux_normal.c files.
16463 * loader/i386/efi/linux_normal.c: Move from here ...
16464 * loader/linux_normal.c: ... to here. Update all users.
16465 * loader/i386/pc/linux_normal.c: Delete. Update all users.
16466 * loader/i386/ieee1275/linux_normal.c: Likewise.
16467
16468 2008-08-18 Robert Millan <rmh@aybabtu.com>
16469
16470 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
16471 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
16472 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
16473 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
16474 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
16475 New macros.
16476 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
16477 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
16478 (GRUB_LINUX_CL_END_OFFSET): ... to here.
16479 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
16480 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
16481 (GRUB_EFI_CL_END_OFFSET): Rename to ...
16482 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
16483 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
16484 Initialize `params->video_cursor_x' and `params->video_cursor_y'
16485 portably using grub_getxy().
16486 Replace `-EFI' with `-bzImage' in boot message.
16487
16488 2008-08-17 Robert Millan <rmh@aybabtu.com>
16489
16490 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
16491
16492 2008-08-17 Robert Millan <rmh@aybabtu.com>
16493
16494 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
16495
16496 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
16497 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
16498 (grub_machine_mmap_iterate): New function declaration.
16499 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
16500 structure.
16501 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
16502 macros.
16503
16504 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
16505 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
16506 Move e820 parsing from here ...
16507 * kern/i386/pc/mmap.c: New file.
16508 (grub_machine_mmap_iterate): ... to here.
16509
16510 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
16511 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
16512 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
16513 (grub_available_iterate): Redeclare to return `void', and redeclare
16514 its hook to use grub_uint64_t as addr and size parameters, and rename
16515 to ...
16516 (grub_machine_mmap_iterate): ... this. Update all users.
16517
16518 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
16519 to make it more readable. Rename to ...
16520 (grub_machine_mmap_iterate): ... this.
16521
16522 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
16523 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
16524 (grub_multiboot): Allocate an extra region after the payload, and fill
16525 it with a Multiboot memory map. Adjust a.out loader to calculate size
16526 with the extra space.
16527 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
16528 with the extra space.
16529
16530 2008-08-17 Carles Pina i Estany <carles@pina.cat>
16531
16532 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
16533
16534 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
16535
16536 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
16537 mdate-sh to the list `find' searches for.
16538 * DISTLIST: Regenerated.
16539
16540 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
16541
16542 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
16543 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
16544 genmoddep.awk, gensymlist.sh.in.
16545 (DISTDIRS): Add bus, docs, hook, lib.
16546 * DISTLIST: Regenerated.
16547 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
16548
16549 2008-08-16 Robert Millan <rmh@aybabtu.com>
16550
16551 * disk/raid.c (grub_raid_init): Handle/report errors set by
16552 grub_device_iterate().
16553 * disk/lvm.c (grub_lvm_init): Likewise.
16554
16555 2008-08-15 Bean <bean123ch@gmail.com>
16556
16557 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16558 and datehook.mod.
16559 (datetime_mod_SOURCES): New macro.
16560 (datetime_mod_CFLAGS): Likewise.
16561 (datetime_mod_LDFLAGS): Likewise.
16562 (date_mod_SOURCES): Likewise.
16563 (date_mod_CFLAGS): Likewise.
16564 (date_mod_LDFLAGS): Likewise.
16565 (datehook_mod_SOURCES): Likewise.
16566 (datehook_mod_CFLAGS): Likewise.
16567 (datehook_mod_LDFLAGS): Likewise.
16568
16569 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16570 and datehook.mod.
16571 (datetime_mod_SOURCES): New macro.
16572 (datetime_mod_CFLAGS): Likewise.
16573 (datetime_mod_LDFLAGS): Likewise.
16574 (date_mod_SOURCES): Likewise.
16575 (date_mod_CFLAGS): Likewise.
16576 (date_mod_LDFLAGS): Likewise.
16577 (datehook_mod_SOURCES): Likewise.
16578 (datehook_mod_CFLAGS): Likewise.
16579 (datehook_mod_LDFLAGS): Likewise.
16580
16581 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16582 and datehook.mod.
16583 (datetime_mod_SOURCES): New macro.
16584 (datetime_mod_CFLAGS): Likewise.
16585 (datetime_mod_LDFLAGS): Likewise.
16586 (date_mod_SOURCES): Likewise.
16587 (date_mod_CFLAGS): Likewise.
16588 (date_mod_LDFLAGS): Likewise.
16589 (datehook_mod_SOURCES): Likewise.
16590 (datehook_mod_CFLAGS): Likewise.
16591 (datehook_mod_LDFLAGS): Likewise.
16592
16593 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16594 and datehook.mod.
16595 (datetime_mod_SOURCES): New macro.
16596 (datetime_mod_CFLAGS): Likewise.
16597 (datetime_mod_LDFLAGS): Likewise.
16598 (date_mod_SOURCES): Likewise.
16599 (date_mod_CFLAGS): Likewise.
16600 (date_mod_LDFLAGS): Likewise.
16601 (datehook_mod_SOURCES): Likewise.
16602 (datehook_mod_CFLAGS): Likewise.
16603 (datehook_mod_LDFLAGS): Likewise.
16604
16605 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
16606 and datehook.mod.
16607 (datetime_mod_SOURCES): New macro.
16608 (datetime_mod_CFLAGS): Likewise.
16609 (datetime_mod_LDFLAGS): Likewise.
16610 (date_mod_SOURCES): Likewise.
16611 (date_mod_CFLAGS): Likewise.
16612 (date_mod_LDFLAGS): Likewise.
16613 (datehook_mod_SOURCES): Likewise.
16614 (datehook_mod_CFLAGS): Likewise.
16615 (datehook_mod_LDFLAGS): Likewise.
16616
16617 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
16618
16619 * commands/date.c: New file.
16620
16621 * hook/datehook.c: Likewise.
16622
16623 * include/grub/lib/datetime.h: Likewise.
16624
16625 * include/grub/i386/cmos.h: Likewise.
16626
16627 * lib/datetime.c: Likewise.
16628
16629 * lib/i386/datetime.c: Likewise.
16630
16631 * lib/efi/datetime.c: Likewise.
16632
16633 2008-08-14 Robert Millan <rmh@aybabtu.com>
16634
16635 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
16636 (grub_mkelfimage_SOURCES): New variable.
16637 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
16638
16639 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
16640 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
16641 * conf/powerpc-ieee1275.rmk: Likewise.
16642 * conf/i386-ieee1275.rmk: Likewise.
16643
16644 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
16645 * kern/i386/coreboot/init.c: Likewise.
16646
16647 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
16648 with `<grub/cpu/kernel.h>'.
16649 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
16650 to ...
16651 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
16652 * kern/i386/coreboot/startup.S: Likewise.
16653
16654 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
16655 (GRUB_MOD_GAP): Remove.
16656 * include/grub/powerpc/kernel.h: New file.
16657 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
16658 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
16659 * include/grub/i386/kernel.h: New file.
16660 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
16661 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
16662 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
16663
16664 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
16665 `grub-mkelfimage'.
16666 Use --directory when invoking grub_mkimage.
16667
16668 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
16669 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
16670 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
16671 and GRUB_KERNEL_CPU_PREFIX.
16672
16673 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
16674
16675 * include/grub/err.h (grub_err_printf): New function prototype.
16676 * util/misc.c (grub_err_printf): New function.
16677 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
16678 grub_printf.
16679 * kern/err.c (grub_print_error): Use grub_err_printf.
16680
16681 2008-08-13 Robert Millan <rmh@aybabtu.com>
16682
16683 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
16684
16685 2008-08-13 Robert Millan <rmh@aybabtu.com>
16686
16687 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
16688 boot entry.
16689
16690 2008-08-12 Robert Millan <rmh@aybabtu.com>
16691
16692 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
16693 of the relocation code from here ...
16694 (grub_multiboot): ... to here.
16695 (forward_relocator, backward_relocator): Move from here ...
16696 * kern/i386/loader.S (grub_multiboot_forward_relocator)
16697 (grub_multiboot_backward_relocator): ... to here.
16698 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
16699 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
16700 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
16701 (grub_multiboot_forward_relocator_end)
16702 (grub_multiboot_backward_relocator)
16703 (grub_multiboot_backward_relocator_end): New variables.
16704
16705 2008-08-12 Bean <bean123ch@gmail.com>
16706
16707 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
16708
16709 2008-08-11 Robert Millan <rmh@aybabtu.com>
16710
16711 * kern/i386/linuxbios/startup.S: Move from here ...
16712 * kern/i386/coreboot/startup.S: ... to here.
16713
16714 * kern/i386/linuxbios/init.c: Move from here ...
16715 * kern/i386/coreboot/init.c: ... to here.
16716
16717 * kern/i386/linuxbios/table.c: Move from here ...
16718 * kern/i386/coreboot/mmap.c: ... to here.
16719
16720 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
16721
16722 2008-08-11 Robert Millan <rmh@aybabtu.com>
16723
16724 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
16725 errors. Leave it to the upper layer to handle them.
16726
16727 2008-08-09 Christian Franke <franke@computer.org>
16728
16729 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
16730 * conf/common.rmk: Install `grub-pe2elf' only if requested.
16731 Install `grub.d/10_windows' only on Cygwin.
16732 * configure.ac: Add subst of `target_os'.
16733 Check `target_os' also before setting TARGET_OBJ2ELF.
16734 Add `--enable-grub-pe2elf'.
16735
16736 2008-08-08 Robert Millan <rmh@aybabtu.com>
16737
16738 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
16739 (grub_last_time): Change type to grub_uint64_t.
16740 (grub_disk_open): Migrate code from to using grub_get_time_ms().
16741 (grub_disk_close): Likewise.
16742
16743 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
16744 (run_menu): Migrate code from to using grub_get_time_ms().
16745
16746 * util/misc.c (grub_get_time_ms): New function.
16747
16748 2008-08-08 Marco Gerards <marco@gnu.org>
16749
16750 * disk/ata.c (grub_ata_regget): Change return type to
16751 `grub_uint8_t'.
16752 (grub_ata_regget2): Likewise.
16753 (grub_ata_wait_status): New function.
16754 (grub_ata_wait_busy): Removed function, updated all users to use
16755 `grub_ata_wait_status'.
16756 (grub_ata_wait_drq): Likewise.
16757 (grub_ata_cmd): New function.
16758 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
16759 error handling.
16760 (grub_ata_pio_write): Add error handling.
16761 (grub_atapi_identify): Likewise.
16762 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
16763 handling.
16764 (grub_ata_identify): Use `grub_ata_cmd' and improve error
16765 handling. Actually use the detected registers. Reorder the
16766 detection logic such that it is easier to read.
16767 (grub_ata_pciinit): Do not assign the same ID to each controller.
16768 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
16769 handling.
16770 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
16771
16772 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
16773
16774 2008-08-08 Marco Gerards <marco@gnu.org>
16775
16776 * NEWS: Update.
16777
16778 2008-08-07 Bean <bean123ch@gmail.com>
16779
16780 * include/grub/x86_64/pci.h: New file.
16781
16782 2008-08-07 Christian Franke <franke@computer.org>
16783
16784 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
16785 (TIMER2_GATE): Likewise.
16786 (grub_pit_wait): Add enable/disable of the timer2 gate
16787 bit of port 0x61. This fixes a possible infinite loop.
16788
16789 2008-08-07 Bean <bean123ch@gmail.com>
16790
16791 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
16792 kern/i386/tsc.c and kern/i386/pit.c.
16793
16794 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
16795 x86_64 platform.
16796
16797 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
16798 <grub/i386/tsc.h>.
16799
16800 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
16801
16802 2008-08-07 Bean <bean123ch@gmail.com>
16803
16804 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
16805
16806 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
16807
16808 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
16809 multiple inclusion. Add #include <grub/types.h>.
16810
16811 2008-08-06 Christian Franke <franke@computer.org>
16812
16813 * conf/common.rmk: Build and install `10_windows'.
16814 * util/grub.d/10_windows.in: New script.
16815
16816 2008-08-06 Pavel Roskin <proski@gnu.org>
16817
16818 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
16819
16820 2008-08-06 Robert Millan <rmh@aybabtu.com>
16821
16822 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
16823 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
16824
16825 2008-08-06 Bean <bean123ch@gmail.com>
16826
16827 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
16828 (grub_pxefs_fs_int): Remove dummy definition.
16829 (grub_pxefs_open): Use data->block_size to store the current block
16830 size setting.
16831 (grub_pxefs_read): Use block size stored in data->block_size. As the
16832 value of grub_pxe_blksize can be changed after the file is opened.
16833
16834 2008-08-06 Bean <bean123ch@gmail.com>
16835
16836 * fs/i386/pc/pxe.c (curr_file): new variable.
16837 (grub_pxefs_open): Simply the handling of pxe file system. Don't
16838 require the dummy internal file system anymore.
16839 (grub_pxefs_read): Removed.
16840 (grub_pxefs_close): Likewise.
16841 (grub_pxefs_fs_int): Likewise.
16842 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
16843 connection when we switch file.
16844 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
16845
16846 2008-08-06 Robert Millan <rmh@aybabtu.com>
16847
16848 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
16849 `halt.mod'.
16850 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
16851 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
16852
16853 * kern/i386/halt.c: New file.
16854 * kern/i386/reboot.c: Likewise.
16855 * include/grub/i386/reboot.h: Likewise.
16856 * include/grub/i386/halt.h: Likewise.
16857
16858 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
16859 Include `<grub/cpu/halt.h>'.
16860 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
16861 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
16862
16863 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
16864 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
16865 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
16866 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
16867 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
16868 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
16869 from here ...
16870 * include/grub/i386/at_keyboard.h: ... to here.
16871
16872 2008-08-05 Robert Millan <rmh@aybabtu.com>
16873
16874 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
16875 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
16876 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
16877 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16878 `kern/generic/millisleep.c'.
16879
16880 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
16881 instead of grub_get_rtc().
16882 (grub_tsc_init): Initialize `tsc_boot_time'.
16883
16884 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
16885 (grub_machine_init): Use grub_tsc_init() rather than
16886 installing an RTC-based handler via grub_install_get_time_ms().
16887
16888 * kern/i386/pit.c: New file.
16889 * include/grub/i386/pit.h: Likewise.
16890
16891 2008-08-05 Bean <bean123ch@gmail.com>
16892
16893 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
16894
16895 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
16896 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
16897 (pxe_mod_SOURCES): New macro.
16898 (pxe_mod_CFLAGS): Likewise.
16899 (pxe_mod_LDFLAGS): Likewise.
16900 (pxecmd_mod_SOURCES): Likewise.
16901 (pxecmd_mod_CFLAGS): Likewise.
16902 (pxecmd_mod_LDFLAGS): Likewise.
16903
16904 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
16905 (grub_pxe_call): Likewise.
16906
16907 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
16908
16909 * commands/i386/pc/pxecmd.c: New file.
16910
16911 * fs/i386/pc/pxe.c: Likewise.
16912
16913 * include/grub/i386/pc/pxe.h: Likewise.
16914
16915 2008-08-05 Bean <bean123ch@gmail.com>
16916
16917 * util/console.c (grub_console_cur_color): New variable.
16918 (grub_console_standard_color): Likewise.
16919 (grub_console_normal_color): Likewise.
16920 (grub_console_highlight_color): Likewise.
16921 (color_map): Likewise.
16922 (use_color): Likewise.
16923 (NUM_COLORS): New macro.
16924 (grub_ncurses_setcolorstate): Handle color properly.
16925 (grub_ncurses_setcolor): Don't change color here, just remember the
16926 settings, color will be set in grub_ncurses_setcolorstate.
16927 (grub_ncurses_getcolor): New function.
16928 (grub_ncurses_init): Initialize color pairs.
16929 (grub_ncurses_term): New member grub_ncurses_getcolor.
16930
16931 2008-08-05 Colin D Bennett <colin@gibibit.com>
16932
16933 High resolution timer support. Implemented for x86 CPUs using TSC.
16934 Extracted generic grub_millisleep() so it's linked in only as needed.
16935 This requires a Pentium compatible CPU; if the RDTSC instruction is
16936 not supported, then it falls back on the generic grub_get_time_ms()
16937 implementation that uses the machine's RTC.
16938
16939 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
16940 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
16941 `kern/generic/millisleep.c'.
16942
16943 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
16944 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
16945
16946 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
16947 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
16948
16949 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16950
16951 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
16952 `kern/generic/millisleep.c'.
16953
16954 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
16955
16956 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
16957
16958 * kern/generic/rtc_get_time_ms.c: New file.
16959
16960 * kern/generic/millisleep.c: New file.
16961
16962 * kern/misc.c: Don't include
16963 <kern/time.h> anymore.
16964 (grub_millisleep_generic): Removed.
16965
16966 * commands/sleep.c (grub_interruptible_millisleep): Uses
16967 grub_get_time_ms() instead of grub_get_rtc().
16968
16969 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
16970 function.
16971 (grub_cpu_is_cpuid_supported): New inline function.
16972 (grub_cpu_is_tsc_supported): New inline function.
16973 (grub_tsc_init): New function prototype.
16974 (grub_tsc_get_time_ms): New function prototype.
16975
16976 * kern/i386/tsc.c (grub_get_time_ms): New file.
16977
16978 * include/grub/time.h: Include <grub/types.h.
16979 (grub_millisleep_generic): Removed.
16980 (grub_get_time_ms): New prototype.
16981 (grub_install_get_time_ms): New prototype.
16982 (grub_rtc_get_time_ms): New prototype.
16983
16984 * kern/time.c (grub_get_time_ms): New function.
16985 (grub_install_get_time_ms): New function.
16986
16987 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
16988 <grub/time.h> anymore.
16989 (grub_millisleep): Removed.
16990 (grub_machine_init): Call grub_tsc_init.
16991
16992 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
16993 get_time_ms() implementation.
16994
16995 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
16996 (ieee1275_get_time_ms): New function.
16997 (grub_machine_init): Install get_time_ms() implementation.
16998
16999 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
17000 (grub_machine_init): Call grub_tsc_init().
17001 (grub_millisleep): Removed.
17002
17003 * kern/ieee1275/init.c (grub_millisleep): Removed.
17004 (grub_machine_init): Install ieee1275_get_time_ms()
17005 implementation.
17006 (ieee1275_get_time_ms): New function.
17007 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
17008 real work.
17009
17010 2008-08-05 Marco Gerards <marco@gnu.org>
17011
17012 * disk/ata.c: Include <grub/pci.h>.
17013 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
17014 (grub_ata_initialize): Rewritten.
17015 (grub_ata_device_initialize): New function.
17016
17017 2008-08-04 Pavel Roskin <proski@gnu.org>
17018
17019 * kern/main.c: Include grub/mm.h.
17020
17021 2008-08-04 Robert Millan <rmh@aybabtu.com>
17022
17023 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
17024 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
17025 corruption problem).
17026
17027 2008-08-04 Robert Millan <rmh@aybabtu.com>
17028
17029 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
17030 warnings introduced in my last commit.
17031
17032 2008-08-03 Robert Millan <rmh@aybabtu.com>
17033
17034 Make PCI available on all i386 architectures.
17035
17036 * include/grub/i386/pc/pci.h: Move from here ...
17037 * include/grub/i386/pci.h: ... to here.
17038
17039 * include/grub/i386/pc/pci.h: Remove.
17040 * include/grub/i386/efi/pci.h: Remove.
17041 * include/grub/x86_64/efi/pci.h: Remove.
17042
17043 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
17044 `<grub/cpu/pci.h>'.
17045
17046 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
17047 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
17048 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
17049
17050 * conf/i386-ieee1275.rmk: Likewise.
17051
17052 2008-08-03 Robert Millan <rmh@aybabtu.com>
17053
17054 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
17055 (grub_console_setcursor): Make it possible to set cursor off.
17056
17057 2008-08-03 Robert Millan <rmh@aybabtu.com>
17058
17059 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
17060 of modules instead of assuming which platform provides what.
17061 * util/update-grub.in: Likewise.
17062
17063 2008-08-03 Robert Millan <rmh@aybabtu.com>
17064
17065 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
17066 instead of `grub_install_dos_part' to determine whether a drive needs
17067 to be prepended to prefix (`grub_install_dos_part' is not reliable,
17068 because it can be overridden when loading GRUB via Multiboot).
17069
17070 2008-08-02 Robert Millan <rmh@aybabtu.com>
17071
17072 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
17073
17074 2008-08-02 Robert Millan <rmh@aybabtu.com>
17075
17076 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
17077 of informational grub_dprintf() calls.
17078
17079 2008-08-02 Robert Millan <rmh@aybabtu.com>
17080
17081 * disk/memdisk.c (memdisk_size): Don't initialize.
17082 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
17083
17084 * include/grub/i386/pc/kernel.h
17085 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
17086 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
17087 (grub_memdisk_image_size, grub_arch_memdisk_addr)
17088 (grub_arch_memdisk_size): Remove.
17089
17090 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
17091 field (was only used to transfer a constant). Add `type' field to
17092 support multiple module types.
17093 (grub_module_iterate): New function.
17094
17095 * kern/device.c (grub_device_open): Do not hide error messages
17096 when grub_disk_open() fails. Use grub_print_error() instead.
17097
17098 * kern/i386/pc/init.c (grub_arch_modules_addr)
17099 (grub_arch_memdisk_size): Remove functions.
17100 (grub_arch_modules_addr): Return the module address in high memory
17101 (now that it isn't copied anymore).
17102
17103 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
17104 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
17105 decompression routine (grub_total_module_size already includes that
17106 now). Don't copy modules back to low memory.
17107
17108 * kern/main.c: Include `<grub/mm.h>'.
17109 (grub_load_modules): Split out (and use) ...
17110 (grub_module_iterate): ... this function, which iterates through
17111 module objects and runs a hook.
17112 Comment out grub_mm_init_region() call, as it would cause non-ELF
17113 modules to be overwritten.
17114
17115 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
17116 the memdisk image in its own region, make it part of the module list.
17117 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
17118 (main): Parse --memdisk|-m option, and pass user-provided path as
17119 parameter to generate_image().
17120 (add_segments): Pass `memdisk_path' down to load_modules().
17121 (load_modules): Embed memdisk image in module section when requested.
17122 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
17123 `header.type' instead of `header.offset'.
17124
17125 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
17126 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
17127 (memdisk_mod_LDFLAGS): New variables.
17128 * conf/i386-coreboot.rmk: Likewise.
17129 * conf/i386-ieee1275.rmk: Likewise.
17130
17131 2008-08-02 Robert Millan <rmh@aybabtu.com>
17132
17133 * loader/i386/pc/multiboot.c (playground, forward_relocator)
17134 (backward_relocator): New variables. Used to allocate and relocate
17135 the payload, respectively.
17136 (grub_multiboot_load_elf32): Load into heap instead of requested
17137 address, install the appropriate relocator code in each bound of
17138 the payload, and set the entry point such that
17139 grub_multiboot_real_boot() will jump to one of them.
17140
17141 * kern/i386/loader.S (grub_multiboot_payload_size)
17142 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
17143 (grub_multiboot_payload_entry_offset): New variables.
17144 (grub_multiboot_real_boot): Set cpu context to what the relocator
17145 expects, and jump to the relocator instead of the payload.
17146
17147 * include/grub/i386/loader.h (grub_multiboot_payload_size)
17148 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
17149 (grub_multiboot_payload_entry_offset): Export.
17150
17151 2008-08-01 Bean <bean123ch@gmail.com>
17152
17153 * normal/menu_entry.c (editor_getline): Don't return the original
17154 string as result, as it will be released by lexer once it has done
17155 using it.
17156
17157 2008-08-01 Robert Millan <rmh@aybabtu.com>
17158
17159 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
17160 within menuentries, not before them.
17161 util/grub.d/10_hurd.in: Likewise.
17162
17163 2008-08-01 Bean <bean123ch@gmail.com>
17164
17165 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
17166 (bufio_mod_SOURCES): New macro.
17167 (bufio_mod_CFLAGS): Likewise.
17168 (bufio_mod_LDFLAGS): Likewise.
17169
17170 * include/grub/bufio.h: New file.
17171
17172 * io/bufio.c: Likewise.
17173
17174 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
17175 (grub_video_reader_png): Use grub_buffile_open to open file.
17176
17177 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
17178 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
17179
17180 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
17181 (grub_video_reader_tga): Use grub_buffile_open to open file.
17182
17183 * font/manager.c: Include <grub/bufio.h>.
17184 (add_font): Use grub_buffile_open to open file.
17185
17186 2008-07-31 Robert Millan <rmh@aybabtu.com>
17187
17188 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
17189 ELF segments, use a macro for arbitrarily accessing any of them instead
17190 of preparing a pointer that allows access to one at a time.
17191 (grub_multiboot_load_elf64): Likewise.
17192
17193 2008-07-31 Bean <bean123ch@gmail.com>
17194
17195 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
17196 GRUB_KERNEL_MACHINE_DATA_END.
17197
17198 2008-07-30 Robert Millan <rmh@aybabtu.com>
17199
17200 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
17201 Increase from 0x50 to 0x60.
17202 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
17203 use UUIDs to identify the root drive for them. If that's not
17204 possible, abort.
17205 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
17206 check, for cross-disk installs.
17207
17208 2008-07-30 Robert Millan <rmh@aybabtu.com>
17209
17210 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
17211 is non-empty, use it to set the `prefix' environment variable instead
17212 of the usual approach.
17213 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
17214 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
17215 environment variable instead of dummy make_install_device().
17216
17217 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
17218 (start): Insert a data section, with `grub_prefix' variable.
17219 * kern/i386/linuxbios/startup.S: Likewise.
17220
17221 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
17222 New variable reference.
17223 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
17224 New macro. Defines offset of `grub_prefix' within startup.S (relative
17225 to `start').
17226 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
17227 section within startup.S (relative to `start').
17228 * include/grub/i386/coreboot/kernel.h: Likewise.
17229
17230 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
17231 Overwrite grub_prefix with its contents, at the beginning of the
17232 first segment.
17233 (main): Understand -p|--prefix.
17234
17235 2008-07-30 Robert Millan <rmh@aybabtu.com>
17236
17237 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
17238
17239 2008-07-30 Robert Millan <rmh@aybabtu.com>
17240
17241 * term/i386/pc/vga_text.c (grub_console_cls): Use
17242 grub_console_gotoxy() to go back to beginning of the screen.
17243 Found by Patrick Georgi <patrick.georgi@coresystems.de>
17244
17245 2008-07-29 Christian Franke <franke@computer.org>
17246
17247 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
17248 Add conversion of emulated mount points on Cygwin.
17249
17250 2008-07-29 Christian Franke <franke@computer.org>
17251
17252 * util/update-grub.in: Add a check for admin
17253 group on Cygwin.
17254 Remove old `grub.cfg.new' before creation.
17255 Add `-f' to `mv' to handle the different filesystem
17256 semantics of Windows.
17257
17258 2008-07-29 Bean <bean123ch@gmail.com>
17259
17260 * normal/main.c (get_line): Fix buffer overflow bug.
17261
17262 2008-07-28 Robert Millan <rmh@aybabtu.com>
17263
17264 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
17265 (struct grub_apple_header): New struct. Describes the layout of
17266 the partmap header.
17267 (apple_partition_map_iterate): Check the header magic as well as the
17268 partition magic (which was already being checked).
17269
17270 2008-07-28 Pavel Roskin <proski@gnu.org>
17271
17272 * genmk.rb: Add a warning to the beginning of the output that
17273 it's a generated file and should not be edited.
17274
17275 2008-07-28 Robert Millan <rmh@aybabtu.com>
17276
17277 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
17278 with the same number are found, just use issue a warning with
17279 grub_dprintf(), as this error has been reported to be non-fatal.
17280
17281 2008-07-27 Robert Millan <rmh@aybabtu.com>
17282
17283 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
17284 information.
17285
17286 2008-07-27 Bean <bean123ch@gmail.com>
17287
17288 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
17289 (grub_fat_find_dir): Ignore case when comparing filename.
17290
17291 2008-07-27 Bean <bean123ch@gmail.com>
17292
17293 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
17294 smallino, as it's more descriptive, and i8count can be confused with
17295 the other field count.
17296 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
17297 inode type.
17298
17299 2008-07-27 Bean <bean123ch@gmail.com>
17300
17301 * commands/crc.c: New file.
17302
17303 * lib/crc.c: Likewise.
17304
17305 * include/grub/lib/crc.h: Likewise.
17306
17307 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
17308
17309 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
17310 (hexdump): Move this function to ...
17311
17312 * lib/hexdump.c: ... here.
17313
17314 * include/grub/hexdump.h: Renamed to ...
17315
17316 * include/grub/lib/hexdump.h: ... this.
17317
17318 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
17319
17320 * util/grub-editenv.c: Likewise.
17321
17322 * include/envblk.h: Renamed to ...
17323
17324 * include/lib/envblk.h: ... this.
17325
17326 * util/envblk.c: Renamed to ...
17327
17328 * lib/envblk.c: ... this.
17329
17330 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
17331 lib/hexdump.c.
17332 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
17333 (pkglib_MODULES): Add crc.mod.
17334 (hexdump_mod_SOURCES): Add lib/hexdump.c.
17335 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
17336 (crc_mod_SOURCES): New macro.
17337 (crc_mod_CFLAGS): Likewise.
17338 (crc_mod_LDFLAGS): Likewise.
17339
17340 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
17341
17342 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17343
17344 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17345
17346 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17347
17348 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
17349
17350 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
17351
17352 * commands/help.c: Include <grub/term.h>.
17353 (TERM_WIDTH): Removed. Updated all users.
17354
17355 2008-07-27 Pavel Roskin <proski@gnu.org>
17356
17357 * util/getroot.c (find_root_device): Rephrase a comment to avoid
17358 spurious warnings about a comment within a comment.
17359
17360 2008-07-25 Robert Millan <rmh@aybabtu.com>
17361
17362 * util/getroot.c (find_root_device): Skip devices that match
17363 /dev/dm-[0-9]. This lets the real device be found for any type of
17364 abstraction (LVM, EVMS, RAID..).
17365 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
17366 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
17367 device is found first, find_root_device() will now skip it.
17368
17369 2008-07-24 Pavel Roskin <proski@gnu.org>
17370
17371 * include/grub/types.h: Use __builtin_bswap32() and
17372 __builtin_bswap64() with gcc 4.3 and newer.
17373
17374 2008-07-24 Christian Franke <franke@computer.org>
17375
17376 * util/i386/pc/grub-install.in: If `--debug' is specified,
17377 pass `--verbose' to grub-setup.
17378 Abort script if make_system_path_relative_to_its_root() fails.
17379
17380 2008-07-24 Bean <bean123ch@gmail.com>
17381
17382 * configure.ac: Fixed a bug caused by the previous cygwin patch,
17383 variable `target_platform' should be `platform'.
17384
17385 2008-07-24 Bean <bean123ch@gmail.com>
17386
17387 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
17388 (grub_png_init_fixed_block): New function.
17389 (grub_png_decode_image_data): Handle fixed huffman code compression.
17390
17391 2008-07-24 Bean <bean123ch@gmail.com>
17392
17393 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
17394 (grub_pe2elf_SOURCES): New macro.
17395 (CLEANFILES): Add grub-pe2elf.
17396
17397 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
17398 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
17399 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
17400 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
17401 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
17402 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
17403 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
17404 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
17405 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
17406 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
17407 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
17408 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
17409 (GRUB_PE32_DT_FUNCTION): Likewise.
17410 (GRUB_PE32_REL_I386_DIR32): Likewise.
17411 (GRUB_PE32_REL_I386_REL32): Likewise.
17412 (grub_pe32_symbol): New structure.
17413 (grub_pe32_reloc): Likewise.
17414
17415 * util/grub-pe2elf.c: New file.
17416
17417 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
17418 start symbol in non pc platform.
17419
17420 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
17421
17422 The following patches are from Christian Franke.
17423
17424 * include/grub/dl.h: Remove .previous, gas supports this only
17425 for ELF format.
17426
17427 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
17428 Remove .type, gas supports this only for ELF format.
17429
17430 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
17431 nullbytes in symbol table. This fixes an infinite loop if table is
17432 zero filled.
17433
17434 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
17435 TARGET_IMG_LDFLAGS and EXEEXT.
17436
17437 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
17438 TARGET_IMG_LDFLAGS_AC.
17439 (grub_CHECK_STACK_ARG_PROBE): New function.
17440
17441 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
17442
17443 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
17444
17445 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
17446 to set TARGET_IMG_LD* accordingly.
17447 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
17448 Add call to grub_CHECK_STACK_ARG_PROBE.
17449 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
17450
17451 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
17452
17453 * genmk.rb: Add EXEEXT to CLEANFILES.
17454
17455 2008-07-23 Robert Millan <rmh@aybabtu.com>
17456
17457 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
17458 define the codes for arrows and lines used for the menu).
17459 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
17460 as well.
17461
17462 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
17463 fonts, because the latter are too slow.
17464
17465 2008-07-21 Bean <bean123ch@gmail.com>
17466
17467 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
17468 a20. Run keyboard test last, as it will cause macbook to halt.
17469
17470 2008-07-18 Pavel Roskin <proski@gnu.org>
17471
17472 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
17473 load foreign architecture modules correctly anyway. Keep
17474 support for loading host architecture modules, whether we
17475 compile them or not.
17476
17477 2008-07-17 Pavel Roskin <proski@gnu.org>
17478
17479 * configure.ac: Use -m32 or -m64 regardless of whether we had to
17480 change target_cpu. The compiler default can mismatch target_cpu
17481 in any case.
17482
17483 * disk/efi/efidisk.c: Fix format warnings on x86_64.
17484 * kern/efi/efi.c: Likewise.
17485
17486 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
17487 target compiler is functional.
17488 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
17489 are set up.
17490
17491 * configure.ac: Default to efi platform for x86_64-apple. Allow
17492 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
17493 adjustments from the rest, only do them if target is not
17494 explicitly given. Merge other adjustments with the final sanity
17495 check. Remove an extraneous check for supported CPU. Be
17496 specific which CPU and which platform is not supported.
17497
17498 * configure.ac: Default to pc platform for x86_64.
17499
17500 2008-07-17 Robert Millan <rmh@aybabtu.com>
17501
17502 Partial LinuxBIOS -> Coreboot rename.
17503
17504 * conf/i386-linuxbios.rmk: Renamed to ...
17505 * conf/i386-coreboot.rmk: ... this.
17506 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
17507 * configure.ac: Accept "coreboot" as input platform (but maintain
17508 compatibility with "linuxbios").
17509 * include/grub/i386/linuxbios: Renamed to ...
17510 * include/grub/i386/coreboot: ... this.
17511
17512 2008-07-17 Bean <bean123ch@gmail.com>
17513
17514 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
17515 (appleldr_mod_SOURCE): New variable.
17516 (appleldr_mod_CFLAGS): Likewise.
17517 (appleldr_mod_LDFLAGS): Likewise.
17518 (pci_mod_SOURCES): Likewise.
17519 (pci_mod_CFLAGS): Likewise.
17520 (pci_mod_LDFLAGS): Likewise.
17521 (lspci_mod_SOURCES): Likewise.
17522 (lspci_mod_CFLAGS): Likewise.
17523 (lspci_mod_LDFLAGS): Likewise.
17524
17525 * conf/x86_64-efi.rmk: New file.
17526
17527 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
17528 macro.
17529 (grub_efidisk_write): Likewise.
17530
17531 * include/efi/api.h (efi_call_0): New macro.
17532 (efi_call_1): Likewise.
17533 (efi_call_2): Likewise.
17534 (efi_call_3): Likewise.
17535 (efi_call_4): Likewise.
17536 (efi_call_5): Likewise.
17537 (efi_call_6): Likewise.
17538
17539 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
17540 grub_rescue_cmd_chainloader.
17541
17542 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
17543 (grub_pe32_optional_header): Change some fields based on i386 or
17544 x86_64 platform.
17545 (GRUB_PE32_PE32_MAGIC): Likewise.
17546
17547 * include/grub/efi/uga_draw.h: New file.
17548
17549 * include/grub/elf.h (STN_ABS): New constant.
17550 (R_X86_64_NONE): Relocation constant for x86_64.
17551 (R_X86_64_64): Likewise.
17552 (R_X86_64_PC32): Likewise.
17553 (R_X86_64_GOT32): Likewise.
17554 (R_X86_64_PLT32): Likewise.
17555 (R_X86_64_COPY): Likewise.
17556 (R_X86_64_GLOB_DAT): Likewise.
17557 (R_X86_64_JUMP_SLOT): Likewise.
17558 (R_X86_64_RELATIVE): Likewise.
17559 (R_X86_64_GOTPCREL): Likewise.
17560 (R_X86_64_32): Likewise.
17561 (R_X86_64_32S): Likewise.
17562 (R_X86_64_16): Likewise.
17563 (R_X86_64_PC16): Likewise.
17564 (R_X86_64_8): Likewise.
17565 (R_X86_64_PC8): Likewise.
17566
17567 * include/grub/i386/efi/pci.h: New file.
17568
17569 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
17570 Change it value based on platform.
17571 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
17572 (GRUB_E820_RAM): Likewise.
17573 (GRUB_E820_RESERVED): Likewise.
17574 (GRUB_E820_ACPI): Likewise.
17575 (GRUB_E820_NVS): Likewise.
17576 (GRUB_E820_EXEC_CODE): Likewise.
17577 (GRUB_E820_MAX_ENTRY): Likewise.
17578 (grub_e820_mmap): New structure.
17579 (linux_kernel_header): Change the efi field according to different
17580 kernel version, also field from linux_kernel_header.
17581
17582 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
17583
17584 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
17585 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
17586 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
17587 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
17588 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
17589 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
17590 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
17591 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
17592 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
17593 (GRUB_PCI_ADDR_IO_MASK): Likewise.
17594
17595 * include/grub/x86_64/efi/kernel.h: New file.
17596
17597 * include/grub/x86_64/efi/loader.h: Likewise.
17598
17599 * include/grub/x86_64/efi/machine.h: Likewise.
17600
17601 * include/grub/x86_64/efi/pci.h: Likewise.
17602
17603 * include/grub/x86_64/efi/time.h: Likewise.
17604
17605 * include/grub/x86_64/linux.h: Likewise.
17606
17607 * include/grub/x86_64/setjmp.h: Likewise.
17608
17609 * include/grub/x86_64/time.h: Likewise.
17610
17611 * include/grub/x86_64/types.h: Likewise.
17612
17613 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
17614 GRUB_TARGET_SIZEOF_VOID_P.
17615
17616 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
17617 (grub_efi_locate_handle): Likewise.
17618 (grub_efi_open_protocol): Likewise.
17619 (grub_efi_set_text_mode): Likewise.
17620 (grub_efi_stall): Likewise.
17621 (grub_exit): Likewise.
17622 (grub_reboot): Likewise.
17623 (grub_halt): Likewise.
17624 (grub_efi_exit_boot_services): Likewise.
17625 (grub_get_rtc): Likewise.
17626
17627 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
17628 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
17629 (grub_efi_allocate_pages): Wrap efi calls.
17630 (grub_efi_free_pages): Wrap efi calls.
17631 (grub_efi_get_memory_map): Wrap efi calls.
17632
17633 * kern/x86_64/dl.c: New file.
17634
17635 * kern/x86_64/efi/callwrap.S: Likewise.
17636
17637 * kern/x86_64/efi/startup.S: Likewise.
17638
17639 * loader/efi/appleloader.c: Likewise.
17640
17641 * loader/efi/chainloader.c (cmdline): New variable.
17642 (grub_chainloader_unload): Wrap efi calls.
17643 (grub_chainloader_boot): Likewise.
17644 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
17645 command line.
17646
17647 * loader/efi/chainloader_normal.c (chainloader_command):
17648 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
17649 command line.
17650
17651 * loader/i386/efi/linux.c (allocate_pages): Change allocation
17652 method.
17653 (grub_e820_add_region): New function.
17654 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
17655 booting.
17656 (grub_find_video_card): New function.
17657 (grub_linux_setup_video): New function.
17658 (grub_rescue_cmd_linux): Probe for video information.
17659
17660 * normal/x86_64/setjmp.S: New file.
17661
17662 * term/efi/console.c (map_char): New function.
17663 (grub_console_putchar): Map unicode char.
17664 (grub_console_checkkey): Wrap efi calls.
17665 (grub_console_getkey): Likewise.
17666 (grub_console_getwh): Likewise.
17667 (grub_console_gotoxy): Likewise.
17668 (grub_console_cls): Likewise.
17669 (grub_console_setcolorstate): Likewise.
17670 (grub_console_setcursor): Likewise.
17671
17672 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
17673
17674 2008-07-16 Pavel Roskin <proski@gnu.org>
17675
17676 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
17677 format strings.
17678
17679 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
17680 pointer, not an integer. This fixes a warning and prevents
17681 precision loss on 64-bit systems.
17682 (relocate_addresses): Remove unneeded cast.
17683
17684 2008-07-15 Pavel Roskin <proski@gnu.org>
17685
17686 * kern/i386/ieee1275/init.c: Include grub/cache.h.
17687
17688 * term/ieee1275/ofconsole.c: Disable code unused on i386.
17689
17690 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
17691 Fix comparison between signed and unsigned.
17692
17693 * include/grub/i386/ieee1275/console.h: Declare
17694 grub_console_init() and grub_console_fini().
17695
17696 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
17697 It's empty and unused.
17698
17699 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
17700 beginning to avoid warnings with some compilers.
17701
17702 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
17703 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
17704
17705 2008-07-14 Pavel Roskin <proski@gnu.org>
17706
17707 * kern/env.c (grub_register_variable_hook): Don't copy empty
17708 string, it leaks memory. Pass "" to grub_env_set(), it should
17709 handle constant strings.
17710
17711 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
17712 * commands/cmp.c (grub_cmd_cmp): Likewise.
17713 * kern/dl.c (grub_dl_flush_cache): Likewise.
17714 (grub_dl_load_core): Likewise.
17715 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
17716 (grub_elf64_load_phdrs): Likewise.
17717
17718 2008-07-13 Pavel Roskin <proski@gnu.org>
17719
17720 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
17721 between signed and unsigned.
17722 (LzmaEnc_Finish): Fix warning about an unused parameter.
17723
17724 2008-07-13 Bean <bean123ch@gmail.com>
17725
17726 * Makefile.in (enable_lzo): New rule.
17727
17728 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
17729
17730 * configure.ac (ENABLE_LZO): New option --enable-lzo.
17731
17732 * boot/i386/pc/lnxboot.S: #include <config.h>.
17733
17734 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
17735 its value according to the compression algorithm used, lzo or lzma.
17736
17737 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
17738 compression algorithm according to configure macro.
17739
17740 * kern/i386/pc/startup.S (codestart): Likewise.
17741
17742 * kern/i386/pc/lzma_decode.S: New file.
17743
17744 * include/grub/lib/LzFind.h: Likewise.
17745
17746 * include/grub/lib/LzHash.h: Likewise.
17747
17748 * include/grub/lib/LzmaDec.h: Likewise.
17749
17750 * include/grub/lib/LzmaEnc.h: Likewise.
17751
17752 * include/grub/lib/LzmaTypes.h: Likewise.
17753
17754 * lib/LzFind.c: Likewise.
17755
17756 * lib/LzmaDec.c: Likewise.
17757
17758 * lib/LzmaEnc.c: Likewise.
17759
17760 2008-07-13 Bean <bean123ch@gmail.com>
17761
17762 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
17763 (grub_ext4_extent_header): New structure.
17764 (grub_ext4_extent): Likewise.
17765 (grub_ext4_extent_idx): Likewise.
17766 (grub_ext4_find_leaf): New function.
17767 (grub_ext2_read_block): Handle extents.
17768
17769 2008-07-12 Robert Millan <rmh@aybabtu.com>
17770
17771 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
17772
17773 2008-07-11 Robert Millan <rmh@aybabtu.com>
17774
17775 * util/grub.d/40_custom.in: New file. Example on how to add custom
17776 entries to /etc/grub.d.
17777 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
17778 40_custom (implicitly, by merging all the grub.d rules).
17779
17780 2008-07-11 Pavel Roskin <proski@gnu.org>
17781
17782 * commands/read.c (grub_getline): Fix invalid memory access.
17783 Don't add newline to the variable value.
17784
17785 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
17786 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
17787 (serial_hw_get_port): Check validity of the port number.
17788 (grub_cmd_serial): Check return value of serial_hw_get_port().
17789
17790 2008-07-07 Pavel Roskin <proski@gnu.org>
17791
17792 * boot/i386/pc/diskboot.S (notification_string): Replace
17793 "Loading kernel" with just "loading". This is shorter, less
17794 confusing and saves a few bytes for possible future changes.
17795
17796 2008-07-05 Pavel Roskin <proski@gnu.org>
17797
17798 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
17799 size for ATAPI devices, they are undefined. Output sector
17800 number in decimal form.
17801
17802 * disk/ata.c: Use named constants for status bits.
17803
17804 2008-07-04 Pavel Roskin <proski@gnu.org>
17805
17806 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
17807 grub_addr_t before casting it to the void pointer to fix a
17808 warning. Non-addressable regions are discarded earlier.
17809 (grub_arch_modules_addr): Cast _end to grub_addr_t.
17810 * kern/i386/linuxbios/table.c: Include grub/misc.h.
17811 (check_signature): Don't shadow table_header.
17812 (grub_linuxbios_table_iterate): Cast numeric constants to
17813 grub_linuxbios_table_header_t.
17814 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
17815 grub_stop().
17816
17817 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
17818 prevent warnings.
17819
17820 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
17821 pointer, which can cause warnings. Support 64-bit addresses.
17822
17823 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
17824 of sizeof(long). This fixes PowerPC image generation on x86_64.
17825
17826 2008-07-04 Robert Millan <rmh@aybabtu.com>
17827
17828 This fixes a performance issue when pc & gpt partmap iterators
17829 didn't abort iteration even after our hook found what it was
17830 looking for (often causing expensive probes of non-existent drives).
17831
17832 Some callers relied on previous buggy behaviour, since they would
17833 raise an error when their own hooks caused early abortion of its
17834 iteration.
17835
17836 * kern/device.c (grub_device_open): Improve error message.
17837 * disk/lvm.c (grub_lvm_open): Likewise.
17838 * disk/raid.c (grub_raid_open): Likewise.
17839
17840 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
17841 when hook requests it, independently of grub_errno.
17842 (pc_partition_map_probe): Do not fail when find_func() caused
17843 early abortion of pc_partition_map_iterate().
17844
17845 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
17846 when hook requests it, independently of grub_errno.
17847 (gpt_partition_map_probe): Do not fail when find_func() caused
17848 early abortion of gpt_partition_map_iterate().
17849
17850 * kern/partition.c (grub_partition_iterate): Abort parent iteration
17851 when hook requests it, independently of grub_errno. Do not fail when
17852 part_map_iterate_hook() caused early abortion of p->iterate().
17853
17854 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
17855 when grub_partition_iterate() returned with non-zero.
17856
17857 2008-07-03 Pavel Roskin <proski@gnu.org>
17858
17859 * disk/ata.c (grub_ata_pio_write): Check status before writing,
17860 like we do in grub_ata_pio_read().
17861 (grub_ata_readwrite): Always write individual sectors. Fix the
17862 sector count for the remainder.
17863 (grub_ata_write): Enable writing to ATA devices. Correctly
17864 report error for ATAPI devices.
17865
17866 2008-07-02 Pavel Roskin <proski@gnu.org>
17867
17868 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
17869 warning.
17870
17871 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
17872 for every read sector, we already increment it for the whole
17873 batch. This fixes reading more than 256 sectors at once.
17874
17875 * util/grub-editenv.c (cmd_info): Cast argument to long
17876 explicitly. ptrdiff_t reduces to int on i386.
17877
17878 * util/grub-editenv.c (main): Be specific which parameter is
17879 missing.
17880
17881 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
17882 (memdisk): Make memdisk_orig_addr a pointer.
17883
17884 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
17885 for file offsets, use grub_off_t instead. Fix printf format
17886 warnings.
17887
17888 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
17889 there. Real unexpected warnings should not drown in the noise
17890 about known problems.
17891
17892 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
17893 grub_disk_addr_t for memory addresses.
17894
17895 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
17896 explicitly to fix a warning.
17897
17898 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
17899
17900 * Makefile.in (MODULE_LDFLAGS): New variable.
17901 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
17902 the linker accepts --build-id=none.
17903 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
17904 MODULE_LDFLAGS.
17905 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
17906
17907 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
17908 those in Linux XFS code. Provide a way to access 64-bit parent
17909 inode.
17910 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
17911 the end of struct grub_xfs_dir_header.
17912
17913 2008-07-02 Bean <bean123ch@gmail.com>
17914
17915 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
17916 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17917 and GRUB_IEEE1275_FLAG_NO_ANSI.
17918
17919 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
17920 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
17921 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
17922
17923 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
17924 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
17925
17926 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
17927 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
17928
17929 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
17930 esc sequence on non ANSI terminal.
17931 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
17932
17933 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
17934 beginning of file.
17935
17936 2008-07-02 Bean <bean123ch@gmail.com>
17937
17938 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
17939 (grub_editenv_SOURCES): New variable.
17940 (pkglib_MODULES): Add loadenv.mod.
17941 (loadenv_mod_SOURCES): New variable.
17942 (loadenv_mod_CFLAGS): Likewise.
17943 (loadenv_mod_LDFLAGS): Likewise.
17944
17945 * include/grub/envblk.h: New file.
17946
17947 * util/envblk.c: New file.
17948
17949 * util/grub-editenv.c: New file.
17950
17951 * commands/loadenv.c: New file.
17952
17953 2008-07-01 Pavel Roskin <proski@gnu.org>
17954
17955 * include/multiboot2.h (struct multiboot_tag_module): Use char,
17956 not unsigned char. This fixes warnings and is consistent with
17957 other tags.
17958
17959 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
17960
17961 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
17962
17963 * term/tparm.c (analyze): Always set *popcount.
17964
17965 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
17966 cast to fix a warning.
17967
17968 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
17969 cast to suppress a warning.
17970
17971 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
17972 grub_fshelp_read_file() expects.
17973
17974 * fs/fat.c: Fix UUID calculation on big-endian systems. We
17975 write uuid as a 32-bit value in CPU byte order, so declare and
17976 use it as such.
17977
17978 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
17979 long if the format specifier expects it.
17980 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
17981 * partmap/pc.c (pc_partition_map_iterate): Likewise.
17982 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
17983 long to fix a warning.
17984 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
17985 grub_dprintf() arguments to fix warnings.
17986
17987 2008-06-30 Pavel Roskin <proski@gnu.org>
17988
17989 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
17990 install_bsd_part immediately before core.img is embedded or
17991 modified on disk. This fixes core.img verification if core.img
17992 cannot be embedded.
17993
17994 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
17995 core_path to calculate the blocklist.
17996 Patch from Javier Martín <lordhabbit@gmail.com>
17997
17998 2008-06-29 Robert Millan <rmh@aybabtu.com>
17999
18000 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
18001 block to disk block.
18002 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
18003 Patch from Niels Böhm <bitbucket@arcor.de>
18004
18005 2008-06-29 Robert Millan <rmh@aybabtu.com>
18006
18007 * util/update-grub_lib.in (font_path): Search for fonts in
18008 /boot/grub first, which is more likely to be readable (we aren't
18009 deciding where fonts live, just looking for them).
18010
18011 2008-06-26 Pavel Roskin <proski@gnu.org>
18012
18013 * util/biosdisk.c (read_device_map): Don't leave dead map
18014 entries for devices failing stat() check.
18015
18016 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
18017 core_path_dev for the core.img path on the target device.
18018
18019 2008-06-26 Robert Millan <rmh@aybabtu.com>
18020
18021 * disk/fs_uuid.c: New file.
18022 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
18023 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
18024 (fs_uuid_mod_LDFLAGS): New variables.
18025 * include/grub/disk.h (grub_disk_dev_id): Add
18026 `GRUB_DISK_DEVICE_UUID_ID'.
18027 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
18028 implement iterate().
18029
18030 2008-06-26 Robert Millan <rmh@aybabtu.com>
18031
18032 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
18033 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
18034 Linux image includes no initrd.
18035
18036 2008-06-21 Javier Martín <lordhabbit@gmail.com>
18037
18038 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
18039 call to resolve the core image location that effectively appended the
18040 name twice.
18041
18042 2008-06-21 Robert Millan <rmh@aybabtu.com>
18043
18044 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
18045 call from here ...
18046
18047 * util/grub.d/10_hurd.in: ... to here ...
18048 * util/grub.d/10_linux.in: ... and here.
18049
18050 2008-06-19 Robert Millan <rmh@aybabtu.com>
18051
18052 * kern/main.c (grub_main): Export `prefix' variable immediately
18053 after it has been set by grub_machine_set_prefix().
18054
18055 2008-06-19 Robert Millan <rmh@aybabtu.com>
18056
18057 * commands/search.c (search_label, search_fs_uuid, search_file): Print
18058 search result when not saving to variable, not the other way around.
18059 When saving to variable, abort iteration as soon as a match is found.
18060
18061 2008-06-19 Robert Millan <rmh@aybabtu.com>
18062
18063 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
18064 check for partition that provides /boot/grub. Its logic is flawed,
18065 as it prevents prepare_grub_to_access_device() from being called
18066 multiple times.
18067
18068 2008-06-19 Robert Millan <rmh@aybabtu.com>
18069
18070 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
18071 "insmod" command directly when abstraction modules are needed,
18072 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
18073 since it had already been processed).
18074
18075 2008-06-19 Pavel Roskin <proski@gnu.org>
18076
18077 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
18078 changed. This is needed in case GRUB_LIBDIR changes.
18079 * conf/i386-ieee1275.rmk: Likewise.
18080 * conf/i386-linuxbios.rmk: Likewise.
18081 * conf/i386-pc.rmk: Likewise.
18082 * conf/powerpc-ieee1275.rmk: Likewise.
18083
18084 2008-06-18 Pavel Roskin <proski@gnu.org>
18085
18086 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
18087 kernel_elf_symlist.c to symlist.c for consistency with other
18088 architectures. Update all users.
18089 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
18090
18091 2008-06-18 Robert Millan <rmh@aybabtu.com>
18092
18093 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
18094 it in prefix.
18095
18096 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
18097 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
18098 a RAID device, run setup() for all members independently on whether
18099 LVM abstraction is being used.
18100 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
18101 If grub-mkimage has set `*install_dos_part == -2', don't override this
18102 value.
18103 Perform *install_dos_part adjustments independently on whether
18104 we're embedding or not.
18105 Clarify error message when image is too big for embedding.
18106 Remove duplicate *install_dos_part stanza.
18107
18108 2008-06-17 Robert Millan <rmh@aybabtu.com>
18109
18110 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
18111 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
18112 variables.
18113 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
18114 values in grub_ofconsole_normal_color and
18115 grub_ofconsole_highlight_color (they're not directly related to
18116 background and foreground).
18117 (grub_ofconsole_setcolorstate): Extract background and foreground
18118 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
18119
18120 2008-06-17 Robert Millan <rmh@aybabtu.com>
18121
18122 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
18123 /boot/grub for the check in last commit, not /boot (they could be
18124 different partitions).
18125
18126 2008-06-16 Robert Millan <rmh@aybabtu.com>
18127
18128 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
18129 asked to setup access for the same partition that provides /boot,
18130 don't bother using UUIDs since our root already has the value we
18131 want.
18132
18133 2008-06-16 Robert Millan <rmh@aybabtu.com>
18134
18135 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
18136 I2O devices.
18137 Patch from Sven Mueller <sven@debian.org>.
18138
18139 2008-06-16 Robert Millan <rmh@aybabtu.com>
18140
18141 * util/update-grub.in: Check for $EUID instead of $UID.
18142 Reported by Vincent Zweije.
18143
18144 2008-06-16 Bean <bean123ch@gmail.com>
18145
18146 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
18147 (grub_ext2_read_block): Likewise.
18148 (grub_ext2_read_inode): Likewise.
18149 (grub_ext2_mount): Likewise.
18150 (grub_ext2_close): Likewise.
18151 (grub_ext3_get_journal): Removed.
18152
18153 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
18154 (grub_reiserfs_read_symlink): Likewise.
18155 (grub_reiserfs_mount): Likewise.
18156 (grub_reiserfs_open): Likewise.
18157 (grub_reiserfs_read): Likewise.
18158 (grub_reiserfs_close): Likewise.
18159 (grub_reiserfs_get_journal): Removed.
18160
18161 * fs/fshelp.c (grub_fshelp_read): Removed.
18162 (grub_fshelp_map_block): Likewise.
18163
18164 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
18165 (grub_fshelp_journal): Likewise.
18166 (grub_fshelp_read): Likewise.
18167 (grub_fshelp_map_block): Likewise.
18168
18169 2008-06-16 Pavel Roskin <proski@gnu.org>
18170
18171 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
18172 floating point anymore.
18173 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
18174
18175 2008-06-15 Pavel Roskin <proski@gnu.org>
18176
18177 * commands/ls.c (grub_ls_list_files): Use integer calculations
18178 for human readable format, avoid floating point use.
18179 * kern/misc.c (grub_ftoa): Remove.
18180 (grub_vsprintf): Remove floating point support.
18181
18182 2008-06-15 Robert Millan <rmh@aybabtu.com>
18183
18184 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
18185 devices.
18186 Reported by Max Vozeler.
18187
18188 2008-06-15 Robert Millan <rmh@aybabtu.com>
18189
18190 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
18191 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
18192 skipped later.
18193 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
18194 the beginning of the prefix.
18195
18196 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
18197 It is assumed that if we have a memdisk, grub-mkimage has set
18198 grub_prefix to include the "(memdisk)" drive in it.
18199
18200 2008-06-15 Robert Millan <rmh@aybabtu.com>
18201
18202 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
18203 Initialize keyboard controller after registering the terminal, so that
18204 grub_printf() can be called from grub_keyboard_controller_init().
18205
18206 2008-06-15 Robert Millan <rmh@aybabtu.com>
18207
18208 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
18209 extent-btree which is written as big endian on disk.
18210 Reported by Alain Greppin <al@chilibi.org>.
18211
18212 2008-06-14 Robert Millan <rmh@aybabtu.com>
18213
18214 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
18215 * util/i386/pc/grub-install.in (modules): Likewise.
18216
18217 2008-06-13 Pavel Roskin <proski@gnu.org>
18218
18219 * commands/ls.c (grub_ls_list_files): Fix format warnings.
18220
18221 2008-06-13 Bean <bean123ch@gmail.com>
18222
18223 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
18224
18225 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
18226
18227 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
18228 to indicate sparse block.
18229
18230 2008-06-12 Pavel Roskin <proski@gnu.org>
18231
18232 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
18233 number, grub_fshelp_read() does it for us.
18234
18235 * fs/fshelp.c (grub_fshelp_read): New function. Implement
18236 linear disk read with journal translation.
18237 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
18238 * include/grub/fshelp.h: Declare grub_fshelp_read().
18239
18240 2008-06-09 Pavel Roskin <proski@gnu.org>
18241
18242 * fs/minix.c (grub_minix_mount): Handle error reading
18243 superblock.
18244
18245 2008-06-08 Robert Millan <rmh@aybabtu.com>
18246
18247 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
18248 don't append the RAID prefix afterwards.
18249 Reported by Clint Adams.
18250
18251 2008-06-08 Robert Millan <rmh@aybabtu.com>
18252
18253 Based on description from Pavel:
18254 * kern/disk.c (grub_disk_check_range): Rename to ...
18255 (grub_disk_adjust_range): ... this. Add a comment explaining the
18256 tasks performed by this function.
18257
18258 2008-06-08 Robert Millan <rmh@aybabtu.com>
18259
18260 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
18261 `num_serial' (for consistency with other variables).
18262 (struct grub_ntfs_data): Add `uuid' member.
18263 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
18264 (grub_ntfs_uuid): New function.
18265 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
18266
18267 2008-06-07 Pavel Roskin <proski@gnu.org>
18268
18269 * util/biosdisk.c (open_device): Revert last change to the
18270 function, it broke installation. The sector needs to be
18271 different dependent on which device is opened.
18272
18273 2008-06-06 Robert Millan <rmh@aybabtu.com>
18274
18275 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
18276 rest of GRUB, and breakage doesn't happen if its value were modified.
18277
18278 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
18279 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
18280 a constant (same value).
18281 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
18282 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
18283
18284 2008-06-06 Robert Millan <rmh@aybabtu.com>
18285
18286 * util/biosdisk.c (open_device): Do not modify sector offset when
18287 accessing a partition. kern/disk.c already handles this for us.
18288
18289 2008-06-06 Robert Millan <rmh@aybabtu.com>
18290
18291 * util/grub-emu.c (grub_machine_init): Move code in this function from
18292 here ...
18293 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
18294 segfault in case grub_printf() is called).
18295
18296 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
18297 grub_probe. Update all users not to explicitly add it again.
18298 (grub_device): New variable; contains corresponding device for grubdir.
18299 (fs_module, partmap_module, devabstraction_module): Pass
18300 `--device ${grub_device}' to grub_probe to avoid traversing /dev
18301 every time.
18302
18303 2008-06-05 Robert Millan <rmh@aybabtu.com>
18304
18305 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
18306 is found, print it (same layout as with labels).
18307
18308 2008-06-04 Robert Millan <rmh@aybabtu.com>
18309
18310 * util/biosdisk.c (get_drive): Rename to ...
18311 (find_grub_drive): ... this. Update all users.
18312
18313 (get_os_disk): Rename to ...
18314 (convert_system_partition_to_system_disk): ... this. Update all users.
18315
18316 (find_drive): Rename to ...
18317 (find_system_device): ... this. Update all users.
18318
18319 2008-06-04 Robert Millan <rmh@aybabtu.com>
18320
18321 * util/biosdisk.c (get_os_disk): Handle IDA devices.
18322 * util/grub-mkdevicemap.c (get_mmc_disk_name)
18323 (make_device_map): Likewise.
18324
18325 2008-06-01 Robert Millan <rmh@aybabtu.com>
18326
18327 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
18328 before dereferencing it.
18329
18330 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
18331 union with fat12/fat16-specific ones. Add some new fields, including
18332 `num_serial' for both versions.
18333 (struct grub_fat_data): Add `uuid' member.
18334 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
18335 names. Initialize `data->uuid' using `num_serial'.
18336 (grub_fat_uuid): New function.
18337 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
18338
18339 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
18340 (grub_reiserfs_uuid): New function.
18341 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
18342 member.
18343
18344 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
18345 (grub_xfs_uuid): New function.
18346 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
18347
18348 2008-06-01 Robert Millan <rmh@aybabtu.com>
18349
18350 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
18351 code that is backward compatible with pre-uuid search command.
18352
18353 2008-05-31 Robert Millan <rmh@aybabtu.com>
18354
18355 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
18356 floppies after everything else, to ensure floppy drive isn't accessed
18357 unnecessarily (patch from Bean).
18358
18359 2008-05-31 Robert Millan <rmh@aybabtu.com>
18360
18361 * commands/search.c (search_label, search_fs_uuid, search_file): Do
18362 not print device names when we were asked to set a variable.
18363
18364 2008-05-31 Robert Millan <rmh@aybabtu.com>
18365
18366 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
18367 using "cursor-on" and "cursor-off" commands (understood at least by
18368 the Open Firmware flavour on OLPC).
18369
18370 2008-05-31 Michael Gorven <michael@gorven.za.net>
18371
18372 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
18373 on and off sequences.
18374
18375 2008-05-31 Robert Millan <rmh@aybabtu.com>
18376
18377 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
18378 * util/update-grub.in: Likewise.
18379
18380 2008-05-30 Pavel Roskin <proski@gnu.org>
18381
18382 * util/biosdisk.c (linux_find_partition): Simplify logic and
18383 make the code more universal. Keep special processing for
18384 devfs, but use a simple rule for all other devices. If the
18385 device ends with a number, append 'p' and the partition number.
18386 Otherwise, append only the partition number.
18387
18388 2008-05-30 Robert Millan <rmh@aybabtu.com>
18389
18390 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
18391 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
18392 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
18393 the `root' parameter to Linux.
18394
18395 2008-05-30 Robert Millan <rmh@aybabtu.com>
18396
18397 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
18398 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
18399 --fs_uuid with --fs-uuid.
18400 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
18401 all filesystems support them).
18402
18403 2008-05-30 Robert Millan <rmh@aybabtu.com>
18404
18405 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
18406 grub_printf() flags, since we're printing in units of 2 bytes.
18407
18408 2008-05-30 Robert Millan <rmh@aybabtu.com>
18409
18410 * util/grub.d/00_header.in: Remove obsolete comment referencing
18411 convert_system_path_to_grub_path().
18412 * util/update-grub.in: Likewise.
18413 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
18414 (convert_system_path_to_grub_path): Add a warning message explaining
18415 that this function is deprecated. Rely on is_path_readable_by_grub()
18416 for the readability checks.
18417 (font_path): Use is_path_readable_by_grub() for the readability
18418 check rather than convert_system_path_to_grub_path().
18419
18420 2008-05-30 Robert Millan <rmh@aybabtu.com>
18421
18422 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
18423 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
18424 converting it first.
18425 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
18426 grub.cfg for access to font file, and afterwards call it again to set
18427 the root device.
18428
18429 2008-05-30 Robert Millan <rmh@aybabtu.com>
18430
18431 * commands/search.c (options): Add --fs_uuid option.
18432 (search_fs_uuid): New function.
18433 (grub_cmd_search): Fix --set argument passing.
18434 Use search_fs_uuid() when requested via --fs_uuid.
18435 (grub_search_init): Update help message.
18436 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
18437 and redeclare it as an array of 16-bit words.
18438 (grub_ext2_uuid): New function.
18439 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
18440 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
18441 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
18442 (GRUB_DEVICE_BOOT_UUID): New variables.
18443 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
18444 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
18445 whenever possible.
18446 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
18447 just assume `root' variable has the right value.
18448 * util/grub.d/10_linux.in: Likewise.
18449 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
18450 via PRINT_FS_UUID.
18451 (main): Recognise `-t fs_uuid' argument.
18452
18453 2008-05-30 Robert Millan <rmh@aybabtu.com>
18454
18455 * util/biosdisk.c (map): Redefine structure to hold information
18456 about GRUB drive name.
18457 (get_drive): Reimplement without assuming (and verifying) BIOS-like
18458 drive names.
18459 (call_hook): Remove.
18460 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
18461 member. Assume drive has partitions.
18462 (grub_util_biosdisk_open): Access device names via `.device' struct
18463 member.
18464 (open_device): Likewise.
18465 (find_drive): Likewise.
18466 (read_device_map): Adjust map[] usage to match the new struct
18467 definition. Don't check for duplicates (still possible, but not cheap
18468 anymore).
18469 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
18470 (make_device_name): Remove assumption of BIOS-like drive names.
18471
18472 2008-05-30 Pavel Roskin <proski@gnu.org>
18473
18474 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
18475 compiling execute.c doesn't need grub_script.tab.h anymore.
18476 (normal/command.c_DEPENDENCIES): Likewise.
18477 (normal/function.c_DEPENDENCIES): Likewise.
18478 * conf/i386-ieee1275.rmk: Likewise.
18479 * conf/i386-linuxbios.rmk: Likewise.
18480 * conf/i386-pc.rmk: Likewise.
18481 * conf/powerpc-ieee1275.rmk: Likewise.
18482 * conf/sparc64-ieee1275.rmk: Likewise.
18483
18484 2008-05-29 Pavel Roskin <proski@gnu.org>
18485
18486 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
18487 when scanning metadata for volume group name.
18488
18489 * include/grub/script.h: Don't include grub_script.tab.h. It's
18490 a generated file, which may only be included from the files with
18491 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
18492 use union YYSTYPE, as the later allows forward declaration.
18493 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
18494
18495 2008-05-29 Robert Millan <rmh@aybabtu.com>
18496
18497 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
18498 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
18499 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
18500 (grub_console_checkkey): Add grub_dprintf() call to report unknown
18501 scan codes.
18502
18503 2008-05-29 Robert Millan <rmh@aybabtu.com>
18504
18505 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
18506 control key combinations.
18507
18508 2008-05-29 Robert Millan <rmh@aybabtu.com>
18509
18510 * util/powerpc/ieee1275/grub-install.in: Move from here ...
18511 * util/ieee1275/grub-install.in: ... to here.
18512 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
18513 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
18514 (grub_install_SOURCES): Likewise.
18515
18516 2008-05-29 Robert Millan <rmh@aybabtu.com>
18517
18518 * fs/affs.c: Update copyright year.
18519 * fs/ext2.c: Likewise.
18520 * fs/fshelp.c: Likewise.
18521 * fs/hfsplus.c: Likewise.
18522 * fs/ntfs.c: Likewise.
18523 * fs/xfs.c: Likewise.
18524 * include/grub/fshelp.h: Likewise.
18525 * util/grub-mkdevicemap.c: Likewise.
18526
18527 2008-05-28 Robert Millan <rmh@aybabtu.com>
18528
18529 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
18530 might need to be fatfs to support some firmware implementations
18531 (e.g. OFW or EFI).
18532
18533 2008-05-28 Robert Millan <rmh@aybabtu.com>
18534
18535 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
18536 devices.
18537 * util/grub-mkdevicemap.c (get_mmc_disk_name)
18538 (make_device_map): Likewise.
18539
18540 2008-05-20 Bean <bean123ch@gmail.com>
18541
18542 * fs/fshelp.c (grub_fshelp_map_block): New function.
18543 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
18544 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
18545
18546 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
18547 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
18548 (grub_fshelp_journal): New structure.
18549 (grub_fshelp_map_block): New function prototype.
18550 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
18551 (grub_fshelp_map_block): Likewise.
18552
18553 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
18554 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
18555 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
18556 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
18557 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
18558 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
18559 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
18560 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
18561 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
18562 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
18563 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
18564 (grub_ext2_sblock): New members for journal support.
18565 (grub_ext3_journal_header): New structure.
18566 (grub_ext3_journal_revoke_header): Likewise.
18567 (grub_ext3_journal_block_tag): Likewise.
18568 (grub_ext3_journal_sblock): Likewise.
18569 (grub_fshelp_node): New members logfile and journal.
18570 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
18571 grub_fshelp_map_block to get real block number.
18572 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
18573 number.
18574 (grub_ext2_read_inode): Likewise.
18575 (grub_ext3_get_journal): New function.
18576 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
18577 (grub_ext2_close): Release memory used by journal.
18578
18579 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
18580 (REISERFS_MAGIC_DESC_BLOCK): New macro.
18581 (grub_reiserfs_transaction_header): Renamed to
18582 grub_reiserfs_description_block, replace field data with real_blocks.
18583 (grub_reiserfs_commit_block): New structure.
18584 (grub_reiserfs_data): New member journal.
18585 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
18586 number.
18587 (grub_reiserfs_read_symlink): Likewise.
18588 (grub_reiserfs_iterate_dir): Likewise.
18589 (grub_reiserfs_open): Likewise.
18590 (grub_reiserfs_read): Likewise.
18591 (grub_reiserfs_get_journal): New function.
18592 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
18593 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
18594 using grub_reiserfs_get_journal.
18595 (grub_reiserfs_close): Release memory used by journal.
18596
18597 * fs/affs.c (grub_affs_read_block): Change block type to
18598 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
18599
18600 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
18601
18602 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
18603
18604 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
18605
18606 * fs/udf.c (grub_udf_read_block): Change block type to
18607 grub_disk_addr_t. Use type cast to avoid warning.
18608
18609 * fs/xfs.c (grub_xfs_read_block): Likewise.
18610
18611 2008-05-16 Christian Franke <franke@computer.org>
18612
18613 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
18614 to ensure that break with ESC will always work.
18615 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
18616 Remove ESC from keyboard queue.
18617
18618 2008-05-16 Christian Franke <franke@computer.org>
18619
18620 * util/biosdisk.c: [__CYGWIN__] Add includes.
18621 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
18622 (get_os_disk): Move variable declarations to OS specific
18623 parts to avoid warning.
18624 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
18625 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
18626 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
18627 Cygwin.
18628 * util/getroot.c: [__CYGWIN__] Add includes.
18629 (strip_extra_slashes): Fix "/" case.
18630 [__CYGWIN__] (get_win32_path): New function.
18631 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
18632 [__CYGWIN__] (find_root_device): Disable.
18633 [__CYGWIN__] (get_bootsec_serial): New function.
18634 [__CYGWIN__] (find_cygwin_root_device): Likewise.
18635 [__linux__] (grub_guess_root_device): Add early returns to simplify
18636 structure.
18637 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
18638 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
18639 check for Linux only.
18640
18641 2008-05-15 Bean <bean123ch@gmail.com>
18642
18643 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
18644 keyboard hang problem in apple's intel mac.
18645
18646 2008-05-09 Robert Millan <rmh@aybabtu.com>
18647
18648 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
18649 devices.
18650 * util/grub-mkdevicemap.c (get_virtio_disk_name)
18651 (make_device_map): Likewise.
18652 Reported by Aurelien Jarno <aurel32@debian.org>
18653
18654 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
18655
18656 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
18657 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
18658 (make_device_map): Output entries for xvd type disks.
18659
18660 2008-05-07 Robert Millan <rmh@aybabtu.com>
18661
18662 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
18663 devices.
18664 * util/grub-mkdevicemap.c (get_cciss_disk_name)
18665 (make_device_map): Likewise.
18666 Reported by Roland Dreier <rdreier@cisco.com>
18667
18668 2008-05-07 Robert Millan <rmh@aybabtu.com>
18669
18670 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
18671 grub_strstr() call. Correct a few mistakes in failure path handling.
18672
18673 2008-05-06 Robert Millan <rmh@aybabtu.com>
18674
18675 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
18676 Do not print a trailing slash (therefore, the root directory is an
18677 empty string).
18678 (convert_system_path_to_grub_path): Do not remove trailing slash
18679 from make_system_path_relative_to_its_root() output.
18680
18681 * util/i386/pc/grub-install.in: Add trailing slash to output from
18682 make_system_path_relative_to_its_root().
18683
18684 2008-05-06 Robert Millan <rmh@aybabtu.com>
18685
18686 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
18687 ensures that output lines aren't intermangled with those sent to
18688 stderr (via grub_util_info()).
18689 * util/grub-probe.c (grub_refresh): Likewise.
18690 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
18691
18692 2008-05-05 Christian Franke <franke@computer.org>
18693
18694 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
18695 Add Cygwin device names.
18696 (get_ide_disk_name) [__CYGWIN__]: Likewise.
18697 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
18698 (check_device): Return error instead of success on empty name.
18699 (make_device_map): Move label inside linux specific code to
18700 prevent compiler warning.
18701
18702 2008-04-30 Robert Millan <rmh@aybabtu.com>
18703
18704 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
18705 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
18706 first boot option.
18707 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
18708
18709 2008-04-29 Robert Millan <rmh@aybabtu.com>
18710
18711 * docs/grub.cfg: New file (example GRUB configuration).
18712
18713 2008-04-26 Robert Millan <rmh@aybabtu.com>
18714
18715 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
18716 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
18717 and `disk/ieee1275/nand.c'.
18718
18719 2008-04-25 Bean <bean123ch@gmail.com>
18720
18721 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
18722 i386-linuxbios.
18723
18724 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
18725 change the buffer size to 4096 for cdrom device.
18726
18727 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
18728 and nand.mod.
18729 (_linux_mod_SOURCES): New variable.
18730 (_linux_mod_CFLAGS): Likewise.
18731 (_linux_mod_LDFLAGS): Likewise.
18732 (linux_mod_SOURCES): Likewise.
18733 (linux_mod_CFLAGS): Likewise.
18734 (linux_mod_LDFLAGS): Likewise.
18735 (nand_mod_SOURCES): Likewise.
18736 (nand_mod_CFLAGS): Likewise.
18737 (nand_mod_LDFLAGS): Likewise.
18738
18739 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
18740 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
18741 type property. (nand device in olpc don't have this property)
18742
18743 * include/grub/disk.h (grub_disk_dev_id): New macro
18744 GRUB_DISK_DEVICE_NAND_ID.
18745
18746 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
18747 function prototype.
18748 (grub_rescue_cmd_initrd): Likewise.
18749
18750 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
18751 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
18752 ofw_cif_handler and ofw_idt, adjust padding number.
18753
18754 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
18755 GRUB_MACHINE_IEEE1275 is defined.
18756
18757 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
18758 Use NESTED_FUNC_ATTR attribute on the hook parameter.
18759
18760 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
18761 on nested function heap_init.
18762 (grub_upper_mem): New variable for i386-ieee1275.
18763 (grub_get_extended_memory): New function for i386-ieee1275.
18764 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
18765
18766 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
18767 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
18768 property.
18769
18770 * loader/i386/ieee1275/linux.c: New file.
18771
18772 * loader/i386/ieee1275/linux_normal.c: New file.
18773
18774 * disk/ieee1275/nand.c: New file.
18775
18776 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
18777
18778 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
18779 value.
18780 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
18781
18782 2008-04-18 Robert Millan <rmh@aybabtu.com>
18783
18784 Restructures early code path on ieee1275 to unify grub_main() as
18785 the first C function that is executed in every platform.
18786
18787 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
18788 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
18789 cmain().
18790 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
18791 * kern/ieee1275/cmain.c (cmain): Rename to ...
18792 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
18793 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
18794 at the beginning.
18795
18796 2008-04-18 Robert Millan <rmh@aybabtu.com>
18797
18798 * util/update-grub.in: Fix syntax error when setting
18799 `GRUB_PRELOAD_MODULES'.
18800 Reported by Stephane Chazelas <stephane@artesyncp.com>
18801
18802 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
18803
18804 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
18805 section into account, newer toolchains generate unique build ids
18806 * configure.ac: remove the test for --build-id=none acceptance,
18807 we want build ids to be preserved
18808 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
18809 far from other sections don't cause the raw binary images grow
18810 size
18811
18812 2008-04-15 Robert Millan <rmh@aybabtu.com>
18813
18814 * disk/lvm.c: Update copyright year.
18815 * kern/misc.c: Likewise.
18816
18817 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
18818
18819 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
18820 there is no memory left for physical volume name.
18821
18822 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
18823
18824 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
18825 volume name mapping to support bigger than 9 character names properly.
18826
18827 2008-04-13 Robert Millan <rmh@aybabtu.com>
18828
18829 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
18830 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
18831
18832 2008-04-13 Christian Franke <franke@computer.org>
18833
18834 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
18835 to create a floppy emulation boot CD when non emulation mode
18836 does not work.
18837 Enable Joliet CD filesystem extension.
18838
18839 2008-04-13 Robert Millan <rmh@aybabtu.com>
18840
18841 * kern/misc.c (grub_strncat): Fix off-by-one error.
18842 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
18843
18844 * kern/env.c (grub_env_context_close): Clear current context, not
18845 previous one.
18846 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
18847
18848 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
18849
18850 2008-04-13 Robert Millan <rmh@aybabtu.com>
18851
18852 Improve robustness when handling LVM.
18853
18854 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
18855 (and leave `*p' unmodified).
18856 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
18857 through it.
18858 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
18859 iterating through it.
18860 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
18861 through it.
18862 (grub_lvm_scan_device): Check the return value (and fail gracefully
18863 when due) on each grub_lvm_getvalue() or grub_strstr() call.
18864 Don't assume `vg->pvs != NULL' when iterating through it.
18865
18866 2008-04-13 Robert Millan <rmh@aybabtu.com>
18867
18868 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
18869 * genmk.rb (partmap): New variable.
18870 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
18871 (#{partmap}): New target rule.
18872 * genpartmaplist.sh: New file.
18873 * Makefile.in (pkglib_DATA): Add partmap.lst.
18874 (partmap.lst): New target rule.
18875 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
18876 modules (including all partition maps), instead of preloading them.
18877
18878 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
18879
18880 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
18881 `linux-boot-prober' (if installed) to detect other operating
18882 systems which are installed on the computer and add them to
18883 the boot menu.
18884 * conf/common.rmk: Build and install 30_os-prober.
18885
18886 2008-04-12 Robert Millan <rmh@aybabtu.com>
18887
18888 * kern/powerpc/ieee1275/init.c: Move from here ...
18889 * kern/ieee1275/init.c: ... to here. Update all users.
18890
18891 * kern/powerpc/ieee1275/cmain.c: Move from here ...
18892 * kern/ieee1275/cmain.c: ... to here. Update all users.
18893
18894 * kern/powerpc/ieee1275/openfw.c: Move from here ...
18895 * kern/ieee1275/openfw.c: ... to here. Update all users.
18896
18897 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
18898 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
18899
18900 2008-04-10 Pavel Roskin <proski@gnu.org>
18901
18902 * configure.ac: Always use "_cv_" in cache variables for
18903 compatibility with Autoconf 2.62.
18904
18905 2008-04-07 Robert Millan <rmh@aybabtu.com>
18906
18907 Revert grub/machine/init.h addition by Pavel (since it breaks on
18908 i386-ieee1275 and others):
18909 * util/i386/pc/misc.c: Remove grub/machine/init.h.
18910 * util/powerpc/ieee1275/misc.c: Likewise.
18911
18912 2008-04-07 Robert Millan <rmh@aybabtu.com>
18913
18914 * util/grub-probe.c (probe): Improve error message.
18915
18916 2008-04-07 Robert Millan <rmh@aybabtu.com>
18917
18918 * util/biosdisk.c (read_device_map): Skip devices that don't exist
18919 (this prevents the presence of a bogus entry from ruining the whole
18920 thing).
18921
18922 2008-04-06 Pavel Roskin <proski@gnu.org>
18923
18924 * util/biosdisk.c: Include grub/util/biosdisk.h.
18925 * util/grub-fstest.c (execute_command): Make static.
18926 * util/grub-mkdevicemap.c (check_device): Likewise.
18927 * util/i386/pc/misc.c: Include grub/machine/init.h.
18928 * util/powerpc/ieee1275/misc.c: Likewise.
18929 * util/lvm.c: Include grub/util/lvm.h.
18930 * util/misc.c: Include grub/kernel.h, grub/misc.h and
18931 grub/cache.h.
18932 * util/raid.c: Include grub/util/raid.h.
18933 (grub_util_getdiskname): Make static.
18934
18935 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
18936 grub_hostfs_fini(), as they are called from grub_init_all() and
18937 grub_fini_all() respectively. This fixes an infinite loop in
18938 grub-fstest due to double registration of hostfs.
18939 Reported by Christian Franke <Christian.Franke@t-online.de>
18940
18941 2008-04-05 Pavel Roskin <proski@gnu.org>
18942
18943 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
18944 all 8 functions. Otherwise, probe function 0 only.
18945
18946 2008-04-04 Pavel Roskin <proski@gnu.org>
18947
18948 * commands/lspci.c (grub_lspci_iter): Print the bus number
18949 correctly.
18950
18951 * commands/lspci.c (grub_pci_classes): Fix typos.
18952 (grub_lspci_iter): Don't print func twice. Print vendor ID
18953 before device ID, as it's normally done.
18954
18955 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
18956 Fix signedness warnings.
18957 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
18958 Likewise.
18959 * util/ieee1275/get_disk_name.c: Include config.h so that
18960 _GNU_SOURCE is defined and getline() is declared. Mark an
18961 unused argument as such. Fix a signedness warning.
18962
18963 2008-04-02 Pavel Roskin <proski@gnu.org>
18964
18965 * genkernsyms.sh.in: Use more robust assignments for CC and
18966 srcdir. Quote srcdir.
18967 * gensymlist.sh.in: Likewise. Assert at the compile time that
18968 the symbol table is not empty.
18969
18970 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
18971 * fs/cpio.c (grub_cpio_read): Likewise.
18972
18973 2008-04-01 Pavel Roskin <proski@gnu.org>
18974
18975 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
18976 * disk/host.c (grub_host_open): Likewise.
18977 * disk/loopback.c (grub_loopback_open): Likewise.
18978 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
18979 disk->id as in disk/host.c, not a multi-character constant.
18980
18981 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
18982 later is obsolete, potentially dangerous and sets a bad example.
18983 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
18984 * util/misc.c (grub_util_get_image_size): Likewise.
18985
18986 * disk/loopback.c (options): Improve help for "--partitions".
18987
18988 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
18989 options to align them with the short options, e.g. "echo -e".
18990
18991 2008-03-31 Bean <bean123ch@gmail.com>
18992
18993 * video/reader/png.c (grub_png_data): New member is_16bit and
18994 image_data.
18995 (grub_png_decode_image_header): Detect 16 bit png image.
18996 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
18997 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
18998 (grub_video_reader_png): Release memory occupied by image_data.
18999
19000 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
19001 4096 bytes.
19002 (grub_nfs_mount): Skip the test for sector per cluster.
19003
19004 * include/grub/ntfs.h (MAX_SPC): Removed.
19005
19006 2008-03-31 Bean <bean123ch@gmail.com>
19007
19008 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
19009 (grub_probe_SOURCES): Add fs/afs.c.
19010 (grub_fstest_SOURCES): Likewise.
19011 (afs_mod_SOURCES): New variable.
19012 (afs_mod_CFLAGS): Likewise.
19013 (afs_mod_LDFLAGS): Likewise.
19014
19015 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
19016 (grub_emu_SOURCES): Likewise.
19017
19018 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19019
19020 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19021
19022 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19023
19024 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19025
19026 * fs/afs.c: New file.
19027
19028 2008-03-30 Pavel Roskin <proski@gnu.org>
19029
19030 * disk/host.c: Include grub/misc.h to fix a warning.
19031 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
19032 warnings about implicit declarations.
19033
19034 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
19035 variable.
19036 * include/grub/i386/loader.h: Change declaration of
19037 grub_linux_boot() to match what grub_loader_set() expects.
19038 * util/getroot.c (grub_guess_root_device): Return const char* to
19039 fix a warning.
19040 * util/grub-probe.c (probe): Fix a warning about uninitialized
19041 abstraction_name variable.
19042 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
19043 second argument as unused to fix a warning.
19044
19045 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
19046 missing grub_error() call.
19047
19048 * util/update-grub_lib.in: Define datarootdir, since Autoconf
19049 2.60 and newer uses it to define datadir.
19050
19051 * commands/sleep.c: Fix warning about implicit declaration.
19052 * disk/memdisk.c: Likewise.
19053 * loader/aout.c: Likewise.
19054 * loader/i386/bsd_normal.c: Likewise.
19055 * util/grub-probe.c: Likewise.
19056
19057 * commands/i386/cpuid.c (has_longmode): Make static.
19058 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
19059 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
19060
19061 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
19062 GDT. This is more robust, as %ds can change.
19063 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
19064 calling real_to_prot().
19065 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
19066
19067 2008-03-28 Pavel Roskin <proski@gnu.org>
19068
19069 * kern/i386/pc/startup.S: Assert that uncompressed functions
19070 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
19071 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
19072 code, as they push parts of the code (error handlers) beyond
19073 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
19074 code as correctness and size.
19075
19076 2008-03-28 Pavel Roskin <proski@gnu.org>
19077
19078 * kern/i386/pc/startup.S
19079 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
19080 data block address to the real mode, keep offset minimal. This
19081 works around a bug in AWARD BIOS on old Athlon systems, which
19082 makes CD detection hang.
19083
19084 2008-03-26 Pavel Roskin <proski@gnu.org>
19085
19086 * normal/color.c (grub_parse_color_name_pair): Make `name' a
19087 const.
19088 * include/grub/normal.h: Add grub_parse_color_name_pair()
19089 declaration.
19090
19091 2008-03-24 Bean <bean123ch@gmail.com>
19092
19093 * disk/i386/pc/biosdisk.c (cd_start): Removed.
19094 (cd_count): Removed.
19095 (cd_drive): New variable.
19096 (grub_biosdisk_get_drive): Don't check for (cdN) device.
19097 (grub_biosdisk_call_hook): Likewise.
19098 (grub_biosdisk_iterate): Change cdrom detection method.
19099 (grub_biosdisk_open): Replace cd_start with cd_drive.
19100 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
19101 detect cdrom device.
19102
19103 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
19104 Removed.
19105 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
19106 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
19107 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
19108 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
19109 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
19110 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
19111 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
19112 (grub_biosdisk_cdrp): New structure.
19113 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
19114
19115 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
19116
19117 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
19118 device.
19119
19120 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
19121 New function.
19122
19123 2008-03-20 Robert Millan <rmh@aybabtu.com>
19124
19125 Remove 2 TiB limit in ata.mod.
19126 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
19127 (grub_ata_dumpinfo): Print sector count with 0x%llx.
19128 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
19129 grub_uint64_t instead of grub_uint32_t.
19130
19131 2008-03-05 Bean <bean123ch@gmail.com>
19132
19133 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
19134 (grub_multiboot): Set boot device.
19135
19136 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
19137
19138 2008-03-02 Bean <bean123ch@gmail.com>
19139
19140 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
19141 symlink_buffer.
19142
19143 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
19144
19145 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
19146 texinfo.tex.
19147
19148 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
19149 modified.
19150
19151 * docs/fdl.texi: New file.
19152
19153 * docs/mdate-sh: New file. Copied from gnulib.
19154 * docs/texinfo.tex: Likewise.
19155
19156 * config.guess: Updated from gnulib.
19157 * install-sh: Likewise.
19158
19159 2008-02-28 Robert Millan <rmh@aybabtu.com>
19160
19161 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
19162 (aout_mod_SOURCES): New variable.
19163 (aout_mod_CFLAGS): Likewise.
19164 (aout_mod_LDFLAGS): Likewise.
19165
19166 * conf/i386-ieee1275.rmk: Likewise.
19167
19168 2008-02-28 Robert Millan <rmh@aybabtu.com>
19169
19170 * util/update-grub.in: Reorganise terminal validity check. Accept
19171 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
19172 Based on suggestion by Franklin PIAT.
19173
19174 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
19175
19176 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
19177 function.
19178 * util/getroot.c (grub_util_check_block_device): New function that
19179 returns the given argument if it is a block device and returns NULL else.
19180 * util/grub-probe.c (argument_is_device): New variable.
19181 (probe): Promote device_name from a variable to an argument. Receive
19182 device_name from grub_util_check_block_device() if path is NULL and from
19183 grub_guess_root_device() else. Do not free() device_name anymore.
19184 (options): Introduce new parameter '-d, --device'.
19185 (main): Add description of the new parameter to the help screen.
19186 Rename path variable to argument. Set argument_is_device if the '-d'
19187 option is given. Pass argument to probe() depending on
19188 argument_is_device.
19189
19190 2008-02-24 Bean <bean123ch@gmail.com>
19191
19192 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
19193 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
19194 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
19195 (GRUB_ISO9660_VOLDESC_PART): Likewise.
19196 (GRUB_ISO9660_VOLDESC_END): Likewise.
19197 (grub_iso9660_primary_voldesc): New member escape.
19198 (grub_iso9660_data): New member joliet.
19199 (grub_iso9660_convert_string): New function.
19200 (grub_iso9660_mount): Detect joliet extension.
19201 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
19202 (grub_iso9660_iso9660_label): Likewise.
19203
19204 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
19205 (grub_setup_SOURCES): Add fs/udf.c.
19206 (grub_fstest_SOURCES): Likewise.
19207 (udf_mod_SOURCES): New variable.
19208 (udf_mod_CFLAGS): Likewise.
19209 (udf_mod_LDFLAGS): Likewise.
19210
19211 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
19212 (grub_emu_SOURCES): Likewise.
19213
19214 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19215
19216 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19217
19218 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19219
19220 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19221
19222 * fs/udf.c: New file.
19223
19224 2008-02-24 Robert Millan <rmh@aybabtu.com>
19225
19226 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
19227 (normal/lexer.c_DEPENDENCIES): New variables.
19228 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
19229 (normal/lexer.c_DEPENDENCIES): Likewise.
19230 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
19231 (normal/lexer.c_DEPENDENCIES): Likewise.
19232 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
19233 (normal/lexer.c_DEPENDENCIES): Likewise.
19234 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
19235 (normal/lexer.c_DEPENDENCIES): Likewise.
19236 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
19237 (normal/lexer.c_DEPENDENCIES): Likewise.
19238
19239 2008-02-23 Robert Millan <rmh@aybabtu.com>
19240
19241 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
19242 since they were intended to be in hex. This didn't break previously
19243 because of a bug in gpt_partition_map_iterate() (see below).
19244
19245 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
19246 when checking the validity of GPT header.
19247 Remove `partno', since it always provides the same information as `i'.
19248
19249 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
19250
19251 * include/grub/efi/time.h: Fix a wrong comment.
19252
19253 2008-02-19 Pavel Roskin <proski@gnu.org>
19254
19255 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
19256 message.
19257
19258 2008-02-19 Bean <bean123ch@gmail.com>
19259
19260 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
19261 (aout_mod_SOURCES): New variable.
19262 (aout_mod_CFLAGS): Likewise.
19263 (aout_mod_LDFLAGS): Likewise.
19264 (_bsd_mod_SOURCES): New variable.
19265 (_bsd_mod_CFLAGS): Likewise.
19266 (_bsd_mod_LDFLAGS): Likewise.
19267 (bsd_mod_SOURCES): New variable.
19268 (bsd_mod_CFLAGS): Likewise.
19269 (bsd_mod_LDFLAGS): Likewise.
19270
19271 * include/grub/aout.h: New file.
19272
19273 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
19274
19275 * include/grub/i386/bsd.h: New file.
19276
19277 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
19278 to make it public.
19279
19280 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
19281 function is called, so that it's possible to change it inside the hook.
19282 (grub_elf64_load): Likewise.
19283 (grub_elf_file): Don't close the file if elf header is not found.
19284 (grub_elf_close): Close the file if grub_elf_file fails (The new
19285 grub_elf_file won't close it).
19286 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
19287 (grub_elf64_size): Likewise.
19288
19289 * kern/i386/loader.S (grub_unix_real_boot): New function.
19290
19291 * loader/aout.c: New file.
19292
19293 * loader/i386/bsd.c: New file.
19294
19295 * loader/i386/bsd_normal.c: New file.
19296
19297 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
19298
19299 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
19300 can test other formats.
19301
19302 2008-02-19 Robert Millan <rmh@aybabtu.com>
19303
19304 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
19305 (grub_gpt_partition_type_empty): Redefine with macro from
19306 `<grub/gpt_partition.h>'.
19307 (gpt_partition_map_iterate): Adjust partition type comparison.
19308
19309 Export `entry' as partmap-specific `part.data' struct.
19310 (grub_gpt_header, grub_gpt_partentry): Move from here ...
19311
19312 * include/grub/gpt_partition.h (grub_gpt_header)
19313 (grub_gpt_partentry): ... to here (new file).
19314
19315 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
19316
19317 (grub_gpt_partition_type_bios_boot): New const variable, defined
19318 with macro from `<grub/gpt_partition.h>'.
19319
19320 (setup): Replace `first_start' with `embed_region', which keeps
19321 track of the embed region (and is partmap-agnostic).
19322
19323 Replace find_first_partition_start() with find_usable_region(),
19324 which finds a usable region for embedding using partmap-specific
19325 knowledge (supports PC/MSDOS and GPT).
19326
19327 Fix all assumptions that the embed region start at sector 1, using
19328 `embed_region.start' from now on. Similarly, use `embed_region.end'
19329 rather than `first_start' to calculate available size.
19330
19331 In grub_util_info() message, replace "into after the MBR" with an
19332 indication of the specific sector our embed region starts at.
19333
19334 2008-02-19 Robert Millan <rmh@aybabtu.com>
19335
19336 * DISTLIST: Replace `commands/ieee1275/halt.c' and
19337 `commands/ieee1275/reboot.c' with `commands/halt.c' and
19338 `commands/reboot.c'.
19339 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
19340 (halt_mod_SOURCES): Likewise.
19341 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
19342 (halt_mod_SOURCES): Likewise.
19343
19344 2008-02-17 Christian Franke <franke@computer.org>
19345
19346 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
19347
19348 2008-02-17 Robert Millan <rmh@aybabtu.com>
19349
19350 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
19351 set `first_start' to 0 for non-PC/MSDOS partition maps.
19352
19353 2008-02-16 Robert Millan <rmh@aybabtu.com>
19354
19355 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
19356 do not assume partition map is PC/MSDOS before performing checks that
19357 are specific to that layout.
19358
19359 2008-02-13 Robert Millan <rmh@aybabtu.com>
19360
19361 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
19362 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
19363 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
19364
19365 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
19366
19367 * configure.ac: Only a cosmetic change on the handling of
19368 -fno-stack-protector.
19369
19370 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
19371
19372 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
19373 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
19374 reboot.c.
19375 (grub_install_SOURCES): Add halt.mod and reboot.mod.
19376 (halt_mod_SOURCES): New variable.
19377 (halt_mod_CFLAGS): Likewise.
19378 (halt_mod_LDFLAGS): Likewise.
19379 (reboot_mod_SOURCES): Likewise.
19380 (reboot_mod_CFLAGS): Likewise.
19381 (reboot_mod_LDFLAGS): Likewise.
19382
19383 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
19384 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
19385 reboot.c.
19386 (halt_mod_SOURCES): Likewise.
19387 (reboot_mod_SOURCES): Likewise.
19388
19389 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
19390 commands/i386/pc/reboot.c by commands/reboot.c.
19391 (reboot_mod_SOURCES): Likewise.
19392
19393 * commands/i386/pc/reboot.c: merge this file ...
19394
19395 * commands/ieee1275/reboot.c: ... and this file ...
19396
19397 * commands/reboot.c: ... to this file.
19398 Add some precompiler directive to include the correct header for
19399 each machine.
19400
19401 * commands/ieee1275/halt.c: move this file ...
19402
19403 * commands/halt.c: ... to here.
19404 Add some precompiler directive to include the correct header for
19405 each machine.
19406
19407 * include/grub/efi/efi.h (grub_reboot): New function declaration.
19408 (grub_halt): Likewise.
19409
19410 * kern/efi/efi.c (grub_reboot): New function.
19411 (grub_halt): Likewise.
19412
19413 2008-02-12 Robert Millan <rmh@aybabtu.com>
19414
19415 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
19416 /dev (like it is done for /dev/mapper). This doesn't provide support
19417 for EVMS, but at least it is now easy to identify the problem when it
19418 arises.
19419
19420 2008-02-11 Robert Millan <rmh@aybabtu.com>
19421
19422 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
19423 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
19424 comparing it with -1, not 0.
19425
19426 2008-02-10 Robert Millan <rmh@aybabtu.com>
19427
19428 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
19429 `disk/lvm.c'.
19430 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19431 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19432
19433 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
19434 `disk/lvm.c' to the end of the list.
19435 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19436 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19437
19438 2008-02-10 Robert Millan <rmh@aybabtu.com>
19439
19440 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
19441 grub_print_error() instead. This will let user know why we're entering
19442 rescue mode.
19443 Based on suggestions from Sam Morris.
19444
19445 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
19446
19447 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
19448 on remaining N args, instead of "--" arg N times.
19449
19450 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
19451
19452 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
19453 (fill_with_default_glyph): Changed to use unknown_glyph for fill
19454 pattern for unknown glyphs.
19455
19456 2008-02-09 Robert Millan <rmh@aybabtu.com>
19457
19458 * configure.ac: Probe for `help2man'.
19459 * Makefile.in (builddir): New variable.
19460 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
19461 or otherwise add a few flags/options to it.
19462 (install-local): For every executable utility or script that is
19463 installed, invoke $(HELP2MAN) to install a manpage based on --help
19464 output.
19465
19466 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
19467 that it doesn't prevent --help from working in build tree.
19468
19469 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
19470 with `bug-grub@gnu.org'.
19471 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
19472 * util/update-grub.in (usage): New function.
19473 Implement proper argument check, with support for --help and --version
19474 (as well as existing -y).
19475
19476 2008-02-09 Christian Franke <franke@computer.org>
19477
19478 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
19479 avoid overwriting previous output.
19480 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
19481
19482 2008-02-09 Robert Millan <rmh@aybabtu.com>
19483
19484 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
19485 drawing the menu.
19486
19487 2008-02-09 Robert Millan <rmh@aybabtu.com>
19488
19489 * commands/sleep.c: New file.
19490 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
19491 (sleep_mod_SOURCES): New variable.
19492 (sleep_mod_CFLAGS): Likewise.
19493 (sleep_mod_LDFLAGS): Likewise.
19494
19495 2008-02-09 Robert Millan <rmh@aybabtu.com>
19496
19497 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
19498 situations in which we can deduce the RAID size and the superblock
19499 doesn't match it.
19500
19501 2008-02-09 Robert Millan <rmh@aybabtu.com>
19502
19503 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
19504 and return a grub_diskmemberlist_t composed of LVM physical volumes.
19505 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
19506
19507 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
19508 and return a grub_diskmemberlist_t composed of physical array members.
19509 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
19510
19511 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
19512 prototype.
19513 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
19514 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
19515 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
19516
19517 * util/grub-probe.c (probe): Move partmap probing code from here ...
19518 (probe_partmap): ... to here.
19519 (probe): Use probe_partmap() once for the disk we're probing, and
19520 additionally, when such disk contains a memberlist() struct member,
19521 once for each disk that is contained in the structure returned by
19522 memberlist().
19523
19524 2008-02-09 Robert Millan <rmh@aybabtu.com>
19525
19526 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
19527 environment variable to 'all' in order to obtain debug output from
19528 non-util/ code.
19529 * util/i386/pc/grub-setup.c (main): Likewise.
19530
19531 2008-02-08 Robert Millan <rmh@aybabtu.com>
19532
19533 * disk/raid.c (grub_raid_scan_device): Check for
19534 `array->device[sb.this_disk.number]' rather than for
19535 `array->device[sb.this_disk.number]->name', since the latter is not
19536 guaranteed to be accessible.
19537
19538 2008-02-08 Robert Millan <rmh@aybabtu.com>
19539
19540 * disk/raid.c: Update copyright.
19541 * fs/cpio.c: Likewise.
19542 * include/grub/raid.h: Likewise.
19543 * loader/i386/pc/multiboot.c: Likewise.
19544 * util/hostfs.c: Likewise.
19545
19546 2008-02-08 Robert Millan <rmh@aybabtu.com>
19547
19548 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
19549 to a grub_disk_t array.
19550 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
19551 `device[x]'.
19552 (grub_raid_scan_device): Replace `device[x].name' accesses with
19553 `device[x]->name'. Simplify initialization of `array->device[x]'.
19554
19555 2008-02-08 Robert Millan <rmh@aybabtu.com>
19556
19557 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
19558 grub_dprintf() calls.
19559 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
19560 error message.
19561
19562 2008-02-07 Christian Franke <franke@computer.org>
19563
19564 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
19565 instead of fseek and ftell to support large files.
19566 (grub_hostfs_read): Likewise.
19567
19568 2008-02-07 Robert Millan <rmh@aybabtu.com>
19569
19570 Patch from Jeroen Dekkers.
19571 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
19572 failure, since successfully reading all array members might not be
19573 required.
19574
19575 2008-02-06 Robert Millan <rmh@aybabtu.com>
19576
19577 * util/grub-probe.c (probe): Simplify partmap probing (with the
19578 assumption that the first word up to the underscore equals to
19579 the module name).
19580
19581 2008-02-06 Christian Franke <franke@computer.org>
19582
19583 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
19584 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
19585 last block of a cpio or tar stream.
19586 Check for "TRAILER!!!" instead of any empty data
19587 block to detect last block of a cpio stream.
19588 (grub_cpio_dir): Fix constness of variable np.
19589 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
19590 cpio or tar trailer is detected. This fixes a crash
19591 on open of a non existing file.
19592
19593 2008-02-05 Bean <bean123ch@gmail.com>
19594
19595 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
19596 address of entry.
19597 (grub_multiboot_load_elf64): Likewise.
19598 (grub_multiboot): Initialize mbi structure.
19599
19600 * util/grub-fstest.c: Don't include unused header file script.h.
19601
19602 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
19603 of file.
19604 (grub_fstest_SOURCES): Likewise.
19605
19606 2008-02-05 Robert Millan <rmh@aybabtu.com>
19607
19608 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
19609 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
19610 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
19611 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
19612
19613 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
19614 (translation_table): Replace hardcoded values with macros
19615 provided by `<grub/term.h>'.
19616
19617 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
19618 (keyboard_map): Correct/add a few values, with macros provided
19619 by `<grub/term.h>'.
19620 (keyboard_map_shift): Zero values that don't differ from their
19621 `keyboard_map' equivalents.
19622 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
19623 Discard the second scan code that is always sent by Caps lock.
19624 Only use `keyboard_map_shift' when it provides a non-zero value,
19625 otherwise fallback to `keyboard_map'.
19626
19627 2008-02-04 Bean <bean123ch@gmail.com>
19628
19629 * Makefile.in (enable_grub_fstest): New variable.
19630
19631 * conf/common.rmk (grub_fstest_init.lst): New rule.
19632 (grub_fstest_init.h): Likewise.
19633 (grub_fstest_init.c): Likewise.
19634 (util/grub-fstest.c_DEPENDENCIES): New variable.
19635 (grub_fstest_SOURCES): Likewise.
19636
19637 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
19638
19639 * util/grub-fstest.c: New file.
19640
19641 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
19642
19643 Make grub-setup handle a separate root device.
19644
19645 * util/i386/pc/grub-setup.c (setup): Always open the root device,
19646 so that the root device can be compared with the destination
19647 device.
19648 When embedding the core image, if the root and destination devices
19649 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
19650 0xFF.
19651 When not embedding, set ROOT_DRIVE to 0xFF.
19652
19653 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
19654
19655 Add support for having a grub directory in a different drive. This
19656 is still only the data handling part.
19657
19658 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
19659 (codestart): Save %dh in GRUB_ROOT_DRIVE.
19660 (grub_root_drive): New variable.
19661
19662 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
19663 instead of GRUB_BOOT_DRIVE to construct a device name. Set
19664 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
19665 as it was.
19666
19667 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
19668
19669 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
19670 macro.
19671 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
19672
19673 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
19674 is bogus, because PXE booting does not specify any drive
19675 correctly.
19676
19677 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
19678 am not sure if this is really correct.
19679
19680 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
19681 is always identical to the boot drive when booting from a CD.
19682
19683 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
19684 longer.
19685 (root_drive): New variable.
19686 (real_start): Unconditionally set %dh to ROOT_DRIVE.
19687 (setup_sectors): Push %dx right after popping it, because %dh will
19688 be modified later.
19689 (copy_buffer): Restore %dx.
19690
19691 2008-02-03 Robert Millan <rmh@aybabtu.com>
19692
19693 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
19694 use `cdboot.img' for cdrom images.
19695
19696 2008-02-03 Robert Millan <rmh@aybabtu.com>
19697
19698 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
19699 only setup gfxterm when `font' command has succeeded.
19700
19701 2008-02-03 Robert Millan <rmh@aybabtu.com>
19702
19703 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
19704 (grub_rescue_cmd_multiboot_loader)
19705 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
19706
19707 2008-02-03 Pavel Roskin <proski@gnu.org>
19708
19709 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
19710 %edx and %esi from stack only after grub_gate_a20() is called.
19711 grub_gate_a20() clobbers %edx.
19712
19713 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
19714
19715 * configure.ac (AC_INIT): Bumped to 1.96.
19716
19717 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
19718 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
19719 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
19720 video/readers/png.c.
19721
19722 2008-02-03 Bean <bean123ch@gmail.com>
19723
19724 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
19725 (cdboot_img_SOURCES): New variable.
19726 (cdboot_img_ASFLAGS): New variable.
19727 (cdboot_img_LDFLAGS): New variable.
19728
19729 * boot/i386/pc/cdboot.S: New file.
19730
19731 * disk/i386/pc/biosdisk.c (cd_start): New variable.
19732 (cd_count): Likewise.
19733 (grub_biosdisk_get_drive): Add support for cd device.
19734 (grub_biosdisk_call_hook): Likewise.
19735 (grub_biosdisk_iterate): Likewise.
19736 (grub_biosdisk_open): Likewise.
19737 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
19738 (grub_biosdisk_rw): Support reading from cd device.
19739 (GRUB_MOD_INIT): Iterate cd devices.
19740
19741 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
19742 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
19743 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
19744
19745 * kern/i386/pc/init.c (make_install_device): Check for cd device.
19746
19747 2008-02-02 Robert Millan <rmh@aybabtu.com>
19748
19749 * commands/read.c: New file.
19750 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
19751 (read_mod_SOURCES): New variable.
19752 (read_mod_CFLAGS): Likewise.
19753 (read_mod_LDFLAGS): Likewise.
19754
19755 2008-02-02 Robert Millan <rmh@aybabtu.com>
19756
19757 * normal/main.c (grub_normal_execute): Check for `menu->size' when
19758 determining whether menu has to be displayed.
19759
19760 2008-02-02 Marco Gerards <marco@gnu.org>
19761
19762 * bus/pci.c: New file.
19763
19764 * include/grub/pci.h: Likewise.
19765
19766 * include/grub/i386/pc/pci.h: Likewise.
19767
19768 * commands/lspci.c: Likewise.
19769
19770 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
19771 `lspci.mod'.
19772 (pci_mod_SOURCES): New variable.
19773 (pci_mod_CFLAGS): Likewise.
19774 (pci_mod_LDFLAGS): Likewise.
19775 (lspci_mod_SOURCES): Likewise.
19776 (lspci_mod_CFLAGS): Likewise.
19777 (lspci_mod_LDFLAGS): Likewise.
19778
19779 2008-02-02 Bean <bean123ch@gmail.com>
19780
19781 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
19782 (grub_ufs_get_file_block): Fix indirect block calculation problem.
19783
19784 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
19785 (grub_xfs_btree_node): New structure.
19786 (grub_xfs_btree_root): New structure.
19787 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
19788 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
19789 (GRUB_XFS_EXTENT_BLOCK): Likewise.
19790 (GRUB_XFS_EXTENT_SIZE): Likewise.
19791 (grub_xfs_read_block): Support btree format type.
19792 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
19793 Use directory block as basic unit.
19794
19795 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
19796
19797 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
19798 __attribute__ ((__regparm__ (1))).
19799
19800 2008-02-01 Robert Millan <rmh@aybabtu.com>
19801
19802 Correct a mistake in previous commit.
19803
19804 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
19805 top.
19806 (normal/command.c_DEPENDENCIES): New variable.
19807
19808 2008-02-01 Robert Millan <rmh@aybabtu.com>
19809
19810 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
19811 top.
19812 (normal/command.c_DEPENDENCIES): New variable.
19813 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
19814 * conf/i386-ieee1275.rmk: Likewise.
19815 * conf/i386-linuxbios.rmk: Likewise.
19816 * conf/i386-pc.rmk: Likewise.
19817 * conf/sparc64-ieee1275.rmk: Likewise.
19818 * conf/powerpc-ieee1275.rmk: Likewise.
19819 (grub_emu_SOURCES): Add `fs/fshelp.c'.
19820
19821 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
19822
19823 2008-02-01 Robert Millan <rmh@aybabtu.com>
19824
19825 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
19826 call at beginning of function.
19827
19828 2008-01-31 Pavel Roskin <proski@gnu.org>
19829
19830 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
19831 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
19832 (grub_mkrescue_SOURCES): Likewise.
19833 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
19834
19835 2008-01-30 Robert Millan <rmh@aybabtu.com>
19836
19837 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
19838 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
19839 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
19840 (grub_probe_SOURCES): ... to here.
19841
19842 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
19843 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
19844 * conf/i386-ieee1275.rmk: Likewise.
19845 * conf/i386-linuxbios.rmk: Likewise.
19846 * conf/powerpc-ieee1275.rmk: Likewise.
19847
19848 2008-01-30 Tristan Gingold <gingold@free.fr>
19849
19850 * kern/rescue.c: Silently accept empty lines.
19851
19852 2008-01-29 Bean <bean123ch@gmail.com>
19853
19854 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
19855 (real_code_2): Code cleanup and change comment style.
19856 (move_memory): Avoid using 32-bit address mode.
19857
19858 2008-01-29 Bean <bean123ch@gmail.com>
19859
19860 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
19861 (png_mod_SOURCES): New variable.
19862 (png_mod_CFLAGS): Likewise.
19863 (png_mod_LDFLAGS): Likewise.
19864
19865 * video/readers/png.c: New file.
19866
19867 2008-01-28 Robert Millan <rmh@aybabtu.com>
19868
19869 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
19870 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
19871 `ifndef GRUB_MOD_GAP' hack.
19872 * util/elf/grub-mkimage.c (add_segments): Likewise.
19873
19874 2008-01-27 Robert Millan <rmh@aybabtu.com>
19875
19876 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
19877 `GRUB_MOD_GAP' for platforms in which it's not defined.
19878 * util/elf/grub-mkimage.c (add_segments): Likewise.
19879
19880 2008-01-27 Robert Millan <rmh@aybabtu.com>
19881
19882 Get grub-emu to build again (including parallel builds).
19883
19884 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
19885 Split into ...
19886 (util/grub-emu.c_DEPENDENCIES): ... this, ...
19887 (normal/execute.c_DEPENDENCIES): ... this, ...
19888 (grub-emu_DEPENDENCIES): ... and this.
19889
19890 * conf/i386-efi.rmk: Likewise.
19891 * conf/i386-linuxbios.rmk: Likewise.
19892 * conf/i386-ieee1275.rmk: Likewise.
19893 * conf/powerpc-ieee1275.rmk: Likewise.
19894 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
19895
19896 2008-01-27 Robert Millan <rmh@aybabtu.com>
19897
19898 * NEWS: Add a few items.
19899
19900 2008-01-27 Robert Millan <rmh@aybabtu.com>
19901
19902 Fix parallel builds with grub-emu. Based on earlier commit for
19903 grub-probe and grub-setup.
19904
19905 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19906 (util/grub-emu.c_DEPENDENCIES): ... this.
19907 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19908 (util/grub-emu.c_DEPENDENCIES): ... this.
19909 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19910 (util/grub-emu.c_DEPENDENCIES): ... this.
19911 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19912 (util/grub-emu.c_DEPENDENCIES): ... this.
19913 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
19914 (util/grub-emu.c_DEPENDENCIES): ... this.
19915
19916 2008-01-27 Pavel Roskin <proski@gnu.org>
19917
19918 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
19919 to create a gap between _end and the modules added to the image
19920 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
19921 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
19922 * util/elf/grub-mkimage.c (add_segments): Likewise.
19923
19924 2008-01-26 Pavel Roskin <proski@gnu.org>
19925
19926 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
19927 just return an error.
19928
19929 2008-01-26 Bean <bean123ch@gmail.com>
19930
19931 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
19932 (grub_reiserfs_get_item): Save offset of the next item.
19933 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
19934
19935 2008-01-25 Robert Millan <rmh@aybabtu.com>
19936
19937 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
19938 make all filesystem sources appear together (possibly fixing omissions
19939 while at it).
19940 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19941 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19942 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
19943 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19944
19945 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
19946 add `kern/file.c'.
19947 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
19948 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19949 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
19950 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
19951
19952 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
19953 (probe): Add a sanity check to make sure of our ability to read
19954 requested files when probing for filesystem type.
19955
19956 * genmk.rb: Update copyright year (2007).
19957
19958 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
19959 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
19960 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
19961 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
19962 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
19963 : Remove function prototypes.
19964
19965 2008-01-25 Robert Millan <rmh@aybabtu.com>
19966
19967 Revert my previous commits (based on wrong assumption of how grub_errno
19968 works).
19969
19970 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
19971 * kern/file.c (grub_file_open): Likewise.
19972
19973 2008-01-24 Pavel Roskin <proski@gnu.org>
19974
19975 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
19976 that hang if GRUB tries to setup colors.
19977 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
19978 colors for firmwares that don't support it.
19979 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
19980 Recognize Open Hack'Ware, set flags to work around its
19981 limitations.
19982
19983 2008-01-24 Robert Millan <rmh@aybabtu.com>
19984
19985 * kern/file.c (grub_file_open): Do not account previous failures of
19986 unrelated functions when grub_errno is checked for.
19987 Reported by Oleg Strikov.
19988
19989 2008-01-24 Bean <bean123ch@gmail.com>
19990
19991 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
19992 (grub_ufs_sblock): New member volume name.
19993 (grub_ufs_find_file): Fix string copy bug.
19994 (grub_ufs_label): Implement this function properly.
19995
19996 * fs/hfs.c (grub_hfs_cnid_type): New enum.
19997 (grub_hfs_iterate_records): Use the correct file number for extents
19998 and catalog file. Fix problem in next index calculation.
19999 (grub_hfs_find_node): Replace recursive function call with loop.
20000 (grub_hfs_iterate_dir): Replace recursive function call with loop.
20001
20002 2008-01-23 Robert Millan <rmh@aybabtu.com>
20003
20004 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
20005 `<grub/symbol.h>' and `<grub/multiboot.h>'.
20006 (grub_multiboot2_real_boot): New function prototype.
20007
20008 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
20009 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
20010
20011 * kern/i386/ieee1275/init.c (grub_os_area_addr)
20012 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
20013
20014 2008-01-23 Robert Millan <rmh@aybabtu.com>
20015
20016 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
20017 #ifdef'ed out grub_printf().
20018
20019 2008-01-23 Robert Millan <rmh@aybabtu.com>
20020
20021 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
20022 grub_dprintf calls, since they make "debug=all" mode unusable.
20023 (grub_console_checkkey): Likewise.
20024
20025 2008-01-23 Robert Millan <rmh@aybabtu.com>
20026
20027 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
20028 `term/i386/pc/at_keyboard.c'.
20029 (pkglib_MODULES): Add `serial.mod'.
20030 (serial_mod_SOURCES): New variable.
20031 (serial_mod_CFLAGS): Likewise.
20032 (serial_mod_LDFLAGS): Likewise.
20033
20034 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
20035 `<grub/powerpc/ieee1275/console.h>'.
20036 (grub_keyboard_controller_init): New function prototype.
20037 (grub_console_checkkey): Likewise.
20038 (grub_console_getkey): Likewise.
20039
20040 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
20041 keyboard on i386.
20042
20043 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
20044 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
20045
20046 2008-01-23 Robert Millan <rmh@aybabtu.com>
20047
20048 * kern/i386/pc/init.c (make_install_device): When memdisk image is
20049 present, "(memdisk)/boot/grub" becomes the default prefix.
20050
20051 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
20052 a memdisk tarball with all the modules. Add --overlay=DIR option that
20053 allows users to overlay additional files into the image.
20054
20055 2008-01-23 Robert Millan <rmh@aybabtu.com>
20056
20057 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
20058 and `machine/memory.h'.
20059 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
20060 (_multiboot_mod_SOURCES): New variable.
20061 (_multiboot_mod_CFLAGS): Likewise.
20062 (_multiboot_mod_LDFLAGS): Likewise.
20063 (multiboot_mod_SOURCES): Likewise.
20064 (multiboot_mod_CFLAGS): Likewise.
20065 (multiboot_mod_LDFLAGS): Likewise.
20066
20067 * include/grub/i386/ieee1275/loader.h: New file.
20068
20069 * include/grub/i386/ieee1275/machine.h: Likewise.
20070
20071 * include/grub/i386/ieee1275/memory.h: Likewise.
20072
20073 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
20074 variable declaration.
20075 (grub_os_area_size): Likewise.
20076
20077 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
20078 (grub_lower_mem, grub_upper_mem): New variables.
20079 (grub_stop_floppy): New function (just to make
20080 grub_multiboot2_real_boot() happy).
20081
20082 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
20083 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
20084 (grub_stop): New function.
20085 Include `"../realmode.S"' and `"../loader.S"'.
20086
20087 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
20088 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
20089
20090 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
20091 rely on grub_multiboot2_real_boot() for final boot.
20092
20093 2008-01-22 Robert Millan <rmh@aybabtu.com>
20094
20095 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
20096 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
20097 device that doesn't look like an SD card.
20098 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
20099 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
20100 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
20101 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
20102 found.
20103
20104 2008-01-22 Robert Millan <rmh@aybabtu.com>
20105
20106 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
20107 avoid claiming over our own code.
20108
20109 2008-01-22 Bean <bean123ch@gmail.com>
20110
20111 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
20112 (jpeg_mod_SOURCES): New variable.
20113 (jpeg_mod_CFLAGS): Likewise.
20114 (jpeg_mod_LDFLAGS): Likewise.
20115
20116 * video/readers/jpeg.c : New file.
20117
20118 2008-01-22 Bean <bean123ch@gmail.com>
20119
20120 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
20121 there are no more items.
20122
20123 2008-01-21 Robert Millan <rmh@aybabtu.com>
20124
20125 * kern/mm.c (grub_mm_init_region): Improve debug message.
20126
20127 2008-01-21 Robert Millan <rmh@aybabtu.com>
20128
20129 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
20130 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
20131 address.
20132 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
20133 a C macro.
20134 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
20135 Indicates start of upper memory.
20136 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
20137 (generate_image): Abort when image size is big enough to corrupt
20138 upper memory.
20139
20140 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
20141 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
20142 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
20143 instead of hardcoding 0xA0000.
20144 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
20145 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
20146 instead of hardcoding 0xA0000.
20147
20148 2008-01-21 Robert Millan <rmh@aybabtu.com>
20149
20150 * disk/memdisk.c (memdisk_size): New variable.
20151 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
20152 `memdisk_size'.
20153 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
20154 image to dynamic memory.
20155 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
20156 `memdisk_size'. Free memdisk block.
20157
20158 2008-01-21 Robert Millan <rmh@aybabtu.com>
20159
20160 Fix detection of very small filesystems (like tar).
20161
20162 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
20163 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
20164 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
20165 a problem with this disk).
20166
20167 2008-01-21 Robert Millan <rmh@aybabtu.com>
20168
20169 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
20170 on grub_biosdisk_rw_standard() error.
20171
20172 2008-01-21 Robert Millan <rmh@aybabtu.com>
20173
20174 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
20175 recent changes.
20176 * kern/elf.c: Likewise.
20177 * kern/ieee1275/ieee1275.c: Likewise.
20178 * kern/powerpc/ieee1275/openfw.c: Likewise.
20179 * term/ieee1275/ofconsole.c: Likewise.
20180
20181 2008-01-21 Robert Millan <rmh@aybabtu.com>
20182
20183 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
20184
20185 * include/grub/kernel.h (grub_arch_memdisk_addr)
20186 (grub_arch_memdisk_size): Moved from here ...
20187
20188 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
20189 (grub_arch_memdisk_size): ... to here.
20190
20191 2008-01-21 Robert Millan <rmh@aybabtu.com>
20192
20193 Mostly based on bugfix from Bean.
20194
20195 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
20196 attribute with hook() parameter.
20197 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
20198 declaration.
20199 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
20200 attribute with hook() parameter.
20201 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
20202 declaration.
20203
20204 2008-01-21 Robert Millan <rmh@aybabtu.com>
20205
20206 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
20207 (pkglib_MODULES): Add `memdisk.mod'.
20208 (memdisk_mod_SOURCES): New variable.
20209 (memdisk_mod_CFLAGS): Likewise.
20210 (memdisk_mod_LDFLAGS): Likewise.
20211
20212 * disk/memdisk.c: New file.
20213
20214 * include/grub/disk.h (grub_disk_dev_id): Add
20215 `GRUB_DISK_DEVICE_MEMDISK_ID'.
20216
20217 * include/grub/i386/pc/kernel.h
20218 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
20219 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
20220 (grub_kernel_image_size): New variable declaration.
20221 (grub_total_module_size): Likewise.
20222 (grub_memdisk_image_size): Likewise.
20223
20224 * include/grub/i386/pc/memory.h
20225 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
20226
20227 * include/grub/kernel.h: Include `<grub/symbol.h>'.
20228 (grub_arch_memdisk_addr): New variable declaration.
20229 (grub_arch_memdisk_size): Likewise.
20230
20231 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
20232 (grub_arch_memdisk_size): Likewise.
20233
20234 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
20235 (codestart): Replace hardcoded `0x100000' with
20236 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
20237
20238 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
20239 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
20240 not NULL, append the contents of the file it refers to, at the end of
20241 the compressed kernel image. Initialize `grub_memdisk_image_size'
20242 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
20243 (options): Add "memdisk"|'m' option.
20244 (main): Parse --memdisk|-m option, and pass user-provided path as
20245 parameter to generate_image().
20246
20247 2008-01-20 Robert Millan <rmh@aybabtu.com>
20248
20249 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
20250 grub_dprintf() calls from here ...
20251 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
20252
20253 2008-01-20 Robert Millan <rmh@aybabtu.com>
20254
20255 Fix detection of "real mode" when /options/real-mode? doesn't exist.
20256
20257 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
20258 declaration.
20259 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
20260 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
20261 `GRUB_IEEE1275_FLAG_REAL_MODE'.
20262 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
20263 property).
20264 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
20265 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
20266
20267 2008-01-19 Robert Millan <rmh@aybabtu.com>
20268
20269 Get rid of confusing function (superseded by
20270 `grub_ieee1275_get_integer_property')
20271 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
20272 prototype.
20273 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
20274 function.
20275 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
20276 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
20277 in native endianness from grub_ieee1275_get_integer_property().
20278
20279 2008-01-19 Robert Millan <rmh@aybabtu.com>
20280
20281 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
20282 command after "shut-down", since implementations differ on which
20283 the command for halt is.
20284
20285 2008-01-19 Robert Millan <rmh@aybabtu.com>
20286
20287 * include/grub/i386/linuxbios/console.h: Add header protection.
20288 (grub_keyboard_controller_init): New function prototype.
20289 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
20290 (KEYBOARD_COMMAND_READ): Likewise.
20291 (KEYBOARD_COMMAND_WRITE): Likewise.
20292 (KEYBOARD_SCANCODE_SET1): Likewise.
20293 (grub_keyboard_controller_write): New function.
20294 (grub_keyboard_controller_read): Likewise.
20295 (grub_keyboard_controller_init): Likewise.
20296
20297 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
20298 (grub_console_init): On coreboot/LinuxBIOS, call
20299 grub_keyboard_controller_init().
20300
20301 2008-01-19 Robert Millan <rmh@aybabtu.com>
20302
20303 PowerPC changes provided by Pavel Roskin.
20304
20305 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
20306 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
20307 don't rely on cmain() doing it.
20308 * kern/i386/ieee1275/startup.S (_start): Store %eax in
20309 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
20310
20311 2008-01-16 Robert Millan <rmh@aybabtu.com>
20312
20313 * include/grub/i386/linuxbios/memory.h
20314 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
20315 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
20316 receive `table_header' as argument. Instead, probe for it in the
20317 known memory ranges where it can be present.
20318 (grub_available_iterate): Do not pass a fixed `table_header' address
20319 to grub_linuxbios_table_iterate().
20320
20321 2008-01-15 Robert Millan <rmh@aybabtu.com>
20322
20323 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
20324 * conf/i386-ieee1275.rmk: New file.
20325 * include/grub/i386/ieee1275/console.h: Likewise.
20326 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
20327 * include/grub/i386/ieee1275/kernel.h: Likewise.
20328 * include/grub/i386/ieee1275/time.h: Likewise.
20329 * kern/i386/ieee1275/init.c: Likewise.
20330 * kern/i386/ieee1275/startup.S: Likewise.
20331
20332 2008-01-15 Robert Millan <rmh@aybabtu.com>
20333
20334 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
20335 when pointers are 32-bit (but still do set it to one when they are
20336 64-bit).
20337
20338 2008-01-15 Robert Millan <rmh@aybabtu.com>
20339
20340 * include/grub/ieee1275/ieee1275.h
20341 (grub_ieee1275_get_integer_property): New function prototype.
20342
20343 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
20344 (grub_ieee1275_get_integer_property): New function. Wraps around
20345 grub_ieee1275_get_property() to handle endianness.
20346
20347 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
20348 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
20349 where appropriate.
20350 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
20351 (grub_map): Likewise.
20352 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
20353
20354 2008-01-15 Bean <bean123ch@gmail.com>
20355
20356 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
20357 (grub_script_execute_cmdline): Reset grub_errno.
20358
20359 * normal/main.c (read_config_file): Reset grub_errno.
20360
20361 * normal/parse.y (script_init): New.
20362 (script): Move function and menuentry here.
20363 (delimiter): New.
20364 (command): Add delimiter at the end of command.
20365 (commands): Adjust to match the new command.
20366 (commandblock): Remove grub_script_lexer_record_start.
20367 (menuentry): Add grub_script_lexer_record_start, use the new commands.
20368 (if): Use the new commands.
20369
20370 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
20371
20372 2008-01-15 Robert Millan <rmh@aybabtu.com>
20373
20374 * normal/menu.c (run_menu): Move timeout message from here ...
20375 (print_timeout): ... to here.
20376 (run_menu): Use print_timeout() once during initial draw to print
20377 the whole message, and again in every clock tick to update only
20378 the number of seconds.
20379
20380 2008-01-15 Robert Millan <rmh@aybabtu.com>
20381
20382 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
20383 actual size of `available' from grub_ieee1275_get_property(), and
20384 restrict parsing to that bound.
20385
20386 2008-01-15 Christian Franke <franke@computer.org>
20387
20388 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
20389 (argp_program_version): Remove variable.
20390 (argp_program_bug_address): Likewise.
20391 (options): Convert from struct argp_option to struct option.
20392 (struct arguments): Remove.
20393 (parse_opt): Remove.
20394 (usage): New function.
20395 (main): Replace struct args members by simple variables.
20396 Replace argp_parse() by getopt_long().
20397 Add switch to evaluate options.
20398 Add missing "(...)" around root_dev in prefix string.
20399
20400 2008-01-14 Robert Millan <rmh@aybabtu.com>
20401
20402 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
20403 for grub_ieee1275_exit(), in order to improve portability.
20404
20405 2008-01-14 Robert Millan <rmh@aybabtu.com>
20406
20407 * util/grub.d/10_linux.in (prefix): Define.
20408 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
20409
20410 2008-01-13 Pavel Roskin <proski@gnu.org>
20411
20412 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
20413 grub_errno if no errors have been detected.
20414
20415 2008-01-12 Robert Millan <rmh@aybabtu.com>
20416
20417 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
20418 (grub_util_get_dev_abstraction): New function prototype.
20419
20420 * util/getroot.c: Include `<grub/util/getroot.h>'
20421 (grub_util_get_grub_dev): Move detection of abstraction type to ...
20422 (grub_util_get_dev_abstraction): ... here (new function).
20423
20424 * util/grub-probe.c: Convert PRINT_* to an enum. Add
20425 `PRINT_ABSTRACTION'.
20426 (probe): Probe for abstraction type when requested.
20427 (main): Understand `--target=abstraction'.
20428
20429 * util/i386/efi/grub-install.in: Add abstraction module to core
20430 image when it is found to be necessary.
20431 * util/i386/pc/grub-install.in: Likewise.
20432 * util/powerpc/ieee1275/grub-install.in: Likewise.
20433
20434 * util/update-grub_lib.in (font_path): Return system path without
20435 converting to GRUB path.
20436 * util/update-grub.in: Convert system path returned by font_path()
20437 to a GRUB path. Use `grub-probe -t abstraction' to determine what
20438 abstraction module is needed for loading fonts (if any). Export
20439 that as `GRUB_PRELOAD_MODULES'.
20440 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
20441 insmod commands).
20442
20443 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
20444
20445 Remove some unused code from reiserfs.
20446
20447 * fs/reiserfs.c (struct grub_reiserfs_key)
20448 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
20449 (struct grub_reiserfs_node_body): Removed.
20450 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
20451 Likewise.
20452 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
20453 Likewise.
20454 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
20455 Likewise.
20456 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
20457 Likewise.
20458 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
20459 Likewise.
20460 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
20461 Likewise.
20462 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
20463 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
20464 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
20465
20466 2008-01-10 Robert Millan <rmh@aybabtu.com>
20467
20468 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
20469 Determines if a file is garbage left by packaging systems, etc.
20470 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
20471 for processing /etc/grub.d scripts.
20472 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
20473 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
20474 as a condition for processing Linux images.
20475
20476 2008-01-10 Pavel Roskin <proski@gnu.org>
20477
20478 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
20479 to compile reiserfs.c on PowerPC.
20480
20481 2008-01-10 Robert Millan <rmh@aybabtu.com>
20482
20483 * kern/device.c (grub_device_iterate): Do not abort device iteration
20484 when one of the devices cannot be opened.
20485 * kern/disk.c (grub_disk_open): Do not account previous failures of
20486 unrelated functions when grub_errno is checked for.
20487
20488 2008-01-08 Robert Millan <rmh@aybabtu.com>
20489
20490 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
20491 `! grub_linux_is_bzimage', change order of address comparison to make
20492 it more intuitive, and improve "too big zImage" error message.
20493
20494 2008-01-08 Robert Millan <rmh@aybabtu.com>
20495
20496 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
20497 `$(update-grub_DATA)'.
20498 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
20499 targets.
20500
20501 2008-01-07 Robert Millan <rmh@aybabtu.com>
20502
20503 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
20504 which instruction is modified by grub-setup during installation
20505 (since it wasn't obvious by only looking at this file).
20506
20507 2008-01-07 Robert Millan <rmh@aybabtu.com>
20508
20509 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
20510 listing actual TODO items.
20511
20512 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20513
20514 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
20515 correctly.
20516 (grub_reiserfs_get_key_offset): Likewise.
20517 (grub_reiserfs_set_key_offset): Likewise.
20518 (grub_reiserfs_set_key_type): Likewise.
20519 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
20520
20521 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
20522 better to remove the bitfield version completely.
20523
20524 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20525
20526 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
20527 allocated from the heap, due to the fshelp implementation.
20528 (grub_reiserfs_dir): Free NODE, due to the same reason.
20529
20530 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
20531
20532 Mostly from Vincent Pelletier:
20533
20534 * fs/reiserfs.c: New file.
20535
20536 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
20537 (reiserfs_mod_SOURCES): New variable.
20538 (reiserfs_mod_CFLAGS): Likewise.
20539 (reiserfs_mod_LDFLAGS): Likewise.
20540
20541 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
20542 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
20543 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
20544 normal/color.c.
20545
20546 2008-01-06 Robert Millan <rmh@aybabtu.com>
20547
20548 * normal/color.c: Remove `<grub/env.h>'.
20549
20550 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
20551
20552 * include/grub/normal.h: Include <grub/env.h>.
20553
20554 2008-01-05 Robert Millan <rmh@aybabtu.com>
20555
20556 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
20557 usage example with `(hd0,1)'.
20558 Reported by Samuel Thibault.
20559
20560 2008-01-05 Robert Millan <rmh@aybabtu.com>
20561
20562 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
20563 (grub_linux_boot_zimage): Rename to ...
20564 (grub_linux_boot): ... this.
20565 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
20566 (grub_linux_boot_zimage): Conditionalize zImage copy.
20567
20568 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
20569 (grub_linux_boot_bzimage): Remove prototype.
20570 (grub_linux_boot_zimage): Rename to ...
20571 (grub_linux_boot): ... this.
20572
20573 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
20574 (grub_linux_boot): Remove function.
20575
20576 2008-01-05 Robert Millan <rmh@aybabtu.com>
20577
20578 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
20579 (grub_env_write_color_highlight): Likewise.
20580 (grub_wait_after_message): Likewise.
20581
20582 * normal/color.c: New file.
20583
20584 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20585 (normal_mod_DEPENDENCIES): Likewise.
20586
20587 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20588 (normal_mod_DEPENDENCIES): Likewise.
20589
20590 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20591 (normal_mod_DEPENDENCIES): Likewise.
20592
20593 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
20594 (normal_mod_DEPENDENCIES): Likewise.
20595
20596 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
20597 for waiting after a message is printed.
20598 * normal/main.c (read_config_file): Likewise.
20599 (grub_normal_init): Register grub_env_write_color_normal() and
20600 grub_env_write_color_highlight() hooks. Mark `color_normal' and
20601 `color_highlight' variables as global.
20602
20603 * normal/menu.c (grub_wait_after_message): New function.
20604 (grub_color_menu_normal): New variable. Replaces ...
20605 (GRUB_COLOR_MENU_NORMAL): ... this macro.
20606 (grub_color_menu_highlight): New variable. Replaces ...
20607 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
20608 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
20609 `GRUB_TERM_COLOR_STANDARD'.
20610 (print_message): Use `grub_setcolorstate' to reload colors. Rename
20611 `normal_code' and `highlight_code' to `old_color_normal' and
20612 `old_color_highlight', respectively.
20613 (grub_menu_init_page): Update colors when drawing the menu, based on
20614 `menu_color_normal' and `menu_color_highlight' variables.
20615 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
20616 a message is printed.
20617
20618 2008-01-05 Robert Millan <rmh@aybabtu.com>
20619
20620 * kern/env.c (grub_env_context_open): Propagate hooks for global
20621 variables to new context.
20622
20623 * kern/main.c (grub_set_root_dev): Export `root' variable.
20624
20625 2008-01-05 Robert Millan <rmh@aybabtu.com>
20626
20627 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
20628 discs unconditionally, since udev and others have options to provide
20629 them.
20630
20631 2008-01-05 Robert Millan <rmh@aybabtu.com>
20632
20633 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
20634
20635 2008-01-04 Christian Franke <franke@computer.org>
20636
20637 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
20638 of eisa_mmap.
20639
20640 2008-01-03 Pavel Roskin <proski@gnu.org>
20641
20642 * kern/i386/linuxbios/init.c: Put "void" to all function
20643 declarations with no arguments.
20644 * kern/powerpc/ieee1275/init.c: Likewise.
20645 * term/i386/pc/at_keyboard.c: Likewise.
20646 * term/i386/pc/vga_text.c: Likewise.
20647 * util/grub-mkdevicemap.c: Likewise.
20648
20649 2008-01-02 Robert Millan <rmh@aybabtu.com>
20650
20651 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
20652 message when loaded image is out of bounds.
20653 (grub_multiboot_load_elf64): Likewise.
20654
20655 2008-01-02 Pavel Roskin <proski@gnu.org>
20656
20657 * util/grub.d/10_linux.in: Try version without ".old" when
20658 looking for initrd. It's better to use initrd from the newer
20659 kernel of the same version than no initrd at all.
20660
20661 2008-01-01 Robert Millan <rmh@aybabtu.com>
20662
20663 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
20664
20665 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
20666
20667 * include/grub/video.h: Added grub_video_unmap_color and
20668 grub_video_get_active_render_target.
20669 (grub_video_adapter): Added unmap_color and get_active_render_target.
20670
20671 * video/video.c: Added grub_video_unmap_color and
20672 grub_video_get_active_render_target.
20673 (grub_video_get_info): Changed method to accept NULL pointer as an
20674 argument to allow detection of active video adapter.
20675
20676 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
20677 grub_video_vbe_unmap_color_int.
20678 Added grub_video_vbe_unmap_color and
20679 grub_video_vbe_get_active_render_target.
20680 (grub_video_vbe_adapter): Added unmap_color and
20681 get_active_render_target.
20682
20683 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
20684 with grub_video_vbe_unmap_color_int.
20685
20686 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
20687 (DEFAULT_NORMAL_COLOR): Likewise.
20688 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
20689 (DEFAULT_FG_COLOR): Removed.
20690 (DEFAULT_BG_COLOR): Likewise.
20691 (DEFAULT_CURSOR_COLOR): Changed value.
20692 (grub_virtual_screen): Added standard_color_setting,
20693 normal_color_setting, highlight_color_setting and term_color.
20694 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
20695 (bitmap_width): Added.
20696 (bitmap_height): Likewise.
20697 (bitmap): Likewise.
20698 (set_term_color): Likewise.
20699 (grub_virtual_screen_setup): Changed to use new terminal coloring
20700 settings.
20701 (grub_gfxterm_init): Added init for bitmap.
20702 (grub_gfxterm_fini): Added destroy for bitmap.
20703 (redraw_screen_rect): Updated to use background bitmap and new
20704 terminal coloring.
20705 (scroll_up): Added optimization for case when there is no bitmap.
20706 (grub_gfxterm_cls): Fixed to use correct background color.
20707 (grub_virtual_screen_setcolorstate): Changed to use new terminal
20708 coloring.
20709 (grub_virtual_screen_setcolor): Likewise.
20710 (grub_virtual_screen_getcolor): Added.
20711 (grub_gfxterm_background_image_cmd): Likewise.
20712 (grub_video_term): Added setcolor and getcolor.
20713 (MOD_INIT): Added registration of background_image command.
20714 (MOD_TERM): Added unregistration for background_image command.
20715
20716 2007-12-30 Pavel Roskin <proski@gnu.org>
20717
20718 * loader/multiboot_loader.c: Fix multiboot command
20719 unregistration. Fix all typos in the word "multiboot".
20720
20721 2007-12-29 Pavel Roskin <proski@gnu.org>
20722
20723 * util/grub.d/10_linux.in: Refactor search for initrd. Add
20724 support for initrd names used in Fedora.
20725
20726 2007-12-26 Bean <bean123ch@gmail.com>
20727
20728 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
20729 (cpio_mod_SOURCES): New variable.
20730 (cpio_mod_CFLAGS): Likewise.
20731 (cpio_mod_LDFLAGS): Likewise.
20732
20733 * fs/cpio.c: New file.
20734
20735 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
20736
20737 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20738
20739 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
20740
20741 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20742
20743 2007-12-25 Robert Millan <rmh@aybabtu.com>
20744
20745 * include/grub/term.h (struct grub_term): Add `getcolor' function.
20746 (grub_getcolor): New function.
20747
20748 * kern/term.c (grub_getcolor): New function.
20749 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
20750 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
20751 (print_entry): Set normal and highlight colors to
20752 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
20753 respectively, before printing and restore them to old
20754 values afterwards.
20755 (grub_menu_init_page): Likewise. Fill an additional colored space
20756 that would otherwise be left blank.
20757
20758 * term/efi/console.c (grub_console_getcolor): New function.
20759 (struct grub_console_term.getcolor): New variable.
20760 * term/i386/pc/console.c (grub_console_getcolor): New function.
20761 (struct grub_console_term.getcolor): New variable.
20762 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
20763 (struct grub_console_term.getcolor): New variable.
20764
20765 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
20766 (struct grub_console_term.setcolor): Remove variable.
20767 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
20768 (struct grub_console_term.setcolor): Remove variable.
20769 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
20770 (struct grub_console_term.setcolor): Remove variable.
20771 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
20772 (struct grub_console_term.setcolor): Remove variable.
20773
20774 2007-12-25 Robert Millan <rmh@aybabtu.com>
20775
20776 * configure.ac: Search for possible unifont.hex locations, and
20777 define UNIFONT_HEX if found.
20778
20779 * Makefile.in (UNIFONT_HEX): Define variable.
20780 (DATA): Rename to ...
20781 (PKGLIB): ... this. Update all users.
20782 (PKGDATA): New variable.
20783 (pkgdata_IMAGES): Rename to ...
20784 (pkglib_IMAGES): ... this. Update all users.
20785 (pkgdata_MODULES): Rename to ...
20786 (pkglib_MODULES): ... this. Update all users.
20787 (pkgdata_PROGRAMS): Rename to ...
20788 (pkglib_PROGRAMS): ... this. Update all users.
20789 (pkgdata_DATA): Rename to ...
20790 (pkglib_DATA): ... this. Update all users.
20791 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
20792 (unicode.pff, ascii.pff): New rules.
20793 (all-local): Add `$(PKGDATA)' dependency.
20794 (install-local): Process `$(PKGDATA)'.
20795
20796 * util/update-grub_lib.in (font_path): Search for *.pff files in
20797 a few more locations, including `${pkgdata}'.
20798
20799 2007-12-23 Robert Millan <rmh@aybabtu.com>
20800
20801 Patch from Bean <bean123ch@gmail.com>:
20802 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
20803 `size'.
20804
20805 2007-12-21 Bean <bean123ch@gmail.com>
20806
20807 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
20808 (ntfscomp_mod_SOURCES): New variable.
20809 (ntfscomp_mod_CFLAGS): Likewise.
20810 (ntfscomp_mod_LDFLAGS): Likewise.
20811
20812 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
20813 (grub_probe_SOURCES): Likewise.
20814 (grub_emu_SOURCES): Likewise.
20815
20816 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20817 (grub_emu_SOURCES): Likewise.
20818
20819 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20820 (grub_emu_SOURCES): Likewise.
20821
20822 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
20823 (grub_emu_SOURCES): Likewise.
20824
20825 * fs/ntfs.c (grub_ntfscomp_func): New variable.
20826 (read_run_list): Renamed to grub_ntfs_read_run_list.
20827 (decomp_nextvcn): Moved to ntfscomp.c.
20828 (decomp_getch): Likewise.
20829 (decomp_get16): Likewise.
20830 (decomp_block): Likewise.
20831 (read_block): Likewise.
20832 (read_data): Partially moved to ntfscomp.c.
20833 (fixup): Change unsigned to grub_uint16_t.
20834 (read_mft): Change unsigned long to grub_uint32_t.
20835 (read_attr): Likewise.
20836 (read_data): Likewise.
20837 (read_run_data): Likewise.
20838 (read_run_list): Likewise.
20839 (read_mft): Likewise.
20840
20841 * fs/ntfscomp.c: New file.
20842
20843 * include/grub/ntfs.h: New file.
20844
20845 2007-12-16 Robert Millan <rmh@aybabtu.com>
20846
20847 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
20848 IDE disk check, since Linux is known to support 20 IDE disks.
20849 Reported by Colin Watson.
20850
20851 2007-12-15 Bean <bean123ch@gmail.com>
20852
20853 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
20854 (lnxboot_img_SOURCES): New variable.
20855 (lnxboot_img_ASFLAGS): Likewise.
20856 (lnxboot_img_LDFLAGS): Likewise.
20857
20858 * boot/i386/pc/lnxboot.S: New file.
20859
20860 2007-11-24 Pavel Roskin <proski@gnu.org>
20861
20862 * configure.ac: Test if '--build-id=none' is supported by the
20863 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
20864 objcopy to generate incorrect binary files (binutils
20865 2.17.50.0.18-1 as shipped by Fedora 8).
20866 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
20867 linking, so that build ID doesn't break the test.
20868
20869 2007-11-24 Pavel Roskin <proski@gnu.org>
20870
20871 * include/grub/i386/time.h: use "void" in the argument list
20872 of grub_cpu_idle().
20873 * include/grub/powerpc/time.h: Likewise.
20874 * include/grub/sparc64/time.h: Likewise.
20875
20876 2007-11-18 Christian Franke <franke@computer.org>
20877
20878 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
20879 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
20880 This fixes the problem that function keys did not work in grub-emu.
20881
20882 2007-11-18 Christian Franke <franke@computer.org>
20883
20884 * disk/host.c (grub_host_open): Remove attribute unused from
20885 name parameter. Add check for "host". This fixes the problem
20886 that grub-emu does not find partitions.
20887
20888 2007-11-18 Christian Franke <franke@computer.org>
20889
20890 * util/hostfs.c (is_dir): New function.
20891 (grub_hostfs_dir): Handle missing dirent.d_type case.
20892 (grub_hostfs_read): Add missing fseek().
20893 (grub_hostfs_label): Clear label pointer. This fixes a crash
20894 of grub-emu on "ls (host)".
20895
20896 2007-11-18 Christian Franke <franke@computer.org>
20897
20898 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
20899 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
20900 to 64 bit boundary by default.
20901
20902 2007-11-18 Bean <bean123ch@gmail.com>
20903
20904 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
20905 (hexdump_mod_SOURCES): New variable.
20906 (hexdump_mod_CFLAGS): Likewise.
20907 (hexdump_mod_LDFLAGS): Likewise.
20908
20909 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20910
20911 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20912
20913 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20914
20915 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
20916
20917 * include/grub/hexdump.h: New file.
20918
20919 * commands/hexdump.c: New file.
20920
20921 2007-11-10 Robert Millan <rmh@aybabtu.com>
20922
20923 * commands/i386/pc/play.c (beep_off): Switch order of arguments
20924 in grub_outb() calls.
20925 (beep_on): Likewise.
20926
20927 2007-11-10 Christian Franke <franke@computer.org>
20928
20929 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
20930 (grub_menu_run): Likewise.
20931
20932 2007-11-10 Robert Millan <rmh@aybabtu.com>
20933
20934 * include/grub/i386/efi/machine.h: New file.
20935 * include/grub/i386/linuxbios/machine.h: Likewise.
20936 * include/grub/i386/pc/machine.h: Likewise.
20937 * include/grub/powerpc/ieee1275/machine.h: Likewise.
20938 * include/grub/sparc64/ieee1275/machine.h: Likewise.
20939
20940 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
20941 (serial_hw_io_addr): New variable.
20942 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
20943 instead of `(unsigned short *) 0x400'.
20944
20945 2007-11-10 Bean <bean123ch@gmail.com>
20946
20947 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
20948
20949 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20950
20951 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
20952 (vga_mod_SOURCES): Added.
20953 (vga_mod_CFLAGS): Likewise.
20954 (vga_mod_LDFLAGS): Likewise.
20955
20956 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
20957 grub_outb() calls.
20958 (set_map_mask): Likewise.
20959 (set_read_map): Likewise.
20960 (set_read_address): Likewise.
20961 (vga_font): Removed variable.
20962 (get_vga_glyph): Removed function.
20963 (invalidate_char): Likewise.
20964 (write_char): Changed to use grub_font_get_glyph() for font
20965 information.
20966 (grub_vga_putchar): Likewise.
20967 (grub_vga_getcharwidth): Likewise.
20968
20969 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
20970
20971 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
20972 flags.
20973 (pxeboot_img_LDFLAGS): Likewise.
20974 (diskboot_img_LDFLAGS): Likewise.
20975 (kernel_img_LDFLAGS): Likewise.
20976
20977 2007-11-06 Robert Millan <rmh@aybabtu.com>
20978
20979 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
20980 in grub_outb() calls.
20981 (serial_hw_init): Likewise.
20982
20983 2007-11-05 Robert Millan <rmh@aybabtu.com>
20984
20985 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
20986 spaces. Skip non-regular files.
20987
20988 2007-11-05 Robert Millan <rmh@aybabtu.com>
20989
20990 * kern/disk.c (grub_disk_firmware_fini)
20991 (grub_disk_firmware_is_tainted): New variables.
20992
20993 * include/grub/disk.h (grub_disk_firmware_fini)
20994 (grub_disk_firmware_is_tainted): Likewise.
20995
20996 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
20997 (grub_disk_biosdisk_fini): ... to here.
20998 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
20999 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
21000 is set. Register grub_disk_biosdisk_fini() in
21001 `grub_disk_firmware_fini'.
21002
21003 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
21004 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
21005 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
21006 to finish existing firmware disk interface.
21007
21008 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
21009 (ata_mod_SOURCES): New variable.
21010 (ata_mod_CFLAGS): Likewise.
21011 (ata_mod_LDFLAGS): Likewise.
21012
21013 2007-11-05 Robert Millan <rmh@aybabtu.com>
21014
21015 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
21016 (grub_ata_wait): Reimplement using grub_millisleep().
21017
21018 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
21019 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
21020
21021 2007-11-03 Marco Gerards <marco@gnu.org>
21022
21023 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
21024 (CRTC_ADDR_PORT): New macro.
21025 (CRTC_DATA_PORT): Likewise.
21026 (CRTC_CURSOR): Likewise.
21027 (CRTC_CURSOR_ADDR_HIGH): Likewise.
21028 (CRTC_CURSOR_ADDR_LOW): Likewise.
21029 (update_cursor): New function.
21030 (grub_console_real_putchar): Call `update_cursor'.
21031 (grub_console_gotoxy): Likewise.
21032 (grub_console_cls): Set the default color when clearing the
21033 screen.
21034 (grub_console_setcursor): Implemented.
21035
21036 2007-11-03 Marco Gerards <marco@gnu.org>
21037
21038 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
21039 become activate.
21040 (grub_ata_pio_write): Likewise.
21041
21042 (grub_atapi_identify): Wait after issuing an ATA command.
21043 (grub_atapi_packet): Likewise.
21044 (grub_ata_identify): Likewise.
21045 (grub_ata_readwrite): Likewise.
21046
21047 2007-11-03 Marco Gerards <marco@gnu.org>
21048
21049 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
21050 (grub_ata_pio_write): Likewise.
21051 (grub_ata_readwrite): Use `grub_error', instead of
21052 returning `grub_errno'.
21053
21054 2007-11-03 Marco Gerards <marco@gnu.org>
21055
21056 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
21057 grub_ata_pio_write once for every single sector, instead of for
21058 multiple sectors.
21059
21060 2007-10-31 Robert Millan <rmh@aybabtu.com>
21061
21062 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
21063
21064 * conf/i386-linuxbios.rmk: New file.
21065
21066 * kern/i386/pc/hardware.c: Likewise.
21067 * term/i386/pc/at_keyboard.c: Likewise.
21068 * term/i386/pc/vga_text.c: Likewise.
21069
21070 * include/grub/i386/linuxbios/boot.h: Likewise.
21071 * include/grub/i386/linuxbios/console.h: Likewise.
21072 * include/grub/i386/linuxbios/init.h: Likewise.
21073 * include/grub/i386/linuxbios/kernel.h: Likewise.
21074 * include/grub/i386/linuxbios/loader.h: Likewise.
21075 * include/grub/i386/linuxbios/memory.h: Likewise.
21076 * include/grub/i386/linuxbios/serial.h: Likewise.
21077 * include/grub/i386/linuxbios/time.h: Likewise.
21078
21079 * kern/i386/linuxbios/init.c: Likewise.
21080 * kern/i386/linuxbios/startup.S: Likewise.
21081 * kern/i386/linuxbios/table.c: Likewise.
21082
21083 2007-10-31 Marco Gerards <marco@gnu.org>
21084
21085 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
21086 (ata_mod_SOURCES): New variable.
21087 (ata_mod_CFLAGS): Likewise.
21088 (ata_mod_LDFLAGS): Likewise.
21089
21090 * disk/ata.c: New file.
21091
21092 * include/grub/disk.h (grub_disk_dev_id): Add
21093 `GRUB_DISK_DEV_ATA_ID'.
21094
21095 2007-10-31 Robert Millan <rmh@aybabtu.com>
21096
21097 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
21098 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
21099
21100 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
21101 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
21102
21103 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
21104 `<grub/types.h>'.
21105
21106 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
21107
21108 2007-10-27 Robert Millan <rmh@aybabtu.com>
21109
21110 * include/grub/types.h (ULONG_MAX): Define macro.
21111
21112 2007-10-22 Robert Millan <rmh@aybabtu.com>
21113
21114 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
21115 `"../realmode.S"'.
21116 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
21117
21118 2007-10-22 Robert Millan <rmh@aybabtu.com>
21119
21120 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
21121 (pkgdata_MODULES): Add `biosdisk.mod'.
21122 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
21123 variables.
21124
21125 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
21126 (grub_biosdisk_init): Replace with ...
21127 (GRUB_MOD_INIT(biosdisk)): ... this.
21128 (grub_biosdisk_fini): Replace with ...
21129 (GRUB_MOD_FINI(biosdisk)): ... this.
21130
21131 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
21132 (grub_machine_init): Remove call to grub_biosdisk_init().
21133 (grub_machine_fini): Remove call to grub_machine_fini().
21134
21135 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
21136
21137 2007-10-22 Robert Millan <rmh@aybabtu.com>
21138
21139 * include/grub/time.h: New file.
21140 * include/grub/i386/time.h: Likewise.
21141 * include/grub/powerpc/time.h: Likewise.
21142 * include/grub/sparc64/time.h: Likewise.
21143
21144 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
21145 instances to ...
21146 (KERNEL_MACHINE_TIME_HEADER): ... this.
21147 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
21148 instances to ...
21149 (KERNEL_MACHINE_TIME_HEADER): ... this.
21150 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
21151 instances to ...
21152 (KERNEL_MACHINE_TIME_HEADER): ... this.
21153
21154 * kern/i386/efi/init.c: Include `<grub/time.h>'.
21155 (grub_millisleep): New function.
21156 * kern/i386/pc/init.c: Include `<grub/time.h>'.
21157 (grub_millisleep): New function.
21158 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
21159 Remove `grub/machine/time.h' include.
21160 (grub_millisleep): New function.
21161 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
21162 Remove `grub/machine/time.h' include.
21163 (grub_millisleep): New function.
21164
21165 * include/grub/misc.h (grub_div_roundup): New function.
21166
21167 * kern/misc.c: Include `<grub/time.h>'.
21168 (grub_millisleep_generic): New function.
21169
21170 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
21171 Add `time.h'.
21172 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
21173 Add `time.h'.
21174 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
21175 `machine/time.h'. Add `time.h'.
21176 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
21177
21178 2007-10-21 Robert Millan <rmh@aybabtu.com>
21179
21180 * include/grub/misc.h (grub_max): New function.
21181
21182 2007-10-21 Robert Millan <rmh@aybabtu.com>
21183
21184 * util/misc.c (grub_util_info): Call fflush() before returning.
21185
21186 2007-10-20 Robert Millan <rmh@aybabtu.com>
21187
21188 * genmk.rb (Image): Copy `extra_flags' from here ...
21189 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
21190
21191 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
21192 to `argc' and `args' arguments.
21193
21194 2007-10-17 Robert Millan <rmh@aybabtu.com>
21195
21196 * kern/i386/loader.S: New file.
21197
21198 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
21199 * kern/i386/loader.S (grub_linux_prot_size)... to here.
21200 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
21201 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
21202 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
21203 * kern/i386/loader.S (grub_linux_real_addr)... to here.
21204 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
21205 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
21206 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
21207 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
21208 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
21209 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
21210 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
21211 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
21212
21213 * kern/i386/realmode.S: New file.
21214
21215 * kern/i386/pc/startup.S (protstack): Moved from here ...
21216 * kern/i386/realmode.S (protstack)... to here.
21217 * kern/i386/pc/startup.S (gdt): Moved from here ...
21218 * kern/i386/realmode.S (gdt)... to here.
21219 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
21220 * kern/i386/realmode.S (prot_to_real)... to here.
21221
21222 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
21223 `kern/i386/realmode.S'.
21224
21225 2007-10-17 Robert Millan <rmh@aybabtu.com>
21226
21227 * include/grub/i386/loader.h: New file.
21228
21229 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
21230 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
21231 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
21232 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
21233 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
21234 * include/grub/i386/loader.h (grub_linux_prot_size)
21235 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
21236 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
21237 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
21238 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
21239
21240 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
21241
21242 2007-10-15 Robert Millan <rmh@aybabtu.com>
21243
21244 * normal/misc.c (grub_normal_print_device_info): Do not probe for
21245 filesystem when dev->disk is unset.
21246 Do probe for filesystem even when dev->disk->has_partitions is set.
21247 In case a filesystem is found, always report it.
21248 In case it isn't, if dev->disk->has_partitions is set, report that
21249 a partition table was found instead of reporting that no filesystem
21250 could be identified.
21251
21252 2007-10-12 Robert Millan <rmh@aybabtu.com>
21253
21254 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
21255 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
21256
21257 * include/grub/types.h (grub_host_to_target16): New macro.
21258 (grub_host_to_target32): Likewise.
21259 (grub_host_to_target64): Likewise.
21260 (grub_target_to_host16): Likewise.
21261 (grub_target_to_host32): Likewise.
21262 (grub_target_to_host64): Likewise.
21263
21264 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
21265 Renamed from to ...
21266 (GRUB_MOD_ALIGN): ...this. Update all users.
21267
21268 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
21269 grub_host_to_target32.
21270 Replace grub_be_to_cpu32 with grub_target_to_host32.
21271 (load_modules): Likewise.
21272 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
21273 Replace grub_be_to_cpu32 with grub_target_to_host32.
21274 Replace grub_cpu_to_be16 with grub_host_to_target16.
21275 Replace grub_cpu_to_be32 grub_host_to_target32.
21276
21277 2007-10-12 Robert Millan <rmh@aybabtu.com>
21278
21279 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
21280 * util/elf/grub-mkimage.c: ... here.
21281
21282 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
21283 `util/powerpc/ieee1275/grub-mkimage.c'.
21284
21285 2007-10-07 Robert Millan <rmh@aybabtu.com>
21286
21287 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
21288 and make it easier to figure out.
21289 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
21290 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
21291 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
21292 leave us with less than HEAP_MIN_SIZE total heap.
21293 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
21294
21295 2007-10-03 Robert Millan <rmh@aybabtu.com>
21296
21297 * include/grub/i386/io.h: New file.
21298 * commands/i386/pc/play.c (inb): Removed.
21299 (outb): Removed.
21300 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
21301 with grub_outb().
21302 * term/i386/pc/serial.c (inb): Removed.
21303 (outb): Removed.
21304 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
21305 with grub_outb().
21306 * term/i386/pc/vga.c (inb): Removed.
21307 (outb): Removed.
21308 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
21309 with grub_outb().
21310
21311 2007-10-02 Robert Millan <rmh@aybabtu.com>
21312
21313 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
21314 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21315 Reported by Marcin Kurek.
21316
21317 2007-09-07 Robert Millan <rmh@aybabtu.com>
21318
21319 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
21320 SmartFirmware version updates (as released by Sven Luther), and avoid
21321 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
21322 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
21323 known broken.
21324
21325 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
21326
21327 From Hitoshi Ozeki:
21328 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
21329 when merging two regions.
21330
21331 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
21332
21333 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
21334 * normal/completion.c (grub_normal_do_completion): Likewise.
21335 Reported by Hitoshi Ozeki.
21336
21337 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
21338
21339 Do not use devices at boot in chainloading.
21340
21341 * loader/i386/pc/chainloader.c (boot_drive): New variable.
21342 (boot_part_addr): Likewise.
21343 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
21344 with BOOT_DRIVE and BOOT_PART_ADDR.
21345 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
21346 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
21347
21348 2007-08-29 Robert Millan <rmh@aybabtu.com>
21349
21350 Patch from Simon Peter <dn.tlp@gmx.net>:
21351 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
21352 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
21353 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
21354 util/i386/pc/grub-setup.c_DEPENDENCIES.
21355 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
21356 util/grub-probe.c_DEPENDENCIES.
21357 * conf/powerpc-ieee1275.rmk: Likewise.
21358
21359 2007-08-28 Robert Millan <rmh@aybabtu.com>
21360
21361 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
21362 to tell grub-mkdevicemap how to name devices.
21363 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
21364 feature).
21365
21366 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
21367 util/i386/get_disk_name.c.
21368 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
21369 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
21370 util/ieee1275/get_disk_name.c.
21371
21372 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
21373
21374 * DISTLIST: Add util/i386/get_disk_name.c and
21375 util/ieee1275/get_disk_name.c.
21376
21377 * util/grub-mkdevicemap.c: Replace device naming logic with
21378 grub_util_get_disk_name() calls.
21379
21380 2007-08-20 Robert Millan <rmh@aybabtu.com>
21381
21382 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
21383 (so that it works for both plural and singular quantities).
21384
21385 2007-08-05 Robert Millan <rmh@aybabtu.com>
21386
21387 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
21388 so that [xz] isn't taken into account when determining order.
21389
21390 2007-08-02 Marco Gerards <marco@gnu.org>
21391
21392 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
21393 `include/multiboot2.h', `include/grub/elfload.h',
21394 `include/multiboot.h', `include/grub/multiboot.h',
21395 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
21396 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
21397 `kern/elf.c', `loader/multiboot_loader.c',
21398 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
21399 `loader/i386/pc/multiboot2.c',
21400 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
21401 `util/i386/pc/grub-mkrescue.in'. Remove
21402 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
21403 `include/grub/i386/pc/util/biosdisk.h' and
21404 `include/grub/powerpc/ieee1275/multiboot.h'.
21405
21406 2007-08-02 Bean <bean123ch@gmail.com>
21407
21408 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
21409 (ntfs_mod_SOURCES): New variable.
21410 (ntfs_mod_CFLAGS): Likewise.
21411 (ntfs_mod_LDFLAGS): Likewise.
21412
21413 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
21414 (grub_probe_SOURCES): Likewise.
21415 (grub_emu_SOURCES): Likewise.
21416
21417 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
21418 (grub_emu_SOURCES): Likewise.
21419
21420 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
21421 (grub_emu_SOURCES): Likewise.
21422
21423 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
21424
21425 * fs/ntfs.c: New file.
21426
21427 2007-08-02 Bean <bean123ch@gmail.com>
21428
21429 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
21430
21431 * file.h (grub_file): Likewise.
21432
21433 * fshelp.h (grub_fshelp_read_file): Likewise.
21434
21435 * util/i386/pc/grub-setup.c (setup): Likewise.
21436 (save_first_sector): Likewise.
21437 (save_blocklists): Likewise.
21438
21439 * fs/affs.c (grub_affs_read_file): Likewise.
21440
21441 * fs/ext2.c (grub_ext2_read_file): Likewise.
21442
21443 * fs/fat.c (grub_fat_read_data): Likewise.
21444
21445 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
21446
21447 * fs/hfs.c (grub_hfs_read_file): Likewise.
21448
21449 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
21450
21451 * fs/jfs.c (grub_jfs_read_file): Likewise.
21452
21453 * fs/minix.c (grub_minix_read_file): Likewise.
21454
21455 * fs/sfs.c (grub_sfs_read_file): Likewise.
21456
21457 * fs/ufs.c (grub_ufs_read_file): Likewise.
21458
21459 * fs/xfs.c (grub_xfs_read_file): Likewise.
21460
21461 * command/blocklist.c (read_blocklist): Likewise.
21462 (print_blocklist): Likewise.
21463
21464 2007-08-02 Marco Gerards <marco@gnu.org>
21465
21466 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
21467 `util/hostfs.c'.
21468
21469 * disk/host.c: New file.
21470
21471 * util/hostfs.c: Likewise.
21472
21473 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
21474 return `GRUB_ERR_BAD_FS'.
21475 * fs/sfs.c (grub_sfs_mount): Likewise.
21476 * fs/xfs.c (grub_xfs_mount): Likewise.
21477
21478 * include/grub/disk.h (enum grub_disk_dev_id): Add
21479 `GRUB_DISK_DEVICE_HOST_ID'.
21480
21481 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
21482
21483 2007-07-24 Jerone Young <jerone@gmail.com>
21484
21485 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
21486 modules for compilation.
21487 * conf/powerpc-ieee1275.rmk: Likewise.
21488
21489 * include/multiboot.h: Move multiboot definitions to one file. Rename
21490 many definitions to not get grub specific.
21491 * include/multiboot2.h: Create header with multiboot 2 definitions.
21492 * include/grub/multiboot.h: Header for grub specific function
21493 prototypes and definitions.
21494 * include/grub/multiboot2.h: Likewise.
21495 * include/grub/multiboot_loader.h: Likewise.
21496 * include/grub/i386/pc/multiboot.h: Removed.
21497 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
21498
21499 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
21500 and 2 to allow for one multiboot and module commands.
21501 * loader/multiboot2.c: Add multiboot2 functionality.
21502 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
21503 and definition names.
21504 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
21505 2 functions.
21506 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
21507 ieee1275 specific multiboot2 code.
21508
21509 * kern/i386/pc/startup.S: Change headers and definition names for
21510 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
21511
21512 2007-07-22 Robert Millan <rmh@aybabtu.com>
21513
21514 * geninitheader.sh: Process file specified in first parameter rather
21515 than hardcoding grub_modules_init.lst.
21516 * geninit.sh: Likewise. Also, construct header name dynamically rather
21517 than hardcoding grub_modules_init.h.
21518
21519 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
21520 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
21521 grub_probe_init.[ch] and grub_setup_init.[ch].
21522
21523 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
21524 grub_modules_init.h with grub_emu_init.h.
21525 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
21526 grub_probe_init.[ch] files.
21527 * conf/i386-efi.rmk: Likewise.
21528 * conf/i386-pc.rmk: Likewise.
21529 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
21530 grub_setup_init.[ch] files.
21531
21532 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
21533 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
21534 to initialize modules rather than a list of hardcoded functions.
21535 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
21536 grub_init_all() to initialize modules rather than a list of hardcoded
21537 functions.
21538
21539 2007-07-22 Robert Millan <rmh@aybabtu.com>
21540
21541 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21542 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
21543
21544 2007-07-22 Robert Millan <rmh@aybabtu.com>
21545
21546 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
21547 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
21548 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
21549 flag when running on SmartFirmware.
21550 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
21551 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
21552 was set.
21553
21554 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
21555 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
21556 rather than decreasing it.
21557
21558 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
21559 there's not enough space to do it, fail in the same way as when it
21560 can't be done because there are no partitions.
21561
21562 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
21563 when nvsetenv failed.
21564
21565 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
21566
21567 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
21568 because this rule is automatically generated.
21569 (grub-mkrescue): Removed for the same reason as above.
21570
21571 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
21572
21573 Migrate to GNU General Public License Version 3.
21574
21575 * COPYING: Replaced with the plain text version of GPLv3.
21576
21577 * config.guess: Updated from gnulib.
21578 * config.sub: Likewise.
21579
21580 * geninit.sh: Output a GPLv3 copyright notice.
21581 * geninitheader.sh: Likewise.
21582 * genmodsrc.sh: Likewise.
21583 * gensymlist.sh.in: Likewise.
21584
21585 * boot/i386/pc/boot.S: Upgraded to GPLv3.
21586 * boot/i386/pc/diskboot.S: Likewise.
21587 * boot/i386/pc/pxeboot.S: Likewise.
21588 * commands/blocklist.c: Likewise.
21589 * commands/boot.c: Likewise.
21590 * commands/cat.c: Likewise.
21591 * commands/cmp.c: Likewise.
21592 * commands/configfile.c: Likewise.
21593 * commands/echo.c: Likewise.
21594 * commands/help.c: Likewise.
21595 * commands/ls.c: Likewise.
21596 * commands/search.c: Likewise.
21597 * commands/terminal.c: Likewise.
21598 * commands/test.c: Likewise.
21599 * commands/videotest.c: Likewise.
21600 * commands/i386/cpuid.c: Likewise.
21601 * commands/i386/pc/halt.c: Likewise.
21602 * commands/i386/pc/play.c: Likewise.
21603 * commands/i386/pc/reboot.c: Likewise.
21604 * commands/i386/pc/vbeinfo.c: Likewise.
21605 * commands/i386/pc/vbetest.c: Likewise.
21606 * commands/ieee1275/halt.c: Likewise.
21607 * commands/ieee1275/reboot.c: Likewise.
21608 * commands/ieee1275/suspend.c: Likewise.
21609 * disk/loopback.c: Likewise.
21610 * disk/lvm.c: Likewise.
21611 * disk/raid.c: Likewise.
21612 * disk/efi/efidisk.c: Likewise.
21613 * disk/i386/pc/biosdisk.c: Likewise.
21614 * disk/ieee1275/ofdisk.c: Likewise.
21615 * font/manager.c: Likewise.
21616 * fs/affs.c: Likewise.
21617 * fs/ext2.c: Likewise.
21618 * fs/fat.c: Likewise.
21619 * fs/fshelp.c: Likewise.
21620 * fs/hfs.c: Likewise.
21621 * fs/hfsplus.c: Likewise.
21622 * fs/iso9660.c: Likewise.
21623 * fs/jfs.c: Likewise.
21624 * fs/minix.c: Likewise.
21625 * fs/sfs.c: Likewise.
21626 * fs/ufs.c: Likewise.
21627 * fs/xfs.c: Likewise.
21628 * hello/hello.c: Likewise.
21629 * include/grub/acorn_filecore.h: Likewise.
21630 * include/grub/arg.h: Likewise.
21631 * include/grub/bitmap.h: Likewise.
21632 * include/grub/boot.h: Likewise.
21633 * include/grub/cache.h: Likewise.
21634 * include/grub/device.h: Likewise.
21635 * include/grub/disk.h: Likewise.
21636 * include/grub/dl.h: Likewise.
21637 * include/grub/elfload.h: Likewise.
21638 * include/grub/env.h: Likewise.
21639 * include/grub/err.h: Likewise.
21640 * include/grub/file.h: Likewise.
21641 * include/grub/font.h: Likewise.
21642 * include/grub/fs.h: Likewise.
21643 * include/grub/fshelp.h: Likewise.
21644 * include/grub/gzio.h: Likewise.
21645 * include/grub/hfs.h: Likewise.
21646 * include/grub/kernel.h: Likewise.
21647 * include/grub/loader.h: Likewise.
21648 * include/grub/lvm.h: Likewise.
21649 * include/grub/misc.h: Likewise.
21650 * include/grub/mm.h: Likewise.
21651 * include/grub/net.h: Likewise.
21652 * include/grub/normal.h: Likewise.
21653 * include/grub/parser.h: Likewise.
21654 * include/grub/partition.h: Likewise.
21655 * include/grub/pc_partition.h: Likewise.
21656 * include/grub/raid.h: Likewise.
21657 * include/grub/rescue.h: Likewise.
21658 * include/grub/script.h: Likewise.
21659 * include/grub/setjmp.h: Likewise.
21660 * include/grub/symbol.h: Likewise.
21661 * include/grub/term.h: Likewise.
21662 * include/grub/terminfo.h: Likewise.
21663 * include/grub/tparm.h: Likewise.
21664 * include/grub/types.h: Likewise.
21665 * include/grub/video.h: Likewise.
21666 * include/grub/efi/api.h: Likewise.
21667 * include/grub/efi/chainloader.h: Likewise.
21668 * include/grub/efi/console.h: Likewise.
21669 * include/grub/efi/console_control.h: Likewise.
21670 * include/grub/efi/disk.h: Likewise.
21671 * include/grub/efi/efi.h: Likewise.
21672 * include/grub/efi/pe32.h: Likewise.
21673 * include/grub/efi/time.h: Likewise.
21674 * include/grub/i386/linux.h: Likewise.
21675 * include/grub/i386/setjmp.h: Likewise.
21676 * include/grub/i386/types.h: Likewise.
21677 * include/grub/i386/efi/kernel.h: Likewise.
21678 * include/grub/i386/efi/loader.h: Likewise.
21679 * include/grub/i386/efi/time.h: Likewise.
21680 * include/grub/i386/pc/biosdisk.h: Likewise.
21681 * include/grub/i386/pc/boot.h: Likewise.
21682 * include/grub/i386/pc/chainloader.h: Likewise.
21683 * include/grub/i386/pc/console.h: Likewise.
21684 * include/grub/i386/pc/init.h: Likewise.
21685 * include/grub/i386/pc/kernel.h: Likewise.
21686 * include/grub/i386/pc/loader.h: Likewise.
21687 * include/grub/i386/pc/memory.h: Likewise.
21688 * include/grub/i386/pc/multiboot.h: Likewise.
21689 * include/grub/i386/pc/serial.h: Likewise.
21690 * include/grub/i386/pc/time.h: Likewise.
21691 * include/grub/i386/pc/vbe.h: Likewise.
21692 * include/grub/i386/pc/vbeblit.h: Likewise.
21693 * include/grub/i386/pc/vbefill.h: Likewise.
21694 * include/grub/i386/pc/vbeutil.h: Likewise.
21695 * include/grub/i386/pc/vga.h: Likewise.
21696 * include/grub/ieee1275/ieee1275.h: Likewise.
21697 * include/grub/ieee1275/ofdisk.h: Likewise.
21698 * include/grub/powerpc/libgcc.h: Likewise.
21699 * include/grub/powerpc/setjmp.h: Likewise.
21700 * include/grub/powerpc/types.h: Likewise.
21701 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
21702 * include/grub/powerpc/ieee1275/console.h: Likewise.
21703 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
21704 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21705 * include/grub/powerpc/ieee1275/loader.h: Likewise.
21706 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
21707 * include/grub/powerpc/ieee1275/time.h: Likewise.
21708 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
21709 * include/grub/sparc64/libgcc.h: Likewise.
21710 * include/grub/sparc64/setjmp.h: Likewise.
21711 * include/grub/sparc64/types.h: Likewise.
21712 * include/grub/sparc64/ieee1275/console.h: Likewise.
21713 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
21714 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21715 * include/grub/sparc64/ieee1275/time.h: Likewise.
21716 * include/grub/util/biosdisk.h: Likewise.
21717 * include/grub/util/getroot.h: Likewise.
21718 * include/grub/util/lvm.h: Likewise.
21719 * include/grub/util/misc.h: Likewise.
21720 * include/grub/util/raid.h: Likewise.
21721 * include/grub/util/resolve.h: Likewise.
21722 * io/gzio.c: Likewise.
21723 * kern/device.c: Likewise.
21724 * kern/disk.c: Likewise.
21725 * kern/dl.c: Likewise.
21726 * kern/elf.c: Likewise.
21727 * kern/env.c: Likewise.
21728 * kern/err.c: Likewise.
21729 * kern/file.c: Likewise.
21730 * kern/fs.c: Likewise.
21731 * kern/loader.c: Likewise.
21732 * kern/main.c: Likewise.
21733 * kern/misc.c: Likewise.
21734 * kern/mm.c: Likewise.
21735 * kern/parser.c: Likewise.
21736 * kern/partition.c: Likewise.
21737 * kern/rescue.c: Likewise.
21738 * kern/term.c: Likewise.
21739 * kern/efi/efi.c: Likewise.
21740 * kern/efi/init.c: Likewise.
21741 * kern/efi/mm.c: Likewise.
21742 * kern/i386/dl.c: Likewise.
21743 * kern/i386/efi/init.c: Likewise.
21744 * kern/i386/efi/startup.S: Likewise.
21745 * kern/i386/pc/init.c: Likewise.
21746 * kern/i386/pc/lzo1x.S: Likewise.
21747 * kern/i386/pc/startup.S: Likewise.
21748 * kern/ieee1275/ieee1275.c: Likewise.
21749 * kern/powerpc/cache.S: Likewise.
21750 * kern/powerpc/dl.c: Likewise.
21751 * kern/powerpc/ieee1275/cmain.c: Likewise.
21752 * kern/powerpc/ieee1275/crt0.S: Likewise.
21753 * kern/powerpc/ieee1275/init.c: Likewise.
21754 * kern/powerpc/ieee1275/openfw.c: Likewise.
21755 * kern/sparc64/cache.S: Likewise.
21756 * kern/sparc64/dl.c: Likewise.
21757 * kern/sparc64/ieee1275/init.c: Likewise.
21758 * kern/sparc64/ieee1275/openfw.c: Likewise.
21759 * loader/efi/chainloader.c: Likewise.
21760 * loader/efi/chainloader_normal.c: Likewise.
21761 * loader/i386/efi/linux.c: Likewise.
21762 * loader/i386/efi/linux_normal.c: Likewise.
21763 * loader/i386/pc/chainloader.c: Likewise.
21764 * loader/i386/pc/chainloader_normal.c: Likewise.
21765 * loader/i386/pc/linux.c: Likewise.
21766 * loader/i386/pc/linux_normal.c: Likewise.
21767 * loader/i386/pc/multiboot.c: Likewise.
21768 * loader/i386/pc/multiboot_normal.c: Likewise.
21769 * loader/powerpc/ieee1275/linux.c: Likewise.
21770 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
21771 * normal/arg.c: Likewise.
21772 * normal/cmdline.c: Likewise.
21773 * normal/command.c: Likewise.
21774 * normal/completion.c: Likewise.
21775 * normal/execute.c: Likewise.
21776 * normal/function.c: Likewise.
21777 * normal/lexer.c: Likewise.
21778 * normal/main.c: Likewise.
21779 * normal/menu.c: Likewise.
21780 * normal/menu_entry.c: Likewise.
21781 * normal/misc.c: Likewise.
21782 * normal/parser.y: Likewise.
21783 * normal/script.c: Likewise.
21784 * normal/i386/setjmp.S: Likewise.
21785 * normal/powerpc/setjmp.S: Likewise.
21786 * normal/sparc64/setjmp.S: Likewise.
21787 * partmap/acorn.c: Likewise.
21788 * partmap/amiga.c: Likewise.
21789 * partmap/apple.c: Likewise.
21790 * partmap/gpt.c: Likewise.
21791 * partmap/pc.c: Likewise.
21792 * partmap/sun.c: Likewise.
21793 * term/gfxterm.c: Likewise.
21794 * term/terminfo.c: Likewise.
21795 * term/efi/console.c: Likewise.
21796 * term/i386/pc/console.c: Likewise.
21797 * term/i386/pc/serial.c: Likewise.
21798 * term/i386/pc/vesafb.c: Likewise.
21799 * term/i386/pc/vga.c: Likewise.
21800 * term/ieee1275/ofconsole.c: Likewise.
21801 * util/biosdisk.c: Likewise.
21802 * util/console.c: Likewise.
21803 * util/genmoddep.c: Likewise.
21804 * util/getroot.c: Likewise.
21805 * util/grub-emu.c: Likewise.
21806 * util/grub-mkdevicemap.c: Likewise.
21807 * util/grub-probe.c: Likewise.
21808 * util/lvm.c: Likewise.
21809 * util/misc.c: Likewise.
21810 * util/raid.c: Likewise.
21811 * util/resolve.c: Likewise.
21812 * util/update-grub.in: Likewise.
21813 * util/update-grub_lib.in: Likewise.
21814 * util/grub.d/00_header.in: Likewise.
21815 * util/grub.d/10_hurd.in: Likewise.
21816 * util/grub.d/10_linux.in: Likewise.
21817 * util/i386/efi/grub-install.in: Likewise.
21818 * util/i386/efi/grub-mkimage.c: Likewise.
21819 * util/i386/pc/grub-install.in: Likewise.
21820 * util/i386/pc/grub-mkimage.c: Likewise.
21821 * util/i386/pc/grub-mkrescue.in: Likewise.
21822 * util/i386/pc/grub-setup.c: Likewise.
21823 * util/i386/pc/misc.c: Likewise.
21824 * util/powerpc/ieee1275/grub-install.in: Likewise.
21825 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
21826 * util/powerpc/ieee1275/misc.c: Likewise.
21827 * video/bitmap.c: Likewise.
21828 * video/video.c: Likewise.
21829 * video/i386/pc/vbe.c: Likewise.
21830 * video/i386/pc/vbeblit.c: Likewise.
21831 * video/i386/pc/vbefill.c: Likewise.
21832 * video/i386/pc/vbeutil.c: Likewise.
21833 * video/readers/tga.c: Likewise.
21834
21835 2007-07-02 Robert Millan <rmh@aybabtu.com>
21836
21837 * conf/i386-efi.rmk: Replace obsolete reference to
21838 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
21839 with util/getroot.c.
21840 * conf/powerpc-ieee1275.rmk: Likewise.
21841 * conf/sparc64-ieee1275.rmk: Likewise.
21842
21843 * util/grub-emu.c (main): Fix unchecked pointer handling.
21844
21845 2007-07-02 Robert Millan <rmh@aybabtu.com>
21846
21847 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
21848 invocation to fail, in order to support partition-less media.
21849
21850 * util/i386/pc/grub-install.in: Likewise.
21851
21852 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
21853 which fs or partmap modules are needed (akin to its sister scripts).
21854
21855 Also use grub-probe to get rid of unportable /proc/mounts check.
21856
21857 Print the same informational message that the other scripts do, before
21858 exiting.
21859
21860 2007-06-23 Robert Millan <rmh@aybabtu.com>
21861
21862 * util/update-grub_lib.in (font_path): New function. Determine whether
21863 a font file can be found and, if so, echo the GRUB path to it.
21864
21865 * util/update-grub.in: Handle multiple terminals depending on user
21866 input, platform availability and font file presence. Propagate
21867 variables of our findings to /etc/grub.d/ children.
21868
21869 * util/grub.d/00_header.in: Handle multiple terminals, based on
21870 environment setup by update-grub.
21871
21872 2007-06-23 Robert Millan <rmh@aybabtu.com>
21873
21874 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
21875
21876 2007-06-21 Robert Millan <rmh@aybabtu.com>
21877
21878 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
21879 indicate end of data section in kernel image.
21880 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
21881 GRUB_KERNEL_MACHINE_DATA_END.
21882
21883 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
21884 space for it.
21885 * kern/i386/efi/startup.S: Likewise.
21886
21887 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
21888 during image generation. Implement --prefix option to override this
21889 patch.
21890 * util/i386/efi/grub-mkimage.c: Likewise.
21891
21892 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
21893 code to make path relative to its root into a separate function.
21894
21895 * util/i386/pc/grub-install.in: Use newly provided
21896 make_system_path_relative_to_its_root() to convert ${grubdir}, then
21897 pass the result to grub-install --prefix.
21898
21899 2007-06-13 Robert Millan <rmh@aybabtu.com>
21900
21901 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
21902 DEFAULT_DEVICE_MAP.
21903 * util/grub-emu.c: Use above definitions from misc.h instead of
21904 defining them.
21905 * util/grub-mkdevicemap.c: Likewise.
21906 * util/i386/pc/grub-setup.c: Likewise.
21907 * util/grub-probe.c: Likewise.
21908 (probe): Abort with grub_util_error() when either
21909 grub_guess_root_device or grub_util_get_grub_dev fails.
21910
21911 2007-06-12 Robert Millan <rmh@aybabtu.com>
21912
21913 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
21914 "pager" assignment.
21915 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
21916 "pcdata".
21917 * util/grub-probe.c (probe): Likewise for "drive_name".
21918
21919 2007-06-11 Robert Millan <rmh@aybabtu.com>
21920
21921 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
21922 not just the cdrom one.
21923
21924 2007-06-11 Robert Millan <rmh@aybabtu.com>
21925
21926 * util/i386/pc/grub-mkrescue.in: Add "set -e".
21927 Add --pkglibdir=DIR option to override pkglibdir.
21928 Mention --image-type=TYPE in help output.
21929 Fix --grub-mkimage (it was a no-op).
21930 Abort gracefully when no parameter is given.
21931
21932 2007-06-11 Robert Millan <rmh@aybabtu.com>
21933
21934 * util/i386/pc/grub-mkrescue.in: New file.
21935 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
21936 * Makefile.in: Handle bin_SCRIPTS.
21937
21938 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
21939
21940 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
21941 list of video modes.
21942
21943 2007-06-06 Robert Millan <rmh@aybabtu.com>
21944
21945 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
21946 file doesn't exist, or if it is in a filesystem grub can't read.
21947
21948 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
21949 not abort if GRUB_DRIVE could not be defined. Rearrange generated
21950 header comment to fit in 80 columns when the variables are resolved.
21951
21952 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
21953 could be identified by update-grub. Remove redundant check for
21954 unifont.pff existence (since convert_system_path_to_grub_path now
21955 handles that).
21956
21957 2007-06-04 Robert Millan <rmh@aybabtu.com>
21958
21959 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
21960
21961 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
21962
21963 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
21964
21965 2007-06-04 Robert Millan <rmh@aybabtu.com>
21966
21967 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
21968
21969 * include/grub/partition.h: Declare grub_apple_partition_map_init and
21970 grub_apple_partition_map_fini.
21971
21972 * util/biosdisk.c
21973 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
21974 to access >2 TiB disks).
21975
21976 Print disk->total_sectors with %llu instead of %lu, since this
21977 variable is always 64-bit (prevents wrong disk size from being displayed
21978 on either >2 TiB disk or big-endian CPU).
21979
21980 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
21981 into a generic case that supports all (sane) partition maps.
21982
21983 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
21984 breaks big-endian.
21985
21986 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
21987 and grub_apple_partition_map_fini() after that.
21988
21989 2007-06-01 Robert Millan <rmh@aybabtu.com>
21990
21991 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
21992
21993 * util/grub.d/00_header.in: Only enable gfxterm when
21994 convert_system_path_to_grub_path() succeeds.
21995
21996 2007-05-20 Robert Millan <rmh@aybabtu.com>
21997
21998 * util/update-grub_lib.in: New file.
21999 * DISTLIST: Add update-grub_lib.in.
22000 * conf/common.rmk: Generate update-grub_lib and install it in
22001 $(lib_DATA).
22002 * Makefile.in: Add install routine for $(lib_DATA).
22003
22004 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
22005 function provided by update-grub_lib to support arbitrary paths of
22006 unifont.pff.
22007 * util/update-grub.in: Use convert_system_path_to_grub_path() to
22008 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
22009
22010 2007-05-19 Robert Millan <rmh@aybabtu.com>
22011
22012 * commands/i386/cpuid.c: New module.
22013 * DISTLIST: Add it.
22014 * conf/i386-efi.rmk: Enable cpuid.mod.
22015 * conf/i386-pc.rmk: Likewise.
22016
22017 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
22018
22019 * kern/disk.c (grub_disk_read): Check return value of
22020 grub_realloc().
22021
22022 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
22023
22024 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
22025 arrays.
22026 * disk/raid.c (grub_raid_open): Likewise.
22027
22028 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
22029
22030 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
22031 stack instead of on the heap.
22032
22033 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
22034 before doing a read on it.
22035
22036 * configure.ac: Only use -fno-stack-protector for the target
22037 environment.
22038
22039 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
22040
22041 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
22042 __attribute_ ((unused)) to mode_type argument.
22043
22044 * util/getroot.c (grub_guess_root_device): Fix #endif.
22045
22046 * kern/misc.c (memcmp): Fix prototype.
22047
22048 * include/grub/partition.h [GRUB_UTIL]
22049 (grub_gpt_partition_map_init): Add prototype.
22050 (grub_gpt_partition_map_fini): Likewise.
22051
22052 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
22053 at the right place.
22054
22055 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
22056 (grub_fat_read_data): Likewise.
22057 (grub_fat_find_dir): Likewise.
22058
22059 * font/manager.c (find_glyph): Make table a const.
22060 (grub_font_get_glyph): Remove bitmap from if statement.
22061
22062 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
22063
22064 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
22065 code, first search for device in /dev/mapper, then in /dev.
22066 (grub_util_get_grub_dev): New function.
22067 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
22068 prototype.
22069 * util/grub-probe.c (probe): Remove check for RAID, call
22070 grub_util_get_grub_dev() instead of
22071 grub_util_biosdisk_get_grub_dev().
22072 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
22073 grub_util_biosdisk_get_grub_dev().
22074 * util/i386/pc/grub-setup.c (main): Likewise.
22075
22076 2007-05-16 Robert Millan <rmh@aybabtu.com>
22077
22078 * DISTLIST: Update for the latest changes.
22079 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
22080 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
22081 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
22082 grub/util/biosdisk.h.
22083 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
22084 grub/util/biosdisk.h.
22085
22086 2007-05-16 Robert Millan <rmh@aybabtu.com>
22087
22088 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
22089
22090 2007-05-16 Robert Millan <rmh@aybabtu.com>
22091
22092 * util/i386/efi/grub-install.in: New.
22093 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
22094 newly added grub-install.
22095 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
22096 include.
22097 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
22098 grub/util/biosdisk.h.
22099 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
22100 grub/util/biosdisk.h.
22101
22102 2007-05-16 Robert Millan <rmh@aybabtu.com>
22103
22104 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
22105 * include/grub/util/biosdisk.h: ... here.
22106 * util/i386/pc/biosdisk.c: Moved to ...
22107 * util/biosdisk.c: ... here.
22108 * util/i386/pc/getroot.c: Moved to ...
22109 * util/getroot.c: ... here.
22110 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
22111 * util/grub-mkdevicemap.c: ... here.
22112 * util/i386/pc/grub-probe.c: Moved to ...
22113 * util/grub-probe.c: ... here.
22114
22115 2007-05-15 Robert Millan <rmh@aybabtu.com>
22116
22117 * util/update-grub.in: Remove duplicated line in grub.cfg header
22118 message.
22119
22120 2007-05-13 Robert Millan <rmh@aybabtu.com>
22121
22122 * util/update-grub.in: Fix a few assumptions about the devices holding
22123 /, /boot and /boot/grub being the same.
22124 * util/grub.d/00_header.in: Likewise.
22125 * util/grub.d/10_hurd.in: Likewise.
22126 * util/grub.d/10_linux.in: Likewise.
22127
22128 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
22129 patterns. Use that to define the `.old' suffix as older than `'.
22130
22131 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
22132
22133 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
22134 the grub.cfg header message.
22135
22136 2007-05-11 Robert Millan <rmh@aybabtu.com>
22137
22138 * util/update-grub.in: Create device.map if it doesn't already exist,
22139 before attempting to run grub-probe.
22140 Check for grub-probe and grub-mkdevicemap with the same code
22141 grub-install is using.
22142 Remove test mode.
22143
22144 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
22145
22146 * Makefile.in: Add the datarootdir autoconf variable.
22147
22148 2007-05-09 Robert Millan <rmh@aybabtu.com>
22149
22150 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
22151 fail gracefully if dev->disk->partition == NULL.
22152
22153 2007-05-07 Robert Millan <rmh@aybabtu.com>
22154
22155 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
22156 determine partition map module.
22157 * util/i386/pc/grub-install.in: Use this feature to decide which
22158 partition module to load, instead of hardcoding pc and gpt.
22159
22160 2007-05-07 Robert Millan <rmh@aybabtu.com>
22161
22162 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
22163 source directory differs from build directory.
22164
22165 2007-05-05 Robert Millan <rmh@aybabtu.com>
22166
22167 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
22168 initialisation.
22169
22170 2007-05-05 Robert Millan <rmh@aybabtu.com>
22171
22172 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
22173
22174 2007-05-05 Robert Millan <rmh@aybabtu.com>
22175
22176 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
22177 command-line arguments via ${GRUB_CMDLINE_LINUX}.
22178
22179 2007-05-05 Robert Millan <rmh@aybabtu.com>
22180
22181 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
22182 (grub_probe_SOURCES): Likewise.
22183 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
22184 GPT and initialize dos_part and bsd_part accordingly.
22185 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
22186 install_bsd_part.
22187 (main): Activate gpt module for use during partition identification,
22188 and deactivate it afterwards.
22189 * util/i386/pc/grub-install.in: Add gpt module to core.img.
22190 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
22191 partition identification, and deactivate it afterwards.
22192
22193 2007-05-05 Robert Millan <rmh@aybabtu.com>
22194
22195 * term/i386/pc/console.c (grub_console_fini): Call
22196 grub_term_set_current() before grub_term_unregister().
22197
22198 2007-05-04 Robert Millan <rmh@aybabtu.com>
22199
22200 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
22201 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
22202 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
22203 and update-grub_DATA.
22204 * conf/common.rmk: Build and install update-grub components.
22205 * conf/common.mk: Regenerate.
22206 * util/update-grub.in: New. Core of update-grub.
22207 * util/grub.d/00_header.in: New. Generates grub.cfg header.
22208 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
22209 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
22210 * util/grub.d/README: New. Document grub.d directory layout.
22211
22212 2007-05-01 Robert Millan <rmh@aybabtu.com>
22213
22214 * util/grub-emu.c: Move initialization functions
22215 grub_util_biosdisk_init() and grub_init_all() before
22216 grub_util_biosdisk_get_grub_dev(), which relies on them.
22217
22218 2007-04-19 Robert Millan <rmh@aybabtu.com>
22219
22220 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
22221 it is used later.
22222
22223 2007-04-18 Jerone Young <jerone@gmail.com>
22224
22225 * kernel/elf.c: Add missing parenthesis for conditional statement
22226 stanza.
22227
22228 2007-04-10 Jerone Young <jerone@gmail.com>
22229
22230 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
22231 continue on and look for device node with real device name.
22232
22233 2007-04-10 Jerone Young <jerone@gmail.com>
22234
22235 * configure.ac: Add argument for autoconf to use transformation
22236 ability.
22237 * Makefile.in: Add autoconf package transformation code.
22238 * util/i386/pc/grub-install.in: Likewise.
22239 * util/powerpc/ieee1275/grub-install.in: Likewise.
22240
22241 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
22242
22243 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
22244 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
22245 (EXT2_REVISION): Likewise.
22246 (EXT2_INODE_SIZE): Likewise.
22247 (struct grub_ext2_block_group): Added a missing member
22248 "used_dirs".
22249 (grub_ext2_read_inode): Divide by the inode size in a superblock
22250 instead of 128 to obtain INODES_PER_BLOCK.
22251 Use the macro EXT2_INODE_SIZE instead of directly using
22252 SBLOCK->INODE_SIZE.
22253
22254 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
22255
22256 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
22257 superblock instead of the structure size to compute an
22258 offset. This fixes the problem that GRUB could not read a
22259 filesystem when inode size is different from 128-byte.
22260
22261 2007-03-05 Marco Gerards <marco@gnu.org>
22262
22263 * normal/main.c (read_config_file): When "menu" is not set, create
22264 an initial context.
22265
22266 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
22267
22268 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
22269 (HEAP_LIMIT): New macro.
22270 (grub_claim_heap): Claim memory up to `heaplimit'.
22271
22272 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
22273
22274 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
22275 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
22276 (_start): Likewise.
22277 (grub_arch_modules_addr): Return address after `_end'.
22278 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
22279 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
22280 (add_segments): Calculate `_end' from phdr size and location.
22281 (ALIGN_UP): Moved to ...
22282 * include/grub/misc.h: here.
22283 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
22284 New macro.
22285 (GRUB_IEEE1275_MODULE_BASE): Removed.
22286
22287 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
22288
22289 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
22290 loop boundary.
22291
22292 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
22293
22294 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
22295 All users updated.
22296 (grub_elf64_load_hook_t): Likewise.
22297 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
22298 debug output.
22299
22300 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
22301
22302 * kern/mm.c: Update copyright.
22303 (grub_mm_debug): Correct syntax error.
22304 (grub_mm_dump_free): New function.
22305 (grub_debug_free): Call `grub_free'.
22306 * include/grub/mm.h: Update copyright.
22307 (grub_mm_dump_free): Add declaration.
22308
22309 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
22310
22311 * include/grub/ieee1275/ieee1275.h: Update copyright.
22312 * kern/powerpc/ieee1275/init.c: Likewise.
22313 * kern/powerpc/ieee1275/openfw.c: Likewise.
22314
22315 * loader/powerpc/ieee1275/linux.c: Likewise.
22316 * include/grub/elfload.h: Likewise.
22317 * kern/elf.c: Likewise.
22318 (grub_elf32_load): Pass `base' and `size' parameters. Update all
22319 callers.
22320 (grub_elf64_load): Likewise.
22321 (grub_elf32_load_segment): Move to a nested function.
22322 (grub_elf64_load_segment): Likewise.
22323
22324 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
22325
22326 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
22327 prototype.
22328 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
22329 (grub_heap_len): Likewise.
22330 (HEAP_SIZE): New macro.
22331 (grub_claim_heap): New function.
22332 (grub_machine_init): Don't claim heap directly. Call
22333 `grub_claim_heap'.
22334 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
22335 (grub_available_iterate): New function.
22336
22337 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
22338
22339 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
22340 * configure.ac: Use it for testing the HOST and TARGET compilers.
22341
22342 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
22343
22344 * Makefile.in (enable_grub_emu): New variable.
22345 * configure.ac (--enable-grub-emu): New option.
22346 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
22347 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
22348 * conf/i386-pc.rmk: Likewise.
22349 * conf/powerpc-ieee1275.rmk: Likewise.
22350 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
22351
22352 2006-12-12 Marco Gerards <marco@gnu.org>
22353
22354 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
22355
22356 * kern/env.c (grub_env_unset): Don't free the member `value' when
22357 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
22358 pointer.
22359
22360 * normal/main.c (current_menu): Removed.
22361 (free_menu): Unset the `menu' environment variable.
22362 (grub_normal_menu_addentry): Make use of the environment variable
22363 `menu', instead of using the global `current_menu'. Allocate
22364 memory for the sourcecode of this entry.
22365 (read_config_file): New argument `nested', changed all callers.
22366 Only in the case of a new context, initialize a new menu. Set the
22367 `menu' environment variable.
22368 (grub_normal_execute): Don't set and unset the environment
22369 variable `menu' here anymore. Only free the menu when leaving the
22370 context.
22371
22372 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
22373 leak.
22374
22375 2006-12-11 Marco Gerards <marco@gnu.org>
22376
22377 * normal/menu_entry.c (run): Fix off by one bug so the last line
22378 is executed. Move the loader check to outside the loop.
22379
22380 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
22381
22382 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
22383
22384 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
22385
22386 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
22387 the number of sectors. Reported by Andrey Shuvikov
22388 <mr_hyro@yahoo.com>.
22389
22390 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
22391
22392 * kern/disk.c (grub_disk_read): When there is a read error, always
22393 try to read only the necessary data.
22394
22395 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
22396 disk/raid.c.
22397 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
22398 prototype.
22399 [GRUB_UTIL] (grub_raid_fini): Likewise.
22400 [GRUB_UTIL] (grub_lvm_init): Likewise.
22401 [GRUB_UTIL] (grub_lvm_fini): Likewise.
22402 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
22403 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
22404 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
22405 and grub_raid_fini().
22406
22407 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
22408
22409 * include/grub/types.h (__unused): Rename to UNUSED.
22410 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
22411 (grub_elf64_size): Likewise.
22412
22413 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
22414
22415 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
22416 grub_error_push and grub_error_pop in the error-handling path.
22417 (grub_elf32_load_segment): Only call grub_file_read with non-zero
22418 length.
22419
22420 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
22421
22422 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
22423 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22424 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22425 (kernel_elf_SOURCES): Likewise.
22426 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
22427 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
22428 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
22429 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
22430 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
22431 (elf_mod_SOURCES): New variable.
22432 (elf_mod_CFLAGS): Likewise.
22433 (elf_mod_LDFLAGS): Likewise.
22434 * include/grub/types.h (__unused): New macro.
22435 * include/grub/elfload.h: New file.
22436 * kern/elf.c: Likewise.
22437 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
22438 (ELF32_LOADMASK): New macro.
22439 (ELF64_LOADMASK): Likewise.
22440 (vmlinux): Removed.
22441 (grub_linux_load32): New function.
22442 (grub_linux_load64): Likewise.
22443 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
22444 Use grub_elf_t instead of grub_file_t.
22445
22446 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
22447
22448 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
22449 `catch_result' to struct set_color_args.
22450
22451 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
22452
22453 * normal/menu.c: Include grub/script.h.
22454 * normal/menu_entry.c: Likewise.
22455 * include/grub/normal.h: Do not include grub/script.h.
22456
22457 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22458
22459 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
22460
22461 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22462
22463 * kern/disk.c (grub_disk_open): Print debug messages when opening a
22464 disk.
22465 (grub_disk_close): Print debug messages when closing a disk.
22466 (grub_disk_read): Print debug messages when disk read fails.
22467 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
22468 filesystem type.
22469 * kern/partition.c: Include misc.h.
22470 (grub_partition_iterate): Print debug messages when detecting
22471 partition type.
22472
22473 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
22474
22475 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
22476 is negative.
22477 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
22478
22479 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
22480
22481 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
22482 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
22483
22484 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
22485
22486 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
22487 instead of sizeof(lv). Patch by Michael Guntsche.
22488
22489 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
22490
22491 * disk/lvm.c: Rename VGS to VG_LIST.
22492 (grub_lvm_iterate): Change VGS->LV to VG-LV.
22493 (grub_lvm_open): Likewise.
22494 Thanks to Michael Guntsche for finding this bug.
22495
22496 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
22497
22498 * configure.ac (AC_INIT): Bumped to 1.95.
22499
22500 2006-10-14 Robert Millan <rmh@aybabtu.com>
22501
22502 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
22503 with "/dev/.static/dev/md".
22504
22505 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
22506
22507 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
22508 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
22509 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
22510 DRIVE_NAME are always freed.
22511
22512 * util/i386/pc/biosdisk.c (make_device_name): Add one into
22513 DOS_PART, as a DOS partition is counted from one instead of zero
22514 now. Reported by Robert Millan.
22515
22516 2006-10-14 Robert Millan <rmh@aybabtu.com>
22517
22518 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
22519 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
22520 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
22521 string returned by grub_guess_root_device.
22522 * util/i386/pc/grub-setup.c: Likewise.
22523 * util/i386/pc/grub-probefs.c: Likewise.
22524
22525 * util/i386/pc/grub-probefs.c: Rename to ...
22526 * util/i386/pc/grub-probe.c: ... this.
22527 * DISTLIST: Remove grub-probefs, add grub-probe.
22528 * conf/i386-efi.rmk: Likewise.
22529 * conf/i386-pc.rmk: Likewise.
22530 * util/i386/pc/grub-install.in: Likewise.
22531
22532 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
22533 choose which information we want to print.
22534
22535 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
22536
22537 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
22538 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
22539 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
22540 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
22541 video/readers/tga.c and video/i386/pc/vbeutil.c.
22542
22543 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
22544
22545 Added support for RAID and LVM.
22546
22547 * disk/lvm.c: New file.
22548 * disk/raid.c: Likewise.
22549 * include/grub/lvm.h: Likewise.
22550 * include/grub/raid.h: Likewise.
22551 * include/grub/util/lvm.h: Likewise.
22552 * include/grub/util/raid.h: Likewise.
22553 * util/lvm.c: Likewise.
22554 * util/raid.c: Likewise.
22555
22556 * include/grub/disk.h (grub_disk_dev_id): Add
22557 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
22558 (grub_disk_get_size): New prototype.
22559 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
22560 returns a partition.
22561 (grub_disk_get_size): New function.
22562
22563 * kern/i386/pc/init.c (make_install_device): Copy the prefix
22564 verbatim if grub_install_dos_part is -2.
22565
22566 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
22567 and LVM devices.
22568
22569 * util/i386/pc/grub-setup.c (setup): New argument
22570 MUST_EMBED. Force embedding of GRUB when the argument is
22571 true. Close FILE before returning.
22572 (main): Add support for RAID and LVM.
22573
22574 * conf/common.rmk: Add RAID and LVM modules.
22575 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
22576 util/lvm.c.
22577 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
22578
22579 * kern/misc.c (grub_strstr): New function.
22580 * include/grub/misc.h (grub_strstr): New prototype.
22581
22582 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
22583
22584 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
22585
22586 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
22587
22588 * kern/misc.c (grub_strtoull): Guess the base only if not
22589 specified.
22590
22591 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
22592
22593 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
22594 PowerMac support.
22595
22596 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
22597
22598 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
22599
22600 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
22601 Remove `flags' argument. All callers changed.
22602 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
22603 (IEEE1275_IHANDLE_INVALID): New variable.
22604 (IEEE1275_CELL_INVALID): New variable.
22605 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
22606 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
22607 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
22608 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
22609 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
22610 codes from Open Firmware. All callers updated.
22611 (grub_ieee1275_next_property): Directly return Open Firmware return
22612 code.
22613 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
22614 Standardize error checking from `grub_ieee1275_get_property'.
22615 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
22616 `devalias' to `aliases'. Correct comments. Consolidate error paths.
22617
22618 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
22619
22620 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
22621 `instance_to_package_args' to `instance_to_path_args'.
22622
22623 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
22624 `grub_ieee1275_chosen'.
22625
22626 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
22627 `grub_ieee1275_interpret'.
22628
22629 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
22630
22631 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
22632
22633 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
22634
22635 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
22636 (__cmpdi): Likewise.
22637
22638 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
22639 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
22640 `grub_ssize_t'.
22641
22642 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
22643
22644 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
22645 to type `grub_ssize_t'.
22646 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
22647
22648 2006-09-22 Marco Gerards <marco@gnu.org>
22649
22650 * normal/script.c (grub_script_create_cmdmenu): Skip leading
22651 newlines.
22652
22653 2006-09-22 Marco Gerards <marco@gnu.org>
22654
22655 * commands/echo.c: New file.
22656
22657 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
22658
22659 * conf/common.rmk (echo_mod_SOURCES): New variable.
22660 (echo_mod_CFLAGS): Likewise.
22661 (echo_mod_LDFLAGS): Likewise.
22662
22663 2006-09-22 Marco Gerards <marco@gnu.org>
22664
22665 * normal/main.c (get_line): Malloc memory instead of using
22666 preallocated memory. Removed the arguments `cmdline' and
22667 `max_len'. Updated all callers.
22668
22669 2006-09-22 Marco Gerards <marco@gnu.org>
22670
22671 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
22672 (normal_mod_DEPENDENCIES): Likewise.
22673
22674 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
22675 (normal_mod_DEPENDENCIES): Likewise.
22676
22677 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
22678
22679 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
22680
22681 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
22682 programs.
22683 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
22684 (normal_mod_DEPENDENCIES): Likewise.
22685 * conf/i386-pc.mk: Regenerate.
22686 * conf/i386-efi.mk: Likewise
22687 * conf/common.mk: Likewise.
22688 * conf/powerpc-ieee1275.mk: Likewise.
22689 * conf/sparc64-ieee1275.mk: Likewise.
22690
22691 2006-09-22 Robert Millan <rmh@aybabtu.com>
22692
22693 Sync with i386 version.
22694 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
22695 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
22696
22697 2006-09-21 Robert Millan <rmh@aybabtu.com>
22698
22699 Import from GRUB Legacy (lib/device.c):
22700 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
22701 (init_device_map) [__linux__]: Add support for I2O devices.
22702
22703 2006-09-14 Marco Gerards <marco@gnu.org>
22704
22705 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
22706 `-melf_i386'.
22707
22708 2006-09-14 Robert Millan <rmh@aybabtu.com>
22709
22710 * util/i386/pc/grub-install.in: Skip menu.lst when removing
22711 /boot/grub/*.lst.
22712
22713 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
22714
22715 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
22716 before adding it to device.map.
22717
22718 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
22719
22720 * genmk.rb: Let GCC generate dependencies the first time it
22721 compiles a file; using the -MD option.
22722 * conf/common.mk: Regenerate.
22723 * conf/i386-pc.mk: Likewise.
22724 * conf/i386-efi.mk: Likewise.
22725 * conf/powerpc-ieee1275.mk: Likewise.
22726 * conf/sparc64-ieee1275.mk: Likewise.
22727
22728 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
22729
22730 Move the prototypes of grub_setjmp and grub_longjmp to
22731 cpu/setjmp.h, so that each architecture may specify different
22732 attributes.
22733
22734 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
22735 (grub_longjmp): Likewise.
22736 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
22737 (grub_longjmp): Likewise.
22738 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
22739 (grub_longjmp): Likewise.
22740
22741 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
22742 [!GRUB_UTIL] (grub_longjmp): Removed.
22743
22744 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
22745
22746 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
22747 "color!" method does not return any value.
22748
22749 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22750
22751 * include/grub/bitmap.h: New file.
22752
22753 * include/grub/i386/pc/vbeutil.h: Likewise.
22754
22755 * video/bitmap.c: Likewise.
22756
22757 * video/readers/tga.c: Likewise.
22758
22759 * video/i386/pc/vbeutil.c: Likewise.
22760
22761 * commands/videotest.c: Code cleanup and updated to reflect to new
22762 video API.
22763
22764 * term/gfxterm.c: Likewise.
22765
22766 * video/video.c: Likewise.
22767
22768 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
22769 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
22770 (bitmap_mod_SOURCES): New entry.
22771 (bitmap_mod_CFLAGS): Likewise.
22772 (bitmap_mod_LDFLAGS): Likewise.
22773 (tga_mod_SOURCES): Likewise.
22774 (tga_mod_CFLAGS): Likewise.
22775 (tga_mod_LDFLAGS): Likewise.
22776
22777 * include/grub/video.h (grub_video_blit_operators): New enum type.
22778 (grub_video_render_target): Changed as forward declaration and moved
22779 actual definition to be video driver specific.
22780 (grub_video_adapter.blit_bitmap): Added blitting operator.
22781 (grub_video_adapter.blit_render_target): Likewise.
22782 (grub_video_blit_bitmap): Likewise.
22783 (grub_video_blit_render_target): Likewise.
22784
22785 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
22786 driver specific render target definition.
22787 (grub_video_vbe_map_rgba): Added driver internal helper.
22788 (grub_video_vbe_unmap_color): Updated to use
22789 grub_video_i386_vbeblit_info.
22790 (grub_video_vbe_get_video_ptr): Likewise.
22791
22792 * include/grub/i386/pc/vbeblit.h
22793 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
22794 grub_video_i386_vbeblit_info.
22795 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
22796 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
22797 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
22798 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
22799 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
22800 (grub_video_i386_vbeblit_index_index): Likewise.
22801 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
22802 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
22803 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
22804 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
22805 operator.
22806 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
22807 operator.
22808
22809 * video/i386/pc/vbeblit.c: Updated to reflect changes on
22810 include/grub/i386/pc/vbeblit.h.
22811
22812 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
22813 Updated to use grub_video_i386_vbeblit_info.
22814 (grub_video_i386_vbefill_R8G8B8): Likewise.
22815 (grub_video_i386_vbefill_index): Likewise.
22816 (grub_video_i386_vbefill): Added generic filler.
22817
22818 * video/i386/pc/vbefill.c: Updated to reflect changes on
22819 include/grub/i386/pc/vbefill.h.
22820
22821 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
22822 grub_video_i386_vbeblit_info.
22823 (grub_video_vbe_unmap_color): Likewise.
22824 (grub_video_vbe_blit_glyph): Likewise.
22825 (grub_video_vbe_scroll): Likewise.
22826 (grub_video_vbe_draw_pixel): Removed function.
22827 (grub_video_vbe_get_pixel): Likewise.
22828 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
22829 updated code to use it.
22830 (common_blitter): Added common blitter for render target and bitmap.
22831 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
22832 (grub_video_vbe_blit_render_target): Likewise.
22833
22834 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
22835
22836 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
22837 is in text mode if there is no console control protocol instance
22838 available.
22839
22840 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22841
22842 * include/grub/video.h: Code cleanup.
22843
22844 * include/grub/i386/pc/vbe.h: Likewise.
22845
22846 * video/i386/pc/vbe.c: Likewise.
22847
22848 * video/i386/pc/vbeblit.c: Likewise.
22849
22850 * video/i386/pc/vbefill.c: Likewise.
22851
22852 * video/video.c: Likewise. Also added more comments.
22853
22854 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
22855
22856 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
22857 (struct grub_biosdisk_dap): Likewise.
22858
22859 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
22860 linkage settings for all functions.
22861
22862 2006-07-12 Marco Gerards <marco@gnu.org>
22863
22864 * configure.ac (--enable-mm-debug): Fix typo.
22865
22866 * genkernsyms.sh.in: Use proper quoting for `CC'.
22867
22868 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
22869
22870 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
22871 (normal_mod_ASFLAGS): Remove "-m32".
22872
22873 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
22874
22875 * util/misc.c: Include config.h.
22876 [!HAVE_MEMALIGN]: Do not include malloc.h.
22877 (grub_memalign): Use posix_memalign, if present. Then, use
22878 memalign, if present. Otherwise, emit an error.
22879
22880 * util/grub-emu.c: Do not include malloc.h.
22881
22882 * include/grub/util/misc.h: Include unistd.h. This is required for
22883 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
22884 D. Eades III <hde@foobar-qux.org>.
22885
22886 * configure.ac (AC_GNU_SOURCE): Added.
22887 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
22888 type.
22889
22890 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
22891
22892 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
22893 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
22894
22895 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
22896
22897 * include/grub/types.h (grub_host_addr_t): Rename to
22898 grub_target_addr_t.
22899 (grub_host_off_t): Rename to grub_target_off_t.
22900 (grub_host_size_t): Rename to grub_target_size_t.
22901 (grub_host_ssize_t): Rename to grub_target_ssize_t.
22902 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
22903
22904 * include/grub/kernel.h (struct grub_module_header): Change type
22905 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
22906 (grub_module_info): Likewise.
22907
22908 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22909
22910 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
22911 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
22912 Velazquez <jesus.velazquez@gmail.com>.
22913
22914 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
22915
22916 Count partitions from 1 instead of 0 in the string representation
22917 of partitions. Still use 0-based internally.
22918
22919 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
22920 (sun_partition_map_iterate): Use grub_partition_t instead of
22921 struct grub_partition *. Cast DESC->START_CYLINDER to
22922 grub_uint64_t after converting the endian.
22923 (sun_partition_map_probe): Subtract 1 for PARTNUM.
22924 (sun_partition_map_get_name): Add 1 to P->INDEX.
22925
22926 * partmap/pc.c (grub_partition_parse): Subtract 1 for
22927 PCDATA->DOS_PART.
22928 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
22929
22930 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
22931 zero instead of one.
22932 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
22933 (gpt_partition_map_get_name): Add 1 into P->INDEX.
22934
22935 * partmap/apple.c (apple_partition_map_iterate): Change the type
22936 of POS to unsigned.
22937 (apple_partition_map_probe): Subtract 1 for PARTNUM.
22938 (apple_partition_map_get_name): Add 1 into P->INDEX.
22939
22940 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
22941 of POS to unsigned.
22942 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
22943 calculate the offset of a partition.
22944 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
22945 (amiga_partition_map_get_name): Add 1 into P->INDEX.
22946
22947 * partmap/acorn.c (acorn_partition_map_find): Change the type of
22948 SECTOR to grub_disk_addr_t.
22949 (acorn_partition_map_iterate): Likewise.
22950 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
22951 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
22952 top.
22953 (acorn_partition_map_get_name): Add 1 into P->INDEX.
22954
22955 * kern/i386/pc/init.c (make_install_device): Add 1 into
22956 GRUB_INSTALL_DOS_PART.
22957
22958 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
22959 conditional.
22960
22961 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
22962
22963 Clean up the code to support 64-bit addressing in disks and
22964 files. This change is not enough for filesystems yet.
22965
22966 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
22967 type of "start" to grub_uint64_t.
22968 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
22969 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
22970 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
22971 convert addresses.
22972
22973 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
22974 to grub_disk_addr_t.
22975
22976 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
22977 string.
22978
22979 * partmap/pc.c (pc_partition_map_iterate): Likewise.
22980
22981 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
22982 to char *.
22983
22984 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
22985
22986 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
22987
22988 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
22989
22990 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
22991 to grub_off_t, to detect an error from grub_file_seek.
22992 (grub_multiboot_load_elf32): Likewise.
22993
22994 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
22995 maximum unsigned long value when an overflow is detected.
22996 (grub_strtoull): New function.
22997 (grub_divmod64): Likewise.
22998 (grub_lltoa): use grub_divmod64.
22999
23000 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
23001 grub_disk_addr_t.
23002 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
23003 the pointer to next character. Use grub_strtoull instead of
23004 grub_strtoul.
23005 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
23006 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
23007 respectively.
23008
23009 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
23010 return value is signed.
23011 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
23012 test if OFFSET is less than zero, as OFFSET is unsigned now.
23013
23014 * kern/disk.c (struct grub_disk_cache): Change the type of
23015 "sector" to grub_disk_addr_t.
23016 (grub_disk_cache_get_index): Change the type of SECTOR to
23017 grub_disk_addr_t. Calculate the hash with SECTOR casted to
23018 unsigned after shifting.
23019 (grub_disk_cache_invalidate): Change the type of SECTOR to
23020 grub_disk_addr_t.
23021 (grub_disk_cache_unlock): Likewise.
23022 (grub_disk_cache_store): Likewise.
23023 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
23024 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
23025 grub_disk_addr_t and grub_uint64_t, respectively.
23026 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
23027 body, as the value of OFFSET is tweaked by
23028 grub_disk_check_range. Change the types of START_SECTOR, LEN and
23029 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
23030 respectively.
23031 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
23032 body, as the value of OFFSET is tweaked by
23033 grub_disk_check_range. Change the types of LEN and N to
23034 grub_size_t.
23035
23036 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
23037 and "saved_offset" to grub_off_t.
23038 (test_header): Cast BUF to char *.
23039 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
23040 to char *.
23041 (grub_gzio_read): Change the types of OFFSET and SIZE to
23042 grub_off_t and grub_size_t, respectively.
23043
23044 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
23045 Removed.
23046 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
23047 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
23048 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
23049 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
23050 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
23051
23052 * include/grub/types.h (grub_off_t): Unconditionally set to
23053 grub_uint64_t.
23054 (grub_disk_addr_t): Changed to grub_uint64_t.
23055
23056 * include/grub/partition.h (struct grub_partition): Change the
23057 types of "start", "len" and "offset" to grub_disk_addr_t,
23058 grub_uint64_t and grub_disk_addr_t, respectively.
23059 (grub_partition_get_start): Return grub_disk_addr_t.
23060 (grub_partition_get_len): Return grub_uint64_t.
23061
23062 * include/grub/misc.h (grub_strtoull): New prototype.
23063 (grub_divmod64): Likewise.
23064
23065 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
23066 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
23067 grub_off_t, respectively.
23068 All callers and references changed.
23069
23070 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
23071 grub_size_t in "read".
23072 All callers and references changed.
23073
23074 * include/grub/file.h (struct grub_file): Change the types of
23075 "offset" and "size" to grub_off_t and grub_off_t,
23076 respectively. Change the type of SECTOR to grub_disk_addr_t in
23077 "read_hook".
23078 (grub_file_read): Change the type of LEN to grub_size_t.
23079 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
23080 grub_off_t.
23081 (grub_file_size): Return grub_off_t.
23082 (grub_file_tell): Likewise.
23083 All callers and references changed.
23084
23085 * include/grub/disk.h (struct grub_disk_dev): Change the types of
23086 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
23087 "write".
23088 (struct grub_disk): Change the type of "total_sectors" to
23089 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
23090 "read_hook".
23091 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
23092 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
23093 (grub_disk_write): Likewise.
23094 All callers and references changed.
23095
23096 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
23097 char * for grub_strncmp to silence gcc.
23098 (grub_iso9660_mount): Likewise.
23099 (grub_iso9660_mount): Likewise.
23100 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
23101 return statement.
23102 (grub_iso9660_iterate_dir): Likewise.
23103 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
23104
23105 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
23106 LEN to grub_disk_addr_t and grub_size_t, respectively.
23107
23108 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
23109
23110 * fs/jfs.c (grub_jfs_read_file): Likewise.
23111
23112 * fs/minix.c (grub_jfs_read_file): Likewise.
23113
23114 * fs/sfs.c (grub_jfs_read_file): Likewise.
23115
23116 * fs/ufs.c (grub_jfs_read_file): Likewise.
23117
23118 * fs/xfs.c (grub_jfs_read_file): Likewise.
23119
23120 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
23121 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
23122 respectively.
23123
23124 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
23125 BLKNR to -1 instead of returning GRUB_ERRNO.
23126 (grub_ext2_read_file): Change the types of SECTOR and
23127 LEN to grub_disk_addr_t and grub_size_t, respectively.
23128
23129 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
23130 LEN to grub_disk_addr_t and grub_size_t, respectively.
23131
23132 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
23133 grub_file_read.
23134
23135 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
23136 string. Do not cast SECTOR explicitly.
23137
23138 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
23139 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
23140 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
23141 grub_disk_addr_t and grub_size_t, respectively. If the sector is
23142 over 2TB and LBA mode is not supported, raise an error.
23143 (get_safe_sectors): New function.
23144 (grub_biosdisk_read): Use get_safe_sectors.
23145 (grub_biosdisk_write): Likewise.
23146
23147 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
23148 (grub_efidisk_write): Likewise.
23149
23150 * disk/loopback.c (delete_loopback): Cosmetic changes.
23151 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
23152 correctly.
23153 (grub_loopback_open): Likewise.
23154 (grub_loopback_read): Likewise. Also, change the type of POS to
23155 grub_off_t, and fix the usage of grub_memset.
23156
23157 * commands/i386/pc/play.c: Include grub/machine/time.h.
23158
23159 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
23160 print FILE->SIZE.
23161
23162 * commands/configfile.c: Include grub/env.h.
23163
23164 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
23165 GRUB_ERRNO directly instead. Change the type of POS to
23166 grub_off_t. Follow the coding standard.
23167
23168 * commands/blocklist.c: Include grub/partition.h.
23169 (grub_cmd_blocklist): Return an error if the underlying device is
23170 not a disk. Take the starting sector of a partition into account,
23171 if a partition is used.
23172
23173 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
23174 a length field.
23175 (lba_mode): Support 64-bit addresses.
23176 (chs_mode): Likewise.
23177 (copy_buffer): Adapted to the new offsets of a length field and a
23178 segment field.
23179 (blocklist_default_start): Allocate 64-bit space.
23180
23181 * boot/i386/pc/boot.S (force_lba): Removed.
23182 (boot_drive): Moved to under KERNEL_SECTOR.
23183 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
23184 space.
23185 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
23186 is useless.
23187 (lba_mode): Refactored to support a 64-bit address. More size
23188 optimization.
23189 (setup_sectors): Likewise.
23190
23191 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
23192
23193 * DISTLIST: Added include/grub/i386/linux.h. Removed
23194 include/grub/i386/pc/linux.h
23195
23196 * configure.ac (AC_INIT): Bumped to 1.94.
23197
23198 * config.guess: Updated from gnulib.
23199 * config.sub: Likewise.
23200 * install-sh: Likewise.
23201 * mkinstalldirs: Likewise.
23202
23203 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
23204
23205 * conf/common.rmk (grub_modules_init.lst): Depended on
23206 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
23207 MODSRCFILES.
23208
23209 * genmk.rb (PModule::rule): Reverted the previous change.
23210
23211 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
23212
23213 * conf/common.rmk (grub_modules_init.lst): Depends on
23214 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
23215 that the target does not exist before producing.
23216 (grub_modules_init.h): Remove the target before generating.
23217 (grub_emu_init.c): Likewise.
23218
23219 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
23220
23221 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
23222
23223 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
23224 for the target-specific tests. Make sure that we also have the
23225 up-to-date target variables for those tests.
23226
23227 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
23228
23229 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
23230 (PModule::rule): Likewise.
23231
23232 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
23233
23234 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
23235 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
23236 target-specific flags should be prefixed.
23237 (PModule::rule): Likewise.
23238
23239 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
23240
23241 * configure.ac (CMP): Check if cmp is available explicitly.
23242
23243 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
23244
23245 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
23246 (target_cpu): New variable.
23247 (pkglibdir): Use target_cpu instead of host_cpu.
23248
23249 * util/i386/pc/grub-install.in (host_cpu): Removed.
23250 (target_cpu): New variable.
23251 (pkglibdir): Use target_cpu instead of host_cpu.
23252
23253 * util/genmoddep.c: Removed.
23254
23255 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
23256 instead of GRUB_HOST_SIZEOF_VOID_P.
23257 * kern/dl.c: Likewise.
23258
23259 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
23260 ...
23261 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
23262 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
23263 (GRUB_TARGET_SIZEOF_LONG): ... this.
23264 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
23265 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
23266 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
23267 to ...
23268 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
23269 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
23270 (GRUB_TARGET_SIZEOF_LONG): ... this.
23271 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
23272 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
23273 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
23274 to ...
23275 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
23276 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
23277 (GRUB_TARGET_SIZEOF_LONG): ... this.
23278 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
23279 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
23280
23281 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
23282 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
23283 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
23284 instead of GRUB_HOST_SIZEOF_LONG.
23285 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
23286 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
23287 GRUB_CPU_WORDS_BIGENDIAN.
23288 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
23289 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
23290 grub_host_ssize_t.
23291
23292 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
23293 (genmoddep_SOURCES): Likewise.
23294 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
23295 (genmoddep_SOURCES): Likewise.
23296 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
23297 (genmoddep_SOURCES): Likewise.
23298 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
23299 Likewise.
23300 (genmoddep_SOURCES): Likewise.
23301
23302 * genmoddep.awk: New file.
23303
23304 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
23305 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
23306 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
23307 (PModule::rule): Likewise.
23308 (Program::rule): Likewise.
23309 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
23310 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
23311 respectively.
23312
23313 * configure.ac: Rewritten intensively to use host and target
23314 instead of build and host, respectively.
23315
23316 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
23317 (host_cpu): Removed.
23318 (target_cpu): New variable.
23319 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
23320 (BUILD_CC): Removed.
23321 (BUILD_CFLAGS): Likewise.
23322 (BUILD_CPPFLAGS): Likewise.
23323 (TARGET_CC): New variable.
23324 (TARGET_CFLAGS): Likewise.
23325 (TARGET_CPPFLAGS): Likewise.
23326 (TARGET_LDFLAGS): Likewise.
23327 (AWK): Likewise.
23328 (include): Use target_cpu instead of host_cpu.
23329 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
23330
23331 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
23332
23333 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
23334
23335 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
23336 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
23337 field 'false' to 'exec_on_false'.
23338 (grub_script_create_cmdif): Renamed argument names to reflect above
23339 changes.
23340
23341 * normal/execute.c (grub_script_execute_cmdif): Likewise.
23342
23343 * normal/script.c (grub_script_create_cmdif): Likewise.
23344
23345 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
23346
23347 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
23348 top.
23349 (grub_hfsplus_btree_recptr): Likewise.
23350 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
23351 FILEBLOCK both to pass a block number and store next block
23352 number.
23353 (grub_hfsplus_read_block): Rewritten heavily to support an extent
23354 overflow file correctly. Specify errors appropriately, because
23355 fshelp expects that GRUB_ERRNO is set when fails. Reuse
23356 grub_hfsplus_btree_recptr to get the pointer to a found key.
23357 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
23358 is found.
23359
23360 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
23361 linux.mod.
23362 (_linux_mod_SOURCES): New variable.
23363 (_linux_mod_CFLAGS): Likewise.
23364 (_linux_mod_LDFLAGS): Likewise.
23365 (linux_mod_SOURCES): Likewise.
23366 (linux_mod_CFLAGS): Likewise.
23367 (linux_mod_LDFLAGS): Likewise.
23368
23369 * DISTLIST: Added loader/i386/efi/linux.c,
23370 loader/i386/efi/linux_normal.c and
23371 include/grub/i386/efi/loader.h.
23372
23373 * loader/i386/efi/linux.c: New file.
23374 * loader/i386/efi/linux_normal.c: Likewise.
23375 * include/grub/i386/efi/loader.h: Likewise.
23376
23377 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
23378
23379 * commands/blocklist.c: New file.
23380
23381 * DISTLIST: Added commands/blocklist.c.
23382
23383 * term/efi/console.c (grub_console_highlight_color): Use a lighter
23384 color for the background, and a darker color for the foreground.
23385 (grub_console_checkkey): Return READ_KEY.
23386 (grub_console_cls): Set the background to
23387 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
23388
23389 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
23390
23391 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
23392 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
23393
23394 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
23395 prototype.
23396
23397 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
23398 BG. The spec is wrong again.
23399
23400 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
23401 prototype.
23402 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
23403
23404 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
23405 commands/blocklist.c.
23406 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23407
23408 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
23409 (blocklist_mod_SOURCES): New variable.
23410 (blocklist_mod_CFLAGS): Likewise.
23411 (blocklist_mod_LDFLAGS): Likewise.
23412
23413 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
23414
23415 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
23416 duplication.
23417 (lba_mode): Use %eax more intensively to reduce the code size.
23418
23419 2006-05-20 Marco Gerards <marco@gnu.org>
23420
23421 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
23422
23423 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
23424 for `menuentry'.
23425 (script): Accept leading newlines.
23426 (newlines): New rule to describe 0 or more newlines.
23427 (commands): Accept `command' with trailing newline. Fixed the
23428 order in which arguments were passed to `grub_script_add_cmd'.
23429 Accept commands separated by newlines.
23430 (function): Changed to accept newlines.
23431 (menuentry) Rewritten.
23432
23433 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
23434 front of the list, instead of to the end.
23435
23436 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
23437
23438 * util/i386/pc/grub-install.in (bindir): New variable.
23439 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
23440 Shaver <lbgwjl@gmail.com>.
23441
23442 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
23443
23444 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
23445 grub/machine/linux.h
23446 * loader/i386/pc/linux.c: Likewise.
23447
23448 * include/grub/i386/pc/linux.h: Moved to ...
23449 * include/grub/i386/linux.h: ... here.
23450
23451 * include/grub/i386/linux.h (struct linux_kernel_params): New
23452 struct.
23453
23454 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
23455
23456 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
23457 checking.
23458 (grub_video_vbe_blit_glyph): Likewise.
23459 (grub_video_vbe_blit_bitmap): Likewise.
23460 (grub_video_vbe_blit_render_target): Likewise.
23461
23462 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
23463
23464 * configure.ac (--with-platform): Properly quote the square
23465 brackets.
23466
23467 2006-05-08 Marco Gerards <marco@gnu.org>
23468
23469 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
23470 this...
23471 (kernel_elf_HEADERS): ...to this. Updated all users.
23472 (grubof_symlist.c): Renamed from this...
23473 (kernel_elf_symlist.c): ...to this. Updated all users.
23474 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
23475 (grubof_SOURCES): Renamed from this...
23476 (kernel_elf_SOURCES): ...to this.
23477 (grubof_HEADERS): Renamed from this...
23478 (kernel_elf_HEADERS): ...to this.
23479 (grubof_CFLAGS): Renamed from this...
23480 (kernel_elf_CFLAGS): ...to this.
23481 (grubof_ASFLAGS): Renamed from this...
23482 (kernel_elf_ASFLAGS): ...to this.
23483 (grubof_LDFLAGS): Renamed from this...
23484 (kernel_elf_LDFLAGS): ...to this.
23485
23486 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
23487 this...
23488 (kernel_elf_HEADERS): ...to this. Updated all users.
23489 (grubof_symlist.c): Renamed from this...
23490 (kernel_elf_symlist.c): ...to this. Updated all users.
23491 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
23492 (grubof_SOURCES): Renamed from this...
23493 (kernel_elf_SOURCES): ...to this.
23494 (grubof_HEADERS): Renamed from this...
23495 (kernel_elf_HEADERS): ...to this.
23496 (grubof_CFLAGS): Renamed from this...
23497 (kernel_elf_CFLAGS): ...to this.
23498 (grubof_ASFLAGS): Renamed from this...
23499 (kernel_elf_ASFLAGS): ...to this.
23500 (grubof_LDFLAGS): Renamed from this...
23501 (kernel_elf_LDFLAGS): ...to this.
23502
23503 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
23504 `kernel.elf' instead of `grubof'.
23505
23506 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
23507
23508 Add --with-platform to configure. Use pkglibdir instead of
23509 pkgdatadir. This is reported by Roger Leigh.
23510
23511 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
23512 (host_vendor): Likewise.
23513 (host_os): Likewise.
23514 (pkgdatadir): Likewise.
23515 (platform): New variable.
23516 (pkglibdir): Likewise.
23517 Use PKGLIBDIR instead of PKGDATADIR.
23518
23519 * util/i386/pc/grub-install.in (datadir): Removed.
23520 (host_vendor): Likewise.
23521 (host_os): Likewise.
23522 (pkgdatadir): Likewise.
23523 (platform): New variable.
23524 (pkglibdir): Likewise.
23525 Use PKGLIBDIR instead of PKGDATADIR.
23526
23527 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
23528 instead of GRUB_DATADIR.
23529 (main): Likewise.
23530 * util/i386/pc/grub-mkimage.c (usage): Likewise.
23531 (main): Likewise.
23532 * util/i386/efi/grub-mkimage.c (usage): Likewise.
23533 (main): Likewise.
23534
23535 * configure.ac (--with-platform): New option.
23536 Use PLATFORM instead of HOST_VENDOR to specify a platform.
23537
23538 * Makefile.in: Include a makefile based on PLATFORM instead of
23539 HOST_VENDOR.
23540 (pkgdatadir): Not appended by the machine type.
23541 (pkglibdir): Appended by the machine type.
23542 (host_vendor): Removed.
23543 (platform): New variable.
23544 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
23545 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
23546 (uninstall): Likewise.
23547
23548 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
23549
23550 Use the environment context in the menu. Remove the commands
23551 "default" and "timeout", and use variables instead.
23552
23553 * normal/menu.c: Include grub/env.h.
23554 (print_entry): Cast TITLE to silence gcc.
23555 (get_timeout): New function.
23556 (set_timeout): Likewise.
23557 (get_entry_number): Likewise.
23558 (run_menu): Use a default entry, a fallback entry and a timeout
23559 in the environment variables "default", "fallback" and
23560 "timeout". Also, tweak the default entry if it is not within the
23561 current menu entries.
23562 (grub_menu_run): Use a fallback entry in the environment variable
23563 "fallback".
23564
23565 * normal/main.c (read_config_file): Do not initialize
23566 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
23567 NEWMENU->TIMEOUT.
23568 (grub_normal_execute): Use a data slot to store the menu.
23569
23570 * include/grub/normal.h (struct grub_menu): Removed default_entry,
23571 fallback_entry and timeout.
23572 (struct grub_menu_list): Removed.
23573 (grub_menu_list_t): Likewise.
23574 (struct grub_context): Likewise.
23575 (grub_context_t): Likewise.
23576 (grub_context_get): Likewise.
23577 (grub_context_get_current_menu): Likewise.
23578 (grub_context_push_menu): Likewise.
23579 (grub_context_pop_menu): Likewise.
23580 (grub_default_init): Likewise.
23581 (grub_default_fini): Likewise.
23582 (grub_timeout_init): Likewise.
23583 (grub_timeout_fini): Likewise.
23584
23585 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
23586 and timeout.mod.
23587 (normal_mod_SOURCES): Removed normal/context.c.
23588
23589 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
23590 commands/default.c, commands/timeout.c and normal/context.c.
23591 (normal_mod_SOURCES): Removed normal/context.c.
23592
23593 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
23594 commands/timeout.c and normal/context.c.
23595 (normal_mod_SOURCES): Removed normal/context.c.
23596
23597 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
23598 commands/default.c, commands/timeout.c and normal/context.c.
23599 (normal_mod_SOURCES): Removed normal/context.c.
23600
23601 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
23602 timeout.mod.
23603 (default_mod_SOURCES): Removed.
23604 (default_mod_CFLAGS): Likewise.
23605 (default_mod_LDFLAGS): Likewise.
23606 (timeout_mod_SOURCES): Removed.
23607 (timeout_mod_CFLAGS): Likewise.
23608 (timeout_mod_LDFLAGS): Likewise.
23609
23610 * DISTLIST: Removed commands/default.c, commands/timeout.c and
23611 normal/context.c.
23612
23613 * commands/default.c: Removed.
23614 * commands/timeout.c: Likewise.
23615 * normal/context.c: Likewise.
23616
23617 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
23618
23619 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
23620
23621 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
23622
23623 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
23624 "next" to "prev" for readability.
23625 (struct grub_env_sorted_var): New struct.
23626 (grub_env_context): Renamed to ...
23627 (initial_context): ... this.
23628 (grub_env_var_context): Renamed to ...
23629 (current_context): ... this.
23630 (grub_env_find): Look only at CURRENT_CONTEXT.
23631 (grub_env_context_open): Rewritten to copy exported variables from
23632 previous context.
23633 (grub_env_context_close): Rewritten according to the new
23634 scheme. Also, add an assertion to prevent the initial context from
23635 removed.
23636 (grub_env_insert): Removed the code for the sorted list.
23637 (grub_env_remove): Likewise.
23638 (grub_env_export): Simply mark the variable with
23639 GRUB_ENV_VAR_GLOBAL.
23640 (grub_env_set): A cosmetic change for naming consistency.
23641 (grub_env_get): Likewise.
23642 (grub_env_unset): Likewise.
23643 (grub_env_iterate): Rewritten to sort variables within this
23644 function.
23645 (grub_register_variable_hook): Fixed for naming consistency. Call
23646 grub_env_find again, only if NAME is not found at the first time.
23647 (mangle_data_slot_name): New function.
23648 (grub_env_set_data_slot): Likewise.
23649 (grub_env_get_data_slot): Likewise.
23650 (grub_env_unset_data_slot): Likewise.
23651
23652 * include/grub/env.h (grub_env_var_type): New enum.
23653 (GRUB_ENV_VAR_LOCAL): New constant.
23654 (GRUB_ENV_VAR_GLOBAL): Likewise.
23655 (GRUB_ENV_VAR_DATA): Likewise.
23656 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
23657 "type".
23658 (grub_env_set): Replace VAR with NAME for consistency.
23659 (grub_register_variable_hook): Likewise.
23660 (grub_env_export): Specify the name of the argument.
23661 (grub_env_set_data_slot): New prototype.
23662 (grub_env_get_data_slot): Likewise.
23663 (grub_env_unset_data_slot): Likewise.
23664
23665 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
23666
23667 Extend the loader so that GRUB can accept a loader which comes
23668 back to GRUB when a loaded image exits. Also, this change adds
23669 support for a chainloader on EFI.
23670
23671 * term/efi/console.c: Include grub/misc.h.
23672 (grub_console_checkkey): Display a scan code on the top for
23673 debugging. This will be removed once the EFI port gets stable.
23674 Correct the scan code mapping.
23675
23676 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
23677 allocate memory from larger regions, in order to reduce the number
23678 of allocated regions. Otherwise, the MacOSX loader panics.
23679 (filter_memory_map): Avoid less than 1MB for compatibility with
23680 other loaders.
23681 (add_memory_regions): Allocate from the tail of a region, if
23682 possible, to avoid allocating a region near to 1MB, for the MacOSX
23683 loader.
23684
23685 * kern/efi/init.c (grub_efi_set_prefix): Specify
23686 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
23687
23688 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
23689 argument IMAGE_HANDLE and specify it to get a loaded image.
23690 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
23691 grub_efi_get_loaded_image.
23692 (grub_efi_get_filename): Divide the length by the size of
23693 grub_efi_char16_t.
23694 (grub_efi_get_device_path): New function.
23695 (grub_efi_print_device_path): Print End Device Path nodes. Divide
23696 the length by the size of grub_efi_char16_t for a file path device
23697 path node.
23698
23699 * kern/loader.c (grub_loader_noreturn): New variable.
23700 (grub_loader_set): Accept a new argument NORETURN. Set
23701 GRUB_LOADER_NORETURN to NORETURN.
23702 All callers changed.
23703 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
23704 grub_machine_fini.
23705
23706 * include/grub/efi/efi.h (grub_efi_get_device_path): New
23707 prototype.
23708 (grub_efi_get_loaded_image): Take an argument to specify an image
23709 handle.
23710
23711 * include/grub/loader.h (grub_loader_set): Added one more argument
23712 NORETURN.
23713
23714 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
23715 instead of grub_efi_open_protocol.
23716 (grub_efidisk_get_device_name): Likewise.
23717 (grub_efidisk_close): Print a newline.
23718 (grub_efidisk_get_device_handle): Fixed to use
23719 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
23720 GRUB_EFI_DEVICE_PATH_TYPE.
23721
23722 * disk/efi/efidisk.c (device_path_guid): Moved to ...
23723 * kern/efi/efi.c (device_path_guid): ... here.
23724
23725 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
23726 chain.mod.
23727 (kernel_mod_HEADERS): Added efi/disk.h.
23728 (_chain_mod_SOURCES): New variable.
23729 (_chain_mod_CFLAGS): Likewise.
23730 (_chain_mod_LDFLAGS): Likewise.
23731 (chain_mod_SOURCES): Likewise.
23732 (chain_mod_CFLAGS): Likewise.
23733 (chain_mod_LDFLAGS): Likewise.
23734
23735 * DISTLIST: Added include/grub/efi/chainloader.h,
23736 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
23737
23738 * include/grub/efi/chainloader.h: New file.
23739 * loader/efi/chainloader.c: Likewise.
23740 * loader/efi/chainloader_normal.c: Likewise.
23741
23742 2006-04-30 Marco Gerards <marco@gnu.org>
23743
23744 * commands/configfile.c (grub_cmd_source): New function.
23745 (GRUB_MOD_INIT): Register the commands `source' and `.'.
23746 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
23747
23748 2006-04-30 Marco Gerards <marco@gnu.org>
23749
23750 * normal/execute.c (grub_script_execute_cmd): Change the return
23751 type to `grub_err_t'. Correctly return the error.
23752 (grub_script_execute_cmdline): In case a command line is not a
23753 command or a function, try to interpret it as an assignment.
23754
23755 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
23756
23757 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
23758 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
23759 skip a node whose name is obviously invalid as UTF-16,
23760 i.e. contains a NUL character. Stop the iteration when the last
23761 directory entry is found. Instead of using the return value of
23762 grub_hfsplus_btree_iterate_node, store the value in RET and use
23763 it, because the iterator can be stopped by the last directory
23764 entry.
23765
23766 2006-04-30 Marco Gerards <marco@gnu.org>
23767
23768 * include/grub/env.h (grub_env_export): New prototype. Reported
23769 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
23770
23771 2006-04-30 Marco Gerards <marco@gnu.org>
23772
23773 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
23774 size of the extents in a catalog file record.
23775
23776 2006-04-29 Marco Gerards <marco@gnu.org>
23777
23778 * commands/configfile.c (grub_cmd_configfile): Execute the
23779 configfile within its own context.
23780
23781 * include/grub/env.h (grub_env_context_open): New prototype.
23782 (grub_env_context_close): Likewise.
23783
23784 * kern/env.c (grub_env): Removed.
23785 (grub_env_sorted): Likewise.
23786 (grub_env_context): New variable.
23787 (grub_env_var_context): Likewise.
23788 (grub_env_find): Search both the active context and the global
23789 context.
23790 (grub_env_context_open): New function.
23791 (grub_env_context_close): Likewise.
23792 (grub_env_insert): Likewise.
23793 (grub_env_remove): Likewise.
23794 (grub_env_export): Likewise.
23795 (grub_env_set): Changed to use helper functions to avoid code
23796 duplication.
23797 (grub_env_iterate): Rewritten so both the current context and the
23798 global context are being used.
23799
23800 * normal/command.c (export_command): New function.
23801 (grub_command_init): Register the `export' function.
23802
23803 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
23804
23805 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
23806 explicitly to suppress gcc's warnings.
23807 * fs/fat.c (grub_fat_find_dir): Likewise.
23808 (grub_fat_label): Likewise.
23809 * fs/xfs.c (grub_xfs_read_inode): Likewise.
23810 (grub_xfs_mount): Likewise.
23811 (grub_xfs_label): Likewise.
23812 * fs/affs.c (grub_affs_mount): Likewise.
23813 (grub_affs_label): Likewise.
23814 (grub_affs_iterate_dir): Likewise.
23815 * fs/sfs.c (grub_sfs_mount): Likewise.
23816 (grub_sfs_iterate_dir): Likewise.
23817 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
23818 * fs/hfs.c (grub_hfs_mount): Likewise.
23819 (grub_hfs_cmp_catkeys): Likewise.
23820 (grub_hfs_find_dir): Likewise.
23821 (grub_hfs_dir): Likewise.
23822 (grub_hfs_label): Likewise.
23823 * fs/jfs.c (grub_jfs_mount): Likewise.
23824 (grub_jfs_opendir): Likewise.
23825 (grub_jfs_getent): Likewise.
23826 (grub_jfs_lookup_symlink): Likewise.
23827 (grub_jfs_label): Likewise.
23828 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
23829 (grub_hfsplus_iterate_dir): Likewise.
23830 (grub_hfsplus_btree_iterate_node): Made static.
23831
23832 * util/grub-emu.c (prefix): New variable.
23833 (grub_machine_set_prefix): New function.
23834 (main): Do not set the environment variable "prefix" here. Only
23835 set PREFIX, which is used later by grub_machine_set_prefix.
23836
23837 * include/grub/video.h: Do not include grub/symbol.h.
23838 (grub_video_register): Not exported. This symbol is not defined in
23839 the kernel.
23840 (grub_video_unregister): Likewise.
23841 (grub_video_iterate): Likewise.
23842 (grub_video_setup): Likewise.
23843 (grub_video_restore): Likewise.
23844 (grub_video_get_info): Likewise.
23845 (grub_video_get_blit_format): Likewise.
23846 (grub_video_set_palette): Likewise.
23847 (grub_video_get_palette): Likewise.
23848 (grub_video_set_viewport): Likewise.
23849 (grub_video_get_viewport): Likewise.
23850 (grub_video_map_color): Likewise.
23851 (grub_video_map_rgb): Likewise.
23852 (grub_video_map_rgba): Likewise.
23853 (grub_video_fill_rect): Likewise.
23854 (grub_video_blit_glyph): Likewise.
23855 (grub_video_blit_bitmap): Likewise.
23856 (grub_video_blit_render_target): Likewise.
23857 (grub_video_scroll): Likewise.
23858 (grub_video_swap_buffers): Likewise.
23859 (grub_video_create_render_target): Likewise.
23860 (grub_video_delete_render_target): Likewise.
23861 (grub_video_set_active_render_target): Likewise.
23862
23863 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
23864 Undefined.
23865 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
23866
23867 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
23868 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23869 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23870 instead of $(srcdir)/genkernsyms.sh.
23871
23872 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
23873 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23874 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23875 instead of $(srcdir)/genkernsyms.sh.
23876
23877 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
23878 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23879 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23880 instead of $(srcdir)/genkernsyms.sh.
23881
23882 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
23883 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
23884 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
23885 instead of $(srcdir)/genkernsyms.sh.
23886
23887 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
23888 genkernsyms.sh.
23889
23890 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
23891 genkernsyms.sh.
23892 (gensymlist.sh): New target.
23893 (genkernsyms.sh): Likewise.
23894
23895 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
23896 genkernsyms.sh.in and gensymlist.sh.in.
23897
23898 * genkernsyms.sh: Removed.
23899 * gensymlist.sh: Likewise.
23900
23901 * genkernsyms.sh.in: New file.
23902 * gensymlist.sh.in: Likewise.
23903
23904 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23905
23906 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
23907 clobber "prefix", since we may have already set it manually.
23908
23909 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
23910
23911 * kern/misc.c (abort): New alias for grub_abort.
23912
23913 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
23914
23915 A new machine-specific function "grub_machine_set_prefix" is
23916 defined. This is called after loading modules, so that a prefix
23917 initialization can use modules. Also, this change adds an
23918 intensive debugging feature for the memory manager via the
23919 configure option "--enable-mm-debug".
23920
23921 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
23922 PART.LEN.
23923
23924 * kern/sparc64/ieee1275/init.c (abort): Removed.
23925 (grub_stop): Likewise.
23926 (grub_exit): New function.
23927 (grub_set_prefix): Renamed to ...
23928 (grub_machine_set_prefix): ... this.
23929 (grub_machine_init): Do not call grub_set_prefix.
23930
23931 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
23932 (grub_machine_set_prefix): ... this.
23933 (grub_machine_init): Do not call grub_set_prefix.
23934
23935 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
23936 (grub_machine_init): Do not set the prefix here.
23937
23938 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
23939
23940 * kern/efi/init.c: Include grub/mm.h.
23941 (grub_efi_set_prefix): New function.
23942
23943 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
23944 (grub_efi_get_filename): New function.
23945 (grub_print_device_path): Renamed to ...
23946 (grub_efi_print_device_path): ... this.
23947
23948 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
23949 [MM_DEBUG] (grub_realloc): Likewise.
23950 [MM_DEBUG] (grub_free): Likewise.
23951 [MM_DEBUG] (grub_memalign): Likewise.
23952 [MM_DEBUG] (grub_mm_debug): New variable.
23953 [MM_DEBUG] (grub_debug_malloc): New function.
23954 [MM_DEBUG] (grub_debug_free): New function.
23955 [MM_DEBUG] (grub_debug_realloc): New function.
23956 [MM_DEBUG] (grub_debug_memalign): New function.
23957
23958 * kern/misc.c (grub_abort): Print a newline to distinguish
23959 the message.
23960
23961 * kern/main.c (grub_main): Call grub_machine_set_prefix and
23962 grub_set_root_dev after loading modules. This is necessary when
23963 setting a prefix depends on modules.
23964
23965 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
23966 (grub_efi_print_device_path): ... this.
23967 (grub_efi_get_filename): New prototype.
23968 (grub_efi_set_prefix): Likewise.
23969
23970 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
23971 and grub/disk.h.
23972 (grub_efidisk_get_device_handle): New prototype.
23973 (grub_efidisk_get_device_name): Likewise.
23974
23975 * include/grub/mm.h: Include config.h.
23976 (MM_DEBUG): Removed.
23977 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
23978 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
23979 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
23980 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
23981 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
23982 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
23983 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
23984 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
23985 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
23986
23987 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
23988
23989 * disk/efi/efidisk.c: Include grub/partition.h.
23990 (iterate_child_devices): New function.
23991 (add_device): First, compare only last device path nodes, so that
23992 devices are sorted by the types.
23993 (grub_efidisk_get_device_handle): New function.
23994 (grub_efidisk_get_device_name): Likewise.
23995
23996 * configure.ac (--enable-mm-debug): New option to enable the
23997 memory manager debugging feature. This makes the binary much
23998 bigger, so is disabled by default.
23999
24000 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
24001
24002 Use grub_abort instead of grub_stop, and grub_exit must be
24003 define in each architecture now. Also, this change adds support
24004 for EFI disks.
24005
24006 * util/i386/pc/grub-probefs.c: Include grub/term.h.
24007 (grub_getkey): New function.
24008 (grub_term_get_current): Likewise.
24009
24010 * util/i386/pc/grub-setup.c: Include grub/term.h.
24011 (grub_getkey): New function.
24012 (grub_term_get_current): Likewise.
24013
24014 * util/misc.c (grub_stop): Renamed to ...
24015 (grub_exit): ... this.
24016
24017 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
24018 (grub_exit): ... this.
24019 (grub_machine_init): Use grub_abort instead of abort.
24020 (grub_stop): Removed.
24021
24022 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
24023 abort.
24024
24025 * kern/i386/pc/startup.S (grub_exit): New function.
24026 (cold_reboot): New label.
24027
24028 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
24029 (grub_efi_init): Call grub_efidisk_init.
24030 (grub_efi_fini): Call grub_efidisk_fini.
24031
24032 * kern/efi/efi.c: Include grub/mm.h.
24033 (grub_efi_console_control_guid): Renamed to ...
24034 (console_control_guid): ... this.
24035 (grub_efi_loaded_image_guid): Renamed to ...
24036 (loaded_image_guid): ... this.
24037 (grub_efi_locate_handle): New function.
24038 (grub_efi_open_protocol): Likewise.
24039 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
24040 GRUB_EFI_CONSOLE_CONTROL_GUID.
24041 (grub_efi_exit): Removed.
24042 (grub_stop): Likewise.
24043 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
24044 (grub_exit): New function.
24045 (grub_print_device_path): Likewise.
24046
24047 * kern/rescue.c (grub_rescue_cmd_exit): New function.
24048 (grub_enter_rescue_mode): Register "exit".
24049
24050 * kern/misc.c (grub_real_dprintf): A cosmetic change.
24051 (grub_abort): New function.
24052
24053 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
24054
24055 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
24056
24057 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
24058
24059 * include/grub/efi/efi.h (grub_efi_exit): Removed.
24060 (grub_print_device_path): New prototype.
24061 (grub_efi_locate_handle): Likewise.
24062 (grub_efi_open_protocol): Likewise.
24063
24064 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
24065 * disk/efi/efidisk.c: Likewise.
24066
24067 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
24068
24069 * include/grub/efi/console_control.h
24070 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
24071
24072 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
24073 last 8 bytes as an array.
24074 (GRUB_EFI_DISK_IO_GUID): New macro.
24075 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
24076 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
24077 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
24078 grub_uint8_t.
24079 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
24080 (struct grub_efi_device_path): Rename the member "sub_type" to
24081 "subtype".
24082 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
24083 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
24084 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
24085 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
24086 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
24087 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
24088 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
24089 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
24090 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
24091 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
24092 (struct grub_efi_pci_device_path): New structure.
24093 (grub_efi_pci_device_path_t): New type.
24094 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
24095 (struct grub_efi_pccard_device_path): New structure.
24096 (grub_efi_pccard_device_path_t): New type.
24097 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
24098 (struct grub_efi_memory_mapped_device_path): New structure.
24099 (grub_efi_memory_mapped_device_path_t): New type.
24100 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
24101 (struct grub_efi_vendor_device_path): New structure.
24102 (grub_efi_vendor_device_path_t): New type.
24103 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
24104 (struct grub_efi_controller_device_path): New structure.
24105 (grub_efi_controller_device_path_t): New type.
24106 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
24107 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
24108 (struct grub_efi_acpi_device_path): New structure.
24109 (grub_efi_acpi_device_path_t): New type.
24110 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
24111 (struct grub_efi_expanded_acpi_device_path): New structure.
24112 (grub_efi_expanded_acpi_device_path_t): New type.
24113 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
24114 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
24115 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
24116 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
24117 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
24118 (struct grub_efi_atapi_device_path): New structure.
24119 (grub_efi_atapi_device_path_t): New type.
24120 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
24121 (struct grub_efi_fibre_channel_device_path): New structure.
24122 (grub_efi_fibre_channel_device_path_t): New type.
24123 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
24124 (struct grub_efi_1394_device_path): New structure.
24125 (grub_efi_1394_device_path_t): New type.
24126 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
24127 (struct grub_efi_usb_device_path): New structure.
24128 (grub_efi_usb_device_path_t): New type.
24129 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
24130 (struct grub_efi_usb_class_device_path): New structure.
24131 (grub_efi_usb_class_device_path_t): New type.
24132 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
24133 (struct grub_efi_i2o_device_path): New structure.
24134 (grub_efi_i2o_device_path_t): New type.
24135 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
24136 (struct grub_efi_mac_address_device_path): New structure.
24137 (grub_efi_mac_address_device_path_t): New type.
24138 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
24139 (struct grub_efi_ipv4_device_path): New structure.
24140 (grub_efi_ipv4_device_path_t): New type.
24141 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
24142 (struct grub_efi_ipv6_device_path): New structure.
24143 (grub_efi_ipv6_device_path_t): New type.
24144 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
24145 (struct grub_efi_infiniband_device_path): New structure.
24146 (grub_efi_infiniband_device_path_t): New type.
24147 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
24148 (struct grub_efi_uart_device_path): New structure.
24149 (grub_efi_uart_device_path_t): New type.
24150 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
24151 (struct grub_efi_vendor_messaging_device_path): New structure.
24152 (grub_efi_vendor_messaging_device_path_t): New type.
24153 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
24154 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
24155 (struct grub_efi_hard_drive_device_path): New structure.
24156 (grub_efi_hard_drive_device_path_t): New type.
24157 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
24158 (struct grub_efi_cdrom_device_path): New structure.
24159 (grub_efi_cdrom_device_path_t): New type.
24160 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
24161 (struct grub_efi_vendor_media_device_path): New structure.
24162 (grub_efi_vendor_media_device_path_t): New type.
24163 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
24164 (struct grub_efi_file_path_device_path): New structure.
24165 (grub_efi_file_path_device_path_t): New type.
24166 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
24167 (struct grub_efi_protocol_device_path): New structure.
24168 (grub_efi_protocol_device_path_t): New type.
24169 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
24170 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
24171 (struct grub_efi_bios_device_path): New structure.
24172 (grub_efi_bios_device_path_t): New type.
24173 (struct grub_efi_disk_io): New structure.
24174 (grub_efi_disk_io_t): New type.
24175 (struct grub_efi_block_io_media): New structure.
24176 (grub_efi_block_io_media_t): New type.
24177 (struct grub_efi_block_io): New structure.
24178 (grub_efi_block_io_t): New type.
24179
24180 * include/grub/misc.h (grub_stop): Removed.
24181 (grub_exit): New prototype.
24182 (grub_abort): Likewise.
24183
24184 * include/grub/disk.h (enum grub_disk_dev_id): Added
24185 GRUB_DISK_DEVICE_EFIDISK_ID.
24186
24187 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
24188 disk/efi/efidisk.c.
24189 (kernel_syms.lst): Remove the target if an error occurs.
24190
24191 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
24192
24193 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
24194 as it was simply too buggy.
24195
24196 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
24197
24198 * kern/misc.c (grub_lltoa): New function.
24199 (grub_vsprintf): Added support for the long long suffix,
24200 i.e. "ll".
24201
24202 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
24203
24204 * Makefile.in (LDFLAGS): Add variable.
24205 (LD): Remove variable.
24206 * configure.ac: Add -m32 to LDFLAGS.
24207 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
24208 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
24209 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
24210 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
24211 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
24212 variables.
24213 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
24214 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
24215 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
24216
24217 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
24218
24219 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
24220 length for unknown glyph.
24221
24222 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
24223
24224 Add support for pre-loaded modules into the EFI port.
24225
24226 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
24227 completely. Accept one more argument DIR. The caller has changed.
24228
24229 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
24230
24231 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
24232 (grub_efi_loaded_image_guid): New variable.
24233 (grub_efi_get_loaded_image): New function.
24234 (grub_arch_modules_addr): Likewise.
24235
24236 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
24237 prototype.
24238
24239 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
24240 (struct grub_efi_loaded_image): New structure.
24241 (grub_efi_loaded_image_t): New type.
24242
24243 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
24244
24245 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
24246 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
24247 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
24248
24249 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
24250
24251 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
24252
24253 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
24254
24255 * DISTLIST: Added include/grub/efi/console.h,
24256 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
24257 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
24258
24259 * include/grub/efi/console.h: New file.
24260 * include/grub/efi/time.h: Likewise.
24261 * include/grub/i386/efi/kernel.h: Likewise.
24262 * kern/efi/init.c: Likewise.
24263 * kern/efi/mm.c: Likewise.
24264 * term/efi/console.c: Likewise.
24265
24266 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
24267 (grub_stop): Removed.
24268 (grub_get_rtc): Likewise.
24269 (grub_machine_init): Simply call grub_efi_init.
24270 (grub_machine_fini): Call grub_efi_fini.
24271
24272 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
24273 (grub_efi_output_string): Removed.
24274 (grub_efi_stall): New function.
24275 (grub_stop): Likewise.
24276 (grub_get_rtc): Likewise.
24277
24278 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
24279 (grub_efi_stall): New prototype.
24280 (grub_efi_allocate_pages): Likewise.
24281 (grub_efi_free_pages): Likewise.
24282 (grub_efi_get_memory_map): Likewise.
24283 (grub_efi_mm_init): Likewise.
24284 (grub_efi_mm_fini): Likewise.
24285 (grub_efi_init): Likewise.
24286 (grub_efi_fini): Likewise.
24287
24288 * include/grub/i386/efi/time.h: Do not include
24289 grub/symbol.h. Include grub/efi/time.h.
24290 (GRUB_TICKS_PER_SECOND): Removed.
24291 (grub_get_rtc): Likewise.
24292
24293 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
24294 Added padding. The EFI spec is buggy.
24295 (GRUB_EFI_BLACK): New macro.
24296 (GRUB_EFI_BLUE): Likewise.
24297 (GRUB_EFI_GREEN): Likewise.
24298 (GRUB_EFI_CYAN): Likewise.
24299 (GRUB_EFI_RED): Likewise.
24300 (GRUB_EFI_MAGENTA): Likewise.
24301 (GRUB_EFI_BROWN): Likewise.
24302 (GRUB_EFI_LIGHTGRAY): Likewise.
24303 (GRUB_EFI_BRIGHT): Likewise.
24304 (GRUB_EFI_DARKGRAY): Likewise.
24305 (GRUB_EFI_LIGHTBLUE): Likewise.
24306 (GRUB_EFI_LIGHTGREEN): Likewise.
24307 (GRUB_EFI_LIGHTCYAN): Likewise.
24308 (GRUB_EFI_LIGHTRED): Likewise.
24309 (GRUB_EFI_LIGHTMAGENTA): Likewise.
24310 (GRUB_EFI_YELLOW): Likewise.
24311 (GRUB_EFI_WHITE): Likewise.
24312 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
24313 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
24314 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
24315 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
24316 (GRUB_EFI_BACKGROUND_RED): Likewise.
24317 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
24318 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
24319 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
24320 (GRUB_EFI_TEXT_ATTR): Likewise.
24321
24322 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
24323 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
24324 (kernel_mod_HEADERS): Added efi/time.h.
24325
24326 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
24327
24328 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
24329 include/grub/efi/api.h, include/grub/efi/console_control.h,
24330 include/grub/efi/efi.h, include/grub/efi/pe32.h,
24331 include/grub/i386/efi/time.h, kern/efi/efi.c,
24332 kern/i386/efi/init.c, kern/i386/efi/startup.S,
24333 and util/i386/efi/grub-mkimage.c.
24334
24335 * Makefile.in (RMKFILES): Added i386-efi.rmk.
24336
24337 * genmk.rb (PModule#rule): Do not export symbols if
24338 #{prefix}_EXPORTS is set to "no".
24339
24340 * conf/i386-efi.mk: New file.
24341 * conf/i386-efi.rmk: Likewise.
24342 * include/grub/efi/api.h: Likewise.
24343 * include/grub/efi/console_control.h: Likewise.
24344 * include/grub/efi/efi.h: Likewise.
24345 * include/grub/efi/pe32.h: Likewise.
24346 * include/grub/i386/efi/time.h: Likewise.
24347 * kern/efi/efi.c: Likewise.
24348 * kern/i386/efi/init.c: Likewise.
24349 * kern/i386/efi/startup.S: Likewise.
24350 * util/i386/efi/grub-mkimage.c: Likewise.
24351
24352 2006-04-17 Marco Gerards <marco@gnu.org>
24353
24354 * include/grub/script.h: Include <grub/parser.h> and
24355 "grub_script.tab.h".
24356 (struct grub_lexer_param): New struct.
24357 (struct grub_parser_param): Likewise.
24358 (grub_script_create_arglist): Pass the state in an argument.
24359 (grub_script_add_arglist): Likewise.
24360 (grub_script_create_cmdline): Likewise.
24361 (grub_script_create_cmdblock): Likewise.
24362 (grub_script_create_cmdif): Likewise.
24363 (grub_script_create_cmdmenu): Likewise.
24364 (grub_script_add_cmd): Likewise.
24365 (grub_script_arg_add): Likewise.
24366 (grub_script_lexer_ref): Likewise.
24367 (grub_script_lexer_deref): Likewise.
24368 (grub_script_lexer_record_start): Likewise.
24369 (grub_script_lexer_record_stop): Likewise.
24370 (grub_script_mem_record): Likewise.
24371 (grub_script_mem_record_stop): Likewise.
24372 (grub_script_malloc): Likewise.
24373 (grub_script_yylex): Likewise.
24374 (grub_script_yyparse): Likewise.
24375 (grub_script_yyerror): Likewise.
24376 (grub_script_yylex): Likewise.
24377 (grub_script_lexer_init): Return the state.
24378
24379 * normal/lexer.c (grub_script_lexer_state): Removed variable.
24380 (grub_script_lexer_done): Likewise.
24381 (grub_script_lexer_getline): Likewise.
24382 (grub_script_lexer_refs): Likewise.
24383 (script): Likewise.
24384 (newscript): Likewise.
24385 (record): Likewise.
24386 (recording): Likewise.
24387 (recordpos): Likewise.
24388 (recordlen): Likewise.
24389 (grub_script_lexer_init): Return the state instead of setting
24390 global variables.
24391 (grub_script_lexer_ref): Use the newly added argument for state
24392 instead of globals.
24393 (grub_script_lexer_deref): Likewise.
24394 (grub_script_lexer_record_start): Likewise.
24395 (grub_script_lexer_record_stop): Likewise.
24396 (recordchar): Likewise.
24397 (nextchar): Likewise.
24398 (grub_script_yylex2): Likewise.
24399 (grub_script_yylex): Likewise.
24400 (grub_script_yyerror): Likewise.
24401
24402 * normal/parser.y (func_mem): Removed variable.
24403 (menu_entry): Likewise.
24404 (err): Likewise.
24405 (%lex-param): New parser option.
24406 (%parse-param): Likewise.
24407 (script): Always return the AST.
24408 (argument): Pass the state around.
24409 (arguments): Likewise.
24410 (grubcmd): Likewise.
24411 (commands): Likewise.
24412 (function): Likewise.
24413 (menuentry): Likewise.
24414 (if_statement): Likewise.
24415 (if): Likewise.
24416
24417 * normal/script.c (grub_script_memused): Removed variable.
24418 (grub_script_parsed): Likewise.
24419 (grub_script_malloc): Added a state argument. Use that instead of
24420 global variables.
24421 (grub_script_mem_record): Likewise.
24422 (grub_script_mem_record_stop): Likewise.
24423 (grub_script_arg_add): Likewise.
24424 (grub_script_add_arglist): Likewise.
24425 (grub_script_create_cmdline): Likewise.
24426 (grub_script_create_cmdif): Likewise.
24427 (grub_script_create_cmdmenu): Likewise.
24428 (grub_script_add_cmd): Likewise.
24429 (grub_script_parse): Setup the state before calling the parser.
24430
24431 2006-04-16 Marco Gerards <marco@gnu.org>
24432
24433 * normal/command.c (grub_command_init): Remove the title command.
24434
24435 * normal/lexer.c (grub_script_yylex): Renamed from this...
24436 (grub_script_yylex2): ... to this.
24437 (grub_script_yylex): New function. Temporary
24438 introduced to filter some tokens.
24439 (grub_script_yyerror): Print a newline.
24440
24441 * normal/main.c (read_config_file): Output information about the
24442 lines that contain errors. Wait for a key after all lines have
24443 been processed. Don't return an empty menu.
24444
24445 * normal/parser.y (func_mem): Don't initialize.
24446 (menu_entry): Likewise.
24447 (err): New variable.
24448 (script): Don't return anything when an error was encountered.
24449 (ws, returns): Removed rules.
24450 (argument): Disabled concatenated variable support.
24451 (arguments): Remove explicit separators.
24452 (grubcmd): Likewise.
24453 (function): Likewise.
24454 (menuentry): Likewise.
24455 (if): Likewise.
24456 (commands): Likewise. Add error handling.
24457
24458 * normal/script.c (grub_script_create_cmdline): If
24459 `grub_script_parsed' is 0, assume the parser encountered an error.
24460
24461 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
24462
24463 * configure.ac: Add support for EFI. Fix the typo
24464 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
24465
24466 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
24467
24468 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
24469 foreign multibyte characters should be shown correctly.
24470
24471 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
24472
24473 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
24474 calculation.
24475 (read_config_file): Made it to close file before returning.
24476
24477 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
24478
24479 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
24480 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
24481 video/i386/pc/vbefill.c.
24482
24483 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
24484 video/i386/pc/vbefill.c.
24485
24486 * include/grub/video.h (grub_video_blit_format): New enum.
24487 (grub_video_mode_info): Added new member blit_format.
24488 (grub_video_get_blit_format): New function prototype.
24489
24490 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
24491 function prototype.
24492 (grub_video_vbe_map_rgb): Likewise.
24493 (grub_video_vbe_unmap_color): Likewise.
24494
24495 * include/grub/i386/pc/vbeblit.h: New file.
24496
24497 * include/grub/i386/pc/vbefill.h: New file.
24498
24499 * video/video.c (grub_video_get_blit_format): New function.
24500 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
24501 (grub_video_vbe_map_rgb): Likewise.
24502 (grub_video_vbe_unmap_color): Likewise.
24503
24504 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
24505 optimized fills.
24506 (grub_video_vbe_blit_render_target): Changed to use more optimized
24507 blits.
24508 (grub_video_vbe_setup): Added detection for optimized settings.
24509 (grub_video_vbe_create_render_target): Likewise.
24510
24511 * video/i386/pc/vbeblit.c: New file.
24512
24513 * video/i386/pc/vbefill.c: New file.
24514
24515 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
24516
24517 * font/manager.c (grub_font_get_glyph): Removed font fixup from
24518 here...
24519
24520 * util/unifont2pff.rb: ... and moved it to here. Improved argument
24521 parsing to support both hex and dec ranges. If filename was missing
24522 show usage information.
24523
24524 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
24525
24526 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
24527 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
24528
24529 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
24530 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
24531 (video_mod_SOURCES): Added.
24532 (video_mod_CFLAGS): Likewise.
24533 (video_mod_LDFLAGS): Likewise.
24534 (gfxterm_mod_SOURCES): Likewise.
24535 (gfxterm_mod_CFLAGS): Likewise.
24536 (gfxterm_mod_LDFLAGS): Likewise.
24537 (videotest_mod_SOURCES): Likewise.
24538 (videotest_mod_CFLAGS): Likewise.
24539 (videotest_mod_LDFLAGS): Likewise.
24540 (vesafb_mod_SOURCES): Removed.
24541 (vesafb_mod_CFLAGS): Likewise.
24542 (vesafb_mod_LDFLAGS): Likewise.
24543 (vga_mod_SOURCES): Likewise.
24544 (vga_mod_CFLAGS): Likewise.
24545 (vga_mod_LDFLAGS): Likewise.
24546
24547 * commands/videotest.c: New file.
24548
24549 * font/manager.c (fill_with_default_glyph): Modified to use
24550 grub_font_glyph.
24551 (grub_font_get_glyph): Likewise.
24552 (fontmanager): Renamed from this...
24553 (font_manager): ... to this.
24554
24555 * include/grub/font.h (grub_font_glyph): Added new structure.
24556 (grub_font_get_glyph): Modified to use grub_font_glyph.
24557
24558 * include/grub/misc.h (grub_abs): Added as inline function.
24559
24560 * include/grub/video.h: New file.
24561
24562 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
24563 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
24564 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
24565 (grub_vbe_get_controller_info): Renamed from this...
24566 (grub_vbe_bios_get_controller_info): ... to this.
24567 (grub_vbe_get_mode_info): Renamed from this...
24568 (grub_vbe_bios_get_mode_info): ... to this.
24569 (grub_vbe_set_mode): Renamed from this...
24570 (grub_vbe_bios_set_mode): ... to this.
24571 (grub_vbe_get_mode): Renamed from this...
24572 (grub_vbe_bios_get_mode): ... to this.
24573 (grub_vbe_set_memory_window): Renamed from this...
24574 (grub_vbe_bios_set_memory_window): ... to this.
24575 (grub_vbe_get_memory_window): Renamed from this...
24576 (grub_vbe_bios_get_memory_window): ... to this.
24577 (grub_vbe_set_scanline_length): Renamed from this...
24578 (grub_vbe_set_scanline_length): ... to this.
24579 (grub_vbe_get_scanline_length): Renamed from this...
24580 (grub_vbe_bios_get_scanline_length): ... to this.
24581 (grub_vbe_set_display_start): Renamed from this...
24582 (grub_vbe_bios_set_display_start): ... to this.
24583 (grub_vbe_get_display_start): Renamed from this...
24584 (grub_vbe_bios_get_display_start): ... to this.
24585 (grub_vbe_set_palette_data): Renamed from this...
24586 (grub_vbe_bios_set_palette_data): ... to this.
24587 (grub_vbe_set_pixel_rgb): Removed.
24588 (grub_vbe_set_pixel_index): Likewise.
24589
24590 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
24591 from this...
24592 (grub_vbe_bios_get_controller_info): ... to this.
24593 (grub_vbe_get_mode_info): Renamed from this...
24594 (grub_vbe_bios_get_mode_info): ... to this.
24595 (grub_vbe_set_mode): Renamed from this...
24596 (grub_vbe_bios_set_mode): ... to this.
24597 (grub_vbe_get_mode): Renamed from this...
24598 (grub_vbe_bios_get_mode): ... to this.
24599 (grub_vbe_set_memory_window): Renamed from this...
24600 (grub_vbe_bios_set_memory_window): ... to this.
24601 (grub_vbe_get_memory_window): Renamed from this...
24602 (grub_vbe_bios_get_memory_window): ... to this.
24603 (grub_vbe_set_scanline_length): Renamed from this...
24604 (grub_vbe_set_scanline_length): ... to this.
24605 (grub_vbe_get_scanline_length): Renamed from this...
24606 (grub_vbe_bios_get_scanline_length): ... to this.
24607 (grub_vbe_set_display_start): Renamed from this...
24608 (grub_vbe_bios_set_display_start): ... to this.
24609 (grub_vbe_get_display_start): Renamed from this...
24610 (grub_vbe_bios_get_display_start): ... to this.
24611 (grub_vbe_set_palette_data): Renamed from this...
24612 (grub_vbe_bios_set_palette_data): ... to this.
24613 (grub_vbe_bios_get_controller_info): Fixed problem with registers
24614 getting corrupted after calling it. Added more pushes and pops.
24615 (grub_vbe_bios_set_mode): Likewise.
24616 (grub_vbe_bios_get_mode): Likewise.
24617 (grub_vbe_bios_get_memory_window): Likewise.
24618 (grub_vbe_bios_set_scanline_length): Likewise.
24619 (grub_vbe_bios_get_scanline_length): Likewise.
24620 (grub_vbe_bios_get_display_start): Likewise.
24621 (grub_vbe_bios_set_palette_data): Likewise.
24622
24623 * normal/cmdline.c (cl_set_pos): Refresh the screen.
24624 (cl_insert): Likewise.
24625 (cl_delete): Likewise.
24626
24627 * term/gfxterm.c: New file.
24628
24629 * term/i386/pc/vesafb.c: Removed file.
24630
24631 * video/video.c: New file.
24632
24633 * video/i386/pc/vbe.c (real2pm): Added new function.
24634 (grub_video_vbe_draw_pixel): Likewise.
24635 (grub_video_vbe_get_video_ptr): Likewise.
24636 (grub_video_vbe_get_pixel): Likewise
24637 (grub_video_vbe_init): Likewise.
24638 (grub_video_vbe_fini): Likewise.
24639 (grub_video_vbe_setup): Likewise.
24640 (grub_video_vbe_get_info): Likewise.
24641 (grub_video_vbe_set_palette): Likewise.
24642 (grub_video_vbe_get_palette): Likewise.
24643 (grub_video_vbe_set_viewport): Likewise.
24644 (grub_video_vbe_get_viewport): Likewise.
24645 (grub_video_vbe_map_color): Likewise.
24646 (grub_video_vbe_map_rgb): Likewise.
24647 (grub_video_vbe_map_rgba): Likewise.
24648 (grub_video_vbe_unmap_color): Likewise.
24649 (grub_video_vbe_fill_rect): Likewise.
24650 (grub_video_vbe_blit_glyph): Likewise.
24651 (grub_video_vbe_blit_bitmap): Likewise.
24652 (grub_video_vbe_blit_render_target): Likewise.
24653 (grub_video_vbe_scroll): Likewise.
24654 (grub_video_vbe_swap_buffers): Likewise.
24655 (grub_video_vbe_create_render_target): Likewise.
24656 (grub_video_vbe_delete_render_target): Likewise.
24657 (grub_video_vbe_set_active_render_target): Likewise.
24658 (grub_vbe_set_pixel_rgb): Remove function.
24659 (grub_vbe_set_pixel_index): Likewise.
24660 (index_color_mode): Remove static variable.
24661 (active_mode): Likewise.
24662 (framebuffer): Likewise.
24663 (bytes_per_scan_line): Likewise.
24664 (grub_video_vbe_adapter): Added new static variable.
24665 (framebuffer): Likewise.
24666 (render_target): Likewise.
24667 (initial_mode): Likewise.
24668 (mode_in_use): Likewise.
24669 (mode_list): Likewise.
24670
24671 2006-03-10 Marco Gerards <marco@gnu.org>
24672
24673 * configure.ac (AC_INIT): Bumped to 1.93.
24674
24675 * DISTLIST: Added `include/grub/hfs.h'.
24676
24677 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
24678
24679 * boot/i386/pc/boot.S (general_error): Before looping, try INT
24680 18H, which might help the BIOS falling back to next boot media.
24681
24682 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
24683
24684 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
24685 Poe Chen <poe.poechen@gmail.com>.
24686
24687 2006-01-17 Marco Gerards <marco@gnu.org>
24688
24689 * include/grub/normal.h: Include <grub/script.h>.
24690 (grub_command_list): Removed struct.
24691 (grub_command_list_t): Removed type.
24692 (grub_menu_entry): Remove members `num' and `command_list'. Add
24693 members `commands' and `sourcecode'.
24694 * include/grub/script.h: Add inclusion guards.
24695 (grub_script_cmd_menuentry): New struct.
24696 (grub_script_execute_menuentry): New prototype.
24697 (grub_script_lexer_record_start): Likewise.
24698 (grub_script_lexer_record_stop): Likewise.
24699 * normal/execute.c (grub_script_execute_menuentry): New function.
24700 * normal/lexer.c (record, recording, recordpos, recordlen): New
24701 variables.
24702 (grub_script_lexer_record_start): New function.
24703 (grub_script_lexer_record_stop): Likewise.
24704 (recordchar): Likewise.
24705 (nextchar): Likewise.
24706 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
24707 2048 as the buffer size. Add the tokens `menuentry' and `@'.
24708 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
24709 (current_menu): New variable.
24710 (free_menu): Mainly rewritten.
24711 (grub_normal_menu_addentry): New function.
24712 (read_config_file): Rewritten.
24713 * normal/menu.c (run_menu_entry): Mainly rewritten.
24714 * normal/menu_entry.c (make_screen): Rewritten the code to insert
24715 the menu entry.
24716 (run): Mainly rewritten.
24717 * normal/parser.y (menu_entry): New variable.
24718 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
24719 (menuentry): New rule.
24720 (command): Add `menuentry'.
24721 (if_statement): Allow additional returns before `fi'.
24722 * normal/script.c (grub_script_create_cmdmenu): New function.
24723
24724 2006-01-03 Marco Gerards <marco@gnu.org>
24725
24726 * INSTALL: GNU Bison is required.
24727 * configure.ac: Rewritten the test to detect Bison.
24728 * Makefile.in (YACC): New variable. Reported by Xun Sun
24729 <xun.sun.cn@gmail.com>.
24730
24731 2006-01-03 Marco Gerards <marco@gnu.org>
24732
24733 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
24734 the HFS+ filesystem to filesystem blocks.
24735 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
24736 GCC warning is silenced.
24737
24738 2006-01-03 Marco Gerards <marco@gnu.org>
24739
24740 * partmap/apple.c (apple_partition_map_iterate): Convert the data
24741 read from disk from big endian to host byte order.
24742
24743 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
24744
24745 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
24746 documentation.
24747 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
24748 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
24749 embedded HFS+ filesystem.
24750 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
24751 (grub_hfs_sblock): Move from here...
24752 * include/grub/hfs.h: To here... New file.
24753 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
24754 documentation.
24755 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
24756 New macros.
24757 (grub_hfsplus_volheader): Change type of member `magic' to
24758 `grub_uint16_t'.
24759 (grub_hfsplus_data): Add new member `embedded_offset'.
24760 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
24761 returned block.
24762 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
24763 Calculate the offset.
24764
24765 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24766
24767 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
24768 Removed.
24769 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
24770
24771 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24772
24773 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
24774 ENV->NAME is NULL after allocating ENV->VALUE.
24775
24776 2005-12-25 Marco Gerards <marco@gnu.org>
24777
24778 * kern/env.c (grub_env_set): Rewritten the error handling code.
24779
24780 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24781
24782 * geninit.sh: Made more robust, and more portable.
24783
24784 2005-12-25 Marco Gerards <marco@gnu.org>
24785
24786 Add support for Apple HFS+ filesystems.
24787
24788 * fs/hfsplus.c: New file.
24789
24790 * DISTLIST: Added `fs/hfsplus.c'.
24791
24792 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
24793 (hfsplus_mod_SOURCES): New variable.
24794 (hfsplus_mod_CFLAGS): Likewise.
24795 (hfsplus_mod_LDFLAGS): Likewise.
24796 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
24797 (grub_setup_SOURCES): Likewise.
24798 (grub_mkdevicemap_SOURCES): Likewise.
24799 (grub_emu_SOURCES): Likewise.
24800 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24801
24802 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
24803
24804 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
24805
24806 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
24807
24808 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
24809 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
24810 include/grub/parser.h, include/grub/script.h, kern/parser.c,
24811 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
24812 normal/lexer.c, normal/parser.y, normal/script.c, and
24813 partmap/gpt.c.
24814 Removed kern/sparc64/cache.c.
24815
24816 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
24817 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
24818 grub_emu_init.c.
24819
24820 * configure.ac (AC_INIT): Bumped to 1.92.
24821
24822 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
24823
24824 * kern/err.c (grub_error_push): Added new function to support error
24825 stacks.
24826 (grub_error_pop): Likewise.
24827 (grub_error_stack_items): New local variable to support error stacks.
24828 (grub_error_stack_pos): Likewise.
24829 (grub_error_stack_assert): Likewise.
24830 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
24831 stack depth.
24832 (grub_print_error): Added support to print errors from error stack.
24833
24834 * include/grub/err.h (grub_error_push): Added function prototype.
24835 (grub_error_pop): Likewise.
24836
24837 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
24838
24839 * configure.ac: Accept `powerpc64' as host_cpu.
24840 (amd64): Rename to `biarch32'.
24841
24842 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
24843 non-cacheline-aligned addresses.
24844
24845 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
24846 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
24847 if `size' is non-zero.
24848
24849 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
24850
24851 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
24852 and `cd' to make sure the filename is not prefixed with a
24853 directory name.
24854 (pkgdata_MODULES): Add `gpt.mod'.
24855 (gpt_mod_SOURCES): New variable.
24856 (gpt_mod_CFLAGS): Likewise.
24857 (gpt_mod_LDFLAGS): Likewise.
24858
24859 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
24860
24861 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
24862 New macro.
24863
24864 * partmap/gpt.c: New file.
24865
24866 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
24867 GPT partition map is detected.
24868
24869 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
24870
24871 * commands/i386/pc/play.c: New file.
24872 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
24873 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
24874 macros.
24875
24876 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
24877
24878 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
24879 ((unused))' to silence gcc warning.
24880
24881 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
24882
24883 * configure.ac: Correct `AC_PROG_YACC' test.
24884
24885 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24886
24887 * util/powerpc/ieee1275/grub-install.in: Run the mount point
24888 check before installing files.
24889
24890 2005-11-22 Mike Small <smallm@panix.com>
24891
24892 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
24893 number regex so multidigit numbers are recognized correctly.
24894
24895 2005-11-22 Mike Small <smallm@panix.com>
24896
24897 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
24898 debugging message before attempting to claim memory.
24899 (grub_rescue_cmd_initrd): Add a claim debugging message and try
24900 multiple addresses in case of failure.
24901
24902 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24903
24904 * term/tparm.c (get_space): Remove empty `if' statement.
24905
24906 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
24907
24908 * kern/parser.c (check_varstate): Rename `state' to 's'.
24909
24910 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24911
24912 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
24913 variable definitions to the beginning of each function. Sort stack
24914 variables by size.
24915 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
24916 `buf' argument to `char *'.
24917
24918 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
24919
24920 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
24921 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
24922 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
24923 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24924 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24925 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24926 configfile.mod, search.mod, gzio.mod and test.mod.
24927 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24928 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24929 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24930 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24931 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24932 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24933 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24934 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24935 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24936 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24937 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24938 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24939 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24940 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24941 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24942 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24943 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24944 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24945 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24946 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24947 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24948 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24949 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
24950
24951 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
24952 `grep --include'.
24953 (pkgdata_MODULES): Add test.mod.
24954
24955 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
24956
24957 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
24958 appending to variables with "+=".
24959 (PModule): Use full pathname to generate *.lst filenames.
24960
24961 * Makefile.in: Fixed list rules moved from genmk.rb.
24962 (.DELETE_ON_ERROR): New special target.
24963 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
24964
24965 * conf/i386-pc.rmk: Include conf/common.mk.
24966 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
24967 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
24968 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
24969 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
24970 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
24971 configfile.mod, search.mod, gzio.mod and test.mod.
24972 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
24973 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
24974 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
24975 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
24976 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
24977 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
24978 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
24979 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
24980 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
24981 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
24982 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
24983 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
24984 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
24985 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
24986 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
24987 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
24988 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
24989 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
24990 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
24991 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
24992 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
24993 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
24994 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
24995 here...
24996 * conf/common.rmk: ... to here. New file.
24997
24998 * conf/common.mk: New file.
24999
25000 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
25001
25002 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
25003 (grub_script.tab.c): ... here.
25004
25005 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
25006 (grub_script.tab.c): ... here.
25007
25008 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
25009 (grub_script.tab.c): ... here.
25010
25011 * normal/command.c (grub_command_find): Fixed a memory leak of
25012 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
25013
25014 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
25015
25016 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
25017 "@" which marks the start of a comment on ARM.
25018 (VARIABLE): Likewise.
25019
25020 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
25021
25022 Add support for Linux/ADFS partition tables.
25023
25024 * partmap/acorn.c: New file.
25025
25026 * include/grub/acorn_filecore.h: Likewise.
25027
25028 * DISTLIST: Added `partmap/acorn.c' and
25029 `include/grub/acorn_filecore.h'.
25030
25031 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25032 `partmap/acorn.c'.
25033 (pkgdata_MODULES): Add `acorn.mod'.
25034 (acorn_mod_SOURCES): New variable.
25035 (acorn_mod_CFLAGS): Likewise.
25036
25037 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
25038 `partmap/acorn.c'.
25039 (pkgdata_MODULES): Add `acorn.mod'.
25040 (acorn_mod_SOURCES): New variable.
25041 (acorn_mod_CFLAGS): Likewise.
25042
25043 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
25044 (pkgdata_MODULES): Add `acorn.mod'.
25045 (acorn_mod_SOURCES): New variable.
25046 (acorn_mod_CFLAGS): Likewise.
25047 (acorn_mod_LDFLAGS): Likewise.
25048
25049 * include/types.h (grub_disk_addr_t): New typedef.
25050
25051 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
25052
25053 * geninit.sh: New file.
25054
25055 * geninitheader.sh: Likewise.
25056
25057 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
25058 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
25059 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
25060 * commands/configfile.c (grub_configfile_init)
25061 (grub_configfile_fini): Likewise.
25062 * commands/default.c (grub_default_init, grub_default_fini):
25063 Likewise.
25064 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
25065 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
25066 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
25067 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
25068 Likewise.
25069 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
25070 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
25071 Likewise.
25072 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
25073 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
25074 Likewise.
25075 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
25076 Likewise.
25077 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
25078 Likewise.
25079 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
25080 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
25081 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
25082 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
25083 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
25084 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
25085 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
25086 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
25087 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
25088 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
25089 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
25090 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
25091 * partmap/amiga.c (grub_amiga_partition_map_init)
25092 (grub_amiga_partition_map_fini): Likewise.
25093 * partmap/apple.c (grub_apple_partition_map_init)
25094 (grub_apple_partition_map_fini): Likewise.
25095 * partmap/pc.c (grub_pc_partition_map_init)
25096 (grub_pc_partition_map_fini): Likewise.
25097 * partmap/sun.c (grub_sun_partition_map_init,
25098 grub_sun_partition_map_fini): Likewise.
25099 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
25100 Likewise.
25101
25102 * util/grub-emu.c: Include <grub_modules_init.h>.
25103 (main): Don't initialize and de-initialize any modules directly,
25104 use `grub_init_all' and `grub_fini_all' instead.
25105
25106 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
25107 `grub_vesafb_mod_init'.
25108 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
25109 all users.
25110 * term/i386/pc/vga.c (grub_vga_init): Renamed to
25111 `grub_vga_mod_init'. Updated all users.
25112 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
25113
25114 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
25115 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
25116 rules.
25117
25118 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
25119 Generate a function to initialize the module in utilities.
25120 Updated all callers.
25121 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
25122 initialize the module in utilities. Updated all callers.
25123
25124 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
25125
25126 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
25127 escape sequence and a literal ^L to clear the screen.
25128
25129 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
25130 when returning from Open Firmware.
25131
25132 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
25133
25134 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
25135 (grub_ofconsole_height): Likewise.
25136 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
25137 manually insert a '\n'.
25138 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
25139 `grub_ofconsole_height'. Return early if these are already set.
25140
25141 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
25142
25143 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
25144 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
25145 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
25146 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
25147 and `normal/script.c'.
25148 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
25149 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
25150 (test_mod_SOURCES): New variable.
25151 (test_mod_CFLAGS): Likewise.
25152 (test_mod_LDFLAGS): Likewise.
25153 (pkgdata_MODULES): Add `test.mod'.
25154 (grub_script.tab.c): New rule.
25155 (grub_script.tab.h): Likewise.
25156
25157 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
25158
25159 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
25160 `commands/test.c', `normal/execute.c', `normal/lexer.c',
25161 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
25162 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
25163 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
25164 (test_mod_SOURCES): New variable.
25165 (test_mod_CFLAGS): Likewise.
25166 (pkgdata_MODULES): Add `test.mod'.
25167 (grub_script.tab.c): New rule.
25168 (grub_script.tab.h): Likewise.
25169
25170 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
25171
25172 Add initial scripting support.
25173
25174 * commands/test.c: New file.
25175 * include/grub/script.h: Likewise.
25176 * normal/execute.c: Likewise.
25177 * normal/function.c: Likewise.
25178 * normal/lexer.c: Likewise.
25179 * normal/parser.y: Likewise.
25180 * normal/script.c: Likewise.
25181
25182 * configure.ac: Add `AC_PROG_YACC' test.
25183
25184 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
25185 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
25186 `normal/function.c' and `normal/script.c'.
25187 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
25188 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
25189 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
25190 variables.
25191 (pkgdata_MODULES): Add `test.mod'.
25192 (grub_script.tab.c): New rule.
25193 (grub_script.tab.h): Likewise.
25194
25195 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
25196
25197 * include/grub/normal.h (grub_test_init): New prototype.
25198 (grub_test_fini): Likewise.
25199
25200 * normal/command.c: Include <grub/script.h>.
25201 (grub_command_execute): Rewritten.
25202
25203 * util/grub-emu.c (main): Call `grub_test_init' and
25204 `grub_test_fini'.
25205
25206 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
25207
25208 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
25209 to 0.
25210 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
25211 there are no pending characters.
25212
25213 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
25214
25215 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
25216 `grub_strndup' to drop device arguments. Replace unnecessary
25217 `grub_strndup' with `grub_strdup'.
25218
25219 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
25220
25221 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
25222 `debug' environment variable has been set.
25223
25224 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
25225
25226 * Makefile.in (install-local): Use $(DATA).
25227 (uninstall): Likewise.
25228 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
25229 (sbin_UTILITIES): ... to here.
25230 (sbin_SCRIPTS): New variable.
25231 (grub_install_SOURCES): New variable.
25232 * util/powerpc/ieee1275/grub-install.in: New file.
25233 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
25234 variable.
25235 (add_segments): Call `grub_util_get_path'.
25236
25237 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
25238
25239 From Timothy Baldwin:
25240 * commands/ls.c (grub_ls_list_files): Close FILE with
25241 grub_file_close.
25242 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
25243
25244 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
25245
25246 * include/grub/parser.h: New file.
25247
25248 * kern/parser.c: Likewise.
25249
25250 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
25251 (grub_setup_SOURCES): Likewise.
25252 (grub_probefs_SOURCES): Likewise.
25253 (grub_emu_SOURCES): Likewise.
25254 (kernel_img_HEADERS): Add `parser.h'.
25255
25256 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
25257 (grub_emu_SOURCES): Add `kern/parser.c'.
25258 (grubof_SOURCES): Likewise.
25259
25260 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
25261 (grubof_SOURCES): Add `kern/parser.c'.
25262
25263 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
25264
25265 * kern/misc.c (grub_split_cmdline): Removed function.
25266
25267 * kern/rescue.c: Include <grub/parser.h>.
25268 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
25269 of `grub_split_cmdline'.
25270
25271 * normal/command.c: Include <grub/parser.h>.
25272 (grub_command_execute): Use `grub_parser_split_cmdline' instead
25273 of `grub_split_cmdline'.
25274
25275 * normal/completion.c: Include <grub/parser.h>.
25276 (cmdline_state): New variable.
25277 (iterate_dir): End the filename with a quote depending on the
25278 command line state.
25279 (get_state): new function.
25280 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
25281 split the arguments and determine the current argument. When the
25282 argument string is not quoted, escape all spaces.
25283
25284 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
25285
25286 * normal/sparc64/setjmp.S: New file.
25287
25288 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
25289
25290 * include/grub/sparc64/libgcc.h: New file.
25291 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
25292 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
25293 normal/sparc64/setjmp.c.
25294
25295 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
25296
25297 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
25298 * kern/sparc64/cache.S: New file.
25299 * kern/sparc64/cache.c: Removed.
25300 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
25301 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
25302 -mtune=ultrasparc.
25303 (COMMON_LDFLAGS): Add -melf64_sparc.
25304 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
25305 (grubof_SOURCES): Use cache.S instead of cache.c.
25306 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
25307 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
25308 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
25309 commented though.
25310 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
25311 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
25312 (linux_mod_CFLAGS): Commented out.
25313 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
25314 out because module isn't built.
25315 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
25316 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
25317 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
25318 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
25319 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
25320 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
25321 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
25322 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
25323 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
25324 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
25325 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
25326 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
25327 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
25328 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
25329
25330 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
25331
25332 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
25333 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
25334 longer, because HFS should not be used on PC.
25335
25336 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
25337
25338 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
25339 consistently within the loop.
25340
25341 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
25342
25343 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
25344 directory can not be read.
25345
25346 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
25347
25348 * configure.ac (AC_INIT): Increase the version number to 1.91.
25349
25350 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
25351 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
25352 term/i386/pc/serial.c.
25353
25354 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
25355
25356 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
25357 file size must be permitted.
25358
25359 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
25360 between %ah and %al.
25361
25362 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
25363
25364 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
25365 grub_uint64_t.
25366 Call the hook with a NUL-terminated filename.
25367 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
25368 grub_cpu_to_be32.
25369
25370 * kern/term.c (cursor_state): New variable.
25371 (grub_term_set_current): Reset the cursor state on a new
25372 terminal.
25373 (grub_setcursor): Rewritten to use CURSOR_STATE.
25374 (grub_getcursor): New function.
25375
25376 * include/grub/term.h (grub_getcursor): New prototype.
25377
25378 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
25379 integers on ARM. Reported by Timothy Baldwin
25380 <T.E.Baldwin99@members.leeds.ac.uk>.
25381
25382 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
25383
25384 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
25385 allocated.
25386 (grub_sfs_dir): Likewise.
25387
25388 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
25389
25390 Add support for the SFS filesystem.
25391
25392 * fs/sfs.c: New file.
25393
25394 * DISTLIST: Added `fs/sfs.c'.
25395
25396 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
25397 (grub_probefs_SOURCES): Likewise.
25398 (grub_emu_SOURCES): Likewise.
25399 (pkgdata_MODULES): Add `sfs.mod'.
25400 (sfs_mod_SOURCES): New variable.
25401 (sfs_mod_CFLAGS): Likewise.
25402 (sfs_mod_LDFLAGS): Likewise.
25403
25404 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
25405 (pkgdata_MODULES): Add `sfs.mod'.
25406 (sfs_mod_SOURCES): New variable.
25407 (sfs_mod_CFLAGS): Likewise.
25408
25409 * util/grub-emu.c (main): Call `grub_sfs_init' and
25410 `grub_sfs_fini'.
25411
25412 * include/grub/fs.h (grub_sfs_init): New prototype.
25413 (grub_sfs_fini): Likewise.
25414
25415 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
25416
25417 Add support for the AFFS filesystem.
25418
25419 * fs/affs.c: New file.
25420
25421 * DISTLIST: Added `fs/affs.c'.
25422
25423 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
25424 (grub_probefs_SOURCES): Likewise.
25425 (grub_emu_SOURCES): Likewise.
25426 (pkgdata_MODULES): Add `affs.mod'.
25427 (affs_mod_SOURCES): New variable.
25428 (affs_mod_CFLAGS): Likewise.
25429 (affs_mod_LDFLAGS): Likewise.
25430
25431 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
25432 (pkgdata_MODULES): Add `affs.mod'.
25433 (affs_mod_SOURCES): New variable.
25434 (affs_mod_CFLAGS): Likewise.
25435
25436 * util/grub-emu.c (main): Call `grub_affs_init' and
25437 `grub_affs_fini'.
25438
25439 * include/grub/fs.h (grub_affs_init): New prototype.
25440 (grub_affs_fini): Likewise.
25441
25442 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
25443
25444 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
25445
25446 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
25447
25448 * configure.ac: Accept `x86_64' as host_cpu. In that case add
25449 `-m32' to CFLAGS.
25450
25451 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
25452 linking.
25453
25454 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
25455 (COMMON_LDFLAGS): New variable.
25456 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
25457 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
25458 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
25459 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
25460 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
25461 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
25462 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
25463 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
25464 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
25465 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
25466 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
25467 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
25468 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
25469 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
25470 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
25471 variables.
25472 (normal_mod_ASFLAGS): Add `-m32'.
25473
25474 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
25475 (grub_host_size_t, grub_host_ssize_t): New types.
25476 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
25477 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
25478 `GRUB_HOST_SIZEOF_VOID_P'.
25479
25480 * include/grub/kernel.h (struct grub_module_header): Type of
25481 member offset changed to `grub_host_off_t'. Type of member size
25482 changed to `grub_host_size_t'.
25483 (struct grub_module_info): Type of member offset changed to
25484 `grub_host_off_t'. Type of member size changed to
25485 `grub_host_size_t'.
25486
25487 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
25488
25489 Make GRUB's kernel compliant to Multiboot Specification.
25490
25491 * kern/i386/pc/startup.S (multiboot_header): New label.
25492 (multiboot_entry): Likewise.
25493 (multiboot_trampoline): Likewise.
25494
25495 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25496 Increased to 0x4A0.
25497
25498 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
25499 put parentheses after a question mark.
25500 [!GRUB_UTIL] (my_mod): New variable.
25501
25502 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
25503
25504 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
25505
25506 Adds support for the XFS filesystem. Btrees are not supported
25507 yet.
25508
25509 * fs/xfs.c: New file.
25510
25511 * DISTLIST: Added `fs/xfs.c'.
25512
25513 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
25514 (grub_probefs_SOURCES): Likewise.
25515 (grub_emu_SOURCES): Likewise.
25516 (pkgdata_MODULES): Add `xfs.mod'.
25517 (xfs_mod_SOURCES): New variable.
25518 (xfs_mod_CFLAGS): Likewise.
25519
25520 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
25521 (pkgdata_MODULES): Add `xfs.mod'.
25522 (xfs_mod_SOURCES): New variable.
25523 (xfs_mod_CFLAGS): Likewise.
25524
25525 * util/grub-emu.c (main): Call `grub_xfs_init' and
25526 `grub_xfs_fini'.
25527
25528 * include/grub/fs.h (grub_xfs_init): New prototype.
25529 (grub_xfs_fini): Likewise.
25530
25531
25532 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
25533
25534 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
25535 color modes, allow greater than 16 colors to be configured as
25536 a default palette.
25537
25538 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
25539
25540 * normal/completion.c (complete_arguments): Add the qualifier
25541 const into OPTIONS.
25542
25543 From Omniflux <omniflux+lists@omniflux.com>:
25544 * include/grub/terminfo.h: New file.
25545 * include/grub/tparm.h: Likewise.
25546 * include/grub/i386/pc/serial.h: Likewise.
25547 * term/terminfo.c: Likewise.
25548 * term/tparm.c: Likewise.
25549 * term/i386/pc/serial.c: Likewise.
25550 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
25551 serial.mod.
25552 (terminfo_mod_SOURCES): New variable.
25553 (terminfo_mod_CFLAGS): Likewise.
25554 (serial_mod_SOURCES): Likewise.
25555 (serial_mod_CFLAGS): Likewise.
25556
25557 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
25558
25559 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
25560 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
25561 and kern/powerpc/ieee1275/cmain.c, respectively.
25562
25563 * boot/powerpc/ieee1275/crt0.S: Moved to ...
25564 * kern/powerpc/ieee1275/crt0.S: ... here.
25565
25566 * boot/powerpc/ieee1275/cmain.c: Moved to ...
25567 * kern/powerpc/ieee1275/cmain.c: ... here.
25568
25569 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
25570 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
25571 instead of boot/powerpc/ieee1275/crt0.S and
25572 boot/powerpc/ieee1275/cmain.c, respectively.
25573
25574 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
25575 sectors. It was not used anyway.
25576
25577 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
25578
25579 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
25580 `unused parameter' warning.
25581
25582 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
25583
25584 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
25585 function.
25586 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
25587 getcharwidth.
25588
25589 2005-08-28 Marco Gerards <metgerards@student.han.nl>
25590
25591 * include/grub/normal.h (enum grub_completion_type): Added
25592 `GRUB_COMPLETION_TYPE_ARGUMENT'.
25593
25594 * normal/cmdline.c (print_completion): Handle
25595 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
25596 * normal/menu_entry.c (store_completion): Likewise.
25597
25598 * normal/completion.c (complete_arguments): New function.
25599 (grub_normal_do_completion): Call `complete_arguments' when the
25600 current words start with a dash.
25601
25602 2005-08-27 Marco Gerards <metgerards@student.han.nl>
25603
25604 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
25605 `gzio.mod' instead of `io.mod').
25606
25607 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
25608
25609 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
25610 (DISTDIRS): Added io and video.
25611 Rewrite the search routine to make an output consistently.
25612
25613 * DISTLIST: Added conf/sparc64-ieee1275.mk,
25614 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
25615 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
25616 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
25617 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
25618 util/powerpc/ieee1275/misc.c.
25619
25620 * include/grub/gzio.h: New file.
25621 * io/gzio.c: Likewise.
25622
25623 * kern/file.c (grub_file_close): Call grub_device_close only if
25624 FILE->DEVICE is not NULL.
25625
25626 * include/grub/mm.h [!NULL] (NULL): New macro.
25627
25628 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
25629
25630 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
25631 (pkgdata_MODULES): Added gzio.mod.
25632 (gzio_mod_SOURCES): New variable.
25633 (gzio_mod_CFLAGS): Likewise.
25634
25635 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
25636 (pkgdata_MODULES): Added gzio.mod.
25637 (gzio_mod_SOURCES): New variable.
25638 (gzio_mod_CFLAGS): Likewise.
25639
25640 * commands/cat.c: Include grub/gzio.h.
25641 (grub_cmd_cat): Use grub_gzfile_open instead of
25642 grub_file_open.
25643
25644 * commands/cmp.c: Include grub/gzio.h.
25645 (grub_cmd_cmp): Use grub_gzfile_open instead of
25646 grub_file_open.
25647
25648 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
25649 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
25650 grub_file_open.
25651 (grub_rescue_cmd_module): Likewise.
25652
25653 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
25654
25655 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
25656 kern/sparc64/ieee1275/init.c because it contains _start.
25657 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
25658
25659 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
25660
25661 * configure.ac: Add support for sparc64 host with ieee1275
25662 firmware.
25663 * configure: Generated from configure.ac.
25664 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
25665 instead of int.
25666 (grub_ofdisk_read): Likewise.
25667 (grub_ofdisk_open): Use %p to print pointer values, and cast the
25668 pointers as (void *) to remove a warning.
25669 (grub_ofdisk_close): Likewise.
25670 (grub_ofdisk_read): Likewise.
25671 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
25672 returns, so make it return void to remove a warning.
25673 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
25674 Corresponding prototype change.
25675 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
25676 values, and cast the pointers as (void *) to remove a warning.
25677 (grub_mm_dump): Likewise.
25678 * conf/sparc64-ieee1275.mk: New file.
25679 * conf/sparc64-ieee1275.rmk: Likewise.
25680 * include/grub/sparc64/setjmp.h: Likewise.
25681 * include/grub/sparc64/types.h: Likewise.
25682 * include/grub/sparc64/ieee1275/console.h: Likewise.
25683 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25684 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25685 * include/grub/sparc64/ieee1275/time.h: Likewise.
25686 * kern/sparc64/cache.c: Likewise.
25687 * kern/sparc64/dl.c: Likewise.
25688 * kern/sparc64/ieee1275/init.c: Likewise.
25689 * kern/sparc64/ieee1275/openfw.c: Likewise.
25690
25691 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
25692
25693 * util/console.c (grub_ncurses_putchar): If C is greater than
25694 0x7f, set C to a question mark.
25695 (grub_ncurses_getcharwidth): New function.
25696 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
25697 getcharwidth.
25698
25699 * normal/menu.c (print_entry): Made aware of Unicode. First,
25700 convert TITLE to UCS-4, and predict the cursor position by
25701 grub_getcharwidth.
25702
25703 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
25704 const to SRC.
25705 * kern/misc.c (grub_utf16_to_utf8): Likewise.
25706
25707 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
25708
25709 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
25710 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
25711 grub_strcat.
25712
25713 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
25714 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
25715 grub_strcpy and grub_strlen. Take it into account that a space
25716 character is inserted as a delimiter.
25717
25718 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
25719
25720 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
25721 invalid magic in the error.
25722
25723 * commands/search.c: New file.
25724
25725 * util/grub-emu.c (main): Call grub_search_init and
25726 grub_search_fini.
25727
25728 * kern/rescue.c (grub_rescue_print_disks): Removed.
25729 (grub_rescue_print_devices): New function.
25730 (grub_rescue_cmd_ls): Use grub_device_iterate with
25731 grub_rescue_print_devices instead of grub_disk_dev_iterate with
25732 grub_rescue_print_disks.
25733
25734 * kern/partition.c (grub_partition_iterate): Return the result of
25735 PARTMAP->ITERATE instead of GRUB_ERRNO.
25736
25737 * kern/device.c: Include grub/partition.h.
25738 (grub_device_iterate): New function.
25739
25740 * include/grub/partition.h (grub_partition_iterate): Return int
25741 instead of grub_err_t.
25742
25743 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
25744 prototype.
25745 [GRUB_UTIL] (grub_search_fini): Likewise.
25746
25747 * include/grub/device.h (grub_device_iterate): New prototype.
25748
25749 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
25750 commands/search.c.
25751 (pkgdata_MODULES): Added search.mod.
25752 (search_mod_SOURCES): New variable.
25753 (search_mod_CFLAGS): Likewise.
25754
25755 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
25756 (pkgdata_MODULES): Added search.mod.
25757 (search_mod_SOURCES): New variable.
25758 (search_mod_CFLAGS): Likewise.
25759
25760 * commands/ls.c (grub_ls_list_disks): Renamed to ...
25761 (grub_ls_list_devices): ... this, and use grub_device_iterate.
25762 All callers changed.
25763
25764 * DISTLIST: Added commands/search.c.
25765
25766 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
25767
25768 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
25769 conversion.
25770 (grub_getcharwidth): New function.
25771
25772 * kern/misc.c (grub_utf8_to_ucs4): New function.
25773
25774 * include/grub/term.h (struct grub_term): Added a new member
25775 "getcharwidth".
25776 (grub_getcharwidth): New prototype.
25777
25778 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
25779
25780 * term/i386/pc/console.c (map_char): New function. Segregated from
25781 grub_console_putchar.
25782 (grub_console_putchar): Use map_char.
25783 (grub_console_getcharwidth): New function.
25784 (grub_console_term): Specified grub_console_getcharwidth as
25785 getcharwidth.
25786
25787 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
25788 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
25789
25790 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
25791 GRUB_ERRNO.
25792 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
25793 on grub_strtoul completely.
25794 (write_char): Declare local variables in the beginning of the
25795 function.
25796 (grub_vesafb_getcharwidth): New function.
25797 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
25798 getcharwidth.
25799
25800 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
25801
25802 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
25803 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
25804 commands/i386/pc/vbetest.c.
25805
25806 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
25807 call grub_vbe_get_controller_info again, because the returned
25808 information is volatile.
25809 (grub_vbe_set_video_mode): Mostly rewritten.
25810 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
25811 grub_vbe_status_t correctly.
25812 (grub_vbe_get_video_mode_info): Likewise.
25813 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
25814 several if statements.
25815
25816 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
25817 * commands/i386/pc/vbeinfo.c: ... this.
25818
25819 * commands/i386/pc/vbe_test.c: Renamed to ...
25820 * commands/i386/pc/vbetest.c: ... this.
25821
25822 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
25823 ...
25824 (grub_cmd_vbeinfo): ... this. Save video modes before
25825 iterating. Skip a video mode, if it is not available, not enough
25826 information is given or it is monochrome. Show the memory
25827 model. Leave the interpretation of MODEVAR to grub_strtoul
25828 completely.
25829 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
25830 (GRUB_MOD_FINI): Likewise.
25831
25832 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
25833 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
25834 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
25835 duplicated grub_env_get. Leave the interpretation of MODEVAR to
25836 grub_strtoul completely.
25837 (real2pm): Removed.
25838 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
25839 (GRUB_MOD_FINI): Likewise.
25840
25841 * normal/misc.c: Include grub/mm.h.
25842
25843 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
25844 vbe_list_modes with vbetest.mod and vbeinfo.mod.
25845 (vbe_list_modes_mod_SOURCES): Removed.
25846 (vbe_list_modes_mod_CFLAGS): Likewise.
25847 (vbe_test_mod_SOURCES): Likewise.
25848 (vbe_test_mod_CFLAGS): Likewise.
25849 (vbeinfo_mod_SOURCES): New variable.
25850 (vbeinfo_mod_CFLAGS): Likewise.
25851 (vbetest_mod_SOURCES): Likewise.
25852 (vbetest_mod_CFLAGS): Likewise.
25853
25854 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
25855
25856 * normal/misc.c: New file.
25857
25858 * DISTLIST: Added normal/misc.c.
25859
25860 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
25861 DISK to HOOK. Call HOOK with DISK.
25862 * partmap/apple.c (apple_partition_map_iterate): Likewise.
25863 * partmap/pc.c (pc_partition_map_iterate): Likewise.
25864 * partmap/sun.c (sun_partition_map_iterate): Likewise.
25865
25866 * normal/menu_entry.c (struct screen): Added a new member
25867 "completion_shown".
25868 (completion_buffer): New global variable.
25869 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
25870 (store_completion): New function.
25871 (complete): Likewise.
25872 (clear_completions): Likewise.
25873 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
25874 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
25875 a tab, call complete.
25876
25877 * normal/completion.c (disk_dev): Removed.
25878 (print_simple_completion): Likewise.
25879 (print_partition_completion): Likewise.
25880 (print_func): New global variable.
25881 (add_completion): Do not take the arguments WHAT or PRINT any
25882 longer. Added a new argument TYPE. Instead of printing directly,
25883 call PRINT_FUNC if not NULL.
25884 All callers changed.
25885 (complete_device): Use a local variable DEV instead of
25886 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
25887 (grub_normal_do_completion): Take a new argument HOOK. Do not
25888 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
25889 empty string, return NULL instead.
25890 All callers changed.
25891
25892 * normal/cmdline.c (print_completion): New function.
25893
25894 * kern/partition.c (grub_partition_iterate): Add an argument DISK
25895 to HOOK.
25896 All callers changed.
25897
25898 * kern/disk.c (grub_print_partinfo): Removed.
25899
25900 * include/grub/partition.h (struct grub_partition_map): Add a new
25901 argument DISK into HOOK of ITERATE.
25902 (grub_partition_iterate): Add a new argument DISK to HOOK.
25903
25904 * include/grub/normal.h (enum grub_completion_type): New enum.
25905 (grub_completion_type_t): New type.
25906 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
25907 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
25908 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
25909 (GRUB_COMPLETION_TYPE_FILE): Likewise.
25910 (grub_normal_do_completion): Added a new argument HOOK.
25911 (grub_normal_print_device_info): New prototype.
25912
25913 * include/grub/disk.h (grub_print_partinfo): Removed.
25914
25915 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
25916 (normal_mod_SOURCES): Likewise.
25917 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25918 (normal_mod_SOURCES): Likewise.
25919
25920 * commands/ls.c (grub_ls_list_disks): Use
25921 grub_normal_print_device_info instead of grub_print_partinfo. Free
25922 PNAME.
25923 (grub_ls_list_files): Use grub_normal_print_device_info instead of
25924 duplicating the code.
25925
25926 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25927
25928 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
25929 follow GCS more precisely.
25930 * commands/i386/pc/vbe_test.c: Likewise.
25931 * include/grub/i386/pc/vbe.h: Likewise.
25932 * term/i386/pc/vesafb.c: Likewise.
25933 * video/i386/pc/vbe.c: Likewise.
25934
25935 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
25936
25937 * DISTLIST: Added term/i386/pc/vesafb.c
25938 DISTLIST: Added video/i386/pc/vbe.c
25939 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
25940 DISTLIST: Added commands/i386/pc/vbe_test.c.
25941 * commands/i386/pc/vbe_list_modes.c: New file.
25942 * commands/i386/pc/vbe_test.c: Likewise.
25943 * term/i386/pc/vesafb.c: Likewise.
25944 * video/i386/pc/vbe.c: Likewise.
25945 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
25946 (grub_vbe_probe) Added prototype.
25947 (grub_vbe_set_video_mode) Likewise.
25948 (grub_vbe_get_video_mode) Likewise.
25949 (grub_vbe_get_video_mode_info) Likewise.
25950 (grub_vbe_set_pixel_rgb) Likewise.
25951 (grub_vbe_set_pixel_index) Likewise.
25952 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
25953 (pkgdata_MODULES): Added vesafb.mod.
25954 (pkgdata_MODULES): Added vbe_list_modes.mod.
25955 (pkgdata_MODULES): Added vbe_test.mod.
25956 (vbe_mod_SOURCES): Added.
25957 (vbe_mod_CFLAGS): Likewise.
25958 (vesafb_mod_SOURCES): Likewise.
25959 (vesafb_mod_CFLAGS): Likewise.
25960 (vbe_list_modes_mod_SOURCES): Likewise.
25961 (vbe_list_modes_mod_CFLAGS): Likewise.
25962 (vbe_test_mod_SOURCES): Likewise.
25963 (vbe_test_mod_CFLAGS): Likewise.
25964
25965 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
25966
25967 * normal/command.c (grub_command_execute): If INTERACTIVE is
25968 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
25969 CMDLINE. Disable the pager if INTERACTIVE is true.
25970 All callers are changed.
25971
25972 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
25973 before reading a config file.
25974 * normal/main.c (read_config_file): Even if a command is not
25975 found, register it if it is within an entry.
25976
25977 * util/grub-emu.c: Include sys/types.h and unistd.h.
25978 (options): Added --hold.
25979 (struct arguments): Added a new member "hold".
25980 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
25981 missing.
25982 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
25983 cleared by a debugger, if it is not zero.
25984
25985 * include/grub/normal.h (grub_command_execute): Add an argument
25986 INTERACTIVE.
25987
25988 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
25989
25990 * DISTLIST: Added include/grub/i386/pc/vbe.h.
25991
25992 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
25993
25994 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
25995 program with another one, because the old one didn't detect a bug
25996 in gcc-3.4. Always use regparm 2, because the new test is still
25997 not enough for gcc-4.0. Someone must investigate a simple test
25998 case which detects a bug in gcc-4.0.
25999
26000 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
26001
26002 * DISTLIST: Added normal/completion.c.
26003
26004 * normal/completion.c: New file.
26005
26006 * term/i386/pc/console.c (grub_console_getwh): New function.
26007 (grub_console_term): Assign grub_console_getwh to getwh.
26008
26009 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
26010 function is defined in normal/completion.c as
26011 grub_normal_do_completion.
26012 (grub_cmdline_get): Use grub_normal_do_completion instead of
26013 grub_tab_complete.
26014
26015 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
26016 returns non-zero, otherwise return 0.
26017 (grub_partition_iterate): First, probe the partition map. Then,
26018 call ITERATE only for this partition map.
26019
26020 * kern/misc.c (grub_strncmp): Rewritten.
26021
26022 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
26023 returns non-zero. Otherwise return 0.
26024
26025 * include/grub/partition.h (grub_partition_map_iterate): Return
26026 int instead of void.
26027
26028 * include/grub/normal.h (grub_normal_do_completion): New prototype.
26029
26030 * include/grub/misc.h (grub_strncmp): Change the type of N to
26031 grub_size_t.
26032
26033 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
26034 of void.
26035
26036 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
26037 unsigned explicitly before comparing it with I.
26038
26039 * kern/main.c (grub_env_write_root): Add the attribute unused into
26040 VAR.
26041
26042 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
26043 normal/completion.c.
26044 (normal_mod_SOURCES): Likewise.
26045 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
26046 (normal_mod_SOURCES): Likewise.
26047
26048 * normal/command.c (grub_iterate_commands): If ITERATE returns
26049 non-zero, return one immediately.
26050
26051 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
26052
26053 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
26054 * kern/i386/pc/startup.S: Updated Global Descriptor table's
26055 descriptions.
26056 (grub_vbe_get_controller_info): New function.
26057 (grub_vbe_get_mode_info): Likewise.
26058 (grub_vbe_set_mode): Likewise.
26059 (grub_vbe_get_mode): Likewise.
26060 (grub_vbe_set_memory_window): Likewise.
26061 (grub_vbe_get_memory_window): Likewise.
26062 (grub_vbe_set_scanline_length): Likewise.
26063 (grub_vbe_get_scanline_length): Likewise.
26064 (grub_vbe_set_display_start): Likewise.
26065 (grub_vbe_get_display_start): Likewise.
26066 (grub_vbe_set_palette_data): Likewise.
26067 * include/grub/i386/pc/vbe.h: New file.
26068
26069 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
26070
26071 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
26072 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
26073 * DISTLIST: Likewise.
26074 * kern/ieee1275/of.c: Moved to ...
26075 * kern/ieee1275/ieee1275.c: ... here.
26076
26077 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
26078
26079 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
26080 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
26081 Pass 0 as `end' parameter to grub_strtoul().
26082
26083 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
26084
26085 * include/grub/powerpc/ieee1275/console.h: Do not include
26086 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
26087 ifdef.
26088 (grub_console_cur_color): Remove i386-specific prototype.
26089 (grub_console_real_putchar): Likewise.
26090 (grub_console_checkkey): Likewise.
26091 (grub_console_getkey): Likewise.
26092 (grub_console_getxy): Likewise.
26093 (grub_console_gotoxy): Likewise.
26094 (grub_console_cls): Likewise.
26095 (grub_console_setcursor): Likewise.
26096 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
26097 Include <grub/machine/console.h>.
26098 * term/ieee1275/ofconsole.c: Likewise.
26099
26100 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
26101
26102 * Makefile.in (LIBLZO): New variable.
26103
26104 * configure.ac: Check for LZO version 2.
26105
26106 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
26107 lzo/lzo1x.h instead of lzo1x.h.
26108
26109 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
26110 of -llzo.
26111
26112 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
26113 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
26114
26115 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
26116 copying the data from PARTITION to P.
26117
26118 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
26119
26120 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
26121 negative, unload the module.
26122
26123 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
26124 map is "pc_partition_map" but not "pc".
26125 (usage): Fix the description. The options are --boot-image and
26126 --core-image but not --boot-file or --core-file.
26127 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
26128 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
26129 DEFAULT_DIRECTORY.
26130
26131 * util/i386/pc/grub-install.in: Do not specify --boot-file or
26132 --core-file. Specify INSTALL_DEVICE as an argument.
26133
26134 * util/console.c: Include config.h.
26135 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
26136 [HAVE_NCURSES_H]: Include ncurses.h.
26137 [HAVE_CURSES_H]: Include curses.h.
26138 [!A_NORMAL] (A_NORMAL): Defined as zero.
26139 [!A_STANDOUT] (A_STANDOUT): Likewise.
26140
26141 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
26142 -lncurses.
26143 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
26144
26145 * configure.ac: Check for curses libraries and headers.
26146
26147 * Makefile.in (LIBCURSES): New variable.
26148
26149 * genmk.rb (Script::rule): Set the executable bits.
26150
26151 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
26152 name of the PC partition map is "pc_partition_map" but not "pc".
26153
26154 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
26155
26156 * util/i386/pc/grub-install.in (grub_probefs): New variable.
26157 (modules): Likewise.
26158 (usage): Added descriptions for --modules and --grub-probefs.
26159 Handle --modules and --grub-probefs. Save the arguments in MODULES
26160 and GRUB_PROBEFS, respectively.
26161 Auto-detect a filesystem module against GRUBDIR. If the result is
26162 empty and modules are not specified explicitly, abort the
26163 installation. Add the result to MODULES.
26164
26165 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
26166 disk/powerpc/ieee1275/ofdisk.c,
26167 include/grub/powerpc/ieee1275/init.h and
26168 term/powerpc/ieee1275/ofconsole.c.
26169 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
26170 term/ieee1275/ofconsole.c.
26171
26172 * include/grub/powerpc/ieee1275/console.h: Resurrected.
26173
26174 * COPYING: Upgraded to the latest version. Only the address of the
26175 FSF office has changed.
26176
26177 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
26178
26179 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
26180 kern/ieee1275.c with kern/ieee1275/of.c.
26181
26182 * kern/ieee1275.c: Moved to ...
26183 * kern/ieee1275/of.c: ... here.
26184
26185 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
26186
26187 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
26188 readability.
26189
26190 * config.guess: Updated to the latest version from gnulib.
26191 * config.sub: Likewise.
26192 * install.sh: Likewise.
26193 * mkinstalldirs: Likewise.
26194
26195 * include/grub/console.h: Removed. This file is arch-specific. Do
26196 not put this in include/grub.
26197
26198 * include/grub/i386/pc/console.h: Resurrected.
26199
26200 * util/console.c: Include grub/machine/console.h instead of
26201 grub/console.h.
26202 * util/grub-emu.c: Likewise.
26203
26204 2005-08-04 Marco Gerards <metgerards@student.han.nl>
26205
26206 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
26207 hardcoded value.
26208
26209 From Vincent Pelletier <subdino2004@yahoo.fr>
26210 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
26211 Redefined to use grub_getwh.
26212 (grub_term): New member named getwh.
26213 (grub_getwh): New prototype.
26214 * kern/term.c (grub_getwh): New function.
26215 * term/i386/pc/console.c (grub_console_getwh): New function.
26216 (grub_console_term): New member `getwh'.
26217 * term/i386/pc/vga.c (grub_vga_getwh): New function.
26218 (grub_vga_term): New member `getwh'.
26219 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
26220 grub_ssize_t.
26221 (grub_ofconsole_getw): New function.
26222 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
26223 (grub_ofconsole_term): New field named getwh and new initial
26224 value.
26225
26226 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
26227
26228 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
26229 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
26230 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
26231 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
26232 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
26233 of <grub/machine/ieee1275.h>.
26234 * commands/ieee1275/reboot.c: Likewise.
26235 * boot/powerpc/ieee1275/ieee1275.c: Move ...
26236 * kern/ieee1275.c: ... to here. All users updated. Change all
26237 parameter structs to use new type `grub_ieee1275_cell_t'.
26238 * term/powerpc/ieee1275/ofconsole.c: Move ...
26239 * term/ieee1275/ofconsole.c: ... to here. All users updated.
26240 * disk/powerpc/ieee1275/ofdisk.c: Move ...
26241 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
26242 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
26243 to return int.
26244 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
26245 Remove unused prototypes. All users updated.
26246 * include/grub/powerpc/ieee1275/console.h: Removed.
26247 * include/grub/powerpc/ieee1275/ieee1275.h: Define
26248 `grub_ieee1275_cell_t'.
26249 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
26250 Cast comparisons with -1 to the correct type.
26251 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
26252 type to match `grub_ieee1275_entry_fn'.
26253
26254 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
26255
26256 * DISTLIST: Added util/i386/pc/grub-probefs.c.
26257
26258 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
26259 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
26260 partmap/sun.c.
26261 (grub_probefs_SOURCES): New variable.
26262
26263 * util/i386/pc/grub-probefs.c: New file.
26264
26265 * util/i386/pc/grub-setup.c (main): Call
26266 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
26267 grub_hfs_init and grub_jfs_init to initialize the system. Call
26268 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
26269 grub_pc_partition_map_fini to finish the system.
26270
26271 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
26272
26273 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
26274 function.
26275 (grub_multiboot_load_elf32): Likewise.
26276 (grub_multiboot_is_elf64): Likewise.
26277 (grub_multiboot_load_elf64): Likewise.
26278 (grub_multiboot_load_elf): Likewise.
26279 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
26280 an ELF32 or ELF64 file.
26281 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
26282
26283 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
26284 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
26285 NULL before calling FS->LABEL.
26286 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
26287 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
26288 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
26289 before calling FS->LABEL.
26290
26291 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
26292
26293 * util/i386/pc/grub-install.in (datadir): New variable.
26294 (libdir): Removed.
26295 (pkgdatadir): New variable.
26296 (pkglibdir): Removed.
26297
26298 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
26299
26300 * DISTLIST: Added util/i386/pc/grub-install.in.
26301
26302 * util/i386/pc/grub-install.in: New file.
26303
26304 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
26305 (grub_install_SOURCES): Likewise.
26306
26307 * genmk.rb: Added support for scripts.
26308 (Script): New class.
26309 (scripts): New variable.
26310
26311 * Makefile.in (install-local): Install sbin_SCRIPTS by
26312 INSTALL_SCRIPT.
26313 (uninstall): Remove sbin_SCRIPTS.
26314
26315 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
26316 device, try to get a GRUB device by
26317 grub_util_biosdisk_get_grub_dev.
26318 Free DEST_DEV.
26319
26320 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
26321 description for --device-map.
26322
26323 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
26324
26325 Change the semantics of variable hooks. They now return strings
26326 instead of error values.
26327
26328 * util/i386/pc/grub-setup.c: Include grub/env.h.
26329 (setup): Use grub_device_set_root instead of grub_env_set.
26330
26331 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
26332 grub_env_get instead of grub_device_set_root and
26333 grub_device_get_root, respectively.
26334
26335 * kern/main.c (grub_env_write_root): New function.
26336 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
26337 grub_env_set instead of grub_device_set_root.
26338
26339 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
26340 many variables.
26341 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
26342 rather than calling ENV->WRITE_HOOK afterwards.
26343 (grub_env_get): Return the result of ENV->READ_HOOK rather than
26344 passing a pointer of a pointer.
26345 (grub_register_variable_hook): Change the types of "read_hook" and
26346 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
26347 respectively.
26348 Allocate the default empty string on the heap, because this string
26349 may be freed later.
26350
26351 * kern/device.c: Include grub/env.h.
26352 (grub_device_set_root): Removed.
26353 (grub_device_get_root): Likewise.
26354 (grub_device_open): Use grub_env_get instead of
26355 grub_device_get_root.
26356
26357 * include/grub/env.h (grub_env_read_hook_t): New type.
26358 (grub_env_write_hook_t): Likewise.
26359 (grub_env_var): Change the types of "read_hook" and "write_hook"
26360 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
26361 (grub_register_variable_hook): Likewise.
26362
26363 * include/grub/device.h (grub_device_set_root): Removed.
26364 (grub_device_set_root): Likewise.
26365
26366 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
26367 make sure that DIRNAME terminates with '/', so that
26368 grub_fat_find_dir will fail if PATH is not a directory.
26369
26370 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
26371 from DIRNAME.
26372 Use the qualifier auto for print_files and print_files_long.
26373 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
26374 as a regular file.
26375 Put a newline only if there is no error.
26376 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
26377 used.
26378
26379 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
26380
26381 * kern/partition.c (grub_partition_probe): Initialize PART to
26382 NULL. Otherwise, when no partition map is registered, this returns
26383 a garbage.
26384
26385 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
26386
26387 * partmap/apple.c (apple_partition_map_iterate): Check if POS
26388 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
26389 valid.
26390
26391 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
26392
26393 * commands/ls.c (grub_ls_list_disks): Print the filesystem
26394 information on each device, if it does not have partitions. Print
26395 "Device" instead of "Disk", because this function is not specific
26396 to disk devices.
26397
26398 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
26399 static to ensure that it is put on the memory rather than a
26400 register.
26401
26402 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
26403
26404 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
26405 (grub_cat_init): Likewise.
26406 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
26407 (options): Likewise.
26408 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
26409 (grub_configfile_init): Likewise.
26410 * font/manager.c (GRUB_MOD_INIT): Likewise.
26411 * commands/help.c (GRUB_MOD_INIT): Likewise.
26412 (grub_help_init): Likewise.
26413 * normal/command.c (grub_command_init): Likewise.
26414 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
26415 * disk/loopback.c (grub_loop_init): Likewise.
26416 (GRUB_MOD_INIT): Likewise.
26417 * commands/ls.c (grub_ls_init): Likewise.
26418 (GRUB_MOD_INIT): Likewise.
26419 (options): Likewise.
26420 * commands/boot.c (grub_boot_init): Likewise.
26421 (GRUB_MOD_INIT): Likewise.
26422 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
26423 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
26424 (GRUB_MOD_INIT): Likewise.
26425 * commands/cmp.c (grub_cmp_init): Likewise.
26426 (GRUB_MOD_INIT): Likewise.
26427
26428 * normal/arg.c: Use <> instead of "" to include header files.
26429 (SHORT_ARG_HELP): New macro.
26430 (SHORT_ARG_USAGE): Likewise.
26431 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
26432 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
26433 descriptions.
26434 (find_short): Check if C is 'h' or 'u' explicitly.
26435 (grub_arg_show_help): Use space characters instead of tabs. Treat
26436 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
26437 are shown with --help and --usage only if they are not used for
26438 the command itself.
26439 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
26440 'h' and 'u'.
26441
26442 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
26443 const into "longarg". Change the type of "shortarg" to int.
26444
26445 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
26446
26447 * boot/i386/pc/boot.S (boot_drive_check): New label.
26448
26449 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
26450 macro.
26451
26452 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
26453 which do not pass a boot drive correctly. Copied from GRUB Legacy.
26454
26455 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
26456
26457 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
26458 When turning off Gate A20, skip the check and return immediately,
26459 because this is not fatal usually.
26460
26461 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
26462
26463 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
26464 be 0x7C00 instead of 0x8000.
26465
26466 * boot/i386/pc/pxeboot.S: Rewritten.
26467
26468 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
26469 EXT_C.
26470 (gate_a20_check_state): Read a byte from 0x108000. Invert the
26471 result.
26472
26473 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
26474
26475 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
26476 robustness. This routine now supports a BIOS call and System
26477 Control Port A to modify the gate A20.
26478
26479 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
26480 Increased to 0x440.
26481
26482 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
26483
26484 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
26485 device path and resulting ihandle.
26486 (grub_ofdisk_close): dprintf the ihandle being closed.
26487 (grub_ofdisk_read): dprintf function parameters.
26488 * kern/mm.c (grub_mm_init_region): Likewise.
26489 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
26490 (grub_linux_boot): dprintf the Linux entry point, initrd address and
26491 size, and boot arguments.
26492 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
26493 before loading into memory.
26494 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
26495 before loading into memory.
26496
26497 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
26498
26499 * kern/mm.c: Added much documentation.
26500 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
26501 8, set to 5 instead of 8.
26502
26503 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
26504
26505 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
26506
26507 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
26508 (grub_mkdevicemap_SOURCES): New variable.
26509
26510 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
26511 lib/device.c of GRUB Legacy.
26512
26513 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
26514
26515 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
26516 instead of PATH is NULL.
26517
26518 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
26519
26520 * commands/cmp.c (BUFFER_SIZE): New macro.
26521 (grub_cmd_cmp): Close the right file at the right time. Compare
26522 only data just read. Don't report files of different size as
26523 identical. Dynamically allocate buffers. Move variable
26524 declarations at the beginning of function.
26525
26526 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
26527
26528 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
26529 reverse.
26530
26531 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
26532
26533 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
26534 when backspace is pressed at beginning of line.
26535
26536 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
26537
26538 * DISTLIST: Added genfslist.sh.
26539
26540 * normal/main.c (fs_module_list): New variable.
26541 (autoload_fs_module): New function.
26542 (read_fs_list): Likewise.
26543 (grub_normal_execute): Call read_fs_list.
26544
26545 * kern/fs.c (grub_fs_autoload_hook): New variable.
26546 (grub_fs_probe): Added support for auto-loading.
26547
26548 * include/grub/normal.h (struct grub_fs_module_list): New struct.
26549 (grub_fs_module_list_t): New type.
26550
26551 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
26552 (grub_fs_autoload_hook): New prototype.
26553
26554 * genfslist.sh: New file.
26555
26556 * genmk.rb: Added a rule to generate a filesystem list.
26557
26558 2005-06-30 Marco Gerards <metgerards@student.han.nl>
26559
26560 * configure.ac: Fix the test for cross-compiling.
26561
26562 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
26563 define GRUB_UTIL anymore.
26564
26565 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
26566 so this function works on other systems than just big endian.
26567 (load_modules): Likewise.
26568 (add_segments): Likewise.
26569
26570 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
26571
26572 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
26573 contains `l' modifier, get a long from va_arg().
26574
26575 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
26576
26577 * kern/mm.c (grub_free): If the next free block which is being
26578 merged is the first free block, set the first block to the block
26579 being freed.
26580 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
26581
26582 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
26583
26584 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
26585 `grub_ieee1275_chosen'.
26586
26587 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
26588
26589 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
26590 (grub_ieee1275_chosen): New variable.
26591 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
26592 `chosen'.
26593 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
26594 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
26595 Rename first argument to `phandle' for consistency.
26596 (grub_ieee1275_get_property_length): Likewise.
26597 (grub_ieee1275_next_property): Likewise. Change type of first argument
26598 to grub_ieee1275_phandle_t.
26599 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
26600 Move export next to declaration.
26601 (grub_ieee1275_chosen): New variable.
26602 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
26603 Correct cosmetic typo.
26604 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
26605 `grub_ieee1275_chosen'.
26606 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
26607 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
26608 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
26609 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
26610 `grub_ieee1275_chosen'.
26611
26612 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
26613
26614 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
26615 /chosen/bootargs.
26616 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
26617 /chosen/bootargs as "variable=value" pairs.
26618
26619 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
26620
26621 * include/grub/misc.h (grub_dprintf): New macro.
26622 (grub_real_dprintf): New prototype.
26623 (grub_strword): Likewise.
26624 (grub_iswordseparator): Likewise.
26625 * kern/misc.c (grub_real_dprintf): New function.
26626 (grub_strword): Likewise.
26627 (grub_iswordseparator): Likewise.
26628
26629 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
26630
26631 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
26632 (roundup): Remove macro.
26633 (grub_ieee1275_flags): Make static.
26634 (grub_ieee1275_realmode): Remove.
26635 (grub_ieee1275_test_flag): New function.
26636 (grub_ieee1275_set_flag): Likewise.
26637 (find_options): Rename to `grub_ieee1275_find_options'; update
26638 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
26639 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
26640 (cmain): New prototype.
26641 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
26642 `grub_ieee1275_flags' directly.
26643 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
26644 machine/biosdisk.h.
26645 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
26646 Don't include grub/machine/init.h.
26647 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
26648 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
26649 Remove prototype.
26650 (grub_ieee1275_realmode): Likewise.
26651 (grub_ieee1275_flag): New enum.
26652 (grub_ieee1275_test_flag): New prototype.
26653 (grub_ieee1275_set_flag): New prototype.
26654 * include/grub/powerpc/ieee1275/init.h: Remove file.
26655 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
26656 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
26657 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
26658 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
26659 comment.
26660 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
26661 `grub_ieee1275_test_flag'.
26662 (grub_ieee1275_encode_devname): Likewise.
26663
26664 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
26665
26666 * include/grub/powerpc/ieee1275/ieee1275.h
26667 (grub_ieee1275_encode_devname): New prototype.
26668 (grub_ieee1275_get_filename): Likewise.
26669 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
26670 function.
26671 (grub_set_prefix): Likewise.
26672 (grub_machine_init): Call grub_set_prefix.
26673 * kern/powerpc/ieee1275/openfw.c: Fix typos.
26674 (grub_parse_type): New enum.
26675 (grub_ieee1275_get_devargs): New function.
26676 (grub_ieee1275_get_devname): Likewise.
26677 (grub_ieee1275_parse_args): Likewise.
26678 (grub_ieee1275_get_filename): Likewise.
26679 (grub_ieee1275_encode_devname): Likewise.
26680
26681 2005-03-30 Marco Gerards <metgerards@student.han.nl>
26682
26683 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
26684 `grub_loader_unset'.
26685
26686 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
26687
26688 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
26689 instead of grub_ieee1275_interpret.
26690 (grub_halt_init): New function.
26691 (grub_halt_fini): Likewise.
26692 (GRUB_MOD_INIT): Correct message grammar.
26693 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
26694 instead of grub_ieee1275_interpret.
26695 (grub_reboot_init): New function.
26696 (grub_reboot_fini): Likewise.
26697 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
26698 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
26699 util/i386/pc/misc.c with commands/ieee1275/halt.c,
26700 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
26701 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
26702 function.
26703 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
26704 Add prototype.
26705 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
26706 prototype.
26707 (grub_halt): Likewise.
26708 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
26709 (cmain): Remove __attribute__((unused)).
26710 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
26711 (grub_heap_len): Likewise.
26712 (grub_machine_fini): New function.
26713 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
26714 (grub_halt): Likewise.
26715 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
26716 function.
26717 * util/powerpc/ieee1275/misc.c: New file.
26718
26719 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
26720
26721 * DISTLIST: New file.
26722 * gendistlist.sh: Likewise.
26723
26724 * Makefile.in (COMMON_DISTFILES): Removed.
26725 (BOOT_DISTFILES): Likewise.
26726 (CONF_DISTFILES): Likewise.
26727 (DISK_DISTFILES): Likewise.
26728 (FS_DISTFILES): Likewise.
26729 (INCLUDE_DISTFILES): Likewise.
26730 (KERN_DISTFILES): Likewise.
26731 (LOADER_DISTFILES): Likewise.
26732 (TERM_DISTFILES): Likewise.
26733 (UTIL_DISTFILES): Likewise.
26734 (DISTFILES): Likewise.
26735 (uninstall): Uninstall files in $(pkgdata_DATA).
26736 (DISTLIST): New target.
26737 (distdir): Use the contents of the file DISTLIST to get a list of
26738 distributed files.
26739
26740 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
26741
26742 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
26743 descriptor. This is ported from GRUB Legacy.
26744
26745 * gencmdlist.sh: Added an extra semicolon to make it work with
26746 old sed versions. Reported by Robert Bihlmeyer
26747 <robbe@orcus.priv.at>.
26748
26749 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
26750
26751 Automatic loading of commands is supported.
26752
26753 * normal/main.c (read_command_list): New function.
26754 (grub_normal_execute): Call read_command_list.
26755
26756 * normal/command.c (grub_register_command): Return zero or CMD.
26757 Allocate CMD->NAME from the heap.
26758 Initialize CMD->MODULE_NAME to zero.
26759 Find the same name as well. If the same command is found and it is
26760 a dummy command, overwrite members. If it is not a dummy command,
26761 return zero.
26762 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
26763 (grub_command_find): If a dummy command is found, load a module
26764 and retry to find a command only once.
26765
26766 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
26767 make sure that each command is loaded.
26768
26769 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
26770 macro.
26771 (struct grub_command): Remove const from the member `name'.
26772 Add a new member `module_name'.
26773 (grub_register_command): Return grub_command_t.
26774
26775 * commands/help.c (grub_cmd_help): Call grub_command_find to make
26776 sure that each command is loaded.
26777
26778 * genmk.rb (PModule::rule): Specify a module name without the
26779 suffix ".mod" to gencmdlist.sh.
26780
26781 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
26782
26783 * gencmdlist.sh: New file.
26784
26785 * genmk.rb (PModule::rule): Generate a rule for a command list.
26786 Clean command.lst.
26787 Generate command.lst from $(COMMANDFILES).
26788
26789 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
26790 (DATA): Added $(pkgdata_DATA).
26791 (install-local): Install files in $(pkgdata_DATA).
26792
26793 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
26794
26795 * term/i386/pc/vga.c (debug_command): Removed.
26796 (GRUB_MOD_INIT): Do not register the command "debug".
26797
26798 From Hollis Blanchard:
26799 * commands/configfile.c: New file.
26800 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26801 commands/configfile.c.
26802 (pkgdata_MODULES): Added configfile.mod.
26803 (configfile_mod_SOURCES): New variable.
26804 (configfile_mod_CFLAGS): Likewise.
26805 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
26806 commands/configfile.c.
26807 (pkgdata_MODULES): Added configfile.mod.
26808 (configfile_mod_SOURCES): New variable.
26809 (configfile_mod_CFLAGS): Likewise.
26810 * util/grub-emu.c (main): Call grub_configfile_init and
26811 grub_configfile_fini.
26812 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
26813 prototype.
26814 [GRUB_UTIL] (grub_configfile_fini): Likewise.
26815
26816 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
26817
26818 * normal/arg.c (grub_arg_show_help): Do not show the bug report
26819 address.
26820
26821 * commands/help.c (grub_cmd_help): Do not print newlines after
26822 the last command in print_command_help.
26823
26824 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
26825
26826 * commands/default.h: New file.
26827 * commands/timeout.h: Likewise.
26828 * normal/context.c: Likewise.
26829
26830 * util/misc.c: Do not include sys/times.h.
26831 Include sys/time.h and grub/machine/time.h.
26832 (grub_get_rtc): Rewritten with gettimeofday.
26833
26834 * util/grub-emu.c (main): Call grub_default_init and
26835 grub_timeout_init before grub_normal_init, and call
26836 grub_timeout_fini and grub_default_fini after grub_main.
26837
26838 * util/console.c (grub_ncurses_checkkey): Return the read
26839 character or -1.
26840
26841 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
26842 timeouts.
26843
26844 * normal/main.c (read_config_file): Push MENU. If this fails,
26845 print an error and wait for a user input.
26846 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
26847 If a menu is empty or an error occurs, pop MENU.
26848 (grub_normal_execute): Pop and free MENU after grub_menu_run
26849 returns.
26850
26851 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
26852
26853 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
26854 include time.h.
26855 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
26856 without GRUB_UTIL.
26857 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
26858 time.h.
26859 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
26860 without GRUB_UTIL.
26861
26862 * include/grub/normal.h (struct grub_menu_list): New struct.
26863 (grub_menu_list_t): New type.
26864 (struct grub_context): New struct.
26865 (grub_context_t): New type.
26866 (grub_register_command): Got rid of EXPORT_FUNC.
26867 (grub_unregister_command): Likewise.
26868 (grub_context_get): New prototype.
26869 (grub_context_get_current_menu): Likewise.
26870 (grub_context_push_menu): Likewise.
26871 (grub_context_pop_menu): Likewise.
26872 [GRUB_UTIL] (grub_default_init): Likewise.
26873 [GRUB_UTIL] (grub_default_fini): Likewise.
26874 [GRUB_UTIL] (grub_timeout_init): Likewise.
26875 [GRUB_UTIL] (grub_timeout_fini): Likewise.
26876
26877 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
26878 commands/timeout.c and normal/context.c.
26879 (pkgdata_MODULES): Added default.mod and timeout.mod.
26880 (normal_mod_SOURCES): Added normal/context.c.
26881 (default_mod_SOURCES): New variable.
26882 (default_mod_CFLAGS): Likewise.
26883 (timeout_mod_SOURCES): Likewise.
26884 (timeout_mod_CFLAGS): Likewise.
26885 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
26886 conf/i386-pc.rmk.
26887 (pkgdata_MODULES): Added default.mod and timeout.mod.
26888 (normal_mod_SOURCES): Added normal/context.c.
26889 (default_mod_SOURCES): New variable.
26890 (default_mod_CFLAGS): Likewise.
26891 (timeout_mod_SOURCES): Likewise.
26892 (timeout_mod_CFLAGS): Likewise.
26893
26894 * Makefile.in (all-local): Added $(MKFILES).
26895
26896 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
26897
26898 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
26899 (grub_emu_SOURCES): Likewise.
26900 (pkgdata_MODULES): Add `sun.mod'.
26901 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26902 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
26903 `partmap/sun.c'.
26904 (pkgdata_MODULES): Add `sun.mod'.
26905 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
26906 * include/grub/partition.h (grub_sun_partition_map_init): New
26907 prototype.
26908 (grub_sun_partition_map_fini): Likewise.
26909 * partmap/sun.c: New file.
26910 * util/grub-emu.c (main): Initialize and de-initialize the sun
26911 partitionmap support.
26912
26913 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
26914
26915 This implements an Emacs-like menu entry editor.
26916
26917 * normal/menu_entry.c: New file.
26918
26919 * util/console.c (grub_ncurses_putchar): Translate some Unicode
26920 characters to ASCII.
26921 (saved_char): New variable.
26922 (grub_ncurses_checkkey): Rewritten completely.
26923 (grub_ncurses_getkey): Likewise.
26924 (grub_ncurses_init): Call raw instead of cbreak.
26925
26926 * normal/menu.c (print_entry): Do not put a space.
26927 (init_page): Renamed to ...
26928 (grub_menu_init_page): ... this. All callers changed.
26929 (edit_menu_entry): Removed.
26930 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
26931
26932 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
26933
26934 * kern/misc.c (grub_vprintf): Call grub_refresh.
26935
26936 * normal/menu.c (DISP_LEFT): Renamed to ...
26937 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
26938 * normal/menu.c (DISP_UP): Renamed to ...
26939 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
26940 * normal/menu.c (DISP_RIGHT): Renamed to ...
26941 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
26942 * normal/menu.c (DISP_DOWN): Renamed to ...
26943 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
26944 * normal/menu.c (DISP_HLINE): Renamed to ...
26945 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
26946 * normal/menu.c (DISP_VLINE): Renamed to ...
26947 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
26948 * normal/menu.c (DISP_UL): Renamed to ...
26949 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
26950 * normal/menu.c (DISP_UR): Renamed to ...
26951 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
26952 * normal/menu.c (DISP_LL): Renamed to ...
26953 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
26954 * normal/menu.c (DISP_LR): Renamed to ...
26955 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
26956 * normal/menu.c (TERM_WIDTH): Renamed to ...
26957 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
26958 * normal/menu.c (TERM_HEIGHT): Renamed to ...
26959 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
26960 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
26961 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
26962 * normal/menu.c (TERM_MARGIN): Renamed to ...
26963 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
26964 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
26965 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
26966 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
26967 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
26968 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
26969 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
26970 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
26971 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
26972 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
26973 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
26974 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
26975 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
26976 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
26977 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
26978 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
26979 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
26980 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
26981 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
26982 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
26983 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
26984 All callers changed.
26985
26986 * include/grub/normal.h: New prototype.
26987
26988 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
26989 normal/menu_entry.c.
26990 (normal_mod_SOURCES): Likewise.
26991 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26992 (normal_mod_SOURCES): Likewise.
26993
26994 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
26995
26996 * include/grub/normal.h (grub_halt_init): New prototype.
26997 (grub_halt_fini): Likewise.
26998 (grub_reboot_init): Likewise.
26999 (grub_reboot_fini): Likewise.
27000
27001 * util/grub-emu.c: Include signal.h.
27002 (main_env): New global variable.
27003 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
27004 catch C-c.
27005 (grub_machine_fini): New function.
27006 (main): Call grub_halt_init and grub_reboot_init before
27007 grub_main, and grub_reboot_fini and grub_halt_fini after it.
27008 Call setjmp with MAIN_ENV to go back afterwards.
27009 Call grub_machine_fini right before return.
27010
27011 * include/grub/util/misc.h: Include setjmp.h.
27012 (main_env): New prototype.
27013
27014 * include/grub/kernel.h (grub_machine_fini): New prototype.
27015 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
27016 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
27017
27018 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
27019 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
27020 * term/i386/pc/console.c (grub_console_fini): Likewise.
27021
27022 * util/i386/pc/misc.c: New file.
27023
27024 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
27025 util/i386/pc/misc.c, commands/i386/pc/halt.c and
27026 commands/i386/pc/reboot.c.
27027
27028 2005-02-14 Guillem Jover <guillem@hadrons.org>
27029
27030 * include/grub/dl.h (grub_dl_check_header): New prototype.
27031 (grub_arch_dl_check_header): Change return type to grub_err_t,
27032 remove size parameter and export function. Update all callers.
27033 * kern/dl.c (grub_dl_check_header): New function.
27034 (grub_dl_load_core): Use `grub_dl_check_header' instead of
27035 `grub_arch_dl_check_header'. Check ELF type. Check if sections
27036 are inside the core.
27037 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
27038 independent ELF header checks.
27039 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
27040 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
27041 `grub_dl_check_header' instead of explicit checks. Check for the
27042 ELF type.
27043 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
27044 `grub_dl_check_header' instead of explicit checks. Remove arch
27045 specific ELF header checks.
27046
27047 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
27048 argument SIZE.
27049
27050 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
27051
27052 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
27053 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
27054
27055 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
27056
27057 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
27058 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
27059 (part_map_iterate): Clear `grub_errno' and return 0 if
27060 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
27061 * partmap/amiga.c (amiga_partition_map_iterate): Return
27062 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
27063 * partmap/apple.c (apple_partition_map_iterate): Likewise.
27064
27065 2005-02-01 Guillem Jover <guillem@hadrons.org>
27066
27067 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
27068 help info.
27069
27070 2005-01-31 Marco Gerards <metgerards@student.han.nl>
27071
27072 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
27073 Removed prototype.
27074 (grub_rescue_cmd_linux): New prototype.
27075 (grub_rescue_cmd_initrd): Likewise.
27076 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
27077 `bi_rec'.
27078 (grub_linux_release_mem): Release the memory for the initrd.
27079 (grub_load_linux): Renamed from this...
27080 (grub_rescue_cmd_linux): ...To this. Changed all callers.
27081 Changed `entry' not to be static. Loop over memory regions to
27082 find another one when the default fails.
27083 (grub_rescue_cmd_initrd): New function.
27084 (grub_linux_init): Remove function.
27085 (grub_linux_fini): Likewise.
27086 (GRUB_MOD_INIT): Register `initrd'.
27087 (GRUB_MOD_FINI): Unregister `initrd'.
27088 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
27089 Function removed.
27090 (grub_linux_normal_fini): Likewise.
27091 (GRUB_MOD_INIT): Register `initrd'.
27092 (GRUB_MOD_FINI): Unregister `initrd'.
27093
27094 2005-01-31 Marco Gerards <metgerards@student.han.nl>
27095
27096 * commands/help.c: New file.
27097 * normal/arg.c (show_help): Renamed to...
27098 (grub_arg_show_help): ... this.
27099 * commands/i386/pc/halt.c: New file.
27100 * commands/i386/pc/reboot.c: Likewise.
27101 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
27102 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
27103 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
27104 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
27105 variables.
27106 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
27107 `commands/help.c'.
27108 (pkgdata_MODULES): Add `help.mod'.
27109 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
27110 * grub/i386/pc/init.h (grub_reboot): New prototype.
27111 (grub_halt): Likewise.
27112 * include/grub/normal.h (grub_arg_show_help): New prototype.
27113 (grub_help_init): Likewise.
27114 (grub_help_fini): Likewise.
27115 * util/grub-emu.c (main): Initialize and deinitialize the help
27116 command.
27117
27118 * normal/cmdline.c (grub_cmdline_get): Doc fix.
27119
27120 * normal/command.c (grub_command_init): Fixed the description of
27121 the `set' and `unset' commands.
27122
27123 2005-01-31 Marco Gerards <metgerards@student.han.nl>
27124
27125 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
27126 function.
27127 * commands/ieee1275/halt.c: New file.
27128 * commands/ieee1275/reboot.c: Likewise.
27129 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
27130 `__attribute__ ((unused))'. Some GCS related fixed.
27131 (grub_suspend_init) [GRUB_UTIL]: Function removed.
27132 (grub_suspend_fini): Likewise.
27133 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
27134 and `halt.mod'.
27135 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
27136 (halt_mod_CFLAGS): New variables.
27137 * include/grub/powerpc/ieee1275/ieee1275.h
27138 (grub_ieee1275_interpret): New prototype.
27139
27140 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
27141
27142 * include/grub/misc.h (memmove): New prototype.
27143 (memcpy): Likewise.
27144
27145 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
27146
27147 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
27148 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
27149
27150 2005-01-22 Marco Gerards <metgerards@student.han.nl>
27151
27152 * kern/misc.c (grub_strndup): Function rewritten.
27153
27154 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
27155
27156 * normal/menu.c (TERM_WIDTH): Macro redefined.
27157 (TERM_TOP_BORDER_Y): Likewise.
27158 (draw_border): Replaced while-loop by a for-loop. Make the number
27159 of lines consistent with the number of lines displayed in
27160 print_entries. Added a margin below the rectangle.
27161 (print_entry): Make the entry fit in the rectangle.
27162 (print_entries): Display the scroll arrows next to the right
27163 border.
27164
27165 2005-01-21 Marco Gerards <metgerards@student.han.nl>
27166
27167 * fs/minix.c (grub_minix_find_file): Reserve more space for
27168 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
27169 `grub_strncpy' to copy `path' into it.
27170
27171 2005-01-21 Marco Gerards <metgerards@student.han.nl>
27172
27173 Add the loopback device, a device via which files can be accessed
27174 as devices.
27175
27176 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
27177 (pkgdata_MODULES): Add loopback.mod.
27178 (loopback_mod_SOURCES): New variable.
27179 (loopback_mod_CFLAGS): Likewise.
27180 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
27181 `disk/loopback.c'.
27182 (pkgdata_MODULES): Add loopback.mod.
27183 (loopback_mod_SOURCES): New variable.
27184 (loopback_mod_CFLAGS): Likewise.
27185 * disk/loopback.c: new file.
27186 * include/grub/normal.h (grub_loop_init): New prototype.
27187 (grub_loop_fini): New prototype.
27188 * util/grub-emu.c (main): Initialize and de-initialize loopback
27189 support.
27190 * include/grub/disk.h (grub_disk_dev_id): Add
27191 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
27192
27193 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
27194
27195 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
27196 function.
27197 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
27198 (suspend_mod_SOURCES): New variable.
27199 (suspend_mod_CFLAGS): Likewise.
27200 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
27201 New prototype.
27202 * commands/ieee1275/suspend.c: New file.
27203
27204 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
27205
27206 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
27207 ((unused))' to `__attribute__ ((used))'.
27208 (GRUB_MOD_FINI): Likewise.
27209 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
27210 * genmk.rb (PModule): Assign space to common symbols when linking
27211 modules.
27212
27213 2005-01-20 Marco Gerards <metgerards@student.han.nl>
27214
27215 * include/grub/mm.h (grub_mm_init_region): Change the type of the
27216 `unsigned' arguments to `grub_size_t'.
27217 (grub_malloc): Likewise.
27218 (grub_realloc): Likewise.
27219 (grub_memalign): Likewise.
27220 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
27221 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
27222 * util/misc.c (grub_malloc): Likewise.
27223 (grub_realloc): Likewise.
27224 * kern/mm.c (get_header_from_pointer): Change the casts to
27225 `unsigned' into a cast to `grub_size_t'.
27226
27227 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
27228 point to `currnode' when `currnode' is changed.
27229
27230 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
27231 Schottelius <nico-linux@schottelius.org>.
27232
27233 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
27234
27235 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
27236 (note_path): Remove variable.
27237 (GRUB_IEEE1275_NOTE_NAME): New macro.
27238 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
27239 (grub_ieee1275_note_hdr): New structure.
27240 (grub_ieee1275_note_desc): Likewise.
27241 (grub_ieee1275_note): Likewise.
27242 (load_note): Remove `dir' argument. All callers updated. Remove
27243 `note_img' and `path'. Do not load a file from `note_path'.
27244 Initialize a struct grub_ieee1275_note and write that to `out'.
27245 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
27246
27247 2005-01-05 Marco Gerards <metgerards@student.han.nl>
27248
27249 * util/misc.c (grub_util_read_image): Revert last change. It
27250 called `grub_util_read_at', which seeks from the beginning of the
27251 file.
27252
27253 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
27254
27255 * TODO: Add note about endianness in grub-mkimage.
27256 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
27257 section.
27258 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
27259 (grub_mkimage_SOURCES): New target.
27260 * include/grub/kernel.h (grub_start_addr): Remove variable.
27261 (grub_end_addr): Likewise.
27262 (grub_total_module_size): Likewise.
27263 (grub_kernel_image_size): Likewise.
27264 (GRUB_MODULE_MAGIC): New constant.
27265 (grub_module_info): New structure.
27266 (grub_arch_modules_addr): New prototype.
27267 (grub_get_end_addr): Remove prototype.
27268 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
27269 * include/grub/powerpc/ieee1275/kernel.h: New file.
27270 * include/grub/util/misc.h (grub_util_get_fp_size): New
27271 prototype.
27272 (grub_util_read_at): Likewise.
27273 (grub_util_write_image_at): Likewise.
27274 * kern/main.c (grub_get_end_addr): Remove function.
27275 (grub_load_modules): Call grub_arch_modules_addr instead of using
27276 grub_end_addr. Look for a grub_module_info struct in memory. Use
27277 the grub_module_info fields instead of calling grub_get_end_addr
27278 as loop conditions. Move grub_add_unused_region code here.
27279 (grub_add_unused_region): Remove function.
27280 * kern/i386/pc/init.c: Include grub/cache.h.
27281 (grub_machine_init): Remove call to grub_get_end_addr. Remove
27282 one call to add_mem_region.
27283 (grub_arch_modules_addr): New function.
27284 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
27285 (grub_total_module_size): Likewise.
27286 Include grub/machine/kernel.h.
27287 (grub_arch_modules_addr): New function.
27288 * util/grub-emu.c (grub_end_addr): Remove variable.
27289 (grub_total_module_size): Likewise.
27290 (grub_arch_modules_addr): New function.
27291 * util/misc.c: Include unistd.h.
27292 (grub_util_get_fp_size): New function.
27293 (grub_util_read_at): Likewise.
27294 (grub_util_write_image_at): Likewise.
27295 (grub_util_read_image): Call grub_util_read_at.
27296 (grub_util_write_image): Call grub_util_write_image_at.
27297 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
27298 additional memory in kernel_img for a struct grub_module_info.
27299 Fill in that grub_module_info.
27300 * util/powerpc/ieee1275/grub-mkimage.c: New file.
27301
27302 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
27303
27304 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
27305 New function.
27306 * include/grub/powerpc/ieee1275/ieee1275.h
27307 (grub_ieee1275_milliseconds): New prototype.
27308 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
27309 Change to 1000.
27310 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
27311 grub_ieee1275_milliseconds.
27312
27313 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
27314
27315 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
27316 variable.
27317 (find_options): New function.
27318 (cmain): Call find_options.
27319 * include/grub/powerpc/ieee1275/ieee1275.h
27320 (grub_ieee1275_realmode): New extern variable.
27321 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
27322 grub_map if grub_ieee1275_realmode is false.
27323
27324 2004-12-29 Marco Gerards <metgerards@student.han.nl>
27325
27326 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
27327 lines are inserted and make it work like readline. Reported by
27328 Vincent Pelletier <subdino2004@yahoo.fr>.
27329
27330 2004-12-28 Marco Gerards <metgerards@student.han.nl>
27331
27332 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
27333
27334 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
27335 `kern/powerpc/cache.S'.
27336
27337 2004-12-27 Marco Gerards <metgerards@student.han.nl>
27338
27339 * genmk.rb: Handle the `Program' class in the main loop. Written
27340 by Johan Rydberg <jrydberg@gnu.org>.
27341 (Program): New class.
27342 (programs): New variable.
27343 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
27344 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
27345 instead of "grub/kernel.h". Include <grub/machine/init.h>.
27346 (help_arch): Function removed.
27347 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
27348 `powerpc/libgcc.h' and `loader.h'.
27349 (pkgdata_PROGRAMS): New variable.
27350 (sbin_UTILITIES): Variable removed.
27351 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
27352 (grubof_SOURCES): Variable re-defined so it only includes the
27353 core functionality.
27354 (grubof_CFLAGS): Remove `-DGRUBOF'.
27355 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
27356 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
27357 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
27358 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
27359 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
27360 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
27361 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
27362 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
27363 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
27364 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
27365 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
27366 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
27367 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
27368 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
27369 (pc_mod_CFLAGS): New variables.
27370 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
27371 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
27372 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
27373 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
27374 Moved from here...
27375 * include/grub/i386/pc/init.h (grub_os_area_addr)
27376 (rub_os_area_size): ... to here.
27377 * include/grub/powerpc/ieee1275/ieee1275.h
27378 (grub_ieee1275_entry_fn): Export symbol.
27379 * include/grub/powerpc/ieee1275/init.h: New file.
27380 * include/grub/powerpc/libgcc.h: Likewise.
27381 * include/grub/cache.h: Likewise.
27382 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
27383 <hollis@penguinppc.org>.
27384 * kern/dl.c: Include <grub/cache.h>.
27385 (grub_dl_flush_cache): New function.
27386 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
27387 for this module.
27388 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
27389 (grub_console_init): Removed prototypes.
27390 (grub_machine_init): Don't initialize the modules anymore.
27391 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
27392 static.
27393 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
27394 Macro undef removed.
27395 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
27396 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
27397 relocation `R_PPC_REL32'. Return an error when the relocation is
27398 unknown.
27399 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
27400 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
27401 * util/misc.c (grub_arch_sync_caches): Likewise.
27402
27403 2004-12-19 Marco Gerards <metgerards@student.han.nl>
27404
27405 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
27406 `symlist.c', add `grubof_symlist.c'.
27407 (symlist.c): Variable removed.
27408 (grubof_HEADERS): Variable added.
27409 (grubof_symlist.c): New target.
27410 (kernel_syms.lst): Use `grubof_HEADERS' instead of
27411 `kernel_img_HEADERS'.
27412 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
27413 * kern/powerpc/dl.c: New file.
27414 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
27415 Function removed.
27416 (grub_arch_dl_relocate_symbols): Likewise.
27417 (grub_register_exported_symbols): Likewise.
27418
27419 2004-12-13 Marco Gerards <metgerards@student.han.nl>
27420
27421 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
27422 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
27423 to fail instead. Reported by Vincent Pelletier
27424 <subdino2004@yahoo.fr>.
27425
27426 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
27427 it is not allocated. Reported by Vincent Pelletier
27428 <subdino2004@yahoo.fr>.
27429
27430 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
27431 output so the output looks better.
27432
27433 2004-12-04 Marco Gerards <metgerards@student.han.nl>
27434
27435 Modulize the partition map support and add support for the amiga
27436 partition map.
27437
27438 * commands/ls.c: Include <grub/partition.h> instead of
27439 <grub/machine/partition.h>.
27440 * kern/disk.c: Likewise.
27441 * kern/rescue.c: Likewise.
27442 * loader/i386/pc/chainloader.c: Likewise.
27443 * normal/cmdline.c: Likewise.
27444 * kern/powerpc/ieee1275/init.c: Likewise.
27445 (grub_machine_init): Call `grub_pc_partition_map_init',
27446 `grub_amiga_partition_map_init' and
27447 `grub_apple_partition_map_init'.
27448 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
27449 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
27450 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
27451 `partition.h' and `pc_partition.h'.
27452 (grub_setup_SOURCES): Remove
27453 `disk/i386/pc/partition.c'. Add `kern/partition.c',
27454 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
27455 (grub_emu_SOURCES): Likewise.
27456 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
27457 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
27458 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
27459 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
27460 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
27461 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
27462 (grubof_SOURCES): Likewise.
27463 * disk/i386/pc/partition.c: File removed.
27464 * disk/powerpc/ieee1275/partition.c: Likewise.
27465 * include/grub/powerpc/ieee1275/partition.h: Likewise.
27466 * include/grub/i386/pc/partition.h: Likewise.
27467 * kern/partition.c: New file.
27468 * partmap/amiga.c: Likewise.
27469 * partmap/apple.c: Likewise.
27470 * partmap/pc.c: Likewise.
27471 * include/grub/partition.h: Likewise..
27472 * include/grub/pc_partition.h: Likewise.
27473 * util/grub-emu.c: Include <grub/partition.h> instead of
27474 <grub/machine/partition.h>.
27475 (main): Call `grub_pc_partition_map_init',
27476 `grub_amiga_partition_map_init' and
27477 `grub_apple_partition_map_init' and deinitialize afterwards.
27478 * util/i386/pc/biosdisk.c: Include `#include
27479 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
27480 `<grub/machine/partition.h>'.
27481 * util/i386/pc/grub-setup.c: Likewise.
27482 * util/i386/pc/biosdisk.c: Likewise.
27483 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
27484 partition information in case of a PC partition.
27485 * util/i386/pc/grub-setup.c: Include `#include
27486 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
27487 `<grub/machine/partition.h>'.
27488 (setup): Only access the PC specific partition information in case
27489 of a PC partition.
27490
27491 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
27492
27493 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
27494 (grub_longjmp): Likewise.
27495 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
27496 20.
27497 * normal/powerpc/setjmp.S: New file.
27498 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
27499 `normal/powerpc/setjmp.S'.
27500 (grubof_CFLAGS): Add `-DGRUBOF'.
27501 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
27502 [GRUB_UTIL && !GRUBOF].
27503
27504 2004-11-16 Marco Gerards <metgerards@student.han.nl>
27505
27506 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
27507 property named `name'. Correctly handle the error returned by
27508 `grub_ieee1275_finddevice' if a device can not be opened.
27509
27510 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
27511
27512 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
27513 `actual' for negativity.
27514 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
27515 kern/fshelp.c.
27516
27517 2004-11-01 Marco Gerards <metgerards@student.han.nl>
27518
27519 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
27520 (PAGE_OFFSET): New macro.
27521 (CRTC_ADDR_PORT): Likewise.
27522 (CRTC_DATA_PORT): Likewise.
27523 (START_ADDR_HIGH_REGISTER): Likewise.
27524 (START_ADDR_LOW_REGISTER): Likewise.
27525 (GRAPHICS_ADDR_PORT): Likewise.
27526 (GRAPHICS_DATA_PORT): Likewise.
27527 (READ_MAP_REGISTER): Likewise.
27528 (INPUT_STATUS1_REGISTER): Likewise.
27529 (INPUT_STATUS1_VERTR_BIT): Likewise.
27530 (page): New variable.
27531 (wait_vretrace): New function.
27532 (set_read_map): Likewise.
27533 (set_start_address): Likewise.
27534 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
27535 the right page.
27536 (check_vga_mem): Take the page into account.
27537 (write_char): Likewise.
27538 (write_cursor): Likewise.
27539 (scroll_up): Likewise. Copy the page to the page that is not
27540 shown and switch between both pages.
27541 (grub_vga_putchar): Fix off by one error.
27542 (grub_vga_cls): Wait for the vertical retrace. Take the page into
27543 account.
27544
27545 2004-11-01 Marco Gerards <metgerards@student.han.nl>
27546
27547 Add support for iso9660 (including rockridge).
27548
27549 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
27550 (iso9660_mod_SOURCES): New variable.
27551 (iso9660_mod_CFLAGS): Likewise.
27552 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
27553 * include/grub/fs.h (grub_iso9660_init): New prototype.
27554 * util/grub-emu.c (main): Call `grub_iso9660_init'.
27555 * fs/iso9660.c: New file.
27556
27557 * include/grub/misc.h (grub_strncat): New prototype.
27558 * kern/misc.c (grub_strncat): New function.
27559
27560 * fs/hfs.c (grub_hfs_mount): Translate the error
27561 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
27562 * fs/jfs.c (grub_jfs_mount): Likewise.
27563 * fs/ufs.c (grub_ufs_mount): Likewise.
27564
27565 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
27566
27567 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
27568 which initialized BAT registers.
27569 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
27570 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
27571 Move from here...
27572 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
27573 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
27574 ... to here.
27575 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
27576 (grub_mapclaim): Likewise.
27577 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
27578 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
27579 hand.
27580
27581 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
27582
27583 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
27584 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
27585 -ffreestanding and -msoft-float.
27586
27587 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
27588
27589 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
27590 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
27591 set in grub_ieee1275_flags.
27592
27593 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
27594
27595 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
27596 prototype.
27597 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
27598 grub_console_init first.
27599 Change the memory range used for grub_ieee1275_claim and
27600 grub_mm_init_region.
27601 Print an error message if the claim fails.
27602 Include <grub/misc.h>.
27603
27604 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
27605
27606 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
27607 Call grub_children_iterate for device nodes of type `scsi',
27608 `ide', or `ata'.
27609 (grub_ofdisk_open): Remove manual device alias resolution.
27610 Fix memory leak when device cannot be opened.
27611 * include/grub/powerpc/ieee1275/ieee1275.h
27612 (grub_children_iterate): New prototype.
27613 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
27614 New function.
27615 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
27616 Return -1 if args.size was -1.
27617
27618 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
27619
27620 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
27621 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
27622 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
27623 Open Firmware's memory for it; claim memory from _start to _end.
27624 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
27625 (_end): New extern.
27626 (_start): Zero BSS from __bss_start to _end.
27627 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
27628 New extern.
27629 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
27630
27631 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
27632
27633 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
27634 -1 if args.base was -1.
27635
27636 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
27637
27638 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
27639 escape sequence instead of a literal ^L. Also call
27640 grub_ofconsole_gotoxy.
27641
27642 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
27643
27644 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
27645 void * arguments to grub_addr_t. All callers updated. Also make
27646 the `result' argument optional.
27647 (grub_ieee1275_release): change void * arguments to grub_addr_t.
27648 All callers updated.
27649
27650 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
27651
27652 * commands/ls.c (grub_ls_list_files): Use the string following the
27653 initial ')', if present, as the filesystem path.
27654 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
27655
27656 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
27657
27658 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
27659
27660 Make the source code of the menu interface more readable.
27661
27662 * normal/menu.c: Include grub/mm.h.
27663 (TERM_WIDTH): New macro.
27664 (TERM_HEIGHT): Likewise.
27665 (TERM_INFO_HEIGHT): Likewise.
27666 (TERM_MARGIN): Likewise.
27667 (TERM_SCROLL_WIDTH): Likewise.
27668 (TERM_TOP_BORDER_Y): Likewise.
27669 (TERM_LEFT_BORDER_X): Likewise.
27670 (TERM_BORDER_WIDTH): Likewise.
27671 (TERM_MESSAGE_HEIGHT): Likewise.
27672 (TERM_BORDER_HEIGHT): Likewise.
27673 (TERM_NUM_ENTRIES): Likewise.
27674 (TERM_FIRST_ENTRY_Y): Likewise.
27675 (TERM_ENTRY_WIDTH): Likewise.
27676 (TERM_CURSOR_X): Likewise.
27677 (draw_border): Use macros instead of magic numbers.
27678 (print_entry): Likewise.
27679 (print_entries): Likewise.
27680 (run_menu): Likewise. Also, handle the key 'e'.
27681 (run_menu_entry): Ignore empty command lines.
27682 (print_message): Added a new argument EDIT. If EDIT is true,
27683 print a different message.
27684 (init_page): Likewise.
27685 (edit_menu_entry): New function. Not implemented yet.
27686
27687 2004-09-17 Marco Gerards <metgerards@student.han.nl>
27688
27689 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
27690 can be loaded from normal mode.
27691
27692 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
27693 `multiboot.mod'.
27694 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
27695 (multiboot_mod_CFLAGS): New variables.
27696 * loader/i386/pc/linux_normal.c: New file.
27697 * loader/i386/pc/multiboot_normal.c: Likewise.
27698
27699 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
27700 attribute `unused'.
27701
27702 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
27703 `fdiro' to read the mode information from instead of `diro'.
27704
27705 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
27706 looking up a symlink.
27707
27708 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
27709 macro.
27710 * normal/command.c (grub_command_execute): Don't parse the
27711 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
27712 flags of the command.
27713
27714 * normal/menu.c (grub_menu_run): Fix typo.
27715
27716 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
27717
27718 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
27719
27720 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
27721 `y + 1' instead of `y - 1'.
27722
27723 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
27724
27725 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
27726
27727 From Hollis Blanchard <hollis@penguinppc.org>:
27728 * kern/misc.c (memmove): New alias for grub_memmove.
27729 (memcmp): New alias for grub_memcmp.
27730 (memset): New alias for grub_memset.
27731 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
27732 Change "int handle" to "grub_ieee1275_phandle_t handle".
27733 * include/grub/powerpc/ieee1275/ieee1275.h
27734 (grub_ieee1275_get_property): Likewise.
27735
27736 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
27737
27738 Added normal mode command `chainloader' as module chain.mod, which
27739 depends on normal.mod and _chain.mod.
27740
27741 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
27742 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
27743 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
27744 Deleted prototype.
27745 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
27746 but arguments parsing moved to ...
27747 (grub_chainloader_cmd): ... here. New function.
27748 * include/grub/i386/pc/chainloader.h: New file.
27749 * loader/i386/pc/chainloader_normal.c: Likewise.
27750
27751 2004-09-11 Marco Gerards <metgerards@student.han.nl>
27752
27753 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
27754 (grub_mkimage_LDFLAGS): Likewise.
27755 (grub_emu_SOURCES): Likewise.
27756 (kernel_img_HEADERS): Added fshelp.h.
27757 * fs/ext2.c: Include <grub/fshelp.h>.
27758 (FILETYPE_REG): New macro.
27759 (FILETYPE_INO_REG): Likewise.
27760 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
27761 Changed all users.
27762 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
27763 all users.
27764 (grub_fshelp_node): New struct.
27765 (grub_ext2_data): Added member `diropen'. Changed member `inode'
27766 to a pointer.
27767 (grub_ext2_get_file_block): Removed function.
27768 (grub_ext2_read_block): New function.
27769 (grub_ext2_read_file): Replaced parameter `data' by `node'.
27770 This function was written.
27771 (grub_ext2_mount): Read the root inode. Create a diropen struct.
27772 (grub_ext2_find_file): Removed function.
27773 (grub_ext2_read_symlink): New function.
27774 (grub_ext2_iterate_dir): Likewise.
27775 (grub_ext2_open): Rewritten.
27776 (grub_ext2_dir): Rewritten.
27777 * include/grub/fshelp.h: New file.
27778 * fs/fshelp.c: Likewise.
27779
27780 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
27781
27782 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
27783 (print_message): Add a missing newline.
27784 (run_menu): Added timeout support.
27785 (run_menu_entry): New local function.
27786 (grub_menu_run): Added support for booting.
27787
27788 * kern/loader.c (grub_loader_is_loaded): New function.
27789
27790 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
27791 (grub_get_rtc): Exported.
27792
27793 * include/grub/i386/pc/time.h: Include grub/symbol.h.
27794 (grub_get_rtc): Exported.
27795
27796 * include/grub/normal.h (struct grub_command_list): Remove
27797 constant from the member `command'.
27798
27799 * include/grub/loader.h (grub_loader_is_loaded): Declared.
27800
27801 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
27802
27803 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
27804
27805 2004-08-28 Marco Gerards <metgerards@student.han.nl>
27806
27807 Add support for the JFS filesystem.
27808
27809 * fs/jfs.c: New file.
27810 * include/grub/fs.h (grub_jfs_init): New prototype.
27811 (grub_jfs_fini): New prototype.
27812 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
27813 (grub_emu_SOURCES): Likewise.
27814 (pkgdata_MODULES): Add jfs.mod.
27815 (jfs_mod_SOURCES): New variable.
27816 (jfs_mod_CFLAGS): Likewise.
27817 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
27818 (grubof_SOURCES): Likewise.
27819 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
27820
27821 * fs/fat.c (grub_fat_find_dir): Convert the filename little
27822 endian to the host endian.
27823 (grub_fat_utf16_to_utf8): Move function from there...
27824 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
27825 the endianness of the source string anymore.
27826 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
27827
27828 2004-08-24 Marco Gerards <metgerards@student.han.nl>
27829
27830 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
27831 (grub_boot_fini) [GRUB_UTIL]: Likewise.
27832 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
27833 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
27834
27835 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
27836 (grub_hfs_iterate_dir): Make the function static. Add prototypes
27837 for `node_found' and `it_dir'.
27838 (grub_hfs_dir): Add prototype for `dir_hook'.
27839
27840 * fs/minix.c (grub_minix_get_file_block): Add prototype for
27841 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
27842 and `indir32' to silence a gcc warning.
27843
27844 * include/grub/fs.h (grub_hfs_init): New prototype.
27845 (grub_hfs_fini): Likewise.
27846
27847
27848 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
27849
27850 Each disk device has its own id now. This is useful to make use
27851 of multiple disk devices.
27852
27853 * include/grub/disk.h (grub_disk_dev_id): New enum.
27854 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
27855 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
27856
27857 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
27858 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
27859
27860 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
27861 GRUB_DISK_DEVICE_OFDISK_ID as an id.
27862
27863 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
27864 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
27865
27866 * include/grub/disk.h (struct grub_disk_dev): Added a new member
27867 "id" which is used by the cache manager.
27868
27869 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
27870 of just "GRUB".
27871
27872 2004-08-18 Marco Gerards <metgerards@student.han.nl>
27873
27874 * fs/hfs.c: New file.
27875 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
27876 (grub_emu_SOURCES): Likewise.
27877 (pkgdata_MODULES): Add hfs.mod.
27878 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
27879 (grubof_SOURCES): Likewise.
27880 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
27881
27882 * include/grub/misc.h (grub_strncasecmp): Add prototype.
27883 * kern/misc.c (grub_strncasecmp): Add function.
27884
27885 2004-08-14 Marco Gerards <metgerards@student.han.nl>
27886
27887 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
27888 with parentheses.
27889
27890 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
27891 (grub_ext2_dir): In case the directory entry type is unknown, read
27892 it from the inode.
27893
27894 2004-08-02 Peter Bruin <pjbruin@dds.nl>
27895
27896 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
27897 grub_load_linux instead of grub_rescue_cmd_linux as second
27898 argument of grub_rescue_register_command.
27899
27900 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
27901
27902 2004-07-27 Marco Gerards <metgerards@student.han.nl>
27903
27904 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
27905 function.
27906 * commands/boot.c: Remove the check for `GRUB_UTIL'.
27907 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
27908 `loader/powerpc/ieee1275/linux.c',
27909 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
27910 * include/grub/powerpc/ieee1275/ieee1275.h
27911 (grub_ieee1275_release): New prototype.
27912 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
27913 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
27914 normal, boot, linux and linux_normal.
27915 * loader/powerpc/ieee1275/linux.c: New file.
27916 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
27917
27918 2004-07-12 Marco Gerards <metgerards@student.han.nl>
27919
27920 * normal/arg.c (grub_arg_parse): Correct error handling after
27921 reallocating the argumentlist (check if `argl' is not null instead
27922 of checking if `args' is not null).
27923 * kern/mm.c (grub_realloc): Return the same pointer when using the
27924 same region, instead of returning the header address.
27925
27926 2004-07-11 Marco Gerards <metgerards@student.han.nl>
27927
27928 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
27929 one block instead of two when looking for the initial partition.
27930 (grub_partition_probe): Initialize the local variable `p' with 0.
27931 Use base 10 for the grub_strtoul call.
27932 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
27933 need for one local variable.
27934 (grub_strtoul): Don't add the new value to `num', instead of that
27935 just assign it.
27936
27937 2004-07-11 Marco Gerards <metgerards@student.han.nl>
27938
27939 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
27940 (pxeboot_img_SOURCES): New variable.
27941 (pxeboot_img_ASFLAGS): Likewise.
27942 (pxeboot_img_LDFLAGS): Likewise.
27943 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
27944 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
27945 <lode_leroy@hotmail.com>.
27946
27947 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27948
27949 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
27950 there was no input.
27951
27952 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27953
27954 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
27955 the history buffer logic.
27956
27957 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
27958
27959 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
27960 (FILETYPE_INO_SYMLINK): New macros.
27961 (grub_ext2_find_file): Check if the node is a directory using the
27962 inode stat information instead of using the filetype in the
27963 dirent. Exclude the first character of an absolute symlink.
27964 (grub_ext2_dir): Mask out the filetype part of the mode member of
27965 the inode.
27966
27967 2004-05-24 Marco Gerards <metgerards@student.han.nl>
27968
27969 Add support for UFS version 1 and 2. Add support for the minix
27970 filesystem version 1 and 2, both the variants with 14 and 30 long
27971 filenames.
27972
27973 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
27974 fs/minix.c.
27975 (grub_emu_SOURCES): Likewise.
27976 (pkgdata_MODULES): Add ufs.mod and minix.mod.
27977 (ufs_mod_SOURCES): New variable.
27978 (ufs_mod_CFLAGS): Likewise.
27979 (minix_mod_SOURCES): Likewise.
27980 (minix_mod_CFLAGS): Likewise.
27981 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
27982 fs/minix.c.
27983 (grubof_SOURCES): Likewise.
27984 * fs/ufs.c: New file.
27985 * fs/minix.c: New file.
27986 * include/grub/fs.h (grub_ufs_init): New prototype.
27987 (grub_ufs_fini): Likewise.
27988 (grub_minix_init): Likewise.
27989 (grub_minix_fini): Likewise.
27990 * util/grub-emu.c (main): Initialize and deinitialize UFS and
27991 minix fs.
27992
27993 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
27994
27995 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
27996 commands/ls.c, commands/terminal.c, commands/boot.c,
27997 commands/cmp.c and commands/cat.c.
27998 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
27999
28000 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
28001 "env.h"
28002
28003 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
28004
28005 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
28006 and grub_, respectively. Because the conversion is trivial and
28007 mechanical, I omit the details here. Please refer to the CVS
28008 if you need more information.
28009
28010 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
28011
28012 * include/pupa: Renamed to ...
28013 * include/grub: ... this.
28014 * util/i386/pc/pupa-mkimage.c: Renamed to ...
28015 * util/i386/pc/grub-mkimage.c: ... this.
28016 * util/i386/pc/pupa-setup.c: Renamed to ...
28017 * util/i386/pc/grub-setup.c: ... this.
28018 * util/pupa-emu.c: Renamed to ...
28019 * util/grub-emu.c: ... this.
28020
28021 2004-03-29 Marco Gerards <metgerards@student.han.nl>
28022
28023 Add support for the newworld apple macintosh (PPC). This has been
28024 tested on the powerbook 2000 only. It only adds support for
28025 generic ieee1275 functions, console and disk support. This should
28026 be easy to port to other architectures with support for Open
28027 Firmware.
28028
28029 * configure.ac: Accept the powerpc as host_cpu. In the case of
28030 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
28031 specific tests are only executed while building for the i386.
28032 Inverse test for crosscompile.
28033 * genmk.rb (Utility): Allow assembler files.
28034 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
28035 * conf/powerpc-ieee1275.rmk: New file.
28036 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
28037 * disk/powerpc/ieee1275/partition.c: Likewise.
28038 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
28039 * include/pupa/powerpc/ieee1275/console.h: Likewise.
28040 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
28041 * include/pupa/powerpc/ieee1275/time.h: Likewise.
28042 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
28043 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
28044 * include/pupa/powerpc/ieee1275/loader.h
28045 * include/pupa/powerpc/setjmp.h: Likewise.
28046 * include/pupa/powerpc/types.h: Likewise.
28047 * kern/powerpc/ieee1275/init.c: Likewise.
28048 * kern/powerpc/ieee1275/openfw.c: Likewise.
28049 * term/powerpc/ieee1275/ofconsole.c: Likewise.
28050
28051 These files were written by Johan Rydberg
28052 (jrydberg@night.trouble.net) and I only modified them slightly.
28053
28054 * boot/powerpc/ieee1275/cmain.c: New file.
28055 * boot/powerpc/ieee1275/crt0.S: Likewise.
28056 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
28057 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
28058
28059 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
28060
28061 * Makefile.in: Update copyright.
28062 * genmodsrc.sh: Likewise.
28063 * gensymlist.sh: Likewise.
28064 * term/i386/pc/vga.c: Indent correctly.
28065
28066 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
28067 bugreporting address.
28068 * util/i386/pc/pupa-setup.c (usage): Likewise,
28069 (main): Call pupa_ext2_init and pupa_ext2_fini.
28070
28071 * fs/fat.c (log2): Renamed to ...
28072 (fat_log2): ... this.
28073 All callers changed.
28074 * kern/misc.c (memcpy): Alias to pupa_memmove.
28075 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
28076 lvalue cast.
28077 * util/console.c (pupa_ncurses_fini): Return 0.
28078
28079 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
28080 Move fail label here.
28081 [__GNU__]: Don't warn when using stat.
28082 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
28083 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
28084 long int. Use strtol instead of strtoul.
28085
28086 2004-03-14 Marco Gerards <metgerards@student.han.nl>
28087
28088 * commands/boot.c: New file.
28089 * commands/cat.c: Likewise.
28090 * commands/cmp.c: Likewise.
28091 * commands/ls.c: Likewise.
28092 * commands/terminal.c: Likewise.
28093 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
28094 (pupa_register_command): Changed interface to match the new
28095 argument parser.
28096 (pupa_command_execute): Changed (almost rewritten) so it uses
28097 pupa_split_command. Added support for setting variables using the
28098 syntax `foo=bar'.
28099 (rescue_command): Changed to work with the new argument parser.
28100 (terminal_command): Moved from here to commands/terminal.c.
28101 (set_command): New function.
28102 (unset_command): New function.
28103 (insmod_command): New function.
28104 (rmmod_command): New function.
28105 (lsmod_command): New function.
28106 (pupa_command_init): Don't initialize the command terminal
28107 anymore. Initialize the commands set, unset, insmod, rmmod and
28108 lsmod.
28109 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
28110 (kernel_img_HEADERS): Add arg.h and env.h.
28111 (pupa_mkimage_LDFLAGS): Add kern/env.c.
28112 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
28113 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
28114 normal/arg.c.
28115 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
28116 terminal.mod.
28117 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
28118 (boot_mod_SOURCES): New variable.
28119 (terminal_mod_SOURCES): Likewise.
28120 (ls_mod_SOURCES): Likewise.
28121 (cmp_mod_SOURCES): Likewise.
28122 (cat_mod_SOURCES): Likewise.
28123
28124 * normal/arg.c: New file.
28125 * kern/env.c: Likewise.
28126 * include/pupa/arg.h: Likewise.
28127 * include/pupa/env.h: Likewise.
28128 * font/manager.c (font_command): Changed to match argument parsing
28129 interface changes.
28130 (PUPA_MOD_INIT): Likewise.
28131 * hello/hello.c (pupa_cmd_hello): Likewise.
28132 (PUPA_MOD_INIT): Likewise.
28133 * include/pupa/disk.h: Include <pupa/device.h>.
28134 (pupa_print_partinfo): New prototype.
28135 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
28136 (pupa_dl_get_prefix): Likewise.
28137 * include/pupa/misc.h: Include <pupa/err.h>.
28138 (pupa_isgraph): New prototype.
28139 (pupa_isdigit): Likewise.
28140 (pupa_split_cmdline): Likewise.
28141 * include/pupa/normal.h: Include <pupa/arg.h>.
28142 (pupa_command): Changed the prototype of the member `func' to
28143 match the argument parsing interface. Added member `options'.
28144 (pupa_register_command): Updated to match function.
28145 (pupa_arg_parse): New prototype.
28146 (pupa_hello_init) [PUPA_UTIL]: New prototype.
28147 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
28148 (pupa_ls_init) [PUPA_UTIL]: Likewise.
28149 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
28150 (pupa_cat_init) [PUPA_UTIL]: Likewise.
28151 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
28152 (pupa_boot_init) [PUPA_UTIL]: Likewise.
28153 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
28154 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
28155 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
28156 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
28157 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
28158 * kern/disk.c: Include <pupa/file.h>.
28159 (pupa_print_partinfo): New function.
28160 * kern/dl.c: Include <pupa/env.h>.
28161 (pupa_dl_dir): Variable removed.
28162 (pupa_dl_load): Use the environment variable `prefix' instead of
28163 the variable pupa_dl_dir.
28164 (pupa_dl_set_prefix): Function removed.
28165 (pupa_dl_get_prefix): Likewise.
28166 * kern/i386/pc/init.c: Include <pupa/env.h>.
28167 (pupa_machine_init): Use the environment variable `prefix' instead of
28168 using pupa_dl_set_prefix to set the prefix.
28169 * kern/main.c: Include <pupa/env.h>.
28170 (pupa_set_root_dev): Use the environment variable `prefix' instead of
28171 using pupa_dl_get_prefix to get the prefix.
28172 * kern/misc.c: Include <pupa/env.h>.
28173 (pupa_isdigit): New function.
28174 (pupa_isgraph): Likewise.
28175 (pupa_ftoa): Likewise.
28176 (pupa_vsprintf): Added support for printing values of the type
28177 `double'. Make it possible to format variable output when using
28178 formatting like `%1.2%f'.
28179 (pupa_split_cmdline): New function.
28180 * kern/rescue.c: Include <pupa/env.h>.
28181 (next_word): Removed function.
28182 (pupa_rescue_cmd_prefix): Likewise.
28183 (pupa_rescue_cmd_set): New function.
28184 (pupa_rescue_cmd_unset): New function.
28185 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
28186 split the command line instead of splitting it here. Added
28187 support for setting variables using the syntax `foo=bar'. Don't
28188 initialize the prefix command anymore. Initialized the set and
28189 unset commands.
28190 * normal/cmdline.c: Include <pupa/env.h>.
28191 (pupa_tab_complete): Added prototypes for print_simple_completion,
28192 print_partition_completion, add_completion, iterate_commands,
28193 iterate_dev, iterate_part and iterate_dir. Moved code to print
28194 partition information from here to kern/disk.c.
28195 (pupa_cmdline_run): Don't check if the function exists anymore.
28196 * normal/main.c: Include <pupa/env.h>.
28197 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
28198 instead of using pupa_dl_get_prefix to get the prefix.
28199 * term/i386/pc/vga.c: Include <pupa/arg.h>.
28200 (check_vga_mem): Cast pointers to `void *' to silence a gcc
28201 warning.
28202 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
28203 (pupa_vga_setcolor): Declare unused variables with `__attribute__
28204 ((unused))' to silence a gcc warning.
28205 (pupa_vga_setcolor): Likewise.
28206 (debug_command): Changed to match argument parsing
28207 interface changes.
28208 * util/pupa-emu.c: Include <pupa/env.h>.
28209 (options): Added 0's for unused fields to silence a gcc warning.
28210 (argp): Likewise.
28211 (main): Use the environment variable `prefix' instead of using
28212 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
28213 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
28214 and terminal.
28215
28216 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
28217 * util/misc.c: Include <malloc.h>.
28218 (pupa_malloc): Rewritten so errors are correctly reported.
28219 (pupa_realloc): Likewise.
28220 (pupa_memalign): Likewise.
28221 (pupa_mm_init_region): Declare unused variables with
28222 `__attribute__ ((unused))' to silence a gcc warning.
28223 * normal/i386/setjmp.S: Remove tab at the end of the file to
28224 silence a gcc warning.
28225 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
28226 variables with `__attribute__ ((unused))' to silence a gcc
28227 warning.
28228 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
28229 local variable i unsigned to silence a gcc warning.
28230
28231 * kern/term.c: Include <pupa/misc.h>.
28232 (pupa_more_lines): New variable.
28233 (pupa_more): Likewise.
28234 (pupa_putcode): When the pager is active pause at the end of every
28235 screen.
28236 (pupa_set_more): New function.
28237 * include/pupa/term.h (pupa_set_more): New prototype.
28238
28239
28240 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
28241
28242 Now this project is GRUB 2 rather than PUPA. The location of
28243 the CVS repository was moved to GRUB's.
28244
28245 * configure.ac: Use bug-grub as the reporting address.
28246 Use GRUB instead of PUPA.
28247 Change the version number to 1.90.
28248
28249 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
28250
28251 * genkernsyms.sh: Updated copyright information.
28252 * genmk.rb: Likewise.
28253 * genmodsrc.sh: Likewise.
28254 * gensymlist.sh: Likewise.
28255 * boot/i386/pc/boot.S: Likewise.
28256 * boot/i386/pc/diskboot.S: Likewise.
28257 * disk/i386/pc/biosdisk.c: Likewise.
28258 * disk/i386/pc/partition.c: Likewise.
28259 * font/manager.c: Likewise.
28260 * fs/ext2.c: Likewise.
28261 * fs/fat.c: Likewise.
28262 * include/pupa/boot.h: Likewise.
28263 * include/pupa/device.h: Likewise.
28264 * include/pupa/disk.h: Likewise.
28265 * include/pupa/dl.h: Likewise.
28266 * include/pupa/elf.h: Likewise.
28267 * include/pupa/err.h: Likewise.
28268 * include/pupa/file.h: Likewise.
28269 * include/pupa/font.h: Likewise.
28270 * include/pupa/fs.h: Likewise.
28271 * include/pupa/kernel.h: Likewise.
28272 * include/pupa/loader.h: Likewise.
28273 * include/pupa/misc.h: Likewise.
28274 * include/pupa/mm.h: Likewise.
28275 * include/pupa/net.h: Likewise.
28276 * include/pupa/normal.h: Likewise.
28277 * include/pupa/rescue.h: Likewise.
28278 * include/pupa/setjmp.h: Likewise.
28279 * include/pupa/symbol.h: Likewise.
28280 * include/pupa/term.h: Likewise.
28281 * include/pupa/types.h: Likewise.
28282 * include/pupa/i386/setjmp.h: Likewise.
28283 * include/pupa/i386/types.h: Likewise.
28284 * include/pupa/i386/pc/biosdisk.h: Likewise.
28285 * include/pupa/i386/pc/boot.h: Likewise.
28286 * include/pupa/i386/pc/console.h: Likewise.
28287 * include/pupa/i386/pc/init.h: Likewise.
28288 * include/pupa/i386/pc/kernel.h: Likewise.
28289 * include/pupa/i386/pc/linux.h: Likewise.
28290 * include/pupa/i386/pc/loader.h: Likewise.
28291 * include/pupa/i386/pc/memory.h: Likewise.
28292 * include/pupa/i386/pc/multiboot.h: Likewise.
28293 * include/pupa/i386/pc/partition.h: Likewise.
28294 * include/pupa/i386/pc/time.h: Likewise.
28295 * include/pupa/i386/pc/vga.h: Likewise.
28296 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
28297 * include/pupa/util/getroot.h: Likewise.
28298 * include/pupa/util/misc.h: Likewise.
28299 * include/pupa/util/resolve.h: Likewise.
28300 * kern/device.c: Likewise.
28301 * kern/disk.c: Likewise.
28302 * kern/dl.c: Likewise.
28303 * kern/err.c: Likewise.
28304 * kern/file.c: Likewise.
28305 * kern/fs.c: Likewise.
28306 * kern/loader.c: Likewise.
28307 * kern/main.c: Likewise.
28308 * kern/misc.c: Likewise.
28309 * kern/mm.c: Likewise.
28310 * kern/rescue.c: Likewise.
28311 * kern/term.c: Likewise.
28312 * kern/i386/dl.c: Likewise.
28313 * kern/i386/pc/init.c: Likewise.
28314 * kern/i386/pc/lzo1x.S: Likewise.
28315 * kern/i386/pc/startup.S: Likewise.
28316 * loader/i386/pc/chainloader.c: Likewise.
28317 * loader/i386/pc/linux.c: Likewise.
28318 * loader/i386/pc/multiboot.c: Likewise.
28319 * normal/cmdline.c: Likewise.
28320 * normal/command.c: Likewise.
28321 * normal/main.c: Likewise.
28322 * normal/menu.c: Likewise.
28323 * normal/i386/setjmp.S: Likewise.
28324 * term/i386/pc/console.c: Likewise.
28325 * term/i386/pc/vga.c: Likewise.
28326 * util/console.c: Likewise.
28327 * util/genmoddep.c: Likewise.
28328 * util/misc.c: Likewise.
28329 * util/pupa-emu.c: Likewise.
28330 * util/resolve.c: Likewise.
28331 * util/unifont2pff.rb: Likewise.
28332 * util/i386/pc/biosdisk.c: Likewise.
28333 * util/i386/pc/getroot.c: Likewise.
28334 * util/i386/pc/pupa-mkimage.c: Likewise.
28335 * util/i386/pc/pupa-setup.c: Likewise.
28336
28337 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
28338
28339 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
28340 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
28341 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
28342 reading and reset it after reading.
28343 (pupa_ext2_close): Return PUPA_ERR_NONE.
28344
28345 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
28346 Correct value.
28347 (struct linux_kernel_header): Add kernel_version and
28348 initrd_addr_max.
28349 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
28350 pupa_file_read succeeds.
28351 (pupa_rescue_cmd_initrd): Implement.
28352
28353 2003-12-03 Marco Gerards <metgerards@student.han.nl>
28354
28355 * fs/ext2.c (pupa_ext2_label): New function.
28356 (pupa_ext2_fs): Added label.
28357 * fs/fat.c (pupa_fat_label): New function.
28358 (pupa_fat_fs): Added label.
28359 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
28360
28361 * kern/misc.c (pupa_strndup): New function.
28362 * include/pupa/misc.h (pupa_strndup): New prototype.
28363
28364 * include/pupa/normal.h: Include <pupa/err.h>.
28365 (pupa_set_history): New prototype.
28366 (pupa_iterate_commands): New prototype.
28367 * normal/cmdline.c: Include <pupa/machine/partition.h>,
28368 <pupa/disk.h>, <pupa/file.h>.
28369 (hist_size): New variable.
28370 (hist_lines): Likewise.
28371 (hist_end): Likewise.
28372 (hist_used): Likewise.
28373 (pupa_set_history): New function.
28374 (pupa_history_get): Likewise.
28375 (pupa_history_add): Likewise.
28376 (pupa_history_replace): Likewise.
28377 (pupa_tab_complete): Likewise.
28378 (pupa_cmdline_run): Added tab completion and history buffer. Tab
28379 completion shows partitionnames while completing partitions, this
28380 feature was suggested by Jeff Bailey.
28381 * normal/command.c (pupa_iterate_commands): New function.
28382 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
28383 (pupa_normal_init): Initialize history buffer.
28384 (PUPA_MOD_INIT): Likewise.
28385 (pupa_normal_fini): Free the history buffer.
28386 (PUPA_MOD_FINI): Likewise.
28387
28388 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
28389 key.
28390
28391 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
28392 * configure.ac [i386]: Check for regparam bug.
28393 (NESTED_FUNC_ATTR) [! i386]: Defined.
28394
28395 2003-11-17 Marco Gerards <metgerards@student.han.nl>
28396
28397 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
28398 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
28399 (pupa_emu_SOURCES): New variable.
28400 (pupa_emu_LDFLAGS): Likewise.
28401 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
28402 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
28403 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
28404 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
28405 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
28406 (pupa_jmp_buf): New typedef.
28407 (pupa_setjmp) [PUPA_UTIL]: New macro.
28408 (pupa_longjmp) [PUPA_UTIL]: Likewise.
28409 * include/pupa/term.h (struct pupa_term): New member `refresh'.
28410 (pupa_refresh): New prototype.
28411 * include/pupa/util/getroot.h: New file.
28412 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
28413 it.
28414 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
28415 (pupa_rescue_cmd_cat): Likewise.
28416 (pupa_rescue_cmd_ls): Likewise.
28417 (pupa_rescue_cmd_testload): Likewise.
28418 (pupa_rescue_cmd_lsmod): Likewise.
28419 * normal/cmdline.c (pupa_cmdline_get): Likewise.
28420 * normal/menu.c (run_menu): Likewise.
28421 * kern/term.c (pupa_cls): Likewise.
28422 (pupa_refresh): New function.
28423 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
28424 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
28425 * util/console.c: New file.
28426
28427 * util/i386/pc/getroot.c: New file.
28428 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
28429 (pupa_putchar): New function.
28430 (pupa_refresh): Likewise.
28431 (xgetcwd): Function moved to ...
28432 (strip_extra_slashes): Likewise.
28433 (get_prefix): Likewise.
28434 * util/i386/pc/getroot.c: ... here.
28435 (find_root_device): Function moved and renamed to...
28436 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
28437 Changed all callers.
28438 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
28439 and renamed to...
28440 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
28441 Changed all callers.
28442 * util/misc.c (pupa_memalign): New function.
28443 (pupa_mm_init_region): Likewise.
28444 (pupa_register_exported_symbols): Likewise.
28445 (pupa_putchar): Function removed.
28446 * util/pupa-emu.c: New file.
28447
28448 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
28449
28450 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
28451 (_multiboot_mod_SOURCES): New variable.
28452 (_multiboot_mod_CFLAGS): Likewise.
28453 * loader/i386/pc/multiboot.c: New file.
28454 * include/pupa/i386/pc/multiboot.h: Likewise.
28455 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
28456 (pupa_multiboot_real_boot): New function.
28457 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
28458 (pupa_multiboot_real_boot): New prototype.
28459 (pupa_rescue_cmd_multiboot): Likewise
28460 (pupa_rescue_cmd_module): Likewise.
28461
28462 * kern/loader.c (pupa_loader_set): Continue when
28463 pupa_loader_unload_func() fails.
28464 (pupa_loader_unset): New function.
28465 * include/pupa/loader.h (pupa_loader_unset): New prototype.
28466
28467 * kern/misc.c (pupa_stpcpy): New function.
28468 * include/pupa/misc.h (pupa_stpcpy): New prototype.
28469
28470 2003-11-12 Marco Gerards <metgerards@student.han.nl>
28471
28472 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
28473 for available extensions.
28474
28475 * include/pupa/i386/pc/time.h: New file.
28476 * kern/disk.c: Include <pupa/machine/time.h>.
28477 (PUPA_CACHE_TIMEOUT): New macro.
28478 (pupa_last_time): New variable.
28479 (pupa_disk_open): Flush the cache when there was a timeout.
28480 (pupa_disk_close): Reset the timer.
28481 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
28482 pupa_currticks.
28483 * util/misc.c: Include <sys/times.h>
28484 (pupa_get_rtc): New function.
28485
28486 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
28487
28488 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
28489 as blocks.
28490 (pupa_ext2_get_file_block): Use blocks member.
28491
28492 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
28493 first block. Return -1 instead of pupa_errno on error.
28494
28495 2003-10-27 Marco Gerards <metgerards@student.han.nl>
28496
28497 * README: In the pupa-mkimage example use _chain instead of chain
28498 and ext2 instead of fat.
28499 * TODO: Replace ext2fs with jfs as an example. Add an item for
28500 adding journal playback for ext2fs.
28501 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
28502 (pkgdata_MODULES): Added ext2.mod.
28503 (ext2_mod_SOURCES): New variable.
28504 (ext2_mod_CFLAGS): Likewise.
28505 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
28506 * include/pupa/misc.h (pupa_strncpy): New prototype.
28507 (pupa_strcat): Likewise.
28508 (pupa_strncmp): Likewise.
28509 * kern/misc.c (pupa_strcat): Enable function.
28510 (pupa_strncpy): New function.
28511 (pupa_strncmp): Likewise.
28512 * fs/ext2.c: New file.
28513
28514 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
28515 when the read failed before retrying.
28516 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
28517 (_FILE_OFFSET_BITS): Likewise.
28518 * configure.ac: Added AC_SYS_LARGEFILE.
28519
28520 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
28521
28522 * genmk.rb (PModule#rule): Make sure to get only symbol names
28523 from the output of nm.
28524 Reported by Robert Millan <rmh.grub@aybabtu.com>.
28525
28526 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
28527
28528 I forgot to check in these changes for a long time. This adds
28529 incomplete support for VGA console, and this is still very
28530 buggy. Also, a lot of consideration is required for I18N,
28531 UNICODE, and VGA font issues. Therefore, assume that this is
28532 such that "better than nothing".
28533
28534 * font/manager.c: New file.
28535 * include/pupa/font.h: Likewise.
28536 * include/pupa/i386/pc/vga.h: Likewise.
28537 * term/i386/pc/vga.c: Likewise.
28538 * util/unifont2pff.rb: Likewise.
28539
28540 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
28541 (pkgdata_MODULES): Added vga.mod and font.mod.
28542 (vga_mod_SOURCES): New variables.
28543 (vga_mod_CFLAGS): Likewise.
28544 (font_mod_SOURCES): Likewise.
28545 (font_mod_CFLAGS): Likewise.
28546
28547 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
28548
28549 * include/pupa/term.h: Include pupa/err.h.
28550 (struct pupa_term): Added init and fini.
28551 Changed the argument of putchar to pupa_uint32_t.
28552
28553 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
28554 (pupa_console_real_putchar): New prototype.
28555 (pupa_console_putchar): Removed.
28556 (pupa_console_checkkey): Exported.
28557 (pupa_console_getkey): Likewise.
28558
28559 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
28560 characters.
28561
28562 * kern/term.c (pupa_term_set_current): Rewritten.
28563 (pupa_putchar): Likewise.
28564 (pupa_putcode): New function.
28565
28566 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
28567 (pupa_console_real_putchar): ... this.
28568 (pupa_vga_set_mode): New function.
28569 (pupa_vga_get_font): Likewise.
28570
28571 * normal/command.c: Include pupa/term.h.
28572 (terminal_command): New function.
28573 (pupa_command_init): Register the command "terminal".
28574
28575 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
28576 (DISP_UP): Likewise.
28577 (DISP_RIGHT): Likewise.
28578 (DISP_DOWN): Likewise.
28579 (DISP_HLINE): Likewise.
28580 (DISP_VLINE): Likewise.
28581 (DISP_UL): Likewise.
28582 (DISP_UR): Likewise.
28583 (DISP_LL): Likewise.
28584 (DISP_LR): Likewise.
28585
28586 * term/i386/pc/console.c (pupa_console_putchar): New function.
28587
28588 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
28589
28590 * util/resolve.c (pupa_util_resolve_dependencies): BUG
28591 FIX. Reverse the path_list.
28592
28593 * include/pupa/normal.h: Export pupa_register_command and
28594 pupa_unregister_command.
28595
28596 * hello/hello.c (pupa_cmd_hello): New module.
28597 * conf/i386-pc.rmk: Added hello.mod.
28598
28599 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
28600
28601 * kern/i386/pc/lzo1x.S: New file.
28602
28603 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
28604 (compress_kernel): New variable.
28605 (generate_image): Heavily modified to support compressing a
28606 large part of the core image.
28607
28608 * util/misc.c (pupa_util_read_image): Fix a file descriptor
28609 leak.
28610 (pupa_util_load_image): New function.
28611
28612 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
28613 (pupa_compressed_size): New variable.
28614 (codestart): Enable Gate A20 here.
28615 Decompress the compressed part of the core image.
28616 Rearrange the code to put functions and variables which are
28617 required for initialization in the non-compressed part.
28618 Include lzo1x.S.
28619
28620 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
28621 here.
28622
28623 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
28624
28625 * include/pupa/i386/pc/kernel.h
28626 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
28627 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
28628 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
28629 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
28630 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
28631
28632 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
28633
28634 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
28635 (Utility#rule): Likewise.
28636
28637 * configure.ac: Check if LZO is available.
28638
28639 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
28640
28641 * include/pupa/normal.h: New file.
28642 * include/pupa/setjmp.h: Likewise.
28643 * include/pupa/i386/setjmp.h: Likewise.
28644 * normal/cmdline.c: Likewise.
28645 * normal/command.c: Likewise.
28646 * normal/main.c: Likewise.
28647 * normal/menu.c: Likewise.
28648 * normal/i386/setjmp.S: Likewise.
28649
28650 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
28651 (pupa_rescue_cmd_initrd): Likewise.
28652
28653 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
28654 Likewise.
28655
28656 * kern/i386/pc/startup.S (translation_table): New variable.
28657 (translate_keycode): New function.
28658 (pupa_console_getkey): Call translate_keycode.
28659
28660 * kern/rescue.c (attempt_normal_mode): New function.
28661 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
28662 it failed, print a message.
28663
28664 * kern/mm.c (pupa_real_malloc): Print more information when a
28665 free magic is broken.
28666 (pupa_free): If the first free header is not free actually, set
28667 it to P.
28668
28669 * kern/main.c (pupa_load_normal_mode): Just load the module
28670 "normal".
28671 (pupa_main): Don't print the message
28672 "Entering into rescue mode..." here.
28673
28674 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
28675 Declared.
28676 (pupa_rescue_cmd_initrd): Likewise.
28677 (pupa_rescue_cmd_initrd): Likewise.
28678
28679 * include/pupa/symbol.h (FUNCTION): Specify the type.
28680 (VARIABLE): Likewise.
28681
28682 * include/pupa/err.h (pupa_err_t): Added
28683 PUPA_ERR_UNKNOWN_COMMAND.
28684
28685 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
28686 (pupa_dl_get_prefix): Likewise.
28687
28688 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
28689 Added _chain.mod and _linux.mod instead of chain.mod and
28690 linux.mod.
28691 (chain_mod_SOURCES): Renamed to ...
28692 (_chain_mod_SOURCES): ... this.
28693 (chain_mod_CFLAGS): Renamed to ...
28694 (_chain_mod_CFLAGS): ... this.
28695 (linux_mod_SOURCES): Renamed to ...
28696 (_linux_mod_SOURCES): ... this.
28697 (linux_mod_CFLAGS): Renamed to ...
28698 (_linux_mod_CFLAGS): ... this.
28699 (normal_mod_SOURCES): New variable.
28700 (normal_mod_CFLAGS): Likewise.
28701 (normal_mod_ASFLAGS): Likewise.
28702
28703 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
28704
28705 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
28706 possible.
28707
28708 * kern/dl.c (pupa_dl_ref): Refer depending modules
28709 recursively.
28710 (pupa_dl_unref): Unrefer depending modules recursively.
28711 Don't call pupa_dl_unload implicitly, because PUPA can crash if
28712 a module is unloaded before one depending on that module is
28713 unloaded.
28714 (pupa_dl_unload): Unload depending modules explicitly,
28715 if possible.
28716
28717 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
28718
28719 * include/pupa/i386/pc/linux.h: New file.
28720 * loader/i386/pc/linux.c: Likewise.
28721
28722 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
28723 Removed.
28724 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
28725 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
28726 of PUPA_CHAINLOADER_BOOT_SECTOR.
28727
28728 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
28729 (pupa_linux_prot_size): New variable.
28730 (pupa_linux_tmp_addr): Likewise.
28731 (pupa_linux_real_addr): Likewise.
28732 (pupa_linux_boot_zimage): New function.
28733 (pupa_linux_boot_bzimage): Likewise.
28734
28735 * kern/i386/pc/init.c (struct mem_region): New structure.
28736 (MAX_REGIONS): New macro.
28737 (mem_regions): New variable.
28738 (num_regions): Likewise.
28739 (pupa_os_area_addr): Likewise.
28740 (pupa_os_area_size): Likewise.
28741 (pupa_lower_mem): Likewise.
28742 (pupa_upper_mem): Likewise.
28743 (add_mem_region): New function.
28744 (compact_mem_regions): Likewise.
28745 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
28746 the size of the conventional memory and that of so-called upper
28747 memory (before the first memory hole).
28748 Instead of adding each found region to free memory, use
28749 add_mem_region and add them after removing overlaps.
28750 Also, add only 1/4 of the upper memory to free memory. The rest
28751 is used for loading OS images. Maybe this is ad hoc, but this
28752 makes it much easier to relocate OS images when booting.
28753
28754 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
28755 (pupa_enter_rescue_mode): Don't register initrd and module.
28756
28757 * kern/mm.c: Include pupa/dl.h.
28758
28759 * kern/main.c: Include pupa/file.h and pupa/device.h.
28760
28761 * kern/loader.c (pupa_loader_load_module_func): Removed.
28762 (pupa_loader_load_module): Likewise.
28763
28764 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
28765 ``.o''.
28766
28767 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
28768 (pupa_linux_tmp_addr): Likewise.
28769 (pupa_linux_real_addr): Likewise.
28770 (pupa_linux_boot_zimage): Likewise.
28771 (pupa_linux_boot_bzimage): Likewise.
28772
28773 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
28774 (pupa_upper_mem): Likewise.
28775 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
28776 module is too dangerous.
28777
28778 * include/pupa/loader.h (pupa_os_area_addr): Declared.
28779 (pupa_os_area_size): Likewise.
28780 (pupa_loader_set): Remove the first argument. Loader doesn't
28781 manage modules or initrd any longer.
28782 (pupa_loader_load_module): Removed.
28783
28784 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
28785 (linux_mod_SOURCES): New variable.
28786 (linux_mod_CFLAGS): Likewise.
28787
28788 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
28789
28790 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
28791 the length of a blocklist correctly.
28792
28793 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
28794 Use ioctl only if the OS file is a block device.
28795 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
28796 not very useful for normal files.
28797
28798 * kern/main.c (pupa_set_root_dev): New function.
28799 (pupa_load_normal_mode): Likewise.
28800 (pupa_main): Call those above.
28801
28802 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
28803 pupa_uint16_t.
28804
28805 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
28806
28807 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
28808
28809 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
28810 (setup): Configure the installed partition information and the
28811 dl prefix.
28812
28813 * loader/i386/pc/chainloader.c (my_mod): New variable.
28814 (pupa_chainloader_unload): New function.
28815 (pupa_rescue_cmd_chainloader): Refer itself.
28816 (PUPA_MOD_INIT): Save its own module in MY_MOD.
28817
28818 * kern/i386/pc/startup.S (install_partition): Removed.
28819 (version_string): Likewise.
28820 (config_file): Likewise.
28821 (pupa_install_dos_part): New variable.
28822 (pupa_install_bsd_part): Likewise.
28823 (pupa_prefix): Likewise.
28824 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
28825
28826 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
28827 and pupa/misc.h.
28828 (make_install_device): New function.
28829 (pupa_machine_init): Set the dl prefix.
28830
28831 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
28832 (buf): Renamed to ...
28833 (linebuf): ... this.
28834 (pupa_rescue_cmd_prefix): New function.
28835 (pupa_rescue_cmd_insmod): Likewise.
28836 (pupa_rescue_cmd_rmmod): Likewise.
28837 (pupa_rescue_cmd_lsmod): Likewise.
28838 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
28839 rmmod and lsmod.
28840
28841 * kern/mm.c (pupa_memalign): If failed even after invalidating
28842 disk caches, unload unneeded modules and retry.
28843
28844 * kern/misc.c (pupa_memmove): New function.
28845 (pupa_memcpy): Removed.
28846 (pupa_strcpy): New function.
28847 (pupa_itoa): Made static.
28848
28849 * kern/dl.c (pupa_dl_iterate): New function.
28850 (pupa_dl_ref): Likewise.
28851 (pupa_dl_unref): Likewise.
28852 (pupa_dl_unload): Return if succeeded or not.
28853 (pupa_dl_unload_unneeded): New function.
28854 (pupa_dl_unload_all): Likewise.
28855 (pupa_dl_init): Renamed to ...
28856 (pupa_dl_set_prefix): ... this.
28857 (pupa_dl_get_prefix): New function.
28858
28859 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
28860 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
28861 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
28862 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
28863 (pupa_install_dos_part): Declared.
28864 (pupa_install_bsd_part): Likewise.
28865 (pupa_prefix): Likewise.
28866 (pupa_boot_drive): Likewise.
28867
28868 * include/pupa/types.h: Fix a typo.
28869
28870 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
28871 pupa_memmove.
28872 (pupa_memmove): Declared.
28873 (pupa_strcpy): Likewise.
28874
28875 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
28876 pupa_mod_init takes one argument, its own module.
28877 (pupa_dl_unload_unneeded): Declared.
28878 (pupa_dl_unload_all): Likewise.
28879 (pupa_dl_ref): Likewise.
28880 (pupa_dl_unref): Likewise.
28881 (pupa_dl_iterate): Likewise.
28882 (pupa_dl_init): Renamed to ...
28883 (pupa_dl_set_prefix): ... this.
28884 (pupa_dl_get_prefix): Declared.
28885
28886 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
28887 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
28888 unloaded.
28889 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
28890 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
28891
28892 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
28893 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
28894
28895 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28896
28897 * util/i386/pc/pupa-setup.c (setup): Define the internal
28898 function find_first_partition_start at the top level, because GCC
28899 3.0.x cannot compile internal functions in deeper scopes
28900 correctly.
28901 (find_root_device): Use lstat instead of stat.
28902 Don't follow symbolic links.
28903 Fix the path-constructing code.
28904
28905 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
28906 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
28907 by a BLKGETSIZE ioctl first, because block devices don't fill
28908 the member st_mode of the structure stat on Linux.
28909 [__linux__] (linux_find_partition): Use a temporary buffer
28910 REAL_DEV for the working space. Copy it to DEV before returning.
28911 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
28912 buffer cache consistent.
28913 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
28914 strncmp. The previous value was merely wrong.
28915 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
28916
28917 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
28918 FAT size is 12. The previous value was merely wrong.
28919
28920 * kern/main.c (pupa_main): Don't split the starting message from
28921 newlines.
28922
28923 * kern/term.c (pupa_putchar): Put CR after LF instead of before
28924 LF, because BIOS goes crazy about character attributes in this
28925 case.
28926
28927 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
28928
28929 * include/i386/pc/util/biosdisk.h: New file.
28930 * util/i386/pc/biosdisk.c: Likewise.
28931 * util/i386/pc/pupa-setup.c: Likewise.
28932
28933 * Makefile.in (INCLUDE_DISTFILES): Added
28934 include/pupa/i386/pc/util/biosdisk.h.
28935 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
28936 directory util/i386/pc.
28937 (install-local): Added a rule for sbin_UTILITIES.
28938 (uninstall): Likewise.
28939
28940 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
28941
28942 * util/misc.c (xrealloc): New function.
28943 (pupa_malloc): Likewise.
28944 (pupa_free): Likewise.
28945 (pupa_realloc): Likewise.
28946 (pupa_stop): Likewise.
28947 (pupa_putchar): Likewise.
28948
28949 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
28950
28951 * include/pupa/util/misc.h (xrealloc): Declared.
28952
28953 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
28954 macro.
28955 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
28956 (PUPA_BOOT_MACHINE_BPB_END): ... this.
28957
28958 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
28959 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28960
28961 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
28962 way should be implemented.
28963 [PUPA_UTIL] (pupa_fat_fini): Likewise.
28964
28965 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
28966 the size of NAME for safety.
28967 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
28968 0x88.
28969
28970 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
28971 (pupa_setup_SOURCES): Likewise.
28972
28973 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
28974
28975 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28976
28977 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
28978 bunch of pushl's from pusha, because this destroys the return
28979 value.
28980
28981 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
28982
28983 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
28984 This means that any missing prototypes could be fatal. Also, you
28985 must take care when writing assembly code. See the comments at
28986 the beginning of startup.S, for more details.
28987
28988 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
28989 compilation mechanism.
28990 (pupa_chainloader_real_boot): Likewise.
28991 (pupa_biosdisk_rw_int13_extensions): Likewise.
28992 (pupa_biosdisk_rw_standard): Likewise.
28993 (pupa_biosdisk_check_int13_extensions): Likewise.
28994 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
28995 (pupa_biosdisk_get_diskinfo_standard): Likewise.
28996 (pupa_get_memsize): Likewise.
28997 (pupa_get_mmap_entry): Likewise.
28998 (pupa_console_putchar): Likewise.
28999 (pupa_console_setcursor): Likewise.
29000 (pupa_getrtsecs): Use pushl instead of push.
29001
29002 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
29003 memory instead of the stack for a mmap entry, because some
29004 BIOSes may ignore the maximum size and overflow.
29005
29006 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
29007
29008 * genmk.rb (PModule#rule): Compile automatically generated
29009 sources with module-specific CFLAGS as well as other sources.
29010
29011 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
29012
29013 * configure.ac: Check ld.
29014 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
29015 respectively, before checking endianness and sizes.
29016
29017 * Makefile.in (LD): New variable.
29018
29019 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
29020
29021 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
29022
29023 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
29024
29025 * Changelog: New file.
29026