]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
[grub2.git] / ChangeLog
1 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
4 aliasing warning.
5 (grub_cmd_terminal_output): Likewise.
6 Reported and tested by: Grégoire Sutre.
7
8 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
9
10 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
11 warning.
12 Reported and tested by: Grégoire Sutre.
13
14 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15
16 * configure.ac: Do CPU substitution even if it's specified explicitly.
17 Reported and tested by: Alain Greppin.
18
19 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
20
21 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
22 Reported and tested by: Alain Greppin.
23
24 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
25
26 Satisfy some bison versions need for inttypes.h.
27
28 * grub-core/lib/posix_wrap/inttypes.h: New file.
29 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
30 (int16_t): Likewise.
31 (int32_t): Likewise.
32 (int64_t): Likewise.
33 Reported and tested by: Alain Greppin.
34
35 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
36
37 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
38 Silence spurious warning.
39 Reported and tested by: Alain Greppin.
40
41 2011-01-07 Szymon Janc <szymon@janc.net.pl>
42
43 * docs/grub.texi (Support automatic decompression): Update with xz
44 decompression support.
45
46 2011-01-07 Szymon Janc <szymon@janc.net.pl>
47
48 Improve loaders' kernel command line handling.
49
50 * grub-core/lib/cmdline.c: New file.
51 * include/grub/lib/cmdline.h: Likewise.
52 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
53 grub_create_loader_cmdline to create kernel command line.
54 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
55 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
56 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
57 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
58 (linux): Add lib/cmdline.c on common.
59
60 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
61
62 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
63 inopos might be unaligned.
64
65 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
66
67 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
68 endian transformations.
69 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
70 Based on report by: Doug Nazar.
71
72 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
73
74 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
75 array->members[i].start_sector.
76 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
77
78 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
79
80 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
81 Reported and tested by: Grégoire Sutre.
82
83 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
84
85 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
86 avoid causing test failures by clearing the screen.
87
88 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
89
90 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
91 Fix prefix check to handle the case where dir ends with a slash
92 (most significantly, "/" itself).
93 Reported by: Michael Vogt.
94
95 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
96
97 Run terminfo_cls on initing terminfo output to clear the screen and
98 move the cursor to (0,0).
99
100 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
101 Call grub_terminfo_output_init.
102 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
103 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
104 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
105
106 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
107
108 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
109 only when needed.
110
111 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
112
113 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
114 CTRL.
115
116 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
117
118 The E820 type 5 is BADRAM, not EXEC_CODE.
119
120 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
121 (GRUB_E820_BADRAM): New define.
122 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
123 into reserved. Propagate BADRAM.
124 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
125 (GRUB_E820_BADRAM): New define.
126
127 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
128
129 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
130 Ignore the memory post-4G.
131 (grub_relocator_firmware_alloc_region): Additional debug statement.
132
133 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
134
135 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
136 names.
137 Reported by: David Pravec.
138
139 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
140
141 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
142 BIOSes.
143
144 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
145
146 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
147 Prevent overflow.
148 (grub_reed_solomon_recover): Likewise.
149
150 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
151
152 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
153
154 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
155
156 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
157 variable.
158
159 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
160
161 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
162 descriptions of extract_legacy_entries_source and
163 extract_legacy_entries_configfile.
164 Reported by: Seung Soo, Ha.
165
166 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
167
168 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
169 on devices that do not implement function 0.
170
171 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
172
173 * grub-core/fs/hfsplus.c: Make parent unsigned.
174 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
175 overflows.
176 (grub_hfsplus_cmp_extkey): Likewise
177
178 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
179
180 * util/grub-install.in: Correctly use bootloader_id and not
181 GRUB_DISTRIBUTOR on efibootmgr line.
182
183 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
184
185 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
186
187 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
188
189 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
190 Xen and reorder menu item wording to make it clearer that this entry
191 will launch Xen. Print separate messages when loading Xen and
192 Linux.
193
194 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
195
196 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
197 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
198 loop in case of incorrect amiga partmap.
199
200 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
201
202 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
203 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
204 Reported by:EHeM.
205
206 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
207
208 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
209 spurious warning.
210 Reported by: crocket
211
212 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
213
214 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
215 Preload EFIemu.
216 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
217
218 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
219
220 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
221 is loaded
222 (grub_cmd_xnu_kextdir): Likewise.
223 (grub_cmd_xnu_splash): Likewise.
224
225 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
226
227 Avoid using Reed-Solomon with 0 redundancy.
228
229 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
230 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
231 or 0 redundancy.
232 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
233 (grub_reed_solomon_recover): Likewise.
234
235 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
236
237 Don't use disk subsystem in freebsd_boot.
238
239 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
240 (freebsd_biosdev): Likewise.
241 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
242 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
243
244 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
245
246 Handling of files of unknown size is currently limited. They can't be
247 used e.g. for initrd or modules. Moreover gzip handling of not
248 easily seekable files is buggy. Disable unknown file size for now. May
249 be inefficient but works.
250
251 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
252 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
253
254 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
255
256 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
257 floppy probe.
258
259 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
260
261 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
262
263 2010-12-25 Shea Levy <shlevy>
264
265 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
266
267 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
268
269 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
270 Windows Server 2008.
271 Reported by: Devin Giddings.
272
273 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
274
275 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
276 writing an error message because of async power management.
277 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
278 (grub_reboot): Likewise.
279
280 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
281
282 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
283 keep unit tests from failing when they shouldn't.
284
285 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
286
287 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
288 previous patch increased the size of the RS code by 20 bytes (at
289 least with gcc-4.4), so increase this by 20 bytes to match.
290 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
291
292 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
293
294 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
295 scratch area. Make sure to initialise chosen in standalone mode as
296 well as non-standalone.
297 Reported by: Robert Hooker and Andy Whitcroft.
298 Tested by: Andy Whitcroft.
299
300 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
301
302 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
303 constructing a new unescaped string and passing it to grub_xputs in
304 one go, rather than passing characters to grub_printf one at a time.
305
306 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
307
308 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
309 initialising utf16.
310
311 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
312
313 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
314 comment. Add an extra layer of quotation, requiring the output of
315 this function to be used in a printf format string.
316 (gettext_printf): New function.
317 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
318 Extract translatable strings from here-documents and use a temporary
319 variable instead, so that xgettext can find them.
320 * util/grub.d/10_kfreebsd.in: Likewise.
321 * util/grub.d/10_linux.in: Likewise.
322 * util/grub.d/20_linux_xen.in: Likewise.
323
324 * po/grub.d.sed: New file.
325 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
326 arguments. Set c-format flags on all strings extracted from
327 util/grub.d/ (xgettext refuses to include these itself for strings
328 it extracted from a shell file, but these really are c-format).
329
330 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
331
332 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
333 Avoid next pointing to nowhere.
334
335 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
336
337 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
338 rather than assuming than rootblock is exactly in the middle.
339 (grub_affs_label): Likewise.
340
341 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
342
343 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
344 reserved_first_sector to 0.
345 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
346 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
347 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
348
349 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
350
351 Fix handling of UTF-16 UDF labels.
352
353 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
354 (read_string): .. here.
355 (grub_udf_label): Use read_string.
356
357 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
358
359 * grub-core/normal/menu_entry.c (run): Execute commands from menu
360 editor under argument scope.
361 Reported by: Jordan Uggla
362
363 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
364
365 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
366
367 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
368
369 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
370 line, and other keys scroll an entire page (previous handling was
371 for \r and \n to scroll a page and other keys to scroll two lines).
372
373 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
374
375 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
376 Set ptrdest to correct get_physical_target_address rather than
377 incorrect get_virtual_current_address.
378
379 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
380
381 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
382 correct cat to grub_uint8_t * rather than grub_uint32_t *.
383
384 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
385
386 * .bzrignore: Ignore grub-core/rs_decoder.S.
387
388 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
389
390 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
391 .mo/.mo.gz opening sequence to ...
392 (grub_mofile_open_lang): ... here.
393 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
394 * util/grub.d/00_header.in (grub_lang): Include country part of
395 locale.
396 Reported by: Mario Limonciello.
397
398 2010-12-09 Robert Millan <rmh@gnu.org>
399
400 * NEWS: Document addition of ZFS support.
401
402 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
403
404 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
405 rather than `/ 2', as the latter requires -Wa,--divide which would
406 require bumping our minimum binutils version.
407
408 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
409
410 * util/grub-script-check.c (main): Print script line number on
411 error.
412
413 2010-12-01 Robert Millan <rmh@gnu.org>
414
415 * grub-core/fs/zfs/zfs.c: New file.
416 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
417 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
418 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
419 * grub-core/fs/zfs/zfsinfo.c: Likewise.
420
421 * include/grub/zfs/dmu.h: Likewise.
422 * include/grub/zfs/dmu_objset.h: Likewise.
423 * include/grub/zfs/dnode.h: Likewise.
424 * include/grub/zfs/dsl_dataset.h: Likewise.
425 * include/grub/zfs/dsl_dir.h: Likewise.
426 * include/grub/zfs/sa_impl.h: Likewise.
427 * include/grub/zfs/spa.h: Likewise.
428 * include/grub/zfs/uberblock_impl.h: Likewise.
429 * include/grub/zfs/vdev_impl.h: Likewise.
430 * include/grub/zfs/zap_impl.h: Likewise.
431 * include/grub/zfs/zap_leaf.h: Likewise.
432 * include/grub/zfs/zfs.h: Likewise.
433 * include/grub/zfs/zfs_acl.h: Likewise.
434 * include/grub/zfs/zfs_znode.h: Likewise.
435 * include/grub/zfs/zil.h: Likewise.
436 * include/grub/zfs/zio.h: Likewise.
437 * include/grub/zfs/zio_checksum.h: Likewise.
438
439 * Makefile.util.def: Build ZFS into libgrubmods.
440 * grub-core/Makefile.core.def: Build zfs.mod.
441
442 2010-11-30 Szymon Janc <szymon@janc.net.pl>
443
444 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
445 variable.
446 * grub-core/commands/wildcard.c (match_files): Likewise.
447
448 2010-11-30 Robert Millan <rmh@gnu.org>
449
450 * grub-core/loader/i386/bsd.c
451 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
452 whether kernel is loaded using grub_loader_is_loaded(), rather
453 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
454 certain error conditions.
455
456 2010-11-30 Robert Millan <rmh@gnu.org>
457
458 * grub-core/commands/echo.c: Include `<grub/term.h>'.
459 (grub_cmd_echo): Call grub_refresh() after printing a message.
460
461 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
462
463 Avoid using tricks for initialising endian variables.
464
465 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
466 Make const.
467 (GRUB_MOD_INIT): Don't byte-swap.
468 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
469 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
470 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
471 (grub_swap_bytes32_compile_time): Likewise.
472 (grub_cpu_to_le32_compile_time): Likewise.
473 (grub_cpu_to_le16_compile_time): Likewise.
474
475 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
476
477 * util/grub-setup.c (setup): Stop recommending --force. People who
478 understand the dangers of blocklists are able to find this option
479 anyway and the ones who don't shouldn't use it anyway.
480
481 2010-11-26 Robert Millan <rmh@gnu.org>
482
483 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
484 Update all users.
485
486 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
487
488 Fix LVM-on-RAID probing.
489
490 * util/grub-probe.c (probe): Remember which disk was detected as
491 RAID (perhaps an LVM physical volume). Use that disk's raidname
492 rather than that of the top-level disk.
493
494 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
495
496 Fix cmdline argument quotes for setparams command of menuentry
497 definitions.
498
499 * grub-core/commands/menuentry.c (setparams_prefix): Use single
500 quotes for arguments.
501 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
502 grub_strchrsub function instead.
503
504 * include/grub/misc.h (grub_strchrsub): New function.
505
506 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
507
508 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
509 effort by skipping "." and ".." entries up-front.
510 Suggested by: Michael Lazarev.
511
512 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
513
514 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
515 ldflags to ldadd, to fix link line ordering.
516 (none_decompress): Likewise.
517
518 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
519
520 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
521 platforms.
522 (grub-emu-lite): Remove kern/emu/cache.S.
523
524 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
525
526 * util/deviceiter.c (compare_devices): If the by-id link for a
527 device couldn't be resolved, fall back to sorting by the by-id link
528 rather than segfaulting.
529 Reported and tested by: Daniel Mierswa.
530
531 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
532
533 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
534 ldflags, to fix link line ordering.
535
536 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
537
538 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
539 linkers are picky about this.
540
541 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
542
543 * grub-core/Makefile.am (command.lst): Adjust sed expression
544 ordering so that extended and priority commands aren't treated as
545 ordinary commands.
546
547 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
548
549 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
550 Remove byte-swapping function calls, which are not valid in
551 structure initialisers.
552 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
553 non-const.
554 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
555 grub_gpt_partition_type_bios_boot.
556
557 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
558
559 Fix test program build on GNU/kFreeBSD.
560
561 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
562 $(LIBNVPAIR)' library dependencies.
563
564 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
565
566 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
567
568 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
569
570 * util/grub-install.in: Remove excessive quoting that broke
571 installations to RAID devices.
572
573 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
574
575 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
576 bootloader version instead of 0.
577
578 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
579
580 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
581 warning.
582
583 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
584
585 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
586 retrieve the metadat sector if size isn't known.
587 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
588
589 2010-11-18 Robert Millan <rmh@gnu.org>
590
591 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
592 with grub_memcmp().
593
594 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
595
596 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
597 arrow.
598 Reported by: Jordan Uggla.
599
600 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
601
602 Make better UTF compliant.
603
604 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
605 sequences as incorrect.
606 (grub_is_valid_utf8): Likewise.
607 (grub_utf8_to_ucs4): Likewise.
608 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
609 (grub_ucs4_to_utf8_alloc): Likewise.
610 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
611
612 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
613
614 Make legacy_source behave like source.
615
616 * grub-core/commands/legacycfg.c (legacy_file): Don't call
617 grub_show_menu.
618 (grub_cmd_legacy_source): Call grub_show_menu if needed.
619
620 2010-11-16 Colin Watson <cjwatson@debian.org>
621
622 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
623 (-Wunused implies -Wunused-parameter, but not vice versa).
624
625 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
626
627 * configure.ac: Make error messages less confusing by testing for
628 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
629 accepted, but produces a diagnostic if something else is wrong).
630
631 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
632
633 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
634 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
635 (now unused).
636 (grub_keyboard_controller_init)
637 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
638 read the initial state since controller isn't inited yet.
639
640 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
641
642 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
643 allocate_regbeg may need to create new chunk header.
644
645 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
646
647 Fix quoting in legacy parser.
648
649 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
650 single quotes.
651 (grub_legacy_parse): Likewise.
652 Reported by: Jordan Uggla.
653 Tested by: Jordan Uggla.
654
655 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
656
657 Don't add -lgcc on i386 and x86_64.
658
659 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
660 * conf/Makefile.common (LDADD_KERNEL): Likewise.
661 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
662
663 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
664
665 * configure.ac: Add -Wno-trampolines when supported.
666
667 2010-11-14 Modestas Vainius <modax@debian.org>
668
669 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
670 fakeraid.
671
672 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
673
674 Add generic logical block size support for UDF.
675
676 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
677 (GRUB_UDF_BLKSZ): Removed.
678 (struct grub_udf_data): New field "lbshift" to hold the logical block
679 size of the file system in log2 format. All users updated.
680 (sblocklist): Change type to unsigned.
681 (grub_udf_mount): Change type of "sblklist" to unsigned.
682 Move AVDP search before VRS recognition, because the latter requires
683 knowledge of the logical block size, which is detected during the
684 former.
685 Detect and validate logical block size during AVDP search, adding
686 support for block sizes 512, 1024 and 4096.
687 Make VRS recognition independent of block size.
688
689 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
690
691 Properly handle deleted files on UDF.
692
693 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
694 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
695 set.
696
697 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
698
699 Support reading files larger than 2 GiB.
700
701 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
702 "offset" to grub_off_t.
703 (grub_udf_read_file): Likewise for parameter "pos".
704
705 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
706
707 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
708 unavailable.
709 (Simple configuration): Refer to Changes from GRUB Legacy about
710 save_env availability.
711
712 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
713
714 * util/grub-install.in: Ignore empty partition table detection
715 instead of trying to include part_ module.
716
717 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
718
719 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
720 LVM on RAID support.
721
722 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
723
724 Properly define WORDS_BIGENDIAN in wrapped environments.
725
726 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
727 definition.
728 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
729
730 Reported by: Manoel Rebelo Abranches.
731 Tested by: Manoel Rebelo Abranches.
732
733 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
734
735 * util/grub-mkconfig.in: Fix quoting.
736
737 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
738
739 Support big ext2 files.
740
741 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
742 (grub_ext2_read_block): Support triple indirect blocks.
743 (grub_ext2_read_file): Use 64-bit types and read size_high.
744 (grub_ext2_open): Read size_high.
745 Reported by: Ximin Luo.
746 Tested by: Manoel Rebelo Abranches.
747
748 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
749
750 * util/grub-install.in: Handle filenames containing spaces.
751 Reported by: Jordan Uggla.
752 Tested by: Jordan Uggla.
753
754 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
755
756 * util/grub-mkconfig.in (grub_script_check): New variable.
757 Use grub_script_check instead of grub-script-check.
758 Reported by: Barry Jackson.
759
760 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
761
762 * docs/grub.texi (menu): Correct the order.
763 Reported by: D. Hugh Redelmeier.
764
765 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
766
767 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
768 jump.
769
770 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
771
772 * include/grub/elfload.h (grub_elf32_size): New parameter.
773 All users updated.
774 Return maximum segments alignment.
775 (grub_elf64_size): Likewise.
776 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
777 Return maximum segments alignment.
778 (grub_elf64_size): Likewise.
779 * grub-core/loader/powerpc/ieee1275/linux.c:
780 (grub_linux_claimmap_iterate): New function. Uses the
781 "available" property in the "memory" node for memory allocation
782 for kernel in the PowerPC loader.
783 (grub_linux_load32): Correctly find linux entry point offset.
784 (grub_linux_load64): Likewise.
785
786 2010-11-07 Robert Millan <rmh@gnu.org>
787
788 On mips-yeeloong, build with -march=loongson2f when this flag is
789 available (GCC >= 4.4).
790 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
791 `-march=mips3'.
792 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
793 or otherwise add -march=mips3.
794
795 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
796
797 Suppress shell expansion on echo '*' and echo "*" like cases.
798 Reported by: Jordan Uggla.
799
800 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
801 string arguments before shell expansion.
802 * tests/grub_cmd_echo.in: New testcases.
803
804 2010-11-07 Robert Millan <rmh@gnu.org>
805
806 * conf/mips-qemu-mips.rmk: Remove stale file from previous
807 transition.
808
809 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
810
811 * grub-core/kern/emu/hostdisk.c
812 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
813
814 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
815
816 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
817 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
818 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
819
820 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
821
822 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
823
824 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
825
826 * util/grub-install.in: Replace useless recomendation to pass
827 --modules with a recomendation to report a bug.
828
829 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
830
831 Properly register serial terminfo.
832 Reported by: Jordan Uggla
833
834 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
835 const.
836 (grub_serial_terminfo_output_template): Likewise.
837 (grub_cmd_serial): Register "serial" with terminfo.
838 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
839 grub_serial_terminfo_output.
840
841 2010-11-05 Robert Millan <rmh@gnu.org>
842
843 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
844 needed).
845
846 2010-11-05 Robert Millan <rmh@gnu.org>
847
848 On Yeeloong, pass machine type information to Linux.
849
850 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
851 (LOONGSON_MACHTYPE): New macro, set to
852 "machtype=lemote-yeeloong-2f-8.9inches".
853 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
854 additional argument to Linux.
855
856 2010-11-04 Robert Millan <rmh@gnu.org>
857
858 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
859 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
860 (its SATA disks are detected as slaveless IDE master drives on
861 kFreeBSD).
862 Reported by Carsten Aulbert.
863
864 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
865
866 * util/bin2h.c (main): Fix spelling error in generated output.
867
868 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
869
870 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
871
872 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
873
874 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
875 vga= option is supplied.
876
877 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
878
879 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
880 * util/grub.d/10_kfreebsd.in: Likewise.
881 * util/grub.d/10_linux.in: Likewise.
882 * util/grub.d/20_linux_xen.in: Likewise.
883
884 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
885
886 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
887 argument as an argument to no-argument option.
888
889 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
890
891 * util/grub.d/10_linux.in: Add missing load_video with explicit
892 GRUB_GFXPAYLOAD_LINUX.
893
894 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
895
896 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
897
898 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
899
900 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
901 elements with invlid index.
902 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
903 * grub-core/disk/raid.c (insert_array): Automatically reallocate
904 members.
905 * include/grub/raid.h (grub_raid_member): New struct.
906 (grub_raid_array): Transform devices and start_sector into usage of
907 grub_raid_member. All users updated
908 (allocated_devs): New member.
909
910 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
911
912 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
913 is modified
914
915 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
916
917 NetBSD build fix for getline function conflict from gnulib.
918
919 * Makefile.util.def (libgrubkern.a): New library for grub kernel
920 components that depend on gnulib headers.
921 (libgrubmods.a): Renamed from earlier libgrub.a.
922 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
923
924 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
925
926 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
927 install rather than creating a broken install.
928
929 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
930
931 * util/grub-setup.c (argp): Remove misleading example of installing to
932 a partition.
933
934 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
935
936 * util/grub-setup.c (setup): Clarify the error message.
937
938 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
939
940 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
941
942 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
943
944 * grub-core/kern/emu/misc.c
945 (grub_make_system_path_relative_to_its_root)
946 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
947
948 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
949
950 * grub-core/kern/emu/misc.c
951 (grub_make_system_path_relative_to_its_root): Revert r2882.
952
953 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
954
955 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
956 useless field head. All users updated.
957 (free_subchunk): Correct handling of IN_REGION subchunk.
958
959 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
960
961 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
962 (Supported kernels): Likewise.
963
964 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
965
966 Make mktemp invocations portable.
967
968 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
969 exit if mktemp fails.
970 * tests/grub_script_blockarg.in: Likewise.
971 * tests/partmap_test.in: Likewise.
972 * tests/util/grub-shell-tester.in: Likewise.
973 * tests/util/grub-shell.in: Likewise.
974 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
975 * Makefile.am: Likewise, and chain shell commands with `&&'
976 instead of ';'.
977 * util/grub-mkrescue.in: Use the same explicit template as above, and
978 exit if mktemp fails.
979
980 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
981
982 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
983 Linux kernel, reported by Dennis Schridde.
984
985 2010-10-17 Szymon Janc <szymon@janc.net.pl>
986
987 * grub-core/normal/auth.c (grub_auth_check_authentication):
988 Set-but-not-used variable removed.
989
990 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
991
992 * docs/grub.texi (GNU/Linux): Document APM unavailability with
993 32-bit linux protocol.
994
995 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
996
997 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
998 cursor shape for sanity.
999
1000 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1001
1002 * docs/grub.texi (Installation): Document buggy BIOS install.
1003
1004 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1005
1006 * docs/grub.texi (Installation): Indent.
1007
1008 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1009
1010 * util/grub-setup.c (setup): New parameter allow_floppy.
1011 (arguments): New member allow_floppy.
1012 (argp_parser): Handle --allow-floppy.
1013 (main): Pass allow_floppy.
1014 * util/grub-install.in: New option --allow-floppy passed though to
1015 grub-setup.
1016
1017 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1018
1019 * util/grub-install.in: Handle partitionless disks.
1020
1021 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1022
1023 * util/grub-setup.c (setup): Don't clean blocklists before readability
1024 verfification.
1025
1026 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1027
1028 * docs/grub.texi (Installation): Document embedding zone. Remove
1029 obsolete grub-install example.
1030
1031 2010-10-16 Szymon Janc <szymon@janc.net.pl>
1032
1033 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
1034 Set-but-not-used variable ifdef'ed.
1035 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
1036 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
1037 variable removed.
1038 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
1039 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
1040 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
1041 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
1042 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
1043 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
1044 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
1045 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
1046 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
1047 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
1048 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
1049 Likewise.
1050
1051 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1052
1053 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
1054 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
1055 enum value.
1056
1057 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1058
1059 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
1060 synonym to _S5_. Needed for some DSDTs.
1061
1062 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1063
1064 Userspace ACPI parser debugging.
1065
1066 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
1067 headers and add relevant defines. Don't include standard headers.
1068 (main) [GRUB_DSDT_TEST]: New function.
1069 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
1070 Don't declare functions.
1071
1072 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1073
1074 Remove dead grub_efi_mm_fini.
1075
1076 * grub-core/kern/efi/mm.c (allocated_page): Removed.
1077 (ALLOCATED_PAGES_SIZE): Likewise.
1078 (MAX_ALLOCATED_PAGES): Likewise.
1079 (allocated_pages): Likewise.
1080 (grub_efi_allocate_pages): Don't record allocated pages.
1081 (grub_efi_free_pages): Likewise.
1082 (grub_efi_mm_init): Likewise.
1083 (grub_efi_mm_fini): Removed.
1084
1085 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1086
1087 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
1088 (grub_efi_mm_init): Take into account the memory map size increase.
1089
1090 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
1093 (serial_hw_put): Wait based on real time rather than port reads. Don't
1094 roken ports.
1095 * include/grub/serial.h (grub_serial_port): New field broken.
1096
1097 2010-10-16 Robert Millan <rmh@gnu.org>
1098
1099 * grub-core/kern/emu/misc.c
1100 (grub_make_system_path_relative_to_its_root): Fix premature return
1101 when processing non-root ZFS filesystems.
1102 Reported by Sergio Talens-Oliag.
1103
1104 2010-10-15 Robert Millan <rmh@gnu.org>
1105
1106 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
1107 guarantee compressed ones are processed first.
1108
1109 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1110
1111 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
1112 grub_efiemu_autocore.
1113
1114 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1115
1116 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
1117 rather than 0x1b.
1118 (grub_console_getkey): Use correct jae opcode rather than ja.
1119
1120 2010-10-12 Robert Millan <rmh@gnu.org>
1121
1122 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
1123 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
1124 variable. All references updated.
1125
1126 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
1127
1128 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1129
1130 Correctly distinguish mdraid flavours.
1131
1132 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
1133 (insert_array): New argument raid.
1134 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
1135 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
1136 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
1137
1138 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
1141 handling of special keys.
1142
1143 2010-10-02 Aleš Nesrsta <starous@volny.cz>
1144
1145 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
1146 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
1147
1148 2010-10-02 Aleš Nesrsta <starous@volny.cz>
1149
1150 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
1151 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
1152 users updated.
1153 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
1154 Use right endpoint when querying descriptor.
1155
1156 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
1157
1158 Clear out 0x80 color bit on EFI.
1159 Tested by: decoder
1160 Reported by: decoder and meta tech.
1161
1162 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
1163 (grub_console_setcolorstate): Clear out 0x80 bit.
1164 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
1165 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
1166 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
1167
1168 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
1169
1170 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
1171 Set to "auto".
1172
1173 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
1174
1175 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
1176 mo_file after freeing.
1177
1178 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
1179
1180 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
1181
1182 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
1183
1184 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
1185 flags.
1186
1187 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
1188
1189 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
1190 usage.
1191
1192 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
1193
1194 Put terminfo into core on ieee1275 and yeeloong (needed for console).
1195
1196 * gentpl.py: New groups terminfoinkernel and terminfomodule.
1197 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
1198 and terminfo.h when needed.
1199 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
1200 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
1201 (terminfo): Enable only on terminfokernel.
1202 (extcmd): Likewise.
1203 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
1204 * include/grub/lib/arg.h: Likewise.
1205 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
1206 incorrect usage of ->.
1207
1208 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1209
1210 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
1211 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
1212
1213 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1214
1215 Fix coreboot compilation.
1216
1217 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
1218 Take VBE info into account even if only text is supported.
1219 (fill_vbe_info): Take into account the case when only VGA text
1220 is supported.
1221 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
1222 on coreboot, multiboot and qemu.
1223
1224 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1225
1226 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
1227 debug messages.
1228 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
1229
1230 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1231
1232 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
1233 parameters.
1234
1235 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1236
1237 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
1238 if they were BSD-style.
1239
1240 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1241
1242 * grub-core/boot/i386/pc/lnxboot.S: Replace
1243 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
1244 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
1245
1246 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1247
1248 Write embedding zone using Reed-Solomon.
1249
1250 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
1251 * grub-core/Makefile.am (rs_decoder.S): New target.
1252 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
1253 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
1254 (multiboot): Move to RS part.
1255 (post_reed_solomon): New label.
1256 (grub_boot_drive): Move to non-RS part since it's modified in memory
1257 on boot.
1258 Include rs_decoder.S.
1259 * grub-core/lib/reed_solomon.c: New file.
1260 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
1261 New definition.
1262 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
1263 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
1264 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
1265 * include/grub/partition.h (grub_partition_map): Change prototype of
1266 embed to allow returning additional sectors.
1267 * include/grub/reed_solomon.h: New file.
1268 * util/grub-setup.c (setup): Handle Reed-Solomon.
1269
1270 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
1271
1272 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
1273 i386 and x86-64 definedness tests.
1274
1275 2010-09-27 Yves Blusseau <blusseau@zetam.org>
1276
1277 Fix generation of kernel_syms.lst
1278
1279 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
1280 ASM_PREFIX
1281
1282 2010-09-26 Robert Millan <rmh@gnu.org>
1283
1284 Support degraded ZFS arrays in "grub-probe -t device" resolution.
1285
1286 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
1287 the pool is an array of devices, iterate through it and return the
1288 first device that passes a stat() test (instead of blindly returning
1289 the first one).
1290
1291 2010-09-26 Robert Millan <rmh@gnu.org>
1292
1293 Build fixes for GNU/kFreeBSD.
1294
1295 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
1296 to programs that require ZFS conversion.
1297 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
1298 kernels that don't have FLOPPY_MAJOR.
1299
1300 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
1301
1302 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
1303
1304 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
1305
1306 Fix grub-emu build.
1307
1308 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
1309 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
1310 mdraid09 and mdraid1x.
1311
1312 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
1313
1314 Re-enable grub-extras.
1315
1316 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
1317 avoid confusing Automake. Run autogen only twice, once for the top
1318 level and once for grub-core. Add Makefile.util.def and
1319 Makefile.core.def from extra modules to the appropriate autogen
1320 invocations. If Makefile.common exists in an extra module, include
1321 it in both Makefile.util.am and grub-core/Makefile.core.am;
1322 similarly, include any Makefile.util.common file in Makefile.util.am
1323 and any Makefile.core.common file in grub-core/Makefile.core.am.
1324 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
1325 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
1326 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
1327 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
1328
1329 * gentpl.py (gvar_add): Turn GVARS into a set.
1330 (global_variable_initializers): Sort global variables on output.
1331 (vars_init): New function.
1332 (first_time): Likewise.
1333 (library): Ensure that non-global variable initialisations are
1334 emitted before the first time we emit code for a library block.
1335 Append to variables rather than setting them. Only emit
1336 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
1337 each conditional path.
1338 (program): installdir() emits an Autogen macro, so must be passed to
1339 var_add rather than gvar_add.
1340 (data): Likewise.
1341 (script): Likewise.
1342 (rules): New function, centralising handling for different target
1343 types. Set up Guile association lists for first_time and vars_init,
1344 and send most output to a diversion so that variable initialisations
1345 can be emitted first.
1346 (module_rules): Use new rules function.
1347 (kernel_rules): Likewise.
1348 (image_rules): Likewise.
1349 (library_rules): Likewise.
1350 (program_rules): Likewise.
1351 (script_rules): Likewise.
1352 (data_rules): Likewise.
1353
1354 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
1355
1356 * .bzrignore: Add contrib and grub-core/contrib. Remove
1357 grub-core/Makefile.gcry.am.
1358
1359 2010-09-24 Yves Blusseau <blusseau@zetam.org>
1360
1361 * grub-core/lib/LzFind.c: Add missing include.
1362 * grub-core/lib/LzmaEnc.c: Likewise.
1363 * grub-core/script/lexer.c: Likewise.
1364 * grub-core/script/yylex.l: Likewise.
1365 * util/grub-macho2img.c: Likewise.
1366 * util/grub-menulst2cfg.c: Likewise.
1367 * util/grub-mklayout.c: Likewise.
1368 * util/grub-mkpasswd-pbkdf2.c
1369 * util/grub-mkrelpath.c: Likewise.
1370 * util/resolve.c: Likewise.
1371
1372 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
1373
1374 * Makefile.util.def (example_unit_test): Add
1375 grub-core/gnulib/libgnu.a.
1376
1377 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
1378
1379 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
1380
1381 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1382
1383 Support xz compression on yeeloong.
1384
1385 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
1386 * configure.ac: Check for LZMA.
1387 * grub-core/Makefile.core.def (xz_decompress): New target.
1388 (none_decompress): Likewise.
1389 * grub-core/boot/decompressor/minilib.c: New file.
1390 * grub-core/boot/decompressor/none.c: Likewise.
1391 * grub-core/boot/decompressor/xz.c: Likewise.
1392 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
1393 * grub-core/kern/mips/cache_flush.S: Likewise.
1394 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
1395 * grub-core/kern/mips/startup.S: Move first stage to ...
1396 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
1397 nomacro.
1398 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
1399 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
1400 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
1401 Allocate statically.
1402 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
1403 Allocate statically or use scratch. Don't check CRC32.
1404 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
1405 Allocate statically. Don't check CRC32.
1406 * include/grub/decompressor.h: New file.
1407 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
1408 Removed.
1409 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
1410 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
1411 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
1412 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
1413 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
1414 * util/grub-mkimage.c (grub_compression_t): New type.
1415 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
1416 (image_target_desc): New field default_compression.
1417 (image_targets): Adjust yeeloong targets.
1418 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
1419 (compress_kernel): New parameter comp.
1420 (generate_image): Likewise. Handle new compression case.
1421 (options): New option --compression
1422 (help): Likewise.
1423 (main): Handle new option.
1424
1425 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
1426
1427 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
1428
1429 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
1430
1431 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
1432 typo in __i386__ conditional.
1433
1434 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1435
1436 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
1437 include.
1438
1439 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1440
1441 Implement EFI and ACPI multiboot2 extensions.
1442
1443 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
1444 new tags as supported.
1445 (acpiv2_size): New function.
1446 (grub_multiboot_get_mbi_size): Take new tags into account.
1447 (grub_multiboot_make_mbi): Add new tags.
1448 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
1449
1450 2010-09-21 Aleš Nesrsta <starous@volny.cz>
1451
1452 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
1453 Added missing configuration of USB device.
1454
1455 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1456
1457 * grub-core/normal/menu_entry.c (run): Make sure we always return
1458 a value.
1459
1460 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1461
1462 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
1463 NumberOfPages is UINT64 according to the UEFI specification, not
1464 UINTN. Fix printf format.
1465
1466 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1467
1468 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
1469 `err' to grub_usb_err_t.
1470 Reported and tested by: KESHAV P.R.
1471
1472 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1473
1474 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
1475 tpart non-const, so that we can assign to it. (Since this is a
1476 typedef, the constness refers to the pointer rather than what it
1477 points to.)
1478
1479 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1480
1481 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
1482 $(top_srcdir)/grub-core/gnulib as well as
1483 $(top_builddir)/grub-core/gnulib.
1484 Reported by: KESHAV P.R.
1485
1486 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1487
1488 * util/grub-install.in: Fix the bootloader ID option to be
1489 consistently --bootloader-id, not --bootloader_id.
1490 Reported by: KESHAV P.R.
1491
1492 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1493
1494 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
1495 check hash checksum." consistently translatable.
1496
1497 2010-09-21 Yves Blusseau <blusseau@zetam.org>
1498
1499 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
1500 $(top_builddir).
1501
1502 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1503
1504 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
1505 (GRUB_MOD_INIT): Register sha1sum command.
1506 (GRUB_MOD_FINI): Unregister sha1sum command.
1507
1508 2010-09-21 Yves Blusseau <blusseau@zetam.org>
1509
1510 Keep boot and grub directory names in sync with utils scripts
1511
1512 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
1513 * config.h.in: Add previous macros.
1514 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
1515 * util/grub-install.in: Use $bootdir and $grubdir variables.
1516
1517 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1518
1519 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
1520 convert partition names to disk names if the new `convert' parameter
1521 is set.
1522 (grub_util_biosdisk_get_grub_dev): If opening the disk device
1523 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
1524 disk in its own right. This can happen with Xen disk images.
1525
1526 2010-09-21 Yves Blusseau <blusseau@zetam.org>
1527
1528 * util/grub-editenv.c: Update strings to avoid warnings when generating
1529 grub.pot file.
1530 * util/grub-setup.c: Likewise.
1531
1532 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
1533
1534 * configure.ac: Change version to 1.99~beta0.
1535
1536 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
1537
1538 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
1539 Add BADRAM.
1540 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
1541 Likewise.
1542 * include/multiboot.h: Resynced with specification.
1543 * include/multiboot2.h: Likewise.
1544
1545 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1546
1547 Fix po directory handling.
1548
1549 * configure.ac: Create po/Makefile.in rather than po/Makefile.
1550 * grub-core/gnulib/Makefile.am: Import gettext module.
1551 * m4/gnulib-cache.m4: Likewise.
1552 * m4/gnulib-comp.m4: Likewise.
1553 * m4/gettext.m4: New file, from gnulib.
1554 * m4/glibc2.m4: Likewise.
1555 * m4/iconv.m4: Likewise.
1556 * m4/intdiv0.m4: Likewise.
1557 * m4/intl.m4: Likewise.
1558 * m4/intldir.m4: Likewise.
1559 * m4/intlmacosx.m4: Likewise.
1560 * m4/intmax.m4: Likewise.
1561 * m4/inttypes-pri.m4: Likewise.
1562 * m4/lcmessage.m4: Likewise.
1563 * m4/lib-ld.m4: Likewise.
1564 * m4/lib-link.m4: Likewise.
1565 * m4/lib-prefix.m4: Likewise.
1566 * m4/lock.m4: Likewise.
1567 * m4/nls.m4: Likewise.
1568 * m4/po.m4: Likewise.
1569 * m4/printf-posix.m4: Likewise.
1570 * m4/progtest.m4: Likewise.
1571 * m4/threadlib.m4: Likewise.
1572 * m4/uintmax_t.m4: Likewise.
1573 * m4/visibility.m4: Likewise.
1574 * po/Makefile.am: Remove.
1575 * po/Makefile.in.in: New file, from gettext.
1576 ($(DOMAIN).pot-update): Support POTFILES-shell.
1577 * po/Makevars: New file.
1578 * po/POTFILES-shell: Rename to ...
1579 * po/POTFILES-shell.in: ... this. Update.
1580 * po/POTFILES: Rename to ...
1581 * po/POTFILES.in: ... this. Update.
1582 * po/Rules-quot: New file, from gettext.
1583 * po/boldquot.sed: Likewise.
1584 * po/en@boldquot.header: Likewise.
1585 * po/en@quot.header: Likewise.
1586 * po/insert-header.sin: Likewise.
1587 * po/quot.sed: Likewise.
1588 * po/remove-potcdate.sin: Likewise.
1589
1590 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1591
1592 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
1593
1594 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1595
1596 * util/grub.d/20_linux_xen.in: Use submenus.
1597
1598 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1599
1600 Support submenus.
1601
1602 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
1603 parameter submenu. All users updated.
1604 * grub-core/normal/main.c (free_menu): Rename to ...
1605 (grub_normal_free_menu): ... this. Made global.
1606 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
1607 if requested.
1608 * grub-core/normal/menu_entry.c (screen): New field submenu.
1609 (make_screen): Set submenu.
1610 (run): Open new context if requested.
1611 * include/grub/menu.h (grub_menu_entry): New field submenu.
1612 * include/grub/normal.h (grub_normal_free_menu): New proto.
1613
1614 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1615
1616 Menu entries extractor.
1617
1618 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
1619 variants.
1620 (GRUB_MOD_INIT): Register new variants.
1621 (GRUB_MOD_FINI): Unregister new variants.
1622 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
1623 into grub_cmd_legacy_source.
1624 (grub_cmd_legacy_source): Implement extractor variants.
1625 (GRUB_MOD_INIT): Register new variants.
1626 (GRUB_MOD_FINI): Unregister new variants.
1627 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
1628 as an extractor.
1629 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
1630 search as an extractor.
1631 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
1632 test as an extractor.
1633 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
1634 as an extractor.
1635 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
1636 (grub_env_new_context): New function.
1637 (grub_env_context_open): Likewise.
1638 (grub_env_extractor_open): Likewise.
1639 (grub_env_extractor_close): Likewise.
1640 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
1641 grub_extractor_level.
1642 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
1643 * include/grub/env.h (grub_env_extractor_open): New proto.
1644 (grub_env_extractor_close): Likewise.
1645 * include/grub/normal.h (grub_extractor_level): New external variable.
1646
1647 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1648
1649 Make cutmem accept a region specification.
1650 Suggested by: Samuel Thibault
1651
1652 * grub-core/mmap/mmap.c (parsemem): New function.
1653 (grub_cmd_cutmem): Handle new arguments.
1654
1655 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 New command cutmem.
1658
1659 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
1660 (GRUB_MOD_INIT): Register new command.
1661 (GRUB_MOD_FINI): Unregister new command.
1662
1663 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1664
1665 Support some annoying BSD and Minix subpartitions.
1666
1667 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
1668 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
1669 Properly handle concatenation.
1670 * grub-core/kern/device.c (grub_device_iterate): Likewise.
1671 * grub-core/normal/completion.c (iterate_partition): Likewise.
1672 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
1673 contain partition. All users updated.
1674 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
1675 struct.
1676 (grub_openbsdlabel_partition_map): Likewise.
1677 (bsdlabel_partition_map_iterate): Rename to ..
1678 (iterate_real): ... this. New arguments sector, freebsd and pmap.
1679 (bsdlabel_partition_map_iterate): New function.
1680 (netopenbsdlabel_partition_map_iterate): Likewise.
1681 (netbsdlabel_partition_map_iterate): Likewise.
1682 (openbsdlabel_partition_map_iterate): Likewise.
1683 (GRUB_MOD_INIT): Register new partmaps.
1684 (GRUB_MOD_FINI): Unregister new partmaps.
1685 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
1686 (grub_partition_msdos_iterate): ... this. All users updated.
1687 Don't support embedding other than in a minix partition.
1688 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
1689 proto.
1690 * include/grub/partition.h (grub_partition): New field msdostype.
1691 * util/grub-install.in: Handle openbsd and netbsd types being in
1692 part_bsd module.
1693
1694 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1695
1696 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
1697
1698 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
1699 * grub-core/Makefile.core.def (mdraid): Renamed to ...
1700 (mdraid09): ... this.
1701 (mdraid1x): New module.
1702 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
1703 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
1704
1705 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1706
1707 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
1708 vsprintf.
1709
1710 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1711
1712 * grub-core/commands/efi/lsefimmap.c: Correct header.
1713 * NEWS: Update.
1714
1715 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1716
1717 * util/grub-editenv.c (argp_parser): Don't pass translated strings
1718 as printf format strings; the translations might contain '%' which
1719 could cause a crash.
1720 (main): Likewise.
1721 * util/grub-fstest.c (argp_parser): Likewise.
1722 * util/grub-setup.c (argp_parser): Likewise.
1723 (main): Likewise.
1724
1725 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1726
1727 Use argp in grub-fstest.
1728
1729 * util/grub-fstest.c: Don't include getopt.h.
1730 Include argp.h.
1731 (root): New variable.
1732 (args_count): Likewise.
1733 (nparm): Likewise.
1734 (num_disks): Likewise.
1735 (images): Likewise.
1736 (cmd): Likewise.
1737 (debug_str): Likewise.
1738 (args): Likewise.
1739 (options): Transformed to argp.
1740 (usage): Removed.
1741 (main): Split argument parsing into ...
1742 (argp_parser): ... this. Changed to argp format.
1743 (argp): New variable.
1744 (main): Use argp_parse.
1745
1746 2010-09-20 Tristan Gingold <gingold@free.fr>
1747 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
1748 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1749
1750 * grub-core/commands/efi/lsefimmap.c: New file.
1751 * grub-core/Makefile.core.def (lsefimmap): New module.
1752 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
1753
1754 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1755
1756 Pause the execution (10s max) if any errors are displayed so the user
1757 has a chance to see them.
1758
1759 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
1760 (grub_print_error): Increment grub_err_printed_errors.
1761 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
1762 execution if any errors were displayed.
1763 (show_menu): Remove old code for pause.
1764 * grub-core/normal/menu_entry.c (run): Likewise.
1765 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
1766 users updated.
1767 (grub_normal_get_char_counter): Likewise.
1768 * include/grub/err.h (grub_err_printed_errors): New external variable.
1769 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
1770
1771 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1772
1773 Support multiboot VBE info.
1774
1775 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
1776 Take VBE info into account.
1777 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
1778 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
1779 Call fill_vbe_info when appropriate.
1780 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
1781 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
1782 as supported.
1783 (grub_multiboot_get_mbi_size): Take new tags into account.
1784 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
1785 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
1786 Call fill_vbe_tag when appropriate.
1787 (grub_multiboot_make_mbi): Properly align tags.
1788 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
1789 function.
1790 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
1791 proto.
1792 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
1793
1794 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1795
1796 Suport manual terminal geometry specification.
1797
1798 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
1799 Save state in grub_ofconsole_terminfo_output.
1800 (grub_ofconsole_term): Use grub_terminfo_getwh.
1801 (grub_ofconsole_getwh): Removed.
1802 * grub-core/term/serial.c (grub_serial_getwh): Removed.
1803 (grub_serial_term): Use grub_terminfo_getwh.
1804 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
1805 (options): New struct.
1806 (OPTION_*): New enum.
1807 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
1808 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
1809 width and height.
1810 (grub_terminfo_getwh): New proto.
1811 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
1812
1813 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1814
1815 Handle legacy "terminal" command.
1816
1817 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
1818 and FLAG_TERMINAL.
1819 (legacy_commands): Add terminal and title.
1820 (grub_legacy_parse): Handle terminal. Simplify title handling.
1821
1822 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1823
1824 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
1825 parameters overflow.
1826
1827 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1828
1829 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
1830 widthspec.h.
1831
1832 * docs/grub.texi (Shell-like scripting): Document `!'.
1833 (Network): Simplify using new i386-pc-pxe format. Mention
1834 grub-mknetdir.
1835
1836 * NEWS: Update.
1837
1838 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1839
1840 * Makefile.am (SUBDIRS): Restore "."; it's important to force
1841 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
1842 when needed.
1843
1844 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1845
1846 * grub-core/commands/efi/lsefisystab.c: Correct header.
1847 * grub-core/commands/efi/lssal.c: Likewise.
1848 * grub-core/commands/testload.c: Likewise.
1849
1850 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1851
1852 * util/grub-mkrescue.in: Add explicit root argument to --set to
1853 prevent the UUID being interpreted as an argument to --set (matches
1854 previous change to prepare_grub_to_access_device).
1855
1856 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1857
1858 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
1859 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
1860 the verbosity of later #ifs.
1861 (find_partition_start): Define this function on FreeBSD too.
1862 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
1863 function.
1864 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
1865 on FreeBSD.
1866
1867 2010-09-20 Yves Blusseau <blusseau@zetam.org>
1868
1869 * util/grub-editenv.c: Use argp instead of getopt.
1870
1871 2010-09-20 Yves Blusseau <blusseau@zetam.org>
1872
1873 * util/grub-setup.c: Use argp instead of getopt.
1874
1875 2010-09-20 Yves Blusseau <blusseau@zetam.org>
1876
1877 Use gnulib-tool to create gnulib source files.
1878
1879 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
1880 grub-core/gnulib directories
1881 * .bzignore: Add **/.deps and autogenerated gnulib files
1882 * configure.ac: Assign auxiliary directory to build-aux, add invocation
1883 of gnulib macros, add grub-core/gnulib/Makefile
1884 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
1885 include m4 directory to aclocal.
1886 * Makefile.util.def: Remove direct compilation of gnulib source files
1887 and use the new grub-core/gnulib/libgnu.a.
1888 * build-aux/config.rpath: move config.rpath from top directory to
1889 build-aux
1890 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
1891 in gnulib headers
1892 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
1893 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
1894 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
1895 header.
1896 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
1897 string.
1898
1899 2010-09-20 Yves Blusseau <blusseau@zetam.org>
1900
1901 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
1902 grub-core/genmod.sh and grub-core/gensyminfo.sh
1903
1904 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
1905
1906 Add a test for echo command options.
1907
1908 * tests/grub_cmd_echo.in: New test.
1909 * Makefile.util.def: Rules for new test.
1910
1911 2010-09-20 Szymon Janc <szymon@janc.net.pl>
1912
1913 Remove crc.mod and move crc command to hashsum.mod.
1914 Remove lib/crc.c - users updated to use gcrypt implementation.
1915
1916 * grub-core/commands/crc.c: Removed.
1917 * grub-core/Makefile.core.def (crc): Module removed.
1918 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
1919 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
1920 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
1921 * grub-core/lib/crc.c: Removed.
1922 * include/grub/lib/crc.h: Removed.
1923 * Makefile.util.def (crc): Remove lib/crc.c
1924 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
1925 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
1926 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
1927 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
1928 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
1929 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
1930
1931 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1932
1933 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
1934
1935 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1936
1937 Split config.h for util and core.
1938
1939 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
1940 (ADDR32): Likewise.
1941 (DATA32): Likewise.
1942 (BSS_START_SYMBOL): Likewise.
1943 (END_SYMBOL): Likewise.
1944 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
1945 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
1946 * config.h.in: New file.
1947 * configure.ac: Use config-util.h as config define file.
1948 Rename MACHINE into GRUB_MACHINE. All users updated.
1949 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
1950 updated.
1951 (NESTED_FUNC_ATTR): Likewise.
1952 Substitue new variables.
1953 (COND_HAVE_ASM_USCORE): New conditional.
1954 * grub-core/Makefile.am (ASM_PREFIX): New variable.
1955 (kernel_syms.lst): Use ASM_PREFIX.
1956 * grub-core/kern/emu/console.c: Include config-util.h.
1957 * grub-core/kern/emu/misc.c: Likewise.
1958 * grub-core/kern/emu/mm.c: Likewise.
1959 * include/grub/emu/misc.h: Likewise.
1960 * include/grub/libgcc.h: Likewise.
1961
1962 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1963
1964 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
1965 constants usage.
1966 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
1967 Fix GRUB_TERM_KEY_* constants usage.
1968 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
1969
1970 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1971
1972 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
1973 print pointer.
1974 * grub-core/bus/usb/uhci.c: Remove empty define.
1975 (grub_uhci_check_transfer): Add missing cast.
1976 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
1977 print pointer.
1978 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
1979 PRIuGRUB_SIZE.
1980 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
1981
1982 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1983
1984 * grub-core/Makefile.core.def (legacycfg): Add
1985 lib/i386/pc/vesa_modes_table.c on emu.
1986
1987 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
1988
1989 Reduce number of temporary files generated by build system.
1990
1991 * grub-core/gencmdlist.sh: Removed.
1992 * grub-core/genfslist.sh: Removed.
1993 * grub-core/genhandlerlist.sh: Removed.
1994 * grub-core/genmodsrc.sh: Removed.
1995 * grub-core/genpartmaplist.sh: Removed.
1996 * grub-core/genparttoollist.sh: Removed.
1997 * grub-core/gentermiinallist.sh: Removed.
1998 * grub-core/genvideolist.sh: Removed.
1999
2000 * grub-core/genmod.sh.in: New file.
2001 * grub-core/gensyminfo.sh.in: New file.
2002
2003 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
2004 * conf/Makefile.extra-dist: Update with new files.
2005 * gentpl.py: Remove rules related to unnecessary temporary files.
2006 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
2007 and und-* files.
2008 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
2009 genmod.sh scripts.
2010 * grub-core/bus/usb/uhci.c: Remove empty #define.
2011 * grub-core/genmoddep.awk: Updated with new syminfo format.
2012 * util/bash-completion.d/Makefile.am: Add config.log to
2013 CLEANFILES.
2014
2015 2010-09-19 Yves Blusseau <blusseau@zetam.org>
2016
2017 * Makefile.util.def: Add forgotten $(LIBINTL) library.
2018
2019 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
2020
2021 * util/grub-mkconfig.in: Check the config script for syntax errors
2022 before saving.
2023
2024 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
2025 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 * Makefile.util.def (grub-install): Use util/grub-install.in on all
2028 platforms.
2029 * util/grub-install.in: Add EFI and IEEE1275 support.
2030 * util/i386/efi/grub-install.in: Removed.
2031 * util/ieee1275/grub-install.in: Likewise.
2032
2033 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2034
2035 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
2036 (grub_cmd_cmosclean): Likewise.
2037 (GRUB_MOD_INIT): Register command cmosclean.
2038 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
2039 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
2040
2041 2010-09-18 Carles Pina i Estany <carles@pina.cat>
2042 2010-09-18 Aleš Nesrsta <starous@volny.cz>
2043 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2044
2045 Add keyboard layouts support.
2046
2047 * Makefile.util.def (grub-mklayout): New file.
2048 (grub-kbdcomp): New script.
2049 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
2050 Add keyboard_layouts.h.
2051 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
2052 commands/boot.c on yeeloong.
2053 (keylayouts): New module.
2054 * grub-core/bus/usb/ohci.c
2055 * grub-core/bus/usb/uhci.c
2056 * grub-core/bus/usb/usbhub.c (rescan): New variable.
2057 (grub_usb_add_hub): Poll interrupt pipe for device handling.
2058 (attach_root_port): Likewise.
2059 (poll_nonroot_hub): Likewise.
2060 (grub_usb_poll_devices): Likewise.
2061 (detach_device): Close transfer.
2062 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
2063 function.
2064 (grub_usb_bulk_setup_readwrite): Likewise.
2065 (grub_usb_bulk_finish_readwrite): Likewise.
2066 * grub-core/commands/keylayouts.c: New file.
2067 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
2068 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
2069 aliases.
2070 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
2071 support scancode 2.
2072 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
2073 * include/grub/keyboard_layouts.h: New file.
2074 * util/grub-mklayout.c: New file.
2075 * util/grub-kbdcomp.in: Likewise.
2076
2077 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 Unify memory types.
2080
2081 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
2082 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
2083 types.
2084 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
2085 (grub_upper_mem): Likewise.
2086 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
2087 * include/grub/memory.h (grub_memory_type_t): New enum.
2088 All users updated.
2089
2090 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2091
2092 * grub-core/Makefile.core.def (lsapm): New module.
2093 * grub-core/commands/i386/pc/lsapm.c: New file.
2094 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
2095 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
2096 Likewise.
2097 * include/grub/i386/pc/apm.h: New file.
2098 * include/multiboot.h (multiboot_apm_info): New struct.
2099
2100 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2101
2102 GRUB-legacy configuration file support.
2103
2104 * Makefile.util.def (grub-menulst2cfg): New util.
2105 * docs/man/grub-menulst2cfg.h2m: New file.
2106 * grub-core/Makefile.core.def (legacycfg): New module.
2107 * grub-core/commands/legacycfg.c: New file.
2108 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
2109 (grub_normal_add_menu_entry): ... this.
2110 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
2111 (grub_normal_set_password): ...this.
2112 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
2113 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
2114 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
2115 * grub-core/lib/legacy_parse.c: New file.
2116 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
2117 * include/grub/i386/pc/vesa_modes_table.h: New file.
2118 * include/grub/legacy_parse.h: Likewise.
2119 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
2120 * util/grub-menulst2cfg.c: New file.
2121
2122 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
2123
2124 * grub-core/kern/emu/hostdisk.c
2125 (convert_system_partition_to_system_disk): Initialise node.
2126
2127 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
2128
2129 * grub-core/kern/emu/hostdisk.c
2130 (convert_system_partition_to_system_disk): Fix devmapper memory pool
2131 leak.
2132 Reported and based on patch by: Modestas Vainius.
2133
2134 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
2135
2136 Fix DM-RAID probing with recent versions of device-mapper udev
2137 rules.
2138
2139 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
2140 canonicalise device paths under /dev/mapper/.
2141 (convert_system_partition_to_system_disk): Compare the
2142 uncanonicalised path to /dev/mapper/ rather than the canonicalised
2143 path, since device nodes under /dev/mapper/ are often symlinks.
2144
2145 2010-09-17 Yves Blusseau <blusseau@zetam.org>
2146
2147 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
2148
2149 2010-09-16 Yves Blusseau <blusseau@zetam.org>
2150
2151 * configure.ac: Avoid some annoying error messages if freetype-config
2152 program is not found.
2153
2154 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
2155
2156 Support RAID on virtio devices, and others.
2157
2158 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
2159 Rename to ...
2160 [__MINGW32__] (grub_find_device): ... this.
2161 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
2162 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
2163 reasonable default if dir is NULL.
2164 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
2165 ...
2166 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
2167 (grub_guess_root_device): Update callers.
2168 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
2169
2170 * util/raid.c (grub_util_getdiskname): Remove.
2171 (grub_util_raid_getmembers): Use grub_find_device rather than
2172 grub_util_getdiskname.
2173
2174 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
2175
2176 * docs/grub.texi (serial): Remove obsolete comment about GRUB
2177 needing to be compiled with serial support.
2178 (ls): Indicate that multiple files are accepted.
2179 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
2180 indicate that multiple files are accepted.
2181
2182 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
2183
2184 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
2185 libgrub_a_init.c, and util/bash-completion.d/grub.
2186
2187 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
2188
2189 * util/grub-setup.c (setup): Fix incorrect container semantics.
2190
2191 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
2192
2193 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
2194 misusage.
2195 Reported by: J. Nick Terry
2196
2197 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
2198
2199 Move embedding routines to partmap sources files.
2200
2201 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
2202 [GRUB_UTIL]: New variable.
2203 (gpt_partition_map_iterate): Set part.parent.
2204 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
2205 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
2206 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
2207 New function.
2208 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
2209 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
2210 (grub_partition_map) [GRUB_UTIL]: New field embed.
2211 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
2212 (setup): Use ->embed.
2213
2214 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
2215
2216 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
2217 function.
2218 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
2219 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
2220
2221 2010-09-15 Yves Blusseau <blusseau@zetam.org>
2222
2223 Add function to get completions from usage.
2224
2225 * util/bash-completion.d/grub-completion.bash.in: Add function to get
2226 completions from usage. Use LC_ALL=C to get options properly.
2227
2228 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
2229
2230 * grub-core/gnulib/basename-lgpl.c: Imported.
2231 * grub-core/gnulib/basename.c: Likewise.
2232 * grub-core/gnulib/dirname-lgpl.c: Likewise.
2233 * grub-core/gnulib/dirname.c: Likewise.
2234 * grub-core/gnulib/dirname.h: Likewise.
2235 * grub-core/gnulib/stripslash.c: Likewise.
2236
2237 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
2238
2239 * grub-core/gnulib/error.c: Resynced.
2240 * grub-core/gnulib/getopt.c: Likewise.
2241 * grub-core/gnulib/getopt_int.h: Likewise.
2242 * grub-core/gnulib/regex.h: Likewise.
2243 * grub-core/gnulib/regex_internal.c: Likewise.
2244 * grub-core/gnulib/regex_internal.h: Likewise.
2245
2246 2010-09-15 Szymon Janc <szymon@janc.net.pl>
2247
2248 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
2249 CRC calculations and validity checks.
2250 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
2251 calculations.
2252
2253 2010-09-15 Szymon Janc <szymon@janc.net.pl>
2254
2255 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
2256
2257 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2258
2259 Fix incorrect echo options handling.
2260 Reported by: Yves Blusseau.
2261
2262 * include/grub/command.h (grub_command_flags_t): New flags
2263 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
2264 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
2265 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
2266
2267 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2268
2269 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
2270 users updated.
2271 (GRUB_COMMAND_FLAG_MENU): Likewise.
2272 (GRUB_COMMAND_FLAG_BOTH): Likewise.
2273 (GRUB_COMMAND_FLAG_TITLE): Removed.
2274 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
2275 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
2276 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
2277 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
2278 (grub_command_flags_t): New enum. All users updated.
2279
2280 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
2281
2282 Fix solaris compilation.
2283
2284 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
2285 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
2286 (grub-emu-list): Likewise.
2287
2288 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2289
2290 Remove deprecated root command.
2291
2292 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
2293 updated.
2294
2295 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2296
2297 * util/i386/pc/grub-setup.c: Merge this ...
2298 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
2299 * util/grub-setup.c: ... into this.
2300 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
2301 New struct.
2302
2303 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2304
2305 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
2306 possible.
2307
2308 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2309
2310 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
2311 allocate p.
2312
2313 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2314
2315 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
2316 explicit root argument to set to prevent UUID to be interpreted as
2317 argument to set.
2318
2319 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2320
2321 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
2322
2323 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2324
2325 Don't export grub_gate_a20.
2326
2327 * grub-core/kern/i386/pc/init.c: Remove leftovers.
2328 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
2329 to ...
2330 (grub_gate_a20): ... this. All users updated.
2331 * include/grub/i386/pc/init.h: Removed. All users updated.
2332
2333 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2334
2335 Create euro.pf2 which supports most European languages.
2336
2337 * Makefile.am (grubdata_DATA): Add euro.pf2.
2338 (euro.pf2): New target.
2339 (CLEANFILES): Add euro.pf2.
2340
2341 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2342
2343 * configure.ac: Disable emu-usb by default to prevent inadvertent
2344 device takeover.
2345
2346 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2347
2348 Disable usbserial on grub-emu since our libusb code isn't good enough
2349 yet.
2350
2351 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
2352 (usbserial_pl2303): Likewise.
2353 (usbserial_ftdi): Likewise.
2354
2355 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2356
2357 * include/grub/disk.h (grub_disk): Remove has_partitions.
2358 All users updated.
2359 * disk/loopback.c (grub_loopback): Remove has_partitions.
2360 All users updated.
2361 (options): Remove partitions. All users updated.
2362 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
2363 * util/i386/pc/grub-setup.c (setup): copy partition table only when
2364 actual partition table is found.
2365
2366 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2367
2368 Remove readability checks (too many false negatives).
2369
2370 * util/grub-install.in: Remove readability checks.
2371 * util/grub-mkconfig.in: Likewise.
2372 * util/grub.d/10_hurd.in: Likewise.
2373 * util/grub.d/10_kfreebsd.in: Likewise.
2374 * util/grub.d/10_linux.in: Likewise.
2375 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
2376 way.
2377
2378 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2379
2380 Enable acpi shutdown on all ACPI platforms.
2381
2382 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
2383 on coreboo, multiboot and EFI.
2384 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
2385 (grub_acpi_halt): Likewise.
2386 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
2387 (grub_cmd_halt): Don't call grub_acpi_halt directly.
2388 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
2389 * grub-core/lib/i386/halt.c (grub_halt)
2390 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
2391
2392 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2393
2394 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
2395 context.
2396
2397 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2398
2399 * grub-core/video/efi_gop.c: Fix over-80-chars line.
2400 * grub-core/video/efi_uga.c: Likewise.
2401
2402 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2403
2404 Filter devaliases and never open same device twice.
2405
2406 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
2407 (last_ihandle): Likewise.
2408 (ofdisk_hash_ent): New member shortest.
2409 (ofdisk_hash_add): Add canonical path too.
2410 (scan): New function.
2411 (grub_ofdisk_iterate): Iterate over hashed entries.
2412 (compute_dev_path): Don't add :0.
2413 (grub_ofdisk_open): Don't really open the disk.
2414 (grub_ofdisk_close): Avoid closing unrelated disk.
2415 (grub_ofdisk_read): Implement reopen logic.
2416 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
2417 New function.
2418 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
2419 New proto.
2420
2421 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2422
2423 Fix sparc64.
2424
2425 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
2426 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
2427 right address. Add sparc64_ieee1275_ldflags.
2428 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
2429 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
2430 to grub_host_to_target_addr
2431 (load_image): Likewise.
2432
2433 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2434
2435 * grub-core/normal/completion.c (complete_file): Handle device
2436 containing slash.
2437 Fix based on patch by Doug Nazar.
2438
2439 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2440
2441 grub-mknetdir script.
2442
2443 * Makefile.util.def (grub-mknetdir): New module.
2444 * tests/util/grub-shell.in: Support boot=net
2445 * util/grub-mknetdir.in: New file.
2446
2447 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2448
2449 videoinfo on non-vbe.
2450
2451 * grub-core/Makefile.core.def (vbeinfo): Removed.
2452 (vbetest): Removed.
2453 (videoinfo): New module.
2454 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
2455 * grub-core/commands/i386/pc/vbetest.c: Removed.
2456 * grub-core/commands/videoinfo.c: New file.
2457 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
2458 specification.
2459 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
2460 as vbetest.
2461 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
2462 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
2463 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
2464 mode_number. New parameter mode. All users updated.
2465 (grub_video_gop_iterate): New function.
2466 (grub_video_efi_gop): New member iterate.
2467 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
2468 (grub_vbe_set_video_mode): Remove setting useless fields.
2469 (vbe2videoinfo): New function.
2470 (grub_video_vbe_iterate): Likewise.
2471 (grub_video_vbe_setup): Use vbe2videoinfo.
2472 (grub_video_vbe_print_adapter_specific_info): New function.
2473 (grub_video_vbe_adapter): New fields iterate and
2474 print_adapter_specific_info.
2475 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
2476 All users updated.
2477 (grub_video_mode_info): New field mode_number.
2478 (grub_video_adapter): New fields iterate and
2479 print_adapter_specific_info.
2480
2481 2010-09-13 Tristan Gingold <gingold@free.fr>
2482 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
2483 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2484
2485 * grub-core/commands/efi/lsefisystab.c: New file.
2486 * grub-core/commands/efi/lssal.c: Likewise.
2487 * grub-core/Makefile.core.def (lsacpi): New module.
2488 (lsefisystab): Likewise.
2489 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
2490 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
2491 (grub_efi_sal_system_table): New struct.
2492 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
2493 (grub_efi_sal_system_table_memory_descriptor): Likewise.
2494 (grub_efi_sal_system_table_platform_features): Likewise.
2495 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
2496 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
2497 (grub_efi_sal_system_table_ap_wakeup): Likewise.
2498 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
2499
2500 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2501
2502 Support explicit user claim that a device is BIOS-visible.
2503
2504 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
2505 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
2506 * grub-core/kern/emu/hostdisk.c
2507 (convert_system_partition_to_system_disk): Support mdX.
2508 (find_system_device): New parameter add. All users updated.
2509 (grub_util_biosdisk_is_present): New function.
2510 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
2511 proto.
2512
2513 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2514
2515 Search hints support.
2516
2517 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
2518 All users updated.
2519
2520 2010-09-13 Yves Blusseau <blusseau@zetam.org>
2521
2522 Bash completion script for util commands
2523
2524 * Makefile.am: Add util/bash-completion.d directory
2525 * configure.ac: Likewise.
2526 * util/bash-completion.d/Makefile.am: New file.
2527 * util/bash-completion.d/grub-completion.bash.in: Likewise.
2528
2529 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2530
2531 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
2532 (print_backlog): set backlog_ucs4 and backlog_glyphs.
2533 Reported by: Yves Blusseau.
2534
2535 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2536
2537 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
2538 partition size and offset.
2539
2540 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2541
2542 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
2543
2544 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2545
2546 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
2547
2548 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2549
2550 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
2551 (grub_xvasprintf): Likewise.
2552
2553 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2554
2555 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
2556
2557 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2558
2559 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
2560 args ending with NULL.
2561
2562 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2563
2564 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
2565 pointer.
2566
2567 2010-09-11 Szymon Janc <szymon@janc.net.pl>
2568
2569 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
2570
2571 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2572
2573 Shutdown using ACPI.
2574
2575 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
2576 * grub-core/commands/acpihalt.c: New file.
2577 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
2578 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
2579 (grub_acpi_halt): New proto.
2580 (GRUB_ACPI_SLP_EN): New const.
2581 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
2582 (GRUB_ACPI_OPCODE_*): New enum.
2583 (GRUB_ACPI_EXTOPCODE_*): Likewise.
2584
2585 2010-09-11 Tristan Gingold <gingold@free.fr>
2586 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
2587 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2588
2589 * commands/lsacpi.c: New file.
2590 * grub-core/Makefile.core.def (lsacpi): New module.
2591 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
2592 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
2593 (grub_acpi_madt_entry_header): New struct.
2594 (grub_acpi_madt): Likewise.
2595 (grub_acpi_madt_entry_interrupt_override): Likewise.
2596 (grub_acpi_madt_entry_sapic): Likewise.
2597 (grub_acpi_madt_entry_lsapic): Likewise.
2598 (grub_acpi_madt_entry_platform_int_source): Likewise.
2599 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
2600 (PRIuGRUB_UINT32_T): Likewise.
2601 (PRIxGRUB_UINT64_T): Likewise.
2602
2603 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2604
2605 Implement loading palette on ieee1275_fb.
2606
2607 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
2608 (have_setcolors): Likewise.
2609 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
2610 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
2611 (grub_video_ieee1275_set_palette): Implement.
2612
2613 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2614 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
2615
2616 * util/grub-install.in (grub_partition): New variable.
2617 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
2618 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
2619 Fixes a bug reported by Yves Blusseau.
2620
2621 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2622
2623 Fix emu on mipsel.
2624
2625 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
2626 =grub_cpu_flush_cache on all mips and not only yeeloong.
2627 * configure.ac (COND_mips): New conditional.
2628 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
2629 platforms.
2630 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
2631 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
2632 [GRUB_LINKER_HAVE_INIT]: New function.
2633 (grub_emu_post_init): Likewise.
2634 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
2635 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
2636 * include/grub/cache.h (_mips): Include mips/cache.h.
2637 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
2638 LVM and RAID prototypes.
2639 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
2640 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
2641 function.
2642
2643 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
2644
2645 * util/grub-install.in: Don't try to verify core.img until after
2646 running grub-mkimage to create it.
2647
2648 2010-09-10 Robert Millan <rmh@gnu.org>
2649
2650 * util/grub.d/10_hurd.in: Add misc readability checks.
2651 * util/grub.d/10_kfreebsd.in: Likewise.
2652 * util/grub.d/10_linux.in: Likewise.
2653
2654 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
2655
2656 * util/grub-install.in: ${imgext} won't be defined here until the
2657 install branch is merged. For the meantime, only verify core.img on
2658 i386-pc and sparc64-ieee1275 platforms.
2659
2660 2010-09-10 Robert Millan <rmh@gnu.org>
2661
2662 Solaris support in grub_find_zpool_from_dir(). Thanks
2663 Seth Goldberg for referring to getextmntent() facility.
2664
2665 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
2666 `sys/mkdev.h'.
2667 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
2668 `<sys/mnttab.h>'.
2669 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
2670 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
2671 method for finding zpool name.
2672
2673 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
2674
2675 grub-fstest needs the host and hostfs modules while other utilities
2676 actively require those modules to be absent, so grub-fstest needs
2677 its own initialisation and finalisation code.
2678
2679 * Makefile.am (grub_fstest.pp): New target.
2680 (grub_fstest_init.lst): Likewise.
2681 (grub_fstest_init.c): Likewise.
2682 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
2683
2684 2010-09-10 Robert Millan <rmh@gnu.org>
2685
2686 * configure.ac: Check for `struct statfs.f_fstypename' and
2687 `struct statfs.f_mntfromname'.
2688
2689 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
2690 kFreeBSD-specific code.
2691
2692 2010-09-10 Robert Millan <rmh@gnu.org>
2693
2694 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
2695 on ZFS. Now non-main filesystems are supported as / too.
2696
2697 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
2698
2699 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
2700 and grub-core/disk/host.c to ...
2701 (grub-fstest): ... here. Having the host disk implementation
2702 present confuses grub-probe and other utility programs.
2703
2704 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
2705 when writing to a file, not when writing to stdout.
2706
2707 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
2708
2709 * tests/partmap_test.in: New test for partitions.
2710 * Makefile.util.def: Rules for new test.
2711
2712 2010-09-09 Robert Millan <rmh@gnu.org>
2713
2714 * util/grub-probe.c (probe): Fix a pair of unhandled error
2715 conditions.
2716
2717 2010-09-09 Robert Millan <rmh@gnu.org>
2718
2719 Basic Btrfs support (detection and UUID).
2720
2721 * grub-core/fs/btrfs.c: New file.
2722 * Makefile.util.def (library): Register btrfs.c.
2723 * grub-core/Makefile.core.def: Likewise.
2724
2725 2010-09-08 Robert Millan <rmh@gnu.org>
2726
2727 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
2728 with (optional) parameters to specify device and relative path.
2729 * util/grub-install.in: Use is_path_readable_by_grub() to
2730 verify readability of a few critical files.
2731 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
2732 verify readability of grub.cfg.new.
2733
2734 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
2735
2736 Split minix.mod into minix.mod and minix2.mod.
2737
2738 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
2739 * grub-core/Makefile.core.def (minix2): New module.
2740 * grub-core/fs/minix.c: Use definitions instead of runtime version
2741 checking.
2742 * grub-core/fs/minix2.c: New file.
2743
2744 2010-09-08 Yves Blusseau <blusseau@zetam.org>
2745
2746 Add new --boot-directory option to replace --root-directory
2747
2748 * util/grub-install.in: Add new --boot-directory option
2749 * util/grub-reboot.in: Likewise.
2750 * util/grub-set-default.in: Likewise.
2751
2752 2010-09-08 Yves Blusseau <blusseau@zetam.org>
2753
2754 * util/grub-mkconfig.in: Use new variable.
2755
2756 2010-09-08 Yves Blusseau <blusseau@zetam.org>
2757
2758 * configure.ac: Define some useful variables.
2759
2760 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
2761
2762 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2763 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
2764 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
2765 Use terminfo and don't use cursor-on/cursor-off unless it's known
2766 to work.
2767 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
2768 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
2769
2770 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
2771
2772 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
2773 starts with "(,", fill the drive containing the loaded image in
2774 between those two characters, but expect that a full partition
2775 specification including partition map names will follow.
2776
2777 2010-09-08 Robert Millan <rmh@gnu.org>
2778
2779 * configure.ac: Remove `--enable-grub-fstest' option.
2780 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
2781
2782 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
2783 `grub-fstest' instead of `grub-probe' for readability verification.
2784 * util/grub-probe.c (probe): Remove readability verification kludge.
2785
2786 2010-09-08 Robert Millan <rmh@gnu.org>
2787
2788 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
2789 initializing `GRUB_FS'.
2790
2791 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
2792
2793 Not command (!) support to GRUB script.
2794
2795 * tests/grub_script_not.in: New test.
2796 * Makefile.util.def: Rules for new test.
2797
2798 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
2799 ! command as a special case.
2800 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
2801
2802 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
2803
2804 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
2805 grub_free.
2806
2807 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
2808
2809 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
2810
2811 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
2812
2813 * docs/grub.texi (Shell-like scripting): Documentation for break,
2814 continue, shift and return commands.
2815
2816 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
2817
2818 Rename CD-ROM to cd on BIOS.
2819
2820 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
2821 "cd".
2822 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
2823
2824 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2825
2826 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
2827 * util/grub-probe.c (main): Likewise.
2828 * util/i386/pc/grub-setup.c (main): Likewise.
2829 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
2830 Reported and debugged by: alexxy
2831
2832 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2833
2834 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
2835 diagnostic info.
2836
2837 2010-09-05 Jo Shields <directhex@apebox.org>
2838
2839 * util/grub.d/30_os-prober.in: Add missing classes.
2840
2841 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2842
2843 * docs/grub.texi (Theme file format): Document new position format.
2844
2845 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2846
2847 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
2848 a table. Use @code instead of @verbatim.
2849
2850 2010-09-05 Colin D Bennett <colin@gibibit.com>
2851
2852 Gfxmenu documentation.
2853
2854 * docs/grub.texi (Theme file format): New chapter.
2855
2856 2010-09-05 Szymon Janc <szymon@janc.net.pl>
2857
2858 * grub-core/Makefile.core.def (xzio): New module.
2859 * grub-core/io/xzio.c: New file.
2860 * grub-core/lib/xzembed/xz.h: New file (from xembed).
2861 * grub-core/lib/xzembed/xz_config.h: Likewise.
2862 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
2863 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
2864 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
2865 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
2866 * grub-core/lib/xzembed/xz_private.h: Likewise.
2867 * grub-core/lib/xzembed/xz_stream.h: Likewise.
2868 * include/grub/file.h (grub_file_filter_id): New compression filter
2869 GRUB_FILE_FILTER_XZIO.
2870
2871 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2872
2873 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
2874 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
2875 size.
2876
2877 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2878
2879 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
2880 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
2881
2882 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2883
2884 Uncompressed checksum support.
2885
2886 * grub-core/commands/hashsum.c (options): Add option --uncompress.
2887 (check_list): New parameter uncompress.
2888 (grub_cmd_hashsum): Handle --uncompress.
2889
2890 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2891
2892 Reintroduce testload.
2893
2894 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
2895 from here ...
2896 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
2897 (GRUB_MOD_INIT): New function.
2898 (GRUB_MOD_FINI): Likewise.
2899 * grub-core/Makefile.core.def (testload): New module.
2900
2901 2010-09-05 Szymon Janc <szymon@janc.net.pl>
2902
2903 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
2904 (uint8_t): New type.
2905 (uint16_t): Likewise.
2906 (uint32_t): Likewise.
2907 (uint64_t): Likewise.
2908
2909 2010-09-05 Szymon Janc <szymon@janc.net.pl>
2910
2911 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
2912
2913 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2914
2915 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
2916 Made static.
2917 (grub_gzfile_open): Removed. All users updated.
2918 (GRUB_MOD_INIT): New function.
2919 (GRUB_MOD_FINI): Likewise.
2920 * grub-core/kern/file.c (grub_file_filters_all): New variable.
2921 (grub_file_filters_enabled): Likewise.
2922 (grub_file_open): Handle filters.
2923 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
2924 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
2925 * include/grub/file.h (grub_file_filter_id_t): New type.
2926 (grub_file_filter_t): Likewise.
2927 (grub_file_filters_all): New extern variable.
2928 (grub_file_filters_enabled): Likewise.
2929 (grub_file_filter_register): New inline function.
2930 (grub_file_filter_unregister): Likewise.
2931 (grub_file_filter_disable): Likewise.
2932 (grub_file_filter_disable_compression): Likewise.
2933 * include/grub/gzio.h: Removed.
2934
2935 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2936
2937 Filename expansion support for wildcards in GRUB script.
2938
2939 * tests/grub_script_expansion.in: New test.
2940 * Makefile.util.def: Rule for new test.
2941
2942 * grub-core/commands/wildcard.c: New file, implements filename
2943 expansion support for GRUB script.
2944 * grub-core/Makefile.core.def: Rule update for regexp.mod.
2945 * grub-core/script/argv.c: Cosmetic changes.
2946 * grub-core/script/execute.c (grub_script_arglist_to_argv):
2947 Refactored to perform wildcard expansion on arguments.
2948 * include/grub/script_sh.h (grub_script_wildcard_translator): New
2949 struct.
2950
2951 * tests/util/grub-shell.in: Fix quoting for read input.
2952
2953 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2954
2955 Support for updating environment variables with matched substrings
2956 of regexp.
2957
2958 * tests/grub_cmd_regexp.in: New test.
2959 * Makefile.util.def: Rule for new test.
2960
2961 * grub-core/commands/regexp.c: New option -s to update environment
2962 variables with regexp matches.
2963
2964 2010-09-04 Szymon Janc <szymon@janc.net.pl>
2965
2966 * include/grub/file.h (grub_file): New member not_easly_seekable.
2967 (grub_file_seekable): New inline function.
2968 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
2969 easily seekable.
2970 (grub_gzio_open): Set not_easly_seekable.
2971 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
2972 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
2973
2974 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2975
2976 Support for options to appear multiple times on cmdline.
2977
2978 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
2979 * grub-core/commands/extcmd.c: Support for repeatable option.
2980 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
2981 repeatable option support.
2982
2983 Refactor menuentry into a regular command.
2984
2985 * grub-core/commands/menuentry.c: New file, menuentry command
2986 implementation.
2987 * grub-core/Makefile.core.def: Rule update for normal.mod.
2988 * grub-core/normal/main.c: Moved menuentry creation to
2989 grub-core/commands/menuentry.c.
2990 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
2991 (grub_menu_execute_entry_real): Removed.
2992 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
2993 function.
2994 (grub_script_execute_menuentry): Removed.
2995 * grub-core/script/parser.y (menuentry): Removed.
2996 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
2997 * grub-core/script/yylex.l (menuentry): Removed.
2998 * include/grub/menu.h (grub_menu_init): New prototype.
2999 (grub_menu_fini): New prototype.
3000 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
3001 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
3002 (grub_script_execute_sourcecode): New prototype.
3003
3004 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3005
3006 "return" command for GRUB script functions.
3007
3008 * tests/grub_script_return.in: New test.
3009 * Makefile.util.def: Rules for new test.
3010
3011 * grub-core/script/execute.c (grub_script_return): New function.
3012 * grub-core/script/main.c: Register/unregister return commaond.
3013 * include/grub/script_sh.h (grub_script_return): New prototype.
3014
3015 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3016
3017 "setparams" command to update positional parameters.
3018
3019 * tests/grub_script_setparams.in: New test.
3020 * Makefile.util.def: Rules for new test.
3021
3022 * grub-core/script/argv.c (grub_script_argv_make): New function.
3023 * grub-core/script/execute.c (replace_scope): New function.
3024 (grub_script_setparams): New function.
3025 * grub-core/script/lexer.c: Remove unused variables.
3026 * grub-core/script/main.c: Register/unregister setparams command.
3027 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
3028 (grub_script_setparams): New prototype.
3029
3030 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3031
3032 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
3033 grub_free order.
3034
3035 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3036
3037 Support for passing block of commands as an argument to extcmds.
3038
3039 * Makefile.util.def: Rules for new test.
3040 * tests/grub_script_blockarg.in: New test.
3041 * grub-core/tests/test_blockarg.c: New file, block argument
3042 command used in the test.
3043
3044 * include/grub/extcmd.h (grub_extcmd_context): New struct.
3045 (grub_register_extcmd_prio): New function prototype.
3046 (grub_extcmd_dispatcher): New function prototype.
3047 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
3048 type.
3049 * include/grub/script_sh.h (struct grub_script): New members
3050 `children', `next_siblings' and `refcnt' for block arguments and
3051 reference counting.
3052 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
3053 (grub_script_arg): New member `script' for block argument.
3054 (grub_script_argv): New member `script' for block argument.
3055 (grub_parser_param): New member `scripts' for block argument.
3056 (grub_script_mem_free): New extern function prototype.
3057 (grub_script_ref): New function prototype.
3058 (grub_script_unref): New function prototype.
3059
3060 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
3061 extcmd form to support block arguments.
3062 * grub-core/script/argv.c: Block arguments support.
3063 * grub-core/script/execute.c: Likewise.
3064 * grub-core/script/lexer.c: Likewise.
3065 * grub-core/script/main.c: Likewise.
3066 * grub-core/script/script.c: Likewise.
3067 * grub-core/script/parser.y: Likewise. New `block' and `block0'
3068 non-terminals.
3069
3070 * grub-core/commands/acpi.c: Update extcmd implementations with
3071 grub_extcmd_context_t.
3072 * grub-core/commands/cat.c: Likewise.
3073 * grub-core/commands/echo.c: Likewise.
3074 * grub-core/commands/extcmd.c: Likewise.
3075 * grub-core/commands/hashsum.c: Likewise.
3076 * grub-core/commands/hdparm.c: Likewise.
3077 * grub-core/commands/help.c: Likewise.
3078 * grub-core/commands/hexdump.c: Likewise.
3079 * grub-core/commands/i386/cpuid.c: Likewise.
3080 * grub-core/commands/i386/pc/drivemap.c: Likewise.
3081 * grub-core/commands/i386/pc/halt.c: Likewise.
3082 * grub-core/commands/i386/pc/sendkey.c: Likewise.
3083 * grub-core/commands/iorw.c: Likewise.
3084 * grub-core/commands/keystatus.c: Likewise.
3085 * grub-core/commands/loadenv.c: Likewise.
3086 * grub-core/commands/ls.c: Likewise.
3087 * grub-core/commands/lspci.c: Likewise.
3088 * grub-core/commands/memrw.c: Likewise.
3089 * grub-core/commands/probe.c: Likewise.
3090 * grub-core/commands/search_wrap.c: Likewise.
3091 * grub-core/commands/setpci.c: Likewise.
3092 * grub-core/commands/sleep.c: Likewise.
3093 * grub-core/disk/loopback.c: Likewise.
3094 * grub-core/hello/hello.c: Likewise.
3095 * grub-core/loader/i386/bsd.c: Likewise.
3096 * grub-core/loader/xnu.c: Likewise.
3097 * grub-core/term/gfxterm.c: Likewise.
3098 * grub-core/term/serial.c: Likewise.
3099 * grub-core/tests/lib/functional_test.c: Likewise.
3100
3101 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3102
3103 Multi-line quoted strings support.
3104
3105 * grub-core/script/lexer.c (append_newline): Removed.
3106 (grub_script_lexer_yywrap): Refactored.
3107 (grub_script_lexer_init): Refactored.
3108 * grub-core/script/yylex.l (yywrap): New function.
3109 (grub_lexer_resplit): New function.
3110 (grub_lexer_unput): New function.
3111 * include/grub/script_sh.h (grub_lexer_param): New members, unput
3112 and resplit.
3113 * tests/grub_script_echo1.in: Added few more testcases.
3114
3115 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
3116
3117 * grub-core/kern/misc.c: Don't add abort alias in utils.
3118 Reported by: echoline.
3119
3120 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
3121
3122 Add missing files into "make dist" tarball for other platforms.
3123
3124 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
3125 * conf/Makefile.common (dist_noinst_DATA): New variable.
3126 * conf/Makefile.extra-dist: Added missing make dist files.
3127 * grub-core/Makefile.core.def: Likewise.
3128
3129 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
3130
3131 Compress grub_prefix.
3132
3133 * grub-core/boot/i386/pc/lnxboot.S: Use
3134 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
3135 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
3136 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
3137 GRUB_MACHINE_PREFIX_END. All users updated.
3138 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
3139 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
3140 + 0x40.
3141 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
3142 * util/grub-mkimage.c (image_target_desc): Change data_end to
3143 prefix_end. All users updated.
3144
3145 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
3146
3147 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
3148 value.
3149 (grub_openbsd_boot): Likewise.
3150 (grub_netbsd_boot): Likewise.
3151 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
3152 (grub_xnu_boot): Likewise.
3153
3154 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
3155
3156 * configure.ac: Clean LIBS variable after tests.
3157
3158 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
3159
3160 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
3161
3162 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
3163
3164 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
3165 echo if libdevmapper will be used.
3166
3167 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
3168
3169 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
3170 constant for the same file.
3171
3172 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
3173
3174 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
3175
3176 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
3177
3178 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
3179 grub-core/*.pp.
3180
3181 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
3182
3183 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
3184 required by the boot protocol.
3185
3186 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
3187 ebp and edi members.
3188 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
3189 state.ebp and state.edi.
3190 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
3191 %ebp and %edi according to grub_relocator32_ebp and
3192 grub_relocator32_edi respectively.
3193 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
3194 and state.edi.
3195
3196 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
3197
3198 Add i386-pc-pxe image target.
3199
3200 * util/grub-mkimage.c (image_target_desc): New enum value
3201 IMAGE_I386_PC_PXE.
3202 (image_targets): New target i386-pc-pxe.
3203 (generate_image): Handle i386-pc-pxe image.
3204
3205 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
3206
3207 Fix grub_pxe_scan.
3208
3209 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
3210 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
3211 All users updated.
3212 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
3213 (grub_pxe_pxenv): Correct type.
3214
3215 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
3216
3217 * NEWS: Document most of the important changes since 1.98.
3218
3219 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
3220
3221 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
3222 generated manual page) a little.
3223
3224 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
3225
3226 * docs/grub.texi: Add myself as an author.
3227
3228 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
3229
3230 * Makefile.util.def (libgrub.a): Add missing sunpc.
3231 Reported by: Seth Goldberg.
3232
3233 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3234
3235 Interrupt wrapping and code simplifications.
3236
3237 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
3238 x86_noieee1275 which are functionaly equivalent in this case.
3239 (grub-install): Make source on each platform explicit. Enable on
3240 all noemu.
3241 * gentpl.py (x86_efi_pc): Removed group.
3242 (x86_noefi): Likewise.
3243 (i386_noefi): Likewise.
3244 (x86_noieee1275): Likewise.
3245 (i386_noieee1275): Likewise.
3246 (i386_noefi_noieee1275): Likewise.
3247 (i386_pc_qemu_coreboot): Likewise.
3248 (i386_coreboot_multiboot): Likewise.
3249 (i386_pc_coreboot_multiboot_qemu): Likewise.
3250 (x86_noefi_mips): Likewise.
3251 (noieee1275): Likewise.
3252 (ieee1275_mips): Likewise.
3253 (noemu_noieee1275): Likewise.
3254 (cmos): New group.
3255 (usb): Likewise.
3256 (videoinkernel): Likewise.
3257 (videomodules): Likewise.
3258 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
3259 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
3260 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
3261 include/grub/loader.h, include/grub/msdos_partition.h,
3262 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
3263 include/grub/machine/console.h, include/grub/machine/vga.h,
3264 include/grub/machine/vbe.h, include/grub/machine/init.h,
3265 include/grub/machine/kernel.h, include/grub/cpu/time.h,
3266 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
3267 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
3268 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
3269 * grub-core/Makefile.core.def (kernel): Explicit the source for
3270 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
3271 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
3272 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
3273 Use videoinkernel tag.
3274 (usb): Enable on all usb.
3275 (usbserial_common): Likewise.
3276 (usbserial_pl2303): Likewise.
3277 (usbserial_ftdi): Likewise.
3278 (uhci): Enable on all x86.
3279 (ohci): Enable on all pci.
3280 (cmostest): Enable on all CMOS.
3281 (acpi): Include commands/acpi.c on all platforms.
3282 (halt): Add relevant lib/*/halt.c.
3283 (hdparm): Enable on all pci.
3284 (lspci): Likewise.
3285 (usbtest): Enable on all usb.
3286 (ata): Enable on all pci.
3287 (ata_pthru): Likewise.
3288 (usbms): Enable on all usb.
3289 (usb_keyboard): Likewise.
3290 (font): Use tag videomodules.
3291 (bufio): Likewise.
3292 (datetime): Use tag cmos. Enable on all noemu.
3293 (mmap): Use tags common and x86.
3294 (gfxterm): Use tag videomodules.
3295 (bitmap): Likewise.
3296 (bitmap_scale): Likewise.
3297 (video_fb): Likewise.
3298 (video): Likewise.
3299 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
3300 adjust padding accordingly. All users updated.
3301 (grub_ohci_transaction): Fix bad format specification.
3302 (GRUB_MOD_INIT): Add asserts for struct size.
3303 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
3304 (grub_alloc_td): Likewise.
3305 (grub_free_queue): Likewise.
3306 (grub_uhci_transfer): Likewise.
3307 (grub_uhci_transaction): Fix bad format specification.
3308 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
3309 (grub_usb_bulk_readwrite): Likewise.
3310 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
3311 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
3312 Made static.
3313 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
3314 Made static.
3315 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
3316 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
3317 Transformed into C.
3318 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
3319 Moved from here ...
3320 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
3321 ... here. Transformed into C. Made static.
3322 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
3323 Moved from here ...
3324 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
3325 ... here. Transformed into C. Made static.
3326 * grub-core/kern/i386/pc/startup.S
3327 (grub_biosdisk_check_int13_extensions): Moved from here ...
3328 * grub-core/disk/i386/pc/biosdisk.c
3329 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
3330 Made static.
3331 * grub-core/kern/i386/pc/startup.S
3332 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
3333 * grub-core/disk/i386/pc/biosdisk.c
3334 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
3335 Transformed into C. Made static.
3336 * grub-core/kern/i386/pc/startup.S
3337 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
3338 * grub-core/disk/i386/pc/biosdisk.c
3339 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
3340 Transformed into C. Made static.
3341 * grub-core/kern/i386/pc/startup.S
3342 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
3343 * grub-core/disk/i386/pc/biosdisk.c
3344 (grub_biosdisk_get_diskinfo_standard): ... here.
3345 Transformed into C. Made static.
3346 * grub-core/kern/i386/pc/startup.S
3347 (grub_biosdisk_get_num_floppies): Moved from here ...
3348 * grub-core/disk/i386/pc/biosdisk.c
3349 (grub_biosdisk_get_num_floppies): ... here.
3350 Transformed into C. Made static.
3351 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
3352 New function.
3353 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
3354 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
3355 Transformed into C. Made static.
3356 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
3357 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
3358 Transformed into C. Made static.
3359 * grub-core/kern/i386/ieee1275/init.c: Removed.
3360 * grub-core/kern/i386/misc.S: Likewise.
3361 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
3362 Splitted from here ...
3363 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
3364 Transformed into C. Made static. All users updated.
3365 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
3366 Transformed into C. Made static. All users updated.
3367 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
3368 Moved from here...
3369 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
3370 Transformed into C. Made static. All users updated.
3371 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
3372 Moved from here...
3373 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
3374 Transformed into C. Made static. All users updated.
3375 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
3376 Removed (replaced by C version).
3377 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
3378 Moved from here...
3379 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
3380 Transformed into C. Made static.
3381 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
3382 Moved from here...
3383 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
3384 ... here. Transformed into C.
3385 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
3386 Moved from here...
3387 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
3388 ... here. Transformed into C.
3389 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
3390 Moved from here...
3391 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
3392 ... here. Transformed into C. Made static.
3393 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
3394 Moved from here...
3395 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
3396 ... here. Transformed into C.
3397 * grub-core/kern/i386/pc/startup.S
3398 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
3399 * grub-core/video/i386/pc/vbe.c
3400 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
3401 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
3402 Moved from here...
3403 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
3404 ... here. Transformed into C.
3405 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
3406 Moved from here...
3407 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
3408 ... here. Transformed into C.
3409 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
3410 Moved from here...
3411 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
3412 ... here. Transformed into C.
3413 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
3414 Moved from here...
3415 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
3416 ... here. Transformed into C.
3417 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
3418 Moved from here...
3419 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
3420 ... here. Transformed into C. Made static.
3421 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
3422 Moved from here...
3423 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
3424 ... here. Transformed into C. Made static.
3425 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
3426 Moved from here...
3427 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
3428 ... here. Transformed into C. Made static.
3429 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
3430 pxe_rm_entry as third argument.
3431 (grub_bios_interrupt): New function.
3432 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
3433 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
3434 of calling grub_stop.
3435 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
3436 * grub-core/lib/efi/halt.c (grub_halt): ...here.
3437 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
3438 * grub-core/lib/emu/halt.c (grub_halt): ... here.
3439 * grub-core/lib/i386/halt.c: Moved from here ...
3440 * grub-core/lib/i386/halt.c: ... here.
3441 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
3442 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
3443 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
3444 grub_stop_floppy.
3445 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
3446 * include/grub/i386/coreboot/init.h: Removed.
3447 * include/grub/i386/multiboot/init.h: Likewise.
3448 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
3449 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
3450 * include/grub/i386/pc/int.h: New file.
3451 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
3452 (grub_pxe_scan): Removed.
3453 (grub_pxe_call): Update prototype.
3454 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
3455 prototypes.
3456 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
3457 * include/grub/i386/qemu/init.h: Removed.
3458 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
3459 noreturn.
3460 (grub_halt): Likewise.
3461 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
3462 (grub_reboot): Likewise.
3463 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
3464 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
3465 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
3466
3467 2010-08-30 Robert Millan <rmh@gnu.org>
3468
3469 * NEWS: Document addition of ZFS support in `grub-install' and
3470 `grub-mkconfig'.
3471
3472 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
3473
3474 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
3475 dprintf output.
3476
3477 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3478
3479 Remove leftover embedding of font objects.
3480
3481 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
3482 * util/grub-install.in (font): Removed.
3483 * util/grub-mkimage.c (generate_image): Remove font support. All users
3484 updated.
3485
3486 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3487
3488 Remove leftover embedding of font objects.
3489
3490 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
3491 * util/grub-install.in (font): Removed.
3492 * util/grub-mkimage.c (generate_image): Remove font support. All users
3493 updated.
3494
3495 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3496
3497 * docs/grub.texi (Network): Fix reference to pxe_blksize.
3498 Reported by: Ian Turner
3499
3500 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3501
3502 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
3503 timeout to avoid indefinite boot stalling.
3504
3505 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3506
3507 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
3508 (grub_env_write_color_highlight): Likewise.
3509
3510 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3511
3512 * grub-core/normal/term.c (print_more): Return to normal and not
3513 to standard state after printing "---MORE---".
3514
3515 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3516
3517 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
3518 Mask out the bit 0x80 since it has other meaning that specifiing color.
3519
3520 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3521
3522 New relocator. Allows for more kernel support and more straightforward
3523 loader writing.
3524
3525 * Makefile.am (BOOTTARGET): New variable.
3526 (QEMU32): Likewise.
3527 (linux.init.x86_64): New target.
3528 (linux.init.i386): Likewise.
3529 (multiboot.elf): Likewise.
3530 (kfreebsd.elf): Likewise.
3531 (kfreebsd.aout): Likewise.
3532 (pc-chainloader.elf): Likewise.
3533 (pc-chainloader.bin): Likewise.
3534 (ntldr.elf): Likewise.
3535 (ntldr.bin): Likewise.
3536 (multiboot2.elf): Likewise.
3537 (kfreebsd.init.x86_64): Likewise.
3538 (kfreebsd.init.i386): Likewise.
3539 (knetbsd.init.i386): Likewise.
3540 (kopenbsd.init.i386): Likewise.
3541 (knetbsd.init.x86_64): Likewise.
3542 (kopenbsd.init.x86_64): Likewise.
3543 (linux-initramfs.i386): Likewise.
3544 (linux-initramfs.x86_64): Likewise.
3545 (kfreebsd-mfsroot.i386.img): Likewise.
3546 (knetbsd.image.i386): Likewise.
3547 (kopenbsd.image.i386): Likewise.
3548 (kopenbsd.image.x86_64): Likewise.
3549 (knetbsd.miniroot-image.i386.img): Likewise.
3550 (kfreebsd-mfsroot.x86_64.img): Likewise.
3551 (knetbsd.image.x86_64): Likewise.
3552 (knetbsd.miniroot-image.x86_64.img): Likewise.
3553 (kfreebsd-mfsroot.i386.gz): Likewise.
3554 (bootcheck-kfreebsd-i386): Likewise.
3555 (kfreebsd-mfsroot.x86_64.gz): Likewise.
3556 (bootcheck-kfreebsd-x86_64): Likewise.
3557 (knetbsd.miniroot-image.i386.gz): Likewise.
3558 (bootcheck-knetbsd-i386): Likewise.
3559 (bootcheck-kopenbsd-i386): Likewise.
3560 (bootcheck-kopenbsd-x86_64): Likewise.
3561 (knetbsd.miniroot-image.x86_64.gz): Likewise.
3562 (bootcheck-knetbsd-x86_64): Likewise.
3563 (bootcheck-linux-i386): Likewise.
3564 (bootcheck-linux-x86_64): Likewise.
3565 (bootcheck-linux16-i386): Likewise.
3566 (bootcheck-linux16-x86_64): Likewise.
3567 (bootcheck-multiboot): Likewise.
3568 (bootcheck-multiboot2): Likewise.
3569 (bootcheck-kfreebsd-aout): Likewise.
3570 (bootcheck-pc-chainloader): Likewise.
3571 (bootcheck-ntldr): Likewise.
3572 (CLEANFILES): Add new targets.
3573 (BOOTCHECKS): New variable.
3574 (.PHONY): Add bootchecks.
3575 (SUCCESSFUL_BOOT_STRING): New variable.
3576 (BOOTCHECK_TIMEOUT): Likewise.
3577 (bootcheck): New target
3578 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
3579 * configure.ac: Correct efiemu excuse.
3580 * docs/grub.texi (Supported kernels): New chapter.
3581 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
3582 include/grub/mm_private.h. Simplify inclusion of
3583 include/grub/boot.h, include/grub/loader.h
3584 and include/grub/msdos_partition.h
3585 (KERNEL_HEADER_FILES) [i386_coreboot]:
3586 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
3587 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
3588 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
3589 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
3590 include/grub/machine/loader.h.
3591 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
3592 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
3593 extra_dist.
3594 (pci.mod): Enable on i386-multiboot.
3595 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
3596 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
3597 i386-qemu.
3598 (relocator.mod): Rewritten.
3599 (aout.mod): Enable on all x86.
3600 (bsd.mod): Likewise.
3601 (ntldr.mod): New module.
3602 (linux.mod): Use loader/i386/linux.c on all x86.
3603 (xnu.mod): Enable on all x86.
3604 (vga_text.mod): disable on EFI and QEMU.
3605 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
3606 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
3607 * grub-core/efiemu/loadcore.c: Likewise.
3608 * grub-core/efiemu/main.c: Likewise.
3609 (grub_efiemu_exit_boot_services): Removed.
3610 (grub_efiemu_finish_boot_services): Likewise.
3611 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
3612 function.
3613 * grub-core/efiemu/i386/nocfgtables.c: New file.
3614 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
3615 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
3616 (grub_efi_finish_boot_services): Moved from here ...
3617 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
3618 Fille finish memory map and related data.
3619 (finish_mmap_buf): New variable.
3620 (grub_efi_uintn_t finish_mmap_size): Likewise.
3621 (grub_efi_uintn_t finish_key): Likewise.
3622 (grub_efi_uintn_t finish_desc_size): Likewise.
3623 (grub_efi_uint32_t finish_desc_version): Likewise.
3624 (grub_efi_is_finished): Likewise.
3625 (grub_efi_get_memory_map): Use saved memory map if EFI is already
3626 finished.
3627 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
3628 (grub_elf64_phdr_iterate): Likewise.
3629 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
3630 (grub_os_area_size): Likewise.
3631 (grub_machine_init): Don't reserve os area.
3632 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
3633 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
3634 * grub-core/kern/i386/loader.S: Removed.
3635 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
3636 (grub_os_area_size): Likewise.
3637 (grub_machine_init): Don't reserve os area.
3638 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
3639 Don't call grub_dl_unload_all.
3640 Don't include loader.S.
3641 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
3642 Declare the memory after _end as available.
3643 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
3644 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
3645 (GRUB_MM_ALLOC_MAGIC): Moved from here...
3646 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
3647 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
3648 * include/grub/mm_private.h (grub_mm_header): ... here.
3649 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
3650 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
3651 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
3652 (grub_mm_region): ..here. Removed addr. Added pre_size.
3653 All users updated.
3654 * grub-core/kern/mm.c (base): Renamed to ...
3655 (grub_mm_base): ... this. Made global.
3656 (grub_real_malloc): Alloc from end of region.
3657 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
3658 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
3659 * grub-core/kern/powerpc/cache_flush.S: ... here.
3660 * grub-core/lib/efi/relocator.c: New file.
3661 * grub-core/lib/i386/relocator.c: Rewritten.
3662 * grub-core/lib/i386/relocator16.S: New file.
3663 * grub-core/lib/i386/relocator32.S: Likewise.
3664 * grub-core/lib/i386/relocator64.S: Likewise.
3665 * grub-core/lib/i386/relocator_asm.S: Rewritten.
3666 * grub-core/lib/i386/relocator_common.S: New file.
3667 * grub-core/lib/ieee1275/relocator.c: Likewise.
3668 * grub-core/lib/mips/relocator.c: Rewritten.
3669 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
3670 stylistic adjustments.
3671 * grub-core/lib/powerpc/relocator.c: New file.
3672 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
3673 * grub-core/lib/relocator.c: Rewritten.
3674 * grub-core/lib/x86_64/relocator_asm.S: New file.
3675 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
3676 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
3677 (bsd_tag): New struct.
3678 (tags): New variable.
3679 (tags_last): Likewise.
3680 (netbsd_module): New struct.
3681 (netbsd_mods): New variable.
3682 (netbsd_mods_last): Likewise.
3683 (openbsd_opts): New parameter "serial".
3684 (OPENBSD_SERIAL_ARG): New definition.
3685 (netbsd_opts): New parameter "serial".
3686 (NETBSD_SERIAL_ARG): New definition.
3687 (grub_freebsd_add_meta): Reorganised into ...
3688 (grub_bsd_add_meta): ...this. All users updated.
3689 (grub_freebsd_add_mmap): Reorganised into ...
3690 (generate_e820_mmap): ...this...
3691 (grub_bsd_add_mmap): ...and this. All users updated.
3692 (grub_freebsd_list_modules): Use tags.
3693 (grub_netbsd_add_meta_module): New function.
3694 (grub_netbsd_list_modules): Likewise.
3695 (grub_freebsd_boot): Use relocator and finish EFI.
3696 (grub_openbsd_boot): Likewise.
3697 (grub_netbsd_setup_video): New function.
3698 (grub_netbsd_add_modules): Likewise.
3699 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
3700 and finish EFI.
3701 (grub_bsd_unload): Unload tags.
3702 (grub_bsd_load_aout): Use relocator.
3703 (grub_bsd_elf32_size_hook): New function.
3704 (grub_bsd_elf32_hook): Use relocator.
3705 (grub_bsd_elf64_size_hook): New function.
3706 (grub_bsd_elf64_hook): Use relocator.
3707 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
3708 (grub_bsd_load): Zero-out openbsd_ramdisk.
3709 (grub_bsd_load): Use relocator.
3710 (grub_cmd_openbsd): Support serial.
3711 (grub_cmd_netbsd): Support modules.
3712 (grub_cmd_freebsd_module): Use relocator.
3713 (grub_netbsd_module_load): New function.
3714 (grub_cmd_netbsd_module): Likewise.
3715 (grub_cmd_openbsd_ramdisk): Likewise.
3716 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
3717 kopenbsd_ramdisk.
3718 (GRUB_MOD_FINI): Unregister new commands.
3719 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
3720 (grub_freebsd_load_elfmodule_obj): Use relocator.
3721 (grub_freebsd_load_elfmodule): Likewise.
3722 (grub_freebsd_load_elf_meta): Likewise.
3723 (grub_netbsd_load_elf_meta): New function.
3724 (grub_openbsd_find_ramdisk): Likewise.
3725 * grub-core/loader/i386/bsd_helper.S: Removed.
3726 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
3727 * grub-core/loader/i386/bsd_trampoline.S: Removed.
3728 * grub-core/loader/i386/efi/linux.c: Likewise.
3729 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
3730 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
3731 (DEFAULT_VIDEO_MODE): Likewise.
3732 (real_mode_target): New variable.
3733 (prot_mode_target): Likewise.
3734 (initrd_mem_target): Likewise.
3735 (relocator): Likewise.
3736 (efi_mmap_buf): Likewise.
3737 (efi_mmap_size): Likewise.
3738 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
3739 (free_pages): Use relocator.
3740 (allocate_pages): Account for efi_mmap and use relocator. Return error.
3741 (grub_linux_setup_video): Return error.
3742 (grub_linux_trampoline_start): Removed.
3743 (grub_linux_trampoline_end): Likewise.
3744 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
3745 andd video parameters depending on firmware.
3746 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
3747 [GRUB_MACHINE_EFI]: Pass EFI parameters.
3748 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
3749 (grub_cmd_initrd): Use relocator.
3750 * grub-core/loader/i386/linux_trampoline.S: Removed.
3751 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
3752 (elf_sec_entsize): Likewise.
3753 (elf_sec_shstrndx): Likewise.
3754 (elf_sections): Likewise.
3755 (grub_multiboot_load): Use relocator.
3756 (grub_multiboot_get_mbi_size): Account for sections.
3757 (grub_multiboot_make_mbi): Use relocator and support sections.
3758 (grub_multiboot_add_elfsyms): New function.
3759 (grub_multiboot_free_mbi): Free sections.
3760 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
3761 (grub_linux_real_target): Likewise.
3762 (grub_linux_real_chunk): Likewise.
3763 (grub_linux16_prot_size): Likewise.
3764 (grub_linux16_boot): Use relocator.
3765 (grub_linux_unload): Unload relocator.
3766 (grub_cmd_linux): Use relocator.
3767 (grub_cmd_initrd): Likewise.
3768 * grub-core/loader/i386/pc/ntldr.c: New file.
3769 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
3770 Don't try to guess CPU frequency.
3771 (grub_xnu_set_video): Stretch bitmap.
3772 (grub_xnu_boot): Use relocator.
3773 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
3774 (grub_linux_unload): Free relocator.
3775 (grub_linux_load32): Use relocator.
3776 (grub_linux_load64): Likewise.
3777 (grub_cmd_initrd): Likewise.
3778 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
3779 (grub_multiboot_unload): Unload relocator.
3780 (grub_cmd_multiboot): Use relocator.
3781 (grub_cmd_module): Likewise.
3782 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
3783 Use relocator and support sections.
3784 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
3785 (elf_sec_entsize): Likewise.
3786 (elf_sec_shstrndx): Likewise.
3787 (elf_sections): Likewise.
3788 (grub_multiboot_load): Use relocator.
3789 (grub_multiboot_get_mbi_size): Account for sections.
3790 (grub_multiboot_make_mbi): Use relocator and support sections.
3791 (grub_multiboot_add_elfsyms): New function.
3792 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
3793 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
3794 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
3795 Prototype changed. All users updated.
3796 (grub_xnu_align_heap): Simplified.
3797 (grub_xnu_writetree_toheap): Likewise.
3798 (grub_xnu_unload): Unload relocator.
3799 (grub_cmd_xnu_kernel): Use relocator.
3800 (grub_cmd_xnu_kernel64): Likewise.
3801 (grub_xnu_register_memory): Simplified.
3802 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
3803 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
3804 EFI is finished.
3805 (grub_console_checkkey): Likewise.
3806 (grub_console_getkey): Likewise.
3807 (grub_console_getwh): Likewise.
3808 (grub_console_getxy): Likewise.
3809 (grub_console_gotoxy): Likewise.
3810 (grub_console_cls): Likewise.
3811 (grub_console_setcolorstate): Likewise.
3812 (grub_console_setcursor): Likewise.
3813 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
3814 * grub-core/tests/boot/kbsd.init-i386.S: New file.
3815 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
3816 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
3817 * grub-core/tests/boot/kernel-8086.S: Likewise.
3818 * grub-core/tests/boot/kernel-i386.S: Likewise.
3819 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
3820 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
3821 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
3822 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
3823 * grub-core/tests/boot/knetbsd.cfg: Likewise.
3824 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
3825 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
3826 * grub-core/tests/boot/linux.cfg: Likewise.
3827 * grub-core/tests/boot/linux.init-i386.S: Likewise.
3828 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
3829 * grub-core/tests/boot/linux16.cfg: Likewise.
3830 * grub-core/tests/boot/multiboot.cfg: Likewise.
3831 * grub-core/tests/boot/multiboot2.cfg: Likewise.
3832 * grub-core/tests/boot/ntldr.cfg: Likewise.
3833 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
3834 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
3835 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
3836 New definition.
3837 * include/grub/dl.h (grub_dl_unload_all): Removed.
3838 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
3839 (grub_efi_finish_boot_services): Change prototype.
3840 (grub_efi_is_finished): New variable.
3841 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
3842 Changed prototype.
3843 (grub_efiemu_finish_boot_services): Removed.
3844 (grub_machine_efiemu_init_tables): New prototype.
3845 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
3846 (grub_elf64_phdr_iterate): Likewise.
3847 * include/grub/i386/bsd.h: Include relocator.h.
3848 (freebsd_tag_header): New struct.
3849 (grub_openbsd_bios_mmap): Removed.
3850 (grub_unix_real_boot): Removed.
3851 (grub_freebsd_load_elfmodule32): Changed prototype.
3852 (grub_freebsd_load_elfmodule_obj64): Likewise.
3853 (grub_freebsd_load_elf_meta32): Likewise.
3854 (grub_freebsd_load_elf_meta64): Likewise.
3855 (grub_freebsd_add_meta): Removed.
3856 (grub_netbsd_load_elf_meta32): New prototype.
3857 (grub_netbsd_load_elf_meta64): Likewise.
3858 (grub_bsd_add_meta): Likewise.
3859 (grub_openbsd_ramdisk_descriptor): New struct.
3860 (grub_openbsd_find_ramdisk32): New prototype.
3861 (grub_openbsd_find_ramdisk64): Likewise.
3862 * include/grub/i386/coreboot/loader.h: Removed.
3863 * include/grub/i386/efi/loader.h: Likewise.
3864 * include/grub/i386/ieee1275/loader.h: Likewise.
3865 * include/grub/i386/linux.h (linux_kernel_header): Change void *
3866 to grub_uint32_t.
3867 * include/grub/i386/loader.h: Removed.
3868 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
3869 value.
3870 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
3871 (grub_phys_addr_t): New type.
3872 (grub_vtop): New inline function.
3873 (grub_map_memory): Likewise.
3874 (grub_unmap_memory): Likewise.
3875 * include/grub/i386/multiboot/loader.h: Removed.
3876 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
3877 (NETBSD_BTINFO_CONSOLE): New definition.
3878 (NETBSD_BTINFO_SYMTAB): Likewise.
3879 (NETBSD_BTINFO_MODULES): Likewise.
3880 (NETBSD_BTINFO_FRAMEBUF): Likewise.
3881 (grub_netbsd_bootinfo): New struct.
3882 (grub_netbsd_btinfo_common): Use explicit bitsize.
3883 (grub_netbsd_btinfo_mmap_entry): Removed.
3884 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
3885 (grub_netbsd_btinfo_bootdisk): New struct.
3886 (grub_netbsd_btinfo_symtab): Likewise.
3887 (grub_netbsd_btinfo_serial): Likewise.
3888 (grub_netbsd_btinfo_modules): Likewise.
3889 (grub_netbsd_btinfo_framebuf): Likewise.
3890 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
3891 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
3892 Likewise.
3893 (grub_openbsd_bootargs): Use explicit bitsize.
3894 (grub_openbsd_bootarg_console): New struct.
3895 (GRUB_OPENBSD_COM_MAJOR): New definition.
3896 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
3897 * include/grub/i386/pc/efiemu.h: Removed.
3898 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
3899 * include/grub/i386/qemu/loader.h: Removed.
3900 * include/grub/i386/relocator.h: Rewritten.
3901 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
3902 * include/grub/mips/memory.h: New file.
3903 * include/grub/mips/multiboot.h: Rewritten.
3904 * include/grub/mips/relocator.h: Rewritten.
3905 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
3906 (grub_vtop): New function.
3907 (grub_map_memory): Likewise.
3908 (grub_unmap_memory): Likewise.
3909 * include/grub/misc.h (ALIGN_DOWN): New definition.
3910 * include/grub/mm.h (grub_mm_check_real): New proto.
3911 (GRUB_MM_CHECK): New definition.
3912 * include/grub/mm_private.h: New file.
3913 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
3914 (grub_multiboot_get_mbi_size): Removed.
3915 (grub_multiboot_make_mbi): Change prottype.
3916 (grub_multiboot_set_accepts_video): New proto.
3917 (grub_multiboot_add_elfsyms): Likewise.
3918 (grub_multiboot_payload_eip): New variable.
3919 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
3920 New prototype.
3921 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
3922 New definition.
3923 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
3924 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
3925 * include/grub/powerpc/ieee1275/loader.h: Removed.
3926 * include/grub/powerpc/memory.h: New file.
3927 * include/grub/powerpc/relocator.h: Likewise.
3928 * include/grub/relocator.h: Likewise.
3929 * include/grub/relocator_private.h: Likewise.
3930 * include/grub/sparc64/ieee1275/loader.h: Removed.
3931 * include/grub/x86_64/memory.h: New file.
3932 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
3933 (grub_xnu_heap_malloc): Likewise.
3934 (grub_xnu_heap_real_start): Removed.
3935 (grub_xnu_heap_start): Likewise.
3936 (grub_xnu_relocator): New variable.
3937 (grub_xnu_heap_target_start): Likewise.
3938 * tests/util/grub-shell.in: Support non-pc.
3939 * util/grub-mkimage.c (image_targets): Fix multiboot target.
3940
3941 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3942
3943 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
3944 on malloc error.
3945 (grub_bidi_logical_to_visual): Check that malloc succeded.
3946 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
3947 puts.
3948 (grub_xputs_normal): Likewise.
3949
3950 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3951
3952 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
3953 extra_dist.
3954
3955 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3956
3957 * grub-core/efiemu/runtime/efiemu.sh: Removed.
3958
3959 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3960
3961 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
3962
3963 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3964
3965 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
3966 dprintf.
3967
3968 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
3969
3970 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
3971
3972 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3973
3974 * grub-core/normal/term.c (print_more): Fix a memory leak.
3975 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
3976 (grub_xputs_normal): Likewise.
3977
3978 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3979
3980 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
3981 the begining of the string
3982
3983 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3984
3985 * grub-core/script/script.c (grub_script_parse): Free parsed on
3986 failure.
3987
3988 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3989
3990 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
3991 on failure.
3992
3993 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
3996 return.
3997
3998 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3999
4000 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
4001 (scroll_up): Fix a memory leak.
4002
4003 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
4004
4005 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
4006 errors.
4007
4008 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
4009
4010 Handle USB pendrives exposed as floppies.
4011
4012 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
4013 floppy.
4014 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
4015 Check for partitions on all devices.
4016
4017 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
4018
4019 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
4020 (readkey): Likewise.
4021
4022 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
4023
4024 Multiple variable names support to "export" command.
4025
4026 * normal/context.c (grub_cmd_export): "export" command supports
4027 multiple variable names.
4028
4029 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
4030
4031 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
4032 --target=drive output to Mach device name.
4033
4034 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
4035
4036 New Automake based build system for GRUB.
4037
4038 * ABOUT-NLS: New file.
4039 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
4040 in Makefile.util.def file.
4041 * Makefile.util.def: New file. Autogen build definitions file for
4042 GRUB host utils.
4043 * conf/Makefile.common: New file. Common variables for GRUB host
4044 utils and target modules.
4045 * conf/Makefile.extra-dist: New file. Extra files for make dist.
4046 * docs/Makefile.am: New file. Automake file for docs.
4047 * gentpl.py: New file. Python script to generate Autogen
4048 template.
4049 * grub-core/Makefile.am: New file. GRUB target modules' rules
4050 that doesn't fit in Makefile.core.def file.
4051 * grub-core/Makefile.core.def: New file. Autogen build
4052 definitions file for GRUB target modules.
4053 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
4054 specific setjmp.S file.
4055 * po/Makefile.am: New file.
4056
4057 * .bzrignore: New ignores.
4058 * INSTALL: New requirements, without Ruby.
4059 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
4060 * autogen.sh: Updated to invoke autogen as necessary.
4061 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
4062 and defines for Automake conditionals.
4063 * geninit.sh: Refactoring.
4064
4065 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
4066 necessary.
4067 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
4068 New prototype.
4069
4070 * include/grub/test.h: Fix functional test modules' naming.
4071 * grub-core/tests/example_functional_test.c: Fix test module name.
4072
4073 * util/misc.c: Hosted versions' of grub functions for libgrub.a
4074 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
4075 * util/grub-editenv.c: Likewise.
4076 * util/grub-fstest.c: Likewise.
4077 * util/grub-mkdevicemap.c: Likewise.
4078 * util/grub-mkfont.c: Likewise.
4079 * util/grub-mkimage.c: Likewise.
4080 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4081 * util/grub-probe.c: Likewise.
4082 * util/grub-script-check.c: Likewise.
4083 * util/i386/pc/grub-setup.c: Likewise.
4084 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4085
4086 * tests/util/grub-shell.in: Fix override directory path.
4087 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
4088 * util/import_gcry.py: Create Makefile.gcry.def file instead.
4089
4090 * util/lvm.c: Update #includes.
4091 * util/raid.c: Likewise.
4092 * util/resolve.c: Likewise.
4093 * grub-core/bus/emu/pci.c: Likewise.
4094 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
4095 * grub-core/lib/posix_wrap/string.h: Likewise.
4096 * grub-core/kern/emu/main.c: Likewise.
4097
4098 * grub-core/gensymlist.sh: New file. Script for generating kernel
4099 symbols file.
4100 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
4101
4102 * grub-core/gentrigtables.c: Fix unused variable warnings.
4103
4104 * Makefile.in: Removed.
4105 * conf/any-emu.rmk: Removed.
4106 * conf/common.rmk: Removed.
4107 * conf/i386-coreboot.rmk: Removed.
4108 * conf/i386-efi.rmk: Removed.
4109 * conf/i386-ieee1275.rmk: Removed.
4110 * conf/i386-multiboot.rmk: Removed.
4111 * conf/i386-pc.rmk: Removed.
4112 * conf/i386-qemu.rmk: Removed.
4113 * conf/i386.rmk: Removed.
4114 * conf/mips-yeeloong.rmk: Removed.
4115 * conf/mips.rmk: Removed.
4116 * conf/powerpc-ieee1275.rmk: Removed.
4117 * conf/sparc64-ieee1275.rmk: Removed.
4118 * conf/tests.rmk: Removed.
4119 * conf/x86-efi.rmk: Removed.
4120 * conf/x86_64-efi.rmk: Removed.
4121 * gendistlist.sh: Removed.
4122 * geninitheader.sh: Removed.
4123 * genkernsyms.sh.in: Removed.
4124 * genmk.rb: Removed.
4125 * gensymlist.sh.in: Removed.
4126 * mkinstalldirs: Removed.
4127 * boot: Moved ...
4128 * grub-core/boot: ... to here.
4129 * bus: Moved ...
4130 * grub-core/bus: ... to here.
4131 * commands: Moved ...
4132 * grub-core/commands: ... to here.
4133 * disk: Moved ...
4134 * grub-core/disk: ... to here.
4135 * efiemu: Moved ...
4136 * grub-core/efiemu: ... to here.
4137 * font: Moved ...
4138 * grub-core/font: ... to here.
4139 * fs: Moved ...
4140 * grub-core/fs: ... to here.
4141 * gencmdlist.sh: Moved ...
4142 * grub-core/gencmdlist.sh: ... to here.
4143 * genemuinit.sh: Moved ...
4144 * grub-core/genemuinit.sh: ... to here.
4145 * genemuinitheader.sh: Moved ...
4146 * grub-core/genemuinitheader.sh: ... to here.
4147 * genfslist.sh: Moved ...
4148 * grub-core/genfslist.sh: ... to here.
4149 * genhandlerlist.sh: Moved ...
4150 * grub-core/genhandlerlist.sh: ... to here.
4151 * genmoddep.awk: Moved ...
4152 * grub-core/genmoddep.awk: ... to here.
4153 * genmodsrc.sh: Moved ...
4154 * grub-core/genmodsrc.sh: ... to here.
4155 * genpartmaplist.sh: Moved ...
4156 * grub-core/genpartmaplist.sh: ... to here.
4157 * genparttoollist.sh: Moved ...
4158 * grub-core/genparttoollist.sh: ... to here.
4159 * genterminallist.sh: Moved ...
4160 * grub-core/genterminallist.sh: ... to here.
4161 * gentrigtables.c: Moved ...
4162 * grub-core/gentrigtables.c: ... to here.
4163 * genvideolist.sh: Moved ...
4164 * grub-core/genvideolist.sh: ... to here.
4165 * gettext: Moved ...
4166 * grub-core/gettext: ... to here.
4167 * gfxmenu: Moved ...
4168 * grub-core/gfxmenu: ... to here.
4169 * gnulib: Moved ...
4170 * grub-core/gnulib: ... to here.
4171 * hello: Moved ...
4172 * grub-core/hello: ... to here.
4173 * hook: Moved ...
4174 * grub-core/hook: ... to here.
4175 * io: Moved ...
4176 * grub-core/io: ... to here.
4177 * kern: Moved ...
4178 * grub-core/kern: ... to here.
4179 * lib: Moved ...
4180 * grub-core/lib: ... to here.
4181 * loader: Moved ...
4182 * grub-core/loader: ... to here.
4183 * mmap: Moved ...
4184 * grub-core/mmap: ... to here.
4185 * normal: Moved ...
4186 * grub-core/normal: ... to here.
4187 * partmap: Moved ...
4188 * grub-core/partmap: ... to here.
4189 * parttool: Moved ...
4190 * grub-core/parttool: ... to here.
4191 * script: Moved ...
4192 * grub-core/script: ... to here.
4193 * term: Moved ...
4194 * grub-core/term: ... to here
4195 * tests/example_functional_test.c: Moved ...
4196 * grub-core/tests/example_functional_test.c: ... to here.
4197 * tests/lib/functional_test.c: Moved ...
4198 * grub-core/tests/lib/functional_test.c: ... to here.
4199 * tests/lib/test.c: Moved ...
4200 * grub-core/tests/lib/test.c: ... to here.
4201 * video: Moved ...
4202 * grub-core/video: ... to here.
4203
4204 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
4205
4206 Replace --enable-grub-emu-modules with grub-emu-lite.
4207
4208 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
4209 cache.S.
4210
4211 * include/grub/emu/misc.h (grub_emu_init): New prototype.
4212 * kern/emu/full.c: New file. For grub-emu specific initialization.
4213 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
4214 * kern/emu/main.c: Call initialization function grub_emu_init.
4215
4216 * Makefile.in: Include grub-emu-lite in install.
4217 * commands/parttool.c: Use grub_no_autoload to differentiate
4218 between grub-emu and grub-emu-lite.
4219 * include/grub/misc.h: New variable grub_no_autoload.
4220
4221 * conf/any-emu.rmk: New rules for grub-emu-lite.
4222 * configure.ac: Remove --enable-grub-emu-modules.
4223 * genmk.rb: Cleanup unnecessary rules.
4224 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
4225
4226 * normal/main.c: Don't load list files on grub-emu-lite.
4227 * util/misc.c (grub_arch_sync_caches): Removed.
4228
4229 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
4230
4231 * kern/mips/startup.S (grub_prefix): Update comment to refer to
4232 grub-mkimage rather than grub-mkelfimage.
4233 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
4234
4235 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4236
4237 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
4238 a key after CapsLock or NumLock. It's just a qemu bug.
4239
4240 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4241
4242 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
4243 needed by libusb wrapper.
4244
4245 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
4246
4247 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
4248
4249 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4250
4251 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
4252 --nounzip is passed.
4253
4254 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
4255
4256 USB hotunplugging and USB serial support.
4257
4258 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
4259 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
4260 (grub_uhci_transfer): Respect timeout and set *actual.
4261 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
4262 non-standard length.
4263 (grub_usb_device_attach): Autoload modules.
4264 (GRUB_MOD_INIT): Set grub_term_poll_usb.
4265 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
4266 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
4267 users updated.
4268 (grub_usb_add_hub): Fill nports and children.
4269 (attach_root_port): Receive hub instead of controller.
4270 All users updated. Fill hub->devices.
4271 (grub_usb_root_hub): Allocate hub->devices.
4272 (detach_device): New function.
4273 (poll_nonroot_hub): Fill children and detach devices.
4274 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
4275 actual arguments. All users updated.
4276 (grub_usb_bulk_read_extended): New function.
4277 * bus/usb/serial/common.c: New file.
4278 * bus/usb/serial/ftdi.c: Likewise.
4279 * bus/usb/serial/pl2303.c: Likewise.
4280 * commands/terminal.c (handle_command): Support wildcard.
4281 * commands/usbtest.c: Output "Unknown" instead of empty string.
4282 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
4283 (usbserial_common_mod_SOURCES): New variable.
4284 (usbserial_common_mod_CFLAGS): Likewise.
4285 (usbserial_common_mod_LDFLAGS): Likewise.
4286 (pkglib_MODULES): Add usbserial_pl2303.mod.
4287 (usbserial_pl2303_mod_SOURCES): New variable.
4288 (usbserial_pl2303_mod_CFLAGS): Likewise.
4289 (usbserial_pl2303_mod_LDFLAGS): Likewise.
4290 (pkglib_MODULES): Add usbserial_ftdi.mod.
4291 (usbserial_ftdi_mod_SOURCES): New variable.
4292 (usbserial_ftdi_mod_CFLAGS): Likewise.
4293 (usbserial_ftdi_mod_LDFLAGS): Likewise.
4294 (pkglib_MODULES): Add serial.mod.
4295 (serial_mod_SOURCES): New variable.
4296 (serial_mod_CFLAGS): Likewise.
4297 (serial_mod_LDFLAGS): Likewise.
4298 * conf/i386-pc.rmk: Likewise.
4299 * conf/mips-yeeloong.rmk: Likewise.
4300 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
4301 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
4302 * disk/usbms.c (first_available_slot): New variable.
4303 (grub_usbms_attach): Don't reuse free slots due to potential cache
4304 problems.
4305 * include/grub/serial.h: Moved to ..
4306 * include/grub/ns8250.h: ...this.
4307 * include/grub/serial.h: New file.
4308 * include/grub/term.h (grub_term_poll_usb): New variable.
4309 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
4310 readkey. All users updated.
4311 (grub_terminfo_output_state): Pass term to put.
4312 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
4313 (grub_usb_controller_dev): Add timeout and actual arguments to
4314 transfer. All users updated.
4315 (grub_usb_interface): New field detach_data.
4316 (grub_usb_device): New fields children and nports.
4317 (grub_usb_ep_type_t): New type.
4318 (grub_usb_get_ep_type): New function.
4319 (grub_usb_bulk_read_extended): Likewise.
4320 * include/grub/usbdesc.h (grub_usb_desc): New type.
4321 * include/grub/usbserial.h: New file.
4322 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
4323 * kern/term.c (grub_term_poll_usb): New variable.
4324 (grub_getkey): Call grub_term_poll_usb if set.
4325 (grub_checkkey): Likewise.
4326 (grub_getkeystatus): Likewise.
4327 * term/serial.c: Moved controller-specific parts to ...
4328 * term/ns8250.c: ... here.
4329 * term/serial.c: Mostly rewritten.
4330 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
4331 according to spec.
4332
4333 2010-08-20 Robert Millan <rmh@gnu.org>
4334
4335 Make kFreeBSD code more generic to support ext2fs as root, ufs as
4336 a separate module and maybe other interesting combinations.
4337
4338 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
4339 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
4340 (kfreebsd_entry): Add generic filesystem module load routine.
4341 Map GRUB `ext2' to kFreeBSD `ext2fs'.
4342
4343 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
4344
4345 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
4346 "numcenter" (I misunderstood the purpose of this entry).
4347 * docs/grub.texi (sendkey): Likewise.
4348
4349 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
4350
4351 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
4352 status flag options; simply omitting the option is equivalent and
4353 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
4354 (keysym_table): Rename "num5numlock" to "numlock".
4355 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
4356 can uniformly say that only the last of multiple `sendkey'
4357 invocations has any effect.
4358 * docs/grub.texi (sendkey): New section.
4359
4360 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
4361
4362 * commands/i386/pc/sendkey.c (options): Fix three typos.
4363
4364 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
4365
4366 Implement sendkey support.
4367
4368 * commands/i386/pc/sendkey.c: New file.
4369 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
4370 (sendkey_mod_SOURCES): New variable.
4371 (sendkey_mod_CFLAGS): Likewise.
4372 (sendkey_mod_LDFLAGS): Likewise.
4373
4374 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
4375
4376 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
4377 fix warnings from Autoconf.
4378
4379 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
4380
4381 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
4382 to avoid false positives with some assemblers that output things
4383 like "someprefix_func" as part of their output.
4384
4385 2010-08-15 Robert Millan <rmh@gnu.org>
4386
4387 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
4388 errors.
4389 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
4390 grub_get_libzfs_handle() errors.
4391
4392 2010-08-14 Robert Millan <rmh@gnu.org>
4393
4394 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
4395 filesystem is not ZFS.
4396
4397 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
4398
4399 Fix for misspelled color names defaulting to black/black (bug
4400 reported by Doug Nazar)
4401
4402 * include/grub/normal.h (grub_parse_color_name_pair): Add return
4403 status to prototype.
4404 * normal/color.c (grub_parse_color_name_pair): Return failure
4405 status.
4406 (grub_env_write_color_normal): Ignore bad color names.
4407 (grub_env_write_color_highlight): Likewise.
4408 * normal/main.c (GRUB_MOD_INIT): Set default color names.
4409
4410 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
4411
4412 "shift" command support to GRUB script.
4413
4414 * include/grub/script_sh.h (grub_script_shift): New prototype.
4415 * script/execute.c (grub_script_shift): New function.
4416 * script/main.c (grub_script_init): Register shift command.
4417 (grub_script_fini): Unregister shift command.
4418 * util/grub-script-check.c (grub_script_cmd_shift): New function.
4419
4420 * tests/grub_script_shift.in: New testcase.
4421 * conf/tests.rmk: Rules for new testcase.
4422
4423 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
4424
4425 "continue" command support to GRUB script.
4426
4427 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
4428 (grub_script_break): Continue support.
4429 * script/main.c (grub_script_init): Register continue command.
4430 (grub_script_fini): Unregister continue command.
4431
4432 * tests/grub_script_continue.in: New testcase.
4433 * conf/tests.rmk: Rules for new testcase.
4434
4435 2010-08-12 BVK Chaitanya <bvk@dbook>
4436
4437 "break" command support to GRUB script.
4438
4439 * conf/common.rmk: Rule updates to grub-script-check.
4440 * include/grub/misc.h (grub_min): New function.
4441 * include/grub/script_sh.h (grub_script_init): New prototype.
4442 (grub_script_fini): New prototype.
4443 (grub_script_break): New prototype.
4444 * script/main.c (grub_script_init): New function.
4445 (grub_script_fini): New function.
4446 * script/execute.c (grub_script_break): New function.
4447 * normal/main.c: Calls to grub_script_{init,fini}.
4448 * util/grub-script-check.c (grub_script_break): New function.
4449
4450 * tests/grub_script_break.in: New testcase.
4451 * conf/tests.rmk: Rules for new test case.
4452
4453 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
4454
4455 Function parameters support to GRUB script.
4456
4457 * script/yylex.l (VARIABLE): Regular expression update.
4458 * script/function.c (grub_script_function_call): Moved ...
4459 * script/execute.c (grub_script_function_call): ... to here.
4460 (grub_script_execute_arglist_to_argv): Removed.
4461 (grub_script_arglist_to_argv): New function.
4462 * script/argv.c: New file.
4463 (grub_script_argv_free): New function.
4464 (grub_script_argv_next): Likewise.
4465 (grub_script_argv_append): Likewise.
4466 (grub_script_argv_split_append): Likewise.
4467 * include/grub/script_sh.h (grub_script_argv): New struct.
4468 (grub_script_argv_free): New function.
4469 (grub_script_argv_next): Likewise.
4470 (grub_script_argv_append): Likewise.
4471 (grub_script_argv_split_append): Likewise.
4472
4473 * conf/common.rmk (normal.mod): New source script/argv.c.
4474
4475 * tests/grub_script_echo1.in: More tests.
4476 * tests/grub_script_vars1.in: Likewise.
4477 * tests/grub_script_functions.in: New test case.
4478 * conf/tests.rmk: Rules for new testcase.
4479
4480 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
4481
4482 Remove grub_script_cmdblock struct.
4483
4484 * include/grub/script_sh.h: Remove grub_script_cmdblock.
4485 * script/parser.y: Likewise.
4486 * script/execute.c: Rename cmdblock suffix to cmdlist.
4487 * script/script.c: Likewise.
4488 * util/grub-script-check.c: Likewise.
4489
4490 2010-08-11 Yves Blusseau <blusseau@zetam.org>
4491
4492 * .bzrignore: add grub-macho2img
4493
4494 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
4495
4496 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
4497
4498 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
4499
4500 Remove the dump of sm712 initialisation sequence.
4501
4502 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
4503 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
4504 (GRUB_VGA_IO_MISC_WRITE): Likewise.
4505 (GRUB_VGA_CR_*): Added many registers.
4506 (GRUB_VGA_SR_*): Likewise.
4507 (GRUB_VGA_GR_*): Likewise.
4508 (grub_vga_write_arx): New function.
4509 (grub_video_hw_config): New struct.
4510 (grub_vga_set_geometry): New function.
4511 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
4512 GRUB_PCI_CLASS_SUBCLASS_VGA.
4513 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
4514 * video/sm712.c (grub_sm712_write_reg): New function
4515 (grub_sm712_read_reg): Likewise.
4516 (grub_sm712_sr_write): Likewise.
4517 (grub_sm712_gr_write): Likewise.
4518 (grub_sm712_cr_write): Likewise.
4519 (grub_sm712_write_arx): Likewise.
4520 (grub_sm712_cr_shadow_write): Likewise.
4521 (grub_sm712_write_dda_lookup): Likewise.
4522 (grub_video_sm712_setup): Initialise the video rather then
4523 blindly replay the dump.
4524 (main) [TEST]: Add a routine to be able to compile as standalone for
4525 tests.
4526 * video/sm712_init.c (sm712_init): Removed.
4527 (sm712_sr_seq1): New array.
4528 (sm712_sr_seq2): Likewise.
4529
4530 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
4531
4532 * include/grub/vga.h: Add missing grub/pci.h include.
4533
4534 2010-08-10 Yves Blusseau <blusseau@zetam.org>
4535
4536 * util/grub-macho2img.c (main): fix typo
4537
4538 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
4539
4540 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
4541 (grub_vga_gr_read): Likewise.
4542 (grub_vga_cr_write): Likewise.
4543 (grub_vga_cr_read): Likewise.
4544 (grub_vga_sr_write): Likewise.
4545 (grub_vga_sr_read): Likewise.
4546 (grub_vga_palette_read): Likewise.
4547 (grub_vga_palette_write): Likewise.
4548 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
4549 (grub_sm712_sr_read): New function.
4550 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
4551 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
4552
4553 2010-08-09 Robert Millan <rmh@gnu.org>
4554
4555 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
4556 out unused variables on non-ZFS build.
4557
4558 2010-08-08 Robert Millan <rmh@gnu.org>
4559
4560 Fix path generation for sub-filesystems in ZFS.
4561
4562 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
4563 missing slash.
4564
4565 2010-08-08 Robert Millan <rmh@gnu.org>
4566
4567 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
4568
4569 2010-08-08 Robert Millan <rmh@gnu.org>
4570
4571 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
4572 exist, issue a proper error message (rely on `ls' for translated
4573 strings).
4574
4575 2010-08-08 Robert Millan <rmh@gnu.org>
4576
4577 Fix grub-probe invocation.
4578
4579 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
4580
4581 2010-08-04 Robert Millan <rmh@gnu.org>
4582
4583 * configure.ac: Remove checks for getfsstat() and getmntany().
4584 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
4585 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
4586 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
4587 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
4588 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
4589 function.
4590 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
4591 via find_mount_point_from_dir() and getfsstat() / getmntany().
4592
4593 2010-08-04 Robert Millan <rmh@gnu.org>
4594
4595 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
4596 (grub_find_zpool_from_mount_point): Merge into ...
4597 (grub_find_zpool_from_dir): ... this.
4598 * kern/emu/misc.c: Likewise.
4599
4600 * kern/emu/misc.c
4601 (grub_make_system_path_relative_to_its_root): Replace
4602 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
4603 with grub_find_zpool_from_dir().
4604 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
4605
4606 2010-08-04 Robert Millan <rmh@gnu.org>
4607
4608 Support OpenSolaris in ZFS device resolution.
4609
4610 * configure.ac: Check for getmntany().
4611 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
4612 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
4613 support.
4614
4615 2010-08-03 Robert Millan <rmh@gnu.org>
4616
4617 Fix grub-emu build.
4618
4619 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
4620 * include/grub/emu/misc.h: ... here.
4621
4622 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
4623 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
4624
4625 * util/misc.c: Remove `<grub/util/libzfs.h>'.
4626 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
4627 (grub_get_libzfs_handle): Move to ...
4628 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
4629 (grub_get_libzfs_handle): ... here.
4630
4631 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
4632
4633 * script/execute.c (grub_script_execute_cmdline): Check for NULL
4634 as command name case.
4635
4636 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
4637
4638 * disk/raid.c (insert_array): Select unique numbers for named arrays
4639 as well, for use as keys in the disk cache.
4640
4641 2010-08-01 Robert Millan <rmh@gnu.org>
4642
4643 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
4644 kFreeBSD device name, except on ZFS where the filesystem label is
4645 used.
4646 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
4647 `/boot/zfs/zpool.cache'.
4648 Set mountfrom kernel variable using ${kfreebsd_device}.
4649
4650 2010-08-01 Robert Millan <rmh@gnu.org>
4651
4652 Make it even harder to use uninitialized `libzfs_handle' (and
4653 make the interface a bit simpler).
4654
4655 * include/grub/util/misc.h (grub_util_init_libzfs)
4656 (libzfs_handle): Remove.
4657 (grub_get_libzfs_handle): New prototype.
4658
4659 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
4660 attribute.
4661 (grub_util_init_libzfs): Remove.
4662 (grub_get_libzfs_handle): New function.
4663
4664 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
4665 grub_get_libzfs_handle() to obtain a libzfs handle instead of
4666 accessing `libzfs_handle' directly.
4667
4668 2010-08-01 Robert Millan <rmh@gnu.org>
4669
4670 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
4671 (grub_find_zpool_from_mount_point): New function prototypes.
4672
4673 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
4674 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
4675
4676 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
4677 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
4678 `static' attribute.
4679
4680 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
4681 finding zpool from mount point into ...
4682 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
4683
4684 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
4685 requested path is part of a ZFS pool, use
4686 grub_find_zpool_from_mount_point() to detect its filesystem name,
4687 and generate a path with `/fsname@path' syntax.
4688
4689 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
4690
4691 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
4692 (void) rather than () so that this is a proper prototype.
4693
4694 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
4695
4696 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
4697
4698 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
4699
4700 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
4701 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
4702
4703 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
4704
4705 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
4706
4707 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
4708
4709 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
4710
4711 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
4712
4713 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
4714 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
4715 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
4716 disable gfxpayload.
4717 (Shell-like scripting): Add real content.
4718 (Serial terminal): Suggest `terminal_input serial; terminal_output
4719 serial' rather than putting the two commands on separate lines,
4720 since console input will be inoperative after the first command.
4721 (menuentry): Document --class, --users, and --hotkey options.
4722 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
4723 Vladimir Serbinenko).
4724
4725 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
4726 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
4727
4728 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
4729
4730 2010-08-01 Robert Millan <rmh@gnu.org>
4731
4732 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
4733 (grub_find_zpool_from_mount_point): New function prototypes.
4734
4735 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
4736 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
4737
4738 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
4739 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
4740 `static' attribute.
4741
4742 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
4743 finding zpool from mount point into ...
4744 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
4745
4746 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
4747 requested path is part of a ZFS pool, use
4748 grub_find_zpool_from_mount_point() to detect its filesystem name,
4749 and generate a path with `/fsname@path' syntax.
4750
4751 2010-08-01 Robert Millan <rmh@gnu.org>
4752
4753 Prevent accidental use of uninitialized libzfs_handle.
4754
4755 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
4756 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
4757 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
4758
4759 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
4760
4761 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
4762 util/grub.d/10_linux.in). Fixes Debian bug #591093.
4763
4764 2010-08-01 Robert Millan <rmh@gnu.org>
4765
4766 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
4767
4768 2010-07-31 Robert Millan <rmh@gnu.org>
4769
4770 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
4771
4772 2010-07-31 Robert Millan <rmh@gnu.org>
4773
4774 * kern/emu/misc.c: Add missing license header.
4775
4776 2010-07-31 Robert Millan <rmh@gnu.org>
4777
4778 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
4779
4780 * include/grub/util/libnvpair.h: Include `<config.h>'.
4781 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
4782 declaring libnvpair prototypes ourselves.
4783 * include/grub/util/libzfs.h: Include `<config.h>'.
4784 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
4785 declaring libzfs prototypes ourselves.
4786
4787 (libzfs_handle): Moved to ...
4788 * include/grub/util/misc.h (libzfs_handle): ... here.
4789 Include `<grub/util/libzfs.h>'.
4790
4791 2010-07-30 Robert Millan <rmh@gnu.org>
4792
4793 * include/grub/emu/misc.h: Add missing license header.
4794
4795 2010-07-30 Robert Millan <rmh@gnu.org>
4796
4797 Enable `grub-probe -t device' resolution on ZFS.
4798
4799 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
4800 * include/grub/util/libnvpair.h: New file.
4801 * include/grub/util/libzfs.h: New file.
4802
4803 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
4804 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
4805 `<grub/util/libnvpair.h>'.
4806 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
4807
4808 (find_mount_point_from_dir): New static function.
4809 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
4810 function.
4811 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
4812 find_root_device_from_libzfs() before ressorting to find_root_device().
4813
4814 * include/grub/util/misc.h (grub_util_init_libzfs): New function
4815 prototype.
4816 * util/misc.c: Include `<grub/util/libzfs.h>'.
4817 (grub_util_init_libzfs): New function.
4818 [HAVE_LIBZFS] (libzfs_handle): New global variable.
4819 [HAVE_LIBZFS] (fini_libzfs): New static function.
4820 (grub_util_init_libzfs): New function.
4821 * util/grub-probe.c (main): Call grub_util_init_libzfs().
4822
4823 2010-07-30 Robert Millan <rmh@gnu.org>
4824
4825 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
4826 (xmalloc, xrealloc, xstrdup, xasprintf): Add
4827 `warn_unused_result' attribute.
4828 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
4829 (grub_xasprintf, grub_xvasprintf): Likewise.
4830 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
4831
4832 2010-07-29 Robert Millan <rmh@gnu.org>
4833
4834 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
4835 (probe): Handle `PRINT_FS_LABEL'.
4836 (main): Handle `-t fs_label'.
4837
4838 2010-07-29 Robert Millan <rmh@gnu.org>
4839
4840 * configure.ac: Remove grub-mkisofs checks.
4841
4842 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
4843
4844 * util/ieee1275/grub-install.in: Don't use empty grub_device.
4845 Reported by: Lennart Sorensen.
4846
4847 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4848
4849 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
4850 prior to terminal_input/terminal_output separation. It's been over 1.5
4851 years and those versions weren't widely deployed.
4852
4853 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
4854
4855 * disk/raid.c (insert_array): Don't count named arrays when looking
4856 for unused array numbers.
4857 Reported and tested by: Michael Guntsche.
4858
4859 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
4860
4861 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
4862 implementation of this so that grub-emu links again, with a note
4863 that this should support hotplugging in the future.
4864
4865 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
4866
4867 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
4868
4869 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
4870
4871 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
4872 handle on failure.
4873 (grub_loopback_close): Remove empty function.
4874 (grub_loopback_dev): Remove close method.
4875
4876 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
4877
4878 Disable EFI cursor when the EFI console becomes inactive.
4879
4880 * term/efi/console.c (grub_efi_console_init): New function.
4881 (grub_efi_console_fini): New function.
4882 (grub_console_term_output): Register init and fini methods.
4883
4884 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4885
4886 * tests/util/grub-shell-tester.in: Remove bashism and declare as
4887 sh script.
4888
4889 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4890
4891 * disk/loopback.c (grub_loopback): Replace filename with file.
4892 (delete_loopback): Handle new semantics.
4893 (grub_cmd_loopback): Likewise.
4894 (grub_loopback_iterate): Likewise.
4895 (grub_loopback_close): Likewise.
4896
4897 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4898
4899 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
4900 with -p "".
4901 Reported by: Tito Keitel.
4902
4903 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4904
4905 * docs/grub.texi (Naming convention): Document new naming convention.
4906
4907 2010-07-20 Vadim Solomin <vadic052@gmail.com>
4908 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
4909
4910 Generate device.map in something closer to the old ordering.
4911
4912 * util/deviceiter.c (struct device): New declaration.
4913 (compare_file_names): Rename to ...
4914 (compare_devices): ... this. Sort by kernel name in preference to
4915 the stable by-id name, but keep the latter as a fallback comparison.
4916 Update header comment.
4917 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
4918 of `struct device' rather than of plain file names.
4919
4920 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
4921
4922 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
4923 on i386.
4924
4925 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4926
4927 * commands/acpi.c (setup_common_tables): Use sizeof instead of
4928 hardcoding size.
4929 (setv1table): Likewise.
4930
4931 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
4932
4933 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
4934 removing the homehost if present.
4935 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
4936 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
4937 removing the homehost if present.
4938 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
4939 if possible.
4940 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
4941
4942 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
4943 parameter. Set its pointer target to 0.
4944 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
4945 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
4946 `data_offset' value from the superblock for 1.x metadata.
4947 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
4948 data on the device.
4949 (insert_array): Record the start sector of data on the device.
4950 (grub_raid_register): Pass start_sector parameters to
4951 grub_raid_list->detect and insert_array.
4952 * include/grub/raid.h (struct grub_raid_array): Add start_sector
4953 member.
4954 (struct grub_raid): Add start_sector parameter to `detect'.
4955
4956 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
4957 __attribute__ ((packed)), leaving a comment.
4958 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
4959 (grub_mdraid_detect_09): ... here and ...
4960 (grub_mdraid_detect_1x): ... here.
4961
4962 2010-07-20 Peter Henn <peter.henn@web.de>
4963
4964 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
4965 chunk size and disk size, which are already given as sector counts
4966 as distinct from the 0.90 units. Fetch the correct device number
4967 from the role table instead of using the table index.
4968
4969 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
4970
4971 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
4972 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
4973 (WriteMostly1): New macro.
4974 Set array->name to NULL for metadata format 0.90. Add support for
4975 metadata 1.x. Fix some comments.
4976 * disk/raid.c (): Add support for name based RAID arrays. Fix a
4977 few comments.
4978 * util/getroot.c (grub_util_get_grub_dev): Add support for
4979 /dev/md/name style devices.
4980
4981 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
4982
4983 * .bzrignore: Ignore 20_linux_xen.
4984
4985 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
4986
4987 * util/import_unicode.py: Remove unnecessary imports.
4988
4989 2010-07-17 Aleš Nesrsta <starous@volny.cz>
4990
4991 Hotplugging and USB hub support.
4992
4993 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
4994 (grub_ohci): Likewise.
4995 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
4996 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
4997 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
4998 (GRUB_OHCI_CTRL_EDS): Likewise.
4999 (GRUB_OHCI_BULK_EDS): Likewise.
5000 (GRUB_OHCI_TDS): Likewise.
5001 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
5002 (grub_ohci_ed_phys2virt): New function.
5003 (grub_ohci_virt_to_phys): Likewise.
5004 (grub_ohci_td_phys2virt): Likewise.
5005 (grub_ohci_td_virt2phys): Likewise.
5006 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
5007 attachment.
5008 (grub_ohci_find_ed): New function.
5009 (grub_ohci_alloc_td): Likewise.
5010 (grub_ohci_free_td): Likewise.
5011 (grub_ohci_free_tds): Likewise.
5012 (grub_ohci_transfer): Use previously allocated memory.
5013 (grub_ohci_portstatus): Reset status changed bit.
5014 (grub_ohci_detect_dev): Supply status changed.
5015 (grub_ohci_fini_hw): Free memory.
5016 (grub_ohci_restore_hw): Reallocate memory.
5017 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
5018 Reset status change.
5019 (grub_uhci_detect_dev): Supply status_change.
5020 * bus/usb/usb.c (attach_hooks): New var.
5021 (grub_usb_device_attach): New function.
5022 (grub_usb_register_attach_hook_class): Likewise.
5023 (grub_usb_unregister_attach_hook_class): Likewise.
5024 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
5025 (grub_usb_add_hub): Reset connection changed bit.
5026 (attach_root_port): New function.
5027 (grub_usb_root_hub): Likewise.
5028 (poll_nonroot_hub): Likewise.
5029 (grub_usb_poll_devices): Likewise.
5030 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
5031 * disk/usbms.c (grub_usbms_open): Use device hooks.
5032 (grub_usbms_iterate) :Poll devices.
5033 (grub_usbms_finddevs): Split into ...
5034 (grub_usbms_attach): ... this ...
5035 (grub_usbms_attach): ... and this.
5036 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
5037 in detect_dev.
5038 (grub_usb_interface): New fields attached and detach_hook.
5039 (grub_usb_attach_hook_class): New type.
5040 (grub_usb_attach_desc): New struct.
5041 (grub_usb_register_attach_hook_class): New function.
5042 (grub_usb_unregister_attach_hook_class): Likewise.
5043 (grub_usb_poll_devices): Likewise.
5044 (grub_usb_device_attach): Likewise.
5045 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
5046 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
5047
5048 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
5049
5050 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
5051 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
5052 delta determination style. Works with most NetBSD partitions too.
5053
5054 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
5055
5056 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
5057 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
5058
5059 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
5060
5061 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
5062
5063 2010-07-14 Anton Blanchard <anton@samba.org>
5064
5065 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
5066 ET_DYN files.
5067
5068 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
5069
5070 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
5071
5072 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
5073
5074 * kern/partition.c (grub_partition_check_containment): New function to
5075 check that a partition is physically contained in a parent. Since
5076 offsets are relative (and non-negative), this reduces to checking that
5077 the partition ends before its parent.
5078 (grub_partition_map_probe): Discard out-of-range sub-partitions.
5079 (grub_partition_iterate): Likewise.
5080 * include/grub/partition.h (grub_partition_map): Slightly more detailed
5081 comments.
5082 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
5083 partitions that start before their parent, and add debug printfs.
5084
5085 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
5086
5087 * Makefile.in (.SUFFIX): Spell correctly, as ...
5088 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
5089 bare module name without `.mod', e.g. `test') tried to invoke a
5090 Modula-2 compiler.
5091
5092 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
5093
5094 * README: Point to the Info manual.
5095
5096 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
5097
5098 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
5099 2nd superblock position from partition size.
5100
5101 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
5102
5103 * Makefile.in (MAINTAINER_CLEANFILES): Remove
5104 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
5105 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
5106 outputs.
5107
5108 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5109
5110 Restructure SCSI .id handling.
5111 Reported and tested by: Aleš Nesrsta.
5112
5113 * disk/ata.c (grub_atapi_close): Removed. All users updated.
5114 (grub_atapi_dev): Changed .name to "ata". New field .id.
5115 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
5116 (grub_usbms_dev): New field .id.
5117 * disk/scsi.c (grub_scsi_iterate): Generate name.
5118 (grub_scsi_open): Parse name.
5119 * include/grub/scsi.h (grub_make_scsi_id): New function.
5120 (grub_scsi_dev): Change iterate and open to number instead of naming
5121 busses. All users updated.
5122 (grub_scsi): Remove name. Add .bus.
5123
5124 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5125
5126 * commands/help.c (grub_cmd_help): Fix a typo.
5127
5128 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5129
5130 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
5131 Reported and tested by: Colin Watson.
5132
5133 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5134
5135 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
5136 in this context.
5137
5138 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5139
5140 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
5141
5142 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
5143
5144 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
5145 indentation.
5146
5147 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
5148
5149 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
5150 and disk/raid6_recover.c.
5151 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
5152 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
5153
5154 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
5155
5156 * term/gfxterm.c (repaint_schedulded): Rename to ...
5157 (repaint_scheduled): ... this. Update all callers.
5158 (repaint_was_schedulded): Rename to ...
5159 (repaint_was_scheduled): ... this. Update all callers.
5160
5161 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
5162
5163 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
5164 which we expect to be handled by upper layers.
5165
5166 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
5167
5168 * bus/usb/usbhub.c: #include time.h header.
5169
5170 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
5171
5172 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
5173 entry_name also for entries without stat blocks (e.g. ".."); fixes
5174 corruption of the first entry in a directory.
5175
5176 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
5177
5178 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
5179 after setting gfxterm as the active terminal. GRUB_BACKGROUND
5180 doesn't work otherwise.
5181
5182 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
5183
5184 * docs/grub.texi (Features): Update list of supported file systems.
5185 (GNU/Linux): Update for GRUB 2.
5186 (Serial terminal): Remove mention of --disable-serial, which was a
5187 GRUB Legacy configure option. Update instructions to use
5188 `terminal_input' and `terminal_output' rather than `terminal'.
5189 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
5190 configuration' and `Installing GRUB using grub-install'.
5191 (Menu entry editor): Update for GRUB 2.
5192 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
5193 Document new -a, -u, and -v options.
5194 (initrd): New section.
5195 (initrd16): New section.
5196 (linux): New section.
5197 (linux16): New section.
5198 (search): The `var' argument to `--set' is optional.
5199 (GRUB only offers a rescue shell): Go into a little more detail on
5200 drive ordering.
5201
5202 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
5203
5204 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
5205
5206 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
5207
5208 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
5209 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
5210
5211 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
5212
5213 * util/i386/pc/grub-setup.c (setup): Rename prefix to
5214 install_prefix, in line with install_dos_part and install_bsd_part.
5215 Add new prefix variable, which is copied to install_prefix after
5216 comparing core.img in memory with the one read from disk in the
5217 no-embedding case, and use that rather than overwriting
5218 install_prefix immediately when installing to a partition.
5219 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
5220 Bicakci.
5221
5222 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
5223
5224 * configure.ac: Avoid == in test command, it's not portable.
5225 * util/grub.d/30_os-prober.in: Likewise.
5226
5227 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
5228
5229 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
5230
5231 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
5232
5233 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
5234 multiple (top-level) partmaps.
5235
5236 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5237
5238 * util/i386/efi/grub-install.in: Don't use empty grub_device.
5239 Reported by: Tino Keitel.
5240
5241 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5242
5243 Bidi and diacritics support.
5244
5245 * Makefile.in (widthspec.bin): New target.
5246 (widthspec.h): Likewise.
5247 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
5248 * autogen.sh: Generate unidata.c.
5249 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
5250 * commands/ls.c (grub_ls_list_devices): Likewise.
5251 (grub_ls_list_files): Likewise.
5252 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
5253 (grub_mini_cmd_lsmod): Likewise.
5254 * commands/read.c: Likewise.
5255 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
5256 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
5257 * lib/arg.c (grub_arg_show_help): Likewise.
5258 * lib/crypto.c (grub_password_get): Likewise.
5259 * normal/auth.c (grub_username_get): Likewise.
5260 * normal/misc.c (grub_normal_print_device_info): Likewise.
5261 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
5262 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
5263 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
5264 (normal/charset.c_DEPENDENCIES): New variable.
5265 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
5266 (pkglib_MODULES): Remove charset.mod.
5267 (charset_mod_SOURCES): Removed.
5268 (charset_mod_CFLAGS): Likewise.
5269 (charset_mod_LDFLAGS): Likewise.
5270 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
5271 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
5272 and term/tparm.c.
5273 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
5274 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
5275 (kernel_img_HEADERS): Add terminfo.h.
5276 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
5277 Fill ->font. Reverse ascii bitmaps.
5278 (grub_font_get_xheight): New function.
5279 * font/font.c (grub_font_get_string_width): Moved from here ...
5280 * gfxmenu/font.c (grub_font_get_string_width): ... here.
5281 * font/font.c (grub_font_draw_string): Moved from here ...
5282 * gfxmenu/font.c (grub_font_draw_string): ... here.
5283 * font/font.c (grub_font_dup_glyph): New function.
5284 (grub_font_blit_glyph): Likewise.
5285 (grub_font_blit_glyph_mirror): Likewise.
5286 (blit_comb): Likewise.
5287 (grub_font_construct_dry_run): Likewise.
5288 (grub_font_get_constructed_device_width): Likewise.
5289 (grub_font_construct_glyph): Likewise.
5290 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
5291 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
5292 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
5293 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
5294 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
5295 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
5296 (grub_font_get_xheight): New proto.
5297 (grub_font_get_constructed_device_width): Likewise.
5298 (grub_font_construct_glyph): Likewise.
5299 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
5300 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
5301 * include/grub/font.h (grub_font_draw_string): Moved from here ...
5302 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
5303 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
5304 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
5305 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
5306 (grub_console_getcharwidth): Likewise.
5307 * include/grub/misc.h (grub_xputs): New proto.
5308 (grub_puts): Inlined.
5309 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
5310 (grub_normal_get_line_counter): Removed.
5311 (grub_install_newline_hook): Likewise.
5312 (grub_normal_get_char_counter): New proto.
5313 (grub_normal_reset_more): Likewise.
5314 (grub_xputs_normal): Likewise.
5315 * include/grub/powerpc/ieee1275/console.h: Removed.
5316 * include/grub/sparc64/ieee1275/console.h: Likewise.
5317 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
5318 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
5319 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
5320 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
5321 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
5322 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
5323 (grub_term_input): Pass reference to self. All users updated.
5324 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
5325 Pass reference to self. New fields normal_color, highlight_color and
5326 data. All users updated.
5327 (grub_putchar): Removed.
5328 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
5329 (grub_unicode_estimate_width): New function.
5330 (grub_term_getcharwidth): Add defaults.
5331 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
5332 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
5333 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
5334 (grub_cls): Remove EXPORT_FUNC.
5335 (grub_setcolorstate): Inline.
5336 (grub_newline_hook): Removed.
5337 * include/grub/terminfo.h: Rewritten. All users updated.
5338 * include/grub/unicode.h: New file.
5339 * include/grub/video.h (grub_video_signed_rect): New type.
5340 * kern/emu/console.c (grub_console_highlight_color): Removed.
5341 (grub_console_normal_color): Likewise.
5342 (grub_console_standard_color): Made static.
5343 (grub_ncurses_putchar): Remove mapping.
5344 (grub_ncurses_getcharwidth): Removed.
5345 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
5346 (grub_ncurses_setcolor): Removed.
5347 (grub_ncurses_getcolor): Likewise.
5348 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
5349 (grub_console_putchar): ... this.
5350 (grub_console_putchar): Handle argument difference.
5351 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
5352 console_init_early and console_init_lately.
5353 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
5354 * kern/misc.c (grub_puts): Removed.
5355 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
5356 (grub_vsnprintf_real): Remove str = NULL support.
5357 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
5358 * normal/charset.c (grub_utf8_to_ucs4): ... here.
5359 * kern/term.c (grub_putcode): Renamed to ...
5360 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
5361 (grub_putchar): Removed.
5362 (grub_xputs_dumb): New function.
5363 (grub_xputs): New variable.
5364 * lib/charset.c: Move from here ...
5365 * normal/charset.c: ... to here.
5366 (grub_ucs4_to_utf8): New function.
5367 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
5368 (join_types): New variable.
5369 (unpack_join): New function.
5370 (bidi_types): New variable.
5371 (unpack_bidi): New function.
5372 (get_bidi_type): Likewise.
5373 (get_join_type): Likewise.
5374 (is_mirrored): Likewise.
5375 (grub_unicode_get_comb_type): Likewise.
5376 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
5377 (is_type_after): Likewise.
5378 (grub_unicode_aglomerate_comb): Likewise.
5379 (bidi_line_wrap): Likewise.
5380 (grub_bidi_line_logical_to_visual): Likewise.
5381 (grub_bidi_logical_to_visual): Likewise.
5382 (grub_unicode_mirror_code): Likewise.
5383 (grub_unicode_shape_code): Likewise.
5384 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
5385 Don't use grub_putchar.
5386 * normal/main.c (grub_normal_init_page): Use grub_putcode.
5387 (grub_normal_reader_init): Likewise.
5388 (grub_xputs_saved): New variable.
5389 (GRUB_MOD_INIT): Set grub_xputs.
5390 (GRUB_MOD_FINI): Restore grub_xputs.
5391 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
5392 (menu_init): Avoid printing gfxmenu error.
5393 (show_menu): Use grub_normal_get_char_counter.
5394 * normal/menu_entry.c (update_screen): Fix out-of-array.
5395 (complete): Avoid NULL dereferencing.
5396 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
5397 * normal/menu_text.c (print_spaces): Removed.
5398 (grub_print_ucs4): Likewise.
5399 (grub_print_message_indented): Use grub_print_ucs4.
5400 (print_message): Use grub_putcode.
5401 (print_entry): Hanlde diacritics.
5402 * normal/term.c (term_state): New type.
5403 (grub_more_lines): Removed.
5404 (term_states): New variable.
5405 (grub_normal_line_counter): Renamed to ..
5406 (grub_normal_char_counter): ...this. All users updated.
5407 (grub_normal_get_line_counter): Renamed to ...
5408 (grub_normal_get_char_counter): ... this.
5409 (grub_normal_reset_more): New function.
5410 (process_newline): Removed.
5411 (print_more): New function.
5412 (grub_install_newline_hook): Removed.
5413 (map_code): New function.
5414 (grub_puts_terminal): Use grub_print_ucs4.
5415 (putglyph): New function.
5416 (putcode_real): Likewise.
5417 (grub_putcode): Use putcode_real.
5418 (get_maxwidth): New function.
5419 (get_startwidth): Likewise.
5420 (print_ucs4_terminal): Likewise.
5421 (find_term_state): Likewise.
5422 (put_glyphs_terminal): Likewise.
5423 (print_backlog): Likewise.
5424 (print_ucs4_real): Likewise.
5425 (grub_print_ucs4): Likewise.
5426 (grub_xputs_normal): Likewise.
5427 * term/efi/console.c (grub_console_putchar): Output diacritics.
5428 (grub_console_getcharwidth): Removed.
5429 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
5430 * term/gfxterm.c (clear_char): Free chars.
5431 (scroll_up): Avoid leaking memory.
5432 (grub_gfxterm_putchar): Support diacritics.
5433 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
5434 * term/i386/pc/console.c (grub_console_term_output): Declare as
5435 GRUB_TERM_CODE_TYPE_VGA.
5436 * term/i386/pc/vga.c (grub_vga_term): Declare as
5437 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
5438 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
5439 GRUB_TERM_CODE_TYPE_VGA.
5440 * term/i386/vga_common.c (map_char): Removed.
5441 (grub_console_putchar): Likewise.
5442 (grub_console_getcharwidth): Likewise.
5443 * term/ieee1275/ofconsole.c: Simplify using terminfo.
5444 (colors): Reordered to match terminfo.
5445 (grub_ofconsole_normal_color): Removed.
5446 (grub_ofconsole_writeesc): Likewise.
5447 (grub_ofconsole_highlight_color): Likewise.
5448 (grub_ofconsole_getcharwidth): Likewise.
5449 (grub_ofconsole_setcolorstate): Likewise.
5450 (grub_ofconsole_setcolor): Likewise.
5451 (grub_ofconsole_getcolor): Likewise.
5452 (grub_ofconsole_readkey): Renamed to ...
5453 (readkey): ... this. Remove escape sequence handling. Return -1 on no
5454 key.
5455 (grub_ofconsole_checkkey): Removed.
5456 (grub_ofconsole_getkey): Likewise.
5457 (grub_ofconsole_getxy): Likewise.
5458 (grub_ofconsole_gotoxy): Likewise.
5459 (grub_ofconsole_cls): Likewise.
5460 (grub_ofconsole_refresh): Likewise.
5461 (grub_ofconsole_terminfo_input): New struct.
5462 (grub_ofconsole_terminfo_output): Likewise.
5463 (grub_ofconsole_term_input): Use terminfo.
5464 (grub_ofconsole_term_output): Likewise.
5465 (grub_console_init): Split into ...
5466 (grub_console_init_early): ...this and ...
5467 (grub_console_init_lately): ...this. Use terminfo.
5468 (grub_ofconsole_putchar): Renamed to ...
5469 (put): ... this. Remove mapping.
5470 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
5471 * term/serial.c: Simplify using terminfo.
5472 (xpos): Removed.
5473 (ypos): Likewise.
5474 (keep_track): Likewise.
5475 (registered): Likewise.
5476 (input_buf): Likewise.
5477 (npending): Likewise.
5478 (serial_translate_key_sequence): Likewise.
5479 (fill_input_buf): Likewise.
5480 (grub_serial_checkkey): Likewise.
5481 (grub_serial_getkey): Likewise.
5482 (grub_serial_getxy): Likewise.
5483 (grub_serial_gotoxy): Likewise.
5484 (grub_serial_putchar): Likewise.
5485 (grub_serial_cls): Likewise.
5486 (grub_serial_setcolorstate): Likewise.
5487 (grub_serial_setcursor): Likewise.
5488 (serial_hw_init): Use serial_hw_fetch.
5489 (grub_serial_terminfo_input): New variable.
5490 (grub_serial_terminfo_output): Likewise.
5491 (grub_serial_term_input): Use terminfo.
5492 (grub_serial_term_output): Likewise.
5493 * term/terminfo.c (putstr): Use put.
5494 (grub_terminfo_all_free): New function
5495 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
5496 (grub_terminfo_output_register): New function.
5497 (grub_terminfo_output_unregister): Likewise.
5498 (grub_terminfo_getxy): Likewise.
5499 (grub_terminfo_readkey): Likewise.
5500 (grub_terminfo_checkkey): Likewise.
5501 (grub_terminfo_getkey): Likewise.
5502 (grub_terminfo_input_init): Likewise.
5503 (print_terminfo): Likewise.
5504 (grub_cmd_terminfo): Handle encoding.
5505 (grub_terminfo_gotoxy): Track position.
5506 (grub_terminfo_cls): Likewise.
5507 (grub_terminfo_putchar): Likewise.
5508 (grub_terminfo_setcolorstate): Handle colors
5509 (grub_terminfo_cursor_on): This ...
5510 (grub_terminfo_cursor_off): ... and this merged into ...
5511 (grub_terminfo_setcursor): ... this.
5512 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
5513 * unicode/ArabicShaping.txt: New file (imported from Unicode).
5514 * unicode/BidiMirroring.txt: Likewise.
5515 * unicode/UnicodeData.txt: Likewise.
5516 * unicode/COPYING: Likewise.
5517 * util/grub-editenv.c (grub_putchar): Removed.
5518 (grub_xputs_real): New function.
5519 (grub_xputs): New variable.
5520 * util/grub-fstest.c (grub_putchar): Removed.
5521 (grub_xputs_real): New function.
5522 (grub_xputs): New variable.
5523 * util/grub-mkdevicemap.c (grub_putchar): Removed.
5524 (grub_xputs_real): New function.
5525 (grub_xputs): New variable.
5526 * util/grub-probe.c (grub_putchar): Removed.
5527 (grub_xputs_real): New function.
5528 (grub_xputs): New variable.
5529 * util/grub-script-check.c (grub_putchar): Removed.
5530 (grub_xputs_real): New function.
5531 (grub_xputs): New variable.
5532 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
5533 (grub_xputs_real): New function.
5534 (grub_xputs): New variable.
5535 * util/import_unicode.py: New file.
5536 * util/grub-mkfont.c (ft_errmsgs): New array.
5537 (grub_glyph_info): Make bitmap a pointer.
5538 (file_formats): New type WIDTH_SPEC.
5539 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
5540 (options): Add width-spec.
5541 (help): Likewise.
5542 (add_char): Renamed to ...
5543 (add_glyph): ... this.
5544 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
5545 (glyph_replace): New type.
5546 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
5547 (add_char): New function.
5548 (add_subst): Likewise.
5549 (process_cursive): Likewise.
5550 (add_font): Handle GSUB.
5551 (write_font_width_spec): New function.
5552 (main): Sort glyphs.
5553 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
5554 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
5555 * kern/term.c (grub_cls): Moved from here...
5556 * normal/term.c (grub_cls): ... here.
5557
5558 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
5559
5560 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
5561 suitable for using within the format argument of printf when
5562 converting grub_size_t.
5563 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
5564 "x" to convert grub_size_t arguments.
5565
5566 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5567
5568 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
5569 too long captions.
5570 (list_get_minimal_size): Take selection box into account.
5571
5572 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5573
5574 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
5575 NULL font.
5576
5577 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
5578
5579 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
5580 devices when iterating over /dev/disk/by-id; they will be handled
5581 later if appropriate, which they aren't always (e.g. LVM).
5582
5583 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
5584
5585 * include/grub/misc.h (grub_reboot): Declare as noreturn.
5586 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
5587 fails.
5588 (grub_halt): Likewise.
5589 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
5590 reset-all fails.
5591 (grub_halt): Don't return, even if all of shut-down, power-off, and
5592 poweroff fail.
5593
5594 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
5595
5596 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
5597 arguments, not three.
5598
5599 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
5600
5601 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
5602 * util/grub.d/10_linux.in: Use it to check for LVM, so that
5603 LVM-on-RAID is handled correctly.
5604
5605 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
5606
5607 * docs/grub.texi (Changes from GRUB Legacy): New section.
5608 (Future): Fix typo.
5609
5610 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
5611
5612 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
5613 grub.d/README accidentally ends up executable for one reason or
5614 another. Ignore it.
5615
5616 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5617
5618 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
5619 (gpt_partition_map_iterate): Support non-512B sectors.
5620
5621 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5622
5623 * kern/efi/init.c (grub_efi_init): Disable watchdog.
5624 Tested by: Seth Goldberg.
5625
5626 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5627
5628 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
5629 Properly align mbi.
5630 Reported by: Seth Goldberg.
5631
5632 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
5633
5634 * util/grub-mkrescue.in: Avoid module duplication.
5635
5636 2010-07-01 Sean Finney <seanius@seanius.net>
5637
5638 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
5639
5640 2010-07-01 Sean Finney <seanius@seanius.net>
5641
5642 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
5643
5644 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
5645
5646 * disk/lvm.c (grub_lvm_checkvalue): New function.
5647 (grub_lvm_check_flag): Likewise.
5648
5649 2010-07-01 Robert Millan <rmh@gnu.org>
5650
5651 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
5652 Support 'p' as partition separator on kernel of FreeBSD (used
5653 with GPT labels).
5654 (grub_util_biosdisk_get_grub_dev): Likewise.
5655
5656 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
5657
5658 Yeeloong firmware port.
5659
5660 * boot/mips/yeeloong/fwstart.S: New file.
5661 * bus/cs5536.c (gpiodump): New const.
5662 (set_io_space): New function.
5663 (set_iod): Likewise.
5664 (set_p2d): Likewise.
5665 (grub_cs5536_init_geode): Likewise.
5666 * commands/mips/yeeloong/lsspd.c: New file.
5667 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
5668 (serial_mod_SOURCES): New variable.
5669 (serial_mod_CFLAGS): Likewise.
5670 (serial_mod_LDFLAGS): Likewise.
5671 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
5672 term/terminfo.c and term/tparm.c.
5673 (pkglib_IMAGES): Add fwstart.img.
5674 (fwstart_img_SOURCES): New variable.
5675 (fwstart_img_CFLAGS): Likewise.
5676 (fwstart_img_ASFLAGS): Likewise.
5677 (fwstart_img_LDFLAGS): Likewise.
5678 (fwstart_img_FORMAT): Likewise.
5679 (pkglib_MODULES): Add lsspd.mod.
5680 (lsspd_mod_SOURCES): New variable.
5681 (lsspd_mod_CFLAGS): Likewise.
5682 (lsspd_mod_LDFLAGS): Likewise.
5683 (pkglib_MODULES): Add halt.mod.
5684 (halt_mod_SOURCES): New variable.
5685 (halt_mod_CFLAGS): Likewise.
5686 (halt_mod_LDFLAGS): Likewise.
5687 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
5688 (serial_mod_SOURCES): Removed.
5689 (serial_mod_CFLAGS): Likewise.
5690 (serial_mod_LDFLAGS): Likewise.
5691 * disk/ata.c (check_device): New function.
5692 (grub_ata_device_initialize): Use check_device.
5693 (grub_ata_iterate): Recheck devices.
5694 (grub_ata_open): Likewise.
5695 (grub_atapi_iterate): Likewise.
5696 (grub_atapi_open): Likewise.
5697 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
5698 (GRUB_ATA_CH1_PORT1): Likewise.
5699 (GRUB_ATA_CH0_PORT2): Likewise.
5700 (GRUB_ATA_CH1_PORT2): Likewise.
5701 * include/grub/mips/loongson.h: New file.
5702 * include/grub/mips/yeeloong/ec.h: Likewise.
5703 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
5704 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
5705 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
5706 * include/grub/misc.h (grub_halt): Declare as noreturn.
5707 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
5708 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
5709 (UART_ENABLE_FIFO_TRIGGER1): New definition.
5710 (UART_ENABLE_DTRRTS): Likewise.
5711 (UART_ENABLE_MODEM): Removed.
5712 (UART_ENABLE_OUT2): New const.
5713 * include/grub/term.h (grub_term_register_input_active): New function.
5714 (grub_term_register_output_active): Likewise.
5715 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
5716 argument.
5717 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
5718 (init_pci): New function.
5719 (grub_machine_init): Execute platform init when firmware. Init serial.
5720 (grub_halt): Implement.
5721 (grub_exit): Likewise.
5722 (grub_reboot): Likewise.
5723 * term/serial.c (serial_hw_init): Update macros.
5724 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
5725 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
5726 (image_targets): New target mipsel-yeeloong-flash.
5727 (generate_image): Support IMAGE_YEELOONG_FLASH.
5728 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
5729 (grub_video_sm712_setup): Init card.
5730 (grub_video_sm712_set_palette): Removed.
5731 * video/sm712_init.c: New file.
5732
5733 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
5734
5735 * Makefile.in (install-local): Temporarily prepend $(builddir) to
5736 PATH when running help2man and then run it on the unadorned
5737 executable names, rather than passing $(builddir)/* paths to
5738 help2man. This avoids the build directory ending up in generated
5739 manual pages.
5740
5741 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
5742
5743 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
5744 to avoid accidents when debugging with 'sh -x'.
5745 * util/grub-mkrescue.in: Likewise.
5746 * util/grub.d/00_header.in: Likewise.
5747 * util/grub.d/10_hurd.in: Likewise.
5748 * util/grub.d/10_kfreebsd.in: Likewise.
5749 * util/grub.d/10_linux.in: Likewise.
5750 * util/grub.d/10_netbsd.in: Likewise.
5751 * util/grub.d/10_windows.in: Likewise.
5752 * util/grub.d/20_linux_xen.in: Likewise.
5753 * util/grub.d/30_os-prober.in: Likewise.
5754 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5755
5756 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
5757
5758 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
5759 last character in the buffer.
5760 Reported by: Vladimir Serbinenko.
5761
5762 2010-06-29 Robert Millan <rmh@gnu.org>
5763
5764 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
5765 (Command-line and menu entry commands): Document `badram' command.
5766
5767 2010-06-28 Robert Millan <rmh@gnu.org>
5768
5769 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
5770 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
5771 command using ${GRUB_BADRAM} as parameter.
5772
5773 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
5774
5775 * docs/grub.texi (Device map): New section.
5776 (Themes): New section (stub).
5777 * Makefile.in (docs/grub.info): The info documentation now builds
5778 without errors. Make sure it stays that way.
5779
5780 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
5781
5782 Use normal parser for menu entries.
5783 Reported by: Thomas Frauendorfer
5784
5785 * include/grub/parser.h (grub_parser_execute): Don't export.
5786 * normal/menu.c (grub_menu_execute_entry_real): New function.
5787 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
5788
5789 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
5790
5791 * docs/grub.texi (Embedded configuration): New section (replacing
5792 old "Preset Menu" stub).
5793 (Images): New section.
5794 (configfile): Note that any menu entries defined in `file' are shown
5795 immediately.
5796
5797 2010-06-28 Josh Triplett <josh@joshtriplett.org>
5798
5799 * mmap/i386/pc/mmap_helper.S: Set CF on return.
5800
5801 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
5802
5803 * util/grub-install.in: Add --debug-image= option.
5804
5805 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
5806
5807 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
5808 possible on Linux.
5809
5810 * util/deviceiter.c (check_device): Rename to ...
5811 (check_device_readable_unique): ... this. Update all callers.
5812 Maintain and check a list of which devices (by canonicalized name)
5813 have already been seen.
5814 (clear_seen_devices): New function.
5815 (compare_file_names) [__linux__]: New function.
5816 (grub_util_iterate_devices): Clear the list of seen devices on exit
5817 and (just in case) on entry.
5818 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
5819 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
5820 seen-devices list, superseded by general code in check_device.
5821
5822 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
5823
5824 * commands/cat.c (options): New variable.
5825 (grub_cmd_cat): Parse options. If the --dos option is given, print
5826 DOS-style "\r\n" line endings as simple newlines (Debian bug
5827 #586358).
5828 (GRUB_MOD_INIT): Use extcmd.
5829 (GRUB_MOD_FINI): Likewise.
5830 * docs/grub.texi (cat): Document --dos.
5831
5832 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
5833
5834 XEN with Linux grub-mkconfig support.
5835
5836 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
5837 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
5838 GRUB_CMDLINE_XEN_DEFAULT.
5839 * util/grub.d/20_linux_xen.in: New file.
5840
5841 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
5842
5843 Initialise VGA video on qemu ourselves.
5844
5845 * boot/i386/qemu/boot.S: Don't call 0xc000.
5846 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
5847 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
5848 (kernel_img_HEADERS): Add pci.h.
5849 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
5850 * configure.ac: Force unifont on qemu and yeeloong.
5851 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
5852 (grub_vga_palette_write): Use correct register.
5853 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
5854 Call grub_qemu_init_cirrus.
5855 * kern/i386/qemu/init.c: New file.
5856 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
5857
5858 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
5859
5860 2010-06-26 Pavel Roskin <proski@gnu.org>
5861
5862 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
5863 13.
5864
5865 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
5866
5867 * docs/grub.texi (Simple configuration): Explain that
5868 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
5869 set to `true' to disable their respective recovery entries, not
5870 merely set.
5871
5872 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
5873
5874 Make the `source' command slightly faster.
5875
5876 * normal/main.c (grub_normal_execute): Don't re-read list files when
5877 nested.
5878
5879 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
5880
5881 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
5882 field position and mask size to red fields from mode_info, not
5883 green.
5884 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
5885 Remove redundant tag->common.framebuffer_type assignment.
5886 Reported by: Seth Goldberg.
5887
5888 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
5889
5890 Sync up other versions of the Linux loader with Robert Millan's
5891 change of 2010-01-09, "Make loader output a bit more user-friendly".
5892
5893 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
5894 grub_dprintf().
5895 (grub_cmd_linux): Likewise.
5896 (grub_cmd_initrd): Likewise.
5897 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
5898 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
5899
5900 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
5901
5902 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
5903 larger than MEMORY_MAP_SIZE.
5904
5905 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
5906
5907 Fix parallel build.
5908
5909 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
5910 dependency.
5911 * script/parser.y: #include grub_script.tab.h header.
5912
5913 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5914
5915 Support >3GiB and <16MiB RAM in i386-qemu.
5916
5917 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
5918 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
5919 (grub_lower_mem): Removed.
5920 (grub_upper_mem): Likewise.
5921 (mem_size): Made static.
5922 (above_4g): New variable.
5923 (grub_machine_mmap_init): Detect small mem_size and above_4g.
5924 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
5925 support.
5926
5927 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5928
5929 Cirrus 5446 and Bochs video cards support.
5930
5931 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
5932 video_bochs.mod
5933 (video_cirrus_mod_SOURCES): New variable.
5934 (video_cirrus_mod_CFLAGS): Likewise.
5935 (video_cirrus_mod_LDFLAGS): Likewise.
5936 (video_bochs_mod_SOURCES): Likewise.
5937 (video_bochs_mod_CFLAGS): Likewise.
5938 (video_bochs_mod_LDFLAGS): Likewise.
5939 * include/grub/vga.h: New file.
5940 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
5941 (grub_video_fb_set_page_t): New type.
5942 (grub_video_fb_setup): New prototype.
5943 (grub_video_fb_swap_buffers): Likewise.
5944 (grub_video_fb_get_info_and_fini): Likewise.
5945 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
5946 (CRTC_DATA_PORT): Likewise.
5947 (CRTC_CURSOR): Likewise.
5948 (CRTC_CURSOR_ADDR_HIGH): Likewise.
5949 (CRTC_CURSOR_ADDR_LOW): Likewise.
5950 (CRTC_CURSOR_DISABLE): Likewise.
5951 (update_cursor): Use grub_vga_cr_write.
5952 (grub_vga_text_setcursor): Likewise.
5953 * video/bochs.c: New file.
5954 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
5955 (palette): Likewise.
5956 (palette_size): Likewise.
5957 (framebuffer): New variable.
5958 (grub_video_fb_init): Use 'framebuffer'.
5959 (grub_video_fb_fini): Likewise.
5960 (grub_video_fb_get_info): Likewise.
5961 (grub_video_fb_get_palette): Likewise.
5962 (grub_video_fb_set_palette): Likewise.
5963 (grub_video_fb_set_viewport): Likewise.
5964 (grub_video_fb_get_viewport): Likewise.
5965 (grub_video_fb_map_color): Likewise.
5966 (grub_video_fb_map_rgb): Likewise.
5967 (grub_video_fb_map_rgba): Likewise.
5968 (grub_video_fb_unmap_color): Likewise.
5969 (grub_video_fb_unmap_color_int): Likewise.
5970 (grub_video_fb_fill_rect): Likewise.
5971 (grub_video_fb_blit_bitmap): Likewise.
5972 (grub_video_fb_blit_render_target): Likewise.
5973 (grub_video_fb_scroll): Likewise.
5974 (grub_video_fb_create_render_target): Likewise.
5975 (grub_video_fb_doublebuf_blit_init): Likewise.
5976 (grub_video_fb_set_active_render_target): Handle doublebuffering.
5977 (doublebuf_pageflipping_update_screen): New function.
5978 (doublebuf_pageflipping_init): Likewise.
5979 (grub_video_fb_setup): Likewise.
5980 (grub_video_fb_swap_buffers): Likewise.
5981 (grub_video_fb_get_info_and_fini): Likewise.
5982 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
5983 All users updated.
5984 (doublebuf_pageflipping_commit): Restructured into ...
5985 (doublebuf_pageflipping_set_page): ... this.
5986 (doublebuf_pageflipping_update_screen): Removed.
5987 (doublebuf_pageflipping_init): Likewise.
5988 (double_buffering_init): Likewise.
5989 (grub_video_vbe_setup): Use grub_video_fb_setup.
5990 (grub_video_vbe_swap_buffers): Removed.
5991 (grub_video_vbe_set_active_render_target): Likewise.
5992 (grub_video_vbe_get_active_render_target): Likewise.
5993 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
5994 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
5995 grub_video_fb_set_active_render_target and
5996 grub_video_fb_get_active_render_target.
5997 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
5998 (SEQUENCER_DATA_PORT): Likewise.
5999 (MAP_MASK_REGISTER): Likewise.
6000 (CRTC_ADDR_PORT): Likewise.
6001 (CRTC_DATA_PORT): Likewise.
6002 (START_ADDR_HIGH_REGISTER): Likewise.
6003 (START_ADDR_LOW_REGISTER): Likewise.
6004 (GRAPHICS_ADDR_PORT): Likewise.
6005 (GRAPHICS_DATA_PORT): Likewise.
6006 (READ_MAP_REGISTER): Likewise.
6007 (INPUT_STATUS1_REGISTER): Likewise.
6008 (INPUT_STATUS1_VERTR_BIT): Likewise.
6009 (get_map_mask): Use grub_vga_sr_read.
6010 (set_map_mask): Use grub_vga_sr_write.
6011 (set_read_map): Use grub_vga_gr_write.
6012 (set_start_address): Use grub_vga_cr_write.
6013 * video/sm712.c (framebuffer): Remove leftover fields.
6014
6015 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
6016
6017 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
6018 setting GRUB_VIDEO_BACKEND. Make it available as a user override
6019 instead. Replace the gfxterm backend check with a check that
6020 ${GRUB_PREFIX}/video.lst is non-empty.
6021 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
6022 again.
6023 (load_video): New generated function. Call it before loading
6024 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
6025 * util/grub.d/10_linux.in (linux_entry): Call load_video.
6026 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
6027 * docs/grub.texi (Simple configuration): Document
6028 GRUB_VIDEO_BACKEND.
6029
6030 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6031
6032 Use video functions in linux and xnu loaders.
6033
6034 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
6035 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
6036 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
6037 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
6038 loader/i386/pc/linux.c.
6039 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
6040 (find_line_len): Removed.
6041 (find_framebuf): Likewise.
6042 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
6043 * loader/i386/efi/xnu.c: Removed.
6044 * loader/i386/pc/xnu.c: Moved from here...
6045 * loader/i386/xnu.c: ...here.
6046
6047 Enable priorities in video drivers.
6048
6049 * include/grub/video.h (grub_video_adapter_prio_t): New type.
6050 (grub_video_adapter): New field prio.
6051 (grub_video_register): Respect prio when inserting.
6052 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
6053 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
6054 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
6055 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
6056 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
6057 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
6058 * video/sm712.c (grub_video_sm712_adapter): Likewise.
6059
6060 Fix SDL driver ID.
6061
6062 * include/grub/video.h (grub_video_driver_id_t): New value
6063 GRUB_VIDEO_DRIVER_SDL.
6064 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
6065
6066 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
6067
6068 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
6069 argument to printf.
6070 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
6071
6072 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
6073
6074 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
6075 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
6076
6077 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
6078
6079 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
6080 directly, and recommend grub-install instead.
6081 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
6082
6083 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
6084
6085 Fix i386-pc prefix handling with nested partitions (Debian bug
6086 #585068). Note that the case where the core image is booted using
6087 multiboot and relocated from its original location still requires
6088 more work.
6089
6090 * kern/i386/pc/init.c (make_install_device): If the prefix starts
6091 with "(,", fill the boot drive in between those two characters, but
6092 expect that a full partition specification including partition map
6093 names will follow.
6094 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
6095 specified, write a prefix without the drive name but including a
6096 full partition specification.
6097
6098 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
6099
6100 * util/grub-mkconfig.in: Ignore non-option arguments, for
6101 compatibility with older versions (before 2010-06-12) which did the
6102 same. In particular, this makes it easier to ship an update-grub
6103 wrapper which is compatible with that used with GRUB Legacy (Debian
6104 bug #586056).
6105
6106 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
6107
6108 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
6109 for manual page generation.
6110
6111 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
6112
6113 * po/POTFILES: Remove leftover commands/handler.c.
6114
6115 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
6116
6117 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
6118 left this script non-functional.
6119
6120 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
6121
6122 * docs/man/grub-emu.h2m: New file.
6123
6124 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
6125
6126 * docs/grub.texi (Commands): Document reduced command set in rescue
6127 mode.
6128 (cpuid): New section.
6129
6130 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
6131
6132 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
6133 new partition naming style.
6134 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
6135
6136 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
6137
6138 Add "-o grub.iso" like cmdline options support.
6139
6140 * util/grub-install.in: Improve cmdline option parsing.
6141 * util/grub-mkconfig.in: Likewise.
6142 * util/grub-mkrescue.in: Likewise.
6143 * util/grub-reboot.in: Likewise.
6144 * util/grub-set-default.in: Likewise.
6145 * util/i386/efi/grub-install.in: Likewise.
6146 * util/ieee1275/grub-install.in: Likewise.
6147 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6148
6149 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
6150
6151 * .bzrignore: Ignore 41_custom.
6152
6153 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
6154
6155 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
6156
6157 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
6158
6159 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
6160 prototype declarations.
6161
6162 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
6163 generating fs, partmap, and video lists.
6164 * include/grub/fs.h (grub_fs_register): Omit prototype if
6165 GRUB_LST_GENERATOR is defined.
6166 * include/grub/partition.h (grub_partition_map_register): Likewise.
6167 * include/grub/video.h (grub_video_register): Likewise.
6168
6169 2010-06-12 Javier Martín <lordhabbit@gmail.com>
6170
6171 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
6172
6173 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
6174
6175 * util/grub-mkrescue.in: Support --xorriso argument.
6176
6177 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
6178
6179 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
6180 Suggested by: Thomas Schmitt.
6181
6182 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
6183
6184 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
6185 Suggested by: Thomas Schmitt.
6186
6187 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
6188
6189 custom.cfg support.
6190
6191 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
6192 * util/grub.d/41_custom.in: New file.
6193
6194 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
6195
6196 * util/grub-mkrescue.in (make_image): Remove sh module, which has
6197 been merged back into normal.
6198
6199 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
6200
6201 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
6202 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
6203
6204 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
6205
6206 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
6207 when generating manual pages.
6208 * docs/man/grub-bin2h.h2m: New file.
6209 * docs/man/grub-editenv.h2m: New file.
6210 * docs/man/grub-fstest.h2m: New file.
6211 * docs/man/grub-install.h2m: New file.
6212 * docs/man/grub-macho2img.h2m: New file.
6213 * docs/man/grub-mkconfig.h2m: New file.
6214 * docs/man/grub-mkdevicemap.h2m: New file.
6215 * docs/man/grub-mkfont.h2m: New file.
6216 * docs/man/grub-mkimage.h2m: New file.
6217 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
6218 * docs/man/grub-mkrelpath.h2m: New file.
6219 * docs/man/grub-mkrescue.h2m: New file.
6220 * docs/man/grub-ofpathname.h2m: New file.
6221 * docs/man/grub-pe2elf.h2m: New file.
6222 * docs/man/grub-probe.h2m: New file.
6223 * docs/man/grub-reboot.h2m: New file.
6224 * docs/man/grub-script-check.h2m: New file.
6225 * docs/man/grub-set-default.h2m: New file.
6226 * docs/man/grub-setup.h2m: New file.
6227
6228 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
6229
6230 Use FOR_* macros instead of *_iterate whenever possible.
6231
6232 * commands/handler.c: Removed.
6233 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
6234 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
6235 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
6236 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
6237 (grub_probe_SOURCES): Remove kern/parser.c.
6238 (util/grub-script-check.c_DEPENDENCIES): Removed.
6239 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
6240 and grub_script_check_init.c.
6241 (grub_script_check_init.lst): Removed.
6242 (grub_script_check_init.h): Likewise.
6243 (grub_script_check_init.c): Likewise.
6244 (pkglib_MODULES): Remove handler.mod and sh.mod.
6245 (handler_mod_SOURCES): Removed.
6246 (handler_mod_CFLAGS): Likewise.
6247 (handler_mod_LDFLAGS): Likewise.
6248 (normal_mod_SOURCES): Remove normal/handler.c.
6249 Add script/main.c, script/script.c, script/execute.c,
6250 script/function.c, script/lexer.c, grub_script.tab.c
6251 and grub_script.yy.c.
6252 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
6253 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
6254 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
6255 (grub_setup_SOURCES): Remove kern/parser.c.
6256 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
6257 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
6258 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
6259 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
6260 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
6261 (grub_setup_SOURCES): Remove kern/parser.c.
6262 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
6263 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
6264 * include/grub/command.h (grub_command_iterate): Removed.
6265 (FOR_COMMANDS): New macro.
6266 * include/grub/dl.h (grub_dl): New member next.
6267 (grub_dl_iterate): Removed.
6268 (grub_dl_head): New variable declaration.
6269 (FOR_DL_MODULES): New macro.
6270 * include/grub/fs.h: Include list.h.
6271 (grub_fs): Make next first element.
6272 (grub_fs_list): New variable declaration.
6273 (grub_fs_register): Make inline.
6274 (grub_fs_unregister): Likewise.
6275 (grub_fs_iterate): Removed.
6276 (FOR_FILESYSTEMS): New macro.
6277 * include/grub/handler.h: Removed.
6278 * include/grub/list.h (grub_list_hook_t): Removed.
6279 (grub_list_test_t): Likewise.
6280 (grub_list_pop): Likewise.
6281 (grub_list_iterate): Likewise.
6282 (grub_list_insert): Likewise.
6283 (FOR_LIST_ELEMENTS): New macro.
6284 * include/grub/parser.h (grub_parser_class): Removed.
6285 (grub_parser_register): Likewise.
6286 (grub_parser_unregister): Likewise.
6287 (grub_parser_get_current): Likewise.
6288 (grub_parser_set_current): Likewise.
6289 (grub_register_rescue_parser): Likewise.
6290 (grub_rescue_parse_line): New function.
6291 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
6292 * include/grub/script_sh.h (grub_script_function_list): New variable
6293 declaration.
6294 (FOR_SCRIPT_FUNCTIONS): New macro.
6295 (grub_script_function_iterate): Removed.
6296 (grub_normal_parse_line): New prototype.
6297 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
6298 (FOR_DISABLED_TERM_INPUTS): Likewise.
6299 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
6300 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
6301 * include/grub/video.h (grub_video_adapter): Move 'next' to first
6302 element.
6303 (grub_video_register): Inline.
6304 (grub_video_unregister): Likewise.
6305 (grub_video_adapter_list): New variable declaration.
6306 (grub_video_iterate): Removed.
6307 (FOR_VIDEO_ADAPTERS): New macro.
6308 * kern/dl.c (grub_dl_list): Removed. All users updated.
6309 (grub_dl_iterate): Removed.
6310 * kern/fs.c (grub_fs_list): Make global.
6311 (grub_fs_register): Removed.
6312 (grub_fs_unregister): Likewise.
6313 (grub_fs_iterate): Likewise.
6314 * kern/handler.c: Removed.
6315 * kern/list.c (grub_list_pop): Removed.
6316 (grub_list_iterate): Likewise.
6317 (grub_list_insert): Likewise.
6318 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
6319 (grub_prio_list_insert): Don't use grub_list_insert.
6320 * kern/main.c (grub_register_rescue_parser): Don't call
6321 grub_register_rescue_parser.
6322 * kern/parser.c (grub_parser_class): Removed.
6323 (grub_parser_execute): Use grub_rescue_parse_line.
6324 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
6325 (grub_rescue_parser): Removed.
6326 (grub_register_rescue_parser): Likewise.
6327 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
6328 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
6329 (grub_auth_check_authentication): Likewise.
6330 * normal/completion.c (iterate_command): Removed.
6331 (grub_normal_do_completion): Use FOR_COMMANDS.
6332 * normal/handler.c: Removed.
6333 * normal/main.c (read_config_file): Remove parser changing.
6334 (grub_normal_execute): Don't call read_handler_list.
6335 (grub_normal_read_line_real): Statically allocate prompt.
6336 (grub_cmdline_run): Use grub_normal_parse_line.
6337 (GRUB_MOD_FINI): Don't call free_handler_list.
6338 * normal/menu_entry.c (run): Likewise.
6339 * script/function.c (grub_script_function_list): Make global.
6340 (grub_script_function_iterate): Removed.
6341 * script/main.c (grub_normal_parse_line): Make global.
6342 (grub_sh_parser): Removed.
6343 (GRUB_MOD_INIT): Likewise.
6344 (GRUB_MOD_FINI): Likewise.
6345 * tests/lib/functional_test.c (grub_functional_test): Use
6346 FOR_LIST_ELEMENTS.
6347 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
6348 (grub_test_run): Use FOR_LIST_ELEMENTS.
6349 * tests/lib/unit_test.c (main): Likewise.
6350 * util/deviceiter.c (grub_util_iterate_devices): Don't use
6351 grub_list_pop.
6352 * util/grub-fstest.c (grub_term_input_class): Removed.
6353 (grub_term_output_class): Likewise.
6354 * util/grub-probe.c: Likewise.
6355 * util/i386/pc/grub-setup.c: Likewise.
6356 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6357 * util/grub-script-check.c (main): Don't call grub_init_all and
6358 grub_fini_all.
6359 * video/video.c (grub_video_adapter_list): Make global.
6360 (grub_video_register): Removed.
6361 (grub_video_unregister): Likewise.
6362 (grub_video_iterate): Likewise.
6363
6364 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6365
6366 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
6367 reported by Henrique Ferreiro.
6368
6369 2010-06-09 Robert Millan <rmh@gnu.org>
6370
6371 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
6372 ones, when both are available.
6373
6374 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
6375
6376 Make --version uniform and avoid hard-coded program name.
6377
6378 * util/grub-mkimage.c (main): Use `program_name' instead of
6379 hard-coded string.
6380 * util/i386/pc/grub-setup.c (main): Likewise.
6381 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
6382 * util/grub-install.in: Save the basename of $0 in $self, and use the
6383 latter in informational messages. Use the same format for --version
6384 as the binary programs.
6385 * util/grub-mkconfig.in: Likewise.
6386 * util/grub-mkrescue.in: Likewise.
6387 * util/grub-reboot.in: Likewise.
6388 * util/grub-set-default.in: Likewise.
6389 * util/i386/efi/grub-install.in: Likewise.
6390 * util/ieee1275/grub-install.in: Likewise.
6391 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6392
6393 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
6394
6395 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
6396 embedding area. Use <= instead of == when checking for non-emptiness.
6397
6398 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
6399
6400 * configure.ac: Add `.' to the directories searched for unifont.
6401
6402 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
6403
6404 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
6405 grub_script.yy.h.
6406
6407 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
6408
6409 * docs/grub.texi (History): Expand to cover GRUB 2.
6410 (Serial terminal): Refer to `terminal_input' and `terminal_output'
6411 commands, not `terminal'.
6412 (serial): Likewise.
6413 (terminal_input): New section.
6414 (terminal_output): New section.
6415 (uppermem): New section (stub).
6416 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
6417
6418 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
6419
6420 * docs/grub.texi (Security): Menu entries are unrestricted by
6421 default, not restricted to superusers as I had previously thought.
6422 Reword to account for this.
6423
6424 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
6425
6426 * kern/emu/misc.c (device_mapper_null_log): New function.
6427 (grub_device_mapper_supported): New function.
6428 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
6429 prototype.
6430 * kern/emu/hostdisk.c (find_partition_start): Check whether
6431 device-mapper is supported before trying to use it.
6432 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
6433
6434 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
6435
6436 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
6437 (File name syntax): Likewise.
6438 (help): --all is no longer supported in GRUB 2. Be more precise
6439 about pattern matching.
6440
6441 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
6442
6443 * normal/completion.c (grub_normal_do_completion): When completing
6444 arguments to "set" and the current word contains an equals sign,
6445 skip to after the equals sign before starting completion.
6446
6447 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
6448
6449 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
6450
6451 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
6452
6453 * docs/grub.texi (Network): New section.
6454 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
6455 `(nd)' as in GRUB Legacy.
6456 (pxe_unload): New section.
6457
6458 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
6459
6460 * docs/grub.texi (Troubleshooting): `echo' is not usually available
6461 in the rescue shell, so recommend using `set' instead. Thanks,
6462 Jordan Uggla.
6463
6464 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
6465
6466 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
6467 (password): New section.
6468 (password_pbkdf2): New section.
6469 (search): New section.
6470 (Security): New section.
6471 (Troubleshooting): New section, currently very incomplete.
6472 (Invoking grub-mkpasswd-pbkdf2): New section.
6473 (Internals): New section, currently very incomplete.
6474
6475 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
6476
6477 * util/grub.d/00_header.in: Add some more quoting (of
6478 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
6479 work again.
6480 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
6481
6482 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
6483
6484 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
6485 to `count', fixing variable shadowing that broke the -c option.
6486
6487 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
6488
6489 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
6490 in case they contain spaces.
6491
6492 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
6493
6494 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
6495 "part_" to partmap module names, in line with grub-install.
6496 Reported by: Jindřich Makovička (Debian bug #584426).
6497
6498 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
6499
6500 * util/grub-mkimage.c: Make target-related error messages slightly
6501 more helpful; -O talks about "format". Explicitly point to the use
6502 of -O if no target is specified.
6503 Reported by: Didier Raboud (Debian bug #584415).
6504
6505 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
6506
6507 * INSTALL: Document several build requirements for optional features
6508 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
6509
6510 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
6511
6512 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
6513 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
6514 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
6515
6516 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
6517
6518 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
6519 Thanks to Jordan Uggla for spotting this.
6520
6521 2010-06-02 Aleš Nesrsta <starous@volny.cz>
6522
6523 Finally make USB usable.
6524
6525 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
6526 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
6527 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
6528 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
6529 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
6530 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
6531 (GRUB_OHCI_FSMPS): Likewise.
6532 (GRUB_OHCI_PERIODIC_START): Likewise.
6533 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
6534 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
6535 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
6536 (GRUB_OHCI_SET_PORT_RESET): Likewise.
6537 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
6538 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
6539 (grub_ohci_transaction): Likewise.
6540 (grub_ohci_transfer): Improve condition detection algorithms.
6541 Handle toggle property. Program the transactions correctly.
6542 Improve error handling. Various important fixups.
6543 (grub_ohci_portstatus): Put register writes in right order.
6544 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
6545 (grub_uhci_transfer): Don't show "failed" message on success.
6546 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
6547 array.
6548 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
6549 determine its size.
6550 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
6551 before initialization is completed. Use IN direction for empty
6552 transfers. Use last_trans and compute toggle.
6553 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
6554 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
6555 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
6556 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
6557 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
6558 (grub_usb_device): Increase toggle to 256.
6559 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
6560 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
6561 GRUB_USBMS_SUBCLASS_SFF8070.
6562 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
6563 (grub_scsi_inquiry): New member page and alloc_length.
6564 (grub_scsi_request_sense): New structure.
6565 (grub_scsi_request_sense_data): Likewise.
6566 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
6567 control.
6568 * disk/scsi.c (grub_scsi_request_sense): New function.
6569 (grub_scsi_test_unit_ready): Likewise.
6570 (grub_scsi_inquiry): Fill new fields.
6571 (grub_scsi_read_capacity): Likewise.
6572 (grub_scsi_read10): Add request sense at the end.
6573 (grub_scsi_read12): Likewise.
6574 (grub_scsi_write10): Likewise.
6575 (grub_scsi_write12): Likewise.
6576 (grub_scsi_open): Add Test Unit Ready.
6577 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
6578 Support additional subclasses. Con't clear halt yet. Activate the
6579 proper config. Calculate LUNs correctly.
6580 (grub_usbms_transfer): Various important fixups.
6581
6582 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6583
6584 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
6585 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
6586 (grub_ohci_fini_hw): New function.
6587 (grub_ohci_restore_hw): Likewise.
6588 (GRUB_MOD_INIT(ohci)): Register preboot hook.
6589 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
6590 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
6591
6592 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6593
6594 Dedicated DMA allocations.
6595
6596 * bus/pci.c (grub_memalign_dma32): New function
6597 (grub_dma_free): Likewise.
6598 (grub_dma_get_virt): Likewise.
6599 (grub_dma_get_phys): Likewise.
6600 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
6601 (grub_ohci_pci_iter): Use dma32_alloc.
6602 (grub_ohci_transfer): Likewise.
6603 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
6604 (grub_usb_bulk_readwrite): Likewise.
6605 * include/grub/pci.h: Add declarations.
6606
6607 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6608
6609 CS5536 support.
6610
6611 * bus/cs5536.c: New file.
6612 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
6613 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
6614 (cs5536_mod_SOURCES): New variable.
6615 (cs5536_mod_CFLAGS): Likewise.
6616 (cs5536_mod_LDFLAGS): Likewise.
6617 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
6618 machine/pci.h.
6619 (kernel_img_SOURCES): Add bus/cs5536.c.
6620 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
6621 usb_keyboard.mod.
6622 (usb_mod_SOURCES): New variable.
6623 (usb_mod_CFLAGS): New variable.
6624 (usb_mod_LDFLAGS): New variable.
6625 (usbtest_mod_SOURCES): New variable.
6626 (usbtest_mod_CFLAGS): New variable.
6627 (usbtest_mod_LDFLAGS): New variable.
6628 (ohci_mod_SOURCES): New variable.
6629 (ohci_mod_CFLAGS): New variable.
6630 (ohci_mod_LDFLAGS): New variable.
6631 (usbms_mod_SOURCES): New variable.
6632 (usbms_mod_CFLAGS): New variable.
6633 (usbms_mod_LDFLAGS): New variable.
6634 (usb_keyboard_mod_SOURCES): New variable.
6635 (usb_keyboard_mod_CFLAGS): New variable.
6636 (usb_keyboard_mod_LDFLAGS): New variable.
6637 * include/grub/smbus.h: New file.
6638 * include/grub/cs5536.h: New file.
6639
6640 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
6641
6642 * util/grub.d/00_header.in: Add safety check to make sure that
6643 ${locale_dir} exists before trying to probe it.
6644
6645 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
6646
6647 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
6648 per the GNU Coding Standards; this is now too obscure to be worth
6649 documenting.
6650 (QNX): Likewise.
6651 (chainloader): Remove cross-reference to `SCO UnixWare'.
6652
6653 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
6654
6655 * docs/grub.texi (Chain-loading): New section.
6656 (DOS/Windows): New section, borrowed from GRUB Legacy with details
6657 adjusted for GRUB 2.
6658 (SCO UnixWare): Likewise.
6659 (QNX): Likewise.
6660 (chainloader): Add reference to `Block list syntax'.
6661 (drivemap): New section.
6662 (parttool): New section.
6663
6664 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
6665
6666 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
6667 the grub shell'.
6668 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
6669 (Installing GRUB using grub-install): Remove reference to the grub
6670 shell; mention `grub-mkimage' and `grub-setup' instead.
6671 (Invoking grub-install): Likewise.
6672 (Interface): Add reference to `Menu entry editor'.
6673 (serial): Remove `--device' option.
6674
6675 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
6676
6677 * docs/grub.texi (Configuration): New section, documenting
6678 configuration file generation using grub-mkconfig. I've left a slot
6679 for documenting the full shell scripting format but have not yet
6680 started on writing that up.
6681 (Invoking grub-mkconfig): New section.
6682
6683 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
6684
6685 * docs/grub.texi (direntry): Remove grub-terminfo reference.
6686 (GNU GRUB manual): Likewise.
6687 (General commands): Update description of `terminfo' for GRUB 2.
6688
6689 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
6690
6691 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
6692 (GRUB_MOD_INIT): Fix capitalisation.
6693 * docs/grub.texi (Command-line and menu entry commands): Document
6694 gettext and gptsync commands.
6695
6696 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
6697
6698 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
6699 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
6700
6701 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
6702
6703 Add btrfs probing support, currently only in the single-device case.
6704
6705 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
6706 function.
6707 (grub_guess_root_device): Call find_root_device_from_mountinfo
6708 before looking in /dev.
6709
6710 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6711
6712 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
6713 GRUB_DISK_SIZE_UNKNOWN.
6714 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
6715
6716 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
6717
6718 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
6719 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
6720 corrupted or not synced properly.
6721
6722 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6723
6724 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
6725 Reported by: Seth Goldberg.
6726
6727 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6728
6729 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
6730 addition of dest.
6731 Reported by: Seth Goldberg.
6732
6733 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6734
6735 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
6736 Reported by: Seth Goldberg.
6737
6738 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6739
6740 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
6741 64-bit address as signed on MIPS.
6742
6743 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
6744
6745 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
6746 to the empty string.
6747
6748 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
6749
6750 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
6751
6752 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
6753 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
6754 * kern/misc.c (__enable_execute_stack): Disable on
6755 GRUB_MACHINE_EMU.
6756
6757 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
6758
6759 Make grub-probe work with symbolic links under /dev/mapper as well
6760 as with real block devices. The Linux world seems to be (at best)
6761 in transition here, and GRUB shouldn't get caught in the middle.
6762
6763 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
6764 /dev/mapper.
6765
6766 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
6767
6768 * util/grub-script-check.c (main): Ensure defined behaviour on empty
6769 input files (in which case exit zero).
6770
6771 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
6772
6773 * kern/emu/misc.c (canonicalize_file_name): realpath can still
6774 return NULL for various reasons even if it has a maximum-length
6775 buffer: for example, there might be a symlink loop, or the path
6776 might exceed PATH_MAX. If this happens, return NULL.
6777
6778 2010-05-27 Robert Millan <rmh@gnu.org>
6779
6780 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
6781 partmap module to handle cross-partmap setups.
6782 Reported by Orestes Mas. Gràcies!
6783
6784 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
6785
6786 * util/grub-mkrescue.in: Initialise override_dir rather than
6787 assuming that it's unset or empty in the environment.
6788
6789 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
6790
6791 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
6792 variable index into p_index to suppress a warning with -Wshadow.
6793
6794 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
6795
6796 * INSTALL: Added flex >= 2.5.35 requirement.
6797
6798 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6799
6800 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
6801
6802 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6803
6804 cmostest support.
6805
6806 * commands/i386/cmostest.c: New file.
6807 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
6808 (cmostest_mod_SOURCES): New variable.
6809 (cmostest_mod_CFLAGS): Likewise.
6810 (cmostest_mod_LDFLAGS): Likewise.
6811 * conf/i386-pc.rmk: Likewise.
6812 * docs/grub.texi (Vendor power-on keys): New section.
6813 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
6814 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
6815 and GRUB_BUTTON_CMOS_ADDRESS.
6816 * util/grub.d/00_header.in: Handle powering-on by separate button.
6817
6818 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6819
6820 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
6821 Removed drawing_scrollbar argument. All users updated
6822 Fixes #29792.
6823 Reported by Jo Shields
6824
6825 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6826
6827 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
6828 buffer since gfxterm handles double repaint.
6829
6830 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6831
6832 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
6833 * term/gfxterm.c (real_scroll): Likewise.
6834
6835 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6836
6837 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
6838 before calling BIOS.
6839
6840 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6841
6842 * include/grub/i18n.h: Always enable grub_gettext.
6843
6844 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6845
6846 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
6847 partition naming style.
6848
6849 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
6850
6851 * util/grub-mkconfig.in: Fix handling of -o so that it works when
6852 not the first option.
6853
6854 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
6855
6856 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
6857
6858 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
6859
6860 * util/misc.c: Move inclusion of <limits.h> to ...
6861 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
6862
6863 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
6864
6865 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
6866 Fix merge error in NetBSD code.
6867 (find_partition_start) [__NetBSD__]: Likewise.
6868
6869 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
6870
6871 Fix grub-mkrescue usage unit testing.
6872
6873 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
6874
6875 2010-05-18 Christian Franke <franke@computer.org>
6876
6877 * util/grub.d/10_windows.in: Use path names instead of
6878 drive letters to prevent warning from Cygwin 1.7.
6879 Add drivemap command to menuentry if needed.
6880
6881 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
6882
6883 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
6884 gnumach and gnumach.gz.
6885
6886 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6887
6888 * include/grub/i18n.h (gettext): Inline instead of using #define.
6889 (grub_gettext): Likewise.
6890 (_): Likewise.
6891
6892 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6893
6894 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
6895 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
6896 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
6897 (main): Add a slash after pkglibdirroot.
6898
6899 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6900
6901 * util/grub-install.in: Add missing "in" keyword.
6902
6903 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6904
6905 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
6906 Reported by: Seth Goldberg.
6907
6908 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6909
6910 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
6911
6912 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
6913
6914 * configure.ac: Check for Linux device-mapper support.
6915
6916 * util/hostdisk.c (device_is_mapped): New function.
6917 (find_partition_start): New function, partly broken out from
6918 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
6919 device-mapper support added.
6920 (linux_find_partition): Use find_partition_start.
6921 (convert_system_partition_to_system_disk): Add `st' argument.
6922 Support Linux /dev/mapper/* devices if device-mapper support is
6923 available; only DM-RAID devices are understood at present.
6924 (find_system_device): Add `st' argument. Pass it to
6925 convert_system_partition_to_system_disk.
6926 (grub_util_biosdisk_get_grub_dev): Pass stat result to
6927 find_system_device and convert_system_partition_to_system_disk. Use
6928 find_partition_start.
6929
6930 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
6931 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
6932 * util/deviceiter.c [__linux__]: Define MINOR.
6933 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
6934 * util/mkdevicemap.c (grub_putchar): New function.
6935 (grub_getkey): New function.
6936 (grub_refresh): New function.
6937 (main): Set debug=all if -v -v is used.
6938
6939 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
6940
6941 Fix build with non-GNU libcs.
6942
6943 * util/misc.c (canonicalize_file_name): Move to ...
6944 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
6945 grub_make_system_path_relative_to_its_root.
6946
6947 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
6948
6949 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
6950 we handle finding grub-mkimage. Default to finding grub-mkimage in
6951 ${bindir} with program_transform_name applied, and provide a
6952 --grub-mkimage option to override this.
6953
6954 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6955
6956 Remove grub-mkisofs.
6957
6958 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
6959 (grub_mkisofs_SOURCES): Removed.
6960 (grub_mkisofs_CFLAGS): Removed.
6961 * util/mkisofs/defaults.h: Removed.
6962 * util/mkisofs/eltorito.c: Likewise.
6963 * util/mkisofs/exclude.h: Likewise.
6964 * util/mkisofs/hash.c: Likewise.
6965 * util/mkisofs/include/: Likewise.
6966 * util/mkisofs/include/fctldefs.h: Likewise.
6967 * util/mkisofs/include/mconfig.h: Likewise.
6968 * util/mkisofs/include/prototyp.h: Likewise.
6969 * util/mkisofs/include/statdefs.h: Likewise.
6970 * util/mkisofs/iso9660.h: Likewise.
6971 * util/mkisofs/joliet.c: Likewise.
6972 * util/mkisofs/match.c: Likewise.
6973 * util/mkisofs/match.h: Likewise.
6974 * util/mkisofs/mkisofs.c: Likewise.
6975 * util/mkisofs/mkisofs.h: Likewise.
6976 * util/mkisofs/msdos_partition.h: Likewise.
6977 * util/mkisofs/multi.c: Likewise.
6978 * util/mkisofs/name.c: Likewise.
6979 * util/mkisofs/rock.c: Likewise.
6980 * util/mkisofs/tree.c: Likewise.
6981 * util/mkisofs/write.c: Likewise.
6982
6983 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6984
6985 Unify grub-mkimage accross platforms.
6986
6987 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
6988 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
6989 (grub_mkelfimage_SOURCES): Removed.
6990 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
6991 (util/grub-mkimage.c_DEPENDENCIES): .. this.
6992 (bin_UTILITIES): Add grub-mkimage.
6993 (grub_mkimage_SOURCES): New variable.
6994 (kernel_img_HEADERS): Remove machine/kernel.h.
6995 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
6996 (pkglib_PROGRAMS): Add kernel.img.
6997 (kernel_img_HEADERS): Add machine/kernel.h.
6998 (kernel_img_FORMAT): Removed.
6999 (bin_UTILITIES): Remove grub-mkimage.
7000 (grub_mkimage_SOURCES): Removed.
7001 (grub_mkimage_CFLAGS): Likewise.
7002 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
7003 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
7004 (pkglib_PROGRAMS): Add kernel.img.
7005 (bin_UTILITIES): Remove grub-mkimage.
7006 (grub_mkimage_SOURCES): Removed.
7007 (grub_mkimage_CFLAGS): Likewise.
7008 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
7009 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
7010 (pkglib_PROGRAMS): Add kernel.img.
7011 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
7012 (pkglib_PROGRAMS): Add kernel.img.
7013 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
7014 (grub_mkimage_SOURCES): Removed.
7015 (grub_mkimage_CFLAGS): Likewise.
7016 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
7017 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
7018 (pkglib_PROGRAMS): Add kernel.img.
7019 (bin_UTILITIES): Remove grub-mkimage.
7020 (grub_mkimage_SOURCES): Removed.
7021 (grub_mkimage_CFLAGS): Likewise.
7022 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
7023 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
7024 (grub_mkimage_SOURCES): Removed.
7025 (grub_mkimage_CFLAGS): Likewise.
7026 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
7027 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
7028 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
7029 (grub_pe32_optional_header): ... this.
7030 (grub_pe64_optional_header): ... and this. All users updated.
7031 (GRUB_PE32_PE32_MAGIC): Split into ..
7032 (GRUB_PE32_PE32_MAGIC): .. this.
7033 (GRUB_PE32_PE64_MAGIC): .. and this.
7034 (GRUB_PE32_SIGNATURE_SIZE): New definition.
7035 * include/grub/elf.h (PT_GNU_STACK): New definition.
7036 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
7037 * include/grub/i386/efi/kernel.h: Likewise.
7038 * include/grub/i386/kernel.h: Likewise.
7039 * include/grub/i386/pc/kernel.h: Likewise.
7040 * include/grub/i386/qemu/boot.h: Likewise.
7041 * include/grub/mips/kernel.h: Likewise.
7042 * include/grub/mips/qemu-mips/kernel.h: Likewise.
7043 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
7044 * include/grub/powerpc/kernel.h: Likewise.
7045 * include/grub/sparc64/ieee1275/boot.h: Likewise.
7046 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
7047 * include/grub/sparc64/kernel.h: Likewise.
7048 * include/grub/x86_64/efi/kernel.h: Likewise.
7049 * include/grub/x86_64/kernel.h: Likewise.
7050 * include/grub/offsets.h: New file.
7051 * include/grub/kernel.h (grub_module_info): Split into ...
7052 (grub_module_info32): ... this.
7053 (grub_module_info64): ... and this.
7054 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
7055 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
7056 (grub_boot_blocklist): Moved from here ...
7057 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
7058 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
7059 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
7060 * include/grub/types.h (grub_target_to_host16): Removed.
7061 (grub_target_to_host32): Likewise.
7062 (grub_target_to_host64): Likewise.
7063 (grub_host_to_target16): Likewise.
7064 (grub_host_to_target32): Likewise.
7065 (grub_host_to_target64): Likewise.
7066 (grub_host_to_target_addr): Likewise.
7067
7068 Support grub-mkrescue for efi, coreboot and qemu.
7069
7070 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
7071 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
7072 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
7073 * util/grub-mkrawimage.c: Moved from here ...
7074 * util/grub-mkimage.c: ... here. All users updated.
7075 (ALIGN_ADDR): Use image_target.
7076 (TARGET_NO_FIELD): New const.
7077 (image_target_desc): New type.
7078 (image_targets): New array.
7079 (grub_target_to_host64): Use image_target.
7080 (grub_target_to_host32): Likewise.
7081 (grub_target_to_host16): Likewise.
7082 (grub_host_to_target64): Likewise.
7083 (grub_host_to_target32): Likewise.
7084 (grub_host_to_target16): Likewise.
7085 (grub_host_to_target_addr): Likewise.
7086 (generate_image): Handle multiimage.
7087 (main): Require -O parameter. All users updated.
7088 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
7089 util/efi/grub-mkimage.c
7090 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
7091 New option --rom-directory.
7092 Use xorriso.
7093 * util/i386/efi/grub-mkimage.c: Removed.
7094 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
7095 (grub_target_to_host32): Likewise.
7096 (grub_target_to_host64): Likewise.
7097 (grub_host_to_target16): Likewise.
7098 (grub_host_to_target32): Likewise.
7099 (grub_host_to_target64): Likewise.
7100 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
7101 (grub_target_to_host32): Likewise.
7102 (grub_target_to_host64): Likewise.
7103 (grub_host_to_target16): Likewise.
7104 (grub_host_to_target32): Likewise.
7105 (grub_host_to_target64): Likewise.
7106
7107 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
7108
7109 Source tree is reorganized for emu build.
7110
7111 * include/grub/util/console.h: Move from here...
7112 * include/grub/emu/console.h: ...to here.
7113 * include/grub/util/getroot.h: Move from here...
7114 * include/grub/emu/getroot.h: ...to here.
7115 * include/grub/util/hostdisk.h: Move from here...
7116 * include/grub/emu/hostdisk.h: ...to here.
7117 * util/console.c: Move from here...
7118 * kern/emu/console.c: ...to here.
7119 * util/getroot.c: Move from here...
7120 * kern/emu/getroot.c: ...to here.
7121 * util/grub-emu.c: Move from here...
7122 * kern/emu/main.c: ...to here.
7123 * util/hostdisk.c: Move from here...
7124 * kern/emu/hostdisk.c: ...to here.
7125 * util/hostfs.c: Move from here...
7126 * kern/emu/hostfs.c: ...to here.
7127 * util/mm.c: Move from here...
7128 * kern/emu/mm.c: ...to here.
7129 * util/pci.c: Move from here...
7130 * bus/emu/pci.c: ...to here.
7131 * util/sdl.c: Move from here...
7132 * video/emu/sdl.c: ...to here.
7133 * util/time.c: Move from here...
7134 * kern/emu/time.c: ...to here.
7135 * util/usb.c: Move from here...
7136 * bus/usb/emu/usb.c: ...to here.
7137
7138 * include/grub/emu/misc.h: New header for grub-emu functions.
7139 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
7140
7141 * conf/any-emu.rmk: Rule updates for above renames.
7142 * conf/common.rmk: Likewise.
7143 * conf/i386-pc.rmk: Likewise.
7144 * conf/i386-qemu.rmk: Likewise.
7145 * conf/mips.rmk: Likewise.
7146 * conf/sparc64-ieee1275.rmk: Likewise.
7147 * conf/x86-efi.rmk: Likewise.
7148
7149 * disk/lvm.h: #include updates for above renames.
7150 * util/grub-mkrelpath.c: Likewise.
7151 * util/grub-probe.c: Likewise.
7152 * util/i386/pc/grub-setup.c: Likewise.
7153 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7154 * kern/emu/console.c: Likewise.
7155 * kern/emu/getroot.c: Likewise.
7156 * kern/emu/hostdisk.c: Likewise.
7157 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
7158
7159 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
7160 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
7161 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
7162 * util/misc.c: Remove grub-emu functions.
7163
7164 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7165
7166 Fix gfxmenu crash.
7167 Reported by: Thorsten Grützmacher.
7168
7169 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
7170 timeout hook.
7171 (circprog_set_property): Register and unregister timeout hook.
7172 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
7173 (label_destroy): Free template. and unregister hook.
7174 (label_set_state): New function.
7175 (label_set_property): Handle templates and hooks.
7176 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
7177 timeout hook.
7178 (progress_bar_set_property): Register and unregister timeout hook.
7179 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
7180 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
7181 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
7182 (update_timeout_visit): Removed.
7183 (update_timeouts): New function.
7184 (redraw_timeouts): Likewise.
7185 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
7186 (grub_gfxmenu_clear_timeout): Likewise.
7187 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
7188 (grub_gfxmenu_timeout_notify): Likewise.
7189 (grub_gfxmenu_timeout_notifications): New external variable.
7190 (grub_gfxmenu_timeout_register): New function.
7191 (grub_gfxmenu_timeout_unregister): Likewise.
7192
7193 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7194
7195 Transform (broken) vga terminal into (working) vga video driver.
7196
7197 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
7198 video/i386/pc/vga.c.
7199 * include/grub/video.h (grub_video_driver_id):
7200 Add GRUB_VIDEO_DRIVER_VGA.
7201 * term/i386/pc/vga.c: Renamed to ...
7202 * video/i386/pc/vga.c: ...this
7203 (DEBUG_VGA): Removed.
7204 (CHAR_WIDTH): Likewise.
7205 (CHAR_HEIGHT): Likewise.
7206 (TEXT_WIDTH): Likewise.
7207 (TEXT_HEIGHT): Likewise.
7208 (DEFAULT_FG_COLOR): Likewise.
7209 (DEFAULT_BG_COLOR): Likewise.
7210 (colored_char): Likewise.
7211 (xpos): Likewise.
7212 (ypos): Likewise.
7213 (cursor_state): Likewise.
7214 (fg_color): Likewise.
7215 (bg_color): Likewise.
7216 (text_buf): Likewise.
7217 (page): Likewise.
7218 (font): Likewise.
7219 (framebuffer): New variable.
7220 (set_read_map): Disabled.
7221 (setup): New variable.
7222 (is_target): Likewise.
7223 (grub_vga_mod_init): Likewise.
7224 (grub_vga_mod_fini): Likewise.
7225 (check_vga_mem): Likewise.
7226 (write_char): Likewise.
7227 (write_cursor): Likewise.
7228 (scroll_up): Likewise.
7229 (grub_vga_putchar): Likewise.
7230 (grub_vga_getcharwidth): Likewise.
7231 (grub_vga_getwh): Likewise.
7232 (grub_vga_getxy): Likewise.
7233 (grub_vga_gotoxy): Likewise.
7234 (grub_vga_cls): Likewise.
7235 (grub_vga_setcolorstate): Likewise.
7236 (grub_vga_setcursor): Likewise.
7237 (grub_video_vga_init): New function.
7238 (grub_video_vga_setup): Likewise.
7239 (grub_video_vga_fini): Likewise.
7240 (update_target): Likewise.
7241 (grub_video_vga_blit_bitmap): Likewise.
7242 (grub_video_vga_blit_render_target): Likewise.
7243 (grub_video_vga_set_active_render_target): Likewise.
7244 (grub_video_vga_get_active_render_target): Likewise.
7245 (grub_video_vga_swap_buffers): Likewise.
7246 (grub_video_vga_set_palette): Likewise.
7247 (grub_video_vga_get_info_and_fini): Likewise.
7248 (grub_vga_term): Removed.
7249 (grub_video_vga_adapter): New variable.
7250 (GRUB_MOD_INIT): Register a video driver instead of terminal.
7251 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
7252
7253 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7254
7255 * video/readers/jpeg.c: Indented.
7256
7257 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7258
7259 Various jpeg cleanups.
7260
7261 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
7262 (grub_jpeg_decode_quan_table): Use sizeof.
7263 (grub_jpeg_decode_du): Use ARRAY_SIZE.
7264
7265 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
7266
7267 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
7268 tables. Ignore non-last ac bit.
7269 (grub_jpeg_decode_quan_table): Likewise.
7270
7271 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7272
7273 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
7274 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
7275 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7276 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
7277 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
7278 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
7279
7280 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7281
7282 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
7283 error.
7284
7285 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7286
7287 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
7288
7289 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7290
7291 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
7292 condition.
7293
7294 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7295
7296 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
7297 part.
7298
7299 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7300
7301 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
7302 pointers.
7303
7304 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
7307
7308 2010-05-01 Christian Franke <franke@computer.org>
7309
7310 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
7311 Remove broken Cygwin path conversion.
7312 * util/misc.c: [__CYGWIN__] Add include and define.
7313 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
7314 for Cygwin 1.7.
7315 (make_system_path_relative_to_its_root): Simplify loop, replace early
7316 return by break.
7317 [__CYGWIN__] Add conversion to win32 path.
7318 Include "/" case in trailing slash removal.
7319
7320 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7321
7322 * kern/main.c (grub_load_config): Fix copy-pasted comment.
7323 Reported by: Seth Goldberg
7324
7325 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7326
7327 * commands/help.c (grub_cmd_help): Fix a typo.
7328 Reported by: Seth Goldberg
7329
7330 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7331
7332 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
7333 name and add N_.
7334 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
7335 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
7336 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
7337 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
7338 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
7339 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
7340 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
7341 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
7342 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
7343 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
7344 * normal/context.c (GRUB_MOD_INIT): Likewise.
7345 * normal/main.c (GRUB_MOD_INIT): Likewise.
7346 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
7347 * term/serial.c (GRUB_MOD_INIT): Likewise.
7348 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
7349
7350 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7351
7352 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
7353 extra == 0.
7354
7355 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7356
7357 * commands/iorw.c: New file.
7358 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
7359 (iorw_mod_SOURCES): New variable.
7360 (iorw_mod_CFLAGS): Likewise.
7361 (iorw_mod_LDFLAGS): Likewise.
7362
7363 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7364
7365 Hotkey support
7366
7367 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
7368 * normal/main.c (hotkey_aliases): New variable.
7369 (grub_normal_add_menu_entry): Parse "--hotkey".
7370 * normal/menu_text.c (run_menu): Handle hotkeys.
7371
7372 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7373
7374 * kern/i386/coreboot/init.c (grub_machine_init): Call
7375 grub_machine_mmap_init on qemu.
7376
7377 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7378
7379 * boot/i386/qemu/boot.S: Add a missing .code16.
7380
7381 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7382
7383 Use LBIO on coreboot.
7384
7385 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
7386 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
7387 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
7388 New declaration.
7389 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
7390 grub_machine_mmap_init on coreboot.
7391 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
7392 GRUB_LINUXBIOS_MEMBER_LINK.
7393 (grub_machine_mmap_iterate): Fix declaration.
7394 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
7395
7396 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7397
7398 Split coreboot and multiboot ports.
7399
7400 * conf/i386-multiboot.rmk: New file.
7401 * configure.ac: Add multiboot port.
7402 * include/grub/i386/multiboot/boot.h: New file.
7403 * include/grub/i386/multiboot/console.h: Likewise.
7404 * include/grub/i386/multiboot/init.h: Likewise.
7405 * include/grub/i386/multiboot/kernel.h: Likewise.
7406 * include/grub/i386/multiboot/loader.h: Likewise.
7407 * include/grub/i386/multiboot/memory.h: Likewise.
7408 * include/grub/i386/multiboot/serial.h: Likewise.
7409 * include/grub/i386/multiboot/time.h: Likewise.
7410 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
7411 * loader/multiboot.c: Likewise.
7412 * loader/multiboot_mbi2.c: Likewise.
7413 * util/grub-mkrescue.in: Generate multiboot rescue.
7414
7415 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7416
7417 * kern/parser.c (grub_parser_execute): Cope with read-only config.
7418
7419 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7420
7421 Merge handling of input and output terminals. Fix a hang.
7422
7423 * commands/terminal.c (abstract_terminal): New struct.
7424 (handle_command): New function. Based on grub_cmd_terminal_input.
7425 (grub_cmd_terminal_input): Use handle_command.
7426 (grub_cmd_terminal_output): Use handle_command.
7427
7428 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
7429
7430 Fix comment handling.
7431
7432 * tests/grub_script_comments.in: New testcase.
7433 * conf/tests.rmk: Rules for new testcase.
7434 * script/yylex.l: Updated flex rules.
7435
7436 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7437
7438 * docs/grub.texi (play): Document that zero pitches produce rests.
7439 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
7440 if argc is 1.
7441
7442 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
7443
7444 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
7445 autogen issues.
7446
7447 2010-04-26 Christian Franke <franke@computer.org>
7448
7449 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
7450 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
7451 (grub_get_prefix): Remove function.
7452 * util/grub-emu.c (main): Replace grub_get_prefix () call by
7453 make_system_path_relative_to_its_root ().
7454 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
7455
7456 2010-04-24 Christian Franke <franke@computer.org>
7457
7458 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
7459 (kernel_img_LDFLAGS): Remove -static-libgcc.
7460
7461 2010-04-24 Christian Franke <franke@computer.org>
7462
7463 * configure.ac: Do not CHECK_BSS_START_SYMBOL
7464 and CHECK_END_SYMBOL if grub-emu is built.
7465 Unset TARGET_OBJ2ELF if grub-emu is built
7466 without module support.
7467
7468 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
7469
7470 Nilfs2 support.
7471
7472 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
7473 (grub_fstest_SOURCES): Likewise.
7474 (pkglib_MODULES): Add nilfs2.mod.
7475 (nilfs2_mod_SOURCES): New variable.
7476 (nilfs2_mod_CFLAGS): Likewise.
7477 (nilfs2_mod_LDFLAGS): Likewise.
7478 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
7479 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
7480 * fs/nilfs2.c: New file.
7481
7482 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7483
7484 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
7485 is not supported.
7486
7487 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
7488
7489 Add grub-mkconfig support for NetBSD.
7490
7491 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
7492 * util/grub-mkconfig.in: export new NetBSD specific variables.
7493 * po/POTFILES-shell: added 10_netbsd.in.
7494 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
7495
7496 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
7497
7498 Fix emu build with grub-emu-pci and grub-emu-modules.
7499
7500 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
7501 functions.
7502 * include/grub/libpciaccess.h: New file.
7503 * conf/any-emu.rmk: Update kernel headers for emu build.
7504
7505 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7506
7507 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
7508
7509 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7510
7511 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
7512
7513 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7514
7515 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
7516 Retrieve chosen/bootpath if bootpath isn't hardcoded.
7517 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
7518 util/ieee1275/ofpath.c.
7519 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
7520 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
7521 * include/grub/sparc64/ieee1275/boot.h
7522 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
7523 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
7524 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
7525 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
7526 const char *.
7527 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
7528 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
7529 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
7530 install.
7531
7532 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
7533
7534 * util/grub-mkconfig.in: Corrected two == equality tests.
7535 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
7536 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
7537 expect a number appended to it.
7538 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
7539 expects a number appended to it.
7540
7541 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7542
7543 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
7544
7545 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7546
7547 * util/hostdisk.c (make_device_name): Change to new partition naming.
7548
7549 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7550
7551 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
7552
7553 2010-04-17 Christian Franke <franke@computer.org>
7554
7555 * Makefile.in: Add missing localedir setting.
7556
7557 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
7558
7559 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
7560 mistake in r2156. Noticed by Anthony Fok.
7561
7562 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
7563 @localedir@.
7564 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
7565
7566 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
7567
7568 Fix a spurious, uninitialized variable warning.
7569
7570 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
7571 Initialize variable, shdr.
7572 (grub_freebsd_load_elfmodule): Likewise.
7573 (grub_freebsd_load_elf_meta): Likewise.
7574
7575 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
7576
7577 Fix for escaped dollar in double quoted strings.
7578
7579 * script/yylex.l: Updated flex rules.
7580 * conf/tests.rmk: Rule for new testcase.
7581 * tests/grub_script_dollar.in: New testcase.
7582
7583 2010-04-13 Carles Pina i Estany <carles@pina.cat>
7584 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
7585
7586 Enclose all translated strings in grub.cfg in single quotes, and
7587 escape them appropriately (Ubuntu bug #552921).
7588
7589 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
7590 * util/grub.d/10_hurd.in: Use it.
7591 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7592 * util/grub.d/10_linux.in (linux_entry): Likewise.
7593
7594 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7595
7596 Fix cygwin compilation.
7597
7598 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
7599 * include/grub/misc.h (__register_frame_info)
7600 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
7601 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
7602 * kern/misc.c (__register_frame_info)
7603 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
7604 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
7605
7606 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7607
7608 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
7609
7610 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7611
7612 Unify libgcc processing.
7613
7614 * Makefile.in (kernel_img_LDFLAGS): New variable.
7615 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
7616 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
7617 overwriting.
7618 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
7619 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
7620 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
7621 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
7622 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
7623 overwriting. Remove -lgcc and -static-libgcc
7624 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
7625 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
7626 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
7627 (kernel_img_LDFLAGS): Append instead of overwriting.
7628 Remove -lgcc and -static-libgcc
7629 * conf/sparc64-ieee1275.rmk: Likewise.
7630 * include/grub/powerpc/libgcc.h: Move to ...
7631 * include/grub/libgcc.h: .. this.
7632 * include/grub/libgcc.h: Don't export most of the function on x86.
7633 (__bswapsi2): New export.
7634 (__bswapdi2): Likewise.
7635 * include/grub/mips/libgcc.h: Removed.
7636 * include/grub/sparc64/libgcc.h: Likewise.
7637
7638 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7639
7640 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
7641 disk_info_msg (conflicts with gettexting into languages with cases).
7642
7643 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
7644
7645 Add grub-probe support for NetBSD.
7646
7647 * util/getroot.c (find_root_device): Convert block device to
7648 character device on NetBSD.
7649 * util/probe.c (probe): Require character device on NetBSD.
7650 * util/hostdisk.c: NetBSD specific headers.
7651 (configure_device_driver): new function to tune device driver
7652 parameters (currently only for NetBSD floppy driver).
7653 (grub_util_biosdisk_open): NetBSD specific code (get disk size
7654 via disklabel ioctl).
7655 (open_device): call configure_device_driver on NetBSD.
7656 (convert_system_partition_to_system_disk): NetBSD specific code.
7657 (device_is_wholedisk): Likewise.
7658 (grub_util_biosdisk_get_grub_dev): Likewise.
7659 (make_device_name): Fixed a typo in bsd_part_str.
7660 * configure.ac: check for opendisk() and getrawpartition() on
7661 NetBSD and set LIBUTIL.
7662 * Makefile.in: add LIBUTIL to LIBS.
7663
7664 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
7665
7666 Documentation fix.
7667
7668 * util/grub-script-check.c: Better help message.
7669
7670 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
7671
7672 Fix FreeBSD build.
7673
7674 * configure.ac: Flex version check.
7675 * conf/common.rmk: Add -Wno-error to sh.mod.
7676 * script/yylex.l: Remove all #pragma.
7677
7678 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7679
7680 * include/grub/util/misc.h (canonicalise_file_name): Add missing
7681 prototype.
7682 Reported by: Seth Goldberg.
7683
7684 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7685
7686 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
7687 Rename "module" to "module2".
7688 Reported by: Seth Goldberg.
7689
7690 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7691
7692 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
7693 EXPORT_FUNC.
7694 Reported by: Seth Goldberg.
7695
7696 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7697
7698 * lib/posix_wrap/locale.h: Add missing file.
7699 Reported by: Seth Goldberg.
7700
7701 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7702
7703 grub-emu module load support.
7704
7705 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
7706 NO_DYNAMIC_MODULES switched to this.
7707 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
7708 (CFLAGS): Likewise.
7709 * conf/any-emu.rmk: Generate symlist.
7710 (kernel_img_HEADERS): Add util/datetime.h.
7711 (kernel_img_HEADERS) [sdl]: Add sdl.h.
7712 (kernel_img_HEADERS) [libusb]: Add libusb.h.
7713 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
7714 kern/$(target_cpu)/cache.S.
7715 * configure.ac (grub-emu-modules): New option.
7716 * genmk.rb: Handle multiple source lists.
7717 * include/grub/sdl.h: New file.
7718 * include/grub/libusb.h: Likewise.
7719 * util/grub-emu.c (main): Hanle (host) root.
7720 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
7721 GRUB_ERR_UNKNOWN_DEVICE.
7722 * util/misc.c: Move mm functions to ...
7723 * util/mm.c: ... here. All users updated.
7724
7725 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7726
7727 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
7728 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
7729 missing files.
7730 (maintainer-clean): Remove libgcrypt-grub.
7731
7732 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7733
7734 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
7735
7736 2010-04-09 EFI Coder <eficoder@hotmail.com>
7737
7738 * normal/menu_text.c (print_message): Clean up the message and show
7739 the Fn information when on EFI
7740 * term/efi/console.c (grub_console_checkkey): Add F4 support.
7741
7742 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7743
7744 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
7745 All users updated.
7746 * normal/crypto.c (read_crypto_list): Likewise.
7747 * normal/dyncmd.c (read_command_list): Likewise.
7748 * normal/term.c (read_terminal_list): Likewise.
7749 * normal/main.c (read_lists): Use explicit prefix.
7750 (read_lists_hook): Use read_lists.
7751 (grub_normal_execute): Likewise.
7752
7753 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7754
7755 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
7756 Reported by: Thomas Schmitt.
7757 Add -no-emul-boot to grub-mkisofs parameters.
7758
7759 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7760
7761 * font/font.c: Indented.
7762
7763 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
7764
7765 Elif support to GRUB script (by Deepak Vankadaru).
7766
7767 * tests/grub_script_if.in: New testcase.
7768 * conf/tests.rmk: Rule for new testcase.
7769 * script/parser.y: Grammar rules for elif.
7770
7771 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
7772
7773 While and until loops support to GRUB script.
7774
7775 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
7776 (grub_script_create_cmdwhile): New function prototype.
7777 (grub_script_execute_cmdwhile): New function prototype.
7778 * script/execute.c (grub_script_execute_cmdwhile): New function.
7779 * script/parser.y (command): New commands.
7780 (whilecmd): New grammar rule.
7781 (untilcmd): New grammar rule.
7782 * script/script.c (grub_script_create_cmdwhile): New function.
7783 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
7784 function.
7785
7786 * tests/grub_script_while1.in: New testcase.
7787 * conf/tests.rmk: Rule for new testcase.
7788
7789 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7790
7791 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
7792 as *.jpg.
7793
7794 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
7795
7796 GRUB_BACKGROUND support.
7797
7798 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
7799 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
7800
7801 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7802
7803 Load fonts and modules for gfxmenu in grub-mkconfig.
7804 Idea by: Mario Vazquez
7805
7806 * util/grub.d/00_header.in: Load pf2 and image modules.
7807
7808 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7809
7810 grub-mkconfig multiple terminal support.
7811
7812 * util/grub-mkconfig.in: Handle multiple terminals correctly.
7813 * util/grub.d/00_header.in: Likewise.
7814
7815 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7816
7817 * Makefile.in: Specify files explicitly instead of using $< and $@ since
7818 we use cd $(srcdir).
7819
7820 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
7821
7822 * util/grub.d/10_linux.in: Only use the first word of
7823 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
7824 spaces in GRUB_DISTRIBUTOR.
7825 * util/grub.d/10_kfreebsd.in: Likewise.
7826 * util/grub.d/10_hurd.in: Likewise.
7827
7828 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
7829
7830 Fix unit testing framework for Qemu 0.12.
7831
7832 * tests/util/grub-shell.in: Remove -serial stdio option.
7833
7834 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7835
7836 POSIX header file wrappers.
7837
7838 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
7839 equivalents.
7840 * lib/posix_wrap/ctype.h: Likewise.
7841 * lib/posix_wrap/errno.h: Likewise.
7842 * lib/posix_wrap/langinfo.h: Likewise.
7843 * lib/posix_wrap/limits.h: Likewise.
7844 * lib/posix_wrap/localcharset.h: Likewise.
7845 * lib/posix_wrap/stdint.h: Likewise.
7846 * lib/posix_wrap/stdio.h: Likewise.
7847 * lib/posix_wrap/stdlib.h: Likewise.
7848 * lib/posix_wrap/string.h: Likewise.
7849 * lib/posix_wrap/sys/types.h: Likewise.
7850 * lib/posix_wrap/unistd.h: Likewise.
7851 * lib/posix_wrap/wchar.h: Likewise.
7852 * lib/posix_wrap/wctype.h: Likewise.
7853 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
7854 (grub_script.yy.h): Likewise.
7855 * script/yylex.l: Remove POSIX emulation #defines.
7856 * Makefile.in (POSIX_CFLAGS): New variable.
7857 (GNULIB_UTIL_CFLAGS): Likewise.
7858
7859 Regexp support.
7860
7861 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
7862 (regexp_mod_SOURCES): New variable.
7863 (regexp_mod_CFLAGS): Likewise.
7864 (regexp_mod_LDFLAGS): Likewise.
7865 * commands/regexp.c: New file.
7866 * gnulib/regcomp.c: New file. Imported from gnulib.
7867 * gnulib/regex.c: Likewise.
7868 * gnulib/regex_internal.c: Likewise.
7869 * gnulib/regex_internal.h: Likewise.
7870 * gnulib/regexec.c: Likewise.
7871 * gnulib/regex.h: Likewise.
7872
7873 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7874
7875 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
7876 unsupported video mode types.
7877
7878 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7879
7880 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
7881
7882 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7883
7884 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
7885 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
7886
7887 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7888
7889 Remove unused grub_vga_get_font.
7890
7891 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
7892 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
7893
7894 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7895
7896 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
7897 * include/grub/misc.h: Likewise.
7898
7899 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7900
7901 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
7902 for which failure is fatal.
7903
7904 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7905
7906 * util/grub-install.in: Use mkdir -p to create grub directory.
7907 * util/i386/efi/grub-install.in: Likewise.
7908 * util/ieee1275/grub-install.in: Likewise.
7909
7910 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7911
7912 * Makefile.in (LEX): new variable.
7913
7914 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7915
7916 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
7917 `=' and added double quotes on operands of this equality test.
7918
7919 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7920
7921 * Makefile.in (uninstall): Remove a leftover debug echo.
7922 Reported by: Grégoire Sutre
7923
7924 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7925
7926 MIPS multiboot2 support.
7927
7928 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
7929 (multiboot2_mod_SOURCES): New variable.
7930 (multiboot2_mod_CFLAGS): Likewise.
7931 (multiboot2_mod_LDFLAGS): Likewise.
7932 (multiboot2_mod_ASFLAGS): Likewise.
7933 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
7934 definition.
7935 (MULTIBOOT_ENTRY_REGISTER): Likewise.
7936 (MULTIBOOT_MBI_REGISTER): Likewise.
7937 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
7938 (MULTIBOOT_ELF32_MACHINE): Likewise.
7939 (MULTIBOOT_ELF64_MACHINE): Likewise.
7940 * include/grub/mips/multiboot.h: New file.
7941 * include/grub/video.h (grub_video_driver_id): New type
7942 GRUB_VIDEO_DRIVER_SM712.
7943 (grub_video_get_info_and_fini): Export.
7944 (grub_video_get_palette): Likewise.
7945 (grub_video_get_driver_id): Likewise.
7946 * include/multiboot2.h: Resynced with spec.
7947 * loader/i386/multiboot.c: Moved from here ...
7948 * loader/multiboot.c: ... here. All users updated.
7949 (grub_multiboot_boot): Use platform-specific macros.
7950 * loader/i386/multiboot_elfxx.c: Moved from here ...
7951 * loader/multiboot_elfxx.c: ... here. All users updated.
7952 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
7953 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
7954 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
7955
7956 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
7957
7958 Import gnulib argp module.
7959
7960 * gnulib/argp-ba.c: New file.
7961 * gnulib/argp-eexst.c: Likewise.
7962 * gnulib/argp-fmtstream.c: Likewise.
7963 * gnulib/argp-fmtstream.h: Likewise.
7964 * gnulib/argp-fs-xinl.c: Likewise.
7965 * gnulib/argp-help.c: Likewise.
7966 * gnulib/argp-namefrob.h: Likewise.
7967 * gnulib/argp-parse.c: Likewise.
7968 * gnulib/argp-pin.c: Likewise.
7969 * gnulib/argp-pv.c: Likewise.
7970 * gnulib/argp-pvh.c: Likewise.
7971 * gnulib/argp-version-etc.c: Likewise.
7972 * gnulib/argp-version-etc.h: Likewise.
7973 * gnulib/argp-xinl.c: Likewise.
7974 * gnulib/argp.h: Likewise.
7975
7976 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7977
7978 * kern/device.c (grub_device_iterate): Clear errors after failed
7979 opening device.
7980
7981 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7982
7983 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
7984 returned by firmware.
7985
7986 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
7987
7988 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
7989 compilation on coreboot and qemu
7990
7991 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7992
7993 * include/multiboot2.h: Resync with spec.
7994
7995 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7996
7997 Multiboot2 tag support
7998
7999 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
8000 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
8001 Remove loader/multiboot_loader.c.
8002 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
8003 (grub_multiboot2_real_boot): Likewise.
8004 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
8005 (grub_get_multiboot_mmap_count): New proto.
8006 (grub_fill_multiboot_mmap): Likewise.
8007 (grub_multiboot_set_video_mode): Likewise.
8008 (grub_multiboot_set_console): Likewise.
8009 (grub_multiboot_load): Likewise.
8010 (grub_multiboot_load_elf): Likewise.
8011 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
8012 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
8013 * include/multiboot.h: Resynced with specification.
8014 * include/multiboot2.h: Resynced with specification.
8015 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
8016 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
8017 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
8018 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
8019 users updated.
8020 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
8021 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
8022 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
8023 Removed.
8024 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
8025 Moved from here...
8026 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
8027 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
8028 Moved from here...
8029 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
8030 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
8031 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
8032 All users updated.
8033 * loader/i386/multiboot_mbi2.c: New file.
8034
8035 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
8036
8037 Resync with gnulib.
8038
8039 * Makefile.in (GNULIB_CFLAGS): New variable.
8040 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
8041 (grub_script_check_CFLAGS): New variable.
8042 * gnulib/alloca.h: Resync with gnulib.
8043 * gnulib/error.c: Likewise.
8044 * gnulib/error.h: Likewise.
8045 * gnulib/fnmatch.c: Likewise.
8046 * gnulib/fnmatch_loop.c: Likewise.
8047 * gnulib/getdelim.c: Likewise.
8048 * gnulib/getline.c: Likewise.
8049 * gnulib/getopt.c: Likewise.
8050 * gnulib/getopt1.c: Likewise.
8051 * gnulib/getopt_int.h: Likewise.
8052 * gnulib/gettext.h: Likewise.
8053 * gnulib/progname.c: Likewise.
8054 * gnulib/progname.h: Likewise.
8055
8056 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
8057
8058 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
8059 which is the case with --disabled-nls.
8060
8061 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
8062 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
8063 * util/misc.c: Likewise.
8064 * util/mkisofs/mkisofs.c: Likewise.
8065 * util/mkisofs/mkisofs.h: Likewise.
8066
8067 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
8068
8069 Simplify Apple CC support.
8070
8071 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
8072 Add 0 byte at the end not to have a symbol with empty target.
8073 * mmap/i386/pc/mmap_helper.S: Likewise.
8074 * genmk.rb: Ignore errors 2030 and 2050.
8075 * kern/i386/pc/startup.S: Use LOCAL when possible.
8076
8077 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
8078
8079 Testcase and the fix for final semicolon on cmdline.
8080
8081 * tests/grub_script_final_semicolon.in: New testcase.
8082 * conf/tests.rmk: Rules for the new testcase.
8083 * script/parser.y: Grammar fix.
8084
8085 2010-03-26 BVK Chaitanya <bvk@localhost>
8086
8087 Blank lines testcase for GRUB script.
8088
8089 * tests/grub_script_blanklines.in: New testcase.
8090 * conf/tests.rmk: Rules for the new testcase.
8091
8092 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8093
8094 Don't use __FILE__.
8095
8096 * genmk.rb: Add -DGRUB_FILE to all C targets.
8097 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
8098 * include/grub/list.h: Likewise.
8099 * include/grub/misc.h: Likewise.
8100 * include/grub/mm.h: Likewise.
8101 * include/grub/test.h: Likewise.
8102 * kern/mm.c: Likewise.
8103 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
8104
8105 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8106
8107 Sunpc partitions support.
8108
8109 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
8110 (grub_fstest_SOURCES): Likewise.
8111 (pkglib_MODULES): Add part_sunpc.mod.
8112 (part_sunpc_mod_SOURCES): New variable.
8113 (part_sunpc_mod_CFLAGS): Likewise.
8114 (part_sunpc_mod_LDFLAGS): Likewise.
8115 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
8116 * partmap/sunpc.c: New file.
8117
8118 2010-03-26 BVK Chaitanya <bvk@localhost>
8119
8120 For loop support to GRUB script.
8121
8122 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
8123 (grub_script_create_cmdfor): New function prototype.
8124 (grub_script_execute_cmdfor): New function prototype.
8125 * script/execute.c (grub_script_execute_cmdfor): New function.
8126 * script/parser.y (command): New for command.
8127 (forcmd): New grammar rule.
8128 * script/script.c (grub_script_create_cmdfor): New function.
8129 * util/grub-script-check.c (grub_script_execute_cmdfor): New
8130 function.
8131 * tests/grub_script_for1.in: New testcase.
8132 * conf/tests.rmk: Rules for new testcase.
8133
8134 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8135
8136 Nested partitions
8137
8138 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
8139 'partition' is NULL, grub_partition_get_start already does that.
8140 * commands/loadenv.c (check_blocklists): Likewise.
8141 (write_blocklists): Likewise.
8142 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
8143 (grub_fstest_SOURCES): Likewise.
8144 (pkglib_MODULES): Add part_bsd.mod.
8145 (part_bsd_mod_SOURCES): New variable.
8146 (part_bsd_mod_CFLAGS): Likewise.
8147 (part_bsd_mod_LDFLAGS): Likewise.
8148 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
8149 (grub_emu_SOURCES): Likewise.
8150 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8151 * include/grub/bsdlabel.h: New file.
8152 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
8153 'get_name'.
8154 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
8155 (grub_partition_map_list): New variable.
8156 (grub_partition_map_register): Inline.
8157 (grub_partition_map_unregister): Likewise.
8158 (FOR_PARTITION_MAPS): New macro.
8159 (grub_partition_map_iterate): Removed.
8160 (grub_partition_get_start): Handle nested partitions.
8161 * include/grub/msdos_partition.h: Remove bsd-related entries.
8162 (grub_pc_partition): Remove.
8163 * kern/disk.c (grub_disk_close): Free partition data.
8164 (grub_disk_adjust_range): Handle nested partitions.
8165 * kern/partition.c (grub_partition_map_probe): New function.
8166 (grub_partition_probe): Parse name to number, handle subpartitions.
8167 (get_partmap): New function.
8168 (grub_partition_iterate): Handle subpartitions.
8169 (grub_partition_get_name): Likewise.
8170 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
8171 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
8172 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
8173 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
8174 Set 'number'.
8175 (acorn_partition_map_probe): Remove.
8176 (acorn_partition_map_get_name): Likewise.
8177 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
8178 Set 'number'.
8179 Set 'index' to 0 since there can be only one partition entry per sector.
8180 (amiga_partition_map_probe): Remove.
8181 (amiga_partition_map_get_name): Likewise.
8182 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
8183 Set 'number'.
8184 Set 'offset' and 'index' to real positions of partitions.
8185 (apple_partition_map_probe): Remove.
8186 (apple_partition_map_get_name): Likewise.
8187 * partmap/bsdlabel.c: New file.
8188 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
8189 Set 'number'.
8190 Allocate 'data' so it can be correctly freed.
8191 Set 'index' to offset inside sector.
8192 (gpt_partition_map_probe): Remove.
8193 (gpt_partition_map_get_name): Likewise.
8194 * partmap/msdos.c (grub_partition_parse): Remove.
8195 (pc_partition_map_iterate): Don't force raw access.
8196 Set 'number'.
8197 Make 'ext_offset' a local variable.
8198 (pc_partition_map_probe): Remove.
8199 (pc_partition_map_get_name): Remove.
8200 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
8201 Set 'number'.
8202 (sun_partition_map_probe): Remove.
8203 (sun_partition_map_get_name): Likewise.
8204 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
8205 (grub_pcpart_type): Likewise.
8206 * util/hostdisk.c (open_device): Handle new numbering scheme.
8207 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
8208 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
8209 * util/grub-probe.c (probe_partmap): Handle nested paritions.
8210 * util/grub-install.in: Insert all subpartition modules.
8211 * util/ieee1275/grub-install.in: Likewise.
8212
8213 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
8214
8215 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
8216 grammar.
8217
8218 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
8219
8220 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
8221
8222 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
8223
8224 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
8225 match where 'make install' puts them.
8226 * util/i386/efi/grub-install.in: Likewise.
8227
8228 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
8229
8230 * .bzrignore: Add gentrigtables, grub-script-check,
8231 grub_script_check_init.c, grub_script_check_init.h, and
8232 trigtables.c.
8233
8234 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
8235
8236 * kern/parser.c: Indented.
8237
8238 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
8239
8240 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
8241
8242 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
8243
8244 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
8245 alpha_mask_size == 0 case.
8246
8247 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
8248
8249 GRUB shell lexer and parser improvements.
8250
8251 * conf/any-emu.rmk: Build rule updates.
8252 * conf/common.rmk: Likewise.
8253 * conf/i386-coreboot.rmk: Likewise.
8254 * conf/i386-efi.rmk: Likewise.
8255 * conf/i386-ieee1275.rmk: Likewise.
8256 * conf/i386-pc.rmk: Likewise.
8257 * conf/powerpc-ieee1275.rmk: Likewise.
8258 * conf/x86_64-efi.rmk: Likewise.
8259
8260 * configure.ac: Configure check for flex.
8261
8262 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
8263 types.
8264 (grub_lexer_param): Struct member updates.
8265 (grub_parser_param): Likewise.
8266 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
8267 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
8268 (grub_script_lexer_init): Prototype update.
8269 (grub_script_lexer_record_start): Likewise.
8270 (grub_script_lexer_record_stop): Likewise.
8271 (grub_script_lexer_yywrap): New function prototype.
8272 (grub_script_lexer_fini): Likewise.
8273 (grub_script_execute_argument_to_string): Removed by...
8274 (grub_script_execute_argument_to_argv): ...better version.
8275
8276 * script/execute.c (ROUND_UPTO): New macro.
8277 (grub_script_execute_cmdline): Out of memory fixes.
8278 (grub_script_execute_menuentry): Likewise.
8279 (grub_script_execute_argument_to_string): Removed. Update all
8280 users by...
8281 (grub_script_execute_argument_to_argv): ...better version.
8282 * script/function.c (grub_script_function_create): Use
8283 grub_script_execute_argument_to_argv instead of
8284 grub_script_execute_argument_to_string.
8285
8286 * script/lexer.c (check_varstate): Removed.
8287 (check_textstate): Removed.
8288 (grub_script_lexer_record_start): Likewise.
8289 (grub_script_lexer_record_stop): Likewise.
8290 (recordchar): Replaced with...
8291 (grub_script_lexer_record): ...new function.
8292 (nextchar): Removed.
8293 (grub_script_lexer_init): Rewritten.
8294 (grub_script_yylex): Rewritten.
8295 (append_newline): New function.
8296 (grub_script_lexer_yywrap): New function.
8297 (grub_script_lexer_fini): New function.
8298 (grub_script_yyerror): Sets error flag.
8299
8300 * script/yylex.l: New file.
8301 (grub_lexer_yyfree): Wrapper for flex yyffre.
8302 (grub_lexer_yyalloc): Likewise.
8303 (grub_lexer_yyrealloc): Likewise.
8304 * script/parser.y: Refactored.
8305
8306 * script/script.c (grub_script_arg_add): Out of memory fixes.
8307 (grub_script_add_arglist): Likewise.
8308 (grub_script_create_cmdline): Likewise.
8309 (grub_script_create_cmdmenu): Likewise.
8310 (grub_script_add_cmd): Likewise.
8311 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
8312 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
8313 unnecessary code.
8314
8315 * tests/grub_script_echo1.in: New testcase.
8316 * tests/grub_script_vars1.in: New testcase.
8317 * tests/grub_script_echo_keywords.in: New testcase.
8318
8319 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8320
8321 Remove some redundancy in build system.
8322
8323 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
8324 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
8325 (TARGET_LDFLAGS): Add -nostdlib.
8326 (TARGET_IMG_LDFLAGS): Likewise.
8327 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
8328 anything since mmap isn't available.
8329 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
8330 Add util/time.c.
8331 (pkglib_MODULES): Remove reboot.mod.
8332 (reboot_mod_SOURCES): Removed.
8333 (reboot_mod_CFLAGS): Likewise.
8334 (reboot_mod_LDFLAGS): Likewise.
8335 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
8336 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
8337 (DEFSYMFILES): Add kernel_syms.lst.
8338 (kernel_img_HEADERS): Add common headers.
8339 (symlist.c): New target.
8340 (kernel_syms.lst): Likewise.
8341 (pkglib_MODULES): Add memdisk.mod.
8342 (memdisk_mod_SOURCES): New variable.
8343 (memdisk_mod_CFLAGS): Likewise.
8344 (memdisk_mod_LDFLAGS): Likewise.
8345 (pkglib_MODULES): Add reboot.mod.
8346 (reboot_mod_SOURCES): New variable.
8347 (reboot_mod_CFLAGS): Likewise.
8348 (reboot_mod_LDFLAGS): Likewise.
8349 (pkglib_MODULES): Add date.mod.
8350 (date_mod_SOURCES): New variable.
8351 (date_mod_CFLAGS): Likewise.
8352 (date_mod_LDFLAGS): Likewise.
8353 (pkglib_MODULES): Add datehook.mod.
8354 (datehook_mod_SOURCES): New variable.
8355 (datehook_mod_CFLAGS): Likewise.
8356 (datehook_mod_LDFLAGS): Likewise.
8357 (pkglib_MODULES): Add lsmmap.mod.
8358 (lsmmap_mod_SOURCES): New variable.
8359 (lsmmap_mod_CFLAGS): Likewise.
8360 (lsmmap_mod_LDFLAGS): Likewise.
8361 (pkglib_MODULES): Add boot.mod.
8362 (boot_mod_SOURCES): New variable.
8363 (boot_mod_CFLAGS): Likewise.
8364 (boot_mod_LDFLAGS): Likewise.
8365 * conf/i386-coreboot.rmk: Removed redundant parts.
8366 * conf/i386-ieee1275.rmk: Likewise.
8367 * conf/i386-pc.rmk: Likewise.
8368 * conf/mips-yeeloong.rmk: Likewise.
8369 * conf/mips.rmk: Likewise.
8370 * conf/powerpc-ieee1275.rmk: Likewise.
8371 * conf/sparc64-ieee1275.rmk: Likewise.
8372 * conf/x86_64-efi.rmk: Likewise.
8373 * conf/i386-coreboot.rmk: Moved qemu parts ..
8374 * conf/i386-qemu.rmk: ... here
8375 * conf/i386-efi.rmk: Moved common parts to...
8376 * conf/x86-efi.rmk: ... here.
8377 * conf/i386.rmk: Added modules common to all x86 variants.
8378 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
8379 * disk/memdisk.c: Remove grub/machine/kernel.h.
8380 * gensymlist.sh.in: Include symbol.h.
8381 * hook/datehook.c: Correct module name.
8382 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
8383 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
8384 * include/grub/i386/efi/serial.h: New file.
8385 * include/grub/x86_64/efi/serial.h: Likewise.
8386 * util/time.c: Likewise.
8387 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
8388
8389 2010-03-14 Colin King <colin.king@ubuntu.com>
8390 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
8391
8392 Shrink the pre-partition-table part of boot.img by eight bytes.
8393
8394 * boot/i386/pc/boot.S (ERR): New macro.
8395 (chs_mode): Use ERR.
8396 (geometry_error): Likewise.
8397 (hd_probe_error): Remove. This is only used once, so we wrwite
8398 it inline instead.
8399 (read_error): Instead of printing read_error_string, just set up
8400 %si and fall through to ...
8401 (error_message): ... this new function, also used by ERR.
8402
8403 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
8404
8405 Speed up consecutive hostdisk operations on the same device.
8406
8407 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
8408 (grub_util_biosdisk_open): Initialise disk->data.
8409 (struct linux_partition_cache): New structure.
8410 (linux_find_partition): Cache partition start positions; these are
8411 expensive to compute on every read and write.
8412 (open_device): Cache open file descriptor in disk->data, so that we
8413 don't have to reopen it and flush the buffer cache for consecutive
8414 operations on the same device.
8415 (grub_util_biosdisk_close): New function.
8416 (grub_util_biosdisk_dev): Set `close' member.
8417
8418 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
8419 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
8420 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8421 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
8422 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
8423
8424 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8425
8426 Compile parts of grub-emu as modules.
8427
8428 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
8429 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
8430 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
8431 (all-local): Add $(GRUB_EMU).
8432 (install-local): Install $(GRUB_EMU).
8433 (uninstall): Uninstall $(GRUB_EMU).
8434 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
8435 * kern/dl.c: Likewise.
8436 * commands/sleep.c: Not include machine/time.h.
8437 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
8438 (COMMON_CFLAGS): Likewise.
8439 (sbin_UTILITIES): Remove grub-emu.
8440 (grub_emu_SOURCES): Removed.
8441 (kernel_img_RELOCATABLE): New variable.
8442 (pkglib_PROGRAMS): Add kernel.img.
8443 (kernel_img_SOURCES): New variable
8444 (kernel_img_CFLAGS): Likewise.
8445 (kernel_img_LDFLAGS): Likewise.
8446 (TARGET_NO_STRIP): Likewise.
8447 (TARGET_NO_DYNAMIC_MODULES): Likewise.
8448 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
8449 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
8450 (grub-emu): New target.
8451 (GRUB_EMU): New variable.
8452 * configure.ac: Whitelist -emu as possible x86_64 architecture.
8453 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
8454 * loader/xnu.c: Likewise.
8455 * include/grub/pci.h: Likewise.
8456 * genemuinit.sh: New file.
8457 * genemuinitheader.sh: Likewise.
8458 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
8459 Support TARGET_NO_DYNAMIC_MODULES.
8460 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
8461 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
8462 * disk/loopback.c: Likewise.
8463 * font/font_cmd.c: Likewise.
8464 * partmap/acorn.c: Likewise.
8465 * partmap/amiga.c: Likewise.
8466 * partmap/apple.c: Likewise.
8467 * partmap/gpt.c: Likewise.
8468 * partmap/msdos.c: Likewise.
8469 * partmap/sun.c: Likewise.
8470 * parttool/msdospart.c: Likewise.
8471 * term/gfxterm.c: Likewise.
8472 * video/bitmap.c: Likewise.
8473 * video/readers/jpeg.c: Likewise.
8474 * video/readers/png.c: Likewise.
8475 * video/readers/tga.c: Likewise.
8476 * video/video.c: Likewise.
8477 * util/grub-emu.c (read_command_list): Removed.
8478 (main): Don't call util_init_nls.
8479 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
8480 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
8481
8482 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8483
8484 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
8485 date.mod, datehook.mod.
8486 (datetime_mod_SOURCES): New variable.
8487 (datetime_mod_CFLAGS): Likewise.
8488 (datetime_mod_LDFLAGS): Likewise.
8489 (date_mod_SOURCES): Likewise.
8490 (date_mod_CFLAGS): Likewise.
8491 (date_mod_LDFLAGS): Likewise.
8492 (datehook_mod_SOURCES): Likewise.
8493 (datehook_mod_CFLAGS): Likewise.
8494 (datehook_mod_LDFLAGS): Likewise.
8495 * conf/sparc64-ieee1275.rmk: Likewise.
8496 * lib/ieee1275/datetime.c: New file.
8497
8498 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8499
8500 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
8501 (ieee1275_fb_mod_SOURCES): New variable.
8502 (ieee1275_fb_mod_CFLAGS): Likewise.
8503 (ieee1275_fb_mod_LDFLAGS): Likewise.
8504 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
8505 New proto.
8506 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
8507 (HEAP_MAX_ADDR): Likewise.
8508 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
8509 type.
8510 Correct stop condition.
8511 (grub_ieee1275_devices_iterate): New function.
8512 * video/ieee1275.c: New file.
8513
8514 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8515
8516 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
8517
8518 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
8519 as scratch.
8520 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
8521 SCRATCH_PAD_DISKBOOT as scratch.
8522 (bootit): Pass Openfirmware pointer in %o4.
8523 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
8524 of 0x200000.
8525 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
8526 with util/grub-mkrawimage.c.
8527 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
8528 * include/grub/aout.h (AOUT_MID_SUN): New definition.
8529 (grub_aout_get_type) [GRUB_UTIL]: Removed.
8530 (grub_aout_load) [GRUB_UTIL]: Likewise.
8531 * include/grub/kernel.h (grub_modules_get_end): New proto.
8532 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
8533 (SCRATCH_PAD_BOOT): New definition.
8534 (SCRATCH_PAD_DISKBOOT): Likewise.
8535 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
8536 * include/grub/sparc64/ieee1275/ieee1275.h
8537 (grub_ieee1275_original_stack): New variable
8538 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
8539 New definition
8540 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
8541 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
8542 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
8543 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
8544 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
8545 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
8546 (grub_platform_image_format_t): New type.
8547 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
8548 * kern/main.c (grub_modules_get_end)
8549 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
8550 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
8551 (codestart): Switch stacks.
8552 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
8553 variable.
8554 (grub_heap_init): Use grub_modules_get_end.
8555 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
8556 stack.
8557 * util/grub-mkrawimage.c (generate_image): Support sparc64.
8558 (main): Likewise.
8559 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
8560
8561 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
8562
8563 * util/grub-mkrescue.in: Base ISO UUID on UTC.
8564
8565 2010-03-08 Matt Kraai <kraai@ftbfs.org>
8566
8567 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
8568 bug #559005).
8569
8570 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
8571
8572 * genmoddep.awk: Output all missing symbols and not only first.
8573
8574 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8575
8576 * NEWS: Put the date of 1.98 release.
8577
8578 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8579
8580 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
8581 ft2build.h.
8582
8583 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8584
8585 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
8586 completition in the middle of string.
8587
8588 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8589
8590 * util/grub-mkrescue.in: Use mktemp with explicit template.
8591
8592 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8593
8594 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
8595
8596 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8597
8598 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
8599 right pointer.
8600
8601 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8602
8603 Fix FreeBSD compilation.
8604
8605 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
8606 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
8607
8608 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8609
8610 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
8611
8612 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8613
8614 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
8615
8616 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8617
8618 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
8619
8620 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
8621
8622 Support relative image path in theme file.
8623
8624 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
8625 (image_set_property): Handle theme_dir and relative path.
8626
8627 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8628
8629 * configure.ac: Alias amd64 to x86_64.
8630
8631 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8632
8633 * NEWS: mention multiboot on EFI.
8634
8635 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8636
8637 * kern/main.c (grub_load_modules): Handle errors from init functions of
8638 embeded modules.
8639
8640 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8641
8642 * normal/autofs.c (autoload_fs_module): Handle errors.
8643
8644 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8645
8646 Disable linux.mod on qemu-mips since it's not functional and leads
8647 to compilation failure.
8648
8649 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
8650 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
8651 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
8652 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
8653 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
8654 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
8655 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
8656 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
8657 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
8658 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
8659 Reported by: BVK Chaitanya
8660
8661 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
8662
8663 * INSTALL: Add gettext as a dependency and add qemu to a new section
8664 "Prerequisites for make-check".
8665
8666 2010-03-04 Christian Franke <franke@computer.org>
8667
8668 * util/grub-pe2elf.c: Add missing include "progname.h".
8669
8670 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8671
8672 * normal/crypto.c (read_crypto_list): Fix a typo.
8673 Reported by: Seth Goldberg.
8674
8675 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8676
8677 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
8678 Reported by: Seth Goldberg.
8679
8680 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8681
8682 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
8683 ascii.bitmaps.
8684
8685 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8686
8687 * genmk.rb: Remove terminal*.lst in make clean.
8688 Reported by: Seth Goldberg.
8689
8690 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8691
8692 * util/i386/efi/grub-install.in: Copy gettext files.
8693
8694 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
8695
8696 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
8697
8698 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
8699
8700 Wait for user entry basing on presence of output rather than on errors.
8701
8702 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
8703 (grub_install_newline_hook): Likewise.
8704 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
8705 * normal/menu.c (show_menu): Check line_counter to determine presence
8706 of output.
8707 * normal/term.c (grub_normal_line_counter): New variable.
8708 (grub_normal_get_line_counter): New function.
8709 (grub_install_newline_hook): Likewise.
8710
8711 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
8712
8713 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
8714
8715 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
8716
8717 * configure.ac: Update version to 1.98.
8718
8719 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8720
8721 * util/grub.d/10_linux.in (linux_entry): Don't default to
8722 gfxpayload=keep if Linux doesn't support video handover.
8723
8724 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
8725
8726 Don't compile video modules on yeeloong since video subsystem is part
8727 of kernel.
8728
8729 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
8730 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
8731 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
8732 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
8733 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
8734 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
8735 * include/grub/bitmap_scale.h: Likewise.
8736 * include/grub/bufio.h: Likewise.
8737 * include/grub/font.h: Likewise.
8738 * include/grub/gfxterm.h: Likewise.
8739 * include/grub/video.h: Likewise.
8740 * include/grub/vbe.h: Don't include video_fb.h.
8741 * video/i386/pc/vbe.c: Include video_fb.h.
8742 * commands/i386/pc/vbetest.c: Include video.h.
8743
8744 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
8745
8746 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
8747 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
8748 default entry if GRUB_SAVEDEFAULT=true. This allows using
8749 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
8750 saving a new default on every boot.
8751
8752 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8753
8754 * normal/crypto.c (read_crypto_list): Fix a memory leak.
8755 * normal/term.c (read_terminal_list): Likewise.
8756 * normal/main.c (grub_normal_init_page): Likewise.
8757 (grub_normal_read_line_real): Likewise.
8758
8759 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8760
8761 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
8762 memory leak.
8763 Reported by: Seth Goldberg.
8764
8765 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
8766
8767 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
8768 duplicate declaration of `start'.
8769
8770 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
8771
8772 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
8773 filename.
8774 Reported by: Georgy Buranov
8775
8776 2010-02-20 Carles Pina i Estany <carles@pina.cat>
8777
8778 * util/grub-mkrawimage.c (usage): Change string formatting to
8779 improve gettext.
8780
8781 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
8782
8783 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
8784 backspace keys.
8785
8786 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
8787
8788 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
8789 Reported by: Michael Suchanek.
8790
8791 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
8792
8793 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
8794 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
8795
8796 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
8797
8798 Remove any reference to non-free fonts.
8799
8800 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
8801 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
8802 uses non-free components.
8803 * font/font.c (grub_font_get_name): Remove example name.
8804 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
8805 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
8806 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
8807 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
8808
8809 2010-02-16 Georgy Buranov <gburanov@gmail.com>
8810
8811 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
8812
8813 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
8814
8815 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
8816 Double divisor.
8817 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
8818 features.
8819 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
8820
8821 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
8822
8823 * gensymlist.sh.in: Use TARGET_CC instead of CC.
8824
8825 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
8826
8827 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
8828 * docs/grub.texi (Command-line and menu entry commands): Document play
8829 command.
8830
8831 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
8832
8833 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
8834 parse arguments as inline tempo and notes. Move code for playing notes
8835 to...
8836 (play): ... new function.
8837
8838 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
8839
8840 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
8841 grub_uint16_t instead of short.
8842 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
8843 disk from little endian to cpu endianness.
8844
8845 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
8846
8847 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
8848 GRUB_TICKS_PER_SECOND instead of 120.
8849
8850 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8851
8852 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
8853 escape sequence after \e.
8854
8855 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8856
8857 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
8858 non-ASCII characters.
8859
8860 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8861
8862 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
8863 set root in single quotes to prevent \, from being unescaped.
8864
8865 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8866
8867 Prevent unknown commands from stopping menuentry execution.
8868
8869 * script/execute.c (grub_script_execute_cmdline): Print error after
8870 unknown command.
8871
8872 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8873
8874 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
8875 Reported by: Pavel Pisa.
8876
8877 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8878
8879 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
8880
8881 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8882
8883 Merge grub_ieee1275_map_physical into grub_map and rename to
8884 grub_ieee1275_map
8885
8886 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
8887 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
8888 Remove.
8889 * kern/ieee1275/openfw.c (grub_map): Rename to ...
8890 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
8891 necessary.
8892 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
8893
8894 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8895
8896 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
8897 opening and not after.
8898
8899 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8900
8901 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
8902 constants.
8903
8904 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8905
8906 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
8907 (alloc_phys): Use ALIGN_UP instead of align_addr.
8908
8909 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8910
8911 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
8912
8913 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8914
8915 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
8916
8917 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8918
8919 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
8920 verbose dprintf.
8921
8922 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8923
8924 Fix over-4GiB seek on sparc64.
8925
8926 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
8927 Replace pos_i and pos_lo with pos. All users updated.
8928 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
8929 New constant.
8930 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
8931 Likewise.
8932 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
8933 and pos_lo.
8934
8935 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8936
8937 * util/grub-mkrawimage.c (main): Call set_program_name.
8938
8939 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8940
8941 Properly align 64-bit targets.
8942
8943 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
8944 (generate_image): Use ALIGN_ADDR.
8945
8946 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8947
8948 Properly create cross-endian images.
8949
8950 * include/grub/types.h (grub_host_to_target_addr): New macro
8951 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
8952
8953 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8954
8955 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
8956
8957 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8958
8959 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
8960
8961 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
8962 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
8963 (grub_linux_boot): Divide by 64K when on VESA.
8964
8965 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8966
8967 Support GRUB_GFXPAYLOAD_LINUX.
8968
8969 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
8970 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
8971
8972 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8973
8974 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
8975 to show messages instead of discarding them.
8976 Process errors after executing command and not before. Keep old method
8977 too as precaution.
8978
8979 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8980
8981 * configure.ac: Check for ft2build.h.
8982
8983 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8984
8985 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
8986
8987 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8988
8989 * genkernsyms.sh.in: Use TARGET_CC.
8990
8991 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
8992
8993 * NEWS: Update.
8994
8995 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8996
8997 * include/grub/multiboot2.h: Remove leftover file.
8998 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
8999 * include/grub/partition.h [GRUB_UTIL]: Likewise.
9000
9001 2010-02-07 Yves Blusseau <blusseau@zetam.org>
9002
9003 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
9004
9005 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9006
9007 Fix warnings in grub-emu when compiling with maximum warning options.
9008
9009 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
9010 (grub_arch_modules_addr): Return 0 and not NULL.
9011 * util/misc.c (ENABLE_RELOCATABLE): New definition.
9012 (xstrdup): Use newstr instead of dup.
9013 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
9014 of disk to dsk to avoid shadowing.
9015 (find_free_slot): Fix prototype.
9016 * util/getroot.c (grub_util_is_dmraid): Make static.
9017 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
9018 Add missing prototype.
9019 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
9020
9021 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9022
9023 * loader/i386/linux.c (grub_linux_setup_video): Handle error
9024 appropriately.
9025
9026 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9027
9028 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
9029 code out.
9030
9031 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9032
9033 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
9034 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
9035 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
9036 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
9037 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
9038 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
9039
9040 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9041
9042 * include/grub/err.h (grub_err_printf): Don't export.
9043
9044 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9045
9046 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
9047
9048 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9049
9050 * include/grub/i18n.h (grub_gettext_dummy): Removed.
9051 * kern/misc.c (grub_gettext_dummy): Make static.
9052
9053 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9054
9055 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
9056 by non-valid ones.
9057 * kern/term.c (grub_putchar): Likewise.
9058
9059 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9060
9061 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
9062 buggy hook call and memory leak.
9063
9064 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9065
9066 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
9067
9068 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9069
9070 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
9071
9072 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9073
9074 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
9075 modevar.
9076 Return grub_errno on allocation error.
9077
9078 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9079
9080 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
9081
9082 2010-02-06 Yves Blusseau <blusseau@zetam.org>
9083
9084 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
9085 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
9086
9087 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9088
9089 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
9090 non-pxe disk.
9091 (grub_pxefs_open): Likewise.
9092
9093 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
9094
9095 * util/grub.d/10_hurd.in: Add --class information to menuentries.
9096 * util/grub.d/10_kfreebsd.in: Likewise.
9097 * util/grub.d/10_linux.in: Likewise.
9098
9099 2010-02-06 Colin D Bennett <colin@gibibit.com>
9100
9101 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
9102 (gfxmenu_mod_SOURCES): New variable.
9103 (gfxmenu_mod_CFLAGS): Likewise.
9104 (gfxmenu_mod_LDFLAGS): Likewise.
9105 * include/grub/term.h (grub_term_set_current_output): Declare
9106 argument as const.
9107 * docs/gfxmenu-theme-example.txt: New file.
9108 * gfxmenu/gfxmenu.c: Likewise.
9109 * gfxmenu/gui_box.c: Likewise.
9110 * gfxmenu/gui_canvas.c: Likewise.
9111 * gfxmenu/gui_circular_progress.c: Likewise.
9112 * gfxmenu/gui_image.c: Likewise.
9113 * gfxmenu/gui_label.c: Likewise.
9114 * gfxmenu/gui_list.c: Likewise.
9115 * gfxmenu/gui_progress_bar.c: Likewise.
9116 * gfxmenu/gui_string_util.c: Likewise.
9117 * gfxmenu/gui_util.c: Likewise.
9118 * gfxmenu/icon_manager.c: Likewise.
9119 * gfxmenu/model.c: Likewise.
9120 * gfxmenu/named_colors.c: Likewise.
9121 * gfxmenu/theme_loader.c: Likewise.
9122 * gfxmenu/view.c: Likewise.
9123 * gfxmenu/widget-box.c: Likewise.
9124 * include/grub/gfxmenu_model.h: Likewise.
9125 * include/grub/gfxmenu_view.h: Likewise.
9126 * include/grub/gfxwidgets.h: Likewise.
9127 * include/grub/gui.h: Likewise.
9128 * include/grub/gui_string_util.h: Likewise.
9129 * include/grub/icon_manager.h: Likewise.
9130
9131 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9132
9133 Agglomerate scrolling in gfxterm.
9134
9135 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
9136 (grub_virtual_screen_setup): Initialise 'total_screen'.
9137 (write_char): Split to ...
9138 (paint_char): ... this ...
9139 (write_char): ... and this.
9140 (paint_char): Handle delayed scrolling.
9141 (draw_cursor): Likewise.
9142 (scroll_up): Split to ...
9143 (real_scroll): ... this ...
9144 (scroll_up): ... and this.
9145 (real_scroll): Handle multi-line scroll and draw below-the-bottom
9146 characters.
9147 (grub_gfxterm_refresh): Call real_scroll.
9148
9149 2010-02-06 Colin D Bennett <colin@gibibit.com>
9150
9151 * include/grub/misc.h (grub_iscntrl): New inline function.
9152 (grub_isalnum): Likewise.
9153 (grub_strtol): Likewise.
9154
9155 2010-02-06 Colin D Bennett <colin@gibibit.com>
9156
9157 * normal/menu_text.c (get_entry_number): Move from here ...
9158 * normal/menu.c (get_entry_number): ... moved here.
9159 * include/grub/menu.h (grub_menu_get_default_entry_index):
9160 New prototype.
9161 * normal/menu.c (grub_menu_get_default_entry_index): New function.
9162 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
9163 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
9164 (grub_menu_viewer_should_return): Likewise.
9165 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
9166 * normal/menu_text.c (run_menu): Enable menu switching.
9167 * normal/menu_viewer.c (should_return): New variable.
9168 (menu_viewer_changed): Likewise.
9169 (grub_menu_viewer_show_menu): Handle menu viewer changes.
9170 (grub_menu_viewer_should_return): New function.
9171 (menuviewer_write_hook): Likewise.
9172 (grub_menu_viewer_init): Likewise.
9173
9174 2010-02-06 Colin D Bennet <colin@gibibit.com>
9175 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9176
9177 Support for gfxterm in a window.
9178
9179 * include/grub/gfxterm.h: New file.
9180 * include/grub/video.h (struct grub_video_rect): New declaration.
9181 (grub_video_rect_t): Likewise.
9182 * term/gfxterm.c (struct grub_gfxterm_window): New type.
9183 (refcount): New variable.
9184 (render_target): Likewise.
9185 (window): Likewise.
9186 (repaint_callback): Likewise.
9187 (grub_virtual_screen_setup): Use 'render_target'.
9188 (init_window): New function.
9189 (grub_gfxterm_init_window): Likewise.
9190 (grub_gfxterm_init): Check reference counter.
9191 Use init_window.
9192 (destroy_window): New function.
9193 (grub_gfxterm_destroy_window): Likewise.
9194 (grub_gfxterm_fini): Check reference counter.
9195 Use destroy_window.
9196 (redraw_screen_rect): Restore viewport.
9197 Use 'render_target' and 'window'.
9198 Call 'repaint_callback'.
9199 (write_char): Use 'render_target'.
9200 (draw_cursor): Likewise.
9201 (scroll_up): Restore viewport.
9202 Use 'render_target' and 'window'.
9203 Call 'repaint_callback'.
9204 (grub_gfxterm_cls): Likewise.
9205 (grub_gfxterm_refresh): Use 'window'.
9206 (grub_gfxterm_set_repaint_callback): New function.
9207 (grub_gfxterm_background_image_cmd): Use 'window'.
9208 (grub_gfxterm_get_term): New function.
9209 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
9210
9211 2010-02-06 Colin D Bennett <colin@gibibit.com>
9212
9213 Bitmap scaling support.
9214
9215 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
9216 (bitmap_scale_mod_SOURCES): New variable.
9217 (bitmap_scale_mod_CFLAGS): Likewise.
9218 (bitmap_scale_mod_LDFLAGS): Likewise.
9219 * include/grub/bitmap_scale.h: New file.
9220 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
9221 (background_image_cmd_options): New variable.
9222 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
9223 (cmd): Rename and change type to ...
9224 (background_image_cmd_handle): ... this. All users updated.
9225 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
9226 * video/bitmap_scale.c: New file.
9227
9228 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9229
9230 SDL support.
9231
9232 * Makefile.in (LIBSDL): New variable.
9233 (enable_grub_emu_sdl): Likewise.
9234 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
9235 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
9236 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
9237 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
9238 * util/sdl.c: New file.
9239
9240 2010-02-06 Colin D Bennett <colin@gibibit.com>
9241 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9242
9243 Double buffering support.
9244
9245 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
9246 * include/grub/video.h: Update comment.
9247 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9248 New type.
9249 (grub_video_fb_doublebuf_blit_init): New prototype.
9250 * term/gfxterm.c (scroll_up): Support double buffering.
9251 (grub_gfxterm_refresh): Likewise.
9252 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
9253 (grub_video_fb_doublebuf_blit_init): Likewise.
9254 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
9255 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
9256 'displayed_page', 'render_page' and 'update_screen'.
9257 (grub_video_vbe_fini): Free offscreen buffer.
9258 (doublebuf_pageflipping_commit): New function.
9259 (doublebuf_pageflipping_update_screen): Likewise.
9260 (doublebuf_pageflipping_init): Likewise.
9261 (double_buffering_init): Likewise.
9262 (grub_video_vbe_setup): Enable doublebuffering.
9263 (grub_video_vbe_swap_buffers): Implement.
9264 (grub_video_vbe_set_active_render_target): Handle double buffering.
9265 (grub_video_vbe_get_active_render_target): Likewise.
9266 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
9267 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
9268 (grub_video_vbe_enable_double_buffering): Likewise.
9269 (grub_video_vbe_swap_buffers): Use update_screen.
9270 (grub_video_set_mode): Use double buffering.
9271
9272 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
9273
9274 * maintainance/gentrigtables.py: Remove.
9275 * lib/trig.c: Likewise.
9276
9277 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
9278
9279 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
9280 `trigtables.c'.
9281 (trigtables.c): New rule.
9282 (gentrigtables): Likewise.
9283 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
9284
9285 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
9286
9287 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
9288 integer constants.
9289
9290 2010-02-06 Colin D Bennet <colin@gibibit.com>
9291
9292 Trigonometry support.
9293
9294 * include/grub/trig.h: New file.
9295 * lib/trig.c: Likewise.
9296 * maintainance/gentrigtables.py: Likewise.
9297 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
9298 (trig_mod_SOURCES): New variable.
9299 (trig_mod_CFLAGS): Likewise.
9300 (trig_mod_LDFLAGS): Likewise.
9301
9302 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9303
9304 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
9305 disk devices.
9306
9307 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9308
9309 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
9310 error.
9311
9312 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9313
9314 * util/hostdisk.c (open_device): Don't use partition device when reading
9315 before the partition.
9316 (grub_util_biosdisk_read): Don't read from partition and before the
9317 partition in single operation.
9318 (grub_util_biosdisk_write): Don't write to partition and before the
9319 partition in single operation.
9320
9321 2010-02-03 Torsten Landschoff <torsten@debian.org>
9322
9323 * kern/disk.c (grub_disk_read): Fix offset computation when reading
9324 last sectors.
9325
9326 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9327
9328 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
9329 CDROM reads.
9330 (grub_biosdisk_write): Refuse to write to CDROM.
9331
9332 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9333
9334 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
9335
9336 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9337
9338 * font/font.c (find_glyph): Check that bmp_idx is available before
9339 using it.
9340 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
9341 with (font == NULL).
9342
9343 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
9344
9345 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
9346
9347 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
9348
9349 * include/grub/script_sh.h (sourcecode): Add const qualifier.
9350 * util/grub-script-check.c (getline): Fix empty lines case.
9351
9352 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
9353
9354 * Makefile.in (check): Exit with fail status when one of the tests
9355 fails.
9356 * tests/example_functional_test.c (example_test): Fix reversed assert.
9357 * tests/example_unit_test.c (example_test): Likewise.
9358
9359 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
9360
9361 * util/grub.d/10_linux.in: This script does not use any of the
9362 contents of gettext.sh, only the external command `gettext', so stop
9363 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
9364 the same prefix as GRUB.)
9365 * util/grub.d/10_kfreebsd.in: Likewise.
9366
9367 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9368
9369 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
9370 of the line.
9371
9372 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9373
9374 * kern/disk.c (grub_disk_read): Fix offset computation when reading
9375 last sectors.
9376
9377 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9378
9379 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
9380 having a 4KiB and not 32KiB buffer size.
9381
9382 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
9383
9384 * util/hostfs.c: Include `<errno.h>'.
9385 (grub_hostfs_read): Handle errors from fseeko() and fread().
9386
9387 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
9388
9389 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
9390 loop when using read hooks on files whose size isn't sector-aligned.
9391
9392 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
9393
9394 Remove unused parameter.
9395
9396 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
9397 (grub_iso9660_open): Remove initialization of `data->length'.
9398
9399 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
9400
9401 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
9402 memleak conditions.
9403
9404 2010-01-27 Carles Pina i Estany <carles@pina.cat>
9405
9406 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
9407 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
9408
9409 2010-01-26 Carles Pina i Estany <carles@pina.cat>
9410
9411 * util/bin2h.c (usage): Fix warning (space after backslash).
9412
9413 2010-01-26 Carles Pina i Estany <carles@pina.cat>
9414
9415 * font/font.c: Include `grub/fontformat.h.
9416 Remove font file format constants.
9417 (grub_font_load): Use the new macros.
9418 * include/grub/fontformat.h: New file.
9419 * util/grub-mkfont.c: Include `grub/fontformat.c'.
9420 (write_font_pf2): Use the new macros.
9421
9422 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
9423
9424 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
9425 does.
9426
9427 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
9428
9429 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
9430
9431 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
9432 (_start): Macroify `0x7F'.
9433
9434 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
9435 (make_install_device): Use "(pxe)" as fallback prefix when booting
9436 via PXE.
9437
9438 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
9439
9440 * configure.ac: Reset LIBS after check for libgcc symbols.
9441
9442 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
9443
9444 * util/hostdisk.c (open_device): Add trailing newline to debug
9445 message.
9446
9447 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
9448
9449 * configure.ac: Check for `limits.h'.
9450 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
9451
9452 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
9453
9454 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
9455 capitalize error strings.
9456
9457 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
9458
9459 * util/grub.d/10_hurd.in: Add a recovery mode.
9460
9461 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
9462
9463 * configure.ac: Check for libgcc symbols with -nostdlib.
9464
9465 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
9466
9467 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
9468
9469 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9470
9471 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
9472 stack since heap may be unavailable at that point.
9473 (grub_ofconsole_gotoxy): Likewise.
9474
9475 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9476
9477 * configure.ac: Check for _restgpr_14_x.
9478 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
9479 and _savegpr_* prototypes.
9480
9481 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
9482
9483 Use generic grub_reboot() for i386-efi.
9484
9485 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
9486 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
9487 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
9488
9489 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9490
9491 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
9492 presence of "prefix" variable as it breaks when normal.mod is
9493 embedded.
9494
9495 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
9496
9497 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
9498 stack since heap is unavailable at that point.
9499
9500 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
9501
9502 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
9503 (grub_freebsd_bootinfo): Rewritten.
9504 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
9505
9506 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
9507
9508 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
9509
9510 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
9511
9512 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
9513 domain now.
9514
9515 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
9516
9517 * util/misc.c (make_system_path_relative_to_its_root): Change the work
9518 around for handling "/" to the correct fix. Fix a memory leak. Use
9519 xstrdup instead of strdup.
9520
9521 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9522
9523 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
9524
9525 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9526
9527 Optimise glyph lookup by Basic Multilingual Plane lookup array.
9528
9529 * font/font.c (struct grub_font): New member 'bmp_idx'.
9530 (font_init): Initialise 'bmp_idx'.
9531 (load_font_index): Fill 'bmp_idx'.
9532 (find_glyph): Make inline. Use bmp_idx for BMP characters.
9533
9534 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9535
9536 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
9537 unnecessary calls.
9538
9539 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9540
9541 Move context handling out of the kernel.
9542
9543 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
9544 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
9545 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
9546 * conf/i386-efi.rmk: Likewise.
9547 * conf/i386-ieee1275.rmk: Likewise.
9548 * conf/i386-pc.rmk: Likewise.
9549 * conf/powerpc-ieee1275.rmk: Likewise.
9550 * conf/sparc64-ieee1275.rmk: Likewise.
9551 * conf/x86_64-efi.rmk: Likewise.
9552 * include/grub/env.h: Include grub/menu.h.
9553 (grub_env_var_type): Removed.
9554 (grub_env_var): Replaced field 'type' with 'global'.
9555 (grub_env_find): New prototype.
9556 (grub_env_context_open): Remove EXPORT_FUNC.
9557 (grub_env_context_close): Likewise.
9558 (grub_env_export): Likewise.
9559 (grub_env_set_data_slot): Removed.
9560 (grub_env_get_data_slot): Likewise.
9561 (grub_env_unset_data_slot): Likewise.
9562 (grub_env_unset_menu): New prototype.
9563 (grub_env_set_menu): Likewise.
9564 (grub_env_get_menu): Likewise.
9565 * include/grub/env_private.h: New file.
9566 * include/grub/normal.h (grub_context_init): New prototype.
9567 (grub_context_fini): Likewise.
9568 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
9569 * normal/context.c (grub_cmd_export): ... to here.
9570 * kern/env.c: Include env_private.h.
9571 (HASHSZ): Moved to include/grub/env_private.h.
9572 (grub_env_context): Likewise.
9573 (grub_env_sorted_var): Likewise.
9574 (current_context): Renamed from this ...
9575 (grub_current_context): ...to this. 'static' removed. All users updated.
9576 (grub_env_find): Removed 'static'.
9577 (grub_env_context_open): Moved to normal/context.c.
9578 (grub_env_context_close): Likewise.
9579 (grub_env_export): Likewise.
9580 (mangle_data_slot_name): Removed.
9581 (grub_env_set_data_slot): Likewise.
9582 (grub_env_get_data_slot): Likewise.
9583 (grub_env_unset_data_slot): Likewise.
9584 * kern/main.c (grub_set_root_dev): Don't export root.
9585 It will be done later.
9586 (grub_main): Don't export prefix.
9587 It will be done later.
9588 * normal/context.c: New file.
9589 * normal/main.c (free_menu): Use grub_env_unset_menu.
9590 (grub_normal_add_menu_entry): Use grub_env_get_menu.
9591 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
9592 (GRUB_MOD_INIT(normal)): Call grub_context_init.
9593 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
9594
9595 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9596
9597 setpci support.
9598
9599 * commands/setpci.c: New file.
9600 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
9601 (setpci_mod_SOURCES): New variable.
9602 (setpci_mod_CFLAGS): Likewise.
9603 (setpci_mod_LDFLAGS): Likewise.
9604
9605 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9606
9607 Byte-addressable PCI configuration space.
9608
9609 * bus/pci.c (grub_pci_make_address): Use byte address instead of
9610 dword address.
9611 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
9612 GRUB_PCI_REG_CACHELINE.
9613 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
9614 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
9615 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
9616 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
9617 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
9618 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
9619 grub_pci_make_address.
9620 (lock_rom_area): Likewise.
9621 * commands/lspci.c (grub_lspci_iter): Use macroses
9622 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
9623 of grub_pci_make_address.
9624 * disk/ata.c (grub_ata_pciinit): Likewise.
9625 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
9626 (GRUB_PCI_REG_VENDOR): Likewise.
9627 (GRUB_PCI_REG_DEVICE): Likewise.
9628 (GRUB_PCI_REG_COMMAND): Likewise.
9629 (GRUB_PCI_REG_STATUS): Likewise.
9630 (GRUB_PCI_REG_REVISION): Likewise.
9631 (GRUB_PCI_REG_CLASS): Likewise.
9632 (GRUB_PCI_REG_CACHELINE): Likewise.
9633 (GRUB_PCI_REG_LAT_TIMER): Likewise.
9634 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
9635 (GRUB_PCI_REG_BIST): Likewise.
9636 (GRUB_PCI_REG_ADDRESSES): Likewise.
9637 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9638 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9639 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9640 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9641 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9642 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9643 (GRUB_PCI_REG_CIS_POINTER): Likewise.
9644 (GRUB_PCI_REG_SUBVENDOR): Likewise.
9645 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
9646 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
9647 (GRUB_PCI_REG_CAP_POINTER): Likewise.
9648 (GRUB_PCI_REG_IRQ_LINE): Likewise.
9649 (GRUB_PCI_REG_IRQ_PIN): Likewise.
9650 (GRUB_PCI_REG_MIN_GNT): Likewise.
9651 (GRUB_PCI_REG_MAX_LAT): Likewise.
9652 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
9653 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
9654 * video/efi_uga.c (find_framebuf): Likewise.
9655 * video/sm712.c (grub_video_sm712_setup): Likewise.
9656 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
9657 space.
9658
9659 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9660
9661 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
9662 can be reliably determined to be supported.
9663
9664 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9665
9666 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
9667 that VESA is supported.
9668 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
9669 supported.
9670
9671 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9672
9673 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
9674
9675 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9676
9677 * util/misc.c (make_system_path_relative_to_its_root): Work around
9678 special-casing of "/", as previous incarnation of this routine did.
9679
9680 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9681
9682 Fix any-emu compilation.
9683
9684 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
9685 * grub_bin2h_SOURCES: New variable.
9686
9687 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9688
9689 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
9690
9691 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9692
9693 * util/grub.d/00_header.in: Fix handling of locale_dir.
9694
9695 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9696
9697 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
9698 as possible unifont location (Gentoo).
9699 Reported by: Alexander Brüning
9700
9701 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9702
9703 Don't try to generate lists for kernel.img.
9704
9705 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
9706 (pkglib_MODULES): Remove kernel.img.
9707 (kernel_img_EXPORTS): Removed.
9708 (kernel_img_RELOCATABLE): New variable.
9709 * conf/x86_64-efi.rmk: Likewise.
9710 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
9711
9712 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9713
9714 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
9715 grub_xasprintf or grub_snprintf.
9716 (grub_vsprintf): Likewise.
9717 (grub_snprintf): New proto.
9718 (grub_vsnprintf): Likewise.
9719 (grub_xasprintf): Likewise.
9720 (grub_xvasprintf): Likewise.
9721 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
9722 (grub_sprintf): Removed.
9723 (grub_vsnprintf): New function.
9724 (grub_snprintf): Likewise.
9725 (grub_xvasprintf): Likewise.
9726 (grub_xasprintf): Likewise.
9727 (grub_vsprintf): Renamed to ...
9728 (grub_vsnprintf_real): ...this. New argument max_len.
9729
9730 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
9731
9732 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
9733 fix grub-script-check warning.
9734
9735 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9736
9737 * include/grub/font.h (grub_font_load): Fix prototype.
9738
9739 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9740
9741 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
9742
9743 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9744
9745 * include/grub/x86_64/at_keyboard.h: New file.
9746
9747 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9748
9749 * loader/mips/linux.c: Include missing grub/i18n.h.
9750
9751 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
9752
9753 * normal/menu.c (notify_execution_failure): Clarify error message.
9754
9755 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
9756
9757 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
9758 return value (and revert all return statements). Update users.
9759
9760 2010-01-20 Dan Merillat <debian@dan.merillat.org>
9761
9762 * kern/device.c (grub_device_iterate): Allocate new part_ent
9763 structure based on sizeof (*p) rather than sizeof (p->next), to
9764 account for structure padding.
9765
9766 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
9767 disk is NULL, which might happen for LVM physical volumes with no
9768 LVM signature.
9769
9770 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
9771
9772 * loader/mips/linux.c (grub_cmd_initrd)
9773 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
9774
9775 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
9776
9777 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
9778 (grub_video_video_init, grub_video_bitmap_init)
9779 (grub_font_manager_init, grub_term_gfxterm_init)
9780 (grub_at_keyboard_init): New extern declarations.
9781 (grub_machine_init): Initialize gfxterm and at_keyboard.
9782
9783 * kern/main.c (grub_main): Revert grub_printf delay kludge.
9784
9785 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
9786 `gfxterm.mod' into core image.
9787
9788 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
9789 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9790 (kernel_img_FORMAT): Copy to ...
9791
9792 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
9793 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9794 (kernel_img_FORMAT): ... here, and ...
9795
9796 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
9797 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9798 (kernel_img_FORMAT): ... here.
9799
9800 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
9801 and input (at_keyboard) terminals in kernel.
9802 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
9803
9804 (pkglib_MODULES): Remove `pci.mod'.
9805 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
9806 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
9807 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
9808 (at_keyboard_mod_LDFLAGS): Remove variables.
9809
9810 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
9811
9812 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
9813
9814 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
9815
9816 * include/grub/mips/libgcc.h: Only export symbols for functions
9817 that libgcc provides.
9818
9819 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
9820
9821 MIPS support.
9822
9823 * bus/bonito.c: New file.
9824 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
9825 GRUB_PCI_NUM_DEVICES.
9826 * term/i386/pc/serial.c: Move to ...
9827 * term/serial.c: ... here. All users updated.
9828 * util/i386/pc/grub-mkimage.c: Move to ...
9829 * util/grub-mkrawimage.c: ... here. All users updated.
9830 * term/i386/pc/at_keyboard.c: Move to ...
9831 * term/at_keyboard.c: ... here. All users updated.
9832 * conf/mips-qemu-mips.rmk: New file.
9833 * conf/mips-yeeloong.rmk: Likewise.
9834 * conf/mips.rmk: Likewise.
9835 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
9836 mipsel-qemu-mips.
9837 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
9838 to port addresses.
9839 (grub_ata_pciinit): Support CS5536.
9840 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
9841 * font/font_cmd.c (loadfont_command): Open file before passing it to
9842 grub_font_load.
9843 (pseudo_file_read): New function.
9844 (pseudo_file_close): Likewise.
9845 (pseudo_fs): New structure.
9846 (load_font_module): New function.
9847 (GRUB_MOD_INIT(font_manager)): Load embedded font.
9848 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
9849 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
9850 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
9851 * include/grub/i386/at_keyboard.h: Split into ...
9852 * include/grub/at_keyboard.h: ... this ...
9853 * include/grub/i386/at_keyboard.h: ... and this.
9854 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
9855 New prototype.
9856 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
9857 updated.
9858 (grub_elf64_size): Likewise.
9859 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
9860 filename.
9861 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
9862 * include/grub/i386/coreboot/serial.h: Rewritten.
9863 * include/grub/i386/ieee1275/serial.h: Include
9864 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
9865 * include/grub/i386/pc/serial.h: Moved from here ...
9866 * include/grub/serial.h: ... to here. All users updated.
9867 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
9868 (GRUB_PCI_NUM_BUS): Likewise.
9869 (GRUB_PCI_NUM_DEVICES): Likewise.
9870 (grub_pci_device_map_range): Add missing volatile keyword.
9871 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
9872 * include/grub/mips/at_keyboard.h: New file.
9873 * include/grub/mips/cache.h: Likewise.
9874 * include/grub/mips/io.h: Likewise.
9875 * include/grub/mips/kernel.h: Likewise.
9876 * include/grub/mips/libgcc.h: Likewise.
9877 * include/grub/mips/pci.h: Likewise.
9878 * include/grub/mips/qemu-mips/boot.h: Likewise.
9879 * include/grub/mips/qemu-mips/kernel.h: Likewise.
9880 * include/grub/mips/qemu-mips/loader.h: Likewise.
9881 * include/grub/mips/qemu-mips/memory.h: Likewise.
9882 * include/grub/mips/qemu-mips/serial.h: Likewise.
9883 * include/grub/mips/qemu-mips/time.h: Likewise.
9884 * include/grub/mips/relocator.h: Likewise.
9885 * include/grub/mips/time.h: Likewise.
9886 * include/grub/mips/types.h: Likewise.
9887 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
9888 * include/grub/mips/yeeloong/boot.h: Likewise.
9889 * include/grub/mips/yeeloong/kernel.h: Likewise.
9890 * include/grub/mips/yeeloong/loader.h: Likewise.
9891 * include/grub/mips/yeeloong/memory.h: Likewise.
9892 * include/grub/mips/yeeloong/pci.h: Likewise.
9893 * include/grub/mips/yeeloong/serial.h: Likewise.
9894 * include/grub/mips/yeeloong/time.h: Likewise.
9895 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
9896 * kern/elf.c (grub_elf32_size): New parameter. All users
9897 updated.
9898 (grub_elf64_size): Likewise.
9899 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
9900 Load modules before saying "Welcome to GRUB!".
9901 Call grub_refresh after saying "Welcome to GRUB!".
9902 * kern/mips/cache.S: New file.
9903 * kern/mips/cache_flush.S: Likewise.
9904 * kern/mips/dl.c: Likewise.
9905 * kern/mips/init.c: Likewise.
9906 * kern/mips/qemu-mips/init.c: Likewise.
9907 * kern/mips/startup.S: Likewise.
9908 * kern/mips/yeeloong/init.c: Likewise.
9909 * kern/term.c (grub_putcode): Handle NULL terminal.
9910 (grub_getcharwidth): Likewise.
9911 (grub_getkey): Likewise.
9912 (grub_checkkey): Likewise.
9913 (grub_getkeystatus): Likewise.
9914 (grub_getxy): Likewise.
9915 (grub_getwh): Likewise.
9916 (grub_gotoxy): Likewise.
9917 (grub_cls): Likewise.
9918 (grub_setcolorstate): Likewise.
9919 (grub_setcolor): Likewise.
9920 (grub_getcolor): Likewise.
9921 (grub_refresh): Likewise.
9922 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
9923 (write_jump): Add hatch nop.
9924 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
9925 * lib/mips/setjmp.S: New file.
9926 * loader/mips/linux.c: Likewise.
9927 * term/i386/pc/at_keyboard.c: Move from here ...
9928 * term/at_keyboard.c: ... to here.
9929 * term/i386/pc/serial.c: Moved from here ...
9930 * term/serial.c: ... to here. All users updated.
9931 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
9932 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
9933 (serial_translate_key_sequence): Avoid deadlock.
9934 (grub_serial_getkey): Handle backspace.
9935 (grub_serial_putchar): Fix newline handling.
9936 * util/i386/pc/grub-mkimage.c: Move from here ...
9937 * util/grub-mkrawimage.c: ... to here. All users updated.
9938 (generate_image): New parameters 'font_path' and 'format'.
9939 Support embedding font.
9940 Use grub_host_to_target* instead of grub_cpu_to_le*.
9941 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
9942 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
9943 (options): New option "--font".
9944 (usage): Likewise.
9945 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
9946 (main): Handle "--font".
9947 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
9948 (grub_virtual_screen_setup): Set bg_color_display.
9949 (redraw_screen_rect): Use bg_color_display instead of incorrect
9950 bg_color.
9951 (grub_gfxterm_cls): Likewise.
9952 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
9953 Support embedding config file.
9954 (add_segments): Likewise.
9955 (options): New option "--config".
9956 (main): Handle "--config".
9957 * video/sm712.c: New file.
9958
9959 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
9960
9961 Fix parallel builds.
9962
9963 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
9964 font.c depend on ascii.h).
9965
9966 2010-01-12 Carles Pina i Estany <carles@pina.cat>
9967
9968 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
9969
9970 2010-01-11 Carles Pina i Estany <carles@pina.cat>
9971
9972 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
9973 By default: disabled.
9974 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
9975 parameter.
9976
9977 2010-01-10 Carles Pina i Estany <carles@pina.cat>
9978
9979 * font/font.c: Update copyright years.
9980 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
9981
9982 2010-01-10 Carles Pina i Estany <carles@pina.cat>
9983
9984 * font/font.c: Include `ascii.h'.
9985 (ASCII_BITMAP_SIZE): New macro.
9986 (ascii_font_glyph): Define.
9987 (ascii_glyph_lookup): New function.
9988 (grub_font_get_string_width): Change comment. If glyph not found, use
9989 ascii_glyph_lookup.
9990 (grub_font_get_glyph_with_fallback): If glyph not available returns
9991 ascii_glyph_lookup.
9992 * util/grub-mkfont.c (file_formats): New enum.
9993 (options): Add `ascii-bitmaps' new option.
9994 (usage): Add `asii-bitmaps' new option.
9995 (write_font_ascii_bitmap): New function.
9996 (write_font): Rename to ...
9997 (write_font_p2): ... this. Remove print_glyphs call.
9998 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
9999 used. Call print_glyphs.
10000 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
10001
10002 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
10003
10004 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
10005 (grub_bin2h_SOURCES): New variable.
10006 * util/bin2h.c: New file.
10007
10008 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10009
10010 * include/multiboot.h: Resynced with spec.
10011 * include/multiboot2.h: Likewise.
10012 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
10013 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
10014
10015 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10016
10017 * include/grub/term.h (grub_term_register_input,
10018 grub_term_register_output): Check return of terminal init()
10019 routines, and abort if errors are raised.
10020
10021 * commands/terminal.c: Update copyright year.
10022
10023 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10024
10025 * commands/terminal.c (grub_cmd_terminal_input)
10026 (grub_cmd_terminal_output): Check return of terminal init()
10027 routines, and abort if errors are raised.
10028
10029 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10030
10031 * include/grub/i386/bsd.h: Fix include pathes.
10032
10033 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10034
10035 Add missing *BSD copyright headers.
10036
10037 * include/grub/aout.h: Add BSD licence.
10038 * include/grub/i386/bsd.h: Parts under different licences moved to ...
10039 * include/grub/i386/freebsd_linker.h: ... here,
10040 * include/grub/i386/freebsd_reboot.h: ... here,
10041 * include/grub/i386/netbsd_bootinfo.h: ... here,
10042 * include/grub/i386/netbsd_reboot.h: ... here,
10043 * include/grub/i386/openbsd_bootarg.h: ... here,
10044 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
10045 licence to each file.
10046
10047 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10048
10049 * acinclude.m4: Remove `nop' assembly instruction; it's not
10050 implemented by all architectures.
10051
10052 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10053
10054 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
10055 ELILO. This is no longer necessary.
10056
10057 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
10058
10059 Added new tool, grub-scrit-check to verify grub.cfg syntax.
10060
10061 * util/grub-script-check.c: grub-script-check tool.
10062 * conf/common.rmk: Make rules for grub-script-check.
10063
10064 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10065
10066 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
10067 spotting it back in 2008. Shame on me for forgetting he did.
10068
10069 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
10070
10071 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10072
10073 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
10074 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
10075 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
10076 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
10077 (GRUB_VIDEO_TYPE_EFI): Rename to ...
10078 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
10079
10080 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
10081
10082 * include/grub/test.h: Add license header.
10083 * tests/example_functional_test.c: Likewise.
10084 * tests/example_unit_test.c: Likewise.
10085 * tests/lib/functional_test.c: Likewise.
10086 * tests/lib/test.c: Likewise.
10087 * tests/lib/unit_test.c: Likewise.
10088
10089 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
10090
10091 Use flag-based instead of hook-based video mode selection and "auto"
10092 keyword.
10093
10094 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
10095 (grub_video_set_mode): Changed prototype. All users updated.
10096 (grub_video_check_mode_flag): New inline function.
10097 * video/video.c (parse_modespec): New function.
10098 (grub_video_set_mode): Parse flags and keywords.
10099
10100 2010-01-17 Carles Pina i Estany <carles@pina.cat>
10101
10102 * util/misc.c (grub_util_info): Fix the order of the parameters in a
10103 fprintf call.
10104
10105 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
10106
10107 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
10108
10109 2010-01-16 Carles Pina i Estany <carles@pina.cat>
10110
10111 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
10112 string.
10113 * util/grub-emu.c (usage): Likewise.
10114 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
10115 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10116 * util/i386/pc/grub-mkimage.c (usage): Likewise.
10117 * util/i386/pc/grub-setup.c (usage): Likewise.
10118
10119 2010-01-16 Carles Pina i Estany <carles@pina.cat>
10120
10121 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
10122 the message.
10123 (grub_util_info): Likewise.
10124 (grub_util_error): Likewise.
10125 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
10126 and/or new lines in `grub_util_warna', `grub_util_info',
10127 `grub_util_error' calls.
10128 * util/getroot.c: Likewise.
10129 * util/grub-editenv.c: Likewise.
10130 * util/grub-emu.c: Likewise.
10131 * util/grub-fstest.c: Likewise.
10132 * util/grub-mkdevicemap.c: Likewise.
10133 * util/grub-mkfont.c: Likewise.
10134 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10135 * util/grub-mkrelpath.c: Likewise.
10136 * util/grub-pe2elf.c: Likewise.
10137 * util/grub-probe.c: Likewise.
10138 * util/hostdisk.c: Likewise.
10139 * util/i386/efi/grub-mkimage.c: Likewise.
10140 * util/i386/pc/grub-mkimage.c: Likewise.
10141 * util/i386/pc/grub-setup.c: Likewise.
10142 * util/ieee1275/ofpath.c: Likewise.
10143 * util/mkisofs/eltorito.c: Likewise.
10144 * util/mkisofs/rock.c: Likewise.
10145 * util/mkisofs/write.c: Likewise.
10146 * util/raid.c: Likewise.
10147 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
10148 * util/sparc64/ieee1275/grub-setup.c: Likewise.
10149
10150 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
10151
10152 Enable multiboot on non-pc.
10153
10154 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
10155 multiboot.mod and multiboot2.mod to ...
10156 * conf/i386.rmk (pkglib_MODULES): ... here.
10157 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
10158 Moved to ...
10159 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
10160 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
10161 Moved to ...
10162 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
10163 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
10164 Moved to ...
10165 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
10166 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
10167 Moved to ...
10168 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
10169 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
10170 relocator.mod.
10171 (ata_mod_SOURCES): Removed.
10172 (ata_mod_CFLAGS): Likewise.
10173 (ata_mod_LDFLAGS): Likewise.
10174 (relocator_mod_SOURCES): Removed.
10175 (relocator_mod_CFLAGS): Likewise.
10176 (relocator_mod_ASFLAGS): Likewise.
10177 (relocator_mod_LDFLAGS): Likewise.
10178 Include i386.mk.
10179 * include/grub/x86_64/multiboot.h: New file.
10180 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
10181 Terminate EFI.
10182
10183 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
10184
10185 Video multiboot support.
10186
10187 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
10188 New prototype.
10189 * include/multiboot.h: Resynced with multiboot specification.
10190 * include/multiboot2.h: Likewise.
10191 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
10192 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
10193 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
10194 (HAS_VGA_TEXT): Likewise.
10195 (accepts_video): New variable.
10196 (grub_multiboot_set_accepts_video): New function.
10197 (grub_multiboot_get_mbi_size): Account for video structures.
10198 (set_video_mode): New function.
10199 (retrieve_video_parameters): Likewise.
10200 (grub_multiboot_make_mbi): Fill video fields.
10201
10202 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
10203
10204 Video driver ids.
10205
10206 * include/grub/video.h (grub_video_driver_id): New type.
10207 (grub_video_adapter): New member 'id'. All users updated.
10208 (grub_video_get_driver_id): New proto.
10209 * video/video.c (grub_video_get_driver_id): New function.
10210
10211 2010-01-14 Carles Pina i Estany <carles@pina.cat>
10212
10213 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
10214 `var=val'.
10215
10216 2010-01-14 Carles Pina i Estany <carles@pina.cat>
10217
10218 * normal/cmdline.c (print_completion): Gettextizze.
10219
10220 2001-01-14 Carles Pina i Estany <carles@pina.cat>
10221
10222 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
10223
10224 2010-01-14 Carles Pina i Estany <carles@pina.cat>
10225
10226 * gettext/gettext.c (grub_gettext_translate): Push and pop
10227 grub_errno.
10228 (grub_gettext_delete_list): Change comment style.
10229 * kern/err.c (grub_error): Gettextizze.
10230 (grub_fatal): Gettextizze.
10231
10232 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
10233
10234 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
10235 (grub_linux16_real_boot): ... this.
10236 * kern/i386/loader.S: Likewise.
10237 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
10238 (grub_linux16_boot): New function. Switches to text mode and calls
10239 grub_linux16_real_boot().
10240
10241 * loader/i386/bsd.c: Include `<grub/video.h>'.
10242 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
10243 text mode before calling grub_unix_real_boot().
10244
10245 * loader/i386/multiboot.c: Include `<grub/video.h>'.
10246 (grub_multiboot_boot): Switch to text mode before calling
10247 grub_relocator32_boot().
10248
10249 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
10250 (grub_chainloader_boot): Switch to text mode before calling
10251 grub_chainloader_real_boot().
10252
10253 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
10254 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
10255
10256 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
10257 non-empty value.
10258
10259 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
10260 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
10261
10262 * util/grub.d/00_header.in: Define a "savedefault" function for use
10263 in menu entries.
10264 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
10265
10266 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
10267 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
10268
10269 * util/grub-mkconfig_lib.in (save_default_entry): Only set
10270 saved_entry if boot_once is unset.
10271 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
10272 previous saved entry (i.e. grub-reboot).
10273
10274 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
10275
10276 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
10277
10278 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
10279
10280 * util/grub.d/00_header.in: Use `set var=val' rather than plain
10281 `var=val'.
10282 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
10283
10284 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
10285
10286 * util/grub-reboot.in: Fix --version output.
10287 * util/grub-set-default.in: Likewise.
10288
10289 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
10290
10291 * util/grub.d/00_header.in: Silently ignore zero-sized environment
10292 blocks.
10293
10294 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
10295
10296 * util/grub.d/00_header.in: Quote the value assigned to `default',
10297 in case it contains spaces.
10298
10299 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
10300
10301 * util/grub.d/30_os-prober.in: Fix merge error that moved a
10302 `save_default_entry' call from the macosx case to the linux case.
10303
10304 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10305 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
10306
10307 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
10308 in `chosen' environment variable.
10309 * normal/menu_text.c (get_entry_number): Check if the variable
10310 matches the title of a menu entry.
10311 (run_menu): Pass menu to get_entry_number.
10312
10313 * util/grub-reboot.in: New file.
10314 * util/grub-set-default.in: New file.
10315 * conf/common.rmk (grub-reboot): New utility.
10316 (grub-set-default): New utility.
10317
10318 * util/grub-mkconfig_lib.in (save_default_entry): New function.
10319 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
10320 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
10321 move it to `saved_entry' for the next boot. Load environment on
10322 initialisation.
10323 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
10324 * util/grub.d/10_hurd.in: Likewise.
10325 * util/grub.d/10_linux.in (linux_entry): Likewise.
10326 * util/grub.d/10_windows.in: Likewise.
10327 * util/grub.d/30_os-prober.in: Likewise.
10328
10329 * util/grub-install.in: Create environment block.
10330 * util/i386/efi/grub-install.in: Likewise.
10331 * util/ieee1275/grub-install.in: Likewise.
10332 * util/sparc64/ieee1275/grub-install.in: Likewise.
10333
10334 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
10335
10336 Unit testing framework for GRUB.
10337
10338 * Makefile.in: Test framework build rules for 'make check'.
10339 * conf/tests.rmk: Build rules for individual tests and framework.
10340
10341 * include/grub/test.h: Header file for whitebox tests.
10342 * tests/lib/functional_test.c: Framework support for whitebox
10343 functional tests.
10344 * tests/lib/test.c: Common whitebox testing code for unit and
10345 functional tests.
10346 * tests/lib/unit_test.c: Framework support for whitebox unit
10347 tests.
10348
10349 * tests/util/grub-shell-tester.in: Support utility for grub-script
10350 tests.
10351 * tests/util/grub-shell.in: Utility to execute grub-script
10352 commands in a Qemu instance.
10353
10354 * tests/example_functional_test.c: Example whitebox functional
10355 test.
10356 * tests/example_grub_script_test.in: Example grub-script test.
10357 * tests/example_scripted_test.in: Example scripted test.
10358 * tests/example_unit_test.c: Example whitebox unit test.
10359
10360 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10361
10362 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
10363 Add loader/i386/multiboot_mbi.c.
10364 (multiboot2_mod_SOURCES): Likewise.
10365 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
10366 (multiboot2_mod_SOURCES): Likewise.
10367 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
10368 (grub_multiboot_make_mbi): Likewise.
10369 (grub_multiboot_free_mbi): Likewise.
10370 (grub_multiboot_init_mbi): Likewise.
10371 (grub_multiboot_add_module): Likewise.
10372 (grub_multiboot_set_bootdev): Likewise.
10373 * loader/i386/multiboot.c (mbi): Removed.
10374 (mbi_dest): Likewise.
10375 (alloc_mbi): New variable.
10376 (grub_multiboot_payload_size): Removed. All users updated.
10377 (grub_multiboot_pure_size): New variable.
10378 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
10379 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
10380 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
10381 (grub_fill_multiboot_mmap): Likewise.
10382 (grub_multiboot_get_bootdev): Likewise.
10383 (grub_multiboot): Use multiboot_mbi functions.
10384 * loader/i386/multiboot_mbi.c: New file.
10385
10386 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
10387
10388 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
10389 it would result in module crash.
10390
10391 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
10392
10393 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
10394 (grub_ofconsole_getwh): Split to ...
10395 (grub_ofconsole_getwh): ... this.
10396 (grub_ofconsole_dimensions): ...and this.
10397 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
10398
10399 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
10400
10401 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
10402
10403 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
10404
10405 * loader/i386/pc/multiboot2.c: Removed stalled file.
10406
10407 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
10408
10409 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
10410 Reported by: Grégoire Sutre
10411
10412 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
10413
10414 * util/misc.c (canonicalize_file_name): New function.
10415 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
10416 instead of realpath().
10417
10418 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
10419
10420 * util/grub-install.in (usage): Clarify meaning of --root-directory,
10421 and make it clearer that it's optional. Based on confusion
10422 witnessed on IRC.
10423
10424 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10425
10426 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
10427 in premature implicit newline.
10428
10429 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10430
10431 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
10432 which resulted in garbled command line at the end of screen.
10433
10434 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
10435
10436 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
10437 initialization with similar approach as with other Linux loaders.
10438
10439 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
10440
10441 Fix i386-ieee1275 build.
10442
10443 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
10444 and grub_term_height() for video_{width,height} initialization.
10445
10446 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
10447
10448 Fix grub-emu build.
10449
10450 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
10451
10452 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
10453 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
10454
10455 Support for multiple terminals.
10456
10457 * Makefile.in (pkglib_DATA): terminal.lst.
10458 (terminal.lst): New target.
10459 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
10460 (GRUB_MOD_INIT(handler)): Likewise.
10461 (GRUB_MOD_FINI(handler)): Likewise.
10462 * commands/help.c (grub_cmd_help): Handle multiple terminals.
10463 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
10464 * commands/sleep.c (do_print): Use grub_term_restore_pos.
10465 (grub_cmd_sleep): Use grub_term_save_pos.
10466 * commands/terminal.c: New file.
10467 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
10468 commands/terminal.c and lib/charset.c.
10469 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
10470 (pkglib_MODULES): Add terminal.mod.
10471 (terminal_mod_SOURCES): New variable.
10472 (terminal_mod_CFLAGS): Likewise.
10473 (terminal_mod_LDFLAGS): Likewise.
10474 * genhandlerlist.sh: Don't handle terminals.
10475 * genmk.rb: Generate terminal-*.lst.
10476 * genterminallist.sh: New file.
10477 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
10478 (grub_is_valid_utf8): Likewise.
10479 (grub_utf8_to_ucs4_alloc): Likewise.
10480 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
10481 (grub_menu_register_viewer): Changed argument.
10482 (grub_menu_try_text): New proto.
10483 (grub_gfxmenu_try_hook): New declaration.
10484 * include/grub/normal.h (grub_normal_exit_level): New declaration.
10485 (grub_menu_init_page): Additional argument term.
10486 (grub_normal_init_page): Likewise.
10487 (grub_cmdline_get): Arguments simplified.
10488 (grub_utf8_to_ucs4_alloc): Removed.
10489 (grub_print_ucs4): Additional argument term.
10490 (grub_getstringwidth): Likewise.
10491 (grub_print_message_indented): Likewise.
10492 (grub_menu_text_register_instances): New proto.
10493 (grub_show_menu): Likewise.
10494 (read_terminal_list): Likewise.
10495 (grub_set_more): Likewise.
10496 * include/grub/parser.h: Include handler.h.
10497 * include/grub/reader.h: Rewritten.
10498 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
10499 (GRUB_TERM_WIDTH): Changed to function.
10500 (GRUB_TERM_HEIGHT): Likewise.
10501 (GRUB_TERM_BORDER_WIDTH): Likewise.
10502 (GRUB_TERM_BORDER_HEIGHT): Likewise.
10503 (GRUB_TERM_NUM_ENTRIES): Likewise.
10504 (GRUB_TERM_ENTRY_WIDTH): Likewise.
10505 (GRUB_TERM_CURSOR_X): Likewise.
10506 (grub_term_input_class): Likewise.
10507 (grub_term_output_class): Likewise.
10508 (grub_term_outputs_disabled): New declaration.
10509 (grub_term_inputs_disabled): Likewise.
10510 (grub_term_outputs): Likewise.
10511 (grub_term_inputs): Likewise.
10512 (grub_term_register_input): Rewritten.
10513 (grub_term_register_output): Likewise.
10514 (grub_term_unregister_input): Likewise.
10515 (grub_term_unregister_output): Likewise.
10516 (FOR_ACTIVE_TERM_INPUTS): New macro.
10517 (FOR_DISABLED_TERM_INPUTS): Likewise.
10518 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
10519 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
10520 * include/grub/terminfo.h: Add oterm argument to all protypes.
10521 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
10522 Use grub_rescue_run.
10523 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
10524 All users updated.
10525 * kern/reader.c: Removed. All users updated.
10526 * kern/rescue_reader.c (grub_rescue_init): Removed.
10527 (grub_rescue_reader): Likewise.
10528 (grub_register_rescue_reader): Likewise.
10529 (grub_rescue_run): New function based on kern/reader.c.
10530 * kern/term.c: Adapted for multiterm.
10531 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
10532 (grub_is_valid_utf8): Likewise.
10533 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
10534 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
10535 right terminal.
10536 * loader/i386/linux.c (grub_linux_boot): Likewise.
10537 * normal/auth.c (grub_username_get): New function.
10538 (grub_auth_check_authentication): Use grub_username_get.
10539 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
10540 * normal/color.c: Adapt for multiterm.
10541 * normal/main.c (read_config_file): Don't use grub_reader_loop.
10542 (grub_normal_init_page): Additional argument term.
10543 (read_lists): Call read_terminal_lists.
10544 (grub_enter_normal_mode): Call grub_cmdline_run.
10545 Handle grub_normal_exit_level.
10546 (grub_cmd_normal): Make reentrant.
10547 (grub_cmd_normal_exit): New function.
10548 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
10549 * normal/menu.c: Adapt for multiterm.
10550 * normal/menu_entry.c: Likewise.
10551 * normal/menu_text.c: Likewise.
10552 * normal/menu_viewer.c: Removed. All users updated.
10553 * normal/term.c: New file.
10554 * util/console.c: Change order of includes to workaround a bug in
10555 ncurses headers.
10556 * term/terminfo.c: New argument oterm on all exported functions.
10557 All users updated.
10558 * util/grub-editenv.c (grub_term_input_class): Removed.
10559 (grub_term_output_class): Likewise.
10560
10561 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
10562
10563 Make loader output a bit more user-friendly.
10564
10565 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
10566 is being loaded. Likewise for the Hurd.
10567
10568 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
10569 that kernel of FreeBSD ${version} is being loaded.
10570
10571 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
10572 grub_dprintf().
10573 (grub_cmd_initrd): Likewise.
10574 * util/grub.d/10_linux.in (linux_entry): Print message indicating
10575 that Linux ${version} is being loaded. Likewise for initrd.
10576
10577 2010-01-09 Carles Pina i Estany <carles@pina.cat>
10578
10579 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
10580
10581 2010-01-08 Carles Pina i Estany <carles@pina.cat>
10582
10583 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
10584 (GRUB_MOD_INIT): Gettextizze.
10585 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
10586 (GRUB_MOD_INIT): Gettextizze.
10587 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
10588 (grub_cmd_linux): Capitalise Linux.
10589 (GRUB_MOD_INIT): Gettextizze.
10590 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
10591 (grub_cmd_linux): Capitalise Linux.
10592 (GRUB_MOD_INIT): Gettextizze.
10593 * loader/i386/linux.c: Include `<grub/i18n.h>'.
10594 (grub_cmd_linux): Capitalise Linux.
10595 (GRUB_MOD_INIT): Gettextizze.
10596 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
10597 (GRUB_MOD_INIT): Gettextizze.
10598 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
10599 (grub_cmd_linux): Capitalise Linux.
10600 (GRUB_MOD_INIT): Gettextizze.
10601 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
10602 (grub_cpu_xnu_init): Gettextizze.
10603 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
10604 (GRUB_MOD_INIT): Gettextizze.
10605 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
10606 (GRUB_MOD_INIT): Gettextizze.
10607 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
10608 (grub_linux_load64): Capitalise Linux.
10609 (GRUB_MOD_INIT): Gettextizze.
10610 * loader/xnu.c: Include `<grub/i18n.h>'.
10611 (GRUB_MOD_INIT): Gettextizze.
10612 * po/POTFILES: Add `loader/efi/appleloader.c',
10613 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
10614 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
10615 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
10616 `loader/i386/xnu.c', `loader/multiboot_loader.c',
10617 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
10618 and `loader/xnu.c'.
10619
10620 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
10621
10622 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
10623
10624 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
10625
10626 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
10627 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
10628 * util/mkisofs/mkisofs.c (main): Readjust --version output.
10629
10630 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
10631
10632 Reset Multiboot 2 support. New loader implements the draft in
10633 /branches/multiboot2 and shares as much code as possible with the
10634 production Multiboot 1 implementation.
10635
10636 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
10637 * loader/multiboot2.c: Likewise.
10638 * loader/i386/multiboot_helper.S: Likewise.
10639 * include/multiboot2.h: Replace with latest version from the draft
10640 in /branches/multiboot2.
10641
10642 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
10643 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
10644 and `loader/multiboot2.c'.
10645 (pkglib_MODULES): Add `multiboot2.mod'.
10646 (multiboot2_mod_SOURCES): New variable.
10647 (multiboot2_mod_LDFLAGS): Likewise.
10648 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
10649
10650 * conf/i386-pc.rmk: Likewise.
10651
10652 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
10653 (multiboot_mod_SOURCES): Remove variable.
10654 (multiboot_mod_LDFLAGS): Likewise.
10655 (multiboot_mod_CFLAGS): Likewise.
10656
10657 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
10658 `<multiboot2.h>' instead of `<multiboot.h>'.
10659 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
10660 (MULTIBOOT_HEADER_MAGIC): New macros.
10661
10662 * loader/multiboot_loader.c (module_version_status): Remove variable.
10663 (find_multi_boot2_header): Remove function.
10664 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
10665 logic. Always check for the Multiboot version we're compiling for.
10666 (grub_cmd_module_loader): Likewise.
10667 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
10668 command instead of `multiboot'.
10669
10670 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
10671
10672 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
10673 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
10674 all users.
10675
10676 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
10677 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
10678
10679 Fix breakage introduced with previous commit.
10680
10681 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
10682 commands.
10683 * normal/handler.c (read_handler_list): Revert part of previous commit
10684 affecting this file.
10685 * normal/main.c (read_lists): Move read_handler_list() call back to ...
10686 (grub_normal_execute): ... here.
10687
10688 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
10689
10690 Merge prefix-redefinition-fix branch.
10691
10692 * normal/autofs.c (read_fs_list): Make function capable of being
10693 run multiple times, gracefuly replacing the previous data
10694 structures.
10695 * normal/dyncmd.c (read_command_list): Likewise.
10696 * normal/handler.c (read_handler_list): Likewise.
10697 * normal/main.c (read_lists): New function. Calls all the
10698 list reading functions.
10699 (grub_normal_execute): Use read_lists() instead of calling all
10700 list reading functions explicitly. Register read_lists() as a
10701 variable hook attached to ${prefix}.
10702
10703 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
10704
10705 Merge crypto branch.
10706
10707 * Makefile.in (pkglib_DATA): Add crypto.lst.
10708 (crypto.lst): New target.
10709 * commands/hashsum.c: New file.
10710 * commands/password.c (check_password): Use grub_crypto_memcmp.
10711 * commands/password_pbkdf2.c: New file.
10712 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
10713 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
10714 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
10715 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
10716 -I$(srcdir)/lib/libgcrypt_wrap.
10717 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
10718 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
10719 password_pbkdf2.mod.
10720 (crypto_mod_SOURCES): New variable.
10721 (crypto_mod_CFLAGS): Likewise.
10722 (crypto_mod_LDFLAGS): Likewise.
10723 (hashsum_mod_SOURCES): New variable.
10724 (hashsum_mod_CFLAGS): Likewise.
10725 (hashsum_mod_LDFLAGS): Likewise.
10726 (pbkdf2_mod_SOURCES): New variable.
10727 (pbkdf2_mod_CFLAGS): Likewise.
10728 (pbkdf2_mod_LDFLAGS): Likewise.
10729 (password_pbkdf2_mod_SOURCES): New variable.
10730 (password_pbkdf2_mod_CFLAGS): Likewise.
10731 (password_pbkdf2_mod_LDFLAGS): Likewise.
10732 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
10733 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
10734 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
10735 Include conf/gcry.rmk.
10736 * include/grub/auth.h: Rewritten.
10737 * include/grub/crypto.h: New file.
10738 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
10739 * include/grub/normal.h (read_crypto_list): New prototype.
10740 * lib/crypto.c: New file.
10741 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
10742 * lib/pbkdf2.c: Likewise.
10743 * normal/auth.c (grub_auth_strcmp): Removed.
10744 (grub_iswordseparator): Likewise.
10745 (grub_auth_strword): Likewise.
10746 (is_authenticated): Use grub_strword.
10747 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
10748 and grub_strword. Pass entered password to authentication callback.
10749 * normal/crypto.c: New file.
10750 * normal/main.c: Call read_crypto_list.
10751 * util/grub-mkpasswd-pbkdf2.c: New file.
10752 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
10753
10754 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
10755
10756 Fix descent and ascent calculation.
10757
10758 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
10759 (options): New option "asce".
10760 (usage): Likewise.
10761 (add_char): Ignore invalid glyphs for descent calculation.
10762 Calculate ascent from actual content.
10763 (print_glyphs): Use 'asce'.
10764 (write_font): Likewise. Allow ascent override.
10765 (main): Handle "asce" option.
10766
10767 2010-01-06 Carles Pina i Estany <carles@pina.cat>
10768
10769 * kern/err.c: Include `<grub/i18n.h>'.
10770 (grub_print_error): Add full stop. Gettextizze.
10771 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
10772 (grub_bsd_load_elf): Capitalise ELF.
10773 (grub_cmd_freebsd_loadenv): Add `s' in error string.
10774 (grub_cmd_freebsd_module): Likewise.
10775 (grub_cmd_freebsd_module_elf): Likewise.
10776 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
10777
10778 2010-01-06 Carles Pina i Estany <carles@pina.cat>
10779
10780 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
10781 * commands/search_file.c (HELP_MESSAGE): New macro.
10782 * commands/search_label.c (HELP_MESSAGE): Likewise.
10783 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
10784 * po/POTFILES: Add `commands/search_file.c',
10785 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
10786 `commands/search.c'.
10787
10788 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
10789
10790 * config.rpath: Update from Gnulib.
10791
10792 2010-01-05 Yves Blusseau <blusseau@zetam.org>
10793
10794 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
10795
10796 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
10797
10798 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
10799
10800 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
10801
10802 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
10803 arguments to fread so that we get a return value in bytes, rather
10804 than something that will normally be rounded down to 0.
10805 Adjust error handling to avoid producing garbage when size_t is not
10806 the same size as long long.
10807
10808 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
10809
10810 * util/mkisofs/write.c (padblock_write): Check return value of
10811 fread.
10812
10813 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
10814
10815 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
10816 floppy images now.
10817
10818 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
10819
10820 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
10821
10822 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
10823 instead of manual alignment.
10824 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
10825 verbose). Avoid attempts to read past end of the device
10826 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
10827 but GRUB_DISK_CACHE_SIZE may exceed that).
10828
10829 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
10830
10831 * commands/crc.c (grub_cmd_crc): Abort on read errors.
10832 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
10833 it to upper layer.
10834
10835 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10836
10837 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
10838 New constant.
10839 (grub_efi_piwg_device_path): New structure
10840 (grub_efi_piwg_device_path_t): New type.
10841 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
10842 (devpath_1): Transform to a structure. All users updated.
10843 (devpath_2): Likewise.
10844 (devpath_3): Likewise.
10845 (devpath_4): Likewise.
10846 (devpath_5): Likewise.
10847
10848 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10849
10850 * loader/efi/appleloader.c: Restored. Update all users.
10851
10852 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
10853
10854 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
10855
10856 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
10857 (struct boot_blocklist): Move from here ...
10858 * include/grub/i386/pc/boot.h [ASM_FILE]
10859 (struct grub_boot_blocklist): ... to here. Update all users.
10860 (setup): Only initialize `start' member of `first_block'
10861 structure. Add assert() calls to verify the other members.
10862
10863 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
10864 (generate_image): Fix broken blocklist length initialization.
10865 Add assert() call to verify blocklist `segment' field.
10866
10867 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
10868
10869 * loader/efi/appleloader.c: Remove. Update all users.
10870
10871 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
10872
10873 * boot/i386/pc/boot.S: Update copyright year.
10874 * boot/i386/pc/cdboot.S: Likewise.
10875 * boot/i386/pc/diskboot.S: Likewise.
10876 * boot/i386/pc/lnxboot.S: Likewise.
10877 * boot/i386/pc/pxeboot.S: Likewise.
10878 * bus/pci.c: Likewise.
10879 * commands/cmp.c: Likewise.
10880 * commands/help.c: Likewise.
10881 * commands/hexdump.c: Likewise.
10882 * commands/i386/pc/halt.c: Likewise.
10883 * commands/i386/pc/play.c: Likewise.
10884 * commands/i386/pc/vbeinfo.c: Likewise.
10885 * commands/ls.c: Likewise.
10886 * commands/test.c: Likewise.
10887 * disk/dmraid_nvidia.c: Likewise.
10888 * disk/i386/pc/biosdisk.c: Likewise.
10889 * disk/ieee1275/nand.c: Likewise.
10890 * disk/ieee1275/ofdisk.c: Likewise.
10891 * disk/lvm.c: Likewise.
10892 * disk/raid.c: Likewise.
10893 * disk/raid6_recover.c: Likewise.
10894 * disk/scsi.c: Likewise.
10895 * fs/affs.c: Likewise.
10896 * fs/cpio.c: Likewise.
10897 * fs/ext2.c: Likewise.
10898 * fs/hfs.c: Likewise.
10899 * fs/iso9660.c: Likewise.
10900 * fs/ntfs.c: Likewise.
10901 * fs/sfs.c: Likewise.
10902 * fs/udf.c: Likewise.
10903 * fs/ufs.c: Likewise.
10904 * fs/xfs.c: Likewise.
10905 * gencmdlist.sh: Likewise.
10906 * genmk.rb: Likewise.
10907 * include/grub/disk.h: Likewise.
10908 * include/grub/efi/api.h: Likewise.
10909 * include/grub/efi/efi.h: Likewise.
10910 * include/grub/efi/pe32.h: Likewise.
10911 * include/grub/elf.h: Likewise.
10912 * include/grub/fs.h: Likewise.
10913 * include/grub/i386/at_keyboard.h: Likewise.
10914 * include/grub/i386/pc/memory.h: Likewise.
10915 * include/grub/i386/pc/vbe.h: Likewise.
10916 * include/grub/i386/pci.h: Likewise.
10917 * include/grub/i386/tsc.h: Likewise.
10918 * include/grub/ieee1275/ieee1275.h: Likewise.
10919 * include/grub/ntfs.h: Likewise.
10920 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
10921 * include/grub/sparc64/libgcc.h: Likewise.
10922 * include/grub/symbol.h: Likewise.
10923 * include/grub/types.h: Likewise.
10924 * include/multiboot2.h: Likewise.
10925 * io/gzio.c: Likewise.
10926 * kern/device.c: Likewise.
10927 * kern/disk.c: Likewise.
10928 * kern/efi/efi.c: Likewise.
10929 * kern/efi/mm.c: Likewise.
10930 * kern/elf.c: Likewise.
10931 * kern/file.c: Likewise.
10932 * kern/i386/dl.c: Likewise.
10933 * kern/i386/pc/init.c: Likewise.
10934 * kern/i386/pc/startup.S: Likewise.
10935 * kern/ieee1275/ieee1275.c: Likewise.
10936 * kern/ieee1275/init.c: Likewise.
10937 * kern/main.c: Likewise.
10938 * kern/mm.c: Likewise.
10939 * kern/powerpc/dl.c: Likewise.
10940 * kern/sparc64/dl.c: Likewise.
10941 * kern/x86_64/dl.c: Likewise.
10942 * lib/hexdump.c: Likewise.
10943 * loader/efi/appleloader.c: Likewise.
10944 * loader/i386/ieee1275/linux.c: Likewise.
10945 * loader/i386/pc/chainloader.c: Likewise.
10946 * loader/i386/pc/linux.c: Likewise.
10947 * loader/i386/pc/multiboot2.c: Likewise.
10948 * loader/ieee1275/multiboot2.c: Likewise.
10949 * loader/multiboot2.c: Likewise.
10950 * loader/multiboot_loader.c: Likewise.
10951 * loader/powerpc/ieee1275/linux.c: Likewise.
10952 * normal/completion.c: Likewise.
10953 * normal/menu_entry.c: Likewise.
10954 * partmap/apple.c: Likewise.
10955 * util/grub.d/10_hurd.in: Likewise.
10956 * util/hostfs.c: Likewise.
10957 * video/readers/png.c: Likewise.
10958
10959 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
10960
10961 * include/grub/misc.h (GNUC_PREREQ): New macro.
10962 (ATTRIBUTE_ERROR): New macro.
10963 * include/grub/list.h (grub_bad_type_cast_real): Use
10964 ATTRIBUTE_ERROR.
10965
10966 2010-01-03 Carles Pina i Estany <carles@pina.cat>
10967
10968 * normal/menu_text.c (print_message): Change messages.
10969
10970 2010-01-03 Carles Pina i Estany <carles@pina.cat>
10971
10972 * normal/menu_entry.c (store_completion): Gettextizze.
10973
10974 2010-01-03 Carles Pina i Estany <carles@pina.cat>
10975
10976 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
10977
10978 2010-01-03 Carles Pina i Estany <carles@pina.cat>
10979
10980 * po/POTFILES: Sort correctly.
10981
10982 2010-01-03 Carles Pina i Estany <carles@pina.cat>
10983
10984 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
10985 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
10986 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
10987 full stop.
10988 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
10989 summary. Gettextizze the strings.
10990 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
10991 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
10992 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
10993 full stop.
10994 (GRUB_MOD_INIT): Remove command name from summary.
10995 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
10996 summary.
10997 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
10998 * term/i386/pc/serial.c (options): Add full stops.
10999 (GRUB_MOD_INIT): Remove command name from the summary.
11000
11001 2010-01-03 Carles Pina i Estany <carles@pina.cat>
11002
11003 * commands/acpi.c: Gettextizze help strings and/or options. Include
11004 `grub/i18n.h' if needed.
11005 * commands/blocklist.c: Likewise.
11006 * commands/boot.c: Likewise.
11007 * commands/cat.c: Likewise.
11008 * commands/cmp.c: Likewise.
11009 * commands/configfile.c: Likewise.
11010 * commands/crc.c: Likewise.
11011 * commands/date.c: Likewise.
11012 * commands/echo.c: Likewise.
11013 * commands/efi/fixvideo.c: Likewise.
11014 * commands/efi/loadbios.c: Likewise.
11015 * commands/gptsync.c: Likewise.
11016 * commands/halt.c: Likewise.
11017 * commands/handler.c: Likewise.
11018 * commands/hdparm.c: Likewise.
11019 * commands/hexdump.c: Likewise.
11020 * commands/i386/cpuid.c: Likewise.
11021 * commands/i386/pc/drivemap.c: Likewise.
11022 * commands/i386/pc/halt.c: Likewise.
11023 * commands/i386/pc/pxecmd.c: Likewise.
11024 * commands/i386/pc/vbeinfo.c: Likewise.
11025 * commands/i386/pc/vbetest.c: Likewise.
11026 * commands/ieee1275/suspend.c: Likewise.
11027 * commands/keystatus.c: Likewise.
11028 * commands/loadenv.c: Likewise.
11029 * commands/ls.c: Likewise.
11030 * commands/lsmmap.c: Likewise.
11031 * commands/lspci.c: Likewise.
11032 * commands/memrw.c: Likewise.
11033 * commands/minicmd.c: Likewise.
11034 * commands/parttool.c: Likewise.
11035 * commands/password.c: Likewise.
11036 * commands/probe.c: Likewise.
11037 * commands/read.c: Likewise.
11038 * commands/reboot.c: Likewise.
11039 * commands/search.c: Likewise.
11040 * commands/sleep.c: Likewise.
11041 * commands/test.c: Likewise.
11042 * commands/true.c: Likewise.
11043 * commands/usbtest.c: Likewise.
11044 * commands/videotest.c: Likewise.
11045 * commands/xnu_uuid.c: Likewise.
11046 * disk/loopback.c: Likewise.
11047 * hello/hello.c: Likewise.
11048 * loader/i386/bsd.c: Likewise.
11049 * term/i386/pc/serial.c: Likewise.
11050 * po/POTFILES: Add new files.
11051
11052 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
11053
11054 * term/i386/pc/at_keyboard.c
11055 (keyboard_controller_wait_untill_ready): Rename to ...
11056 (keyboard_controller_wait_until_ready): ... this. Update all users.
11057
11058 2010-01-01 Carles Pina i Estany <carles@pina.cat>
11059
11060 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
11061 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
11062 string using string width.
11063 * normal/menu_text.c (grub_print_message_indented): Use
11064 grub_print_spaces and not print_spaces.
11065 (print_timeout): Likewise.
11066 (print_spaces): Move to...
11067 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
11068
11069 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
11070
11071 Import from Gnulib.
11072
11073 * gnulib/getdelim.c: New file.
11074 * gnulib/getline.c: Likewise.
11075
11076 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
11077
11078 * include/grub/list.h (grub_assert_fail): Removed.
11079 (grub_bad_type_cast_real): New function.
11080 (grub_bad_type_cast): New macro.
11081 (GRUB_AS_LIST): Use grub_bad_type_cast.
11082 (GRUB_AS_LIST_P): Likewise.
11083 (GRUB_AS_NAMED_LIST): Likewise.
11084 (GRUB_AS_NAMED_LIST_P): Likewise.
11085 (GRUB_AS_PRIO_LIST): Likewise.
11086 (GRUB_AS_PRIO_LIST_P): Likewise.
11087 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
11088
11089 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
11090
11091 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
11092 Fix syntax error.
11093
11094 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
11095
11096 * configure.ac: Check for TARGET_CFLAGS initialization before we
11097 initialize it ourselves (sigh).
11098 Move a few modifications to TARGET_CFLAGS to be unconditional
11099 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
11100 eh_frame)
11101
11102 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
11103 * term/i386/pc/at_keyboard.c
11104 (keyboard_controller_wait_untill_ready): Likewise.
11105 (keyboard_controller_led): Rename `led_status' paramter to avoid
11106 name conflict.
11107
11108 2009-12-28 Carles Pina i Estany <carles@pina.cat>
11109
11110 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
11111 quotes.
11112
11113 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
11114
11115 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
11116
11117 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
11118
11119 * normal/menu_text.c (grub_print_message_indented): Prevent
11120 past-the-end-of-array dereference.
11121
11122 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
11123
11124 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
11125 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
11126
11127 2009-12-27 Carles Pina i Estany <carles@pina.cat>
11128
11129 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
11130 * normal/main.c (grub_normal_read_line): Remove a space from the
11131 default prompt.
11132
11133 2009-12-27 Carles Pina i Estany <carles@pina.cat>
11134
11135 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
11136 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
11137 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
11138 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
11139 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
11140 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
11141 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
11142
11143 2009-12-26 Carles Pina i Estany <carles@pina.cat>
11144
11145 * video/readers/jpeg.c (cmd): Declare.
11146 (grub_cmd_jpegtest): Use `grub_command_t' type.
11147 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
11148 Assign to `cmd'.
11149 (GRUB_MOD_FINI): Use `cmd' to unregister.
11150 * video/readers/png.c (cmd): Declare.
11151 (grub_cmd_pngtest): Use `grub_command_t' type.
11152 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
11153 Assign to `cmd'.
11154 (GRUB_MOD_FINI): Use `cmd' to unregister.
11155 * video/readers/tga.c (cmd): Declare.
11156 (grub_cmd_tgatest): Use `grub_command_t' type.
11157 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
11158 Assign to `cmd'.
11159 (GRUB_MOD_FINI): Use `cmd' to unregister.
11160
11161 2009-12-26 Carles Pina i Estany <carles@pina.cat>
11162
11163 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
11164 stops.
11165 * kern/corecmd.c (grub_register_core_commands): Likewise.
11166 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
11167 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
11168 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
11169 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
11170 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
11171 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
11172 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
11173 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
11174 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
11175 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
11176 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
11177 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
11178 * normal/handler.c (insert_handler): Likewise.
11179 * normal/main.c (GRUB_MOD_INIT): Likewise.
11180 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
11181
11182 2009-12-26 Carles Pina i Estany <carles@pina.cat>
11183
11184 * commands/help.c (grub_cmd_help): Print the command name before the
11185 summary.
11186 (GRUB_MOD_INIT): Remove command name from the summary.
11187 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
11188 string as summary.
11189 * lib/arg.c (find_long): Print the command name before the summary.
11190 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
11191 summary.
11192 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
11193 * commands/cat.c (GRUB_MOD_INIT): Likewise.
11194 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
11195 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
11196 * commands/crc.c (GRUB_MOD_INIT): Likewise.
11197 * commands/date.c (GRUB_MOD_INIT): Likewise.
11198 * commands/echo.c (GRUB_MOD_INIT): Likewise.
11199 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
11200 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
11201 * commands/handler.c (GRUB_MOD_INIT): Likewise.
11202 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
11203 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
11204 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
11205 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
11206 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
11207 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
11208 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
11209 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
11210 * commands/ls.c (GRUB_MOD_INIT): Likewise.
11211 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
11212 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
11213 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
11214 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
11215 * commands/password.c (GRUB_MOD_INIT): Likewise.
11216 * commands/probe.c (GRUB_MOD_INIT): Likewise.
11217 * commands/read.c (GRUB_MOD_INIT): Likewise.
11218 * commands/search.c (GRUB_MOD_INIT): Likewise.
11219 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
11220 * commands/test.c (GRUB_MOD_INIT): Likewise.
11221 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
11222 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
11223 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
11224 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
11225 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
11226 * lib/arg.c (GRUB_MOD_INIT): Likewise.
11227 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
11228 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
11229 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
11230 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
11231 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
11232 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
11233 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
11234 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
11235
11236 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11237
11238 Use search command for preliminar UUID search.
11239
11240 * commands/search.c: Split into ...
11241 * commands/search_wrap.c: ...this
11242 * commands/search.c: ...and this.
11243 * commands/search_file.c: New file.
11244 * commands/search_label.c: New file.
11245 * commands/search_uuid.c: New file.
11246 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
11247 Add commands/search_wrap.c, commands/search_file.c,
11248 commands/search_label.c and commands/search_uuid.c.
11249 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
11250 (search_mod_SOURCES): Set to commands/search_wrap.c.
11251 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
11252 search_label.mod.
11253 (search_fs_file_mod_SOURCES): New variable.
11254 (search_fs_file_mod_CFLAGS): Likewise.
11255 (search_fs_file_mod_LDFLAGS): Likewise.
11256 (search_label_mod_SOURCES): Likewise.
11257 (search_label_mod_CFLAGS): Likewise.
11258 (search_label_mod_LDFLAGS): Likewise.
11259 (search_fs_uuid_mod_SOURCES): New variable.
11260 (search_fs_uuid_mod_CFLAGS): Likewise.
11261 (search_fs_uuid_mod_LDFLAGS): Likewise.
11262 (fs_file_mod_SOURCES): Removed.
11263 (fs_file_mod_CFLAGS): Likewise.
11264 (fs_file_mod_LDFLAGS): Likewise.
11265 (fs_uuid_mod_SOURCES): Removed.
11266 (fs_uuid_mod_CFLAGS): Likewise.
11267 (fs_uuid_mod_LDFLAGS): Likewise.
11268 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
11269 Set to util/grub-install.in.
11270 * disk/fs_file.c: Removed.
11271 * disk/fs_uuid.c: Likewise.
11272 * include/grub/search.h: New file.
11273 * util/grub-install.in: Handle sparc64.
11274 Create and use load.cfg.
11275 * util/sparc64/ieee1275/grub-install.in: Removed.
11276
11277 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11278
11279 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
11280 Ignore return status if CF is cleared.
11281 (grub_biosdisk_get_diskinfo_standard): Likewise.
11282
11283 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
11284
11285 * term/i386/pc/at_keyboard.c
11286 (keyboard_controller_wait_untill_ready): New function.
11287 (grub_keyboard_controller_write, grub_keyboard_controller_read)
11288 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
11289 for keyboard polling, rather than duplicate the same loop. This
11290 saves a few bytes in code size.
11291
11292 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11293
11294 Support for (pxe[:server[:gateway]]) syntax and
11295 use environment variable for PXE.
11296
11297 * commands/i386/pc/pxecmd.c (options): Removed.
11298 (print_ip): Removed.
11299 (grub_cmd_pxe): Removed
11300 (grub_cmd_pxe_unload): New function.
11301 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
11302 (grub_pxe_your_ip): Made static.
11303 (grub_pxe_default_server_ip): Likewise.
11304 (grub_pxe_default_gateway_ip): Likewise.
11305 (grub_pxe_blksize): Likewise.
11306 (parse_ip): New function.
11307 (grub_pxe_open): Support server and gateway specification.
11308 (grub_pxe_close): Free disk->data.
11309 (grub_pxefs_open): Use disk->data.
11310 (grub_pxefs_read): Likewise.
11311 (grub_env_write_readonly): New function.
11312 (set_mac_env): Likewise.
11313 (set_env_limn_ro): Likewise.
11314 (parse_dhcp_vendor): Likewise.
11315 (grub_pxe_detect): Set the environment variables.
11316 (set_ip_env): New function.
11317 (write_ip_env): Likewise.
11318 (grub_env_write_pxe_default_server): Likewise.
11319 (grub_env_write_pxe_default_gateway): Likewise.
11320 (grub_env_write_pxe_blocksize): Likewise.
11321 (GRUB_MOD_INIT(pxe)): Set environment variables.
11322 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
11323 (grub_pxe_mac_addr_t): ... this. All users updated.
11324 (grub_pxe_your_ip): Removed.
11325 (grub_pxe_server_ip): Likewise.
11326 (grub_pxe_gateway_ip): Likewise.
11327 (grub_pxe_blksize): Likewise.
11328
11329 2009-12-25 Carles Pina i Estany <carles@pina.cat>
11330
11331 * commands/help.c: Include `<grub/i18n.h>'.
11332 (grub_cmd_help): Gettextizze.
11333 (GRUB_MOD_INIT): Likewise.
11334 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
11335 (GRUB_MOD_INIT): Gettextizze.
11336 * commands/search.c: Include `<grub/i18n.h>'.
11337 (options): Gettextizze.
11338 (GRUB_MOD_INIT): Gettextizze.
11339 * lib/arg.c: Include `<grub/i18n.h>'.
11340 (help_options): Gettextizze.
11341 (find_long): Likewise.
11342 (grub_arg_show_help): Likewise.
11343 * normal/dyncmd.c: Include `<grub/i18n.h>'.
11344 (read_command_list): Gettextizze.
11345 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
11346 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
11347
11348 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
11349
11350 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
11351 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
11352 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
11353 (led_status): New variable.
11354 (keyboard_controller_led): New function.
11355 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
11356 update led status for caps lock, num lock and scroll lock.
11357
11358 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
11359
11360 * util/hostdisk.c (open_device): Fix a comment.
11361
11362 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11363
11364 * util/grub-install.in (host_os): New variable.
11365 * util/i386/efi/grub-install.in (host_os): Likewise.
11366
11367 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11368
11369 * util/mkisofs/write.c (padblock_write): Abort when given an
11370 excedingly large embed image, instead of silently truncating it.
11371
11372 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11373
11374 * include/multiboot.h: Indentation fixes.
11375
11376 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11377
11378 * include/multiboot.h (struct multiboot_aout_symbol_table)
11379 (struct multiboot_elf_section_header_table): New structure
11380 declarations (stolen from GRUB Legacy).
11381 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
11382 table information.
11383
11384 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
11385 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
11386 type aliases.
11387
11388 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11389
11390 * include/multiboot.h: Make comments src2texi-friendly.
11391
11392 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11393
11394 For consistency with [multiboot]/docs/boot.S.
11395
11396 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
11397 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
11398 (MULTIBOOT_MAGIC2): Rename from this ...
11399 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
11400
11401 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11402
11403 * include/multiboot.h: Remove `<grub/types.h>'.
11404 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
11405 types. Update all users.
11406
11407 2009-12-25 Carles Pina i Estany <carles@pina.cat>
11408
11409 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
11410 `couldn't' and `can not' by `cannot'.
11411 * commands/i386/pc/drivemap.c: Likewise.
11412 * disk/ata.c: Likewise.
11413 * disk/ieee1275/nand.c: Likewise.
11414 * fs/affs.c: Likewise.
11415 * fs/fat.c: Likewise.
11416 * fs/hfs.c: Likewise.
11417 * fs/hfsplus.c: Likewise.
11418 * fs/iso9660.c: Likewise.
11419 * fs/jfs.c: Likewise.
11420 * fs/minix.c: Likewise.
11421 * fs/reiserfs.c: Likewise.
11422 * fs/sfs.c: Likewise.
11423 * fs/udf.c: Likewise.
11424 * fs/ufs.c: Likewise.
11425 * fs/xfs.c: Likewise.
11426 * loader/powerpc/ieee1275/linux.c: Likewise.
11427 * loader/sparc64/ieee1275/linux.c: Likewise.
11428 * util/grub-probe.c: Likewise.
11429 * util/misc.c: Likewise.
11430
11431 2009-12-24 Carles Pina i Estany <carles@pina.cat>
11432
11433 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
11434 grub_errno calls.
11435 * commands/acpi.c: Likewise.
11436 * commands/blocklist.c: Likewise.
11437 * commands/efi/loadbios.c: Likewise.
11438 * commands/i386/pc/drivemap.c: Likewise.
11439 * commands/loadenv.c: Likewise.
11440 * commands/memrw.c: Likewise.
11441 * commands/password.c: Likewise.
11442 * commands/videotest.c: Likewise.
11443 * disk/ata.c: Likewise.
11444 * disk/ata_pthru.c: Likewise.
11445 * disk/dmraid_nvidia.c: Likewise.
11446 * disk/ieee1275/nand.c: Likewise.
11447 * disk/ieee1275/ofdisk.c: Likewise.
11448 * disk/loopback.c: Likewise.
11449 * disk/lvm.c: Likewise.
11450 * disk/mdraid_linux.c: Likewise.
11451 * disk/raid.c: Likewise.
11452 * disk/raid6_recover.c: Likewise.
11453 * disk/scsi.c: Likewise.
11454 * efiemu/main.c: Likewise.
11455 * efiemu/mm.c: Likewise.
11456 * efiemu/pnvram.c: Likewise.
11457 * efiemu/symbols.c: Likewise.
11458 * font/font.c: Likewise.
11459 * fs/cpio.c: Likewise.
11460 * fs/hfsplus.c: Likewise.
11461 * fs/iso9660.c: Likewise.
11462 * fs/jfs.c: Likewise.
11463 * fs/minix.c: Likewise.
11464 * fs/ntfs.c: Likewise.
11465 * fs/ntfscomp.c: Likewise.
11466 * fs/reiserfs.c: Likewise.
11467 * fs/ufs.c: Likewise.
11468 * fs/xfs.c: Likewise.
11469 * gettext/gettext.c: Likewise.
11470 * include/grub/auth.h: Likewise.
11471 * kern/elf.c: Likewise.
11472 * kern/file.c: Likewise.
11473 * kern/ieee1275/init.c: Likewise.
11474 * kern/ieee1275/mmap.c: Likewise.
11475 * kern/ieee1275/openfw.c: Likewise.
11476 * kern/powerpc/dl.c: Likewise.
11477 * kern/sparc64/dl.c: Likewise.
11478 * lib/arg.c: Likewise.
11479 * loader/i386/bsd.c: Likewise.
11480 * loader/i386/bsdXX.c: Likewise.
11481 * loader/i386/efi/linux.c: Likewise.
11482 * loader/i386/efi/xnu.c: Likewise.
11483 * loader/i386/ieee1275/linux.c: Likewise.
11484 * loader/i386/linux.c: Likewise.
11485 * loader/i386/multiboot.c: Likewise.
11486 * loader/i386/pc/linux.c: Likewise.
11487 * loader/i386/pc/multiboot2.c: Likewise.
11488 * loader/i386/xnu.c: Likewise.
11489 * loader/ieee1275/multiboot2.c: Likewise.
11490 * loader/macho.c: Likewise.
11491 * loader/machoXX.c: Likewise.
11492 * loader/multiboot2.c: Likewise.
11493 * loader/multiboot_loader.c: Likewise.
11494 * loader/powerpc/ieee1275/linux.c: Likewise.
11495 * loader/sparc64/ieee1275/linux.c: Likewise.
11496 * loader/xnu.c: Likewise.
11497 * loader/xnu_resume.c: Likewise.
11498 * mmap/i386/pc/mmap.c: Likewise.
11499 * normal/menu_viewer.c: Likewise.
11500 * partmap/acorn.c: Likewise.
11501 * partmap/amiga.c: Likewise.
11502 * partmap/apple.c: Likewise.
11503 * script/lexer.c: Likewise.
11504 * term/gfxterm.c: Likewise.
11505 * term/i386/pc/serial.c: Likewise.
11506 * term/i386/pc/vga.c: Likewise.
11507 * term/ieee1275/ofconsole.c: Likewise.
11508 * term/terminfo.c: Likewise.
11509 * video/bitmap.c: Likewise.
11510 * video/efi_gop.c: Likewise.
11511 * video/efi_uga.c: Likewise.
11512 * video/fb/video_fb.c: Likewise.
11513 * video/i386/pc/vbe.c: Likewise.
11514 * video/readers/tga.c: Likewise.
11515 * video/video.c: Likewise.
11516
11517 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
11518
11519 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
11520 * commands/lspci.c: Likewise.
11521 * commands/probe.c: Likewise.
11522 * commands/xnu_uuid.c: Likewise.
11523 * conf/i386-coreboot.rmk: Likewise.
11524 * conf/i386-efi.rmk: Likewise.
11525 * conf/i386-ieee1275.rmk: Likewise.
11526 * conf/i386-pc.rmk: Likewise.
11527 * conf/powerpc-ieee1275.rmk: Likewise.
11528 * conf/sparc64-ieee1275.rmk: Likewise.
11529 * conf/x86_64-efi.rmk: Likewise.
11530 * fs/i386/pc/pxe.c: Likewise.
11531 * gettext/gettext.c: Likewise.
11532 * include/grub/efi/graphics_output.h: Likewise.
11533 * include/grub/i386/pc/memory.h: Likewise.
11534 * kern/env.c: Likewise.
11535 * kern/i386/qemu/startup.S: Likewise.
11536 * lib/i386/pc/biosnum.c: Likewise.
11537 * lib/i386/relocator.c: Likewise.
11538 * lib/i386/relocator_asm.S: Likewise.
11539 * lib/relocator.c: Likewise.
11540 * loader/i386/bsd.c: Likewise.
11541 * loader/i386/multiboot.c: Likewise.
11542 * loader/i386/pc/chainloader.c: Likewise.
11543 * loader/i386/xnu.c: Likewise.
11544 * loader/xnu.c: Likewise.
11545 * normal/main.c: Likewise.
11546 * normal/menu_text.c: Likewise.
11547 * util/getroot.c: Likewise.
11548 * util/grub-mkconfig_lib.in: Likewise.
11549 * util/grub.d/00_header.in: Likewise.
11550 * util/i386/pc/grub-mkimage.c: Likewise.
11551 * util/mkisofs/eltorito.c: Likewise.
11552 * util/mkisofs/exclude.h: Likewise.
11553 * util/mkisofs/hash.c: Likewise.
11554 * util/mkisofs/iso9660.h: Likewise.
11555 * util/mkisofs/joliet.c: Likewise.
11556 * util/mkisofs/mkisofs.c: Likewise.
11557 * util/mkisofs/mkisofs.h: Likewise.
11558 * util/mkisofs/multi.c: Likewise.
11559 * util/mkisofs/name.c: Likewise.
11560 * util/mkisofs/rock.c: Likewise.
11561 * util/mkisofs/tree.c: Likewise.
11562 * util/mkisofs/write.c: Likewise.
11563 * video/efi_gop.c: Likewise.
11564
11565 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11566
11567 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
11568 size counting.
11569
11570 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
11571
11572 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
11573 * genmk.rb (class SCRIPT): Modify the target file instead of source.
11574
11575 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11576
11577 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
11578 (GRUB_MOD_INIT(memrw)): Update help line.
11579
11580 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11581
11582 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
11583 Use grub_extcmd_t. All users updated.
11584 (options): New variable.
11585 (grub_cmd_read): Restructure for readability. Support "-v" option.
11586 (grub_cmd_write): Restructure for readability.
11587
11588 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
11589
11590 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
11591
11592 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
11593
11594 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
11595 with the actual contents of the correspondending make variable.
11596 * util/grub-mkrescue.in (pkglib_DATA): New variable.
11597 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
11598 specifying `*.lst' and `efiemu??.o'
11599
11600 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
11601
11602 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
11603 after function name.
11604 Noticed by Rene Engelhard <rene@debian.org>.
11605
11606 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11607
11608 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
11609 (options): New variable.
11610 (iospace): Likewise.
11611 (grub_lspci_iter): List IO spaces if "-i" was given.
11612 (grub_cmd_lspci): Parse options.
11613 (GRUB_MOD_INIT(lspci)): Use extcmd.
11614 (GRUB_MOD_FINI(lspci)): Likewise.
11615
11616 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
11617
11618 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
11619 `function' keyword.
11620 Patch by Tony Mancill <tmancill@debian.org>.
11621
11622 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11623
11624 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
11625 (grub_uhci_portstatus): Likewise.
11626 (grub_uhci_portstatus): Add necessary delay.
11627 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
11628
11629 2009-12-21 Carles Pina i Estany <carles@pina.cat>
11630
11631 * commands/acpi.c (options): Fix capitalizations and/or full stops.
11632 (GRUB_MOD_INIT): Likewise.
11633 * commands/boot.c (GRUB_MOD_INIT): Likewise.
11634 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
11635 * commands/echo.c (options): Fix capitalizations and/or full stops.
11636 * commands/efi/loadbios.c (enable_rom_area): Likewise.
11637 (enable_rom_area): Likewise.
11638 (GRUB_MOD_INIT): Likewise.
11639 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
11640 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
11641 * commands/handler.c (GRUB_MOD_INIT): Likewise.
11642 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
11643 * commands/hexdump.c (options): Likewise.
11644 * commands/i386/cpuid.c (options): Likewise.
11645 (GRUB_MOD_INIT): Likewise.
11646 * commands/i386/pc/drivemap.c (options): Likewise.
11647 (GRUB_MOD_INIT): Likewise.
11648 * commands/i386/pc/halt (options): Likewise.
11649 (GRUB_MOD_INIT): Likewise.
11650 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
11651 * commands/i386/pc/pxecmd.c (options): Likewise.
11652 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
11653 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
11654 * commands/keystatus.c (options): Likewise.
11655 (GRUB_MOD_INIT): Likewise.
11656 * commands/loadenv.c (options): Likewise.
11657 * commands/ls.c (options): Likewise.
11658 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
11659 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
11660 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
11661 * commands/parttool.c (helpmsg): Likewise.
11662 * commands/probe.c (options): Likewise.
11663 * commands/read.c (GRUB_MOD_INIT): Likewise.
11664 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
11665 * commands/search.c (options): Likewise.
11666 * commands/sleep.c (options): Likewise.
11667 * commands/test.c (GRUB_MOD_INIT): Likewise.
11668 * commands/true.c (GRUB_MOD_INIT): Likewise.
11669 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
11670 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
11671 * lib/arg.c (help_options): Likewise.
11672 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
11673 `$(XGETTEXT)'.
11674 * po/POTFILES: Add `commands/loadenv.c'.
11675
11676 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
11677
11678 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
11679 instead of specifying them explicit.
11680
11681 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11682
11683 * NEWS: Add grub-probe support for GNU/Hurd.
11684
11685 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11686
11687 * NEWS: gettext was added after 1.97.
11688
11689 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11690
11691 * util/mkisofs/msdos_partition.h: New file (based on
11692 include/grub/msdos_partition.h).
11693 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
11694 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
11695 (ld_options, main): Recognize --protective-msdos-label.
11696 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
11697 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
11698 (padblock_write): If `use_protective_msdos_label' is set, patch a
11699 protective DOS-style label in the output image.
11700
11701 * util/grub-mkrescue.in: Use --protective-msdos-label.
11702
11703 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11704
11705 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
11706 boot.
11707
11708 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11709
11710 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
11711 variables.
11712 (ld_options, main): Recognize `--embedded-boot'.
11713 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
11714 declarations.
11715 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
11716 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
11717 (padblock_write): Likewise. Rewrite to support embedded boot image.
11718
11719 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
11720 for BIOS-based disk boot instead of only ElTorito.
11721
11722 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11723
11724 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
11725 build (not needed for bootstrap).
11726
11727 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11728
11729 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
11730 from i386-pc build (not needed for bootstrap).
11731 Rewrite a pair of strings.
11732
11733 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11734
11735 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
11736
11737 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
11738
11739 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
11740
11741 2009-12-21 Andreas Born <futur.andy@googlemail.com>
11742
11743 * kern/env.c (grub_env_context_open): Mark exported variable for
11744 reexport.
11745
11746 2009-12-21 Andreas Born <futur.andy@googlemail.com>
11747
11748 * kern/env.c (grub_env_export): Create nonexistent variables before
11749 exporting.
11750
11751 2009-12-20 Carles Pina i Estany <carles@pina.cat>
11752
11753 * include/grub/auth.h: Include `<grub/i18n.h>'.
11754 (GRUB_GET_PASSWORD): Gettextizze string.
11755 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
11756 menu_text.c.
11757 (grub_utf8_to_ucs4_alloc): Fix indentation.
11758 (grub_print_ucs4): Likewise.
11759 (grub_getstringwidth): Likewise.
11760 (print_message_indented): New declaration.
11761 * normal/auth.c: Include `<grub/i18n.h>'.
11762 (grub_auth_check_authentication): Gettexttize string.
11763 * normal/cmdline.c: Include `<grub/i18n.h>'.
11764 (grub_cmdline_get): Gettextizze.
11765 * normal/color.c: Include `<grub/i18n.h>'.
11766 (grub_parse_color_name_pair): Gettexttize strings.
11767 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
11768 string (use `print_message_indented').
11769 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
11770 `include/grub/normal.h'.
11771 (print_message_indented): Renamed to ...
11772 (grub_print_message_indented): ... this. Remove `static' qualifer (now
11773 used in normal/main.c).
11774 (print_message): Use `grub_print_message_indented' instead of
11775 `print_message_indented'.
11776 (print_timeout): Likewise.
11777 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
11778 (grub_normal_print_device_info): Gettexttize strings.
11779 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
11780
11781 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
11782
11783 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
11784 of arguments. Return number of tokens and not arguments. All users
11785 updated.
11786
11787 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
11788
11789 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
11790 non-MSDOS paritions.
11791
11792 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
11793
11794 * include/grub/types.h (UNUSED): Removed since it conflicts with
11795 NetBSD headers. All users changed to direct __attribute__ ((unused)).
11796 Reported by Grégoire Sutre.
11797
11798 2009-12-19 Carles Pina i Estany <carles@pina.cat>
11799
11800 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
11801 (grub_print_ucs4_alloc): Likewise.
11802 (grub_getstringwidth): Likewise.
11803 * normal/main.c (grub_normal_init_page): Gettextize version string.
11804 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
11805 (getstringwidth): Renamed to ...
11806 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
11807 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
11808 (grub_print_ucs4): Remove `static' qualifer (now used in
11809 normal/main.c).
11810 * po/POTFILES: Add normal/main.c.
11811
11812 2009-12-19 Carles Pina i Estany <carles@pina.cat>
11813
11814 * normal/menu_text.c (STANDARD_MARGIN): New macro.
11815 (print_message_indented): Add `margin_left' and `margin_right'
11816 parameters.
11817 (print_message): Update `print_message_indented' calls. Adds '\n' to the
11818 strings.
11819 (print_timeout): Use `print_message_indented' to print the message.
11820 Deletes `second_stage' parameter.
11821 (run_menu): Update `print_timeout' calls.
11822
11823 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
11824
11825 Fix console palette on OpenFirmware.
11826
11827 * term/ieee1275/ofconsole.c (MAX): Removed.
11828 (colors): Redone based on VGA palette.
11829 (grub_ofconsole_setcolor): Discard brightness bit since only 8
11830 colors are supported.
11831 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
11832
11833 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
11834
11835 Fix potential EfiEmu double prepare.
11836
11837 * efiemu/main.c (prepared): New variable
11838 (grub_efiemu_unload): Set prepare to '0'.
11839 (grub_efiemu_prepare): Return if already prepared. Set prepared.
11840
11841 set_virtual_address_map support.
11842
11843 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
11844 prototype.
11845 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
11846 prototype.
11847 (grub_efiemu_crc32): Likewise.
11848 (grub_efiemu_crc64): Likewise.
11849 (grub_efiemu_set_virtual_address_map): Likewise.
11850 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
11851 New definition.
11852 (grub_autoefi_set_virtual_address_map): Likewise.
11853 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
11854 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
11855 Restructure flow to accomodate it.
11856 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
11857 (grub_efiemu_crc): Recompute CRC32.
11858 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
11859 (efiemu_ptv_relocated): ... this. Made global. All users updated.
11860 * efiemu/symbols.c (relocated_handle): New variable.
11861 (grub_efiemu_free_syms): Free relocated_handle.
11862 (grub_efiemu_alloc_syms): Allocate relocated_handle.
11863 (grub_efiemu_write_sym_markers): New function.
11864 (grub_efiemu_set_virtual_address_map): Likewise.
11865
11866 Newer XNU parameters.
11867
11868 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
11869 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
11870 (grub_xnu_fill_devicetree): New prototype.
11871 (grub_xnu_heap_real_start): New variable.
11872 * loader/xnu.c (get_name_ptr): New function.
11873 (grub_xnu_load_driver): Fill namelen and name.
11874
11875 64-bit xnu support.
11876
11877 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
11878 and 'loader/macho64.c'.
11879 * conf/i386-pc.rmk: Likewise.
11880 * conf/x86_64-efi.rmk: Likewise.
11881 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
11882 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
11883 * include/grub/macho.h (grub_macho_segment64): New structure.
11884 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
11885 (grub_macho_size32): ... to this.
11886 (grub_macho32_get_entry_point): Renamed from ...
11887 (grub_macho_get_entry_point32): ... to this.
11888 (grub_macho_contains_macho64): New prototype.
11889 (grub_macho_size64): Likewise.
11890 (grub_macho_get_entry_point64): Likewise.
11891 (grub_macho32_load): Renamed from ...
11892 (grub_macho_load32): ... to this.
11893 (grub_macho32_filesize): Renamed from ...
11894 (grub_macho_filesize32): ... to this.
11895 (grub_macho32_readfile): Renamed from ...
11896 (grub_macho_readfile32): ... to this.
11897 (grub_macho_filesize64): New prototype.
11898 (grub_macho_readfile64): Likewise.
11899 (grub_macho_parse32): Likewise.
11900 (grub_macho_parse64): Likewise.
11901 * loader/macho.c: Split into ...
11902 * loader/machoXX.c: ... and this. Replace 32 with XX.
11903 * loader/macho32.c: New file.
11904 * loader/macho64.c: Likewise.
11905 * loader/xnu.c (grub_xnu_is_64bit): New variable.
11906 (grub_cmd_xnu_kernel): Make 32-bit only.
11907 (grub_cmd_xnu_kernel64): New function.
11908 (grub_xnu_load_driver): Support Mach-O 64.
11909 (grub_cmd_xnu_mkext): Likewise.
11910 * util/grub.d/30_os-prober.in (osx_entry): New function.
11911 Generate entries for 64-bit boot too.
11912
11913 Eliminate ad-hoc tree format in XNU and EfiEmu.
11914
11915 * efiemu/main.c (grub_efiemu_prepare): Update comment.
11916 * efiemu/pnvram.c: Rewritten to use environment variables.
11917 All users updated.
11918
11919 Inline utf16_to_utf8.
11920
11921 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
11922 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
11923 All users updated.
11924 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
11925
11926 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
11927 * commands/usbtest.c (grub_usb_get_string): ... move here.
11928 (usb_print_str): Fix error handling.
11929 * include/grub/usb.h (grub_usb_get_string): Remove.
11930
11931 UTF-8 to UTF-16 transformation.
11932
11933 * conf/common.rmk (pkglib_MODULES): Add charset.mod
11934 (charset_mod_SOURCES): New variable.
11935 (charset_mod_CFLAGS): Likewise.
11936 (charset_mod_LDFLAGS): Likewise.
11937 * include/grub/utf.h: New file.
11938 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
11939
11940 Support for device properties.
11941
11942 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
11943 (grub_xnu_devprop_device_header): Likewise.
11944 (grub_xnu_devprop_device_descriptor): Likewise.
11945 (grub_xnu_devprop_add_device): New prototype.
11946 (grub_xnu_devprop_remove_device): Likewise.
11947 (grub_xnu_devprop_remove_property): Likewise.
11948 (grub_xnu_devprop_add_property_utf8): Likewise.
11949 (grub_xnu_devprop_add_property_utf16): Likewise.
11950 (grub_cpu_xnu_init): Likewise.
11951 (grub_cpu_xnu_fini): Likewise.
11952 (grub_cpu_xnu_unload): Likewise.
11953 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
11954 (property_descriptor): Likewise.
11955 (devices): New variable.
11956 (grub_xnu_devprop_remove_property): New function.
11957 (grub_xnu_devprop_add_device): Likewise.
11958 (grub_xnu_devprop_remove_device): Likewise.
11959 (grub_xnu_devprop_add_property): Likewise.
11960 (grub_xnu_devprop_add_property_utf8): Likewise.
11961 (grub_xnu_devprop_add_property_utf16): Likewise.
11962 (hextoval): Likewise.
11963 (grub_cpu_xnu_fill_devprop): Likewise.
11964 (grub_cmd_devprop_load): Likewise.
11965 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
11966 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
11967 (cmd_devprop_load): New variable.
11968 (grub_cpu_xnu_init): New function.
11969 (grub_cpu_xnu_fini): Likewise.
11970 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
11971 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
11972 (grub_cmd_xnu_devtree): Likewise.
11973 (hextoval): New function.
11974 (unescape): Likewise.
11975 (grub_xnu_fill_devicetree): Likewise.
11976
11977 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
11978 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
11979
11980 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
11981
11982 Workaround for broken ATI VBE.
11983
11984 * video/i386/pc/vbe.c (last_set_mode): New variable.
11985 (grub_vbe_set_video_mode): Set 'last_set_mode'.
11986 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
11987 (grub_video_vbe_setup): Don't check for reserved flag.
11988
11989 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
11990
11991 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
11992 the `find' command.
11993
11994 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
11995
11996 UUID support for HFS.
11997
11998 * fs/hfs.c (grub_hfs_uuid): New function.
11999 (grub_hfs_fs): New value .uuid.
12000 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
12001
12002 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
12003
12004 Fix a segfault with parsing unknown long options.
12005
12006 * util/grub-mkrelpath.c (options): Zero terminate it.
12007
12008 2009-12-13 Carles Pina i Estany <carles@pina.cat>
12009
12010 * include/grub/misc.h (grub_puts): New declaration.
12011 (grub_puts_): Likewise.
12012 * kern/misc.c (grub_puts): New definition.
12013 (grub_puts_): Likewise.
12014
12015 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
12016
12017 * util/grub-probe.c (probe): Improve error message.
12018
12019 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
12020
12021 * loader/i386/multiboot_elfxx.c
12022 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
12023 initialization.
12024
12025 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12026
12027 Relocator framework
12028
12029 * loader/i386/xnu_helper.S: Removed. All users updated.
12030 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
12031 (relocator_mod_SOURCES): New variable.
12032 (relocator_mod_CFLAGS): Likewise.
12033 (relocator_mod_LDFLAGS): Likewise.
12034 (relocator_mod_ASFLAGS): Likewise.
12035 * conf/x86_64.rmk: Likewise.
12036 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
12037 (grub_multiboot_payload_entry_offset): Likewise.
12038 (grub_multiboot_forward_relocator): Likewise.
12039 (grub_multiboot_forward_relocator_end): Likewise.
12040 (grub_multiboot_backward_relocator): Likewise.
12041 (grub_multiboot_backward_relocator_end): Likewise.
12042 (grub_multiboot_payload_eip): New variable.
12043 (grub_multiboot_payload_orig): Likewise.
12044 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
12045 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
12046 * include/grub/i386/memory.h
12047 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
12048 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
12049 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
12050 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
12051 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
12052 * include/grub/i386/relocator.h: New file.
12053 * include/grub/x86_64/relocator.h: Likewise.
12054 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
12055 (XNU_RELOCATOR): New macro.
12056 (grub_xnu_launcher_start): Remove.
12057 (grub_xnu_launcher_end): Likewise.
12058 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
12059 (grub_xnu_heap_real_start): Remove.
12060 (grub_xnu_heap_start): Change to void *. All users updated.
12061 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
12062 * lib/i386/relocator.c: New file.
12063 * lib/i386/relocator_asm.S: Likewise.
12064 * lib/i386/relocator_backward.S: Likewise.
12065 * lib/mips/relocator.c: Likewise.
12066 * lib/mips/relocator_asm.S: Likewise.
12067 * lib/relocator.c: Likewise.
12068 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
12069 (entry): Removed.
12070 (playground): Likewise.
12071 (grub_multiboot_payload_orig): New variable.
12072 (grub_multiboot_payload_dest): Likewise.
12073 (grub_multiboot_payload_size): Likewise.
12074 (grub_multiboot_payload_eip): Likewise.
12075 (grub_multiboot_payload_esp): Likewise.
12076 (grub_multiboot_boot): Use grub_relocator32_boot.
12077 (grub_multiboot_unload): Free relocators.
12078 (grub_multiboot): Setup stack. Use relocators.
12079 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
12080 (grub_multiboot_load_elfXX): Use relocators.
12081 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
12082 (grub_multiboot_payload_size): Likewise.
12083 (grub_multiboot_payload_dest): Likewise.
12084 (grub_multiboot_payload_entry_offset): Likewise.
12085 (grub_multiboot_forward_relocator): Likewise.
12086 (grub_multiboot_backward_relocator): Likewise.
12087 (grub_multiboot_real_boot): Likewise.
12088 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
12089 (grub_xnu_entry_point): Likewise.
12090 (grub_xnu_arg1): Likewise.
12091 (grub_xnu_stack): Likewise.
12092 (grub_xnu_launch): Removed.
12093 (grub_xnu_boot_resume): New function.
12094 (grub_xnu_boot): Use relocators.
12095 * loader/i386/xnu_helper.S: Removed.
12096 * loader/xnu.c (grub_xnu_heap_start): New variable.
12097 (grub_xnu_heap_size): Likewise.
12098 (grub_xnu_heap_malloc): Use relocators.
12099 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
12100
12101 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12102
12103 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
12104 anything.
12105
12106 2009-12-13 Carles Pina i Estany <carles@pina.cat>
12107
12108 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
12109 GRUB_ERR_NONE before calling grub_env_set.
12110
12111 2009-12-12 Robert Millan <rmh@aybabtu.com>
12112
12113 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
12114 * genmk.rb (video): New variable.
12115 (CLEANFILES, VIDEOFILES): Add #{video}.
12116 (#{video}): New target rule.
12117 * genvideolist.sh: New file.
12118 * Makefile.in (pkglib_DATA): Add video.lst.
12119 (video.lst): New target rule.
12120 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
12121 `video.lst'.
12122 * util/grub.d/30_os-prober.in: Replace `vbe' with
12123 ${GRUB_VIDEO_BACKEND}.
12124
12125 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
12126
12127 * THANKS: Add David Miller.
12128
12129 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
12130
12131 libpciaccess support.
12132
12133 * Makefile.in (LIBPCIACCESS): New variable.
12134 (enable_grub_emu_pci): Likewise.
12135 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
12136 util/pci.c and commands/lspci.c.
12137 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
12138 * configure.ac (grub-emu-pci): New option.
12139 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
12140 (grub_pci_device_unmap_range): Likewise.
12141 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
12142 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
12143 (grub_pci_address_t) [!GRUB_UTIL]: New type.
12144 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
12145 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
12146 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
12147 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
12148 * include/grub/pciutils.h: New file.
12149 * util/pci.c: Likewise.
12150
12151 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
12152
12153 * util/misc.c: Don't include <errno.h> twice.
12154
12155 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
12156
12157 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
12158 name in an error message.
12159 (grub_biosdisk_rw): Likewise.
12160
12161 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
12162
12163 Eliminate NTFS 4Gib barrier.
12164
12165 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
12166 (read_run_data): Likewise.
12167 (grub_ntfs_read_run_list): Likewise.
12168 (grub_ntfs_read_block): Likewise.
12169 (grub_ntfs_iterate_dir): Likewise.
12170 (read_mft): Likewise.
12171 (read_data): Likewise.
12172 Use COM_LOG_LEN.
12173 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
12174 to avoid 64-bit division
12175 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
12176 (grub_ntfs_rlst): Use grub_disk_addr_t.
12177
12178 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
12179
12180 Eliminate grub-fstest 4Gib barrier.
12181
12182 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
12183 (read_file): Fix error reporting.
12184
12185 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
12186
12187 Eliminate hexdump 4Gib barrier.
12188
12189 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
12190 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
12191
12192 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
12193
12194 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
12195 Fixes amarsh bug.
12196
12197 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
12198
12199 Remove miscellaneous files in distclean target.
12200
12201 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
12202
12203 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
12204
12205 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
12206 if they're already set. This resolves the conflict between my
12207 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
12208 fixing the --grub-probe option again.
12209 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
12210 change on 2009-10-06, so that we now once again source
12211 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
12212
12213 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
12214
12215 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
12216 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
12217 `util/devicemap.c'.
12218
12219 2009-12-08 Carles Pina i Estany <carles@pina.cat>
12220
12221 * include/grub/misc.h (grub_printf_): New declaration.
12222 * kern/misc.c (grub_printf_): New definition.
12223 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
12224 instead of `grub_printf' and `_'.
12225 * normal/menu_entry.c (store_completion): Likewise.
12226 (run): Likewise.
12227 (grub_menu_entry_run): Likewise.
12228 * normal/menu_text.c (grub_wait_after_message): Likewise.
12229 (notify_booting): Likewise.
12230 (notify_fallback): Likewise.
12231 (notify_execution_failure): Likewise.
12232
12233 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
12234
12235 * configure.ac: Check for vasprintf.
12236 * util/misc.c (asprintf): Move allocation from here ...
12237 (vasprintf): ... to here. New function.
12238 (xasprintf): New function.
12239 * include/grub/util/misc.h (vasprintf, xasprintf): Add
12240 prototypes.
12241 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
12242 * util/grub-mkfont.c (write_font): Likewise.
12243 * util/grub-probe.c (probe): Likewise.
12244 * util/hostdisk.c (make_device_name): Likewise.
12245
12246 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
12247
12248 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
12249 anything even prefixed with 'cdrom' as a cdrom.
12250
12251 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
12252
12253 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
12254 mount points.
12255
12256 2009-12-05 Carles Pina i Estany <carles@pina.cat>
12257
12258 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
12259 grub_gettext_msg_list.
12260 (grub_gettext_gettranslation_from_position): Return const char *
12261 and not char *.
12262 (grub_gettext_translate): Add the translated strings into a list,
12263 returns from the list if existing there.
12264 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
12265 (grub_gettext_delete_list): Delete the list.
12266 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
12267 lang environment variable is changed.
12268 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
12269
12270 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
12271
12272 Rename kernel.mod to kernel.img.
12273
12274 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
12275 (kernel_mod_EXPORTS): Rename to ...
12276 (kernel_img_EXPORTS): ... this.
12277 (kernel_mod_SOURCES): Rename to ...
12278 (kernel_img_SOURCES): ... this.
12279 (kernel_mod_HEADERS): Rename to ...
12280 (kernel_img_HEADERS): ... this. All users updated.
12281 (kernel_mod_CFLAGS): Rename to ...
12282 (kernel_img_CFLAGS): ... this.
12283 (kernel_mod_ASFLAGS): Rename to ...
12284 (kernel_img_ASFLAGS): ... this.
12285 (kernel_mod_LDFLAGS): Rename to ...
12286 (kernel_img_LDFLAGS): ... this.
12287 * conf/x86_64-efi.rmk: Likewise.
12288 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
12289 (read_kernel_image): ... this. All users updated.
12290 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
12291
12292 2009-12-05 Carles Pina i Estany <carles@pina.cat>
12293
12294 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
12295 (print_spaces): New function.
12296 (grub_print_ucs4): New function.
12297 (getstringwidth): New function.
12298 (print_message_indented): New function.
12299 (print_message): Gettexttize strings using print_message_indented.
12300 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
12301 width.
12302 (get_entry_number): Gettextize and uses dynamic terminal width.
12303 (notify_booting, notify_fallback, notify_execution_failure):
12304 Gettextize.
12305 * normal/menu_entry.c (store_completion): Cleanup the gettextized
12306 string.
12307 (run): Likewise.
12308 (grub_menu_entry_run): Likewise.
12309 * PO/POTFILES: Add normal/menu_entry.c.
12310
12311 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
12312
12313 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
12314
12315 2009-12-05 Carles Pina i Estany <carles@pina.cat>
12316
12317 * util/grub-install.in: Install gettext .mo files.
12318 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
12319
12320 2009-12-05 Carles Pina i Estany <carles@pina.cat>
12321
12322 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
12323 grub_dprintf.
12324
12325 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
12326
12327 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
12328 non-firmware-dependant one in realmode.S takes precedence.
12329
12330 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
12331
12332 * commands/halt.c: Replace misc arch-specific headers with
12333 `<grub/misc.h>'.
12334 * commands/reboot.c: Likewise.
12335 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
12336 `<grub/misc.h>'.
12337 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
12338 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
12339 (kernel_img_SOURCES): ... to here.
12340
12341 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
12342 * include/grub/i386/pc/init.h: Likewise.
12343 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
12344 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
12345
12346 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
12347
12348 * include/grub/i386/halt.h: Remove.
12349 * include/grub/i386/reboot.h: Likewise.
12350
12351 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
12352
12353 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
12354
12355 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
12356 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
12357 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
12358 "progname.h"
12359 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
12360 * util/sparc64/ieee1275/grub-setup.c: Likewise.
12361 (usage): Add missing comma in printf.
12362
12363 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
12364
12365 Use the same reboot approach on i386 coreboot and qemu as we do on
12366 BIOS.
12367
12368 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
12369 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
12370 * kern/i386/reboot.c: Remove.
12371 * include/grub/i386/reboot.h (grub_reboot): Export function.
12372 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
12373 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
12374 0xf000:0xfff0 instead of 0xffff:0x0000.
12375 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
12376 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
12377
12378 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
12379
12380 Fix $srcdir != $objdir build.
12381
12382 * Makefile.in (po/%.po): Rewrite as ...
12383 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
12384
12385 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
12386
12387 Fix GNU/Hurd grub-install crash.
12388 * util/grub-probe.c (probe): Try to access `path' only when it is not
12389 NULL.
12390
12391 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
12392
12393 Correct module naming.
12394
12395 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
12396 (GRUB_MOD_INIT(efi_uga)): ... to this
12397 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
12398 (GRUB_MOD_FINI(efi_uga)): ... to this
12399 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
12400 (GRUB_MOD_INIT(efi_gop)): ... to this
12401 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
12402 (GRUB_MOD_FINI(efi_gop)): ... to this
12403
12404 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
12405
12406 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
12407 translatable.
12408 (usage): Translate `arg' strings using gettext().
12409 Thanks to Jordi Mallach for the suggestion.
12410
12411 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
12412
12413 GOP support. Based on patch from Bean
12414 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
12415
12416 * video/efi_gop.c: New file.
12417 * include/grub/efi/graphics_output.h: Likewise.
12418 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
12419 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
12420 variables.
12421 * conf/x86_64-efi.rmk: Likewise.
12422
12423 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
12424
12425 Rename efi_fb to efi_uga.
12426
12427 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
12428 'efi_uga.mod'.
12429 (efi_fb_mod_SOURCES): Rename this ...
12430 (efi_uga_mod_SOURCES): ... to this.
12431 (efi_fb_mod_CFLAGS): Rename this ...
12432 (efi_uga_mod_CFLAGS): ... to this.
12433 (efi_fb_mod_LDFLAGS): Rename this ...
12434 (efi_uga_mod_LDFLAGS): ... to this.
12435 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
12436 'efi_uga.mod'.
12437 (efi_fb_mod_SOURCES): Rename this ...
12438 (efi_uga_mod_SOURCES): ... to this.
12439 (efi_fb_mod_CFLAGS): Rename this ...
12440 (efi_uga_mod_CFLAGS): ... to this.
12441 (efi_fb_mod_LDFLAGS): Rename this ...
12442 (efi_uga_mod_LDFLAGS): ... to this.
12443 * video/efi_fb.c: Move this ...
12444 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
12445
12446 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
12447
12448 * po/README: New file. Explain our PO file workflow.
12449
12450 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
12451
12452 * po/ChangeLog: Remove. Move relevant entries back to ...
12453 * ChangeLog: ... here.
12454 * po/ca.po: Remove (now handled by TLP).
12455 * po/id.po: Likewise.
12456 * po/zh_CN.po: Likewise.
12457 * Makefile.in (LINGUAS): Initialize in a way that supports
12458 empty set.
12459
12460 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
12461
12462 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
12463 reliing on po/LINGUAS.
12464 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
12465 (po/%.po): ... this.
12466
12467 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
12468
12469 * util/i386/efi/grub-mkimage.c: Include "progname.h".
12470 (main): Use `program_name' instead of nonexistent `progname'.
12471
12472 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
12473
12474 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
12475 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
12476
12477 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
12478
12479 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
12480 commit.
12481 * conf/i386-efi.rmk: Likewise.
12482 * conf/i386-ieee1275.rmk: Likewise.
12483 * conf/powerpc-ieee1275.rmk: Likewise.
12484 * conf/sparc64-ieee1275.rmk: Likewise.
12485 * conf/x86_64-efi.rmk: Likewise.
12486
12487 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
12488
12489 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
12490
12491 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
12492
12493 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
12494
12495 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
12496
12497 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
12498 (grub_mkdevicemap_SOURCES): New variable.
12499 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
12500 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
12501 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
12502 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
12503 (grub_mkdevicemap_SOURCES): Remove.
12504 * conf/i386-efi.rmk: Likewise.
12505 * conf/i386-ieee1275.rmk: Likewise.
12506 * conf/i386-pc.rmk: Likewise.
12507 * conf/powerpc-ieee1275.rmk: Likewise.
12508 * conf/sparc64-ieee1275.rmk: Likewise.
12509 * conf/x86_64-efi.rmk: Likewise.
12510 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
12511 (usage): Fix strings to use `program_name'.
12512 (main): Initialize gettext.
12513 * util/grub-editenv.c: Likewise.
12514 * util/grub-emu.c: Likewise.
12515 * util/grub-fstest.c: Likewise.
12516 * util/grub-mkdevicemap.c: Likewise.
12517 * util/grub-mkfont.c: Likewise.
12518 * util/grub-mkrelpath.c: Likewise.
12519 * util/grub-pe2elf.c: Likewise.
12520 * util/grub-probe.c: Likewise.
12521 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
12522 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
12523 * util/sparc64/ieee1275/grub-setup.c: Likewise.
12524
12525 * util/misc.c: Include `"progname.h"'.
12526 (progname): Remove variable.
12527 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
12528
12529 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
12530
12531 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
12532 printf and print a newline after the menuentry header line.
12533 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
12534
12535 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
12536
12537 autoconf >= 2.60 support $(localedir).
12538
12539 * INSTALL: Note that autoconf 2.60 is required.
12540 * configure.ac (AC_PREREQ): Bump to 2.60.
12541 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
12542 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
12543
12544 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
12545
12546 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
12547 aclocal is run.
12548
12549 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
12550
12551 * normal/main.c (grub_normal_read_line): Fix off-by-one
12552 buffer overflow.
12553
12554 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
12555
12556 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
12557 "parser.grub" in grub_command_execute() call.
12558
12559 2009-11-24 Carles Pina i Estany <carles@pina.cat>
12560
12561 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
12562 * conf/i386-efi.rmk: Likewise.
12563 * conf/i386-ieee1275.rmk: Likewise.
12564 * conf/i386-pc.rmk: Likewise.
12565 * conf/powerpc-ieee1275.rmk: Likewise.
12566 * conf/sparc64-ieee1275.rmk: Likewise.
12567 * conf/x86_64-efi.rmk: Likewise.
12568 * gettext/gettex.c: Include <grub/i18n.h>.
12569 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
12570 here ...
12571 * include/grub/i18n.h: ... to here
12572 * include/grub/i18n.h: ... to here.
12573 * kern/misc.c: Include <grub/i18n.h>
12574 (grub_gettext_dummy): Move above user.
12575
12576 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
12577
12578 * util/Makefile.in (install-local): Convert a `for' into a normal
12579 shell expansion.
12580
12581 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
12582
12583 * autogen.sh: Add automake call.
12584 * config.guess: Remove.
12585 * config.sub: Likewise.
12586 * install-sh: Likewise.
12587
12588 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
12589
12590 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
12591
12592 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
12593
12594 * util/Makefile.in (install-local): Convert a make `$(foreach)'
12595 function to a normal shell `for'.
12596
12597 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
12598
12599 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
12600
12601 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
12602
12603 * util/grub-mkrelpath.c: New file.
12604 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
12605 (grub_mkrelpath_SOURCES): New variable.
12606 * include/grub/util/misc.h: New function prototype.
12607 * util/misc.c (make_system_path_relative_to_its_root): New function.
12608
12609 * util/grub-mkconfig_lib.in (bindir): New variable.
12610 (grub_mkrelpath): Likewise.
12611 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
12612
12613 * util/probe.c (probe): Make the file path relative to its root.
12614 Change a info message to use the GRUB path. Enable again the
12615 check if we can read the file with GRUB facilities.
12616
12617 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
12618 to its root.
12619
12620 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
12621
12622 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
12623 platform.
12624
12625 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
12626
12627 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
12628 strncmp().
12629
12630 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
12631
12632 * util/getroot.c (grub_util_is_dmraid): New function.
12633 (grub_util_get_dev_abstraction): Treat dmraid and multipath
12634 devices as normal ones, not as LVM.
12635
12636 2009-11-23 Carles Pina i Estany <carles@pina.cat>
12637
12638 * conf/common.rmk: Add grub-gettext_lib target and updates
12639 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
12640 LDFLAGS.
12641 * gettext/gettext.c: New file. (Reads mo files).
12642 * include/grub/file.h (grub_file_pread): New prototype.
12643 * include/grub/i18n.h (_): New prototype.
12644 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
12645 prototypes.
12646 * kern/misc.c (grub_gettext_dummy): New function.
12647 * normal/menu_text.c: Include <grub/i18n.h>.
12648 * normal/menu_text.c (print_timeout): Gettexttize string.
12649 * normal/menu_text.c (print_message): Gettexttize string.
12650 * po/POTFILES: Add `normal/menu_text.c'.
12651 * po/ca.po: Add new translations.
12652 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
12653 gettext module and defines locale_dir and lang in grub.cfg.
12654 * NEWS: Add gettext support.
12655
12656 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12657
12658 * util/hostdisk.c: Include `<grub/i18n.h>'.
12659 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
12660 (make_device_name): Rewrite using asprintf.
12661 (convert_system_partition_to_system_disk): Replace 0 with NULL.
12662 (find_system_device): If a device is not found, generate one just
12663 by reusing the OS path name.
12664 (read_device_map): Make it permissible for device.map not to exist.
12665
12666 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12667
12668 * script/sh/execute.c: Move from here ...
12669 * script/execute.c: ... to here. Update all users.
12670 * script/sh/function.c: Move from here ...
12671 * script/function.c: ... to here. Update all users.
12672 * script/sh/lexer.c: Move from here ...
12673 * script/lexer.c: ... to here. Update all users.
12674 * script/sh/main.c: Move from here ...
12675 * script/main.c: ... to here. Update all users.
12676 * script/sh/parser.y: Move from here ...
12677 * script/parser.y: ... to here. Update all users.
12678 * script/sh/script.c: Move from here ...
12679 * script/script.c: ... to here. Update all users.
12680
12681 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12682
12683 * configure.ac: Detect all `emu' platforms. Define
12684 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
12685 --enable-grub-emu logic. Disable include/grub/machine
12686 symlink on `emu' platforms.
12687
12688 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
12689 * gensymlist.sh.in: Likewise.
12690
12691 * include/grub/i386/coreboot/machine.h: Remove file.
12692 * include/grub/i386/efi/machine.h: Likewise.
12693 * include/grub/i386/ieee1275/machine.h: Likewise.
12694 * include/grub/i386/pc/machine.h: Likewise.
12695 * include/grub/i386/qemu/machine.h: Likewise.
12696 * include/grub/powerpc/ieee1275/machine.h: Likewise.
12697 * include/grub/sparc64/ieee1275/machine.h: Likewise.
12698 * include/grub/x86_64/efi/machine.h: Likewise.
12699
12700 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
12701 * commands/halt.c: Likewise.
12702 * commands/reboot.c: Likewise.
12703 * include/grub/autoefi.h: Likewise.
12704 * include/grub/i386/at_keyboard.h: Likewise.
12705 * include/grub/i386/kernel.h: Likewise.
12706 * include/grub/i386/loader.h: Likewise.
12707 * include/grub/i386/pc/memory.h: Likewise.
12708 * kern/dl.c: Likewise.
12709 * kern/i386/coreboot/init.c: Likewise.
12710 * loader/i386/bsd.c: Likewise.
12711 * loader/i386/linux.c: Likewise.
12712 * loader/multiboot_loader.c: Likewise.
12713 * term/i386/pc/serial.c: Likewise.
12714 * term/usb_keyboard.c: Likewise.
12715
12716 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
12717 `<grub/machine/machine.h>'
12718 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
12719 * util/misc.c: Remove `<grub/machine/machine.h>' and
12720 `<grub/machine/time.h>'.
12721
12722 * Makefile.in (enable_grub_emu): Remove variable.
12723 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
12724
12725 * conf/any-emu.rmk: New file.
12726 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
12727 (grub_emu_init.c): Move from here ...
12728 * conf/any-emu.rmk: ... to here.
12729
12730 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
12731 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
12732 * conf/any-emu.rmk: ... to here.
12733
12734 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12735
12736 * include/grub/parser.h (grub_parser_register): Document need
12737 of `name' parameter.
12738 * normal/main.c (grub_normal_read_line): Simplify prompt string.
12739 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
12740 "sh" to "grub".
12741
12742 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12743
12744 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
12745 `$(XGETTEXT)'.
12746 * include/grub/i18n.h (N_): New macro.
12747 * util/mkisofs/mkisofs.h: Likewise.
12748 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
12749 around N_().
12750 (usage): Use gettext() to translate help strings when printing them.
12751
12752 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12753
12754 Based on patch from Bean
12755 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
12756
12757 * video/efi_fb.c: New file.
12758 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
12759 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
12760 variables.
12761 * conf/x86_64-efi.rmk: Likewise.
12762
12763 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
12764
12765 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
12766 * util/i386/pc/grub-setup.c: Likewise.
12767
12768 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
12769
12770 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
12771 <hurd/fs.h>
12772 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
12773 file_get_storage_info to implement grub_guess_root_device.
12774
12775 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
12776
12777 * Makefile.in (target): Use make's builtin $(shell) function
12778 instead of calling directly $(SHELL) to create the locale directories,
12779 inside the $(foreach) function.
12780
12781 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
12782
12783 * util/grub-mkrescue.in: Print an error and usage if output option
12784 has not been given.
12785
12786 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
12787
12788 Patch from Loïc Minier <loic.minier@ubuntu.com>.
12789 * util/grub.d/30_os-prober.in: Cope with Linux entries where
12790 root and /boot are on different devices.
12791
12792 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
12793
12794 Fix build for srcdir != objdir.
12795
12796 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
12797 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
12798 $(srcdir).
12799 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
12800 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
12801 reference for input.
12802
12803 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
12804
12805 * util/grub-mkrescue.in: Use source directory direcly (without copiing
12806 or hardlinking it). Remove -J option, Joliet is not compatible with
12807 multiple source directories.
12808
12809 2009-11-21 Carles Pina i Estany <carles@pina.cat>
12810 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
12811
12812 * util/grub-mkrescue.in: Recognize `--override-directory' option.
12813 (process_input_dir): New function. Process an arbitrary input
12814 directory.
12815 Misc adjustments to support both "override mode" and system-wide mode.
12816
12817 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
12818
12819 * configure.ac (UNIFONT_BDF): Rename to ...
12820 (FONT_SOURCE): ... this. Update all users.
12821
12822 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
12823
12824 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
12825 to the list of unifont files to look for.
12826
12827 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
12828
12829 Patch from Joe Auricchio <jauricchio@gmail.com>
12830 * commands/minicmd.c (grub_mini_cmd_clear): New function.
12831 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
12832 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
12833
12834 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
12835
12836 * Makefile.in (install-local): Add a missing backslash.
12837
12838 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
12839
12840 * include/grub/x86_64/io.h: New file.
12841
12842 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
12843
12844 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
12845 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
12846 Include `"progname.h"'.
12847 (main): Initialize gettext.
12848 * util/i386/pc/grub-setup.c: Gettexttize.
12849 * util/i386/pc/grub-mkimage.c: Likewise.
12850
12851 * Makefile.in (po/*.po): Redefine as ...
12852 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
12853
12854 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
12855
12856 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
12857
12858 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
12859 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
12860 (program_name): Remove.
12861 (main): Initialize gettext support.
12862 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
12863 Include `<libintl.h>'.
12864 (_): New macro.
12865
12866 * util/mkisofs/eltorito.c: Gettexttize.
12867 * util/mkisofs/joliet.c: Likewise.
12868 * util/mkisofs/mkisofs.c: Likewise.
12869 * util/mkisofs/multi.c: Likewise.
12870 * util/mkisofs/rock.c: Likewise.
12871 * util/mkisofs/tree.c: Likewise.
12872 * util/mkisofs/write.c: Likewise.
12873
12874 * po/POTFILES: Update with new files.
12875
12876 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
12877
12878 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
12879 * util/mkisofs/iso9660.h: Likewise.
12880 * util/mkisofs/joliet.c: Likewise.
12881 * util/mkisofs/mkisofs.c: Likewise.
12882 * util/mkisofs/mkisofs.h: Likewise.
12883 * util/mkisofs/rock.c: Likewise.
12884 * util/mkisofs/tree.c: Likewise.
12885 * util/mkisofs/write.c: Likewise.
12886
12887 * util/mkisofs/eltorito.c (rcsid): Remove.
12888 * util/mkisofs/hash.c: Likewise.
12889 * util/mkisofs/joliet.c: Likewise.
12890 * util/mkisofs/name.c: Likewise.
12891 * util/mkisofs/rock.c: Likewise.
12892 * util/mkisofs/tree.c: Likewise.
12893 * util/mkisofs/write.c: Likewise.
12894
12895 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
12896
12897 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
12898 instead of static allocation.
12899 * util/mkisofs/match.h: Likewise.
12900
12901 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
12902
12903 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
12904 and `util/grub.d/10_linux.in'.
12905 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
12906 translatable Shell files.
12907
12908 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
12909
12910 * Makefile.in ($(srcdir)/aclocal.m4): New target.
12911
12912 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12913
12914 * INSTALL: Document Automake is needed for bootstrap.
12915 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
12916 * util/grub.d/10_kfreebsd.in (bindir): New variable.
12917 Add gettext initialization.
12918 (kfreebsd_entry): Make menuentry output translatable.
12919
12920 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12921
12922 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
12923 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
12924 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
12925 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
12926 (LINGUAS): Auto-generate using `po/LINGUAS'.
12927 * po/LINGUAS: New file.
12928
12929 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12930
12931 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
12932 other things).
12933 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
12934 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
12935 bindtextdomain() calls for gettext initialization.
12936
12937 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12938
12939 * gnulib/progname.c: New file (imported from Gnulib).
12940 * gnulib/progname.h: Likewise.
12941 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
12942 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
12943 (usage): Replace `progname' with `program_name'.
12944 (main): Use set_program_name() for program name initialization.
12945
12946 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12947
12948 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
12949 from here ...
12950 * Makefile.in (CPPFLAGS): ... to here.
12951
12952 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
12953
12954 * aclocal.m4: Move from here ...
12955 * acinclude.m4: ... to here.
12956 * autogen.sh: Add call to `aclocal'.
12957 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
12958
12959 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
12960
12961 * Makefile.in (CLEANFILES): Add `po/*.mo'.
12962 (LINGUAS): New variable.
12963 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
12964 (install-local): Install MO files.
12965 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
12966 * include/grub/i18n.h: New file.
12967 * po/POTFILES: New file.
12968 * po/ca.po: New file.
12969 * util/grub.d/10_linux.in (bindir): New variable.
12970 Add gettext initialization.
12971 (linux_entry): Make menuentry output translatable.
12972 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
12973 (usage): Make --help output translatable.
12974 (main): Initialize gettext.
12975
12976 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12977
12978 * import_gcry.py: New file (written by Vladimir with minor
12979 adjustments).
12980 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
12981 ciphers.
12982 * INSTALL: Document that Python is required for bootstrap.
12983
12984 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12985
12986 Import ciphers from libgcrypt 1.4.4.
12987
12988 * lib/libgcrypt/cipher/ChangeLog
12989 * lib/libgcrypt/cipher/ac.c
12990 * lib/libgcrypt/cipher/arcfour.c
12991 * lib/libgcrypt/cipher/bithelp.h
12992 * lib/libgcrypt/cipher/blowfish.c
12993 * lib/libgcrypt/cipher/camellia-glue.c
12994 * lib/libgcrypt/cipher/camellia.c
12995 * lib/libgcrypt/cipher/camellia.h
12996 * lib/libgcrypt/cipher/cast5.c
12997 * lib/libgcrypt/cipher/cipher.c
12998 * lib/libgcrypt/cipher/crc.c
12999 * lib/libgcrypt/cipher/des.c
13000 * lib/libgcrypt/cipher/dsa.c
13001 * lib/libgcrypt/cipher/ecc.c
13002 * lib/libgcrypt/cipher/elgamal.c
13003 * lib/libgcrypt/cipher/hash-common.c
13004 * lib/libgcrypt/cipher/hash-common.h
13005 * lib/libgcrypt/cipher/hmac-tests.c
13006 * lib/libgcrypt/cipher/md.c
13007 * lib/libgcrypt/cipher/md4.c
13008 * lib/libgcrypt/cipher/md5.c
13009 * lib/libgcrypt/cipher/primegen.c
13010 * lib/libgcrypt/cipher/pubkey.c
13011 * lib/libgcrypt/cipher/rfc2268.c
13012 * lib/libgcrypt/cipher/rijndael-tables.h
13013 * lib/libgcrypt/cipher/rijndael.c
13014 * lib/libgcrypt/cipher/rmd.h
13015 * lib/libgcrypt/cipher/rmd160.c
13016 * lib/libgcrypt/cipher/rsa.c
13017 * lib/libgcrypt/cipher/seed.c
13018 * lib/libgcrypt/cipher/serpent.c
13019 * lib/libgcrypt/cipher/sha1.c
13020 * lib/libgcrypt/cipher/sha256.c
13021 * lib/libgcrypt/cipher/sha512.c
13022 * lib/libgcrypt/cipher/tiger.c
13023 * lib/libgcrypt/cipher/twofish.c
13024 * lib/libgcrypt/cipher/whirlpool.c
13025
13026 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
13027
13028 Fix build for systems without error().
13029
13030 * gnulib/error.c: New file (imported from Gnulib).
13031 * gnulib/error.h: Likewise.
13032 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
13033 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
13034 (this variable is now used by error()).
13035
13036 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
13037
13038 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
13039 instead of relying that char is signed.
13040
13041 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13042
13043 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
13044 blocksize different from specified.
13045 (grub_pxefs_read): Likewise.
13046
13047 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
13048
13049 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
13050
13051 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
13052 (grub_ata_readwrite): Likewise. Update 2 format strings.
13053 (grub_atapi_read): Likewise.
13054
13055 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
13056 * conf/i386.rmk (pkglib_MODULES): ... to here ...
13057 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
13058 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
13059 (ata_mod_LDFLAGS): Move from here ...
13060 * conf/i386.rmk: ... to here ...
13061 * conf/x86_64-efi.rmk: ... and here.
13062 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
13063 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
13064
13065 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
13066
13067 Relicense multiboot.h, with RMS' blessing.
13068
13069 * include/multiboot.h: Change to X11 license.
13070
13071 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
13072
13073 Support --version in grub-mkisofs.
13074
13075 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
13076 (OPTION_VERSION): New macro.
13077 (ld_options): Recognize --version.
13078 (usage): Move `program_name' from here ...
13079 (program_name): ... to here. Add `static' qualifier.
13080 (main): Recognize `OPTION_VERSION'.
13081
13082 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
13083
13084 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
13085 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
13086
13087 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
13088
13089 Fix help2man generation for mkisofs.
13090
13091 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
13092 (usage): Send output to stdout (rather than stderr).
13093
13094 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
13095
13096 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
13097 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
13098 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
13099 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
13100 (bin_SCRIPTS): Add `grub-mkfloppy'.
13101 (grub_mkfloppy_SOURCES): New variable.
13102
13103 * util/grub-mkrescue.in: New file.
13104 * util/i386/pc/grub-mkfloppy.in: New file.
13105
13106 * util/i386/coreboot/grub-mkrescue.in: Remove.
13107 * util/i386/pc/grub-mkrescue.in: Remove.
13108
13109 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
13110
13111 * include/grub/multiboot.h (struct grub_multiboot_header): Move
13112 from here ...
13113 * include/multiboot.h (struct multiboot_header): ... to here. Update
13114 all users.
13115 * include/grub/multiboot.h (struct grub_multiboot_info): Move
13116 from here ...
13117 * include/multiboot.h (struct multiboot_info): ... to here. Update
13118 all users.
13119 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
13120 from here ...
13121 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
13122 Update all users.
13123 * include/grub/multiboot.h (struct grub_mod_list): Move
13124 from here ...
13125 * include/multiboot.h (struct multiboot_mod_list): ... to here.
13126 Update all users.
13127
13128 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
13129
13130 * include/multiboot2.h (multiboot_word): Rename from this ...
13131 (multiboot2_word): ... to this. Update all users.
13132 (multiboot_header): Rename from this ...
13133 (multiboot2_header): ... to this. Update all users.
13134 (multiboot_tag_header): Rename from this ...
13135 (multiboot2_tag_header): ... to this. Update all users.
13136 (multiboot_tag_start): Rename from this ...
13137 (multiboot2_tag_start): ... to this. Update all users.
13138 (multiboot_tag_name): Rename from this ...
13139 (multiboot2_tag_name): ... to this. Update all users.
13140 (multiboot_tag_module): Rename from this ...
13141 (multiboot2_tag_module): ... to this. Update all users.
13142 (multiboot_tag_memory): Rename from this ...
13143 (multiboot2_tag_memory): ... to this. Update all users.
13144 (multiboot_tag_unused): Rename from this ...
13145 (multiboot2_tag_unused): ... to this. Update all users.
13146 (multiboot_tag_end): Rename from this ...
13147 (multiboot2_tag_end): ... to this. Update all users.
13148
13149 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
13150
13151 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
13152 this platform we should support Multiboot1 first.
13153
13154 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
13155 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
13156 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
13157
13158 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
13159
13160 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
13161 of write calls (converting them to fwrite() if they aren't already).
13162 (get_torito_desc): Likewise.
13163 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
13164
13165 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
13166
13167 * util/i386/pc/grub-install.in: Move from here ...
13168 * util/grub-install.in: ... to here. Update all users.
13169
13170 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
13171
13172 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
13173
13174 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
13175
13176 Support for El Torito without floppy emulation.
13177
13178 * util/mkisofs/eltorito.c: Include `<errno.h>'.
13179 (init_boot_catalog): Improve error handling.
13180 (get_torito_desc): Don't use floppy emulation unless requested by
13181 user. Patch boot information table when requested via
13182 `-boot-info-table'.
13183 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
13184 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
13185 (use_boot_info_table): New variables.
13186 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
13187 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
13188 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
13189 `--eltorito-emul-floppy'.
13190 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
13191 and `OPTION_ELTORITO_EMUL_FLOPPY'.
13192 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
13193 (use_boot_info_table, get_731): New prototypes.
13194 * util/mkisofs/write.c (get_731): New function.
13195
13196 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
13197
13198 Fix the generation of the man page.
13199
13200 * util/pc/i386/grub-install.in: Source
13201 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
13202
13203 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
13204
13205 Large file support for grub-mkisofs.
13206
13207 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
13208 * util/mkisofs/mkisofs.c (next_extent, last_extent)
13209 (session_start): Upgrade type to `uint64_t'. Update all users.
13210 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
13211 (struct directory_entry): Upgrade type of `starting_block' and
13212 `size' to `uint64_t'. Update all users.
13213 (struct deferred): Remove unused structure.
13214 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
13215 Update all users.
13216 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
13217 file is larger than `UINT32_MAX'.
13218 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
13219 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
13220 return value.
13221 (struct deferred_write): Upgrade type of `extent' and `size' to
13222 `uint64_t'. Update all users.
13223 (last_extent_written): Upgrade type to `uint64_t'. Update all
13224 users.
13225 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
13226 Update all users. Upgrade type of `remain' to `int64_t' and
13227 `use' to `size_t'. Use error() to handle fread() errors.
13228 (write_files): Rely on write_one_file() rather than calling
13229 xfwrite() directly.
13230
13231 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
13232
13233 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
13234
13235 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13236
13237 * util/mkisofs/fnmatch.c: Remove.
13238 * util/mkisofs/getopt1.c: Likewise.
13239 * util/mkisofs/getopt.c: Likewise.
13240 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
13241 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
13242 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
13243 `gnulib/getopt1.c' and `gnulib/getopt.c'.
13244 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
13245
13246 * configure.ac: Detect `mingw32msvc' host_os.
13247 Check for lstat(), getuid() and getgid().
13248
13249 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
13250 instances of `u_char' with `uint8_t'.
13251
13252 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
13253 [!HAVE_GETUID] (getuid): New function (stub).
13254 [!HAVE_GETGID] (getgid): Likewise.
13255 [!HAVE_LSTAT] (lstat): Likewise.
13256 [!S_IROTH] (S_IROTH): New macro (dummy).
13257 [!S_IRGRP] (S_IRGRP): Likewise.
13258
13259 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13260
13261 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
13262 conditional expression).
13263
13264 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13265
13266 Import from Gnulib.
13267
13268 * gnulib/fnmatch.c: New file.
13269 * gnulib/fnmatch.h: Likewise.
13270 * gnulib/fnmatch_loop.c: Likewise.
13271 * gnulib/getopt.c: Likewise.
13272 * gnulib/getopt.h: Likewise.
13273 * gnulib/getopt1.c: Likewise.
13274 * gnulib/getopt_int.h: Likewise.
13275 * gnulib/gettext.h: Likewise.
13276
13277 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13278
13279 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
13280 * normal/handler.c (read_handler_list): Likewise.
13281
13282 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13283
13284 Misc cleanup.
13285
13286 * kern/command.c (grub_register_command_prio): Use
13287 grub_zalloc() instead of explicitly zeroing data.
13288 * kern/list.c: Include `<grub/mm.h>'.
13289 (grub_named_list_find): Replace `0' with `NULL'.
13290 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
13291 (fs_module_list): Change type to `grub_named_list_t'. Update all
13292 users.
13293 * normal/dyncmd.c (read_command_list): Add space between function
13294 call and parenthesis.
13295 * normal/handler.c (read_handler_list): Likewise.
13296
13297 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13298
13299 * normal/auth.c (punishment_delay): Moved from here ...
13300 (grub_auth_strcmp): ... to here (inside function).
13301
13302 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13303
13304 * include/grub/list.h (struct grub_named_list): Remove `const'
13305 qualifier from `name'.
13306 (struct grub_prio_list): Likewise.
13307
13308 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13309
13310 * normal/auth.c: Include `<grub/time.h>'.
13311 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
13312
13313 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13314
13315 * normal/auth.c (punishment_delay): New variable.
13316 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
13317 (grub_auth_check_authentication): Punish failed login attempts with
13318 an incremental (2^N) delay.
13319
13320 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13321
13322 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
13323 path with $(srcdir).
13324
13325 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13326
13327 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
13328
13329 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13330
13331 * util/i386/coreboot/grub-mkrescue.in: New file.
13332 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
13333 variables.
13334
13335 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
13336 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
13337 * configure.ac: Add header and function checks to satisfy grub-mkisofs
13338 requirements.
13339 * util/mkisofs/defaults.h: New file.
13340 * util/mkisofs/eltorito.c: Likewise.
13341 * util/mkisofs/exclude.h: Likewise.
13342 * util/mkisofs/fnmatch.c: Likewise.
13343 * util/mkisofs/getopt.c: Likewise.
13344 * util/mkisofs/getopt1.c: Likewise.
13345 * util/mkisofs/hash.c: Likewise.
13346 * util/mkisofs/include/fctldefs.h: Likewise.
13347 * util/mkisofs/include/mconfig.h: Likewise.
13348 * util/mkisofs/include/prototyp.h: Likewise.
13349 * util/mkisofs/include/statdefs.h: Likewise.
13350 * util/mkisofs/iso9660.h: Likewise.
13351 * util/mkisofs/joliet.c: Likewise.
13352 * util/mkisofs/match.c: Likewise.
13353 * util/mkisofs/match.h: Likewise.
13354 * util/mkisofs/mkisofs.c: Likewise.
13355 * util/mkisofs/mkisofs.h: Likewise.
13356 * util/mkisofs/multi.c: Likewise.
13357 * util/mkisofs/name.c: Likewise.
13358 * util/mkisofs/rock.c: Likewise.
13359 * util/mkisofs/tree.c: Likewise.
13360 * util/mkisofs/write.c: Likewise.
13361
13362 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13363
13364 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
13365 being insecure.
13366
13367 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
13368
13369 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
13370 `grub-mkimage' (and use $0 when possible).
13371
13372 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
13373
13374 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
13375 error message for excessively large memory map.
13376
13377 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
13378
13379 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
13380 executable bit.
13381
13382 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
13383
13384 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
13385 message for coreboot users.
13386
13387 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
13388
13389 Fix build with GNU gold.
13390
13391 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
13392 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
13393 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
13394 link addresses.
13395 * aclocal.m4: Likewise.
13396
13397 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
13398
13399 * configure.ac (AC_PREREQ): Bump to 2.59d.
13400 * INSTALL: Make it more clear when Autoconf and Ruby are
13401 needed and when to run `./autogen.sh'.
13402
13403 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13404
13405 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
13406 OSes.
13407
13408 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13409
13410 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
13411
13412 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13413
13414 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
13415 giving it to GNU Mach.
13416
13417 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13418
13419 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
13420 GNU partition number to get internal GRUB partition number.
13421
13422 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13423
13424 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
13425 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
13426
13427 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
13428
13429 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
13430 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
13431 case.
13432
13433 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
13434
13435 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
13436
13437 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
13438
13439 Fix build problem.
13440
13441 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
13442 `-isystem=$(srcdir)/include'.
13443
13444 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
13445
13446 * util/i386/pc/grub-install.in: Remove hint that device.map should be
13447 checked (grub-install doesn't currently rely on it).
13448
13449 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
13450
13451 Revert SVN r2660.
13452
13453 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
13454 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
13455 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
13456 * conf/i386-ieee1275.rmk: Likewise.
13457 * conf/i386-pc.rmk: Likewise.
13458 * conf/powerpc-ieee1275.rmk: Likewise.
13459 * conf/sparc64-ieee1275.rmk: Likewise.
13460 * conf/x86_64-efi.rmk: Likewise.
13461
13462 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
13463
13464 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
13465
13466 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
13467
13468 * include/grub/misc.h: Stop checking for APPLE_CC.
13469
13470 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
13471
13472 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
13473 doesn't cause an infinite call loop.
13474
13475 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
13476
13477 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
13478 strings.
13479
13480 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13481
13482 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
13483 variable.
13484 * Makefile.in: Likewise.
13485
13486 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13487
13488 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
13489
13490 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13491
13492 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
13493
13494 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13495
13496 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
13497
13498 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13499
13500 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
13501 from here ...
13502 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
13503
13504 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13505
13506 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
13507 in $(MAKEINFO) invocation. This makes it clear in output that
13508 errors are being ignored.
13509
13510 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13511
13512 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
13513 from here ...
13514 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
13515 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
13516 * conf/i386-ieee1275.rmk: Likewise.
13517 * conf/i386-pc.rmk: Likewise.
13518 * conf/powerpc-ieee1275.rmk: Likewise.
13519 * conf/sparc64-ieee1275.rmk: Likewise.
13520 * conf/x86_64-efi.rmk: Likewise.
13521
13522 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
13523
13524 * util/grub-editenv.c (main): If only a command is given, use
13525 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
13526 (usage): FILENAME is now optional and has a default.
13527
13528 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
13529
13530 Improve grub-mkconfig performance when there are several menu
13531 entries on a single filesystem.
13532
13533 * util/grub.d/10_linux.in (linux_entry): Cache the output of
13534 prepare_grub_to_access_device.
13535 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
13536 * util/grub.d/30_os-prober.in: Likewise.
13537
13538 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13539
13540 * util/grub.d/10_freebsd.in: Remove.
13541 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
13542 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
13543
13544 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13545
13546 * docs/grub.cfg: Fix example usage of *BSD loaders.
13547
13548 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13549
13550 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
13551 grub_util_error() call.
13552
13553 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13554
13555 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
13556 `reserved_first_sector' member.
13557 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
13558 `reserved_first_sector' to 1.
13559 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
13560 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
13561 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
13562 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
13563 filesystems which begin at first sector.
13564 (options): New option --skip-fs-probe.
13565 (main): Handle --skip-fs-probe and pass it to setup().
13566
13567 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13568
13569 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
13570 (memset): Fix function prototype.
13571
13572 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13573 2009-10-25 Vasily Averin <vvs@parallels.com>
13574
13575 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
13576 `dirent.direntlen == 0'.
13577
13578 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13579
13580 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
13581 `cpio'.
13582 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
13583
13584 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13585
13586 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
13587 `__trampoline_setup' and `__ucmpdi2'.
13588 * include/grub/powerpc/libgcc.h: Only export symbols for functions
13589 that libgcc provides.
13590
13591 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13592
13593 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
13594 * include/grub/sparc64/libgcc.h (memset): Likewise.
13595 * include/grub/misc.h (memset, memcmp): New function prototypes.
13596
13597 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13598
13599 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
13600 `cpio'.
13601 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
13602
13603 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13604
13605 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
13606 * docs/grub.cfg: Compensate for recent change in multiboot
13607 loader (since 2009-08-14 it won't pass filename to payload).
13608 * util/grub.d/10_hurd.in: Likewise.
13609
13610 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
13611
13612 * config.guess: Update to latest version from config git
13613 repository.
13614 * config.sub: Likewise.
13615
13616 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
13617
13618 Fix build on sparc64.
13619
13620 * configure.ac: Perform checks for libgcc symbols before
13621 adding `-nostdlib' to LDFLAGS.
13622
13623 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13624
13625 Let user specify OpenBSD root device.
13626
13627 * loader/i386/bsd.c (openbsd_root): New variable.
13628 (openbsd_opts): New option 'root'.
13629 (OPENBSD_ROOT_ARG): New macro.
13630 (grub_openbsd_boot): Use 'openbsd_root'.
13631 (grub_cmd_openbsd): Fill 'openbsd_root'.
13632
13633 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
13634
13635 * NEWS: Misc adjustments.
13636
13637 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13638
13639 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
13640
13641 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
13642
13643 * configure.ac: Bump version to 1.97.
13644
13645 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
13646
13647 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
13648 -mno-3dnow on x86 architectures. Some toolchains enable these
13649 features by default, but they rely on registers that aren't enabled
13650 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
13651
13652 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
13653
13654 Make entry text a bit more readable.
13655
13656 * util/grub.d/10_linux.in: Add `with' before `Linux'.
13657
13658 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
13659
13660 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
13661
13662 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
13663
13664 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
13665 operations.
13666
13667 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
13668
13669 * configure.ac: Add missing dollar.
13670
13671 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
13672
13673 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
13674
13675 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
13676 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
13677 exports.
13678 * include/grub/sparc64/libgcc.h: Likewise. Use
13679 preprocessor conditionals.
13680
13681 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
13682
13683 * conf/common.rmk (grub-dumpbios): Remove rule.
13684 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
13685 * util/grub-dumpbios.in: Remove file.
13686
13687 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
13688
13689 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
13690 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
13691
13692 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
13693 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
13694 users.
13695
13696 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
13697 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
13698 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
13699 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
13700 users.
13701
13702 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
13703
13704 * term/tparm.c: Switch to GPLv3.
13705
13706 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
13707
13708 * include/grub/i386/cpuid.h: Add header protection.
13709
13710 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
13711
13712 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
13713
13714 * include/grub/i386/cpuid.h: New file.
13715 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
13716 (has_longmode): Rename to ...
13717 (grub_cpuid_has_longmode): ... this. Update all users. Remove
13718 `static' attribute.
13719 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
13720 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
13721 on a CPU that doesn't implement AMD64 instruction set.
13722
13723 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
13724
13725 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
13726 that version.texi is rebuilt on version number changes.
13727
13728 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
13729
13730 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
13731 Fixes bug #27602.
13732
13733 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
13734
13735 * util/i386/pc/grub-install.in: Source
13736 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
13737 that the --grub-probe option will work.
13738 * util/sparc64/ieee1275/grub-install.in: Likewise.
13739
13740 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
13741
13742 * configure.ac: Bump version to 1.97~beta4.
13743
13744 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
13745
13746 Resync grub-mkdevicemap in x86_64-efi.
13747
13748 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
13749 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
13750 `util/devicemap.c'.
13751
13752 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
13753
13754 * util/grub-editenv.c (create_envblk_file): Write new block with a
13755 .new suffix and then rename it into place, to ensure atomic
13756 creation.
13757
13758 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
13759
13760 Do not automatically install headers.
13761
13762 * Makefile.in (include_DATA): Remove. Update all users.
13763
13764 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
13765
13766 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
13767 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
13768
13769 * util/osdetect.lua: Remove.
13770 * script/lua/lauxlib.c: Likewise.
13771 * script/lua/ldebug.c: Likewise.
13772 * script/lua/grub_main.c: Likewise.
13773 * script/lua/lauxlib.h: Likewise.
13774 * script/lua/ldebug.h: Likewise.
13775 * script/lua/ltablib.c: Likewise.
13776 * script/lua/liolib.c: Likewise.
13777 * script/lua/lstrlib.c: Likewise.
13778 * script/lua/lualib.h: Likewise.
13779 * script/lua/ldo.c: Likewise.
13780 * script/lua/ldump.c: Likewise.
13781 * script/lua/ldo.h: Likewise.
13782 * script/lua/loslib.c: Likewise.
13783 * script/lua/lundump.c: Likewise.
13784 * script/lua/grub_lib.c: Likewise.
13785 * script/lua/ldblib.c: Likewise.
13786 * script/lua/lundump.h: Likewise.
13787 * script/lua/lmem.c: Likewise.
13788 * script/lua/grub_lib.h: Likewise.
13789 * script/lua/lmathlib.c: Likewise.
13790 * script/lua/lstate.c: Likewise.
13791 * script/lua/ltm.c: Likewise.
13792 * script/lua/lvm.c: Likewise.
13793 * script/lua/lmem.h: Likewise.
13794 * script/lua/lstate.h: Likewise.
13795 * script/lua/ltm.h: Likewise.
13796 * script/lua/ltable.c: Likewise.
13797 * script/lua/lvm.h: Likewise.
13798 * script/lua/llex.c: Likewise.
13799 * script/lua/lgc.c: Likewise.
13800 * script/lua/grub_lua.h: Likewise.
13801 * script/lua/loadlib.c: Likewise.
13802 * script/lua/lfunc.c: Likewise.
13803 * script/lua/lopcodes.c: Likewise.
13804 * script/lua/lparser.c: Likewise.
13805 * script/lua/ltable.h: Likewise.
13806 * script/lua/llex.h: Likewise.
13807 * script/lua/lgc.h: Likewise.
13808 * script/lua/lfunc.h: Likewise.
13809 * script/lua/lbaselib.c: Likewise.
13810 * script/lua/lopcodes.h: Likewise.
13811 * script/lua/lparser.h: Likewise.
13812 * script/lua/lzio.c: Likewise.
13813 * script/lua/linit.c: Likewise.
13814 * script/lua/lobject.c: Likewise.
13815 * script/lua/llimits.h: Likewise.
13816 * script/lua/lstring.c: Likewise.
13817 * script/lua/lzio.h: Likewise.
13818 * script/lua/lapi.c: Likewise.
13819 * script/lua/lcode.c: Likewise.
13820 * script/lua/lua.h: Likewise.
13821 * script/lua/lobject.h: Likewise.
13822 * script/lua/lstring.h: Likewise.
13823 * script/lua/lapi.h: Likewise.
13824 * script/lua/lcode.h: Likewise.
13825 * script/lua/luaconf.h: Likewise.
13826
13827 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
13828
13829 * docs/grub.texi (Command-line and menu entry commands): Document
13830 date and echo commands.
13831
13832 2009-09-24 Pavel Roskin <proski@gnu.org>
13833
13834 * include/grub/kernel.h (struct grub_module_header): Remove
13835 `grub_module_header_types'. Make `type' unsigned. Make `size'
13836 32-bit on all platforms.
13837 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
13838 8-bit field. Use grub_host_to_target32() for `size'.
13839 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
13840 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
13841 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
13842
13843 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
13844
13845 Fix "lost keypress" bug in at_keyboard.
13846
13847 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
13848 Checks for readyness of input buffer (without flushing it).
13849 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
13850 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
13851
13852 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
13853
13854 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
13855 size check within GRUB_MACHINE_PCBIOS section.
13856
13857 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
13858
13859 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
13860 return value.
13861 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
13862 KEYBOARD_ISREADY check.
13863 (grub_at_keyboard_checkkey): Rename to ...
13864 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
13865 Remove gratuitous cast.
13866
13867 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
13868
13869 * configure.ac: Call AC_PROG_MKDIR_P.
13870 * Makefile.in (docs/stamp-vti): Create docs directory. Create
13871 version.texi in $(builddir) rather than $(srcdir).
13872 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
13873 to makeinfo's @include search path.
13874
13875 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
13876
13877 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
13878
13879 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
13880
13881 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
13882 for `*.dpkg-new'.
13883
13884 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
13885
13886 Build info documentation. Some code borrowed from Automake.
13887
13888 * configure.ac: Check for makeinfo.
13889 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
13890 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
13891 docs/version.texi.
13892 (MOSTLYCLEANFILES): Add vti.tmp.
13893 (docs/version.texi, docs/stamp-vti): Update automatically.
13894 (docs/grub.info): Build info documentation. Use --force and ignore
13895 errors for now.
13896 (all-local): Add $(INFOS).
13897 (install-local): Install info files.
13898 (uninstall): Uninstall info files.
13899 * docs/version.texi: Remove from revision control. This file is
13900 automatically generated on build now.
13901 * gendistlist.sh: Add `*.info'.
13902
13903 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
13904
13905 * kern/term.c: Fix indentation.
13906
13907 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
13908
13909 * util/hostdisk.c: Fix a comment.
13910
13911 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
13912
13913 Fix regression introduced in r2539.
13914
13915 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
13916 to 0xA1.
13917
13918 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
13919
13920 * util/grub.d/30_os-prober.in: Don't throw away stderr from
13921 os-prober. Under normal operation, it does not print anything to
13922 stderr; if it does, we need to debug it, and throwing away stderr
13923 makes that excessively difficult.
13924
13925 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
13926
13927 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
13928
13929 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
13930
13931 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
13932 AC_LANG_PROGRAM from autoconf.
13933 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
13934 prototypes (fixes warning).
13935
13936 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
13937 `--disable-werror' was used.
13938
13939 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
13940
13941 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
13942 uninitialized `lastaddr'.
13943
13944 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
13945
13946 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
13947
13948 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
13949
13950 * commands/test.c (get_fileinfo): Return immediately if
13951 grub_fs_probe fails.
13952
13953 2009-09-14 José Martínez <xosemp@gmail.com>
13954
13955 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
13956
13957 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
13958
13959 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
13960 output.
13961
13962 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
13963
13964 * configure.ac: Remove --enable-grub-pe2elf. Only build
13965 grub-pe2elf when needed by the build system itself.
13966 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
13967
13968 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
13969
13970 * configure.ac: Bump version to 1.97~beta3.
13971 * docs/version.texi: Likewise.
13972
13973 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
13974
13975 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
13976 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
13977 from here ...
13978 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
13979 (grub_linux_setup_video): ... to here (with some adjustments).
13980
13981 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
13982
13983 Fix memory corruption issue (spotted by Colin Watson).
13984
13985 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
13986 causing returned size to be stored in an incorrect memory location.
13987 Fix use of uninitialized value when storing the returned size.
13988
13989 2009-09-12 Yves Blusseau <blusseau@zetam.org>
13990
13991 Change clean rules to properly remove files
13992
13993 * genmk.rb: add new clean rules
13994 * Makefile.in (clean): add the new targets
13995 (mostlyclean): likewise
13996
13997 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
13998
13999 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
14000 to grub_uint64_t.
14001 * fs/ntfs.c (init_file): Understand 64-bit sizes for
14002 non-resident files.
14003
14004 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
14005
14006 * configure.ac: Don't look for help2man when cross-compiling. Fixes
14007 part of bug #27349.
14008
14009 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
14010
14011 * util/grub-mkconfig.in: Make the created config mode 400 and
14012 print a warning if it fails.
14013
14014 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
14015
14016 * util/grub.d/40_custom.in: Ask user to type custom entries below
14017 comment, rather than below 'exec tail' line.
14018
14019 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
14020
14021 * util/grub.d/40_custom.in: Make sure that the explanatory text is
14022 visible in grub.cfg.
14023
14024 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
14025
14026 * util/grub.d/40_custom.in: Make it a little clearer how to use this
14027 file.
14028
14029 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
14030
14031 * docs/grub.cfg: Add an example menu entry for memtest86+.
14032
14033 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
14034
14035 * config.guess: Update to latest version from config git.
14036 * config.sub: Likewise.
14037
14038 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
14039
14040 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
14041 unknown-command case. Fixes bug #27320.
14042
14043 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
14044
14045 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
14046 `help' if the command exists.
14047
14048 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
14049
14050 * INSTALL: Require GCC 4.1.3 or later.
14051
14052 2009-09-06 Yves Blusseau <blusseau@zetam.org>
14053
14054 * Makefile.in (RMKFILES): add i386-qemu.rmk
14055 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
14056 $(srcdir)/stamp-h.in
14057
14058 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
14059
14060 * util/grub-probe.c (probe): Comment out buggy codepath, which
14061 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
14062 should be re-enabled after 1.97.
14063
14064 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
14065
14066 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
14067 find searches for.
14068
14069 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
14070
14071 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
14072 unnecessary calls to grub_error.
14073
14074 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
14075
14076 * NEWS: Mention `keystatus' and Unicode fonts.
14077
14078 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
14079
14080 * configure.ac: Bump version to 1.97~beta2.
14081 * docs/version.texi: Likewise.
14082
14083 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
14084
14085 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
14086 containing unwind information in some cases where it previously did
14087 not. Use -fno-dwarf2-cfi-asm if available to restore the old
14088 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
14089 discussion.
14090
14091 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
14092
14093 Embedding loadenv module into grub-emu
14094
14095 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
14096 commands/loadenv.c
14097 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
14098 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
14099 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
14100 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
14101 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
14102 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
14103
14104 2009-09-03 Magnus Granberg <zorry@ume.nu>
14105
14106 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
14107 include -fPIE in the default specs.
14108 * configure.ac: Check if pie_possible is yes and add -fno-PIE
14109 to TARGET_CFLAGS.
14110
14111 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
14112
14113 * INSTALL: Note that GNU Bison 2.3 or later is required.
14114
14115 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
14116
14117 * kern/i386/pc/startup.S: Fix typo.
14118
14119 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
14120
14121 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
14122 according to GCS.
14123
14124 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
14125
14126 * docs/grub.texi (Naming convention): Describe one-based partition
14127 numbering.
14128 (Device syntax): Likewise.
14129 (File name syntax): Likewise.
14130 (Block list syntax): Likewise.
14131 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
14132 menu.lst.
14133 (File name syntax): Likewise.
14134 (Command-line and menu entry commands): Document acpi, blocklist,
14135 crc, export, insmod, keystatus, ls, set, and unset commands.
14136
14137 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
14138
14139 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
14140 to avoid implying that only one of --shift, --ctrl, or --alt may be
14141 used.
14142
14143 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
14144
14145 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
14146 rather than comparing against S_IFREG, which will almost never work.
14147
14148 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
14149
14150 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
14151 (write_blocklists): Likewise.
14152
14153 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
14154
14155 * script/lua/grub_lua.h (fputs): Supply a format string as the first
14156 argument to grub_printf.
14157
14158 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
14159
14160 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
14161 non GNU test.
14162
14163 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
14164
14165 * kern/file.c (grub_file_read): Spelling fix
14166
14167 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
14168
14169 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
14170 loading of headers in some cases.
14171
14172 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
14173
14174 * configure.ac: Bump version to 1.97~beta1.
14175 * docs/version.texi: Likewise.
14176
14177 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
14178
14179 * include/grub/i386/xnu.h: Add license header.
14180 include grub/err.h explicitly.
14181
14182 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
14183
14184 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
14185 to `ufs' in the vfs.root.mountfrom kernel parameter.
14186
14187 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
14188
14189 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
14190
14191 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
14192 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
14193
14194 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
14195 `ARRAY_SIZE' macro.
14196
14197 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14198
14199 * kern/file.c (grub_file_read): Check offset.
14200 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
14201 * fs/jfs.c (grub_jfs_read_file): Likewise.
14202 * fs/ntfs.c (grub_ntfs_read): Likewise.
14203 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
14204 * fs/minix.c (grub_minix_read_file): Correct offset check.
14205 * fs/ufs.c (grub_ufs_read_file): Likewise.
14206
14207 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
14208
14209 * term/i386/pc/console.c (bios_data_area): Cast
14210 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
14211
14212 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14213
14214 1-bit optimised blitters.
14215
14216 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
14217 prototype.
14218 (grub_video_fbblit_replace_24bit_1bit): Likewise.
14219 (grub_video_fbblit_replace_16bit_1bit): Likewise.
14220 (grub_video_fbblit_replace_8bit_1bit): Likewise.
14221 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
14222 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
14223 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
14224 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
14225 function.
14226 (grub_video_fbblit_replace_24bit_1bit): Likewise.
14227 (grub_video_fbblit_replace_16bit_1bit): Likewise.
14228 (grub_video_fbblit_replace_8bit_1bit): Likewise.
14229 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
14230 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
14231 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
14232 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
14233 when possible.
14234 * video/video.c (grub_video_get_blit_format): Return
14235 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
14236
14237 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
14238
14239 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
14240 the first argument to grub_printf.
14241
14242 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
14243 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
14244
14245 Add `getkeystatus' terminal method. Add a new `keystatus' command
14246 to query it.
14247
14248 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
14249 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
14250 modifier key bitmasks.
14251 (struct grub_term_input): Add `getkeystatus' member.
14252 (grub_getkeystatus): Add prototype.
14253 * kern/term.c (grub_getkeystatus): New function.
14254
14255 * include/grub/i386/pc/memory.h
14256 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
14257 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
14258 Data Area layout.
14259 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
14260 (grub_console_term_input): Set `getkeystatus' member.
14261 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
14262 constants.
14263 (grub_usb_keyboard_getreport): Likewise.
14264 (grub_usb_keyboard_checkkey): Likewise.
14265 (grub_usb_keyboard_getkeystatus): New function.
14266 (grub_usb_keyboard_term): Set `getkeystatus' member.
14267
14268 * commands/keystatus.c: New file.
14269 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
14270 (keystatus_mod_SOURCES): New variable.
14271 (keystatus_mod_CFLAGS): Likewise.
14272 (keystatus_mod_LDFLAGS): Likewise.
14273 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
14274 commands/keystatus.c.
14275 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14276 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14277 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14278 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14279 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14280 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14281
14282 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14283
14284 Split befs.mod and afs.mod into *_be.mod and *.mod
14285
14286 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
14287 (grub_fstest_SOURCES): Likewise.
14288 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
14289 (afs_be_mod_SOURCES): New variable.
14290 (afs_be_mod_CFLAGS): Likewise.
14291 (afs_be_mod_LDFLAGS): Likewise.
14292 (befs_be_mod_SOURCES): Likewise.
14293 (befs_be_mod_CFLAGS): Likewise.
14294 (befs_be_mod_LDFLAGS): Likewise.
14295 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
14296 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14297 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14298 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
14299 (grub_emu_SOURCES): Likewise.
14300 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14301 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14302 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14303 * fs/afs_be.c: New file.
14304 * fs/befs_be.c: New file.
14305 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
14306 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
14307 (U16): Replaced with ...
14308 (grub_afs_to_cpu16): ...this. All users updated.
14309 (U32): Replaced with ...
14310 (grub_afs_to_cpu32): ...this. All users updated.
14311 (U64): Replaced with ...
14312 (grub_afs_to_cpu64): ...this. All users updated.
14313 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
14314 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
14315 (grub_afs_validate_sblock): Check only one endianness.
14316 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
14317 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
14318 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
14319 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
14320 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
14321 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
14322 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
14323 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
14324
14325 2009-08-26 Bean <bean123ch@gmail.com>
14326
14327 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
14328 64-bit number.
14329 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
14330 (grub_xfs_inode_block): Change return type to grub_uint64_t.
14331 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
14332
14333 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14334
14335 NetBSD memory map support.
14336
14337 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
14338 (grub_netbsd_btinfo_mmap_header): New structure.
14339 (grub_netbsd_btinfo_mmap_entry): Likewise.
14340 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
14341
14342 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14343
14344 Enable bsd.mod on coreboot.
14345
14346 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
14347 (bsd_mod_SOURCES): New variable.
14348 (bsd_mod_CFLAGS): Likewise.
14349 (bsd_mod_LDFLAGS): Likewise.
14350 (bsd_mod_ASFLAGS): Likewise.
14351 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
14352 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
14353
14354 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14355
14356 Cleanup NetBSD root support.
14357
14358 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
14359 grub_bsd_get_device.
14360 Fix typo.
14361
14362 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
14363
14364 * util/grub.d/00_header.in: Move check for the video backend of
14365 gfxterm from here ...
14366 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
14367 a suitable video backend.
14368
14369 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14370
14371 Fix breakage in grub-setup.
14372
14373 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
14374 "msdos_partition_map".
14375
14376 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14377
14378 Fix breakage in normal/auth.c.
14379
14380 * normal/auth.c (grub_iswordseparator): New function.
14381
14382 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14383
14384 Authentication support.
14385
14386 * commands/password.c: New file.
14387 * conf/common.rmk (pkglib_MODULES): Add password.mod.
14388 (password_mod_SOURCES): New variable.
14389 (password_mod_CFLAGS): Likewise.
14390 (password_mod_LDFLAGS): Likewise.
14391 (normal_mod_SOURCES): Add normal/auth.c.
14392 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
14393 normal/auth.c.
14394 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14395 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14396 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14397 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14398 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14399 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14400 * include/grub/auth.h: New file.
14401 * include/grub/err.h (grub_err_t): New enum value
14402 GRUB_ERR_ACCESS_DENIED.
14403 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
14404 'users'.
14405 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
14406 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
14407 users updated.
14408 * normal/auth.c: New file.
14409 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
14410 (grub_cmdline_run): Don't allow to go to command line without
14411 authentication.
14412 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
14413 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
14414 menuentry without superuser rights.
14415 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
14416 user isn't a superuser.
14417
14418 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14419
14420 Save space by inlining misc.c functions.
14421
14422 * kern/misc.c (grub_iswordseparator): Made static.
14423 * kern/misc.c (grub_strcat): Moved from here ...
14424 * include/grub/misc.h (grub_strcat): ... here. Inlined.
14425 * kern/misc.c (grub_strncat): Moved from here ...
14426 * include/grub/misc.h (grub_strncat): ... here. Inlined.
14427 * kern/misc.c (grub_strcasecmp): Moved from here ...
14428 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
14429 * kern/misc.c (grub_strncasecmp): Moved from here ...
14430 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
14431 * kern/misc.c (grub_isalpha): Moved from here ...
14432 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
14433 * kern/misc.c (grub_isdigit): Moved from here ...
14434 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
14435 * kern/misc.c (grub_isgraph): Moved from here ...
14436 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
14437 * kern/misc.c (grub_tolower): Moved from here ...
14438 * include/grub/misc.h (grub_tolower): ... here. Inlined.
14439
14440 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14441
14442 * script/sh/function.c (grub_script_function_find): Cut error message
14443 not to flood terminal.
14444 * script/sh/lexer.c (grub_script_yylex): Remove command line length
14445 limit.
14446 * script/sh/script.c (grub_script_arg_add): Duplicate string.
14447
14448 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
14449
14450 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
14451 `report' grub_uint8_t *.
14452 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
14453 Use a 50-millisecond timeout rather than just repeating
14454 grub_usb_keyboard_getreport 50 times.
14455 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
14456
14457 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14458
14459 Rename *_partition_map to part_*
14460
14461 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
14462 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
14463 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
14464 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
14465 All users updated.
14466 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
14467 All users updated.
14468 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
14469 * util/grub-probe.c (probe_partmap): Don't transform partition name
14470 to get module name.
14471
14472 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14473
14474 Fix OpenBSD and NetBSD support.
14475
14476 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
14477 memory address conflict.
14478 (OPENBSD_MMAP_ACPI): New definition.
14479 (OPENBSD_MMAP_NVS): Likewise.
14480 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
14481 and OPENBSD_MMAP_NVS.
14482 Add memory map terminator
14483 Explicit cast when calling grub_unix_real_boot.
14484 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
14485
14486 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14487
14488 Let user specify NetBSD root device.
14489
14490 * loader/i386/bsd.c (netbsd_root): New variable.
14491 (netbsd_opts): New option 'root'.
14492 (NETBSD_ROOT_ARG): New macro.
14493 (grub_netbsd_boot): Use 'netbsd_root'.
14494 (grub_bsd_unload): Free 'netbsd_root'.
14495 (grub_cmd_netbsd): Fill 'netbsd_root'.
14496
14497 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14498
14499 Support for 64-bit NetBSD.
14500
14501 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
14502 point when booting non-FreeBSD.
14503
14504 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14505
14506 Support --no-smp and --no-acpi for NetBSD.
14507
14508 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
14509 (NETBSD_AB_NOACPI): Likewise.
14510 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
14511 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
14512
14513 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14514
14515 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
14516 errors.
14517 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
14518 errors. Call grub_error when needed.
14519
14520 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14521
14522 * commands/search.c (search_fs): Try searching without autoload first.
14523 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
14524 filesystem module explicitly for faster booting.
14525
14526 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
14527
14528 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
14529
14530 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
14531
14532 * util/grub.d/30_os-prober.in: Disable os-prober if
14533 `GRUB_DISABLE_OS_PROBER' was set to true.
14534
14535 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
14536
14537 * partmap/pc.c: Rename to ...
14538 * partmap/msdos.c: ... this. Update all users.
14539 (grub_pc_partition_map): Rename to ...
14540 (grub_msdos_partition_map): ... this. Update all users.
14541
14542 * parttool/pcpart.c: Rename to ...
14543 * parttool/msdospart.c: ... this. Update all users.
14544
14545 * include/grub/pc_partition.h: Rename to ...
14546 * include/grub/msdos_partition.h: ... this. Update all users.
14547 (grub_pc_partition_bsd_entry): Rename to ...
14548 (grub_msdos_partition_bsd_entry): ... this. Update all users.
14549 (grub_pc_partition_disk_label): Rename to ...
14550 (grub_msdos_partition_disk_label): ... this. Update all users.
14551 (grub_pc_partition_entry): Rename to ...
14552 (grub_msdos_partition_entry): ... this. Update all users.
14553 (grub_pc_partition_mbr): Rename to ...
14554 (grub_msdos_partition_mbr): ... this. Update all users.
14555 (grub_pc_partition): Rename to ...
14556 (grub_msdos_partition): ... this. Update all users.
14557 (grub_pc_partition_is_empty): Rename to ...
14558 (grub_msdos_partition_is_empty): ... this. Update all users.
14559 (grub_pc_partition_is_extended): Rename to ...
14560 (grub_msdos_partition_is_extended): ... this. Update all users.
14561 (grub_pc_partition_is_bsd): Rename to ...
14562 (grub_msdos_partition_is_bsd): ... this. Update all users.
14563
14564 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
14565 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
14566 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
14567 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
14568 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
14569 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
14570 (gpt_mod_LDFLAGS): Rename to ...
14571 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
14572 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
14573 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
14574 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
14575 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
14576 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
14577 (part_gpt_mod_LDFLAGS): ... this.
14578 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
14579 `pcpart.mod' to `msdospart.mod'.
14580 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
14581 to ...
14582 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
14583 (msdospart_mod_LDFLAGS): ... this.
14584
14585 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14586
14587 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
14588 (openbsd_opts): Likewise.
14589 (netbsd_opts): Likewise.
14590 (freebsd_flags): Added 0 terminator.
14591 (openbsd_flags): Likewise.
14592 (netbsd_flags): Likewise.
14593 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
14594 (grub_cmd_freebsd): Transformed into extended command.
14595 (grub_cmd_openbsd): Likewise.
14596 (grub_cmd_netbsd): Likewise.
14597 (cmd_freebsd): Changed type to grub_extcmd_t.
14598 (cmd_openbsd): Likewise.
14599 (cmd_netbsd): Likewise.
14600 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
14601 grub_cmd_openbsd as extended commands.
14602 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
14603 cmd_netbsd and cmd_openbsd
14604
14605 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
14606
14607 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
14608
14609 2009-08-21 Pavel Roskin <proski@gnu.org>
14610
14611 * Makefile.in (install-local): When checking if a file is in the
14612 build directory, use "test -e" to detect symlinks.
14613
14614 * Makefile.in (install-local): Remove all files in
14615 $(DESTDIR)$(pkglibdir) before installing new files there.
14616
14617 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
14618
14619 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
14620 grub-mkelfimage.
14621
14622 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
14623
14624 * util/grub-mkconfig.in: Don't use gfxterm by default if not
14625 explicitly specified by the user.
14626
14627 2009-08-18 Pavel Roskin <proski@gnu.org>
14628
14629 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
14630 grub_uint8_t pointer for data.
14631 * include/grub/fbutil.h (struct grub_video_fbblit_info):
14632 Likewise.
14633 * video/fb/fbutil.c: Remove unnecessary casts.
14634
14635 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
14636
14637 VBE cleanup.
14638
14639 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
14640 (grub_vbe_set_video_mode): Save active mode info
14641 only after setting the mode.
14642 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
14643 second argument.
14644
14645 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
14646
14647 Rename variables for clarity.
14648
14649 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
14650 (active_vbe_mode_info): ... this. All users updated.
14651 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
14652 All users updated.
14653 (initial_mode): Rename to ...
14654 (initial_vbe_mode): ... this. All users updated.
14655 (mode_in_use): Rename to ..
14656 (vbe_mode_in_use): ... this. All users updated.
14657 (mode_list): Rename to ..
14658 (vbe_mode_list): ... this. All users updated.
14659 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
14660 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
14661 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
14662 'mode_list_size' to 'vbe_mode_list_size'.
14663 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
14664 'best_mode_info' to 'best_vbe_mode_info' and
14665 'best_mode' to 'best_vbe_mode'
14666
14667 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
14668
14669 Remove duplicate grub_video_fb_get_video_ptr.
14670
14671 * include/grub/fbutil.h (get_data_ptr): Rename to ...
14672 (grub_video_fb_get_video_ptr): ... this.
14673 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
14674 * video/fb/fbutil.c: Add comment about addressing.
14675 (get_data_ptr): Rename to ...
14676 (grub_video_fb_get_video_ptr): ... this. All users updated.
14677 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
14678
14679 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
14680
14681 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
14682 grub_dprintf() that was just added.
14683
14684 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
14685
14686 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
14687 (DEFAULT_VIDEO_MODE): Remove macros.
14688 (grub_linux_boot): Remove assumption that Linux has FB support,
14689 and use "text" as default video mode.
14690
14691 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
14692
14693 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
14694 grub_dprintf.
14695 * fs/fat.c (grub_fat_read_data): Likewise.
14696
14697 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14698
14699 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
14700 payload.
14701 (grub_module): Likewise.
14702
14703 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14704
14705 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
14706 mbi->cmdline but free playground.
14707
14708 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14709
14710 Handle group offset on UFS1.
14711
14712 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
14713 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
14714
14715 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14716
14717 Split ufs.mod into ufs1.mod and ufs2.mod.
14718
14719 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
14720 (grub_fstest_SOURCES): Likewise.
14721 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
14722 (ufs_mod_SOURCES): Remove.
14723 (ufs_mod_CFLAGS): Likewise.
14724 (ufs_mod_LDFLAGS): Likewise.
14725 (ufs1_mod_SOURCES): New variable.
14726 (ufs1_mod_CFLAGS): Likewise.
14727 (ufs1_mod_LDFLAGS): Likewise.
14728 (ufs2_mod_SOURCES): New variable.
14729 (ufs2_mod_CFLAGS): Likewise.
14730 (ufs2_mod_LDFLAGS): Likewise.
14731 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
14732 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
14733 Likewise.
14734 (grub_emu_SOURCES): Likewise.
14735 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14736 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14737 (grub_setup_SOURCES): Likewise.
14738 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14739 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
14740 (grub_setup_SOURCES): Likewise.
14741 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
14742 Likewise.
14743 * fs/ufs2.c: New file.
14744 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
14745
14746 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14747
14748 Framebuffer split.
14749
14750 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
14751 subsystem at the end.
14752 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
14753 (video_fb_mod_SOURCES): New variable.
14754 (video_fb_mod_CFLAGS): Likewise.
14755 (video_fb_mod_LDFLAGS): Likewise.
14756 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
14757 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
14758 * video/i386/pc/vbeblit.c: Moved from here ...
14759 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
14760 * video/i386/pc/vbefill.c: Moved from here ...
14761 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
14762 * video/i386/pc/vbeutil.c: Moved from here ...
14763 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
14764 * include/grub/i386/pc/vbeblit.h: Moved from here ...
14765 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
14766 * include/grub/i386/pc/vbefill.h: Moved from here ...
14767 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
14768 * include/grub/i386/pc/vbeutil.h: Moved from here ...
14769 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
14770 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
14771 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
14772 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
14773 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
14774 (grub_video_adapter): Added 'get_info_and_fini'.
14775 (grub_video_get_info_and_fini): New prototype.
14776 (grub_video_set_mode): make modestring const char *.
14777 * loader/i386/linux.c (grub_linux_setup_video): Use
14778 grub_video_get_info_and_fini.
14779 (grub_linux_boot): Move modesetting just before booting.
14780 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
14781 grub_video_get_info_and_fini.
14782 * video/i386/pc/vbe.c: Moved framebuffer part ...
14783 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
14784 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
14785 grub_video_fbstd_colors and grub_video_fb_set_palette.
14786 (grub_video_vbe_init): Clear 'framebuffer' variable and use
14787 grub_video_fb_init.
14788 (grub_video_vbe_fini): Use grub_video_fb_fini.
14789 (grub_video_vbe_setup): Use framebuffer.render_target instead of
14790 render_target and use grub_video_fb_set_active_render_target and
14791 grub_video_fb_set_palette.
14792 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
14793 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
14794 (grub_video_vbe_adapter): Use framebuffer.
14795 * video/video.c (grub_video_get_info_and_fini): New function.
14796 (grub_video_set_mode): Make modestring const char *.
14797 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
14798 values are already initialised.
14799
14800 2009-08-14 Pavel Roskin <proski@gnu.org>
14801
14802 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
14803 ABS and APPLE_CC.
14804 * boot/i386/pc/diskboot.S: Likewise.
14805 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
14806 sectors allow compilation on MacOSX.
14807 * conf/i386-pc.rmk: Enable unconditional compilation of
14808 lnxboot.img.
14809
14810 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
14811
14812 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
14813 * util/grub.d/00_header.in: Enter interruptible sleep if
14814 GRUB_HIDDEN_TIMEOUT is set.
14815
14816 2009-08-13 Yves Blusseau <blusseau@zetam.org>
14817
14818 * include/grub/symbol.h: Add the LOCAL macro.
14819 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
14820 starting with "L_".
14821
14822 2009-08-13 Pavel Roskin <proski@gnu.org>
14823
14824 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
14825 any modern compilers we support.
14826
14827 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
14828 Use local labels starting with "L_" so that Apple assembler
14829 knows they are local.
14830
14831 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
14832
14833 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
14834 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
14835 (bsd_kernel_types): ... this enum.
14836
14837 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
14838 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
14839 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
14840
14841 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
14842 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
14843 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
14844 messages.
14845
14846 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
14847
14848 * util/grub-dumpdevtree: Moved from here ...
14849 * util/i386/efi/grub-dumpdevtree: ... to here.
14850 (hexify): New function. Converts a string to its hex version.
14851 Generate hex versions of "efi" and "device-properties" by calling
14852 hexify() on the ASCII strings rather than by hardcoding numbers.
14853
14854 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
14855
14856 * fs/jfs.c: Update copyright year.
14857
14858 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
14859
14860 * util/grub.d/00_header.in: Fix a comment.
14861 * util/grub.d/10_linux.in: Likewise.
14862 * util/grub.d/10_windows.in: Likewise.
14863 * util/grub.d/10_hurd.in: Likewise.
14864
14865 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
14866
14867 * util/grub-mkconfig.in: Allow the user to specify the used font
14868 with GRUB_FONT.
14869
14870 2009-08-08 Pavel Roskin <proski@gnu.org>
14871
14872 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
14873 available, xfs.mod needs it now.
14874
14875 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
14876 the "g" modifier in sed when the intention is to strip something
14877 once. This fixes comparison of kernels with multiple dashes.
14878
14879 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
14880 on it. Add missing space before closing bracket. Fix
14881 misleading formatting.
14882
14883 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14884
14885 * docs/grub.texi: Major overhaul. Remove all sections that are
14886 specific to GRUB Legacy, or mostly composed of Legacy-specific
14887 information.
14888
14889 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14890
14891 * docs/version.texi: New file. Provides version information for
14892 grub.texi.
14893
14894 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14895
14896 * docs/grub.texi: Update CVS information to SVN.
14897 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
14898
14899 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
14900
14901 * util/grub-mkconfig.in: Remove a wrong `fi'.
14902
14903 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
14904
14905 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
14906 (grub_jfs_uuid): New function.
14907 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
14908
14909 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
14910
14911 * util/grub-mkconfig_lib.in (font_path): Move the functionality
14912 of it to ...
14913 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
14914 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
14915
14916 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14917
14918 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
14919 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
14920 Update all users.
14921
14922 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
14923 not just "vmlinu[zx]".
14924 Moved from here ...
14925 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
14926 all users.
14927
14928 * util/grub.d/10_linux.in (find_latest): Moved from here ...
14929 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
14930 all users.
14931
14932 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14933
14934 * util/grub.d/10_freebsd.in: Use an absolute device path for
14935 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
14936
14937 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
14938
14939 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
14940 handling of multiple abstraction modules.
14941
14942 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
14943
14944 Fix a bug resulting in black screen when loading Linux using a
14945 packed video mode.
14946
14947 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
14948 function.
14949
14950 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
14951 (grub_vbe_bios_getset_dac_palette_width): New function.
14952 (grub_vbe_bios_get_dac_palette_width)
14953 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
14954 grub_vbe_bios_getset_dac_palette_width()).
14955
14956 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
14957 check for return status.
14958 (grub_vbe_get_video_mode_info): When getting information for a packed
14959 mode (<= 8 bpp), obtain DAC palette width using
14960 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
14961 {red,green,blue}_mark_size.
14962
14963 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
14964
14965 * commands/search.c (options): Fix help output to match actual code.
14966
14967 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
14968
14969 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
14970 of homegrown code.
14971
14972 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
14973
14974 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
14975 on XFS or ReiserFS.
14976
14977 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
14978
14979 Support Apple partition map with sector size different from 512 bytes.
14980
14981 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
14982 (apple_partition_map_iterate): Respect 'aheader.blocksize'
14983 and 'apart.partmap_size'.
14984
14985 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
14986 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
14987
14988 Fix cpuid command.
14989
14990 * commands/i386/cpuid.c (options): New variable.
14991 (grub_cmd_cpuid): Return real error.
14992 (GRUB_MOD_INIT(cpuid)): Declare options.
14993
14994 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
14995
14996 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
14997 valid.
14998
14999 2009-07-31 Bean <bean123ch@gmail.com>
15000
15001 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
15002 log2_inode.
15003 (grub_fshelp_node): Move inode field to the end.
15004 (grub_xfs_data): Remove inode field.
15005 (grub_xfs_inode_block): Calculate inode size using sblock.
15006 (grub_xfs_inode_offset): Likewise.
15007 (grub_xfs_read_inode): Calculate inode size using sblock.
15008 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
15009 (grub_xfs_iterate_dir): Calculate inode size using sblock.
15010 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
15011 to match inode size.
15012 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
15013 not accessible when data is null.
15014 (grub_xfs_open): Likewise.
15015
15016 2009-07-31 Bean <bean123ch@gmail.com>
15017
15018 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
15019 Don't change pv->disk if it's already set.
15020
15021 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
15022 (grub_raid_register): ... here.
15023 (grub_raid_rescan): Removed.
15024
15025 * include/grub/raid.h (grub_raid_rescan): Removed.
15026
15027 * util/grub-fstest.c: Remove include file <grub/raid.h>.
15028 (fstest): Replace grub_raid_rescan with module fini function followed
15029 by init function.
15030
15031 * util/grub-probe.c: Add include file <grub/raid.h>.
15032 (probe_raid_level): New function.
15033 (probe): Detect abstraction by walking the disk device, support two
15034 level of abstraction (LVM on RAID) when detecting partition map.
15035
15036 2009-07-31 Pavel Roskin <proski@gnu.org>
15037
15038 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
15039 to grub_zalloc(), it was erroneous.
15040 Reported by Bean <bean123ch@gmail.com>
15041
15042 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
15043
15044 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
15045 embedding zone, not only the first one.
15046
15047 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
15048
15049 * term/gfxterm.c (clear_char): New function.
15050 (grub_virtual_screen_setup): Use clear_char.
15051 (scroll_up): Likewise.
15052 (grub_virtual_screen_cls): Likewise.
15053
15054 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
15055
15056 * util/deviceiter.c (get_acceleraid_disk_name): New static
15057 function.
15058 (grub_util_iterate_devices): Handle Accelraid devices.
15059 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
15060
15061 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
15062
15063 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
15064 separator for the suggested gfxpayload string (';' collides with the
15065 parser and needs escaping).
15066
15067 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
15068
15069 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
15070 Clear direction flag before jumping to OS.
15071 (grub_multiboot2_real_boot): Likewise.
15072
15073 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
15074
15075 * util/i386/pc/grub-install: Fix parsing of --disk-module
15076 option.
15077
15078 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
15079
15080 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
15081 when embedding.
15082
15083 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
15084
15085 * util/grub-mkconfig.in (package_version): New variable.
15086 Use it do display the version.
15087
15088 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
15089
15090 * kern/file.c (grub_file_open): Revert to previous check with
15091 grub_errno.
15092
15093 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15094
15095 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
15096 from help line. It's out of sync with code.
15097
15098 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15099
15100 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
15101 entries on failed boot.
15102
15103 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
15104
15105 * kern/file.c (grub_file_open): Fix an error check.
15106
15107 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
15108
15109 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
15110 partition map couldn't be identified.
15111
15112 2009-07-23 Pavel Roskin <proski@gnu.org>
15113
15114 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
15115 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
15116 case of little endian words becomes just an optimization.
15117 Respect const modifier.
15118 (md5_final): Use code that doesn't depend on endianness.
15119
15120 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
15121 to avoid loss of upper bits if align is unsigned and shorter
15122 than addr.
15123
15124 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
15125
15126 UUID support for UFS
15127
15128 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
15129 (grub_ufs_uuid): New function.
15130 (grub_ufs_fs): add .uuid
15131
15132 2009-07-21 Pavel Roskin <proski@gnu.org>
15133
15134 * kern/dl.c (grub_dl_check_header): Make static.
15135
15136 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
15137
15138 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
15139 add drivemap for Vista. It breaks Windows 7.
15140
15141 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
15142
15143 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
15144 128 bytes
15145
15146 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
15147
15148 Add BFS support
15149
15150 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
15151 (grub_fstest_SOURCES): Likewise.
15152 (pkglib_MODULES): Add befs.mod.
15153 (befs_mod_SOURCES): New variable.
15154 (befs_mod_CFLAGS): Likewise.
15155 (befs_mod_LDFLAGS): Likewise.
15156 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
15157 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15158 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15159 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15160 (grub_setup_SOURCES): Likewise.
15161 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15162 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15163 (grub_setup_SOURCES): Likewise.
15164 * fs/befs.c: New file.
15165 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
15166 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
15167 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
15168 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
15169 (B_KEY_INDEX_ALIGN): New declaration.
15170 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
15171 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
15172 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
15173 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
15174 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
15175 (grub_afs_mount) [MODE_BFS]: Likewise.
15176 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
15177 (grub_afs_fs): Use GRUB_AFS_FSNAME
15178 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
15179 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
15180 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
15181 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
15182
15183 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
15184
15185 * util/getroot.c (find_root_device): Add support for MacOSX.
15186 * util/hostdisk.c: Likewise.
15187
15188 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
15189
15190 * font/font.c (find_glyph): Check whether a font is present to avoid
15191 segmentation fault.
15192
15193 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
15194
15195 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
15196
15197 2009-07-20 Pavel Roskin <proski@gnu.org>
15198
15199 * configure.ac: Trim excessively wordy excuses.
15200
15201 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
15202
15203 Add symlink, mtime and label support to AtheFS.
15204
15205 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
15206 (grub_afs_iterate_dir): Handle symlinks.
15207 (grub_afs_open): Use grub_afs_read_symlink.
15208 (grub_afs_dir): Likewise.
15209 Pass mtime.
15210 (grub_afs_label): New function.
15211 (grub_afs_fs): Add grub_afs_label.
15212 (grub_afs_read_symlink): New function.
15213
15214 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
15215
15216 Fix AtheFS support.
15217
15218 * fs/afs.c: Fix comments style.
15219 (grub_afs_blockrun): Declare as packed.
15220 (grub_afs_datastream): Likewise.
15221 (grub_afs_bnode): Likewise.
15222 (grub_afs_btree): Likewise.
15223 (grub_afs_sblock): Likewise.
15224 Declare `name' as char.
15225 (grub_afs_inode): Declare as packed.
15226 Change void *vnode to grub_uint32_t unused.
15227 (grub_afs_iterate_dir): Check that key_size is positive.
15228 (grub_afs_mount): Don't read superblock twice.
15229 (grub_afs_dir): Don't free node in case of error,
15230 grub_fshelp_find_file already handles this.
15231 (grub_afs_open): Likewise.
15232
15233 2009-07-19 Pavel Roskin <proski@gnu.org>
15234
15235 * Makefile.in: Remove LIBLZO and enable_lzo.
15236 * conf/i386-pc.rmk: Remove lzo support.
15237 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
15238 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
15239 support.
15240 * kern/i386/pc/lzo1x.S: Remove.
15241 * kern/i386/pc/startup.S: Remove lzo support.
15242 * util/i386/pc/grub-mkimage.c: Likewise.
15243
15244 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
15245
15246 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
15247 * fs/xfs.c (grub_xfs_dir): Likewise.
15248 * fs/afs.c (grub_afs_dir): Likewise.
15249 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
15250 (grub_iso9660_open): Likewise.
15251 * fs/jfs.c (grub_jfs_open): Likewise.
15252 * fs/ext2.c (grub_ext2_dir): Likewise.
15253 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
15254 * script/sh/lexer.c (grub_script_yylex): Likewise.
15255
15256 2009-07-16 Pavel Roskin <proski@gnu.org>
15257
15258 * configure.ac: Never add "-c" to CFLAGS.
15259
15260 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
15261
15262 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
15263 grub_cv_cc_efiemu should be used.
15264
15265 * configure.ac: Typo fixes.
15266
15267 * kern/mm.c (grub_zalloc): New function.
15268 (grub_debug_zalloc): Likewise.
15269 * include/grub/mm.h: Declare grub_zalloc() and
15270 grub_debug_zalloc().
15271 * util/misc.c (grub_zalloc): New function.
15272 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
15273 instead of grub_malloc(), remove unneeded initializations.
15274 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
15275 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
15276 * commands/parttool.c (grub_cmd_parttool): Likewise.
15277 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
15278 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
15279 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
15280 * disk/usbms.c (grub_usbms_finddevs): Likewise.
15281 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
15282 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
15283 (grub_cmd_efiemu_pnvram): Likewise.
15284 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
15285 * fs/iso9660.c (grub_iso9660_mount): Likewise.
15286 (grub_iso9660_iterate_dir): Likewise.
15287 * fs/jfs.c (grub_jfs_opendir): Likewise.
15288 * fs/ntfs.c (list_file): Likewise.
15289 (grub_ntfs_mount): Likewise.
15290 * kern/disk.c (grub_disk_open): Likewise.
15291 * kern/dl.c (grub_dl_load_core): Likewise.
15292 * kern/elf.c (grub_elf_file): Likewise.
15293 * kern/env.c (grub_env_context_open): Likewise.
15294 (grub_env_set): Likewise.
15295 (grub_env_set_data_slot): Likewise.
15296 * kern/file.c (grub_file_open): Likewise.
15297 * kern/fs.c (grub_fs_blocklist_open): Likewise.
15298 * loader/i386/multiboot.c (grub_module): Likewise.
15299 * loader/xnu.c (grub_xnu_create_key): Likewise.
15300 (grub_xnu_create_value): Likewise.
15301 * normal/main.c (grub_normal_add_menu_entry): Likewise.
15302 (read_config_file): Likewise.
15303 * normal/menu_entry.c (make_screen): Likewise.
15304 * partmap/sun.c (sun_partition_map_iterate): Likewise.
15305 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
15306 * script/sh/script.c (grub_script_parse): Likewise.
15307 * video/bitmap.c (grub_video_bitmap_create): Likewise.
15308 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
15309 * video/readers/png.c (grub_png_output_byte): Likewise.
15310 (grub_video_reader_png): Likewise.
15311
15312 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
15313
15314 Enable all targets that can be built by default
15315
15316 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
15317 grub-mkfont and grub-fstest if they can be built
15318
15319 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
15320
15321 Fix hang and segmentation fault in grub-emu-usb
15322
15323 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
15324 * util/usb.c (grub_libusb_devices): likewise
15325 (grub_libusb_init): rename to ...
15326 (GRUB_MOD_INIT (libusb)):...this
15327 (grub_libusb_fini): rename to ..
15328 (GRUB_MOD_FINI (libusb)):...this
15329 * disk/usbms.c (grub_usbms_transfer): fix retry logic
15330 * include/grub/disk.h (grub_raid_init): removed, it's useless
15331 (grub_raid_fini): likewise
15332 (grub_lvm_init): likewise
15333 (grub_lvm_fini): likewise
15334 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
15335 by grub_init_all
15336
15337 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
15338
15339 Fix libusb
15340
15341 * Makefile.in (LIBUSB): new macro
15342 * genmk.rb (Utility/print_tail): new method
15343 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
15344 (top level): call util.print_tail at the end.
15345
15346 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
15347
15348 Make FreeBSD accept zpool.cache
15349
15350 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
15351 type is /boot/zfs/zpool.cache
15352
15353 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
15354
15355 Fix 64-bit efiemu
15356
15357 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
15358 correct wrong typedef
15359 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
15360
15361 2009-07-15 Pavel Roskin <proski@gnu.org>
15362
15363 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
15364 * kern/disk.c (struct grub_disk_cache): Likewise.
15365
15366 * commands/probe.c (options): Typo fix.
15367
15368 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
15369 Increase to 0x5a to accommodate FAT32. Adjust other offsets
15370 accordingly.
15371 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
15372
15373 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
15374 the end of "Error" to make the message more readable.
15375
15376 * boot/i386/pc/boot.S (kernel_segment): Remove.
15377 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
15378 for destination.
15379
15380 * boot/i386/pc/boot.S (boot_version): Remove.
15381 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
15382 Remove.
15383
15384 * include/grub/i386/pc/boot.h: Sort all offsets.
15385 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
15386 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
15387 * boot/i386/pc/boot.S: Assert location of every offset listed in
15388 include/grub/i386/pc/boot.h.
15389
15390 2009-07-13 Pavel Roskin <proski@gnu.org>
15391
15392 * include/grub/i386/coreboot/machine.h: Rename
15393 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
15394 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
15395 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
15396
15397 * kern/dl.c: Force native word size to suppress warnings when
15398 compiling grub-emu.
15399
15400 * kern/device.c (grub_device_iterate): Change struct part_ent to
15401 hold the name, not a pointer to it. Use one grub_malloc() per
15402 partition, not two. Free partition_name if grub_malloc() fails.
15403 Set ents to NULL only before grub_partition_iterate() is called.
15404
15405 2009-07-11 Bean <bean123ch@gmail.com>
15406
15407 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
15408 childname.
15409
15410 2009-07-10 Bean <bean123ch@gmail.com>
15411 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
15412
15413 * kern/ieee1275/openfw.c (grub_children_iterate)
15414 (grub_devalias_iterate): Fix size evaluation for property or path
15415 strings, which was broken since r2132.
15416
15417 2009-07-07 Pavel Roskin <proski@gnu.org>
15418
15419 * commands/search.c (search_file): Merge into ...
15420 (search_fs): ... this. Accept search type as argument.
15421 (grub_cmd_search): Pass search type to search_fs().
15422
15423 * include/grub/util/console.h: New file.
15424 * util/console.c: Use it instead of grub/machine/console.h.
15425 * util/grub-emu.c: Likewise.
15426
15427 * lib/arg.c (find_long_option): Remove.
15428 (find_long): Add `len' argument, make `s' const char *.
15429 (grub_arg_parse): Parse long options in place, not in a
15430 temporary buffer.
15431
15432 2009-07-06 Pavel Roskin <proski@gnu.org>
15433
15434 * commands/search.c (search_fs): Fix potential NULL pointer
15435 dereference.
15436
15437 * commands/search.c (search_fs): Replace QUID macro with quid_fn
15438 function pointer.
15439
15440 2009-07-06 Daniel Mierswa <impulze@impulze.org>
15441
15442 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
15443 comparison.
15444
15445 2009-07-05 Pavel Roskin <proski@gnu.org>
15446
15447 * include/grub/i386/linux.h (struct linux_kernel_params):
15448 Restore padding3, it's still needed.
15449
15450 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
15451 FreeBSD.
15452 * util/osdetect.lua: Likewise.
15453
15454 2009-07-05 Bean <bean123ch@gmail.com>
15455
15456 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
15457
15458 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
15459 (grub_lua_getenv): Likewise.
15460 (grub_lua_setenv): Likewise.
15461 (save_errno): New function.
15462 (push_result): Likewise.
15463 (grub_lua_enum_device): Likewise.
15464 (grub_lua_enum_file): Likewise.
15465 (grub_lua_file_open): Likewise.
15466 (grub_lua_file_close): Likewise.
15467 (grub_lua_file_seek): Likewise.
15468 (grub_lua_file_read): Likewise.
15469 (grub_lua_file_getline): Likewise.
15470 (grub_lua_file_getsize): Likewise.
15471 (grub_lua_file_getpos): Likewise.
15472 (grub_lua_file_eof): Likewise.
15473 (grub_lua_file_exist): Likewise.
15474 (grub_lua_add_menu): Likewise.
15475
15476 * script/lua/grub_lua.h (isupper): New inline function.
15477 (islower): Likewise.
15478 (ispunct): Likewise.
15479 (isxdigit): Likewise.
15480 (strcspn): Change to normal function.
15481 (strpbkr): New function declaration.
15482 (memchr): Likewise.
15483
15484 * script/lua/grub_main.c (scan_str): New function.
15485 (strcspn): Likewise.
15486 (strpbrk): Likewise.
15487 (memchr): Likewise.
15488
15489 * script/lua/linit.c (lualibs): Enable the string library.
15490
15491 * util/osdetect.lua: New file.
15492
15493 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
15494
15495 * include/grub/i386/linux.h (struct linux_kernel_params): Add
15496 `capabilities' member.
15497
15498 2009-07-02 Pavel Roskin <proski@gnu.org>
15499
15500 * genparttoollist.sh: Add missing newline at the end.
15501
15502 2009-07-01 Pavel Roskin <proski@gnu.org>
15503
15504 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
15505
15506 * util/hostdisk.c (open_device): Remove `const' from
15507 `sysctl_size', as sysctlbyname() can change it (in this case it
15508 doesn't actually happen).
15509
15510 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
15511 using signed long int constants.
15512
15513 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
15514 constant to avoid a warning on FreeBSD.
15515
15516 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
15517 where it's needed.
15518
15519 * Makefile.in: Install include/grub/machine symlink.
15520
15521 * Makefile.in: When installing symlinks, use "cp -fR", which
15522 works on FreeBSD and MacOSX.
15523 From Yves Blusseau <cl7m42e02@sneakemail.com>
15524
15525 * kern/dl.c (grub_dl_resolve_symbol): Make static.
15526 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
15527
15528 * util/misc.c: Move grub_reboot() and grub_halt() ...
15529 * util/grub-emu.c: ... here. Make main_env static.
15530 * include/grub/util/misc.h: Remove main_env.
15531
15532 * kern/mm.c: Use correct format to print size_t.
15533
15534 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
15535 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
15536 * kern/powerpc/dl.c: Likewise.
15537 * kern/sparc64/dl.c: Likewise.
15538 * kern/x86_64/dl.c: Likewise.
15539
15540 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
15541
15542 Fix grub-emu build on sparc64-ieee1275.
15543
15544 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
15545 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
15546
15547 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
15548
15549 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
15550 (grub_reboot, grub_halt): New functions.
15551
15552 * util/i386/pc/misc.c: Delete. Update all users.
15553 * util/sparc64/ieee1275/misc.c: Likewise.
15554 * util/powerpc/ieee1275/misc.c: Likewise.
15555
15556 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
15557
15558 * conf/i386.rmk (setjmp_mod_SOURCES)
15559 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
15560 * conf/common.rmk (setjmp_mod_SOURCES)
15561 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
15562 to use $(target_cpu).
15563 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
15564 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
15565 * conf/powerpc-ieee1275.rmk: Likewise.
15566 * conf/sparc64-ieee1275.rmk: Likewise.
15567
15568 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
15569 $(target_cpu) for kern/$(target_cpu)/dl.c.
15570 * conf/i386-efi.rmk: Likewise.
15571 * conf/i386-ieee1275.rmk: Likewise.
15572 * conf/x86_64-efi.rmk: Likewise.
15573 * conf/i386-coreboot.rmk: Likewise.
15574 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
15575 $(target_cpu) for kern/$(target_cpu)/dl.c and for
15576 kern/$(target_cpu)/cache.S.
15577 * conf/sparc64-ieee1275.rmk: Likewise.
15578
15579 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
15580
15581 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
15582 type to `grub_uint8_t', and adjust `padding9' accordingly.
15583
15584 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
15585
15586 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
15587
15588 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
15589 assembly in final jump, using register constraints.
15590
15591 (grub_linux_boot): For text mode, initialize `have_vga' using
15592 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
15593
15594 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
15595 right before the final jump.
15596
15597 Set `video_mode' to 0x3.
15598
15599 Document initialization of `video_page', `video_mode' and
15600 `video_ega_bx'.
15601
15602 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
15603
15604 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
15605 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
15606 and set GRUB_LINUX_FLAG_QUIET appropriately.
15607
15608 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
15609
15610 Fix build on Debian / sparc.
15611
15612 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
15613
15614 2009-06-28 Pavel Roskin <proski@gnu.org>
15615
15616 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
15617 fix a warning.
15618
15619 * util/grub.d/10_linux.in: Match SUSE style initrd names.
15620
15621 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
15622
15623 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
15624 `err'.
15625
15626 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
15627
15628 Revert r2338.
15629
15630 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
15631 file can't be opened. grub_file_open() is already supposed to set
15632 grub_errno / grub_errmsg appropriately.
15633 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15634
15635 2009-06-27 Pavel Roskin <proski@gnu.org>
15636 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
15637
15638 * include/grub/dl.h: Include grub/elf.h.
15639 (struct grub_dl): Add symtab field.
15640 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
15641 GRUB_MODULES_MACHINE_READONLY.
15642 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
15643 of the header for read-only modules.
15644 (grub_dl_unload): Free mod->symtab for read-only modules.
15645 * kern/i386/dl.c: Use mod->symtab.
15646 * kern/powerpc/dl.c: Likewise.
15647 * kern/sparc64/dl.c: Likewise.
15648 * kern/x86_64/dl.c: Likewise.
15649
15650 * conf/i386-qemu.rmk: New file.
15651 * kern/i386/qemu/startup.S: Likewise.
15652 * kern/i386/qemu/mmap.c: Likewise.
15653 * boot/i386/qemu/boot.S: Likewise.
15654 * include/grub/i386/qemu/time.h: Likewise.
15655 * include/grub/i386/qemu/serial.h: Likewise.
15656 * include/grub/i386/qemu/kernel.h: Likewise.
15657 * include/grub/i386/qemu/console.h: Likewise.
15658 * include/grub/i386/qemu/boot.h: Likewise.
15659 * include/grub/i386/qemu/init.h: Likewise.
15660 * include/grub/i386/qemu/machine.h: Likewise.
15661 * include/grub/i386/qemu/loader.h: Likewise.
15662 * include/grub/i386/qemu/memory.h: Likewise.
15663
15664 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
15665 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
15666 [qemu] (pkglib_IMAGES): Add `boot.img'.
15667 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
15668 [qemu] (boot_img_FORMAT): New variables.
15669 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
15670 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
15671 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
15672 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
15673 [qemu] (kernel_img_FORMAT): New variables.
15674
15675 * configure.ac: Recognise `i386-qemu'.
15676
15677 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
15678 (for no compression).
15679 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
15680 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
15681 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
15682 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
15683 ifdefs).
15684
15685 2009-06-27 Pavel Roskin <proski@gnu.org>
15686
15687 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
15688 read.
15689 * efiemu/prepare32.c: Likewise.
15690 * efiemu/prepare64.c: Likewise.
15691
15692 2009-06-26 Pavel Roskin <proski@gnu.org>
15693
15694 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
15695 * include/grub/elf.h: Define symbols without "32" or "64" based
15696 on GRUB_TARGET_WORDSIZE.
15697 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
15698 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
15699 ELF definitions.
15700 * efiemu/loadcore64.c: Likewise.
15701 * loader/i386/bsd32.c: Likewise.
15702 * loader/i386/bsd64.c: Likewise.
15703 * kern/dl.c: Remove own ELF definitions.
15704 * util/i386/efi/grub-mkimage.c: Likewise.
15705
15706 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
15707
15708 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
15709 segment 0x0 unconditionally, because the reference generated by
15710 GAS is an absolute address.
15711
15712 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15713
15714 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
15715 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
15716
15717 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15718
15719 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
15720 indexes. Check for -f explicitly.
15721 (search_file): Improve error message.
15722 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
15723
15724 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15725
15726 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
15727 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
15728
15729 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15730
15731 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
15732 * conf/i386-ieee1275.rmk: Likewise.
15733 * conf/i386-coreboot.rmk: Likewise.
15734
15735 * kern/i386/pc/startup.S (grub_stop): Remove function.
15736 * kern/i386/ieee1275/startup.S: Likewise.
15737 * kern/i386/coreboot/startup.S: Likewise.
15738 * kern/i386/misc.S (grub_stop): New function.
15739
15740 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15741
15742 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
15743 * kern/i386/realmode.S (real_to_prot): ... to here.
15744
15745 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15746
15747 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
15748 with `kernel.img'.
15749 (kernel_elf_SOURCES): Rename to ...
15750 (kernel_img_SOURCES): ... this.
15751 (kernel_elf_HEADERS): Rename to ...
15752 (kernel_img_HEADERS): ... this. Update all users.
15753 (kernel_elf_ASFLAGS): Rename to ...
15754 (kernel_img_ASFLAGS): ... this.
15755 (kernel_elf_CFLAGS): Rename to ...
15756 (kernel_img_CFLAGS): ... this.
15757 (kernel_elf_LDFLAGS): Rename to ...
15758 (kernel_img_LDFLAGS): ... this.
15759 * conf/i386-coreboot.rmk: Likewise.
15760 * conf/powerpc-ieee1275.rmk: Likewise.
15761
15762 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
15763 with "kernel.img".
15764
15765 2009-06-21 Pavel Roskin <proski@gnu.org>
15766
15767 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
15768 to match nested functions.
15769 * loader/sparc64/ieee1275/linux.c: Likewise.
15770
15771 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
15772
15773 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
15774
15775 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
15776 all i386 platforms.
15777
15778 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
15779
15780 Fix asm file handling on ELF, and remove workarounds.
15781
15782 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
15783 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15784 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
15785 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
15786
15787 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
15788
15789 Load BSD ELF modules
15790
15791 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
15792 and loader/i386/bsd64.c
15793 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
15794 (FREEBSD_MODTYPE_ELF_MODULE): New definition
15795 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
15796 (grub_freebsd_load_elfmodule32): New declaration
15797 (grub_freebsd_load_elfmoduleobj64): Likewise
15798 (grub_freebsd_load_elf_meta32): Likewise
15799 (grub_freebsd_load_elf_meta64): Likewise
15800 (grub_freebsd_add_meta): Likewise
15801 (grub_freebsd_add_meta_module): Likewise
15802 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
15803 (grub_freebsd_add_meta_module): Likewise and move module-specific
15804 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
15805 (grub_cmd_freebsd): Add elf-kernel specific parts
15806 based on grub_freebsd_add_meta_module
15807 (grub_cmd_freebsd_module): Add type parsing moved from
15808 grub_freebsd_add_meta_module
15809 (grub_cmd_freebsd_module_elf): New function
15810 (cmd_freebsd_module_elf): New variable
15811 (GRUB_MOD_INIT): Register freebsd_module_elf
15812 * loader/i386/bsd32.c: New file
15813 * loader/i386/bsd64.c: Likewise
15814 * loader/i386/bsdXX.c: Likewise
15815 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
15816 (grub_elf64_load): Likewise
15817 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
15818 All users updated
15819 (grub_elf64_load_hook_t): Likewise
15820
15821 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
15822
15823 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
15824 variable.
15825 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
15826 don't write a menu entry for recovery mode.
15827
15828 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
15829
15830 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
15831 after it's no longer needed.
15832
15833 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
15834
15835 * include/grub/i386/loader.h (grub_linux_prot_size)
15836 (grub_linux_tmp_addr, grub_linux_real_addr)
15837 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
15838 GRUB_MACHINE_PCBIOS.
15839 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
15840 common grub_util_info() call to ...
15841 (generate_image): ... here.
15842 Fix use of uninitialized memory, comparison of signed with
15843 unsigned integers and memory leak.
15844 Remove bogus module address message.
15845
15846 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
15847
15848 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
15849 grub_raid_register
15850 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
15851
15852 2009-06-19 Pavel Roskin <proski@gnu.org>
15853
15854 * configure.ac: Remove stray AC_MSG_CHECKING.
15855
15856 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
15857
15858 * disk/scsi.c (grub_scsi_open): use continue instead of big if
15859
15860 2009-06-18 Pavel Roskin <proski@gnu.org>
15861
15862 * conf/common.rmk: Add fs_file.mod.
15863 * disk/fs_file.c: New file.
15864 * include/grub/disk.h (enum grub_disk_dev_id): Add
15865 GRUB_DISK_DEVICE_FILE_ID.
15866
15867 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
15868
15869 Fix build with Apple's toolchain. Part 2
15870
15871 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
15872 a fake start
15873
15874 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
15875
15876 Fix build with Apple's toolchain. Part 1
15877
15878 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
15879 for long calls
15880 * configure.ac: remove a leftover AC_MSG_RESULT
15881 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
15882 Apple's toolchain
15883
15884 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
15885
15886 Fix warnings
15887
15888 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
15889 (decomp_block): initialize ch
15890 use grub_memcpy instead of memcpy
15891
15892 2009-06-17 Pavel Roskin <proski@gnu.org>
15893
15894 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
15895 version, use declarations needed to use vga_text as the startup
15896 console.
15897
15898 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
15899 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
15900 the kernel.
15901 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
15902 and grub_at_keyboard_fini(), it's done on module load and
15903 unload.
15904
15905 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
15906
15907 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
15908 file can't be found.
15909 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15910
15911 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
15912
15913 Fix newline handling
15914
15915 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
15916 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
15917 (grub_script_yylex): don't segfault on unterminated script
15918 newline terminates command and variable
15919
15920 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
15921
15922 avoid double grub_adjust_range call. Bug reported by David Simner
15923
15924 * kern/disk.c (grub_disk_write): change to raw disk access before
15925 calling disk_read
15926
15927 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
15928
15929 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
15930 spaces, for the benefit of help2man.
15931 * util/i386/efi/grub-mkimage.c (usage): Likewise.
15932
15933 2009-06-16 Pavel Roskin <proski@gnu.org>
15934
15935 * kern/i386/halt.c: Include grub/machine/init.h.
15936 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
15937
15938 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
15939
15940 * util/grub.d/30_os-prober.in: Use ${root} in the generated
15941 drivemap menuentry.
15942
15943 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
15944
15945 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
15946 `echo' command.
15947
15948 2009-06-16 Pavel Roskin <proski@gnu.org>
15949
15950 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
15951 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
15952 save %dx, we only need %dl and we never change it.
15953 * boot/i386/pc/cdboot.S: Don't set the root drive.
15954 * boot/i386/pc/pxeboot.S: Likewise.
15955 * include/grub/i386/pc/boot.h: Remove
15956 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
15957 GRUB_BOOT_MACHINE_DRIVE_CHECK.
15958 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
15959 * kern/i386/pc/init.c (make_install_device): Remove references
15960 to grub_root_drive.
15961 * kern/i386/pc/startup.S: Likewise.
15962 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
15963
15964 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
15965
15966 xnu_uuid command
15967
15968 * commands/xnu_uuid.c: new file
15969 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
15970 (xnu_uuid_mod_SOURCES): new variable
15971 (xnu_uuid_mod_CFLAGS): likewise
15972 (xnu_uuid_mod_LDFLAGS): likewise
15973 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
15974 * conf/i386-ieee1275.rmk: likewise
15975 * conf/i386-pc.rmk: likewise
15976 * conf/powerpc-ieee1275.rmk: likewise
15977 * conf/sparc64-ieee1275.rmk: likewise
15978 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
15979
15980 2009-06-16 Pavel Roskin <proski@gnu.org>
15981
15982 * configure.ac: Avoid '==' in test command, it's not portable.
15983
15984 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
15985
15986 Probe command
15987
15988 * commands/probe.c: new file
15989 * conf/common.rmk (pkglib_MODULES): add probe.mod
15990 (probe_mod_SOURCES): new variable
15991 (probe_mod_CFLAGS): likewise
15992 (probe_mod_LDFLAGS): likewise
15993 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
15994 * conf/i386-ieee1275.rmk: likewise
15995 * conf/i386-pc.rmk: likewise
15996 * conf/powerpc-ieee1275.rmk: likewise
15997 * conf/sparc64-ieee1275.rmk: likewise
15998
15999 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
16000
16001 Fix handling of string like \"hello\" and "a
16002 b"
16003
16004 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
16005 (grub_script_yylex): fix parsing of quoting, escaping and newline
16006
16007 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
16008
16009 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
16010 handling
16011
16012 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
16013
16014 * util/grub-mkconfig.in: Fix parsing of --output option.
16015
16016 2009-06-12 Pavel Roskin <proski@gnu.org>
16017
16018 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
16019 genmk.rb don't need to be generated or installed.
16020
16021 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
16022
16023 * commands/i386/pc/drivemap_int13h.S: add more comments
16024
16025 2009-06-11 Pavel Roskin <proski@gnu.org>
16026
16027 * Makefile.in (uninstall): Uninstall manuals.
16028
16029 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
16030 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
16031 and update-grub_lib in two places.
16032 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
16033
16034 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
16035 a compiler warning.
16036
16037 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
16038 `entry_lo' to fix variable shadowing.
16039
16040 2009-06-11 Christian Franke <franke@computer.org>
16041
16042 * kern/misc.c (__enable_execute_stack): Add missing return type
16043 to prevent gcc warning.
16044
16045 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
16046
16047 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
16048
16049 2009-06-11 Pavel Roskin <proski@gnu.org>
16050
16051 * Makefile.in: Don't rely on any scripts being executable.
16052 Always use $(SHELL) to run shell scripts.
16053
16054 * configure.ac: Always define ___main if using -nostdlib. This
16055 fixes tests on Cygwin.
16056
16057 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
16058
16059 UDF fix
16060
16061 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
16062 is in bytes and not in blocks
16063
16064 2009-06-11 Pavel Roskin <proski@gnu.org>
16065
16066 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
16067 warning.
16068
16069 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
16070
16071 * util/grub.d/30_os-prober.in: Fix a comment. Source
16072 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
16073 to set the root device. Place drivemap command in the generated
16074 chain entry.
16075
16076 2009-06-11 Pavel Roskin <proski@gnu.org>
16077
16078 * configure.ac: Remove host_m32. Issues with 64-bit utilities
16079 have long been resolved.
16080
16081 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
16082
16083 * util/grub.d/10_linux.in: Capitalise "Linux".
16084
16085 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
16086
16087 2009-06-11 Pavel Roskin <proski@gnu.org>
16088
16089 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
16090 fix a gcc warning and ensure that the function won't ever exit.
16091
16092 * kern/i386/ieee1275/init.c: Add missing prototype for
16093 grub_stop_floppy().
16094
16095 * loader/ieee1275/multiboot2.c [__i386__]: Include
16096 grub/cpu/multiboot.h.
16097
16098 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
16099 casts to short - they are not portable and cause warnings. Fix
16100 use of uninitialized values in input_buf. Use ARRAY_SIZE.
16101
16102 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
16103
16104 Drivemap fixes
16105
16106 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
16107 new function
16108 (grub_get_root_biosnumber_saved): new variable
16109 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
16110 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
16111 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
16112 %dx after the call if necessary
16113 * conf/common.rmk (pkglib_MODULES): remove boot.mod
16114 (boot_mod_SOURCES): remove
16115 (boot_mod_CFLAGS): remove
16116 (boot_mod_LDFLAGS): remove
16117 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
16118 (boot_mod_SOURCES): new variable
16119 (boot_mod_CFLAGS): likewise
16120 (boot_mod_LDFLAGS): likewise
16121 * conf/i386-efi.rmk: likewise
16122 * conf/i386-ieee1275.rmk: likewise
16123 * conf/i386-pc.rmk: likewise
16124 * conf/powerpc-ieee1275.rmk: likewise
16125 * conf/sparc64-ieee1275.rmk: likewise
16126 * conf/x86_64-efi.rmk: likewise
16127 * include/grub/i386/pc/biosnum.h: new file
16128 * lib/i386/pc/biosnum.c: likewise
16129 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
16130 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
16131 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
16132
16133 2009-06-10 Pavel Roskin <proski@gnu.org>
16134
16135 * io/gzio.c (test_header): Don't reuse one buffer for all data.
16136 Use separate variables. Read only the file size at the end, but
16137 not the checksum that we don't use.
16138
16139 * kern/file.c (grub_file_read): Use void pointer for the buffer.
16140 Adjust all callers.
16141
16142 * kern/ieee1275/openfw.c: Remove libc includes.
16143 * kern/ieee1275/cmain.c: Likewise.
16144 * include/grub/ieee1275/ieee1275.h: Likewise.
16145
16146 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
16147 compiler warnings.
16148
16149 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
16150
16151 * Makefile.in: Remove all trailing whitespace.
16152 * conf/i386-pc.rmk: Likewise.
16153 * conf/powerpc-ieee1275.rmk: Likewise.
16154 * conf/sparc64-ieee1275.rmk: Likewise.
16155 * docs/grub.texi: Likewise.
16156 * docs/texinfo.tex: Likewise.
16157 * disk/fs_uuid.c: Likewise.
16158 * disk/lvm.c: Likewise.
16159 * disk/scsi.c: Likewise.
16160 * disk/ata.c: Likewise.
16161 * disk/ieee1275/ofdisk.c: Likewise.
16162 * disk/i386/pc/biosdisk.c: Likewise.
16163 * disk/host.c: Likewise.
16164 * disk/raid.c: Likewise.
16165 * disk/efi/efidisk.c: Likewise.
16166 * disk/usbms.c: Likewise.
16167 * disk/memdisk.c: Likewise.
16168 * disk/loopback.c: Likewise.
16169 * kern/powerpc/dl.c: Likewise.
16170 * kern/device.c: Likewise.
16171 * kern/dl.c: Likewise.
16172 * kern/sparc64/dl.c: Likewise.
16173 * kern/ieee1275/ieee1275.c: Likewise.
16174 * kern/term.c: Likewise.
16175 * kern/fs.c: Likewise.
16176 * kern/i386/dl.c: Likewise.
16177 * kern/i386/pc/startup.S: Likewise.
16178 * kern/i386/pc/init.c: Likewise.
16179 * kern/i386/pc/mmap.c: Likewise.
16180 * kern/i386/pc/lzo1x.S: Likewise.
16181 * kern/i386/ieee1275/init.c: Likewise.
16182 * kern/i386/realmode.S: Likewise.
16183 * kern/i386/tsc.c: Likewise.
16184 * kern/partition.c: Likewise.
16185 * kern/corecmd.c: Likewise.
16186 * kern/file.c: Likewise.
16187 * kern/efi/efi.c: Likewise.
16188 * kern/efi/init.c: Likewise.
16189 * kern/efi/mm.c: Likewise.
16190 * kern/main.c: Likewise.
16191 * kern/err.c: Likewise.
16192 * kern/env.c: Likewise.
16193 * kern/disk.c: Likewise.
16194 * kern/generic/millisleep.c: Likewise.
16195 * kern/generic/rtc_get_time_ms.c: Likewise.
16196 * kern/misc.c: Likewise.
16197 * kern/parser.c: Likewise.
16198 * genmk.rb: Likewise.
16199 * configure.ac: Likewise.
16200 * boot/i386/pc/diskboot.S: Likewise.
16201 * boot/i386/pc/pxeboot.S: Likewise.
16202 * boot/i386/pc/boot.S: Likewise.
16203 * boot/i386/pc/lnxboot.S: Likewise.
16204 * boot/i386/pc/cdboot.S: Likewise.
16205 * parttool/pcpart.c: Likewise.
16206 * video/readers/tga.c: Likewise.
16207 * video/video.c: Likewise.
16208 * video/bitmap.c: Likewise.
16209 * lib/envblk.c: Likewise.
16210 * lib/i386/setjmp.S: Likewise.
16211 * fs/xfs.c: Likewise.
16212 * fs/afs.c: Likewise.
16213 * fs/fat.c: Likewise.
16214 * fs/ntfs.c: Likewise.
16215 * fs/udf.c: Likewise.
16216 * fs/affs.c: Likewise.
16217 * fs/iso9660.c: Likewise.
16218 * fs/hfs.c: Likewise.
16219 * fs/fshelp.c: Likewise.
16220 * fs/ext2.c: Likewise.
16221 * fs/jfs.c: Likewise.
16222 * fs/reiserfs.c: Likewise.
16223 * fs/hfsplus.c: Likewise.
16224 * fs/minix.c: Likewise.
16225 * fs/cpio.c: Likewise.
16226 * fs/sfs.c: Likewise.
16227 * fs/ufs.c: Likewise.
16228 * efiemu/prepare.c: Likewise.
16229 * efiemu/loadcore_common.c: Likewise.
16230 * efiemu/runtime/efiemu.sh: Likewise.
16231 * efiemu/runtime/efiemu.S: Likewise.
16232 * efiemu/runtime/efiemu.c: Likewise.
16233 * efiemu/pnvram.c: Likewise.
16234 * efiemu/main.c: Likewise.
16235 * efiemu/i386/pc/cfgtables.c: Likewise.
16236 * efiemu/i386/loadcore64.c: Likewise.
16237 * efiemu/i386/loadcore32.c: Likewise.
16238 * efiemu/loadcore.c: Likewise.
16239 * efiemu/symbols.c: Likewise.
16240 * efiemu/mm.c: Likewise.
16241 * include/grub/autoefi.h: Likewise.
16242 * include/grub/datetime.h: Likewise.
16243 * include/grub/term.h: Likewise.
16244 * include/grub/hfs.h: Likewise.
16245 * include/grub/lvm.h: Likewise.
16246 * include/grub/i386/tsc.h: Likewise.
16247 * include/grub/i386/linux.h: Likewise.
16248 * include/grub/i386/xnu.h: Likewise.
16249 * include/grub/i386/efiemu.h: Likewise.
16250 * include/grub/i386/pc/biosdisk.h: Likewise.
16251 * include/grub/i386/pc/memory.h: Likewise.
16252 * include/grub/i386/pc/vbe.h: Likewise.
16253 * include/grub/parttool.h: Likewise.
16254 * include/grub/video.h: Likewise.
16255 * include/grub/memory.h: Likewise.
16256 * include/grub/fs.h: Likewise.
16257 * include/grub/partition.h: Likewise.
16258 * include/grub/xnu.h: Likewise.
16259 * include/grub/efi/api.h: Likewise.
16260 * include/grub/efi/pe32.h: Likewise.
16261 * include/grub/efi/memory.h: Likewise.
16262 * include/grub/multiboot.h: Likewise.
16263 * include/grub/usbdesc.h: Likewise.
16264 * include/grub/multiboot2.h: Likewise.
16265 * include/grub/acpi.h: Likewise.
16266 * include/grub/efiemu/efiemu.h: Likewise.
16267 * include/grub/disk.h: Likewise.
16268 * include/grub/ieee1275/ieee1275.h: Likewise.
16269 * include/grub/net.h: Likewise.
16270 * include/grub/machoload.h: Likewise.
16271 * include/grub/macho.h: Likewise.
16272 * include/multiboot.h: Likewise.
16273 * genmoddep.awk: Likewise.
16274 * normal/main.c: Likewise.
16275 * normal/menu_entry.c: Likewise.
16276 * normal/menu_viewer.c: Likewise.
16277 * normal/completion.c: Likewise.
16278 * normal/cmdline.c: Likewise.
16279 * normal/misc.c: Likewise.
16280 * normal/datetime.c: Likewise.
16281 * bus/usb/usbtrans.c: Likewise.
16282 * bus/usb/ohci.c: Likewise.
16283 * bus/usb/uhci.c: Likewise.
16284 * bus/usb/usb.c: Likewise.
16285 * mmap/efi/mmap.c: Likewise.
16286 * mmap/i386/pc/mmap_helper.S: Likewise.
16287 * mmap/i386/pc/mmap.c: Likewise.
16288 * mmap/i386/mmap.c: Likewise.
16289 * mmap/i386/uppermem.c: Likewise.
16290 * mmap/mmap.c: Likewise.
16291 * commands/acpi.c: Likewise.
16292 * commands/echo.c: Likewise.
16293 * commands/blocklist.c: Likewise.
16294 * commands/loadenv.c: Likewise.
16295 * commands/usbtest.c: Likewise.
16296 * commands/boot.c: Likewise.
16297 * commands/parttool.c: Likewise.
16298 * commands/search.c: Likewise.
16299 * commands/cat.c: Likewise.
16300 * commands/i386/pc/play.c: Likewise.
16301 * commands/i386/pc/drivemap.c: Likewise.
16302 * commands/i386/pc/vbeinfo.c: Likewise.
16303 * commands/i386/pc/acpi.c: Likewise.
16304 * commands/i386/pc/vbetest.c: Likewise.
16305 * commands/ls.c: Likewise.
16306 * commands/cmp.c: Likewise.
16307 * commands/test.c: Likewise.
16308 * commands/efi/acpi.c: Likewise.
16309 * commands/gptsync.c: Likewise.
16310 * commands/help.c: Likewise.
16311 * partmap/amiga.c: Likewise.
16312 * partmap/apple.c: Likewise.
16313 * partmap/acorn.c: Likewise.
16314 * partmap/pc.c: Likewise.
16315 * partmap/sun.c: Likewise.
16316 * partmap/gpt.c: Likewise.
16317 * script/sh/lexer.c: Likewise.
16318 * script/sh/function.c: Likewise.
16319 * font/font.c: Likewise.
16320 * font/font_cmd.c: Likewise.
16321 * loader/powerpc/ieee1275/linux.c: Likewise.
16322 * loader/efi/chainloader.c: Likewise.
16323 * loader/multiboot_loader.c: Likewise.
16324 * loader/macho.c: Likewise.
16325 * loader/i386/multiboot.c: Likewise.
16326 * loader/i386/linux.c: Likewise.
16327 * loader/i386/pc/linux.c: Likewise.
16328 * loader/i386/pc/multiboot2.c: Likewise.
16329 * loader/i386/pc/chainloader.c: Likewise.
16330 * loader/i386/pc/xnu.c: Likewise.
16331 * loader/i386/bsd_trampoline.S: Likewise.
16332 * loader/i386/efi/linux.c: Likewise.
16333 * loader/i386/multiboot_elfxx.c: Likewise.
16334 * loader/i386/bsd_helper.S: Likewise.
16335 * loader/i386/bsd.c: Likewise.
16336 * loader/i386/linux_trampoline.S: Likewise.
16337 * loader/i386/xnu_helper.S: Likewise.
16338 * loader/i386/xnu.c: Likewise.
16339 * loader/i386/bsd_pagetable.c: Likewise.
16340 * loader/i386/multiboot_helper.S: Likewise.
16341 * loader/xnu.c: Likewise.
16342 * loader/xnu_resume.c: Likewise.
16343 * io/gzio.c: Likewise.
16344 * term/efi/console.c: Likewise.
16345 * term/terminfo.c: Likewise.
16346 * term/ieee1275/ofconsole.c: Likewise.
16347 * term/i386/pc/serial.c: Likewise.
16348 * term/i386/pc/vesafb.c: Likewise.
16349 * term/i386/pc/vga.c: Likewise.
16350 * term/usb_keyboard.c: Likewise.
16351 * term/gfxterm.c: Likewise.
16352 * aclocal.m4: Likewise.
16353 * util/lvm.c: Likewise.
16354 * util/grub.d/30_os-prober.in: Likewise.
16355 * util/grub.d/10_hurd.in: Likewise.
16356 * util/console.c: Likewise.
16357 * util/grub-macho2img.c: Likewise.
16358 * util/grub-probe.c: Likewise.
16359 * util/hostfs.c: Likewise.
16360 * util/i386/pc/grub-mkimage.c: Likewise.
16361 * util/i386/pc/grub-setup.c: Likewise.
16362 * util/i386/efi/grub-mkimage.c: Likewise.
16363 * util/grub-mkconfig.in: Likewise.
16364 * util/raid.c: Likewise.
16365 * util/resolve.c: Likewise.
16366 * util/grub-mkdevicemap.c: Likewise.
16367 * util/grub-emu.c: Likewise.
16368 * util/getroot.c: Likewise.
16369 * util/hostdisk.c: Likewise.
16370 * util/usb.c: Likewise.
16371 * util/grub-editenv.c: Likewise.
16372 * util/misc.c: Likewise.
16373
16374 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
16375
16376 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
16377 `genparttoollist.sh'.
16378 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
16379 Add `*.sh' to the list find searches for and change `mdate.sh'
16380 to `mdate-sh'.
16381
16382 2009-06-10 Pavel Roskin <proski@gnu.org>
16383
16384 * include/grub/multiboot2.h: Provide compatibility defines for
16385 multiboot2.h.
16386 * include/multiboot2.h: Include stdint.h only if needed, using
16387 angle brackets.
16388 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
16389 grub/multiboot2.h.
16390 * loader/ieee1275/multiboot2.c: Likewise.
16391 * loader/multiboot2.c: Likewise.
16392 * loader/multiboot_loader.c: Likewise.
16393
16394 * configure.ac: Use -nostdlib when probing for the target. It
16395 should not be required to have libc for the target.
16396
16397 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
16398 they fail without libc headers for the target.
16399 * include/grub/powerpc/libgcc.h: Use weak attribute for all
16400 exports.
16401 * include/grub/sparc64/libgcc.h: Likewise. Don't use
16402 preprocessor conditionals.
16403
16404 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
16405 build system doesn't need to be aware of the tar.c internals.
16406
16407 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
16408
16409 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
16410
16411 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
16412
16413 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
16414 disk limit to 26 for IDE, Virtio, Xen and SCSI.
16415
16416 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
16417
16418 * util/i386/pc/grub-install.in: Change the error message if UUIDs
16419 aren't available if ata.mod gets used.
16420
16421 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
16422
16423 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
16424 initialising controller.
16425 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
16426
16427 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
16428
16429 * util/i386/pc/grub-install.in: Add a parameter --disk-module
16430 to choose between ata and biosdisk module on i386-pc.
16431
16432 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
16433
16434 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
16435 Subclass and Programming Interface fields in terms of the 3 byte
16436 Class Code register.
16437 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
16438
16439 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
16440 interface is OHCI. Add grub_dprintf for symmetry with
16441 bus/usb/uhci.c.
16442 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
16443 interface is UHCI. Add interf variable for programming
16444 interface. Print interface with class/subclass.
16445
16446 * bus/usb/ohci.c: Set interf with correct field.
16447
16448 * bus/usb/uhci.c: Remove unneeded doubled lines.
16449 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
16450 Remove whitespace inside comment.
16451
16452 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
16453
16454 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
16455 as fallback an equivalent option without depth.
16456
16457 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
16458
16459 Not fail if unable to retrieve C/H/S on LBA disks
16460
16461 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
16462 if unable to retrieve C/H/S on LBA disks
16463
16464 2009-06-08 Pavel Roskin <proski@gnu.org>
16465
16466 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
16467 about aliasing.
16468
16469 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
16470
16471 * Makefile.in (uninstall): Remove all $lib_DATA files.
16472
16473 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
16474
16475 Bugfix: install on partitionless device
16476
16477 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
16478 is a whole disk
16479
16480 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
16481
16482 * Makefile.in (uninstall): Remove all $include_DATA files.
16483
16484 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
16485
16486 * commands/true.c: New file. Implement the true and false commands.
16487 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
16488 (true_mod_SOURCES): New variable.
16489 (true_mod_CFLAGS): Likewise.
16490 (true_mod_LDFLAGS): Likewise.
16491
16492 2009-06-05 Colin D Bennett <colin@gibibit.com>
16493
16494 Optimized font character lookup using binary search instead of linear
16495 search. Fonts now are required to have the character index ordered by
16496 code point.
16497
16498 * font/font.c (load_font_index): Verify that fonts have ordered
16499 character indices.
16500 (find_glyph): Use binary search instead of linear search to find a
16501 character in a font.
16502
16503 2009-06-05 Michael Scherer <misc@mandriva.org>
16504
16505 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
16506 uses case sensitive btree.
16507 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
16508 only for case insensitive filesystems.
16509
16510 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
16511
16512 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
16513 * conf/common.rmk (search_mod_CFLAGS): likewise
16514
16515 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16516
16517 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
16518 compensate a compiler bug
16519
16520 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16521
16522 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
16523 instead of '\b'
16524
16525 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16526
16527 Definitions for creating asm symbols with Apple's CC
16528
16529 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
16530 [APPLE_CC] (VARIABLE): likewise
16531
16532 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16533
16534 Disable lnxboot.img when compiled
16535 with Apple's CC
16536
16537 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
16538 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
16539 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
16540 [! APPLE_CC] (CODE_LENG): skip
16541 [! APPLE_CC] (setup_sects): likewise
16542 [! APPLE_CC]: skip filling
16543
16544 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16545
16546 Address in trampolines based on 32-bit registers when compiled
16547 with Apple's CC
16548
16549 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
16550 for addresses
16551 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
16552
16553 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16554
16555 Avoid aliases when compiling with Apple's CC for PCBIOS machine
16556
16557 * kern/misc.c [APPLE_CC] (memcpy): new function
16558 [APPLE_CC] (memmove): likewise
16559 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
16560 (memcpy): define alias conditionally on !APPLE_CC
16561 (memset): likewise
16562 (abort): likewise
16563 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
16564 APPLE_CC are defined
16565 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
16566 (grub_assert_fail): make prototype conditional
16567
16568 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16569
16570 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
16571
16572 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
16573 grub-macho2img
16574 (CLEANFILES): add grub-macho2img
16575 (grub_macho2img_SOURCES): new variable
16576 * kern/i386/pc/startup.S (bss_start): new variable
16577 (bss_end): likewise
16578 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
16579 * util/grub-macho2img.c: new file
16580
16581 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16582
16583 Use objconv when compiling with Apple's CC
16584
16585 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
16586 (efiemu64.o): likewise
16587 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
16588 when compiling with Apple's CC
16589 (efiemu64_s.o): likewise
16590 * configure.ac: check for objconv when compiling with Apple's CC
16591 * genmk.rb: use objconv for modules when compiled with Apple's CC
16592
16593 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16594
16595 Define segment as well as section when compiling with
16596 Apple's CC
16597
16598 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
16599 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
16600 (efiemu_convert_pointer): likewise
16601 (efiemu_set_virtual_address_map): likewise
16602 (efiemu_convert_pointer): likewise
16603 (efiemu_getcrc32): likewise
16604 (init_crc32_table): likewise
16605 (reflect): likewise
16606 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
16607 (GRUB_MOD_DEP): likewise
16608
16609 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16610
16611 Allow a compilation without -mcmodel=large
16612
16613 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
16614 when compiled without -mcmodel=large
16615 (filter_memory_map): remove memory post 4 GiB when compiled
16616 without -mcmodel=large
16617 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
16618 TARGET_CFLAGS when -mcmodel=large isn't supported
16619
16620 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16621
16622 Remove nested functions in efiemu core
16623
16624 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
16625
16626 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16627
16628 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
16629
16630 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
16631 temporary storage
16632 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
16633 using Apple's CC
16634 (grub_cpu_is_tsc_supported): likewise
16635 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
16636
16637 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16638
16639 Absolute addressing through constant with Apple's cc
16640
16641 * kern/i386/pc/startup.S: Define necessary constants
16642 and address through it when using ABS with Apple's CC
16643 * boot/i386/pc/diskboot.S: likewise
16644 * boot/i386/pc/boot.S: likewise
16645 * boot/i386/pc/lnxboot.S: likewise
16646 * boot/i386/pc/cdboot.S: likewise
16647 * mmap/i386/pc/mmap_helper.S: likewise
16648 * commands/i386/pc/drivemap_int13h.S: likewise
16649
16650 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16651
16652 Check if compiler is apple cc
16653
16654 * Makefile.in (ASFLAGS): new variable
16655 (TARGET_ASFLAGS): likewise
16656 (TARGET_MODULE_FORMAT): likewise
16657 (TARGET_APPLE_CC): likewise
16658 (OBJCONV): likewise
16659 (TARGET_IMG_CFLAGS): likewise
16660 (TARGET_CPPFLAGS): add includedir
16661 * configure.ac: call grub_apple_cc and grub_apple_target_cc
16662 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
16663 Check for linker script only if compiler isn't Apple's CC
16664 (TARGET_MODULE_FORMAT): set
16665 (TARGET_APPLE_CC): likewise
16666 (TARGET_ASFLAGS): likewise
16667 (ASFLAGS): likewise
16668 Check for objcopy only if compiler isn't Apple's CC
16669 Check for BSS symbol only if compiler isn't Apple's CC
16670 * genmk.rb: adapt nm options if we use Apple's utils
16671 * aclocal.m4 (grub_apple_cc): new test
16672 (grub_apple_target_cc): likewise
16673
16674 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16675
16676 Simplify sed expressions and improve awk
16677
16678 * Makefile.in (install-local): simplify sed expression
16679 * gencmdlist.sh: likewise
16680 * genmoddep.awk: avoid adding module as a dependency of itself
16681
16682 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16683
16684 Add missing start symbols
16685
16686 * boot/i386/pc/boot.S: add start
16687 * boot/i386/pc/pxeboot.S: likewise
16688
16689 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16690
16691 Fix wrong assumptions with grub-mkimage on EFI
16692
16693 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
16694 (relocate_addresses): consider both r_addend and value at offset
16695 (make_mods_section): zerofill modinfo and header
16696 (convert_elf): write prefix here
16697
16698 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16699
16700 Use .asciz instead of .string
16701
16702 * i386/pc/diskboot.S: use .asciz instead of .string
16703 * i386/pc/boot.S: likewise
16704 * include/grub/dl.h (GRUB_MOD_DEP): likewise
16705 (GRUB_MOD_NAME): likewise
16706
16707 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16708
16709 gfxpayload support
16710
16711 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
16712 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
16713 (grub_video_setup): remove
16714 (grub_video_set_mode): new prototype
16715 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
16716 (vid_mode): remove
16717 (linux_vesafb_res): compile only on PCBIOS
16718 (grub_linux_boot): support gfxpayload
16719 * loader/i386/pc/xnu.c (video_hook): new function
16720 (grub_xnu_set_video): support gfxpayload
16721 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
16722 (DEFAULT_VIDEO_HEIGHT): likewise
16723 (DEFAULT_VIDEO_FLAGS): likewise
16724 (DEFAULT_VIDEO_MODE): new definition
16725 (video_hook): new function
16726 (grub_gfxterm_init): use grub_video_set_mode
16727 * util/grub.d/30_os-prober.in: remove explicit modesetting before
16728 loading xnu
16729 * video/video.c (grub_video_setup): removed
16730 (grub_video_set_mode): new function based on grub_gfxterm_init and
16731 grub_video_setup
16732
16733 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16734
16735 Avoid calling biosdisk in drivemap
16736
16737 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
16738 (revparse_biosdisk): likewise
16739 (list_mappings): derive name from id directly
16740 (grub_cmd_drivemap): use tryparse_diskstring
16741
16742 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16743
16744 Script fixes
16745
16746 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
16747 (grub_lexer_param): add tokenonhold
16748 (grub_script_create_cmdline): remove cmdline. All callers updated
16749 (grub_script_function_create): make functionname
16750 grub_script_arg. All callers updated
16751 (grub_script_execute_argument_to_string): new prototype
16752 * kern/parser.c (state_transitions): reorder
16753 (grub_parser_cmdline_state): fix a bug and make more compact
16754 * script/sh/execute.c (grub_script_execute_argument_to_string):
16755 make global
16756 (grub_script_execute_cmdline): use new format
16757 * script/sh/function.c (grub_script_function_create): make functionname
16758 grub_script_arg. All callers updated
16759 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
16760 (grub_script_yylex): remove
16761 (grub_script_yylex2): renamed to ...
16762 (grub_script_yylex): ...renamed
16763 parse the expressions like a${b}c
16764 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
16765 (GRUB_PARSER_TOKEN_VAR): remove
16766 (GRUB_PARSER_TOKEN_NAME): likewise
16767 ("if"): declare as typeless
16768 ("while"): likewise
16769 ("function"): likewise
16770 ("else"): likewise
16771 ("then"): likewise
16772 ("fi"): likewise
16773 (text): remove
16774 (argument): likewise
16775 (script): accept empty scripts and make exit on error
16776 (arguments): use GRUB_PARSER_TOKEN_ARG
16777 (function): likewise
16778 (command): move error handling to script
16779 (menuentry): move grub_script_lexer_ref before
16780 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
16781 argument. All callers updated
16782
16783 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
16784
16785 Prevent GRUB from probing floppies during boot.
16786
16787 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
16788 * commands/search.c (options): Add --no-floppy.
16789 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
16790 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
16791 --no-floppy when searching for UUIDs.
16792
16793 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
16794
16795 Simplify the code duplication in commands/search.c.
16796
16797 * commands/search.c (search_label, search_fs_uuid): Merge into ...
16798 (search_fs): ... this. Update all users.
16799
16800 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
16801
16802 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
16803
16804 2009-05-28 Pavel Roskin <proski@gnu.org>
16805
16806 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
16807 Remove the original symlink explicitly.
16808
16809 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
16810 just one slash. That's how grub_fshelp_find_file() does it.
16811
16812 2009-05-26 Pavel Roskin <proski@gnu.org>
16813
16814 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
16815 to `str'.
16816
16817 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
16818 possibly unused.
16819
16820 2009-05-25 Christian Franke <franke@computer.org>
16821
16822 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
16823 register.
16824 (grub_atapi_identify): Add wait after drive select.
16825 (grub_ata_identify): Do more strict status register check before
16826 calling grub_atapi_identify (). Suppress error message if status
16827 register is 0x00 after command failure. Add status register
16828 check after PIO read to avoid bogus identify due to stuck DRQ.
16829 Thanks to Pavel Roskin for testing.
16830 (grub_device_initialize): Remove unsafe status register check.
16831 Thanks to 'phcoder' for problem report and patch.
16832 Prevent sign extension in debug message.
16833
16834 2009-05-23 Colin D Bennett <colin@gibibit.com>
16835
16836 Cleaned up `include/grub/normal.h'. Grouped prototypes by
16837 definition file, and functions defined in `normal/menu.c' have had
16838 their prototypes moved to `include/grub/menu.h' for consistency.
16839
16840 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
16841 from normal.h.
16842 (grub_menu_get_entry): Likewise.
16843 (grub_menu_get_timeout): Likewise.
16844 (grub_menu_set_timeout): Likewise.
16845 (grub_menu_execute_entry): Likewise.
16846 (grub_menu_execute_with_fallback): Likewise.
16847 (grub_menu_entry_run): Likewise.
16848
16849 * include/grub/normal.h: Re-ordered and grouped function
16850 prototypes by file that the function is defined in.
16851 (grub_menu_execute_callback): Removed; moved to menu.h.
16852 (grub_menu_get_entry): Likewise.
16853 (grub_menu_get_timeout): Likewise.
16854 (grub_menu_set_timeout): Likewise.
16855 (grub_menu_execute_entry): Likewise.
16856 (grub_menu_execute_with_fallback): Likewise.
16857 (grub_menu_entry_run): Likewise.
16858 (grub_menu_addentry): Renamed from this ...
16859 (grub_normal_add_menu_entry): ... to this.
16860
16861 * normal/main.c (grub_menu_addentry): Renamed from this ...
16862 (grub_normal_add_menu_entry): ... to this.
16863
16864 * script/sh/execute.c (grub_script_execute_menuentry): Update
16865 reference to renamed grub_menu_addentry function.
16866
16867 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
16868
16869 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
16870
16871 2009-05-22 Pavel Roskin <proski@gnu.org>
16872
16873 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
16874 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
16875 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
16876 compiling for the i386 targets, but not for the utilities.
16877
16878 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
16879 to grub_uint8_t.
16880 (grub_root_drive): Likewise.
16881 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
16882 remove alignment.
16883 (grub_root_drive): Change size to byte.
16884 (grub_start_addr): Remove.
16885 (grub_end_addr): Likewise.
16886 (grub_apm_bios_info): Likewise.
16887
16888 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
16889
16890 * normal/i386: Remove.
16891 * normal/powerpc: Likewise.
16892 * normal/sparc64: Likewise.
16893 * normal/x86_64: Likewise.
16894
16895 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
16896
16897 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
16898 * loader/i386/linux_trampoline.S: Fix indentation
16899 * loader/i386/xnu_helper.S: Likewise
16900
16901 2009-05-18 Colin D Bennett <colin@gibibit.com>
16902
16903 Display error messages when parsing a Lua statement fails.
16904 Previously, executing a syntactically invalid statement like
16905 ")foo" or "bar;" would silently fail.
16906
16907 * script/lua/grub_main.c (handle_lua_error): New function.
16908 (grub_lua_parse_line): Improved reporting of Lua parser and
16909 execution errors.
16910
16911 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16912
16913 Remove -Werror which causes build to fail on some systems
16914
16915 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
16916 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
16917 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
16918
16919 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16920
16921 trampoline for linux on 64-bit platform
16922
16923 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
16924 loader/i386/efi/linux_trampoline.S
16925 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
16926 declaration
16927 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
16928 here
16929 * loader/i386/linux_trampoline.S: moved here
16930 * loader/i386/efi/linux.c (allocate_pages): reserve space for
16931 trampoline
16932 (jumpvector): removed
16933 (grub_linux_trampoline_start): new declaration
16934 (grub_linux_trampoline_end): likewise
16935 (grub_linux_boot): use trampoline when on 64-bit platform
16936 * loader/i386/linux.c: likewise
16937
16938 2009-05-16 Pavel Roskin <proski@gnu.org>
16939
16940 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
16941 const to avoid a warning.
16942 (grub_lua_setenv): Likewise.
16943 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
16944 lmsg to fix a warning.
16945
16946 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
16947
16948 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
16949 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
16950 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
16951 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
16952 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
16953 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
16954 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
16955 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
16956
16957 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
16958
16959 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
16960
16961 2009-05-16 Bean <bean123ch@gmail.com>
16962
16963 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
16964 (lua_mod_SOURCES): New variable.
16965 (lua_mod_CFLAGS): Likewise.
16966 (lua_mod_LDFLAGS): Likewise.
16967
16968 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
16969 (setjmp_mod_SOURCES): New variable.
16970 (setjmp_mod_CFLAGS): Likewise.
16971 (setjmp_LDFLAGS): Likewise.
16972
16973 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
16974 (setjmp_mod_SOURCES): New variable.
16975 (setjmp_mod_CFLAGS): Likewise.
16976 (setjmp_LDFLAGS): Likewise.
16977
16978 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
16979 (setjmp_mod_SOURCES): New variable.
16980 (setjmp_mod_CFLAGS): Likewise.
16981 (setjmp_LDFLAGS): Likewise.
16982
16983 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
16984 (setjmp_mod_SOURCES): New variable.
16985 (setjmp_mod_CFLAGS): Likewise.
16986 (setjmp_LDFLAGS): Likewise.
16987
16988 * normal/i386/setjmp.S: Moved from here ...
16989 * lib/i386/setjmp.S: ... Moved here
16990 * normal/x86_64/setjmp.S: Moved from here ...
16991 * lib/x86_64/setjmp.S: ... Moved here
16992 * normal/powerpc/setjmp.S: Moved from here ...
16993 * lib/powerpc/setjmp.S: ... Moved here
16994 * normal/sparc64/setjmp.S: Moved from here ...
16995 * lib/sparc64/setjmp.S: ... Moved here
16996
16997 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
16998 returns_twice in mingw.
16999
17000 * script/lua/grub_lib.c: New file.
17001 * script/lua/grub_lib.h: Likewise.
17002 * script/lua/grub_lua.h: Likewise.
17003 * script/lua/grub_main.c: Likewise.
17004 * script/lua/lapi.c: Likewise.
17005 * script/lua/lapi.h: Likewise.
17006 * script/lua/lauxlib.c: Likewise.
17007 * script/lua/lauxlib.h: Likewise.
17008 * script/lua/lbaselib.c: Likewise.
17009 * script/lua/lcode.c: Likewise.
17010 * script/lua/lcode.h: Likewise.
17011 * script/lua/ldblib.c: Likewise.
17012 * script/lua/ldebug.c: Likewise.
17013 * script/lua/ldebug.h: Likewise.
17014 * script/lua/ldo.c: Likewise.
17015 * script/lua/ldo.h: Likewise.
17016 * script/lua/ldump.c: Likewise.
17017 * script/lua/lfunc.c: Likewise.
17018 * script/lua/lfunc.h: Likewise.
17019 * script/lua/lgc.c: Likewise.
17020 * script/lua/lgc.h: Likewise.
17021 * script/lua/linit.c: Likewise.
17022 * script/lua/liolib.c: Likewise.
17023 * script/lua/llex.c: Likewise.
17024 * script/lua/llex.h: Likewise.
17025 * script/lua/llimits.h: Likewise.
17026 * script/lua/lmathlib.c: Likewise.
17027 * script/lua/lmem.c: Likewise.
17028 * script/lua/lmem.h: Likewise.
17029 * script/lua/loadlib.c: Likewise.
17030 * script/lua/lobject.c: Likewise.
17031 * script/lua/lobject.h: Likewise.
17032 * script/lua/lopcodes.c: Likewise.
17033 * script/lua/lopcodes.h: Likewise.
17034 * script/lua/loslib.c: Likewise.
17035 * script/lua/lparser.c: Likewise.
17036 * script/lua/lparser.h: Likewise.
17037 * script/lua/lstate.c: Likewise.
17038 * script/lua/lstate.h: Likewise.
17039 * script/lua/lstring.c: Likewise.
17040 * script/lua/lstring.h: Likewise.
17041 * script/lua/lstrlib.c: Likewise.
17042 * script/lua/ltable.c: Likewise.
17043 * script/lua/ltable.h: Likewise.
17044 * script/lua/ltablib.c: Likewise.
17045 * script/lua/ltm.c: Likewise.
17046 * script/lua/ltm.h: Likewise.
17047 * script/lua/lua.h: Likewise.
17048 * script/lua/luaconf.h: Likewise.
17049 * script/lua/lualib.h: Likewise.
17050 * script/lua/lundump.c: Likewise.
17051 * script/lua/lundump.h: Likewise.
17052 * script/lua/lvm.c: Likewise.
17053 * script/lua/lvm.h: Likewise.
17054 * script/lua/lzio.c: Likewise.
17055 * script/lua/lzio.h: Likewise.
17056
17057 2009-05-16 Bean <bean123ch@gmail.com>
17058
17059 * include/grub/kernel.h (grub_module_header_types): Add type
17060 OBJ_TYPE_CONFIG.
17061
17062 * kern/main.c (grub_load_config): New function.
17063 (grub_main): Call grub_load_config to read boot config.
17064
17065 * grub-mkimage (generate_image): New parameter config_path.
17066 (options): New option --config.
17067 (main): Parse --config option, and pass it to generate_image.
17068
17069 2009-05-14 Christian Franke <franke@computer.org>
17070
17071 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
17072 This fixes build on Cygwin.
17073
17074 2009-05-14 Pavel Roskin <proski@gnu.org>
17075
17076 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
17077 jump. This saves two bytes, so the typical case of 2 swapped
17078 drives would fit 32 bytes.
17079
17080 2009-05-13 Pavel Roskin <proski@gnu.org>
17081
17082 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
17083 grub_uint32_t to avoid a warning.
17084
17085 * loader/i386/linux.c (allocate_pages): When assigning
17086 real_mode_mem, cast through grub_size_t to fix a warning. The
17087 code already makes sure that the value would fit a pointer.
17088 (grub_linux_setup_video): Cast render_target->data to
17089 grub_size_t to fix a warning.
17090
17091 2009-05-13 Javier Martín <lordhabbit@gmail.com>
17092
17093 * commands/i386/pc/drivemap.c: New file - implement drivemap
17094 command.
17095 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
17096 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
17097
17098 2009-05-13 Pavel Roskin <proski@gnu.org>
17099
17100 * util/i386/pc/grub-setup.c (setup): Remove unused variable
17101 embedding_area_exists.
17102
17103 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
17104
17105 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
17106 it easier to understand / work with.
17107 Improve warning messages for cases where there's no embedding area,
17108 or when it is too small (or core.img too large).
17109
17110 2009-05-13 Pavel Roskin <proski@gnu.org>
17111
17112 * loader/i386/pc/multiboot2.c: Add necessary includes for
17113 grub_multiboot2_real_boot().
17114
17115 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
17116 PX record is always little-endian. We only need the lower 2
17117 bytes of the mode.
17118
17119 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
17120 facilitate code reuse.
17121 (grub_cpio_mount): Use "struct head", not a char buffer. This
17122 fixes a warning reported by gcc 4.4.
17123
17124 * kernel/disk.c (grub_disk_read): Use void pointer for the
17125 buffer.
17126 (grub_disk_write): Use const void pointer for the buffer.
17127 Adjust all callers. Remove unnecessary casts.
17128
17129 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
17130
17131 * util/i386/pc/grub-install.in: Update copyright year.
17132
17133 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17134
17135 gptsync
17136
17137 * commands/gptsync.c: new file
17138 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
17139 (gptsync_mod_SOURCES): new variable
17140 (gptsync_mod_CFLAGS): likewise
17141 (gptsync_mod_LDFLAGS): likewise
17142 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
17143 new definition
17144 (GRUB_PC_PARTITION_TYPE_HFS): likewise
17145 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
17146 * conf/i386-ieee1275.rmk: likewise
17147 * conf/i386-pc.rmk: likewise
17148 * conf/powerpc-ieee1275.rmk: likewise
17149
17150 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17151
17152 Fixed grub-emu
17153
17154 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
17155 (grub_dl_ref): likewise
17156
17157 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
17158
17159 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
17160 split in two functions (one for msdos and one for gpt).
17161
17162 2009-05-08 Pavel Roskin <proski@gnu.org>
17163
17164 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
17165 not modified.
17166
17167 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
17168 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
17169 Initialize them with -1. Add sanity check for bad1. Eliminate
17170 nerr variable.
17171
17172 2009-05-08 David S. Miller <davem@davemloft.net>
17173
17174 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
17175
17176 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
17177
17178 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
17179 existence.
17180
17181 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
17182
17183 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
17184 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
17185
17186 2009-05-05 David S. Miller <davem@davemloft.net>
17187
17188 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
17189
17190 2009-05-05 Pavel Roskin <proski@gnu.org>
17191
17192 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
17193 of grub_dl_ref() and grub_dl_unref().
17194 * commands/parttool.c: Remove preprocessor conditionals around
17195 grub_dl_ref() and grub_dl_unref().
17196 * fs/affs.c: Likewise.
17197 * fs/afs.c: Likewise.
17198 * fs/cpio.c: Likewise.
17199 * fs/ext2.c: Likewise.
17200 * fs/fat.c: Likewise.
17201 * fs/hfs.c: Likewise.
17202 * fs/hfsplus.c: Likewise.
17203 * fs/iso9660.c: Likewise.
17204 * fs/jfs.c: Likewise.
17205 * fs/minix.c: Likewise.
17206 * fs/ntfs.c: Likewise.
17207 * fs/reiserfs.c: Likewise.
17208 * fs/sfs.c: Likewise.
17209 * fs/udf.c: Likewise.
17210 * fs/ufs.c: Likewise.
17211 * fs/xfs.c: Likewise.
17212 * include/grub/dl.h: Likewise.
17213 * loader/xnu.c: Likewise.
17214
17215 2009-05-04 Pavel Roskin <proski@gnu.org>
17216
17217 * commands/acpi.c: Remove unused variable my_mod.
17218 * partmap/amiga.c: Likewise.
17219 * partmap/apple.c: Likewise.
17220 * partmap/gpt.c: Likewise.
17221 * partmap/pc.c: Likewise.
17222 * partmap/sun.c: Likewise.
17223 * term/gfxterm.c: Likewise.
17224 * term/i386/pc/vesafb.c: Likewise.
17225 * term/i386/pc/vga.c: Likewise.
17226
17227 2009-05-04 David S. Miller <davem@davemloft.net>
17228
17229 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
17230 pointer args to grub_ieee1275_get_property().
17231
17232 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
17233
17234 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
17235 devices, and do not traverse down under controller nodes.
17236
17237 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
17238 (grub_ofdisk_open): Use it to un-escape "," characters.
17239 * kern/disk.c (find_part_sep): New.
17240 (grub_disk_open): Use it to find the first non-escaped ','
17241 character in the disk name.
17242 * util/ieee1275/devicemap.c (escape_of_path): New.
17243 (grub_util_emit_devicemap_entry): Use it.
17244 * util/sparc64/ieee1275/grub-install.in: Update script to
17245 strip partition specifiers properly by not triggering on
17246 '\' escaped ',' characters.
17247
17248 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
17249
17250 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
17251 to 0x300.
17252 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
17253 resolutions.
17254 (linux_vesafb_modes): Add a lot of additional modes to the list (based
17255 on documentation from Wikipedia).
17256
17257 2009-05-04 Pavel Roskin <proski@gnu.org>
17258
17259 * disk/ata.c: Spelling fixes.
17260 * disk/raid.c: Likewise.
17261 * disk/usbms.c: Likewise.
17262 * disk/dmraid_nvidia.c: Likewise.
17263 * kern/ieee1275/openfw.c: Likewise.
17264 * kern/ieee1275/init.c: Likewise.
17265 * kern/ieee1275/cmain.c: Likewise.
17266 * boot/i386/pc/cdboot.S: Likewise.
17267 * video/readers/png.c: Likewise.
17268 * video/i386/pc/vbe.c: Likewise.
17269 * fs/udf.c: Likewise.
17270 * fs/hfs.c: Likewise.
17271 * fs/reiserfs.c: Likewise.
17272 * efiemu/runtime/efiemu.c: Likewise.
17273 * efiemu/main.c: Likewise.
17274 * efiemu/mm.c: Likewise.
17275 * include/grub/elf.h: Likewise.
17276 * include/grub/xnu.h: Likewise.
17277 * include/grub/usbdesc.h: Likewise.
17278 * include/grub/usb.h: Likewise.
17279 * include/grub/script_sh.h: Likewise.
17280 * include/grub/lib/LzmaEnc.h: Likewise.
17281 * include/grub/efiemu/efiemu.h: Likewise.
17282 * include/grub/command.h: Likewise.
17283 * normal/menu.c: Likewise.
17284 * normal/main.c: Likewise.
17285 * normal/datetime.c: Likewise.
17286 * bus/usb/uhci.c: Likewise.
17287 * mmap/i386/uppermem.c: Likewise.
17288 * mmap/mmap.c: Likewise.
17289 * commands/acpi.c: Likewise.
17290 * commands/test.c: Likewise.
17291 * partmap/apple.c: Likewise.
17292 * font/font.c: Likewise.
17293 * loader/sparc64/ieee1275/linux.c: Likewise.
17294 * loader/macho.c: Likewise.
17295 * loader/i386/bsd_trampoline.S: Likewise.
17296 * loader/i386/bsd.c: Likewise.
17297 * loader/xnu.c: Likewise.
17298 * term/i386/pc/vesafb.c: Likewise.
17299 * term/usb_keyboard.c: Likewise.
17300 * util/resolve.c: Likewise.
17301 * util/getroot.c: Likewise.
17302
17303 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
17304
17305 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
17306
17307 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
17308
17309 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
17310 build error.
17311
17312 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
17313
17314 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
17315 parameter only available on BIOS.
17316
17317 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
17318
17319 Removed wrong semicolon in declaration
17320
17321 * grub/misc.h (grub_dprintf): remove semicolon
17322
17323 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
17324
17325 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
17326 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
17327 is done by grub_cmd_linux() now).
17328 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
17329 restore video to text mode.
17330 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
17331 indicates lack of "vga=" parameter. "vga=0" is mapped to
17332 `GRUB_LINUX_VID_MODE_NORMAL'.
17333
17334 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
17335
17336 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
17337 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
17338 and `normal/script.c'. Add `kern/rescue_reader.c',
17339 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
17340 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
17341 `grub_script.tab.c'.
17342
17343 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17344 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
17345 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17346 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
17347 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17348
17349 * Makefile.in: Remove duplicated 2008 in Copyright line.
17350
17351 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
17352
17353 * util/misc.c (grub_util_warn): New function. Emits a warning
17354 unconditionally.
17355 * include/grub/util/misc.h (grub_util_warn): New declaration.
17356
17357 * util/i386/pc/grub-install.in: Understand --force and pass it down
17358 to grub-setup.
17359
17360 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
17361 down to setup().
17362 (setup): Improve error messages and add warnings when requested to
17363 install in odd layouts. Refuse to install using blocklists unless
17364 --force was set.
17365
17366 2009-05-04 martin f. krafft <madduck@madduck.net>
17367
17368 * disk/raid.c (grub_raid_scan_device): Improve debug message.
17369
17370 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
17371
17372 Updated copyright year
17373
17374 * fs/hfsplus.c: updated copyright year
17375
17376 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
17377
17378 HFS+ UUID
17379
17380 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
17381 in the space previously used by unused3
17382 (grub_hfsplus_uuid): new function
17383 (grub_hfsplus_fs): added uuid field
17384
17385 2009-05-03 Pavel Roskin <proski@gnu.org>
17386
17387 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
17388 suppress warnings. It's no longer needed.
17389 * disk/host.c: Likewise.
17390 * disk/ata_pthru.c: Likewise.
17391 * disk/loopback.c: Likewise.
17392 * hook/datehook.c: Likewise.
17393 * parttool/pcpart.c: Likewise.
17394 * fs/i386/pc/pxe.c: Likewise.
17395 * fs/ntfscomp.c: Likewise.
17396 * efiemu/main.c: Likewise.
17397 * mmap/mmap.c: Likewise.
17398 * commands/crc.c: Likewise.
17399 * commands/hexdump.c: Likewise.
17400 * commands/hdparm.c: Likewise.
17401 * commands/acpi.c: Likewise.
17402 * commands/echo.c: Likewise.
17403 * commands/minicmd.c: Likewise.
17404 * commands/blocklist.c: Likewise.
17405 * commands/memrw.c: Likewise.
17406 * commands/loadenv.c: Likewise.
17407 * commands/usbtest.c: Likewise.
17408 * commands/lsmmap.c: Likewise.
17409 * commands/boot.c: Likewise.
17410 * commands/parttool.c: Likewise.
17411 * commands/configfile.c: Likewise.
17412 * commands/search.c: Likewise.
17413 * commands/ieee1275/suspend.c: Likewise.
17414 * commands/cat.c: Likewise.
17415 * commands/i386/pc/pxecmd.c: Likewise.
17416 * commands/i386/pc/play.c: Likewise.
17417 * commands/i386/pc/halt.c: Likewise.
17418 * commands/i386/pc/vbeinfo.c: Likewise.
17419 * commands/i386/pc/vbetest.c: Likewise.
17420 * commands/lspci.c: Likewise.
17421 * commands/date.c: Likewise.
17422 * commands/handler.c: Likewise.
17423 * commands/ls.c: Likewise.
17424 * commands/test.c: Likewise.
17425 * commands/cmp.c: Likewise.
17426 * commands/efi/loadbios.c: Likewise.
17427 * commands/efi/fixvideo.c: Likewise.
17428 * commands/halt.c: Likewise.
17429 * commands/help.c: Likewise.
17430 * commands/reboot.c: Likewise.
17431 * hello/hello.c: Likewise.
17432 * script/sh/main.c: Likewise.
17433 * loader/xnu.c: Likewise.
17434 * term/terminfo.c: Likewise.
17435 * term/i386/pc/serial.c: Likewise.
17436 * term/usb_keyboard.c: Likewise.
17437
17438 2009-05-03 David S. Miller <davem@davemloft.net>
17439
17440 * normal/menu.c: Include grub/parser.h
17441
17442 2009-05-03 Pavel Roskin <proski@gnu.org>
17443
17444 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
17445 not char*.
17446 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
17447 Suggested by Javier Martín <lordhabbit@gmail.com>
17448
17449 * util/i386/pc/grub-mkrescue.in: Allow for the case when
17450 efiemu??.o doesn't exist.
17451 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
17452 copying.
17453
17454 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
17455
17456 FreeBSD 64-bit support
17457
17458 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
17459 and loader/i386/bsd_trampoline.S
17460 (bsd_mod_ASFLAGS): new variable
17461 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
17462 (FREEBSD_MODTYPE_KERNEL64): likewise
17463 (grub_bsd64_trampoline_start): likewise
17464 (grub_bsd64_trampoline_end): likewise
17465 (grub_bsd64_trampoline_selfjump): likewise
17466 (grub_bsd64_trampoline_gdt): likewise
17467 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
17468 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
17469 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
17470 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
17471 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
17472 of "attrib" member
17473 * loader/i386/bsd_pagetable.c: new file
17474 * loader/i386/bsd_trampoline.S: likewise
17475 * loader/i386/bsd.c (ALIGN_QWORD): new macro
17476 (ALIGN_VAR): likewise
17477 (entry_hi): new variable
17478 (kern_end_mdofs): likewise
17479 (is_64bit): likewise
17480 (grub_freebsd_add_meta): use ALIGN_VAR
17481 (grub_e820_mmap): new declaration
17482 (grub_freebsd_add_mmap): new function
17483 (grub_freebsd_add_meta_module): support 64 bit kernels
17484 (grub_freebsd_list_modules): use ALIGN_VAR
17485 (gdt_descriptor): new declaration
17486 (grub_freebsd_boot): support 64 bit kernels
17487 (grub_bsd_elf64_hook): new function
17488 (grub_bsd_load_elf): support elf64
17489
17490 2009-05-03 Bean <bean123ch@gmail.com>
17491
17492 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
17493 after we get the result of if statement.
17494
17495 2009-05-03 Bean <bean123ch@gmail.com>
17496
17497 * Makefile.in (enable_efiemu): New variable.
17498
17499 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
17500 set.
17501 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
17502 path.
17503 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
17504 path, add -mno-red-zone option.
17505 (efiemu64_s.o): Likewise.
17506 (efiemu64.o): Use macro $^ for source file.
17507
17508 * configure.ac (--enable-efiemu): New option.
17509
17510 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
17511
17512 xnu support
17513
17514 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
17515 (pkglib_MODULES): add xnu.mod
17516 (xnu_mod_SOURCES): new variable
17517 (xnu_mod_CFLAGS): likewise
17518 (xnu_mod_LDFLAGS): likewise
17519 (xnu_mod_ASFLAGS): likewise
17520 * conf/i386-pc.rmk: likewise
17521 * conf/x86_64-efi.rmk: likewise
17522 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
17523 new declaration
17524 * include/grub/i386/macho.h: new file
17525 * include/grub/i386/xnu.h: likewise
17526 * include/grub/macho.h: likewise
17527 * include/grub/machoload.h: likewise
17528 * include/grub/x86_64/macho.h: likewise
17529 * include/grub/x86_64/xnu.h: likewise
17530 * include/grub/xnu.h: likewise
17531 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
17532 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
17533 * loader/i386/efi/xnu.c: new file
17534 * loader/i386/pc/xnu.c: likewise
17535 * loader/i386/xnu.c: likewise
17536 * loader/i386/xnu_helper.S: likewise
17537 * loader/macho.c: likewise
17538 * loader/xnu.c: likewise
17539 * loader/xnu_resume.c: likewise
17540 * util/grub-dumpdevtree: likewise
17541 * include/grub/i386/pit.h: include grub/err.h
17542 (grub_pit_wait): export
17543 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
17544
17545 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
17546
17547 Efiemu
17548
17549 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
17550 _linux_efi, linux_efi.
17551 new files in grub-emu
17552 new targets efiemu32.o and efiemu64.o
17553 * loader/linux_normal_efiemu.c: likewise
17554 * loader/i386/efi/linux.c: added preliminary efiemu support
17555 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
17556 files to copy
17557 * include/grub/autoefi.h: new file
17558 * include/grub/i386/efiemu.h: likewise
17559 * include/grub/i386/pc/efiemu.h: likewise
17560 * include/grub/efi/api.h: add LL suffix when necessary
17561 new definitions relating to tables
17562 * include/grub/efiemu/efiemu.h: new file
17563 * include/grub/efiemu/runtime.h: likewise
17564 * efiemu/prepare.c: likewise
17565 * efiemu/loadcore_common.c: likewise
17566 * efiemu/loadcore64.c: likewise
17567 * efiemu/runtime/efiemu.sh: likewise
17568 * efiemu/runtime/efiemu.S: likewise
17569 * efiemu/runtime/efiemu.c: likewise
17570 * efiemu/runtime/config.h: likewise
17571 * efiemu/prepare32.c: likewise
17572 * efiemu/main.c: likewise
17573 * efiemu/modules/pnvram.c: likewise
17574 * efiemu/modules/i386: likewise
17575 * efiemu/modules/i386/pc: likewise
17576 * efiemu/modules/acpi.c: likewise
17577 * efiemu/i386/pc/cfgtables.c: likewise
17578 * efiemu/i386/loadcore64.c: likewise
17579 * efiemu/i386/loadcore32.c: likewise
17580 * efiemu/prepare64.c: likewise
17581 * efiemu/loadcore.c: likewise
17582 * efiemu/symbols.c: likewise
17583 * efiemu/mm.c: likewise
17584 * efiemu/loadcore32.c: likewise
17585
17586 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
17587
17588 ACPI spoofing
17589
17590 * commands/acpi.c: new file
17591 * commands/i386/pc/acpi.c: likewise
17592 * commands/efi/acpi.c: likewise
17593 * include/grub/acpi.h: likewise
17594 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
17595 (acpi_mod_SOURCES): new variable
17596 (acpi_mod_CFLAGS): likewise
17597 (acpi_mod_LDFLAGS): likewise
17598 * conf/i386-efi.rmk: likewise
17599 * conf/x86_64-efi.rmk: likewise
17600
17601 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
17602
17603 Missing part from mmap patch
17604
17605 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
17606 (grub_mmap_unregister)
17607 (grub_mmap_free_and_unregister): use grub_mmap_register
17608
17609 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
17610
17611 Mmap services
17612
17613 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
17614 * loader/i386/linux.c (find_mmap_size): likewise
17615 (allocate_pages): likewise
17616 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
17617 (grub_fill_multiboot_mmap): likewise
17618 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
17619 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
17620 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
17621 (OPENBSD_MMAP_RESERVED): likewise
17622 * include/grub/i386/pc/memory.h: include grub/memory.h
17623 (grub_lower_mem): removed
17624 (grub_upper_mem): likewise
17625 (GRUB_MACHINE_MEMORY_ACPI): new definition
17626 (GRUB_MACHINE_MEMORY_NVS): likewise
17627 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
17628 (GRUB_MACHINE_MEMORY_HOLE): likewise
17629 (grub_machine_mmap_register): likewise
17630 (grub_machine_mmap_unregister): likewise
17631 (grub_machine_get_upper): likewise
17632 (grub_machine_get_lower): likewise
17633 (grub_machine_get_post64): likewise
17634 * include/grub/i386/efi/memory.h: new file
17635 * include/grub/x86_64/efi/memory.h: likewise
17636 * include/grub/efi/memory.h: likewise
17637 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
17638 (mmap_mod_SOURCES): new variable
17639 (mmap_mod_LDFLAGS): likewise
17640 (mmap_mod_ASFLAGS): likewise
17641 * conf/i386-coreboot.rmk: likewise
17642 * conf/i386-ieee1275.rmk: likewise
17643 * conf/i386-efi.rmk: likewise
17644 * conf/x86_64-efi.rmk: likewise
17645 * include/grub/types.h (UINT_TO_PTR): new macro
17646 (PTR_TO_UINT32): likewise
17647 (PTR_TO_UINT64): likewise
17648 * include/grub/memory.h: new file
17649 * mmap/i386/pc/mmap.c: likewise
17650 * mmap/i386/pc/mmap_helper.S: likewise
17651 * mmap/i386/uppermem.c: likewise
17652 * mmap/mmap.c: likewise
17653 * mmap/efi/mmap.c: likewise
17654 * kern/i386/coreboot/init.c (grub_machine_init): don't use
17655 grub_upper_mem
17656 * kern/i386/pc/init.c (grub_lower_mem): removed variable
17657 (grub_upper_mem): likewise
17658 (grub_machine_init): don't use grub_upper_mem,
17659 make grub_lower_mem local
17660 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
17661 grub_mmap_iterate and grub_mmap_get_upper
17662 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
17663
17664 2009-05-02 Bean <bean123ch@gmail.com>
17665
17666 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
17667 script/sh/parser.y.
17668 (pkglib_MODULES): Add normal.mod and sh.mod.
17669 (normal_SOURCES): New variable.
17670 (normal_mod_CFLAGS): Likewise.
17671 (normal_mod_LDFLAGS): Likewise.
17672 (sh_mod_SOURCES): Likewise.
17673 (sh_mod_CFLAGS): Likewise.
17674 (sh_mod_LDFLAGS): Likewise.
17675
17676 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
17677 script/sh/lexer.c_DEPENDENCIES.
17678 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
17679 kern/rescue_reader.c and kern/rescue_parser.c.
17680 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
17681 (grub_emu_SOURCES): Change source files.
17682 (pkglib_MODULES): Remove normal.mod.
17683 (normal_SOURCES): Removed.
17684 (normal_mod_CFLAGS): Likewise.
17685 (normal_mod_LDFLAGS): Likewise.
17686 * conf/i386-coreboot.rmk: Likewise.
17687 * conf/i386-efi.rmk: Likewise.
17688 * conf/i386-ieee1276.rmk: Likewise.
17689 * conf/powerpc-ieee1275.rmk: Likewise.
17690 * conf/sparc64-ieee1275.rmk: Likewise.
17691 * conf/x86_64-efi.rmk: Likewise.
17692
17693 * include/grub/command.h (grub_command_execute): New inline function.
17694
17695 * include/grub/menu.h (grub_menu_entry): Removed commands field.
17696
17697 * include/grub/normal.h: Remove <grub/setjmp.h>.
17698 (grub_fs_module_list): Moved to normal/autofs.c.
17699 (grub_exit_env): Removed.
17700 (grub_command_execute): Likewise.
17701 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
17702 parameter script.
17703 (read_command_list): New function declaration.
17704 (read_fs_list): Likewise.
17705
17706 * include/parser.h: Include <grub/reader.h>.
17707 (grub_parser_split_cmdline): Change type of getline parameter.
17708 (grub_parser): New structure.
17709 (grub_parser_class): New variable.
17710 (grub_parser_execute): New function declaration.
17711 (grub_register_rescue_parser): Likewise.
17712 (grub_parser_register): New inline function.
17713 (grub_parser_unregister): Likewise.
17714 (grub_parser_get_current): Likewise.
17715 (grub_parser_set_current): Likewise.
17716
17717 * include/grub/reader.h: New file.
17718 * kern/reader.c: Likewise.
17719 * kern/rescue_parser.c: Likewise.
17720 * kern/rescue_reader.c: Likewise.
17721 * normal/autofs.c: Likewise.
17722 * normal/dyncmd.c: Likewise.
17723
17724 * include/grub/rescue.h: Removed.
17725 * normal/command.h: Likewise.
17726
17727 * include/grub/script.h: Moved to ...
17728 * include/grub/script_sh.h: ... Moved here.
17729 * normal/execute.c: Moved to ...
17730 * script/sh/execute.c: ... Moved here.
17731 * normal/function.c: Moved to ...
17732 * script/sh/function.c: ... Moved here.
17733 * normal/lexer.c: Moved to ...
17734 * script/sh/lexer.c: ... Moved here.
17735 * normal/parser.y: Moved to ...
17736 * script/sh/parser.y: ... Moved here.
17737 * normal/script.c: Moved to ...
17738 * script/sh/script.c: ... Moved here.
17739
17740 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
17741 <grub/reader.h>.
17742 (grub_exit_env): Removed.
17743 (fs_module_list): Moved to normal/autofs.c.
17744 (grub_file_getline): Don't handle comment here.
17745 (free_menu): Skip removed field entry->commands.
17746 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
17747 script parameter.
17748 (read_config_file): Removed nested parameter, change getline function.
17749 (grub_enter_normal_mode): Removed.
17750 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
17751 (read_command_list): Likewise.
17752 (autoload_fs_module): Moved to normal/autofs.c.
17753 (read_fs_list): Likewise.
17754 (reader_nested): New variable.
17755 (grub_normal_execute): Run parser.sh to switch to sh parser.
17756 (grub_cmd_rescue): Removed.
17757 (cmd_normal): Removed.
17758 (grub_cmd_normal): Unregister itself at the beginning. Don't register
17759 rescue command.
17760 (grub_cmdline_run): New function.
17761 (grub_normal_reader_init): Likewise.
17762 (grub_normal_read_line): Likewise.
17763 (grub_env_write_pager): Likewise.
17764 (cmdline): New variable.
17765 (grub_normal_reader): Likewise.
17766 (GRUB_MOD_INIT): Register normal reader and set as current, register
17767 pager hook, register normal command with grub_register_command_prio,
17768 so that it won't show up in command.lst.
17769 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
17770 grub_fs_autoload_hook.
17771
17772 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
17773 (grub_menu_execute_entry): Replace grub_script_execute with
17774 grub_parser_execute, change parameter to grub_command_execute.
17775
17776 * normal/menu_text.c: Remove <grub/script.h>.
17777
17778 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
17779 and <grub/parser.h>.
17780 (run): Change editor_getline to use new parser interface. Change
17781 parameter to grub_command_execute.
17782
17783 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
17784 <grub/reader.h> and <grub/parser.h>.
17785 (grub_load_normal_mode): Execute normal command.
17786 (grub_main): Call grub_register_core_commands,
17787 grub_register_rescue_parser and grub_register_rescue_reader, use
17788 grub_reader_loop to enter input loop.
17789
17790 * kern/parser.c (grub_parser_split_cmdline): Change type of
17791 getline parameter.
17792 (grub_parser_class): New variable.
17793 (grub_parser_execute): New function.
17794
17795 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
17796 * loader/multiboot2.c: Likewise.
17797 * loader/sparc64/ieee1275/linux.c: Likewise.
17798
17799 * util/grub-emu.c (read_command_list): New dummy function.
17800
17801 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
17802
17803 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
17804 count to 16 for CCISS and IDA.
17805
17806 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
17807
17808 * normal/menu_text.c (grub_wait_after_message): Print a newline
17809 after waiting for user input.
17810
17811 * loader/i386/linux.c: Include `<grub/normal.h>'.
17812 (grub_cmd_linux): Improve the error message about `ask' mode, by
17813 waiting for user input so it's not missed (we can do this, since
17814 user requested interaction).
17815
17816 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
17817
17818 Added missing lst to grub-mkrescue
17819
17820 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
17821 and ${input_dir}/parttool.lst
17822
17823 2009-04-30 David S. Miller <davem@davemloft.net>
17824
17825 * util/hostdisk.c (device_is_wholedisk): New function.
17826 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
17827 zero only if device_is_wholedisk() returns true.
17828
17829 * util/hostdisk.c (convert_system_partition_to_system_disk):
17830 Handle virtual disk devices named /dev/vdiskX as found on sparc
17831 and powerpc.
17832
17833 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
17834 lettered partition specifier is found, convert to numbered.
17835
17836 2009-04-29 David S. Miller <davem@davemloft.net>
17837
17838 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
17839 * include/grub/sparc64/ieee1275/memory.h: Likewise.
17840
17841 * normal/command.c: Add missing newline at end of file.
17842
17843 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
17844 warnings.
17845 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
17846 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
17847 grub_ofdisk_read): Likewise, and deal similarly with the fact that
17848 ihandles have a 32-bit type but need to be stored in a "void *".
17849
17850 2009-04-28 Pavel Roskin <proski@gnu.org>
17851
17852 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
17853 not disk. Adjust all dependencies.
17854 (grub_fs_uuid_close): Use grub_device_close(), not
17855 grub_disk_close().
17856
17857 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
17858 parent's partition, don't copy it by reference, as it gets freed
17859 on close.
17860
17861 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
17862
17863 Preboot hooks support
17864
17865 * commands/boot.c (struct grub_preboot_t): new declaration
17866 (preboots_head): new variable
17867 (preboots_tail): likewise
17868 (grub_loader_register_preboot_hook): new function
17869 (grub_loader_unregister_preboot_hook): likewise
17870 (grub_loader_set): launch preboot hooks
17871 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
17872 (grub_loader_register_preboot_hook): new declaration
17873 (grub_loader_unregister_preboot_hook): likewise
17874
17875 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
17876
17877 Warning fix
17878
17879 * disk/scsi.c (grub_scsi_open): added missing cast when
17880 calling grub_dprintf
17881
17882 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
17883
17884 Bug and warning fixes
17885
17886 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
17887 declaration
17888 * commands/test.c (test_parse): fixed bug with file tests and corrected
17889 declaration of find_file
17890
17891 2009-04-26 Pavel Roskin <proski@gnu.org>
17892
17893 * Makefile.in: Don't install empty manual pages if help2man is
17894 missing. Use help2man option for output, not shell redirection.
17895
17896 2009-04-26 David S. Miller <davem@davemloft.net>
17897
17898 * util/grub-mkdevicemap.c (make_device_map): Add missing
17899 NESTED_FUNC_ATTR to process_device().
17900
17901 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17902
17903 Test command
17904
17905 * commands/test.c: rewritten to use bash-like test
17906
17907 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17908
17909 Parttool autoloading and improvements
17910
17911 * Makefile.in (pkglib_DATA): add parttool.lst
17912 (parttool.lst): new target
17913 * genmk.rb: generate parttool-*
17914 (CLEANFILES): add #{parttool}
17915 (PARTTOOLFILES): new variable
17916 * genparttoollist.sh: new file
17917 * parttool/pcpart.c (grub_pcpart_boot): more feedback
17918 (grub_pcpart_type): likewise
17919 * commands/parttool.c (helpmsg): new variable
17920 (grub_cmd_parttool): output help if not enough arguments are supplied
17921 autoload modules
17922 (GRUB_MOD_INIT(parttool)): use helpmsg
17923
17924 2009-04-24 David S. Miller <davem@davemloft.net>
17925
17926 Avoiding opening same device multiple times in device iterator.
17927
17928 * kern/device.c: (grub_device_iterate): Define struct part_ent,
17929 and use it to build a list of partitions in iterate_disk() and
17930 iterate_partition().
17931
17932 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
17933 on disk->data.
17934
17935 * disk/ieee1275/nand.c (grub_nand_iterate): Return
17936 grub_devalias_iterate() result instead of unconditional 0.
17937 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
17938 Also, capture hook return value, either directly or via
17939 grub_children_iterate(), and propagate to caller.
17940 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
17941 grub_children_iterate): Return value is now 'int' instead of
17942 'grub_err_t'.
17943 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
17944 like a proper iterator, stopping when hooks return non-zero.
17945 (grub_devalias_iterate): Likewise.
17946
17947 2009-04-23 David S. Miller <davem@davemloft.net>
17948
17949 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
17950
17951 2009-04-22 David S. Miller <davem@davemloft.net>
17952
17953 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
17954 is larger than address_cells, use that value for address_cells too.
17955
17956 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
17957 IEEE1275_MAX_PATH_LEN): Define.
17958 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
17959 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
17960 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
17961 'devtype'. Explicitly NULL terminate devalias expansion.
17962
17963 * util/sparc64/ieee1275/misc.c: New file.
17964 * util/sparc64/ieee1275/grub-setup.c: New file.
17965 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
17966 * util/sparc64/ieee1275/grub-mkimage.c: New file.
17967 * util/sparc64/ieee1275/grub-install.in: New file.
17968 * util/ieee1275/ofpath.c: New file.
17969 * util/ieee1275/devicemap.c: New file.
17970 * util/devicemap.c: New file.
17971 * util/deviceiter.c: New file.
17972 * kern/sparc64/ieee1275/init.c: New file.
17973 * include/grub/util/ofpath.h: New file.
17974 * include/grub/util/deviceiter.h: New file.
17975 * util/grub-mkdevicemap.c: Include deviceiter.h.
17976 Implement using grub_util_emit_devicemap_entry and
17977 grub_util_iterate_devices.
17978 * conf/i386-corebook.rmk: Build util/deviceiter.c and
17979 util/devicemap.c into grub-mkdevicemap
17980 * conf/i386-efi.rmk: Likewise.
17981 * conf/i386-ieee1275.rmk: Likewise.
17982 * conf/i386-pc.rmk: Likewise.
17983 * conf/powerpc-ieee1275.rmk: Likewise.
17984 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
17985 images and installation utilities. Build kernel as image
17986 instead of as elf binary. Use common rules as much as possible.
17987
17988 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
17989
17990 Correct GPT definition
17991
17992 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
17993 of "attrib" member
17994
17995 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
17996
17997 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
17998
17999 2009-04-19 David S. Miller <davem@davemloft.net>
18000
18001 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
18002 (grub_rescue_cmd_linux): Rename to...
18003 (grub_cmd_linux): and fix prototype.
18004 (grub_rescue_cmd_initrd): Rename to...
18005 (grub_cmd_initrd): and fix prototype.
18006 (cmd_linux, cmd_initrd): New.
18007 (GRUB_MOD_INIT(linux)): Use grub_register_command().
18008 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
18009
18010 2009-04-17 Pavel Roskin <proski@gnu.org>
18011
18012 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
18013 format.
18014 (grub_ohci_transfer): Likewise.
18015
18016 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
18017
18018 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
18019 return without a value. Fix inconsistent indentation.
18020
18021 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
18022 match struct grub_fs.
18023
18024 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
18025 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
18026 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
18027 * commands/lspci.c (grub_lspci_iter): Likewise.
18028
18029 2009-04-16 Bean <bean123ch@gmail.com>
18030
18031 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
18032 value.
18033
18034 2009-04-15 Pavel Roskin <proski@gnu.org>
18035
18036 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
18037 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
18038 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
18039 definitions.
18040
18041 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
18042
18043 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
18044 that no multiple data or metadata areas are supported and `Unknown
18045 metadata header'.
18046
18047 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
18048
18049 Move loader out of the kernel
18050
18051 * kern/loader.c: moved to ...
18052 * commands/boot.c: ... moved here
18053 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
18054 * commands/boot.c (grub_cmd_boot): moved here. All users updated
18055 * include/grub/kernel.h (grub_machine_fini): export
18056 * include/grub/loader.h (grub_loader_is_loaded): update declaration
18057 (grub_loader_set): likewise
18058 (grub_loader_unset): likewise
18059 (grub_loader_boot): likewise
18060 * conf/common.rmk: new module boot.mod
18061 (pkglib_MODULES): add boot.mod
18062 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
18063 (grub_emu_SOURCES): likewise
18064 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
18065 (grub_emu_SOURCES): likewise
18066 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
18067 (grub_emu_SOURCES): likewise
18068 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
18069 (grub_emu_SOURCES): likewise
18070 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
18071 (grub_emu_SOURCES): likewise
18072 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
18073 (grub_emu_SOURCES): likewise
18074 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
18075 (grub_emu_SOURCES): likewise
18076
18077 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
18078
18079 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
18080
18081 * kern/misc.c (grub_itoa): Removed function
18082 (grub_ltoa): likewise
18083 (grub_vsprintf): use grub_lltoa
18084
18085 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
18086
18087 Restore grub-emu
18088
18089 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
18090 * conf/i386-coreboot.rmk: likewise
18091 * conf/i386-ieee1275.rmk: likewise
18092 * conf/powerpc-ieee1275.rmk: likewise
18093
18094 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
18095
18096 * INSTALL: Add that `./autogen.sh' needs to be run before
18097 `./configure.'.
18098
18099 2009-04-14 Bean <bean123ch@gmail.com>
18100
18101 * Makefile.in (pkglib_DATA): Add handler.lst.
18102 (handler.lst): New rule.
18103
18104 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
18105 * conf/i386-coreboot.rmk: Likewise.
18106 * conf/i386-ieee1275.rmk: Likewise.
18107 * conf/i386-efi.rmk: Likewise.
18108 * conf/x86_64-efi.rmk: Likewise.
18109 * conf/powerpc-ieee1275.rmk: Likewise.
18110 * conf/sparc64-ieee1275.rmk: Likewise.
18111
18112 * genhandlerlist.sh: New file.
18113
18114 * genmk.rb: Add rules to generate handler.lst.
18115
18116 * include/grub/normal.h (grub_file_getline): New function definition.
18117 (read_handler_list): Likewise.
18118 (free_handler_list): Likewise.
18119
18120 * include/grub/term.h (grub_term_register_input): Add name parameter
18121 for auto generation of handler.lst.
18122 (grub_term_register_output): Likewise.
18123
18124 * normal/handler.c: New file.
18125
18126 * normal/main.c (get_line): Renamed to grub_file_getline.
18127 (read_config_file): Use the newly renamed grub_file_getline.
18128 (read_command_list): Likewise.
18129 (read_fs_list): Likewise.
18130 (grub_normal_execute): Call read_handler_list to parse handler.lst.
18131 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
18132
18133 * term/efi/console.c (grub_console_init): Add name parameter for auto
18134 generation of handler.lst.
18135 * term/gfxterm.c: Likewise.
18136 * term/i386/pc/at_keyboard.c: Likewise.
18137 * term/i386/pc/console.c: Likewise.
18138 * term/i386/pc/serial.c: Likewise.
18139 * term/i386/pc/vesafb.c: Likewise.
18140 * term/i386/pc/vga.c: Likewise.
18141 * term/i386/pc/vga_text.c: Likewise.
18142 * term/ieee1275/ofconsole.c: Likewise.
18143 * term/usb_keyboard.c: Likewise.
18144
18145 2009-04-14 Bean <bean123ch@gmail.com>
18146
18147 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
18148 properly with null character.
18149
18150 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
18151
18152 * configure: Remove.
18153 * config.h.in: Likewise.
18154 * stamp-h.in: Likewise.
18155 * DISTLIST: Likewise.
18156 * conf/common.mk: Likewise.
18157 * conf/i386-coreboot.mk: Likewise.
18158 * conf/i386-efi.mk: Likewise.
18159 * conf/i386-ieee1275.mk: Likewise.
18160 * conf/i386.mk: Likewise.
18161 * conf/i386-pc.mk: Likewise.
18162 * conf/powerpc-ieee1275.mk: Likewise.
18163 * conf/sparc64-ieee1275.mk: Likewise.
18164 * conf/x86_64-efi.mk: Likewise.
18165
18166 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
18167 develop on GRUB.
18168
18169 2009-04-14 John Stanley <jpsinthemix@verizon.net>
18170 David S. Miller <davem@davemloft.net>
18171
18172 * util/hostdisk.c (make_device_name): Fix buffer length
18173 calculations.
18174
18175 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
18176
18177 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
18178 <sys/param.h> and <sys/sysctl.h>.
18179 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
18180 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
18181 opening the device and reset them afterwards.
18182
18183 2009-04-13 Pavel Roskin <proski@gnu.org>
18184
18185 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
18186 Reported by John Stanley <jpsinthemix@verizon.net>
18187
18188 2009-04-13 Robert Millan <rmh@aybabtu.com>
18189
18190 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
18191 that name for menuentries when appropriate.
18192
18193 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
18194
18195 * util/grub.d/10_freebsd.in: Add a missing `fi'.
18196
18197 2009-04-13 Robert Millan <rmh@aybabtu.com>
18198
18199 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
18200 to Linux, simply abort telling the user it's no longer supported.
18201
18202 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
18203
18204 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
18205 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
18206 `freebsd_loadenv' only when devices.hints exist.
18207
18208 2009-04-13 Pavel Roskin <proski@gnu.org>
18209
18210 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
18211
18212 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
18213
18214 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
18215 partition number.
18216 (grub_drive): Likewise.
18217
18218 2009-04-13 David S. Miller <davem@davemloft.net>
18219
18220 * kern/sparc64/ieee1275/ieee1275.c: New file.
18221 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
18222 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
18223 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
18224 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
18225 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
18226 grub_ieee1275_alloc_physmem): Declare new exported functions.
18227
18228 * include/grub/sparc64/ieee1275/loader.h: New file.
18229 * include/grub/sparc64/ieee1275/memory.h: Likewise.
18230 * include/grub/sparc64/kernel.h: Likewise.
18231 * loader/sparc64/ieee1275/linux.c: Likewise.
18232
18233 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
18234 (grub_fstest_SOURCES): Likewise.
18235
18236 * util/hostdisk.c (make_device_name): Do not make any assumptions
18237 about the length of drive names.
18238
18239 * kern/dl.c (grub_dl_load_file): Close file immediately when
18240 we are done using it.
18241
18242 2009-04-12 David S. Miller <davem@davemloft.net>
18243
18244 * kern/misc.c (grub_ltoa): Fix cast when handling negative
18245 values. Noticed by Pavel Roskin.
18246
18247 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
18248 target compiler.
18249
18250 * genmk.rb: Add more flexible image type specification, also
18251 pass --strip-unneeded to objcopy.
18252 * conf/i386-pc.rmk: Use *_FORMAT.
18253 * conf/i386-pc.mk: Rebuilt.
18254
18255 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
18256 (OFDISK_HASH_SZ): Define.
18257 (ofdisk_hash): New hash table.
18258 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
18259 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
18260 instead of device phandle which is not unique.
18261
18262 * kern/sparc64/ieee1275/init.c: Delete, replace with...
18263 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
18264 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
18265 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
18266 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
18267 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
18268 GRUB_KERNEL_MACHINE_DATA_END): Define.
18269 (grub_kernel_image_size, grub_total_module_size): Declare.
18270
18271 2009-04-12 Pavel Roskin <proski@gnu.org>
18272
18273 * configure.ac: Change the logic when we check for target tools.
18274 Do it when the target is specified and it's different from the
18275 specified value of the host.
18276
18277 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
18278
18279 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
18280 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
18281 GNU/kFreeBSD. Check if a device is a character device. Use
18282 DIOCGMEDIASIZE to get the size.
18283 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
18284 support for GNU/kFreeBSD.
18285 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
18286 is a character device instead of a block device. Add support for
18287 FreeBSD device names.
18288
18289 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
18290 is a character device instead of a block device.
18291
18292 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
18293 is a character device instead of a block device.
18294
18295 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
18296
18297 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
18298 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
18299 FreeBSD. Check if a device is a character device. Use
18300 DIOCGMEDIASIZE to get the size.
18301 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
18302 support for FreeBSD.
18303 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
18304 is a character device instead of a block device. Add support for
18305 FreeBSD device names.
18306
18307 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
18308 a character device instead of a block device.
18309 (grub_util_check_char_device): New function.
18310
18311 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
18312 a character device instead of a block device.
18313
18314 * include/grub/util/getroot.h (grub_util_check_char_device): New
18315 prototype.
18316
18317 2009-04-11 David S. Miller <davem@davemloft.net>
18318
18319 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
18320 static libgcc.
18321 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
18322 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
18323 function, if present.
18324 (__bswapdi2): Likewise.
18325
18326 * include/grub/sparc64/ieee1275/boot.h: New file.
18327 * boot/sparc64/ieee1275/boot.S: Likewise.
18328 * boot/sparc64/ieee1275/diskboot.S: Likewise.
18329
18330 * kern/misc.c (grub_ltoa): New function.
18331 (grub_vsprintf): Use it to format 'long' integers.
18332
18333 2009-04-10 David S. Miller <davem@davemloft.net>
18334
18335 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
18336 slots are of type grub_ieee1275_cell_t.
18337 (grub_nand_read): Likewise.
18338 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
18339 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
18340 macros are used to compare values in arg/ret block of the call.
18341 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
18342 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
18343 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
18344 grub_ieee1275_instance_to_path, grub_ieee1275_write,
18345 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
18346 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
18347 grub_ieee1275_close, grub_ieee1275_set_property,
18348 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
18349 grub_ieee1275_cell_t.
18350 * kern/ieee1275/openfw.c (grub_map): Likewise.
18351 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
18352 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
18353
18354 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
18355 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
18356 (grub_devalias_iterate): Likewise.
18357
18358 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
18359
18360 UFS improvements
18361
18362 * fs/ufs.c (INODE_NBLOCKS): new definition
18363 (struct grub_ufs_dirent): added fields for non-BSD dirents
18364 (grub_ufs_get_file_block): fixed double indirect handling
18365 (grub_ufs_lookup_symlink): use more robust way to determine whether
18366 symlink is inline
18367 (grub_ufs_find_file): support for non-BSD dirents
18368 (grub_ufs_dir): support for non-BSD dirents
18369
18370 2009-04-10 Bean <bean123ch@gnail.com>
18371
18372 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
18373 attribute, otherwise the size would be wrong for i386 platform.
18374
18375 * include/grub/pci.h (grub_pci_read_word): New inline function.
18376 (grub_pci_read_byte): Likewise.
18377 (grub_pci_write): Likewise.
18378 (grub_pci_write_word): Likewise.
18379 (grub_pci_write_byte): Likewise.
18380
18381 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
18382
18383 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
18384 (find_framebuf): Scan pci to locate the frame buffer address.
18385
18386 * commands/efi/fixvideo.c: New file.
18387
18388 * commands/efi/loadbios.c: Likewise.
18389
18390 * commands/memrw.c: Likewise.
18391
18392 * util/grub-dumpbios.in: Likewise.
18393
18394 * conf/common.rmk (grub-dumpbios): New utility.
18395 (pkglib_MODULES): New module memrw.mod.
18396 (memrw_mod_SOURCE): New macro.
18397 (memrw_mod_CFLAGS): Likewise.
18398 (memrw_mod_LDFLAGS): Likewise.
18399
18400 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
18401 fixvideo.mod.
18402 (loadbios_mod_SOURCE): New macro.
18403 (loadbios_mod_CFLAGS): Likewise.
18404 (loadbios_mod_LDFLAGS): Likewise.
18405 (fixvideo_mod_SOURCE): Likewise.
18406 (fixvideo_mod_CFLAGS): Likewise.
18407 (fixvideo_mod_LDFLAGS): Likewise.
18408
18409 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
18410 fixvideo.mod.
18411 (loadbios_mod_SOURCE): New macro.
18412 (loadbios_mod_CFLAGS): Likewise.
18413 (loadbios_mod_LDFLAGS): Likewise.
18414 (fixvideo_mod_SOURCE): Likewise.
18415 (fixvideo_mod_CFLAGS): Likewise.
18416 (fixvideo_mod_LDFLAGS): Likewise.
18417
18418 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
18419
18420 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
18421
18422 2009-04-07 David S. Miller <davem@davemloft.net>
18423
18424 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
18425 support for R_SPARC_OLO10 relocations. Fix compile warning for
18426 R_SPARC_WDISP30 case.
18427 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
18428
18429 2009-04-06 Pavel Roskin <proski@gnu.org>
18430
18431 * include/grub/misc.h (ARRAY_SIZE): New macro.
18432 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
18433 New macro.
18434 * loader/i386/linux.c (allocate_pages): Use free_pages().
18435 (grub_linux_unload): Don't use free_pages().
18436 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
18437 wrong index. Treat all other modes as text modes.
18438 (grub_cmd_linux): Initialize vid_mode unconditionally to
18439 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
18440
18441 * commands/help.c (print_command_help): Use cmd->prio, not
18442 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
18443
18444 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
18445
18446 Parttool
18447
18448 * parttool/pcpart.c: new file
18449 * commands/parttool.c: likewise
18450 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
18451 (parttool_mod_SOURCES): new variable
18452 (parttool_mod_CFLAGS): likewise
18453 (parttool_mod_LDFLAGS): likewise
18454 (pcpart_mod_SOURCES): likewise
18455 (pcpart_mod_CFLAGS): likewise
18456 (pcpart_mod_LDFLAGS): likewise
18457 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
18458 and parttool/pcpart.c
18459 * conf/i386-efi.rmk: likewise
18460 * conf/i386-ieee1275.rmk: likewise
18461 * conf/i386-pc.rmk: likewise
18462 * conf/powerpc-ieee1275.rmk: likewise
18463 * conf/sparc64-ieee1275.rmk: likewise
18464 * conf/x86_64-ieee1275.rmk: likewise
18465
18466 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
18467
18468 Support for mtime and further expandability of dir command
18469
18470 * include/grub/lib/datetime.h: moved to ...
18471 * include/grub/datetime.h: ... moved here and added
18472 declaration of grub_unixtime2datetime. All users updated
18473 * include/grub/fs.h: new syntax for dir and mtime functions in
18474 struct grub_fs
18475 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
18476 and GRUB_FSHELP_FLAGS_MASK
18477 * commands/ls.c (grub_ls_list_files): Write mtime in long format
18478 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
18479 (grub_ext2_mtime): new function
18480 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
18481 (grub_hfsplus_mtime): new function
18482 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
18483 (GRUB_UFS_ATTR_FILE): likewise
18484 (GRUB_UFS_ATTR_LNK): likewise
18485 (struct grub_ufs_sblock): new fields mtime
18486 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
18487 all users updated
18488 (grub_ufs_dir): mtime support
18489 (grub_ufs_mtime): new function
18490 * fs/affs.c (grub_affs_dir): use new dir syntax
18491 * fs/afs.c (grub_afs_dir): likewise
18492 * fs/cpio.c (grub_cpio_dir): likewise
18493 * fs/fat.c (grub_fat_find_dir): likewise
18494 * fs/hfs.c (grub_hfs_dir): likewise
18495 * fs/iso9660.c (grub_iso9660_dir): likewise
18496 * fs/jfs.c (grub_jfs_dir): likewise
18497 * fs/minix.c (grub_minix_dir): likewise
18498 * fs/ntfs.c (grub_ntfs_dir): likewise
18499 * fs/reiserfs.c (grub_reiserfs_dir): likewise
18500 * fs/sfs.c (grub_sfs_dir): likewise
18501 * fs/xfs.c (grub_xfs_dir): likewise
18502 * util/hostfs.c (grub_hostfs_dir): likewise
18503 * lib/datetime.c: moved to ...
18504 * normal/datetime.c: ... moved here
18505 (grub_unixtime2datetime): new function
18506 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
18507 * normal/completion.c (iterate_dir): use new dir syntax
18508 * normal/misc.c (grub_normal_print_device_info): tell the
18509 last modification time of a volume
18510 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
18511 * conf/common.rmk: added lib/datetime.c to ls.mod
18512 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
18513 (normal_mod_SOURCES): likewise
18514 (datetime_mod_SOURCES): Removed lib/datetime.c
18515 * conf/i386-efi.rmk: likewise
18516 * conf/i386-ieee1275.rmk: likewise
18517 * conf/i386-pc.rmk: likewise
18518 * conf/powerpc-ieee1275.rmk: likewise
18519 * conf/sparc64-ieee1275.rmk: likewise
18520 * conf/x86_64-efi.rmk: likewise
18521
18522 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
18523
18524 Trim trailing spaces in FAT label and support mtools-like labels
18525
18526 * fs/fat.c (grub_fat_iterate_dir): New function based
18527 on grub_fat_find_dir
18528 (grub_fat_find_dir): use grub_fat_iterate_dir
18529 (grub_fat_label): likewise
18530
18531 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
18532
18533 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
18534 and command.h
18535 remove extraneous kernel_elf_HEADERS
18536
18537 2009-04-04 Bean <bean123ch@gnail.com>
18538
18539 * include/grub/util/misc.h: Add dummy function fsync for mingw.
18540
18541 * util/misc.c: Likewise.
18542
18543 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
18544
18545 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
18546 instead of grub_printf.
18547
18548 2009-04-03 Robert Millan <rmh@aybabtu.com>
18549
18550 * loader/i386/linux.c (grub_linux_setup_video): Fill
18551 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
18552 values from `mode info' structure instead of hardcoded
18553 values.
18554
18555 2009-04-01 Pavel Roskin <proski@gnu.org>
18556
18557 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
18558 unused now.
18559 * genmk.rb: Likewise.
18560 * configure.ac: Likewise.
18561
18562 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
18563
18564 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
18565 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
18566
18567 2009-04-01 David S. Miller <davem@davemloft.net>
18568
18569 * normal/sparc64/setjmp.S: Fix setjmp implementation.
18570 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
18571 (grub_setjmp): Mark with 'returns_twice' attribute.
18572 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
18573 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
18574 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
18575
18576 2009-04-01 Robert Millan <rmh@aybabtu.com>
18577
18578 Reapply fix from 2008-07-28 which was accidentally reverted; also
18579 perform the same fix to a similar check in same function.
18580
18581 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
18582 with the same number are found, just use issue a warning with
18583 grub_dprintf(), as this error has been reported to be non-fatal.
18584
18585 2009-03-31 Pavel Roskin <proski@gnu.org>
18586
18587 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
18588 for cross-compilation.
18589
18590 2009-03-30 Robert Millan <rmh@aybabtu.com>
18591
18592 Fix i386-ieee1275 build.
18593
18594 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
18595 Remove declaration.
18596
18597 2009-03-30 Pavel Roskin <proski@gnu.org>
18598
18599 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
18600 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
18601 zero-terminated, rely only on the strlen value. Fix comparison
18602 of strings differing in length.
18603
18604 2009-03-30 Robert Millan <rmh@aybabtu.com>
18605
18606 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
18607 checking for abi version. Improve error messages on BIOS to notify
18608 user about `linux16' command.
18609
18610 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
18611
18612 Leak fixes
18613
18614 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
18615 in case of collision
18616 * disk/scsi.c (grub_scsi_open): free scsi in case of error
18617
18618 2009-03-29 Robert Millan <rmh@aybabtu.com>
18619
18620 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
18621 set `vid_mode' accordingly.
18622 (grub_linux_boot): Process `vid_mode' and set video mode.
18623
18624 2009-03-29 Robert Millan <rmh@aybabtu.com>
18625
18626 * util/grub.d/10_linux.in (linux_entry): New function.
18627 Factorize generation of Linux boot entries.
18628
18629 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
18630
18631 Make the format of Environment Block plain text. The boot loader
18632 part is not tested well yet.
18633
18634 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
18635 (buffer): Removed.
18636 (envblk): Likewise.
18637 (usage): Remove "info" and "clear". Add "unset". Update the
18638 description of "set", as this does not delete variables any
18639 longer.
18640 (create_envblk_file): Complete rewrite.
18641 (open_envblk_file): Likewise.
18642 (cmd_info): Removed.
18643 (cmd_list): Likewise.
18644 (cmd_set): Likewise.
18645 (cmd_clear): Likewise.
18646 (list_variables): New function.
18647 (write_envblk): Likewise.
18648 (set_variables): Likewise.
18649 (unset_variables): Likewise.
18650 (main): Complete rewrite.
18651
18652 * commands/loadenv.c (buffer): Removed.
18653 (envblk): Likewise.
18654 (open_envblk_file): New function.
18655 (read_envblk_file): Complete rewrite.
18656 (grub_cmd_load_env): Likewise.
18657 (grub_cmd_list_env): Likewise.
18658 (struct blocklist): New struct.
18659 (free_blocklists): New function.
18660 (check_blocklists): Likewise.
18661 (write_blocklists): Likewise.
18662 (grub_cmd_save_env): Complete rewrite.
18663
18664 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
18665 a plain text signature.
18666 (GRUB_ENVBLK_MAXLEN): Removed.
18667 (struct grub_envblk): Complete rewrite.
18668 (grub_envblk_find): Removed.
18669 (grub_envblk_insert): Likewise.
18670 (grub_envblk_open): New prototype.
18671 (grub_envblk_set): Likewise.
18672 (grub_envblk_delete): Put const to VALUE.
18673 (grub_envblk_iterate): Put const to NAME and VALUE.
18674 (grub_envblk_close): New prototype.
18675 (grub_envblk_buffer): New inline function.
18676 (grub_envblk_size): Likewise.
18677
18678 * lib/envblk.c: Include grub/mm.h.
18679 (grub_env_find): Removed.
18680 (grub_envblk_open): New function.
18681 (grub_envblk_close): Likewise.
18682 (escaped_value_len): Likewise.
18683 (find_next_line): Likewise.
18684 (grub_envblk_insert): Removed.
18685 (grub_envblk_set): New function.
18686 (grub_envblk_delete): Complete rewrite.
18687 (grub_envblk_iterate): Likewise.
18688
18689 2009-03-28 Robert Millan <rmh@aybabtu.com>
18690
18691 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
18692 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
18693 variables. Use 16-bit loader.
18694 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
18695 loader.
18696 * kern/i386/loader.S (grub_linux_boot): Rename to ...
18697 (grub_linux16_boot): ... this. Update all users.
18698 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
18699 (grub_linux_boot): ... this. Update all users.
18700
18701 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
18702 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
18703 commands to `linux16' and `initrd16'.
18704 (GRUB_MOD_FINI(linux)): Rename to ...
18705 (GRUB_MOD_FINI(linux16)): ... this.
18706
18707 2009-03-24 Pavel Roskin <proski@gnu.org>
18708
18709 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
18710 not just for compilation.
18711
18712 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
18713
18714 Move multiboot helper out of kernel
18715
18716 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
18717 `loader/i386/multiboot_helper.S'.
18718 * conf/i386-coreboot.rmk: Likewise
18719 * conf/i386-ieee1275.rmk: Likewise
18720
18721 * kern/i386/loader.S: Move multiboot helpers from here...
18722 * loader/i386/multiboot_helper.S: ...moved here
18723 * include/grub/i386/loader.h: Move declarations of multiboot
18724 helpers from here...
18725 * include/grub/i386/multiboot.h: ...moved here
18726 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
18727
18728 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
18729
18730 * kern/env.c (grub_env_context_open): Added an argument to specify
18731 whether a new context inherits exported variables from current
18732 one. This is useful when making a sandbox to interpret a config
18733 file.
18734 All callers updated.
18735
18736 * include/grub/env.h (grub_env_context_open): Updated the prototype.
18737
18738 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
18739
18740 * kern/env.c (grub_env_context_close): Fix memory leaks.
18741
18742 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
18743
18744 * normal/main.c (grub_normal_execute): Added an argument
18745 BATCH to specify if an interactive interface should be provided
18746 after reading a config file.
18747 All callers updated.
18748 (read_command_list): Prevent being executed twice.
18749 (read_fs_list): Likewise.
18750
18751 * include/grub/normal.h (grub_normal_execute): Updated the
18752 prototype.
18753
18754 2009-03-22 Pavel Roskin <proski@gno.org>
18755
18756 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
18757 _start.
18758 * kern/i386/pc/startup.S: Likewise.
18759 * kern/i386/efi/startup.S: Likewise.
18760 * kern/i386/ieee1275/startup.S: Likewise.
18761 * kern/i386/coreboot/startup.S: Likewise.
18762 * kern/x86_64/efi/startup.S: Likewise.
18763
18764 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
18765 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
18766 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
18767
18768 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
18769
18770 Bugfixes in multiboot for bugs uncovered by solaris kernel.
18771
18772 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
18773 limit detection.
18774 Use vaddr of correct segment for entry_point.
18775
18776 2009-03-21 Bean <bean123ch@gmail.com>
18777
18778 * commands/blocklist.c: Add include file <grub/command.h>, remove
18779 <grub/normal.h> and <grub/arg.h>.
18780 (grub_cmd_blocklist): Use the new command interface.
18781 (GRUB_MOD_INIT): Likewise.
18782 (GRUB_MOD_FINI): Likewise.
18783 * commands/boot.c: Likewise.
18784 * commands/cat.c: Likewise.
18785 * commands/cmp.c: Likewise.
18786 * commands/configfile.c: Likewise.
18787 * commands/crc.c: Likewise.
18788 * commands/echo.c: Likewise.
18789 * commands/halt.c: Likewise.
18790 * commands/handler.c: Likewise.
18791 * commands/hdparm.c: Likewise.
18792 * commands/help.c: Likewise.
18793 * commands/hexdump.c: Likewise.
18794 * commands/loadenv.c: Likewise.
18795 * commands/ls.c: Likewise.
18796 * commands/lsmmap.c: Likewise.
18797 * commands/lspci.c: Likewise.
18798 * commands/loadenv.c: Likewise.
18799 * commands/read.c: Likewise.
18800 * commands/reboot.c: Likewise.
18801 * commands/search.c: Likewise.
18802 * commands/sleep.c: Likewise.
18803 * commands/test.c: Likewise.
18804 * commands/usbtest.c: Likewise.
18805 * commands/videotest.c: Likewise.
18806 * commands/i386/cpuid.c: Likewise.
18807 * commands/i386/pc/halt.c: Likewise.
18808 * commands/i386/pc/play.c: Likewise.
18809 * commands/i386/pc/pxecmd.c: Likewise.
18810 * commands/i386/pc/vbeinfo.c: Likewise.
18811 * commands/i386/pc/vbetest.c: Likewise.
18812 * commands/ieee1275/suspend.c: Likewise.
18813 * disk/loopback.c: Likewise.
18814 * font/font_cmd.c: Likewise.
18815 * hello/hello.c: Likewise.
18816 * loader/efi/appleloader.c: Likewise.
18817 * loader/efi/chainloader.c: Likewise.
18818 * loader/i386/bsd.c: Likewise.
18819 * loader/i386/efi/linux.c: Likewise.
18820 * loader/i386/ieee1275/linux.c: Likewise.
18821 * loader/i386/linux.c: Likewise.
18822 * loader/i386/pc/chainloader.c: Likewise.
18823 * loader/i386/pc/linux.c: Likewise.
18824 * loader/powerpc/ieee1275/linux.c: Likewise.
18825 * loader/multiboot_loader.c: Likewise.
18826 * term/gfxterm.c: Likewise.
18827 * term/i386/pc/serial.c: Likewise.
18828 * term/terminfo.c: Likewise.
18829
18830 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
18831 * term/i386/pc/vga.c: Likewise.
18832 * video/readers/jpeg.c: Likewise.
18833 * video/readers/png.c: Likewise.
18834 * video/readers/tga.c: Likewise.
18835
18836 * util/grub-fstest (cmd_loopback): Removed.
18837 (cmd_blocklist): Likewise.
18838 (cmd_ls): Likewise.
18839 (grub_register_command): Likewise.
18840 (grub_unregister_command): Likewise.
18841 (execute_command): Use grub_command_find to locate command and execute
18842 it.
18843
18844 * include/grub/efi/chainloader.h: Removed.
18845 * loader/efi/chainloader_normal.c: Likewise.
18846 * loader/i386/bsd_normal.c: Likewise.
18847 * loader/i386/pc/chainloader_normal.c: Likewise.
18848 * loader/i386/pc/multiboot_normal.c: Likewise.
18849 * loader/linux_normal.c: Likewise.
18850 * loader/multiboot_loader_normal.c: Likewise.
18851 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
18852
18853 * gencmdlist.sh: Scan new registration command grub_register_extcmd
18854 and grub_register_command_p1.
18855
18856 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
18857 kern/command.c, lib/arg.c and commands/extcmd.c.
18858 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
18859 (minicmd_mod_SOURCES): New variable.
18860 (minicmd_mod_CFLAGS): Likewise.
18861 (minicmd_mod_LDFLAGS): Likewise.
18862 (extcmd_mod_SOURCES): Likewise.
18863 (extcmd_mod_CFLAGS): Likewise.
18864 (extcmd_mod_LDFLAGS): Likewise.
18865 (boot_mod_SOURCES): Removed.
18866 (boot_mod_CFLAGS): Likewise.
18867 (boot_mod_LDFLAGS): Likewise.
18868
18869 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
18870 kern/corecmd.c.
18871 (kernel_img_HEADERS): Add command.h.
18872 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
18873 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
18874 and lib/arg.c.
18875 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
18876 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
18877 remove the corresponding normal mode command.
18878 (normal_mod_SOURCES): Remove normal/arg.c.
18879 * conf/i386-coreboot.rmk: Likewise.
18880 * conf/i386-efi.rmk: Likewise.
18881 * conf/i386-ieee1275.rmk: Likewise.
18882 * conf/powerpc-ieee1275.rmk: Likewise.
18883 * conf/x86_64-efi.rmk: Likewise.
18884
18885 * include/grub/arg.h: Move from here ...
18886 * include/grub/lib/arg.h: ... to here.
18887
18888 * normal/arg.c: Move from here ...
18889 * lib/arg.c: ... to here.
18890
18891 * commands/extcmd.c: New file.
18892 * commands/minicmd.c: Likewise.
18893 * include/grub/command.h: Likewise.
18894 * include/grub/extcmd.h: Likewise.
18895 * kern/command.c: Likewise.
18896 * kern/corecmd.c: Likewise.
18897
18898 * kern/list.c (grub_list_iterate): Return int instead of void.
18899 (grub_list_insert): New function.
18900 (grub_prio_list_insert): Likewise.
18901
18902 * kern/rescue.c (grub_rescue_command): Removed.
18903 (grub_rescue_command_list): Likewise.
18904 (grub_rescue_register_command): Likewise.
18905 (grub_rescue_unregister_command): Likewise.
18906 (grub_rescue_cmd_boot): Move to minicmd.c
18907 (grub_rescue_cmd_help): Likewise.
18908 (grub_rescue_cmd_info): Likewise.
18909 (grub_rescue_cmd_boot): Likewise.
18910 (grub_rescue_cmd_testload): Likewise.
18911 (grub_rescue_cmd_dump): Likewise.
18912 (grub_rescue_cmd_rmmod): Likewise.
18913 (grub_rescue_cmd_lsmod): Likewise.
18914 (grub_rescue_cmd_exit): Likewise.
18915 (grub_rescue_print_devices): Moved to corecmd.c.
18916 (grub_rescue_print_files): Likewise.
18917 (grub_rescue_cmd_ls): Likewise.
18918 (grub_rescue_cmd_insmod): Likewise.
18919 (grub_rescue_cmd_set): Likewise.
18920 (grub_rescue_cmd_unset): Likewise.
18921 (attempt_normal_mode): Use grub_command_find to get normal module.
18922 (grub_enter_rescue_mode): Use grub_register_core_commands to register
18923 commands, remove grub_rescue_register_command calls.
18924
18925 * normal/command.c (grub_register_command): Removed.
18926 (grub_unregister_command): Likewise.
18927 (grub_command_find): Likewise.
18928 (grub_iterate_commands): Likewise.
18929 (rescue_command): Likewise.
18930 (export_command): Moved to corecmd.c.
18931 (set_command): Removed.
18932 (unset_command): Likewise.
18933 (insmod_command): Likewise.
18934 (rmmod_command): Likewise.
18935 (lsmod_command): Likewise.
18936 (grub_command_init): Likewise.
18937
18938 * normal/completion.c (iterate_command): Use cmd->prio to check for
18939 active command.
18940 (complete_arguments): Use grub_extcmd_t structure to find options.
18941 (grub_normal_do_completion): Change function grub_iterate_commands to
18942 grub_command_iterate.
18943
18944 * normal/execute.c (grub_script_execute_cmd): No need to parse
18945 argument here.
18946
18947 * normal/main.c (grub_dyncmd_dispatcher): New function.
18948 (read_command_list): Register unload commands as dyncmd.
18949 (grub_cmd_normal): Use new command interface, register rescue,
18950 unregister normal at entry, register normal, unregister rescue at exit.
18951
18952 * include/grub/list.h (grub_list_test_t): New type.
18953 (grub_list_iterate): Return int instead of void.
18954 (grub_list_insert): New function.
18955 (GRUB_AS_NAMED_LIST_P): New macro.
18956 (GRUB_AS_PRIO_LIST): Likewise.
18957 (GRUB_AS_PRIO_LIST_P): Likewise.
18958 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
18959 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
18960 (grub_prio_list): New structure.
18961 (grub_prio_list_insert): New function.
18962 (grub_prio_list_remove): New inline function.
18963
18964 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
18965 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
18966 (GRUB_COMMAND_FLAG_MENU): Likewise.
18967 (GRUB_COMMAND_FLAG_BOTH): Likewise.
18968 (GRUB_COMMAND_FLAG_TITLE): Likewise.
18969 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
18970 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
18971 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
18972 (grub_command): Likewise.
18973 (grub_register_command): Likewise.
18974 (grub_command_find): Likewise.
18975 (grub_iterate_commands): Likewise.
18976 (grub_command_init): Likewise.
18977 (grub_arg_parse): Likewise.
18978 (grub_arg_show_help): Likewise.
18979
18980 * include/grub/rescue.h (grub_rescue_register_command): Removed.
18981 (grub_rescue_unregister_command): Likewise.
18982
18983 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
18984 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
18985 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
18986
18987 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
18988 grub_rescue_cmd_initrd.
18989 * include/grub/i386/loader.h: Likewise.
18990 * include/grub/x86_64/loader.h: Likewise.
18991
18992 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
18993
18994 2009-03-21 Bean <bean123ch@gmail.com>
18995
18996 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
18997 instead of stat in mingw environment.
18998
18999 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
19000
19001 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
19002
19003 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
19004 AC_CONFIG_LINKS.
19005
19006 2009-03-21 Bean <bean123ch@gmail.com>
19007
19008 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
19009 out of range error.
19010
19011 2009-03-18 Michel Dänzer <michel@daenzer.net>
19012
19013 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
19014 checking inode flags for EXT4_EXTENTS_FLAG.
19015
19016 2009-03-18 Robert Millan <rmh@aybabtu.com>
19017
19018 * loader/i386/linux.c: Include `<grub/video.h>' and
19019 `<grub/i386/pc/vbe.h>'..
19020 (grub_linux_setup_video): New function. Loosely based on the EFI one.
19021 (grub_linux32_boot): Attempt to configure video settings with
19022 grub_linux_setup_video().
19023 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
19024 to avoid grub_console_fini() which would step out of graphical mode
19025 unconditionally.
19026
19027 2009-03-14 Robert Millan <rmh@aybabtu.com>
19028
19029 Fix build on powerpc.
19030 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
19031
19032 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
19033
19034 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
19035 background image command.
19036
19037 2009-03-12 Colin D Bennett <colin@gibibit.com>
19038
19039 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
19040 (grub_gfxterm_putchar): Extract pairs of identical calls to
19041 draw_cursor out of conditional blocks.
19042
19043 2009-03-11 Pavel Roskin <proski@gnu.org>
19044
19045 * fs/hfs.c (grub_hfs_strncasecmp): New function.
19046 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
19047
19048 2009-03-11 Robert Millan <rmh@aybabtu.com>
19049
19050 * loader/i386/multiboot_elfxx.c
19051 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
19052
19053 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
19054
19055 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
19056 `kern/handler.c'.
19057
19058 2009-03-11 Robert Millan <rmh@aybabtu.com>
19059
19060 * loader/i386/multiboot.c (code_size): New variable.
19061 (grub_multiboot): Define offsets by adding to `code_size' rather
19062 than subtracting from `grub_multiboot_payload_size'. Provide
19063 4-byte alignment to MBI and others by increasing
19064 `boot_loader_name_length' appropriately.
19065
19066 * loader/i386/multiboot_elfxx.c
19067 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
19068
19069 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
19070
19071 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
19072 `fs/ext2.c'.
19073
19074 2009-03-08 Robert Millan <rmh@aybabtu.com>
19075
19076 Make loader/i386/linux.c usable on i386-pc again.
19077
19078 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
19079 memory to heap.
19080 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
19081 `#error' stanza.
19082
19083 2009-03-07 Bean <bean123ch@gmail.com>
19084
19085 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
19086 allocation.
19087
19088 2009-03-06 Robert Millan <rmh@aybabtu.com>
19089
19090 Fix display issue on terminals with screen size other than 80x25
19091 (e.g. gfxterm with resolution higher than 640x480).
19092
19093 * normal/main.c (grub_normal_init_page): Display title text in a
19094 position relative to the center of the terminal instead of relying
19095 on a hardcoded offset.
19096
19097 2009-03-04 Robert Millan <rmh@aybabtu.com>
19098
19099 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
19100 installed.
19101
19102 * Makefile.in (host_kernel): New variable.
19103 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
19104 scripts instead of just the windows one.
19105 * configure.ac: Initialize and AC_SUBST `host_kernel'.
19106
19107 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
19108
19109 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
19110 `kern/handler.c'.
19111 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19112 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19113 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
19114 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19115 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19116 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19117
19118 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
19119
19120 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
19121 or if there's no space for the disk label and print the partition number on a
19122 invalid magic.
19123
19124 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
19125
19126 * util/misc.c: Include <time.h>.
19127 (grub_millisleep): New function.
19128
19129 2009-03-04 Bean <bean123ch@gmail.com>
19130
19131 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
19132 another option -mno-red-zone.
19133
19134 * commands/handler.c: Change module description.
19135
19136 * kern/handler.c: Add missing space at the end of description line.
19137
19138 * kern/list.c: Likewise.
19139
19140 2009-03-03 Robert Millan <rmh@aybabtu.com>
19141
19142 Move more components to the relocation area, and fix mbi pointer
19143 handling to use the destination rather than the origin (thanks to
19144 Vladimir Serbinenko for spotting).
19145
19146 * loader/i386/multiboot.c (mbi_dest): New variable.
19147 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
19148 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
19149 relocation area.
19150
19151 2009-03-01 Bean <bean123ch@gmail.com>
19152
19153 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
19154 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
19155 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
19156 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
19157
19158 * loader/i386/efi/linux.c (acpi_guid): New variable.
19159 (acpi_guid): Likewise.
19160 (EBDA_SEG_ADDR): New constant.
19161 (LOW_MEM_ADDR): Likewise.
19162 (FAKE_EBDA_SEG): Likewise.
19163 (fake_bios_data): New function.
19164 (grub_linux_boot): Call fake_bios_data.
19165
19166 2009-03-01 Bean <bean123ch@gmail.com>
19167
19168 * commands/terminal.c: Removed.
19169
19170 * commands/handler.c: New file.
19171
19172 * include/grub/list.h: Likewise.
19173
19174 * include/grub/handler.h: Likewise.
19175
19176 * kern/list.c: Likewise.
19177
19178 * kern/handler.c: Likewise.
19179
19180 * kern/term.h: Include header file <grub/handler.h>.
19181 (grub_term_input): Move next field to the beginning.
19182 (grub_term_output): Likewise.
19183 (grub_term_input_class): New variable.
19184 (grub_term_output_class): Likewise.
19185 (grub_term_register_input): Changed to inline function.
19186 (grub_term_register_output): Likewise.
19187 (grub_term_unregister_input): Likewise.
19188 (grub_term_unregister_output): Likewise.
19189 (grub_term_set_current_input): Likewise.
19190 (grub_term_set_current_output): Likewise.
19191 (grub_term_get_current_input): Likewise.
19192 (grub_term_get_current_output): Likewise.
19193 (grub_term_iterate_input): Removed.
19194 (grub_term_iterate_output): Likewise.
19195
19196 * kern/term.c (grub_term_list_input): Removed.
19197 (grub_term_list_output): Likewise.
19198 (grub_term_input_class): New variable.
19199 (grub_term_output_class): Likewise.
19200 (grub_cur_term_input): Change variable as macro.
19201 (grub_cur_term_output): Likewise.
19202 (grub_term_register_input): Removed.
19203 (grub_term_register_output): Likewise.
19204 (grub_term_unregister_input): Likewise.
19205 (grub_term_unregister_output): Likewise.
19206 (grub_term_set_current_input): Likewise.
19207 (grub_term_set_current_output): Likewise.
19208 (grub_term_iterate_input): Likewise.
19209 (grub_term_iterate_output): Likewise.
19210 (grub_term_get_current_input): Likewise.
19211 (grub_term_get_current_output): Likewise.
19212
19213 * util/grub-editenv.c: Include header file <grub/handler.h>.
19214 (grub_term_get_current_input): Removed.
19215 (grub_term_get_current_output): Likewise.
19216 (grub_term_input_class): New variable.
19217 (grub_term_output_class): Likewise.
19218
19219 * util/grub-fstest.c (grub_term_get_current_input): Removed.
19220 (grub_term_get_current_output): Likewise.
19221 (grub_term_input_class): New variable.
19222 (grub_term_output_class): Likewise.
19223
19224 * util/grub-probe.c (grub_term_get_current_input): Removed.
19225 (grub_term_get_current_output): Likewise.
19226 (grub_term_input_class): New variable.
19227 (grub_term_output_class): Likewise.
19228
19229 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
19230 (grub_term_get_current_output): Likewise.
19231 (grub_term_input_class): New variable.
19232 (grub_term_output_class): Likewise.
19233
19234 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
19235 (terminal_mod_SOURCES): Likewise.
19236 (terminal_mod_CFLAGS): Likewise.
19237 (terminal_mod_LDFLAGS): Likewise.
19238
19239 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
19240 handler.c.
19241 (kernel_img_SOURCES): Add list.c and handler.c.
19242 (kernel_img_HEADERS): Add list.h and handler.h.
19243
19244 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
19245 handler.c.
19246 (kernel_mod_SOURCES): Add list.c and handler.c.
19247 (kernel_mod_HEADERS): Add list.h and handler.h.
19248
19249 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
19250 handler.c.
19251 (kernel_elf_SOURCES): Add list.c and handler.c.
19252 (kernel_elf_HEADERS): Add list.h and handler.h.
19253
19254 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
19255 handler.c.
19256 (kernel_elf_SOURCES): Add list.c and handler.c.
19257 (kernel_elf_HEADERS): Add list.h and handler.h.
19258
19259 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
19260 handler.c.
19261 (kernel_mod_SOURCES): Add list.c and handler.c.
19262 (kernel_mod_HEADERS): Add list.h and handler.h.
19263
19264 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
19265 handler.c.
19266 (kernel_elf_SOURCES): Add list.c and handler.c.
19267 (kernel_elf_HEADERS): Add list.h and handler.h.
19268
19269 2009-02-27 Robert Millan <rmh@aybabtu.com>
19270
19271 Factorize elf32 / elf64 code in Multiboot loader. This will
19272 prevent it from getting out of sync again.
19273
19274 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
19275 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
19276 grub_multiboot_load_elf64): Move from here ...
19277 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
19278 grub_multiboot_load_elf): ... to here (new file).
19279
19280 2009-02-27 Robert Millan <rmh@aybabtu.com>
19281
19282 * util/grub.d/10_linux.in: Rename "single-user mode" to
19283 "recovery mode".
19284
19285 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
19286
19287 Don't leak in SCSI code.
19288 * disk/scsi.c (grub_scsi_close): free `scsi'.
19289
19290 2009-02-27 Robert Millan <rmh@aybabtu.com>
19291
19292 * loader/i386/pc/multiboot.c: Move from here ...
19293 * loader/i386/multiboot.c: ... to here. Update all users.
19294
19295 2009-02-27 Robert Millan <rmh@aybabtu.com>
19296
19297 Patch from Alexandre Bique <bique.alexandre@gmail.com>
19298 * util/i386/pc/grub-setup.c (setup): Fix directory path.
19299
19300 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
19301
19302 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
19303 b-tree.
19304
19305 2009-02-27 Robert Millan <rmh@aybabtu.com>
19306
19307 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
19308 `0x' qualifier as 0 when base is specified as parameter).
19309
19310 2009-02-24 Bean <bean123ch@gmail.com>
19311
19312 * configure.ac: Check for -mcmodel=large in x86_64 target.
19313
19314 * include/grub/efi/api.h (efi_call_10): New macro.
19315 (efi_wrap_10): New function.
19316
19317 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
19318 (GRUB_PE32_REL_BASED_HIGH): Likewise.
19319 (GRUB_PE32_REL_BASED_LOW): Likewise.
19320 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
19321 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
19322 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
19323 (GRUB_PE32_REL_BASED_SECTION): Likewise.
19324 (GRUB_PE32_REL_BASED_REL): Likewise.
19325 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
19326 (GRUB_PE32_REL_BASED_DIR64): Likewise.
19327 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
19328
19329 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
19330 issue.
19331
19332 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
19333 (efi_wrap_10): New function.
19334
19335 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
19336
19337 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
19338 MB/MBP model (NV chipset).
19339 (devdata_devs): Add devpath_5 to the list.
19340
19341 * load/i386/efi/linux.c (video_base): Remove variable.
19342 (RGB_MASK): New macro.
19343 (RGB_MAGIC): Likewise.
19344 (LINE_MIN): Likewise.
19345 (LINE_MAX): Likewise.
19346 (FBTEST_STEP): Likewise.
19347 (FBTEST_COUNT): Likewise.
19348 (fb_list): New variable.
19349 (grub_find_video_card): Remove function.
19350 (find_framebuf): New function.
19351 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
19352 line length.
19353
19354 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
19355 problem for x86_64.
19356
19357 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
19358
19359 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
19360
19361 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
19362 coding tool name.
19363
19364 2009-02-22 Robert Millan <rmh@aybabtu.com>
19365
19366 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
19367 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
19368 in our relocation, instead of using it directly from heap. Also
19369 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
19370
19371 2009-02-21 Robert Millan <rmh@aybabtu.com>
19372
19373 Implement USB keyboard support (based on patch by Marco Gerards)
19374
19375 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
19376 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
19377 (usb_keyboard_mod_LDFLAGS): New variables.
19378
19379 * term/usb_keyboard.c: New file.
19380
19381 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
19382
19383 Corrected wrong declaration
19384
19385 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
19386
19387 2009-02-14 Christian Franke <franke@computer.org>
19388
19389 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
19390 (grub_lspci_iter): Print class code and programming interface byte.
19391
19392 2009-02-14 Christian Franke <franke@computer.org>
19393
19394 * gendistlist.sh: Ignore `.svn' directories.
19395
19396 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
19397
19398 * fs/fat.c: Add 2009 to Copyright line.
19399
19400 2009-02-14 Christian Franke <franke@computer.org>
19401
19402 * commands/hdparm.c: New file. Provides `hdparm' command
19403 which sends ATA commands via grub_disk_ata_pass_through ().
19404
19405 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
19406
19407 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
19408 and <grub/cpu/io.h> to include/grub/ata.h.
19409 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
19410 (GRUB_CDROM_SECTOR_SIZE): Remove.
19411 (GRUB_ATA_*): Move to include/grub/ata.h.
19412 (GRUB_ATAPI_*): Likewise.
19413 (enum grub_ata_commands): Likewise.
19414 (enum grub_ata_timeout_milliseconds): Likewise.
19415 (struct grub_ata_device): Likewise.
19416 (grub_ata_regset): Likewise.
19417 (grub_ata_regget): Likewise.
19418 (grub_ata_regset2): Likewise.
19419 (grub_ata_regget2): Likewise.
19420 (grub_ata_check_ready): Likewise.
19421 (grub_ata_wait_not_busy): Remove static, exported in
19422 include/grub/ata.h.
19423 (grub_ata_wait_drq): Likewise.
19424 (grub_ata_pio_read): Likewise.
19425
19426 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
19427 function for hdparm.mod.
19428
19429 * include/grub/ata.h: New file, contains declarations from
19430 disk/ata.c.
19431 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
19432
19433 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
19434 (grub_disk_ata_pass_through): New exported variable.
19435
19436 * kern/disk.c (grub_disk_ata_pass_through): New variable.
19437
19438 2009-02-13 Colin D Bennett <colin@gibibit.com>
19439
19440 Support multiple fallback entries, and provide an API to support
19441 executing default+fallback menu entries. Renamed the `terminal' menu
19442 viewer to `text'.
19443
19444 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
19445 variable declaration.
19446 (grub_menu_execute_callback): New structure declaration.
19447 (grub_menu_execute_callback_t): New typedef.
19448 (grub_menu_execute_with_fallback): New function declaration.
19449 (grub_menu_get_entry): Likewise.
19450 (grub_menu_get_timeout): Likewise.
19451 (grub_menu_set_timeout): Likewise.
19452
19453 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
19454
19455 * normal/menu.c (grub_wait_after_message): Moved to
19456 `normal/menu_text.c'.
19457 (draw_border): Likewise.
19458 (print_message): Likewise.
19459 (print_entry): Likewise.
19460 (print_entries): Likewise.
19461 (grub_menu_init_page): Likewise.
19462 (get_entry_number): Likewise.
19463 (print_timeout): Likewise.
19464 (run_menu): Likewise.
19465 (grub_menu_execute_entry): Likewise.
19466 (show_text_menu): Likewise.
19467 (get_and_remove_first_entry_number): New function.
19468 (grub_menu_execute_with_fallback): Likewise.
19469 (get_entry): Renamed to ...
19470 (grub_menu_get_entry): .. this and made it global.
19471 (get_timeout): Renamed to ...
19472 (grub_menu_get_timeout): ... this and made it global.
19473 (set_timeout): Renamed to ...
19474 (grub_menu_set_timeout): ... this and made it global.
19475 (grub_normal_terminal_menu_viewer): Renamed to ...
19476 (grub_normal_text_menu_viewer): ... this.
19477
19478 * normal/menu_text.c: New file. Extracted text-menu-specific code
19479 from normal/menu.c.
19480
19481 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
19482 (normal_mod_SOURCES): Likewise.
19483
19484 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19485 (normal_mod_SOURCES): Likewise.
19486
19487 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19488 (normal_mod_SOURCES): Likewise.
19489
19490 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
19491 (normal_mod_SOURCES): Likewise.
19492
19493 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19494 (normal_mod_SOURCES): Likewise.
19495
19496 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19497 (normal_mod_SOURCES): Likewise.
19498
19499 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19500 (normal_mod_SOURCES): Likewise.
19501
19502 2009-02-11 Robert Millan <rmh@aybabtu.com>
19503
19504 * util/grub.d/00_header.in: Update old reference to `font' command.
19505
19506 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
19507
19508 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
19509
19510 Based on patch from Javier Martín.
19511
19512 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
19513
19514 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
19515 to avoid false positives with FAT.
19516 (grub_fstest_SOURCES): Likewise.
19517 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19518 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19519 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19520 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
19521 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19522 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19523
19524 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
19525
19526 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
19527 bpb.version_specific.fat12_or_fat16.fstype and
19528 bpb.version_specific.fat32.fstype.
19529
19530 2009-02-08 Robert Millan <rmh@aybabtu.com>
19531
19532 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
19533
19534 2009-02-08 Robert Millan <rmh@aybabtu.com>
19535
19536 * Makefile.in (host_os, host_cpu): New variables.
19537 (target_os): Remove. Update all users.
19538
19539 2009-02-08 Marco Gerards <marco@gnu.org>
19540
19541 * Makefile.in (enable_grub_emu_usb): New variable.
19542 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
19543 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
19544 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
19545 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
19546 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
19547 `usbtest.mod' and `usbms.mod'.
19548 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
19549 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
19550 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
19551 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
19552 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
19553 variables.
19554
19555 * disk/usbms.c: New file.
19556
19557 * include/grub/usb.h: Likewise.
19558
19559 * include/grub/usbtrans.h: Likewise.
19560
19561 * include/grub/usbdesc.h: Likewise.
19562
19563 * bus/usb/usbtrans.c: Likewise.
19564
19565 * bus/usb/ohci.c: Likewise.
19566
19567 * bus/usb/uhci.c: Likewise.
19568
19569 * bus/usb/usbhub.c: Likewise.
19570
19571 * bus/usb/usb.c: Likewise.
19572
19573 * commands/usbtest.c: Likewise.
19574
19575 * util/usb.c: Likewise.
19576
19577 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
19578
19579 * configure.ac: Test for libusb presence.
19580
19581 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
19582
19583 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
19584
19585 * kern/mm.c: Add more comments.
19586
19587 2009-02-08 Robert Millan <rmh@aybabtu.com>
19588
19589 Patch from Javier Martín.
19590 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
19591 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
19592
19593 2009-02-08 Robert Millan <rmh@aybabtu.com>
19594
19595 * fs/cpio.c: Split tar functionality to ...
19596 * fs/tar.c: ... here (new file). Update all users.
19597
19598 2009-02-07 Robert Millan <rmh@aybabtu.com>
19599
19600 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
19601 backward-incompatible features.
19602
19603 Based on patch from Javier Martín, with some adjustments.
19604
19605 2009-02-07 Michael Scherer <misc@mandriva.org>
19606
19607 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
19608
19609 2009-02-07 Robert Millan <rmh@aybabtu.com>
19610
19611 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
19612 position of `disk/lvm.c' to ensure grub_init_all() always picks it
19613 after the RAID stuff.
19614
19615 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
19616
19617 Fixes problem when running vbetest command as reported by
19618 Vladimir Serbinenko <phcoder@gmail.com>.
19619
19620 * (grub_vbe_set_video_mode): Fixed problem with text modes.
19621
19622 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
19623
19624 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
19625 /dev/md/NpN style mdraid devices.
19626
19627 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
19628
19629 * util/unifont2pff.rb: Remove.
19630
19631 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
19632
19633 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
19634 `#'.
19635
19636 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
19637
19638 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
19639 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19640 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19641 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
19642 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19643 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19644 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19645
19646 2009-02-02 Christian Franke <franke@computer.org>
19647
19648 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
19649
19650 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
19651
19652 * INSTALL: Note that we now require at least autoconf 2.59 and
19653 that LZO is optional.
19654
19655 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
19656
19657 Base on patch on bug #24154 created by Tomas Tintera
19658 <trosos@seznam.cz>.
19659
19660 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
19661
19662 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
19663
19664 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
19665 <bero@arklinux.org>.
19666
19667 * normal/parser.y (script_init): Add missing semicolon.
19668
19669 2009-01-31 Colin D Bennett <colin@gibibit.com>
19670
19671 * normal/main.c: Add include to grub/menu_viewer.h.
19672 (free_menu_entry_classes): Added.
19673 (grub_normal_menu_addentry): Added class property handling.
19674 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
19675 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
19676
19677 * normal/menu_viewer.c: New file.
19678
19679 * normal/menu.c (run_menu_entry): Renamed to ...
19680 (grub_menu_execute_entry): ... this and made it as global.
19681 (grub_menu_run): Renamed to ...
19682 (show_text_menu): ... this and made it local.
19683 (show_text_menu): Adapt to new function names.
19684 (grub_normal_terminal_menu_viewer): New global variable.
19685
19686 * include/grub/menu.h: New file.
19687
19688 * include/grub/menu_viewer.h: New file.
19689
19690 * include/grub/normal.h: Added include to grub/menu.h.
19691 (grub_menu_entry): Moved to include/grub/menu.h.
19692 (grub_menu_entry_t): Likewise.
19693 (grub_menu): Likewise.
19694 (grub_menu_t): Likewise.
19695 (grub_normal_terminal_menu_viewer): Added.
19696 (grub_menu_execute_entry): Likewise.
19697 (grub_menu_run): Removed.
19698
19699 * DISTLIST: Added include/grub/menu.h.
19700 Added include/grub/menu_viewer.h.
19701 Added normal/menu_viewer.c.
19702
19703 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
19704
19705 * normal/execute.c (grub_script_execute_menuentry): Changed to use
19706 arglist for menutitle arguments.
19707
19708 * normal/main.c (grub_normal_menu_addentry): Likewise.
19709
19710 * normal/parser.y (menuentry): Likewise.
19711
19712 * normal/script.c (grub_script_create_cmdmenu): Likewise.
19713
19714 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
19715 (grub_script_create_cmdmenu): Likewise.
19716
19717 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
19718
19719 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
19720 changes.
19721
19722 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
19723
19724 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
19725
19726 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
19727
19728 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
19729
19730 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
19731
19732 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
19733
19734 2009-01-30 Christian Franke <franke@computer.org>
19735
19736 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
19737 in option help text.
19738
19739 2009-01-27 Pavel Roskin <proski@gnu.org>
19740
19741 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
19742
19743 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
19744
19745 * commands/lsmmap.c: Add include to grub/machine/memory.h.
19746
19747 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
19748
19749 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
19750 unregister function.
19751
19752 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
19753
19754 * disk/scsi.c (grub_scsi_read): Fix sign problem.
19755
19756 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
19757
19758 * util/grub-mkfont.c (usage): Fix typo.
19759
19760 * util/elf/grub-mkimage.c (load_modules): Fix warning.
19761
19762 2009-01-26 Daniel Mierswa <impulze@impulze.org>
19763
19764 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
19765
19766 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
19767
19768 * kern/misc.c (grub_strcasecmp): New function.
19769 (grub_strcasecmp): Use grub_size_t instead of int for length.
19770 Fix return value.
19771 * include/grub/misc.h: Update function prototypes.
19772
19773 2009-01-26 Robert Millan <rmh@aybabtu.com>
19774
19775 * configure.ac: Fix cross-compilation check.
19776
19777 2009-01-22 Christian Franke <franke@computer.org>
19778
19779 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
19780 (precision) digit string. Allow `.format2' without `format1' (width).
19781 Limit input chars for `%s' output to `format2' if specified. This is
19782 compatible with standard printf ().
19783
19784 2009-01-22 Christian Franke <franke@computer.org>
19785
19786 * disk/ata.c (grub_ata_wait_status): Replace by ...
19787 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
19788 other status bits may be invalid while BSY is asserted.
19789 (grub_ata_check_ready): New function.
19790 (grub_ata_cmd): Removed.
19791 (grub_ata_wait_drq): New function.
19792 (grub_ata_strncpy): Remove inline.
19793 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
19794 and error check now done by grub_ata_wait_drq ().
19795 (grub_ata_pio_write): Likewise.
19796 (grub_atapi_identify): Set DEV before check for !BSY. Use
19797 grub_ata_wait_drq () to wait for data.
19798 (grub_ata_device_initialize): Add status register check to
19799 detect missing SATA slave devices. Add debug messages.
19800 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
19801 (grub_atapi_packet): Set DEV before check for !BSY. Replace
19802 transfer loop by grub_ata_pio_write ().
19803 (grub_ata_identify): Set DEV before check for !BSY. Use
19804 grub_ata_wait_drq () to wait for data.
19805 (grub_ata_setaddress): Set DEV before check for !BSY.
19806 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
19807 read/write in one loop. Fix invalid command on write. Fix incomplete
19808 command on (size % batch) == 0. Add missing error check after write of
19809 last block. Add debug messages.
19810 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
19811
19812 2009-01-19 Christian Franke <franke@computer.org>
19813
19814 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
19815 (GRUB_ATAPI_IREASON_*): Likewise.
19816 (grub_ata_pio_write): Fix timeout error return.
19817 (grub_atapi_identify): Add grub_ata_wait () after cmd.
19818 (grub_atapi_wait_drq): New function.
19819 (grub_atapi_packet): New parameter `size'.
19820 Use grub_atapi_wait_drq () and direct write instead of
19821 grub_ata_pio_write ().
19822 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
19823 reads the number of bytes requested by the device for each DRQ
19824 assertion.
19825 (grub_atapi_write): Remove old implementation, return not
19826 implemented instead.
19827
19828 2009-01-19 Christian Franke <franke@computer.org>
19829
19830 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
19831 of 512 to calculate data size.
19832 (grub_scsi_read12): Likewise.
19833 (grub_scsi_write10): Likewise.
19834 (grub_scsi_write12): Likewise.
19835 (grub_scsi_read): Adjust size according to blocksize.
19836 Add checks for invalid blocksize and unaligned transfer.
19837
19838 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
19839
19840 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
19841
19842 * term/gfxterm.c (write_char): Fix background rendering for wide
19843 width glyphs.
19844
19845 2009-01-19 Robert Millan <rmh@aybabtu.com>
19846
19847 * config.guess: Update to latest version from config git.
19848 * config.sub: Likewise.
19849
19850 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
19851
19852 * Makefile.in: Change font compilation to use new grub-mkfont instead
19853 of java version.
19854
19855 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
19856 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
19857 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
19858 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
19859 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
19860 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
19861 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
19862 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
19863 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
19864
19865 2009-01-16 Christian Franke <franke@computer.org>
19866
19867 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
19868 (enum grub_ata_timeout_milliseconds): New enum.
19869 (grub_ata_wait_status): Add parameter milliseconds.
19870 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
19871 recovery from timed-out commands.
19872 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
19873 return grub_errno instead of REG_ERROR.
19874 (grub_ata_pio_write): Add parameter milliseconds.
19875 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
19876 Pass milliseconds to grub_ata_wait_status () and
19877 grub_ata_pio_read ().
19878 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
19879 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
19880 grub_ata_wait_status (). Fix IDENTIFY timeout check.
19881 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
19882 It is not suitable for device detection, because DEV bit is ignored,
19883 the command may run too long, and not all devices set the signature
19884 properly.
19885 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
19886 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
19887 Fix device selection, DEV bit must be set first to address the registers
19888 of the correct device.
19889 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
19890 grub_ata_pio_read/write ().
19891 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
19892 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
19893
19894 2009-01-13 Carles Pina i Estany <carles@pina.cat>
19895
19896 * util/grub-editenv.c (main): Use fseeko(), not fseek().
19897
19898 2009-01-13 Bean <bean123ch@gmail.com>
19899
19900 * util/grub-mkfont.c (write_font): forget to remove some debug code.
19901
19902 2009-01-13 Bean <bean123ch@gmail.com>
19903
19904 * Makefile.in: (enable_grub_mkfont): New variable.
19905 (freetype_cflags): Likewise.
19906 (freetype_libs): Likewise.
19907
19908 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
19909 (grub_mkfont_SOURCES): New variable.
19910 (grub_mkfont_CFLAGS): Likewise.
19911 (grub_mkfont_LDFLAGS): Likewise.
19912
19913 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
19914 library if `--enable-grub-mkfont' is requested.
19915 (enable_grub_mkfont): New variable.
19916 (freetype_cflags): Likewise.
19917 (freetype_libs): Likewise.
19918
19919 * util/grub-mkfont.c: New file.
19920
19921 2009-01-12 Christian Franke <franke@computer.org>
19922
19923 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
19924 mode check. Fix setting of compat_use[].
19925
19926 2009-01-10 Robert Millan <rmh@aybabtu.com>
19927
19928 Update a few copyright years which we forgot to do in 2008 (only for
19929 files whose changes made in 2008 were copyright-significant)
19930
19931 * Makefile.in: Add 2008 to Copyright line.
19932 * disk/ieee1275/ofdisk.c: Likewise.
19933 * disk/efi/efidisk.c: Likewise.
19934 * kern/dl.c: Likewise.
19935 * kern/sparc64/ieee1275/init.c: Likewise.
19936 * kern/mm.c: Likewise.
19937 * kern/efi/mm.c: Likewise.
19938 * boot/i386/pc/boot.S: Likewise.
19939 * genfslist.sh: Likewise.
19940 * fs/iso9660.c: Likewise.
19941 * fs/hfs.c: Likewise.
19942 * fs/jfs.c: Likewise.
19943 * fs/minix.c: Likewise.
19944 * fs/ufs.c: Likewise.
19945 * gensymlist.sh.in: Likewise.
19946 * genkernsyms.sh.in: Likewise.
19947 * include/grub/misc.h: Likewise.
19948 * include/grub/types.h: Likewise.
19949 * include/grub/symbol.h: Likewise.
19950 * include/grub/elf.h: Likewise.
19951 * include/grub/kernel.h: Likewise.
19952 * include/grub/disk.h: Likewise.
19953 * include/grub/dl.h: Likewise.
19954 * include/grub/i386/linux.h: Likewise.
19955 * include/grub/i386/pc/biosdisk.h: Likewise.
19956 * include/grub/efi/api.h: Likewise.
19957 * include/grub/efi/pe32.h: Likewise.
19958 * include/grub/util/misc.h: Likewise.
19959 * normal/execute.c: Likewise.
19960 * normal/arg.c: Likewise.
19961 * normal/completion.c: Likewise.
19962 * normal/lexer.c: Likewise.
19963 * normal/parser.y: Likewise.
19964 * normal/misc.c: Likewise.
19965 * commands/i386/pc/vbeinfo.c: Likewise.
19966 * commands/hexdump.c: Likewise.
19967 * commands/terminal.c: Likewise.
19968 * commands/ls.c: Likewise.
19969 * commands/help.c: Likewise.
19970 * partmap/pc.c: Likewise.
19971 * loader/efi/chainloader.c: Likewise.
19972 * loader/multiboot_loader.c: Likewise.
19973 * loader/i386/pc/multiboot2.c: Likewise.
19974 * term/efi/console.c: Likewise.
19975 * term/i386/pc/serial.c: Likewise.
19976 * util/lvm.c: Likewise.
19977 * util/console.c: Likewise.
19978 * util/i386/efi/grub-mkimage.c: Likewise.
19979 * util/raid.c: Likewise.
19980
19981 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
19982
19983 * commands/videotest.c: Removed include to grub/machine/memory.h.
19984
19985 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
19986 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
19987 (video_mod_SOURCES): Removed.
19988 (video_mod_CFLAGS): Likewise.
19989 (video_mod_LDFLAGS): Likewise.
19990 (gfxterm_mod_SOURCES): Likewise.
19991 (gfxterm_mod_CFLAGS): Likewise.
19992 (gfxterm_mod_LDFLAGS): Likewise.
19993 (videotest_mod_SOURCES): Likewise.
19994 (videotest_mod_CFLAGS): Likewise.
19995 (videotest_mod_LDFLAGS): Likewise.
19996 (bitmap_mod_SOURCES): Likewise.
19997 (bitmap_mod_CFLAGS): Likewise.
19998 (bitmap_mod_LDFLAGS): Likewise.
19999 (tga_mod_SOURCES): Likewise.
20000 (tga_mod_CFLAGS): Likewise.
20001 (tga_mod_LDFLAGS): Likewise.
20002 (jpeg_mod_SOURCES): Likewise.
20003 (jpeg_mod_CFLAGS): Likewise.
20004 (jpeg_mod_LDFLAGS): Likewise.
20005 (png_mod_SOURCES): Likewise.
20006 (png_mod_CFLAGS): Likewise.
20007 (png_mod_LDFLAGS): Likewise.
20008
20009 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
20010 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
20011 (video_mod_SOURCES): Added.
20012 (video_mod_CFLAGS): Likewise.
20013 (video_mod_LDFLAGS): Likewise.
20014 (videotest_mod_SOURCES): Likewise.
20015 (videotest_mod_CFLAGS): Likewise.
20016 (videotest_mod_LDFLAGS): Likewise.
20017 (bitmap_mod_SOURCES): Likewise.
20018 (bitmap_mod_CFLAGS): Likewise.
20019 (bitmap_mod_LDFLAGS): Likewise.
20020 (tga_mod_SOURCES): Likewise.
20021 (tga_mod_CFLAGS): Likewise.
20022 (tga_mod_LDFLAGS): Likewise.
20023 (jpeg_mod_SOURCES): Likewise.
20024 (jpeg_mod_CFLAGS): Likewise.
20025 (jpeg_mod_LDFLAGS): Likewise.
20026 (png_mod_SOURCES): Likewise.
20027 (png_mod_CFLAGS): Likewise.
20028 (png_mod_LDFLAGS): Likewise.
20029 (gfxterm_mod_SOURCES): Likewise.
20030 (gfxterm_mod_CFLAGS): Likewise.
20031 (gfxterm_mod_LDFLAGS): Likewise.
20032
20033 * term/gfxterm.c: Removed include to grub/machine/memory.h,
20034 grub/machine/console.h.
20035
20036 2009-01-04 Jerone Young <jerone@gmail.com>
20037
20038 Make on screen instructions clearer
20039
20040 Based on patch created by Jidanni <jidanni@jidanni.org>
20041
20042 * normal/menu.c: print clearer instructions on the screen
20043
20044 2009-01-02 Colin D Bennett <colin@gibibit.com>
20045
20046 New font engine.
20047
20048 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
20049 build system and fixed gfxterm.c to work with different sized fonts.
20050
20051 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
20052
20053 * configure: Re-generated.
20054
20055 * DISTLIST: Removed font/manager.c.
20056 Added font/font.c.
20057 Added font/font_cmd.c.
20058
20059 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
20060 compilation.
20061
20062 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
20063
20064 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
20065
20066 * kern/term.c: Changed users of grub_utf8_to_ucs4.
20067
20068 * normal/menu.c: Likewise.
20069
20070 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
20071 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
20072
20073 * include/grub/font.h: Replaced with new file.
20074
20075 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
20076 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
20077 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
20078 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
20079 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
20080 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
20081 fg_red, fg_green, fg_blue, fg_alpha.
20082 (grub_video_adapter): Removed blit_glyph.
20083 (grub_video_blit_glyph): Removed.
20084
20085 * font/manager.c: Removed file.
20086
20087 * font/font.c: New file.
20088
20089 * font/font_cmd.c: Likewise.
20090
20091 * video/video.c (grub_video_blit_glyph): Removed.
20092
20093 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
20094 (grub_video_vbe_map_rgba): Likewise.
20095 (grub_video_vbe_unmap_color_int): Likewise.
20096 (grub_video_vbe_blit_glyph): Removed.
20097 (grub_video_vbe_adapter): Removed blit_glyph.
20098
20099 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
20100 (get_pixel): Likewise.
20101 (set_pixel): Likewise.
20102
20103 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
20104
20105 * term/gfxterm.c: Adapted to new font engine.
20106
20107 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
20108
20109 * term/i386/pc/vga.c: Likewise.
20110
20111 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
20112
20113 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
20114
20115 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
20116
20117 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
20118
20119 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
20120
20121 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
20122
20123 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
20124
20125 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
20126
20127 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
20128
20129 * util/grub.d/00_header.in: Changed to use new loadfont command.
20130
20131 * util/grub-mkconfig_lib.in: Changed font extension.
20132
20133 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
20134
20135 * util/getroot.c (grub_util_get_grub_dev): Add support for
20136 /dev/md/dNNpNN style partitionable mdraid devices.
20137
20138 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
20139
20140 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
20141 at a time limit of the PXE TFTP API correctly.
20142 (grub_pxefs_close): Likewise.
20143
20144 2008-11-29 Robert Millan <rmh@aybabtu.com>
20145
20146 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
20147 grub_ata_device_initialize() calls.
20148
20149 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
20150
20151 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
20152 iteration failed.
20153 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
20154
20155 2008-11-28 Robert Millan <rmh@aybabtu.com>
20156
20157 Fix build on powerpc-ieee1275. Based on patch created by
20158 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
20159 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
20160 `kern/ieee1275/mmap.c'.
20161 * include/grub/powerpc/ieee1275/memory.h: New file.
20162
20163 Provide grub-install on coreboot.
20164 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
20165 (grub_install_SOURCES): New variable.
20166 * util/i386/pc/grub-install.in: Add a few condition checks to make it
20167 usable on coreboot.
20168
20169 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
20170
20171 * util/grub-fstest.c (grub_term_get_current_input): Change return type
20172 to `grub_term_input_t'.
20173 (grub_term_get_current_output): Change return type to
20174 `grub_term_output_t'.
20175
20176 2008-11-22 Robert Millan <rmh@aybabtu.com>
20177
20178 Fix breakage on coreboot due to declaration mismatch.
20179 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
20180 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
20181 grub_vga_text_cls().
20182
20183 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
20184 comments. Avoid copying one more byte than necessary (just in case).
20185
20186 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
20187 to 0x200000 (avoids trouble with some OFW implementations, and matches
20188 with the one in Yaboot).
20189 Reported by Manoel Abranches
20190
20191 2008-11-20 Robert Millan <rmh@aybabtu.com>
20192
20193 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
20194 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
20195
20196 * util/grub-mkconfig_lib.in (grub_warn): New function.
20197 (convert_system_path_to_grub_path): Use grub_warn() when issuing
20198 warnings, to obtain consistent formatting.
20199 * util/grub.d/00_header.in: Likewise.
20200 * util/update-grub_lib.in: Likewise.
20201
20202 * loader/i386/linux.c (allocate_pages): Fix a warning.
20203 Move comment text to `#error' stanza.
20204
20205 Harmonize ieee1275's grub_available_iterate() with the generic
20206 grub_machine_mmap_iterate() interface (fixes a recently-introduced
20207 build problem on i386-ieee1275):
20208 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
20209 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
20210 parameter `type'. Update all users of this function.
20211 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
20212 `kern/ieee1275/mmap.c'.
20213 * kern/ieee1275/init.c
20214 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
20215 with ...
20216 (grub_machine_mmap_iterate): ... this.
20217 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
20218 return type to `grub_err_t'. Update all implementations of this
20219 function prototype.
20220 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
20221 Likewise.
20222
20223 Add `lsmmap' command (lists firmware-provided memory map):
20224 * commands/lsmmap.c: New file.
20225 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
20226 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
20227 variables.
20228 * conf/powerpc-ieee1275.rmk: Likewise.
20229 * conf/i386-coreboot.rmk: Likewise.
20230 * conf/i386-ieee1275.rmk: Likewise.
20231
20232 2008-11-19 Robert Millan <rmh@aybabtu.com>
20233
20234 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
20235 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
20236 constraints to initrd allocation (based on code from
20237 loader/i386/pc/linux.c). Without them, initrd was allocated too high
20238 for Linux to find it.
20239
20240 2008-11-14 Robert Millan <rmh@aybabtu.com>
20241
20242 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
20243 order to cope with duplicate slashes.
20244
20245 2008-11-14 Robert Millan <rmh@aybabtu.com>
20246
20247 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
20248 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
20249 don't want to mess with lower memory, because it is used in the Linux
20250 loader.
20251
20252 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
20253 an appropriate place in lower memory, between 0x10000 and 0x90000,
20254 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
20255 is in our heap (probably as a result of it being corrupted during
20256 decompression). Add #error instance with comment to explain why this
20257 loader isn't currently usable on PC/BIOS.
20258
20259 2008-11-14 Robert Millan <rmh@aybabtu.com>
20260
20261 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
20262 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
20263
20264 2008-11-12 Robert Millan <rmh@aybabtu.com>
20265
20266 Make loader/i386/linux.c buildable on i386-pc (although disabled).
20267
20268 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
20269 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
20270 from here ...
20271 * include/grub/i386/pc/memory.h: ... to here.
20272
20273 2008-11-12 Robert Millan <rmh@aybabtu.com>
20274
20275 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
20276 split).
20277
20278 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
20279 (grub_console_cur_color, grub_console_real_putchar)
20280 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
20281 (grub_console_setcolorstate, grub_console_setcolor)
20282 (grub_console_getcolor): Move from here ...
20283 * include/grub/i386/vga_common.h: ... to here (new file).
20284
20285 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
20286 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
20287 `<grub/i386/io.h>'.
20288 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
20289 `<grub/i386/vga_common.h>'.
20290
20291 2008-11-12 Robert Millan <rmh@aybabtu.com>
20292
20293 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
20294 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
20295 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
20296 variables.
20297 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
20298 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
20299
20300 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
20301 grub_console_init() with call to grub_vga_text_init().
20302 (grub_machine_fini): Replace call to
20303 grub_console_fini() with call to grub_vga_text_fini() and
20304 grub_at_keyboard_fini().
20305
20306 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
20307 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
20308 (grub_console_setcolorstate, grub_console_setcolor)
20309 (grub_console_getcolor): New function prototypes.
20310
20311 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
20312 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
20313 (grub_vga_text_setcursor): Static-ize.
20314 (grub_vga_text_term): New structure.
20315 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
20316
20317 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
20318 (grub_console_cur_color, grub_console_standard_color)
20319 (grub_console_normal_color, grub_console_highlight_color)
20320 (map_char, grub_console_putchar, grub_console_getcharwidth)
20321 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
20322 (grub_console_getcolor): Move from here ...
20323 * term/i386/vga_common.c: ... to here (same function names).
20324
20325 2008-11-12 Robert Millan <rmh@aybabtu.com>
20326
20327 Use newly-added Multiboot support in coreboot.
20328
20329 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
20330 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
20331
20332 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
20333 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
20334 (codestart): Store the MBI in `startup_multiboot_info' when we're
20335 being loaded using Multiboot.
20336
20337 * kern/i386/coreboot/init.c (grub_machine_init): Move
20338 grub_at_keyboard_init() call to beginning of function (useful for
20339 debugging). Call grub_machine_mmap_init() before attempting to use
20340 grub_machine_mmap_iterate().
20341 (grub_lower_mem, grub_upper_mem): Move from here ...
20342 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
20343 here (new file).
20344
20345 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
20346 function prototype.
20347
20348 2008-11-12 Robert Millan <rmh@aybabtu.com>
20349
20350 Fix a regression introduced by the at_keyboard.mod split. Because
20351 some terminals are default on some platforms and non-default on
20352 others, the first terminal being registered determines which is
20353 going to be default.
20354
20355 * kern/term.c (grub_term_register_input): If this is the first
20356 terminal being registered, set it as the current one.
20357 (grub_term_register_output): Likewise.
20358
20359 * term/efi/console.c (grub_console_init): Do not call
20360 grub_term_set_current_output() or grub_term_set_current_input().
20361 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
20362 * term/i386/pc/console.c (grub_console_init): Likewise.
20363 (grub_console_fini): Do not call grub_term_set_current_input()
20364 (but leave grub_term_set_current_output() to restore text mode).
20365
20366 2008-11-10 Robert Millan <rmh@aybabtu.com>
20367
20368 * util/grub.d/00_header.in: Add backward compatibility check for
20369 versions of terminal.mod that don't understand `terminal_input' or
20370 `terminal_output'.
20371
20372 2008-11-09 Robert Millan <rmh@aybabtu.com>
20373
20374 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
20375 `terminal_input' / `terminal_output', not `terminal'.
20376
20377 2008-11-08 Robert Millan <rmh@aybabtu.com>
20378
20379 * Makefile.in (include_DATA): Fix srcdir=. assumption.
20380 (DISTCLEANFILES): Add `build_env.mk'.
20381
20382 2008-11-08 Robert Millan <rmh@aybabtu.com>
20383
20384 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
20385 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
20386 members. Update all users.
20387 * util/console.c (grub_ncurses_term): Split in ...
20388 (grub_ncurses_term_input): ... this, and ...
20389 (grub_ncurses_term_output): ... this. Update all users.
20390 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
20391
20392 2008-11-08 Robert Millan <rmh@aybabtu.com>
20393
20394 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
20395 (PKGDATA): Add $(pkgdata_SRCDIR).
20396 (pkglib_BUILDDIR): New variable.
20397 (pkgdata_SRCDIR): New variable.
20398 (build_env.mk): New target.
20399 (include_DATA): New variable.
20400 (install-local): Install $(include_DATA) files in $(includedir).
20401
20402 2008-11-07 Pavel Roskin <proski@gnu.org>
20403
20404 * gendistlist.sh: Use C locale for sorting to ensure consistent
20405 output on all systems.
20406
20407 * util/grub.d/00_header.in: Remove incorrect space before
20408 "serial".
20409
20410 2008-11-07 Robert Millan <rmh@aybabtu.com>
20411
20412 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
20413 per specification.
20414 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
20415 * loader/multiboot_loader.c (find_multi_boot2_header): New function
20416 (based on find_multi_boot1_header).
20417 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
20418 using find_multi_boot2_header(), and abort if neither Multiboot or
20419 Multiboot headers were found.
20420
20421 2008-11-07 Robert Millan <rmh@aybabtu.com>
20422
20423 Modularize at_keyboard.mod:
20424
20425 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
20426 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
20427 (at_keyboard_mod_LDFLAGS): New variables.
20428
20429 Actual terminal split:
20430
20431 * include/grub/term.h (struct grub_term): Split in ...
20432 (struct grub_term_input): ... this, and ...
20433 (struct grub_term_output): ... this. Update all users.
20434 (grub_term_set_current): Split in ...
20435 (grub_term_set_current_input): ... this, and ...
20436 (grub_term_set_current_output): ... this.
20437 (grub_term_get_current): Split in ...
20438 (grub_term_get_current_input): ... this, and ...
20439 (grub_term_get_current_output): ... this.
20440 (grub_term_register): Split in ...
20441 (grub_term_register_input): ... this, and ...
20442 (grub_term_register_output): ... this.
20443 (grub_term_unregister): Split in ...
20444 (grub_term_unregister_input): ... this, and ...
20445 (grub_term_unregister_output): ... this.
20446 (grub_term_iterate): Split in ...
20447 (grub_term_iterate_input): ... this, and ...
20448 (grub_term_iterate_output): ... this.
20449
20450 * kern/term.c (grub_term_list): Split in ...
20451 (grub_term_list_input): ... this, and ...
20452 (grub_term_list_output): ... this. Update all users.
20453 (grub_cur_term): Split in ...
20454 (grub_cur_term_input): ... this, and ...
20455 (grub_cur_term_output): ... this. Update all users.
20456 (grub_term_set_current): Split in ...
20457 (grub_term_set_current_input): ... this, and ...
20458 (grub_term_set_current_output): ... this.
20459 (grub_term_get_current): Split in ...
20460 (grub_term_get_current_input): ... this, and ...
20461 (grub_term_get_current_output): ... this.
20462 (grub_term_register): Split in ...
20463 (grub_term_register_input): ... this, and ...
20464 (grub_term_register_output): ... this.
20465 (grub_term_unregister): Split in ...
20466 (grub_term_unregister_input): ... this, and ...
20467 (grub_term_unregister_output): ... this.
20468 (grub_term_iterate): Split in ...
20469 (grub_term_iterate_input): ... this, and ...
20470 (grub_term_iterate_output): ... this.
20471
20472 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
20473 a check for input and one for output (and only attempt to get keys
20474 from user when input works).
20475
20476 * util/grub-probe.c (grub_term_get_current): Split in ...
20477 (grub_term_get_current_input): ... this, and ...
20478 (grub_term_get_current_output): ... this.
20479 * util/grub-fstest.c: Likewise.
20480 * util/i386/pc/grub-setup.c: Likewise.
20481 * util/grub-editenv.c: Likewise.
20482
20483 Portability adjustments:
20484
20485 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
20486 `term/i386/pc/at_keyboard.c'.
20487 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
20488 grub_keyboard_controller_init() (now handled by terminal .init).
20489 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
20490 grub_at_keyboard_init().
20491 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
20492 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
20493 at_keyboard.mod via input terminal interface).
20494 * include/grub/i386/coreboot/console.h: Convert into a stub for
20495 `<grub/i386/pc/console.h>'.
20496
20497 Migrate full terminals to new API:
20498
20499 * term/efi/console.c (grub_console_term): Split into ...
20500 (grub_console_term_input): ... this, and ...
20501 (grub_console_term_output): ... this. Update all users.
20502 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
20503 (grub_ofconsole_init): Split into ...
20504 (grub_ofconsole_init_input): ... this, and ...
20505 (grub_ofconsole_init_output): ... this.
20506 (grub_ofconsole_term): Split into ...
20507 (grub_ofconsole_term_input): ... this, and ...
20508 (grub_ofconsole_term_output): ... this. Update all users.
20509 * term/i386/pc/serial.c (grub_serial_term): Split into ...
20510 (grub_serial_term_input): ... this, and ...
20511 (grub_serial_term_output): ... this. Update all users.
20512 * term/i386/pc/console.c (grub_console_term): Split into ...
20513 (grub_console_term_input): ... this, and ...
20514 (grub_console_term_output): ... this. Update all users.
20515 (grub_console_term_input): Only enable it on PC/BIOS platform.
20516 (grub_console_init): Remove grub_keyboard_controller_init() call.
20517
20518 Migrate input terminals to new API:
20519
20520 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
20521 `i386' and `i386/pc' to enable build on x86_64 (this driver is
20522 i386-specific anyway).
20523 (grub_console_checkkey): Rename to ...
20524 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
20525 users.
20526 (grub_keyboard_controller_orig): New variable.
20527 (grub_console_getkey): Rename to ...
20528 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
20529 users.
20530 (grub_keyboard_controller_init): Static-ize. Save original
20531 controller value so that it can be restored ...
20532 (grub_keyboard_controller_fini): ... here (new function).
20533 (grub_at_keyboard_term): New structure.
20534 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
20535 functions.
20536
20537 Migrate output terminals to new API:
20538
20539 * term/i386/pc/vga.c (grub_vga_term): Change type to
20540 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
20541 members. Update all users.
20542 * term/gfxterm.c (grub_video_term): Change type to
20543 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
20544 members. Update all users.
20545 * include/grub/i386/pc/console.h (grub_console_checkkey)
20546 (grub_console_getkey): Do not export (no longer needed by gfxterm,
20547 etc).
20548
20549 Migrate `terminal' command and userland tools to new API:
20550
20551 * commands/terminal.c (grub_cmd_terminal): Split into ...
20552 (grub_cmd_terminal_input): ... this, and ...
20553 (grub_cmd_terminal_output): ... this.
20554 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
20555 `terminal_input' and `terminal_output'.
20556 * util/grub.d/00_header.in: Adjust `terminal' calls to new
20557 `terminal_input' / `terminal_output' API.
20558 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
20559 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
20560 provided ${GRUB_TERMINAL}, convert it).
20561
20562 2008-11-04 Robert Millan <rmh@aybabtu.com>
20563
20564 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
20565 for FreeBSD.
20566 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
20567
20568 2008-11-03 Bean <bean123ch@gmail.com>
20569
20570 * kern/elf.c (grub_elf32_load): Revert to previous code.
20571 (grub_elf64_load): Likewise.
20572
20573 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
20574
20575 2008-11-01 Robert Millan <rmh@aybabtu.com>
20576
20577 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
20578 (TARGET_CPPFLAGS): Likewise.
20579 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
20580
20581 2008-11-01 Carles Pina i Estany <carles@pina.cat>
20582
20583 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
20584
20585 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
20586
20587 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
20588 addition of objects until the code is not going to be able to fail.
20589
20590 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
20591
20592 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
20593 (add a missing NULL check, and correct them by moving the pointer
20594 operations after the actual check).
20595
20596 2008-10-29 Robert Millan <rmh@aybabtu.com>
20597
20598 * util/i386/pc/grub-install.in: Handle empty string as output from
20599 make_system_path_relative_to_its_root().
20600
20601 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
20602
20603 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
20604 circular metadata worst case scenario. If the metadata is circular
20605 then copy the wrap in place.
20606 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
20607 project lib/format_text/layout.h
20608 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
20609
20610 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
20611
20612 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
20613
20614 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
20615
20616 * util/update-grub_lib.in: Mention filename in warning message.
20617
20618 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
20619
20620 * NEWS: Update for rename of update-grub to grub-mkconfig.
20621
20622 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
20623
20624 * util/update-grub_lib.in: Copy to ...
20625 * util/grub-mkconfig_lib.in: ... this. Update all users.
20626 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
20627 * util/update-grub.in: Rename to ...
20628 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
20629 option. Add `--output' option to allow users to specify the generated
20630 configuration file. Default to stdout.
20631 (update_grub_dir): Rename to ...
20632 (grub_mkconfig_dir): ... this.
20633 (grub_cfg): Default to an empty string.
20634 * conf/common.rmk (update-grub): Rename to ...
20635 (grub-mkconfig): ... this.
20636 (update-grub_lib): Copy to ...
20637 (grub-mkconfig_lib): ... this.
20638 (update-grub_SCRIPTS): Copy to ...
20639 (grub-mkconfig_SCRIPTS): ... this. Update all users.
20640 (update-grub_DATA): Rename to ...
20641 (grub-mkconfig_DATA): ... this.
20642
20643 2008-09-28 Robert Millan <rmh@aybabtu.com>
20644
20645 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
20646 to `modified'. Add the real `created' field.
20647 (grub_iso9660_uuid): Use `modified' rather than `created' for
20648 constructing the UUID.
20649
20650 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
20651
20652 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
20653 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
20654
20655 2008-09-28 Bean <bean123ch@gmail.com>
20656
20657 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
20658 Thanks to Christian Franke for finding this bug.
20659
20660 2008-09-25 Robert Millan <rmh@aybabtu.com>
20661
20662 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
20663 instances of grub_util_get_disk_name() (see previous commit).
20664
20665 2008-09-25 Robert Millan <rmh@aybabtu.com>
20666
20667 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
20668 `util/i386/get_disk_name.c'.
20669 * conf/i386-efi.rmk: Likewise.
20670 * conf/x86_64-efi.rmk: Likewise.
20671 * conf/i386-coreboot.rmk: Likewise.
20672 * conf/i386-ieee1275.rmk: Likewise.
20673 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
20674 `util/ieee1275/get_disk_name.c'.
20675 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
20676 * util/ieee1275/get_disk_name.c: Remove file.
20677 * util/i386/get_disk_name.c: Remove file.
20678 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
20679 "hd%d" for device.map entries, rather than using
20680 grub_util_get_disk_name().
20681
20682 2008-09-24 Carles Pina i Estany <carles@pina.cat>
20683
20684 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
20685 warning.
20686 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
20687
20688 2008-09-24 Carles Pina i Estany <carles@pina.cat>
20689
20690 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
20691 Changed to 0x5100.
20692 (GRUB_TERM_PPAGE): Changed to 0x4900.
20693
20694 2008-09-24 Robert Millan <rmh@aybabtu.com>
20695
20696 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
20697 macros (they were i386-pc specific).
20698 * include/grub/sparc64/ieee1275/console.h: Likewise.
20699 * include/grub/efi/console.h: Likewise.
20700
20701 2008-09-22 Bean <bean123ch@gmail.com>
20702
20703 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
20704 resident and in attribute list.
20705
20706 * include/grub/ntfs.h (BMP_LEN): Removed.
20707
20708 2008-09-22 Bean <bean123ch@gmail.com>
20709
20710 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
20711 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
20712
20713 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
20714 error occurs, as grub_disk_open will call grub_disk_close, which will
20715 call p->close (scsi).
20716
20717 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
20718
20719 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
20720 (AC_PREREQ): Bumped to 2.59.
20721 (AC_TRY_COMPILE): Replace obsolete macro with ...
20722 (AC_COMPILE_IFELSE): ... this.
20723 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
20724 (AC_LINK_IFELSE): ... this.
20725
20726 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
20727
20728 * autogen.sh: Add a call to `gendistlist.sh'.
20729
20730 2008-09-19 Christian Franke <franke@computer.org>
20731
20732 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
20733 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
20734 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
20735 Export __enable_execute_stack() to modules.
20736 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
20737 New function.
20738
20739 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
20740
20741 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
20742 Sort the list.
20743
20744 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
20745
20746 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
20747 #include <grub/util/hostdisk.h>.
20748
20749 2008-09-08 Robert Millan <rmh@aybabtu.com>
20750
20751 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
20752 segments when their filesz is zero (grub_file_read() interprets
20753 zero-size as "read until EOF", which results in memory corruption).
20754 Use `lowest_segment' rather than 0 for calculating the current
20755 segment load address.
20756
20757 2008-09-08 Robert Millan <rmh@aybabtu.com>
20758
20759 * util/hostdisk.c (open_device): Replace a grub_util_info() call
20760 with grub_dprintf("hostdisk", ...), as it was so verbose that it
20761 clobbered useful information.
20762
20763 2008-09-08 Robert Millan <rmh@aybabtu.com>
20764
20765 * include/grub/util/biosdisk.h: Move to ...
20766 * include/grub/util/hostdisk.h: ... here. Update all users.
20767 * util/biosdisk.c: Move to ...
20768 * util/hostdisk.c: ... here. Update all users.
20769
20770 2008-09-07 Robert Millan <rmh@aybabtu.com>
20771
20772 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
20773 variables.
20774 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
20775 and length can be stored directly in the `mbi->mmap_addr' and
20776 `mbi->mmap_length' struct fields.
20777
20778 2008-09-07 Robert Millan <rmh@aybabtu.com>
20779
20780 * conf/i386.rmk: New file. Provides declaration for building
20781 `cpuid.mod'.
20782 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
20783 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
20784 variables.
20785 Include `conf/i386.mk'.
20786 * conf/i386-efi.rmk: Likewise.
20787 * conf/x86_64-efi.rmk: Likewise.
20788 * conf/i386-coreboot.rmk: Likewise.
20789 * conf/i386-ieee1275.rmk: Likewise.
20790
20791 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
20792
20793 Based on patch created by Colin D Bennett <colin@gibibit.com>.
20794 Adds optimization support for BGR based modes.
20795
20796 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
20797 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
20798 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
20799 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
20800 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
20801 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
20802 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
20803 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
20804 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
20805 (grub_video_i386_vbeblit_index_index): Likewise.
20806 (grub_video_i386_vbeblit_replace_directN): Added.
20807 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
20808 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
20809 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
20810 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
20811 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
20812 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
20813 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
20814 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
20815 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
20816 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
20817 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
20818 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
20819 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
20820
20821 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
20822 (grub_video_i386_vbefill_R8G8B8): Likewise.
20823 (grub_video_i386_vbefill_index): Likewise.
20824 (grub_video_i386_vbefill_direct32): Added.
20825 (grub_video_i386_vbefill_direct24): Likewise.
20826 (grub_video_i386_vbefill_direct16): Likewise.
20827 (grub_video_i386_vbefill_direct8): Likewise.
20828
20829 * include/grub/video.h (grub_video_blit_format): Removed
20830 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
20831 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
20832 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
20833 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
20834 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
20835
20836 * video/video.c (grub_video_get_blit_format): Updated to use new
20837 blit formats. Added handling for 16 bit color modes.
20838
20839 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
20840 fillers.
20841 (common_blitter): Updated to use new blitters.
20842
20843 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
20844 Removed.
20845 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
20846 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
20847 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
20848 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
20849 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
20850 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
20851 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
20852 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
20853 (grub_video_i386_vbeblit_index_index): Likewise.
20854 (grub_video_i386_vbeblit_replace_directN): Added.
20855 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
20856 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
20857 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
20858 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
20859 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
20860 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
20861 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
20862 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
20863 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
20864 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
20865 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
20866 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
20867 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
20868
20869 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
20870 (grub_video_i386_vbefill_R8G8B8): Likewise.
20871 (grub_video_i386_vbefill_index): Likewise.
20872 (grub_video_i386_vbefill_direct32): Added.
20873 (grub_video_i386_vbefill_direct24): Likewise.
20874 (grub_video_i386_vbefill_direct16): Likewise.
20875 (grub_video_i386_vbefill_direct8): Likewise.
20876
20877 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
20878 types.
20879
20880 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
20881 types.
20882
20883 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
20884 blitter types.
20885
20886 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
20887 types.
20888
20889 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
20890
20891 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
20892 RAID level 1.
20893
20894 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
20895
20896 * fs/iso9660.c (grub_iso9660_date): New structure.
20897 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
20898 (grub_iso9660_uuid): New function.
20899
20900 2008-09-05 Bean <bean123ch@gmail.com>
20901
20902 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
20903
20904 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
20905 insensitive bit for names in Win32 and Win32 & DOS namespace.
20906
20907 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
20908
20909 * include/grub/types.h (LONG_MAX): Likewise.
20910
20911 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
20912
20913 * util/getroot.c: Include <config.h>.
20914 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
20915 add support for /dev/md/N devices and handle LVM double dash escaping.
20916
20917 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
20918
20919 * config.guess: Update to latest version from config git.
20920 * config.sub: Likewise.
20921
20922 2008-09-03 Robert Millan <rmh@aybabtu.com>
20923
20924 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
20925 `disk->total_sectors'.
20926
20927 2008-09-01 Colin D Bennett <colin@gibibit.com>
20928
20929 * include/grub/normal.h: Fixed incorrect comment for
20930 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
20931
20932 2008-09-01 Colin D Bennett <colin@gibibit.com>
20933
20934 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
20935 values with defines.
20936
20937 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
20938 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
20939 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
20940 (GRUB_VBE_MODEATTR_COLOR): Likewise.
20941 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
20942 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
20943 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
20944 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
20945 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
20946 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
20947 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
20948 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
20949 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
20950 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
20951 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
20952 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
20953 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
20954 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
20955 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
20956
20957 2008-08-31 Robert Millan <rmh@aybabtu.com>
20958
20959 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
20960 declaration.
20961 (grub_multiboot): Fix a few warnings.
20962
20963 2008-08-31 Robert Millan <rmh@aybabtu.com>
20964
20965 * loader/i386/pc/multiboot.c: Update comment not to say that
20966 boot_device support is unimplemented.
20967
20968 2008-08-31 Robert Millan <rmh@aybabtu.com>
20969
20970 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
20971 or memory map support are unimplemented.
20972
20973 2008-08-31 Colin D Bennett <colin@gibibit.com>
20974
20975 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
20976
20977 2008-08-31 Colin D Bennett <colin@gibibit.com>
20978
20979 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
20980 total video memory in 'vbeinfo' output; show color format details for
20981 each video mode.
20982
20983 2008-08-30 Pavel Roskin <proski@gnu.org>
20984
20985 * util/genmoddep.c: Remove for real this time.
20986 * DISTLIST: Remove util/genmoddep.c.
20987
20988 2008-08-30 Robert Millan <rmh@aybabtu.com>
20989
20990 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
20991 as required by Multiboot spec (it was already 4-byte aligned, but
20992 only by chance).
20993
20994 2008-08-29 Pavel Roskin <proski@gnu.org>
20995
20996 * kern/powerpc/ieee1275/crt0.S: Rename to ...
20997 * kern/powerpc/ieee1275/startup.S: ... this.
20998 * conf/powerpc-ieee1275.rmk: Adjust for the above.
20999 * DISTLIST: Likewise.
21000
21001 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
21002 grub/cpu/kernel.h. Add start label for consistency with other
21003 platforms. Add grub_prefix immediately after start. Add jump
21004 to the code after grub_prefix.
21005 * include/grub/powerpc/kernel.h: Provide valid values for
21006 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
21007
21008 2008-08-29 Bean <bean123ch@gmail.com>
21009
21010 * configure.ac: Change host_os to cygwin for mingw.
21011 (asprintf): New check for function.
21012
21013 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
21014 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
21015
21016 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
21017 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
21018 sync, sleep and grub_util_get_disk_size for mingw.
21019
21020 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
21021 to get size in mingw.
21022 (open_device): Use flag O_BINARY if it's defined.
21023 (find_root_device): Add dummy code for mingw.
21024
21025 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
21026 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
21027 (get_scsi_disk_name): Return 0 for mingw.
21028
21029 * util/hostfs.c: #include <grub/util/misc.h>.
21030 (grub_hostfs_open): Use "rb" flag to open file, use
21031 grub_util_get_disk_size to get disk size for mingw.
21032
21033 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
21034 (asprintf): New function if HAVE_ASPRINTF is not set.
21035 (sync): New function for mingw.
21036 (sleep): Likewise.
21037 (grub_util_get_disk_size): Likewise.
21038
21039 2008-08-28 Pavel Roskin <proski@gnu.org>
21040
21041 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
21042 kern/time.c.
21043
21044 2008-08-28 Robert Millan <rmh@aybabtu.com>
21045
21046 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
21047
21048 2008-08-28 Robert Millan <rmh@aybabtu.com>
21049
21050 Change find_grub_drive() syntax so it doesn't prevent it from
21051 detecting NULL names as errors.
21052
21053 * util/biosdisk.c (find_grub_drive): Move free slot search code
21054 from here ...
21055 (find_free_slot): ... to here.
21056 (read_device_map): Use find_free_slot() to search for free slots.
21057
21058 2008-08-27 Marco Gerards <marco@gnu.org>
21059
21060 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
21061 (scsi_mod_SOURCES): New variable.
21062 (scsi_mod_CFLAGS): Likewise
21063 (scsi_mod_LDFLAGS): Likewise.
21064
21065 * disk/scsi.c: New file.
21066
21067 * include/grub/scsi.h: Likewise.
21068
21069 * include/grub/scsicmd.h: Likewise.
21070
21071 * disk/ata.c: Include <grub/scsi.h>.
21072 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
21073 instead.
21074 (grub_ata_iterate): Skip ATAPI devices.
21075 (grub_ata_open): Only handle ATAPI devices.
21076 (struct grub_atapi_read): Removed.
21077 (grub_atapi_readsector): Likewise.
21078 (grub_ata_read): No longer handle ATAPI devices.
21079 (grub_ata_write): Likewise.
21080 (grub_atapi_iterate): New function.
21081 (grub_atapi_read): Likewise.
21082 (grub_atapi_write): Likewise.
21083 (grub_atapi_open): Likewise.
21084 (grub_atapi_close): Likewise.
21085 (grub_atapi_dev): New variable.
21086 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
21087 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
21088
21089 * include/grub/disk.h (enum grub_disk_dev_id): Add
21090 `GRUB_DISK_DEVICE_SCSI_ID'.
21091
21092 2008-08-26 Robert Millan <rmh@aybabtu.com>
21093
21094 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
21095 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
21096 descriptive.
21097
21098 2008-08-23 Bean <bean123ch@gmail.com>
21099
21100 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
21101 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
21102 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
21103 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
21104 dm_nv.mod.
21105 (raid5rec_mod_SOURCES): New macro.
21106 (raid5rec_mod_CFLAGS): Likewise.
21107 (raid5rec_mod_LDFLAGS): Likewise.
21108 (raid6rec_mod_SOURCES): Likewise.
21109 (raid6rec_mod_CFLAGS): Likewise.
21110 (raid6rec_mod_LDFLAGS): Likewise.
21111 (mdraid_mod_SOURCES): Likewise.
21112 (mdraid_mod_CFLAGS): Likewise.
21113 (mdraid_mod_LDFLAGS): Likewise.
21114 (dm_nv_mod_SOURCES): Likewise.
21115 (dm_nv_mod_CFLAGS): Likewise.
21116 (dm_nv_mod_LDFLAGS): Likewise.
21117
21118 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
21119 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
21120 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
21121
21122 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
21123 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
21124
21125 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21126
21127 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21128
21129 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21130
21131 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21132
21133 * disk/raid5_recover.c: New file.
21134
21135 * disk/raid6_recover.c: Likewise.
21136
21137 * disk/mdraid_linux.c: Likewise.
21138
21139 * disk/dmraid_nvidia.c: Likewise.
21140
21141 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
21142 ULONG_MAX.
21143
21144 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
21145 calculate the size of raid device.
21146 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
21147 different layout of raid5.
21148 (grub_raid_scan_device): Remove code specific to mdraid.
21149 (grub_raid_list): New variable.
21150 (free_array): New function.
21151 (grub_raid_register): Likewise.
21152 (grub_raid_unregister): Likewise.
21153 (grub_raid_rescan): Likewise.
21154 (GRUB_MOD_INIT): Don't iterate device here.
21155 (GRUB_MOD_FINI): Use free_array to release resource.
21156
21157 * include/grub/raid.h: Remove macro and structure specific to mdraid.
21158 (grub_raid5_recover_func_t): New function variable type.
21159 (grub_raid6_recover_func_t): Likewise.
21160 (grub_raid5_recover_func): New variable.
21161 (grub_raid6_recover_func): Likewise.
21162 (grub_raid_register): New function.
21163 (grub_raid_unregister): Likewise.
21164 (grub_raid_rescan): Likewise.
21165 (grub_raid_block_xor): Likewise.
21166
21167 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
21168 (CMD_CRC): New macro.
21169 (part): Removed.
21170 (read_file): Handle device as well as file.
21171 (cmd_crc): New function.
21172 (fstest): Handle multiple disks.
21173 (options): Remove part, raw and long, add root and diskcount.
21174 (usage): Add crc, remove -p, -r, -l, add -r and -c.
21175 (main): Find the first non option entry and ignore subsequent options,
21176 add handling for the new options, support multiple disks.
21177
21178 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
21179
21180 2008-08-23 Bean <bean123ch@gmail.com>
21181
21182 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
21183
21184 * genfslist.sh: Ignore kernel.mod.
21185
21186 * genpartmaplist.sh: Likewise.
21187
21188 2008-08-23 Robert Millan <rmh@aybabtu.com>
21189
21190 * util/getroot.c (find_root_device): Skip anything that starts with
21191 a dot, not just directories. This avoids things like /dev/.tmp.md0.
21192
21193 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
21194
21195 * util/update-grub.in (GRUB_GFXMODE): Export variable.
21196 * util/grub.d/00_header.in: Allow the administrator to change default
21197 gfxmode via ${GRUB_GFXMODE}.
21198
21199 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
21200
21201 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
21202
21203 2008-08-21 Robert Millan <rmh@aybabtu.com>
21204
21205 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
21206 loader.
21207 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
21208 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
21209
21210 2008-08-20 Carles Pina i Estany <carles@pina.cat>
21211
21212 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
21213 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
21214
21215 2008-08-19 Robert Millan <rmh@aybabtu.com>
21216
21217 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
21218 (struct grub_virtual_screen): Remove `cursor_color'.
21219 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
21220 initialization.
21221 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
21222
21223 2008-08-18 Robert Millan <rmh@aybabtu.com>
21224
21225 Unify (identical) linux_normal.c files.
21226 * loader/i386/efi/linux_normal.c: Move from here ...
21227 * loader/linux_normal.c: ... to here. Update all users.
21228 * loader/i386/pc/linux_normal.c: Delete. Update all users.
21229 * loader/i386/ieee1275/linux_normal.c: Likewise.
21230
21231 2008-08-18 Robert Millan <rmh@aybabtu.com>
21232
21233 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
21234 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
21235 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
21236 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
21237 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
21238 New macros.
21239 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
21240 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
21241 (GRUB_LINUX_CL_END_OFFSET): ... to here.
21242 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
21243 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
21244 (GRUB_EFI_CL_END_OFFSET): Rename to ...
21245 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
21246 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
21247 Initialize `params->video_cursor_x' and `params->video_cursor_y'
21248 portably using grub_getxy().
21249 Replace `-EFI' with `-bzImage' in boot message.
21250
21251 2008-08-17 Robert Millan <rmh@aybabtu.com>
21252
21253 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
21254
21255 2008-08-17 Robert Millan <rmh@aybabtu.com>
21256
21257 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
21258
21259 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
21260 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
21261 (grub_machine_mmap_iterate): New function declaration.
21262 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
21263 structure.
21264 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
21265 macros.
21266
21267 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
21268 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
21269 Move e820 parsing from here ...
21270 * kern/i386/pc/mmap.c: New file.
21271 (grub_machine_mmap_iterate): ... to here.
21272
21273 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
21274 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
21275 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
21276 (grub_available_iterate): Redeclare to return `void', and redeclare
21277 its hook to use grub_uint64_t as addr and size parameters, and rename
21278 to ...
21279 (grub_machine_mmap_iterate): ... this. Update all users.
21280
21281 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
21282 to make it more readable. Rename to ...
21283 (grub_machine_mmap_iterate): ... this.
21284
21285 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
21286 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
21287 (grub_multiboot): Allocate an extra region after the payload, and fill
21288 it with a Multiboot memory map. Adjust a.out loader to calculate size
21289 with the extra space.
21290 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
21291 with the extra space.
21292
21293 2008-08-17 Carles Pina i Estany <carles@pina.cat>
21294
21295 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
21296
21297 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
21298
21299 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
21300 mdate-sh to the list `find' searches for.
21301 * DISTLIST: Regenerated.
21302
21303 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
21304
21305 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
21306 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
21307 genmoddep.awk, gensymlist.sh.in.
21308 (DISTDIRS): Add bus, docs, hook, lib.
21309 * DISTLIST: Regenerated.
21310 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
21311
21312 2008-08-16 Robert Millan <rmh@aybabtu.com>
21313
21314 * disk/raid.c (grub_raid_init): Handle/report errors set by
21315 grub_device_iterate().
21316 * disk/lvm.c (grub_lvm_init): Likewise.
21317
21318 2008-08-15 Bean <bean123ch@gmail.com>
21319
21320 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
21321 and datehook.mod.
21322 (datetime_mod_SOURCES): New macro.
21323 (datetime_mod_CFLAGS): Likewise.
21324 (datetime_mod_LDFLAGS): Likewise.
21325 (date_mod_SOURCES): Likewise.
21326 (date_mod_CFLAGS): Likewise.
21327 (date_mod_LDFLAGS): Likewise.
21328 (datehook_mod_SOURCES): Likewise.
21329 (datehook_mod_CFLAGS): Likewise.
21330 (datehook_mod_LDFLAGS): Likewise.
21331
21332 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
21333 and datehook.mod.
21334 (datetime_mod_SOURCES): New macro.
21335 (datetime_mod_CFLAGS): Likewise.
21336 (datetime_mod_LDFLAGS): Likewise.
21337 (date_mod_SOURCES): Likewise.
21338 (date_mod_CFLAGS): Likewise.
21339 (date_mod_LDFLAGS): Likewise.
21340 (datehook_mod_SOURCES): Likewise.
21341 (datehook_mod_CFLAGS): Likewise.
21342 (datehook_mod_LDFLAGS): Likewise.
21343
21344 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
21345 and datehook.mod.
21346 (datetime_mod_SOURCES): New macro.
21347 (datetime_mod_CFLAGS): Likewise.
21348 (datetime_mod_LDFLAGS): Likewise.
21349 (date_mod_SOURCES): Likewise.
21350 (date_mod_CFLAGS): Likewise.
21351 (date_mod_LDFLAGS): Likewise.
21352 (datehook_mod_SOURCES): Likewise.
21353 (datehook_mod_CFLAGS): Likewise.
21354 (datehook_mod_LDFLAGS): Likewise.
21355
21356 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
21357 and datehook.mod.
21358 (datetime_mod_SOURCES): New macro.
21359 (datetime_mod_CFLAGS): Likewise.
21360 (datetime_mod_LDFLAGS): Likewise.
21361 (date_mod_SOURCES): Likewise.
21362 (date_mod_CFLAGS): Likewise.
21363 (date_mod_LDFLAGS): Likewise.
21364 (datehook_mod_SOURCES): Likewise.
21365 (datehook_mod_CFLAGS): Likewise.
21366 (datehook_mod_LDFLAGS): Likewise.
21367
21368 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
21369 and datehook.mod.
21370 (datetime_mod_SOURCES): New macro.
21371 (datetime_mod_CFLAGS): Likewise.
21372 (datetime_mod_LDFLAGS): Likewise.
21373 (date_mod_SOURCES): Likewise.
21374 (date_mod_CFLAGS): Likewise.
21375 (date_mod_LDFLAGS): Likewise.
21376 (datehook_mod_SOURCES): Likewise.
21377 (datehook_mod_CFLAGS): Likewise.
21378 (datehook_mod_LDFLAGS): Likewise.
21379
21380 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
21381
21382 * commands/date.c: New file.
21383
21384 * hook/datehook.c: Likewise.
21385
21386 * include/grub/lib/datetime.h: Likewise.
21387
21388 * include/grub/i386/cmos.h: Likewise.
21389
21390 * lib/datetime.c: Likewise.
21391
21392 * lib/i386/datetime.c: Likewise.
21393
21394 * lib/efi/datetime.c: Likewise.
21395
21396 2008-08-14 Robert Millan <rmh@aybabtu.com>
21397
21398 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
21399 (grub_mkelfimage_SOURCES): New variable.
21400 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
21401
21402 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
21403 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
21404 * conf/powerpc-ieee1275.rmk: Likewise.
21405 * conf/i386-ieee1275.rmk: Likewise.
21406
21407 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
21408 * kern/i386/coreboot/init.c: Likewise.
21409
21410 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
21411 with `<grub/cpu/kernel.h>'.
21412 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
21413 to ...
21414 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
21415 * kern/i386/coreboot/startup.S: Likewise.
21416
21417 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
21418 (GRUB_MOD_GAP): Remove.
21419 * include/grub/powerpc/kernel.h: New file.
21420 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
21421 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
21422 * include/grub/i386/kernel.h: New file.
21423 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
21424 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
21425 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
21426
21427 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
21428 `grub-mkelfimage'.
21429 Use --directory when invoking grub_mkimage.
21430
21431 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
21432 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
21433 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
21434 and GRUB_KERNEL_CPU_PREFIX.
21435
21436 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
21437
21438 * include/grub/err.h (grub_err_printf): New function prototype.
21439 * util/misc.c (grub_err_printf): New function.
21440 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
21441 grub_printf.
21442 * kern/err.c (grub_print_error): Use grub_err_printf.
21443
21444 2008-08-13 Robert Millan <rmh@aybabtu.com>
21445
21446 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
21447
21448 2008-08-13 Robert Millan <rmh@aybabtu.com>
21449
21450 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
21451 boot entry.
21452
21453 2008-08-12 Robert Millan <rmh@aybabtu.com>
21454
21455 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
21456 of the relocation code from here ...
21457 (grub_multiboot): ... to here.
21458 (forward_relocator, backward_relocator): Move from here ...
21459 * kern/i386/loader.S (grub_multiboot_forward_relocator)
21460 (grub_multiboot_backward_relocator): ... to here.
21461 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
21462 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
21463 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
21464 (grub_multiboot_forward_relocator_end)
21465 (grub_multiboot_backward_relocator)
21466 (grub_multiboot_backward_relocator_end): New variables.
21467
21468 2008-08-12 Bean <bean123ch@gmail.com>
21469
21470 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
21471
21472 2008-08-11 Robert Millan <rmh@aybabtu.com>
21473
21474 * kern/i386/linuxbios/startup.S: Move from here ...
21475 * kern/i386/coreboot/startup.S: ... to here.
21476
21477 * kern/i386/linuxbios/init.c: Move from here ...
21478 * kern/i386/coreboot/init.c: ... to here.
21479
21480 * kern/i386/linuxbios/table.c: Move from here ...
21481 * kern/i386/coreboot/mmap.c: ... to here.
21482
21483 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
21484
21485 2008-08-11 Robert Millan <rmh@aybabtu.com>
21486
21487 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
21488 errors. Leave it to the upper layer to handle them.
21489
21490 2008-08-09 Christian Franke <franke@computer.org>
21491
21492 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
21493 * conf/common.rmk: Install `grub-pe2elf' only if requested.
21494 Install `grub.d/10_windows' only on Cygwin.
21495 * configure.ac: Add subst of `target_os'.
21496 Check `target_os' also before setting TARGET_OBJ2ELF.
21497 Add `--enable-grub-pe2elf'.
21498
21499 2008-08-08 Robert Millan <rmh@aybabtu.com>
21500
21501 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
21502 (grub_last_time): Change type to grub_uint64_t.
21503 (grub_disk_open): Migrate code from to using grub_get_time_ms().
21504 (grub_disk_close): Likewise.
21505
21506 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
21507 (run_menu): Migrate code from to using grub_get_time_ms().
21508
21509 * util/misc.c (grub_get_time_ms): New function.
21510
21511 2008-08-08 Marco Gerards <marco@gnu.org>
21512
21513 * disk/ata.c (grub_ata_regget): Change return type to
21514 `grub_uint8_t'.
21515 (grub_ata_regget2): Likewise.
21516 (grub_ata_wait_status): New function.
21517 (grub_ata_wait_busy): Removed function, updated all users to use
21518 `grub_ata_wait_status'.
21519 (grub_ata_wait_drq): Likewise.
21520 (grub_ata_cmd): New function.
21521 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
21522 error handling.
21523 (grub_ata_pio_write): Add error handling.
21524 (grub_atapi_identify): Likewise.
21525 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
21526 handling.
21527 (grub_ata_identify): Use `grub_ata_cmd' and improve error
21528 handling. Actually use the detected registers. Reorder the
21529 detection logic such that it is easier to read.
21530 (grub_ata_pciinit): Do not assign the same ID to each controller.
21531 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
21532 handling.
21533 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
21534
21535 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
21536
21537 2008-08-08 Marco Gerards <marco@gnu.org>
21538
21539 * NEWS: Update.
21540
21541 2008-08-07 Bean <bean123ch@gmail.com>
21542
21543 * include/grub/x86_64/pci.h: New file.
21544
21545 2008-08-07 Christian Franke <franke@computer.org>
21546
21547 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
21548 (TIMER2_GATE): Likewise.
21549 (grub_pit_wait): Add enable/disable of the timer2 gate
21550 bit of port 0x61. This fixes a possible infinite loop.
21551
21552 2008-08-07 Bean <bean123ch@gmail.com>
21553
21554 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
21555 kern/i386/tsc.c and kern/i386/pit.c.
21556
21557 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
21558 x86_64 platform.
21559
21560 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
21561 <grub/i386/tsc.h>.
21562
21563 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
21564
21565 2008-08-07 Bean <bean123ch@gmail.com>
21566
21567 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
21568
21569 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
21570
21571 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
21572 multiple inclusion. Add #include <grub/types.h>.
21573
21574 2008-08-06 Christian Franke <franke@computer.org>
21575
21576 * conf/common.rmk: Build and install `10_windows'.
21577 * util/grub.d/10_windows.in: New script.
21578
21579 2008-08-06 Pavel Roskin <proski@gnu.org>
21580
21581 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
21582
21583 2008-08-06 Robert Millan <rmh@aybabtu.com>
21584
21585 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
21586 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
21587
21588 2008-08-06 Bean <bean123ch@gmail.com>
21589
21590 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
21591 (grub_pxefs_fs_int): Remove dummy definition.
21592 (grub_pxefs_open): Use data->block_size to store the current block
21593 size setting.
21594 (grub_pxefs_read): Use block size stored in data->block_size. As the
21595 value of grub_pxe_blksize can be changed after the file is opened.
21596
21597 2008-08-06 Bean <bean123ch@gmail.com>
21598
21599 * fs/i386/pc/pxe.c (curr_file): new variable.
21600 (grub_pxefs_open): Simply the handling of pxe file system. Don't
21601 require the dummy internal file system anymore.
21602 (grub_pxefs_read): Removed.
21603 (grub_pxefs_close): Likewise.
21604 (grub_pxefs_fs_int): Likewise.
21605 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
21606 connection when we switch file.
21607 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
21608
21609 2008-08-06 Robert Millan <rmh@aybabtu.com>
21610
21611 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
21612 `halt.mod'.
21613 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
21614 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
21615
21616 * kern/i386/halt.c: New file.
21617 * kern/i386/reboot.c: Likewise.
21618 * include/grub/i386/reboot.h: Likewise.
21619 * include/grub/i386/halt.h: Likewise.
21620
21621 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
21622 Include `<grub/cpu/halt.h>'.
21623 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
21624 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
21625
21626 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
21627 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
21628 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
21629 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
21630 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
21631 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
21632 from here ...
21633 * include/grub/i386/at_keyboard.h: ... to here.
21634
21635 2008-08-05 Robert Millan <rmh@aybabtu.com>
21636
21637 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
21638 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
21639 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
21640 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
21641 `kern/generic/millisleep.c'.
21642
21643 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
21644 instead of grub_get_rtc().
21645 (grub_tsc_init): Initialize `tsc_boot_time'.
21646
21647 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
21648 (grub_machine_init): Use grub_tsc_init() rather than
21649 installing an RTC-based handler via grub_install_get_time_ms().
21650
21651 * kern/i386/pit.c: New file.
21652 * include/grub/i386/pit.h: Likewise.
21653
21654 2008-08-05 Bean <bean123ch@gmail.com>
21655
21656 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
21657
21658 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
21659 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
21660 (pxe_mod_SOURCES): New macro.
21661 (pxe_mod_CFLAGS): Likewise.
21662 (pxe_mod_LDFLAGS): Likewise.
21663 (pxecmd_mod_SOURCES): Likewise.
21664 (pxecmd_mod_CFLAGS): Likewise.
21665 (pxecmd_mod_LDFLAGS): Likewise.
21666
21667 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
21668 (grub_pxe_call): Likewise.
21669
21670 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
21671
21672 * commands/i386/pc/pxecmd.c: New file.
21673
21674 * fs/i386/pc/pxe.c: Likewise.
21675
21676 * include/grub/i386/pc/pxe.h: Likewise.
21677
21678 2008-08-05 Bean <bean123ch@gmail.com>
21679
21680 * util/console.c (grub_console_cur_color): New variable.
21681 (grub_console_standard_color): Likewise.
21682 (grub_console_normal_color): Likewise.
21683 (grub_console_highlight_color): Likewise.
21684 (color_map): Likewise.
21685 (use_color): Likewise.
21686 (NUM_COLORS): New macro.
21687 (grub_ncurses_setcolorstate): Handle color properly.
21688 (grub_ncurses_setcolor): Don't change color here, just remember the
21689 settings, color will be set in grub_ncurses_setcolorstate.
21690 (grub_ncurses_getcolor): New function.
21691 (grub_ncurses_init): Initialize color pairs.
21692 (grub_ncurses_term): New member grub_ncurses_getcolor.
21693
21694 2008-08-05 Colin D Bennett <colin@gibibit.com>
21695
21696 High resolution timer support. Implemented for x86 CPUs using TSC.
21697 Extracted generic grub_millisleep() so it's linked in only as needed.
21698 This requires a Pentium compatible CPU; if the RDTSC instruction is
21699 not supported, then it falls back on the generic grub_get_time_ms()
21700 implementation that uses the machine's RTC.
21701
21702 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
21703 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
21704 `kern/generic/millisleep.c'.
21705
21706 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
21707 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
21708
21709 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
21710 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
21711
21712 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
21713
21714 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
21715 `kern/generic/millisleep.c'.
21716
21717 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
21718
21719 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
21720
21721 * kern/generic/rtc_get_time_ms.c: New file.
21722
21723 * kern/generic/millisleep.c: New file.
21724
21725 * kern/misc.c: Don't include
21726 <kern/time.h> anymore.
21727 (grub_millisleep_generic): Removed.
21728
21729 * commands/sleep.c (grub_interruptible_millisleep): Uses
21730 grub_get_time_ms() instead of grub_get_rtc().
21731
21732 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
21733 function.
21734 (grub_cpu_is_cpuid_supported): New inline function.
21735 (grub_cpu_is_tsc_supported): New inline function.
21736 (grub_tsc_init): New function prototype.
21737 (grub_tsc_get_time_ms): New function prototype.
21738
21739 * kern/i386/tsc.c (grub_get_time_ms): New file.
21740
21741 * include/grub/time.h: Include <grub/types.h.
21742 (grub_millisleep_generic): Removed.
21743 (grub_get_time_ms): New prototype.
21744 (grub_install_get_time_ms): New prototype.
21745 (grub_rtc_get_time_ms): New prototype.
21746
21747 * kern/time.c (grub_get_time_ms): New function.
21748 (grub_install_get_time_ms): New function.
21749
21750 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
21751 <grub/time.h> anymore.
21752 (grub_millisleep): Removed.
21753 (grub_machine_init): Call grub_tsc_init.
21754
21755 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
21756 get_time_ms() implementation.
21757
21758 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
21759 (ieee1275_get_time_ms): New function.
21760 (grub_machine_init): Install get_time_ms() implementation.
21761
21762 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
21763 (grub_machine_init): Call grub_tsc_init().
21764 (grub_millisleep): Removed.
21765
21766 * kern/ieee1275/init.c (grub_millisleep): Removed.
21767 (grub_machine_init): Install ieee1275_get_time_ms()
21768 implementation.
21769 (ieee1275_get_time_ms): New function.
21770 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
21771 real work.
21772
21773 2008-08-05 Marco Gerards <marco@gnu.org>
21774
21775 * disk/ata.c: Include <grub/pci.h>.
21776 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
21777 (grub_ata_initialize): Rewritten.
21778 (grub_ata_device_initialize): New function.
21779
21780 2008-08-04 Pavel Roskin <proski@gnu.org>
21781
21782 * kern/main.c: Include grub/mm.h.
21783
21784 2008-08-04 Robert Millan <rmh@aybabtu.com>
21785
21786 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
21787 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
21788 corruption problem).
21789
21790 2008-08-04 Robert Millan <rmh@aybabtu.com>
21791
21792 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
21793 warnings introduced in my last commit.
21794
21795 2008-08-03 Robert Millan <rmh@aybabtu.com>
21796
21797 Make PCI available on all i386 architectures.
21798
21799 * include/grub/i386/pc/pci.h: Move from here ...
21800 * include/grub/i386/pci.h: ... to here.
21801
21802 * include/grub/i386/pc/pci.h: Remove.
21803 * include/grub/i386/efi/pci.h: Remove.
21804 * include/grub/x86_64/efi/pci.h: Remove.
21805
21806 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
21807 `<grub/cpu/pci.h>'.
21808
21809 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
21810 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
21811 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
21812
21813 * conf/i386-ieee1275.rmk: Likewise.
21814
21815 2008-08-03 Robert Millan <rmh@aybabtu.com>
21816
21817 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
21818 (grub_console_setcursor): Make it possible to set cursor off.
21819
21820 2008-08-03 Robert Millan <rmh@aybabtu.com>
21821
21822 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
21823 of modules instead of assuming which platform provides what.
21824 * util/update-grub.in: Likewise.
21825
21826 2008-08-03 Robert Millan <rmh@aybabtu.com>
21827
21828 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
21829 instead of `grub_install_dos_part' to determine whether a drive needs
21830 to be prepended to prefix (`grub_install_dos_part' is not reliable,
21831 because it can be overridden when loading GRUB via Multiboot).
21832
21833 2008-08-02 Robert Millan <rmh@aybabtu.com>
21834
21835 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
21836
21837 2008-08-02 Robert Millan <rmh@aybabtu.com>
21838
21839 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
21840 of informational grub_dprintf() calls.
21841
21842 2008-08-02 Robert Millan <rmh@aybabtu.com>
21843
21844 * disk/memdisk.c (memdisk_size): Don't initialize.
21845 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
21846
21847 * include/grub/i386/pc/kernel.h
21848 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
21849 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
21850 (grub_memdisk_image_size, grub_arch_memdisk_addr)
21851 (grub_arch_memdisk_size): Remove.
21852
21853 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
21854 field (was only used to transfer a constant). Add `type' field to
21855 support multiple module types.
21856 (grub_module_iterate): New function.
21857
21858 * kern/device.c (grub_device_open): Do not hide error messages
21859 when grub_disk_open() fails. Use grub_print_error() instead.
21860
21861 * kern/i386/pc/init.c (grub_arch_modules_addr)
21862 (grub_arch_memdisk_size): Remove functions.
21863 (grub_arch_modules_addr): Return the module address in high memory
21864 (now that it isn't copied anymore).
21865
21866 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
21867 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
21868 decompression routine (grub_total_module_size already includes that
21869 now). Don't copy modules back to low memory.
21870
21871 * kern/main.c: Include `<grub/mm.h>'.
21872 (grub_load_modules): Split out (and use) ...
21873 (grub_module_iterate): ... this function, which iterates through
21874 module objects and runs a hook.
21875 Comment out grub_mm_init_region() call, as it would cause non-ELF
21876 modules to be overwritten.
21877
21878 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
21879 the memdisk image in its own region, make it part of the module list.
21880 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
21881 (main): Parse --memdisk|-m option, and pass user-provided path as
21882 parameter to generate_image().
21883 (add_segments): Pass `memdisk_path' down to load_modules().
21884 (load_modules): Embed memdisk image in module section when requested.
21885 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
21886 `header.type' instead of `header.offset'.
21887
21888 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
21889 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
21890 (memdisk_mod_LDFLAGS): New variables.
21891 * conf/i386-coreboot.rmk: Likewise.
21892 * conf/i386-ieee1275.rmk: Likewise.
21893
21894 2008-08-02 Robert Millan <rmh@aybabtu.com>
21895
21896 * loader/i386/pc/multiboot.c (playground, forward_relocator)
21897 (backward_relocator): New variables. Used to allocate and relocate
21898 the payload, respectively.
21899 (grub_multiboot_load_elf32): Load into heap instead of requested
21900 address, install the appropriate relocator code in each bound of
21901 the payload, and set the entry point such that
21902 grub_multiboot_real_boot() will jump to one of them.
21903
21904 * kern/i386/loader.S (grub_multiboot_payload_size)
21905 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
21906 (grub_multiboot_payload_entry_offset): New variables.
21907 (grub_multiboot_real_boot): Set cpu context to what the relocator
21908 expects, and jump to the relocator instead of the payload.
21909
21910 * include/grub/i386/loader.h (grub_multiboot_payload_size)
21911 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
21912 (grub_multiboot_payload_entry_offset): Export.
21913
21914 2008-08-01 Bean <bean123ch@gmail.com>
21915
21916 * normal/menu_entry.c (editor_getline): Don't return the original
21917 string as result, as it will be released by lexer once it has done
21918 using it.
21919
21920 2008-08-01 Robert Millan <rmh@aybabtu.com>
21921
21922 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
21923 within menuentries, not before them.
21924 util/grub.d/10_hurd.in: Likewise.
21925
21926 2008-08-01 Bean <bean123ch@gmail.com>
21927
21928 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
21929 (bufio_mod_SOURCES): New macro.
21930 (bufio_mod_CFLAGS): Likewise.
21931 (bufio_mod_LDFLAGS): Likewise.
21932
21933 * include/grub/bufio.h: New file.
21934
21935 * io/bufio.c: Likewise.
21936
21937 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
21938 (grub_video_reader_png): Use grub_buffile_open to open file.
21939
21940 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
21941 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
21942
21943 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
21944 (grub_video_reader_tga): Use grub_buffile_open to open file.
21945
21946 * font/manager.c: Include <grub/bufio.h>.
21947 (add_font): Use grub_buffile_open to open file.
21948
21949 2008-07-31 Robert Millan <rmh@aybabtu.com>
21950
21951 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
21952 ELF segments, use a macro for arbitrarily accessing any of them instead
21953 of preparing a pointer that allows access to one at a time.
21954 (grub_multiboot_load_elf64): Likewise.
21955
21956 2008-07-31 Bean <bean123ch@gmail.com>
21957
21958 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
21959 GRUB_KERNEL_MACHINE_DATA_END.
21960
21961 2008-07-30 Robert Millan <rmh@aybabtu.com>
21962
21963 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
21964 Increase from 0x50 to 0x60.
21965 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
21966 use UUIDs to identify the root drive for them. If that's not
21967 possible, abort.
21968 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
21969 check, for cross-disk installs.
21970
21971 2008-07-30 Robert Millan <rmh@aybabtu.com>
21972
21973 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
21974 is non-empty, use it to set the `prefix' environment variable instead
21975 of the usual approach.
21976 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
21977 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
21978 environment variable instead of dummy make_install_device().
21979
21980 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
21981 (start): Insert a data section, with `grub_prefix' variable.
21982 * kern/i386/linuxbios/startup.S: Likewise.
21983
21984 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
21985 New variable reference.
21986 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
21987 New macro. Defines offset of `grub_prefix' within startup.S (relative
21988 to `start').
21989 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
21990 section within startup.S (relative to `start').
21991 * include/grub/i386/coreboot/kernel.h: Likewise.
21992
21993 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
21994 Overwrite grub_prefix with its contents, at the beginning of the
21995 first segment.
21996 (main): Understand -p|--prefix.
21997
21998 2008-07-30 Robert Millan <rmh@aybabtu.com>
21999
22000 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
22001
22002 2008-07-30 Robert Millan <rmh@aybabtu.com>
22003
22004 * term/i386/pc/vga_text.c (grub_console_cls): Use
22005 grub_console_gotoxy() to go back to beginning of the screen.
22006 Found by Patrick Georgi <patrick.georgi@coresystems.de>
22007
22008 2008-07-29 Christian Franke <franke@computer.org>
22009
22010 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
22011 Add conversion of emulated mount points on Cygwin.
22012
22013 2008-07-29 Christian Franke <franke@computer.org>
22014
22015 * util/update-grub.in: Add a check for admin
22016 group on Cygwin.
22017 Remove old `grub.cfg.new' before creation.
22018 Add `-f' to `mv' to handle the different filesystem
22019 semantics of Windows.
22020
22021 2008-07-29 Bean <bean123ch@gmail.com>
22022
22023 * normal/main.c (get_line): Fix buffer overflow bug.
22024
22025 2008-07-28 Robert Millan <rmh@aybabtu.com>
22026
22027 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
22028 (struct grub_apple_header): New struct. Describes the layout of
22029 the partmap header.
22030 (apple_partition_map_iterate): Check the header magic as well as the
22031 partition magic (which was already being checked).
22032
22033 2008-07-28 Pavel Roskin <proski@gnu.org>
22034
22035 * genmk.rb: Add a warning to the beginning of the output that
22036 it's a generated file and should not be edited.
22037
22038 2008-07-28 Robert Millan <rmh@aybabtu.com>
22039
22040 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
22041 with the same number are found, just use issue a warning with
22042 grub_dprintf(), as this error has been reported to be non-fatal.
22043
22044 2008-07-27 Robert Millan <rmh@aybabtu.com>
22045
22046 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
22047 information.
22048
22049 2008-07-27 Bean <bean123ch@gmail.com>
22050
22051 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
22052 (grub_fat_find_dir): Ignore case when comparing filename.
22053
22054 2008-07-27 Bean <bean123ch@gmail.com>
22055
22056 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
22057 smallino, as it's more descriptive, and i8count can be confused with
22058 the other field count.
22059 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
22060 inode type.
22061
22062 2008-07-27 Bean <bean123ch@gmail.com>
22063
22064 * commands/crc.c: New file.
22065
22066 * lib/crc.c: Likewise.
22067
22068 * include/grub/lib/crc.h: Likewise.
22069
22070 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
22071
22072 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
22073 (hexdump): Move this function to ...
22074
22075 * lib/hexdump.c: ... here.
22076
22077 * include/grub/hexdump.h: Renamed to ...
22078
22079 * include/grub/lib/hexdump.h: ... this.
22080
22081 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
22082
22083 * util/grub-editenv.c: Likewise.
22084
22085 * include/envblk.h: Renamed to ...
22086
22087 * include/lib/envblk.h: ... this.
22088
22089 * util/envblk.c: Renamed to ...
22090
22091 * lib/envblk.c: ... this.
22092
22093 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
22094 lib/hexdump.c.
22095 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
22096 (pkglib_MODULES): Add crc.mod.
22097 (hexdump_mod_SOURCES): Add lib/hexdump.c.
22098 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
22099 (crc_mod_SOURCES): New macro.
22100 (crc_mod_CFLAGS): Likewise.
22101 (crc_mod_LDFLAGS): Likewise.
22102
22103 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
22104
22105 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22106
22107 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22108
22109 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22110
22111 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22112
22113 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
22114
22115 * commands/help.c: Include <grub/term.h>.
22116 (TERM_WIDTH): Removed. Updated all users.
22117
22118 2008-07-27 Pavel Roskin <proski@gnu.org>
22119
22120 * util/getroot.c (find_root_device): Rephrase a comment to avoid
22121 spurious warnings about a comment within a comment.
22122
22123 2008-07-25 Robert Millan <rmh@aybabtu.com>
22124
22125 * util/getroot.c (find_root_device): Skip devices that match
22126 /dev/dm-[0-9]. This lets the real device be found for any type of
22127 abstraction (LVM, EVMS, RAID..).
22128 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
22129 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
22130 device is found first, find_root_device() will now skip it.
22131
22132 2008-07-24 Pavel Roskin <proski@gnu.org>
22133
22134 * include/grub/types.h: Use __builtin_bswap32() and
22135 __builtin_bswap64() with gcc 4.3 and newer.
22136
22137 2008-07-24 Christian Franke <franke@computer.org>
22138
22139 * util/i386/pc/grub-install.in: If `--debug' is specified,
22140 pass `--verbose' to grub-setup.
22141 Abort script if make_system_path_relative_to_its_root() fails.
22142
22143 2008-07-24 Bean <bean123ch@gmail.com>
22144
22145 * configure.ac: Fixed a bug caused by the previous cygwin patch,
22146 variable `target_platform' should be `platform'.
22147
22148 2008-07-24 Bean <bean123ch@gmail.com>
22149
22150 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
22151 (grub_png_init_fixed_block): New function.
22152 (grub_png_decode_image_data): Handle fixed huffman code compression.
22153
22154 2008-07-24 Bean <bean123ch@gmail.com>
22155
22156 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
22157 (grub_pe2elf_SOURCES): New macro.
22158 (CLEANFILES): Add grub-pe2elf.
22159
22160 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
22161 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
22162 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
22163 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
22164 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
22165 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
22166 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
22167 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
22168 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
22169 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
22170 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
22171 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
22172 (GRUB_PE32_DT_FUNCTION): Likewise.
22173 (GRUB_PE32_REL_I386_DIR32): Likewise.
22174 (GRUB_PE32_REL_I386_REL32): Likewise.
22175 (grub_pe32_symbol): New structure.
22176 (grub_pe32_reloc): Likewise.
22177
22178 * util/grub-pe2elf.c: New file.
22179
22180 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
22181 start symbol in non pc platform.
22182
22183 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
22184
22185 The following patches are from Christian Franke.
22186
22187 * include/grub/dl.h: Remove .previous, gas supports this only
22188 for ELF format.
22189
22190 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
22191 Remove .type, gas supports this only for ELF format.
22192
22193 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
22194 nullbytes in symbol table. This fixes an infinite loop if table is
22195 zero filled.
22196
22197 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
22198 TARGET_IMG_LDFLAGS and EXEEXT.
22199
22200 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
22201 TARGET_IMG_LDFLAGS_AC.
22202 (grub_CHECK_STACK_ARG_PROBE): New function.
22203
22204 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
22205
22206 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
22207
22208 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
22209 to set TARGET_IMG_LD* accordingly.
22210 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
22211 Add call to grub_CHECK_STACK_ARG_PROBE.
22212 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
22213
22214 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
22215
22216 * genmk.rb: Add EXEEXT to CLEANFILES.
22217
22218 2008-07-23 Robert Millan <rmh@aybabtu.com>
22219
22220 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
22221 define the codes for arrows and lines used for the menu).
22222 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
22223 as well.
22224
22225 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
22226 fonts, because the latter are too slow.
22227
22228 2008-07-21 Bean <bean123ch@gmail.com>
22229
22230 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
22231 a20. Run keyboard test last, as it will cause macbook to halt.
22232
22233 2008-07-18 Pavel Roskin <proski@gnu.org>
22234
22235 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
22236 load foreign architecture modules correctly anyway. Keep
22237 support for loading host architecture modules, whether we
22238 compile them or not.
22239
22240 2008-07-17 Pavel Roskin <proski@gnu.org>
22241
22242 * configure.ac: Use -m32 or -m64 regardless of whether we had to
22243 change target_cpu. The compiler default can mismatch target_cpu
22244 in any case.
22245
22246 * disk/efi/efidisk.c: Fix format warnings on x86_64.
22247 * kern/efi/efi.c: Likewise.
22248
22249 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
22250 target compiler is functional.
22251 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
22252 are set up.
22253
22254 * configure.ac: Default to efi platform for x86_64-apple. Allow
22255 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
22256 adjustments from the rest, only do them if target is not
22257 explicitly given. Merge other adjustments with the final sanity
22258 check. Remove an extraneous check for supported CPU. Be
22259 specific which CPU and which platform is not supported.
22260
22261 * configure.ac: Default to pc platform for x86_64.
22262
22263 2008-07-17 Robert Millan <rmh@aybabtu.com>
22264
22265 Partial LinuxBIOS -> Coreboot rename.
22266
22267 * conf/i386-linuxbios.rmk: Renamed to ...
22268 * conf/i386-coreboot.rmk: ... this.
22269 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
22270 * configure.ac: Accept "coreboot" as input platform (but maintain
22271 compatibility with "linuxbios").
22272 * include/grub/i386/linuxbios: Renamed to ...
22273 * include/grub/i386/coreboot: ... this.
22274
22275 2008-07-17 Bean <bean123ch@gmail.com>
22276
22277 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
22278 (appleldr_mod_SOURCE): New variable.
22279 (appleldr_mod_CFLAGS): Likewise.
22280 (appleldr_mod_LDFLAGS): Likewise.
22281 (pci_mod_SOURCES): Likewise.
22282 (pci_mod_CFLAGS): Likewise.
22283 (pci_mod_LDFLAGS): Likewise.
22284 (lspci_mod_SOURCES): Likewise.
22285 (lspci_mod_CFLAGS): Likewise.
22286 (lspci_mod_LDFLAGS): Likewise.
22287
22288 * conf/x86_64-efi.rmk: New file.
22289
22290 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
22291 macro.
22292 (grub_efidisk_write): Likewise.
22293
22294 * include/efi/api.h (efi_call_0): New macro.
22295 (efi_call_1): Likewise.
22296 (efi_call_2): Likewise.
22297 (efi_call_3): Likewise.
22298 (efi_call_4): Likewise.
22299 (efi_call_5): Likewise.
22300 (efi_call_6): Likewise.
22301
22302 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
22303 grub_rescue_cmd_chainloader.
22304
22305 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
22306 (grub_pe32_optional_header): Change some fields based on i386 or
22307 x86_64 platform.
22308 (GRUB_PE32_PE32_MAGIC): Likewise.
22309
22310 * include/grub/efi/uga_draw.h: New file.
22311
22312 * include/grub/elf.h (STN_ABS): New constant.
22313 (R_X86_64_NONE): Relocation constant for x86_64.
22314 (R_X86_64_64): Likewise.
22315 (R_X86_64_PC32): Likewise.
22316 (R_X86_64_GOT32): Likewise.
22317 (R_X86_64_PLT32): Likewise.
22318 (R_X86_64_COPY): Likewise.
22319 (R_X86_64_GLOB_DAT): Likewise.
22320 (R_X86_64_JUMP_SLOT): Likewise.
22321 (R_X86_64_RELATIVE): Likewise.
22322 (R_X86_64_GOTPCREL): Likewise.
22323 (R_X86_64_32): Likewise.
22324 (R_X86_64_32S): Likewise.
22325 (R_X86_64_16): Likewise.
22326 (R_X86_64_PC16): Likewise.
22327 (R_X86_64_8): Likewise.
22328 (R_X86_64_PC8): Likewise.
22329
22330 * include/grub/i386/efi/pci.h: New file.
22331
22332 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
22333 Change it value based on platform.
22334 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
22335 (GRUB_E820_RAM): Likewise.
22336 (GRUB_E820_RESERVED): Likewise.
22337 (GRUB_E820_ACPI): Likewise.
22338 (GRUB_E820_NVS): Likewise.
22339 (GRUB_E820_EXEC_CODE): Likewise.
22340 (GRUB_E820_MAX_ENTRY): Likewise.
22341 (grub_e820_mmap): New structure.
22342 (linux_kernel_header): Change the efi field according to different
22343 kernel version, also field from linux_kernel_header.
22344
22345 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
22346
22347 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
22348 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
22349 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
22350 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
22351 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
22352 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
22353 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
22354 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
22355 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
22356 (GRUB_PCI_ADDR_IO_MASK): Likewise.
22357
22358 * include/grub/x86_64/efi/kernel.h: New file.
22359
22360 * include/grub/x86_64/efi/loader.h: Likewise.
22361
22362 * include/grub/x86_64/efi/machine.h: Likewise.
22363
22364 * include/grub/x86_64/efi/pci.h: Likewise.
22365
22366 * include/grub/x86_64/efi/time.h: Likewise.
22367
22368 * include/grub/x86_64/linux.h: Likewise.
22369
22370 * include/grub/x86_64/setjmp.h: Likewise.
22371
22372 * include/grub/x86_64/time.h: Likewise.
22373
22374 * include/grub/x86_64/types.h: Likewise.
22375
22376 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
22377 GRUB_TARGET_SIZEOF_VOID_P.
22378
22379 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
22380 (grub_efi_locate_handle): Likewise.
22381 (grub_efi_open_protocol): Likewise.
22382 (grub_efi_set_text_mode): Likewise.
22383 (grub_efi_stall): Likewise.
22384 (grub_exit): Likewise.
22385 (grub_reboot): Likewise.
22386 (grub_halt): Likewise.
22387 (grub_efi_exit_boot_services): Likewise.
22388 (grub_get_rtc): Likewise.
22389
22390 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
22391 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
22392 (grub_efi_allocate_pages): Wrap efi calls.
22393 (grub_efi_free_pages): Wrap efi calls.
22394 (grub_efi_get_memory_map): Wrap efi calls.
22395
22396 * kern/x86_64/dl.c: New file.
22397
22398 * kern/x86_64/efi/callwrap.S: Likewise.
22399
22400 * kern/x86_64/efi/startup.S: Likewise.
22401
22402 * loader/efi/appleloader.c: Likewise.
22403
22404 * loader/efi/chainloader.c (cmdline): New variable.
22405 (grub_chainloader_unload): Wrap efi calls.
22406 (grub_chainloader_boot): Likewise.
22407 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
22408 command line.
22409
22410 * loader/efi/chainloader_normal.c (chainloader_command):
22411 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
22412 command line.
22413
22414 * loader/i386/efi/linux.c (allocate_pages): Change allocation
22415 method.
22416 (grub_e820_add_region): New function.
22417 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
22418 booting.
22419 (grub_find_video_card): New function.
22420 (grub_linux_setup_video): New function.
22421 (grub_rescue_cmd_linux): Probe for video information.
22422
22423 * normal/x86_64/setjmp.S: New file.
22424
22425 * term/efi/console.c (map_char): New function.
22426 (grub_console_putchar): Map unicode char.
22427 (grub_console_checkkey): Wrap efi calls.
22428 (grub_console_getkey): Likewise.
22429 (grub_console_getwh): Likewise.
22430 (grub_console_gotoxy): Likewise.
22431 (grub_console_cls): Likewise.
22432 (grub_console_setcolorstate): Likewise.
22433 (grub_console_setcursor): Likewise.
22434
22435 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
22436
22437 2008-07-16 Pavel Roskin <proski@gnu.org>
22438
22439 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
22440 format strings.
22441
22442 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
22443 pointer, not an integer. This fixes a warning and prevents
22444 precision loss on 64-bit systems.
22445 (relocate_addresses): Remove unneeded cast.
22446
22447 2008-07-15 Pavel Roskin <proski@gnu.org>
22448
22449 * kern/i386/ieee1275/init.c: Include grub/cache.h.
22450
22451 * term/ieee1275/ofconsole.c: Disable code unused on i386.
22452
22453 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
22454 Fix comparison between signed and unsigned.
22455
22456 * include/grub/i386/ieee1275/console.h: Declare
22457 grub_console_init() and grub_console_fini().
22458
22459 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
22460 It's empty and unused.
22461
22462 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
22463 beginning to avoid warnings with some compilers.
22464
22465 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
22466 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
22467
22468 2008-07-14 Pavel Roskin <proski@gnu.org>
22469
22470 * kern/env.c (grub_register_variable_hook): Don't copy empty
22471 string, it leaks memory. Pass "" to grub_env_set(), it should
22472 handle constant strings.
22473
22474 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
22475 * commands/cmp.c (grub_cmd_cmp): Likewise.
22476 * kern/dl.c (grub_dl_flush_cache): Likewise.
22477 (grub_dl_load_core): Likewise.
22478 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
22479 (grub_elf64_load_phdrs): Likewise.
22480
22481 2008-07-13 Pavel Roskin <proski@gnu.org>
22482
22483 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
22484 between signed and unsigned.
22485 (LzmaEnc_Finish): Fix warning about an unused parameter.
22486
22487 2008-07-13 Bean <bean123ch@gmail.com>
22488
22489 * Makefile.in (enable_lzo): New rule.
22490
22491 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
22492
22493 * configure.ac (ENABLE_LZO): New option --enable-lzo.
22494
22495 * boot/i386/pc/lnxboot.S: #include <config.h>.
22496
22497 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
22498 its value according to the compression algorithm used, lzo or lzma.
22499
22500 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
22501 compression algorithm according to configure macro.
22502
22503 * kern/i386/pc/startup.S (codestart): Likewise.
22504
22505 * kern/i386/pc/lzma_decode.S: New file.
22506
22507 * include/grub/lib/LzFind.h: Likewise.
22508
22509 * include/grub/lib/LzHash.h: Likewise.
22510
22511 * include/grub/lib/LzmaDec.h: Likewise.
22512
22513 * include/grub/lib/LzmaEnc.h: Likewise.
22514
22515 * include/grub/lib/LzmaTypes.h: Likewise.
22516
22517 * lib/LzFind.c: Likewise.
22518
22519 * lib/LzmaDec.c: Likewise.
22520
22521 * lib/LzmaEnc.c: Likewise.
22522
22523 2008-07-13 Bean <bean123ch@gmail.com>
22524
22525 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
22526 (grub_ext4_extent_header): New structure.
22527 (grub_ext4_extent): Likewise.
22528 (grub_ext4_extent_idx): Likewise.
22529 (grub_ext4_find_leaf): New function.
22530 (grub_ext2_read_block): Handle extents.
22531
22532 2008-07-12 Robert Millan <rmh@aybabtu.com>
22533
22534 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
22535
22536 2008-07-11 Robert Millan <rmh@aybabtu.com>
22537
22538 * util/grub.d/40_custom.in: New file. Example on how to add custom
22539 entries to /etc/grub.d.
22540 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
22541 40_custom (implicitly, by merging all the grub.d rules).
22542
22543 2008-07-11 Pavel Roskin <proski@gnu.org>
22544
22545 * commands/read.c (grub_getline): Fix invalid memory access.
22546 Don't add newline to the variable value.
22547
22548 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
22549 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
22550 (serial_hw_get_port): Check validity of the port number.
22551 (grub_cmd_serial): Check return value of serial_hw_get_port().
22552
22553 2008-07-07 Pavel Roskin <proski@gnu.org>
22554
22555 * boot/i386/pc/diskboot.S (notification_string): Replace
22556 "Loading kernel" with just "loading". This is shorter, less
22557 confusing and saves a few bytes for possible future changes.
22558
22559 2008-07-05 Pavel Roskin <proski@gnu.org>
22560
22561 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
22562 size for ATAPI devices, they are undefined. Output sector
22563 number in decimal form.
22564
22565 * disk/ata.c: Use named constants for status bits.
22566
22567 2008-07-04 Pavel Roskin <proski@gnu.org>
22568
22569 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
22570 grub_addr_t before casting it to the void pointer to fix a
22571 warning. Non-addressable regions are discarded earlier.
22572 (grub_arch_modules_addr): Cast _end to grub_addr_t.
22573 * kern/i386/linuxbios/table.c: Include grub/misc.h.
22574 (check_signature): Don't shadow table_header.
22575 (grub_linuxbios_table_iterate): Cast numeric constants to
22576 grub_linuxbios_table_header_t.
22577 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
22578 grub_stop().
22579
22580 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
22581 prevent warnings.
22582
22583 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
22584 pointer, which can cause warnings. Support 64-bit addresses.
22585
22586 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
22587 of sizeof(long). This fixes PowerPC image generation on x86_64.
22588
22589 2008-07-04 Robert Millan <rmh@aybabtu.com>
22590
22591 This fixes a performance issue when pc & gpt partmap iterators
22592 didn't abort iteration even after our hook found what it was
22593 looking for (often causing expensive probes of non-existent drives).
22594
22595 Some callers relied on previous buggy behaviour, since they would
22596 raise an error when their own hooks caused early abortion of its
22597 iteration.
22598
22599 * kern/device.c (grub_device_open): Improve error message.
22600 * disk/lvm.c (grub_lvm_open): Likewise.
22601 * disk/raid.c (grub_raid_open): Likewise.
22602
22603 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
22604 when hook requests it, independently of grub_errno.
22605 (pc_partition_map_probe): Do not fail when find_func() caused
22606 early abortion of pc_partition_map_iterate().
22607
22608 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
22609 when hook requests it, independently of grub_errno.
22610 (gpt_partition_map_probe): Do not fail when find_func() caused
22611 early abortion of gpt_partition_map_iterate().
22612
22613 * kern/partition.c (grub_partition_iterate): Abort parent iteration
22614 when hook requests it, independently of grub_errno. Do not fail when
22615 part_map_iterate_hook() caused early abortion of p->iterate().
22616
22617 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
22618 when grub_partition_iterate() returned with non-zero.
22619
22620 2008-07-03 Pavel Roskin <proski@gnu.org>
22621
22622 * disk/ata.c (grub_ata_pio_write): Check status before writing,
22623 like we do in grub_ata_pio_read().
22624 (grub_ata_readwrite): Always write individual sectors. Fix the
22625 sector count for the remainder.
22626 (grub_ata_write): Enable writing to ATA devices. Correctly
22627 report error for ATAPI devices.
22628
22629 2008-07-02 Pavel Roskin <proski@gnu.org>
22630
22631 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
22632 warning.
22633
22634 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
22635 for every read sector, we already increment it for the whole
22636 batch. This fixes reading more than 256 sectors at once.
22637
22638 * util/grub-editenv.c (cmd_info): Cast argument to long
22639 explicitly. ptrdiff_t reduces to int on i386.
22640
22641 * util/grub-editenv.c (main): Be specific which parameter is
22642 missing.
22643
22644 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
22645 (memdisk): Make memdisk_orig_addr a pointer.
22646
22647 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
22648 for file offsets, use grub_off_t instead. Fix printf format
22649 warnings.
22650
22651 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
22652 there. Real unexpected warnings should not drown in the noise
22653 about known problems.
22654
22655 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
22656 grub_disk_addr_t for memory addresses.
22657
22658 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
22659 explicitly to fix a warning.
22660
22661 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
22662
22663 * Makefile.in (MODULE_LDFLAGS): New variable.
22664 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
22665 the linker accepts --build-id=none.
22666 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
22667 MODULE_LDFLAGS.
22668 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
22669
22670 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
22671 those in Linux XFS code. Provide a way to access 64-bit parent
22672 inode.
22673 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
22674 the end of struct grub_xfs_dir_header.
22675
22676 2008-07-02 Bean <bean123ch@gmail.com>
22677
22678 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
22679 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
22680 and GRUB_IEEE1275_FLAG_NO_ANSI.
22681
22682 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
22683 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
22684 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
22685
22686 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
22687 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
22688
22689 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
22690 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
22691
22692 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
22693 esc sequence on non ANSI terminal.
22694 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
22695
22696 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
22697 beginning of file.
22698
22699 2008-07-02 Bean <bean123ch@gmail.com>
22700
22701 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
22702 (grub_editenv_SOURCES): New variable.
22703 (pkglib_MODULES): Add loadenv.mod.
22704 (loadenv_mod_SOURCES): New variable.
22705 (loadenv_mod_CFLAGS): Likewise.
22706 (loadenv_mod_LDFLAGS): Likewise.
22707
22708 * include/grub/envblk.h: New file.
22709
22710 * util/envblk.c: New file.
22711
22712 * util/grub-editenv.c: New file.
22713
22714 * commands/loadenv.c: New file.
22715
22716 2008-07-01 Pavel Roskin <proski@gnu.org>
22717
22718 * include/multiboot2.h (struct multiboot_tag_module): Use char,
22719 not unsigned char. This fixes warnings and is consistent with
22720 other tags.
22721
22722 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
22723
22724 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
22725
22726 * term/tparm.c (analyze): Always set *popcount.
22727
22728 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
22729 cast to fix a warning.
22730
22731 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
22732 cast to suppress a warning.
22733
22734 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
22735 grub_fshelp_read_file() expects.
22736
22737 * fs/fat.c: Fix UUID calculation on big-endian systems. We
22738 write uuid as a 32-bit value in CPU byte order, so declare and
22739 use it as such.
22740
22741 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
22742 long if the format specifier expects it.
22743 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
22744 * partmap/pc.c (pc_partition_map_iterate): Likewise.
22745 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
22746 long to fix a warning.
22747 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
22748 grub_dprintf() arguments to fix warnings.
22749
22750 2008-06-30 Pavel Roskin <proski@gnu.org>
22751
22752 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
22753 install_bsd_part immediately before core.img is embedded or
22754 modified on disk. This fixes core.img verification if core.img
22755 cannot be embedded.
22756
22757 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
22758 core_path to calculate the blocklist.
22759 Patch from Javier Martín <lordhabbit@gmail.com>
22760
22761 2008-06-29 Robert Millan <rmh@aybabtu.com>
22762
22763 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
22764 block to disk block.
22765 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
22766 Patch from Niels Böhm <bitbucket@arcor.de>
22767
22768 2008-06-29 Robert Millan <rmh@aybabtu.com>
22769
22770 * util/update-grub_lib.in (font_path): Search for fonts in
22771 /boot/grub first, which is more likely to be readable (we aren't
22772 deciding where fonts live, just looking for them).
22773
22774 2008-06-26 Pavel Roskin <proski@gnu.org>
22775
22776 * util/biosdisk.c (read_device_map): Don't leave dead map
22777 entries for devices failing stat() check.
22778
22779 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
22780 core_path_dev for the core.img path on the target device.
22781
22782 2008-06-26 Robert Millan <rmh@aybabtu.com>
22783
22784 * disk/fs_uuid.c: New file.
22785 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
22786 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
22787 (fs_uuid_mod_LDFLAGS): New variables.
22788 * include/grub/disk.h (grub_disk_dev_id): Add
22789 `GRUB_DISK_DEVICE_UUID_ID'.
22790 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
22791 implement iterate().
22792
22793 2008-06-26 Robert Millan <rmh@aybabtu.com>
22794
22795 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
22796 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
22797 Linux image includes no initrd.
22798
22799 2008-06-21 Javier Martín <lordhabbit@gmail.com>
22800
22801 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
22802 call to resolve the core image location that effectively appended the
22803 name twice.
22804
22805 2008-06-21 Robert Millan <rmh@aybabtu.com>
22806
22807 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
22808 call from here ...
22809
22810 * util/grub.d/10_hurd.in: ... to here ...
22811 * util/grub.d/10_linux.in: ... and here.
22812
22813 2008-06-19 Robert Millan <rmh@aybabtu.com>
22814
22815 * kern/main.c (grub_main): Export `prefix' variable immediately
22816 after it has been set by grub_machine_set_prefix().
22817
22818 2008-06-19 Robert Millan <rmh@aybabtu.com>
22819
22820 * commands/search.c (search_label, search_fs_uuid, search_file): Print
22821 search result when not saving to variable, not the other way around.
22822 When saving to variable, abort iteration as soon as a match is found.
22823
22824 2008-06-19 Robert Millan <rmh@aybabtu.com>
22825
22826 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
22827 check for partition that provides /boot/grub. Its logic is flawed,
22828 as it prevents prepare_grub_to_access_device() from being called
22829 multiple times.
22830
22831 2008-06-19 Robert Millan <rmh@aybabtu.com>
22832
22833 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
22834 "insmod" command directly when abstraction modules are needed,
22835 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
22836 since it had already been processed).
22837
22838 2008-06-19 Pavel Roskin <proski@gnu.org>
22839
22840 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
22841 changed. This is needed in case GRUB_LIBDIR changes.
22842 * conf/i386-ieee1275.rmk: Likewise.
22843 * conf/i386-linuxbios.rmk: Likewise.
22844 * conf/i386-pc.rmk: Likewise.
22845 * conf/powerpc-ieee1275.rmk: Likewise.
22846
22847 2008-06-18 Pavel Roskin <proski@gnu.org>
22848
22849 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
22850 kernel_elf_symlist.c to symlist.c for consistency with other
22851 architectures. Update all users.
22852 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
22853
22854 2008-06-18 Robert Millan <rmh@aybabtu.com>
22855
22856 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
22857 it in prefix.
22858
22859 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
22860 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
22861 a RAID device, run setup() for all members independently on whether
22862 LVM abstraction is being used.
22863 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
22864 If grub-mkimage has set `*install_dos_part == -2', don't override this
22865 value.
22866 Perform *install_dos_part adjustments independently on whether
22867 we're embedding or not.
22868 Clarify error message when image is too big for embedding.
22869 Remove duplicate *install_dos_part stanza.
22870
22871 2008-06-17 Robert Millan <rmh@aybabtu.com>
22872
22873 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
22874 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
22875 variables.
22876 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
22877 values in grub_ofconsole_normal_color and
22878 grub_ofconsole_highlight_color (they're not directly related to
22879 background and foreground).
22880 (grub_ofconsole_setcolorstate): Extract background and foreground
22881 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
22882
22883 2008-06-17 Robert Millan <rmh@aybabtu.com>
22884
22885 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
22886 /boot/grub for the check in last commit, not /boot (they could be
22887 different partitions).
22888
22889 2008-06-16 Robert Millan <rmh@aybabtu.com>
22890
22891 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
22892 asked to setup access for the same partition that provides /boot,
22893 don't bother using UUIDs since our root already has the value we
22894 want.
22895
22896 2008-06-16 Robert Millan <rmh@aybabtu.com>
22897
22898 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
22899 I2O devices.
22900 Patch from Sven Mueller <sven@debian.org>.
22901
22902 2008-06-16 Robert Millan <rmh@aybabtu.com>
22903
22904 * util/update-grub.in: Check for $EUID instead of $UID.
22905 Reported by Vincent Zweije.
22906
22907 2008-06-16 Bean <bean123ch@gmail.com>
22908
22909 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
22910 (grub_ext2_read_block): Likewise.
22911 (grub_ext2_read_inode): Likewise.
22912 (grub_ext2_mount): Likewise.
22913 (grub_ext2_close): Likewise.
22914 (grub_ext3_get_journal): Removed.
22915
22916 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
22917 (grub_reiserfs_read_symlink): Likewise.
22918 (grub_reiserfs_mount): Likewise.
22919 (grub_reiserfs_open): Likewise.
22920 (grub_reiserfs_read): Likewise.
22921 (grub_reiserfs_close): Likewise.
22922 (grub_reiserfs_get_journal): Removed.
22923
22924 * fs/fshelp.c (grub_fshelp_read): Removed.
22925 (grub_fshelp_map_block): Likewise.
22926
22927 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
22928 (grub_fshelp_journal): Likewise.
22929 (grub_fshelp_read): Likewise.
22930 (grub_fshelp_map_block): Likewise.
22931
22932 2008-06-16 Pavel Roskin <proski@gnu.org>
22933
22934 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
22935 floating point anymore.
22936 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
22937
22938 2008-06-15 Pavel Roskin <proski@gnu.org>
22939
22940 * commands/ls.c (grub_ls_list_files): Use integer calculations
22941 for human readable format, avoid floating point use.
22942 * kern/misc.c (grub_ftoa): Remove.
22943 (grub_vsprintf): Remove floating point support.
22944
22945 2008-06-15 Robert Millan <rmh@aybabtu.com>
22946
22947 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
22948 devices.
22949 Reported by Max Vozeler.
22950
22951 2008-06-15 Robert Millan <rmh@aybabtu.com>
22952
22953 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
22954 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
22955 skipped later.
22956 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
22957 the beginning of the prefix.
22958
22959 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
22960 It is assumed that if we have a memdisk, grub-mkimage has set
22961 grub_prefix to include the "(memdisk)" drive in it.
22962
22963 2008-06-15 Robert Millan <rmh@aybabtu.com>
22964
22965 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
22966 Initialize keyboard controller after registering the terminal, so that
22967 grub_printf() can be called from grub_keyboard_controller_init().
22968
22969 2008-06-15 Robert Millan <rmh@aybabtu.com>
22970
22971 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
22972 extent-btree which is written as big endian on disk.
22973 Reported by Alain Greppin <al@chilibi.org>.
22974
22975 2008-06-14 Robert Millan <rmh@aybabtu.com>
22976
22977 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
22978 * util/i386/pc/grub-install.in (modules): Likewise.
22979
22980 2008-06-13 Pavel Roskin <proski@gnu.org>
22981
22982 * commands/ls.c (grub_ls_list_files): Fix format warnings.
22983
22984 2008-06-13 Bean <bean123ch@gmail.com>
22985
22986 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
22987
22988 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
22989
22990 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
22991 to indicate sparse block.
22992
22993 2008-06-12 Pavel Roskin <proski@gnu.org>
22994
22995 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
22996 number, grub_fshelp_read() does it for us.
22997
22998 * fs/fshelp.c (grub_fshelp_read): New function. Implement
22999 linear disk read with journal translation.
23000 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
23001 * include/grub/fshelp.h: Declare grub_fshelp_read().
23002
23003 2008-06-09 Pavel Roskin <proski@gnu.org>
23004
23005 * fs/minix.c (grub_minix_mount): Handle error reading
23006 superblock.
23007
23008 2008-06-08 Robert Millan <rmh@aybabtu.com>
23009
23010 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
23011 don't append the RAID prefix afterwards.
23012 Reported by Clint Adams.
23013
23014 2008-06-08 Robert Millan <rmh@aybabtu.com>
23015
23016 Based on description from Pavel:
23017 * kern/disk.c (grub_disk_check_range): Rename to ...
23018 (grub_disk_adjust_range): ... this. Add a comment explaining the
23019 tasks performed by this function.
23020
23021 2008-06-08 Robert Millan <rmh@aybabtu.com>
23022
23023 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
23024 `num_serial' (for consistency with other variables).
23025 (struct grub_ntfs_data): Add `uuid' member.
23026 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
23027 (grub_ntfs_uuid): New function.
23028 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
23029
23030 2008-06-07 Pavel Roskin <proski@gnu.org>
23031
23032 * util/biosdisk.c (open_device): Revert last change to the
23033 function, it broke installation. The sector needs to be
23034 different dependent on which device is opened.
23035
23036 2008-06-06 Robert Millan <rmh@aybabtu.com>
23037
23038 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
23039 rest of GRUB, and breakage doesn't happen if its value were modified.
23040
23041 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
23042 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
23043 a constant (same value).
23044 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
23045 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
23046
23047 2008-06-06 Robert Millan <rmh@aybabtu.com>
23048
23049 * util/biosdisk.c (open_device): Do not modify sector offset when
23050 accessing a partition. kern/disk.c already handles this for us.
23051
23052 2008-06-06 Robert Millan <rmh@aybabtu.com>
23053
23054 * util/grub-emu.c (grub_machine_init): Move code in this function from
23055 here ...
23056 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
23057 segfault in case grub_printf() is called).
23058
23059 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
23060 grub_probe. Update all users not to explicitly add it again.
23061 (grub_device): New variable; contains corresponding device for grubdir.
23062 (fs_module, partmap_module, devabstraction_module): Pass
23063 `--device ${grub_device}' to grub_probe to avoid traversing /dev
23064 every time.
23065
23066 2008-06-05 Robert Millan <rmh@aybabtu.com>
23067
23068 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
23069 is found, print it (same layout as with labels).
23070
23071 2008-06-04 Robert Millan <rmh@aybabtu.com>
23072
23073 * util/biosdisk.c (get_drive): Rename to ...
23074 (find_grub_drive): ... this. Update all users.
23075
23076 (get_os_disk): Rename to ...
23077 (convert_system_partition_to_system_disk): ... this. Update all users.
23078
23079 (find_drive): Rename to ...
23080 (find_system_device): ... this. Update all users.
23081
23082 2008-06-04 Robert Millan <rmh@aybabtu.com>
23083
23084 * util/biosdisk.c (get_os_disk): Handle IDA devices.
23085 * util/grub-mkdevicemap.c (get_mmc_disk_name)
23086 (make_device_map): Likewise.
23087
23088 2008-06-01 Robert Millan <rmh@aybabtu.com>
23089
23090 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
23091 before dereferencing it.
23092
23093 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
23094 union with fat12/fat16-specific ones. Add some new fields, including
23095 `num_serial' for both versions.
23096 (struct grub_fat_data): Add `uuid' member.
23097 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
23098 names. Initialize `data->uuid' using `num_serial'.
23099 (grub_fat_uuid): New function.
23100 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
23101
23102 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
23103 (grub_reiserfs_uuid): New function.
23104 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
23105 member.
23106
23107 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
23108 (grub_xfs_uuid): New function.
23109 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
23110
23111 2008-06-01 Robert Millan <rmh@aybabtu.com>
23112
23113 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
23114 code that is backward compatible with pre-uuid search command.
23115
23116 2008-05-31 Robert Millan <rmh@aybabtu.com>
23117
23118 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
23119 floppies after everything else, to ensure floppy drive isn't accessed
23120 unnecessarily (patch from Bean).
23121
23122 2008-05-31 Robert Millan <rmh@aybabtu.com>
23123
23124 * commands/search.c (search_label, search_fs_uuid, search_file): Do
23125 not print device names when we were asked to set a variable.
23126
23127 2008-05-31 Robert Millan <rmh@aybabtu.com>
23128
23129 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
23130 using "cursor-on" and "cursor-off" commands (understood at least by
23131 the Open Firmware flavour on OLPC).
23132
23133 2008-05-31 Michael Gorven <michael@gorven.za.net>
23134
23135 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
23136 on and off sequences.
23137
23138 2008-05-31 Robert Millan <rmh@aybabtu.com>
23139
23140 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
23141 * util/update-grub.in: Likewise.
23142
23143 2008-05-30 Pavel Roskin <proski@gnu.org>
23144
23145 * util/biosdisk.c (linux_find_partition): Simplify logic and
23146 make the code more universal. Keep special processing for
23147 devfs, but use a simple rule for all other devices. If the
23148 device ends with a number, append 'p' and the partition number.
23149 Otherwise, append only the partition number.
23150
23151 2008-05-30 Robert Millan <rmh@aybabtu.com>
23152
23153 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
23154 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
23155 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
23156 the `root' parameter to Linux.
23157
23158 2008-05-30 Robert Millan <rmh@aybabtu.com>
23159
23160 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
23161 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
23162 --fs_uuid with --fs-uuid.
23163 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
23164 all filesystems support them).
23165
23166 2008-05-30 Robert Millan <rmh@aybabtu.com>
23167
23168 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
23169 grub_printf() flags, since we're printing in units of 2 bytes.
23170
23171 2008-05-30 Robert Millan <rmh@aybabtu.com>
23172
23173 * util/grub.d/00_header.in: Remove obsolete comment referencing
23174 convert_system_path_to_grub_path().
23175 * util/update-grub.in: Likewise.
23176 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
23177 (convert_system_path_to_grub_path): Add a warning message explaining
23178 that this function is deprecated. Rely on is_path_readable_by_grub()
23179 for the readability checks.
23180 (font_path): Use is_path_readable_by_grub() for the readability
23181 check rather than convert_system_path_to_grub_path().
23182
23183 2008-05-30 Robert Millan <rmh@aybabtu.com>
23184
23185 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
23186 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
23187 converting it first.
23188 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
23189 grub.cfg for access to font file, and afterwards call it again to set
23190 the root device.
23191
23192 2008-05-30 Robert Millan <rmh@aybabtu.com>
23193
23194 * commands/search.c (options): Add --fs_uuid option.
23195 (search_fs_uuid): New function.
23196 (grub_cmd_search): Fix --set argument passing.
23197 Use search_fs_uuid() when requested via --fs_uuid.
23198 (grub_search_init): Update help message.
23199 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
23200 and redeclare it as an array of 16-bit words.
23201 (grub_ext2_uuid): New function.
23202 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
23203 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
23204 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
23205 (GRUB_DEVICE_BOOT_UUID): New variables.
23206 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
23207 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
23208 whenever possible.
23209 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
23210 just assume `root' variable has the right value.
23211 * util/grub.d/10_linux.in: Likewise.
23212 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
23213 via PRINT_FS_UUID.
23214 (main): Recognise `-t fs_uuid' argument.
23215
23216 2008-05-30 Robert Millan <rmh@aybabtu.com>
23217
23218 * util/biosdisk.c (map): Redefine structure to hold information
23219 about GRUB drive name.
23220 (get_drive): Reimplement without assuming (and verifying) BIOS-like
23221 drive names.
23222 (call_hook): Remove.
23223 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
23224 member. Assume drive has partitions.
23225 (grub_util_biosdisk_open): Access device names via `.device' struct
23226 member.
23227 (open_device): Likewise.
23228 (find_drive): Likewise.
23229 (read_device_map): Adjust map[] usage to match the new struct
23230 definition. Don't check for duplicates (still possible, but not cheap
23231 anymore).
23232 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
23233 (make_device_name): Remove assumption of BIOS-like drive names.
23234
23235 2008-05-30 Pavel Roskin <proski@gnu.org>
23236
23237 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
23238 compiling execute.c doesn't need grub_script.tab.h anymore.
23239 (normal/command.c_DEPENDENCIES): Likewise.
23240 (normal/function.c_DEPENDENCIES): Likewise.
23241 * conf/i386-ieee1275.rmk: Likewise.
23242 * conf/i386-linuxbios.rmk: Likewise.
23243 * conf/i386-pc.rmk: Likewise.
23244 * conf/powerpc-ieee1275.rmk: Likewise.
23245 * conf/sparc64-ieee1275.rmk: Likewise.
23246
23247 2008-05-29 Pavel Roskin <proski@gnu.org>
23248
23249 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
23250 when scanning metadata for volume group name.
23251
23252 * include/grub/script.h: Don't include grub_script.tab.h. It's
23253 a generated file, which may only be included from the files with
23254 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
23255 use union YYSTYPE, as the later allows forward declaration.
23256 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
23257
23258 2008-05-29 Robert Millan <rmh@aybabtu.com>
23259
23260 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
23261 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
23262 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
23263 (grub_console_checkkey): Add grub_dprintf() call to report unknown
23264 scan codes.
23265
23266 2008-05-29 Robert Millan <rmh@aybabtu.com>
23267
23268 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
23269 control key combinations.
23270
23271 2008-05-29 Robert Millan <rmh@aybabtu.com>
23272
23273 * util/powerpc/ieee1275/grub-install.in: Move from here ...
23274 * util/ieee1275/grub-install.in: ... to here.
23275 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
23276 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
23277 (grub_install_SOURCES): Likewise.
23278
23279 2008-05-29 Robert Millan <rmh@aybabtu.com>
23280
23281 * fs/affs.c: Update copyright year.
23282 * fs/ext2.c: Likewise.
23283 * fs/fshelp.c: Likewise.
23284 * fs/hfsplus.c: Likewise.
23285 * fs/ntfs.c: Likewise.
23286 * fs/xfs.c: Likewise.
23287 * include/grub/fshelp.h: Likewise.
23288 * util/grub-mkdevicemap.c: Likewise.
23289
23290 2008-05-28 Robert Millan <rmh@aybabtu.com>
23291
23292 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
23293 might need to be fatfs to support some firmware implementations
23294 (e.g. OFW or EFI).
23295
23296 2008-05-28 Robert Millan <rmh@aybabtu.com>
23297
23298 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
23299 devices.
23300 * util/grub-mkdevicemap.c (get_mmc_disk_name)
23301 (make_device_map): Likewise.
23302
23303 2008-05-20 Bean <bean123ch@gmail.com>
23304
23305 * fs/fshelp.c (grub_fshelp_map_block): New function.
23306 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
23307 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
23308
23309 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
23310 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
23311 (grub_fshelp_journal): New structure.
23312 (grub_fshelp_map_block): New function prototype.
23313 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
23314 (grub_fshelp_map_block): Likewise.
23315
23316 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
23317 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
23318 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
23319 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
23320 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
23321 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
23322 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
23323 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
23324 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
23325 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
23326 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
23327 (grub_ext2_sblock): New members for journal support.
23328 (grub_ext3_journal_header): New structure.
23329 (grub_ext3_journal_revoke_header): Likewise.
23330 (grub_ext3_journal_block_tag): Likewise.
23331 (grub_ext3_journal_sblock): Likewise.
23332 (grub_fshelp_node): New members logfile and journal.
23333 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
23334 grub_fshelp_map_block to get real block number.
23335 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
23336 number.
23337 (grub_ext2_read_inode): Likewise.
23338 (grub_ext3_get_journal): New function.
23339 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
23340 (grub_ext2_close): Release memory used by journal.
23341
23342 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
23343 (REISERFS_MAGIC_DESC_BLOCK): New macro.
23344 (grub_reiserfs_transaction_header): Renamed to
23345 grub_reiserfs_description_block, replace field data with real_blocks.
23346 (grub_reiserfs_commit_block): New structure.
23347 (grub_reiserfs_data): New member journal.
23348 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
23349 number.
23350 (grub_reiserfs_read_symlink): Likewise.
23351 (grub_reiserfs_iterate_dir): Likewise.
23352 (grub_reiserfs_open): Likewise.
23353 (grub_reiserfs_read): Likewise.
23354 (grub_reiserfs_get_journal): New function.
23355 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
23356 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
23357 using grub_reiserfs_get_journal.
23358 (grub_reiserfs_close): Release memory used by journal.
23359
23360 * fs/affs.c (grub_affs_read_block): Change block type to
23361 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
23362
23363 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
23364
23365 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
23366
23367 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
23368
23369 * fs/udf.c (grub_udf_read_block): Change block type to
23370 grub_disk_addr_t. Use type cast to avoid warning.
23371
23372 * fs/xfs.c (grub_xfs_read_block): Likewise.
23373
23374 2008-05-16 Christian Franke <franke@computer.org>
23375
23376 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
23377 to ensure that break with ESC will always work.
23378 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
23379 Remove ESC from keyboard queue.
23380
23381 2008-05-16 Christian Franke <franke@computer.org>
23382
23383 * util/biosdisk.c: [__CYGWIN__] Add includes.
23384 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
23385 (get_os_disk): Move variable declarations to OS specific
23386 parts to avoid warning.
23387 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
23388 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
23389 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
23390 Cygwin.
23391 * util/getroot.c: [__CYGWIN__] Add includes.
23392 (strip_extra_slashes): Fix "/" case.
23393 [__CYGWIN__] (get_win32_path): New function.
23394 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
23395 [__CYGWIN__] (find_root_device): Disable.
23396 [__CYGWIN__] (get_bootsec_serial): New function.
23397 [__CYGWIN__] (find_cygwin_root_device): Likewise.
23398 [__linux__] (grub_guess_root_device): Add early returns to simplify
23399 structure.
23400 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
23401 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
23402 check for Linux only.
23403
23404 2008-05-15 Bean <bean123ch@gmail.com>
23405
23406 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
23407 keyboard hang problem in apple's intel mac.
23408
23409 2008-05-09 Robert Millan <rmh@aybabtu.com>
23410
23411 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
23412 devices.
23413 * util/grub-mkdevicemap.c (get_virtio_disk_name)
23414 (make_device_map): Likewise.
23415 Reported by Aurelien Jarno <aurel32@debian.org>
23416
23417 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
23418
23419 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
23420 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
23421 (make_device_map): Output entries for xvd type disks.
23422
23423 2008-05-07 Robert Millan <rmh@aybabtu.com>
23424
23425 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
23426 devices.
23427 * util/grub-mkdevicemap.c (get_cciss_disk_name)
23428 (make_device_map): Likewise.
23429 Reported by Roland Dreier <rdreier@cisco.com>
23430
23431 2008-05-07 Robert Millan <rmh@aybabtu.com>
23432
23433 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
23434 grub_strstr() call. Correct a few mistakes in failure path handling.
23435
23436 2008-05-06 Robert Millan <rmh@aybabtu.com>
23437
23438 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
23439 Do not print a trailing slash (therefore, the root directory is an
23440 empty string).
23441 (convert_system_path_to_grub_path): Do not remove trailing slash
23442 from make_system_path_relative_to_its_root() output.
23443
23444 * util/i386/pc/grub-install.in: Add trailing slash to output from
23445 make_system_path_relative_to_its_root().
23446
23447 2008-05-06 Robert Millan <rmh@aybabtu.com>
23448
23449 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
23450 ensures that output lines aren't intermangled with those sent to
23451 stderr (via grub_util_info()).
23452 * util/grub-probe.c (grub_refresh): Likewise.
23453 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
23454
23455 2008-05-05 Christian Franke <franke@computer.org>
23456
23457 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
23458 Add Cygwin device names.
23459 (get_ide_disk_name) [__CYGWIN__]: Likewise.
23460 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
23461 (check_device): Return error instead of success on empty name.
23462 (make_device_map): Move label inside linux specific code to
23463 prevent compiler warning.
23464
23465 2008-04-30 Robert Millan <rmh@aybabtu.com>
23466
23467 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
23468 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
23469 first boot option.
23470 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
23471
23472 2008-04-29 Robert Millan <rmh@aybabtu.com>
23473
23474 * docs/grub.cfg: New file (example GRUB configuration).
23475
23476 2008-04-26 Robert Millan <rmh@aybabtu.com>
23477
23478 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
23479 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
23480 and `disk/ieee1275/nand.c'.
23481
23482 2008-04-25 Bean <bean123ch@gmail.com>
23483
23484 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
23485 i386-linuxbios.
23486
23487 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
23488 change the buffer size to 4096 for cdrom device.
23489
23490 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
23491 and nand.mod.
23492 (_linux_mod_SOURCES): New variable.
23493 (_linux_mod_CFLAGS): Likewise.
23494 (_linux_mod_LDFLAGS): Likewise.
23495 (linux_mod_SOURCES): Likewise.
23496 (linux_mod_CFLAGS): Likewise.
23497 (linux_mod_LDFLAGS): Likewise.
23498 (nand_mod_SOURCES): Likewise.
23499 (nand_mod_CFLAGS): Likewise.
23500 (nand_mod_LDFLAGS): Likewise.
23501
23502 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
23503 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
23504 type property. (nand device in olpc don't have this property)
23505
23506 * include/grub/disk.h (grub_disk_dev_id): New macro
23507 GRUB_DISK_DEVICE_NAND_ID.
23508
23509 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
23510 function prototype.
23511 (grub_rescue_cmd_initrd): Likewise.
23512
23513 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
23514 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
23515 ofw_cif_handler and ofw_idt, adjust padding number.
23516
23517 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
23518 GRUB_MACHINE_IEEE1275 is defined.
23519
23520 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
23521 Use NESTED_FUNC_ATTR attribute on the hook parameter.
23522
23523 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
23524 on nested function heap_init.
23525 (grub_upper_mem): New variable for i386-ieee1275.
23526 (grub_get_extended_memory): New function for i386-ieee1275.
23527 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
23528
23529 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
23530 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
23531 property.
23532
23533 * loader/i386/ieee1275/linux.c: New file.
23534
23535 * loader/i386/ieee1275/linux_normal.c: New file.
23536
23537 * disk/ieee1275/nand.c: New file.
23538
23539 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
23540
23541 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
23542 value.
23543 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
23544
23545 2008-04-18 Robert Millan <rmh@aybabtu.com>
23546
23547 Restructures early code path on ieee1275 to unify grub_main() as
23548 the first C function that is executed in every platform.
23549
23550 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
23551 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
23552 cmain().
23553 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
23554 * kern/ieee1275/cmain.c (cmain): Rename to ...
23555 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
23556 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
23557 at the beginning.
23558
23559 2008-04-18 Robert Millan <rmh@aybabtu.com>
23560
23561 * util/update-grub.in: Fix syntax error when setting
23562 `GRUB_PRELOAD_MODULES'.
23563 Reported by Stephane Chazelas <stephane@artesyncp.com>
23564
23565 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
23566
23567 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
23568 section into account, newer toolchains generate unique build ids
23569 * configure.ac: remove the test for --build-id=none acceptance,
23570 we want build ids to be preserved
23571 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
23572 far from other sections don't cause the raw binary images grow
23573 size
23574
23575 2008-04-15 Robert Millan <rmh@aybabtu.com>
23576
23577 * disk/lvm.c: Update copyright year.
23578 * kern/misc.c: Likewise.
23579
23580 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
23581
23582 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
23583 there is no memory left for physical volume name.
23584
23585 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
23586
23587 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
23588 volume name mapping to support bigger than 9 character names properly.
23589
23590 2008-04-13 Robert Millan <rmh@aybabtu.com>
23591
23592 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
23593 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
23594
23595 2008-04-13 Christian Franke <franke@computer.org>
23596
23597 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
23598 to create a floppy emulation boot CD when non emulation mode
23599 does not work.
23600 Enable Joliet CD filesystem extension.
23601
23602 2008-04-13 Robert Millan <rmh@aybabtu.com>
23603
23604 * kern/misc.c (grub_strncat): Fix off-by-one error.
23605 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
23606
23607 * kern/env.c (grub_env_context_close): Clear current context, not
23608 previous one.
23609 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
23610
23611 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
23612
23613 2008-04-13 Robert Millan <rmh@aybabtu.com>
23614
23615 Improve robustness when handling LVM.
23616
23617 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
23618 (and leave `*p' unmodified).
23619 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
23620 through it.
23621 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
23622 iterating through it.
23623 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
23624 through it.
23625 (grub_lvm_scan_device): Check the return value (and fail gracefully
23626 when due) on each grub_lvm_getvalue() or grub_strstr() call.
23627 Don't assume `vg->pvs != NULL' when iterating through it.
23628
23629 2008-04-13 Robert Millan <rmh@aybabtu.com>
23630
23631 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
23632 * genmk.rb (partmap): New variable.
23633 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
23634 (#{partmap}): New target rule.
23635 * genpartmaplist.sh: New file.
23636 * Makefile.in (pkglib_DATA): Add partmap.lst.
23637 (partmap.lst): New target rule.
23638 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
23639 modules (including all partition maps), instead of preloading them.
23640
23641 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
23642
23643 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
23644 `linux-boot-prober' (if installed) to detect other operating
23645 systems which are installed on the computer and add them to
23646 the boot menu.
23647 * conf/common.rmk: Build and install 30_os-prober.
23648
23649 2008-04-12 Robert Millan <rmh@aybabtu.com>
23650
23651 * kern/powerpc/ieee1275/init.c: Move from here ...
23652 * kern/ieee1275/init.c: ... to here. Update all users.
23653
23654 * kern/powerpc/ieee1275/cmain.c: Move from here ...
23655 * kern/ieee1275/cmain.c: ... to here. Update all users.
23656
23657 * kern/powerpc/ieee1275/openfw.c: Move from here ...
23658 * kern/ieee1275/openfw.c: ... to here. Update all users.
23659
23660 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
23661 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
23662
23663 2008-04-10 Pavel Roskin <proski@gnu.org>
23664
23665 * configure.ac: Always use "_cv_" in cache variables for
23666 compatibility with Autoconf 2.62.
23667
23668 2008-04-07 Robert Millan <rmh@aybabtu.com>
23669
23670 Revert grub/machine/init.h addition by Pavel (since it breaks on
23671 i386-ieee1275 and others):
23672 * util/i386/pc/misc.c: Remove grub/machine/init.h.
23673 * util/powerpc/ieee1275/misc.c: Likewise.
23674
23675 2008-04-07 Robert Millan <rmh@aybabtu.com>
23676
23677 * util/grub-probe.c (probe): Improve error message.
23678
23679 2008-04-07 Robert Millan <rmh@aybabtu.com>
23680
23681 * util/biosdisk.c (read_device_map): Skip devices that don't exist
23682 (this prevents the presence of a bogus entry from ruining the whole
23683 thing).
23684
23685 2008-04-06 Pavel Roskin <proski@gnu.org>
23686
23687 * util/biosdisk.c: Include grub/util/biosdisk.h.
23688 * util/grub-fstest.c (execute_command): Make static.
23689 * util/grub-mkdevicemap.c (check_device): Likewise.
23690 * util/i386/pc/misc.c: Include grub/machine/init.h.
23691 * util/powerpc/ieee1275/misc.c: Likewise.
23692 * util/lvm.c: Include grub/util/lvm.h.
23693 * util/misc.c: Include grub/kernel.h, grub/misc.h and
23694 grub/cache.h.
23695 * util/raid.c: Include grub/util/raid.h.
23696 (grub_util_getdiskname): Make static.
23697
23698 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
23699 grub_hostfs_fini(), as they are called from grub_init_all() and
23700 grub_fini_all() respectively. This fixes an infinite loop in
23701 grub-fstest due to double registration of hostfs.
23702 Reported by Christian Franke <Christian.Franke@t-online.de>
23703
23704 2008-04-05 Pavel Roskin <proski@gnu.org>
23705
23706 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
23707 all 8 functions. Otherwise, probe function 0 only.
23708
23709 2008-04-04 Pavel Roskin <proski@gnu.org>
23710
23711 * commands/lspci.c (grub_lspci_iter): Print the bus number
23712 correctly.
23713
23714 * commands/lspci.c (grub_pci_classes): Fix typos.
23715 (grub_lspci_iter): Don't print func twice. Print vendor ID
23716 before device ID, as it's normally done.
23717
23718 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
23719 Fix signedness warnings.
23720 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
23721 Likewise.
23722 * util/ieee1275/get_disk_name.c: Include config.h so that
23723 _GNU_SOURCE is defined and getline() is declared. Mark an
23724 unused argument as such. Fix a signedness warning.
23725
23726 2008-04-02 Pavel Roskin <proski@gnu.org>
23727
23728 * genkernsyms.sh.in: Use more robust assignments for CC and
23729 srcdir. Quote srcdir.
23730 * gensymlist.sh.in: Likewise. Assert at the compile time that
23731 the symbol table is not empty.
23732
23733 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
23734 * fs/cpio.c (grub_cpio_read): Likewise.
23735
23736 2008-04-01 Pavel Roskin <proski@gnu.org>
23737
23738 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
23739 * disk/host.c (grub_host_open): Likewise.
23740 * disk/loopback.c (grub_loopback_open): Likewise.
23741 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
23742 disk->id as in disk/host.c, not a multi-character constant.
23743
23744 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
23745 later is obsolete, potentially dangerous and sets a bad example.
23746 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
23747 * util/misc.c (grub_util_get_image_size): Likewise.
23748
23749 * disk/loopback.c (options): Improve help for "--partitions".
23750
23751 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
23752 options to align them with the short options, e.g. "echo -e".
23753
23754 2008-03-31 Bean <bean123ch@gmail.com>
23755
23756 * video/reader/png.c (grub_png_data): New member is_16bit and
23757 image_data.
23758 (grub_png_decode_image_header): Detect 16 bit png image.
23759 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
23760 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
23761 (grub_video_reader_png): Release memory occupied by image_data.
23762
23763 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
23764 4096 bytes.
23765 (grub_nfs_mount): Skip the test for sector per cluster.
23766
23767 * include/grub/ntfs.h (MAX_SPC): Removed.
23768
23769 2008-03-31 Bean <bean123ch@gmail.com>
23770
23771 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
23772 (grub_probe_SOURCES): Add fs/afs.c.
23773 (grub_fstest_SOURCES): Likewise.
23774 (afs_mod_SOURCES): New variable.
23775 (afs_mod_CFLAGS): Likewise.
23776 (afs_mod_LDFLAGS): Likewise.
23777
23778 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
23779 (grub_emu_SOURCES): Likewise.
23780
23781 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23782
23783 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23784
23785 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
23786
23787 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23788
23789 * fs/afs.c: New file.
23790
23791 2008-03-30 Pavel Roskin <proski@gnu.org>
23792
23793 * disk/host.c: Include grub/misc.h to fix a warning.
23794 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
23795 warnings about implicit declarations.
23796
23797 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
23798 variable.
23799 * include/grub/i386/loader.h: Change declaration of
23800 grub_linux_boot() to match what grub_loader_set() expects.
23801 * util/getroot.c (grub_guess_root_device): Return const char* to
23802 fix a warning.
23803 * util/grub-probe.c (probe): Fix a warning about uninitialized
23804 abstraction_name variable.
23805 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
23806 second argument as unused to fix a warning.
23807
23808 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
23809 missing grub_error() call.
23810
23811 * util/update-grub_lib.in: Define datarootdir, since Autoconf
23812 2.60 and newer uses it to define datadir.
23813
23814 * commands/sleep.c: Fix warning about implicit declaration.
23815 * disk/memdisk.c: Likewise.
23816 * loader/aout.c: Likewise.
23817 * loader/i386/bsd_normal.c: Likewise.
23818 * util/grub-probe.c: Likewise.
23819
23820 * commands/i386/cpuid.c (has_longmode): Make static.
23821 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
23822 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
23823
23824 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
23825 GDT. This is more robust, as %ds can change.
23826 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
23827 calling real_to_prot().
23828 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
23829
23830 2008-03-28 Pavel Roskin <proski@gnu.org>
23831
23832 * kern/i386/pc/startup.S: Assert that uncompressed functions
23833 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
23834 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
23835 code, as they push parts of the code (error handlers) beyond
23836 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
23837 code as correctness and size.
23838
23839 2008-03-28 Pavel Roskin <proski@gnu.org>
23840
23841 * kern/i386/pc/startup.S
23842 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
23843 data block address to the real mode, keep offset minimal. This
23844 works around a bug in AWARD BIOS on old Athlon systems, which
23845 makes CD detection hang.
23846
23847 2008-03-26 Pavel Roskin <proski@gnu.org>
23848
23849 * normal/color.c (grub_parse_color_name_pair): Make `name' a
23850 const.
23851 * include/grub/normal.h: Add grub_parse_color_name_pair()
23852 declaration.
23853
23854 2008-03-24 Bean <bean123ch@gmail.com>
23855
23856 * disk/i386/pc/biosdisk.c (cd_start): Removed.
23857 (cd_count): Removed.
23858 (cd_drive): New variable.
23859 (grub_biosdisk_get_drive): Don't check for (cdN) device.
23860 (grub_biosdisk_call_hook): Likewise.
23861 (grub_biosdisk_iterate): Change cdrom detection method.
23862 (grub_biosdisk_open): Replace cd_start with cd_drive.
23863 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
23864 detect cdrom device.
23865
23866 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
23867 Removed.
23868 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
23869 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
23870 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
23871 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
23872 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
23873 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
23874 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
23875 (grub_biosdisk_cdrp): New structure.
23876 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
23877
23878 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
23879
23880 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
23881 device.
23882
23883 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
23884 New function.
23885
23886 2008-03-20 Robert Millan <rmh@aybabtu.com>
23887
23888 Remove 2 TiB limit in ata.mod.
23889 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
23890 (grub_ata_dumpinfo): Print sector count with 0x%llx.
23891 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
23892 grub_uint64_t instead of grub_uint32_t.
23893
23894 2008-03-05 Bean <bean123ch@gmail.com>
23895
23896 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
23897 (grub_multiboot): Set boot device.
23898
23899 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
23900
23901 2008-03-02 Bean <bean123ch@gmail.com>
23902
23903 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
23904 symlink_buffer.
23905
23906 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
23907
23908 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
23909 texinfo.tex.
23910
23911 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
23912 modified.
23913
23914 * docs/fdl.texi: New file.
23915
23916 * docs/mdate-sh: New file. Copied from gnulib.
23917 * docs/texinfo.tex: Likewise.
23918
23919 * config.guess: Updated from gnulib.
23920 * install-sh: Likewise.
23921
23922 2008-02-28 Robert Millan <rmh@aybabtu.com>
23923
23924 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
23925 (aout_mod_SOURCES): New variable.
23926 (aout_mod_CFLAGS): Likewise.
23927 (aout_mod_LDFLAGS): Likewise.
23928
23929 * conf/i386-ieee1275.rmk: Likewise.
23930
23931 2008-02-28 Robert Millan <rmh@aybabtu.com>
23932
23933 * util/update-grub.in: Reorganise terminal validity check. Accept
23934 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
23935 Based on suggestion by Franklin PIAT.
23936
23937 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
23938
23939 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
23940 function.
23941 * util/getroot.c (grub_util_check_block_device): New function that
23942 returns the given argument if it is a block device and returns NULL else.
23943 * util/grub-probe.c (argument_is_device): New variable.
23944 (probe): Promote device_name from a variable to an argument. Receive
23945 device_name from grub_util_check_block_device() if path is NULL and from
23946 grub_guess_root_device() else. Do not free() device_name anymore.
23947 (options): Introduce new parameter '-d, --device'.
23948 (main): Add description of the new parameter to the help screen.
23949 Rename path variable to argument. Set argument_is_device if the '-d'
23950 option is given. Pass argument to probe() depending on
23951 argument_is_device.
23952
23953 2008-02-24 Bean <bean123ch@gmail.com>
23954
23955 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
23956 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
23957 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
23958 (GRUB_ISO9660_VOLDESC_PART): Likewise.
23959 (GRUB_ISO9660_VOLDESC_END): Likewise.
23960 (grub_iso9660_primary_voldesc): New member escape.
23961 (grub_iso9660_data): New member joliet.
23962 (grub_iso9660_convert_string): New function.
23963 (grub_iso9660_mount): Detect joliet extension.
23964 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
23965 (grub_iso9660_iso9660_label): Likewise.
23966
23967 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
23968 (grub_setup_SOURCES): Add fs/udf.c.
23969 (grub_fstest_SOURCES): Likewise.
23970 (udf_mod_SOURCES): New variable.
23971 (udf_mod_CFLAGS): Likewise.
23972 (udf_mod_LDFLAGS): Likewise.
23973
23974 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
23975 (grub_emu_SOURCES): Likewise.
23976
23977 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23978
23979 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23980
23981 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
23982
23983 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23984
23985 * fs/udf.c: New file.
23986
23987 2008-02-24 Robert Millan <rmh@aybabtu.com>
23988
23989 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
23990 (normal/lexer.c_DEPENDENCIES): New variables.
23991 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
23992 (normal/lexer.c_DEPENDENCIES): Likewise.
23993 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
23994 (normal/lexer.c_DEPENDENCIES): Likewise.
23995 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
23996 (normal/lexer.c_DEPENDENCIES): Likewise.
23997 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
23998 (normal/lexer.c_DEPENDENCIES): Likewise.
23999 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
24000 (normal/lexer.c_DEPENDENCIES): Likewise.
24001
24002 2008-02-23 Robert Millan <rmh@aybabtu.com>
24003
24004 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
24005 since they were intended to be in hex. This didn't break previously
24006 because of a bug in gpt_partition_map_iterate() (see below).
24007
24008 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
24009 when checking the validity of GPT header.
24010 Remove `partno', since it always provides the same information as `i'.
24011
24012 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
24013
24014 * include/grub/efi/time.h: Fix a wrong comment.
24015
24016 2008-02-19 Pavel Roskin <proski@gnu.org>
24017
24018 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
24019 message.
24020
24021 2008-02-19 Bean <bean123ch@gmail.com>
24022
24023 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
24024 (aout_mod_SOURCES): New variable.
24025 (aout_mod_CFLAGS): Likewise.
24026 (aout_mod_LDFLAGS): Likewise.
24027 (_bsd_mod_SOURCES): New variable.
24028 (_bsd_mod_CFLAGS): Likewise.
24029 (_bsd_mod_LDFLAGS): Likewise.
24030 (bsd_mod_SOURCES): New variable.
24031 (bsd_mod_CFLAGS): Likewise.
24032 (bsd_mod_LDFLAGS): Likewise.
24033
24034 * include/grub/aout.h: New file.
24035
24036 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
24037
24038 * include/grub/i386/bsd.h: New file.
24039
24040 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
24041 to make it public.
24042
24043 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
24044 function is called, so that it's possible to change it inside the hook.
24045 (grub_elf64_load): Likewise.
24046 (grub_elf_file): Don't close the file if elf header is not found.
24047 (grub_elf_close): Close the file if grub_elf_file fails (The new
24048 grub_elf_file won't close it).
24049 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
24050 (grub_elf64_size): Likewise.
24051
24052 * kern/i386/loader.S (grub_unix_real_boot): New function.
24053
24054 * loader/aout.c: New file.
24055
24056 * loader/i386/bsd.c: New file.
24057
24058 * loader/i386/bsd_normal.c: New file.
24059
24060 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
24061
24062 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
24063 can test other formats.
24064
24065 2008-02-19 Robert Millan <rmh@aybabtu.com>
24066
24067 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
24068 (grub_gpt_partition_type_empty): Redefine with macro from
24069 `<grub/gpt_partition.h>'.
24070 (gpt_partition_map_iterate): Adjust partition type comparison.
24071
24072 Export `entry' as partmap-specific `part.data' struct.
24073 (grub_gpt_header, grub_gpt_partentry): Move from here ...
24074
24075 * include/grub/gpt_partition.h (grub_gpt_header)
24076 (grub_gpt_partentry): ... to here (new file).
24077
24078 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
24079
24080 (grub_gpt_partition_type_bios_boot): New const variable, defined
24081 with macro from `<grub/gpt_partition.h>'.
24082
24083 (setup): Replace `first_start' with `embed_region', which keeps
24084 track of the embed region (and is partmap-agnostic).
24085
24086 Replace find_first_partition_start() with find_usable_region(),
24087 which finds a usable region for embedding using partmap-specific
24088 knowledge (supports PC/MSDOS and GPT).
24089
24090 Fix all assumptions that the embed region start at sector 1, using
24091 `embed_region.start' from now on. Similarly, use `embed_region.end'
24092 rather than `first_start' to calculate available size.
24093
24094 In grub_util_info() message, replace "into after the MBR" with an
24095 indication of the specific sector our embed region starts at.
24096
24097 2008-02-19 Robert Millan <rmh@aybabtu.com>
24098
24099 * DISTLIST: Replace `commands/ieee1275/halt.c' and
24100 `commands/ieee1275/reboot.c' with `commands/halt.c' and
24101 `commands/reboot.c'.
24102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
24103 (halt_mod_SOURCES): Likewise.
24104 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
24105 (halt_mod_SOURCES): Likewise.
24106
24107 2008-02-17 Christian Franke <franke@computer.org>
24108
24109 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
24110
24111 2008-02-17 Robert Millan <rmh@aybabtu.com>
24112
24113 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
24114 set `first_start' to 0 for non-PC/MSDOS partition maps.
24115
24116 2008-02-16 Robert Millan <rmh@aybabtu.com>
24117
24118 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
24119 do not assume partition map is PC/MSDOS before performing checks that
24120 are specific to that layout.
24121
24122 2008-02-13 Robert Millan <rmh@aybabtu.com>
24123
24124 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
24125 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
24126 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
24127
24128 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
24129
24130 * configure.ac: Only a cosmetic change on the handling of
24131 -fno-stack-protector.
24132
24133 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
24134
24135 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
24136 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
24137 reboot.c.
24138 (grub_install_SOURCES): Add halt.mod and reboot.mod.
24139 (halt_mod_SOURCES): New variable.
24140 (halt_mod_CFLAGS): Likewise.
24141 (halt_mod_LDFLAGS): Likewise.
24142 (reboot_mod_SOURCES): Likewise.
24143 (reboot_mod_CFLAGS): Likewise.
24144 (reboot_mod_LDFLAGS): Likewise.
24145
24146 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
24147 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
24148 reboot.c.
24149 (halt_mod_SOURCES): Likewise.
24150 (reboot_mod_SOURCES): Likewise.
24151
24152 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
24153 commands/i386/pc/reboot.c by commands/reboot.c.
24154 (reboot_mod_SOURCES): Likewise.
24155
24156 * commands/i386/pc/reboot.c: merge this file ...
24157
24158 * commands/ieee1275/reboot.c: ... and this file ...
24159
24160 * commands/reboot.c: ... to this file.
24161 Add some precompiler directive to include the correct header for
24162 each machine.
24163
24164 * commands/ieee1275/halt.c: move this file ...
24165
24166 * commands/halt.c: ... to here.
24167 Add some precompiler directive to include the correct header for
24168 each machine.
24169
24170 * include/grub/efi/efi.h (grub_reboot): New function declaration.
24171 (grub_halt): Likewise.
24172
24173 * kern/efi/efi.c (grub_reboot): New function.
24174 (grub_halt): Likewise.
24175
24176 2008-02-12 Robert Millan <rmh@aybabtu.com>
24177
24178 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
24179 /dev (like it is done for /dev/mapper). This doesn't provide support
24180 for EVMS, but at least it is now easy to identify the problem when it
24181 arises.
24182
24183 2008-02-11 Robert Millan <rmh@aybabtu.com>
24184
24185 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
24186 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
24187 comparing it with -1, not 0.
24188
24189 2008-02-10 Robert Millan <rmh@aybabtu.com>
24190
24191 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
24192 `disk/lvm.c'.
24193 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24194 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
24195
24196 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
24197 `disk/lvm.c' to the end of the list.
24198 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
24199 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24200
24201 2008-02-10 Robert Millan <rmh@aybabtu.com>
24202
24203 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
24204 grub_print_error() instead. This will let user know why we're entering
24205 rescue mode.
24206 Based on suggestions from Sam Morris.
24207
24208 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
24209
24210 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
24211 on remaining N args, instead of "--" arg N times.
24212
24213 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
24214
24215 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
24216 (fill_with_default_glyph): Changed to use unknown_glyph for fill
24217 pattern for unknown glyphs.
24218
24219 2008-02-09 Robert Millan <rmh@aybabtu.com>
24220
24221 * configure.ac: Probe for `help2man'.
24222 * Makefile.in (builddir): New variable.
24223 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
24224 or otherwise add a few flags/options to it.
24225 (install-local): For every executable utility or script that is
24226 installed, invoke $(HELP2MAN) to install a manpage based on --help
24227 output.
24228
24229 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
24230 that it doesn't prevent --help from working in build tree.
24231
24232 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
24233 with `bug-grub@gnu.org'.
24234 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
24235 * util/update-grub.in (usage): New function.
24236 Implement proper argument check, with support for --help and --version
24237 (as well as existing -y).
24238
24239 2008-02-09 Christian Franke <franke@computer.org>
24240
24241 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
24242 avoid overwriting previous output.
24243 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
24244
24245 2008-02-09 Robert Millan <rmh@aybabtu.com>
24246
24247 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
24248 drawing the menu.
24249
24250 2008-02-09 Robert Millan <rmh@aybabtu.com>
24251
24252 * commands/sleep.c: New file.
24253 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
24254 (sleep_mod_SOURCES): New variable.
24255 (sleep_mod_CFLAGS): Likewise.
24256 (sleep_mod_LDFLAGS): Likewise.
24257
24258 2008-02-09 Robert Millan <rmh@aybabtu.com>
24259
24260 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
24261 situations in which we can deduce the RAID size and the superblock
24262 doesn't match it.
24263
24264 2008-02-09 Robert Millan <rmh@aybabtu.com>
24265
24266 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
24267 and return a grub_diskmemberlist_t composed of LVM physical volumes.
24268 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
24269
24270 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
24271 and return a grub_diskmemberlist_t composed of physical array members.
24272 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
24273
24274 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
24275 prototype.
24276 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
24277 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
24278 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
24279
24280 * util/grub-probe.c (probe): Move partmap probing code from here ...
24281 (probe_partmap): ... to here.
24282 (probe): Use probe_partmap() once for the disk we're probing, and
24283 additionally, when such disk contains a memberlist() struct member,
24284 once for each disk that is contained in the structure returned by
24285 memberlist().
24286
24287 2008-02-09 Robert Millan <rmh@aybabtu.com>
24288
24289 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
24290 environment variable to 'all' in order to obtain debug output from
24291 non-util/ code.
24292 * util/i386/pc/grub-setup.c (main): Likewise.
24293
24294 2008-02-08 Robert Millan <rmh@aybabtu.com>
24295
24296 * disk/raid.c (grub_raid_scan_device): Check for
24297 `array->device[sb.this_disk.number]' rather than for
24298 `array->device[sb.this_disk.number]->name', since the latter is not
24299 guaranteed to be accessible.
24300
24301 2008-02-08 Robert Millan <rmh@aybabtu.com>
24302
24303 * disk/raid.c: Update copyright.
24304 * fs/cpio.c: Likewise.
24305 * include/grub/raid.h: Likewise.
24306 * loader/i386/pc/multiboot.c: Likewise.
24307 * util/hostfs.c: Likewise.
24308
24309 2008-02-08 Robert Millan <rmh@aybabtu.com>
24310
24311 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
24312 to a grub_disk_t array.
24313 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
24314 `device[x]'.
24315 (grub_raid_scan_device): Replace `device[x].name' accesses with
24316 `device[x]->name'. Simplify initialization of `array->device[x]'.
24317
24318 2008-02-08 Robert Millan <rmh@aybabtu.com>
24319
24320 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
24321 grub_dprintf() calls.
24322 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
24323 error message.
24324
24325 2008-02-07 Christian Franke <franke@computer.org>
24326
24327 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
24328 instead of fseek and ftell to support large files.
24329 (grub_hostfs_read): Likewise.
24330
24331 2008-02-07 Robert Millan <rmh@aybabtu.com>
24332
24333 Patch from Jeroen Dekkers.
24334 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
24335 failure, since successfully reading all array members might not be
24336 required.
24337
24338 2008-02-06 Robert Millan <rmh@aybabtu.com>
24339
24340 * util/grub-probe.c (probe): Simplify partmap probing (with the
24341 assumption that the first word up to the underscore equals to
24342 the module name).
24343
24344 2008-02-06 Christian Franke <franke@computer.org>
24345
24346 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
24347 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
24348 last block of a cpio or tar stream.
24349 Check for "TRAILER!!!" instead of any empty data
24350 block to detect last block of a cpio stream.
24351 (grub_cpio_dir): Fix constness of variable np.
24352 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
24353 cpio or tar trailer is detected. This fixes a crash
24354 on open of a non existing file.
24355
24356 2008-02-05 Bean <bean123ch@gmail.com>
24357
24358 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
24359 address of entry.
24360 (grub_multiboot_load_elf64): Likewise.
24361 (grub_multiboot): Initialize mbi structure.
24362
24363 * util/grub-fstest.c: Don't include unused header file script.h.
24364
24365 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
24366 of file.
24367 (grub_fstest_SOURCES): Likewise.
24368
24369 2008-02-05 Robert Millan <rmh@aybabtu.com>
24370
24371 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
24372 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
24373 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
24374 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
24375
24376 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
24377 (translation_table): Replace hardcoded values with macros
24378 provided by `<grub/term.h>'.
24379
24380 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
24381 (keyboard_map): Correct/add a few values, with macros provided
24382 by `<grub/term.h>'.
24383 (keyboard_map_shift): Zero values that don't differ from their
24384 `keyboard_map' equivalents.
24385 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
24386 Discard the second scan code that is always sent by Caps lock.
24387 Only use `keyboard_map_shift' when it provides a non-zero value,
24388 otherwise fallback to `keyboard_map'.
24389
24390 2008-02-04 Bean <bean123ch@gmail.com>
24391
24392 * Makefile.in (enable_grub_fstest): New variable.
24393
24394 * conf/common.rmk (grub_fstest_init.lst): New rule.
24395 (grub_fstest_init.h): Likewise.
24396 (grub_fstest_init.c): Likewise.
24397 (util/grub-fstest.c_DEPENDENCIES): New variable.
24398 (grub_fstest_SOURCES): Likewise.
24399
24400 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
24401
24402 * util/grub-fstest.c: New file.
24403
24404 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
24405
24406 Make grub-setup handle a separate root device.
24407
24408 * util/i386/pc/grub-setup.c (setup): Always open the root device,
24409 so that the root device can be compared with the destination
24410 device.
24411 When embedding the core image, if the root and destination devices
24412 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
24413 0xFF.
24414 When not embedding, set ROOT_DRIVE to 0xFF.
24415
24416 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
24417
24418 Add support for having a grub directory in a different drive. This
24419 is still only the data handling part.
24420
24421 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
24422 (codestart): Save %dh in GRUB_ROOT_DRIVE.
24423 (grub_root_drive): New variable.
24424
24425 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
24426 instead of GRUB_BOOT_DRIVE to construct a device name. Set
24427 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
24428 as it was.
24429
24430 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
24431
24432 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
24433 macro.
24434 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
24435
24436 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
24437 is bogus, because PXE booting does not specify any drive
24438 correctly.
24439
24440 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
24441 am not sure if this is really correct.
24442
24443 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
24444 is always identical to the boot drive when booting from a CD.
24445
24446 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
24447 longer.
24448 (root_drive): New variable.
24449 (real_start): Unconditionally set %dh to ROOT_DRIVE.
24450 (setup_sectors): Push %dx right after popping it, because %dh will
24451 be modified later.
24452 (copy_buffer): Restore %dx.
24453
24454 2008-02-03 Robert Millan <rmh@aybabtu.com>
24455
24456 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
24457 use `cdboot.img' for cdrom images.
24458
24459 2008-02-03 Robert Millan <rmh@aybabtu.com>
24460
24461 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
24462 only setup gfxterm when `font' command has succeeded.
24463
24464 2008-02-03 Robert Millan <rmh@aybabtu.com>
24465
24466 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
24467 (grub_rescue_cmd_multiboot_loader)
24468 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
24469
24470 2008-02-03 Pavel Roskin <proski@gnu.org>
24471
24472 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
24473 %edx and %esi from stack only after grub_gate_a20() is called.
24474 grub_gate_a20() clobbers %edx.
24475
24476 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
24477
24478 * configure.ac (AC_INIT): Bumped to 1.96.
24479
24480 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
24481 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
24482 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
24483 video/readers/png.c.
24484
24485 2008-02-03 Bean <bean123ch@gmail.com>
24486
24487 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
24488 (cdboot_img_SOURCES): New variable.
24489 (cdboot_img_ASFLAGS): New variable.
24490 (cdboot_img_LDFLAGS): New variable.
24491
24492 * boot/i386/pc/cdboot.S: New file.
24493
24494 * disk/i386/pc/biosdisk.c (cd_start): New variable.
24495 (cd_count): Likewise.
24496 (grub_biosdisk_get_drive): Add support for cd device.
24497 (grub_biosdisk_call_hook): Likewise.
24498 (grub_biosdisk_iterate): Likewise.
24499 (grub_biosdisk_open): Likewise.
24500 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
24501 (grub_biosdisk_rw): Support reading from cd device.
24502 (GRUB_MOD_INIT): Iterate cd devices.
24503
24504 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
24505 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
24506 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
24507
24508 * kern/i386/pc/init.c (make_install_device): Check for cd device.
24509
24510 2008-02-02 Robert Millan <rmh@aybabtu.com>
24511
24512 * commands/read.c: New file.
24513 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
24514 (read_mod_SOURCES): New variable.
24515 (read_mod_CFLAGS): Likewise.
24516 (read_mod_LDFLAGS): Likewise.
24517
24518 2008-02-02 Robert Millan <rmh@aybabtu.com>
24519
24520 * normal/main.c (grub_normal_execute): Check for `menu->size' when
24521 determining whether menu has to be displayed.
24522
24523 2008-02-02 Marco Gerards <marco@gnu.org>
24524
24525 * bus/pci.c: New file.
24526
24527 * include/grub/pci.h: Likewise.
24528
24529 * include/grub/i386/pc/pci.h: Likewise.
24530
24531 * commands/lspci.c: Likewise.
24532
24533 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
24534 `lspci.mod'.
24535 (pci_mod_SOURCES): New variable.
24536 (pci_mod_CFLAGS): Likewise.
24537 (pci_mod_LDFLAGS): Likewise.
24538 (lspci_mod_SOURCES): Likewise.
24539 (lspci_mod_CFLAGS): Likewise.
24540 (lspci_mod_LDFLAGS): Likewise.
24541
24542 2008-02-02 Bean <bean123ch@gmail.com>
24543
24544 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
24545 (grub_ufs_get_file_block): Fix indirect block calculation problem.
24546
24547 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
24548 (grub_xfs_btree_node): New structure.
24549 (grub_xfs_btree_root): New structure.
24550 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
24551 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
24552 (GRUB_XFS_EXTENT_BLOCK): Likewise.
24553 (GRUB_XFS_EXTENT_SIZE): Likewise.
24554 (grub_xfs_read_block): Support btree format type.
24555 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
24556 Use directory block as basic unit.
24557
24558 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
24559
24560 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
24561 __attribute__ ((__regparm__ (1))).
24562
24563 2008-02-01 Robert Millan <rmh@aybabtu.com>
24564
24565 Correct a mistake in previous commit.
24566
24567 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
24568 top.
24569 (normal/command.c_DEPENDENCIES): New variable.
24570
24571 2008-02-01 Robert Millan <rmh@aybabtu.com>
24572
24573 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
24574 top.
24575 (normal/command.c_DEPENDENCIES): New variable.
24576 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
24577 * conf/i386-ieee1275.rmk: Likewise.
24578 * conf/i386-linuxbios.rmk: Likewise.
24579 * conf/i386-pc.rmk: Likewise.
24580 * conf/sparc64-ieee1275.rmk: Likewise.
24581 * conf/powerpc-ieee1275.rmk: Likewise.
24582 (grub_emu_SOURCES): Add `fs/fshelp.c'.
24583
24584 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
24585
24586 2008-02-01 Robert Millan <rmh@aybabtu.com>
24587
24588 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
24589 call at beginning of function.
24590
24591 2008-01-31 Pavel Roskin <proski@gnu.org>
24592
24593 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
24594 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
24595 (grub_mkrescue_SOURCES): Likewise.
24596 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
24597
24598 2008-01-30 Robert Millan <rmh@aybabtu.com>
24599
24600 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
24601 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
24602 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
24603 (grub_probe_SOURCES): ... to here.
24604
24605 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
24606 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
24607 * conf/i386-ieee1275.rmk: Likewise.
24608 * conf/i386-linuxbios.rmk: Likewise.
24609 * conf/powerpc-ieee1275.rmk: Likewise.
24610
24611 2008-01-30 Tristan Gingold <gingold@free.fr>
24612
24613 * kern/rescue.c: Silently accept empty lines.
24614
24615 2008-01-29 Bean <bean123ch@gmail.com>
24616
24617 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
24618 (real_code_2): Code cleanup and change comment style.
24619 (move_memory): Avoid using 32-bit address mode.
24620
24621 2008-01-29 Bean <bean123ch@gmail.com>
24622
24623 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
24624 (png_mod_SOURCES): New variable.
24625 (png_mod_CFLAGS): Likewise.
24626 (png_mod_LDFLAGS): Likewise.
24627
24628 * video/readers/png.c: New file.
24629
24630 2008-01-28 Robert Millan <rmh@aybabtu.com>
24631
24632 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
24633 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
24634 `ifndef GRUB_MOD_GAP' hack.
24635 * util/elf/grub-mkimage.c (add_segments): Likewise.
24636
24637 2008-01-27 Robert Millan <rmh@aybabtu.com>
24638
24639 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
24640 `GRUB_MOD_GAP' for platforms in which it's not defined.
24641 * util/elf/grub-mkimage.c (add_segments): Likewise.
24642
24643 2008-01-27 Robert Millan <rmh@aybabtu.com>
24644
24645 Get grub-emu to build again (including parallel builds).
24646
24647 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
24648 Split into ...
24649 (util/grub-emu.c_DEPENDENCIES): ... this, ...
24650 (normal/execute.c_DEPENDENCIES): ... this, ...
24651 (grub-emu_DEPENDENCIES): ... and this.
24652
24653 * conf/i386-efi.rmk: Likewise.
24654 * conf/i386-linuxbios.rmk: Likewise.
24655 * conf/i386-ieee1275.rmk: Likewise.
24656 * conf/powerpc-ieee1275.rmk: Likewise.
24657 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
24658
24659 2008-01-27 Robert Millan <rmh@aybabtu.com>
24660
24661 * NEWS: Add a few items.
24662
24663 2008-01-27 Robert Millan <rmh@aybabtu.com>
24664
24665 Fix parallel builds with grub-emu. Based on earlier commit for
24666 grub-probe and grub-setup.
24667
24668 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24669 (util/grub-emu.c_DEPENDENCIES): ... this.
24670 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24671 (util/grub-emu.c_DEPENDENCIES): ... this.
24672 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24673 (util/grub-emu.c_DEPENDENCIES): ... this.
24674 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24675 (util/grub-emu.c_DEPENDENCIES): ... this.
24676 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24677 (util/grub-emu.c_DEPENDENCIES): ... this.
24678
24679 2008-01-27 Pavel Roskin <proski@gnu.org>
24680
24681 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
24682 to create a gap between _end and the modules added to the image
24683 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
24684 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
24685 * util/elf/grub-mkimage.c (add_segments): Likewise.
24686
24687 2008-01-26 Pavel Roskin <proski@gnu.org>
24688
24689 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
24690 just return an error.
24691
24692 2008-01-26 Bean <bean123ch@gmail.com>
24693
24694 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
24695 (grub_reiserfs_get_item): Save offset of the next item.
24696 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
24697
24698 2008-01-25 Robert Millan <rmh@aybabtu.com>
24699
24700 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
24701 make all filesystem sources appear together (possibly fixing omissions
24702 while at it).
24703 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24704 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24705 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
24706 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24707
24708 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
24709 add `kern/file.c'.
24710 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
24711 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
24712 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
24713 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
24714
24715 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
24716 (probe): Add a sanity check to make sure of our ability to read
24717 requested files when probing for filesystem type.
24718
24719 * genmk.rb: Update copyright year (2007).
24720
24721 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
24722 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
24723 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
24724 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
24725 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
24726 : Remove function prototypes.
24727
24728 2008-01-25 Robert Millan <rmh@aybabtu.com>
24729
24730 Revert my previous commits (based on wrong assumption of how grub_errno
24731 works).
24732
24733 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
24734 * kern/file.c (grub_file_open): Likewise.
24735
24736 2008-01-24 Pavel Roskin <proski@gnu.org>
24737
24738 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
24739 that hang if GRUB tries to setup colors.
24740 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
24741 colors for firmwares that don't support it.
24742 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
24743 Recognize Open Hack'Ware, set flags to work around its
24744 limitations.
24745
24746 2008-01-24 Robert Millan <rmh@aybabtu.com>
24747
24748 * kern/file.c (grub_file_open): Do not account previous failures of
24749 unrelated functions when grub_errno is checked for.
24750 Reported by Oleg Strikov.
24751
24752 2008-01-24 Bean <bean123ch@gmail.com>
24753
24754 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
24755 (grub_ufs_sblock): New member volume name.
24756 (grub_ufs_find_file): Fix string copy bug.
24757 (grub_ufs_label): Implement this function properly.
24758
24759 * fs/hfs.c (grub_hfs_cnid_type): New enum.
24760 (grub_hfs_iterate_records): Use the correct file number for extents
24761 and catalog file. Fix problem in next index calculation.
24762 (grub_hfs_find_node): Replace recursive function call with loop.
24763 (grub_hfs_iterate_dir): Replace recursive function call with loop.
24764
24765 2008-01-23 Robert Millan <rmh@aybabtu.com>
24766
24767 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
24768 `<grub/symbol.h>' and `<grub/multiboot.h>'.
24769 (grub_multiboot2_real_boot): New function prototype.
24770
24771 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
24772 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
24773
24774 * kern/i386/ieee1275/init.c (grub_os_area_addr)
24775 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
24776
24777 2008-01-23 Robert Millan <rmh@aybabtu.com>
24778
24779 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
24780 #ifdef'ed out grub_printf().
24781
24782 2008-01-23 Robert Millan <rmh@aybabtu.com>
24783
24784 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
24785 grub_dprintf calls, since they make "debug=all" mode unusable.
24786 (grub_console_checkkey): Likewise.
24787
24788 2008-01-23 Robert Millan <rmh@aybabtu.com>
24789
24790 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
24791 `term/i386/pc/at_keyboard.c'.
24792 (pkglib_MODULES): Add `serial.mod'.
24793 (serial_mod_SOURCES): New variable.
24794 (serial_mod_CFLAGS): Likewise.
24795 (serial_mod_LDFLAGS): Likewise.
24796
24797 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
24798 `<grub/powerpc/ieee1275/console.h>'.
24799 (grub_keyboard_controller_init): New function prototype.
24800 (grub_console_checkkey): Likewise.
24801 (grub_console_getkey): Likewise.
24802
24803 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
24804 keyboard on i386.
24805
24806 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
24807 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
24808
24809 2008-01-23 Robert Millan <rmh@aybabtu.com>
24810
24811 * kern/i386/pc/init.c (make_install_device): When memdisk image is
24812 present, "(memdisk)/boot/grub" becomes the default prefix.
24813
24814 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
24815 a memdisk tarball with all the modules. Add --overlay=DIR option that
24816 allows users to overlay additional files into the image.
24817
24818 2008-01-23 Robert Millan <rmh@aybabtu.com>
24819
24820 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
24821 and `machine/memory.h'.
24822 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
24823 (_multiboot_mod_SOURCES): New variable.
24824 (_multiboot_mod_CFLAGS): Likewise.
24825 (_multiboot_mod_LDFLAGS): Likewise.
24826 (multiboot_mod_SOURCES): Likewise.
24827 (multiboot_mod_CFLAGS): Likewise.
24828 (multiboot_mod_LDFLAGS): Likewise.
24829
24830 * include/grub/i386/ieee1275/loader.h: New file.
24831
24832 * include/grub/i386/ieee1275/machine.h: Likewise.
24833
24834 * include/grub/i386/ieee1275/memory.h: Likewise.
24835
24836 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
24837 variable declaration.
24838 (grub_os_area_size): Likewise.
24839
24840 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
24841 (grub_lower_mem, grub_upper_mem): New variables.
24842 (grub_stop_floppy): New function (just to make
24843 grub_multiboot2_real_boot() happy).
24844
24845 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
24846 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
24847 (grub_stop): New function.
24848 Include `"../realmode.S"' and `"../loader.S"'.
24849
24850 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
24851 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
24852
24853 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
24854 rely on grub_multiboot2_real_boot() for final boot.
24855
24856 2008-01-22 Robert Millan <rmh@aybabtu.com>
24857
24858 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
24859 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
24860 device that doesn't look like an SD card.
24861 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
24862 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
24863 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
24864 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
24865 found.
24866
24867 2008-01-22 Robert Millan <rmh@aybabtu.com>
24868
24869 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
24870 avoid claiming over our own code.
24871
24872 2008-01-22 Bean <bean123ch@gmail.com>
24873
24874 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
24875 (jpeg_mod_SOURCES): New variable.
24876 (jpeg_mod_CFLAGS): Likewise.
24877 (jpeg_mod_LDFLAGS): Likewise.
24878
24879 * video/readers/jpeg.c : New file.
24880
24881 2008-01-22 Bean <bean123ch@gmail.com>
24882
24883 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
24884 there are no more items.
24885
24886 2008-01-21 Robert Millan <rmh@aybabtu.com>
24887
24888 * kern/mm.c (grub_mm_init_region): Improve debug message.
24889
24890 2008-01-21 Robert Millan <rmh@aybabtu.com>
24891
24892 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
24893 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
24894 address.
24895 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
24896 a C macro.
24897 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
24898 Indicates start of upper memory.
24899 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
24900 (generate_image): Abort when image size is big enough to corrupt
24901 upper memory.
24902
24903 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
24904 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
24905 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
24906 instead of hardcoding 0xA0000.
24907 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
24908 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
24909 instead of hardcoding 0xA0000.
24910
24911 2008-01-21 Robert Millan <rmh@aybabtu.com>
24912
24913 * disk/memdisk.c (memdisk_size): New variable.
24914 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
24915 `memdisk_size'.
24916 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
24917 image to dynamic memory.
24918 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
24919 `memdisk_size'. Free memdisk block.
24920
24921 2008-01-21 Robert Millan <rmh@aybabtu.com>
24922
24923 Fix detection of very small filesystems (like tar).
24924
24925 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
24926 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
24927 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
24928 a problem with this disk).
24929
24930 2008-01-21 Robert Millan <rmh@aybabtu.com>
24931
24932 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
24933 on grub_biosdisk_rw_standard() error.
24934
24935 2008-01-21 Robert Millan <rmh@aybabtu.com>
24936
24937 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
24938 recent changes.
24939 * kern/elf.c: Likewise.
24940 * kern/ieee1275/ieee1275.c: Likewise.
24941 * kern/powerpc/ieee1275/openfw.c: Likewise.
24942 * term/ieee1275/ofconsole.c: Likewise.
24943
24944 2008-01-21 Robert Millan <rmh@aybabtu.com>
24945
24946 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
24947
24948 * include/grub/kernel.h (grub_arch_memdisk_addr)
24949 (grub_arch_memdisk_size): Moved from here ...
24950
24951 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
24952 (grub_arch_memdisk_size): ... to here.
24953
24954 2008-01-21 Robert Millan <rmh@aybabtu.com>
24955
24956 Mostly based on bugfix from Bean.
24957
24958 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
24959 attribute with hook() parameter.
24960 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
24961 declaration.
24962 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
24963 attribute with hook() parameter.
24964 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
24965 declaration.
24966
24967 2008-01-21 Robert Millan <rmh@aybabtu.com>
24968
24969 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
24970 (pkglib_MODULES): Add `memdisk.mod'.
24971 (memdisk_mod_SOURCES): New variable.
24972 (memdisk_mod_CFLAGS): Likewise.
24973 (memdisk_mod_LDFLAGS): Likewise.
24974
24975 * disk/memdisk.c: New file.
24976
24977 * include/grub/disk.h (grub_disk_dev_id): Add
24978 `GRUB_DISK_DEVICE_MEMDISK_ID'.
24979
24980 * include/grub/i386/pc/kernel.h
24981 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
24982 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
24983 (grub_kernel_image_size): New variable declaration.
24984 (grub_total_module_size): Likewise.
24985 (grub_memdisk_image_size): Likewise.
24986
24987 * include/grub/i386/pc/memory.h
24988 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
24989
24990 * include/grub/kernel.h: Include `<grub/symbol.h>'.
24991 (grub_arch_memdisk_addr): New variable declaration.
24992 (grub_arch_memdisk_size): Likewise.
24993
24994 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
24995 (grub_arch_memdisk_size): Likewise.
24996
24997 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
24998 (codestart): Replace hardcoded `0x100000' with
24999 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
25000
25001 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
25002 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
25003 not NULL, append the contents of the file it refers to, at the end of
25004 the compressed kernel image. Initialize `grub_memdisk_image_size'
25005 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
25006 (options): Add "memdisk"|'m' option.
25007 (main): Parse --memdisk|-m option, and pass user-provided path as
25008 parameter to generate_image().
25009
25010 2008-01-20 Robert Millan <rmh@aybabtu.com>
25011
25012 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
25013 grub_dprintf() calls from here ...
25014 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
25015
25016 2008-01-20 Robert Millan <rmh@aybabtu.com>
25017
25018 Fix detection of "real mode" when /options/real-mode? doesn't exist.
25019
25020 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
25021 declaration.
25022 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
25023 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
25024 `GRUB_IEEE1275_FLAG_REAL_MODE'.
25025 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
25026 property).
25027 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
25028 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
25029
25030 2008-01-19 Robert Millan <rmh@aybabtu.com>
25031
25032 Get rid of confusing function (superseded by
25033 `grub_ieee1275_get_integer_property')
25034 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
25035 prototype.
25036 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
25037 function.
25038 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
25039 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
25040 in native endianness from grub_ieee1275_get_integer_property().
25041
25042 2008-01-19 Robert Millan <rmh@aybabtu.com>
25043
25044 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
25045 command after "shut-down", since implementations differ on which
25046 the command for halt is.
25047
25048 2008-01-19 Robert Millan <rmh@aybabtu.com>
25049
25050 * include/grub/i386/linuxbios/console.h: Add header protection.
25051 (grub_keyboard_controller_init): New function prototype.
25052 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
25053 (KEYBOARD_COMMAND_READ): Likewise.
25054 (KEYBOARD_COMMAND_WRITE): Likewise.
25055 (KEYBOARD_SCANCODE_SET1): Likewise.
25056 (grub_keyboard_controller_write): New function.
25057 (grub_keyboard_controller_read): Likewise.
25058 (grub_keyboard_controller_init): Likewise.
25059
25060 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
25061 (grub_console_init): On coreboot/LinuxBIOS, call
25062 grub_keyboard_controller_init().
25063
25064 2008-01-19 Robert Millan <rmh@aybabtu.com>
25065
25066 PowerPC changes provided by Pavel Roskin.
25067
25068 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
25069 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
25070 don't rely on cmain() doing it.
25071 * kern/i386/ieee1275/startup.S (_start): Store %eax in
25072 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
25073
25074 2008-01-16 Robert Millan <rmh@aybabtu.com>
25075
25076 * include/grub/i386/linuxbios/memory.h
25077 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
25078 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
25079 receive `table_header' as argument. Instead, probe for it in the
25080 known memory ranges where it can be present.
25081 (grub_available_iterate): Do not pass a fixed `table_header' address
25082 to grub_linuxbios_table_iterate().
25083
25084 2008-01-15 Robert Millan <rmh@aybabtu.com>
25085
25086 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
25087 * conf/i386-ieee1275.rmk: New file.
25088 * include/grub/i386/ieee1275/console.h: Likewise.
25089 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
25090 * include/grub/i386/ieee1275/kernel.h: Likewise.
25091 * include/grub/i386/ieee1275/time.h: Likewise.
25092 * kern/i386/ieee1275/init.c: Likewise.
25093 * kern/i386/ieee1275/startup.S: Likewise.
25094
25095 2008-01-15 Robert Millan <rmh@aybabtu.com>
25096
25097 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
25098 when pointers are 32-bit (but still do set it to one when they are
25099 64-bit).
25100
25101 2008-01-15 Robert Millan <rmh@aybabtu.com>
25102
25103 * include/grub/ieee1275/ieee1275.h
25104 (grub_ieee1275_get_integer_property): New function prototype.
25105
25106 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
25107 (grub_ieee1275_get_integer_property): New function. Wraps around
25108 grub_ieee1275_get_property() to handle endianness.
25109
25110 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
25111 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
25112 where appropriate.
25113 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
25114 (grub_map): Likewise.
25115 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
25116
25117 2008-01-15 Bean <bean123ch@gmail.com>
25118
25119 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
25120 (grub_script_execute_cmdline): Reset grub_errno.
25121
25122 * normal/main.c (read_config_file): Reset grub_errno.
25123
25124 * normal/parse.y (script_init): New.
25125 (script): Move function and menuentry here.
25126 (delimiter): New.
25127 (command): Add delimiter at the end of command.
25128 (commands): Adjust to match the new command.
25129 (commandblock): Remove grub_script_lexer_record_start.
25130 (menuentry): Add grub_script_lexer_record_start, use the new commands.
25131 (if): Use the new commands.
25132
25133 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
25134
25135 2008-01-15 Robert Millan <rmh@aybabtu.com>
25136
25137 * normal/menu.c (run_menu): Move timeout message from here ...
25138 (print_timeout): ... to here.
25139 (run_menu): Use print_timeout() once during initial draw to print
25140 the whole message, and again in every clock tick to update only
25141 the number of seconds.
25142
25143 2008-01-15 Robert Millan <rmh@aybabtu.com>
25144
25145 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
25146 actual size of `available' from grub_ieee1275_get_property(), and
25147 restrict parsing to that bound.
25148
25149 2008-01-15 Christian Franke <franke@computer.org>
25150
25151 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
25152 (argp_program_version): Remove variable.
25153 (argp_program_bug_address): Likewise.
25154 (options): Convert from struct argp_option to struct option.
25155 (struct arguments): Remove.
25156 (parse_opt): Remove.
25157 (usage): New function.
25158 (main): Replace struct args members by simple variables.
25159 Replace argp_parse() by getopt_long().
25160 Add switch to evaluate options.
25161 Add missing "(...)" around root_dev in prefix string.
25162
25163 2008-01-14 Robert Millan <rmh@aybabtu.com>
25164
25165 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
25166 for grub_ieee1275_exit(), in order to improve portability.
25167
25168 2008-01-14 Robert Millan <rmh@aybabtu.com>
25169
25170 * util/grub.d/10_linux.in (prefix): Define.
25171 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
25172
25173 2008-01-13 Pavel Roskin <proski@gnu.org>
25174
25175 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
25176 grub_errno if no errors have been detected.
25177
25178 2008-01-12 Robert Millan <rmh@aybabtu.com>
25179
25180 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
25181 (grub_util_get_dev_abstraction): New function prototype.
25182
25183 * util/getroot.c: Include `<grub/util/getroot.h>'
25184 (grub_util_get_grub_dev): Move detection of abstraction type to ...
25185 (grub_util_get_dev_abstraction): ... here (new function).
25186
25187 * util/grub-probe.c: Convert PRINT_* to an enum. Add
25188 `PRINT_ABSTRACTION'.
25189 (probe): Probe for abstraction type when requested.
25190 (main): Understand `--target=abstraction'.
25191
25192 * util/i386/efi/grub-install.in: Add abstraction module to core
25193 image when it is found to be necessary.
25194 * util/i386/pc/grub-install.in: Likewise.
25195 * util/powerpc/ieee1275/grub-install.in: Likewise.
25196
25197 * util/update-grub_lib.in (font_path): Return system path without
25198 converting to GRUB path.
25199 * util/update-grub.in: Convert system path returned by font_path()
25200 to a GRUB path. Use `grub-probe -t abstraction' to determine what
25201 abstraction module is needed for loading fonts (if any). Export
25202 that as `GRUB_PRELOAD_MODULES'.
25203 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
25204 insmod commands).
25205
25206 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
25207
25208 Remove some unused code from reiserfs.
25209
25210 * fs/reiserfs.c (struct grub_reiserfs_key)
25211 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
25212 (struct grub_reiserfs_node_body): Removed.
25213 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
25214 Likewise.
25215 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
25216 Likewise.
25217 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
25218 Likewise.
25219 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
25220 Likewise.
25221 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
25222 Likewise.
25223 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
25224 Likewise.
25225 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
25226 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
25227 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
25228
25229 2008-01-10 Robert Millan <rmh@aybabtu.com>
25230
25231 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
25232 Determines if a file is garbage left by packaging systems, etc.
25233 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
25234 for processing /etc/grub.d scripts.
25235 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
25236 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
25237 as a condition for processing Linux images.
25238
25239 2008-01-10 Pavel Roskin <proski@gnu.org>
25240
25241 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
25242 to compile reiserfs.c on PowerPC.
25243
25244 2008-01-10 Robert Millan <rmh@aybabtu.com>
25245
25246 * kern/device.c (grub_device_iterate): Do not abort device iteration
25247 when one of the devices cannot be opened.
25248 * kern/disk.c (grub_disk_open): Do not account previous failures of
25249 unrelated functions when grub_errno is checked for.
25250
25251 2008-01-08 Robert Millan <rmh@aybabtu.com>
25252
25253 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
25254 `! grub_linux_is_bzimage', change order of address comparison to make
25255 it more intuitive, and improve "too big zImage" error message.
25256
25257 2008-01-08 Robert Millan <rmh@aybabtu.com>
25258
25259 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
25260 `$(update-grub_DATA)'.
25261 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
25262 targets.
25263
25264 2008-01-07 Robert Millan <rmh@aybabtu.com>
25265
25266 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
25267 which instruction is modified by grub-setup during installation
25268 (since it wasn't obvious by only looking at this file).
25269
25270 2008-01-07 Robert Millan <rmh@aybabtu.com>
25271
25272 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
25273 listing actual TODO items.
25274
25275 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
25276
25277 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
25278 correctly.
25279 (grub_reiserfs_get_key_offset): Likewise.
25280 (grub_reiserfs_set_key_offset): Likewise.
25281 (grub_reiserfs_set_key_type): Likewise.
25282 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
25283
25284 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
25285 better to remove the bitfield version completely.
25286
25287 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
25288
25289 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
25290 allocated from the heap, due to the fshelp implementation.
25291 (grub_reiserfs_dir): Free NODE, due to the same reason.
25292
25293 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
25294
25295 Mostly from Vincent Pelletier:
25296
25297 * fs/reiserfs.c: New file.
25298
25299 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
25300 (reiserfs_mod_SOURCES): New variable.
25301 (reiserfs_mod_CFLAGS): Likewise.
25302 (reiserfs_mod_LDFLAGS): Likewise.
25303
25304 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
25305 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
25306 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
25307 normal/color.c.
25308
25309 2008-01-06 Robert Millan <rmh@aybabtu.com>
25310
25311 * normal/color.c: Remove `<grub/env.h>'.
25312
25313 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
25314
25315 * include/grub/normal.h: Include <grub/env.h>.
25316
25317 2008-01-05 Robert Millan <rmh@aybabtu.com>
25318
25319 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
25320 usage example with `(hd0,1)'.
25321 Reported by Samuel Thibault.
25322
25323 2008-01-05 Robert Millan <rmh@aybabtu.com>
25324
25325 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
25326 (grub_linux_boot_zimage): Rename to ...
25327 (grub_linux_boot): ... this.
25328 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
25329 (grub_linux_boot_zimage): Conditionalize zImage copy.
25330
25331 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
25332 (grub_linux_boot_bzimage): Remove prototype.
25333 (grub_linux_boot_zimage): Rename to ...
25334 (grub_linux_boot): ... this.
25335
25336 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
25337 (grub_linux_boot): Remove function.
25338
25339 2008-01-05 Robert Millan <rmh@aybabtu.com>
25340
25341 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
25342 (grub_env_write_color_highlight): Likewise.
25343 (grub_wait_after_message): Likewise.
25344
25345 * normal/color.c: New file.
25346
25347 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
25348 (normal_mod_DEPENDENCIES): Likewise.
25349
25350 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
25351 (normal_mod_DEPENDENCIES): Likewise.
25352
25353 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
25354 (normal_mod_DEPENDENCIES): Likewise.
25355
25356 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
25357 (normal_mod_DEPENDENCIES): Likewise.
25358
25359 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
25360 for waiting after a message is printed.
25361 * normal/main.c (read_config_file): Likewise.
25362 (grub_normal_init): Register grub_env_write_color_normal() and
25363 grub_env_write_color_highlight() hooks. Mark `color_normal' and
25364 `color_highlight' variables as global.
25365
25366 * normal/menu.c (grub_wait_after_message): New function.
25367 (grub_color_menu_normal): New variable. Replaces ...
25368 (GRUB_COLOR_MENU_NORMAL): ... this macro.
25369 (grub_color_menu_highlight): New variable. Replaces ...
25370 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
25371 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
25372 `GRUB_TERM_COLOR_STANDARD'.
25373 (print_message): Use `grub_setcolorstate' to reload colors. Rename
25374 `normal_code' and `highlight_code' to `old_color_normal' and
25375 `old_color_highlight', respectively.
25376 (grub_menu_init_page): Update colors when drawing the menu, based on
25377 `menu_color_normal' and `menu_color_highlight' variables.
25378 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
25379 a message is printed.
25380
25381 2008-01-05 Robert Millan <rmh@aybabtu.com>
25382
25383 * kern/env.c (grub_env_context_open): Propagate hooks for global
25384 variables to new context.
25385
25386 * kern/main.c (grub_set_root_dev): Export `root' variable.
25387
25388 2008-01-05 Robert Millan <rmh@aybabtu.com>
25389
25390 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
25391 discs unconditionally, since udev and others have options to provide
25392 them.
25393
25394 2008-01-05 Robert Millan <rmh@aybabtu.com>
25395
25396 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
25397
25398 2008-01-04 Christian Franke <franke@computer.org>
25399
25400 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
25401 of eisa_mmap.
25402
25403 2008-01-03 Pavel Roskin <proski@gnu.org>
25404
25405 * kern/i386/linuxbios/init.c: Put "void" to all function
25406 declarations with no arguments.
25407 * kern/powerpc/ieee1275/init.c: Likewise.
25408 * term/i386/pc/at_keyboard.c: Likewise.
25409 * term/i386/pc/vga_text.c: Likewise.
25410 * util/grub-mkdevicemap.c: Likewise.
25411
25412 2008-01-02 Robert Millan <rmh@aybabtu.com>
25413
25414 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
25415 message when loaded image is out of bounds.
25416 (grub_multiboot_load_elf64): Likewise.
25417
25418 2008-01-02 Pavel Roskin <proski@gnu.org>
25419
25420 * util/grub.d/10_linux.in: Try version without ".old" when
25421 looking for initrd. It's better to use initrd from the newer
25422 kernel of the same version than no initrd at all.
25423
25424 2008-01-01 Robert Millan <rmh@aybabtu.com>
25425
25426 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
25427
25428 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
25429
25430 * include/grub/video.h: Added grub_video_unmap_color and
25431 grub_video_get_active_render_target.
25432 (grub_video_adapter): Added unmap_color and get_active_render_target.
25433
25434 * video/video.c: Added grub_video_unmap_color and
25435 grub_video_get_active_render_target.
25436 (grub_video_get_info): Changed method to accept NULL pointer as an
25437 argument to allow detection of active video adapter.
25438
25439 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
25440 grub_video_vbe_unmap_color_int.
25441 Added grub_video_vbe_unmap_color and
25442 grub_video_vbe_get_active_render_target.
25443 (grub_video_vbe_adapter): Added unmap_color and
25444 get_active_render_target.
25445
25446 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
25447 with grub_video_vbe_unmap_color_int.
25448
25449 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
25450 (DEFAULT_NORMAL_COLOR): Likewise.
25451 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
25452 (DEFAULT_FG_COLOR): Removed.
25453 (DEFAULT_BG_COLOR): Likewise.
25454 (DEFAULT_CURSOR_COLOR): Changed value.
25455 (grub_virtual_screen): Added standard_color_setting,
25456 normal_color_setting, highlight_color_setting and term_color.
25457 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
25458 (bitmap_width): Added.
25459 (bitmap_height): Likewise.
25460 (bitmap): Likewise.
25461 (set_term_color): Likewise.
25462 (grub_virtual_screen_setup): Changed to use new terminal coloring
25463 settings.
25464 (grub_gfxterm_init): Added init for bitmap.
25465 (grub_gfxterm_fini): Added destroy for bitmap.
25466 (redraw_screen_rect): Updated to use background bitmap and new
25467 terminal coloring.
25468 (scroll_up): Added optimization for case when there is no bitmap.
25469 (grub_gfxterm_cls): Fixed to use correct background color.
25470 (grub_virtual_screen_setcolorstate): Changed to use new terminal
25471 coloring.
25472 (grub_virtual_screen_setcolor): Likewise.
25473 (grub_virtual_screen_getcolor): Added.
25474 (grub_gfxterm_background_image_cmd): Likewise.
25475 (grub_video_term): Added setcolor and getcolor.
25476 (MOD_INIT): Added registration of background_image command.
25477 (MOD_TERM): Added unregistration for background_image command.
25478
25479 2007-12-30 Pavel Roskin <proski@gnu.org>
25480
25481 * loader/multiboot_loader.c: Fix multiboot command
25482 unregistration. Fix all typos in the word "multiboot".
25483
25484 2007-12-29 Pavel Roskin <proski@gnu.org>
25485
25486 * util/grub.d/10_linux.in: Refactor search for initrd. Add
25487 support for initrd names used in Fedora.
25488
25489 2007-12-26 Bean <bean123ch@gmail.com>
25490
25491 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
25492 (cpio_mod_SOURCES): New variable.
25493 (cpio_mod_CFLAGS): Likewise.
25494 (cpio_mod_LDFLAGS): Likewise.
25495
25496 * fs/cpio.c: New file.
25497
25498 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
25499
25500 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25501
25502 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
25503
25504 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25505
25506 2007-12-25 Robert Millan <rmh@aybabtu.com>
25507
25508 * include/grub/term.h (struct grub_term): Add `getcolor' function.
25509 (grub_getcolor): New function.
25510
25511 * kern/term.c (grub_getcolor): New function.
25512 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
25513 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
25514 (print_entry): Set normal and highlight colors to
25515 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
25516 respectively, before printing and restore them to old
25517 values afterwards.
25518 (grub_menu_init_page): Likewise. Fill an additional colored space
25519 that would otherwise be left blank.
25520
25521 * term/efi/console.c (grub_console_getcolor): New function.
25522 (struct grub_console_term.getcolor): New variable.
25523 * term/i386/pc/console.c (grub_console_getcolor): New function.
25524 (struct grub_console_term.getcolor): New variable.
25525 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
25526 (struct grub_console_term.getcolor): New variable.
25527
25528 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
25529 (struct grub_console_term.setcolor): Remove variable.
25530 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
25531 (struct grub_console_term.setcolor): Remove variable.
25532 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
25533 (struct grub_console_term.setcolor): Remove variable.
25534 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
25535 (struct grub_console_term.setcolor): Remove variable.
25536
25537 2007-12-25 Robert Millan <rmh@aybabtu.com>
25538
25539 * configure.ac: Search for possible unifont.hex locations, and
25540 define UNIFONT_HEX if found.
25541
25542 * Makefile.in (UNIFONT_HEX): Define variable.
25543 (DATA): Rename to ...
25544 (PKGLIB): ... this. Update all users.
25545 (PKGDATA): New variable.
25546 (pkgdata_IMAGES): Rename to ...
25547 (pkglib_IMAGES): ... this. Update all users.
25548 (pkgdata_MODULES): Rename to ...
25549 (pkglib_MODULES): ... this. Update all users.
25550 (pkgdata_PROGRAMS): Rename to ...
25551 (pkglib_PROGRAMS): ... this. Update all users.
25552 (pkgdata_DATA): Rename to ...
25553 (pkglib_DATA): ... this. Update all users.
25554 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
25555 (unicode.pff, ascii.pff): New rules.
25556 (all-local): Add `$(PKGDATA)' dependency.
25557 (install-local): Process `$(PKGDATA)'.
25558
25559 * util/update-grub_lib.in (font_path): Search for *.pff files in
25560 a few more locations, including `${pkgdata}'.
25561
25562 2007-12-23 Robert Millan <rmh@aybabtu.com>
25563
25564 Patch from Bean <bean123ch@gmail.com>:
25565 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
25566 `size'.
25567
25568 2007-12-21 Bean <bean123ch@gmail.com>
25569
25570 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
25571 (ntfscomp_mod_SOURCES): New variable.
25572 (ntfscomp_mod_CFLAGS): Likewise.
25573 (ntfscomp_mod_LDFLAGS): Likewise.
25574
25575 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
25576 (grub_probe_SOURCES): Likewise.
25577 (grub_emu_SOURCES): Likewise.
25578
25579 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
25580 (grub_emu_SOURCES): Likewise.
25581
25582 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
25583 (grub_emu_SOURCES): Likewise.
25584
25585 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
25586 (grub_emu_SOURCES): Likewise.
25587
25588 * fs/ntfs.c (grub_ntfscomp_func): New variable.
25589 (read_run_list): Renamed to grub_ntfs_read_run_list.
25590 (decomp_nextvcn): Moved to ntfscomp.c.
25591 (decomp_getch): Likewise.
25592 (decomp_get16): Likewise.
25593 (decomp_block): Likewise.
25594 (read_block): Likewise.
25595 (read_data): Partially moved to ntfscomp.c.
25596 (fixup): Change unsigned to grub_uint16_t.
25597 (read_mft): Change unsigned long to grub_uint32_t.
25598 (read_attr): Likewise.
25599 (read_data): Likewise.
25600 (read_run_data): Likewise.
25601 (read_run_list): Likewise.
25602 (read_mft): Likewise.
25603
25604 * fs/ntfscomp.c: New file.
25605
25606 * include/grub/ntfs.h: New file.
25607
25608 2007-12-16 Robert Millan <rmh@aybabtu.com>
25609
25610 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
25611 IDE disk check, since Linux is known to support 20 IDE disks.
25612 Reported by Colin Watson.
25613
25614 2007-12-15 Bean <bean123ch@gmail.com>
25615
25616 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
25617 (lnxboot_img_SOURCES): New variable.
25618 (lnxboot_img_ASFLAGS): Likewise.
25619 (lnxboot_img_LDFLAGS): Likewise.
25620
25621 * boot/i386/pc/lnxboot.S: New file.
25622
25623 2007-11-24 Pavel Roskin <proski@gnu.org>
25624
25625 * configure.ac: Test if '--build-id=none' is supported by the
25626 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
25627 objcopy to generate incorrect binary files (binutils
25628 2.17.50.0.18-1 as shipped by Fedora 8).
25629 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
25630 linking, so that build ID doesn't break the test.
25631
25632 2007-11-24 Pavel Roskin <proski@gnu.org>
25633
25634 * include/grub/i386/time.h: use "void" in the argument list
25635 of grub_cpu_idle().
25636 * include/grub/powerpc/time.h: Likewise.
25637 * include/grub/sparc64/time.h: Likewise.
25638
25639 2007-11-18 Christian Franke <franke@computer.org>
25640
25641 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
25642 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
25643 This fixes the problem that function keys did not work in grub-emu.
25644
25645 2007-11-18 Christian Franke <franke@computer.org>
25646
25647 * disk/host.c (grub_host_open): Remove attribute unused from
25648 name parameter. Add check for "host". This fixes the problem
25649 that grub-emu does not find partitions.
25650
25651 2007-11-18 Christian Franke <franke@computer.org>
25652
25653 * util/hostfs.c (is_dir): New function.
25654 (grub_hostfs_dir): Handle missing dirent.d_type case.
25655 (grub_hostfs_read): Add missing fseek().
25656 (grub_hostfs_label): Clear label pointer. This fixes a crash
25657 of grub-emu on "ls (host)".
25658
25659 2007-11-18 Christian Franke <franke@computer.org>
25660
25661 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
25662 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
25663 to 64 bit boundary by default.
25664
25665 2007-11-18 Bean <bean123ch@gmail.com>
25666
25667 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
25668 (hexdump_mod_SOURCES): New variable.
25669 (hexdump_mod_CFLAGS): Likewise.
25670 (hexdump_mod_LDFLAGS): Likewise.
25671
25672 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
25673
25674 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
25675
25676 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
25677
25678 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
25679
25680 * include/grub/hexdump.h: New file.
25681
25682 * commands/hexdump.c: New file.
25683
25684 2007-11-10 Robert Millan <rmh@aybabtu.com>
25685
25686 * commands/i386/pc/play.c (beep_off): Switch order of arguments
25687 in grub_outb() calls.
25688 (beep_on): Likewise.
25689
25690 2007-11-10 Christian Franke <franke@computer.org>
25691
25692 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
25693 (grub_menu_run): Likewise.
25694
25695 2007-11-10 Robert Millan <rmh@aybabtu.com>
25696
25697 * include/grub/i386/efi/machine.h: New file.
25698 * include/grub/i386/linuxbios/machine.h: Likewise.
25699 * include/grub/i386/pc/machine.h: Likewise.
25700 * include/grub/powerpc/ieee1275/machine.h: Likewise.
25701 * include/grub/sparc64/ieee1275/machine.h: Likewise.
25702
25703 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
25704 (serial_hw_io_addr): New variable.
25705 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
25706 instead of `(unsigned short *) 0x400'.
25707
25708 2007-11-10 Bean <bean123ch@gmail.com>
25709
25710 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
25711
25712 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
25713
25714 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
25715 (vga_mod_SOURCES): Added.
25716 (vga_mod_CFLAGS): Likewise.
25717 (vga_mod_LDFLAGS): Likewise.
25718
25719 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
25720 grub_outb() calls.
25721 (set_map_mask): Likewise.
25722 (set_read_map): Likewise.
25723 (set_read_address): Likewise.
25724 (vga_font): Removed variable.
25725 (get_vga_glyph): Removed function.
25726 (invalidate_char): Likewise.
25727 (write_char): Changed to use grub_font_get_glyph() for font
25728 information.
25729 (grub_vga_putchar): Likewise.
25730 (grub_vga_getcharwidth): Likewise.
25731
25732 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
25733
25734 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
25735 flags.
25736 (pxeboot_img_LDFLAGS): Likewise.
25737 (diskboot_img_LDFLAGS): Likewise.
25738 (kernel_img_LDFLAGS): Likewise.
25739
25740 2007-11-06 Robert Millan <rmh@aybabtu.com>
25741
25742 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
25743 in grub_outb() calls.
25744 (serial_hw_init): Likewise.
25745
25746 2007-11-05 Robert Millan <rmh@aybabtu.com>
25747
25748 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
25749 spaces. Skip non-regular files.
25750
25751 2007-11-05 Robert Millan <rmh@aybabtu.com>
25752
25753 * kern/disk.c (grub_disk_firmware_fini)
25754 (grub_disk_firmware_is_tainted): New variables.
25755
25756 * include/grub/disk.h (grub_disk_firmware_fini)
25757 (grub_disk_firmware_is_tainted): Likewise.
25758
25759 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
25760 (grub_disk_biosdisk_fini): ... to here.
25761 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
25762 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
25763 is set. Register grub_disk_biosdisk_fini() in
25764 `grub_disk_firmware_fini'.
25765
25766 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
25767 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
25768 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
25769 to finish existing firmware disk interface.
25770
25771 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
25772 (ata_mod_SOURCES): New variable.
25773 (ata_mod_CFLAGS): Likewise.
25774 (ata_mod_LDFLAGS): Likewise.
25775
25776 2007-11-05 Robert Millan <rmh@aybabtu.com>
25777
25778 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
25779 (grub_ata_wait): Reimplement using grub_millisleep().
25780
25781 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
25782 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
25783
25784 2007-11-03 Marco Gerards <marco@gnu.org>
25785
25786 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
25787 (CRTC_ADDR_PORT): New macro.
25788 (CRTC_DATA_PORT): Likewise.
25789 (CRTC_CURSOR): Likewise.
25790 (CRTC_CURSOR_ADDR_HIGH): Likewise.
25791 (CRTC_CURSOR_ADDR_LOW): Likewise.
25792 (update_cursor): New function.
25793 (grub_console_real_putchar): Call `update_cursor'.
25794 (grub_console_gotoxy): Likewise.
25795 (grub_console_cls): Set the default color when clearing the
25796 screen.
25797 (grub_console_setcursor): Implemented.
25798
25799 2007-11-03 Marco Gerards <marco@gnu.org>
25800
25801 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
25802 become activate.
25803 (grub_ata_pio_write): Likewise.
25804
25805 (grub_atapi_identify): Wait after issuing an ATA command.
25806 (grub_atapi_packet): Likewise.
25807 (grub_ata_identify): Likewise.
25808 (grub_ata_readwrite): Likewise.
25809
25810 2007-11-03 Marco Gerards <marco@gnu.org>
25811
25812 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
25813 (grub_ata_pio_write): Likewise.
25814 (grub_ata_readwrite): Use `grub_error', instead of
25815 returning `grub_errno'.
25816
25817 2007-11-03 Marco Gerards <marco@gnu.org>
25818
25819 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
25820 grub_ata_pio_write once for every single sector, instead of for
25821 multiple sectors.
25822
25823 2007-10-31 Robert Millan <rmh@aybabtu.com>
25824
25825 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
25826
25827 * conf/i386-linuxbios.rmk: New file.
25828
25829 * kern/i386/pc/hardware.c: Likewise.
25830 * term/i386/pc/at_keyboard.c: Likewise.
25831 * term/i386/pc/vga_text.c: Likewise.
25832
25833 * include/grub/i386/linuxbios/boot.h: Likewise.
25834 * include/grub/i386/linuxbios/console.h: Likewise.
25835 * include/grub/i386/linuxbios/init.h: Likewise.
25836 * include/grub/i386/linuxbios/kernel.h: Likewise.
25837 * include/grub/i386/linuxbios/loader.h: Likewise.
25838 * include/grub/i386/linuxbios/memory.h: Likewise.
25839 * include/grub/i386/linuxbios/serial.h: Likewise.
25840 * include/grub/i386/linuxbios/time.h: Likewise.
25841
25842 * kern/i386/linuxbios/init.c: Likewise.
25843 * kern/i386/linuxbios/startup.S: Likewise.
25844 * kern/i386/linuxbios/table.c: Likewise.
25845
25846 2007-10-31 Marco Gerards <marco@gnu.org>
25847
25848 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
25849 (ata_mod_SOURCES): New variable.
25850 (ata_mod_CFLAGS): Likewise.
25851 (ata_mod_LDFLAGS): Likewise.
25852
25853 * disk/ata.c: New file.
25854
25855 * include/grub/disk.h (grub_disk_dev_id): Add
25856 `GRUB_DISK_DEV_ATA_ID'.
25857
25858 2007-10-31 Robert Millan <rmh@aybabtu.com>
25859
25860 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
25861 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
25862
25863 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
25864 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
25865
25866 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
25867 `<grub/types.h>'.
25868
25869 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
25870
25871 2007-10-27 Robert Millan <rmh@aybabtu.com>
25872
25873 * include/grub/types.h (ULONG_MAX): Define macro.
25874
25875 2007-10-22 Robert Millan <rmh@aybabtu.com>
25876
25877 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
25878 `"../realmode.S"'.
25879 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
25880
25881 2007-10-22 Robert Millan <rmh@aybabtu.com>
25882
25883 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
25884 (pkgdata_MODULES): Add `biosdisk.mod'.
25885 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
25886 variables.
25887
25888 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
25889 (grub_biosdisk_init): Replace with ...
25890 (GRUB_MOD_INIT(biosdisk)): ... this.
25891 (grub_biosdisk_fini): Replace with ...
25892 (GRUB_MOD_FINI(biosdisk)): ... this.
25893
25894 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
25895 (grub_machine_init): Remove call to grub_biosdisk_init().
25896 (grub_machine_fini): Remove call to grub_machine_fini().
25897
25898 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
25899
25900 2007-10-22 Robert Millan <rmh@aybabtu.com>
25901
25902 * include/grub/time.h: New file.
25903 * include/grub/i386/time.h: Likewise.
25904 * include/grub/powerpc/time.h: Likewise.
25905 * include/grub/sparc64/time.h: Likewise.
25906
25907 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
25908 instances to ...
25909 (KERNEL_MACHINE_TIME_HEADER): ... this.
25910 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
25911 instances to ...
25912 (KERNEL_MACHINE_TIME_HEADER): ... this.
25913 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
25914 instances to ...
25915 (KERNEL_MACHINE_TIME_HEADER): ... this.
25916
25917 * kern/i386/efi/init.c: Include `<grub/time.h>'.
25918 (grub_millisleep): New function.
25919 * kern/i386/pc/init.c: Include `<grub/time.h>'.
25920 (grub_millisleep): New function.
25921 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
25922 Remove `grub/machine/time.h' include.
25923 (grub_millisleep): New function.
25924 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
25925 Remove `grub/machine/time.h' include.
25926 (grub_millisleep): New function.
25927
25928 * include/grub/misc.h (grub_div_roundup): New function.
25929
25930 * kern/misc.c: Include `<grub/time.h>'.
25931 (grub_millisleep_generic): New function.
25932
25933 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
25934 Add `time.h'.
25935 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
25936 Add `time.h'.
25937 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
25938 `machine/time.h'. Add `time.h'.
25939 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
25940
25941 2007-10-21 Robert Millan <rmh@aybabtu.com>
25942
25943 * include/grub/misc.h (grub_max): New function.
25944
25945 2007-10-21 Robert Millan <rmh@aybabtu.com>
25946
25947 * util/misc.c (grub_util_info): Call fflush() before returning.
25948
25949 2007-10-20 Robert Millan <rmh@aybabtu.com>
25950
25951 * genmk.rb (Image): Copy `extra_flags' from here ...
25952 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
25953
25954 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
25955 to `argc' and `args' arguments.
25956
25957 2007-10-17 Robert Millan <rmh@aybabtu.com>
25958
25959 * kern/i386/loader.S: New file.
25960
25961 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
25962 * kern/i386/loader.S (grub_linux_prot_size)... to here.
25963 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
25964 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
25965 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
25966 * kern/i386/loader.S (grub_linux_real_addr)... to here.
25967 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
25968 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
25969 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
25970 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
25971 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
25972 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
25973 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
25974 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
25975
25976 * kern/i386/realmode.S: New file.
25977
25978 * kern/i386/pc/startup.S (protstack): Moved from here ...
25979 * kern/i386/realmode.S (protstack)... to here.
25980 * kern/i386/pc/startup.S (gdt): Moved from here ...
25981 * kern/i386/realmode.S (gdt)... to here.
25982 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
25983 * kern/i386/realmode.S (prot_to_real)... to here.
25984
25985 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
25986 `kern/i386/realmode.S'.
25987
25988 2007-10-17 Robert Millan <rmh@aybabtu.com>
25989
25990 * include/grub/i386/loader.h: New file.
25991
25992 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
25993 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
25994 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
25995 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
25996 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
25997 * include/grub/i386/loader.h (grub_linux_prot_size)
25998 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
25999 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
26000 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
26001 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
26002
26003 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
26004
26005 2007-10-15 Robert Millan <rmh@aybabtu.com>
26006
26007 * normal/misc.c (grub_normal_print_device_info): Do not probe for
26008 filesystem when dev->disk is unset.
26009 Do probe for filesystem even when dev->disk->has_partitions is set.
26010 In case a filesystem is found, always report it.
26011 In case it isn't, if dev->disk->has_partitions is set, report that
26012 a partition table was found instead of reporting that no filesystem
26013 could be identified.
26014
26015 2007-10-12 Robert Millan <rmh@aybabtu.com>
26016
26017 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
26018 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
26019
26020 * include/grub/types.h (grub_host_to_target16): New macro.
26021 (grub_host_to_target32): Likewise.
26022 (grub_host_to_target64): Likewise.
26023 (grub_target_to_host16): Likewise.
26024 (grub_target_to_host32): Likewise.
26025 (grub_target_to_host64): Likewise.
26026
26027 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
26028 Renamed from to ...
26029 (GRUB_MOD_ALIGN): ...this. Update all users.
26030
26031 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
26032 grub_host_to_target32.
26033 Replace grub_be_to_cpu32 with grub_target_to_host32.
26034 (load_modules): Likewise.
26035 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
26036 Replace grub_be_to_cpu32 with grub_target_to_host32.
26037 Replace grub_cpu_to_be16 with grub_host_to_target16.
26038 Replace grub_cpu_to_be32 grub_host_to_target32.
26039
26040 2007-10-12 Robert Millan <rmh@aybabtu.com>
26041
26042 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
26043 * util/elf/grub-mkimage.c: ... here.
26044
26045 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
26046 `util/powerpc/ieee1275/grub-mkimage.c'.
26047
26048 2007-10-07 Robert Millan <rmh@aybabtu.com>
26049
26050 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
26051 and make it easier to figure out.
26052 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
26053 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
26054 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
26055 leave us with less than HEAP_MIN_SIZE total heap.
26056 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
26057
26058 2007-10-03 Robert Millan <rmh@aybabtu.com>
26059
26060 * include/grub/i386/io.h: New file.
26061 * commands/i386/pc/play.c (inb): Removed.
26062 (outb): Removed.
26063 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
26064 with grub_outb().
26065 * term/i386/pc/serial.c (inb): Removed.
26066 (outb): Removed.
26067 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
26068 with grub_outb().
26069 * term/i386/pc/vga.c (inb): Removed.
26070 (outb): Removed.
26071 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
26072 with grub_outb().
26073
26074 2007-10-02 Robert Millan <rmh@aybabtu.com>
26075
26076 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
26077 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26078 Reported by Marcin Kurek.
26079
26080 2007-09-07 Robert Millan <rmh@aybabtu.com>
26081
26082 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
26083 SmartFirmware version updates (as released by Sven Luther), and avoid
26084 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
26085 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
26086 known broken.
26087
26088 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
26089
26090 From Hitoshi Ozeki:
26091 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
26092 when merging two regions.
26093
26094 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
26095
26096 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
26097 * normal/completion.c (grub_normal_do_completion): Likewise.
26098 Reported by Hitoshi Ozeki.
26099
26100 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
26101
26102 Do not use devices at boot in chainloading.
26103
26104 * loader/i386/pc/chainloader.c (boot_drive): New variable.
26105 (boot_part_addr): Likewise.
26106 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
26107 with BOOT_DRIVE and BOOT_PART_ADDR.
26108 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
26109 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
26110
26111 2007-08-29 Robert Millan <rmh@aybabtu.com>
26112
26113 Patch from Simon Peter <dn.tlp@gmx.net>:
26114 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
26115 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
26116 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
26117 util/i386/pc/grub-setup.c_DEPENDENCIES.
26118 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
26119 util/grub-probe.c_DEPENDENCIES.
26120 * conf/powerpc-ieee1275.rmk: Likewise.
26121
26122 2007-08-28 Robert Millan <rmh@aybabtu.com>
26123
26124 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
26125 to tell grub-mkdevicemap how to name devices.
26126 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
26127 feature).
26128
26129 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
26130 util/i386/get_disk_name.c.
26131 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
26132 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
26133 util/ieee1275/get_disk_name.c.
26134
26135 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
26136
26137 * DISTLIST: Add util/i386/get_disk_name.c and
26138 util/ieee1275/get_disk_name.c.
26139
26140 * util/grub-mkdevicemap.c: Replace device naming logic with
26141 grub_util_get_disk_name() calls.
26142
26143 2007-08-20 Robert Millan <rmh@aybabtu.com>
26144
26145 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
26146 (so that it works for both plural and singular quantities).
26147
26148 2007-08-05 Robert Millan <rmh@aybabtu.com>
26149
26150 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
26151 so that [xz] isn't taken into account when determining order.
26152
26153 2007-08-02 Marco Gerards <marco@gnu.org>
26154
26155 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
26156 `include/multiboot2.h', `include/grub/elfload.h',
26157 `include/multiboot.h', `include/grub/multiboot.h',
26158 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
26159 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
26160 `kern/elf.c', `loader/multiboot_loader.c',
26161 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
26162 `loader/i386/pc/multiboot2.c',
26163 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
26164 `util/i386/pc/grub-mkrescue.in'. Remove
26165 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
26166 `include/grub/i386/pc/util/biosdisk.h' and
26167 `include/grub/powerpc/ieee1275/multiboot.h'.
26168
26169 2007-08-02 Bean <bean123ch@gmail.com>
26170
26171 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
26172 (ntfs_mod_SOURCES): New variable.
26173 (ntfs_mod_CFLAGS): Likewise.
26174 (ntfs_mod_LDFLAGS): Likewise.
26175
26176 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
26177 (grub_probe_SOURCES): Likewise.
26178 (grub_emu_SOURCES): Likewise.
26179
26180 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
26181 (grub_emu_SOURCES): Likewise.
26182
26183 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
26184 (grub_emu_SOURCES): Likewise.
26185
26186 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
26187
26188 * fs/ntfs.c: New file.
26189
26190 2007-08-02 Bean <bean123ch@gmail.com>
26191
26192 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
26193
26194 * file.h (grub_file): Likewise.
26195
26196 * fshelp.h (grub_fshelp_read_file): Likewise.
26197
26198 * util/i386/pc/grub-setup.c (setup): Likewise.
26199 (save_first_sector): Likewise.
26200 (save_blocklists): Likewise.
26201
26202 * fs/affs.c (grub_affs_read_file): Likewise.
26203
26204 * fs/ext2.c (grub_ext2_read_file): Likewise.
26205
26206 * fs/fat.c (grub_fat_read_data): Likewise.
26207
26208 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
26209
26210 * fs/hfs.c (grub_hfs_read_file): Likewise.
26211
26212 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
26213
26214 * fs/jfs.c (grub_jfs_read_file): Likewise.
26215
26216 * fs/minix.c (grub_minix_read_file): Likewise.
26217
26218 * fs/sfs.c (grub_sfs_read_file): Likewise.
26219
26220 * fs/ufs.c (grub_ufs_read_file): Likewise.
26221
26222 * fs/xfs.c (grub_xfs_read_file): Likewise.
26223
26224 * command/blocklist.c (read_blocklist): Likewise.
26225 (print_blocklist): Likewise.
26226
26227 2007-08-02 Marco Gerards <marco@gnu.org>
26228
26229 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
26230 `util/hostfs.c'.
26231
26232 * disk/host.c: New file.
26233
26234 * util/hostfs.c: Likewise.
26235
26236 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
26237 return `GRUB_ERR_BAD_FS'.
26238 * fs/sfs.c (grub_sfs_mount): Likewise.
26239 * fs/xfs.c (grub_xfs_mount): Likewise.
26240
26241 * include/grub/disk.h (enum grub_disk_dev_id): Add
26242 `GRUB_DISK_DEVICE_HOST_ID'.
26243
26244 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
26245
26246 2007-07-24 Jerone Young <jerone@gmail.com>
26247
26248 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
26249 modules for compilation.
26250 * conf/powerpc-ieee1275.rmk: Likewise.
26251
26252 * include/multiboot.h: Move multiboot definitions to one file. Rename
26253 many definitions to not get grub specific.
26254 * include/multiboot2.h: Create header with multiboot 2 definitions.
26255 * include/grub/multiboot.h: Header for grub specific function
26256 prototypes and definitions.
26257 * include/grub/multiboot2.h: Likewise.
26258 * include/grub/multiboot_loader.h: Likewise.
26259 * include/grub/i386/pc/multiboot.h: Removed.
26260 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
26261
26262 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
26263 and 2 to allow for one multiboot and module commands.
26264 * loader/multiboot2.c: Add multiboot2 functionality.
26265 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
26266 and definition names.
26267 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
26268 2 functions.
26269 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
26270 ieee1275 specific multiboot2 code.
26271
26272 * kern/i386/pc/startup.S: Change headers and definition names for
26273 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
26274
26275 2007-07-22 Robert Millan <rmh@aybabtu.com>
26276
26277 * geninitheader.sh: Process file specified in first parameter rather
26278 than hardcoding grub_modules_init.lst.
26279 * geninit.sh: Likewise. Also, construct header name dynamically rather
26280 than hardcoding grub_modules_init.h.
26281
26282 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
26283 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
26284 grub_probe_init.[ch] and grub_setup_init.[ch].
26285
26286 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
26287 grub_modules_init.h with grub_emu_init.h.
26288 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
26289 grub_probe_init.[ch] files.
26290 * conf/i386-efi.rmk: Likewise.
26291 * conf/i386-pc.rmk: Likewise.
26292 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
26293 grub_setup_init.[ch] files.
26294
26295 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
26296 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
26297 to initialize modules rather than a list of hardcoded functions.
26298 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
26299 grub_init_all() to initialize modules rather than a list of hardcoded
26300 functions.
26301
26302 2007-07-22 Robert Millan <rmh@aybabtu.com>
26303
26304 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
26305 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
26306
26307 2007-07-22 Robert Millan <rmh@aybabtu.com>
26308
26309 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
26310 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
26311 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
26312 flag when running on SmartFirmware.
26313 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
26314 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
26315 was set.
26316
26317 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
26318 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
26319 rather than decreasing it.
26320
26321 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
26322 there's not enough space to do it, fail in the same way as when it
26323 can't be done because there are no partitions.
26324
26325 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
26326 when nvsetenv failed.
26327
26328 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
26329
26330 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
26331 because this rule is automatically generated.
26332 (grub-mkrescue): Removed for the same reason as above.
26333
26334 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
26335
26336 Migrate to GNU General Public License Version 3.
26337
26338 * COPYING: Replaced with the plain text version of GPLv3.
26339
26340 * config.guess: Updated from gnulib.
26341 * config.sub: Likewise.
26342
26343 * geninit.sh: Output a GPLv3 copyright notice.
26344 * geninitheader.sh: Likewise.
26345 * genmodsrc.sh: Likewise.
26346 * gensymlist.sh.in: Likewise.
26347
26348 * boot/i386/pc/boot.S: Upgraded to GPLv3.
26349 * boot/i386/pc/diskboot.S: Likewise.
26350 * boot/i386/pc/pxeboot.S: Likewise.
26351 * commands/blocklist.c: Likewise.
26352 * commands/boot.c: Likewise.
26353 * commands/cat.c: Likewise.
26354 * commands/cmp.c: Likewise.
26355 * commands/configfile.c: Likewise.
26356 * commands/echo.c: Likewise.
26357 * commands/help.c: Likewise.
26358 * commands/ls.c: Likewise.
26359 * commands/search.c: Likewise.
26360 * commands/terminal.c: Likewise.
26361 * commands/test.c: Likewise.
26362 * commands/videotest.c: Likewise.
26363 * commands/i386/cpuid.c: Likewise.
26364 * commands/i386/pc/halt.c: Likewise.
26365 * commands/i386/pc/play.c: Likewise.
26366 * commands/i386/pc/reboot.c: Likewise.
26367 * commands/i386/pc/vbeinfo.c: Likewise.
26368 * commands/i386/pc/vbetest.c: Likewise.
26369 * commands/ieee1275/halt.c: Likewise.
26370 * commands/ieee1275/reboot.c: Likewise.
26371 * commands/ieee1275/suspend.c: Likewise.
26372 * disk/loopback.c: Likewise.
26373 * disk/lvm.c: Likewise.
26374 * disk/raid.c: Likewise.
26375 * disk/efi/efidisk.c: Likewise.
26376 * disk/i386/pc/biosdisk.c: Likewise.
26377 * disk/ieee1275/ofdisk.c: Likewise.
26378 * font/manager.c: Likewise.
26379 * fs/affs.c: Likewise.
26380 * fs/ext2.c: Likewise.
26381 * fs/fat.c: Likewise.
26382 * fs/fshelp.c: Likewise.
26383 * fs/hfs.c: Likewise.
26384 * fs/hfsplus.c: Likewise.
26385 * fs/iso9660.c: Likewise.
26386 * fs/jfs.c: Likewise.
26387 * fs/minix.c: Likewise.
26388 * fs/sfs.c: Likewise.
26389 * fs/ufs.c: Likewise.
26390 * fs/xfs.c: Likewise.
26391 * hello/hello.c: Likewise.
26392 * include/grub/acorn_filecore.h: Likewise.
26393 * include/grub/arg.h: Likewise.
26394 * include/grub/bitmap.h: Likewise.
26395 * include/grub/boot.h: Likewise.
26396 * include/grub/cache.h: Likewise.
26397 * include/grub/device.h: Likewise.
26398 * include/grub/disk.h: Likewise.
26399 * include/grub/dl.h: Likewise.
26400 * include/grub/elfload.h: Likewise.
26401 * include/grub/env.h: Likewise.
26402 * include/grub/err.h: Likewise.
26403 * include/grub/file.h: Likewise.
26404 * include/grub/font.h: Likewise.
26405 * include/grub/fs.h: Likewise.
26406 * include/grub/fshelp.h: Likewise.
26407 * include/grub/gzio.h: Likewise.
26408 * include/grub/hfs.h: Likewise.
26409 * include/grub/kernel.h: Likewise.
26410 * include/grub/loader.h: Likewise.
26411 * include/grub/lvm.h: Likewise.
26412 * include/grub/misc.h: Likewise.
26413 * include/grub/mm.h: Likewise.
26414 * include/grub/net.h: Likewise.
26415 * include/grub/normal.h: Likewise.
26416 * include/grub/parser.h: Likewise.
26417 * include/grub/partition.h: Likewise.
26418 * include/grub/pc_partition.h: Likewise.
26419 * include/grub/raid.h: Likewise.
26420 * include/grub/rescue.h: Likewise.
26421 * include/grub/script.h: Likewise.
26422 * include/grub/setjmp.h: Likewise.
26423 * include/grub/symbol.h: Likewise.
26424 * include/grub/term.h: Likewise.
26425 * include/grub/terminfo.h: Likewise.
26426 * include/grub/tparm.h: Likewise.
26427 * include/grub/types.h: Likewise.
26428 * include/grub/video.h: Likewise.
26429 * include/grub/efi/api.h: Likewise.
26430 * include/grub/efi/chainloader.h: Likewise.
26431 * include/grub/efi/console.h: Likewise.
26432 * include/grub/efi/console_control.h: Likewise.
26433 * include/grub/efi/disk.h: Likewise.
26434 * include/grub/efi/efi.h: Likewise.
26435 * include/grub/efi/pe32.h: Likewise.
26436 * include/grub/efi/time.h: Likewise.
26437 * include/grub/i386/linux.h: Likewise.
26438 * include/grub/i386/setjmp.h: Likewise.
26439 * include/grub/i386/types.h: Likewise.
26440 * include/grub/i386/efi/kernel.h: Likewise.
26441 * include/grub/i386/efi/loader.h: Likewise.
26442 * include/grub/i386/efi/time.h: Likewise.
26443 * include/grub/i386/pc/biosdisk.h: Likewise.
26444 * include/grub/i386/pc/boot.h: Likewise.
26445 * include/grub/i386/pc/chainloader.h: Likewise.
26446 * include/grub/i386/pc/console.h: Likewise.
26447 * include/grub/i386/pc/init.h: Likewise.
26448 * include/grub/i386/pc/kernel.h: Likewise.
26449 * include/grub/i386/pc/loader.h: Likewise.
26450 * include/grub/i386/pc/memory.h: Likewise.
26451 * include/grub/i386/pc/multiboot.h: Likewise.
26452 * include/grub/i386/pc/serial.h: Likewise.
26453 * include/grub/i386/pc/time.h: Likewise.
26454 * include/grub/i386/pc/vbe.h: Likewise.
26455 * include/grub/i386/pc/vbeblit.h: Likewise.
26456 * include/grub/i386/pc/vbefill.h: Likewise.
26457 * include/grub/i386/pc/vbeutil.h: Likewise.
26458 * include/grub/i386/pc/vga.h: Likewise.
26459 * include/grub/ieee1275/ieee1275.h: Likewise.
26460 * include/grub/ieee1275/ofdisk.h: Likewise.
26461 * include/grub/powerpc/libgcc.h: Likewise.
26462 * include/grub/powerpc/setjmp.h: Likewise.
26463 * include/grub/powerpc/types.h: Likewise.
26464 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
26465 * include/grub/powerpc/ieee1275/console.h: Likewise.
26466 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
26467 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26468 * include/grub/powerpc/ieee1275/loader.h: Likewise.
26469 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
26470 * include/grub/powerpc/ieee1275/time.h: Likewise.
26471 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
26472 * include/grub/sparc64/libgcc.h: Likewise.
26473 * include/grub/sparc64/setjmp.h: Likewise.
26474 * include/grub/sparc64/types.h: Likewise.
26475 * include/grub/sparc64/ieee1275/console.h: Likewise.
26476 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
26477 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26478 * include/grub/sparc64/ieee1275/time.h: Likewise.
26479 * include/grub/util/biosdisk.h: Likewise.
26480 * include/grub/util/getroot.h: Likewise.
26481 * include/grub/util/lvm.h: Likewise.
26482 * include/grub/util/misc.h: Likewise.
26483 * include/grub/util/raid.h: Likewise.
26484 * include/grub/util/resolve.h: Likewise.
26485 * io/gzio.c: Likewise.
26486 * kern/device.c: Likewise.
26487 * kern/disk.c: Likewise.
26488 * kern/dl.c: Likewise.
26489 * kern/elf.c: Likewise.
26490 * kern/env.c: Likewise.
26491 * kern/err.c: Likewise.
26492 * kern/file.c: Likewise.
26493 * kern/fs.c: Likewise.
26494 * kern/loader.c: Likewise.
26495 * kern/main.c: Likewise.
26496 * kern/misc.c: Likewise.
26497 * kern/mm.c: Likewise.
26498 * kern/parser.c: Likewise.
26499 * kern/partition.c: Likewise.
26500 * kern/rescue.c: Likewise.
26501 * kern/term.c: Likewise.
26502 * kern/efi/efi.c: Likewise.
26503 * kern/efi/init.c: Likewise.
26504 * kern/efi/mm.c: Likewise.
26505 * kern/i386/dl.c: Likewise.
26506 * kern/i386/efi/init.c: Likewise.
26507 * kern/i386/efi/startup.S: Likewise.
26508 * kern/i386/pc/init.c: Likewise.
26509 * kern/i386/pc/lzo1x.S: Likewise.
26510 * kern/i386/pc/startup.S: Likewise.
26511 * kern/ieee1275/ieee1275.c: Likewise.
26512 * kern/powerpc/cache.S: Likewise.
26513 * kern/powerpc/dl.c: Likewise.
26514 * kern/powerpc/ieee1275/cmain.c: Likewise.
26515 * kern/powerpc/ieee1275/crt0.S: Likewise.
26516 * kern/powerpc/ieee1275/init.c: Likewise.
26517 * kern/powerpc/ieee1275/openfw.c: Likewise.
26518 * kern/sparc64/cache.S: Likewise.
26519 * kern/sparc64/dl.c: Likewise.
26520 * kern/sparc64/ieee1275/init.c: Likewise.
26521 * kern/sparc64/ieee1275/openfw.c: Likewise.
26522 * loader/efi/chainloader.c: Likewise.
26523 * loader/efi/chainloader_normal.c: Likewise.
26524 * loader/i386/efi/linux.c: Likewise.
26525 * loader/i386/efi/linux_normal.c: Likewise.
26526 * loader/i386/pc/chainloader.c: Likewise.
26527 * loader/i386/pc/chainloader_normal.c: Likewise.
26528 * loader/i386/pc/linux.c: Likewise.
26529 * loader/i386/pc/linux_normal.c: Likewise.
26530 * loader/i386/pc/multiboot.c: Likewise.
26531 * loader/i386/pc/multiboot_normal.c: Likewise.
26532 * loader/powerpc/ieee1275/linux.c: Likewise.
26533 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
26534 * normal/arg.c: Likewise.
26535 * normal/cmdline.c: Likewise.
26536 * normal/command.c: Likewise.
26537 * normal/completion.c: Likewise.
26538 * normal/execute.c: Likewise.
26539 * normal/function.c: Likewise.
26540 * normal/lexer.c: Likewise.
26541 * normal/main.c: Likewise.
26542 * normal/menu.c: Likewise.
26543 * normal/menu_entry.c: Likewise.
26544 * normal/misc.c: Likewise.
26545 * normal/parser.y: Likewise.
26546 * normal/script.c: Likewise.
26547 * normal/i386/setjmp.S: Likewise.
26548 * normal/powerpc/setjmp.S: Likewise.
26549 * normal/sparc64/setjmp.S: Likewise.
26550 * partmap/acorn.c: Likewise.
26551 * partmap/amiga.c: Likewise.
26552 * partmap/apple.c: Likewise.
26553 * partmap/gpt.c: Likewise.
26554 * partmap/pc.c: Likewise.
26555 * partmap/sun.c: Likewise.
26556 * term/gfxterm.c: Likewise.
26557 * term/terminfo.c: Likewise.
26558 * term/efi/console.c: Likewise.
26559 * term/i386/pc/console.c: Likewise.
26560 * term/i386/pc/serial.c: Likewise.
26561 * term/i386/pc/vesafb.c: Likewise.
26562 * term/i386/pc/vga.c: Likewise.
26563 * term/ieee1275/ofconsole.c: Likewise.
26564 * util/biosdisk.c: Likewise.
26565 * util/console.c: Likewise.
26566 * util/genmoddep.c: Likewise.
26567 * util/getroot.c: Likewise.
26568 * util/grub-emu.c: Likewise.
26569 * util/grub-mkdevicemap.c: Likewise.
26570 * util/grub-probe.c: Likewise.
26571 * util/lvm.c: Likewise.
26572 * util/misc.c: Likewise.
26573 * util/raid.c: Likewise.
26574 * util/resolve.c: Likewise.
26575 * util/update-grub.in: Likewise.
26576 * util/update-grub_lib.in: Likewise.
26577 * util/grub.d/00_header.in: Likewise.
26578 * util/grub.d/10_hurd.in: Likewise.
26579 * util/grub.d/10_linux.in: Likewise.
26580 * util/i386/efi/grub-install.in: Likewise.
26581 * util/i386/efi/grub-mkimage.c: Likewise.
26582 * util/i386/pc/grub-install.in: Likewise.
26583 * util/i386/pc/grub-mkimage.c: Likewise.
26584 * util/i386/pc/grub-mkrescue.in: Likewise.
26585 * util/i386/pc/grub-setup.c: Likewise.
26586 * util/i386/pc/misc.c: Likewise.
26587 * util/powerpc/ieee1275/grub-install.in: Likewise.
26588 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
26589 * util/powerpc/ieee1275/misc.c: Likewise.
26590 * video/bitmap.c: Likewise.
26591 * video/video.c: Likewise.
26592 * video/i386/pc/vbe.c: Likewise.
26593 * video/i386/pc/vbeblit.c: Likewise.
26594 * video/i386/pc/vbefill.c: Likewise.
26595 * video/i386/pc/vbeutil.c: Likewise.
26596 * video/readers/tga.c: Likewise.
26597
26598 2007-07-02 Robert Millan <rmh@aybabtu.com>
26599
26600 * conf/i386-efi.rmk: Replace obsolete reference to
26601 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
26602 with util/getroot.c.
26603 * conf/powerpc-ieee1275.rmk: Likewise.
26604 * conf/sparc64-ieee1275.rmk: Likewise.
26605
26606 * util/grub-emu.c (main): Fix unchecked pointer handling.
26607
26608 2007-07-02 Robert Millan <rmh@aybabtu.com>
26609
26610 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
26611 invocation to fail, in order to support partition-less media.
26612
26613 * util/i386/pc/grub-install.in: Likewise.
26614
26615 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
26616 which fs or partmap modules are needed (akin to its sister scripts).
26617
26618 Also use grub-probe to get rid of unportable /proc/mounts check.
26619
26620 Print the same informational message that the other scripts do, before
26621 exiting.
26622
26623 2007-06-23 Robert Millan <rmh@aybabtu.com>
26624
26625 * util/update-grub_lib.in (font_path): New function. Determine whether
26626 a font file can be found and, if so, echo the GRUB path to it.
26627
26628 * util/update-grub.in: Handle multiple terminals depending on user
26629 input, platform availability and font file presence. Propagate
26630 variables of our findings to /etc/grub.d/ children.
26631
26632 * util/grub.d/00_header.in: Handle multiple terminals, based on
26633 environment setup by update-grub.
26634
26635 2007-06-23 Robert Millan <rmh@aybabtu.com>
26636
26637 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
26638
26639 2007-06-21 Robert Millan <rmh@aybabtu.com>
26640
26641 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
26642 indicate end of data section in kernel image.
26643 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
26644 GRUB_KERNEL_MACHINE_DATA_END.
26645
26646 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
26647 space for it.
26648 * kern/i386/efi/startup.S: Likewise.
26649
26650 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
26651 during image generation. Implement --prefix option to override this
26652 patch.
26653 * util/i386/efi/grub-mkimage.c: Likewise.
26654
26655 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
26656 code to make path relative to its root into a separate function.
26657
26658 * util/i386/pc/grub-install.in: Use newly provided
26659 make_system_path_relative_to_its_root() to convert ${grubdir}, then
26660 pass the result to grub-install --prefix.
26661
26662 2007-06-13 Robert Millan <rmh@aybabtu.com>
26663
26664 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
26665 DEFAULT_DEVICE_MAP.
26666 * util/grub-emu.c: Use above definitions from misc.h instead of
26667 defining them.
26668 * util/grub-mkdevicemap.c: Likewise.
26669 * util/i386/pc/grub-setup.c: Likewise.
26670 * util/grub-probe.c: Likewise.
26671 (probe): Abort with grub_util_error() when either
26672 grub_guess_root_device or grub_util_get_grub_dev fails.
26673
26674 2007-06-12 Robert Millan <rmh@aybabtu.com>
26675
26676 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
26677 "pager" assignment.
26678 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
26679 "pcdata".
26680 * util/grub-probe.c (probe): Likewise for "drive_name".
26681
26682 2007-06-11 Robert Millan <rmh@aybabtu.com>
26683
26684 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
26685 not just the cdrom one.
26686
26687 2007-06-11 Robert Millan <rmh@aybabtu.com>
26688
26689 * util/i386/pc/grub-mkrescue.in: Add "set -e".
26690 Add --pkglibdir=DIR option to override pkglibdir.
26691 Mention --image-type=TYPE in help output.
26692 Fix --grub-mkimage (it was a no-op).
26693 Abort gracefully when no parameter is given.
26694
26695 2007-06-11 Robert Millan <rmh@aybabtu.com>
26696
26697 * util/i386/pc/grub-mkrescue.in: New file.
26698 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
26699 * Makefile.in: Handle bin_SCRIPTS.
26700
26701 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
26702
26703 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
26704 list of video modes.
26705
26706 2007-06-06 Robert Millan <rmh@aybabtu.com>
26707
26708 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
26709 file doesn't exist, or if it is in a filesystem grub can't read.
26710
26711 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
26712 not abort if GRUB_DRIVE could not be defined. Rearrange generated
26713 header comment to fit in 80 columns when the variables are resolved.
26714
26715 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
26716 could be identified by update-grub. Remove redundant check for
26717 unifont.pff existence (since convert_system_path_to_grub_path now
26718 handles that).
26719
26720 2007-06-04 Robert Millan <rmh@aybabtu.com>
26721
26722 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
26723
26724 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
26725
26726 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
26727
26728 2007-06-04 Robert Millan <rmh@aybabtu.com>
26729
26730 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
26731
26732 * include/grub/partition.h: Declare grub_apple_partition_map_init and
26733 grub_apple_partition_map_fini.
26734
26735 * util/biosdisk.c
26736 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
26737 to access >2 TiB disks).
26738
26739 Print disk->total_sectors with %llu instead of %lu, since this
26740 variable is always 64-bit (prevents wrong disk size from being displayed
26741 on either >2 TiB disk or big-endian CPU).
26742
26743 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
26744 into a generic case that supports all (sane) partition maps.
26745
26746 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
26747 breaks big-endian.
26748
26749 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
26750 and grub_apple_partition_map_fini() after that.
26751
26752 2007-06-01 Robert Millan <rmh@aybabtu.com>
26753
26754 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
26755
26756 * util/grub.d/00_header.in: Only enable gfxterm when
26757 convert_system_path_to_grub_path() succeeds.
26758
26759 2007-05-20 Robert Millan <rmh@aybabtu.com>
26760
26761 * util/update-grub_lib.in: New file.
26762 * DISTLIST: Add update-grub_lib.in.
26763 * conf/common.rmk: Generate update-grub_lib and install it in
26764 $(lib_DATA).
26765 * Makefile.in: Add install routine for $(lib_DATA).
26766
26767 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
26768 function provided by update-grub_lib to support arbitrary paths of
26769 unifont.pff.
26770 * util/update-grub.in: Use convert_system_path_to_grub_path() to
26771 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
26772
26773 2007-05-19 Robert Millan <rmh@aybabtu.com>
26774
26775 * commands/i386/cpuid.c: New module.
26776 * DISTLIST: Add it.
26777 * conf/i386-efi.rmk: Enable cpuid.mod.
26778 * conf/i386-pc.rmk: Likewise.
26779
26780 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
26781
26782 * kern/disk.c (grub_disk_read): Check return value of
26783 grub_realloc().
26784
26785 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
26786
26787 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
26788 arrays.
26789 * disk/raid.c (grub_raid_open): Likewise.
26790
26791 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
26792
26793 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
26794 stack instead of on the heap.
26795
26796 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
26797 before doing a read on it.
26798
26799 * configure.ac: Only use -fno-stack-protector for the target
26800 environment.
26801
26802 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
26803
26804 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
26805 __attribute_ ((unused)) to mode_type argument.
26806
26807 * util/getroot.c (grub_guess_root_device): Fix #endif.
26808
26809 * kern/misc.c (memcmp): Fix prototype.
26810
26811 * include/grub/partition.h [GRUB_UTIL]
26812 (grub_gpt_partition_map_init): Add prototype.
26813 (grub_gpt_partition_map_fini): Likewise.
26814
26815 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
26816 at the right place.
26817
26818 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
26819 (grub_fat_read_data): Likewise.
26820 (grub_fat_find_dir): Likewise.
26821
26822 * font/manager.c (find_glyph): Make table a const.
26823 (grub_font_get_glyph): Remove bitmap from if statement.
26824
26825 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
26826
26827 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
26828 code, first search for device in /dev/mapper, then in /dev.
26829 (grub_util_get_grub_dev): New function.
26830 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
26831 prototype.
26832 * util/grub-probe.c (probe): Remove check for RAID, call
26833 grub_util_get_grub_dev() instead of
26834 grub_util_biosdisk_get_grub_dev().
26835 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
26836 grub_util_biosdisk_get_grub_dev().
26837 * util/i386/pc/grub-setup.c (main): Likewise.
26838
26839 2007-05-16 Robert Millan <rmh@aybabtu.com>
26840
26841 * DISTLIST: Update for the latest changes.
26842 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
26843 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
26844 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
26845 grub/util/biosdisk.h.
26846 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
26847 grub/util/biosdisk.h.
26848
26849 2007-05-16 Robert Millan <rmh@aybabtu.com>
26850
26851 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
26852
26853 2007-05-16 Robert Millan <rmh@aybabtu.com>
26854
26855 * util/i386/efi/grub-install.in: New.
26856 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
26857 newly added grub-install.
26858 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
26859 include.
26860 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
26861 grub/util/biosdisk.h.
26862 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
26863 grub/util/biosdisk.h.
26864
26865 2007-05-16 Robert Millan <rmh@aybabtu.com>
26866
26867 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
26868 * include/grub/util/biosdisk.h: ... here.
26869 * util/i386/pc/biosdisk.c: Moved to ...
26870 * util/biosdisk.c: ... here.
26871 * util/i386/pc/getroot.c: Moved to ...
26872 * util/getroot.c: ... here.
26873 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
26874 * util/grub-mkdevicemap.c: ... here.
26875 * util/i386/pc/grub-probe.c: Moved to ...
26876 * util/grub-probe.c: ... here.
26877
26878 2007-05-15 Robert Millan <rmh@aybabtu.com>
26879
26880 * util/update-grub.in: Remove duplicated line in grub.cfg header
26881 message.
26882
26883 2007-05-13 Robert Millan <rmh@aybabtu.com>
26884
26885 * util/update-grub.in: Fix a few assumptions about the devices holding
26886 /, /boot and /boot/grub being the same.
26887 * util/grub.d/00_header.in: Likewise.
26888 * util/grub.d/10_hurd.in: Likewise.
26889 * util/grub.d/10_linux.in: Likewise.
26890
26891 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
26892 patterns. Use that to define the `.old' suffix as older than `'.
26893
26894 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
26895
26896 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
26897 the grub.cfg header message.
26898
26899 2007-05-11 Robert Millan <rmh@aybabtu.com>
26900
26901 * util/update-grub.in: Create device.map if it doesn't already exist,
26902 before attempting to run grub-probe.
26903 Check for grub-probe and grub-mkdevicemap with the same code
26904 grub-install is using.
26905 Remove test mode.
26906
26907 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
26908
26909 * Makefile.in: Add the datarootdir autoconf variable.
26910
26911 2007-05-09 Robert Millan <rmh@aybabtu.com>
26912
26913 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
26914 fail gracefully if dev->disk->partition == NULL.
26915
26916 2007-05-07 Robert Millan <rmh@aybabtu.com>
26917
26918 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
26919 determine partition map module.
26920 * util/i386/pc/grub-install.in: Use this feature to decide which
26921 partition module to load, instead of hardcoding pc and gpt.
26922
26923 2007-05-07 Robert Millan <rmh@aybabtu.com>
26924
26925 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
26926 source directory differs from build directory.
26927
26928 2007-05-05 Robert Millan <rmh@aybabtu.com>
26929
26930 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
26931 initialisation.
26932
26933 2007-05-05 Robert Millan <rmh@aybabtu.com>
26934
26935 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
26936
26937 2007-05-05 Robert Millan <rmh@aybabtu.com>
26938
26939 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
26940 command-line arguments via ${GRUB_CMDLINE_LINUX}.
26941
26942 2007-05-05 Robert Millan <rmh@aybabtu.com>
26943
26944 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
26945 (grub_probe_SOURCES): Likewise.
26946 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
26947 GPT and initialize dos_part and bsd_part accordingly.
26948 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
26949 install_bsd_part.
26950 (main): Activate gpt module for use during partition identification,
26951 and deactivate it afterwards.
26952 * util/i386/pc/grub-install.in: Add gpt module to core.img.
26953 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
26954 partition identification, and deactivate it afterwards.
26955
26956 2007-05-05 Robert Millan <rmh@aybabtu.com>
26957
26958 * term/i386/pc/console.c (grub_console_fini): Call
26959 grub_term_set_current() before grub_term_unregister().
26960
26961 2007-05-04 Robert Millan <rmh@aybabtu.com>
26962
26963 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
26964 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
26965 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
26966 and update-grub_DATA.
26967 * conf/common.rmk: Build and install update-grub components.
26968 * conf/common.mk: Regenerate.
26969 * util/update-grub.in: New. Core of update-grub.
26970 * util/grub.d/00_header.in: New. Generates grub.cfg header.
26971 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
26972 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
26973 * util/grub.d/README: New. Document grub.d directory layout.
26974
26975 2007-05-01 Robert Millan <rmh@aybabtu.com>
26976
26977 * util/grub-emu.c: Move initialization functions
26978 grub_util_biosdisk_init() and grub_init_all() before
26979 grub_util_biosdisk_get_grub_dev(), which relies on them.
26980
26981 2007-04-19 Robert Millan <rmh@aybabtu.com>
26982
26983 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
26984 it is used later.
26985
26986 2007-04-18 Jerone Young <jerone@gmail.com>
26987
26988 * kernel/elf.c: Add missing parenthesis for conditional statement
26989 stanza.
26990
26991 2007-04-10 Jerone Young <jerone@gmail.com>
26992
26993 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
26994 continue on and look for device node with real device name.
26995
26996 2007-04-10 Jerone Young <jerone@gmail.com>
26997
26998 * configure.ac: Add argument for autoconf to use transformation
26999 ability.
27000 * Makefile.in: Add autoconf package transformation code.
27001 * util/i386/pc/grub-install.in: Likewise.
27002 * util/powerpc/ieee1275/grub-install.in: Likewise.
27003
27004 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
27005
27006 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
27007 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
27008 (EXT2_REVISION): Likewise.
27009 (EXT2_INODE_SIZE): Likewise.
27010 (struct grub_ext2_block_group): Added a missing member
27011 "used_dirs".
27012 (grub_ext2_read_inode): Divide by the inode size in a superblock
27013 instead of 128 to obtain INODES_PER_BLOCK.
27014 Use the macro EXT2_INODE_SIZE instead of directly using
27015 SBLOCK->INODE_SIZE.
27016
27017 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
27018
27019 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
27020 superblock instead of the structure size to compute an
27021 offset. This fixes the problem that GRUB could not read a
27022 filesystem when inode size is different from 128-byte.
27023
27024 2007-03-05 Marco Gerards <marco@gnu.org>
27025
27026 * normal/main.c (read_config_file): When "menu" is not set, create
27027 an initial context.
27028
27029 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
27030
27031 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
27032 (HEAP_LIMIT): New macro.
27033 (grub_claim_heap): Claim memory up to `heaplimit'.
27034
27035 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
27036
27037 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
27038 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
27039 (_start): Likewise.
27040 (grub_arch_modules_addr): Return address after `_end'.
27041 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
27042 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
27043 (add_segments): Calculate `_end' from phdr size and location.
27044 (ALIGN_UP): Moved to ...
27045 * include/grub/misc.h: here.
27046 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
27047 New macro.
27048 (GRUB_IEEE1275_MODULE_BASE): Removed.
27049
27050 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
27051
27052 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
27053 loop boundary.
27054
27055 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
27056
27057 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
27058 All users updated.
27059 (grub_elf64_load_hook_t): Likewise.
27060 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
27061 debug output.
27062
27063 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
27064
27065 * kern/mm.c: Update copyright.
27066 (grub_mm_debug): Correct syntax error.
27067 (grub_mm_dump_free): New function.
27068 (grub_debug_free): Call `grub_free'.
27069 * include/grub/mm.h: Update copyright.
27070 (grub_mm_dump_free): Add declaration.
27071
27072 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
27073
27074 * include/grub/ieee1275/ieee1275.h: Update copyright.
27075 * kern/powerpc/ieee1275/init.c: Likewise.
27076 * kern/powerpc/ieee1275/openfw.c: Likewise.
27077
27078 * loader/powerpc/ieee1275/linux.c: Likewise.
27079 * include/grub/elfload.h: Likewise.
27080 * kern/elf.c: Likewise.
27081 (grub_elf32_load): Pass `base' and `size' parameters. Update all
27082 callers.
27083 (grub_elf64_load): Likewise.
27084 (grub_elf32_load_segment): Move to a nested function.
27085 (grub_elf64_load_segment): Likewise.
27086
27087 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
27088
27089 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
27090 prototype.
27091 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
27092 (grub_heap_len): Likewise.
27093 (HEAP_SIZE): New macro.
27094 (grub_claim_heap): New function.
27095 (grub_machine_init): Don't claim heap directly. Call
27096 `grub_claim_heap'.
27097 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
27098 (grub_available_iterate): New function.
27099
27100 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
27101
27102 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
27103 * configure.ac: Use it for testing the HOST and TARGET compilers.
27104
27105 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
27106
27107 * Makefile.in (enable_grub_emu): New variable.
27108 * configure.ac (--enable-grub-emu): New option.
27109 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
27110 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
27111 * conf/i386-pc.rmk: Likewise.
27112 * conf/powerpc-ieee1275.rmk: Likewise.
27113 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
27114
27115 2006-12-12 Marco Gerards <marco@gnu.org>
27116
27117 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
27118
27119 * kern/env.c (grub_env_unset): Don't free the member `value' when
27120 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
27121 pointer.
27122
27123 * normal/main.c (current_menu): Removed.
27124 (free_menu): Unset the `menu' environment variable.
27125 (grub_normal_menu_addentry): Make use of the environment variable
27126 `menu', instead of using the global `current_menu'. Allocate
27127 memory for the sourcecode of this entry.
27128 (read_config_file): New argument `nested', changed all callers.
27129 Only in the case of a new context, initialize a new menu. Set the
27130 `menu' environment variable.
27131 (grub_normal_execute): Don't set and unset the environment
27132 variable `menu' here anymore. Only free the menu when leaving the
27133 context.
27134
27135 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
27136 leak.
27137
27138 2006-12-11 Marco Gerards <marco@gnu.org>
27139
27140 * normal/menu_entry.c (run): Fix off by one bug so the last line
27141 is executed. Move the loader check to outside the loop.
27142
27143 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
27144
27145 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
27146
27147 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
27148
27149 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
27150 the number of sectors. Reported by Andrey Shuvikov
27151 <mr_hyro@yahoo.com>.
27152
27153 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
27154
27155 * kern/disk.c (grub_disk_read): When there is a read error, always
27156 try to read only the necessary data.
27157
27158 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
27159 disk/raid.c.
27160 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
27161 prototype.
27162 [GRUB_UTIL] (grub_raid_fini): Likewise.
27163 [GRUB_UTIL] (grub_lvm_init): Likewise.
27164 [GRUB_UTIL] (grub_lvm_fini): Likewise.
27165 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
27166 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
27167 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
27168 and grub_raid_fini().
27169
27170 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
27171
27172 * include/grub/types.h (__unused): Rename to UNUSED.
27173 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
27174 (grub_elf64_size): Likewise.
27175
27176 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
27177
27178 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
27179 grub_error_push and grub_error_pop in the error-handling path.
27180 (grub_elf32_load_segment): Only call grub_file_read with non-zero
27181 length.
27182
27183 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
27184
27185 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
27186 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27187 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27188 (kernel_elf_SOURCES): Likewise.
27189 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
27190 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
27191 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
27192 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
27193 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
27194 (elf_mod_SOURCES): New variable.
27195 (elf_mod_CFLAGS): Likewise.
27196 (elf_mod_LDFLAGS): Likewise.
27197 * include/grub/types.h (__unused): New macro.
27198 * include/grub/elfload.h: New file.
27199 * kern/elf.c: Likewise.
27200 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
27201 (ELF32_LOADMASK): New macro.
27202 (ELF64_LOADMASK): Likewise.
27203 (vmlinux): Removed.
27204 (grub_linux_load32): New function.
27205 (grub_linux_load64): Likewise.
27206 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
27207 Use grub_elf_t instead of grub_file_t.
27208
27209 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
27210
27211 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
27212 `catch_result' to struct set_color_args.
27213
27214 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
27215
27216 * normal/menu.c: Include grub/script.h.
27217 * normal/menu_entry.c: Likewise.
27218 * include/grub/normal.h: Do not include grub/script.h.
27219
27220 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
27221
27222 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
27223
27224 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
27225
27226 * kern/disk.c (grub_disk_open): Print debug messages when opening a
27227 disk.
27228 (grub_disk_close): Print debug messages when closing a disk.
27229 (grub_disk_read): Print debug messages when disk read fails.
27230 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
27231 filesystem type.
27232 * kern/partition.c: Include misc.h.
27233 (grub_partition_iterate): Print debug messages when detecting
27234 partition type.
27235
27236 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
27237
27238 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
27239 is negative.
27240 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
27241
27242 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
27243
27244 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
27245 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
27246
27247 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
27248
27249 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
27250 instead of sizeof(lv). Patch by Michael Guntsche.
27251
27252 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
27253
27254 * disk/lvm.c: Rename VGS to VG_LIST.
27255 (grub_lvm_iterate): Change VGS->LV to VG-LV.
27256 (grub_lvm_open): Likewise.
27257 Thanks to Michael Guntsche for finding this bug.
27258
27259 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
27260
27261 * configure.ac (AC_INIT): Bumped to 1.95.
27262
27263 2006-10-14 Robert Millan <rmh@aybabtu.com>
27264
27265 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
27266 with "/dev/.static/dev/md".
27267
27268 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
27269
27270 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
27271 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
27272 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
27273 DRIVE_NAME are always freed.
27274
27275 * util/i386/pc/biosdisk.c (make_device_name): Add one into
27276 DOS_PART, as a DOS partition is counted from one instead of zero
27277 now. Reported by Robert Millan.
27278
27279 2006-10-14 Robert Millan <rmh@aybabtu.com>
27280
27281 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
27282 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
27283 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
27284 string returned by grub_guess_root_device.
27285 * util/i386/pc/grub-setup.c: Likewise.
27286 * util/i386/pc/grub-probefs.c: Likewise.
27287
27288 * util/i386/pc/grub-probefs.c: Rename to ...
27289 * util/i386/pc/grub-probe.c: ... this.
27290 * DISTLIST: Remove grub-probefs, add grub-probe.
27291 * conf/i386-efi.rmk: Likewise.
27292 * conf/i386-pc.rmk: Likewise.
27293 * util/i386/pc/grub-install.in: Likewise.
27294
27295 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
27296 choose which information we want to print.
27297
27298 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
27299
27300 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
27301 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
27302 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
27303 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
27304 video/readers/tga.c and video/i386/pc/vbeutil.c.
27305
27306 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
27307
27308 Added support for RAID and LVM.
27309
27310 * disk/lvm.c: New file.
27311 * disk/raid.c: Likewise.
27312 * include/grub/lvm.h: Likewise.
27313 * include/grub/raid.h: Likewise.
27314 * include/grub/util/lvm.h: Likewise.
27315 * include/grub/util/raid.h: Likewise.
27316 * util/lvm.c: Likewise.
27317 * util/raid.c: Likewise.
27318
27319 * include/grub/disk.h (grub_disk_dev_id): Add
27320 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
27321 (grub_disk_get_size): New prototype.
27322 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
27323 returns a partition.
27324 (grub_disk_get_size): New function.
27325
27326 * kern/i386/pc/init.c (make_install_device): Copy the prefix
27327 verbatim if grub_install_dos_part is -2.
27328
27329 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
27330 and LVM devices.
27331
27332 * util/i386/pc/grub-setup.c (setup): New argument
27333 MUST_EMBED. Force embedding of GRUB when the argument is
27334 true. Close FILE before returning.
27335 (main): Add support for RAID and LVM.
27336
27337 * conf/common.rmk: Add RAID and LVM modules.
27338 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
27339 util/lvm.c.
27340 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
27341
27342 * kern/misc.c (grub_strstr): New function.
27343 * include/grub/misc.h (grub_strstr): New prototype.
27344
27345 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
27346
27347 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
27348
27349 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
27350
27351 * kern/misc.c (grub_strtoull): Guess the base only if not
27352 specified.
27353
27354 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
27355
27356 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
27357 PowerMac support.
27358
27359 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
27360
27361 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
27362
27363 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
27364 Remove `flags' argument. All callers changed.
27365 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
27366 (IEEE1275_IHANDLE_INVALID): New variable.
27367 (IEEE1275_CELL_INVALID): New variable.
27368 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
27369 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
27370 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
27371 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
27372 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
27373 codes from Open Firmware. All callers updated.
27374 (grub_ieee1275_next_property): Directly return Open Firmware return
27375 code.
27376 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
27377 Standardize error checking from `grub_ieee1275_get_property'.
27378 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
27379 `devalias' to `aliases'. Correct comments. Consolidate error paths.
27380
27381 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
27382
27383 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
27384 `instance_to_package_args' to `instance_to_path_args'.
27385
27386 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
27387 `grub_ieee1275_chosen'.
27388
27389 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
27390 `grub_ieee1275_interpret'.
27391
27392 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
27393
27394 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
27395
27396 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
27397
27398 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
27399 (__cmpdi): Likewise.
27400
27401 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
27402 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
27403 `grub_ssize_t'.
27404
27405 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
27406
27407 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
27408 to type `grub_ssize_t'.
27409 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
27410
27411 2006-09-22 Marco Gerards <marco@gnu.org>
27412
27413 * normal/script.c (grub_script_create_cmdmenu): Skip leading
27414 newlines.
27415
27416 2006-09-22 Marco Gerards <marco@gnu.org>
27417
27418 * commands/echo.c: New file.
27419
27420 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
27421
27422 * conf/common.rmk (echo_mod_SOURCES): New variable.
27423 (echo_mod_CFLAGS): Likewise.
27424 (echo_mod_LDFLAGS): Likewise.
27425
27426 2006-09-22 Marco Gerards <marco@gnu.org>
27427
27428 * normal/main.c (get_line): Malloc memory instead of using
27429 preallocated memory. Removed the arguments `cmdline' and
27430 `max_len'. Updated all callers.
27431
27432 2006-09-22 Marco Gerards <marco@gnu.org>
27433
27434 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
27435 (normal_mod_DEPENDENCIES): Likewise.
27436
27437 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
27438 (normal_mod_DEPENDENCIES): Likewise.
27439
27440 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
27441
27442 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
27443
27444 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
27445 programs.
27446 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
27447 (normal_mod_DEPENDENCIES): Likewise.
27448 * conf/i386-pc.mk: Regenerate.
27449 * conf/i386-efi.mk: Likewise
27450 * conf/common.mk: Likewise.
27451 * conf/powerpc-ieee1275.mk: Likewise.
27452 * conf/sparc64-ieee1275.mk: Likewise.
27453
27454 2006-09-22 Robert Millan <rmh@aybabtu.com>
27455
27456 Sync with i386 version.
27457 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
27458 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
27459
27460 2006-09-21 Robert Millan <rmh@aybabtu.com>
27461
27462 Import from GRUB Legacy (lib/device.c):
27463 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
27464 (init_device_map) [__linux__]: Add support for I2O devices.
27465
27466 2006-09-14 Marco Gerards <marco@gnu.org>
27467
27468 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
27469 `-melf_i386'.
27470
27471 2006-09-14 Robert Millan <rmh@aybabtu.com>
27472
27473 * util/i386/pc/grub-install.in: Skip menu.lst when removing
27474 /boot/grub/*.lst.
27475
27476 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
27477
27478 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
27479 before adding it to device.map.
27480
27481 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
27482
27483 * genmk.rb: Let GCC generate dependencies the first time it
27484 compiles a file; using the -MD option.
27485 * conf/common.mk: Regenerate.
27486 * conf/i386-pc.mk: Likewise.
27487 * conf/i386-efi.mk: Likewise.
27488 * conf/powerpc-ieee1275.mk: Likewise.
27489 * conf/sparc64-ieee1275.mk: Likewise.
27490
27491 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
27492
27493 Move the prototypes of grub_setjmp and grub_longjmp to
27494 cpu/setjmp.h, so that each architecture may specify different
27495 attributes.
27496
27497 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
27498 (grub_longjmp): Likewise.
27499 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
27500 (grub_longjmp): Likewise.
27501 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
27502 (grub_longjmp): Likewise.
27503
27504 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
27505 [!GRUB_UTIL] (grub_longjmp): Removed.
27506
27507 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
27508
27509 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
27510 "color!" method does not return any value.
27511
27512 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
27513
27514 * include/grub/bitmap.h: New file.
27515
27516 * include/grub/i386/pc/vbeutil.h: Likewise.
27517
27518 * video/bitmap.c: Likewise.
27519
27520 * video/readers/tga.c: Likewise.
27521
27522 * video/i386/pc/vbeutil.c: Likewise.
27523
27524 * commands/videotest.c: Code cleanup and updated to reflect to new
27525 video API.
27526
27527 * term/gfxterm.c: Likewise.
27528
27529 * video/video.c: Likewise.
27530
27531 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
27532 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
27533 (bitmap_mod_SOURCES): New entry.
27534 (bitmap_mod_CFLAGS): Likewise.
27535 (bitmap_mod_LDFLAGS): Likewise.
27536 (tga_mod_SOURCES): Likewise.
27537 (tga_mod_CFLAGS): Likewise.
27538 (tga_mod_LDFLAGS): Likewise.
27539
27540 * include/grub/video.h (grub_video_blit_operators): New enum type.
27541 (grub_video_render_target): Changed as forward declaration and moved
27542 actual definition to be video driver specific.
27543 (grub_video_adapter.blit_bitmap): Added blitting operator.
27544 (grub_video_adapter.blit_render_target): Likewise.
27545 (grub_video_blit_bitmap): Likewise.
27546 (grub_video_blit_render_target): Likewise.
27547
27548 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
27549 driver specific render target definition.
27550 (grub_video_vbe_map_rgba): Added driver internal helper.
27551 (grub_video_vbe_unmap_color): Updated to use
27552 grub_video_i386_vbeblit_info.
27553 (grub_video_vbe_get_video_ptr): Likewise.
27554
27555 * include/grub/i386/pc/vbeblit.h
27556 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
27557 grub_video_i386_vbeblit_info.
27558 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
27559 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
27560 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
27561 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
27562 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
27563 (grub_video_i386_vbeblit_index_index): Likewise.
27564 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
27565 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
27566 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
27567 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
27568 operator.
27569 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
27570 operator.
27571
27572 * video/i386/pc/vbeblit.c: Updated to reflect changes on
27573 include/grub/i386/pc/vbeblit.h.
27574
27575 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
27576 Updated to use grub_video_i386_vbeblit_info.
27577 (grub_video_i386_vbefill_R8G8B8): Likewise.
27578 (grub_video_i386_vbefill_index): Likewise.
27579 (grub_video_i386_vbefill): Added generic filler.
27580
27581 * video/i386/pc/vbefill.c: Updated to reflect changes on
27582 include/grub/i386/pc/vbefill.h.
27583
27584 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
27585 grub_video_i386_vbeblit_info.
27586 (grub_video_vbe_unmap_color): Likewise.
27587 (grub_video_vbe_blit_glyph): Likewise.
27588 (grub_video_vbe_scroll): Likewise.
27589 (grub_video_vbe_draw_pixel): Removed function.
27590 (grub_video_vbe_get_pixel): Likewise.
27591 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
27592 updated code to use it.
27593 (common_blitter): Added common blitter for render target and bitmap.
27594 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
27595 (grub_video_vbe_blit_render_target): Likewise.
27596
27597 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
27598
27599 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
27600 is in text mode if there is no console control protocol instance
27601 available.
27602
27603 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
27604
27605 * include/grub/video.h: Code cleanup.
27606
27607 * include/grub/i386/pc/vbe.h: Likewise.
27608
27609 * video/i386/pc/vbe.c: Likewise.
27610
27611 * video/i386/pc/vbeblit.c: Likewise.
27612
27613 * video/i386/pc/vbefill.c: Likewise.
27614
27615 * video/video.c: Likewise. Also added more comments.
27616
27617 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
27618
27619 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
27620 (struct grub_biosdisk_dap): Likewise.
27621
27622 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
27623 linkage settings for all functions.
27624
27625 2006-07-12 Marco Gerards <marco@gnu.org>
27626
27627 * configure.ac (--enable-mm-debug): Fix typo.
27628
27629 * genkernsyms.sh.in: Use proper quoting for `CC'.
27630
27631 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
27632
27633 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
27634 (normal_mod_ASFLAGS): Remove "-m32".
27635
27636 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
27637
27638 * util/misc.c: Include config.h.
27639 [!HAVE_MEMALIGN]: Do not include malloc.h.
27640 (grub_memalign): Use posix_memalign, if present. Then, use
27641 memalign, if present. Otherwise, emit an error.
27642
27643 * util/grub-emu.c: Do not include malloc.h.
27644
27645 * include/grub/util/misc.h: Include unistd.h. This is required for
27646 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
27647 D. Eades III <hde@foobar-qux.org>.
27648
27649 * configure.ac (AC_GNU_SOURCE): Added.
27650 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
27651 type.
27652
27653 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
27654
27655 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
27656 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
27657
27658 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
27659
27660 * include/grub/types.h (grub_host_addr_t): Rename to
27661 grub_target_addr_t.
27662 (grub_host_off_t): Rename to grub_target_off_t.
27663 (grub_host_size_t): Rename to grub_target_size_t.
27664 (grub_host_ssize_t): Rename to grub_target_ssize_t.
27665 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
27666
27667 * include/grub/kernel.h (struct grub_module_header): Change type
27668 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
27669 (grub_module_info): Likewise.
27670
27671 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
27672
27673 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
27674 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
27675 Velazquez <jesus.velazquez@gmail.com>.
27676
27677 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
27678
27679 Count partitions from 1 instead of 0 in the string representation
27680 of partitions. Still use 0-based internally.
27681
27682 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
27683 (sun_partition_map_iterate): Use grub_partition_t instead of
27684 struct grub_partition *. Cast DESC->START_CYLINDER to
27685 grub_uint64_t after converting the endian.
27686 (sun_partition_map_probe): Subtract 1 for PARTNUM.
27687 (sun_partition_map_get_name): Add 1 to P->INDEX.
27688
27689 * partmap/pc.c (grub_partition_parse): Subtract 1 for
27690 PCDATA->DOS_PART.
27691 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
27692
27693 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
27694 zero instead of one.
27695 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
27696 (gpt_partition_map_get_name): Add 1 into P->INDEX.
27697
27698 * partmap/apple.c (apple_partition_map_iterate): Change the type
27699 of POS to unsigned.
27700 (apple_partition_map_probe): Subtract 1 for PARTNUM.
27701 (apple_partition_map_get_name): Add 1 into P->INDEX.
27702
27703 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
27704 of POS to unsigned.
27705 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
27706 calculate the offset of a partition.
27707 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
27708 (amiga_partition_map_get_name): Add 1 into P->INDEX.
27709
27710 * partmap/acorn.c (acorn_partition_map_find): Change the type of
27711 SECTOR to grub_disk_addr_t.
27712 (acorn_partition_map_iterate): Likewise.
27713 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
27714 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
27715 top.
27716 (acorn_partition_map_get_name): Add 1 into P->INDEX.
27717
27718 * kern/i386/pc/init.c (make_install_device): Add 1 into
27719 GRUB_INSTALL_DOS_PART.
27720
27721 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
27722 conditional.
27723
27724 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
27725
27726 Clean up the code to support 64-bit addressing in disks and
27727 files. This change is not enough for filesystems yet.
27728
27729 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
27730 type of "start" to grub_uint64_t.
27731 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
27732 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
27733 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
27734 convert addresses.
27735
27736 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
27737 to grub_disk_addr_t.
27738
27739 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
27740 string.
27741
27742 * partmap/pc.c (pc_partition_map_iterate): Likewise.
27743
27744 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
27745 to char *.
27746
27747 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
27748
27749 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
27750
27751 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
27752
27753 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
27754 to grub_off_t, to detect an error from grub_file_seek.
27755 (grub_multiboot_load_elf32): Likewise.
27756
27757 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
27758 maximum unsigned long value when an overflow is detected.
27759 (grub_strtoull): New function.
27760 (grub_divmod64): Likewise.
27761 (grub_lltoa): use grub_divmod64.
27762
27763 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
27764 grub_disk_addr_t.
27765 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
27766 the pointer to next character. Use grub_strtoull instead of
27767 grub_strtoul.
27768 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
27769 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
27770 respectively.
27771
27772 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
27773 return value is signed.
27774 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
27775 test if OFFSET is less than zero, as OFFSET is unsigned now.
27776
27777 * kern/disk.c (struct grub_disk_cache): Change the type of
27778 "sector" to grub_disk_addr_t.
27779 (grub_disk_cache_get_index): Change the type of SECTOR to
27780 grub_disk_addr_t. Calculate the hash with SECTOR casted to
27781 unsigned after shifting.
27782 (grub_disk_cache_invalidate): Change the type of SECTOR to
27783 grub_disk_addr_t.
27784 (grub_disk_cache_unlock): Likewise.
27785 (grub_disk_cache_store): Likewise.
27786 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
27787 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
27788 grub_disk_addr_t and grub_uint64_t, respectively.
27789 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
27790 body, as the value of OFFSET is tweaked by
27791 grub_disk_check_range. Change the types of START_SECTOR, LEN and
27792 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
27793 respectively.
27794 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
27795 body, as the value of OFFSET is tweaked by
27796 grub_disk_check_range. Change the types of LEN and N to
27797 grub_size_t.
27798
27799 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
27800 and "saved_offset" to grub_off_t.
27801 (test_header): Cast BUF to char *.
27802 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
27803 to char *.
27804 (grub_gzio_read): Change the types of OFFSET and SIZE to
27805 grub_off_t and grub_size_t, respectively.
27806
27807 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
27808 Removed.
27809 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
27810 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
27811 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
27812 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
27813 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
27814
27815 * include/grub/types.h (grub_off_t): Unconditionally set to
27816 grub_uint64_t.
27817 (grub_disk_addr_t): Changed to grub_uint64_t.
27818
27819 * include/grub/partition.h (struct grub_partition): Change the
27820 types of "start", "len" and "offset" to grub_disk_addr_t,
27821 grub_uint64_t and grub_disk_addr_t, respectively.
27822 (grub_partition_get_start): Return grub_disk_addr_t.
27823 (grub_partition_get_len): Return grub_uint64_t.
27824
27825 * include/grub/misc.h (grub_strtoull): New prototype.
27826 (grub_divmod64): Likewise.
27827
27828 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
27829 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
27830 grub_off_t, respectively.
27831 All callers and references changed.
27832
27833 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
27834 grub_size_t in "read".
27835 All callers and references changed.
27836
27837 * include/grub/file.h (struct grub_file): Change the types of
27838 "offset" and "size" to grub_off_t and grub_off_t,
27839 respectively. Change the type of SECTOR to grub_disk_addr_t in
27840 "read_hook".
27841 (grub_file_read): Change the type of LEN to grub_size_t.
27842 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
27843 grub_off_t.
27844 (grub_file_size): Return grub_off_t.
27845 (grub_file_tell): Likewise.
27846 All callers and references changed.
27847
27848 * include/grub/disk.h (struct grub_disk_dev): Change the types of
27849 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
27850 "write".
27851 (struct grub_disk): Change the type of "total_sectors" to
27852 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
27853 "read_hook".
27854 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
27855 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
27856 (grub_disk_write): Likewise.
27857 All callers and references changed.
27858
27859 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
27860 char * for grub_strncmp to silence gcc.
27861 (grub_iso9660_mount): Likewise.
27862 (grub_iso9660_mount): Likewise.
27863 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
27864 return statement.
27865 (grub_iso9660_iterate_dir): Likewise.
27866 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
27867
27868 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
27869 LEN to grub_disk_addr_t and grub_size_t, respectively.
27870
27871 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
27872
27873 * fs/jfs.c (grub_jfs_read_file): Likewise.
27874
27875 * fs/minix.c (grub_jfs_read_file): Likewise.
27876
27877 * fs/sfs.c (grub_jfs_read_file): Likewise.
27878
27879 * fs/ufs.c (grub_jfs_read_file): Likewise.
27880
27881 * fs/xfs.c (grub_jfs_read_file): Likewise.
27882
27883 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
27884 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
27885 respectively.
27886
27887 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
27888 BLKNR to -1 instead of returning GRUB_ERRNO.
27889 (grub_ext2_read_file): Change the types of SECTOR and
27890 LEN to grub_disk_addr_t and grub_size_t, respectively.
27891
27892 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
27893 LEN to grub_disk_addr_t and grub_size_t, respectively.
27894
27895 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
27896 grub_file_read.
27897
27898 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
27899 string. Do not cast SECTOR explicitly.
27900
27901 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
27902 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
27903 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
27904 grub_disk_addr_t and grub_size_t, respectively. If the sector is
27905 over 2TB and LBA mode is not supported, raise an error.
27906 (get_safe_sectors): New function.
27907 (grub_biosdisk_read): Use get_safe_sectors.
27908 (grub_biosdisk_write): Likewise.
27909
27910 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
27911 (grub_efidisk_write): Likewise.
27912
27913 * disk/loopback.c (delete_loopback): Cosmetic changes.
27914 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
27915 correctly.
27916 (grub_loopback_open): Likewise.
27917 (grub_loopback_read): Likewise. Also, change the type of POS to
27918 grub_off_t, and fix the usage of grub_memset.
27919
27920 * commands/i386/pc/play.c: Include grub/machine/time.h.
27921
27922 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
27923 print FILE->SIZE.
27924
27925 * commands/configfile.c: Include grub/env.h.
27926
27927 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
27928 GRUB_ERRNO directly instead. Change the type of POS to
27929 grub_off_t. Follow the coding standard.
27930
27931 * commands/blocklist.c: Include grub/partition.h.
27932 (grub_cmd_blocklist): Return an error if the underlying device is
27933 not a disk. Take the starting sector of a partition into account,
27934 if a partition is used.
27935
27936 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
27937 a length field.
27938 (lba_mode): Support 64-bit addresses.
27939 (chs_mode): Likewise.
27940 (copy_buffer): Adapted to the new offsets of a length field and a
27941 segment field.
27942 (blocklist_default_start): Allocate 64-bit space.
27943
27944 * boot/i386/pc/boot.S (force_lba): Removed.
27945 (boot_drive): Moved to under KERNEL_SECTOR.
27946 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
27947 space.
27948 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
27949 is useless.
27950 (lba_mode): Refactored to support a 64-bit address. More size
27951 optimization.
27952 (setup_sectors): Likewise.
27953
27954 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
27955
27956 * DISTLIST: Added include/grub/i386/linux.h. Removed
27957 include/grub/i386/pc/linux.h
27958
27959 * configure.ac (AC_INIT): Bumped to 1.94.
27960
27961 * config.guess: Updated from gnulib.
27962 * config.sub: Likewise.
27963 * install-sh: Likewise.
27964 * mkinstalldirs: Likewise.
27965
27966 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
27967
27968 * conf/common.rmk (grub_modules_init.lst): Depended on
27969 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
27970 MODSRCFILES.
27971
27972 * genmk.rb (PModule::rule): Reverted the previous change.
27973
27974 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
27975
27976 * conf/common.rmk (grub_modules_init.lst): Depends on
27977 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
27978 that the target does not exist before producing.
27979 (grub_modules_init.h): Remove the target before generating.
27980 (grub_emu_init.c): Likewise.
27981
27982 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
27983
27984 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
27985
27986 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
27987 for the target-specific tests. Make sure that we also have the
27988 up-to-date target variables for those tests.
27989
27990 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
27991
27992 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
27993 (PModule::rule): Likewise.
27994
27995 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
27996
27997 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
27998 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
27999 target-specific flags should be prefixed.
28000 (PModule::rule): Likewise.
28001
28002 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
28003
28004 * configure.ac (CMP): Check if cmp is available explicitly.
28005
28006 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
28007
28008 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
28009 (target_cpu): New variable.
28010 (pkglibdir): Use target_cpu instead of host_cpu.
28011
28012 * util/i386/pc/grub-install.in (host_cpu): Removed.
28013 (target_cpu): New variable.
28014 (pkglibdir): Use target_cpu instead of host_cpu.
28015
28016 * util/genmoddep.c: Removed.
28017
28018 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
28019 instead of GRUB_HOST_SIZEOF_VOID_P.
28020 * kern/dl.c: Likewise.
28021
28022 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
28023 ...
28024 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
28025 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
28026 (GRUB_TARGET_SIZEOF_LONG): ... this.
28027 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
28028 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
28029 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
28030 to ...
28031 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
28032 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
28033 (GRUB_TARGET_SIZEOF_LONG): ... this.
28034 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
28035 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
28036 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
28037 to ...
28038 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
28039 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
28040 (GRUB_TARGET_SIZEOF_LONG): ... this.
28041 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
28042 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
28043
28044 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
28045 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
28046 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
28047 instead of GRUB_HOST_SIZEOF_LONG.
28048 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
28049 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
28050 GRUB_CPU_WORDS_BIGENDIAN.
28051 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
28052 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
28053 grub_host_ssize_t.
28054
28055 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
28056 (genmoddep_SOURCES): Likewise.
28057 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
28058 (genmoddep_SOURCES): Likewise.
28059 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
28060 (genmoddep_SOURCES): Likewise.
28061 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
28062 Likewise.
28063 (genmoddep_SOURCES): Likewise.
28064
28065 * genmoddep.awk: New file.
28066
28067 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
28068 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
28069 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
28070 (PModule::rule): Likewise.
28071 (Program::rule): Likewise.
28072 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
28073 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
28074 respectively.
28075
28076 * configure.ac: Rewritten intensively to use host and target
28077 instead of build and host, respectively.
28078
28079 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
28080 (host_cpu): Removed.
28081 (target_cpu): New variable.
28082 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
28083 (BUILD_CC): Removed.
28084 (BUILD_CFLAGS): Likewise.
28085 (BUILD_CPPFLAGS): Likewise.
28086 (TARGET_CC): New variable.
28087 (TARGET_CFLAGS): Likewise.
28088 (TARGET_CPPFLAGS): Likewise.
28089 (TARGET_LDFLAGS): Likewise.
28090 (AWK): Likewise.
28091 (include): Use target_cpu instead of host_cpu.
28092 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
28093
28094 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
28095
28096 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
28097
28098 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
28099 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
28100 field 'false' to 'exec_on_false'.
28101 (grub_script_create_cmdif): Renamed argument names to reflect above
28102 changes.
28103
28104 * normal/execute.c (grub_script_execute_cmdif): Likewise.
28105
28106 * normal/script.c (grub_script_create_cmdif): Likewise.
28107
28108 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
28109
28110 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
28111 top.
28112 (grub_hfsplus_btree_recptr): Likewise.
28113 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
28114 FILEBLOCK both to pass a block number and store next block
28115 number.
28116 (grub_hfsplus_read_block): Rewritten heavily to support an extent
28117 overflow file correctly. Specify errors appropriately, because
28118 fshelp expects that GRUB_ERRNO is set when fails. Reuse
28119 grub_hfsplus_btree_recptr to get the pointer to a found key.
28120 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
28121 is found.
28122
28123 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
28124 linux.mod.
28125 (_linux_mod_SOURCES): New variable.
28126 (_linux_mod_CFLAGS): Likewise.
28127 (_linux_mod_LDFLAGS): Likewise.
28128 (linux_mod_SOURCES): Likewise.
28129 (linux_mod_CFLAGS): Likewise.
28130 (linux_mod_LDFLAGS): Likewise.
28131
28132 * DISTLIST: Added loader/i386/efi/linux.c,
28133 loader/i386/efi/linux_normal.c and
28134 include/grub/i386/efi/loader.h.
28135
28136 * loader/i386/efi/linux.c: New file.
28137 * loader/i386/efi/linux_normal.c: Likewise.
28138 * include/grub/i386/efi/loader.h: Likewise.
28139
28140 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
28141
28142 * commands/blocklist.c: New file.
28143
28144 * DISTLIST: Added commands/blocklist.c.
28145
28146 * term/efi/console.c (grub_console_highlight_color): Use a lighter
28147 color for the background, and a darker color for the foreground.
28148 (grub_console_checkkey): Return READ_KEY.
28149 (grub_console_cls): Set the background to
28150 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
28151
28152 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
28153
28154 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
28155 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
28156
28157 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
28158 prototype.
28159
28160 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
28161 BG. The spec is wrong again.
28162
28163 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
28164 prototype.
28165 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
28166
28167 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
28168 commands/blocklist.c.
28169 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28170
28171 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
28172 (blocklist_mod_SOURCES): New variable.
28173 (blocklist_mod_CFLAGS): Likewise.
28174 (blocklist_mod_LDFLAGS): Likewise.
28175
28176 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
28177
28178 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
28179 duplication.
28180 (lba_mode): Use %eax more intensively to reduce the code size.
28181
28182 2006-05-20 Marco Gerards <marco@gnu.org>
28183
28184 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
28185
28186 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
28187 for `menuentry'.
28188 (script): Accept leading newlines.
28189 (newlines): New rule to describe 0 or more newlines.
28190 (commands): Accept `command' with trailing newline. Fixed the
28191 order in which arguments were passed to `grub_script_add_cmd'.
28192 Accept commands separated by newlines.
28193 (function): Changed to accept newlines.
28194 (menuentry) Rewritten.
28195
28196 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
28197 front of the list, instead of to the end.
28198
28199 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
28200
28201 * util/i386/pc/grub-install.in (bindir): New variable.
28202 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
28203 Shaver <lbgwjl@gmail.com>.
28204
28205 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
28206
28207 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
28208 grub/machine/linux.h
28209 * loader/i386/pc/linux.c: Likewise.
28210
28211 * include/grub/i386/pc/linux.h: Moved to ...
28212 * include/grub/i386/linux.h: ... here.
28213
28214 * include/grub/i386/linux.h (struct linux_kernel_params): New
28215 struct.
28216
28217 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
28218
28219 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
28220 checking.
28221 (grub_video_vbe_blit_glyph): Likewise.
28222 (grub_video_vbe_blit_bitmap): Likewise.
28223 (grub_video_vbe_blit_render_target): Likewise.
28224
28225 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
28226
28227 * configure.ac (--with-platform): Properly quote the square
28228 brackets.
28229
28230 2006-05-08 Marco Gerards <marco@gnu.org>
28231
28232 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
28233 this...
28234 (kernel_elf_HEADERS): ...to this. Updated all users.
28235 (grubof_symlist.c): Renamed from this...
28236 (kernel_elf_symlist.c): ...to this. Updated all users.
28237 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
28238 (grubof_SOURCES): Renamed from this...
28239 (kernel_elf_SOURCES): ...to this.
28240 (grubof_HEADERS): Renamed from this...
28241 (kernel_elf_HEADERS): ...to this.
28242 (grubof_CFLAGS): Renamed from this...
28243 (kernel_elf_CFLAGS): ...to this.
28244 (grubof_ASFLAGS): Renamed from this...
28245 (kernel_elf_ASFLAGS): ...to this.
28246 (grubof_LDFLAGS): Renamed from this...
28247 (kernel_elf_LDFLAGS): ...to this.
28248
28249 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
28250 this...
28251 (kernel_elf_HEADERS): ...to this. Updated all users.
28252 (grubof_symlist.c): Renamed from this...
28253 (kernel_elf_symlist.c): ...to this. Updated all users.
28254 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
28255 (grubof_SOURCES): Renamed from this...
28256 (kernel_elf_SOURCES): ...to this.
28257 (grubof_HEADERS): Renamed from this...
28258 (kernel_elf_HEADERS): ...to this.
28259 (grubof_CFLAGS): Renamed from this...
28260 (kernel_elf_CFLAGS): ...to this.
28261 (grubof_ASFLAGS): Renamed from this...
28262 (kernel_elf_ASFLAGS): ...to this.
28263 (grubof_LDFLAGS): Renamed from this...
28264 (kernel_elf_LDFLAGS): ...to this.
28265
28266 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
28267 `kernel.elf' instead of `grubof'.
28268
28269 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
28270
28271 Add --with-platform to configure. Use pkglibdir instead of
28272 pkgdatadir. This is reported by Roger Leigh.
28273
28274 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
28275 (host_vendor): Likewise.
28276 (host_os): Likewise.
28277 (pkgdatadir): Likewise.
28278 (platform): New variable.
28279 (pkglibdir): Likewise.
28280 Use PKGLIBDIR instead of PKGDATADIR.
28281
28282 * util/i386/pc/grub-install.in (datadir): Removed.
28283 (host_vendor): Likewise.
28284 (host_os): Likewise.
28285 (pkgdatadir): Likewise.
28286 (platform): New variable.
28287 (pkglibdir): Likewise.
28288 Use PKGLIBDIR instead of PKGDATADIR.
28289
28290 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
28291 instead of GRUB_DATADIR.
28292 (main): Likewise.
28293 * util/i386/pc/grub-mkimage.c (usage): Likewise.
28294 (main): Likewise.
28295 * util/i386/efi/grub-mkimage.c (usage): Likewise.
28296 (main): Likewise.
28297
28298 * configure.ac (--with-platform): New option.
28299 Use PLATFORM instead of HOST_VENDOR to specify a platform.
28300
28301 * Makefile.in: Include a makefile based on PLATFORM instead of
28302 HOST_VENDOR.
28303 (pkgdatadir): Not appended by the machine type.
28304 (pkglibdir): Appended by the machine type.
28305 (host_vendor): Removed.
28306 (platform): New variable.
28307 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
28308 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
28309 (uninstall): Likewise.
28310
28311 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
28312
28313 Use the environment context in the menu. Remove the commands
28314 "default" and "timeout", and use variables instead.
28315
28316 * normal/menu.c: Include grub/env.h.
28317 (print_entry): Cast TITLE to silence gcc.
28318 (get_timeout): New function.
28319 (set_timeout): Likewise.
28320 (get_entry_number): Likewise.
28321 (run_menu): Use a default entry, a fallback entry and a timeout
28322 in the environment variables "default", "fallback" and
28323 "timeout". Also, tweak the default entry if it is not within the
28324 current menu entries.
28325 (grub_menu_run): Use a fallback entry in the environment variable
28326 "fallback".
28327
28328 * normal/main.c (read_config_file): Do not initialize
28329 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
28330 NEWMENU->TIMEOUT.
28331 (grub_normal_execute): Use a data slot to store the menu.
28332
28333 * include/grub/normal.h (struct grub_menu): Removed default_entry,
28334 fallback_entry and timeout.
28335 (struct grub_menu_list): Removed.
28336 (grub_menu_list_t): Likewise.
28337 (struct grub_context): Likewise.
28338 (grub_context_t): Likewise.
28339 (grub_context_get): Likewise.
28340 (grub_context_get_current_menu): Likewise.
28341 (grub_context_push_menu): Likewise.
28342 (grub_context_pop_menu): Likewise.
28343 (grub_default_init): Likewise.
28344 (grub_default_fini): Likewise.
28345 (grub_timeout_init): Likewise.
28346 (grub_timeout_fini): Likewise.
28347
28348 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
28349 and timeout.mod.
28350 (normal_mod_SOURCES): Removed normal/context.c.
28351
28352 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
28353 commands/default.c, commands/timeout.c and normal/context.c.
28354 (normal_mod_SOURCES): Removed normal/context.c.
28355
28356 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
28357 commands/timeout.c and normal/context.c.
28358 (normal_mod_SOURCES): Removed normal/context.c.
28359
28360 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
28361 commands/default.c, commands/timeout.c and normal/context.c.
28362 (normal_mod_SOURCES): Removed normal/context.c.
28363
28364 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
28365 timeout.mod.
28366 (default_mod_SOURCES): Removed.
28367 (default_mod_CFLAGS): Likewise.
28368 (default_mod_LDFLAGS): Likewise.
28369 (timeout_mod_SOURCES): Removed.
28370 (timeout_mod_CFLAGS): Likewise.
28371 (timeout_mod_LDFLAGS): Likewise.
28372
28373 * DISTLIST: Removed commands/default.c, commands/timeout.c and
28374 normal/context.c.
28375
28376 * commands/default.c: Removed.
28377 * commands/timeout.c: Likewise.
28378 * normal/context.c: Likewise.
28379
28380 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
28381
28382 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
28383
28384 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
28385
28386 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
28387 "next" to "prev" for readability.
28388 (struct grub_env_sorted_var): New struct.
28389 (grub_env_context): Renamed to ...
28390 (initial_context): ... this.
28391 (grub_env_var_context): Renamed to ...
28392 (current_context): ... this.
28393 (grub_env_find): Look only at CURRENT_CONTEXT.
28394 (grub_env_context_open): Rewritten to copy exported variables from
28395 previous context.
28396 (grub_env_context_close): Rewritten according to the new
28397 scheme. Also, add an assertion to prevent the initial context from
28398 removed.
28399 (grub_env_insert): Removed the code for the sorted list.
28400 (grub_env_remove): Likewise.
28401 (grub_env_export): Simply mark the variable with
28402 GRUB_ENV_VAR_GLOBAL.
28403 (grub_env_set): A cosmetic change for naming consistency.
28404 (grub_env_get): Likewise.
28405 (grub_env_unset): Likewise.
28406 (grub_env_iterate): Rewritten to sort variables within this
28407 function.
28408 (grub_register_variable_hook): Fixed for naming consistency. Call
28409 grub_env_find again, only if NAME is not found at the first time.
28410 (mangle_data_slot_name): New function.
28411 (grub_env_set_data_slot): Likewise.
28412 (grub_env_get_data_slot): Likewise.
28413 (grub_env_unset_data_slot): Likewise.
28414
28415 * include/grub/env.h (grub_env_var_type): New enum.
28416 (GRUB_ENV_VAR_LOCAL): New constant.
28417 (GRUB_ENV_VAR_GLOBAL): Likewise.
28418 (GRUB_ENV_VAR_DATA): Likewise.
28419 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
28420 "type".
28421 (grub_env_set): Replace VAR with NAME for consistency.
28422 (grub_register_variable_hook): Likewise.
28423 (grub_env_export): Specify the name of the argument.
28424 (grub_env_set_data_slot): New prototype.
28425 (grub_env_get_data_slot): Likewise.
28426 (grub_env_unset_data_slot): Likewise.
28427
28428 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
28429
28430 Extend the loader so that GRUB can accept a loader which comes
28431 back to GRUB when a loaded image exits. Also, this change adds
28432 support for a chainloader on EFI.
28433
28434 * term/efi/console.c: Include grub/misc.h.
28435 (grub_console_checkkey): Display a scan code on the top for
28436 debugging. This will be removed once the EFI port gets stable.
28437 Correct the scan code mapping.
28438
28439 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
28440 allocate memory from larger regions, in order to reduce the number
28441 of allocated regions. Otherwise, the MacOSX loader panics.
28442 (filter_memory_map): Avoid less than 1MB for compatibility with
28443 other loaders.
28444 (add_memory_regions): Allocate from the tail of a region, if
28445 possible, to avoid allocating a region near to 1MB, for the MacOSX
28446 loader.
28447
28448 * kern/efi/init.c (grub_efi_set_prefix): Specify
28449 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
28450
28451 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
28452 argument IMAGE_HANDLE and specify it to get a loaded image.
28453 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
28454 grub_efi_get_loaded_image.
28455 (grub_efi_get_filename): Divide the length by the size of
28456 grub_efi_char16_t.
28457 (grub_efi_get_device_path): New function.
28458 (grub_efi_print_device_path): Print End Device Path nodes. Divide
28459 the length by the size of grub_efi_char16_t for a file path device
28460 path node.
28461
28462 * kern/loader.c (grub_loader_noreturn): New variable.
28463 (grub_loader_set): Accept a new argument NORETURN. Set
28464 GRUB_LOADER_NORETURN to NORETURN.
28465 All callers changed.
28466 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
28467 grub_machine_fini.
28468
28469 * include/grub/efi/efi.h (grub_efi_get_device_path): New
28470 prototype.
28471 (grub_efi_get_loaded_image): Take an argument to specify an image
28472 handle.
28473
28474 * include/grub/loader.h (grub_loader_set): Added one more argument
28475 NORETURN.
28476
28477 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
28478 instead of grub_efi_open_protocol.
28479 (grub_efidisk_get_device_name): Likewise.
28480 (grub_efidisk_close): Print a newline.
28481 (grub_efidisk_get_device_handle): Fixed to use
28482 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
28483 GRUB_EFI_DEVICE_PATH_TYPE.
28484
28485 * disk/efi/efidisk.c (device_path_guid): Moved to ...
28486 * kern/efi/efi.c (device_path_guid): ... here.
28487
28488 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
28489 chain.mod.
28490 (kernel_mod_HEADERS): Added efi/disk.h.
28491 (_chain_mod_SOURCES): New variable.
28492 (_chain_mod_CFLAGS): Likewise.
28493 (_chain_mod_LDFLAGS): Likewise.
28494 (chain_mod_SOURCES): Likewise.
28495 (chain_mod_CFLAGS): Likewise.
28496 (chain_mod_LDFLAGS): Likewise.
28497
28498 * DISTLIST: Added include/grub/efi/chainloader.h,
28499 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
28500
28501 * include/grub/efi/chainloader.h: New file.
28502 * loader/efi/chainloader.c: Likewise.
28503 * loader/efi/chainloader_normal.c: Likewise.
28504
28505 2006-04-30 Marco Gerards <marco@gnu.org>
28506
28507 * commands/configfile.c (grub_cmd_source): New function.
28508 (GRUB_MOD_INIT): Register the commands `source' and `.'.
28509 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
28510
28511 2006-04-30 Marco Gerards <marco@gnu.org>
28512
28513 * normal/execute.c (grub_script_execute_cmd): Change the return
28514 type to `grub_err_t'. Correctly return the error.
28515 (grub_script_execute_cmdline): In case a command line is not a
28516 command or a function, try to interpret it as an assignment.
28517
28518 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
28519
28520 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
28521 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
28522 skip a node whose name is obviously invalid as UTF-16,
28523 i.e. contains a NUL character. Stop the iteration when the last
28524 directory entry is found. Instead of using the return value of
28525 grub_hfsplus_btree_iterate_node, store the value in RET and use
28526 it, because the iterator can be stopped by the last directory
28527 entry.
28528
28529 2006-04-30 Marco Gerards <marco@gnu.org>
28530
28531 * include/grub/env.h (grub_env_export): New prototype. Reported
28532 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
28533
28534 2006-04-30 Marco Gerards <marco@gnu.org>
28535
28536 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
28537 size of the extents in a catalog file record.
28538
28539 2006-04-29 Marco Gerards <marco@gnu.org>
28540
28541 * commands/configfile.c (grub_cmd_configfile): Execute the
28542 configfile within its own context.
28543
28544 * include/grub/env.h (grub_env_context_open): New prototype.
28545 (grub_env_context_close): Likewise.
28546
28547 * kern/env.c (grub_env): Removed.
28548 (grub_env_sorted): Likewise.
28549 (grub_env_context): New variable.
28550 (grub_env_var_context): Likewise.
28551 (grub_env_find): Search both the active context and the global
28552 context.
28553 (grub_env_context_open): New function.
28554 (grub_env_context_close): Likewise.
28555 (grub_env_insert): Likewise.
28556 (grub_env_remove): Likewise.
28557 (grub_env_export): Likewise.
28558 (grub_env_set): Changed to use helper functions to avoid code
28559 duplication.
28560 (grub_env_iterate): Rewritten so both the current context and the
28561 global context are being used.
28562
28563 * normal/command.c (export_command): New function.
28564 (grub_command_init): Register the `export' function.
28565
28566 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
28567
28568 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
28569 explicitly to suppress gcc's warnings.
28570 * fs/fat.c (grub_fat_find_dir): Likewise.
28571 (grub_fat_label): Likewise.
28572 * fs/xfs.c (grub_xfs_read_inode): Likewise.
28573 (grub_xfs_mount): Likewise.
28574 (grub_xfs_label): Likewise.
28575 * fs/affs.c (grub_affs_mount): Likewise.
28576 (grub_affs_label): Likewise.
28577 (grub_affs_iterate_dir): Likewise.
28578 * fs/sfs.c (grub_sfs_mount): Likewise.
28579 (grub_sfs_iterate_dir): Likewise.
28580 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
28581 * fs/hfs.c (grub_hfs_mount): Likewise.
28582 (grub_hfs_cmp_catkeys): Likewise.
28583 (grub_hfs_find_dir): Likewise.
28584 (grub_hfs_dir): Likewise.
28585 (grub_hfs_label): Likewise.
28586 * fs/jfs.c (grub_jfs_mount): Likewise.
28587 (grub_jfs_opendir): Likewise.
28588 (grub_jfs_getent): Likewise.
28589 (grub_jfs_lookup_symlink): Likewise.
28590 (grub_jfs_label): Likewise.
28591 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
28592 (grub_hfsplus_iterate_dir): Likewise.
28593 (grub_hfsplus_btree_iterate_node): Made static.
28594
28595 * util/grub-emu.c (prefix): New variable.
28596 (grub_machine_set_prefix): New function.
28597 (main): Do not set the environment variable "prefix" here. Only
28598 set PREFIX, which is used later by grub_machine_set_prefix.
28599
28600 * include/grub/video.h: Do not include grub/symbol.h.
28601 (grub_video_register): Not exported. This symbol is not defined in
28602 the kernel.
28603 (grub_video_unregister): Likewise.
28604 (grub_video_iterate): Likewise.
28605 (grub_video_setup): Likewise.
28606 (grub_video_restore): Likewise.
28607 (grub_video_get_info): Likewise.
28608 (grub_video_get_blit_format): Likewise.
28609 (grub_video_set_palette): Likewise.
28610 (grub_video_get_palette): Likewise.
28611 (grub_video_set_viewport): Likewise.
28612 (grub_video_get_viewport): Likewise.
28613 (grub_video_map_color): Likewise.
28614 (grub_video_map_rgb): Likewise.
28615 (grub_video_map_rgba): Likewise.
28616 (grub_video_fill_rect): Likewise.
28617 (grub_video_blit_glyph): Likewise.
28618 (grub_video_blit_bitmap): Likewise.
28619 (grub_video_blit_render_target): Likewise.
28620 (grub_video_scroll): Likewise.
28621 (grub_video_swap_buffers): Likewise.
28622 (grub_video_create_render_target): Likewise.
28623 (grub_video_delete_render_target): Likewise.
28624 (grub_video_set_active_render_target): Likewise.
28625
28626 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
28627 Undefined.
28628 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
28629
28630 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
28631 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
28632 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
28633 instead of $(srcdir)/genkernsyms.sh.
28634
28635 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
28636 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
28637 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
28638 instead of $(srcdir)/genkernsyms.sh.
28639
28640 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
28641 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
28642 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
28643 instead of $(srcdir)/genkernsyms.sh.
28644
28645 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
28646 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
28647 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
28648 instead of $(srcdir)/genkernsyms.sh.
28649
28650 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
28651 genkernsyms.sh.
28652
28653 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
28654 genkernsyms.sh.
28655 (gensymlist.sh): New target.
28656 (genkernsyms.sh): Likewise.
28657
28658 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
28659 genkernsyms.sh.in and gensymlist.sh.in.
28660
28661 * genkernsyms.sh: Removed.
28662 * gensymlist.sh: Likewise.
28663
28664 * genkernsyms.sh.in: New file.
28665 * gensymlist.sh.in: Likewise.
28666
28667 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
28668
28669 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
28670 clobber "prefix", since we may have already set it manually.
28671
28672 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
28673
28674 * kern/misc.c (abort): New alias for grub_abort.
28675
28676 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
28677
28678 A new machine-specific function "grub_machine_set_prefix" is
28679 defined. This is called after loading modules, so that a prefix
28680 initialization can use modules. Also, this change adds an
28681 intensive debugging feature for the memory manager via the
28682 configure option "--enable-mm-debug".
28683
28684 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
28685 PART.LEN.
28686
28687 * kern/sparc64/ieee1275/init.c (abort): Removed.
28688 (grub_stop): Likewise.
28689 (grub_exit): New function.
28690 (grub_set_prefix): Renamed to ...
28691 (grub_machine_set_prefix): ... this.
28692 (grub_machine_init): Do not call grub_set_prefix.
28693
28694 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
28695 (grub_machine_set_prefix): ... this.
28696 (grub_machine_init): Do not call grub_set_prefix.
28697
28698 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
28699 (grub_machine_init): Do not set the prefix here.
28700
28701 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
28702
28703 * kern/efi/init.c: Include grub/mm.h.
28704 (grub_efi_set_prefix): New function.
28705
28706 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
28707 (grub_efi_get_filename): New function.
28708 (grub_print_device_path): Renamed to ...
28709 (grub_efi_print_device_path): ... this.
28710
28711 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
28712 [MM_DEBUG] (grub_realloc): Likewise.
28713 [MM_DEBUG] (grub_free): Likewise.
28714 [MM_DEBUG] (grub_memalign): Likewise.
28715 [MM_DEBUG] (grub_mm_debug): New variable.
28716 [MM_DEBUG] (grub_debug_malloc): New function.
28717 [MM_DEBUG] (grub_debug_free): New function.
28718 [MM_DEBUG] (grub_debug_realloc): New function.
28719 [MM_DEBUG] (grub_debug_memalign): New function.
28720
28721 * kern/misc.c (grub_abort): Print a newline to distinguish
28722 the message.
28723
28724 * kern/main.c (grub_main): Call grub_machine_set_prefix and
28725 grub_set_root_dev after loading modules. This is necessary when
28726 setting a prefix depends on modules.
28727
28728 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
28729 (grub_efi_print_device_path): ... this.
28730 (grub_efi_get_filename): New prototype.
28731 (grub_efi_set_prefix): Likewise.
28732
28733 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
28734 and grub/disk.h.
28735 (grub_efidisk_get_device_handle): New prototype.
28736 (grub_efidisk_get_device_name): Likewise.
28737
28738 * include/grub/mm.h: Include config.h.
28739 (MM_DEBUG): Removed.
28740 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
28741 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
28742 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
28743 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
28744 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
28745 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
28746 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
28747 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
28748 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
28749
28750 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
28751
28752 * disk/efi/efidisk.c: Include grub/partition.h.
28753 (iterate_child_devices): New function.
28754 (add_device): First, compare only last device path nodes, so that
28755 devices are sorted by the types.
28756 (grub_efidisk_get_device_handle): New function.
28757 (grub_efidisk_get_device_name): Likewise.
28758
28759 * configure.ac (--enable-mm-debug): New option to enable the
28760 memory manager debugging feature. This makes the binary much
28761 bigger, so is disabled by default.
28762
28763 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
28764
28765 Use grub_abort instead of grub_stop, and grub_exit must be
28766 define in each architecture now. Also, this change adds support
28767 for EFI disks.
28768
28769 * util/i386/pc/grub-probefs.c: Include grub/term.h.
28770 (grub_getkey): New function.
28771 (grub_term_get_current): Likewise.
28772
28773 * util/i386/pc/grub-setup.c: Include grub/term.h.
28774 (grub_getkey): New function.
28775 (grub_term_get_current): Likewise.
28776
28777 * util/misc.c (grub_stop): Renamed to ...
28778 (grub_exit): ... this.
28779
28780 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
28781 (grub_exit): ... this.
28782 (grub_machine_init): Use grub_abort instead of abort.
28783 (grub_stop): Removed.
28784
28785 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
28786 abort.
28787
28788 * kern/i386/pc/startup.S (grub_exit): New function.
28789 (cold_reboot): New label.
28790
28791 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
28792 (grub_efi_init): Call grub_efidisk_init.
28793 (grub_efi_fini): Call grub_efidisk_fini.
28794
28795 * kern/efi/efi.c: Include grub/mm.h.
28796 (grub_efi_console_control_guid): Renamed to ...
28797 (console_control_guid): ... this.
28798 (grub_efi_loaded_image_guid): Renamed to ...
28799 (loaded_image_guid): ... this.
28800 (grub_efi_locate_handle): New function.
28801 (grub_efi_open_protocol): Likewise.
28802 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
28803 GRUB_EFI_CONSOLE_CONTROL_GUID.
28804 (grub_efi_exit): Removed.
28805 (grub_stop): Likewise.
28806 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
28807 (grub_exit): New function.
28808 (grub_print_device_path): Likewise.
28809
28810 * kern/rescue.c (grub_rescue_cmd_exit): New function.
28811 (grub_enter_rescue_mode): Register "exit".
28812
28813 * kern/misc.c (grub_real_dprintf): A cosmetic change.
28814 (grub_abort): New function.
28815
28816 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
28817
28818 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
28819
28820 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
28821
28822 * include/grub/efi/efi.h (grub_efi_exit): Removed.
28823 (grub_print_device_path): New prototype.
28824 (grub_efi_locate_handle): Likewise.
28825 (grub_efi_open_protocol): Likewise.
28826
28827 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
28828 * disk/efi/efidisk.c: Likewise.
28829
28830 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
28831
28832 * include/grub/efi/console_control.h
28833 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
28834
28835 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
28836 last 8 bytes as an array.
28837 (GRUB_EFI_DISK_IO_GUID): New macro.
28838 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
28839 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
28840 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
28841 grub_uint8_t.
28842 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
28843 (struct grub_efi_device_path): Rename the member "sub_type" to
28844 "subtype".
28845 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
28846 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
28847 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
28848 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
28849 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
28850 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
28851 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
28852 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
28853 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
28854 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
28855 (struct grub_efi_pci_device_path): New structure.
28856 (grub_efi_pci_device_path_t): New type.
28857 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
28858 (struct grub_efi_pccard_device_path): New structure.
28859 (grub_efi_pccard_device_path_t): New type.
28860 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
28861 (struct grub_efi_memory_mapped_device_path): New structure.
28862 (grub_efi_memory_mapped_device_path_t): New type.
28863 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
28864 (struct grub_efi_vendor_device_path): New structure.
28865 (grub_efi_vendor_device_path_t): New type.
28866 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
28867 (struct grub_efi_controller_device_path): New structure.
28868 (grub_efi_controller_device_path_t): New type.
28869 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
28870 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
28871 (struct grub_efi_acpi_device_path): New structure.
28872 (grub_efi_acpi_device_path_t): New type.
28873 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
28874 (struct grub_efi_expanded_acpi_device_path): New structure.
28875 (grub_efi_expanded_acpi_device_path_t): New type.
28876 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
28877 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
28878 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
28879 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
28880 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
28881 (struct grub_efi_atapi_device_path): New structure.
28882 (grub_efi_atapi_device_path_t): New type.
28883 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
28884 (struct grub_efi_fibre_channel_device_path): New structure.
28885 (grub_efi_fibre_channel_device_path_t): New type.
28886 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
28887 (struct grub_efi_1394_device_path): New structure.
28888 (grub_efi_1394_device_path_t): New type.
28889 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
28890 (struct grub_efi_usb_device_path): New structure.
28891 (grub_efi_usb_device_path_t): New type.
28892 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
28893 (struct grub_efi_usb_class_device_path): New structure.
28894 (grub_efi_usb_class_device_path_t): New type.
28895 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
28896 (struct grub_efi_i2o_device_path): New structure.
28897 (grub_efi_i2o_device_path_t): New type.
28898 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
28899 (struct grub_efi_mac_address_device_path): New structure.
28900 (grub_efi_mac_address_device_path_t): New type.
28901 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
28902 (struct grub_efi_ipv4_device_path): New structure.
28903 (grub_efi_ipv4_device_path_t): New type.
28904 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
28905 (struct grub_efi_ipv6_device_path): New structure.
28906 (grub_efi_ipv6_device_path_t): New type.
28907 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
28908 (struct grub_efi_infiniband_device_path): New structure.
28909 (grub_efi_infiniband_device_path_t): New type.
28910 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
28911 (struct grub_efi_uart_device_path): New structure.
28912 (grub_efi_uart_device_path_t): New type.
28913 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
28914 (struct grub_efi_vendor_messaging_device_path): New structure.
28915 (grub_efi_vendor_messaging_device_path_t): New type.
28916 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
28917 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
28918 (struct grub_efi_hard_drive_device_path): New structure.
28919 (grub_efi_hard_drive_device_path_t): New type.
28920 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
28921 (struct grub_efi_cdrom_device_path): New structure.
28922 (grub_efi_cdrom_device_path_t): New type.
28923 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
28924 (struct grub_efi_vendor_media_device_path): New structure.
28925 (grub_efi_vendor_media_device_path_t): New type.
28926 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
28927 (struct grub_efi_file_path_device_path): New structure.
28928 (grub_efi_file_path_device_path_t): New type.
28929 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
28930 (struct grub_efi_protocol_device_path): New structure.
28931 (grub_efi_protocol_device_path_t): New type.
28932 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
28933 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
28934 (struct grub_efi_bios_device_path): New structure.
28935 (grub_efi_bios_device_path_t): New type.
28936 (struct grub_efi_disk_io): New structure.
28937 (grub_efi_disk_io_t): New type.
28938 (struct grub_efi_block_io_media): New structure.
28939 (grub_efi_block_io_media_t): New type.
28940 (struct grub_efi_block_io): New structure.
28941 (grub_efi_block_io_t): New type.
28942
28943 * include/grub/misc.h (grub_stop): Removed.
28944 (grub_exit): New prototype.
28945 (grub_abort): Likewise.
28946
28947 * include/grub/disk.h (enum grub_disk_dev_id): Added
28948 GRUB_DISK_DEVICE_EFIDISK_ID.
28949
28950 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
28951 disk/efi/efidisk.c.
28952 (kernel_syms.lst): Remove the target if an error occurs.
28953
28954 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
28955
28956 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
28957 as it was simply too buggy.
28958
28959 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
28960
28961 * kern/misc.c (grub_lltoa): New function.
28962 (grub_vsprintf): Added support for the long long suffix,
28963 i.e. "ll".
28964
28965 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
28966
28967 * Makefile.in (LDFLAGS): Add variable.
28968 (LD): Remove variable.
28969 * configure.ac: Add -m32 to LDFLAGS.
28970 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
28971 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
28972 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
28973 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
28974 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
28975 variables.
28976 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
28977 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
28978 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
28979
28980 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
28981
28982 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
28983 length for unknown glyph.
28984
28985 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
28986
28987 Add support for pre-loaded modules into the EFI port.
28988
28989 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
28990 completely. Accept one more argument DIR. The caller has changed.
28991
28992 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
28993
28994 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
28995 (grub_efi_loaded_image_guid): New variable.
28996 (grub_efi_get_loaded_image): New function.
28997 (grub_arch_modules_addr): Likewise.
28998
28999 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
29000 prototype.
29001
29002 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
29003 (struct grub_efi_loaded_image): New structure.
29004 (grub_efi_loaded_image_t): New type.
29005
29006 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
29007
29008 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
29009 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
29010 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
29011
29012 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
29013
29014 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
29015
29016 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
29017
29018 * DISTLIST: Added include/grub/efi/console.h,
29019 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
29020 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
29021
29022 * include/grub/efi/console.h: New file.
29023 * include/grub/efi/time.h: Likewise.
29024 * include/grub/i386/efi/kernel.h: Likewise.
29025 * kern/efi/init.c: Likewise.
29026 * kern/efi/mm.c: Likewise.
29027 * term/efi/console.c: Likewise.
29028
29029 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
29030 (grub_stop): Removed.
29031 (grub_get_rtc): Likewise.
29032 (grub_machine_init): Simply call grub_efi_init.
29033 (grub_machine_fini): Call grub_efi_fini.
29034
29035 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
29036 (grub_efi_output_string): Removed.
29037 (grub_efi_stall): New function.
29038 (grub_stop): Likewise.
29039 (grub_get_rtc): Likewise.
29040
29041 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
29042 (grub_efi_stall): New prototype.
29043 (grub_efi_allocate_pages): Likewise.
29044 (grub_efi_free_pages): Likewise.
29045 (grub_efi_get_memory_map): Likewise.
29046 (grub_efi_mm_init): Likewise.
29047 (grub_efi_mm_fini): Likewise.
29048 (grub_efi_init): Likewise.
29049 (grub_efi_fini): Likewise.
29050
29051 * include/grub/i386/efi/time.h: Do not include
29052 grub/symbol.h. Include grub/efi/time.h.
29053 (GRUB_TICKS_PER_SECOND): Removed.
29054 (grub_get_rtc): Likewise.
29055
29056 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
29057 Added padding. The EFI spec is buggy.
29058 (GRUB_EFI_BLACK): New macro.
29059 (GRUB_EFI_BLUE): Likewise.
29060 (GRUB_EFI_GREEN): Likewise.
29061 (GRUB_EFI_CYAN): Likewise.
29062 (GRUB_EFI_RED): Likewise.
29063 (GRUB_EFI_MAGENTA): Likewise.
29064 (GRUB_EFI_BROWN): Likewise.
29065 (GRUB_EFI_LIGHTGRAY): Likewise.
29066 (GRUB_EFI_BRIGHT): Likewise.
29067 (GRUB_EFI_DARKGRAY): Likewise.
29068 (GRUB_EFI_LIGHTBLUE): Likewise.
29069 (GRUB_EFI_LIGHTGREEN): Likewise.
29070 (GRUB_EFI_LIGHTCYAN): Likewise.
29071 (GRUB_EFI_LIGHTRED): Likewise.
29072 (GRUB_EFI_LIGHTMAGENTA): Likewise.
29073 (GRUB_EFI_YELLOW): Likewise.
29074 (GRUB_EFI_WHITE): Likewise.
29075 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
29076 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
29077 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
29078 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
29079 (GRUB_EFI_BACKGROUND_RED): Likewise.
29080 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
29081 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
29082 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
29083 (GRUB_EFI_TEXT_ATTR): Likewise.
29084
29085 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
29086 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
29087 (kernel_mod_HEADERS): Added efi/time.h.
29088
29089 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
29090
29091 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
29092 include/grub/efi/api.h, include/grub/efi/console_control.h,
29093 include/grub/efi/efi.h, include/grub/efi/pe32.h,
29094 include/grub/i386/efi/time.h, kern/efi/efi.c,
29095 kern/i386/efi/init.c, kern/i386/efi/startup.S,
29096 and util/i386/efi/grub-mkimage.c.
29097
29098 * Makefile.in (RMKFILES): Added i386-efi.rmk.
29099
29100 * genmk.rb (PModule#rule): Do not export symbols if
29101 #{prefix}_EXPORTS is set to "no".
29102
29103 * conf/i386-efi.mk: New file.
29104 * conf/i386-efi.rmk: Likewise.
29105 * include/grub/efi/api.h: Likewise.
29106 * include/grub/efi/console_control.h: Likewise.
29107 * include/grub/efi/efi.h: Likewise.
29108 * include/grub/efi/pe32.h: Likewise.
29109 * include/grub/i386/efi/time.h: Likewise.
29110 * kern/efi/efi.c: Likewise.
29111 * kern/i386/efi/init.c: Likewise.
29112 * kern/i386/efi/startup.S: Likewise.
29113 * util/i386/efi/grub-mkimage.c: Likewise.
29114
29115 2006-04-17 Marco Gerards <marco@gnu.org>
29116
29117 * include/grub/script.h: Include <grub/parser.h> and
29118 "grub_script.tab.h".
29119 (struct grub_lexer_param): New struct.
29120 (struct grub_parser_param): Likewise.
29121 (grub_script_create_arglist): Pass the state in an argument.
29122 (grub_script_add_arglist): Likewise.
29123 (grub_script_create_cmdline): Likewise.
29124 (grub_script_create_cmdblock): Likewise.
29125 (grub_script_create_cmdif): Likewise.
29126 (grub_script_create_cmdmenu): Likewise.
29127 (grub_script_add_cmd): Likewise.
29128 (grub_script_arg_add): Likewise.
29129 (grub_script_lexer_ref): Likewise.
29130 (grub_script_lexer_deref): Likewise.
29131 (grub_script_lexer_record_start): Likewise.
29132 (grub_script_lexer_record_stop): Likewise.
29133 (grub_script_mem_record): Likewise.
29134 (grub_script_mem_record_stop): Likewise.
29135 (grub_script_malloc): Likewise.
29136 (grub_script_yylex): Likewise.
29137 (grub_script_yyparse): Likewise.
29138 (grub_script_yyerror): Likewise.
29139 (grub_script_yylex): Likewise.
29140 (grub_script_lexer_init): Return the state.
29141
29142 * normal/lexer.c (grub_script_lexer_state): Removed variable.
29143 (grub_script_lexer_done): Likewise.
29144 (grub_script_lexer_getline): Likewise.
29145 (grub_script_lexer_refs): Likewise.
29146 (script): Likewise.
29147 (newscript): Likewise.
29148 (record): Likewise.
29149 (recording): Likewise.
29150 (recordpos): Likewise.
29151 (recordlen): Likewise.
29152 (grub_script_lexer_init): Return the state instead of setting
29153 global variables.
29154 (grub_script_lexer_ref): Use the newly added argument for state
29155 instead of globals.
29156 (grub_script_lexer_deref): Likewise.
29157 (grub_script_lexer_record_start): Likewise.
29158 (grub_script_lexer_record_stop): Likewise.
29159 (recordchar): Likewise.
29160 (nextchar): Likewise.
29161 (grub_script_yylex2): Likewise.
29162 (grub_script_yylex): Likewise.
29163 (grub_script_yyerror): Likewise.
29164
29165 * normal/parser.y (func_mem): Removed variable.
29166 (menu_entry): Likewise.
29167 (err): Likewise.
29168 (%lex-param): New parser option.
29169 (%parse-param): Likewise.
29170 (script): Always return the AST.
29171 (argument): Pass the state around.
29172 (arguments): Likewise.
29173 (grubcmd): Likewise.
29174 (commands): Likewise.
29175 (function): Likewise.
29176 (menuentry): Likewise.
29177 (if_statement): Likewise.
29178 (if): Likewise.
29179
29180 * normal/script.c (grub_script_memused): Removed variable.
29181 (grub_script_parsed): Likewise.
29182 (grub_script_malloc): Added a state argument. Use that instead of
29183 global variables.
29184 (grub_script_mem_record): Likewise.
29185 (grub_script_mem_record_stop): Likewise.
29186 (grub_script_arg_add): Likewise.
29187 (grub_script_add_arglist): Likewise.
29188 (grub_script_create_cmdline): Likewise.
29189 (grub_script_create_cmdif): Likewise.
29190 (grub_script_create_cmdmenu): Likewise.
29191 (grub_script_add_cmd): Likewise.
29192 (grub_script_parse): Setup the state before calling the parser.
29193
29194 2006-04-16 Marco Gerards <marco@gnu.org>
29195
29196 * normal/command.c (grub_command_init): Remove the title command.
29197
29198 * normal/lexer.c (grub_script_yylex): Renamed from this...
29199 (grub_script_yylex2): ... to this.
29200 (grub_script_yylex): New function. Temporary
29201 introduced to filter some tokens.
29202 (grub_script_yyerror): Print a newline.
29203
29204 * normal/main.c (read_config_file): Output information about the
29205 lines that contain errors. Wait for a key after all lines have
29206 been processed. Don't return an empty menu.
29207
29208 * normal/parser.y (func_mem): Don't initialize.
29209 (menu_entry): Likewise.
29210 (err): New variable.
29211 (script): Don't return anything when an error was encountered.
29212 (ws, returns): Removed rules.
29213 (argument): Disabled concatenated variable support.
29214 (arguments): Remove explicit separators.
29215 (grubcmd): Likewise.
29216 (function): Likewise.
29217 (menuentry): Likewise.
29218 (if): Likewise.
29219 (commands): Likewise. Add error handling.
29220
29221 * normal/script.c (grub_script_create_cmdline): If
29222 `grub_script_parsed' is 0, assume the parser encountered an error.
29223
29224 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
29225
29226 * configure.ac: Add support for EFI. Fix the typo
29227 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
29228
29229 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
29230
29231 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
29232 foreign multibyte characters should be shown correctly.
29233
29234 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
29235
29236 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
29237 calculation.
29238 (read_config_file): Made it to close file before returning.
29239
29240 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
29241
29242 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
29243 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
29244 video/i386/pc/vbefill.c.
29245
29246 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
29247 video/i386/pc/vbefill.c.
29248
29249 * include/grub/video.h (grub_video_blit_format): New enum.
29250 (grub_video_mode_info): Added new member blit_format.
29251 (grub_video_get_blit_format): New function prototype.
29252
29253 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
29254 function prototype.
29255 (grub_video_vbe_map_rgb): Likewise.
29256 (grub_video_vbe_unmap_color): Likewise.
29257
29258 * include/grub/i386/pc/vbeblit.h: New file.
29259
29260 * include/grub/i386/pc/vbefill.h: New file.
29261
29262 * video/video.c (grub_video_get_blit_format): New function.
29263 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
29264 (grub_video_vbe_map_rgb): Likewise.
29265 (grub_video_vbe_unmap_color): Likewise.
29266
29267 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
29268 optimized fills.
29269 (grub_video_vbe_blit_render_target): Changed to use more optimized
29270 blits.
29271 (grub_video_vbe_setup): Added detection for optimized settings.
29272 (grub_video_vbe_create_render_target): Likewise.
29273
29274 * video/i386/pc/vbeblit.c: New file.
29275
29276 * video/i386/pc/vbefill.c: New file.
29277
29278 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
29279
29280 * font/manager.c (grub_font_get_glyph): Removed font fixup from
29281 here...
29282
29283 * util/unifont2pff.rb: ... and moved it to here. Improved argument
29284 parsing to support both hex and dec ranges. If filename was missing
29285 show usage information.
29286
29287 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
29288
29289 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
29290 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
29291
29292 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
29293 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
29294 (video_mod_SOURCES): Added.
29295 (video_mod_CFLAGS): Likewise.
29296 (video_mod_LDFLAGS): Likewise.
29297 (gfxterm_mod_SOURCES): Likewise.
29298 (gfxterm_mod_CFLAGS): Likewise.
29299 (gfxterm_mod_LDFLAGS): Likewise.
29300 (videotest_mod_SOURCES): Likewise.
29301 (videotest_mod_CFLAGS): Likewise.
29302 (videotest_mod_LDFLAGS): Likewise.
29303 (vesafb_mod_SOURCES): Removed.
29304 (vesafb_mod_CFLAGS): Likewise.
29305 (vesafb_mod_LDFLAGS): Likewise.
29306 (vga_mod_SOURCES): Likewise.
29307 (vga_mod_CFLAGS): Likewise.
29308 (vga_mod_LDFLAGS): Likewise.
29309
29310 * commands/videotest.c: New file.
29311
29312 * font/manager.c (fill_with_default_glyph): Modified to use
29313 grub_font_glyph.
29314 (grub_font_get_glyph): Likewise.
29315 (fontmanager): Renamed from this...
29316 (font_manager): ... to this.
29317
29318 * include/grub/font.h (grub_font_glyph): Added new structure.
29319 (grub_font_get_glyph): Modified to use grub_font_glyph.
29320
29321 * include/grub/misc.h (grub_abs): Added as inline function.
29322
29323 * include/grub/video.h: New file.
29324
29325 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
29326 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
29327 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
29328 (grub_vbe_get_controller_info): Renamed from this...
29329 (grub_vbe_bios_get_controller_info): ... to this.
29330 (grub_vbe_get_mode_info): Renamed from this...
29331 (grub_vbe_bios_get_mode_info): ... to this.
29332 (grub_vbe_set_mode): Renamed from this...
29333 (grub_vbe_bios_set_mode): ... to this.
29334 (grub_vbe_get_mode): Renamed from this...
29335 (grub_vbe_bios_get_mode): ... to this.
29336 (grub_vbe_set_memory_window): Renamed from this...
29337 (grub_vbe_bios_set_memory_window): ... to this.
29338 (grub_vbe_get_memory_window): Renamed from this...
29339 (grub_vbe_bios_get_memory_window): ... to this.
29340 (grub_vbe_set_scanline_length): Renamed from this...
29341 (grub_vbe_set_scanline_length): ... to this.
29342 (grub_vbe_get_scanline_length): Renamed from this...
29343 (grub_vbe_bios_get_scanline_length): ... to this.
29344 (grub_vbe_set_display_start): Renamed from this...
29345 (grub_vbe_bios_set_display_start): ... to this.
29346 (grub_vbe_get_display_start): Renamed from this...
29347 (grub_vbe_bios_get_display_start): ... to this.
29348 (grub_vbe_set_palette_data): Renamed from this...
29349 (grub_vbe_bios_set_palette_data): ... to this.
29350 (grub_vbe_set_pixel_rgb): Removed.
29351 (grub_vbe_set_pixel_index): Likewise.
29352
29353 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
29354 from this...
29355 (grub_vbe_bios_get_controller_info): ... to this.
29356 (grub_vbe_get_mode_info): Renamed from this...
29357 (grub_vbe_bios_get_mode_info): ... to this.
29358 (grub_vbe_set_mode): Renamed from this...
29359 (grub_vbe_bios_set_mode): ... to this.
29360 (grub_vbe_get_mode): Renamed from this...
29361 (grub_vbe_bios_get_mode): ... to this.
29362 (grub_vbe_set_memory_window): Renamed from this...
29363 (grub_vbe_bios_set_memory_window): ... to this.
29364 (grub_vbe_get_memory_window): Renamed from this...
29365 (grub_vbe_bios_get_memory_window): ... to this.
29366 (grub_vbe_set_scanline_length): Renamed from this...
29367 (grub_vbe_set_scanline_length): ... to this.
29368 (grub_vbe_get_scanline_length): Renamed from this...
29369 (grub_vbe_bios_get_scanline_length): ... to this.
29370 (grub_vbe_set_display_start): Renamed from this...
29371 (grub_vbe_bios_set_display_start): ... to this.
29372 (grub_vbe_get_display_start): Renamed from this...
29373 (grub_vbe_bios_get_display_start): ... to this.
29374 (grub_vbe_set_palette_data): Renamed from this...
29375 (grub_vbe_bios_set_palette_data): ... to this.
29376 (grub_vbe_bios_get_controller_info): Fixed problem with registers
29377 getting corrupted after calling it. Added more pushes and pops.
29378 (grub_vbe_bios_set_mode): Likewise.
29379 (grub_vbe_bios_get_mode): Likewise.
29380 (grub_vbe_bios_get_memory_window): Likewise.
29381 (grub_vbe_bios_set_scanline_length): Likewise.
29382 (grub_vbe_bios_get_scanline_length): Likewise.
29383 (grub_vbe_bios_get_display_start): Likewise.
29384 (grub_vbe_bios_set_palette_data): Likewise.
29385
29386 * normal/cmdline.c (cl_set_pos): Refresh the screen.
29387 (cl_insert): Likewise.
29388 (cl_delete): Likewise.
29389
29390 * term/gfxterm.c: New file.
29391
29392 * term/i386/pc/vesafb.c: Removed file.
29393
29394 * video/video.c: New file.
29395
29396 * video/i386/pc/vbe.c (real2pm): Added new function.
29397 (grub_video_vbe_draw_pixel): Likewise.
29398 (grub_video_vbe_get_video_ptr): Likewise.
29399 (grub_video_vbe_get_pixel): Likewise
29400 (grub_video_vbe_init): Likewise.
29401 (grub_video_vbe_fini): Likewise.
29402 (grub_video_vbe_setup): Likewise.
29403 (grub_video_vbe_get_info): Likewise.
29404 (grub_video_vbe_set_palette): Likewise.
29405 (grub_video_vbe_get_palette): Likewise.
29406 (grub_video_vbe_set_viewport): Likewise.
29407 (grub_video_vbe_get_viewport): Likewise.
29408 (grub_video_vbe_map_color): Likewise.
29409 (grub_video_vbe_map_rgb): Likewise.
29410 (grub_video_vbe_map_rgba): Likewise.
29411 (grub_video_vbe_unmap_color): Likewise.
29412 (grub_video_vbe_fill_rect): Likewise.
29413 (grub_video_vbe_blit_glyph): Likewise.
29414 (grub_video_vbe_blit_bitmap): Likewise.
29415 (grub_video_vbe_blit_render_target): Likewise.
29416 (grub_video_vbe_scroll): Likewise.
29417 (grub_video_vbe_swap_buffers): Likewise.
29418 (grub_video_vbe_create_render_target): Likewise.
29419 (grub_video_vbe_delete_render_target): Likewise.
29420 (grub_video_vbe_set_active_render_target): Likewise.
29421 (grub_vbe_set_pixel_rgb): Remove function.
29422 (grub_vbe_set_pixel_index): Likewise.
29423 (index_color_mode): Remove static variable.
29424 (active_mode): Likewise.
29425 (framebuffer): Likewise.
29426 (bytes_per_scan_line): Likewise.
29427 (grub_video_vbe_adapter): Added new static variable.
29428 (framebuffer): Likewise.
29429 (render_target): Likewise.
29430 (initial_mode): Likewise.
29431 (mode_in_use): Likewise.
29432 (mode_list): Likewise.
29433
29434 2006-03-10 Marco Gerards <marco@gnu.org>
29435
29436 * configure.ac (AC_INIT): Bumped to 1.93.
29437
29438 * DISTLIST: Added `include/grub/hfs.h'.
29439
29440 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
29441
29442 * boot/i386/pc/boot.S (general_error): Before looping, try INT
29443 18H, which might help the BIOS falling back to next boot media.
29444
29445 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
29446
29447 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
29448 Poe Chen <poe.poechen@gmail.com>.
29449
29450 2006-01-17 Marco Gerards <marco@gnu.org>
29451
29452 * include/grub/normal.h: Include <grub/script.h>.
29453 (grub_command_list): Removed struct.
29454 (grub_command_list_t): Removed type.
29455 (grub_menu_entry): Remove members `num' and `command_list'. Add
29456 members `commands' and `sourcecode'.
29457 * include/grub/script.h: Add inclusion guards.
29458 (grub_script_cmd_menuentry): New struct.
29459 (grub_script_execute_menuentry): New prototype.
29460 (grub_script_lexer_record_start): Likewise.
29461 (grub_script_lexer_record_stop): Likewise.
29462 * normal/execute.c (grub_script_execute_menuentry): New function.
29463 * normal/lexer.c (record, recording, recordpos, recordlen): New
29464 variables.
29465 (grub_script_lexer_record_start): New function.
29466 (grub_script_lexer_record_stop): Likewise.
29467 (recordchar): Likewise.
29468 (nextchar): Likewise.
29469 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
29470 2048 as the buffer size. Add the tokens `menuentry' and `@'.
29471 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
29472 (current_menu): New variable.
29473 (free_menu): Mainly rewritten.
29474 (grub_normal_menu_addentry): New function.
29475 (read_config_file): Rewritten.
29476 * normal/menu.c (run_menu_entry): Mainly rewritten.
29477 * normal/menu_entry.c (make_screen): Rewritten the code to insert
29478 the menu entry.
29479 (run): Mainly rewritten.
29480 * normal/parser.y (menu_entry): New variable.
29481 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
29482 (menuentry): New rule.
29483 (command): Add `menuentry'.
29484 (if_statement): Allow additional returns before `fi'.
29485 * normal/script.c (grub_script_create_cmdmenu): New function.
29486
29487 2006-01-03 Marco Gerards <marco@gnu.org>
29488
29489 * INSTALL: GNU Bison is required.
29490 * configure.ac: Rewritten the test to detect Bison.
29491 * Makefile.in (YACC): New variable. Reported by Xun Sun
29492 <xun.sun.cn@gmail.com>.
29493
29494 2006-01-03 Marco Gerards <marco@gnu.org>
29495
29496 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
29497 the HFS+ filesystem to filesystem blocks.
29498 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
29499 GCC warning is silenced.
29500
29501 2006-01-03 Marco Gerards <marco@gnu.org>
29502
29503 * partmap/apple.c (apple_partition_map_iterate): Convert the data
29504 read from disk from big endian to host byte order.
29505
29506 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
29507
29508 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
29509 documentation.
29510 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
29511 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
29512 embedded HFS+ filesystem.
29513 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
29514 (grub_hfs_sblock): Move from here...
29515 * include/grub/hfs.h: To here... New file.
29516 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
29517 documentation.
29518 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
29519 New macros.
29520 (grub_hfsplus_volheader): Change type of member `magic' to
29521 `grub_uint16_t'.
29522 (grub_hfsplus_data): Add new member `embedded_offset'.
29523 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
29524 returned block.
29525 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
29526 Calculate the offset.
29527
29528 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
29529
29530 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
29531 Removed.
29532 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
29533
29534 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
29535
29536 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
29537 ENV->NAME is NULL after allocating ENV->VALUE.
29538
29539 2005-12-25 Marco Gerards <marco@gnu.org>
29540
29541 * kern/env.c (grub_env_set): Rewritten the error handling code.
29542
29543 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
29544
29545 * geninit.sh: Made more robust, and more portable.
29546
29547 2005-12-25 Marco Gerards <marco@gnu.org>
29548
29549 Add support for Apple HFS+ filesystems.
29550
29551 * fs/hfsplus.c: New file.
29552
29553 * DISTLIST: Added `fs/hfsplus.c'.
29554
29555 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
29556 (hfsplus_mod_SOURCES): New variable.
29557 (hfsplus_mod_CFLAGS): Likewise.
29558 (hfsplus_mod_LDFLAGS): Likewise.
29559 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
29560 (grub_setup_SOURCES): Likewise.
29561 (grub_mkdevicemap_SOURCES): Likewise.
29562 (grub_emu_SOURCES): Likewise.
29563 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29564
29565 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
29566
29567 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
29568
29569 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
29570
29571 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
29572 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
29573 include/grub/parser.h, include/grub/script.h, kern/parser.c,
29574 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
29575 normal/lexer.c, normal/parser.y, normal/script.c, and
29576 partmap/gpt.c.
29577 Removed kern/sparc64/cache.c.
29578
29579 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
29580 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
29581 grub_emu_init.c.
29582
29583 * configure.ac (AC_INIT): Bumped to 1.92.
29584
29585 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
29586
29587 * kern/err.c (grub_error_push): Added new function to support error
29588 stacks.
29589 (grub_error_pop): Likewise.
29590 (grub_error_stack_items): New local variable to support error stacks.
29591 (grub_error_stack_pos): Likewise.
29592 (grub_error_stack_assert): Likewise.
29593 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
29594 stack depth.
29595 (grub_print_error): Added support to print errors from error stack.
29596
29597 * include/grub/err.h (grub_error_push): Added function prototype.
29598 (grub_error_pop): Likewise.
29599
29600 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
29601
29602 * configure.ac: Accept `powerpc64' as host_cpu.
29603 (amd64): Rename to `biarch32'.
29604
29605 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
29606 non-cacheline-aligned addresses.
29607
29608 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
29609 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
29610 if `size' is non-zero.
29611
29612 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
29613
29614 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
29615 and `cd' to make sure the filename is not prefixed with a
29616 directory name.
29617 (pkgdata_MODULES): Add `gpt.mod'.
29618 (gpt_mod_SOURCES): New variable.
29619 (gpt_mod_CFLAGS): Likewise.
29620 (gpt_mod_LDFLAGS): Likewise.
29621
29622 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
29623
29624 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
29625 New macro.
29626
29627 * partmap/gpt.c: New file.
29628
29629 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
29630 GPT partition map is detected.
29631
29632 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
29633
29634 * commands/i386/pc/play.c: New file.
29635 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
29636 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
29637 macros.
29638
29639 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
29640
29641 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
29642 ((unused))' to silence gcc warning.
29643
29644 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
29645
29646 * configure.ac: Correct `AC_PROG_YACC' test.
29647
29648 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
29649
29650 * util/powerpc/ieee1275/grub-install.in: Run the mount point
29651 check before installing files.
29652
29653 2005-11-22 Mike Small <smallm@panix.com>
29654
29655 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
29656 number regex so multidigit numbers are recognized correctly.
29657
29658 2005-11-22 Mike Small <smallm@panix.com>
29659
29660 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
29661 debugging message before attempting to claim memory.
29662 (grub_rescue_cmd_initrd): Add a claim debugging message and try
29663 multiple addresses in case of failure.
29664
29665 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
29666
29667 * term/tparm.c (get_space): Remove empty `if' statement.
29668
29669 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
29670
29671 * kern/parser.c (check_varstate): Rename `state' to 's'.
29672
29673 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
29674
29675 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
29676 variable definitions to the beginning of each function. Sort stack
29677 variables by size.
29678 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
29679 `buf' argument to `char *'.
29680
29681 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
29682
29683 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
29684 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
29685 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
29686 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
29687 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
29688 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
29689 configfile.mod, search.mod, gzio.mod and test.mod.
29690 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
29691 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
29692 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
29693 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
29694 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
29695 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
29696 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
29697 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
29698 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
29699 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
29700 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
29701 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
29702 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
29703 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
29704 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
29705 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
29706 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
29707 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
29708 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
29709 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
29710 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
29711 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
29712 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
29713
29714 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
29715 `grep --include'.
29716 (pkgdata_MODULES): Add test.mod.
29717
29718 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
29719
29720 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
29721 appending to variables with "+=".
29722 (PModule): Use full pathname to generate *.lst filenames.
29723
29724 * Makefile.in: Fixed list rules moved from genmk.rb.
29725 (.DELETE_ON_ERROR): New special target.
29726 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
29727
29728 * conf/i386-pc.rmk: Include conf/common.mk.
29729 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
29730 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
29731 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
29732 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
29733 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
29734 configfile.mod, search.mod, gzio.mod and test.mod.
29735 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
29736 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
29737 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
29738 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
29739 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
29740 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
29741 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
29742 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
29743 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
29744 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
29745 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
29746 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
29747 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
29748 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
29749 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
29750 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
29751 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
29752 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
29753 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
29754 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
29755 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
29756 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
29757 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
29758 here...
29759 * conf/common.rmk: ... to here. New file.
29760
29761 * conf/common.mk: New file.
29762
29763 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
29764
29765 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
29766 (grub_script.tab.c): ... here.
29767
29768 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
29769 (grub_script.tab.c): ... here.
29770
29771 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
29772 (grub_script.tab.c): ... here.
29773
29774 * normal/command.c (grub_command_find): Fixed a memory leak of
29775 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
29776
29777 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
29778
29779 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
29780 "@" which marks the start of a comment on ARM.
29781 (VARIABLE): Likewise.
29782
29783 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
29784
29785 Add support for Linux/ADFS partition tables.
29786
29787 * partmap/acorn.c: New file.
29788
29789 * include/grub/acorn_filecore.h: Likewise.
29790
29791 * DISTLIST: Added `partmap/acorn.c' and
29792 `include/grub/acorn_filecore.h'.
29793
29794 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
29795 `partmap/acorn.c'.
29796 (pkgdata_MODULES): Add `acorn.mod'.
29797 (acorn_mod_SOURCES): New variable.
29798 (acorn_mod_CFLAGS): Likewise.
29799
29800 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
29801 `partmap/acorn.c'.
29802 (pkgdata_MODULES): Add `acorn.mod'.
29803 (acorn_mod_SOURCES): New variable.
29804 (acorn_mod_CFLAGS): Likewise.
29805
29806 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
29807 (pkgdata_MODULES): Add `acorn.mod'.
29808 (acorn_mod_SOURCES): New variable.
29809 (acorn_mod_CFLAGS): Likewise.
29810 (acorn_mod_LDFLAGS): Likewise.
29811
29812 * include/types.h (grub_disk_addr_t): New typedef.
29813
29814 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
29815
29816 * geninit.sh: New file.
29817
29818 * geninitheader.sh: Likewise.
29819
29820 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
29821 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
29822 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
29823 * commands/configfile.c (grub_configfile_init)
29824 (grub_configfile_fini): Likewise.
29825 * commands/default.c (grub_default_init, grub_default_fini):
29826 Likewise.
29827 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
29828 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
29829 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
29830 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
29831 Likewise.
29832 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
29833 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
29834 Likewise.
29835 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
29836 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
29837 Likewise.
29838 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
29839 Likewise.
29840 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
29841 Likewise.
29842 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
29843 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
29844 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
29845 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
29846 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
29847 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
29848 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
29849 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
29850 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
29851 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
29852 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
29853 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
29854 * partmap/amiga.c (grub_amiga_partition_map_init)
29855 (grub_amiga_partition_map_fini): Likewise.
29856 * partmap/apple.c (grub_apple_partition_map_init)
29857 (grub_apple_partition_map_fini): Likewise.
29858 * partmap/pc.c (grub_pc_partition_map_init)
29859 (grub_pc_partition_map_fini): Likewise.
29860 * partmap/sun.c (grub_sun_partition_map_init,
29861 grub_sun_partition_map_fini): Likewise.
29862 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
29863 Likewise.
29864
29865 * util/grub-emu.c: Include <grub_modules_init.h>.
29866 (main): Don't initialize and de-initialize any modules directly,
29867 use `grub_init_all' and `grub_fini_all' instead.
29868
29869 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
29870 `grub_vesafb_mod_init'.
29871 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
29872 all users.
29873 * term/i386/pc/vga.c (grub_vga_init): Renamed to
29874 `grub_vga_mod_init'. Updated all users.
29875 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
29876
29877 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
29878 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
29879 rules.
29880
29881 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
29882 Generate a function to initialize the module in utilities.
29883 Updated all callers.
29884 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
29885 initialize the module in utilities. Updated all callers.
29886
29887 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
29888
29889 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
29890 escape sequence and a literal ^L to clear the screen.
29891
29892 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
29893 when returning from Open Firmware.
29894
29895 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
29896
29897 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
29898 (grub_ofconsole_height): Likewise.
29899 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
29900 manually insert a '\n'.
29901 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
29902 `grub_ofconsole_height'. Return early if these are already set.
29903
29904 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
29905
29906 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
29907 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
29908 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
29909 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
29910 and `normal/script.c'.
29911 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
29912 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
29913 (test_mod_SOURCES): New variable.
29914 (test_mod_CFLAGS): Likewise.
29915 (test_mod_LDFLAGS): Likewise.
29916 (pkgdata_MODULES): Add `test.mod'.
29917 (grub_script.tab.c): New rule.
29918 (grub_script.tab.h): Likewise.
29919
29920 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
29921
29922 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
29923 `commands/test.c', `normal/execute.c', `normal/lexer.c',
29924 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
29925 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
29926 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
29927 (test_mod_SOURCES): New variable.
29928 (test_mod_CFLAGS): Likewise.
29929 (pkgdata_MODULES): Add `test.mod'.
29930 (grub_script.tab.c): New rule.
29931 (grub_script.tab.h): Likewise.
29932
29933 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
29934
29935 Add initial scripting support.
29936
29937 * commands/test.c: New file.
29938 * include/grub/script.h: Likewise.
29939 * normal/execute.c: Likewise.
29940 * normal/function.c: Likewise.
29941 * normal/lexer.c: Likewise.
29942 * normal/parser.y: Likewise.
29943 * normal/script.c: Likewise.
29944
29945 * configure.ac: Add `AC_PROG_YACC' test.
29946
29947 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
29948 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
29949 `normal/function.c' and `normal/script.c'.
29950 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
29951 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
29952 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
29953 variables.
29954 (pkgdata_MODULES): Add `test.mod'.
29955 (grub_script.tab.c): New rule.
29956 (grub_script.tab.h): Likewise.
29957
29958 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
29959
29960 * include/grub/normal.h (grub_test_init): New prototype.
29961 (grub_test_fini): Likewise.
29962
29963 * normal/command.c: Include <grub/script.h>.
29964 (grub_command_execute): Rewritten.
29965
29966 * util/grub-emu.c (main): Call `grub_test_init' and
29967 `grub_test_fini'.
29968
29969 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
29970
29971 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
29972 to 0.
29973 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
29974 there are no pending characters.
29975
29976 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
29977
29978 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
29979 `grub_strndup' to drop device arguments. Replace unnecessary
29980 `grub_strndup' with `grub_strdup'.
29981
29982 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
29983
29984 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
29985 `debug' environment variable has been set.
29986
29987 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
29988
29989 * Makefile.in (install-local): Use $(DATA).
29990 (uninstall): Likewise.
29991 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
29992 (sbin_UTILITIES): ... to here.
29993 (sbin_SCRIPTS): New variable.
29994 (grub_install_SOURCES): New variable.
29995 * util/powerpc/ieee1275/grub-install.in: New file.
29996 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
29997 variable.
29998 (add_segments): Call `grub_util_get_path'.
29999
30000 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
30001
30002 From Timothy Baldwin:
30003 * commands/ls.c (grub_ls_list_files): Close FILE with
30004 grub_file_close.
30005 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
30006
30007 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
30008
30009 * include/grub/parser.h: New file.
30010
30011 * kern/parser.c: Likewise.
30012
30013 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
30014 (grub_setup_SOURCES): Likewise.
30015 (grub_probefs_SOURCES): Likewise.
30016 (grub_emu_SOURCES): Likewise.
30017 (kernel_img_HEADERS): Add `parser.h'.
30018
30019 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
30020 (grub_emu_SOURCES): Add `kern/parser.c'.
30021 (grubof_SOURCES): Likewise.
30022
30023 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
30024 (grubof_SOURCES): Add `kern/parser.c'.
30025
30026 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
30027
30028 * kern/misc.c (grub_split_cmdline): Removed function.
30029
30030 * kern/rescue.c: Include <grub/parser.h>.
30031 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
30032 of `grub_split_cmdline'.
30033
30034 * normal/command.c: Include <grub/parser.h>.
30035 (grub_command_execute): Use `grub_parser_split_cmdline' instead
30036 of `grub_split_cmdline'.
30037
30038 * normal/completion.c: Include <grub/parser.h>.
30039 (cmdline_state): New variable.
30040 (iterate_dir): End the filename with a quote depending on the
30041 command line state.
30042 (get_state): new function.
30043 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
30044 split the arguments and determine the current argument. When the
30045 argument string is not quoted, escape all spaces.
30046
30047 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
30048
30049 * normal/sparc64/setjmp.S: New file.
30050
30051 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
30052
30053 * include/grub/sparc64/libgcc.h: New file.
30054 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
30055 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
30056 normal/sparc64/setjmp.c.
30057
30058 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
30059
30060 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
30061 * kern/sparc64/cache.S: New file.
30062 * kern/sparc64/cache.c: Removed.
30063 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
30064 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
30065 -mtune=ultrasparc.
30066 (COMMON_LDFLAGS): Add -melf64_sparc.
30067 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
30068 (grubof_SOURCES): Use cache.S instead of cache.c.
30069 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
30070 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
30071 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
30072 commented though.
30073 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
30074 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
30075 (linux_mod_CFLAGS): Commented out.
30076 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
30077 out because module isn't built.
30078 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
30079 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
30080 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
30081 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
30082 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
30083 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
30084 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
30085 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
30086 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
30087 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
30088 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
30089 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
30090 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
30091 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
30092
30093 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
30094
30095 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
30096 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
30097 longer, because HFS should not be used on PC.
30098
30099 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
30100
30101 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
30102 consistently within the loop.
30103
30104 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
30105
30106 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
30107 directory can not be read.
30108
30109 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
30110
30111 * configure.ac (AC_INIT): Increase the version number to 1.91.
30112
30113 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
30114 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
30115 term/i386/pc/serial.c.
30116
30117 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
30118
30119 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
30120 file size must be permitted.
30121
30122 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
30123 between %ah and %al.
30124
30125 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
30126
30127 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
30128 grub_uint64_t.
30129 Call the hook with a NUL-terminated filename.
30130 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
30131 grub_cpu_to_be32.
30132
30133 * kern/term.c (cursor_state): New variable.
30134 (grub_term_set_current): Reset the cursor state on a new
30135 terminal.
30136 (grub_setcursor): Rewritten to use CURSOR_STATE.
30137 (grub_getcursor): New function.
30138
30139 * include/grub/term.h (grub_getcursor): New prototype.
30140
30141 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
30142 integers on ARM. Reported by Timothy Baldwin
30143 <T.E.Baldwin99@members.leeds.ac.uk>.
30144
30145 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
30146
30147 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
30148 allocated.
30149 (grub_sfs_dir): Likewise.
30150
30151 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
30152
30153 Add support for the SFS filesystem.
30154
30155 * fs/sfs.c: New file.
30156
30157 * DISTLIST: Added `fs/sfs.c'.
30158
30159 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
30160 (grub_probefs_SOURCES): Likewise.
30161 (grub_emu_SOURCES): Likewise.
30162 (pkgdata_MODULES): Add `sfs.mod'.
30163 (sfs_mod_SOURCES): New variable.
30164 (sfs_mod_CFLAGS): Likewise.
30165 (sfs_mod_LDFLAGS): Likewise.
30166
30167 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
30168 (pkgdata_MODULES): Add `sfs.mod'.
30169 (sfs_mod_SOURCES): New variable.
30170 (sfs_mod_CFLAGS): Likewise.
30171
30172 * util/grub-emu.c (main): Call `grub_sfs_init' and
30173 `grub_sfs_fini'.
30174
30175 * include/grub/fs.h (grub_sfs_init): New prototype.
30176 (grub_sfs_fini): Likewise.
30177
30178 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
30179
30180 Add support for the AFFS filesystem.
30181
30182 * fs/affs.c: New file.
30183
30184 * DISTLIST: Added `fs/affs.c'.
30185
30186 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
30187 (grub_probefs_SOURCES): Likewise.
30188 (grub_emu_SOURCES): Likewise.
30189 (pkgdata_MODULES): Add `affs.mod'.
30190 (affs_mod_SOURCES): New variable.
30191 (affs_mod_CFLAGS): Likewise.
30192 (affs_mod_LDFLAGS): Likewise.
30193
30194 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
30195 (pkgdata_MODULES): Add `affs.mod'.
30196 (affs_mod_SOURCES): New variable.
30197 (affs_mod_CFLAGS): Likewise.
30198
30199 * util/grub-emu.c (main): Call `grub_affs_init' and
30200 `grub_affs_fini'.
30201
30202 * include/grub/fs.h (grub_affs_init): New prototype.
30203 (grub_affs_fini): Likewise.
30204
30205 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
30206
30207 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
30208
30209 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
30210
30211 * configure.ac: Accept `x86_64' as host_cpu. In that case add
30212 `-m32' to CFLAGS.
30213
30214 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
30215 linking.
30216
30217 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
30218 (COMMON_LDFLAGS): New variable.
30219 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
30220 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
30221 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
30222 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
30223 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
30224 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
30225 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
30226 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
30227 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
30228 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
30229 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
30230 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
30231 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
30232 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
30233 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
30234 variables.
30235 (normal_mod_ASFLAGS): Add `-m32'.
30236
30237 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
30238 (grub_host_size_t, grub_host_ssize_t): New types.
30239 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
30240 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
30241 `GRUB_HOST_SIZEOF_VOID_P'.
30242
30243 * include/grub/kernel.h (struct grub_module_header): Type of
30244 member offset changed to `grub_host_off_t'. Type of member size
30245 changed to `grub_host_size_t'.
30246 (struct grub_module_info): Type of member offset changed to
30247 `grub_host_off_t'. Type of member size changed to
30248 `grub_host_size_t'.
30249
30250 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
30251
30252 Make GRUB's kernel compliant to Multiboot Specification.
30253
30254 * kern/i386/pc/startup.S (multiboot_header): New label.
30255 (multiboot_entry): Likewise.
30256 (multiboot_trampoline): Likewise.
30257
30258 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30259 Increased to 0x4A0.
30260
30261 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
30262 put parentheses after a question mark.
30263 [!GRUB_UTIL] (my_mod): New variable.
30264
30265 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
30266
30267 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
30268
30269 Adds support for the XFS filesystem. Btrees are not supported
30270 yet.
30271
30272 * fs/xfs.c: New file.
30273
30274 * DISTLIST: Added `fs/xfs.c'.
30275
30276 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
30277 (grub_probefs_SOURCES): Likewise.
30278 (grub_emu_SOURCES): Likewise.
30279 (pkgdata_MODULES): Add `xfs.mod'.
30280 (xfs_mod_SOURCES): New variable.
30281 (xfs_mod_CFLAGS): Likewise.
30282
30283 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
30284 (pkgdata_MODULES): Add `xfs.mod'.
30285 (xfs_mod_SOURCES): New variable.
30286 (xfs_mod_CFLAGS): Likewise.
30287
30288 * util/grub-emu.c (main): Call `grub_xfs_init' and
30289 `grub_xfs_fini'.
30290
30291 * include/grub/fs.h (grub_xfs_init): New prototype.
30292 (grub_xfs_fini): Likewise.
30293
30294
30295 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
30296
30297 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
30298 color modes, allow greater than 16 colors to be configured as
30299 a default palette.
30300
30301 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
30302
30303 * normal/completion.c (complete_arguments): Add the qualifier
30304 const into OPTIONS.
30305
30306 From Omniflux <omniflux+lists@omniflux.com>:
30307 * include/grub/terminfo.h: New file.
30308 * include/grub/tparm.h: Likewise.
30309 * include/grub/i386/pc/serial.h: Likewise.
30310 * term/terminfo.c: Likewise.
30311 * term/tparm.c: Likewise.
30312 * term/i386/pc/serial.c: Likewise.
30313 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
30314 serial.mod.
30315 (terminfo_mod_SOURCES): New variable.
30316 (terminfo_mod_CFLAGS): Likewise.
30317 (serial_mod_SOURCES): Likewise.
30318 (serial_mod_CFLAGS): Likewise.
30319
30320 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
30321
30322 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
30323 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
30324 and kern/powerpc/ieee1275/cmain.c, respectively.
30325
30326 * boot/powerpc/ieee1275/crt0.S: Moved to ...
30327 * kern/powerpc/ieee1275/crt0.S: ... here.
30328
30329 * boot/powerpc/ieee1275/cmain.c: Moved to ...
30330 * kern/powerpc/ieee1275/cmain.c: ... here.
30331
30332 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
30333 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
30334 instead of boot/powerpc/ieee1275/crt0.S and
30335 boot/powerpc/ieee1275/cmain.c, respectively.
30336
30337 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
30338 sectors. It was not used anyway.
30339
30340 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
30341
30342 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
30343 `unused parameter' warning.
30344
30345 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
30346
30347 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
30348 function.
30349 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
30350 getcharwidth.
30351
30352 2005-08-28 Marco Gerards <metgerards@student.han.nl>
30353
30354 * include/grub/normal.h (enum grub_completion_type): Added
30355 `GRUB_COMPLETION_TYPE_ARGUMENT'.
30356
30357 * normal/cmdline.c (print_completion): Handle
30358 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
30359 * normal/menu_entry.c (store_completion): Likewise.
30360
30361 * normal/completion.c (complete_arguments): New function.
30362 (grub_normal_do_completion): Call `complete_arguments' when the
30363 current words start with a dash.
30364
30365 2005-08-27 Marco Gerards <metgerards@student.han.nl>
30366
30367 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
30368 `gzio.mod' instead of `io.mod').
30369
30370 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
30371
30372 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
30373 (DISTDIRS): Added io and video.
30374 Rewrite the search routine to make an output consistently.
30375
30376 * DISTLIST: Added conf/sparc64-ieee1275.mk,
30377 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
30378 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
30379 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
30380 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
30381 util/powerpc/ieee1275/misc.c.
30382
30383 * include/grub/gzio.h: New file.
30384 * io/gzio.c: Likewise.
30385
30386 * kern/file.c (grub_file_close): Call grub_device_close only if
30387 FILE->DEVICE is not NULL.
30388
30389 * include/grub/mm.h [!NULL] (NULL): New macro.
30390
30391 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
30392
30393 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
30394 (pkgdata_MODULES): Added gzio.mod.
30395 (gzio_mod_SOURCES): New variable.
30396 (gzio_mod_CFLAGS): Likewise.
30397
30398 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
30399 (pkgdata_MODULES): Added gzio.mod.
30400 (gzio_mod_SOURCES): New variable.
30401 (gzio_mod_CFLAGS): Likewise.
30402
30403 * commands/cat.c: Include grub/gzio.h.
30404 (grub_cmd_cat): Use grub_gzfile_open instead of
30405 grub_file_open.
30406
30407 * commands/cmp.c: Include grub/gzio.h.
30408 (grub_cmd_cmp): Use grub_gzfile_open instead of
30409 grub_file_open.
30410
30411 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
30412 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
30413 grub_file_open.
30414 (grub_rescue_cmd_module): Likewise.
30415
30416 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
30417
30418 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
30419 kern/sparc64/ieee1275/init.c because it contains _start.
30420 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
30421
30422 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
30423
30424 * configure.ac: Add support for sparc64 host with ieee1275
30425 firmware.
30426 * configure: Generated from configure.ac.
30427 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
30428 instead of int.
30429 (grub_ofdisk_read): Likewise.
30430 (grub_ofdisk_open): Use %p to print pointer values, and cast the
30431 pointers as (void *) to remove a warning.
30432 (grub_ofdisk_close): Likewise.
30433 (grub_ofdisk_read): Likewise.
30434 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
30435 returns, so make it return void to remove a warning.
30436 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
30437 Corresponding prototype change.
30438 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
30439 values, and cast the pointers as (void *) to remove a warning.
30440 (grub_mm_dump): Likewise.
30441 * conf/sparc64-ieee1275.mk: New file.
30442 * conf/sparc64-ieee1275.rmk: Likewise.
30443 * include/grub/sparc64/setjmp.h: Likewise.
30444 * include/grub/sparc64/types.h: Likewise.
30445 * include/grub/sparc64/ieee1275/console.h: Likewise.
30446 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
30447 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
30448 * include/grub/sparc64/ieee1275/time.h: Likewise.
30449 * kern/sparc64/cache.c: Likewise.
30450 * kern/sparc64/dl.c: Likewise.
30451 * kern/sparc64/ieee1275/init.c: Likewise.
30452 * kern/sparc64/ieee1275/openfw.c: Likewise.
30453
30454 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
30455
30456 * util/console.c (grub_ncurses_putchar): If C is greater than
30457 0x7f, set C to a question mark.
30458 (grub_ncurses_getcharwidth): New function.
30459 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
30460 getcharwidth.
30461
30462 * normal/menu.c (print_entry): Made aware of Unicode. First,
30463 convert TITLE to UCS-4, and predict the cursor position by
30464 grub_getcharwidth.
30465
30466 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
30467 const to SRC.
30468 * kern/misc.c (grub_utf16_to_utf8): Likewise.
30469
30470 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
30471
30472 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
30473 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
30474 grub_strcat.
30475
30476 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
30477 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
30478 grub_strcpy and grub_strlen. Take it into account that a space
30479 character is inserted as a delimiter.
30480
30481 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
30482
30483 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
30484 invalid magic in the error.
30485
30486 * commands/search.c: New file.
30487
30488 * util/grub-emu.c (main): Call grub_search_init and
30489 grub_search_fini.
30490
30491 * kern/rescue.c (grub_rescue_print_disks): Removed.
30492 (grub_rescue_print_devices): New function.
30493 (grub_rescue_cmd_ls): Use grub_device_iterate with
30494 grub_rescue_print_devices instead of grub_disk_dev_iterate with
30495 grub_rescue_print_disks.
30496
30497 * kern/partition.c (grub_partition_iterate): Return the result of
30498 PARTMAP->ITERATE instead of GRUB_ERRNO.
30499
30500 * kern/device.c: Include grub/partition.h.
30501 (grub_device_iterate): New function.
30502
30503 * include/grub/partition.h (grub_partition_iterate): Return int
30504 instead of grub_err_t.
30505
30506 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
30507 prototype.
30508 [GRUB_UTIL] (grub_search_fini): Likewise.
30509
30510 * include/grub/device.h (grub_device_iterate): New prototype.
30511
30512 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
30513 commands/search.c.
30514 (pkgdata_MODULES): Added search.mod.
30515 (search_mod_SOURCES): New variable.
30516 (search_mod_CFLAGS): Likewise.
30517
30518 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
30519 (pkgdata_MODULES): Added search.mod.
30520 (search_mod_SOURCES): New variable.
30521 (search_mod_CFLAGS): Likewise.
30522
30523 * commands/ls.c (grub_ls_list_disks): Renamed to ...
30524 (grub_ls_list_devices): ... this, and use grub_device_iterate.
30525 All callers changed.
30526
30527 * DISTLIST: Added commands/search.c.
30528
30529 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
30530
30531 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
30532 conversion.
30533 (grub_getcharwidth): New function.
30534
30535 * kern/misc.c (grub_utf8_to_ucs4): New function.
30536
30537 * include/grub/term.h (struct grub_term): Added a new member
30538 "getcharwidth".
30539 (grub_getcharwidth): New prototype.
30540
30541 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
30542
30543 * term/i386/pc/console.c (map_char): New function. Segregated from
30544 grub_console_putchar.
30545 (grub_console_putchar): Use map_char.
30546 (grub_console_getcharwidth): New function.
30547 (grub_console_term): Specified grub_console_getcharwidth as
30548 getcharwidth.
30549
30550 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
30551 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
30552
30553 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
30554 GRUB_ERRNO.
30555 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
30556 on grub_strtoul completely.
30557 (write_char): Declare local variables in the beginning of the
30558 function.
30559 (grub_vesafb_getcharwidth): New function.
30560 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
30561 getcharwidth.
30562
30563 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
30564
30565 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
30566 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
30567 commands/i386/pc/vbetest.c.
30568
30569 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
30570 call grub_vbe_get_controller_info again, because the returned
30571 information is volatile.
30572 (grub_vbe_set_video_mode): Mostly rewritten.
30573 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
30574 grub_vbe_status_t correctly.
30575 (grub_vbe_get_video_mode_info): Likewise.
30576 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
30577 several if statements.
30578
30579 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
30580 * commands/i386/pc/vbeinfo.c: ... this.
30581
30582 * commands/i386/pc/vbe_test.c: Renamed to ...
30583 * commands/i386/pc/vbetest.c: ... this.
30584
30585 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
30586 ...
30587 (grub_cmd_vbeinfo): ... this. Save video modes before
30588 iterating. Skip a video mode, if it is not available, not enough
30589 information is given or it is monochrome. Show the memory
30590 model. Leave the interpretation of MODEVAR to grub_strtoul
30591 completely.
30592 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
30593 (GRUB_MOD_FINI): Likewise.
30594
30595 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
30596 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
30597 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
30598 duplicated grub_env_get. Leave the interpretation of MODEVAR to
30599 grub_strtoul completely.
30600 (real2pm): Removed.
30601 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
30602 (GRUB_MOD_FINI): Likewise.
30603
30604 * normal/misc.c: Include grub/mm.h.
30605
30606 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
30607 vbe_list_modes with vbetest.mod and vbeinfo.mod.
30608 (vbe_list_modes_mod_SOURCES): Removed.
30609 (vbe_list_modes_mod_CFLAGS): Likewise.
30610 (vbe_test_mod_SOURCES): Likewise.
30611 (vbe_test_mod_CFLAGS): Likewise.
30612 (vbeinfo_mod_SOURCES): New variable.
30613 (vbeinfo_mod_CFLAGS): Likewise.
30614 (vbetest_mod_SOURCES): Likewise.
30615 (vbetest_mod_CFLAGS): Likewise.
30616
30617 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
30618
30619 * normal/misc.c: New file.
30620
30621 * DISTLIST: Added normal/misc.c.
30622
30623 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
30624 DISK to HOOK. Call HOOK with DISK.
30625 * partmap/apple.c (apple_partition_map_iterate): Likewise.
30626 * partmap/pc.c (pc_partition_map_iterate): Likewise.
30627 * partmap/sun.c (sun_partition_map_iterate): Likewise.
30628
30629 * normal/menu_entry.c (struct screen): Added a new member
30630 "completion_shown".
30631 (completion_buffer): New global variable.
30632 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
30633 (store_completion): New function.
30634 (complete): Likewise.
30635 (clear_completions): Likewise.
30636 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
30637 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
30638 a tab, call complete.
30639
30640 * normal/completion.c (disk_dev): Removed.
30641 (print_simple_completion): Likewise.
30642 (print_partition_completion): Likewise.
30643 (print_func): New global variable.
30644 (add_completion): Do not take the arguments WHAT or PRINT any
30645 longer. Added a new argument TYPE. Instead of printing directly,
30646 call PRINT_FUNC if not NULL.
30647 All callers changed.
30648 (complete_device): Use a local variable DEV instead of
30649 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
30650 (grub_normal_do_completion): Take a new argument HOOK. Do not
30651 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
30652 empty string, return NULL instead.
30653 All callers changed.
30654
30655 * normal/cmdline.c (print_completion): New function.
30656
30657 * kern/partition.c (grub_partition_iterate): Add an argument DISK
30658 to HOOK.
30659 All callers changed.
30660
30661 * kern/disk.c (grub_print_partinfo): Removed.
30662
30663 * include/grub/partition.h (struct grub_partition_map): Add a new
30664 argument DISK into HOOK of ITERATE.
30665 (grub_partition_iterate): Add a new argument DISK to HOOK.
30666
30667 * include/grub/normal.h (enum grub_completion_type): New enum.
30668 (grub_completion_type_t): New type.
30669 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
30670 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
30671 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
30672 (GRUB_COMPLETION_TYPE_FILE): Likewise.
30673 (grub_normal_do_completion): Added a new argument HOOK.
30674 (grub_normal_print_device_info): New prototype.
30675
30676 * include/grub/disk.h (grub_print_partinfo): Removed.
30677
30678 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
30679 (normal_mod_SOURCES): Likewise.
30680 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30681 (normal_mod_SOURCES): Likewise.
30682
30683 * commands/ls.c (grub_ls_list_disks): Use
30684 grub_normal_print_device_info instead of grub_print_partinfo. Free
30685 PNAME.
30686 (grub_ls_list_files): Use grub_normal_print_device_info instead of
30687 duplicating the code.
30688
30689 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
30690
30691 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
30692 follow GCS more precisely.
30693 * commands/i386/pc/vbe_test.c: Likewise.
30694 * include/grub/i386/pc/vbe.h: Likewise.
30695 * term/i386/pc/vesafb.c: Likewise.
30696 * video/i386/pc/vbe.c: Likewise.
30697
30698 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
30699
30700 * DISTLIST: Added term/i386/pc/vesafb.c
30701 DISTLIST: Added video/i386/pc/vbe.c
30702 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
30703 DISTLIST: Added commands/i386/pc/vbe_test.c.
30704 * commands/i386/pc/vbe_list_modes.c: New file.
30705 * commands/i386/pc/vbe_test.c: Likewise.
30706 * term/i386/pc/vesafb.c: Likewise.
30707 * video/i386/pc/vbe.c: Likewise.
30708 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
30709 (grub_vbe_probe) Added prototype.
30710 (grub_vbe_set_video_mode) Likewise.
30711 (grub_vbe_get_video_mode) Likewise.
30712 (grub_vbe_get_video_mode_info) Likewise.
30713 (grub_vbe_set_pixel_rgb) Likewise.
30714 (grub_vbe_set_pixel_index) Likewise.
30715 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
30716 (pkgdata_MODULES): Added vesafb.mod.
30717 (pkgdata_MODULES): Added vbe_list_modes.mod.
30718 (pkgdata_MODULES): Added vbe_test.mod.
30719 (vbe_mod_SOURCES): Added.
30720 (vbe_mod_CFLAGS): Likewise.
30721 (vesafb_mod_SOURCES): Likewise.
30722 (vesafb_mod_CFLAGS): Likewise.
30723 (vbe_list_modes_mod_SOURCES): Likewise.
30724 (vbe_list_modes_mod_CFLAGS): Likewise.
30725 (vbe_test_mod_SOURCES): Likewise.
30726 (vbe_test_mod_CFLAGS): Likewise.
30727
30728 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
30729
30730 * normal/command.c (grub_command_execute): If INTERACTIVE is
30731 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
30732 CMDLINE. Disable the pager if INTERACTIVE is true.
30733 All callers are changed.
30734
30735 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
30736 before reading a config file.
30737 * normal/main.c (read_config_file): Even if a command is not
30738 found, register it if it is within an entry.
30739
30740 * util/grub-emu.c: Include sys/types.h and unistd.h.
30741 (options): Added --hold.
30742 (struct arguments): Added a new member "hold".
30743 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
30744 missing.
30745 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
30746 cleared by a debugger, if it is not zero.
30747
30748 * include/grub/normal.h (grub_command_execute): Add an argument
30749 INTERACTIVE.
30750
30751 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
30752
30753 * DISTLIST: Added include/grub/i386/pc/vbe.h.
30754
30755 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
30756
30757 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
30758 program with another one, because the old one didn't detect a bug
30759 in gcc-3.4. Always use regparm 2, because the new test is still
30760 not enough for gcc-4.0. Someone must investigate a simple test
30761 case which detects a bug in gcc-4.0.
30762
30763 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
30764
30765 * DISTLIST: Added normal/completion.c.
30766
30767 * normal/completion.c: New file.
30768
30769 * term/i386/pc/console.c (grub_console_getwh): New function.
30770 (grub_console_term): Assign grub_console_getwh to getwh.
30771
30772 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
30773 function is defined in normal/completion.c as
30774 grub_normal_do_completion.
30775 (grub_cmdline_get): Use grub_normal_do_completion instead of
30776 grub_tab_complete.
30777
30778 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
30779 returns non-zero, otherwise return 0.
30780 (grub_partition_iterate): First, probe the partition map. Then,
30781 call ITERATE only for this partition map.
30782
30783 * kern/misc.c (grub_strncmp): Rewritten.
30784
30785 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
30786 returns non-zero. Otherwise return 0.
30787
30788 * include/grub/partition.h (grub_partition_map_iterate): Return
30789 int instead of void.
30790
30791 * include/grub/normal.h (grub_normal_do_completion): New prototype.
30792
30793 * include/grub/misc.h (grub_strncmp): Change the type of N to
30794 grub_size_t.
30795
30796 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
30797 of void.
30798
30799 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
30800 unsigned explicitly before comparing it with I.
30801
30802 * kern/main.c (grub_env_write_root): Add the attribute unused into
30803 VAR.
30804
30805 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
30806 normal/completion.c.
30807 (normal_mod_SOURCES): Likewise.
30808 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30809 (normal_mod_SOURCES): Likewise.
30810
30811 * normal/command.c (grub_iterate_commands): If ITERATE returns
30812 non-zero, return one immediately.
30813
30814 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
30815
30816 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
30817 * kern/i386/pc/startup.S: Updated Global Descriptor table's
30818 descriptions.
30819 (grub_vbe_get_controller_info): New function.
30820 (grub_vbe_get_mode_info): Likewise.
30821 (grub_vbe_set_mode): Likewise.
30822 (grub_vbe_get_mode): Likewise.
30823 (grub_vbe_set_memory_window): Likewise.
30824 (grub_vbe_get_memory_window): Likewise.
30825 (grub_vbe_set_scanline_length): Likewise.
30826 (grub_vbe_get_scanline_length): Likewise.
30827 (grub_vbe_set_display_start): Likewise.
30828 (grub_vbe_get_display_start): Likewise.
30829 (grub_vbe_set_palette_data): Likewise.
30830 * include/grub/i386/pc/vbe.h: New file.
30831
30832 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
30833
30834 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
30835 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
30836 * DISTLIST: Likewise.
30837 * kern/ieee1275/of.c: Moved to ...
30838 * kern/ieee1275/ieee1275.c: ... here.
30839
30840 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
30841
30842 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
30843 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
30844 Pass 0 as `end' parameter to grub_strtoul().
30845
30846 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
30847
30848 * include/grub/powerpc/ieee1275/console.h: Do not include
30849 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
30850 ifdef.
30851 (grub_console_cur_color): Remove i386-specific prototype.
30852 (grub_console_real_putchar): Likewise.
30853 (grub_console_checkkey): Likewise.
30854 (grub_console_getkey): Likewise.
30855 (grub_console_getxy): Likewise.
30856 (grub_console_gotoxy): Likewise.
30857 (grub_console_cls): Likewise.
30858 (grub_console_setcursor): Likewise.
30859 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
30860 Include <grub/machine/console.h>.
30861 * term/ieee1275/ofconsole.c: Likewise.
30862
30863 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
30864
30865 * Makefile.in (LIBLZO): New variable.
30866
30867 * configure.ac: Check for LZO version 2.
30868
30869 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
30870 lzo/lzo1x.h instead of lzo1x.h.
30871
30872 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
30873 of -llzo.
30874
30875 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
30876 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
30877
30878 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
30879 copying the data from PARTITION to P.
30880
30881 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
30882
30883 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
30884 negative, unload the module.
30885
30886 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
30887 map is "pc_partition_map" but not "pc".
30888 (usage): Fix the description. The options are --boot-image and
30889 --core-image but not --boot-file or --core-file.
30890 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
30891 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
30892 DEFAULT_DIRECTORY.
30893
30894 * util/i386/pc/grub-install.in: Do not specify --boot-file or
30895 --core-file. Specify INSTALL_DEVICE as an argument.
30896
30897 * util/console.c: Include config.h.
30898 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
30899 [HAVE_NCURSES_H]: Include ncurses.h.
30900 [HAVE_CURSES_H]: Include curses.h.
30901 [!A_NORMAL] (A_NORMAL): Defined as zero.
30902 [!A_STANDOUT] (A_STANDOUT): Likewise.
30903
30904 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
30905 -lncurses.
30906 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
30907
30908 * configure.ac: Check for curses libraries and headers.
30909
30910 * Makefile.in (LIBCURSES): New variable.
30911
30912 * genmk.rb (Script::rule): Set the executable bits.
30913
30914 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
30915 name of the PC partition map is "pc_partition_map" but not "pc".
30916
30917 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
30918
30919 * util/i386/pc/grub-install.in (grub_probefs): New variable.
30920 (modules): Likewise.
30921 (usage): Added descriptions for --modules and --grub-probefs.
30922 Handle --modules and --grub-probefs. Save the arguments in MODULES
30923 and GRUB_PROBEFS, respectively.
30924 Auto-detect a filesystem module against GRUBDIR. If the result is
30925 empty and modules are not specified explicitly, abort the
30926 installation. Add the result to MODULES.
30927
30928 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
30929 disk/powerpc/ieee1275/ofdisk.c,
30930 include/grub/powerpc/ieee1275/init.h and
30931 term/powerpc/ieee1275/ofconsole.c.
30932 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
30933 term/ieee1275/ofconsole.c.
30934
30935 * include/grub/powerpc/ieee1275/console.h: Resurrected.
30936
30937 * COPYING: Upgraded to the latest version. Only the address of the
30938 FSF office has changed.
30939
30940 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
30941
30942 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
30943 kern/ieee1275.c with kern/ieee1275/of.c.
30944
30945 * kern/ieee1275.c: Moved to ...
30946 * kern/ieee1275/of.c: ... here.
30947
30948 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
30949
30950 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
30951 readability.
30952
30953 * config.guess: Updated to the latest version from gnulib.
30954 * config.sub: Likewise.
30955 * install.sh: Likewise.
30956 * mkinstalldirs: Likewise.
30957
30958 * include/grub/console.h: Removed. This file is arch-specific. Do
30959 not put this in include/grub.
30960
30961 * include/grub/i386/pc/console.h: Resurrected.
30962
30963 * util/console.c: Include grub/machine/console.h instead of
30964 grub/console.h.
30965 * util/grub-emu.c: Likewise.
30966
30967 2005-08-04 Marco Gerards <metgerards@student.han.nl>
30968
30969 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
30970 hardcoded value.
30971
30972 From Vincent Pelletier <subdino2004@yahoo.fr>
30973 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
30974 Redefined to use grub_getwh.
30975 (grub_term): New member named getwh.
30976 (grub_getwh): New prototype.
30977 * kern/term.c (grub_getwh): New function.
30978 * term/i386/pc/console.c (grub_console_getwh): New function.
30979 (grub_console_term): New member `getwh'.
30980 * term/i386/pc/vga.c (grub_vga_getwh): New function.
30981 (grub_vga_term): New member `getwh'.
30982 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
30983 grub_ssize_t.
30984 (grub_ofconsole_getw): New function.
30985 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
30986 (grub_ofconsole_term): New field named getwh and new initial
30987 value.
30988
30989 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
30990
30991 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
30992 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
30993 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
30994 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
30995 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
30996 of <grub/machine/ieee1275.h>.
30997 * commands/ieee1275/reboot.c: Likewise.
30998 * boot/powerpc/ieee1275/ieee1275.c: Move ...
30999 * kern/ieee1275.c: ... to here. All users updated. Change all
31000 parameter structs to use new type `grub_ieee1275_cell_t'.
31001 * term/powerpc/ieee1275/ofconsole.c: Move ...
31002 * term/ieee1275/ofconsole.c: ... to here. All users updated.
31003 * disk/powerpc/ieee1275/ofdisk.c: Move ...
31004 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
31005 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
31006 to return int.
31007 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
31008 Remove unused prototypes. All users updated.
31009 * include/grub/powerpc/ieee1275/console.h: Removed.
31010 * include/grub/powerpc/ieee1275/ieee1275.h: Define
31011 `grub_ieee1275_cell_t'.
31012 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
31013 Cast comparisons with -1 to the correct type.
31014 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
31015 type to match `grub_ieee1275_entry_fn'.
31016
31017 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
31018
31019 * DISTLIST: Added util/i386/pc/grub-probefs.c.
31020
31021 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
31022 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
31023 partmap/sun.c.
31024 (grub_probefs_SOURCES): New variable.
31025
31026 * util/i386/pc/grub-probefs.c: New file.
31027
31028 * util/i386/pc/grub-setup.c (main): Call
31029 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
31030 grub_hfs_init and grub_jfs_init to initialize the system. Call
31031 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
31032 grub_pc_partition_map_fini to finish the system.
31033
31034 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
31035
31036 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
31037 function.
31038 (grub_multiboot_load_elf32): Likewise.
31039 (grub_multiboot_is_elf64): Likewise.
31040 (grub_multiboot_load_elf64): Likewise.
31041 (grub_multiboot_load_elf): Likewise.
31042 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
31043 an ELF32 or ELF64 file.
31044 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
31045
31046 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
31047 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
31048 NULL before calling FS->LABEL.
31049 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
31050 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
31051 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
31052 before calling FS->LABEL.
31053
31054 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
31055
31056 * util/i386/pc/grub-install.in (datadir): New variable.
31057 (libdir): Removed.
31058 (pkgdatadir): New variable.
31059 (pkglibdir): Removed.
31060
31061 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
31062
31063 * DISTLIST: Added util/i386/pc/grub-install.in.
31064
31065 * util/i386/pc/grub-install.in: New file.
31066
31067 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
31068 (grub_install_SOURCES): Likewise.
31069
31070 * genmk.rb: Added support for scripts.
31071 (Script): New class.
31072 (scripts): New variable.
31073
31074 * Makefile.in (install-local): Install sbin_SCRIPTS by
31075 INSTALL_SCRIPT.
31076 (uninstall): Remove sbin_SCRIPTS.
31077
31078 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
31079 device, try to get a GRUB device by
31080 grub_util_biosdisk_get_grub_dev.
31081 Free DEST_DEV.
31082
31083 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
31084 description for --device-map.
31085
31086 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
31087
31088 Change the semantics of variable hooks. They now return strings
31089 instead of error values.
31090
31091 * util/i386/pc/grub-setup.c: Include grub/env.h.
31092 (setup): Use grub_device_set_root instead of grub_env_set.
31093
31094 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
31095 grub_env_get instead of grub_device_set_root and
31096 grub_device_get_root, respectively.
31097
31098 * kern/main.c (grub_env_write_root): New function.
31099 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
31100 grub_env_set instead of grub_device_set_root.
31101
31102 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
31103 many variables.
31104 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
31105 rather than calling ENV->WRITE_HOOK afterwards.
31106 (grub_env_get): Return the result of ENV->READ_HOOK rather than
31107 passing a pointer of a pointer.
31108 (grub_register_variable_hook): Change the types of "read_hook" and
31109 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
31110 respectively.
31111 Allocate the default empty string on the heap, because this string
31112 may be freed later.
31113
31114 * kern/device.c: Include grub/env.h.
31115 (grub_device_set_root): Removed.
31116 (grub_device_get_root): Likewise.
31117 (grub_device_open): Use grub_env_get instead of
31118 grub_device_get_root.
31119
31120 * include/grub/env.h (grub_env_read_hook_t): New type.
31121 (grub_env_write_hook_t): Likewise.
31122 (grub_env_var): Change the types of "read_hook" and "write_hook"
31123 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
31124 (grub_register_variable_hook): Likewise.
31125
31126 * include/grub/device.h (grub_device_set_root): Removed.
31127 (grub_device_set_root): Likewise.
31128
31129 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
31130 make sure that DIRNAME terminates with '/', so that
31131 grub_fat_find_dir will fail if PATH is not a directory.
31132
31133 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
31134 from DIRNAME.
31135 Use the qualifier auto for print_files and print_files_long.
31136 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
31137 as a regular file.
31138 Put a newline only if there is no error.
31139 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
31140 used.
31141
31142 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
31143
31144 * kern/partition.c (grub_partition_probe): Initialize PART to
31145 NULL. Otherwise, when no partition map is registered, this returns
31146 a garbage.
31147
31148 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
31149
31150 * partmap/apple.c (apple_partition_map_iterate): Check if POS
31151 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
31152 valid.
31153
31154 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
31155
31156 * commands/ls.c (grub_ls_list_disks): Print the filesystem
31157 information on each device, if it does not have partitions. Print
31158 "Device" instead of "Disk", because this function is not specific
31159 to disk devices.
31160
31161 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
31162 static to ensure that it is put on the memory rather than a
31163 register.
31164
31165 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
31166
31167 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
31168 (grub_cat_init): Likewise.
31169 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
31170 (options): Likewise.
31171 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
31172 (grub_configfile_init): Likewise.
31173 * font/manager.c (GRUB_MOD_INIT): Likewise.
31174 * commands/help.c (GRUB_MOD_INIT): Likewise.
31175 (grub_help_init): Likewise.
31176 * normal/command.c (grub_command_init): Likewise.
31177 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
31178 * disk/loopback.c (grub_loop_init): Likewise.
31179 (GRUB_MOD_INIT): Likewise.
31180 * commands/ls.c (grub_ls_init): Likewise.
31181 (GRUB_MOD_INIT): Likewise.
31182 (options): Likewise.
31183 * commands/boot.c (grub_boot_init): Likewise.
31184 (GRUB_MOD_INIT): Likewise.
31185 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
31186 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
31187 (GRUB_MOD_INIT): Likewise.
31188 * commands/cmp.c (grub_cmp_init): Likewise.
31189 (GRUB_MOD_INIT): Likewise.
31190
31191 * normal/arg.c: Use <> instead of "" to include header files.
31192 (SHORT_ARG_HELP): New macro.
31193 (SHORT_ARG_USAGE): Likewise.
31194 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
31195 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
31196 descriptions.
31197 (find_short): Check if C is 'h' or 'u' explicitly.
31198 (grub_arg_show_help): Use space characters instead of tabs. Treat
31199 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
31200 are shown with --help and --usage only if they are not used for
31201 the command itself.
31202 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
31203 'h' and 'u'.
31204
31205 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
31206 const into "longarg". Change the type of "shortarg" to int.
31207
31208 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
31209
31210 * boot/i386/pc/boot.S (boot_drive_check): New label.
31211
31212 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
31213 macro.
31214
31215 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
31216 which do not pass a boot drive correctly. Copied from GRUB Legacy.
31217
31218 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
31219
31220 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
31221 When turning off Gate A20, skip the check and return immediately,
31222 because this is not fatal usually.
31223
31224 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
31225
31226 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
31227 be 0x7C00 instead of 0x8000.
31228
31229 * boot/i386/pc/pxeboot.S: Rewritten.
31230
31231 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
31232 EXT_C.
31233 (gate_a20_check_state): Read a byte from 0x108000. Invert the
31234 result.
31235
31236 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
31237
31238 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
31239 robustness. This routine now supports a BIOS call and System
31240 Control Port A to modify the gate A20.
31241
31242 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
31243 Increased to 0x440.
31244
31245 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
31246
31247 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
31248 device path and resulting ihandle.
31249 (grub_ofdisk_close): dprintf the ihandle being closed.
31250 (grub_ofdisk_read): dprintf function parameters.
31251 * kern/mm.c (grub_mm_init_region): Likewise.
31252 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
31253 (grub_linux_boot): dprintf the Linux entry point, initrd address and
31254 size, and boot arguments.
31255 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
31256 before loading into memory.
31257 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
31258 before loading into memory.
31259
31260 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
31261
31262 * kern/mm.c: Added much documentation.
31263 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
31264 8, set to 5 instead of 8.
31265
31266 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
31267
31268 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
31269
31270 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
31271 (grub_mkdevicemap_SOURCES): New variable.
31272
31273 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
31274 lib/device.c of GRUB Legacy.
31275
31276 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
31277
31278 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
31279 instead of PATH is NULL.
31280
31281 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
31282
31283 * commands/cmp.c (BUFFER_SIZE): New macro.
31284 (grub_cmd_cmp): Close the right file at the right time. Compare
31285 only data just read. Don't report files of different size as
31286 identical. Dynamically allocate buffers. Move variable
31287 declarations at the beginning of function.
31288
31289 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
31290
31291 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
31292 reverse.
31293
31294 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
31295
31296 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
31297 when backspace is pressed at beginning of line.
31298
31299 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
31300
31301 * DISTLIST: Added genfslist.sh.
31302
31303 * normal/main.c (fs_module_list): New variable.
31304 (autoload_fs_module): New function.
31305 (read_fs_list): Likewise.
31306 (grub_normal_execute): Call read_fs_list.
31307
31308 * kern/fs.c (grub_fs_autoload_hook): New variable.
31309 (grub_fs_probe): Added support for auto-loading.
31310
31311 * include/grub/normal.h (struct grub_fs_module_list): New struct.
31312 (grub_fs_module_list_t): New type.
31313
31314 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
31315 (grub_fs_autoload_hook): New prototype.
31316
31317 * genfslist.sh: New file.
31318
31319 * genmk.rb: Added a rule to generate a filesystem list.
31320
31321 2005-06-30 Marco Gerards <metgerards@student.han.nl>
31322
31323 * configure.ac: Fix the test for cross-compiling.
31324
31325 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
31326 define GRUB_UTIL anymore.
31327
31328 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
31329 so this function works on other systems than just big endian.
31330 (load_modules): Likewise.
31331 (add_segments): Likewise.
31332
31333 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
31334
31335 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
31336 contains `l' modifier, get a long from va_arg().
31337
31338 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
31339
31340 * kern/mm.c (grub_free): If the next free block which is being
31341 merged is the first free block, set the first block to the block
31342 being freed.
31343 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
31344
31345 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
31346
31347 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
31348 `grub_ieee1275_chosen'.
31349
31350 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
31351
31352 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
31353 (grub_ieee1275_chosen): New variable.
31354 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
31355 `chosen'.
31356 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
31357 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
31358 Rename first argument to `phandle' for consistency.
31359 (grub_ieee1275_get_property_length): Likewise.
31360 (grub_ieee1275_next_property): Likewise. Change type of first argument
31361 to grub_ieee1275_phandle_t.
31362 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
31363 Move export next to declaration.
31364 (grub_ieee1275_chosen): New variable.
31365 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
31366 Correct cosmetic typo.
31367 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
31368 `grub_ieee1275_chosen'.
31369 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
31370 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
31371 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
31372 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
31373 `grub_ieee1275_chosen'.
31374
31375 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
31376
31377 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
31378 /chosen/bootargs.
31379 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
31380 /chosen/bootargs as "variable=value" pairs.
31381
31382 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
31383
31384 * include/grub/misc.h (grub_dprintf): New macro.
31385 (grub_real_dprintf): New prototype.
31386 (grub_strword): Likewise.
31387 (grub_iswordseparator): Likewise.
31388 * kern/misc.c (grub_real_dprintf): New function.
31389 (grub_strword): Likewise.
31390 (grub_iswordseparator): Likewise.
31391
31392 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
31393
31394 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
31395 (roundup): Remove macro.
31396 (grub_ieee1275_flags): Make static.
31397 (grub_ieee1275_realmode): Remove.
31398 (grub_ieee1275_test_flag): New function.
31399 (grub_ieee1275_set_flag): Likewise.
31400 (find_options): Rename to `grub_ieee1275_find_options'; update
31401 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
31402 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
31403 (cmain): New prototype.
31404 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
31405 `grub_ieee1275_flags' directly.
31406 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
31407 machine/biosdisk.h.
31408 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
31409 Don't include grub/machine/init.h.
31410 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
31411 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
31412 Remove prototype.
31413 (grub_ieee1275_realmode): Likewise.
31414 (grub_ieee1275_flag): New enum.
31415 (grub_ieee1275_test_flag): New prototype.
31416 (grub_ieee1275_set_flag): New prototype.
31417 * include/grub/powerpc/ieee1275/init.h: Remove file.
31418 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
31419 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
31420 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
31421 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
31422 comment.
31423 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
31424 `grub_ieee1275_test_flag'.
31425 (grub_ieee1275_encode_devname): Likewise.
31426
31427 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
31428
31429 * include/grub/powerpc/ieee1275/ieee1275.h
31430 (grub_ieee1275_encode_devname): New prototype.
31431 (grub_ieee1275_get_filename): Likewise.
31432 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
31433 function.
31434 (grub_set_prefix): Likewise.
31435 (grub_machine_init): Call grub_set_prefix.
31436 * kern/powerpc/ieee1275/openfw.c: Fix typos.
31437 (grub_parse_type): New enum.
31438 (grub_ieee1275_get_devargs): New function.
31439 (grub_ieee1275_get_devname): Likewise.
31440 (grub_ieee1275_parse_args): Likewise.
31441 (grub_ieee1275_get_filename): Likewise.
31442 (grub_ieee1275_encode_devname): Likewise.
31443
31444 2005-03-30 Marco Gerards <metgerards@student.han.nl>
31445
31446 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
31447 `grub_loader_unset'.
31448
31449 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
31450
31451 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
31452 instead of grub_ieee1275_interpret.
31453 (grub_halt_init): New function.
31454 (grub_halt_fini): Likewise.
31455 (GRUB_MOD_INIT): Correct message grammar.
31456 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
31457 instead of grub_ieee1275_interpret.
31458 (grub_reboot_init): New function.
31459 (grub_reboot_fini): Likewise.
31460 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
31461 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
31462 util/i386/pc/misc.c with commands/ieee1275/halt.c,
31463 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
31464 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
31465 function.
31466 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
31467 Add prototype.
31468 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
31469 prototype.
31470 (grub_halt): Likewise.
31471 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
31472 (cmain): Remove __attribute__((unused)).
31473 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
31474 (grub_heap_len): Likewise.
31475 (grub_machine_fini): New function.
31476 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
31477 (grub_halt): Likewise.
31478 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
31479 function.
31480 * util/powerpc/ieee1275/misc.c: New file.
31481
31482 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
31483
31484 * DISTLIST: New file.
31485 * gendistlist.sh: Likewise.
31486
31487 * Makefile.in (COMMON_DISTFILES): Removed.
31488 (BOOT_DISTFILES): Likewise.
31489 (CONF_DISTFILES): Likewise.
31490 (DISK_DISTFILES): Likewise.
31491 (FS_DISTFILES): Likewise.
31492 (INCLUDE_DISTFILES): Likewise.
31493 (KERN_DISTFILES): Likewise.
31494 (LOADER_DISTFILES): Likewise.
31495 (TERM_DISTFILES): Likewise.
31496 (UTIL_DISTFILES): Likewise.
31497 (DISTFILES): Likewise.
31498 (uninstall): Uninstall files in $(pkgdata_DATA).
31499 (DISTLIST): New target.
31500 (distdir): Use the contents of the file DISTLIST to get a list of
31501 distributed files.
31502
31503 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
31504
31505 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
31506 descriptor. This is ported from GRUB Legacy.
31507
31508 * gencmdlist.sh: Added an extra semicolon to make it work with
31509 old sed versions. Reported by Robert Bihlmeyer
31510 <robbe@orcus.priv.at>.
31511
31512 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
31513
31514 Automatic loading of commands is supported.
31515
31516 * normal/main.c (read_command_list): New function.
31517 (grub_normal_execute): Call read_command_list.
31518
31519 * normal/command.c (grub_register_command): Return zero or CMD.
31520 Allocate CMD->NAME from the heap.
31521 Initialize CMD->MODULE_NAME to zero.
31522 Find the same name as well. If the same command is found and it is
31523 a dummy command, overwrite members. If it is not a dummy command,
31524 return zero.
31525 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
31526 (grub_command_find): If a dummy command is found, load a module
31527 and retry to find a command only once.
31528
31529 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
31530 make sure that each command is loaded.
31531
31532 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
31533 macro.
31534 (struct grub_command): Remove const from the member `name'.
31535 Add a new member `module_name'.
31536 (grub_register_command): Return grub_command_t.
31537
31538 * commands/help.c (grub_cmd_help): Call grub_command_find to make
31539 sure that each command is loaded.
31540
31541 * genmk.rb (PModule::rule): Specify a module name without the
31542 suffix ".mod" to gencmdlist.sh.
31543
31544 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
31545
31546 * gencmdlist.sh: New file.
31547
31548 * genmk.rb (PModule::rule): Generate a rule for a command list.
31549 Clean command.lst.
31550 Generate command.lst from $(COMMANDFILES).
31551
31552 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
31553 (DATA): Added $(pkgdata_DATA).
31554 (install-local): Install files in $(pkgdata_DATA).
31555
31556 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
31557
31558 * term/i386/pc/vga.c (debug_command): Removed.
31559 (GRUB_MOD_INIT): Do not register the command "debug".
31560
31561 From Hollis Blanchard:
31562 * commands/configfile.c: New file.
31563 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
31564 commands/configfile.c.
31565 (pkgdata_MODULES): Added configfile.mod.
31566 (configfile_mod_SOURCES): New variable.
31567 (configfile_mod_CFLAGS): Likewise.
31568 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
31569 commands/configfile.c.
31570 (pkgdata_MODULES): Added configfile.mod.
31571 (configfile_mod_SOURCES): New variable.
31572 (configfile_mod_CFLAGS): Likewise.
31573 * util/grub-emu.c (main): Call grub_configfile_init and
31574 grub_configfile_fini.
31575 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
31576 prototype.
31577 [GRUB_UTIL] (grub_configfile_fini): Likewise.
31578
31579 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
31580
31581 * normal/arg.c (grub_arg_show_help): Do not show the bug report
31582 address.
31583
31584 * commands/help.c (grub_cmd_help): Do not print newlines after
31585 the last command in print_command_help.
31586
31587 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
31588
31589 * commands/default.h: New file.
31590 * commands/timeout.h: Likewise.
31591 * normal/context.c: Likewise.
31592
31593 * util/misc.c: Do not include sys/times.h.
31594 Include sys/time.h and grub/machine/time.h.
31595 (grub_get_rtc): Rewritten with gettimeofday.
31596
31597 * util/grub-emu.c (main): Call grub_default_init and
31598 grub_timeout_init before grub_normal_init, and call
31599 grub_timeout_fini and grub_default_fini after grub_main.
31600
31601 * util/console.c (grub_ncurses_checkkey): Return the read
31602 character or -1.
31603
31604 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
31605 timeouts.
31606
31607 * normal/main.c (read_config_file): Push MENU. If this fails,
31608 print an error and wait for a user input.
31609 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
31610 If a menu is empty or an error occurs, pop MENU.
31611 (grub_normal_execute): Pop and free MENU after grub_menu_run
31612 returns.
31613
31614 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
31615
31616 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
31617 include time.h.
31618 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
31619 without GRUB_UTIL.
31620 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
31621 time.h.
31622 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
31623 without GRUB_UTIL.
31624
31625 * include/grub/normal.h (struct grub_menu_list): New struct.
31626 (grub_menu_list_t): New type.
31627 (struct grub_context): New struct.
31628 (grub_context_t): New type.
31629 (grub_register_command): Got rid of EXPORT_FUNC.
31630 (grub_unregister_command): Likewise.
31631 (grub_context_get): New prototype.
31632 (grub_context_get_current_menu): Likewise.
31633 (grub_context_push_menu): Likewise.
31634 (grub_context_pop_menu): Likewise.
31635 [GRUB_UTIL] (grub_default_init): Likewise.
31636 [GRUB_UTIL] (grub_default_fini): Likewise.
31637 [GRUB_UTIL] (grub_timeout_init): Likewise.
31638 [GRUB_UTIL] (grub_timeout_fini): Likewise.
31639
31640 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
31641 commands/timeout.c and normal/context.c.
31642 (pkgdata_MODULES): Added default.mod and timeout.mod.
31643 (normal_mod_SOURCES): Added normal/context.c.
31644 (default_mod_SOURCES): New variable.
31645 (default_mod_CFLAGS): Likewise.
31646 (timeout_mod_SOURCES): Likewise.
31647 (timeout_mod_CFLAGS): Likewise.
31648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
31649 conf/i386-pc.rmk.
31650 (pkgdata_MODULES): Added default.mod and timeout.mod.
31651 (normal_mod_SOURCES): Added normal/context.c.
31652 (default_mod_SOURCES): New variable.
31653 (default_mod_CFLAGS): Likewise.
31654 (timeout_mod_SOURCES): Likewise.
31655 (timeout_mod_CFLAGS): Likewise.
31656
31657 * Makefile.in (all-local): Added $(MKFILES).
31658
31659 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
31660
31661 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
31662 (grub_emu_SOURCES): Likewise.
31663 (pkgdata_MODULES): Add `sun.mod'.
31664 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
31665 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31666 `partmap/sun.c'.
31667 (pkgdata_MODULES): Add `sun.mod'.
31668 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
31669 * include/grub/partition.h (grub_sun_partition_map_init): New
31670 prototype.
31671 (grub_sun_partition_map_fini): Likewise.
31672 * partmap/sun.c: New file.
31673 * util/grub-emu.c (main): Initialize and de-initialize the sun
31674 partitionmap support.
31675
31676 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
31677
31678 This implements an Emacs-like menu entry editor.
31679
31680 * normal/menu_entry.c: New file.
31681
31682 * util/console.c (grub_ncurses_putchar): Translate some Unicode
31683 characters to ASCII.
31684 (saved_char): New variable.
31685 (grub_ncurses_checkkey): Rewritten completely.
31686 (grub_ncurses_getkey): Likewise.
31687 (grub_ncurses_init): Call raw instead of cbreak.
31688
31689 * normal/menu.c (print_entry): Do not put a space.
31690 (init_page): Renamed to ...
31691 (grub_menu_init_page): ... this. All callers changed.
31692 (edit_menu_entry): Removed.
31693 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
31694
31695 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
31696
31697 * kern/misc.c (grub_vprintf): Call grub_refresh.
31698
31699 * normal/menu.c (DISP_LEFT): Renamed to ...
31700 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
31701 * normal/menu.c (DISP_UP): Renamed to ...
31702 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
31703 * normal/menu.c (DISP_RIGHT): Renamed to ...
31704 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
31705 * normal/menu.c (DISP_DOWN): Renamed to ...
31706 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
31707 * normal/menu.c (DISP_HLINE): Renamed to ...
31708 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
31709 * normal/menu.c (DISP_VLINE): Renamed to ...
31710 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
31711 * normal/menu.c (DISP_UL): Renamed to ...
31712 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
31713 * normal/menu.c (DISP_UR): Renamed to ...
31714 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
31715 * normal/menu.c (DISP_LL): Renamed to ...
31716 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
31717 * normal/menu.c (DISP_LR): Renamed to ...
31718 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
31719 * normal/menu.c (TERM_WIDTH): Renamed to ...
31720 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
31721 * normal/menu.c (TERM_HEIGHT): Renamed to ...
31722 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
31723 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
31724 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
31725 * normal/menu.c (TERM_MARGIN): Renamed to ...
31726 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
31727 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
31728 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
31729 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
31730 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
31731 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
31732 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
31733 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
31734 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
31735 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
31736 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
31737 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
31738 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
31739 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
31740 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
31741 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
31742 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
31743 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
31744 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
31745 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
31746 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
31747 All callers changed.
31748
31749 * include/grub/normal.h: New prototype.
31750
31751 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
31752 normal/menu_entry.c.
31753 (normal_mod_SOURCES): Likewise.
31754 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31755 (normal_mod_SOURCES): Likewise.
31756
31757 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
31758
31759 * include/grub/normal.h (grub_halt_init): New prototype.
31760 (grub_halt_fini): Likewise.
31761 (grub_reboot_init): Likewise.
31762 (grub_reboot_fini): Likewise.
31763
31764 * util/grub-emu.c: Include signal.h.
31765 (main_env): New global variable.
31766 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
31767 catch C-c.
31768 (grub_machine_fini): New function.
31769 (main): Call grub_halt_init and grub_reboot_init before
31770 grub_main, and grub_reboot_fini and grub_halt_fini after it.
31771 Call setjmp with MAIN_ENV to go back afterwards.
31772 Call grub_machine_fini right before return.
31773
31774 * include/grub/util/misc.h: Include setjmp.h.
31775 (main_env): New prototype.
31776
31777 * include/grub/kernel.h (grub_machine_fini): New prototype.
31778 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
31779 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
31780
31781 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
31782 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
31783 * term/i386/pc/console.c (grub_console_fini): Likewise.
31784
31785 * util/i386/pc/misc.c: New file.
31786
31787 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
31788 util/i386/pc/misc.c, commands/i386/pc/halt.c and
31789 commands/i386/pc/reboot.c.
31790
31791 2005-02-14 Guillem Jover <guillem@hadrons.org>
31792
31793 * include/grub/dl.h (grub_dl_check_header): New prototype.
31794 (grub_arch_dl_check_header): Change return type to grub_err_t,
31795 remove size parameter and export function. Update all callers.
31796 * kern/dl.c (grub_dl_check_header): New function.
31797 (grub_dl_load_core): Use `grub_dl_check_header' instead of
31798 `grub_arch_dl_check_header'. Check ELF type. Check if sections
31799 are inside the core.
31800 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
31801 independent ELF header checks.
31802 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
31803 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
31804 `grub_dl_check_header' instead of explicit checks. Check for the
31805 ELF type.
31806 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
31807 `grub_dl_check_header' instead of explicit checks. Remove arch
31808 specific ELF header checks.
31809
31810 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
31811 argument SIZE.
31812
31813 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
31814
31815 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
31816 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
31817
31818 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
31819
31820 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
31821 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
31822 (part_map_iterate): Clear `grub_errno' and return 0 if
31823 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
31824 * partmap/amiga.c (amiga_partition_map_iterate): Return
31825 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
31826 * partmap/apple.c (apple_partition_map_iterate): Likewise.
31827
31828 2005-02-01 Guillem Jover <guillem@hadrons.org>
31829
31830 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
31831 help info.
31832
31833 2005-01-31 Marco Gerards <metgerards@student.han.nl>
31834
31835 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
31836 Removed prototype.
31837 (grub_rescue_cmd_linux): New prototype.
31838 (grub_rescue_cmd_initrd): Likewise.
31839 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
31840 `bi_rec'.
31841 (grub_linux_release_mem): Release the memory for the initrd.
31842 (grub_load_linux): Renamed from this...
31843 (grub_rescue_cmd_linux): ...To this. Changed all callers.
31844 Changed `entry' not to be static. Loop over memory regions to
31845 find another one when the default fails.
31846 (grub_rescue_cmd_initrd): New function.
31847 (grub_linux_init): Remove function.
31848 (grub_linux_fini): Likewise.
31849 (GRUB_MOD_INIT): Register `initrd'.
31850 (GRUB_MOD_FINI): Unregister `initrd'.
31851 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
31852 Function removed.
31853 (grub_linux_normal_fini): Likewise.
31854 (GRUB_MOD_INIT): Register `initrd'.
31855 (GRUB_MOD_FINI): Unregister `initrd'.
31856
31857 2005-01-31 Marco Gerards <metgerards@student.han.nl>
31858
31859 * commands/help.c: New file.
31860 * normal/arg.c (show_help): Renamed to...
31861 (grub_arg_show_help): ... this.
31862 * commands/i386/pc/halt.c: New file.
31863 * commands/i386/pc/reboot.c: Likewise.
31864 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
31865 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
31866 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
31867 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
31868 variables.
31869 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31870 `commands/help.c'.
31871 (pkgdata_MODULES): Add `help.mod'.
31872 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
31873 * grub/i386/pc/init.h (grub_reboot): New prototype.
31874 (grub_halt): Likewise.
31875 * include/grub/normal.h (grub_arg_show_help): New prototype.
31876 (grub_help_init): Likewise.
31877 (grub_help_fini): Likewise.
31878 * util/grub-emu.c (main): Initialize and deinitialize the help
31879 command.
31880
31881 * normal/cmdline.c (grub_cmdline_get): Doc fix.
31882
31883 * normal/command.c (grub_command_init): Fixed the description of
31884 the `set' and `unset' commands.
31885
31886 2005-01-31 Marco Gerards <metgerards@student.han.nl>
31887
31888 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
31889 function.
31890 * commands/ieee1275/halt.c: New file.
31891 * commands/ieee1275/reboot.c: Likewise.
31892 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
31893 `__attribute__ ((unused))'. Some GCS related fixed.
31894 (grub_suspend_init) [GRUB_UTIL]: Function removed.
31895 (grub_suspend_fini): Likewise.
31896 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
31897 and `halt.mod'.
31898 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
31899 (halt_mod_CFLAGS): New variables.
31900 * include/grub/powerpc/ieee1275/ieee1275.h
31901 (grub_ieee1275_interpret): New prototype.
31902
31903 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
31904
31905 * include/grub/misc.h (memmove): New prototype.
31906 (memcpy): Likewise.
31907
31908 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
31909
31910 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
31911 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
31912
31913 2005-01-22 Marco Gerards <metgerards@student.han.nl>
31914
31915 * kern/misc.c (grub_strndup): Function rewritten.
31916
31917 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
31918
31919 * normal/menu.c (TERM_WIDTH): Macro redefined.
31920 (TERM_TOP_BORDER_Y): Likewise.
31921 (draw_border): Replaced while-loop by a for-loop. Make the number
31922 of lines consistent with the number of lines displayed in
31923 print_entries. Added a margin below the rectangle.
31924 (print_entry): Make the entry fit in the rectangle.
31925 (print_entries): Display the scroll arrows next to the right
31926 border.
31927
31928 2005-01-21 Marco Gerards <metgerards@student.han.nl>
31929
31930 * fs/minix.c (grub_minix_find_file): Reserve more space for
31931 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
31932 `grub_strncpy' to copy `path' into it.
31933
31934 2005-01-21 Marco Gerards <metgerards@student.han.nl>
31935
31936 Add the loopback device, a device via which files can be accessed
31937 as devices.
31938
31939 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
31940 (pkgdata_MODULES): Add loopback.mod.
31941 (loopback_mod_SOURCES): New variable.
31942 (loopback_mod_CFLAGS): Likewise.
31943 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31944 `disk/loopback.c'.
31945 (pkgdata_MODULES): Add loopback.mod.
31946 (loopback_mod_SOURCES): New variable.
31947 (loopback_mod_CFLAGS): Likewise.
31948 * disk/loopback.c: new file.
31949 * include/grub/normal.h (grub_loop_init): New prototype.
31950 (grub_loop_fini): New prototype.
31951 * util/grub-emu.c (main): Initialize and de-initialize loopback
31952 support.
31953 * include/grub/disk.h (grub_disk_dev_id): Add
31954 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
31955
31956 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
31957
31958 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
31959 function.
31960 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
31961 (suspend_mod_SOURCES): New variable.
31962 (suspend_mod_CFLAGS): Likewise.
31963 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
31964 New prototype.
31965 * commands/ieee1275/suspend.c: New file.
31966
31967 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
31968
31969 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
31970 ((unused))' to `__attribute__ ((used))'.
31971 (GRUB_MOD_FINI): Likewise.
31972 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
31973 * genmk.rb (PModule): Assign space to common symbols when linking
31974 modules.
31975
31976 2005-01-20 Marco Gerards <metgerards@student.han.nl>
31977
31978 * include/grub/mm.h (grub_mm_init_region): Change the type of the
31979 `unsigned' arguments to `grub_size_t'.
31980 (grub_malloc): Likewise.
31981 (grub_realloc): Likewise.
31982 (grub_memalign): Likewise.
31983 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
31984 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
31985 * util/misc.c (grub_malloc): Likewise.
31986 (grub_realloc): Likewise.
31987 * kern/mm.c (get_header_from_pointer): Change the casts to
31988 `unsigned' into a cast to `grub_size_t'.
31989
31990 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
31991 point to `currnode' when `currnode' is changed.
31992
31993 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
31994 Schottelius <nico-linux@schottelius.org>.
31995
31996 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
31997
31998 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
31999 (note_path): Remove variable.
32000 (GRUB_IEEE1275_NOTE_NAME): New macro.
32001 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
32002 (grub_ieee1275_note_hdr): New structure.
32003 (grub_ieee1275_note_desc): Likewise.
32004 (grub_ieee1275_note): Likewise.
32005 (load_note): Remove `dir' argument. All callers updated. Remove
32006 `note_img' and `path'. Do not load a file from `note_path'.
32007 Initialize a struct grub_ieee1275_note and write that to `out'.
32008 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
32009
32010 2005-01-05 Marco Gerards <metgerards@student.han.nl>
32011
32012 * util/misc.c (grub_util_read_image): Revert last change. It
32013 called `grub_util_read_at', which seeks from the beginning of the
32014 file.
32015
32016 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
32017
32018 * TODO: Add note about endianness in grub-mkimage.
32019 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
32020 section.
32021 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
32022 (grub_mkimage_SOURCES): New target.
32023 * include/grub/kernel.h (grub_start_addr): Remove variable.
32024 (grub_end_addr): Likewise.
32025 (grub_total_module_size): Likewise.
32026 (grub_kernel_image_size): Likewise.
32027 (GRUB_MODULE_MAGIC): New constant.
32028 (grub_module_info): New structure.
32029 (grub_arch_modules_addr): New prototype.
32030 (grub_get_end_addr): Remove prototype.
32031 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
32032 * include/grub/powerpc/ieee1275/kernel.h: New file.
32033 * include/grub/util/misc.h (grub_util_get_fp_size): New
32034 prototype.
32035 (grub_util_read_at): Likewise.
32036 (grub_util_write_image_at): Likewise.
32037 * kern/main.c (grub_get_end_addr): Remove function.
32038 (grub_load_modules): Call grub_arch_modules_addr instead of using
32039 grub_end_addr. Look for a grub_module_info struct in memory. Use
32040 the grub_module_info fields instead of calling grub_get_end_addr
32041 as loop conditions. Move grub_add_unused_region code here.
32042 (grub_add_unused_region): Remove function.
32043 * kern/i386/pc/init.c: Include grub/cache.h.
32044 (grub_machine_init): Remove call to grub_get_end_addr. Remove
32045 one call to add_mem_region.
32046 (grub_arch_modules_addr): New function.
32047 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
32048 (grub_total_module_size): Likewise.
32049 Include grub/machine/kernel.h.
32050 (grub_arch_modules_addr): New function.
32051 * util/grub-emu.c (grub_end_addr): Remove variable.
32052 (grub_total_module_size): Likewise.
32053 (grub_arch_modules_addr): New function.
32054 * util/misc.c: Include unistd.h.
32055 (grub_util_get_fp_size): New function.
32056 (grub_util_read_at): Likewise.
32057 (grub_util_write_image_at): Likewise.
32058 (grub_util_read_image): Call grub_util_read_at.
32059 (grub_util_write_image): Call grub_util_write_image_at.
32060 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
32061 additional memory in kernel_img for a struct grub_module_info.
32062 Fill in that grub_module_info.
32063 * util/powerpc/ieee1275/grub-mkimage.c: New file.
32064
32065 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
32066
32067 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
32068 New function.
32069 * include/grub/powerpc/ieee1275/ieee1275.h
32070 (grub_ieee1275_milliseconds): New prototype.
32071 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
32072 Change to 1000.
32073 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
32074 grub_ieee1275_milliseconds.
32075
32076 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
32077
32078 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
32079 variable.
32080 (find_options): New function.
32081 (cmain): Call find_options.
32082 * include/grub/powerpc/ieee1275/ieee1275.h
32083 (grub_ieee1275_realmode): New extern variable.
32084 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
32085 grub_map if grub_ieee1275_realmode is false.
32086
32087 2004-12-29 Marco Gerards <metgerards@student.han.nl>
32088
32089 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
32090 lines are inserted and make it work like readline. Reported by
32091 Vincent Pelletier <subdino2004@yahoo.fr>.
32092
32093 2004-12-28 Marco Gerards <metgerards@student.han.nl>
32094
32095 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
32096
32097 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
32098 `kern/powerpc/cache.S'.
32099
32100 2004-12-27 Marco Gerards <metgerards@student.han.nl>
32101
32102 * genmk.rb: Handle the `Program' class in the main loop. Written
32103 by Johan Rydberg <jrydberg@gnu.org>.
32104 (Program): New class.
32105 (programs): New variable.
32106 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
32107 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
32108 instead of "grub/kernel.h". Include <grub/machine/init.h>.
32109 (help_arch): Function removed.
32110 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
32111 `powerpc/libgcc.h' and `loader.h'.
32112 (pkgdata_PROGRAMS): New variable.
32113 (sbin_UTILITIES): Variable removed.
32114 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
32115 (grubof_SOURCES): Variable re-defined so it only includes the
32116 core functionality.
32117 (grubof_CFLAGS): Remove `-DGRUBOF'.
32118 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
32119 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
32120 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
32121 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
32122 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
32123 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
32124 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
32125 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
32126 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
32127 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
32128 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
32129 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
32130 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
32131 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
32132 (pc_mod_CFLAGS): New variables.
32133 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
32134 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
32135 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
32136 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
32137 Moved from here...
32138 * include/grub/i386/pc/init.h (grub_os_area_addr)
32139 (rub_os_area_size): ... to here.
32140 * include/grub/powerpc/ieee1275/ieee1275.h
32141 (grub_ieee1275_entry_fn): Export symbol.
32142 * include/grub/powerpc/ieee1275/init.h: New file.
32143 * include/grub/powerpc/libgcc.h: Likewise.
32144 * include/grub/cache.h: Likewise.
32145 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
32146 <hollis@penguinppc.org>.
32147 * kern/dl.c: Include <grub/cache.h>.
32148 (grub_dl_flush_cache): New function.
32149 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
32150 for this module.
32151 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
32152 (grub_console_init): Removed prototypes.
32153 (grub_machine_init): Don't initialize the modules anymore.
32154 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
32155 static.
32156 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
32157 Macro undef removed.
32158 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
32159 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
32160 relocation `R_PPC_REL32'. Return an error when the relocation is
32161 unknown.
32162 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
32163 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
32164 * util/misc.c (grub_arch_sync_caches): Likewise.
32165
32166 2004-12-19 Marco Gerards <metgerards@student.han.nl>
32167
32168 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
32169 `symlist.c', add `grubof_symlist.c'.
32170 (symlist.c): Variable removed.
32171 (grubof_HEADERS): Variable added.
32172 (grubof_symlist.c): New target.
32173 (kernel_syms.lst): Use `grubof_HEADERS' instead of
32174 `kernel_img_HEADERS'.
32175 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
32176 * kern/powerpc/dl.c: New file.
32177 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
32178 Function removed.
32179 (grub_arch_dl_relocate_symbols): Likewise.
32180 (grub_register_exported_symbols): Likewise.
32181
32182 2004-12-13 Marco Gerards <metgerards@student.han.nl>
32183
32184 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
32185 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
32186 to fail instead. Reported by Vincent Pelletier
32187 <subdino2004@yahoo.fr>.
32188
32189 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
32190 it is not allocated. Reported by Vincent Pelletier
32191 <subdino2004@yahoo.fr>.
32192
32193 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
32194 output so the output looks better.
32195
32196 2004-12-04 Marco Gerards <metgerards@student.han.nl>
32197
32198 Modulize the partition map support and add support for the amiga
32199 partition map.
32200
32201 * commands/ls.c: Include <grub/partition.h> instead of
32202 <grub/machine/partition.h>.
32203 * kern/disk.c: Likewise.
32204 * kern/rescue.c: Likewise.
32205 * loader/i386/pc/chainloader.c: Likewise.
32206 * normal/cmdline.c: Likewise.
32207 * kern/powerpc/ieee1275/init.c: Likewise.
32208 (grub_machine_init): Call `grub_pc_partition_map_init',
32209 `grub_amiga_partition_map_init' and
32210 `grub_apple_partition_map_init'.
32211 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
32212 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
32213 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
32214 `partition.h' and `pc_partition.h'.
32215 (grub_setup_SOURCES): Remove
32216 `disk/i386/pc/partition.c'. Add `kern/partition.c',
32217 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
32218 (grub_emu_SOURCES): Likewise.
32219 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
32220 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
32221 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
32222 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
32223 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
32224 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
32225 (grubof_SOURCES): Likewise.
32226 * disk/i386/pc/partition.c: File removed.
32227 * disk/powerpc/ieee1275/partition.c: Likewise.
32228 * include/grub/powerpc/ieee1275/partition.h: Likewise.
32229 * include/grub/i386/pc/partition.h: Likewise.
32230 * kern/partition.c: New file.
32231 * partmap/amiga.c: Likewise.
32232 * partmap/apple.c: Likewise.
32233 * partmap/pc.c: Likewise.
32234 * include/grub/partition.h: Likewise..
32235 * include/grub/pc_partition.h: Likewise.
32236 * util/grub-emu.c: Include <grub/partition.h> instead of
32237 <grub/machine/partition.h>.
32238 (main): Call `grub_pc_partition_map_init',
32239 `grub_amiga_partition_map_init' and
32240 `grub_apple_partition_map_init' and deinitialize afterwards.
32241 * util/i386/pc/biosdisk.c: Include `#include
32242 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
32243 `<grub/machine/partition.h>'.
32244 * util/i386/pc/grub-setup.c: Likewise.
32245 * util/i386/pc/biosdisk.c: Likewise.
32246 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
32247 partition information in case of a PC partition.
32248 * util/i386/pc/grub-setup.c: Include `#include
32249 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
32250 `<grub/machine/partition.h>'.
32251 (setup): Only access the PC specific partition information in case
32252 of a PC partition.
32253
32254 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
32255
32256 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
32257 (grub_longjmp): Likewise.
32258 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
32259 20.
32260 * normal/powerpc/setjmp.S: New file.
32261 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
32262 `normal/powerpc/setjmp.S'.
32263 (grubof_CFLAGS): Add `-DGRUBOF'.
32264 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
32265 [GRUB_UTIL && !GRUBOF].
32266
32267 2004-11-16 Marco Gerards <metgerards@student.han.nl>
32268
32269 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
32270 property named `name'. Correctly handle the error returned by
32271 `grub_ieee1275_finddevice' if a device can not be opened.
32272
32273 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
32274
32275 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
32276 `actual' for negativity.
32277 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
32278 kern/fshelp.c.
32279
32280 2004-11-01 Marco Gerards <metgerards@student.han.nl>
32281
32282 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
32283 (PAGE_OFFSET): New macro.
32284 (CRTC_ADDR_PORT): Likewise.
32285 (CRTC_DATA_PORT): Likewise.
32286 (START_ADDR_HIGH_REGISTER): Likewise.
32287 (START_ADDR_LOW_REGISTER): Likewise.
32288 (GRAPHICS_ADDR_PORT): Likewise.
32289 (GRAPHICS_DATA_PORT): Likewise.
32290 (READ_MAP_REGISTER): Likewise.
32291 (INPUT_STATUS1_REGISTER): Likewise.
32292 (INPUT_STATUS1_VERTR_BIT): Likewise.
32293 (page): New variable.
32294 (wait_vretrace): New function.
32295 (set_read_map): Likewise.
32296 (set_start_address): Likewise.
32297 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
32298 the right page.
32299 (check_vga_mem): Take the page into account.
32300 (write_char): Likewise.
32301 (write_cursor): Likewise.
32302 (scroll_up): Likewise. Copy the page to the page that is not
32303 shown and switch between both pages.
32304 (grub_vga_putchar): Fix off by one error.
32305 (grub_vga_cls): Wait for the vertical retrace. Take the page into
32306 account.
32307
32308 2004-11-01 Marco Gerards <metgerards@student.han.nl>
32309
32310 Add support for iso9660 (including rockridge).
32311
32312 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
32313 (iso9660_mod_SOURCES): New variable.
32314 (iso9660_mod_CFLAGS): Likewise.
32315 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
32316 * include/grub/fs.h (grub_iso9660_init): New prototype.
32317 * util/grub-emu.c (main): Call `grub_iso9660_init'.
32318 * fs/iso9660.c: New file.
32319
32320 * include/grub/misc.h (grub_strncat): New prototype.
32321 * kern/misc.c (grub_strncat): New function.
32322
32323 * fs/hfs.c (grub_hfs_mount): Translate the error
32324 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
32325 * fs/jfs.c (grub_jfs_mount): Likewise.
32326 * fs/ufs.c (grub_ufs_mount): Likewise.
32327
32328 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
32329
32330 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
32331 which initialized BAT registers.
32332 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
32333 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
32334 Move from here...
32335 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
32336 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
32337 ... to here.
32338 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
32339 (grub_mapclaim): Likewise.
32340 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
32341 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
32342 hand.
32343
32344 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
32345
32346 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
32347 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
32348 -ffreestanding and -msoft-float.
32349
32350 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
32351
32352 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
32353 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
32354 set in grub_ieee1275_flags.
32355
32356 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
32357
32358 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
32359 prototype.
32360 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
32361 grub_console_init first.
32362 Change the memory range used for grub_ieee1275_claim and
32363 grub_mm_init_region.
32364 Print an error message if the claim fails.
32365 Include <grub/misc.h>.
32366
32367 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
32368
32369 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
32370 Call grub_children_iterate for device nodes of type `scsi',
32371 `ide', or `ata'.
32372 (grub_ofdisk_open): Remove manual device alias resolution.
32373 Fix memory leak when device cannot be opened.
32374 * include/grub/powerpc/ieee1275/ieee1275.h
32375 (grub_children_iterate): New prototype.
32376 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
32377 New function.
32378 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
32379 Return -1 if args.size was -1.
32380
32381 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
32382
32383 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
32384 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
32385 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
32386 Open Firmware's memory for it; claim memory from _start to _end.
32387 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
32388 (_end): New extern.
32389 (_start): Zero BSS from __bss_start to _end.
32390 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
32391 New extern.
32392 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
32393
32394 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
32395
32396 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
32397 -1 if args.base was -1.
32398
32399 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
32400
32401 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
32402 escape sequence instead of a literal ^L. Also call
32403 grub_ofconsole_gotoxy.
32404
32405 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
32406
32407 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
32408 void * arguments to grub_addr_t. All callers updated. Also make
32409 the `result' argument optional.
32410 (grub_ieee1275_release): change void * arguments to grub_addr_t.
32411 All callers updated.
32412
32413 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
32414
32415 * commands/ls.c (grub_ls_list_files): Use the string following the
32416 initial ')', if present, as the filesystem path.
32417 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
32418
32419 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
32420
32421 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
32422
32423 Make the source code of the menu interface more readable.
32424
32425 * normal/menu.c: Include grub/mm.h.
32426 (TERM_WIDTH): New macro.
32427 (TERM_HEIGHT): Likewise.
32428 (TERM_INFO_HEIGHT): Likewise.
32429 (TERM_MARGIN): Likewise.
32430 (TERM_SCROLL_WIDTH): Likewise.
32431 (TERM_TOP_BORDER_Y): Likewise.
32432 (TERM_LEFT_BORDER_X): Likewise.
32433 (TERM_BORDER_WIDTH): Likewise.
32434 (TERM_MESSAGE_HEIGHT): Likewise.
32435 (TERM_BORDER_HEIGHT): Likewise.
32436 (TERM_NUM_ENTRIES): Likewise.
32437 (TERM_FIRST_ENTRY_Y): Likewise.
32438 (TERM_ENTRY_WIDTH): Likewise.
32439 (TERM_CURSOR_X): Likewise.
32440 (draw_border): Use macros instead of magic numbers.
32441 (print_entry): Likewise.
32442 (print_entries): Likewise.
32443 (run_menu): Likewise. Also, handle the key 'e'.
32444 (run_menu_entry): Ignore empty command lines.
32445 (print_message): Added a new argument EDIT. If EDIT is true,
32446 print a different message.
32447 (init_page): Likewise.
32448 (edit_menu_entry): New function. Not implemented yet.
32449
32450 2004-09-17 Marco Gerards <metgerards@student.han.nl>
32451
32452 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
32453 can be loaded from normal mode.
32454
32455 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
32456 `multiboot.mod'.
32457 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
32458 (multiboot_mod_CFLAGS): New variables.
32459 * loader/i386/pc/linux_normal.c: New file.
32460 * loader/i386/pc/multiboot_normal.c: Likewise.
32461
32462 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
32463 attribute `unused'.
32464
32465 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
32466 `fdiro' to read the mode information from instead of `diro'.
32467
32468 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
32469 looking up a symlink.
32470
32471 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
32472 macro.
32473 * normal/command.c (grub_command_execute): Don't parse the
32474 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
32475 flags of the command.
32476
32477 * normal/menu.c (grub_menu_run): Fix typo.
32478
32479 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
32480
32481 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
32482
32483 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
32484 `y + 1' instead of `y - 1'.
32485
32486 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
32487
32488 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
32489
32490 From Hollis Blanchard <hollis@penguinppc.org>:
32491 * kern/misc.c (memmove): New alias for grub_memmove.
32492 (memcmp): New alias for grub_memcmp.
32493 (memset): New alias for grub_memset.
32494 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
32495 Change "int handle" to "grub_ieee1275_phandle_t handle".
32496 * include/grub/powerpc/ieee1275/ieee1275.h
32497 (grub_ieee1275_get_property): Likewise.
32498
32499 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
32500
32501 Added normal mode command `chainloader' as module chain.mod, which
32502 depends on normal.mod and _chain.mod.
32503
32504 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
32505 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
32506 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
32507 Deleted prototype.
32508 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
32509 but arguments parsing moved to ...
32510 (grub_chainloader_cmd): ... here. New function.
32511 * include/grub/i386/pc/chainloader.h: New file.
32512 * loader/i386/pc/chainloader_normal.c: Likewise.
32513
32514 2004-09-11 Marco Gerards <metgerards@student.han.nl>
32515
32516 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
32517 (grub_mkimage_LDFLAGS): Likewise.
32518 (grub_emu_SOURCES): Likewise.
32519 (kernel_img_HEADERS): Added fshelp.h.
32520 * fs/ext2.c: Include <grub/fshelp.h>.
32521 (FILETYPE_REG): New macro.
32522 (FILETYPE_INO_REG): Likewise.
32523 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
32524 Changed all users.
32525 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
32526 all users.
32527 (grub_fshelp_node): New struct.
32528 (grub_ext2_data): Added member `diropen'. Changed member `inode'
32529 to a pointer.
32530 (grub_ext2_get_file_block): Removed function.
32531 (grub_ext2_read_block): New function.
32532 (grub_ext2_read_file): Replaced parameter `data' by `node'.
32533 This function was written.
32534 (grub_ext2_mount): Read the root inode. Create a diropen struct.
32535 (grub_ext2_find_file): Removed function.
32536 (grub_ext2_read_symlink): New function.
32537 (grub_ext2_iterate_dir): Likewise.
32538 (grub_ext2_open): Rewritten.
32539 (grub_ext2_dir): Rewritten.
32540 * include/grub/fshelp.h: New file.
32541 * fs/fshelp.c: Likewise.
32542
32543 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
32544
32545 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
32546 (print_message): Add a missing newline.
32547 (run_menu): Added timeout support.
32548 (run_menu_entry): New local function.
32549 (grub_menu_run): Added support for booting.
32550
32551 * kern/loader.c (grub_loader_is_loaded): New function.
32552
32553 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
32554 (grub_get_rtc): Exported.
32555
32556 * include/grub/i386/pc/time.h: Include grub/symbol.h.
32557 (grub_get_rtc): Exported.
32558
32559 * include/grub/normal.h (struct grub_command_list): Remove
32560 constant from the member `command'.
32561
32562 * include/grub/loader.h (grub_loader_is_loaded): Declared.
32563
32564 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
32565
32566 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
32567
32568 2004-08-28 Marco Gerards <metgerards@student.han.nl>
32569
32570 Add support for the JFS filesystem.
32571
32572 * fs/jfs.c: New file.
32573 * include/grub/fs.h (grub_jfs_init): New prototype.
32574 (grub_jfs_fini): New prototype.
32575 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
32576 (grub_emu_SOURCES): Likewise.
32577 (pkgdata_MODULES): Add jfs.mod.
32578 (jfs_mod_SOURCES): New variable.
32579 (jfs_mod_CFLAGS): Likewise.
32580 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
32581 (grubof_SOURCES): Likewise.
32582 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
32583
32584 * fs/fat.c (grub_fat_find_dir): Convert the filename little
32585 endian to the host endian.
32586 (grub_fat_utf16_to_utf8): Move function from there...
32587 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
32588 the endianness of the source string anymore.
32589 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
32590
32591 2004-08-24 Marco Gerards <metgerards@student.han.nl>
32592
32593 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
32594 (grub_boot_fini) [GRUB_UTIL]: Likewise.
32595 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
32596 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
32597
32598 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
32599 (grub_hfs_iterate_dir): Make the function static. Add prototypes
32600 for `node_found' and `it_dir'.
32601 (grub_hfs_dir): Add prototype for `dir_hook'.
32602
32603 * fs/minix.c (grub_minix_get_file_block): Add prototype for
32604 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
32605 and `indir32' to silence a gcc warning.
32606
32607 * include/grub/fs.h (grub_hfs_init): New prototype.
32608 (grub_hfs_fini): Likewise.
32609
32610
32611 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
32612
32613 Each disk device has its own id now. This is useful to make use
32614 of multiple disk devices.
32615
32616 * include/grub/disk.h (grub_disk_dev_id): New enum.
32617 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
32618 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
32619
32620 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
32621 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
32622
32623 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
32624 GRUB_DISK_DEVICE_OFDISK_ID as an id.
32625
32626 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
32627 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
32628
32629 * include/grub/disk.h (struct grub_disk_dev): Added a new member
32630 "id" which is used by the cache manager.
32631
32632 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
32633 of just "GRUB".
32634
32635 2004-08-18 Marco Gerards <metgerards@student.han.nl>
32636
32637 * fs/hfs.c: New file.
32638 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
32639 (grub_emu_SOURCES): Likewise.
32640 (pkgdata_MODULES): Add hfs.mod.
32641 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
32642 (grubof_SOURCES): Likewise.
32643 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
32644
32645 * include/grub/misc.h (grub_strncasecmp): Add prototype.
32646 * kern/misc.c (grub_strncasecmp): Add function.
32647
32648 2004-08-14 Marco Gerards <metgerards@student.han.nl>
32649
32650 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
32651 with parentheses.
32652
32653 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
32654 (grub_ext2_dir): In case the directory entry type is unknown, read
32655 it from the inode.
32656
32657 2004-08-02 Peter Bruin <pjbruin@dds.nl>
32658
32659 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
32660 grub_load_linux instead of grub_rescue_cmd_linux as second
32661 argument of grub_rescue_register_command.
32662
32663 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
32664
32665 2004-07-27 Marco Gerards <metgerards@student.han.nl>
32666
32667 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
32668 function.
32669 * commands/boot.c: Remove the check for `GRUB_UTIL'.
32670 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
32671 `loader/powerpc/ieee1275/linux.c',
32672 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
32673 * include/grub/powerpc/ieee1275/ieee1275.h
32674 (grub_ieee1275_release): New prototype.
32675 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
32676 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
32677 normal, boot, linux and linux_normal.
32678 * loader/powerpc/ieee1275/linux.c: New file.
32679 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
32680
32681 2004-07-12 Marco Gerards <metgerards@student.han.nl>
32682
32683 * normal/arg.c (grub_arg_parse): Correct error handling after
32684 reallocating the argumentlist (check if `argl' is not null instead
32685 of checking if `args' is not null).
32686 * kern/mm.c (grub_realloc): Return the same pointer when using the
32687 same region, instead of returning the header address.
32688
32689 2004-07-11 Marco Gerards <metgerards@student.han.nl>
32690
32691 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
32692 one block instead of two when looking for the initial partition.
32693 (grub_partition_probe): Initialize the local variable `p' with 0.
32694 Use base 10 for the grub_strtoul call.
32695 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
32696 need for one local variable.
32697 (grub_strtoul): Don't add the new value to `num', instead of that
32698 just assign it.
32699
32700 2004-07-11 Marco Gerards <metgerards@student.han.nl>
32701
32702 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
32703 (pxeboot_img_SOURCES): New variable.
32704 (pxeboot_img_ASFLAGS): Likewise.
32705 (pxeboot_img_LDFLAGS): Likewise.
32706 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
32707 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
32708 <lode_leroy@hotmail.com>.
32709
32710 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
32711
32712 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
32713 there was no input.
32714
32715 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
32716
32717 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
32718 the history buffer logic.
32719
32720 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
32721
32722 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
32723 (FILETYPE_INO_SYMLINK): New macros.
32724 (grub_ext2_find_file): Check if the node is a directory using the
32725 inode stat information instead of using the filetype in the
32726 dirent. Exclude the first character of an absolute symlink.
32727 (grub_ext2_dir): Mask out the filetype part of the mode member of
32728 the inode.
32729
32730 2004-05-24 Marco Gerards <metgerards@student.han.nl>
32731
32732 Add support for UFS version 1 and 2. Add support for the minix
32733 filesystem version 1 and 2, both the variants with 14 and 30 long
32734 filenames.
32735
32736 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
32737 fs/minix.c.
32738 (grub_emu_SOURCES): Likewise.
32739 (pkgdata_MODULES): Add ufs.mod and minix.mod.
32740 (ufs_mod_SOURCES): New variable.
32741 (ufs_mod_CFLAGS): Likewise.
32742 (minix_mod_SOURCES): Likewise.
32743 (minix_mod_CFLAGS): Likewise.
32744 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
32745 fs/minix.c.
32746 (grubof_SOURCES): Likewise.
32747 * fs/ufs.c: New file.
32748 * fs/minix.c: New file.
32749 * include/grub/fs.h (grub_ufs_init): New prototype.
32750 (grub_ufs_fini): Likewise.
32751 (grub_minix_init): Likewise.
32752 (grub_minix_fini): Likewise.
32753 * util/grub-emu.c (main): Initialize and deinitialize UFS and
32754 minix fs.
32755
32756 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
32757
32758 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
32759 commands/ls.c, commands/terminal.c, commands/boot.c,
32760 commands/cmp.c and commands/cat.c.
32761 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
32762
32763 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
32764 "env.h"
32765
32766 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32767
32768 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
32769 and grub_, respectively. Because the conversion is trivial and
32770 mechanical, I omit the details here. Please refer to the CVS
32771 if you need more information.
32772
32773 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32774
32775 * include/pupa: Renamed to ...
32776 * include/grub: ... this.
32777 * util/i386/pc/pupa-mkimage.c: Renamed to ...
32778 * util/i386/pc/grub-mkimage.c: ... this.
32779 * util/i386/pc/pupa-setup.c: Renamed to ...
32780 * util/i386/pc/grub-setup.c: ... this.
32781 * util/pupa-emu.c: Renamed to ...
32782 * util/grub-emu.c: ... this.
32783
32784 2004-03-29 Marco Gerards <metgerards@student.han.nl>
32785
32786 Add support for the newworld apple macintosh (PPC). This has been
32787 tested on the powerbook 2000 only. It only adds support for
32788 generic ieee1275 functions, console and disk support. This should
32789 be easy to port to other architectures with support for Open
32790 Firmware.
32791
32792 * configure.ac: Accept the powerpc as host_cpu. In the case of
32793 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
32794 specific tests are only executed while building for the i386.
32795 Inverse test for crosscompile.
32796 * genmk.rb (Utility): Allow assembler files.
32797 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
32798 * conf/powerpc-ieee1275.rmk: New file.
32799 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
32800 * disk/powerpc/ieee1275/partition.c: Likewise.
32801 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
32802 * include/pupa/powerpc/ieee1275/console.h: Likewise.
32803 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
32804 * include/pupa/powerpc/ieee1275/time.h: Likewise.
32805 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
32806 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
32807 * include/pupa/powerpc/ieee1275/loader.h
32808 * include/pupa/powerpc/setjmp.h: Likewise.
32809 * include/pupa/powerpc/types.h: Likewise.
32810 * kern/powerpc/ieee1275/init.c: Likewise.
32811 * kern/powerpc/ieee1275/openfw.c: Likewise.
32812 * term/powerpc/ieee1275/ofconsole.c: Likewise.
32813
32814 These files were written by Johan Rydberg
32815 (jrydberg@night.trouble.net) and I only modified them slightly.
32816
32817 * boot/powerpc/ieee1275/cmain.c: New file.
32818 * boot/powerpc/ieee1275/crt0.S: Likewise.
32819 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
32820 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
32821
32822 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
32823
32824 * Makefile.in: Update copyright.
32825 * genmodsrc.sh: Likewise.
32826 * gensymlist.sh: Likewise.
32827 * term/i386/pc/vga.c: Indent correctly.
32828
32829 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
32830 bugreporting address.
32831 * util/i386/pc/pupa-setup.c (usage): Likewise,
32832 (main): Call pupa_ext2_init and pupa_ext2_fini.
32833
32834 * fs/fat.c (log2): Renamed to ...
32835 (fat_log2): ... this.
32836 All callers changed.
32837 * kern/misc.c (memcpy): Alias to pupa_memmove.
32838 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
32839 lvalue cast.
32840 * util/console.c (pupa_ncurses_fini): Return 0.
32841
32842 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
32843 Move fail label here.
32844 [__GNU__]: Don't warn when using stat.
32845 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
32846 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
32847 long int. Use strtol instead of strtoul.
32848
32849 2004-03-14 Marco Gerards <metgerards@student.han.nl>
32850
32851 * commands/boot.c: New file.
32852 * commands/cat.c: Likewise.
32853 * commands/cmp.c: Likewise.
32854 * commands/ls.c: Likewise.
32855 * commands/terminal.c: Likewise.
32856 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
32857 (pupa_register_command): Changed interface to match the new
32858 argument parser.
32859 (pupa_command_execute): Changed (almost rewritten) so it uses
32860 pupa_split_command. Added support for setting variables using the
32861 syntax `foo=bar'.
32862 (rescue_command): Changed to work with the new argument parser.
32863 (terminal_command): Moved from here to commands/terminal.c.
32864 (set_command): New function.
32865 (unset_command): New function.
32866 (insmod_command): New function.
32867 (rmmod_command): New function.
32868 (lsmod_command): New function.
32869 (pupa_command_init): Don't initialize the command terminal
32870 anymore. Initialize the commands set, unset, insmod, rmmod and
32871 lsmod.
32872 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
32873 (kernel_img_HEADERS): Add arg.h and env.h.
32874 (pupa_mkimage_LDFLAGS): Add kern/env.c.
32875 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
32876 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
32877 normal/arg.c.
32878 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
32879 terminal.mod.
32880 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
32881 (boot_mod_SOURCES): New variable.
32882 (terminal_mod_SOURCES): Likewise.
32883 (ls_mod_SOURCES): Likewise.
32884 (cmp_mod_SOURCES): Likewise.
32885 (cat_mod_SOURCES): Likewise.
32886
32887 * normal/arg.c: New file.
32888 * kern/env.c: Likewise.
32889 * include/pupa/arg.h: Likewise.
32890 * include/pupa/env.h: Likewise.
32891 * font/manager.c (font_command): Changed to match argument parsing
32892 interface changes.
32893 (PUPA_MOD_INIT): Likewise.
32894 * hello/hello.c (pupa_cmd_hello): Likewise.
32895 (PUPA_MOD_INIT): Likewise.
32896 * include/pupa/disk.h: Include <pupa/device.h>.
32897 (pupa_print_partinfo): New prototype.
32898 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
32899 (pupa_dl_get_prefix): Likewise.
32900 * include/pupa/misc.h: Include <pupa/err.h>.
32901 (pupa_isgraph): New prototype.
32902 (pupa_isdigit): Likewise.
32903 (pupa_split_cmdline): Likewise.
32904 * include/pupa/normal.h: Include <pupa/arg.h>.
32905 (pupa_command): Changed the prototype of the member `func' to
32906 match the argument parsing interface. Added member `options'.
32907 (pupa_register_command): Updated to match function.
32908 (pupa_arg_parse): New prototype.
32909 (pupa_hello_init) [PUPA_UTIL]: New prototype.
32910 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
32911 (pupa_ls_init) [PUPA_UTIL]: Likewise.
32912 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
32913 (pupa_cat_init) [PUPA_UTIL]: Likewise.
32914 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
32915 (pupa_boot_init) [PUPA_UTIL]: Likewise.
32916 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
32917 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
32918 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
32919 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
32920 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
32921 * kern/disk.c: Include <pupa/file.h>.
32922 (pupa_print_partinfo): New function.
32923 * kern/dl.c: Include <pupa/env.h>.
32924 (pupa_dl_dir): Variable removed.
32925 (pupa_dl_load): Use the environment variable `prefix' instead of
32926 the variable pupa_dl_dir.
32927 (pupa_dl_set_prefix): Function removed.
32928 (pupa_dl_get_prefix): Likewise.
32929 * kern/i386/pc/init.c: Include <pupa/env.h>.
32930 (pupa_machine_init): Use the environment variable `prefix' instead of
32931 using pupa_dl_set_prefix to set the prefix.
32932 * kern/main.c: Include <pupa/env.h>.
32933 (pupa_set_root_dev): Use the environment variable `prefix' instead of
32934 using pupa_dl_get_prefix to get the prefix.
32935 * kern/misc.c: Include <pupa/env.h>.
32936 (pupa_isdigit): New function.
32937 (pupa_isgraph): Likewise.
32938 (pupa_ftoa): Likewise.
32939 (pupa_vsprintf): Added support for printing values of the type
32940 `double'. Make it possible to format variable output when using
32941 formatting like `%1.2%f'.
32942 (pupa_split_cmdline): New function.
32943 * kern/rescue.c: Include <pupa/env.h>.
32944 (next_word): Removed function.
32945 (pupa_rescue_cmd_prefix): Likewise.
32946 (pupa_rescue_cmd_set): New function.
32947 (pupa_rescue_cmd_unset): New function.
32948 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
32949 split the command line instead of splitting it here. Added
32950 support for setting variables using the syntax `foo=bar'. Don't
32951 initialize the prefix command anymore. Initialized the set and
32952 unset commands.
32953 * normal/cmdline.c: Include <pupa/env.h>.
32954 (pupa_tab_complete): Added prototypes for print_simple_completion,
32955 print_partition_completion, add_completion, iterate_commands,
32956 iterate_dev, iterate_part and iterate_dir. Moved code to print
32957 partition information from here to kern/disk.c.
32958 (pupa_cmdline_run): Don't check if the function exists anymore.
32959 * normal/main.c: Include <pupa/env.h>.
32960 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
32961 instead of using pupa_dl_get_prefix to get the prefix.
32962 * term/i386/pc/vga.c: Include <pupa/arg.h>.
32963 (check_vga_mem): Cast pointers to `void *' to silence a gcc
32964 warning.
32965 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
32966 (pupa_vga_setcolor): Declare unused variables with `__attribute__
32967 ((unused))' to silence a gcc warning.
32968 (pupa_vga_setcolor): Likewise.
32969 (debug_command): Changed to match argument parsing
32970 interface changes.
32971 * util/pupa-emu.c: Include <pupa/env.h>.
32972 (options): Added 0's for unused fields to silence a gcc warning.
32973 (argp): Likewise.
32974 (main): Use the environment variable `prefix' instead of using
32975 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
32976 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
32977 and terminal.
32978
32979 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
32980 * util/misc.c: Include <malloc.h>.
32981 (pupa_malloc): Rewritten so errors are correctly reported.
32982 (pupa_realloc): Likewise.
32983 (pupa_memalign): Likewise.
32984 (pupa_mm_init_region): Declare unused variables with
32985 `__attribute__ ((unused))' to silence a gcc warning.
32986 * normal/i386/setjmp.S: Remove tab at the end of the file to
32987 silence a gcc warning.
32988 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
32989 variables with `__attribute__ ((unused))' to silence a gcc
32990 warning.
32991 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
32992 local variable i unsigned to silence a gcc warning.
32993
32994 * kern/term.c: Include <pupa/misc.h>.
32995 (pupa_more_lines): New variable.
32996 (pupa_more): Likewise.
32997 (pupa_putcode): When the pager is active pause at the end of every
32998 screen.
32999 (pupa_set_more): New function.
33000 * include/pupa/term.h (pupa_set_more): New prototype.
33001
33002
33003 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
33004
33005 Now this project is GRUB 2 rather than PUPA. The location of
33006 the CVS repository was moved to GRUB's.
33007
33008 * configure.ac: Use bug-grub as the reporting address.
33009 Use GRUB instead of PUPA.
33010 Change the version number to 1.90.
33011
33012 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
33013
33014 * genkernsyms.sh: Updated copyright information.
33015 * genmk.rb: Likewise.
33016 * genmodsrc.sh: Likewise.
33017 * gensymlist.sh: Likewise.
33018 * boot/i386/pc/boot.S: Likewise.
33019 * boot/i386/pc/diskboot.S: Likewise.
33020 * disk/i386/pc/biosdisk.c: Likewise.
33021 * disk/i386/pc/partition.c: Likewise.
33022 * font/manager.c: Likewise.
33023 * fs/ext2.c: Likewise.
33024 * fs/fat.c: Likewise.
33025 * include/pupa/boot.h: Likewise.
33026 * include/pupa/device.h: Likewise.
33027 * include/pupa/disk.h: Likewise.
33028 * include/pupa/dl.h: Likewise.
33029 * include/pupa/elf.h: Likewise.
33030 * include/pupa/err.h: Likewise.
33031 * include/pupa/file.h: Likewise.
33032 * include/pupa/font.h: Likewise.
33033 * include/pupa/fs.h: Likewise.
33034 * include/pupa/kernel.h: Likewise.
33035 * include/pupa/loader.h: Likewise.
33036 * include/pupa/misc.h: Likewise.
33037 * include/pupa/mm.h: Likewise.
33038 * include/pupa/net.h: Likewise.
33039 * include/pupa/normal.h: Likewise.
33040 * include/pupa/rescue.h: Likewise.
33041 * include/pupa/setjmp.h: Likewise.
33042 * include/pupa/symbol.h: Likewise.
33043 * include/pupa/term.h: Likewise.
33044 * include/pupa/types.h: Likewise.
33045 * include/pupa/i386/setjmp.h: Likewise.
33046 * include/pupa/i386/types.h: Likewise.
33047 * include/pupa/i386/pc/biosdisk.h: Likewise.
33048 * include/pupa/i386/pc/boot.h: Likewise.
33049 * include/pupa/i386/pc/console.h: Likewise.
33050 * include/pupa/i386/pc/init.h: Likewise.
33051 * include/pupa/i386/pc/kernel.h: Likewise.
33052 * include/pupa/i386/pc/linux.h: Likewise.
33053 * include/pupa/i386/pc/loader.h: Likewise.
33054 * include/pupa/i386/pc/memory.h: Likewise.
33055 * include/pupa/i386/pc/multiboot.h: Likewise.
33056 * include/pupa/i386/pc/partition.h: Likewise.
33057 * include/pupa/i386/pc/time.h: Likewise.
33058 * include/pupa/i386/pc/vga.h: Likewise.
33059 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
33060 * include/pupa/util/getroot.h: Likewise.
33061 * include/pupa/util/misc.h: Likewise.
33062 * include/pupa/util/resolve.h: Likewise.
33063 * kern/device.c: Likewise.
33064 * kern/disk.c: Likewise.
33065 * kern/dl.c: Likewise.
33066 * kern/err.c: Likewise.
33067 * kern/file.c: Likewise.
33068 * kern/fs.c: Likewise.
33069 * kern/loader.c: Likewise.
33070 * kern/main.c: Likewise.
33071 * kern/misc.c: Likewise.
33072 * kern/mm.c: Likewise.
33073 * kern/rescue.c: Likewise.
33074 * kern/term.c: Likewise.
33075 * kern/i386/dl.c: Likewise.
33076 * kern/i386/pc/init.c: Likewise.
33077 * kern/i386/pc/lzo1x.S: Likewise.
33078 * kern/i386/pc/startup.S: Likewise.
33079 * loader/i386/pc/chainloader.c: Likewise.
33080 * loader/i386/pc/linux.c: Likewise.
33081 * loader/i386/pc/multiboot.c: Likewise.
33082 * normal/cmdline.c: Likewise.
33083 * normal/command.c: Likewise.
33084 * normal/main.c: Likewise.
33085 * normal/menu.c: Likewise.
33086 * normal/i386/setjmp.S: Likewise.
33087 * term/i386/pc/console.c: Likewise.
33088 * term/i386/pc/vga.c: Likewise.
33089 * util/console.c: Likewise.
33090 * util/genmoddep.c: Likewise.
33091 * util/misc.c: Likewise.
33092 * util/pupa-emu.c: Likewise.
33093 * util/resolve.c: Likewise.
33094 * util/unifont2pff.rb: Likewise.
33095 * util/i386/pc/biosdisk.c: Likewise.
33096 * util/i386/pc/getroot.c: Likewise.
33097 * util/i386/pc/pupa-mkimage.c: Likewise.
33098 * util/i386/pc/pupa-setup.c: Likewise.
33099
33100 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
33101
33102 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
33103 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
33104 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
33105 reading and reset it after reading.
33106 (pupa_ext2_close): Return PUPA_ERR_NONE.
33107
33108 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
33109 Correct value.
33110 (struct linux_kernel_header): Add kernel_version and
33111 initrd_addr_max.
33112 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
33113 pupa_file_read succeeds.
33114 (pupa_rescue_cmd_initrd): Implement.
33115
33116 2003-12-03 Marco Gerards <metgerards@student.han.nl>
33117
33118 * fs/ext2.c (pupa_ext2_label): New function.
33119 (pupa_ext2_fs): Added label.
33120 * fs/fat.c (pupa_fat_label): New function.
33121 (pupa_fat_fs): Added label.
33122 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
33123
33124 * kern/misc.c (pupa_strndup): New function.
33125 * include/pupa/misc.h (pupa_strndup): New prototype.
33126
33127 * include/pupa/normal.h: Include <pupa/err.h>.
33128 (pupa_set_history): New prototype.
33129 (pupa_iterate_commands): New prototype.
33130 * normal/cmdline.c: Include <pupa/machine/partition.h>,
33131 <pupa/disk.h>, <pupa/file.h>.
33132 (hist_size): New variable.
33133 (hist_lines): Likewise.
33134 (hist_end): Likewise.
33135 (hist_used): Likewise.
33136 (pupa_set_history): New function.
33137 (pupa_history_get): Likewise.
33138 (pupa_history_add): Likewise.
33139 (pupa_history_replace): Likewise.
33140 (pupa_tab_complete): Likewise.
33141 (pupa_cmdline_run): Added tab completion and history buffer. Tab
33142 completion shows partitionnames while completing partitions, this
33143 feature was suggested by Jeff Bailey.
33144 * normal/command.c (pupa_iterate_commands): New function.
33145 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
33146 (pupa_normal_init): Initialize history buffer.
33147 (PUPA_MOD_INIT): Likewise.
33148 (pupa_normal_fini): Free the history buffer.
33149 (PUPA_MOD_FINI): Likewise.
33150
33151 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
33152 key.
33153
33154 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
33155 * configure.ac [i386]: Check for regparam bug.
33156 (NESTED_FUNC_ATTR) [! i386]: Defined.
33157
33158 2003-11-17 Marco Gerards <metgerards@student.han.nl>
33159
33160 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
33161 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
33162 (pupa_emu_SOURCES): New variable.
33163 (pupa_emu_LDFLAGS): Likewise.
33164 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
33165 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
33166 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
33167 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
33168 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
33169 (pupa_jmp_buf): New typedef.
33170 (pupa_setjmp) [PUPA_UTIL]: New macro.
33171 (pupa_longjmp) [PUPA_UTIL]: Likewise.
33172 * include/pupa/term.h (struct pupa_term): New member `refresh'.
33173 (pupa_refresh): New prototype.
33174 * include/pupa/util/getroot.h: New file.
33175 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
33176 it.
33177 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
33178 (pupa_rescue_cmd_cat): Likewise.
33179 (pupa_rescue_cmd_ls): Likewise.
33180 (pupa_rescue_cmd_testload): Likewise.
33181 (pupa_rescue_cmd_lsmod): Likewise.
33182 * normal/cmdline.c (pupa_cmdline_get): Likewise.
33183 * normal/menu.c (run_menu): Likewise.
33184 * kern/term.c (pupa_cls): Likewise.
33185 (pupa_refresh): New function.
33186 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
33187 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
33188 * util/console.c: New file.
33189
33190 * util/i386/pc/getroot.c: New file.
33191 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
33192 (pupa_putchar): New function.
33193 (pupa_refresh): Likewise.
33194 (xgetcwd): Function moved to ...
33195 (strip_extra_slashes): Likewise.
33196 (get_prefix): Likewise.
33197 * util/i386/pc/getroot.c: ... here.
33198 (find_root_device): Function moved and renamed to...
33199 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
33200 Changed all callers.
33201 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
33202 and renamed to...
33203 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
33204 Changed all callers.
33205 * util/misc.c (pupa_memalign): New function.
33206 (pupa_mm_init_region): Likewise.
33207 (pupa_register_exported_symbols): Likewise.
33208 (pupa_putchar): Function removed.
33209 * util/pupa-emu.c: New file.
33210
33211 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
33212
33213 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
33214 (_multiboot_mod_SOURCES): New variable.
33215 (_multiboot_mod_CFLAGS): Likewise.
33216 * loader/i386/pc/multiboot.c: New file.
33217 * include/pupa/i386/pc/multiboot.h: Likewise.
33218 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
33219 (pupa_multiboot_real_boot): New function.
33220 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
33221 (pupa_multiboot_real_boot): New prototype.
33222 (pupa_rescue_cmd_multiboot): Likewise
33223 (pupa_rescue_cmd_module): Likewise.
33224
33225 * kern/loader.c (pupa_loader_set): Continue when
33226 pupa_loader_unload_func() fails.
33227 (pupa_loader_unset): New function.
33228 * include/pupa/loader.h (pupa_loader_unset): New prototype.
33229
33230 * kern/misc.c (pupa_stpcpy): New function.
33231 * include/pupa/misc.h (pupa_stpcpy): New prototype.
33232
33233 2003-11-12 Marco Gerards <metgerards@student.han.nl>
33234
33235 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
33236 for available extensions.
33237
33238 * include/pupa/i386/pc/time.h: New file.
33239 * kern/disk.c: Include <pupa/machine/time.h>.
33240 (PUPA_CACHE_TIMEOUT): New macro.
33241 (pupa_last_time): New variable.
33242 (pupa_disk_open): Flush the cache when there was a timeout.
33243 (pupa_disk_close): Reset the timer.
33244 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
33245 pupa_currticks.
33246 * util/misc.c: Include <sys/times.h>
33247 (pupa_get_rtc): New function.
33248
33249 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
33250
33251 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
33252 as blocks.
33253 (pupa_ext2_get_file_block): Use blocks member.
33254
33255 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
33256 first block. Return -1 instead of pupa_errno on error.
33257
33258 2003-10-27 Marco Gerards <metgerards@student.han.nl>
33259
33260 * README: In the pupa-mkimage example use _chain instead of chain
33261 and ext2 instead of fat.
33262 * TODO: Replace ext2fs with jfs as an example. Add an item for
33263 adding journal playback for ext2fs.
33264 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
33265 (pkgdata_MODULES): Added ext2.mod.
33266 (ext2_mod_SOURCES): New variable.
33267 (ext2_mod_CFLAGS): Likewise.
33268 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
33269 * include/pupa/misc.h (pupa_strncpy): New prototype.
33270 (pupa_strcat): Likewise.
33271 (pupa_strncmp): Likewise.
33272 * kern/misc.c (pupa_strcat): Enable function.
33273 (pupa_strncpy): New function.
33274 (pupa_strncmp): Likewise.
33275 * fs/ext2.c: New file.
33276
33277 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
33278 when the read failed before retrying.
33279 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
33280 (_FILE_OFFSET_BITS): Likewise.
33281 * configure.ac: Added AC_SYS_LARGEFILE.
33282
33283 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
33284
33285 * genmk.rb (PModule#rule): Make sure to get only symbol names
33286 from the output of nm.
33287 Reported by Robert Millan <rmh.grub@aybabtu.com>.
33288
33289 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
33290
33291 I forgot to check in these changes for a long time. This adds
33292 incomplete support for VGA console, and this is still very
33293 buggy. Also, a lot of consideration is required for I18N,
33294 UNICODE, and VGA font issues. Therefore, assume that this is
33295 such that "better than nothing".
33296
33297 * font/manager.c: New file.
33298 * include/pupa/font.h: Likewise.
33299 * include/pupa/i386/pc/vga.h: Likewise.
33300 * term/i386/pc/vga.c: Likewise.
33301 * util/unifont2pff.rb: Likewise.
33302
33303 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
33304 (pkgdata_MODULES): Added vga.mod and font.mod.
33305 (vga_mod_SOURCES): New variables.
33306 (vga_mod_CFLAGS): Likewise.
33307 (font_mod_SOURCES): Likewise.
33308 (font_mod_CFLAGS): Likewise.
33309
33310 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
33311
33312 * include/pupa/term.h: Include pupa/err.h.
33313 (struct pupa_term): Added init and fini.
33314 Changed the argument of putchar to pupa_uint32_t.
33315
33316 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
33317 (pupa_console_real_putchar): New prototype.
33318 (pupa_console_putchar): Removed.
33319 (pupa_console_checkkey): Exported.
33320 (pupa_console_getkey): Likewise.
33321
33322 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
33323 characters.
33324
33325 * kern/term.c (pupa_term_set_current): Rewritten.
33326 (pupa_putchar): Likewise.
33327 (pupa_putcode): New function.
33328
33329 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
33330 (pupa_console_real_putchar): ... this.
33331 (pupa_vga_set_mode): New function.
33332 (pupa_vga_get_font): Likewise.
33333
33334 * normal/command.c: Include pupa/term.h.
33335 (terminal_command): New function.
33336 (pupa_command_init): Register the command "terminal".
33337
33338 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
33339 (DISP_UP): Likewise.
33340 (DISP_RIGHT): Likewise.
33341 (DISP_DOWN): Likewise.
33342 (DISP_HLINE): Likewise.
33343 (DISP_VLINE): Likewise.
33344 (DISP_UL): Likewise.
33345 (DISP_UR): Likewise.
33346 (DISP_LL): Likewise.
33347 (DISP_LR): Likewise.
33348
33349 * term/i386/pc/console.c (pupa_console_putchar): New function.
33350
33351 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
33352
33353 * util/resolve.c (pupa_util_resolve_dependencies): BUG
33354 FIX. Reverse the path_list.
33355
33356 * include/pupa/normal.h: Export pupa_register_command and
33357 pupa_unregister_command.
33358
33359 * hello/hello.c (pupa_cmd_hello): New module.
33360 * conf/i386-pc.rmk: Added hello.mod.
33361
33362 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
33363
33364 * kern/i386/pc/lzo1x.S: New file.
33365
33366 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
33367 (compress_kernel): New variable.
33368 (generate_image): Heavily modified to support compressing a
33369 large part of the core image.
33370
33371 * util/misc.c (pupa_util_read_image): Fix a file descriptor
33372 leak.
33373 (pupa_util_load_image): New function.
33374
33375 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
33376 (pupa_compressed_size): New variable.
33377 (codestart): Enable Gate A20 here.
33378 Decompress the compressed part of the core image.
33379 Rearrange the code to put functions and variables which are
33380 required for initialization in the non-compressed part.
33381 Include lzo1x.S.
33382
33383 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
33384 here.
33385
33386 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
33387
33388 * include/pupa/i386/pc/kernel.h
33389 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
33390 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
33391 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
33392 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
33393 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
33394
33395 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
33396
33397 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
33398 (Utility#rule): Likewise.
33399
33400 * configure.ac: Check if LZO is available.
33401
33402 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
33403
33404 * include/pupa/normal.h: New file.
33405 * include/pupa/setjmp.h: Likewise.
33406 * include/pupa/i386/setjmp.h: Likewise.
33407 * normal/cmdline.c: Likewise.
33408 * normal/command.c: Likewise.
33409 * normal/main.c: Likewise.
33410 * normal/menu.c: Likewise.
33411 * normal/i386/setjmp.S: Likewise.
33412
33413 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
33414 (pupa_rescue_cmd_initrd): Likewise.
33415
33416 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
33417 Likewise.
33418
33419 * kern/i386/pc/startup.S (translation_table): New variable.
33420 (translate_keycode): New function.
33421 (pupa_console_getkey): Call translate_keycode.
33422
33423 * kern/rescue.c (attempt_normal_mode): New function.
33424 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
33425 it failed, print a message.
33426
33427 * kern/mm.c (pupa_real_malloc): Print more information when a
33428 free magic is broken.
33429 (pupa_free): If the first free header is not free actually, set
33430 it to P.
33431
33432 * kern/main.c (pupa_load_normal_mode): Just load the module
33433 "normal".
33434 (pupa_main): Don't print the message
33435 "Entering into rescue mode..." here.
33436
33437 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
33438 Declared.
33439 (pupa_rescue_cmd_initrd): Likewise.
33440 (pupa_rescue_cmd_initrd): Likewise.
33441
33442 * include/pupa/symbol.h (FUNCTION): Specify the type.
33443 (VARIABLE): Likewise.
33444
33445 * include/pupa/err.h (pupa_err_t): Added
33446 PUPA_ERR_UNKNOWN_COMMAND.
33447
33448 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
33449 (pupa_dl_get_prefix): Likewise.
33450
33451 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
33452 Added _chain.mod and _linux.mod instead of chain.mod and
33453 linux.mod.
33454 (chain_mod_SOURCES): Renamed to ...
33455 (_chain_mod_SOURCES): ... this.
33456 (chain_mod_CFLAGS): Renamed to ...
33457 (_chain_mod_CFLAGS): ... this.
33458 (linux_mod_SOURCES): Renamed to ...
33459 (_linux_mod_SOURCES): ... this.
33460 (linux_mod_CFLAGS): Renamed to ...
33461 (_linux_mod_CFLAGS): ... this.
33462 (normal_mod_SOURCES): New variable.
33463 (normal_mod_CFLAGS): Likewise.
33464 (normal_mod_ASFLAGS): Likewise.
33465
33466 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
33467
33468 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
33469 possible.
33470
33471 * kern/dl.c (pupa_dl_ref): Refer depending modules
33472 recursively.
33473 (pupa_dl_unref): Unrefer depending modules recursively.
33474 Don't call pupa_dl_unload implicitly, because PUPA can crash if
33475 a module is unloaded before one depending on that module is
33476 unloaded.
33477 (pupa_dl_unload): Unload depending modules explicitly,
33478 if possible.
33479
33480 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
33481
33482 * include/pupa/i386/pc/linux.h: New file.
33483 * loader/i386/pc/linux.c: Likewise.
33484
33485 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
33486 Removed.
33487 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
33488 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
33489 of PUPA_CHAINLOADER_BOOT_SECTOR.
33490
33491 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
33492 (pupa_linux_prot_size): New variable.
33493 (pupa_linux_tmp_addr): Likewise.
33494 (pupa_linux_real_addr): Likewise.
33495 (pupa_linux_boot_zimage): New function.
33496 (pupa_linux_boot_bzimage): Likewise.
33497
33498 * kern/i386/pc/init.c (struct mem_region): New structure.
33499 (MAX_REGIONS): New macro.
33500 (mem_regions): New variable.
33501 (num_regions): Likewise.
33502 (pupa_os_area_addr): Likewise.
33503 (pupa_os_area_size): Likewise.
33504 (pupa_lower_mem): Likewise.
33505 (pupa_upper_mem): Likewise.
33506 (add_mem_region): New function.
33507 (compact_mem_regions): Likewise.
33508 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
33509 the size of the conventional memory and that of so-called upper
33510 memory (before the first memory hole).
33511 Instead of adding each found region to free memory, use
33512 add_mem_region and add them after removing overlaps.
33513 Also, add only 1/4 of the upper memory to free memory. The rest
33514 is used for loading OS images. Maybe this is ad hoc, but this
33515 makes it much easier to relocate OS images when booting.
33516
33517 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
33518 (pupa_enter_rescue_mode): Don't register initrd and module.
33519
33520 * kern/mm.c: Include pupa/dl.h.
33521
33522 * kern/main.c: Include pupa/file.h and pupa/device.h.
33523
33524 * kern/loader.c (pupa_loader_load_module_func): Removed.
33525 (pupa_loader_load_module): Likewise.
33526
33527 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
33528 ``.o''.
33529
33530 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
33531 (pupa_linux_tmp_addr): Likewise.
33532 (pupa_linux_real_addr): Likewise.
33533 (pupa_linux_boot_zimage): Likewise.
33534 (pupa_linux_boot_bzimage): Likewise.
33535
33536 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
33537 (pupa_upper_mem): Likewise.
33538 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
33539 module is too dangerous.
33540
33541 * include/pupa/loader.h (pupa_os_area_addr): Declared.
33542 (pupa_os_area_size): Likewise.
33543 (pupa_loader_set): Remove the first argument. Loader doesn't
33544 manage modules or initrd any longer.
33545 (pupa_loader_load_module): Removed.
33546
33547 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
33548 (linux_mod_SOURCES): New variable.
33549 (linux_mod_CFLAGS): Likewise.
33550
33551 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
33552
33553 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
33554 the length of a blocklist correctly.
33555
33556 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
33557 Use ioctl only if the OS file is a block device.
33558 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
33559 not very useful for normal files.
33560
33561 * kern/main.c (pupa_set_root_dev): New function.
33562 (pupa_load_normal_mode): Likewise.
33563 (pupa_main): Call those above.
33564
33565 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
33566 pupa_uint16_t.
33567
33568 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
33569
33570 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
33571
33572 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
33573 (setup): Configure the installed partition information and the
33574 dl prefix.
33575
33576 * loader/i386/pc/chainloader.c (my_mod): New variable.
33577 (pupa_chainloader_unload): New function.
33578 (pupa_rescue_cmd_chainloader): Refer itself.
33579 (PUPA_MOD_INIT): Save its own module in MY_MOD.
33580
33581 * kern/i386/pc/startup.S (install_partition): Removed.
33582 (version_string): Likewise.
33583 (config_file): Likewise.
33584 (pupa_install_dos_part): New variable.
33585 (pupa_install_bsd_part): Likewise.
33586 (pupa_prefix): Likewise.
33587 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
33588
33589 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
33590 and pupa/misc.h.
33591 (make_install_device): New function.
33592 (pupa_machine_init): Set the dl prefix.
33593
33594 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
33595 (buf): Renamed to ...
33596 (linebuf): ... this.
33597 (pupa_rescue_cmd_prefix): New function.
33598 (pupa_rescue_cmd_insmod): Likewise.
33599 (pupa_rescue_cmd_rmmod): Likewise.
33600 (pupa_rescue_cmd_lsmod): Likewise.
33601 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
33602 rmmod and lsmod.
33603
33604 * kern/mm.c (pupa_memalign): If failed even after invalidating
33605 disk caches, unload unneeded modules and retry.
33606
33607 * kern/misc.c (pupa_memmove): New function.
33608 (pupa_memcpy): Removed.
33609 (pupa_strcpy): New function.
33610 (pupa_itoa): Made static.
33611
33612 * kern/dl.c (pupa_dl_iterate): New function.
33613 (pupa_dl_ref): Likewise.
33614 (pupa_dl_unref): Likewise.
33615 (pupa_dl_unload): Return if succeeded or not.
33616 (pupa_dl_unload_unneeded): New function.
33617 (pupa_dl_unload_all): Likewise.
33618 (pupa_dl_init): Renamed to ...
33619 (pupa_dl_set_prefix): ... this.
33620 (pupa_dl_get_prefix): New function.
33621
33622 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
33623 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
33624 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
33625 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
33626 (pupa_install_dos_part): Declared.
33627 (pupa_install_bsd_part): Likewise.
33628 (pupa_prefix): Likewise.
33629 (pupa_boot_drive): Likewise.
33630
33631 * include/pupa/types.h: Fix a typo.
33632
33633 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
33634 pupa_memmove.
33635 (pupa_memmove): Declared.
33636 (pupa_strcpy): Likewise.
33637
33638 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
33639 pupa_mod_init takes one argument, its own module.
33640 (pupa_dl_unload_unneeded): Declared.
33641 (pupa_dl_unload_all): Likewise.
33642 (pupa_dl_ref): Likewise.
33643 (pupa_dl_unref): Likewise.
33644 (pupa_dl_iterate): Likewise.
33645 (pupa_dl_init): Renamed to ...
33646 (pupa_dl_set_prefix): ... this.
33647 (pupa_dl_get_prefix): Declared.
33648
33649 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
33650 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
33651 unloaded.
33652 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
33653 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
33654
33655 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
33656 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
33657
33658 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
33659
33660 * util/i386/pc/pupa-setup.c (setup): Define the internal
33661 function find_first_partition_start at the top level, because GCC
33662 3.0.x cannot compile internal functions in deeper scopes
33663 correctly.
33664 (find_root_device): Use lstat instead of stat.
33665 Don't follow symbolic links.
33666 Fix the path-constructing code.
33667
33668 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
33669 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
33670 by a BLKGETSIZE ioctl first, because block devices don't fill
33671 the member st_mode of the structure stat on Linux.
33672 [__linux__] (linux_find_partition): Use a temporary buffer
33673 REAL_DEV for the working space. Copy it to DEV before returning.
33674 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
33675 buffer cache consistent.
33676 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
33677 strncmp. The previous value was merely wrong.
33678 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
33679
33680 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
33681 FAT size is 12. The previous value was merely wrong.
33682
33683 * kern/main.c (pupa_main): Don't split the starting message from
33684 newlines.
33685
33686 * kern/term.c (pupa_putchar): Put CR after LF instead of before
33687 LF, because BIOS goes crazy about character attributes in this
33688 case.
33689
33690 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
33691
33692 * include/i386/pc/util/biosdisk.h: New file.
33693 * util/i386/pc/biosdisk.c: Likewise.
33694 * util/i386/pc/pupa-setup.c: Likewise.
33695
33696 * Makefile.in (INCLUDE_DISTFILES): Added
33697 include/pupa/i386/pc/util/biosdisk.h.
33698 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
33699 directory util/i386/pc.
33700 (install-local): Added a rule for sbin_UTILITIES.
33701 (uninstall): Likewise.
33702
33703 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
33704
33705 * util/misc.c (xrealloc): New function.
33706 (pupa_malloc): Likewise.
33707 (pupa_free): Likewise.
33708 (pupa_realloc): Likewise.
33709 (pupa_stop): Likewise.
33710 (pupa_putchar): Likewise.
33711
33712 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
33713
33714 * include/pupa/util/misc.h (xrealloc): Declared.
33715
33716 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
33717 macro.
33718 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
33719 (PUPA_BOOT_MACHINE_BPB_END): ... this.
33720
33721 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
33722 [PUPA_UTIL] (pupa_fat_fini): Likewise.
33723
33724 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
33725 way should be implemented.
33726 [PUPA_UTIL] (pupa_fat_fini): Likewise.
33727
33728 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
33729 the size of NAME for safety.
33730 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
33731 0x88.
33732
33733 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
33734 (pupa_setup_SOURCES): Likewise.
33735
33736 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
33737
33738 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
33739
33740 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
33741 bunch of pushl's from pusha, because this destroys the return
33742 value.
33743
33744 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
33745
33746 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
33747 This means that any missing prototypes could be fatal. Also, you
33748 must take care when writing assembly code. See the comments at
33749 the beginning of startup.S, for more details.
33750
33751 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
33752 compilation mechanism.
33753 (pupa_chainloader_real_boot): Likewise.
33754 (pupa_biosdisk_rw_int13_extensions): Likewise.
33755 (pupa_biosdisk_rw_standard): Likewise.
33756 (pupa_biosdisk_check_int13_extensions): Likewise.
33757 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
33758 (pupa_biosdisk_get_diskinfo_standard): Likewise.
33759 (pupa_get_memsize): Likewise.
33760 (pupa_get_mmap_entry): Likewise.
33761 (pupa_console_putchar): Likewise.
33762 (pupa_console_setcursor): Likewise.
33763 (pupa_getrtsecs): Use pushl instead of push.
33764
33765 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
33766 memory instead of the stack for a mmap entry, because some
33767 BIOSes may ignore the maximum size and overflow.
33768
33769 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
33770
33771 * genmk.rb (PModule#rule): Compile automatically generated
33772 sources with module-specific CFLAGS as well as other sources.
33773
33774 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
33775
33776 * configure.ac: Check ld.
33777 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
33778 respectively, before checking endianness and sizes.
33779
33780 * Makefile.in (LD): New variable.
33781
33782 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
33783
33784 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
33785
33786 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
33787
33788 * Changelog: New file.
33789