]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Merge ZFS.
[grub2.git] / ChangeLog
1 2010-12-01 Robert Millan <rmh@gnu.org>
2
3 * grub-core/fs/zfs/zfs.c: New file.
4 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
5 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
6 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
7 * grub-core/fs/zfs/zfsinfo.c: Likewise.
8
9 * include/grub/zfs/dmu.h: Likewise.
10 * include/grub/zfs/dmu_objset.h: Likewise.
11 * include/grub/zfs/dnode.h: Likewise.
12 * include/grub/zfs/dsl_dataset.h: Likewise.
13 * include/grub/zfs/dsl_dir.h: Likewise.
14 * include/grub/zfs/sa_impl.h: Likewise.
15 * include/grub/zfs/spa.h: Likewise.
16 * include/grub/zfs/uberblock_impl.h: Likewise.
17 * include/grub/zfs/vdev_impl.h: Likewise.
18 * include/grub/zfs/zap_impl.h: Likewise.
19 * include/grub/zfs/zap_leaf.h: Likewise.
20 * include/grub/zfs/zfs.h: Likewise.
21 * include/grub/zfs/zfs_acl.h: Likewise.
22 * include/grub/zfs/zfs_znode.h: Likewise.
23 * include/grub/zfs/zil.h: Likewise.
24 * include/grub/zfs/zio.h: Likewise.
25 * include/grub/zfs/zio_checksum.h: Likewise.
26
27 * Makefile.util.def: Build ZFS into libgrubmods.
28 * grub-core/Makefile.core.def: Build zfs.mod.
29
30 2010-11-30 Szymon Janc <szymon@janc.net.pl>
31
32 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
33 variable.
34 * grub-core/commands/wildcard.c (match_files): Likewise.
35
36 2010-11-30 Robert Millan <rmh@gnu.org>
37
38 * grub-core/loader/i386/bsd.c
39 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
40 whether kernel is loaded using grub_loader_is_loaded(), rather
41 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
42 certain error conditions.
43
44 2010-11-30 Robert Millan <rmh@gnu.org>
45
46 * grub-core/commands/echo.c: Include `<grub/term.h>'.
47 (grub_cmd_echo): Call grub_refresh() after printing a message.
48
49 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
50
51 Avoid using tricks for initialising endian variables.
52
53 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
54 Make const.
55 (GRUB_MOD_INIT): Don't byte-swap.
56 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
57 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
58 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
59 (grub_swap_bytes32_compile_time): Likewise.
60 (grub_cpu_to_le32_compile_time): Likewise.
61 (grub_cpu_to_le16_compile_time): Likewise.
62
63 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
64
65 * util/grub-setup.c (setup): Stop recommending --force. People who
66 understand the dangers of blocklists are able to find this option
67 anyway and the ones who don't shouldn't use it anyway.
68
69 2010-11-26 Robert Millan <rmh@gnu.org>
70
71 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
72 Update all users.
73
74 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
75
76 Fix LVM-on-RAID probing.
77
78 * util/grub-probe.c (probe): Remember which disk was detected as
79 RAID (perhaps an LVM physical volume). Use that disk's raidname
80 rather than that of the top-level disk.
81
82 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
83
84 Fix cmdline argument quotes for setparams command of menuentry
85 definitions.
86
87 * grub-core/commands/menuentry.c (setparams_prefix): Use single
88 quotes for arguments.
89 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
90 grub_strchrsub function instead.
91
92 * include/grub/misc.h (grub_strchrsub): New function.
93
94 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
95
96 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
97 effort by skipping "." and ".." entries up-front.
98 Suggested by: Michael Lazarev.
99
100 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
101
102 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
103 ldflags to ldadd, to fix link line ordering.
104 (none_decompress): Likewise.
105
106 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
107
108 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
109 platforms.
110 (grub-emu-lite): Remove kern/emu/cache.S.
111
112 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
113
114 * util/deviceiter.c (compare_devices): If the by-id link for a
115 device couldn't be resolved, fall back to sorting by the by-id link
116 rather than segfaulting.
117 Reported and tested by: Daniel Mierswa.
118
119 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
120
121 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
122 ldflags, to fix link line ordering.
123
124 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
125
126 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
127 linkers are picky about this.
128
129 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
130
131 * grub-core/Makefile.am (command.lst): Adjust sed expression
132 ordering so that extended and priority commands aren't treated as
133 ordinary commands.
134
135 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
136
137 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
138 Remove byte-swapping function calls, which are not valid in
139 structure initialisers.
140 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
141 non-const.
142 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
143 grub_gpt_partition_type_bios_boot.
144
145 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
146
147 Fix test program build on GNU/kFreeBSD.
148
149 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
150 $(LIBNVPAIR)' library dependencies.
151
152 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
153
154 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
155
156 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
157
158 * util/grub-install.in: Remove excessive quoting that broke
159 installations to RAID devices.
160
161 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
162
163 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
164 bootloader version instead of 0.
165
166 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
167
168 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
169 warning.
170
171 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
172
173 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
174 retrieve the metadat sector if size isn't known.
175 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
176
177 2010-11-18 Robert Millan <rmh@gnu.org>
178
179 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
180 with grub_memcmp().
181
182 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
183
184 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
185 arrow.
186 Reported by: Jordan Uggla.
187
188 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
189
190 Make better UTF compliant.
191
192 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
193 sequences as incorrect.
194 (grub_is_valid_utf8): Likewise.
195 (grub_utf8_to_ucs4): Likewise.
196 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
197 (grub_ucs4_to_utf8_alloc): Likewise.
198 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
199
200 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
201
202 Make legacy_source behave like source.
203
204 * grub-core/commands/legacycfg.c (legacy_file): Don't call
205 grub_show_menu.
206 (grub_cmd_legacy_source): Call grub_show_menu if needed.
207
208 2010-11-16 Colin Watson <cjwatson@debian.org>
209
210 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
211 (-Wunused implies -Wunused-parameter, but not vice versa).
212
213 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
214
215 * configure.ac: Make error messages less confusing by testing for
216 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
217 accepted, but produces a diagnostic if something else is wrong).
218
219 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
220
221 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
222 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
223 (now unused).
224 (grub_keyboard_controller_init)
225 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
226 read the initial state since controller isn't inited yet.
227
228 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
229
230 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
231 allocate_regbeg may need to create new chunk header.
232
233 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
234
235 Fix quoting in legacy parser.
236
237 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
238 single quotes.
239 (grub_legacy_parse): Likewise.
240 Reported by: Jordan Uggla.
241 Tested by: Jordan Uggla.
242
243 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
244
245 Don't add -lgcc on i386 and x86_64.
246
247 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
248 * conf/Makefile.common (LDADD_KERNEL): Likewise.
249 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
250
251 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
252
253 * configure.ac: Add -Wno-trampolines when supported.
254
255 2010-11-14 Modestas Vainius <modax@debian.org>
256
257 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
258 fakeraid.
259
260 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
261
262 Add generic logical block size support for UDF.
263
264 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
265 (GRUB_UDF_BLKSZ): Removed.
266 (struct grub_udf_data): New field "lbshift" to hold the logical block
267 size of the file system in log2 format. All users updated.
268 (sblocklist): Change type to unsigned.
269 (grub_udf_mount): Change type of "sblklist" to unsigned.
270 Move AVDP search before VRS recognition, because the latter requires
271 knowledge of the logical block size, which is detected during the
272 former.
273 Detect and validate logical block size during AVDP search, adding
274 support for block sizes 512, 1024 and 4096.
275 Make VRS recognition independent of block size.
276
277 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
278
279 Properly handle deleted files on UDF.
280
281 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
282 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
283 set.
284
285 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
286
287 Support reading files larger than 2 GiB.
288
289 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
290 "offset" to grub_off_t.
291 (grub_udf_read_file): Likewise for parameter "pos".
292
293 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
294
295 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
296 unavailable.
297 (Simple configuration): Refer to Changes from GRUB Legacy about
298 save_env availability.
299
300 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
301
302 * util/grub-install.in: Ignore empty partition table detection
303 instead of trying to include part_ module.
304
305 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
306
307 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
308 LVM on RAID support.
309
310 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
311
312 Properly define WORDS_BIGENDIAN in wrapped environments.
313
314 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
315 definition.
316 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
317
318 Reported by: Manoel Rebelo Abranches.
319 Tested by: Manoel Rebelo Abranches.
320
321 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
322
323 * util/grub-mkconfig.in: Fix quoting.
324
325 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
326
327 Support big ext2 files.
328
329 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
330 (grub_ext2_read_block): Support triple indirect blocks.
331 (grub_ext2_read_file): Use 64-bit types and read size_high.
332 (grub_ext2_open): Read size_high.
333 Reported by: Ximin Luo.
334 Tested by: Manoel Rebelo Abranches.
335
336 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
337
338 * util/grub-install.in: Handle filenames containing spaces.
339 Reported by: Jordan Uggla.
340 Tested by: Jordan Uggla.
341
342 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
343
344 * util/grub-mkconfig.in (grub_script_check): New variable.
345 Use grub_script_check instead of grub-script-check.
346 Reported by: Barry Jackson.
347
348 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
349
350 * docs/grub.texi (menu): Correct the order.
351 Reported by: D. Hugh Redelmeier.
352
353 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
354
355 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
356 jump.
357
358 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
359
360 * include/grub/elfload.h (grub_elf32_size): New parameter.
361 All users updated.
362 Return maximum segments alignment.
363 (grub_elf64_size): Likewise.
364 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
365 Return maximum segments alignment.
366 (grub_elf64_size): Likewise.
367 * grub-core/loader/powerpc/ieee1275/linux.c:
368 (grub_linux_claimmap_iterate): New function. Uses the
369 "available" property in the "memory" node for memory allocation
370 for kernel in the PowerPC loader.
371 (grub_linux_load32): Correctly find linux entry point offset.
372 (grub_linux_load64): Likewise.
373
374 2010-11-07 Robert Millan <rmh@gnu.org>
375
376 On mips-yeeloong, build with -march=loongson2f when this flag is
377 available (GCC >= 4.4).
378 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
379 `-march=mips3'.
380 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
381 or otherwise add -march=mips3.
382
383 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
384
385 Suppress shell expansion on echo '*' and echo "*" like cases.
386 Reported by: Jordan Uggla.
387
388 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
389 string arguments before shell expansion.
390 * tests/grub_cmd_echo.in: New testcases.
391
392 2010-11-07 Robert Millan <rmh@gnu.org>
393
394 * conf/mips-qemu-mips.rmk: Remove stale file from previous
395 transition.
396
397 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
398
399 * grub-core/kern/emu/hostdisk.c
400 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
401
402 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
403
404 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
405 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
406 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
407
408 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
409
410 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
411
412 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
413
414 * util/grub-install.in: Replace useless recomendation to pass
415 --modules with a recomendation to report a bug.
416
417 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
418
419 Properly register serial terminfo.
420 Reported by: Jordan Uggla
421
422 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
423 const.
424 (grub_serial_terminfo_output_template): Likewise.
425 (grub_cmd_serial): Register "serial" with terminfo.
426 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
427 grub_serial_terminfo_output.
428
429 2010-11-05 Robert Millan <rmh@gnu.org>
430
431 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
432 needed).
433
434 2010-11-05 Robert Millan <rmh@gnu.org>
435
436 On Yeeloong, pass machine type information to Linux.
437
438 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
439 (LOONGSON_MACHTYPE): New macro, set to
440 "machtype=lemote-yeeloong-2f-8.9inches".
441 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
442 additional argument to Linux.
443
444 2010-11-04 Robert Millan <rmh@gnu.org>
445
446 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
447 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
448 (its SATA disks are detected as slaveless IDE master drives on
449 kFreeBSD).
450 Reported by Carsten Aulbert.
451
452 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
453
454 * util/bin2h.c (main): Fix spelling error in generated output.
455
456 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
457
458 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
459
460 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
461
462 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
463 vga= option is supplied.
464
465 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
466
467 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
468 * util/grub.d/10_kfreebsd.in: Likewise.
469 * util/grub.d/10_linux.in: Likewise.
470 * util/grub.d/20_linux_xen.in: Likewise.
471
472 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
473
474 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
475 argument as an argument to no-argument option.
476
477 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
478
479 * util/grub.d/10_linux.in: Add missing load_video with explicit
480 GRUB_GFXPAYLOAD_LINUX.
481
482 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
483
484 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
485
486 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
487
488 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
489 elements with invlid index.
490 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
491 * grub-core/disk/raid.c (insert_array): Automatically reallocate
492 members.
493 * include/grub/raid.h (grub_raid_member): New struct.
494 (grub_raid_array): Transform devices and start_sector into usage of
495 grub_raid_member. All users updated
496 (allocated_devs): New member.
497
498 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
499
500 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
501 is modified
502
503 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
504
505 NetBSD build fix for getline function conflict from gnulib.
506
507 * Makefile.util.def (libgrubkern.a): New library for grub kernel
508 components that depend on gnulib headers.
509 (libgrubmods.a): Renamed from earlier libgrub.a.
510 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
511
512 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
513
514 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
515 install rather than creating a broken install.
516
517 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
518
519 * util/grub-setup.c (argp): Remove misleading example of installing to
520 a partition.
521
522 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
523
524 * util/grub-setup.c (setup): Clarify the error message.
525
526 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
527
528 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
529
530 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
531
532 * grub-core/kern/emu/misc.c
533 (grub_make_system_path_relative_to_its_root)
534 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
535
536 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
537
538 * grub-core/kern/emu/misc.c
539 (grub_make_system_path_relative_to_its_root): Revert r2882.
540
541 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
542
543 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
544 useless field head. All users updated.
545 (free_subchunk): Correct handling of IN_REGION subchunk.
546
547 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
548
549 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
550 (Supported kernels): Likewise.
551
552 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
553
554 Make mktemp invocations portable.
555
556 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
557 exit if mktemp fails.
558 * tests/grub_script_blockarg.in: Likewise.
559 * tests/partmap_test.in: Likewise.
560 * tests/util/grub-shell-tester.in: Likewise.
561 * tests/util/grub-shell.in: Likewise.
562 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
563 * Makefile.am: Likewise, and chain shell commands with `&&'
564 instead of ';'.
565 * util/grub-mkrescue.in: Use the same explicit template as above, and
566 exit if mktemp fails.
567
568 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
569
570 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
571 Linux kernel, reported by Dennis Schridde.
572
573 2010-10-17 Szymon Janc <szymon@janc.net.pl>
574
575 * grub-core/normal/auth.c (grub_auth_check_authentication):
576 Set-but-not-used variable removed.
577
578 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
579
580 * docs/grub.texi (GNU/Linux): Document APM unavailability with
581 32-bit linux protocol.
582
583 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
584
585 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
586 cursor shape for sanity.
587
588 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
589
590 * docs/grub.texi (Installation): Document buggy BIOS install.
591
592 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
593
594 * docs/grub.texi (Installation): Indent.
595
596 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
597
598 * util/grub-setup.c (setup): New parameter allow_floppy.
599 (arguments): New member allow_floppy.
600 (argp_parser): Handle --allow-floppy.
601 (main): Pass allow_floppy.
602 * util/grub-install.in: New option --allow-floppy passed though to
603 grub-setup.
604
605 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
606
607 * util/grub-install.in: Handle partitionless disks.
608
609 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
610
611 * util/grub-setup.c (setup): Don't clean blocklists before readability
612 verfification.
613
614 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
615
616 * docs/grub.texi (Installation): Document embedding zone. Remove
617 obsolete grub-install example.
618
619 2010-10-16 Szymon Janc <szymon@janc.net.pl>
620
621 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
622 Set-but-not-used variable ifdef'ed.
623 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
624 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
625 variable removed.
626 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
627 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
628 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
629 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
630 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
631 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
632 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
633 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
634 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
635 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
636 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
637 Likewise.
638
639 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
640
641 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
642 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
643 enum value.
644
645 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
646
647 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
648 synonym to _S5_. Needed for some DSDTs.
649
650 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
651
652 Userspace ACPI parser debugging.
653
654 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
655 headers and add relevant defines. Don't include standard headers.
656 (main) [GRUB_DSDT_TEST]: New function.
657 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
658 Don't declare functions.
659
660 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
661
662 Remove dead grub_efi_mm_fini.
663
664 * grub-core/kern/efi/mm.c (allocated_page): Removed.
665 (ALLOCATED_PAGES_SIZE): Likewise.
666 (MAX_ALLOCATED_PAGES): Likewise.
667 (allocated_pages): Likewise.
668 (grub_efi_allocate_pages): Don't record allocated pages.
669 (grub_efi_free_pages): Likewise.
670 (grub_efi_mm_init): Likewise.
671 (grub_efi_mm_fini): Removed.
672
673 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
674
675 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
676 (grub_efi_mm_init): Take into account the memory map size increase.
677
678 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
679
680 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
681 (serial_hw_put): Wait based on real time rather than port reads. Don't
682 roken ports.
683 * include/grub/serial.h (grub_serial_port): New field broken.
684
685 2010-10-16 Robert Millan <rmh@gnu.org>
686
687 * grub-core/kern/emu/misc.c
688 (grub_make_system_path_relative_to_its_root): Fix premature return
689 when processing non-root ZFS filesystems.
690 Reported by Sergio Talens-Oliag.
691
692 2010-10-15 Robert Millan <rmh@gnu.org>
693
694 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
695 guarantee compressed ones are processed first.
696
697 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
698
699 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
700 grub_efiemu_autocore.
701
702 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
703
704 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
705 rather than 0x1b.
706 (grub_console_getkey): Use correct jae opcode rather than ja.
707
708 2010-10-12 Robert Millan <rmh@gnu.org>
709
710 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
711 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
712 variable. All references updated.
713
714 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
715
716 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
717
718 Correctly distinguish mdraid flavours.
719
720 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
721 (insert_array): New argument raid.
722 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
723 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
724 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
725
726 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
727
728 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
729 handling of special keys.
730
731 2010-10-02 Aleš Nesrsta <starous@volny.cz>
732
733 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
734 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
735
736 2010-10-02 Aleš Nesrsta <starous@volny.cz>
737
738 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
739 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
740 users updated.
741 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
742 Use right endpoint when querying descriptor.
743
744 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
745
746 Clear out 0x80 color bit on EFI.
747 Tested by: decoder
748 Reported by: decoder and meta tech.
749
750 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
751 (grub_console_setcolorstate): Clear out 0x80 bit.
752 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
753 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
754 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
755
756 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
757
758 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
759 Set to "auto".
760
761 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
762
763 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
764 mo_file after freeing.
765
766 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
767
768 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
769
770 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
771
772 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
773 flags.
774
775 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
776
777 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
778 usage.
779
780 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
781
782 Put terminfo into core on ieee1275 and yeeloong (needed for console).
783
784 * gentpl.py: New groups terminfoinkernel and terminfomodule.
785 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
786 and terminfo.h when needed.
787 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
788 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
789 (terminfo): Enable only on terminfokernel.
790 (extcmd): Likewise.
791 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
792 * include/grub/lib/arg.h: Likewise.
793 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
794 incorrect usage of ->.
795
796 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
797
798 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
799 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
800
801 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
802
803 Fix coreboot compilation.
804
805 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
806 Take VBE info into account even if only text is supported.
807 (fill_vbe_info): Take into account the case when only VGA text
808 is supported.
809 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
810 on coreboot, multiboot and qemu.
811
812 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
813
814 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
815 debug messages.
816 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
817
818 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
819
820 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
821 parameters.
822
823 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
824
825 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
826 if they were BSD-style.
827
828 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
829
830 * grub-core/boot/i386/pc/lnxboot.S: Replace
831 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
832 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
833
834 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
835
836 Write embedding zone using Reed-Solomon.
837
838 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
839 * grub-core/Makefile.am (rs_decoder.S): New target.
840 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
841 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
842 (multiboot): Move to RS part.
843 (post_reed_solomon): New label.
844 (grub_boot_drive): Move to non-RS part since it's modified in memory
845 on boot.
846 Include rs_decoder.S.
847 * grub-core/lib/reed_solomon.c: New file.
848 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
849 New definition.
850 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
851 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
852 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
853 * include/grub/partition.h (grub_partition_map): Change prototype of
854 embed to allow returning additional sectors.
855 * include/grub/reed_solomon.h: New file.
856 * util/grub-setup.c (setup): Handle Reed-Solomon.
857
858 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
859
860 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
861 i386 and x86-64 definedness tests.
862
863 2010-09-27 Yves Blusseau <blusseau@zetam.org>
864
865 Fix generation of kernel_syms.lst
866
867 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
868 ASM_PREFIX
869
870 2010-09-26 Robert Millan <rmh@gnu.org>
871
872 Support degraded ZFS arrays in "grub-probe -t device" resolution.
873
874 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
875 the pool is an array of devices, iterate through it and return the
876 first device that passes a stat() test (instead of blindly returning
877 the first one).
878
879 2010-09-26 Robert Millan <rmh@gnu.org>
880
881 Build fixes for GNU/kFreeBSD.
882
883 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
884 to programs that require ZFS conversion.
885 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
886 kernels that don't have FLOPPY_MAJOR.
887
888 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
889
890 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
891
892 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
893
894 Fix grub-emu build.
895
896 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
897 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
898 mdraid09 and mdraid1x.
899
900 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
901
902 Re-enable grub-extras.
903
904 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
905 avoid confusing Automake. Run autogen only twice, once for the top
906 level and once for grub-core. Add Makefile.util.def and
907 Makefile.core.def from extra modules to the appropriate autogen
908 invocations. If Makefile.common exists in an extra module, include
909 it in both Makefile.util.am and grub-core/Makefile.core.am;
910 similarly, include any Makefile.util.common file in Makefile.util.am
911 and any Makefile.core.common file in grub-core/Makefile.core.am.
912 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
913 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
914 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
915 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
916
917 * gentpl.py (gvar_add): Turn GVARS into a set.
918 (global_variable_initializers): Sort global variables on output.
919 (vars_init): New function.
920 (first_time): Likewise.
921 (library): Ensure that non-global variable initialisations are
922 emitted before the first time we emit code for a library block.
923 Append to variables rather than setting them. Only emit
924 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
925 each conditional path.
926 (program): installdir() emits an Autogen macro, so must be passed to
927 var_add rather than gvar_add.
928 (data): Likewise.
929 (script): Likewise.
930 (rules): New function, centralising handling for different target
931 types. Set up Guile association lists for first_time and vars_init,
932 and send most output to a diversion so that variable initialisations
933 can be emitted first.
934 (module_rules): Use new rules function.
935 (kernel_rules): Likewise.
936 (image_rules): Likewise.
937 (library_rules): Likewise.
938 (program_rules): Likewise.
939 (script_rules): Likewise.
940 (data_rules): Likewise.
941
942 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
943
944 * .bzrignore: Add contrib and grub-core/contrib. Remove
945 grub-core/Makefile.gcry.am.
946
947 2010-09-24 Yves Blusseau <blusseau@zetam.org>
948
949 * grub-core/lib/LzFind.c: Add missing include.
950 * grub-core/lib/LzmaEnc.c: Likewise.
951 * grub-core/script/lexer.c: Likewise.
952 * grub-core/script/yylex.l: Likewise.
953 * util/grub-macho2img.c: Likewise.
954 * util/grub-menulst2cfg.c: Likewise.
955 * util/grub-mklayout.c: Likewise.
956 * util/grub-mkpasswd-pbkdf2.c
957 * util/grub-mkrelpath.c: Likewise.
958 * util/resolve.c: Likewise.
959
960 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
961
962 * Makefile.util.def (example_unit_test): Add
963 grub-core/gnulib/libgnu.a.
964
965 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
966
967 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
968
969 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
970
971 Support xz compression on yeeloong.
972
973 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
974 * configure.ac: Check for LZMA.
975 * grub-core/Makefile.core.def (xz_decompress): New target.
976 (none_decompress): Likewise.
977 * grub-core/boot/decompressor/minilib.c: New file.
978 * grub-core/boot/decompressor/none.c: Likewise.
979 * grub-core/boot/decompressor/xz.c: Likewise.
980 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
981 * grub-core/kern/mips/cache_flush.S: Likewise.
982 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
983 * grub-core/kern/mips/startup.S: Move first stage to ...
984 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
985 nomacro.
986 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
987 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
988 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
989 Allocate statically.
990 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
991 Allocate statically or use scratch. Don't check CRC32.
992 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
993 Allocate statically. Don't check CRC32.
994 * include/grub/decompressor.h: New file.
995 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
996 Removed.
997 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
998 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
999 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
1000 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
1001 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
1002 * util/grub-mkimage.c (grub_compression_t): New type.
1003 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
1004 (image_target_desc): New field default_compression.
1005 (image_targets): Adjust yeeloong targets.
1006 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
1007 (compress_kernel): New parameter comp.
1008 (generate_image): Likewise. Handle new compression case.
1009 (options): New option --compression
1010 (help): Likewise.
1011 (main): Handle new option.
1012
1013 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
1014
1015 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
1016
1017 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
1018
1019 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
1020 typo in __i386__ conditional.
1021
1022 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1023
1024 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
1025 include.
1026
1027 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1028
1029 Implement EFI and ACPI multiboot2 extensions.
1030
1031 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
1032 new tags as supported.
1033 (acpiv2_size): New function.
1034 (grub_multiboot_get_mbi_size): Take new tags into account.
1035 (grub_multiboot_make_mbi): Add new tags.
1036 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
1037
1038 2010-09-21 Aleš Nesrsta <starous@volny.cz>
1039
1040 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
1041 Added missing configuration of USB device.
1042
1043 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1044
1045 * grub-core/normal/menu_entry.c (run): Make sure we always return
1046 a value.
1047
1048 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1049
1050 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
1051 NumberOfPages is UINT64 according to the UEFI specification, not
1052 UINTN. Fix printf format.
1053
1054 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1055
1056 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
1057 `err' to grub_usb_err_t.
1058 Reported and tested by: KESHAV P.R.
1059
1060 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1061
1062 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
1063 tpart non-const, so that we can assign to it. (Since this is a
1064 typedef, the constness refers to the pointer rather than what it
1065 points to.)
1066
1067 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1068
1069 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
1070 $(top_srcdir)/grub-core/gnulib as well as
1071 $(top_builddir)/grub-core/gnulib.
1072 Reported by: KESHAV P.R.
1073
1074 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1075
1076 * util/grub-install.in: Fix the bootloader ID option to be
1077 consistently --bootloader-id, not --bootloader_id.
1078 Reported by: KESHAV P.R.
1079
1080 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1081
1082 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
1083 check hash checksum." consistently translatable.
1084
1085 2010-09-21 Yves Blusseau <blusseau@zetam.org>
1086
1087 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
1088 $(top_builddir).
1089
1090 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1091
1092 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
1093 (GRUB_MOD_INIT): Register sha1sum command.
1094 (GRUB_MOD_FINI): Unregister sha1sum command.
1095
1096 2010-09-21 Yves Blusseau <blusseau@zetam.org>
1097
1098 Keep boot and grub directory names in sync with utils scripts
1099
1100 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
1101 * config.h.in: Add previous macros.
1102 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
1103 * util/grub-install.in: Use $bootdir and $grubdir variables.
1104
1105 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1106
1107 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
1108 convert partition names to disk names if the new `convert' parameter
1109 is set.
1110 (grub_util_biosdisk_get_grub_dev): If opening the disk device
1111 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
1112 disk in its own right. This can happen with Xen disk images.
1113
1114 2010-09-21 Yves Blusseau <blusseau@zetam.org>
1115
1116 * util/grub-editenv.c: Update strings to avoid warnings when generating
1117 grub.pot file.
1118 * util/grub-setup.c: Likewise.
1119
1120 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
1121
1122 * configure.ac: Change version to 1.99~beta0.
1123
1124 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
1125
1126 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
1127 Add BADRAM.
1128 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
1129 Likewise.
1130 * include/multiboot.h: Resynced with specification.
1131 * include/multiboot2.h: Likewise.
1132
1133 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
1134
1135 Fix po directory handling.
1136
1137 * configure.ac: Create po/Makefile.in rather than po/Makefile.
1138 * grub-core/gnulib/Makefile.am: Import gettext module.
1139 * m4/gnulib-cache.m4: Likewise.
1140 * m4/gnulib-comp.m4: Likewise.
1141 * m4/gettext.m4: New file, from gnulib.
1142 * m4/glibc2.m4: Likewise.
1143 * m4/iconv.m4: Likewise.
1144 * m4/intdiv0.m4: Likewise.
1145 * m4/intl.m4: Likewise.
1146 * m4/intldir.m4: Likewise.
1147 * m4/intlmacosx.m4: Likewise.
1148 * m4/intmax.m4: Likewise.
1149 * m4/inttypes-pri.m4: Likewise.
1150 * m4/lcmessage.m4: Likewise.
1151 * m4/lib-ld.m4: Likewise.
1152 * m4/lib-link.m4: Likewise.
1153 * m4/lib-prefix.m4: Likewise.
1154 * m4/lock.m4: Likewise.
1155 * m4/nls.m4: Likewise.
1156 * m4/po.m4: Likewise.
1157 * m4/printf-posix.m4: Likewise.
1158 * m4/progtest.m4: Likewise.
1159 * m4/threadlib.m4: Likewise.
1160 * m4/uintmax_t.m4: Likewise.
1161 * m4/visibility.m4: Likewise.
1162 * po/Makefile.am: Remove.
1163 * po/Makefile.in.in: New file, from gettext.
1164 ($(DOMAIN).pot-update): Support POTFILES-shell.
1165 * po/Makevars: New file.
1166 * po/POTFILES-shell: Rename to ...
1167 * po/POTFILES-shell.in: ... this. Update.
1168 * po/POTFILES: Rename to ...
1169 * po/POTFILES.in: ... this. Update.
1170 * po/Rules-quot: New file, from gettext.
1171 * po/boldquot.sed: Likewise.
1172 * po/en@boldquot.header: Likewise.
1173 * po/en@quot.header: Likewise.
1174 * po/insert-header.sin: Likewise.
1175 * po/quot.sed: Likewise.
1176 * po/remove-potcdate.sin: Likewise.
1177
1178 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1179
1180 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
1181
1182 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1183
1184 * util/grub.d/20_linux_xen.in: Use submenus.
1185
1186 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1187
1188 Support submenus.
1189
1190 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
1191 parameter submenu. All users updated.
1192 * grub-core/normal/main.c (free_menu): Rename to ...
1193 (grub_normal_free_menu): ... this. Made global.
1194 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
1195 if requested.
1196 * grub-core/normal/menu_entry.c (screen): New field submenu.
1197 (make_screen): Set submenu.
1198 (run): Open new context if requested.
1199 * include/grub/menu.h (grub_menu_entry): New field submenu.
1200 * include/grub/normal.h (grub_normal_free_menu): New proto.
1201
1202 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1203
1204 Menu entries extractor.
1205
1206 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
1207 variants.
1208 (GRUB_MOD_INIT): Register new variants.
1209 (GRUB_MOD_FINI): Unregister new variants.
1210 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
1211 into grub_cmd_legacy_source.
1212 (grub_cmd_legacy_source): Implement extractor variants.
1213 (GRUB_MOD_INIT): Register new variants.
1214 (GRUB_MOD_FINI): Unregister new variants.
1215 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
1216 as an extractor.
1217 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
1218 search as an extractor.
1219 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
1220 test as an extractor.
1221 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
1222 as an extractor.
1223 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
1224 (grub_env_new_context): New function.
1225 (grub_env_context_open): Likewise.
1226 (grub_env_extractor_open): Likewise.
1227 (grub_env_extractor_close): Likewise.
1228 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
1229 grub_extractor_level.
1230 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
1231 * include/grub/env.h (grub_env_extractor_open): New proto.
1232 (grub_env_extractor_close): Likewise.
1233 * include/grub/normal.h (grub_extractor_level): New external variable.
1234
1235 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1236
1237 Make cutmem accept a region specification.
1238 Suggested by: Samuel Thibault
1239
1240 * grub-core/mmap/mmap.c (parsemem): New function.
1241 (grub_cmd_cutmem): Handle new arguments.
1242
1243 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1244
1245 New command cutmem.
1246
1247 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
1248 (GRUB_MOD_INIT): Register new command.
1249 (GRUB_MOD_FINI): Unregister new command.
1250
1251 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1252
1253 Support some annoying BSD and Minix subpartitions.
1254
1255 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
1256 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
1257 Properly handle concatenation.
1258 * grub-core/kern/device.c (grub_device_iterate): Likewise.
1259 * grub-core/normal/completion.c (iterate_partition): Likewise.
1260 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
1261 contain partition. All users updated.
1262 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
1263 struct.
1264 (grub_openbsdlabel_partition_map): Likewise.
1265 (bsdlabel_partition_map_iterate): Rename to ..
1266 (iterate_real): ... this. New arguments sector, freebsd and pmap.
1267 (bsdlabel_partition_map_iterate): New function.
1268 (netopenbsdlabel_partition_map_iterate): Likewise.
1269 (netbsdlabel_partition_map_iterate): Likewise.
1270 (openbsdlabel_partition_map_iterate): Likewise.
1271 (GRUB_MOD_INIT): Register new partmaps.
1272 (GRUB_MOD_FINI): Unregister new partmaps.
1273 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
1274 (grub_partition_msdos_iterate): ... this. All users updated.
1275 Don't support embedding other than in a minix partition.
1276 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
1277 proto.
1278 * include/grub/partition.h (grub_partition): New field msdostype.
1279 * util/grub-install.in: Handle openbsd and netbsd types being in
1280 part_bsd module.
1281
1282 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1283
1284 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
1285
1286 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
1287 * grub-core/Makefile.core.def (mdraid): Renamed to ...
1288 (mdraid09): ... this.
1289 (mdraid1x): New module.
1290 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
1291 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
1292
1293 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1294
1295 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
1296 vsprintf.
1297
1298 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1299
1300 * grub-core/commands/efi/lsefimmap.c: Correct header.
1301 * NEWS: Update.
1302
1303 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1304
1305 * util/grub-editenv.c (argp_parser): Don't pass translated strings
1306 as printf format strings; the translations might contain '%' which
1307 could cause a crash.
1308 (main): Likewise.
1309 * util/grub-fstest.c (argp_parser): Likewise.
1310 * util/grub-setup.c (argp_parser): Likewise.
1311 (main): Likewise.
1312
1313 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1314
1315 Use argp in grub-fstest.
1316
1317 * util/grub-fstest.c: Don't include getopt.h.
1318 Include argp.h.
1319 (root): New variable.
1320 (args_count): Likewise.
1321 (nparm): Likewise.
1322 (num_disks): Likewise.
1323 (images): Likewise.
1324 (cmd): Likewise.
1325 (debug_str): Likewise.
1326 (args): Likewise.
1327 (options): Transformed to argp.
1328 (usage): Removed.
1329 (main): Split argument parsing into ...
1330 (argp_parser): ... this. Changed to argp format.
1331 (argp): New variable.
1332 (main): Use argp_parse.
1333
1334 2010-09-20 Tristan Gingold <gingold@free.fr>
1335 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
1336 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1337
1338 * grub-core/commands/efi/lsefimmap.c: New file.
1339 * grub-core/Makefile.core.def (lsefimmap): New module.
1340 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
1341
1342 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1343
1344 Pause the execution (10s max) if any errors are displayed so the user
1345 has a chance to see them.
1346
1347 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
1348 (grub_print_error): Increment grub_err_printed_errors.
1349 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
1350 execution if any errors were displayed.
1351 (show_menu): Remove old code for pause.
1352 * grub-core/normal/menu_entry.c (run): Likewise.
1353 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
1354 users updated.
1355 (grub_normal_get_char_counter): Likewise.
1356 * include/grub/err.h (grub_err_printed_errors): New external variable.
1357 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
1358
1359 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1360
1361 Support multiboot VBE info.
1362
1363 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
1364 Take VBE info into account.
1365 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
1366 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
1367 Call fill_vbe_info when appropriate.
1368 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
1369 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
1370 as supported.
1371 (grub_multiboot_get_mbi_size): Take new tags into account.
1372 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
1373 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
1374 Call fill_vbe_tag when appropriate.
1375 (grub_multiboot_make_mbi): Properly align tags.
1376 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
1377 function.
1378 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
1379 proto.
1380 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
1381
1382 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1383
1384 Suport manual terminal geometry specification.
1385
1386 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
1387 Save state in grub_ofconsole_terminfo_output.
1388 (grub_ofconsole_term): Use grub_terminfo_getwh.
1389 (grub_ofconsole_getwh): Removed.
1390 * grub-core/term/serial.c (grub_serial_getwh): Removed.
1391 (grub_serial_term): Use grub_terminfo_getwh.
1392 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
1393 (options): New struct.
1394 (OPTION_*): New enum.
1395 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
1396 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
1397 width and height.
1398 (grub_terminfo_getwh): New proto.
1399 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
1400
1401 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1402
1403 Handle legacy "terminal" command.
1404
1405 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
1406 and FLAG_TERMINAL.
1407 (legacy_commands): Add terminal and title.
1408 (grub_legacy_parse): Handle terminal. Simplify title handling.
1409
1410 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1411
1412 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
1413 parameters overflow.
1414
1415 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1416
1417 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
1418 widthspec.h.
1419
1420 * docs/grub.texi (Shell-like scripting): Document `!'.
1421 (Network): Simplify using new i386-pc-pxe format. Mention
1422 grub-mknetdir.
1423
1424 * NEWS: Update.
1425
1426 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1427
1428 * Makefile.am (SUBDIRS): Restore "."; it's important to force
1429 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
1430 when needed.
1431
1432 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1433
1434 * grub-core/commands/efi/lsefisystab.c: Correct header.
1435 * grub-core/commands/efi/lssal.c: Likewise.
1436 * grub-core/commands/testload.c: Likewise.
1437
1438 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1439
1440 * util/grub-mkrescue.in: Add explicit root argument to --set to
1441 prevent the UUID being interpreted as an argument to --set (matches
1442 previous change to prepare_grub_to_access_device).
1443
1444 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
1445
1446 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
1447 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
1448 the verbosity of later #ifs.
1449 (find_partition_start): Define this function on FreeBSD too.
1450 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
1451 function.
1452 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
1453 on FreeBSD.
1454
1455 2010-09-20 Yves Blusseau <blusseau@zetam.org>
1456
1457 * util/grub-editenv.c: Use argp instead of getopt.
1458
1459 2010-09-20 Yves Blusseau <blusseau@zetam.org>
1460
1461 * util/grub-setup.c: Use argp instead of getopt.
1462
1463 2010-09-20 Yves Blusseau <blusseau@zetam.org>
1464
1465 Use gnulib-tool to create gnulib source files.
1466
1467 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
1468 grub-core/gnulib directories
1469 * .bzignore: Add **/.deps and autogenerated gnulib files
1470 * configure.ac: Assign auxiliary directory to build-aux, add invocation
1471 of gnulib macros, add grub-core/gnulib/Makefile
1472 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
1473 include m4 directory to aclocal.
1474 * Makefile.util.def: Remove direct compilation of gnulib source files
1475 and use the new grub-core/gnulib/libgnu.a.
1476 * build-aux/config.rpath: move config.rpath from top directory to
1477 build-aux
1478 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
1479 in gnulib headers
1480 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
1481 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
1482 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
1483 header.
1484 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
1485 string.
1486
1487 2010-09-20 Yves Blusseau <blusseau@zetam.org>
1488
1489 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
1490 grub-core/genmod.sh and grub-core/gensyminfo.sh
1491
1492 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
1493
1494 Add a test for echo command options.
1495
1496 * tests/grub_cmd_echo.in: New test.
1497 * Makefile.util.def: Rules for new test.
1498
1499 2010-09-20 Szymon Janc <szymon@janc.net.pl>
1500
1501 Remove crc.mod and move crc command to hashsum.mod.
1502 Remove lib/crc.c - users updated to use gcrypt implementation.
1503
1504 * grub-core/commands/crc.c: Removed.
1505 * grub-core/Makefile.core.def (crc): Module removed.
1506 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
1507 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
1508 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
1509 * grub-core/lib/crc.c: Removed.
1510 * include/grub/lib/crc.h: Removed.
1511 * Makefile.util.def (crc): Remove lib/crc.c
1512 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
1513 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
1514 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
1515 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
1516 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
1517 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
1518
1519 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1520
1521 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
1522
1523 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1524
1525 Split config.h for util and core.
1526
1527 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
1528 (ADDR32): Likewise.
1529 (DATA32): Likewise.
1530 (BSS_START_SYMBOL): Likewise.
1531 (END_SYMBOL): Likewise.
1532 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
1533 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
1534 * config.h.in: New file.
1535 * configure.ac: Use config-util.h as config define file.
1536 Rename MACHINE into GRUB_MACHINE. All users updated.
1537 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
1538 updated.
1539 (NESTED_FUNC_ATTR): Likewise.
1540 Substitue new variables.
1541 (COND_HAVE_ASM_USCORE): New conditional.
1542 * grub-core/Makefile.am (ASM_PREFIX): New variable.
1543 (kernel_syms.lst): Use ASM_PREFIX.
1544 * grub-core/kern/emu/console.c: Include config-util.h.
1545 * grub-core/kern/emu/misc.c: Likewise.
1546 * grub-core/kern/emu/mm.c: Likewise.
1547 * include/grub/emu/misc.h: Likewise.
1548 * include/grub/libgcc.h: Likewise.
1549
1550 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1551
1552 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
1553 constants usage.
1554 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
1555 Fix GRUB_TERM_KEY_* constants usage.
1556 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
1557
1558 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1559
1560 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
1561 print pointer.
1562 * grub-core/bus/usb/uhci.c: Remove empty define.
1563 (grub_uhci_check_transfer): Add missing cast.
1564 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
1565 print pointer.
1566 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
1567 PRIuGRUB_SIZE.
1568 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
1569
1570 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1571
1572 * grub-core/Makefile.core.def (legacycfg): Add
1573 lib/i386/pc/vesa_modes_table.c on emu.
1574
1575 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
1576
1577 Reduce number of temporary files generated by build system.
1578
1579 * grub-core/gencmdlist.sh: Removed.
1580 * grub-core/genfslist.sh: Removed.
1581 * grub-core/genhandlerlist.sh: Removed.
1582 * grub-core/genmodsrc.sh: Removed.
1583 * grub-core/genpartmaplist.sh: Removed.
1584 * grub-core/genparttoollist.sh: Removed.
1585 * grub-core/gentermiinallist.sh: Removed.
1586 * grub-core/genvideolist.sh: Removed.
1587
1588 * grub-core/genmod.sh.in: New file.
1589 * grub-core/gensyminfo.sh.in: New file.
1590
1591 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
1592 * conf/Makefile.extra-dist: Update with new files.
1593 * gentpl.py: Remove rules related to unnecessary temporary files.
1594 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
1595 and und-* files.
1596 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
1597 genmod.sh scripts.
1598 * grub-core/bus/usb/uhci.c: Remove empty #define.
1599 * grub-core/genmoddep.awk: Updated with new syminfo format.
1600 * util/bash-completion.d/Makefile.am: Add config.log to
1601 CLEANFILES.
1602
1603 2010-09-19 Yves Blusseau <blusseau@zetam.org>
1604
1605 * Makefile.util.def: Add forgotten $(LIBINTL) library.
1606
1607 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
1608
1609 * util/grub-mkconfig.in: Check the config script for syntax errors
1610 before saving.
1611
1612 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
1613 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1614
1615 * Makefile.util.def (grub-install): Use util/grub-install.in on all
1616 platforms.
1617 * util/grub-install.in: Add EFI and IEEE1275 support.
1618 * util/i386/efi/grub-install.in: Removed.
1619 * util/ieee1275/grub-install.in: Likewise.
1620
1621 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1622
1623 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
1624 (grub_cmd_cmosclean): Likewise.
1625 (GRUB_MOD_INIT): Register command cmosclean.
1626 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
1627 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
1628
1629 2010-09-18 Carles Pina i Estany <carles@pina.cat>
1630 2010-09-18 Aleš Nesrsta <starous@volny.cz>
1631 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1632
1633 Add keyboard layouts support.
1634
1635 * Makefile.util.def (grub-mklayout): New file.
1636 (grub-kbdcomp): New script.
1637 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
1638 Add keyboard_layouts.h.
1639 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
1640 commands/boot.c on yeeloong.
1641 (keylayouts): New module.
1642 * grub-core/bus/usb/ohci.c
1643 * grub-core/bus/usb/uhci.c
1644 * grub-core/bus/usb/usbhub.c (rescan): New variable.
1645 (grub_usb_add_hub): Poll interrupt pipe for device handling.
1646 (attach_root_port): Likewise.
1647 (poll_nonroot_hub): Likewise.
1648 (grub_usb_poll_devices): Likewise.
1649 (detach_device): Close transfer.
1650 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
1651 function.
1652 (grub_usb_bulk_setup_readwrite): Likewise.
1653 (grub_usb_bulk_finish_readwrite): Likewise.
1654 * grub-core/commands/keylayouts.c: New file.
1655 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
1656 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
1657 aliases.
1658 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
1659 support scancode 2.
1660 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
1661 * include/grub/keyboard_layouts.h: New file.
1662 * util/grub-mklayout.c: New file.
1663 * util/grub-kbdcomp.in: Likewise.
1664
1665 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1666
1667 Unify memory types.
1668
1669 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
1670 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
1671 types.
1672 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
1673 (grub_upper_mem): Likewise.
1674 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
1675 * include/grub/memory.h (grub_memory_type_t): New enum.
1676 All users updated.
1677
1678 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1679
1680 * grub-core/Makefile.core.def (lsapm): New module.
1681 * grub-core/commands/i386/pc/lsapm.c: New file.
1682 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
1683 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
1684 Likewise.
1685 * include/grub/i386/pc/apm.h: New file.
1686 * include/multiboot.h (multiboot_apm_info): New struct.
1687
1688 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1689
1690 GRUB-legacy configuration file support.
1691
1692 * Makefile.util.def (grub-menulst2cfg): New util.
1693 * docs/man/grub-menulst2cfg.h2m: New file.
1694 * grub-core/Makefile.core.def (legacycfg): New module.
1695 * grub-core/commands/legacycfg.c: New file.
1696 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
1697 (grub_normal_add_menu_entry): ... this.
1698 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
1699 (grub_normal_set_password): ...this.
1700 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
1701 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
1702 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
1703 * grub-core/lib/legacy_parse.c: New file.
1704 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
1705 * include/grub/i386/pc/vesa_modes_table.h: New file.
1706 * include/grub/legacy_parse.h: Likewise.
1707 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
1708 * util/grub-menulst2cfg.c: New file.
1709
1710 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
1711
1712 * grub-core/kern/emu/hostdisk.c
1713 (convert_system_partition_to_system_disk): Initialise node.
1714
1715 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
1716
1717 * grub-core/kern/emu/hostdisk.c
1718 (convert_system_partition_to_system_disk): Fix devmapper memory pool
1719 leak.
1720 Reported and based on patch by: Modestas Vainius.
1721
1722 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
1723
1724 Fix DM-RAID probing with recent versions of device-mapper udev
1725 rules.
1726
1727 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
1728 canonicalise device paths under /dev/mapper/.
1729 (convert_system_partition_to_system_disk): Compare the
1730 uncanonicalised path to /dev/mapper/ rather than the canonicalised
1731 path, since device nodes under /dev/mapper/ are often symlinks.
1732
1733 2010-09-17 Yves Blusseau <blusseau@zetam.org>
1734
1735 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
1736
1737 2010-09-16 Yves Blusseau <blusseau@zetam.org>
1738
1739 * configure.ac: Avoid some annoying error messages if freetype-config
1740 program is not found.
1741
1742 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
1743
1744 Support RAID on virtio devices, and others.
1745
1746 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
1747 Rename to ...
1748 [__MINGW32__] (grub_find_device): ... this.
1749 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
1750 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
1751 reasonable default if dir is NULL.
1752 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
1753 ...
1754 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
1755 (grub_guess_root_device): Update callers.
1756 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
1757
1758 * util/raid.c (grub_util_getdiskname): Remove.
1759 (grub_util_raid_getmembers): Use grub_find_device rather than
1760 grub_util_getdiskname.
1761
1762 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
1763
1764 * docs/grub.texi (serial): Remove obsolete comment about GRUB
1765 needing to be compiled with serial support.
1766 (ls): Indicate that multiple files are accepted.
1767 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
1768 indicate that multiple files are accepted.
1769
1770 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
1771
1772 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
1773 libgrub_a_init.c, and util/bash-completion.d/grub.
1774
1775 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
1776
1777 * util/grub-setup.c (setup): Fix incorrect container semantics.
1778
1779 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
1780
1781 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
1782 misusage.
1783 Reported by: J. Nick Terry
1784
1785 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
1786
1787 Move embedding routines to partmap sources files.
1788
1789 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
1790 [GRUB_UTIL]: New variable.
1791 (gpt_partition_map_iterate): Set part.parent.
1792 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
1793 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
1794 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
1795 New function.
1796 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
1797 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
1798 (grub_partition_map) [GRUB_UTIL]: New field embed.
1799 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
1800 (setup): Use ->embed.
1801
1802 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
1803
1804 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
1805 function.
1806 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
1807 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
1808
1809 2010-09-15 Yves Blusseau <blusseau@zetam.org>
1810
1811 Add function to get completions from usage.
1812
1813 * util/bash-completion.d/grub-completion.bash.in: Add function to get
1814 completions from usage. Use LC_ALL=C to get options properly.
1815
1816 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
1817
1818 * grub-core/gnulib/basename-lgpl.c: Imported.
1819 * grub-core/gnulib/basename.c: Likewise.
1820 * grub-core/gnulib/dirname-lgpl.c: Likewise.
1821 * grub-core/gnulib/dirname.c: Likewise.
1822 * grub-core/gnulib/dirname.h: Likewise.
1823 * grub-core/gnulib/stripslash.c: Likewise.
1824
1825 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
1826
1827 * grub-core/gnulib/error.c: Resynced.
1828 * grub-core/gnulib/getopt.c: Likewise.
1829 * grub-core/gnulib/getopt_int.h: Likewise.
1830 * grub-core/gnulib/regex.h: Likewise.
1831 * grub-core/gnulib/regex_internal.c: Likewise.
1832 * grub-core/gnulib/regex_internal.h: Likewise.
1833
1834 2010-09-15 Szymon Janc <szymon@janc.net.pl>
1835
1836 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
1837 CRC calculations and validity checks.
1838 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
1839 calculations.
1840
1841 2010-09-15 Szymon Janc <szymon@janc.net.pl>
1842
1843 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
1844
1845 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1846
1847 Fix incorrect echo options handling.
1848 Reported by: Yves Blusseau.
1849
1850 * include/grub/command.h (grub_command_flags_t): New flags
1851 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
1852 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
1853 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
1854
1855 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1856
1857 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
1858 users updated.
1859 (GRUB_COMMAND_FLAG_MENU): Likewise.
1860 (GRUB_COMMAND_FLAG_BOTH): Likewise.
1861 (GRUB_COMMAND_FLAG_TITLE): Removed.
1862 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
1863 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
1864 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
1865 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
1866 (grub_command_flags_t): New enum. All users updated.
1867
1868 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
1869
1870 Fix solaris compilation.
1871
1872 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
1873 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
1874 (grub-emu-list): Likewise.
1875
1876 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1877
1878 Remove deprecated root command.
1879
1880 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
1881 updated.
1882
1883 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1884
1885 * util/i386/pc/grub-setup.c: Merge this ...
1886 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
1887 * util/grub-setup.c: ... into this.
1888 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
1889 New struct.
1890
1891 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1892
1893 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
1894 possible.
1895
1896 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1897
1898 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
1899 allocate p.
1900
1901 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1902
1903 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
1904 explicit root argument to set to prevent UUID to be interpreted as
1905 argument to set.
1906
1907 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1908
1909 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
1910
1911 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1912
1913 Don't export grub_gate_a20.
1914
1915 * grub-core/kern/i386/pc/init.c: Remove leftovers.
1916 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
1917 to ...
1918 (grub_gate_a20): ... this. All users updated.
1919 * include/grub/i386/pc/init.h: Removed. All users updated.
1920
1921 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1922
1923 Create euro.pf2 which supports most European languages.
1924
1925 * Makefile.am (grubdata_DATA): Add euro.pf2.
1926 (euro.pf2): New target.
1927 (CLEANFILES): Add euro.pf2.
1928
1929 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
1930
1931 * configure.ac: Disable emu-usb by default to prevent inadvertent
1932 device takeover.
1933
1934 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1935
1936 Disable usbserial on grub-emu since our libusb code isn't good enough
1937 yet.
1938
1939 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
1940 (usbserial_pl2303): Likewise.
1941 (usbserial_ftdi): Likewise.
1942
1943 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1944
1945 * include/grub/disk.h (grub_disk): Remove has_partitions.
1946 All users updated.
1947 * disk/loopback.c (grub_loopback): Remove has_partitions.
1948 All users updated.
1949 (options): Remove partitions. All users updated.
1950 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
1951 * util/i386/pc/grub-setup.c (setup): copy partition table only when
1952 actual partition table is found.
1953
1954 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1955
1956 Remove readability checks (too many false negatives).
1957
1958 * util/grub-install.in: Remove readability checks.
1959 * util/grub-mkconfig.in: Likewise.
1960 * util/grub.d/10_hurd.in: Likewise.
1961 * util/grub.d/10_kfreebsd.in: Likewise.
1962 * util/grub.d/10_linux.in: Likewise.
1963 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
1964 way.
1965
1966 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1967
1968 Enable acpi shutdown on all ACPI platforms.
1969
1970 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
1971 on coreboo, multiboot and EFI.
1972 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
1973 (grub_acpi_halt): Likewise.
1974 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
1975 (grub_cmd_halt): Don't call grub_acpi_halt directly.
1976 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
1977 * grub-core/lib/i386/halt.c (grub_halt)
1978 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
1979
1980 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1981
1982 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
1983 context.
1984
1985 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1986
1987 * grub-core/video/efi_gop.c: Fix over-80-chars line.
1988 * grub-core/video/efi_uga.c: Likewise.
1989
1990 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 Filter devaliases and never open same device twice.
1993
1994 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
1995 (last_ihandle): Likewise.
1996 (ofdisk_hash_ent): New member shortest.
1997 (ofdisk_hash_add): Add canonical path too.
1998 (scan): New function.
1999 (grub_ofdisk_iterate): Iterate over hashed entries.
2000 (compute_dev_path): Don't add :0.
2001 (grub_ofdisk_open): Don't really open the disk.
2002 (grub_ofdisk_close): Avoid closing unrelated disk.
2003 (grub_ofdisk_read): Implement reopen logic.
2004 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
2005 New function.
2006 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
2007 New proto.
2008
2009 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2010
2011 Fix sparc64.
2012
2013 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
2014 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
2015 right address. Add sparc64_ieee1275_ldflags.
2016 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
2017 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
2018 to grub_host_to_target_addr
2019 (load_image): Likewise.
2020
2021 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2022
2023 * grub-core/normal/completion.c (complete_file): Handle device
2024 containing slash.
2025 Fix based on patch by Doug Nazar.
2026
2027 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2028
2029 grub-mknetdir script.
2030
2031 * Makefile.util.def (grub-mknetdir): New module.
2032 * tests/util/grub-shell.in: Support boot=net
2033 * util/grub-mknetdir.in: New file.
2034
2035 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2036
2037 videoinfo on non-vbe.
2038
2039 * grub-core/Makefile.core.def (vbeinfo): Removed.
2040 (vbetest): Removed.
2041 (videoinfo): New module.
2042 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
2043 * grub-core/commands/i386/pc/vbetest.c: Removed.
2044 * grub-core/commands/videoinfo.c: New file.
2045 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
2046 specification.
2047 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
2048 as vbetest.
2049 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
2050 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
2051 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
2052 mode_number. New parameter mode. All users updated.
2053 (grub_video_gop_iterate): New function.
2054 (grub_video_efi_gop): New member iterate.
2055 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
2056 (grub_vbe_set_video_mode): Remove setting useless fields.
2057 (vbe2videoinfo): New function.
2058 (grub_video_vbe_iterate): Likewise.
2059 (grub_video_vbe_setup): Use vbe2videoinfo.
2060 (grub_video_vbe_print_adapter_specific_info): New function.
2061 (grub_video_vbe_adapter): New fields iterate and
2062 print_adapter_specific_info.
2063 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
2064 All users updated.
2065 (grub_video_mode_info): New field mode_number.
2066 (grub_video_adapter): New fields iterate and
2067 print_adapter_specific_info.
2068
2069 2010-09-13 Tristan Gingold <gingold@free.fr>
2070 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
2071 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2072
2073 * grub-core/commands/efi/lsefisystab.c: New file.
2074 * grub-core/commands/efi/lssal.c: Likewise.
2075 * grub-core/Makefile.core.def (lsacpi): New module.
2076 (lsefisystab): Likewise.
2077 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
2078 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
2079 (grub_efi_sal_system_table): New struct.
2080 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
2081 (grub_efi_sal_system_table_memory_descriptor): Likewise.
2082 (grub_efi_sal_system_table_platform_features): Likewise.
2083 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
2084 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
2085 (grub_efi_sal_system_table_ap_wakeup): Likewise.
2086 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
2087
2088 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2089
2090 Support explicit user claim that a device is BIOS-visible.
2091
2092 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
2093 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
2094 * grub-core/kern/emu/hostdisk.c
2095 (convert_system_partition_to_system_disk): Support mdX.
2096 (find_system_device): New parameter add. All users updated.
2097 (grub_util_biosdisk_is_present): New function.
2098 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
2099 proto.
2100
2101 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2102
2103 Search hints support.
2104
2105 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
2106 All users updated.
2107
2108 2010-09-13 Yves Blusseau <blusseau@zetam.org>
2109
2110 Bash completion script for util commands
2111
2112 * Makefile.am: Add util/bash-completion.d directory
2113 * configure.ac: Likewise.
2114 * util/bash-completion.d/Makefile.am: New file.
2115 * util/bash-completion.d/grub-completion.bash.in: Likewise.
2116
2117 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2118
2119 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
2120 (print_backlog): set backlog_ucs4 and backlog_glyphs.
2121 Reported by: Yves Blusseau.
2122
2123 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2124
2125 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
2126 partition size and offset.
2127
2128 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2129
2130 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
2131
2132 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2133
2134 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
2135
2136 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2137
2138 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
2139 (grub_xvasprintf): Likewise.
2140
2141 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2142
2143 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
2144
2145 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2146
2147 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
2148 args ending with NULL.
2149
2150 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2151
2152 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
2153 pointer.
2154
2155 2010-09-11 Szymon Janc <szymon@janc.net.pl>
2156
2157 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
2158
2159 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2160
2161 Shutdown using ACPI.
2162
2163 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
2164 * grub-core/commands/acpihalt.c: New file.
2165 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
2166 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
2167 (grub_acpi_halt): New proto.
2168 (GRUB_ACPI_SLP_EN): New const.
2169 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
2170 (GRUB_ACPI_OPCODE_*): New enum.
2171 (GRUB_ACPI_EXTOPCODE_*): Likewise.
2172
2173 2010-09-11 Tristan Gingold <gingold@free.fr>
2174 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
2175 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2176
2177 * commands/lsacpi.c: New file.
2178 * grub-core/Makefile.core.def (lsacpi): New module.
2179 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
2180 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
2181 (grub_acpi_madt_entry_header): New struct.
2182 (grub_acpi_madt): Likewise.
2183 (grub_acpi_madt_entry_interrupt_override): Likewise.
2184 (grub_acpi_madt_entry_sapic): Likewise.
2185 (grub_acpi_madt_entry_lsapic): Likewise.
2186 (grub_acpi_madt_entry_platform_int_source): Likewise.
2187 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
2188 (PRIuGRUB_UINT32_T): Likewise.
2189 (PRIxGRUB_UINT64_T): Likewise.
2190
2191 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2192
2193 Implement loading palette on ieee1275_fb.
2194
2195 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
2196 (have_setcolors): Likewise.
2197 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
2198 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
2199 (grub_video_ieee1275_set_palette): Implement.
2200
2201 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2202 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
2203
2204 * util/grub-install.in (grub_partition): New variable.
2205 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
2206 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
2207 Fixes a bug reported by Yves Blusseau.
2208
2209 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2210
2211 Fix emu on mipsel.
2212
2213 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
2214 =grub_cpu_flush_cache on all mips and not only yeeloong.
2215 * configure.ac (COND_mips): New conditional.
2216 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
2217 platforms.
2218 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
2219 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
2220 [GRUB_LINKER_HAVE_INIT]: New function.
2221 (grub_emu_post_init): Likewise.
2222 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
2223 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
2224 * include/grub/cache.h (_mips): Include mips/cache.h.
2225 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
2226 LVM and RAID prototypes.
2227 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
2228 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
2229 function.
2230
2231 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
2232
2233 * util/grub-install.in: Don't try to verify core.img until after
2234 running grub-mkimage to create it.
2235
2236 2010-09-10 Robert Millan <rmh@gnu.org>
2237
2238 * util/grub.d/10_hurd.in: Add misc readability checks.
2239 * util/grub.d/10_kfreebsd.in: Likewise.
2240 * util/grub.d/10_linux.in: Likewise.
2241
2242 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
2243
2244 * util/grub-install.in: ${imgext} won't be defined here until the
2245 install branch is merged. For the meantime, only verify core.img on
2246 i386-pc and sparc64-ieee1275 platforms.
2247
2248 2010-09-10 Robert Millan <rmh@gnu.org>
2249
2250 Solaris support in grub_find_zpool_from_dir(). Thanks
2251 Seth Goldberg for referring to getextmntent() facility.
2252
2253 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
2254 `sys/mkdev.h'.
2255 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
2256 `<sys/mnttab.h>'.
2257 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
2258 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
2259 method for finding zpool name.
2260
2261 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
2262
2263 grub-fstest needs the host and hostfs modules while other utilities
2264 actively require those modules to be absent, so grub-fstest needs
2265 its own initialisation and finalisation code.
2266
2267 * Makefile.am (grub_fstest.pp): New target.
2268 (grub_fstest_init.lst): Likewise.
2269 (grub_fstest_init.c): Likewise.
2270 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
2271
2272 2010-09-10 Robert Millan <rmh@gnu.org>
2273
2274 * configure.ac: Check for `struct statfs.f_fstypename' and
2275 `struct statfs.f_mntfromname'.
2276
2277 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
2278 kFreeBSD-specific code.
2279
2280 2010-09-10 Robert Millan <rmh@gnu.org>
2281
2282 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
2283 on ZFS. Now non-main filesystems are supported as / too.
2284
2285 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
2286
2287 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
2288 and grub-core/disk/host.c to ...
2289 (grub-fstest): ... here. Having the host disk implementation
2290 present confuses grub-probe and other utility programs.
2291
2292 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
2293 when writing to a file, not when writing to stdout.
2294
2295 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
2296
2297 * tests/partmap_test.in: New test for partitions.
2298 * Makefile.util.def: Rules for new test.
2299
2300 2010-09-09 Robert Millan <rmh@gnu.org>
2301
2302 * util/grub-probe.c (probe): Fix a pair of unhandled error
2303 conditions.
2304
2305 2010-09-09 Robert Millan <rmh@gnu.org>
2306
2307 Basic Btrfs support (detection and UUID).
2308
2309 * grub-core/fs/btrfs.c: New file.
2310 * Makefile.util.def (library): Register btrfs.c.
2311 * grub-core/Makefile.core.def: Likewise.
2312
2313 2010-09-08 Robert Millan <rmh@gnu.org>
2314
2315 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
2316 with (optional) parameters to specify device and relative path.
2317 * util/grub-install.in: Use is_path_readable_by_grub() to
2318 verify readability of a few critical files.
2319 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
2320 verify readability of grub.cfg.new.
2321
2322 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
2323
2324 Split minix.mod into minix.mod and minix2.mod.
2325
2326 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
2327 * grub-core/Makefile.core.def (minix2): New module.
2328 * grub-core/fs/minix.c: Use definitions instead of runtime version
2329 checking.
2330 * grub-core/fs/minix2.c: New file.
2331
2332 2010-09-08 Yves Blusseau <blusseau@zetam.org>
2333
2334 Add new --boot-directory option to replace --root-directory
2335
2336 * util/grub-install.in: Add new --boot-directory option
2337 * util/grub-reboot.in: Likewise.
2338 * util/grub-set-default.in: Likewise.
2339
2340 2010-09-08 Yves Blusseau <blusseau@zetam.org>
2341
2342 * util/grub-mkconfig.in: Use new variable.
2343
2344 2010-09-08 Yves Blusseau <blusseau@zetam.org>
2345
2346 * configure.ac: Define some useful variables.
2347
2348 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
2349
2350 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2351 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
2352 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
2353 Use terminfo and don't use cursor-on/cursor-off unless it's known
2354 to work.
2355 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
2356 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
2357
2358 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
2359
2360 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
2361 starts with "(,", fill the drive containing the loaded image in
2362 between those two characters, but expect that a full partition
2363 specification including partition map names will follow.
2364
2365 2010-09-08 Robert Millan <rmh@gnu.org>
2366
2367 * configure.ac: Remove `--enable-grub-fstest' option.
2368 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
2369
2370 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
2371 `grub-fstest' instead of `grub-probe' for readability verification.
2372 * util/grub-probe.c (probe): Remove readability verification kludge.
2373
2374 2010-09-08 Robert Millan <rmh@gnu.org>
2375
2376 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
2377 initializing `GRUB_FS'.
2378
2379 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
2380
2381 Not command (!) support to GRUB script.
2382
2383 * tests/grub_script_not.in: New test.
2384 * Makefile.util.def: Rules for new test.
2385
2386 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
2387 ! command as a special case.
2388 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
2389
2390 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
2391
2392 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
2393 grub_free.
2394
2395 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
2396
2397 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
2398
2399 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
2400
2401 * docs/grub.texi (Shell-like scripting): Documentation for break,
2402 continue, shift and return commands.
2403
2404 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
2405
2406 Rename CD-ROM to cd on BIOS.
2407
2408 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
2409 "cd".
2410 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
2411
2412 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2413
2414 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
2415 * util/grub-probe.c (main): Likewise.
2416 * util/i386/pc/grub-setup.c (main): Likewise.
2417 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
2418 Reported and debugged by: alexxy
2419
2420 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2421
2422 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
2423 diagnostic info.
2424
2425 2010-09-05 Jo Shields <directhex@apebox.org>
2426
2427 * util/grub.d/30_os-prober.in: Add missing classes.
2428
2429 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2430
2431 * docs/grub.texi (Theme file format): Document new position format.
2432
2433 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2434
2435 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
2436 a table. Use @code instead of @verbatim.
2437
2438 2010-09-05 Colin D Bennett <colin@gibibit.com>
2439
2440 Gfxmenu documentation.
2441
2442 * docs/grub.texi (Theme file format): New chapter.
2443
2444 2010-09-05 Szymon Janc <szymon@janc.net.pl>
2445
2446 * grub-core/Makefile.core.def (xzio): New module.
2447 * grub-core/io/xzio.c: New file.
2448 * grub-core/lib/xzembed/xz.h: New file (from xembed).
2449 * grub-core/lib/xzembed/xz_config.h: Likewise.
2450 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
2451 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
2452 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
2453 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
2454 * grub-core/lib/xzembed/xz_private.h: Likewise.
2455 * grub-core/lib/xzembed/xz_stream.h: Likewise.
2456 * include/grub/file.h (grub_file_filter_id): New compression filter
2457 GRUB_FILE_FILTER_XZIO.
2458
2459 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2460
2461 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
2462 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
2463 size.
2464
2465 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2466
2467 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
2468 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
2469
2470 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2471
2472 Uncompressed checksum support.
2473
2474 * grub-core/commands/hashsum.c (options): Add option --uncompress.
2475 (check_list): New parameter uncompress.
2476 (grub_cmd_hashsum): Handle --uncompress.
2477
2478 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2479
2480 Reintroduce testload.
2481
2482 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
2483 from here ...
2484 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
2485 (GRUB_MOD_INIT): New function.
2486 (GRUB_MOD_FINI): Likewise.
2487 * grub-core/Makefile.core.def (testload): New module.
2488
2489 2010-09-05 Szymon Janc <szymon@janc.net.pl>
2490
2491 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
2492 (uint8_t): New type.
2493 (uint16_t): Likewise.
2494 (uint32_t): Likewise.
2495 (uint64_t): Likewise.
2496
2497 2010-09-05 Szymon Janc <szymon@janc.net.pl>
2498
2499 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
2500
2501 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2502
2503 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
2504 Made static.
2505 (grub_gzfile_open): Removed. All users updated.
2506 (GRUB_MOD_INIT): New function.
2507 (GRUB_MOD_FINI): Likewise.
2508 * grub-core/kern/file.c (grub_file_filters_all): New variable.
2509 (grub_file_filters_enabled): Likewise.
2510 (grub_file_open): Handle filters.
2511 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
2512 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
2513 * include/grub/file.h (grub_file_filter_id_t): New type.
2514 (grub_file_filter_t): Likewise.
2515 (grub_file_filters_all): New extern variable.
2516 (grub_file_filters_enabled): Likewise.
2517 (grub_file_filter_register): New inline function.
2518 (grub_file_filter_unregister): Likewise.
2519 (grub_file_filter_disable): Likewise.
2520 (grub_file_filter_disable_compression): Likewise.
2521 * include/grub/gzio.h: Removed.
2522
2523 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2524
2525 Filename expansion support for wildcards in GRUB script.
2526
2527 * tests/grub_script_expansion.in: New test.
2528 * Makefile.util.def: Rule for new test.
2529
2530 * grub-core/commands/wildcard.c: New file, implements filename
2531 expansion support for GRUB script.
2532 * grub-core/Makefile.core.def: Rule update for regexp.mod.
2533 * grub-core/script/argv.c: Cosmetic changes.
2534 * grub-core/script/execute.c (grub_script_arglist_to_argv):
2535 Refactored to perform wildcard expansion on arguments.
2536 * include/grub/script_sh.h (grub_script_wildcard_translator): New
2537 struct.
2538
2539 * tests/util/grub-shell.in: Fix quoting for read input.
2540
2541 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2542
2543 Support for updating environment variables with matched substrings
2544 of regexp.
2545
2546 * tests/grub_cmd_regexp.in: New test.
2547 * Makefile.util.def: Rule for new test.
2548
2549 * grub-core/commands/regexp.c: New option -s to update environment
2550 variables with regexp matches.
2551
2552 2010-09-04 Szymon Janc <szymon@janc.net.pl>
2553
2554 * include/grub/file.h (grub_file): New member not_easly_seekable.
2555 (grub_file_seekable): New inline function.
2556 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
2557 easily seekable.
2558 (grub_gzio_open): Set not_easly_seekable.
2559 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
2560 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
2561
2562 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2563
2564 Support for options to appear multiple times on cmdline.
2565
2566 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
2567 * grub-core/commands/extcmd.c: Support for repeatable option.
2568 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
2569 repeatable option support.
2570
2571 Refactor menuentry into a regular command.
2572
2573 * grub-core/commands/menuentry.c: New file, menuentry command
2574 implementation.
2575 * grub-core/Makefile.core.def: Rule update for normal.mod.
2576 * grub-core/normal/main.c: Moved menuentry creation to
2577 grub-core/commands/menuentry.c.
2578 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
2579 (grub_menu_execute_entry_real): Removed.
2580 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
2581 function.
2582 (grub_script_execute_menuentry): Removed.
2583 * grub-core/script/parser.y (menuentry): Removed.
2584 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
2585 * grub-core/script/yylex.l (menuentry): Removed.
2586 * include/grub/menu.h (grub_menu_init): New prototype.
2587 (grub_menu_fini): New prototype.
2588 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
2589 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
2590 (grub_script_execute_sourcecode): New prototype.
2591
2592 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2593
2594 "return" command for GRUB script functions.
2595
2596 * tests/grub_script_return.in: New test.
2597 * Makefile.util.def: Rules for new test.
2598
2599 * grub-core/script/execute.c (grub_script_return): New function.
2600 * grub-core/script/main.c: Register/unregister return commaond.
2601 * include/grub/script_sh.h (grub_script_return): New prototype.
2602
2603 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2604
2605 "setparams" command to update positional parameters.
2606
2607 * tests/grub_script_setparams.in: New test.
2608 * Makefile.util.def: Rules for new test.
2609
2610 * grub-core/script/argv.c (grub_script_argv_make): New function.
2611 * grub-core/script/execute.c (replace_scope): New function.
2612 (grub_script_setparams): New function.
2613 * grub-core/script/lexer.c: Remove unused variables.
2614 * grub-core/script/main.c: Register/unregister setparams command.
2615 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
2616 (grub_script_setparams): New prototype.
2617
2618 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2619
2620 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
2621 grub_free order.
2622
2623 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2624
2625 Support for passing block of commands as an argument to extcmds.
2626
2627 * Makefile.util.def: Rules for new test.
2628 * tests/grub_script_blockarg.in: New test.
2629 * grub-core/tests/test_blockarg.c: New file, block argument
2630 command used in the test.
2631
2632 * include/grub/extcmd.h (grub_extcmd_context): New struct.
2633 (grub_register_extcmd_prio): New function prototype.
2634 (grub_extcmd_dispatcher): New function prototype.
2635 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
2636 type.
2637 * include/grub/script_sh.h (struct grub_script): New members
2638 `children', `next_siblings' and `refcnt' for block arguments and
2639 reference counting.
2640 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
2641 (grub_script_arg): New member `script' for block argument.
2642 (grub_script_argv): New member `script' for block argument.
2643 (grub_parser_param): New member `scripts' for block argument.
2644 (grub_script_mem_free): New extern function prototype.
2645 (grub_script_ref): New function prototype.
2646 (grub_script_unref): New function prototype.
2647
2648 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
2649 extcmd form to support block arguments.
2650 * grub-core/script/argv.c: Block arguments support.
2651 * grub-core/script/execute.c: Likewise.
2652 * grub-core/script/lexer.c: Likewise.
2653 * grub-core/script/main.c: Likewise.
2654 * grub-core/script/script.c: Likewise.
2655 * grub-core/script/parser.y: Likewise. New `block' and `block0'
2656 non-terminals.
2657
2658 * grub-core/commands/acpi.c: Update extcmd implementations with
2659 grub_extcmd_context_t.
2660 * grub-core/commands/cat.c: Likewise.
2661 * grub-core/commands/echo.c: Likewise.
2662 * grub-core/commands/extcmd.c: Likewise.
2663 * grub-core/commands/hashsum.c: Likewise.
2664 * grub-core/commands/hdparm.c: Likewise.
2665 * grub-core/commands/help.c: Likewise.
2666 * grub-core/commands/hexdump.c: Likewise.
2667 * grub-core/commands/i386/cpuid.c: Likewise.
2668 * grub-core/commands/i386/pc/drivemap.c: Likewise.
2669 * grub-core/commands/i386/pc/halt.c: Likewise.
2670 * grub-core/commands/i386/pc/sendkey.c: Likewise.
2671 * grub-core/commands/iorw.c: Likewise.
2672 * grub-core/commands/keystatus.c: Likewise.
2673 * grub-core/commands/loadenv.c: Likewise.
2674 * grub-core/commands/ls.c: Likewise.
2675 * grub-core/commands/lspci.c: Likewise.
2676 * grub-core/commands/memrw.c: Likewise.
2677 * grub-core/commands/probe.c: Likewise.
2678 * grub-core/commands/search_wrap.c: Likewise.
2679 * grub-core/commands/setpci.c: Likewise.
2680 * grub-core/commands/sleep.c: Likewise.
2681 * grub-core/disk/loopback.c: Likewise.
2682 * grub-core/hello/hello.c: Likewise.
2683 * grub-core/loader/i386/bsd.c: Likewise.
2684 * grub-core/loader/xnu.c: Likewise.
2685 * grub-core/term/gfxterm.c: Likewise.
2686 * grub-core/term/serial.c: Likewise.
2687 * grub-core/tests/lib/functional_test.c: Likewise.
2688
2689 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2690
2691 Multi-line quoted strings support.
2692
2693 * grub-core/script/lexer.c (append_newline): Removed.
2694 (grub_script_lexer_yywrap): Refactored.
2695 (grub_script_lexer_init): Refactored.
2696 * grub-core/script/yylex.l (yywrap): New function.
2697 (grub_lexer_resplit): New function.
2698 (grub_lexer_unput): New function.
2699 * include/grub/script_sh.h (grub_lexer_param): New members, unput
2700 and resplit.
2701 * tests/grub_script_echo1.in: Added few more testcases.
2702
2703 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
2704
2705 * grub-core/kern/misc.c: Don't add abort alias in utils.
2706 Reported by: echoline.
2707
2708 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
2709
2710 Add missing files into "make dist" tarball for other platforms.
2711
2712 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
2713 * conf/Makefile.common (dist_noinst_DATA): New variable.
2714 * conf/Makefile.extra-dist: Added missing make dist files.
2715 * grub-core/Makefile.core.def: Likewise.
2716
2717 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
2718
2719 Compress grub_prefix.
2720
2721 * grub-core/boot/i386/pc/lnxboot.S: Use
2722 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
2723 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
2724 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
2725 GRUB_MACHINE_PREFIX_END. All users updated.
2726 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
2727 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
2728 + 0x40.
2729 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
2730 * util/grub-mkimage.c (image_target_desc): Change data_end to
2731 prefix_end. All users updated.
2732
2733 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
2734
2735 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
2736 value.
2737 (grub_openbsd_boot): Likewise.
2738 (grub_netbsd_boot): Likewise.
2739 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
2740 (grub_xnu_boot): Likewise.
2741
2742 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
2743
2744 * configure.ac: Clean LIBS variable after tests.
2745
2746 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
2747
2748 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
2749
2750 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
2751
2752 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
2753 echo if libdevmapper will be used.
2754
2755 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
2756
2757 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
2758 constant for the same file.
2759
2760 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
2761
2762 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
2763
2764 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
2765
2766 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
2767 grub-core/*.pp.
2768
2769 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
2770
2771 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
2772 required by the boot protocol.
2773
2774 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
2775 ebp and edi members.
2776 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
2777 state.ebp and state.edi.
2778 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
2779 %ebp and %edi according to grub_relocator32_ebp and
2780 grub_relocator32_edi respectively.
2781 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
2782 and state.edi.
2783
2784 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
2785
2786 Add i386-pc-pxe image target.
2787
2788 * util/grub-mkimage.c (image_target_desc): New enum value
2789 IMAGE_I386_PC_PXE.
2790 (image_targets): New target i386-pc-pxe.
2791 (generate_image): Handle i386-pc-pxe image.
2792
2793 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
2794
2795 Fix grub_pxe_scan.
2796
2797 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
2798 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
2799 All users updated.
2800 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
2801 (grub_pxe_pxenv): Correct type.
2802
2803 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
2804
2805 * NEWS: Document most of the important changes since 1.98.
2806
2807 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
2808
2809 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
2810 generated manual page) a little.
2811
2812 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
2813
2814 * docs/grub.texi: Add myself as an author.
2815
2816 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
2817
2818 * Makefile.util.def (libgrub.a): Add missing sunpc.
2819 Reported by: Seth Goldberg.
2820
2821 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
2822
2823 Interrupt wrapping and code simplifications.
2824
2825 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
2826 x86_noieee1275 which are functionaly equivalent in this case.
2827 (grub-install): Make source on each platform explicit. Enable on
2828 all noemu.
2829 * gentpl.py (x86_efi_pc): Removed group.
2830 (x86_noefi): Likewise.
2831 (i386_noefi): Likewise.
2832 (x86_noieee1275): Likewise.
2833 (i386_noieee1275): Likewise.
2834 (i386_noefi_noieee1275): Likewise.
2835 (i386_pc_qemu_coreboot): Likewise.
2836 (i386_coreboot_multiboot): Likewise.
2837 (i386_pc_coreboot_multiboot_qemu): Likewise.
2838 (x86_noefi_mips): Likewise.
2839 (noieee1275): Likewise.
2840 (ieee1275_mips): Likewise.
2841 (noemu_noieee1275): Likewise.
2842 (cmos): New group.
2843 (usb): Likewise.
2844 (videoinkernel): Likewise.
2845 (videomodules): Likewise.
2846 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
2847 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
2848 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
2849 include/grub/loader.h, include/grub/msdos_partition.h,
2850 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
2851 include/grub/machine/console.h, include/grub/machine/vga.h,
2852 include/grub/machine/vbe.h, include/grub/machine/init.h,
2853 include/grub/machine/kernel.h, include/grub/cpu/time.h,
2854 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
2855 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
2856 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
2857 * grub-core/Makefile.core.def (kernel): Explicit the source for
2858 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
2859 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
2860 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
2861 Use videoinkernel tag.
2862 (usb): Enable on all usb.
2863 (usbserial_common): Likewise.
2864 (usbserial_pl2303): Likewise.
2865 (usbserial_ftdi): Likewise.
2866 (uhci): Enable on all x86.
2867 (ohci): Enable on all pci.
2868 (cmostest): Enable on all CMOS.
2869 (acpi): Include commands/acpi.c on all platforms.
2870 (halt): Add relevant lib/*/halt.c.
2871 (hdparm): Enable on all pci.
2872 (lspci): Likewise.
2873 (usbtest): Enable on all usb.
2874 (ata): Enable on all pci.
2875 (ata_pthru): Likewise.
2876 (usbms): Enable on all usb.
2877 (usb_keyboard): Likewise.
2878 (font): Use tag videomodules.
2879 (bufio): Likewise.
2880 (datetime): Use tag cmos. Enable on all noemu.
2881 (mmap): Use tags common and x86.
2882 (gfxterm): Use tag videomodules.
2883 (bitmap): Likewise.
2884 (bitmap_scale): Likewise.
2885 (video_fb): Likewise.
2886 (video): Likewise.
2887 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
2888 adjust padding accordingly. All users updated.
2889 (grub_ohci_transaction): Fix bad format specification.
2890 (GRUB_MOD_INIT): Add asserts for struct size.
2891 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
2892 (grub_alloc_td): Likewise.
2893 (grub_free_queue): Likewise.
2894 (grub_uhci_transfer): Likewise.
2895 (grub_uhci_transaction): Fix bad format specification.
2896 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
2897 (grub_usb_bulk_readwrite): Likewise.
2898 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
2899 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
2900 Made static.
2901 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
2902 Made static.
2903 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
2904 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
2905 Transformed into C.
2906 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
2907 Moved from here ...
2908 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
2909 ... here. Transformed into C. Made static.
2910 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
2911 Moved from here ...
2912 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
2913 ... here. Transformed into C. Made static.
2914 * grub-core/kern/i386/pc/startup.S
2915 (grub_biosdisk_check_int13_extensions): Moved from here ...
2916 * grub-core/disk/i386/pc/biosdisk.c
2917 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
2918 Made static.
2919 * grub-core/kern/i386/pc/startup.S
2920 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
2921 * grub-core/disk/i386/pc/biosdisk.c
2922 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
2923 Transformed into C. Made static.
2924 * grub-core/kern/i386/pc/startup.S
2925 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
2926 * grub-core/disk/i386/pc/biosdisk.c
2927 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
2928 Transformed into C. Made static.
2929 * grub-core/kern/i386/pc/startup.S
2930 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
2931 * grub-core/disk/i386/pc/biosdisk.c
2932 (grub_biosdisk_get_diskinfo_standard): ... here.
2933 Transformed into C. Made static.
2934 * grub-core/kern/i386/pc/startup.S
2935 (grub_biosdisk_get_num_floppies): Moved from here ...
2936 * grub-core/disk/i386/pc/biosdisk.c
2937 (grub_biosdisk_get_num_floppies): ... here.
2938 Transformed into C. Made static.
2939 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
2940 New function.
2941 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
2942 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
2943 Transformed into C. Made static.
2944 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
2945 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
2946 Transformed into C. Made static.
2947 * grub-core/kern/i386/ieee1275/init.c: Removed.
2948 * grub-core/kern/i386/misc.S: Likewise.
2949 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
2950 Splitted from here ...
2951 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
2952 Transformed into C. Made static. All users updated.
2953 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
2954 Transformed into C. Made static. All users updated.
2955 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
2956 Moved from here...
2957 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
2958 Transformed into C. Made static. All users updated.
2959 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
2960 Moved from here...
2961 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
2962 Transformed into C. Made static. All users updated.
2963 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
2964 Removed (replaced by C version).
2965 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
2966 Moved from here...
2967 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
2968 Transformed into C. Made static.
2969 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
2970 Moved from here...
2971 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
2972 ... here. Transformed into C.
2973 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
2974 Moved from here...
2975 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
2976 ... here. Transformed into C.
2977 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
2978 Moved from here...
2979 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
2980 ... here. Transformed into C. Made static.
2981 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
2982 Moved from here...
2983 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
2984 ... here. Transformed into C.
2985 * grub-core/kern/i386/pc/startup.S
2986 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
2987 * grub-core/video/i386/pc/vbe.c
2988 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
2989 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
2990 Moved from here...
2991 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
2992 ... here. Transformed into C.
2993 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
2994 Moved from here...
2995 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
2996 ... here. Transformed into C.
2997 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
2998 Moved from here...
2999 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
3000 ... here. Transformed into C.
3001 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
3002 Moved from here...
3003 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
3004 ... here. Transformed into C.
3005 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
3006 Moved from here...
3007 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
3008 ... here. Transformed into C. Made static.
3009 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
3010 Moved from here...
3011 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
3012 ... here. Transformed into C. Made static.
3013 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
3014 Moved from here...
3015 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
3016 ... here. Transformed into C. Made static.
3017 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
3018 pxe_rm_entry as third argument.
3019 (grub_bios_interrupt): New function.
3020 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
3021 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
3022 of calling grub_stop.
3023 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
3024 * grub-core/lib/efi/halt.c (grub_halt): ...here.
3025 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
3026 * grub-core/lib/emu/halt.c (grub_halt): ... here.
3027 * grub-core/lib/i386/halt.c: Moved from here ...
3028 * grub-core/lib/i386/halt.c: ... here.
3029 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
3030 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
3031 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
3032 grub_stop_floppy.
3033 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
3034 * include/grub/i386/coreboot/init.h: Removed.
3035 * include/grub/i386/multiboot/init.h: Likewise.
3036 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
3037 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
3038 * include/grub/i386/pc/int.h: New file.
3039 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
3040 (grub_pxe_scan): Removed.
3041 (grub_pxe_call): Update prototype.
3042 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
3043 prototypes.
3044 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
3045 * include/grub/i386/qemu/init.h: Removed.
3046 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
3047 noreturn.
3048 (grub_halt): Likewise.
3049 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
3050 (grub_reboot): Likewise.
3051 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
3052 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
3053 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
3054
3055 2010-08-30 Robert Millan <rmh@gnu.org>
3056
3057 * NEWS: Document addition of ZFS support in `grub-install' and
3058 `grub-mkconfig'.
3059
3060 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
3061
3062 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
3063 dprintf output.
3064
3065 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3066
3067 Remove leftover embedding of font objects.
3068
3069 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
3070 * util/grub-install.in (font): Removed.
3071 * util/grub-mkimage.c (generate_image): Remove font support. All users
3072 updated.
3073
3074 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3075
3076 Remove leftover embedding of font objects.
3077
3078 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
3079 * util/grub-install.in (font): Removed.
3080 * util/grub-mkimage.c (generate_image): Remove font support. All users
3081 updated.
3082
3083 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3084
3085 * docs/grub.texi (Network): Fix reference to pxe_blksize.
3086 Reported by: Ian Turner
3087
3088 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3089
3090 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
3091 timeout to avoid indefinite boot stalling.
3092
3093 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3094
3095 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
3096 (grub_env_write_color_highlight): Likewise.
3097
3098 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3099
3100 * grub-core/normal/term.c (print_more): Return to normal and not
3101 to standard state after printing "---MORE---".
3102
3103 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3104
3105 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
3106 Mask out the bit 0x80 since it has other meaning that specifiing color.
3107
3108 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3109
3110 New relocator. Allows for more kernel support and more straightforward
3111 loader writing.
3112
3113 * Makefile.am (BOOTTARGET): New variable.
3114 (QEMU32): Likewise.
3115 (linux.init.x86_64): New target.
3116 (linux.init.i386): Likewise.
3117 (multiboot.elf): Likewise.
3118 (kfreebsd.elf): Likewise.
3119 (kfreebsd.aout): Likewise.
3120 (pc-chainloader.elf): Likewise.
3121 (pc-chainloader.bin): Likewise.
3122 (ntldr.elf): Likewise.
3123 (ntldr.bin): Likewise.
3124 (multiboot2.elf): Likewise.
3125 (kfreebsd.init.x86_64): Likewise.
3126 (kfreebsd.init.i386): Likewise.
3127 (knetbsd.init.i386): Likewise.
3128 (kopenbsd.init.i386): Likewise.
3129 (knetbsd.init.x86_64): Likewise.
3130 (kopenbsd.init.x86_64): Likewise.
3131 (linux-initramfs.i386): Likewise.
3132 (linux-initramfs.x86_64): Likewise.
3133 (kfreebsd-mfsroot.i386.img): Likewise.
3134 (knetbsd.image.i386): Likewise.
3135 (kopenbsd.image.i386): Likewise.
3136 (kopenbsd.image.x86_64): Likewise.
3137 (knetbsd.miniroot-image.i386.img): Likewise.
3138 (kfreebsd-mfsroot.x86_64.img): Likewise.
3139 (knetbsd.image.x86_64): Likewise.
3140 (knetbsd.miniroot-image.x86_64.img): Likewise.
3141 (kfreebsd-mfsroot.i386.gz): Likewise.
3142 (bootcheck-kfreebsd-i386): Likewise.
3143 (kfreebsd-mfsroot.x86_64.gz): Likewise.
3144 (bootcheck-kfreebsd-x86_64): Likewise.
3145 (knetbsd.miniroot-image.i386.gz): Likewise.
3146 (bootcheck-knetbsd-i386): Likewise.
3147 (bootcheck-kopenbsd-i386): Likewise.
3148 (bootcheck-kopenbsd-x86_64): Likewise.
3149 (knetbsd.miniroot-image.x86_64.gz): Likewise.
3150 (bootcheck-knetbsd-x86_64): Likewise.
3151 (bootcheck-linux-i386): Likewise.
3152 (bootcheck-linux-x86_64): Likewise.
3153 (bootcheck-linux16-i386): Likewise.
3154 (bootcheck-linux16-x86_64): Likewise.
3155 (bootcheck-multiboot): Likewise.
3156 (bootcheck-multiboot2): Likewise.
3157 (bootcheck-kfreebsd-aout): Likewise.
3158 (bootcheck-pc-chainloader): Likewise.
3159 (bootcheck-ntldr): Likewise.
3160 (CLEANFILES): Add new targets.
3161 (BOOTCHECKS): New variable.
3162 (.PHONY): Add bootchecks.
3163 (SUCCESSFUL_BOOT_STRING): New variable.
3164 (BOOTCHECK_TIMEOUT): Likewise.
3165 (bootcheck): New target
3166 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
3167 * configure.ac: Correct efiemu excuse.
3168 * docs/grub.texi (Supported kernels): New chapter.
3169 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
3170 include/grub/mm_private.h. Simplify inclusion of
3171 include/grub/boot.h, include/grub/loader.h
3172 and include/grub/msdos_partition.h
3173 (KERNEL_HEADER_FILES) [i386_coreboot]:
3174 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
3175 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
3176 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
3177 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
3178 include/grub/machine/loader.h.
3179 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
3180 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
3181 extra_dist.
3182 (pci.mod): Enable on i386-multiboot.
3183 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
3184 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
3185 i386-qemu.
3186 (relocator.mod): Rewritten.
3187 (aout.mod): Enable on all x86.
3188 (bsd.mod): Likewise.
3189 (ntldr.mod): New module.
3190 (linux.mod): Use loader/i386/linux.c on all x86.
3191 (xnu.mod): Enable on all x86.
3192 (vga_text.mod): disable on EFI and QEMU.
3193 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
3194 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
3195 * grub-core/efiemu/loadcore.c: Likewise.
3196 * grub-core/efiemu/main.c: Likewise.
3197 (grub_efiemu_exit_boot_services): Removed.
3198 (grub_efiemu_finish_boot_services): Likewise.
3199 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
3200 function.
3201 * grub-core/efiemu/i386/nocfgtables.c: New file.
3202 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
3203 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
3204 (grub_efi_finish_boot_services): Moved from here ...
3205 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
3206 Fille finish memory map and related data.
3207 (finish_mmap_buf): New variable.
3208 (grub_efi_uintn_t finish_mmap_size): Likewise.
3209 (grub_efi_uintn_t finish_key): Likewise.
3210 (grub_efi_uintn_t finish_desc_size): Likewise.
3211 (grub_efi_uint32_t finish_desc_version): Likewise.
3212 (grub_efi_is_finished): Likewise.
3213 (grub_efi_get_memory_map): Use saved memory map if EFI is already
3214 finished.
3215 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
3216 (grub_elf64_phdr_iterate): Likewise.
3217 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
3218 (grub_os_area_size): Likewise.
3219 (grub_machine_init): Don't reserve os area.
3220 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
3221 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
3222 * grub-core/kern/i386/loader.S: Removed.
3223 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
3224 (grub_os_area_size): Likewise.
3225 (grub_machine_init): Don't reserve os area.
3226 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
3227 Don't call grub_dl_unload_all.
3228 Don't include loader.S.
3229 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
3230 Declare the memory after _end as available.
3231 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
3232 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
3233 (GRUB_MM_ALLOC_MAGIC): Moved from here...
3234 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
3235 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
3236 * include/grub/mm_private.h (grub_mm_header): ... here.
3237 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
3238 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
3239 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
3240 (grub_mm_region): ..here. Removed addr. Added pre_size.
3241 All users updated.
3242 * grub-core/kern/mm.c (base): Renamed to ...
3243 (grub_mm_base): ... this. Made global.
3244 (grub_real_malloc): Alloc from end of region.
3245 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
3246 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
3247 * grub-core/kern/powerpc/cache_flush.S: ... here.
3248 * grub-core/lib/efi/relocator.c: New file.
3249 * grub-core/lib/i386/relocator.c: Rewritten.
3250 * grub-core/lib/i386/relocator16.S: New file.
3251 * grub-core/lib/i386/relocator32.S: Likewise.
3252 * grub-core/lib/i386/relocator64.S: Likewise.
3253 * grub-core/lib/i386/relocator_asm.S: Rewritten.
3254 * grub-core/lib/i386/relocator_common.S: New file.
3255 * grub-core/lib/ieee1275/relocator.c: Likewise.
3256 * grub-core/lib/mips/relocator.c: Rewritten.
3257 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
3258 stylistic adjustments.
3259 * grub-core/lib/powerpc/relocator.c: New file.
3260 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
3261 * grub-core/lib/relocator.c: Rewritten.
3262 * grub-core/lib/x86_64/relocator_asm.S: New file.
3263 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
3264 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
3265 (bsd_tag): New struct.
3266 (tags): New variable.
3267 (tags_last): Likewise.
3268 (netbsd_module): New struct.
3269 (netbsd_mods): New variable.
3270 (netbsd_mods_last): Likewise.
3271 (openbsd_opts): New parameter "serial".
3272 (OPENBSD_SERIAL_ARG): New definition.
3273 (netbsd_opts): New parameter "serial".
3274 (NETBSD_SERIAL_ARG): New definition.
3275 (grub_freebsd_add_meta): Reorganised into ...
3276 (grub_bsd_add_meta): ...this. All users updated.
3277 (grub_freebsd_add_mmap): Reorganised into ...
3278 (generate_e820_mmap): ...this...
3279 (grub_bsd_add_mmap): ...and this. All users updated.
3280 (grub_freebsd_list_modules): Use tags.
3281 (grub_netbsd_add_meta_module): New function.
3282 (grub_netbsd_list_modules): Likewise.
3283 (grub_freebsd_boot): Use relocator and finish EFI.
3284 (grub_openbsd_boot): Likewise.
3285 (grub_netbsd_setup_video): New function.
3286 (grub_netbsd_add_modules): Likewise.
3287 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
3288 and finish EFI.
3289 (grub_bsd_unload): Unload tags.
3290 (grub_bsd_load_aout): Use relocator.
3291 (grub_bsd_elf32_size_hook): New function.
3292 (grub_bsd_elf32_hook): Use relocator.
3293 (grub_bsd_elf64_size_hook): New function.
3294 (grub_bsd_elf64_hook): Use relocator.
3295 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
3296 (grub_bsd_load): Zero-out openbsd_ramdisk.
3297 (grub_bsd_load): Use relocator.
3298 (grub_cmd_openbsd): Support serial.
3299 (grub_cmd_netbsd): Support modules.
3300 (grub_cmd_freebsd_module): Use relocator.
3301 (grub_netbsd_module_load): New function.
3302 (grub_cmd_netbsd_module): Likewise.
3303 (grub_cmd_openbsd_ramdisk): Likewise.
3304 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
3305 kopenbsd_ramdisk.
3306 (GRUB_MOD_FINI): Unregister new commands.
3307 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
3308 (grub_freebsd_load_elfmodule_obj): Use relocator.
3309 (grub_freebsd_load_elfmodule): Likewise.
3310 (grub_freebsd_load_elf_meta): Likewise.
3311 (grub_netbsd_load_elf_meta): New function.
3312 (grub_openbsd_find_ramdisk): Likewise.
3313 * grub-core/loader/i386/bsd_helper.S: Removed.
3314 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
3315 * grub-core/loader/i386/bsd_trampoline.S: Removed.
3316 * grub-core/loader/i386/efi/linux.c: Likewise.
3317 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
3318 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
3319 (DEFAULT_VIDEO_MODE): Likewise.
3320 (real_mode_target): New variable.
3321 (prot_mode_target): Likewise.
3322 (initrd_mem_target): Likewise.
3323 (relocator): Likewise.
3324 (efi_mmap_buf): Likewise.
3325 (efi_mmap_size): Likewise.
3326 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
3327 (free_pages): Use relocator.
3328 (allocate_pages): Account for efi_mmap and use relocator. Return error.
3329 (grub_linux_setup_video): Return error.
3330 (grub_linux_trampoline_start): Removed.
3331 (grub_linux_trampoline_end): Likewise.
3332 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
3333 andd video parameters depending on firmware.
3334 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
3335 [GRUB_MACHINE_EFI]: Pass EFI parameters.
3336 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
3337 (grub_cmd_initrd): Use relocator.
3338 * grub-core/loader/i386/linux_trampoline.S: Removed.
3339 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
3340 (elf_sec_entsize): Likewise.
3341 (elf_sec_shstrndx): Likewise.
3342 (elf_sections): Likewise.
3343 (grub_multiboot_load): Use relocator.
3344 (grub_multiboot_get_mbi_size): Account for sections.
3345 (grub_multiboot_make_mbi): Use relocator and support sections.
3346 (grub_multiboot_add_elfsyms): New function.
3347 (grub_multiboot_free_mbi): Free sections.
3348 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
3349 (grub_linux_real_target): Likewise.
3350 (grub_linux_real_chunk): Likewise.
3351 (grub_linux16_prot_size): Likewise.
3352 (grub_linux16_boot): Use relocator.
3353 (grub_linux_unload): Unload relocator.
3354 (grub_cmd_linux): Use relocator.
3355 (grub_cmd_initrd): Likewise.
3356 * grub-core/loader/i386/pc/ntldr.c: New file.
3357 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
3358 Don't try to guess CPU frequency.
3359 (grub_xnu_set_video): Stretch bitmap.
3360 (grub_xnu_boot): Use relocator.
3361 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
3362 (grub_linux_unload): Free relocator.
3363 (grub_linux_load32): Use relocator.
3364 (grub_linux_load64): Likewise.
3365 (grub_cmd_initrd): Likewise.
3366 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
3367 (grub_multiboot_unload): Unload relocator.
3368 (grub_cmd_multiboot): Use relocator.
3369 (grub_cmd_module): Likewise.
3370 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
3371 Use relocator and support sections.
3372 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
3373 (elf_sec_entsize): Likewise.
3374 (elf_sec_shstrndx): Likewise.
3375 (elf_sections): Likewise.
3376 (grub_multiboot_load): Use relocator.
3377 (grub_multiboot_get_mbi_size): Account for sections.
3378 (grub_multiboot_make_mbi): Use relocator and support sections.
3379 (grub_multiboot_add_elfsyms): New function.
3380 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
3381 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
3382 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
3383 Prototype changed. All users updated.
3384 (grub_xnu_align_heap): Simplified.
3385 (grub_xnu_writetree_toheap): Likewise.
3386 (grub_xnu_unload): Unload relocator.
3387 (grub_cmd_xnu_kernel): Use relocator.
3388 (grub_cmd_xnu_kernel64): Likewise.
3389 (grub_xnu_register_memory): Simplified.
3390 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
3391 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
3392 EFI is finished.
3393 (grub_console_checkkey): Likewise.
3394 (grub_console_getkey): Likewise.
3395 (grub_console_getwh): Likewise.
3396 (grub_console_getxy): Likewise.
3397 (grub_console_gotoxy): Likewise.
3398 (grub_console_cls): Likewise.
3399 (grub_console_setcolorstate): Likewise.
3400 (grub_console_setcursor): Likewise.
3401 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
3402 * grub-core/tests/boot/kbsd.init-i386.S: New file.
3403 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
3404 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
3405 * grub-core/tests/boot/kernel-8086.S: Likewise.
3406 * grub-core/tests/boot/kernel-i386.S: Likewise.
3407 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
3408 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
3409 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
3410 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
3411 * grub-core/tests/boot/knetbsd.cfg: Likewise.
3412 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
3413 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
3414 * grub-core/tests/boot/linux.cfg: Likewise.
3415 * grub-core/tests/boot/linux.init-i386.S: Likewise.
3416 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
3417 * grub-core/tests/boot/linux16.cfg: Likewise.
3418 * grub-core/tests/boot/multiboot.cfg: Likewise.
3419 * grub-core/tests/boot/multiboot2.cfg: Likewise.
3420 * grub-core/tests/boot/ntldr.cfg: Likewise.
3421 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
3422 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
3423 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
3424 New definition.
3425 * include/grub/dl.h (grub_dl_unload_all): Removed.
3426 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
3427 (grub_efi_finish_boot_services): Change prototype.
3428 (grub_efi_is_finished): New variable.
3429 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
3430 Changed prototype.
3431 (grub_efiemu_finish_boot_services): Removed.
3432 (grub_machine_efiemu_init_tables): New prototype.
3433 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
3434 (grub_elf64_phdr_iterate): Likewise.
3435 * include/grub/i386/bsd.h: Include relocator.h.
3436 (freebsd_tag_header): New struct.
3437 (grub_openbsd_bios_mmap): Removed.
3438 (grub_unix_real_boot): Removed.
3439 (grub_freebsd_load_elfmodule32): Changed prototype.
3440 (grub_freebsd_load_elfmodule_obj64): Likewise.
3441 (grub_freebsd_load_elf_meta32): Likewise.
3442 (grub_freebsd_load_elf_meta64): Likewise.
3443 (grub_freebsd_add_meta): Removed.
3444 (grub_netbsd_load_elf_meta32): New prototype.
3445 (grub_netbsd_load_elf_meta64): Likewise.
3446 (grub_bsd_add_meta): Likewise.
3447 (grub_openbsd_ramdisk_descriptor): New struct.
3448 (grub_openbsd_find_ramdisk32): New prototype.
3449 (grub_openbsd_find_ramdisk64): Likewise.
3450 * include/grub/i386/coreboot/loader.h: Removed.
3451 * include/grub/i386/efi/loader.h: Likewise.
3452 * include/grub/i386/ieee1275/loader.h: Likewise.
3453 * include/grub/i386/linux.h (linux_kernel_header): Change void *
3454 to grub_uint32_t.
3455 * include/grub/i386/loader.h: Removed.
3456 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
3457 value.
3458 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
3459 (grub_phys_addr_t): New type.
3460 (grub_vtop): New inline function.
3461 (grub_map_memory): Likewise.
3462 (grub_unmap_memory): Likewise.
3463 * include/grub/i386/multiboot/loader.h: Removed.
3464 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
3465 (NETBSD_BTINFO_CONSOLE): New definition.
3466 (NETBSD_BTINFO_SYMTAB): Likewise.
3467 (NETBSD_BTINFO_MODULES): Likewise.
3468 (NETBSD_BTINFO_FRAMEBUF): Likewise.
3469 (grub_netbsd_bootinfo): New struct.
3470 (grub_netbsd_btinfo_common): Use explicit bitsize.
3471 (grub_netbsd_btinfo_mmap_entry): Removed.
3472 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
3473 (grub_netbsd_btinfo_bootdisk): New struct.
3474 (grub_netbsd_btinfo_symtab): Likewise.
3475 (grub_netbsd_btinfo_serial): Likewise.
3476 (grub_netbsd_btinfo_modules): Likewise.
3477 (grub_netbsd_btinfo_framebuf): Likewise.
3478 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
3479 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
3480 Likewise.
3481 (grub_openbsd_bootargs): Use explicit bitsize.
3482 (grub_openbsd_bootarg_console): New struct.
3483 (GRUB_OPENBSD_COM_MAJOR): New definition.
3484 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
3485 * include/grub/i386/pc/efiemu.h: Removed.
3486 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
3487 * include/grub/i386/qemu/loader.h: Removed.
3488 * include/grub/i386/relocator.h: Rewritten.
3489 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
3490 * include/grub/mips/memory.h: New file.
3491 * include/grub/mips/multiboot.h: Rewritten.
3492 * include/grub/mips/relocator.h: Rewritten.
3493 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
3494 (grub_vtop): New function.
3495 (grub_map_memory): Likewise.
3496 (grub_unmap_memory): Likewise.
3497 * include/grub/misc.h (ALIGN_DOWN): New definition.
3498 * include/grub/mm.h (grub_mm_check_real): New proto.
3499 (GRUB_MM_CHECK): New definition.
3500 * include/grub/mm_private.h: New file.
3501 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
3502 (grub_multiboot_get_mbi_size): Removed.
3503 (grub_multiboot_make_mbi): Change prottype.
3504 (grub_multiboot_set_accepts_video): New proto.
3505 (grub_multiboot_add_elfsyms): Likewise.
3506 (grub_multiboot_payload_eip): New variable.
3507 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
3508 New prototype.
3509 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
3510 New definition.
3511 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
3512 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
3513 * include/grub/powerpc/ieee1275/loader.h: Removed.
3514 * include/grub/powerpc/memory.h: New file.
3515 * include/grub/powerpc/relocator.h: Likewise.
3516 * include/grub/relocator.h: Likewise.
3517 * include/grub/relocator_private.h: Likewise.
3518 * include/grub/sparc64/ieee1275/loader.h: Removed.
3519 * include/grub/x86_64/memory.h: New file.
3520 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
3521 (grub_xnu_heap_malloc): Likewise.
3522 (grub_xnu_heap_real_start): Removed.
3523 (grub_xnu_heap_start): Likewise.
3524 (grub_xnu_relocator): New variable.
3525 (grub_xnu_heap_target_start): Likewise.
3526 * tests/util/grub-shell.in: Support non-pc.
3527 * util/grub-mkimage.c (image_targets): Fix multiboot target.
3528
3529 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3530
3531 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
3532 on malloc error.
3533 (grub_bidi_logical_to_visual): Check that malloc succeded.
3534 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
3535 puts.
3536 (grub_xputs_normal): Likewise.
3537
3538 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3539
3540 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
3541 extra_dist.
3542
3543 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3544
3545 * grub-core/efiemu/runtime/efiemu.sh: Removed.
3546
3547 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3548
3549 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
3550
3551 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3552
3553 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
3554 dprintf.
3555
3556 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
3557
3558 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
3559
3560 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3561
3562 * grub-core/normal/term.c (print_more): Fix a memory leak.
3563 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
3564 (grub_xputs_normal): Likewise.
3565
3566 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3567
3568 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
3569 the begining of the string
3570
3571 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3572
3573 * grub-core/script/script.c (grub_script_parse): Free parsed on
3574 failure.
3575
3576 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3577
3578 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
3579 on failure.
3580
3581 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3582
3583 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
3584 return.
3585
3586 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3587
3588 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
3589 (scroll_up): Fix a memory leak.
3590
3591 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3592
3593 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
3594 errors.
3595
3596 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
3597
3598 Handle USB pendrives exposed as floppies.
3599
3600 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
3601 floppy.
3602 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
3603 Check for partitions on all devices.
3604
3605 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
3606
3607 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
3608 (readkey): Likewise.
3609
3610 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
3611
3612 Multiple variable names support to "export" command.
3613
3614 * normal/context.c (grub_cmd_export): "export" command supports
3615 multiple variable names.
3616
3617 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
3618
3619 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
3620 --target=drive output to Mach device name.
3621
3622 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
3623
3624 New Automake based build system for GRUB.
3625
3626 * ABOUT-NLS: New file.
3627 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
3628 in Makefile.util.def file.
3629 * Makefile.util.def: New file. Autogen build definitions file for
3630 GRUB host utils.
3631 * conf/Makefile.common: New file. Common variables for GRUB host
3632 utils and target modules.
3633 * conf/Makefile.extra-dist: New file. Extra files for make dist.
3634 * docs/Makefile.am: New file. Automake file for docs.
3635 * gentpl.py: New file. Python script to generate Autogen
3636 template.
3637 * grub-core/Makefile.am: New file. GRUB target modules' rules
3638 that doesn't fit in Makefile.core.def file.
3639 * grub-core/Makefile.core.def: New file. Autogen build
3640 definitions file for GRUB target modules.
3641 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
3642 specific setjmp.S file.
3643 * po/Makefile.am: New file.
3644
3645 * .bzrignore: New ignores.
3646 * INSTALL: New requirements, without Ruby.
3647 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
3648 * autogen.sh: Updated to invoke autogen as necessary.
3649 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
3650 and defines for Automake conditionals.
3651 * geninit.sh: Refactoring.
3652
3653 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
3654 necessary.
3655 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
3656 New prototype.
3657
3658 * include/grub/test.h: Fix functional test modules' naming.
3659 * grub-core/tests/example_functional_test.c: Fix test module name.
3660
3661 * util/misc.c: Hosted versions' of grub functions for libgrub.a
3662 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
3663 * util/grub-editenv.c: Likewise.
3664 * util/grub-fstest.c: Likewise.
3665 * util/grub-mkdevicemap.c: Likewise.
3666 * util/grub-mkfont.c: Likewise.
3667 * util/grub-mkimage.c: Likewise.
3668 * util/grub-mkpasswd-pbkdf2.c: Likewise.
3669 * util/grub-probe.c: Likewise.
3670 * util/grub-script-check.c: Likewise.
3671 * util/i386/pc/grub-setup.c: Likewise.
3672 * util/sparc64/ieee1275/grub-setup.c: Likewise.
3673
3674 * tests/util/grub-shell.in: Fix override directory path.
3675 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
3676 * util/import_gcry.py: Create Makefile.gcry.def file instead.
3677
3678 * util/lvm.c: Update #includes.
3679 * util/raid.c: Likewise.
3680 * util/resolve.c: Likewise.
3681 * grub-core/bus/emu/pci.c: Likewise.
3682 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
3683 * grub-core/lib/posix_wrap/string.h: Likewise.
3684 * grub-core/kern/emu/main.c: Likewise.
3685
3686 * grub-core/gensymlist.sh: New file. Script for generating kernel
3687 symbols file.
3688 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
3689
3690 * grub-core/gentrigtables.c: Fix unused variable warnings.
3691
3692 * Makefile.in: Removed.
3693 * conf/any-emu.rmk: Removed.
3694 * conf/common.rmk: Removed.
3695 * conf/i386-coreboot.rmk: Removed.
3696 * conf/i386-efi.rmk: Removed.
3697 * conf/i386-ieee1275.rmk: Removed.
3698 * conf/i386-multiboot.rmk: Removed.
3699 * conf/i386-pc.rmk: Removed.
3700 * conf/i386-qemu.rmk: Removed.
3701 * conf/i386.rmk: Removed.
3702 * conf/mips-yeeloong.rmk: Removed.
3703 * conf/mips.rmk: Removed.
3704 * conf/powerpc-ieee1275.rmk: Removed.
3705 * conf/sparc64-ieee1275.rmk: Removed.
3706 * conf/tests.rmk: Removed.
3707 * conf/x86-efi.rmk: Removed.
3708 * conf/x86_64-efi.rmk: Removed.
3709 * gendistlist.sh: Removed.
3710 * geninitheader.sh: Removed.
3711 * genkernsyms.sh.in: Removed.
3712 * genmk.rb: Removed.
3713 * gensymlist.sh.in: Removed.
3714 * mkinstalldirs: Removed.
3715 * boot: Moved ...
3716 * grub-core/boot: ... to here.
3717 * bus: Moved ...
3718 * grub-core/bus: ... to here.
3719 * commands: Moved ...
3720 * grub-core/commands: ... to here.
3721 * disk: Moved ...
3722 * grub-core/disk: ... to here.
3723 * efiemu: Moved ...
3724 * grub-core/efiemu: ... to here.
3725 * font: Moved ...
3726 * grub-core/font: ... to here.
3727 * fs: Moved ...
3728 * grub-core/fs: ... to here.
3729 * gencmdlist.sh: Moved ...
3730 * grub-core/gencmdlist.sh: ... to here.
3731 * genemuinit.sh: Moved ...
3732 * grub-core/genemuinit.sh: ... to here.
3733 * genemuinitheader.sh: Moved ...
3734 * grub-core/genemuinitheader.sh: ... to here.
3735 * genfslist.sh: Moved ...
3736 * grub-core/genfslist.sh: ... to here.
3737 * genhandlerlist.sh: Moved ...
3738 * grub-core/genhandlerlist.sh: ... to here.
3739 * genmoddep.awk: Moved ...
3740 * grub-core/genmoddep.awk: ... to here.
3741 * genmodsrc.sh: Moved ...
3742 * grub-core/genmodsrc.sh: ... to here.
3743 * genpartmaplist.sh: Moved ...
3744 * grub-core/genpartmaplist.sh: ... to here.
3745 * genparttoollist.sh: Moved ...
3746 * grub-core/genparttoollist.sh: ... to here.
3747 * genterminallist.sh: Moved ...
3748 * grub-core/genterminallist.sh: ... to here.
3749 * gentrigtables.c: Moved ...
3750 * grub-core/gentrigtables.c: ... to here.
3751 * genvideolist.sh: Moved ...
3752 * grub-core/genvideolist.sh: ... to here.
3753 * gettext: Moved ...
3754 * grub-core/gettext: ... to here.
3755 * gfxmenu: Moved ...
3756 * grub-core/gfxmenu: ... to here.
3757 * gnulib: Moved ...
3758 * grub-core/gnulib: ... to here.
3759 * hello: Moved ...
3760 * grub-core/hello: ... to here.
3761 * hook: Moved ...
3762 * grub-core/hook: ... to here.
3763 * io: Moved ...
3764 * grub-core/io: ... to here.
3765 * kern: Moved ...
3766 * grub-core/kern: ... to here.
3767 * lib: Moved ...
3768 * grub-core/lib: ... to here.
3769 * loader: Moved ...
3770 * grub-core/loader: ... to here.
3771 * mmap: Moved ...
3772 * grub-core/mmap: ... to here.
3773 * normal: Moved ...
3774 * grub-core/normal: ... to here.
3775 * partmap: Moved ...
3776 * grub-core/partmap: ... to here.
3777 * parttool: Moved ...
3778 * grub-core/parttool: ... to here.
3779 * script: Moved ...
3780 * grub-core/script: ... to here.
3781 * term: Moved ...
3782 * grub-core/term: ... to here
3783 * tests/example_functional_test.c: Moved ...
3784 * grub-core/tests/example_functional_test.c: ... to here.
3785 * tests/lib/functional_test.c: Moved ...
3786 * grub-core/tests/lib/functional_test.c: ... to here.
3787 * tests/lib/test.c: Moved ...
3788 * grub-core/tests/lib/test.c: ... to here.
3789 * video: Moved ...
3790 * grub-core/video: ... to here.
3791
3792 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
3793
3794 Replace --enable-grub-emu-modules with grub-emu-lite.
3795
3796 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
3797 cache.S.
3798
3799 * include/grub/emu/misc.h (grub_emu_init): New prototype.
3800 * kern/emu/full.c: New file. For grub-emu specific initialization.
3801 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
3802 * kern/emu/main.c: Call initialization function grub_emu_init.
3803
3804 * Makefile.in: Include grub-emu-lite in install.
3805 * commands/parttool.c: Use grub_no_autoload to differentiate
3806 between grub-emu and grub-emu-lite.
3807 * include/grub/misc.h: New variable grub_no_autoload.
3808
3809 * conf/any-emu.rmk: New rules for grub-emu-lite.
3810 * configure.ac: Remove --enable-grub-emu-modules.
3811 * genmk.rb: Cleanup unnecessary rules.
3812 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
3813
3814 * normal/main.c: Don't load list files on grub-emu-lite.
3815 * util/misc.c (grub_arch_sync_caches): Removed.
3816
3817 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
3818
3819 * kern/mips/startup.S (grub_prefix): Update comment to refer to
3820 grub-mkimage rather than grub-mkelfimage.
3821 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
3822
3823 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
3826 a key after CapsLock or NumLock. It's just a qemu bug.
3827
3828 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
3829
3830 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
3831 needed by libusb wrapper.
3832
3833 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
3834
3835 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
3836
3837 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
3838
3839 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
3840 --nounzip is passed.
3841
3842 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
3843
3844 USB hotunplugging and USB serial support.
3845
3846 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
3847 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
3848 (grub_uhci_transfer): Respect timeout and set *actual.
3849 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
3850 non-standard length.
3851 (grub_usb_device_attach): Autoload modules.
3852 (GRUB_MOD_INIT): Set grub_term_poll_usb.
3853 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
3854 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
3855 users updated.
3856 (grub_usb_add_hub): Fill nports and children.
3857 (attach_root_port): Receive hub instead of controller.
3858 All users updated. Fill hub->devices.
3859 (grub_usb_root_hub): Allocate hub->devices.
3860 (detach_device): New function.
3861 (poll_nonroot_hub): Fill children and detach devices.
3862 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
3863 actual arguments. All users updated.
3864 (grub_usb_bulk_read_extended): New function.
3865 * bus/usb/serial/common.c: New file.
3866 * bus/usb/serial/ftdi.c: Likewise.
3867 * bus/usb/serial/pl2303.c: Likewise.
3868 * commands/terminal.c (handle_command): Support wildcard.
3869 * commands/usbtest.c: Output "Unknown" instead of empty string.
3870 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
3871 (usbserial_common_mod_SOURCES): New variable.
3872 (usbserial_common_mod_CFLAGS): Likewise.
3873 (usbserial_common_mod_LDFLAGS): Likewise.
3874 (pkglib_MODULES): Add usbserial_pl2303.mod.
3875 (usbserial_pl2303_mod_SOURCES): New variable.
3876 (usbserial_pl2303_mod_CFLAGS): Likewise.
3877 (usbserial_pl2303_mod_LDFLAGS): Likewise.
3878 (pkglib_MODULES): Add usbserial_ftdi.mod.
3879 (usbserial_ftdi_mod_SOURCES): New variable.
3880 (usbserial_ftdi_mod_CFLAGS): Likewise.
3881 (usbserial_ftdi_mod_LDFLAGS): Likewise.
3882 (pkglib_MODULES): Add serial.mod.
3883 (serial_mod_SOURCES): New variable.
3884 (serial_mod_CFLAGS): Likewise.
3885 (serial_mod_LDFLAGS): Likewise.
3886 * conf/i386-pc.rmk: Likewise.
3887 * conf/mips-yeeloong.rmk: Likewise.
3888 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
3889 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
3890 * disk/usbms.c (first_available_slot): New variable.
3891 (grub_usbms_attach): Don't reuse free slots due to potential cache
3892 problems.
3893 * include/grub/serial.h: Moved to ..
3894 * include/grub/ns8250.h: ...this.
3895 * include/grub/serial.h: New file.
3896 * include/grub/term.h (grub_term_poll_usb): New variable.
3897 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
3898 readkey. All users updated.
3899 (grub_terminfo_output_state): Pass term to put.
3900 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
3901 (grub_usb_controller_dev): Add timeout and actual arguments to
3902 transfer. All users updated.
3903 (grub_usb_interface): New field detach_data.
3904 (grub_usb_device): New fields children and nports.
3905 (grub_usb_ep_type_t): New type.
3906 (grub_usb_get_ep_type): New function.
3907 (grub_usb_bulk_read_extended): Likewise.
3908 * include/grub/usbdesc.h (grub_usb_desc): New type.
3909 * include/grub/usbserial.h: New file.
3910 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
3911 * kern/term.c (grub_term_poll_usb): New variable.
3912 (grub_getkey): Call grub_term_poll_usb if set.
3913 (grub_checkkey): Likewise.
3914 (grub_getkeystatus): Likewise.
3915 * term/serial.c: Moved controller-specific parts to ...
3916 * term/ns8250.c: ... here.
3917 * term/serial.c: Mostly rewritten.
3918 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
3919 according to spec.
3920
3921 2010-08-20 Robert Millan <rmh@gnu.org>
3922
3923 Make kFreeBSD code more generic to support ext2fs as root, ufs as
3924 a separate module and maybe other interesting combinations.
3925
3926 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
3927 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
3928 (kfreebsd_entry): Add generic filesystem module load routine.
3929 Map GRUB `ext2' to kFreeBSD `ext2fs'.
3930
3931 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
3932
3933 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
3934 "numcenter" (I misunderstood the purpose of this entry).
3935 * docs/grub.texi (sendkey): Likewise.
3936
3937 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
3938
3939 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
3940 status flag options; simply omitting the option is equivalent and
3941 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
3942 (keysym_table): Rename "num5numlock" to "numlock".
3943 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
3944 can uniformly say that only the last of multiple `sendkey'
3945 invocations has any effect.
3946 * docs/grub.texi (sendkey): New section.
3947
3948 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
3949
3950 * commands/i386/pc/sendkey.c (options): Fix three typos.
3951
3952 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3953
3954 Implement sendkey support.
3955
3956 * commands/i386/pc/sendkey.c: New file.
3957 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
3958 (sendkey_mod_SOURCES): New variable.
3959 (sendkey_mod_CFLAGS): Likewise.
3960 (sendkey_mod_LDFLAGS): Likewise.
3961
3962 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
3963
3964 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
3965 fix warnings from Autoconf.
3966
3967 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
3968
3969 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
3970 to avoid false positives with some assemblers that output things
3971 like "someprefix_func" as part of their output.
3972
3973 2010-08-15 Robert Millan <rmh@gnu.org>
3974
3975 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
3976 errors.
3977 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
3978 grub_get_libzfs_handle() errors.
3979
3980 2010-08-14 Robert Millan <rmh@gnu.org>
3981
3982 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
3983 filesystem is not ZFS.
3984
3985 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
3986
3987 Fix for misspelled color names defaulting to black/black (bug
3988 reported by Doug Nazar)
3989
3990 * include/grub/normal.h (grub_parse_color_name_pair): Add return
3991 status to prototype.
3992 * normal/color.c (grub_parse_color_name_pair): Return failure
3993 status.
3994 (grub_env_write_color_normal): Ignore bad color names.
3995 (grub_env_write_color_highlight): Likewise.
3996 * normal/main.c (GRUB_MOD_INIT): Set default color names.
3997
3998 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
3999
4000 "shift" command support to GRUB script.
4001
4002 * include/grub/script_sh.h (grub_script_shift): New prototype.
4003 * script/execute.c (grub_script_shift): New function.
4004 * script/main.c (grub_script_init): Register shift command.
4005 (grub_script_fini): Unregister shift command.
4006 * util/grub-script-check.c (grub_script_cmd_shift): New function.
4007
4008 * tests/grub_script_shift.in: New testcase.
4009 * conf/tests.rmk: Rules for new testcase.
4010
4011 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
4012
4013 "continue" command support to GRUB script.
4014
4015 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
4016 (grub_script_break): Continue support.
4017 * script/main.c (grub_script_init): Register continue command.
4018 (grub_script_fini): Unregister continue command.
4019
4020 * tests/grub_script_continue.in: New testcase.
4021 * conf/tests.rmk: Rules for new testcase.
4022
4023 2010-08-12 BVK Chaitanya <bvk@dbook>
4024
4025 "break" command support to GRUB script.
4026
4027 * conf/common.rmk: Rule updates to grub-script-check.
4028 * include/grub/misc.h (grub_min): New function.
4029 * include/grub/script_sh.h (grub_script_init): New prototype.
4030 (grub_script_fini): New prototype.
4031 (grub_script_break): New prototype.
4032 * script/main.c (grub_script_init): New function.
4033 (grub_script_fini): New function.
4034 * script/execute.c (grub_script_break): New function.
4035 * normal/main.c: Calls to grub_script_{init,fini}.
4036 * util/grub-script-check.c (grub_script_break): New function.
4037
4038 * tests/grub_script_break.in: New testcase.
4039 * conf/tests.rmk: Rules for new test case.
4040
4041 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
4042
4043 Function parameters support to GRUB script.
4044
4045 * script/yylex.l (VARIABLE): Regular expression update.
4046 * script/function.c (grub_script_function_call): Moved ...
4047 * script/execute.c (grub_script_function_call): ... to here.
4048 (grub_script_execute_arglist_to_argv): Removed.
4049 (grub_script_arglist_to_argv): New function.
4050 * script/argv.c: New file.
4051 (grub_script_argv_free): New function.
4052 (grub_script_argv_next): Likewise.
4053 (grub_script_argv_append): Likewise.
4054 (grub_script_argv_split_append): Likewise.
4055 * include/grub/script_sh.h (grub_script_argv): New struct.
4056 (grub_script_argv_free): New function.
4057 (grub_script_argv_next): Likewise.
4058 (grub_script_argv_append): Likewise.
4059 (grub_script_argv_split_append): Likewise.
4060
4061 * conf/common.rmk (normal.mod): New source script/argv.c.
4062
4063 * tests/grub_script_echo1.in: More tests.
4064 * tests/grub_script_vars1.in: Likewise.
4065 * tests/grub_script_functions.in: New test case.
4066 * conf/tests.rmk: Rules for new testcase.
4067
4068 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
4069
4070 Remove grub_script_cmdblock struct.
4071
4072 * include/grub/script_sh.h: Remove grub_script_cmdblock.
4073 * script/parser.y: Likewise.
4074 * script/execute.c: Rename cmdblock suffix to cmdlist.
4075 * script/script.c: Likewise.
4076 * util/grub-script-check.c: Likewise.
4077
4078 2010-08-11 Yves Blusseau <blusseau@zetam.org>
4079
4080 * .bzrignore: add grub-macho2img
4081
4082 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
4083
4084 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
4085
4086 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
4087
4088 Remove the dump of sm712 initialisation sequence.
4089
4090 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
4091 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
4092 (GRUB_VGA_IO_MISC_WRITE): Likewise.
4093 (GRUB_VGA_CR_*): Added many registers.
4094 (GRUB_VGA_SR_*): Likewise.
4095 (GRUB_VGA_GR_*): Likewise.
4096 (grub_vga_write_arx): New function.
4097 (grub_video_hw_config): New struct.
4098 (grub_vga_set_geometry): New function.
4099 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
4100 GRUB_PCI_CLASS_SUBCLASS_VGA.
4101 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
4102 * video/sm712.c (grub_sm712_write_reg): New function
4103 (grub_sm712_read_reg): Likewise.
4104 (grub_sm712_sr_write): Likewise.
4105 (grub_sm712_gr_write): Likewise.
4106 (grub_sm712_cr_write): Likewise.
4107 (grub_sm712_write_arx): Likewise.
4108 (grub_sm712_cr_shadow_write): Likewise.
4109 (grub_sm712_write_dda_lookup): Likewise.
4110 (grub_video_sm712_setup): Initialise the video rather then
4111 blindly replay the dump.
4112 (main) [TEST]: Add a routine to be able to compile as standalone for
4113 tests.
4114 * video/sm712_init.c (sm712_init): Removed.
4115 (sm712_sr_seq1): New array.
4116 (sm712_sr_seq2): Likewise.
4117
4118 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
4119
4120 * include/grub/vga.h: Add missing grub/pci.h include.
4121
4122 2010-08-10 Yves Blusseau <blusseau@zetam.org>
4123
4124 * util/grub-macho2img.c (main): fix typo
4125
4126 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
4127
4128 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
4129 (grub_vga_gr_read): Likewise.
4130 (grub_vga_cr_write): Likewise.
4131 (grub_vga_cr_read): Likewise.
4132 (grub_vga_sr_write): Likewise.
4133 (grub_vga_sr_read): Likewise.
4134 (grub_vga_palette_read): Likewise.
4135 (grub_vga_palette_write): Likewise.
4136 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
4137 (grub_sm712_sr_read): New function.
4138 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
4139 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
4140
4141 2010-08-09 Robert Millan <rmh@gnu.org>
4142
4143 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
4144 out unused variables on non-ZFS build.
4145
4146 2010-08-08 Robert Millan <rmh@gnu.org>
4147
4148 Fix path generation for sub-filesystems in ZFS.
4149
4150 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
4151 missing slash.
4152
4153 2010-08-08 Robert Millan <rmh@gnu.org>
4154
4155 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
4156
4157 2010-08-08 Robert Millan <rmh@gnu.org>
4158
4159 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
4160 exist, issue a proper error message (rely on `ls' for translated
4161 strings).
4162
4163 2010-08-08 Robert Millan <rmh@gnu.org>
4164
4165 Fix grub-probe invocation.
4166
4167 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
4168
4169 2010-08-04 Robert Millan <rmh@gnu.org>
4170
4171 * configure.ac: Remove checks for getfsstat() and getmntany().
4172 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
4173 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
4174 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
4175 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
4176 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
4177 function.
4178 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
4179 via find_mount_point_from_dir() and getfsstat() / getmntany().
4180
4181 2010-08-04 Robert Millan <rmh@gnu.org>
4182
4183 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
4184 (grub_find_zpool_from_mount_point): Merge into ...
4185 (grub_find_zpool_from_dir): ... this.
4186 * kern/emu/misc.c: Likewise.
4187
4188 * kern/emu/misc.c
4189 (grub_make_system_path_relative_to_its_root): Replace
4190 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
4191 with grub_find_zpool_from_dir().
4192 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
4193
4194 2010-08-04 Robert Millan <rmh@gnu.org>
4195
4196 Support OpenSolaris in ZFS device resolution.
4197
4198 * configure.ac: Check for getmntany().
4199 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
4200 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
4201 support.
4202
4203 2010-08-03 Robert Millan <rmh@gnu.org>
4204
4205 Fix grub-emu build.
4206
4207 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
4208 * include/grub/emu/misc.h: ... here.
4209
4210 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
4211 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
4212
4213 * util/misc.c: Remove `<grub/util/libzfs.h>'.
4214 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
4215 (grub_get_libzfs_handle): Move to ...
4216 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
4217 (grub_get_libzfs_handle): ... here.
4218
4219 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
4220
4221 * script/execute.c (grub_script_execute_cmdline): Check for NULL
4222 as command name case.
4223
4224 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
4225
4226 * disk/raid.c (insert_array): Select unique numbers for named arrays
4227 as well, for use as keys in the disk cache.
4228
4229 2010-08-01 Robert Millan <rmh@gnu.org>
4230
4231 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
4232 kFreeBSD device name, except on ZFS where the filesystem label is
4233 used.
4234 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
4235 `/boot/zfs/zpool.cache'.
4236 Set mountfrom kernel variable using ${kfreebsd_device}.
4237
4238 2010-08-01 Robert Millan <rmh@gnu.org>
4239
4240 Make it even harder to use uninitialized `libzfs_handle' (and
4241 make the interface a bit simpler).
4242
4243 * include/grub/util/misc.h (grub_util_init_libzfs)
4244 (libzfs_handle): Remove.
4245 (grub_get_libzfs_handle): New prototype.
4246
4247 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
4248 attribute.
4249 (grub_util_init_libzfs): Remove.
4250 (grub_get_libzfs_handle): New function.
4251
4252 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
4253 grub_get_libzfs_handle() to obtain a libzfs handle instead of
4254 accessing `libzfs_handle' directly.
4255
4256 2010-08-01 Robert Millan <rmh@gnu.org>
4257
4258 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
4259 (grub_find_zpool_from_mount_point): New function prototypes.
4260
4261 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
4262 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
4263
4264 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
4265 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
4266 `static' attribute.
4267
4268 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
4269 finding zpool from mount point into ...
4270 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
4271
4272 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
4273 requested path is part of a ZFS pool, use
4274 grub_find_zpool_from_mount_point() to detect its filesystem name,
4275 and generate a path with `/fsname@path' syntax.
4276
4277 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
4278
4279 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
4280 (void) rather than () so that this is a proper prototype.
4281
4282 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
4283
4284 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
4285
4286 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
4287
4288 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
4289 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
4290
4291 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
4292
4293 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
4294
4295 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
4296
4297 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
4298
4299 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
4300
4301 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
4302 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
4303 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
4304 disable gfxpayload.
4305 (Shell-like scripting): Add real content.
4306 (Serial terminal): Suggest `terminal_input serial; terminal_output
4307 serial' rather than putting the two commands on separate lines,
4308 since console input will be inoperative after the first command.
4309 (menuentry): Document --class, --users, and --hotkey options.
4310 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
4311 Vladimir Serbinenko).
4312
4313 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
4314 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
4315
4316 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
4317
4318 2010-08-01 Robert Millan <rmh@gnu.org>
4319
4320 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
4321 (grub_find_zpool_from_mount_point): New function prototypes.
4322
4323 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
4324 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
4325
4326 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
4327 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
4328 `static' attribute.
4329
4330 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
4331 finding zpool from mount point into ...
4332 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
4333
4334 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
4335 requested path is part of a ZFS pool, use
4336 grub_find_zpool_from_mount_point() to detect its filesystem name,
4337 and generate a path with `/fsname@path' syntax.
4338
4339 2010-08-01 Robert Millan <rmh@gnu.org>
4340
4341 Prevent accidental use of uninitialized libzfs_handle.
4342
4343 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
4344 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
4345 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
4346
4347 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
4348
4349 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
4350 util/grub.d/10_linux.in). Fixes Debian bug #591093.
4351
4352 2010-08-01 Robert Millan <rmh@gnu.org>
4353
4354 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
4355
4356 2010-07-31 Robert Millan <rmh@gnu.org>
4357
4358 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
4359
4360 2010-07-31 Robert Millan <rmh@gnu.org>
4361
4362 * kern/emu/misc.c: Add missing license header.
4363
4364 2010-07-31 Robert Millan <rmh@gnu.org>
4365
4366 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
4367
4368 * include/grub/util/libnvpair.h: Include `<config.h>'.
4369 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
4370 declaring libnvpair prototypes ourselves.
4371 * include/grub/util/libzfs.h: Include `<config.h>'.
4372 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
4373 declaring libzfs prototypes ourselves.
4374
4375 (libzfs_handle): Moved to ...
4376 * include/grub/util/misc.h (libzfs_handle): ... here.
4377 Include `<grub/util/libzfs.h>'.
4378
4379 2010-07-30 Robert Millan <rmh@gnu.org>
4380
4381 * include/grub/emu/misc.h: Add missing license header.
4382
4383 2010-07-30 Robert Millan <rmh@gnu.org>
4384
4385 Enable `grub-probe -t device' resolution on ZFS.
4386
4387 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
4388 * include/grub/util/libnvpair.h: New file.
4389 * include/grub/util/libzfs.h: New file.
4390
4391 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
4392 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
4393 `<grub/util/libnvpair.h>'.
4394 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
4395
4396 (find_mount_point_from_dir): New static function.
4397 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
4398 function.
4399 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
4400 find_root_device_from_libzfs() before ressorting to find_root_device().
4401
4402 * include/grub/util/misc.h (grub_util_init_libzfs): New function
4403 prototype.
4404 * util/misc.c: Include `<grub/util/libzfs.h>'.
4405 (grub_util_init_libzfs): New function.
4406 [HAVE_LIBZFS] (libzfs_handle): New global variable.
4407 [HAVE_LIBZFS] (fini_libzfs): New static function.
4408 (grub_util_init_libzfs): New function.
4409 * util/grub-probe.c (main): Call grub_util_init_libzfs().
4410
4411 2010-07-30 Robert Millan <rmh@gnu.org>
4412
4413 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
4414 (xmalloc, xrealloc, xstrdup, xasprintf): Add
4415 `warn_unused_result' attribute.
4416 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
4417 (grub_xasprintf, grub_xvasprintf): Likewise.
4418 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
4419
4420 2010-07-29 Robert Millan <rmh@gnu.org>
4421
4422 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
4423 (probe): Handle `PRINT_FS_LABEL'.
4424 (main): Handle `-t fs_label'.
4425
4426 2010-07-29 Robert Millan <rmh@gnu.org>
4427
4428 * configure.ac: Remove grub-mkisofs checks.
4429
4430 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
4431
4432 * util/ieee1275/grub-install.in: Don't use empty grub_device.
4433 Reported by: Lennart Sorensen.
4434
4435 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4436
4437 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
4438 prior to terminal_input/terminal_output separation. It's been over 1.5
4439 years and those versions weren't widely deployed.
4440
4441 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
4442
4443 * disk/raid.c (insert_array): Don't count named arrays when looking
4444 for unused array numbers.
4445 Reported and tested by: Michael Guntsche.
4446
4447 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
4448
4449 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
4450 implementation of this so that grub-emu links again, with a note
4451 that this should support hotplugging in the future.
4452
4453 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
4454
4455 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
4456
4457 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
4458
4459 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
4460 handle on failure.
4461 (grub_loopback_close): Remove empty function.
4462 (grub_loopback_dev): Remove close method.
4463
4464 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
4465
4466 Disable EFI cursor when the EFI console becomes inactive.
4467
4468 * term/efi/console.c (grub_efi_console_init): New function.
4469 (grub_efi_console_fini): New function.
4470 (grub_console_term_output): Register init and fini methods.
4471
4472 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4473
4474 * tests/util/grub-shell-tester.in: Remove bashism and declare as
4475 sh script.
4476
4477 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 * disk/loopback.c (grub_loopback): Replace filename with file.
4480 (delete_loopback): Handle new semantics.
4481 (grub_cmd_loopback): Likewise.
4482 (grub_loopback_iterate): Likewise.
4483 (grub_loopback_close): Likewise.
4484
4485 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4486
4487 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
4488 with -p "".
4489 Reported by: Tito Keitel.
4490
4491 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4492
4493 * docs/grub.texi (Naming convention): Document new naming convention.
4494
4495 2010-07-20 Vadim Solomin <vadic052@gmail.com>
4496 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
4497
4498 Generate device.map in something closer to the old ordering.
4499
4500 * util/deviceiter.c (struct device): New declaration.
4501 (compare_file_names): Rename to ...
4502 (compare_devices): ... this. Sort by kernel name in preference to
4503 the stable by-id name, but keep the latter as a fallback comparison.
4504 Update header comment.
4505 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
4506 of `struct device' rather than of plain file names.
4507
4508 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
4509
4510 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
4511 on i386.
4512
4513 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4514
4515 * commands/acpi.c (setup_common_tables): Use sizeof instead of
4516 hardcoding size.
4517 (setv1table): Likewise.
4518
4519 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
4520
4521 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
4522 removing the homehost if present.
4523 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
4524 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
4525 removing the homehost if present.
4526 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
4527 if possible.
4528 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
4529
4530 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
4531 parameter. Set its pointer target to 0.
4532 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
4533 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
4534 `data_offset' value from the superblock for 1.x metadata.
4535 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
4536 data on the device.
4537 (insert_array): Record the start sector of data on the device.
4538 (grub_raid_register): Pass start_sector parameters to
4539 grub_raid_list->detect and insert_array.
4540 * include/grub/raid.h (struct grub_raid_array): Add start_sector
4541 member.
4542 (struct grub_raid): Add start_sector parameter to `detect'.
4543
4544 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
4545 __attribute__ ((packed)), leaving a comment.
4546 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
4547 (grub_mdraid_detect_09): ... here and ...
4548 (grub_mdraid_detect_1x): ... here.
4549
4550 2010-07-20 Peter Henn <peter.henn@web.de>
4551
4552 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
4553 chunk size and disk size, which are already given as sector counts
4554 as distinct from the 0.90 units. Fetch the correct device number
4555 from the role table instead of using the table index.
4556
4557 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
4558
4559 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
4560 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
4561 (WriteMostly1): New macro.
4562 Set array->name to NULL for metadata format 0.90. Add support for
4563 metadata 1.x. Fix some comments.
4564 * disk/raid.c (): Add support for name based RAID arrays. Fix a
4565 few comments.
4566 * util/getroot.c (grub_util_get_grub_dev): Add support for
4567 /dev/md/name style devices.
4568
4569 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
4570
4571 * .bzrignore: Ignore 20_linux_xen.
4572
4573 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
4574
4575 * util/import_unicode.py: Remove unnecessary imports.
4576
4577 2010-07-17 Aleš Nesrsta <starous@volny.cz>
4578
4579 Hotplugging and USB hub support.
4580
4581 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
4582 (grub_ohci): Likewise.
4583 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
4584 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
4585 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
4586 (GRUB_OHCI_CTRL_EDS): Likewise.
4587 (GRUB_OHCI_BULK_EDS): Likewise.
4588 (GRUB_OHCI_TDS): Likewise.
4589 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
4590 (grub_ohci_ed_phys2virt): New function.
4591 (grub_ohci_virt_to_phys): Likewise.
4592 (grub_ohci_td_phys2virt): Likewise.
4593 (grub_ohci_td_virt2phys): Likewise.
4594 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
4595 attachment.
4596 (grub_ohci_find_ed): New function.
4597 (grub_ohci_alloc_td): Likewise.
4598 (grub_ohci_free_td): Likewise.
4599 (grub_ohci_free_tds): Likewise.
4600 (grub_ohci_transfer): Use previously allocated memory.
4601 (grub_ohci_portstatus): Reset status changed bit.
4602 (grub_ohci_detect_dev): Supply status changed.
4603 (grub_ohci_fini_hw): Free memory.
4604 (grub_ohci_restore_hw): Reallocate memory.
4605 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
4606 Reset status change.
4607 (grub_uhci_detect_dev): Supply status_change.
4608 * bus/usb/usb.c (attach_hooks): New var.
4609 (grub_usb_device_attach): New function.
4610 (grub_usb_register_attach_hook_class): Likewise.
4611 (grub_usb_unregister_attach_hook_class): Likewise.
4612 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
4613 (grub_usb_add_hub): Reset connection changed bit.
4614 (attach_root_port): New function.
4615 (grub_usb_root_hub): Likewise.
4616 (poll_nonroot_hub): Likewise.
4617 (grub_usb_poll_devices): Likewise.
4618 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
4619 * disk/usbms.c (grub_usbms_open): Use device hooks.
4620 (grub_usbms_iterate) :Poll devices.
4621 (grub_usbms_finddevs): Split into ...
4622 (grub_usbms_attach): ... this ...
4623 (grub_usbms_attach): ... and this.
4624 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
4625 in detect_dev.
4626 (grub_usb_interface): New fields attached and detach_hook.
4627 (grub_usb_attach_hook_class): New type.
4628 (grub_usb_attach_desc): New struct.
4629 (grub_usb_register_attach_hook_class): New function.
4630 (grub_usb_unregister_attach_hook_class): Likewise.
4631 (grub_usb_poll_devices): Likewise.
4632 (grub_usb_device_attach): Likewise.
4633 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
4634 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
4635
4636 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
4637
4638 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
4639 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
4640 delta determination style. Works with most NetBSD partitions too.
4641
4642 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
4643
4644 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
4645 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
4646
4647 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
4648
4649 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
4650
4651 2010-07-14 Anton Blanchard <anton@samba.org>
4652
4653 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
4654 ET_DYN files.
4655
4656 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
4657
4658 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
4659
4660 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
4661
4662 * kern/partition.c (grub_partition_check_containment): New function to
4663 check that a partition is physically contained in a parent. Since
4664 offsets are relative (and non-negative), this reduces to checking that
4665 the partition ends before its parent.
4666 (grub_partition_map_probe): Discard out-of-range sub-partitions.
4667 (grub_partition_iterate): Likewise.
4668 * include/grub/partition.h (grub_partition_map): Slightly more detailed
4669 comments.
4670 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
4671 partitions that start before their parent, and add debug printfs.
4672
4673 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
4674
4675 * Makefile.in (.SUFFIX): Spell correctly, as ...
4676 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
4677 bare module name without `.mod', e.g. `test') tried to invoke a
4678 Modula-2 compiler.
4679
4680 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
4681
4682 * README: Point to the Info manual.
4683
4684 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
4685
4686 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
4687 2nd superblock position from partition size.
4688
4689 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
4690
4691 * Makefile.in (MAINTAINER_CLEANFILES): Remove
4692 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
4693 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
4694 outputs.
4695
4696 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
4697
4698 Restructure SCSI .id handling.
4699 Reported and tested by: Aleš Nesrsta.
4700
4701 * disk/ata.c (grub_atapi_close): Removed. All users updated.
4702 (grub_atapi_dev): Changed .name to "ata". New field .id.
4703 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
4704 (grub_usbms_dev): New field .id.
4705 * disk/scsi.c (grub_scsi_iterate): Generate name.
4706 (grub_scsi_open): Parse name.
4707 * include/grub/scsi.h (grub_make_scsi_id): New function.
4708 (grub_scsi_dev): Change iterate and open to number instead of naming
4709 busses. All users updated.
4710 (grub_scsi): Remove name. Add .bus.
4711
4712 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
4713
4714 * commands/help.c (grub_cmd_help): Fix a typo.
4715
4716 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
4717
4718 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
4719 Reported and tested by: Colin Watson.
4720
4721 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
4722
4723 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
4724 in this context.
4725
4726 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
4727
4728 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
4729
4730 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
4731
4732 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
4733 indentation.
4734
4735 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
4736
4737 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
4738 and disk/raid6_recover.c.
4739 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
4740 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
4741
4742 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
4743
4744 * term/gfxterm.c (repaint_schedulded): Rename to ...
4745 (repaint_scheduled): ... this. Update all callers.
4746 (repaint_was_schedulded): Rename to ...
4747 (repaint_was_scheduled): ... this. Update all callers.
4748
4749 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
4750
4751 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
4752 which we expect to be handled by upper layers.
4753
4754 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
4755
4756 * bus/usb/usbhub.c: #include time.h header.
4757
4758 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
4759
4760 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
4761 entry_name also for entries without stat blocks (e.g. ".."); fixes
4762 corruption of the first entry in a directory.
4763
4764 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
4765
4766 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
4767 after setting gfxterm as the active terminal. GRUB_BACKGROUND
4768 doesn't work otherwise.
4769
4770 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
4771
4772 * docs/grub.texi (Features): Update list of supported file systems.
4773 (GNU/Linux): Update for GRUB 2.
4774 (Serial terminal): Remove mention of --disable-serial, which was a
4775 GRUB Legacy configure option. Update instructions to use
4776 `terminal_input' and `terminal_output' rather than `terminal'.
4777 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
4778 configuration' and `Installing GRUB using grub-install'.
4779 (Menu entry editor): Update for GRUB 2.
4780 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
4781 Document new -a, -u, and -v options.
4782 (initrd): New section.
4783 (initrd16): New section.
4784 (linux): New section.
4785 (linux16): New section.
4786 (search): The `var' argument to `--set' is optional.
4787 (GRUB only offers a rescue shell): Go into a little more detail on
4788 drive ordering.
4789
4790 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
4791
4792 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
4793
4794 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
4795
4796 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
4797 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
4798
4799 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
4800
4801 * util/i386/pc/grub-setup.c (setup): Rename prefix to
4802 install_prefix, in line with install_dos_part and install_bsd_part.
4803 Add new prefix variable, which is copied to install_prefix after
4804 comparing core.img in memory with the one read from disk in the
4805 no-embedding case, and use that rather than overwriting
4806 install_prefix immediately when installing to a partition.
4807 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
4808 Bicakci.
4809
4810 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
4811
4812 * configure.ac: Avoid == in test command, it's not portable.
4813 * util/grub.d/30_os-prober.in: Likewise.
4814
4815 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
4816
4817 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
4818
4819 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
4820
4821 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
4822 multiple (top-level) partmaps.
4823
4824 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4825
4826 * util/i386/efi/grub-install.in: Don't use empty grub_device.
4827 Reported by: Tino Keitel.
4828
4829 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4830
4831 Bidi and diacritics support.
4832
4833 * Makefile.in (widthspec.bin): New target.
4834 (widthspec.h): Likewise.
4835 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
4836 * autogen.sh: Generate unidata.c.
4837 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
4838 * commands/ls.c (grub_ls_list_devices): Likewise.
4839 (grub_ls_list_files): Likewise.
4840 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
4841 (grub_mini_cmd_lsmod): Likewise.
4842 * commands/read.c: Likewise.
4843 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
4844 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
4845 * lib/arg.c (grub_arg_show_help): Likewise.
4846 * lib/crypto.c (grub_password_get): Likewise.
4847 * normal/auth.c (grub_username_get): Likewise.
4848 * normal/misc.c (grub_normal_print_device_info): Likewise.
4849 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
4850 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
4851 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
4852 (normal/charset.c_DEPENDENCIES): New variable.
4853 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
4854 (pkglib_MODULES): Remove charset.mod.
4855 (charset_mod_SOURCES): Removed.
4856 (charset_mod_CFLAGS): Likewise.
4857 (charset_mod_LDFLAGS): Likewise.
4858 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
4859 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
4860 and term/tparm.c.
4861 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
4862 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
4863 (kernel_img_HEADERS): Add terminfo.h.
4864 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
4865 Fill ->font. Reverse ascii bitmaps.
4866 (grub_font_get_xheight): New function.
4867 * font/font.c (grub_font_get_string_width): Moved from here ...
4868 * gfxmenu/font.c (grub_font_get_string_width): ... here.
4869 * font/font.c (grub_font_draw_string): Moved from here ...
4870 * gfxmenu/font.c (grub_font_draw_string): ... here.
4871 * font/font.c (grub_font_dup_glyph): New function.
4872 (grub_font_blit_glyph): Likewise.
4873 (grub_font_blit_glyph_mirror): Likewise.
4874 (blit_comb): Likewise.
4875 (grub_font_construct_dry_run): Likewise.
4876 (grub_font_get_constructed_device_width): Likewise.
4877 (grub_font_construct_glyph): Likewise.
4878 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
4879 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
4880 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
4881 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
4882 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
4883 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
4884 (grub_font_get_xheight): New proto.
4885 (grub_font_get_constructed_device_width): Likewise.
4886 (grub_font_construct_glyph): Likewise.
4887 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
4888 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
4889 * include/grub/font.h (grub_font_draw_string): Moved from here ...
4890 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
4891 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
4892 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
4893 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
4894 (grub_console_getcharwidth): Likewise.
4895 * include/grub/misc.h (grub_xputs): New proto.
4896 (grub_puts): Inlined.
4897 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
4898 (grub_normal_get_line_counter): Removed.
4899 (grub_install_newline_hook): Likewise.
4900 (grub_normal_get_char_counter): New proto.
4901 (grub_normal_reset_more): Likewise.
4902 (grub_xputs_normal): Likewise.
4903 * include/grub/powerpc/ieee1275/console.h: Removed.
4904 * include/grub/sparc64/ieee1275/console.h: Likewise.
4905 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
4906 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
4907 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
4908 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
4909 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
4910 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
4911 (grub_term_input): Pass reference to self. All users updated.
4912 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
4913 Pass reference to self. New fields normal_color, highlight_color and
4914 data. All users updated.
4915 (grub_putchar): Removed.
4916 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
4917 (grub_unicode_estimate_width): New function.
4918 (grub_term_getcharwidth): Add defaults.
4919 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
4920 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
4921 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
4922 (grub_cls): Remove EXPORT_FUNC.
4923 (grub_setcolorstate): Inline.
4924 (grub_newline_hook): Removed.
4925 * include/grub/terminfo.h: Rewritten. All users updated.
4926 * include/grub/unicode.h: New file.
4927 * include/grub/video.h (grub_video_signed_rect): New type.
4928 * kern/emu/console.c (grub_console_highlight_color): Removed.
4929 (grub_console_normal_color): Likewise.
4930 (grub_console_standard_color): Made static.
4931 (grub_ncurses_putchar): Remove mapping.
4932 (grub_ncurses_getcharwidth): Removed.
4933 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
4934 (grub_ncurses_setcolor): Removed.
4935 (grub_ncurses_getcolor): Likewise.
4936 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
4937 (grub_console_putchar): ... this.
4938 (grub_console_putchar): Handle argument difference.
4939 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
4940 console_init_early and console_init_lately.
4941 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
4942 * kern/misc.c (grub_puts): Removed.
4943 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
4944 (grub_vsnprintf_real): Remove str = NULL support.
4945 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
4946 * normal/charset.c (grub_utf8_to_ucs4): ... here.
4947 * kern/term.c (grub_putcode): Renamed to ...
4948 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
4949 (grub_putchar): Removed.
4950 (grub_xputs_dumb): New function.
4951 (grub_xputs): New variable.
4952 * lib/charset.c: Move from here ...
4953 * normal/charset.c: ... to here.
4954 (grub_ucs4_to_utf8): New function.
4955 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
4956 (join_types): New variable.
4957 (unpack_join): New function.
4958 (bidi_types): New variable.
4959 (unpack_bidi): New function.
4960 (get_bidi_type): Likewise.
4961 (get_join_type): Likewise.
4962 (is_mirrored): Likewise.
4963 (grub_unicode_get_comb_type): Likewise.
4964 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
4965 (is_type_after): Likewise.
4966 (grub_unicode_aglomerate_comb): Likewise.
4967 (bidi_line_wrap): Likewise.
4968 (grub_bidi_line_logical_to_visual): Likewise.
4969 (grub_bidi_logical_to_visual): Likewise.
4970 (grub_unicode_mirror_code): Likewise.
4971 (grub_unicode_shape_code): Likewise.
4972 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
4973 Don't use grub_putchar.
4974 * normal/main.c (grub_normal_init_page): Use grub_putcode.
4975 (grub_normal_reader_init): Likewise.
4976 (grub_xputs_saved): New variable.
4977 (GRUB_MOD_INIT): Set grub_xputs.
4978 (GRUB_MOD_FINI): Restore grub_xputs.
4979 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
4980 (menu_init): Avoid printing gfxmenu error.
4981 (show_menu): Use grub_normal_get_char_counter.
4982 * normal/menu_entry.c (update_screen): Fix out-of-array.
4983 (complete): Avoid NULL dereferencing.
4984 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
4985 * normal/menu_text.c (print_spaces): Removed.
4986 (grub_print_ucs4): Likewise.
4987 (grub_print_message_indented): Use grub_print_ucs4.
4988 (print_message): Use grub_putcode.
4989 (print_entry): Hanlde diacritics.
4990 * normal/term.c (term_state): New type.
4991 (grub_more_lines): Removed.
4992 (term_states): New variable.
4993 (grub_normal_line_counter): Renamed to ..
4994 (grub_normal_char_counter): ...this. All users updated.
4995 (grub_normal_get_line_counter): Renamed to ...
4996 (grub_normal_get_char_counter): ... this.
4997 (grub_normal_reset_more): New function.
4998 (process_newline): Removed.
4999 (print_more): New function.
5000 (grub_install_newline_hook): Removed.
5001 (map_code): New function.
5002 (grub_puts_terminal): Use grub_print_ucs4.
5003 (putglyph): New function.
5004 (putcode_real): Likewise.
5005 (grub_putcode): Use putcode_real.
5006 (get_maxwidth): New function.
5007 (get_startwidth): Likewise.
5008 (print_ucs4_terminal): Likewise.
5009 (find_term_state): Likewise.
5010 (put_glyphs_terminal): Likewise.
5011 (print_backlog): Likewise.
5012 (print_ucs4_real): Likewise.
5013 (grub_print_ucs4): Likewise.
5014 (grub_xputs_normal): Likewise.
5015 * term/efi/console.c (grub_console_putchar): Output diacritics.
5016 (grub_console_getcharwidth): Removed.
5017 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
5018 * term/gfxterm.c (clear_char): Free chars.
5019 (scroll_up): Avoid leaking memory.
5020 (grub_gfxterm_putchar): Support diacritics.
5021 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
5022 * term/i386/pc/console.c (grub_console_term_output): Declare as
5023 GRUB_TERM_CODE_TYPE_VGA.
5024 * term/i386/pc/vga.c (grub_vga_term): Declare as
5025 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
5026 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
5027 GRUB_TERM_CODE_TYPE_VGA.
5028 * term/i386/vga_common.c (map_char): Removed.
5029 (grub_console_putchar): Likewise.
5030 (grub_console_getcharwidth): Likewise.
5031 * term/ieee1275/ofconsole.c: Simplify using terminfo.
5032 (colors): Reordered to match terminfo.
5033 (grub_ofconsole_normal_color): Removed.
5034 (grub_ofconsole_writeesc): Likewise.
5035 (grub_ofconsole_highlight_color): Likewise.
5036 (grub_ofconsole_getcharwidth): Likewise.
5037 (grub_ofconsole_setcolorstate): Likewise.
5038 (grub_ofconsole_setcolor): Likewise.
5039 (grub_ofconsole_getcolor): Likewise.
5040 (grub_ofconsole_readkey): Renamed to ...
5041 (readkey): ... this. Remove escape sequence handling. Return -1 on no
5042 key.
5043 (grub_ofconsole_checkkey): Removed.
5044 (grub_ofconsole_getkey): Likewise.
5045 (grub_ofconsole_getxy): Likewise.
5046 (grub_ofconsole_gotoxy): Likewise.
5047 (grub_ofconsole_cls): Likewise.
5048 (grub_ofconsole_refresh): Likewise.
5049 (grub_ofconsole_terminfo_input): New struct.
5050 (grub_ofconsole_terminfo_output): Likewise.
5051 (grub_ofconsole_term_input): Use terminfo.
5052 (grub_ofconsole_term_output): Likewise.
5053 (grub_console_init): Split into ...
5054 (grub_console_init_early): ...this and ...
5055 (grub_console_init_lately): ...this. Use terminfo.
5056 (grub_ofconsole_putchar): Renamed to ...
5057 (put): ... this. Remove mapping.
5058 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
5059 * term/serial.c: Simplify using terminfo.
5060 (xpos): Removed.
5061 (ypos): Likewise.
5062 (keep_track): Likewise.
5063 (registered): Likewise.
5064 (input_buf): Likewise.
5065 (npending): Likewise.
5066 (serial_translate_key_sequence): Likewise.
5067 (fill_input_buf): Likewise.
5068 (grub_serial_checkkey): Likewise.
5069 (grub_serial_getkey): Likewise.
5070 (grub_serial_getxy): Likewise.
5071 (grub_serial_gotoxy): Likewise.
5072 (grub_serial_putchar): Likewise.
5073 (grub_serial_cls): Likewise.
5074 (grub_serial_setcolorstate): Likewise.
5075 (grub_serial_setcursor): Likewise.
5076 (serial_hw_init): Use serial_hw_fetch.
5077 (grub_serial_terminfo_input): New variable.
5078 (grub_serial_terminfo_output): Likewise.
5079 (grub_serial_term_input): Use terminfo.
5080 (grub_serial_term_output): Likewise.
5081 * term/terminfo.c (putstr): Use put.
5082 (grub_terminfo_all_free): New function
5083 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
5084 (grub_terminfo_output_register): New function.
5085 (grub_terminfo_output_unregister): Likewise.
5086 (grub_terminfo_getxy): Likewise.
5087 (grub_terminfo_readkey): Likewise.
5088 (grub_terminfo_checkkey): Likewise.
5089 (grub_terminfo_getkey): Likewise.
5090 (grub_terminfo_input_init): Likewise.
5091 (print_terminfo): Likewise.
5092 (grub_cmd_terminfo): Handle encoding.
5093 (grub_terminfo_gotoxy): Track position.
5094 (grub_terminfo_cls): Likewise.
5095 (grub_terminfo_putchar): Likewise.
5096 (grub_terminfo_setcolorstate): Handle colors
5097 (grub_terminfo_cursor_on): This ...
5098 (grub_terminfo_cursor_off): ... and this merged into ...
5099 (grub_terminfo_setcursor): ... this.
5100 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
5101 * unicode/ArabicShaping.txt: New file (imported from Unicode).
5102 * unicode/BidiMirroring.txt: Likewise.
5103 * unicode/UnicodeData.txt: Likewise.
5104 * unicode/COPYING: Likewise.
5105 * util/grub-editenv.c (grub_putchar): Removed.
5106 (grub_xputs_real): New function.
5107 (grub_xputs): New variable.
5108 * util/grub-fstest.c (grub_putchar): Removed.
5109 (grub_xputs_real): New function.
5110 (grub_xputs): New variable.
5111 * util/grub-mkdevicemap.c (grub_putchar): Removed.
5112 (grub_xputs_real): New function.
5113 (grub_xputs): New variable.
5114 * util/grub-probe.c (grub_putchar): Removed.
5115 (grub_xputs_real): New function.
5116 (grub_xputs): New variable.
5117 * util/grub-script-check.c (grub_putchar): Removed.
5118 (grub_xputs_real): New function.
5119 (grub_xputs): New variable.
5120 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
5121 (grub_xputs_real): New function.
5122 (grub_xputs): New variable.
5123 * util/import_unicode.py: New file.
5124 * util/grub-mkfont.c (ft_errmsgs): New array.
5125 (grub_glyph_info): Make bitmap a pointer.
5126 (file_formats): New type WIDTH_SPEC.
5127 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
5128 (options): Add width-spec.
5129 (help): Likewise.
5130 (add_char): Renamed to ...
5131 (add_glyph): ... this.
5132 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
5133 (glyph_replace): New type.
5134 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
5135 (add_char): New function.
5136 (add_subst): Likewise.
5137 (process_cursive): Likewise.
5138 (add_font): Handle GSUB.
5139 (write_font_width_spec): New function.
5140 (main): Sort glyphs.
5141 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
5142 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
5143 * kern/term.c (grub_cls): Moved from here...
5144 * normal/term.c (grub_cls): ... here.
5145
5146 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
5147
5148 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
5149 suitable for using within the format argument of printf when
5150 converting grub_size_t.
5151 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
5152 "x" to convert grub_size_t arguments.
5153
5154 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5155
5156 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
5157 too long captions.
5158 (list_get_minimal_size): Take selection box into account.
5159
5160 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5161
5162 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
5163 NULL font.
5164
5165 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
5166
5167 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
5168 devices when iterating over /dev/disk/by-id; they will be handled
5169 later if appropriate, which they aren't always (e.g. LVM).
5170
5171 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
5172
5173 * include/grub/misc.h (grub_reboot): Declare as noreturn.
5174 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
5175 fails.
5176 (grub_halt): Likewise.
5177 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
5178 reset-all fails.
5179 (grub_halt): Don't return, even if all of shut-down, power-off, and
5180 poweroff fail.
5181
5182 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
5183
5184 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
5185 arguments, not three.
5186
5187 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
5188
5189 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
5190 * util/grub.d/10_linux.in: Use it to check for LVM, so that
5191 LVM-on-RAID is handled correctly.
5192
5193 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
5194
5195 * docs/grub.texi (Changes from GRUB Legacy): New section.
5196 (Future): Fix typo.
5197
5198 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
5199
5200 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
5201 grub.d/README accidentally ends up executable for one reason or
5202 another. Ignore it.
5203
5204 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5205
5206 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
5207 (gpt_partition_map_iterate): Support non-512B sectors.
5208
5209 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5210
5211 * kern/efi/init.c (grub_efi_init): Disable watchdog.
5212 Tested by: Seth Goldberg.
5213
5214 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5215
5216 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
5217 Properly align mbi.
5218 Reported by: Seth Goldberg.
5219
5220 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
5221
5222 * util/grub-mkrescue.in: Avoid module duplication.
5223
5224 2010-07-01 Sean Finney <seanius@seanius.net>
5225
5226 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
5227
5228 2010-07-01 Sean Finney <seanius@seanius.net>
5229
5230 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
5231
5232 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
5233
5234 * disk/lvm.c (grub_lvm_checkvalue): New function.
5235 (grub_lvm_check_flag): Likewise.
5236
5237 2010-07-01 Robert Millan <rmh@gnu.org>
5238
5239 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
5240 Support 'p' as partition separator on kernel of FreeBSD (used
5241 with GPT labels).
5242 (grub_util_biosdisk_get_grub_dev): Likewise.
5243
5244 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
5245
5246 Yeeloong firmware port.
5247
5248 * boot/mips/yeeloong/fwstart.S: New file.
5249 * bus/cs5536.c (gpiodump): New const.
5250 (set_io_space): New function.
5251 (set_iod): Likewise.
5252 (set_p2d): Likewise.
5253 (grub_cs5536_init_geode): Likewise.
5254 * commands/mips/yeeloong/lsspd.c: New file.
5255 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
5256 (serial_mod_SOURCES): New variable.
5257 (serial_mod_CFLAGS): Likewise.
5258 (serial_mod_LDFLAGS): Likewise.
5259 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
5260 term/terminfo.c and term/tparm.c.
5261 (pkglib_IMAGES): Add fwstart.img.
5262 (fwstart_img_SOURCES): New variable.
5263 (fwstart_img_CFLAGS): Likewise.
5264 (fwstart_img_ASFLAGS): Likewise.
5265 (fwstart_img_LDFLAGS): Likewise.
5266 (fwstart_img_FORMAT): Likewise.
5267 (pkglib_MODULES): Add lsspd.mod.
5268 (lsspd_mod_SOURCES): New variable.
5269 (lsspd_mod_CFLAGS): Likewise.
5270 (lsspd_mod_LDFLAGS): Likewise.
5271 (pkglib_MODULES): Add halt.mod.
5272 (halt_mod_SOURCES): New variable.
5273 (halt_mod_CFLAGS): Likewise.
5274 (halt_mod_LDFLAGS): Likewise.
5275 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
5276 (serial_mod_SOURCES): Removed.
5277 (serial_mod_CFLAGS): Likewise.
5278 (serial_mod_LDFLAGS): Likewise.
5279 * disk/ata.c (check_device): New function.
5280 (grub_ata_device_initialize): Use check_device.
5281 (grub_ata_iterate): Recheck devices.
5282 (grub_ata_open): Likewise.
5283 (grub_atapi_iterate): Likewise.
5284 (grub_atapi_open): Likewise.
5285 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
5286 (GRUB_ATA_CH1_PORT1): Likewise.
5287 (GRUB_ATA_CH0_PORT2): Likewise.
5288 (GRUB_ATA_CH1_PORT2): Likewise.
5289 * include/grub/mips/loongson.h: New file.
5290 * include/grub/mips/yeeloong/ec.h: Likewise.
5291 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
5292 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
5293 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
5294 * include/grub/misc.h (grub_halt): Declare as noreturn.
5295 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
5296 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
5297 (UART_ENABLE_FIFO_TRIGGER1): New definition.
5298 (UART_ENABLE_DTRRTS): Likewise.
5299 (UART_ENABLE_MODEM): Removed.
5300 (UART_ENABLE_OUT2): New const.
5301 * include/grub/term.h (grub_term_register_input_active): New function.
5302 (grub_term_register_output_active): Likewise.
5303 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
5304 argument.
5305 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
5306 (init_pci): New function.
5307 (grub_machine_init): Execute platform init when firmware. Init serial.
5308 (grub_halt): Implement.
5309 (grub_exit): Likewise.
5310 (grub_reboot): Likewise.
5311 * term/serial.c (serial_hw_init): Update macros.
5312 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
5313 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
5314 (image_targets): New target mipsel-yeeloong-flash.
5315 (generate_image): Support IMAGE_YEELOONG_FLASH.
5316 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
5317 (grub_video_sm712_setup): Init card.
5318 (grub_video_sm712_set_palette): Removed.
5319 * video/sm712_init.c: New file.
5320
5321 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
5322
5323 * Makefile.in (install-local): Temporarily prepend $(builddir) to
5324 PATH when running help2man and then run it on the unadorned
5325 executable names, rather than passing $(builddir)/* paths to
5326 help2man. This avoids the build directory ending up in generated
5327 manual pages.
5328
5329 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
5330
5331 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
5332 to avoid accidents when debugging with 'sh -x'.
5333 * util/grub-mkrescue.in: Likewise.
5334 * util/grub.d/00_header.in: Likewise.
5335 * util/grub.d/10_hurd.in: Likewise.
5336 * util/grub.d/10_kfreebsd.in: Likewise.
5337 * util/grub.d/10_linux.in: Likewise.
5338 * util/grub.d/10_netbsd.in: Likewise.
5339 * util/grub.d/10_windows.in: Likewise.
5340 * util/grub.d/20_linux_xen.in: Likewise.
5341 * util/grub.d/30_os-prober.in: Likewise.
5342 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5343
5344 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
5345
5346 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
5347 last character in the buffer.
5348 Reported by: Vladimir Serbinenko.
5349
5350 2010-06-29 Robert Millan <rmh@gnu.org>
5351
5352 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
5353 (Command-line and menu entry commands): Document `badram' command.
5354
5355 2010-06-28 Robert Millan <rmh@gnu.org>
5356
5357 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
5358 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
5359 command using ${GRUB_BADRAM} as parameter.
5360
5361 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
5362
5363 * docs/grub.texi (Device map): New section.
5364 (Themes): New section (stub).
5365 * Makefile.in (docs/grub.info): The info documentation now builds
5366 without errors. Make sure it stays that way.
5367
5368 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
5369
5370 Use normal parser for menu entries.
5371 Reported by: Thomas Frauendorfer
5372
5373 * include/grub/parser.h (grub_parser_execute): Don't export.
5374 * normal/menu.c (grub_menu_execute_entry_real): New function.
5375 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
5376
5377 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
5378
5379 * docs/grub.texi (Embedded configuration): New section (replacing
5380 old "Preset Menu" stub).
5381 (Images): New section.
5382 (configfile): Note that any menu entries defined in `file' are shown
5383 immediately.
5384
5385 2010-06-28 Josh Triplett <josh@joshtriplett.org>
5386
5387 * mmap/i386/pc/mmap_helper.S: Set CF on return.
5388
5389 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
5390
5391 * util/grub-install.in: Add --debug-image= option.
5392
5393 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
5394
5395 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
5396 possible on Linux.
5397
5398 * util/deviceiter.c (check_device): Rename to ...
5399 (check_device_readable_unique): ... this. Update all callers.
5400 Maintain and check a list of which devices (by canonicalized name)
5401 have already been seen.
5402 (clear_seen_devices): New function.
5403 (compare_file_names) [__linux__]: New function.
5404 (grub_util_iterate_devices): Clear the list of seen devices on exit
5405 and (just in case) on entry.
5406 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
5407 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
5408 seen-devices list, superseded by general code in check_device.
5409
5410 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
5411
5412 * commands/cat.c (options): New variable.
5413 (grub_cmd_cat): Parse options. If the --dos option is given, print
5414 DOS-style "\r\n" line endings as simple newlines (Debian bug
5415 #586358).
5416 (GRUB_MOD_INIT): Use extcmd.
5417 (GRUB_MOD_FINI): Likewise.
5418 * docs/grub.texi (cat): Document --dos.
5419
5420 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
5421
5422 XEN with Linux grub-mkconfig support.
5423
5424 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
5425 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
5426 GRUB_CMDLINE_XEN_DEFAULT.
5427 * util/grub.d/20_linux_xen.in: New file.
5428
5429 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
5430
5431 Initialise VGA video on qemu ourselves.
5432
5433 * boot/i386/qemu/boot.S: Don't call 0xc000.
5434 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
5435 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
5436 (kernel_img_HEADERS): Add pci.h.
5437 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
5438 * configure.ac: Force unifont on qemu and yeeloong.
5439 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
5440 (grub_vga_palette_write): Use correct register.
5441 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
5442 Call grub_qemu_init_cirrus.
5443 * kern/i386/qemu/init.c: New file.
5444 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
5445
5446 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
5447
5448 2010-06-26 Pavel Roskin <proski@gnu.org>
5449
5450 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
5451 13.
5452
5453 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
5454
5455 * docs/grub.texi (Simple configuration): Explain that
5456 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
5457 set to `true' to disable their respective recovery entries, not
5458 merely set.
5459
5460 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
5461
5462 Make the `source' command slightly faster.
5463
5464 * normal/main.c (grub_normal_execute): Don't re-read list files when
5465 nested.
5466
5467 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
5468
5469 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
5470 field position and mask size to red fields from mode_info, not
5471 green.
5472 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
5473 Remove redundant tag->common.framebuffer_type assignment.
5474 Reported by: Seth Goldberg.
5475
5476 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
5477
5478 Sync up other versions of the Linux loader with Robert Millan's
5479 change of 2010-01-09, "Make loader output a bit more user-friendly".
5480
5481 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
5482 grub_dprintf().
5483 (grub_cmd_linux): Likewise.
5484 (grub_cmd_initrd): Likewise.
5485 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
5486 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
5487
5488 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
5489
5490 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
5491 larger than MEMORY_MAP_SIZE.
5492
5493 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
5494
5495 Fix parallel build.
5496
5497 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
5498 dependency.
5499 * script/parser.y: #include grub_script.tab.h header.
5500
5501 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5502
5503 Support >3GiB and <16MiB RAM in i386-qemu.
5504
5505 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
5506 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
5507 (grub_lower_mem): Removed.
5508 (grub_upper_mem): Likewise.
5509 (mem_size): Made static.
5510 (above_4g): New variable.
5511 (grub_machine_mmap_init): Detect small mem_size and above_4g.
5512 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
5513 support.
5514
5515 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5516
5517 Cirrus 5446 and Bochs video cards support.
5518
5519 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
5520 video_bochs.mod
5521 (video_cirrus_mod_SOURCES): New variable.
5522 (video_cirrus_mod_CFLAGS): Likewise.
5523 (video_cirrus_mod_LDFLAGS): Likewise.
5524 (video_bochs_mod_SOURCES): Likewise.
5525 (video_bochs_mod_CFLAGS): Likewise.
5526 (video_bochs_mod_LDFLAGS): Likewise.
5527 * include/grub/vga.h: New file.
5528 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
5529 (grub_video_fb_set_page_t): New type.
5530 (grub_video_fb_setup): New prototype.
5531 (grub_video_fb_swap_buffers): Likewise.
5532 (grub_video_fb_get_info_and_fini): Likewise.
5533 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
5534 (CRTC_DATA_PORT): Likewise.
5535 (CRTC_CURSOR): Likewise.
5536 (CRTC_CURSOR_ADDR_HIGH): Likewise.
5537 (CRTC_CURSOR_ADDR_LOW): Likewise.
5538 (CRTC_CURSOR_DISABLE): Likewise.
5539 (update_cursor): Use grub_vga_cr_write.
5540 (grub_vga_text_setcursor): Likewise.
5541 * video/bochs.c: New file.
5542 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
5543 (palette): Likewise.
5544 (palette_size): Likewise.
5545 (framebuffer): New variable.
5546 (grub_video_fb_init): Use 'framebuffer'.
5547 (grub_video_fb_fini): Likewise.
5548 (grub_video_fb_get_info): Likewise.
5549 (grub_video_fb_get_palette): Likewise.
5550 (grub_video_fb_set_palette): Likewise.
5551 (grub_video_fb_set_viewport): Likewise.
5552 (grub_video_fb_get_viewport): Likewise.
5553 (grub_video_fb_map_color): Likewise.
5554 (grub_video_fb_map_rgb): Likewise.
5555 (grub_video_fb_map_rgba): Likewise.
5556 (grub_video_fb_unmap_color): Likewise.
5557 (grub_video_fb_unmap_color_int): Likewise.
5558 (grub_video_fb_fill_rect): Likewise.
5559 (grub_video_fb_blit_bitmap): Likewise.
5560 (grub_video_fb_blit_render_target): Likewise.
5561 (grub_video_fb_scroll): Likewise.
5562 (grub_video_fb_create_render_target): Likewise.
5563 (grub_video_fb_doublebuf_blit_init): Likewise.
5564 (grub_video_fb_set_active_render_target): Handle doublebuffering.
5565 (doublebuf_pageflipping_update_screen): New function.
5566 (doublebuf_pageflipping_init): Likewise.
5567 (grub_video_fb_setup): Likewise.
5568 (grub_video_fb_swap_buffers): Likewise.
5569 (grub_video_fb_get_info_and_fini): Likewise.
5570 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
5571 All users updated.
5572 (doublebuf_pageflipping_commit): Restructured into ...
5573 (doublebuf_pageflipping_set_page): ... this.
5574 (doublebuf_pageflipping_update_screen): Removed.
5575 (doublebuf_pageflipping_init): Likewise.
5576 (double_buffering_init): Likewise.
5577 (grub_video_vbe_setup): Use grub_video_fb_setup.
5578 (grub_video_vbe_swap_buffers): Removed.
5579 (grub_video_vbe_set_active_render_target): Likewise.
5580 (grub_video_vbe_get_active_render_target): Likewise.
5581 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
5582 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
5583 grub_video_fb_set_active_render_target and
5584 grub_video_fb_get_active_render_target.
5585 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
5586 (SEQUENCER_DATA_PORT): Likewise.
5587 (MAP_MASK_REGISTER): Likewise.
5588 (CRTC_ADDR_PORT): Likewise.
5589 (CRTC_DATA_PORT): Likewise.
5590 (START_ADDR_HIGH_REGISTER): Likewise.
5591 (START_ADDR_LOW_REGISTER): Likewise.
5592 (GRAPHICS_ADDR_PORT): Likewise.
5593 (GRAPHICS_DATA_PORT): Likewise.
5594 (READ_MAP_REGISTER): Likewise.
5595 (INPUT_STATUS1_REGISTER): Likewise.
5596 (INPUT_STATUS1_VERTR_BIT): Likewise.
5597 (get_map_mask): Use grub_vga_sr_read.
5598 (set_map_mask): Use grub_vga_sr_write.
5599 (set_read_map): Use grub_vga_gr_write.
5600 (set_start_address): Use grub_vga_cr_write.
5601 * video/sm712.c (framebuffer): Remove leftover fields.
5602
5603 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
5604
5605 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
5606 setting GRUB_VIDEO_BACKEND. Make it available as a user override
5607 instead. Replace the gfxterm backend check with a check that
5608 ${GRUB_PREFIX}/video.lst is non-empty.
5609 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
5610 again.
5611 (load_video): New generated function. Call it before loading
5612 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
5613 * util/grub.d/10_linux.in (linux_entry): Call load_video.
5614 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
5615 * docs/grub.texi (Simple configuration): Document
5616 GRUB_VIDEO_BACKEND.
5617
5618 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5619
5620 Use video functions in linux and xnu loaders.
5621
5622 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
5623 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
5624 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
5625 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
5626 loader/i386/pc/linux.c.
5627 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
5628 (find_line_len): Removed.
5629 (find_framebuf): Likewise.
5630 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
5631 * loader/i386/efi/xnu.c: Removed.
5632 * loader/i386/pc/xnu.c: Moved from here...
5633 * loader/i386/xnu.c: ...here.
5634
5635 Enable priorities in video drivers.
5636
5637 * include/grub/video.h (grub_video_adapter_prio_t): New type.
5638 (grub_video_adapter): New field prio.
5639 (grub_video_register): Respect prio when inserting.
5640 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
5641 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
5642 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
5643 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
5644 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
5645 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
5646 * video/sm712.c (grub_video_sm712_adapter): Likewise.
5647
5648 Fix SDL driver ID.
5649
5650 * include/grub/video.h (grub_video_driver_id_t): New value
5651 GRUB_VIDEO_DRIVER_SDL.
5652 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
5653
5654 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
5655
5656 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
5657 argument to printf.
5658 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
5659
5660 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
5661
5662 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
5663 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
5664
5665 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
5666
5667 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
5668 directly, and recommend grub-install instead.
5669 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
5670
5671 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
5672
5673 Fix i386-pc prefix handling with nested partitions (Debian bug
5674 #585068). Note that the case where the core image is booted using
5675 multiboot and relocated from its original location still requires
5676 more work.
5677
5678 * kern/i386/pc/init.c (make_install_device): If the prefix starts
5679 with "(,", fill the boot drive in between those two characters, but
5680 expect that a full partition specification including partition map
5681 names will follow.
5682 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
5683 specified, write a prefix without the drive name but including a
5684 full partition specification.
5685
5686 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
5687
5688 * util/grub-mkconfig.in: Ignore non-option arguments, for
5689 compatibility with older versions (before 2010-06-12) which did the
5690 same. In particular, this makes it easier to ship an update-grub
5691 wrapper which is compatible with that used with GRUB Legacy (Debian
5692 bug #586056).
5693
5694 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
5695
5696 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
5697 for manual page generation.
5698
5699 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
5700
5701 * po/POTFILES: Remove leftover commands/handler.c.
5702
5703 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
5704
5705 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
5706 left this script non-functional.
5707
5708 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
5709
5710 * docs/man/grub-emu.h2m: New file.
5711
5712 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
5713
5714 * docs/grub.texi (Commands): Document reduced command set in rescue
5715 mode.
5716 (cpuid): New section.
5717
5718 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
5719
5720 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
5721 new partition naming style.
5722 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
5723
5724 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
5725
5726 Add "-o grub.iso" like cmdline options support.
5727
5728 * util/grub-install.in: Improve cmdline option parsing.
5729 * util/grub-mkconfig.in: Likewise.
5730 * util/grub-mkrescue.in: Likewise.
5731 * util/grub-reboot.in: Likewise.
5732 * util/grub-set-default.in: Likewise.
5733 * util/i386/efi/grub-install.in: Likewise.
5734 * util/ieee1275/grub-install.in: Likewise.
5735 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5736
5737 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
5738
5739 * .bzrignore: Ignore 41_custom.
5740
5741 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
5742
5743 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
5744
5745 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
5746
5747 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
5748 prototype declarations.
5749
5750 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
5751 generating fs, partmap, and video lists.
5752 * include/grub/fs.h (grub_fs_register): Omit prototype if
5753 GRUB_LST_GENERATOR is defined.
5754 * include/grub/partition.h (grub_partition_map_register): Likewise.
5755 * include/grub/video.h (grub_video_register): Likewise.
5756
5757 2010-06-12 Javier Martín <lordhabbit@gmail.com>
5758
5759 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
5760
5761 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
5762
5763 * util/grub-mkrescue.in: Support --xorriso argument.
5764
5765 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
5766
5767 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
5768 Suggested by: Thomas Schmitt.
5769
5770 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
5771
5772 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
5773 Suggested by: Thomas Schmitt.
5774
5775 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
5776
5777 custom.cfg support.
5778
5779 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
5780 * util/grub.d/41_custom.in: New file.
5781
5782 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
5783
5784 * util/grub-mkrescue.in (make_image): Remove sh module, which has
5785 been merged back into normal.
5786
5787 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
5788
5789 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
5790 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
5791
5792 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
5793
5794 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
5795 when generating manual pages.
5796 * docs/man/grub-bin2h.h2m: New file.
5797 * docs/man/grub-editenv.h2m: New file.
5798 * docs/man/grub-fstest.h2m: New file.
5799 * docs/man/grub-install.h2m: New file.
5800 * docs/man/grub-macho2img.h2m: New file.
5801 * docs/man/grub-mkconfig.h2m: New file.
5802 * docs/man/grub-mkdevicemap.h2m: New file.
5803 * docs/man/grub-mkfont.h2m: New file.
5804 * docs/man/grub-mkimage.h2m: New file.
5805 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
5806 * docs/man/grub-mkrelpath.h2m: New file.
5807 * docs/man/grub-mkrescue.h2m: New file.
5808 * docs/man/grub-ofpathname.h2m: New file.
5809 * docs/man/grub-pe2elf.h2m: New file.
5810 * docs/man/grub-probe.h2m: New file.
5811 * docs/man/grub-reboot.h2m: New file.
5812 * docs/man/grub-script-check.h2m: New file.
5813 * docs/man/grub-set-default.h2m: New file.
5814 * docs/man/grub-setup.h2m: New file.
5815
5816 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
5817
5818 Use FOR_* macros instead of *_iterate whenever possible.
5819
5820 * commands/handler.c: Removed.
5821 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
5822 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
5823 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
5824 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
5825 (grub_probe_SOURCES): Remove kern/parser.c.
5826 (util/grub-script-check.c_DEPENDENCIES): Removed.
5827 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
5828 and grub_script_check_init.c.
5829 (grub_script_check_init.lst): Removed.
5830 (grub_script_check_init.h): Likewise.
5831 (grub_script_check_init.c): Likewise.
5832 (pkglib_MODULES): Remove handler.mod and sh.mod.
5833 (handler_mod_SOURCES): Removed.
5834 (handler_mod_CFLAGS): Likewise.
5835 (handler_mod_LDFLAGS): Likewise.
5836 (normal_mod_SOURCES): Remove normal/handler.c.
5837 Add script/main.c, script/script.c, script/execute.c,
5838 script/function.c, script/lexer.c, grub_script.tab.c
5839 and grub_script.yy.c.
5840 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
5841 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
5842 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
5843 (grub_setup_SOURCES): Remove kern/parser.c.
5844 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
5845 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
5846 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
5847 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
5848 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
5849 (grub_setup_SOURCES): Remove kern/parser.c.
5850 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
5851 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
5852 * include/grub/command.h (grub_command_iterate): Removed.
5853 (FOR_COMMANDS): New macro.
5854 * include/grub/dl.h (grub_dl): New member next.
5855 (grub_dl_iterate): Removed.
5856 (grub_dl_head): New variable declaration.
5857 (FOR_DL_MODULES): New macro.
5858 * include/grub/fs.h: Include list.h.
5859 (grub_fs): Make next first element.
5860 (grub_fs_list): New variable declaration.
5861 (grub_fs_register): Make inline.
5862 (grub_fs_unregister): Likewise.
5863 (grub_fs_iterate): Removed.
5864 (FOR_FILESYSTEMS): New macro.
5865 * include/grub/handler.h: Removed.
5866 * include/grub/list.h (grub_list_hook_t): Removed.
5867 (grub_list_test_t): Likewise.
5868 (grub_list_pop): Likewise.
5869 (grub_list_iterate): Likewise.
5870 (grub_list_insert): Likewise.
5871 (FOR_LIST_ELEMENTS): New macro.
5872 * include/grub/parser.h (grub_parser_class): Removed.
5873 (grub_parser_register): Likewise.
5874 (grub_parser_unregister): Likewise.
5875 (grub_parser_get_current): Likewise.
5876 (grub_parser_set_current): Likewise.
5877 (grub_register_rescue_parser): Likewise.
5878 (grub_rescue_parse_line): New function.
5879 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
5880 * include/grub/script_sh.h (grub_script_function_list): New variable
5881 declaration.
5882 (FOR_SCRIPT_FUNCTIONS): New macro.
5883 (grub_script_function_iterate): Removed.
5884 (grub_normal_parse_line): New prototype.
5885 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
5886 (FOR_DISABLED_TERM_INPUTS): Likewise.
5887 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
5888 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
5889 * include/grub/video.h (grub_video_adapter): Move 'next' to first
5890 element.
5891 (grub_video_register): Inline.
5892 (grub_video_unregister): Likewise.
5893 (grub_video_adapter_list): New variable declaration.
5894 (grub_video_iterate): Removed.
5895 (FOR_VIDEO_ADAPTERS): New macro.
5896 * kern/dl.c (grub_dl_list): Removed. All users updated.
5897 (grub_dl_iterate): Removed.
5898 * kern/fs.c (grub_fs_list): Make global.
5899 (grub_fs_register): Removed.
5900 (grub_fs_unregister): Likewise.
5901 (grub_fs_iterate): Likewise.
5902 * kern/handler.c: Removed.
5903 * kern/list.c (grub_list_pop): Removed.
5904 (grub_list_iterate): Likewise.
5905 (grub_list_insert): Likewise.
5906 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
5907 (grub_prio_list_insert): Don't use grub_list_insert.
5908 * kern/main.c (grub_register_rescue_parser): Don't call
5909 grub_register_rescue_parser.
5910 * kern/parser.c (grub_parser_class): Removed.
5911 (grub_parser_execute): Use grub_rescue_parse_line.
5912 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
5913 (grub_rescue_parser): Removed.
5914 (grub_register_rescue_parser): Likewise.
5915 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
5916 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
5917 (grub_auth_check_authentication): Likewise.
5918 * normal/completion.c (iterate_command): Removed.
5919 (grub_normal_do_completion): Use FOR_COMMANDS.
5920 * normal/handler.c: Removed.
5921 * normal/main.c (read_config_file): Remove parser changing.
5922 (grub_normal_execute): Don't call read_handler_list.
5923 (grub_normal_read_line_real): Statically allocate prompt.
5924 (grub_cmdline_run): Use grub_normal_parse_line.
5925 (GRUB_MOD_FINI): Don't call free_handler_list.
5926 * normal/menu_entry.c (run): Likewise.
5927 * script/function.c (grub_script_function_list): Make global.
5928 (grub_script_function_iterate): Removed.
5929 * script/main.c (grub_normal_parse_line): Make global.
5930 (grub_sh_parser): Removed.
5931 (GRUB_MOD_INIT): Likewise.
5932 (GRUB_MOD_FINI): Likewise.
5933 * tests/lib/functional_test.c (grub_functional_test): Use
5934 FOR_LIST_ELEMENTS.
5935 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
5936 (grub_test_run): Use FOR_LIST_ELEMENTS.
5937 * tests/lib/unit_test.c (main): Likewise.
5938 * util/deviceiter.c (grub_util_iterate_devices): Don't use
5939 grub_list_pop.
5940 * util/grub-fstest.c (grub_term_input_class): Removed.
5941 (grub_term_output_class): Likewise.
5942 * util/grub-probe.c: Likewise.
5943 * util/i386/pc/grub-setup.c: Likewise.
5944 * util/sparc64/ieee1275/grub-setup.c: Likewise.
5945 * util/grub-script-check.c (main): Don't call grub_init_all and
5946 grub_fini_all.
5947 * video/video.c (grub_video_adapter_list): Make global.
5948 (grub_video_register): Removed.
5949 (grub_video_unregister): Likewise.
5950 (grub_video_iterate): Likewise.
5951
5952 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5953
5954 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
5955 reported by Henrique Ferreiro.
5956
5957 2010-06-09 Robert Millan <rmh@gnu.org>
5958
5959 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
5960 ones, when both are available.
5961
5962 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
5963
5964 Make --version uniform and avoid hard-coded program name.
5965
5966 * util/grub-mkimage.c (main): Use `program_name' instead of
5967 hard-coded string.
5968 * util/i386/pc/grub-setup.c (main): Likewise.
5969 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
5970 * util/grub-install.in: Save the basename of $0 in $self, and use the
5971 latter in informational messages. Use the same format for --version
5972 as the binary programs.
5973 * util/grub-mkconfig.in: Likewise.
5974 * util/grub-mkrescue.in: Likewise.
5975 * util/grub-reboot.in: Likewise.
5976 * util/grub-set-default.in: Likewise.
5977 * util/i386/efi/grub-install.in: Likewise.
5978 * util/ieee1275/grub-install.in: Likewise.
5979 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5980
5981 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
5982
5983 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
5984 embedding area. Use <= instead of == when checking for non-emptiness.
5985
5986 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
5987
5988 * configure.ac: Add `.' to the directories searched for unifont.
5989
5990 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
5991
5992 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
5993 grub_script.yy.h.
5994
5995 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
5996
5997 * docs/grub.texi (History): Expand to cover GRUB 2.
5998 (Serial terminal): Refer to `terminal_input' and `terminal_output'
5999 commands, not `terminal'.
6000 (serial): Likewise.
6001 (terminal_input): New section.
6002 (terminal_output): New section.
6003 (uppermem): New section (stub).
6004 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
6005
6006 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
6007
6008 * docs/grub.texi (Security): Menu entries are unrestricted by
6009 default, not restricted to superusers as I had previously thought.
6010 Reword to account for this.
6011
6012 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
6013
6014 * kern/emu/misc.c (device_mapper_null_log): New function.
6015 (grub_device_mapper_supported): New function.
6016 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
6017 prototype.
6018 * kern/emu/hostdisk.c (find_partition_start): Check whether
6019 device-mapper is supported before trying to use it.
6020 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
6021
6022 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
6023
6024 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
6025 (File name syntax): Likewise.
6026 (help): --all is no longer supported in GRUB 2. Be more precise
6027 about pattern matching.
6028
6029 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
6030
6031 * normal/completion.c (grub_normal_do_completion): When completing
6032 arguments to "set" and the current word contains an equals sign,
6033 skip to after the equals sign before starting completion.
6034
6035 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
6036
6037 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
6038
6039 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
6040
6041 * docs/grub.texi (Network): New section.
6042 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
6043 `(nd)' as in GRUB Legacy.
6044 (pxe_unload): New section.
6045
6046 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
6047
6048 * docs/grub.texi (Troubleshooting): `echo' is not usually available
6049 in the rescue shell, so recommend using `set' instead. Thanks,
6050 Jordan Uggla.
6051
6052 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
6053
6054 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
6055 (password): New section.
6056 (password_pbkdf2): New section.
6057 (search): New section.
6058 (Security): New section.
6059 (Troubleshooting): New section, currently very incomplete.
6060 (Invoking grub-mkpasswd-pbkdf2): New section.
6061 (Internals): New section, currently very incomplete.
6062
6063 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
6064
6065 * util/grub.d/00_header.in: Add some more quoting (of
6066 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
6067 work again.
6068 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
6069
6070 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
6071
6072 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
6073 to `count', fixing variable shadowing that broke the -c option.
6074
6075 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
6076
6077 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
6078 in case they contain spaces.
6079
6080 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
6081
6082 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
6083 "part_" to partmap module names, in line with grub-install.
6084 Reported by: Jindřich Makovička (Debian bug #584426).
6085
6086 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
6087
6088 * util/grub-mkimage.c: Make target-related error messages slightly
6089 more helpful; -O talks about "format". Explicitly point to the use
6090 of -O if no target is specified.
6091 Reported by: Didier Raboud (Debian bug #584415).
6092
6093 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
6094
6095 * INSTALL: Document several build requirements for optional features
6096 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
6097
6098 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
6099
6100 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
6101 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
6102 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
6103
6104 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
6105
6106 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
6107 Thanks to Jordan Uggla for spotting this.
6108
6109 2010-06-02 Aleš Nesrsta <starous@volny.cz>
6110
6111 Finally make USB usable.
6112
6113 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
6114 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
6115 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
6116 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
6117 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
6118 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
6119 (GRUB_OHCI_FSMPS): Likewise.
6120 (GRUB_OHCI_PERIODIC_START): Likewise.
6121 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
6122 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
6123 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
6124 (GRUB_OHCI_SET_PORT_RESET): Likewise.
6125 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
6126 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
6127 (grub_ohci_transaction): Likewise.
6128 (grub_ohci_transfer): Improve condition detection algorithms.
6129 Handle toggle property. Program the transactions correctly.
6130 Improve error handling. Various important fixups.
6131 (grub_ohci_portstatus): Put register writes in right order.
6132 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
6133 (grub_uhci_transfer): Don't show "failed" message on success.
6134 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
6135 array.
6136 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
6137 determine its size.
6138 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
6139 before initialization is completed. Use IN direction for empty
6140 transfers. Use last_trans and compute toggle.
6141 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
6142 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
6143 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
6144 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
6145 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
6146 (grub_usb_device): Increase toggle to 256.
6147 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
6148 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
6149 GRUB_USBMS_SUBCLASS_SFF8070.
6150 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
6151 (grub_scsi_inquiry): New member page and alloc_length.
6152 (grub_scsi_request_sense): New structure.
6153 (grub_scsi_request_sense_data): Likewise.
6154 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
6155 control.
6156 * disk/scsi.c (grub_scsi_request_sense): New function.
6157 (grub_scsi_test_unit_ready): Likewise.
6158 (grub_scsi_inquiry): Fill new fields.
6159 (grub_scsi_read_capacity): Likewise.
6160 (grub_scsi_read10): Add request sense at the end.
6161 (grub_scsi_read12): Likewise.
6162 (grub_scsi_write10): Likewise.
6163 (grub_scsi_write12): Likewise.
6164 (grub_scsi_open): Add Test Unit Ready.
6165 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
6166 Support additional subclasses. Con't clear halt yet. Activate the
6167 proper config. Calculate LUNs correctly.
6168 (grub_usbms_transfer): Various important fixups.
6169
6170 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6171
6172 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
6173 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
6174 (grub_ohci_fini_hw): New function.
6175 (grub_ohci_restore_hw): Likewise.
6176 (GRUB_MOD_INIT(ohci)): Register preboot hook.
6177 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
6178 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
6179
6180 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6181
6182 Dedicated DMA allocations.
6183
6184 * bus/pci.c (grub_memalign_dma32): New function
6185 (grub_dma_free): Likewise.
6186 (grub_dma_get_virt): Likewise.
6187 (grub_dma_get_phys): Likewise.
6188 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
6189 (grub_ohci_pci_iter): Use dma32_alloc.
6190 (grub_ohci_transfer): Likewise.
6191 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
6192 (grub_usb_bulk_readwrite): Likewise.
6193 * include/grub/pci.h: Add declarations.
6194
6195 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6196
6197 CS5536 support.
6198
6199 * bus/cs5536.c: New file.
6200 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
6201 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
6202 (cs5536_mod_SOURCES): New variable.
6203 (cs5536_mod_CFLAGS): Likewise.
6204 (cs5536_mod_LDFLAGS): Likewise.
6205 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
6206 machine/pci.h.
6207 (kernel_img_SOURCES): Add bus/cs5536.c.
6208 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
6209 usb_keyboard.mod.
6210 (usb_mod_SOURCES): New variable.
6211 (usb_mod_CFLAGS): New variable.
6212 (usb_mod_LDFLAGS): New variable.
6213 (usbtest_mod_SOURCES): New variable.
6214 (usbtest_mod_CFLAGS): New variable.
6215 (usbtest_mod_LDFLAGS): New variable.
6216 (ohci_mod_SOURCES): New variable.
6217 (ohci_mod_CFLAGS): New variable.
6218 (ohci_mod_LDFLAGS): New variable.
6219 (usbms_mod_SOURCES): New variable.
6220 (usbms_mod_CFLAGS): New variable.
6221 (usbms_mod_LDFLAGS): New variable.
6222 (usb_keyboard_mod_SOURCES): New variable.
6223 (usb_keyboard_mod_CFLAGS): New variable.
6224 (usb_keyboard_mod_LDFLAGS): New variable.
6225 * include/grub/smbus.h: New file.
6226 * include/grub/cs5536.h: New file.
6227
6228 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
6229
6230 * util/grub.d/00_header.in: Add safety check to make sure that
6231 ${locale_dir} exists before trying to probe it.
6232
6233 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
6234
6235 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
6236 per the GNU Coding Standards; this is now too obscure to be worth
6237 documenting.
6238 (QNX): Likewise.
6239 (chainloader): Remove cross-reference to `SCO UnixWare'.
6240
6241 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
6242
6243 * docs/grub.texi (Chain-loading): New section.
6244 (DOS/Windows): New section, borrowed from GRUB Legacy with details
6245 adjusted for GRUB 2.
6246 (SCO UnixWare): Likewise.
6247 (QNX): Likewise.
6248 (chainloader): Add reference to `Block list syntax'.
6249 (drivemap): New section.
6250 (parttool): New section.
6251
6252 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
6253
6254 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
6255 the grub shell'.
6256 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
6257 (Installing GRUB using grub-install): Remove reference to the grub
6258 shell; mention `grub-mkimage' and `grub-setup' instead.
6259 (Invoking grub-install): Likewise.
6260 (Interface): Add reference to `Menu entry editor'.
6261 (serial): Remove `--device' option.
6262
6263 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
6264
6265 * docs/grub.texi (Configuration): New section, documenting
6266 configuration file generation using grub-mkconfig. I've left a slot
6267 for documenting the full shell scripting format but have not yet
6268 started on writing that up.
6269 (Invoking grub-mkconfig): New section.
6270
6271 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
6272
6273 * docs/grub.texi (direntry): Remove grub-terminfo reference.
6274 (GNU GRUB manual): Likewise.
6275 (General commands): Update description of `terminfo' for GRUB 2.
6276
6277 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
6278
6279 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
6280 (GRUB_MOD_INIT): Fix capitalisation.
6281 * docs/grub.texi (Command-line and menu entry commands): Document
6282 gettext and gptsync commands.
6283
6284 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
6285
6286 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
6287 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
6288
6289 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
6290
6291 Add btrfs probing support, currently only in the single-device case.
6292
6293 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
6294 function.
6295 (grub_guess_root_device): Call find_root_device_from_mountinfo
6296 before looking in /dev.
6297
6298 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6299
6300 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
6301 GRUB_DISK_SIZE_UNKNOWN.
6302 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
6303
6304 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
6305
6306 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
6307 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
6308 corrupted or not synced properly.
6309
6310 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6311
6312 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
6313 Reported by: Seth Goldberg.
6314
6315 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6316
6317 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
6318 addition of dest.
6319 Reported by: Seth Goldberg.
6320
6321 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6322
6323 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
6324 Reported by: Seth Goldberg.
6325
6326 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6327
6328 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
6329 64-bit address as signed on MIPS.
6330
6331 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
6332
6333 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
6334 to the empty string.
6335
6336 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
6337
6338 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
6339
6340 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
6341 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
6342 * kern/misc.c (__enable_execute_stack): Disable on
6343 GRUB_MACHINE_EMU.
6344
6345 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
6346
6347 Make grub-probe work with symbolic links under /dev/mapper as well
6348 as with real block devices. The Linux world seems to be (at best)
6349 in transition here, and GRUB shouldn't get caught in the middle.
6350
6351 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
6352 /dev/mapper.
6353
6354 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
6355
6356 * util/grub-script-check.c (main): Ensure defined behaviour on empty
6357 input files (in which case exit zero).
6358
6359 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
6360
6361 * kern/emu/misc.c (canonicalize_file_name): realpath can still
6362 return NULL for various reasons even if it has a maximum-length
6363 buffer: for example, there might be a symlink loop, or the path
6364 might exceed PATH_MAX. If this happens, return NULL.
6365
6366 2010-05-27 Robert Millan <rmh@gnu.org>
6367
6368 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
6369 partmap module to handle cross-partmap setups.
6370 Reported by Orestes Mas. Gràcies!
6371
6372 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
6373
6374 * util/grub-mkrescue.in: Initialise override_dir rather than
6375 assuming that it's unset or empty in the environment.
6376
6377 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
6378
6379 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
6380 variable index into p_index to suppress a warning with -Wshadow.
6381
6382 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
6383
6384 * INSTALL: Added flex >= 2.5.35 requirement.
6385
6386 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6387
6388 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
6389
6390 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6391
6392 cmostest support.
6393
6394 * commands/i386/cmostest.c: New file.
6395 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
6396 (cmostest_mod_SOURCES): New variable.
6397 (cmostest_mod_CFLAGS): Likewise.
6398 (cmostest_mod_LDFLAGS): Likewise.
6399 * conf/i386-pc.rmk: Likewise.
6400 * docs/grub.texi (Vendor power-on keys): New section.
6401 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
6402 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
6403 and GRUB_BUTTON_CMOS_ADDRESS.
6404 * util/grub.d/00_header.in: Handle powering-on by separate button.
6405
6406 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6407
6408 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
6409 Removed drawing_scrollbar argument. All users updated
6410 Fixes #29792.
6411 Reported by Jo Shields
6412
6413 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6414
6415 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
6416 buffer since gfxterm handles double repaint.
6417
6418 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6419
6420 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
6421 * term/gfxterm.c (real_scroll): Likewise.
6422
6423 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6424
6425 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
6426 before calling BIOS.
6427
6428 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6429
6430 * include/grub/i18n.h: Always enable grub_gettext.
6431
6432 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6433
6434 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
6435 partition naming style.
6436
6437 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
6438
6439 * util/grub-mkconfig.in: Fix handling of -o so that it works when
6440 not the first option.
6441
6442 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
6443
6444 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
6445
6446 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
6447
6448 * util/misc.c: Move inclusion of <limits.h> to ...
6449 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
6450
6451 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
6452
6453 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
6454 Fix merge error in NetBSD code.
6455 (find_partition_start) [__NetBSD__]: Likewise.
6456
6457 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
6458
6459 Fix grub-mkrescue usage unit testing.
6460
6461 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
6462
6463 2010-05-18 Christian Franke <franke@computer.org>
6464
6465 * util/grub.d/10_windows.in: Use path names instead of
6466 drive letters to prevent warning from Cygwin 1.7.
6467 Add drivemap command to menuentry if needed.
6468
6469 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
6470
6471 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
6472 gnumach and gnumach.gz.
6473
6474 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6475
6476 * include/grub/i18n.h (gettext): Inline instead of using #define.
6477 (grub_gettext): Likewise.
6478 (_): Likewise.
6479
6480 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6481
6482 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
6483 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
6484 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
6485 (main): Add a slash after pkglibdirroot.
6486
6487 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6488
6489 * util/grub-install.in: Add missing "in" keyword.
6490
6491 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6492
6493 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
6494 Reported by: Seth Goldberg.
6495
6496 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6497
6498 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
6499
6500 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
6501
6502 * configure.ac: Check for Linux device-mapper support.
6503
6504 * util/hostdisk.c (device_is_mapped): New function.
6505 (find_partition_start): New function, partly broken out from
6506 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
6507 device-mapper support added.
6508 (linux_find_partition): Use find_partition_start.
6509 (convert_system_partition_to_system_disk): Add `st' argument.
6510 Support Linux /dev/mapper/* devices if device-mapper support is
6511 available; only DM-RAID devices are understood at present.
6512 (find_system_device): Add `st' argument. Pass it to
6513 convert_system_partition_to_system_disk.
6514 (grub_util_biosdisk_get_grub_dev): Pass stat result to
6515 find_system_device and convert_system_partition_to_system_disk. Use
6516 find_partition_start.
6517
6518 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
6519 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
6520 * util/deviceiter.c [__linux__]: Define MINOR.
6521 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
6522 * util/mkdevicemap.c (grub_putchar): New function.
6523 (grub_getkey): New function.
6524 (grub_refresh): New function.
6525 (main): Set debug=all if -v -v is used.
6526
6527 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
6528
6529 Fix build with non-GNU libcs.
6530
6531 * util/misc.c (canonicalize_file_name): Move to ...
6532 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
6533 grub_make_system_path_relative_to_its_root.
6534
6535 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
6536
6537 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
6538 we handle finding grub-mkimage. Default to finding grub-mkimage in
6539 ${bindir} with program_transform_name applied, and provide a
6540 --grub-mkimage option to override this.
6541
6542 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6543
6544 Remove grub-mkisofs.
6545
6546 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
6547 (grub_mkisofs_SOURCES): Removed.
6548 (grub_mkisofs_CFLAGS): Removed.
6549 * util/mkisofs/defaults.h: Removed.
6550 * util/mkisofs/eltorito.c: Likewise.
6551 * util/mkisofs/exclude.h: Likewise.
6552 * util/mkisofs/hash.c: Likewise.
6553 * util/mkisofs/include/: Likewise.
6554 * util/mkisofs/include/fctldefs.h: Likewise.
6555 * util/mkisofs/include/mconfig.h: Likewise.
6556 * util/mkisofs/include/prototyp.h: Likewise.
6557 * util/mkisofs/include/statdefs.h: Likewise.
6558 * util/mkisofs/iso9660.h: Likewise.
6559 * util/mkisofs/joliet.c: Likewise.
6560 * util/mkisofs/match.c: Likewise.
6561 * util/mkisofs/match.h: Likewise.
6562 * util/mkisofs/mkisofs.c: Likewise.
6563 * util/mkisofs/mkisofs.h: Likewise.
6564 * util/mkisofs/msdos_partition.h: Likewise.
6565 * util/mkisofs/multi.c: Likewise.
6566 * util/mkisofs/name.c: Likewise.
6567 * util/mkisofs/rock.c: Likewise.
6568 * util/mkisofs/tree.c: Likewise.
6569 * util/mkisofs/write.c: Likewise.
6570
6571 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6572
6573 Unify grub-mkimage accross platforms.
6574
6575 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
6576 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
6577 (grub_mkelfimage_SOURCES): Removed.
6578 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
6579 (util/grub-mkimage.c_DEPENDENCIES): .. this.
6580 (bin_UTILITIES): Add grub-mkimage.
6581 (grub_mkimage_SOURCES): New variable.
6582 (kernel_img_HEADERS): Remove machine/kernel.h.
6583 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
6584 (pkglib_PROGRAMS): Add kernel.img.
6585 (kernel_img_HEADERS): Add machine/kernel.h.
6586 (kernel_img_FORMAT): Removed.
6587 (bin_UTILITIES): Remove grub-mkimage.
6588 (grub_mkimage_SOURCES): Removed.
6589 (grub_mkimage_CFLAGS): Likewise.
6590 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
6591 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
6592 (pkglib_PROGRAMS): Add kernel.img.
6593 (bin_UTILITIES): Remove grub-mkimage.
6594 (grub_mkimage_SOURCES): Removed.
6595 (grub_mkimage_CFLAGS): Likewise.
6596 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
6597 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
6598 (pkglib_PROGRAMS): Add kernel.img.
6599 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
6600 (pkglib_PROGRAMS): Add kernel.img.
6601 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
6602 (grub_mkimage_SOURCES): Removed.
6603 (grub_mkimage_CFLAGS): Likewise.
6604 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
6605 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
6606 (pkglib_PROGRAMS): Add kernel.img.
6607 (bin_UTILITIES): Remove grub-mkimage.
6608 (grub_mkimage_SOURCES): Removed.
6609 (grub_mkimage_CFLAGS): Likewise.
6610 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
6611 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
6612 (grub_mkimage_SOURCES): Removed.
6613 (grub_mkimage_CFLAGS): Likewise.
6614 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
6615 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
6616 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
6617 (grub_pe32_optional_header): ... this.
6618 (grub_pe64_optional_header): ... and this. All users updated.
6619 (GRUB_PE32_PE32_MAGIC): Split into ..
6620 (GRUB_PE32_PE32_MAGIC): .. this.
6621 (GRUB_PE32_PE64_MAGIC): .. and this.
6622 (GRUB_PE32_SIGNATURE_SIZE): New definition.
6623 * include/grub/elf.h (PT_GNU_STACK): New definition.
6624 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
6625 * include/grub/i386/efi/kernel.h: Likewise.
6626 * include/grub/i386/kernel.h: Likewise.
6627 * include/grub/i386/pc/kernel.h: Likewise.
6628 * include/grub/i386/qemu/boot.h: Likewise.
6629 * include/grub/mips/kernel.h: Likewise.
6630 * include/grub/mips/qemu-mips/kernel.h: Likewise.
6631 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
6632 * include/grub/powerpc/kernel.h: Likewise.
6633 * include/grub/sparc64/ieee1275/boot.h: Likewise.
6634 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
6635 * include/grub/sparc64/kernel.h: Likewise.
6636 * include/grub/x86_64/efi/kernel.h: Likewise.
6637 * include/grub/x86_64/kernel.h: Likewise.
6638 * include/grub/offsets.h: New file.
6639 * include/grub/kernel.h (grub_module_info): Split into ...
6640 (grub_module_info32): ... this.
6641 (grub_module_info64): ... and this.
6642 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
6643 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
6644 (grub_boot_blocklist): Moved from here ...
6645 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
6646 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
6647 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
6648 * include/grub/types.h (grub_target_to_host16): Removed.
6649 (grub_target_to_host32): Likewise.
6650 (grub_target_to_host64): Likewise.
6651 (grub_host_to_target16): Likewise.
6652 (grub_host_to_target32): Likewise.
6653 (grub_host_to_target64): Likewise.
6654 (grub_host_to_target_addr): Likewise.
6655
6656 Support grub-mkrescue for efi, coreboot and qemu.
6657
6658 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
6659 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
6660 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
6661 * util/grub-mkrawimage.c: Moved from here ...
6662 * util/grub-mkimage.c: ... here. All users updated.
6663 (ALIGN_ADDR): Use image_target.
6664 (TARGET_NO_FIELD): New const.
6665 (image_target_desc): New type.
6666 (image_targets): New array.
6667 (grub_target_to_host64): Use image_target.
6668 (grub_target_to_host32): Likewise.
6669 (grub_target_to_host16): Likewise.
6670 (grub_host_to_target64): Likewise.
6671 (grub_host_to_target32): Likewise.
6672 (grub_host_to_target16): Likewise.
6673 (grub_host_to_target_addr): Likewise.
6674 (generate_image): Handle multiimage.
6675 (main): Require -O parameter. All users updated.
6676 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
6677 util/efi/grub-mkimage.c
6678 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
6679 New option --rom-directory.
6680 Use xorriso.
6681 * util/i386/efi/grub-mkimage.c: Removed.
6682 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
6683 (grub_target_to_host32): Likewise.
6684 (grub_target_to_host64): Likewise.
6685 (grub_host_to_target16): Likewise.
6686 (grub_host_to_target32): Likewise.
6687 (grub_host_to_target64): Likewise.
6688 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
6689 (grub_target_to_host32): Likewise.
6690 (grub_target_to_host64): Likewise.
6691 (grub_host_to_target16): Likewise.
6692 (grub_host_to_target32): Likewise.
6693 (grub_host_to_target64): Likewise.
6694
6695 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
6696
6697 Source tree is reorganized for emu build.
6698
6699 * include/grub/util/console.h: Move from here...
6700 * include/grub/emu/console.h: ...to here.
6701 * include/grub/util/getroot.h: Move from here...
6702 * include/grub/emu/getroot.h: ...to here.
6703 * include/grub/util/hostdisk.h: Move from here...
6704 * include/grub/emu/hostdisk.h: ...to here.
6705 * util/console.c: Move from here...
6706 * kern/emu/console.c: ...to here.
6707 * util/getroot.c: Move from here...
6708 * kern/emu/getroot.c: ...to here.
6709 * util/grub-emu.c: Move from here...
6710 * kern/emu/main.c: ...to here.
6711 * util/hostdisk.c: Move from here...
6712 * kern/emu/hostdisk.c: ...to here.
6713 * util/hostfs.c: Move from here...
6714 * kern/emu/hostfs.c: ...to here.
6715 * util/mm.c: Move from here...
6716 * kern/emu/mm.c: ...to here.
6717 * util/pci.c: Move from here...
6718 * bus/emu/pci.c: ...to here.
6719 * util/sdl.c: Move from here...
6720 * video/emu/sdl.c: ...to here.
6721 * util/time.c: Move from here...
6722 * kern/emu/time.c: ...to here.
6723 * util/usb.c: Move from here...
6724 * bus/usb/emu/usb.c: ...to here.
6725
6726 * include/grub/emu/misc.h: New header for grub-emu functions.
6727 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
6728
6729 * conf/any-emu.rmk: Rule updates for above renames.
6730 * conf/common.rmk: Likewise.
6731 * conf/i386-pc.rmk: Likewise.
6732 * conf/i386-qemu.rmk: Likewise.
6733 * conf/mips.rmk: Likewise.
6734 * conf/sparc64-ieee1275.rmk: Likewise.
6735 * conf/x86-efi.rmk: Likewise.
6736
6737 * disk/lvm.h: #include updates for above renames.
6738 * util/grub-mkrelpath.c: Likewise.
6739 * util/grub-probe.c: Likewise.
6740 * util/i386/pc/grub-setup.c: Likewise.
6741 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6742 * kern/emu/console.c: Likewise.
6743 * kern/emu/getroot.c: Likewise.
6744 * kern/emu/hostdisk.c: Likewise.
6745 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
6746
6747 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
6748 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
6749 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
6750 * util/misc.c: Remove grub-emu functions.
6751
6752 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
6753
6754 Fix gfxmenu crash.
6755 Reported by: Thorsten Grützmacher.
6756
6757 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
6758 timeout hook.
6759 (circprog_set_property): Register and unregister timeout hook.
6760 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
6761 (label_destroy): Free template. and unregister hook.
6762 (label_set_state): New function.
6763 (label_set_property): Handle templates and hooks.
6764 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
6765 timeout hook.
6766 (progress_bar_set_property): Register and unregister timeout hook.
6767 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
6768 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
6769 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
6770 (update_timeout_visit): Removed.
6771 (update_timeouts): New function.
6772 (redraw_timeouts): Likewise.
6773 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
6774 (grub_gfxmenu_clear_timeout): Likewise.
6775 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
6776 (grub_gfxmenu_timeout_notify): Likewise.
6777 (grub_gfxmenu_timeout_notifications): New external variable.
6778 (grub_gfxmenu_timeout_register): New function.
6779 (grub_gfxmenu_timeout_unregister): Likewise.
6780
6781 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6782
6783 Transform (broken) vga terminal into (working) vga video driver.
6784
6785 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
6786 video/i386/pc/vga.c.
6787 * include/grub/video.h (grub_video_driver_id):
6788 Add GRUB_VIDEO_DRIVER_VGA.
6789 * term/i386/pc/vga.c: Renamed to ...
6790 * video/i386/pc/vga.c: ...this
6791 (DEBUG_VGA): Removed.
6792 (CHAR_WIDTH): Likewise.
6793 (CHAR_HEIGHT): Likewise.
6794 (TEXT_WIDTH): Likewise.
6795 (TEXT_HEIGHT): Likewise.
6796 (DEFAULT_FG_COLOR): Likewise.
6797 (DEFAULT_BG_COLOR): Likewise.
6798 (colored_char): Likewise.
6799 (xpos): Likewise.
6800 (ypos): Likewise.
6801 (cursor_state): Likewise.
6802 (fg_color): Likewise.
6803 (bg_color): Likewise.
6804 (text_buf): Likewise.
6805 (page): Likewise.
6806 (font): Likewise.
6807 (framebuffer): New variable.
6808 (set_read_map): Disabled.
6809 (setup): New variable.
6810 (is_target): Likewise.
6811 (grub_vga_mod_init): Likewise.
6812 (grub_vga_mod_fini): Likewise.
6813 (check_vga_mem): Likewise.
6814 (write_char): Likewise.
6815 (write_cursor): Likewise.
6816 (scroll_up): Likewise.
6817 (grub_vga_putchar): Likewise.
6818 (grub_vga_getcharwidth): Likewise.
6819 (grub_vga_getwh): Likewise.
6820 (grub_vga_getxy): Likewise.
6821 (grub_vga_gotoxy): Likewise.
6822 (grub_vga_cls): Likewise.
6823 (grub_vga_setcolorstate): Likewise.
6824 (grub_vga_setcursor): Likewise.
6825 (grub_video_vga_init): New function.
6826 (grub_video_vga_setup): Likewise.
6827 (grub_video_vga_fini): Likewise.
6828 (update_target): Likewise.
6829 (grub_video_vga_blit_bitmap): Likewise.
6830 (grub_video_vga_blit_render_target): Likewise.
6831 (grub_video_vga_set_active_render_target): Likewise.
6832 (grub_video_vga_get_active_render_target): Likewise.
6833 (grub_video_vga_swap_buffers): Likewise.
6834 (grub_video_vga_set_palette): Likewise.
6835 (grub_video_vga_get_info_and_fini): Likewise.
6836 (grub_vga_term): Removed.
6837 (grub_video_vga_adapter): New variable.
6838 (GRUB_MOD_INIT): Register a video driver instead of terminal.
6839 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
6840
6841 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6842
6843 * video/readers/jpeg.c: Indented.
6844
6845 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6846
6847 Various jpeg cleanups.
6848
6849 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
6850 (grub_jpeg_decode_quan_table): Use sizeof.
6851 (grub_jpeg_decode_du): Use ARRAY_SIZE.
6852
6853 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
6854
6855 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
6856 tables. Ignore non-last ac bit.
6857 (grub_jpeg_decode_quan_table): Likewise.
6858
6859 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6860
6861 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
6862 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
6863 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6864 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
6865 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
6866 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
6867
6868 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6869
6870 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
6871 error.
6872
6873 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6874
6875 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
6876
6877 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6878
6879 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
6880 condition.
6881
6882 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6883
6884 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
6885 part.
6886
6887 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6888
6889 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
6890 pointers.
6891
6892 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6893
6894 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
6895
6896 2010-05-01 Christian Franke <franke@computer.org>
6897
6898 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
6899 Remove broken Cygwin path conversion.
6900 * util/misc.c: [__CYGWIN__] Add include and define.
6901 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
6902 for Cygwin 1.7.
6903 (make_system_path_relative_to_its_root): Simplify loop, replace early
6904 return by break.
6905 [__CYGWIN__] Add conversion to win32 path.
6906 Include "/" case in trailing slash removal.
6907
6908 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6909
6910 * kern/main.c (grub_load_config): Fix copy-pasted comment.
6911 Reported by: Seth Goldberg
6912
6913 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6914
6915 * commands/help.c (grub_cmd_help): Fix a typo.
6916 Reported by: Seth Goldberg
6917
6918 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6919
6920 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
6921 name and add N_.
6922 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
6923 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
6924 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
6925 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
6926 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
6927 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
6928 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
6929 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
6930 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
6931 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
6932 * normal/context.c (GRUB_MOD_INIT): Likewise.
6933 * normal/main.c (GRUB_MOD_INIT): Likewise.
6934 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
6935 * term/serial.c (GRUB_MOD_INIT): Likewise.
6936 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
6937
6938 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6939
6940 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
6941 extra == 0.
6942
6943 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6944
6945 * commands/iorw.c: New file.
6946 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
6947 (iorw_mod_SOURCES): New variable.
6948 (iorw_mod_CFLAGS): Likewise.
6949 (iorw_mod_LDFLAGS): Likewise.
6950
6951 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6952
6953 Hotkey support
6954
6955 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
6956 * normal/main.c (hotkey_aliases): New variable.
6957 (grub_normal_add_menu_entry): Parse "--hotkey".
6958 * normal/menu_text.c (run_menu): Handle hotkeys.
6959
6960 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6961
6962 * kern/i386/coreboot/init.c (grub_machine_init): Call
6963 grub_machine_mmap_init on qemu.
6964
6965 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6966
6967 * boot/i386/qemu/boot.S: Add a missing .code16.
6968
6969 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6970
6971 Use LBIO on coreboot.
6972
6973 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
6974 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
6975 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
6976 New declaration.
6977 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
6978 grub_machine_mmap_init on coreboot.
6979 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
6980 GRUB_LINUXBIOS_MEMBER_LINK.
6981 (grub_machine_mmap_iterate): Fix declaration.
6982 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
6983
6984 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6985
6986 Split coreboot and multiboot ports.
6987
6988 * conf/i386-multiboot.rmk: New file.
6989 * configure.ac: Add multiboot port.
6990 * include/grub/i386/multiboot/boot.h: New file.
6991 * include/grub/i386/multiboot/console.h: Likewise.
6992 * include/grub/i386/multiboot/init.h: Likewise.
6993 * include/grub/i386/multiboot/kernel.h: Likewise.
6994 * include/grub/i386/multiboot/loader.h: Likewise.
6995 * include/grub/i386/multiboot/memory.h: Likewise.
6996 * include/grub/i386/multiboot/serial.h: Likewise.
6997 * include/grub/i386/multiboot/time.h: Likewise.
6998 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
6999 * loader/multiboot.c: Likewise.
7000 * loader/multiboot_mbi2.c: Likewise.
7001 * util/grub-mkrescue.in: Generate multiboot rescue.
7002
7003 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7004
7005 * kern/parser.c (grub_parser_execute): Cope with read-only config.
7006
7007 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7008
7009 Merge handling of input and output terminals. Fix a hang.
7010
7011 * commands/terminal.c (abstract_terminal): New struct.
7012 (handle_command): New function. Based on grub_cmd_terminal_input.
7013 (grub_cmd_terminal_input): Use handle_command.
7014 (grub_cmd_terminal_output): Use handle_command.
7015
7016 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
7017
7018 Fix comment handling.
7019
7020 * tests/grub_script_comments.in: New testcase.
7021 * conf/tests.rmk: Rules for new testcase.
7022 * script/yylex.l: Updated flex rules.
7023
7024 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7025
7026 * docs/grub.texi (play): Document that zero pitches produce rests.
7027 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
7028 if argc is 1.
7029
7030 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
7031
7032 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
7033 autogen issues.
7034
7035 2010-04-26 Christian Franke <franke@computer.org>
7036
7037 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
7038 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
7039 (grub_get_prefix): Remove function.
7040 * util/grub-emu.c (main): Replace grub_get_prefix () call by
7041 make_system_path_relative_to_its_root ().
7042 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
7043
7044 2010-04-24 Christian Franke <franke@computer.org>
7045
7046 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
7047 (kernel_img_LDFLAGS): Remove -static-libgcc.
7048
7049 2010-04-24 Christian Franke <franke@computer.org>
7050
7051 * configure.ac: Do not CHECK_BSS_START_SYMBOL
7052 and CHECK_END_SYMBOL if grub-emu is built.
7053 Unset TARGET_OBJ2ELF if grub-emu is built
7054 without module support.
7055
7056 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
7057
7058 Nilfs2 support.
7059
7060 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
7061 (grub_fstest_SOURCES): Likewise.
7062 (pkglib_MODULES): Add nilfs2.mod.
7063 (nilfs2_mod_SOURCES): New variable.
7064 (nilfs2_mod_CFLAGS): Likewise.
7065 (nilfs2_mod_LDFLAGS): Likewise.
7066 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
7067 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
7068 * fs/nilfs2.c: New file.
7069
7070 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7071
7072 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
7073 is not supported.
7074
7075 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
7076
7077 Add grub-mkconfig support for NetBSD.
7078
7079 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
7080 * util/grub-mkconfig.in: export new NetBSD specific variables.
7081 * po/POTFILES-shell: added 10_netbsd.in.
7082 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
7083
7084 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
7085
7086 Fix emu build with grub-emu-pci and grub-emu-modules.
7087
7088 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
7089 functions.
7090 * include/grub/libpciaccess.h: New file.
7091 * conf/any-emu.rmk: Update kernel headers for emu build.
7092
7093 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7094
7095 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
7096
7097 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7098
7099 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
7100
7101 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7102
7103 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
7104 Retrieve chosen/bootpath if bootpath isn't hardcoded.
7105 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
7106 util/ieee1275/ofpath.c.
7107 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
7108 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
7109 * include/grub/sparc64/ieee1275/boot.h
7110 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
7111 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
7112 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
7113 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
7114 const char *.
7115 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
7116 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
7117 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
7118 install.
7119
7120 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
7121
7122 * util/grub-mkconfig.in: Corrected two == equality tests.
7123 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
7124 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
7125 expect a number appended to it.
7126 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
7127 expects a number appended to it.
7128
7129 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7130
7131 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
7132
7133 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7134
7135 * util/hostdisk.c (make_device_name): Change to new partition naming.
7136
7137 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7138
7139 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
7140
7141 2010-04-17 Christian Franke <franke@computer.org>
7142
7143 * Makefile.in: Add missing localedir setting.
7144
7145 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
7146
7147 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
7148 mistake in r2156. Noticed by Anthony Fok.
7149
7150 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
7151 @localedir@.
7152 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
7153
7154 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
7155
7156 Fix a spurious, uninitialized variable warning.
7157
7158 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
7159 Initialize variable, shdr.
7160 (grub_freebsd_load_elfmodule): Likewise.
7161 (grub_freebsd_load_elf_meta): Likewise.
7162
7163 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
7164
7165 Fix for escaped dollar in double quoted strings.
7166
7167 * script/yylex.l: Updated flex rules.
7168 * conf/tests.rmk: Rule for new testcase.
7169 * tests/grub_script_dollar.in: New testcase.
7170
7171 2010-04-13 Carles Pina i Estany <carles@pina.cat>
7172 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
7173
7174 Enclose all translated strings in grub.cfg in single quotes, and
7175 escape them appropriately (Ubuntu bug #552921).
7176
7177 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
7178 * util/grub.d/10_hurd.in: Use it.
7179 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7180 * util/grub.d/10_linux.in (linux_entry): Likewise.
7181
7182 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7183
7184 Fix cygwin compilation.
7185
7186 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
7187 * include/grub/misc.h (__register_frame_info)
7188 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
7189 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
7190 * kern/misc.c (__register_frame_info)
7191 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
7192 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
7193
7194 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7195
7196 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
7197
7198 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7199
7200 Unify libgcc processing.
7201
7202 * Makefile.in (kernel_img_LDFLAGS): New variable.
7203 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
7204 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
7205 overwriting.
7206 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
7207 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
7208 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
7209 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
7210 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
7211 overwriting. Remove -lgcc and -static-libgcc
7212 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
7213 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
7214 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
7215 (kernel_img_LDFLAGS): Append instead of overwriting.
7216 Remove -lgcc and -static-libgcc
7217 * conf/sparc64-ieee1275.rmk: Likewise.
7218 * include/grub/powerpc/libgcc.h: Move to ...
7219 * include/grub/libgcc.h: .. this.
7220 * include/grub/libgcc.h: Don't export most of the function on x86.
7221 (__bswapsi2): New export.
7222 (__bswapdi2): Likewise.
7223 * include/grub/mips/libgcc.h: Removed.
7224 * include/grub/sparc64/libgcc.h: Likewise.
7225
7226 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7227
7228 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
7229 disk_info_msg (conflicts with gettexting into languages with cases).
7230
7231 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
7232
7233 Add grub-probe support for NetBSD.
7234
7235 * util/getroot.c (find_root_device): Convert block device to
7236 character device on NetBSD.
7237 * util/probe.c (probe): Require character device on NetBSD.
7238 * util/hostdisk.c: NetBSD specific headers.
7239 (configure_device_driver): new function to tune device driver
7240 parameters (currently only for NetBSD floppy driver).
7241 (grub_util_biosdisk_open): NetBSD specific code (get disk size
7242 via disklabel ioctl).
7243 (open_device): call configure_device_driver on NetBSD.
7244 (convert_system_partition_to_system_disk): NetBSD specific code.
7245 (device_is_wholedisk): Likewise.
7246 (grub_util_biosdisk_get_grub_dev): Likewise.
7247 (make_device_name): Fixed a typo in bsd_part_str.
7248 * configure.ac: check for opendisk() and getrawpartition() on
7249 NetBSD and set LIBUTIL.
7250 * Makefile.in: add LIBUTIL to LIBS.
7251
7252 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
7253
7254 Documentation fix.
7255
7256 * util/grub-script-check.c: Better help message.
7257
7258 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
7259
7260 Fix FreeBSD build.
7261
7262 * configure.ac: Flex version check.
7263 * conf/common.rmk: Add -Wno-error to sh.mod.
7264 * script/yylex.l: Remove all #pragma.
7265
7266 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7267
7268 * include/grub/util/misc.h (canonicalise_file_name): Add missing
7269 prototype.
7270 Reported by: Seth Goldberg.
7271
7272 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7273
7274 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
7275 Rename "module" to "module2".
7276 Reported by: Seth Goldberg.
7277
7278 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7279
7280 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
7281 EXPORT_FUNC.
7282 Reported by: Seth Goldberg.
7283
7284 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7285
7286 * lib/posix_wrap/locale.h: Add missing file.
7287 Reported by: Seth Goldberg.
7288
7289 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7290
7291 grub-emu module load support.
7292
7293 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
7294 NO_DYNAMIC_MODULES switched to this.
7295 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
7296 (CFLAGS): Likewise.
7297 * conf/any-emu.rmk: Generate symlist.
7298 (kernel_img_HEADERS): Add util/datetime.h.
7299 (kernel_img_HEADERS) [sdl]: Add sdl.h.
7300 (kernel_img_HEADERS) [libusb]: Add libusb.h.
7301 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
7302 kern/$(target_cpu)/cache.S.
7303 * configure.ac (grub-emu-modules): New option.
7304 * genmk.rb: Handle multiple source lists.
7305 * include/grub/sdl.h: New file.
7306 * include/grub/libusb.h: Likewise.
7307 * util/grub-emu.c (main): Hanle (host) root.
7308 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
7309 GRUB_ERR_UNKNOWN_DEVICE.
7310 * util/misc.c: Move mm functions to ...
7311 * util/mm.c: ... here. All users updated.
7312
7313 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7314
7315 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
7316 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
7317 missing files.
7318 (maintainer-clean): Remove libgcrypt-grub.
7319
7320 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7321
7322 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
7323
7324 2010-04-09 EFI Coder <eficoder@hotmail.com>
7325
7326 * normal/menu_text.c (print_message): Clean up the message and show
7327 the Fn information when on EFI
7328 * term/efi/console.c (grub_console_checkkey): Add F4 support.
7329
7330 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7331
7332 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
7333 All users updated.
7334 * normal/crypto.c (read_crypto_list): Likewise.
7335 * normal/dyncmd.c (read_command_list): Likewise.
7336 * normal/term.c (read_terminal_list): Likewise.
7337 * normal/main.c (read_lists): Use explicit prefix.
7338 (read_lists_hook): Use read_lists.
7339 (grub_normal_execute): Likewise.
7340
7341 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7342
7343 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
7344 Reported by: Thomas Schmitt.
7345 Add -no-emul-boot to grub-mkisofs parameters.
7346
7347 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7348
7349 * font/font.c: Indented.
7350
7351 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
7352
7353 Elif support to GRUB script (by Deepak Vankadaru).
7354
7355 * tests/grub_script_if.in: New testcase.
7356 * conf/tests.rmk: Rule for new testcase.
7357 * script/parser.y: Grammar rules for elif.
7358
7359 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
7360
7361 While and until loops support to GRUB script.
7362
7363 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
7364 (grub_script_create_cmdwhile): New function prototype.
7365 (grub_script_execute_cmdwhile): New function prototype.
7366 * script/execute.c (grub_script_execute_cmdwhile): New function.
7367 * script/parser.y (command): New commands.
7368 (whilecmd): New grammar rule.
7369 (untilcmd): New grammar rule.
7370 * script/script.c (grub_script_create_cmdwhile): New function.
7371 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
7372 function.
7373
7374 * tests/grub_script_while1.in: New testcase.
7375 * conf/tests.rmk: Rule for new testcase.
7376
7377 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7378
7379 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
7380 as *.jpg.
7381
7382 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
7383
7384 GRUB_BACKGROUND support.
7385
7386 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
7387 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
7388
7389 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7390
7391 Load fonts and modules for gfxmenu in grub-mkconfig.
7392 Idea by: Mario Vazquez
7393
7394 * util/grub.d/00_header.in: Load pf2 and image modules.
7395
7396 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7397
7398 grub-mkconfig multiple terminal support.
7399
7400 * util/grub-mkconfig.in: Handle multiple terminals correctly.
7401 * util/grub.d/00_header.in: Likewise.
7402
7403 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7404
7405 * Makefile.in: Specify files explicitly instead of using $< and $@ since
7406 we use cd $(srcdir).
7407
7408 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
7409
7410 * util/grub.d/10_linux.in: Only use the first word of
7411 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
7412 spaces in GRUB_DISTRIBUTOR.
7413 * util/grub.d/10_kfreebsd.in: Likewise.
7414 * util/grub.d/10_hurd.in: Likewise.
7415
7416 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
7417
7418 Fix unit testing framework for Qemu 0.12.
7419
7420 * tests/util/grub-shell.in: Remove -serial stdio option.
7421
7422 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7423
7424 POSIX header file wrappers.
7425
7426 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
7427 equivalents.
7428 * lib/posix_wrap/ctype.h: Likewise.
7429 * lib/posix_wrap/errno.h: Likewise.
7430 * lib/posix_wrap/langinfo.h: Likewise.
7431 * lib/posix_wrap/limits.h: Likewise.
7432 * lib/posix_wrap/localcharset.h: Likewise.
7433 * lib/posix_wrap/stdint.h: Likewise.
7434 * lib/posix_wrap/stdio.h: Likewise.
7435 * lib/posix_wrap/stdlib.h: Likewise.
7436 * lib/posix_wrap/string.h: Likewise.
7437 * lib/posix_wrap/sys/types.h: Likewise.
7438 * lib/posix_wrap/unistd.h: Likewise.
7439 * lib/posix_wrap/wchar.h: Likewise.
7440 * lib/posix_wrap/wctype.h: Likewise.
7441 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
7442 (grub_script.yy.h): Likewise.
7443 * script/yylex.l: Remove POSIX emulation #defines.
7444 * Makefile.in (POSIX_CFLAGS): New variable.
7445 (GNULIB_UTIL_CFLAGS): Likewise.
7446
7447 Regexp support.
7448
7449 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
7450 (regexp_mod_SOURCES): New variable.
7451 (regexp_mod_CFLAGS): Likewise.
7452 (regexp_mod_LDFLAGS): Likewise.
7453 * commands/regexp.c: New file.
7454 * gnulib/regcomp.c: New file. Imported from gnulib.
7455 * gnulib/regex.c: Likewise.
7456 * gnulib/regex_internal.c: Likewise.
7457 * gnulib/regex_internal.h: Likewise.
7458 * gnulib/regexec.c: Likewise.
7459 * gnulib/regex.h: Likewise.
7460
7461 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7462
7463 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
7464 unsupported video mode types.
7465
7466 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7467
7468 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
7469
7470 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7471
7472 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
7473 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
7474
7475 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7476
7477 Remove unused grub_vga_get_font.
7478
7479 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
7480 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
7481
7482 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7483
7484 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
7485 * include/grub/misc.h: Likewise.
7486
7487 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7488
7489 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
7490 for which failure is fatal.
7491
7492 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7493
7494 * util/grub-install.in: Use mkdir -p to create grub directory.
7495 * util/i386/efi/grub-install.in: Likewise.
7496 * util/ieee1275/grub-install.in: Likewise.
7497
7498 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7499
7500 * Makefile.in (LEX): new variable.
7501
7502 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7503
7504 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
7505 `=' and added double quotes on operands of this equality test.
7506
7507 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7508
7509 * Makefile.in (uninstall): Remove a leftover debug echo.
7510 Reported by: Grégoire Sutre
7511
7512 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7513
7514 MIPS multiboot2 support.
7515
7516 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
7517 (multiboot2_mod_SOURCES): New variable.
7518 (multiboot2_mod_CFLAGS): Likewise.
7519 (multiboot2_mod_LDFLAGS): Likewise.
7520 (multiboot2_mod_ASFLAGS): Likewise.
7521 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
7522 definition.
7523 (MULTIBOOT_ENTRY_REGISTER): Likewise.
7524 (MULTIBOOT_MBI_REGISTER): Likewise.
7525 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
7526 (MULTIBOOT_ELF32_MACHINE): Likewise.
7527 (MULTIBOOT_ELF64_MACHINE): Likewise.
7528 * include/grub/mips/multiboot.h: New file.
7529 * include/grub/video.h (grub_video_driver_id): New type
7530 GRUB_VIDEO_DRIVER_SM712.
7531 (grub_video_get_info_and_fini): Export.
7532 (grub_video_get_palette): Likewise.
7533 (grub_video_get_driver_id): Likewise.
7534 * include/multiboot2.h: Resynced with spec.
7535 * loader/i386/multiboot.c: Moved from here ...
7536 * loader/multiboot.c: ... here. All users updated.
7537 (grub_multiboot_boot): Use platform-specific macros.
7538 * loader/i386/multiboot_elfxx.c: Moved from here ...
7539 * loader/multiboot_elfxx.c: ... here. All users updated.
7540 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
7541 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
7542 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
7543
7544 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
7545
7546 Import gnulib argp module.
7547
7548 * gnulib/argp-ba.c: New file.
7549 * gnulib/argp-eexst.c: Likewise.
7550 * gnulib/argp-fmtstream.c: Likewise.
7551 * gnulib/argp-fmtstream.h: Likewise.
7552 * gnulib/argp-fs-xinl.c: Likewise.
7553 * gnulib/argp-help.c: Likewise.
7554 * gnulib/argp-namefrob.h: Likewise.
7555 * gnulib/argp-parse.c: Likewise.
7556 * gnulib/argp-pin.c: Likewise.
7557 * gnulib/argp-pv.c: Likewise.
7558 * gnulib/argp-pvh.c: Likewise.
7559 * gnulib/argp-version-etc.c: Likewise.
7560 * gnulib/argp-version-etc.h: Likewise.
7561 * gnulib/argp-xinl.c: Likewise.
7562 * gnulib/argp.h: Likewise.
7563
7564 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7565
7566 * kern/device.c (grub_device_iterate): Clear errors after failed
7567 opening device.
7568
7569 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7570
7571 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
7572 returned by firmware.
7573
7574 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
7575
7576 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
7577 compilation on coreboot and qemu
7578
7579 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7580
7581 * include/multiboot2.h: Resync with spec.
7582
7583 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7584
7585 Multiboot2 tag support
7586
7587 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
7588 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
7589 Remove loader/multiboot_loader.c.
7590 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
7591 (grub_multiboot2_real_boot): Likewise.
7592 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
7593 (grub_get_multiboot_mmap_count): New proto.
7594 (grub_fill_multiboot_mmap): Likewise.
7595 (grub_multiboot_set_video_mode): Likewise.
7596 (grub_multiboot_set_console): Likewise.
7597 (grub_multiboot_load): Likewise.
7598 (grub_multiboot_load_elf): Likewise.
7599 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
7600 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
7601 * include/multiboot.h: Resynced with specification.
7602 * include/multiboot2.h: Resynced with specification.
7603 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
7604 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
7605 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
7606 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
7607 users updated.
7608 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
7609 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
7610 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
7611 Removed.
7612 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
7613 Moved from here...
7614 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
7615 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
7616 Moved from here...
7617 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
7618 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
7619 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
7620 All users updated.
7621 * loader/i386/multiboot_mbi2.c: New file.
7622
7623 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
7624
7625 Resync with gnulib.
7626
7627 * Makefile.in (GNULIB_CFLAGS): New variable.
7628 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
7629 (grub_script_check_CFLAGS): New variable.
7630 * gnulib/alloca.h: Resync with gnulib.
7631 * gnulib/error.c: Likewise.
7632 * gnulib/error.h: Likewise.
7633 * gnulib/fnmatch.c: Likewise.
7634 * gnulib/fnmatch_loop.c: Likewise.
7635 * gnulib/getdelim.c: Likewise.
7636 * gnulib/getline.c: Likewise.
7637 * gnulib/getopt.c: Likewise.
7638 * gnulib/getopt1.c: Likewise.
7639 * gnulib/getopt_int.h: Likewise.
7640 * gnulib/gettext.h: Likewise.
7641 * gnulib/progname.c: Likewise.
7642 * gnulib/progname.h: Likewise.
7643
7644 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
7645
7646 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
7647 which is the case with --disabled-nls.
7648
7649 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
7650 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
7651 * util/misc.c: Likewise.
7652 * util/mkisofs/mkisofs.c: Likewise.
7653 * util/mkisofs/mkisofs.h: Likewise.
7654
7655 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
7656
7657 Simplify Apple CC support.
7658
7659 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
7660 Add 0 byte at the end not to have a symbol with empty target.
7661 * mmap/i386/pc/mmap_helper.S: Likewise.
7662 * genmk.rb: Ignore errors 2030 and 2050.
7663 * kern/i386/pc/startup.S: Use LOCAL when possible.
7664
7665 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
7666
7667 Testcase and the fix for final semicolon on cmdline.
7668
7669 * tests/grub_script_final_semicolon.in: New testcase.
7670 * conf/tests.rmk: Rules for the new testcase.
7671 * script/parser.y: Grammar fix.
7672
7673 2010-03-26 BVK Chaitanya <bvk@localhost>
7674
7675 Blank lines testcase for GRUB script.
7676
7677 * tests/grub_script_blanklines.in: New testcase.
7678 * conf/tests.rmk: Rules for the new testcase.
7679
7680 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7681
7682 Don't use __FILE__.
7683
7684 * genmk.rb: Add -DGRUB_FILE to all C targets.
7685 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
7686 * include/grub/list.h: Likewise.
7687 * include/grub/misc.h: Likewise.
7688 * include/grub/mm.h: Likewise.
7689 * include/grub/test.h: Likewise.
7690 * kern/mm.c: Likewise.
7691 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
7692
7693 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7694
7695 Sunpc partitions support.
7696
7697 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
7698 (grub_fstest_SOURCES): Likewise.
7699 (pkglib_MODULES): Add part_sunpc.mod.
7700 (part_sunpc_mod_SOURCES): New variable.
7701 (part_sunpc_mod_CFLAGS): Likewise.
7702 (part_sunpc_mod_LDFLAGS): Likewise.
7703 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
7704 * partmap/sunpc.c: New file.
7705
7706 2010-03-26 BVK Chaitanya <bvk@localhost>
7707
7708 For loop support to GRUB script.
7709
7710 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
7711 (grub_script_create_cmdfor): New function prototype.
7712 (grub_script_execute_cmdfor): New function prototype.
7713 * script/execute.c (grub_script_execute_cmdfor): New function.
7714 * script/parser.y (command): New for command.
7715 (forcmd): New grammar rule.
7716 * script/script.c (grub_script_create_cmdfor): New function.
7717 * util/grub-script-check.c (grub_script_execute_cmdfor): New
7718 function.
7719 * tests/grub_script_for1.in: New testcase.
7720 * conf/tests.rmk: Rules for new testcase.
7721
7722 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7723
7724 Nested partitions
7725
7726 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
7727 'partition' is NULL, grub_partition_get_start already does that.
7728 * commands/loadenv.c (check_blocklists): Likewise.
7729 (write_blocklists): Likewise.
7730 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
7731 (grub_fstest_SOURCES): Likewise.
7732 (pkglib_MODULES): Add part_bsd.mod.
7733 (part_bsd_mod_SOURCES): New variable.
7734 (part_bsd_mod_CFLAGS): Likewise.
7735 (part_bsd_mod_LDFLAGS): Likewise.
7736 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
7737 (grub_emu_SOURCES): Likewise.
7738 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
7739 * include/grub/bsdlabel.h: New file.
7740 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
7741 'get_name'.
7742 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
7743 (grub_partition_map_list): New variable.
7744 (grub_partition_map_register): Inline.
7745 (grub_partition_map_unregister): Likewise.
7746 (FOR_PARTITION_MAPS): New macro.
7747 (grub_partition_map_iterate): Removed.
7748 (grub_partition_get_start): Handle nested partitions.
7749 * include/grub/msdos_partition.h: Remove bsd-related entries.
7750 (grub_pc_partition): Remove.
7751 * kern/disk.c (grub_disk_close): Free partition data.
7752 (grub_disk_adjust_range): Handle nested partitions.
7753 * kern/partition.c (grub_partition_map_probe): New function.
7754 (grub_partition_probe): Parse name to number, handle subpartitions.
7755 (get_partmap): New function.
7756 (grub_partition_iterate): Handle subpartitions.
7757 (grub_partition_get_name): Likewise.
7758 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
7759 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
7760 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
7761 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
7762 Set 'number'.
7763 (acorn_partition_map_probe): Remove.
7764 (acorn_partition_map_get_name): Likewise.
7765 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
7766 Set 'number'.
7767 Set 'index' to 0 since there can be only one partition entry per sector.
7768 (amiga_partition_map_probe): Remove.
7769 (amiga_partition_map_get_name): Likewise.
7770 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
7771 Set 'number'.
7772 Set 'offset' and 'index' to real positions of partitions.
7773 (apple_partition_map_probe): Remove.
7774 (apple_partition_map_get_name): Likewise.
7775 * partmap/bsdlabel.c: New file.
7776 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
7777 Set 'number'.
7778 Allocate 'data' so it can be correctly freed.
7779 Set 'index' to offset inside sector.
7780 (gpt_partition_map_probe): Remove.
7781 (gpt_partition_map_get_name): Likewise.
7782 * partmap/msdos.c (grub_partition_parse): Remove.
7783 (pc_partition_map_iterate): Don't force raw access.
7784 Set 'number'.
7785 Make 'ext_offset' a local variable.
7786 (pc_partition_map_probe): Remove.
7787 (pc_partition_map_get_name): Remove.
7788 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
7789 Set 'number'.
7790 (sun_partition_map_probe): Remove.
7791 (sun_partition_map_get_name): Likewise.
7792 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
7793 (grub_pcpart_type): Likewise.
7794 * util/hostdisk.c (open_device): Handle new numbering scheme.
7795 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
7796 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
7797 * util/grub-probe.c (probe_partmap): Handle nested paritions.
7798 * util/grub-install.in: Insert all subpartition modules.
7799 * util/ieee1275/grub-install.in: Likewise.
7800
7801 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
7802
7803 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
7804 grammar.
7805
7806 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
7807
7808 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
7809
7810 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
7811
7812 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
7813 match where 'make install' puts them.
7814 * util/i386/efi/grub-install.in: Likewise.
7815
7816 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
7817
7818 * .bzrignore: Add gentrigtables, grub-script-check,
7819 grub_script_check_init.c, grub_script_check_init.h, and
7820 trigtables.c.
7821
7822 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
7823
7824 * kern/parser.c: Indented.
7825
7826 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7827
7828 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
7829
7830 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7831
7832 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
7833 alpha_mask_size == 0 case.
7834
7835 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
7836
7837 GRUB shell lexer and parser improvements.
7838
7839 * conf/any-emu.rmk: Build rule updates.
7840 * conf/common.rmk: Likewise.
7841 * conf/i386-coreboot.rmk: Likewise.
7842 * conf/i386-efi.rmk: Likewise.
7843 * conf/i386-ieee1275.rmk: Likewise.
7844 * conf/i386-pc.rmk: Likewise.
7845 * conf/powerpc-ieee1275.rmk: Likewise.
7846 * conf/x86_64-efi.rmk: Likewise.
7847
7848 * configure.ac: Configure check for flex.
7849
7850 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
7851 types.
7852 (grub_lexer_param): Struct member updates.
7853 (grub_parser_param): Likewise.
7854 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
7855 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
7856 (grub_script_lexer_init): Prototype update.
7857 (grub_script_lexer_record_start): Likewise.
7858 (grub_script_lexer_record_stop): Likewise.
7859 (grub_script_lexer_yywrap): New function prototype.
7860 (grub_script_lexer_fini): Likewise.
7861 (grub_script_execute_argument_to_string): Removed by...
7862 (grub_script_execute_argument_to_argv): ...better version.
7863
7864 * script/execute.c (ROUND_UPTO): New macro.
7865 (grub_script_execute_cmdline): Out of memory fixes.
7866 (grub_script_execute_menuentry): Likewise.
7867 (grub_script_execute_argument_to_string): Removed. Update all
7868 users by...
7869 (grub_script_execute_argument_to_argv): ...better version.
7870 * script/function.c (grub_script_function_create): Use
7871 grub_script_execute_argument_to_argv instead of
7872 grub_script_execute_argument_to_string.
7873
7874 * script/lexer.c (check_varstate): Removed.
7875 (check_textstate): Removed.
7876 (grub_script_lexer_record_start): Likewise.
7877 (grub_script_lexer_record_stop): Likewise.
7878 (recordchar): Replaced with...
7879 (grub_script_lexer_record): ...new function.
7880 (nextchar): Removed.
7881 (grub_script_lexer_init): Rewritten.
7882 (grub_script_yylex): Rewritten.
7883 (append_newline): New function.
7884 (grub_script_lexer_yywrap): New function.
7885 (grub_script_lexer_fini): New function.
7886 (grub_script_yyerror): Sets error flag.
7887
7888 * script/yylex.l: New file.
7889 (grub_lexer_yyfree): Wrapper for flex yyffre.
7890 (grub_lexer_yyalloc): Likewise.
7891 (grub_lexer_yyrealloc): Likewise.
7892 * script/parser.y: Refactored.
7893
7894 * script/script.c (grub_script_arg_add): Out of memory fixes.
7895 (grub_script_add_arglist): Likewise.
7896 (grub_script_create_cmdline): Likewise.
7897 (grub_script_create_cmdmenu): Likewise.
7898 (grub_script_add_cmd): Likewise.
7899 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
7900 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
7901 unnecessary code.
7902
7903 * tests/grub_script_echo1.in: New testcase.
7904 * tests/grub_script_vars1.in: New testcase.
7905 * tests/grub_script_echo_keywords.in: New testcase.
7906
7907 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
7908
7909 Remove some redundancy in build system.
7910
7911 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
7912 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
7913 (TARGET_LDFLAGS): Add -nostdlib.
7914 (TARGET_IMG_LDFLAGS): Likewise.
7915 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
7916 anything since mmap isn't available.
7917 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
7918 Add util/time.c.
7919 (pkglib_MODULES): Remove reboot.mod.
7920 (reboot_mod_SOURCES): Removed.
7921 (reboot_mod_CFLAGS): Likewise.
7922 (reboot_mod_LDFLAGS): Likewise.
7923 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
7924 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
7925 (DEFSYMFILES): Add kernel_syms.lst.
7926 (kernel_img_HEADERS): Add common headers.
7927 (symlist.c): New target.
7928 (kernel_syms.lst): Likewise.
7929 (pkglib_MODULES): Add memdisk.mod.
7930 (memdisk_mod_SOURCES): New variable.
7931 (memdisk_mod_CFLAGS): Likewise.
7932 (memdisk_mod_LDFLAGS): Likewise.
7933 (pkglib_MODULES): Add reboot.mod.
7934 (reboot_mod_SOURCES): New variable.
7935 (reboot_mod_CFLAGS): Likewise.
7936 (reboot_mod_LDFLAGS): Likewise.
7937 (pkglib_MODULES): Add date.mod.
7938 (date_mod_SOURCES): New variable.
7939 (date_mod_CFLAGS): Likewise.
7940 (date_mod_LDFLAGS): Likewise.
7941 (pkglib_MODULES): Add datehook.mod.
7942 (datehook_mod_SOURCES): New variable.
7943 (datehook_mod_CFLAGS): Likewise.
7944 (datehook_mod_LDFLAGS): Likewise.
7945 (pkglib_MODULES): Add lsmmap.mod.
7946 (lsmmap_mod_SOURCES): New variable.
7947 (lsmmap_mod_CFLAGS): Likewise.
7948 (lsmmap_mod_LDFLAGS): Likewise.
7949 (pkglib_MODULES): Add boot.mod.
7950 (boot_mod_SOURCES): New variable.
7951 (boot_mod_CFLAGS): Likewise.
7952 (boot_mod_LDFLAGS): Likewise.
7953 * conf/i386-coreboot.rmk: Removed redundant parts.
7954 * conf/i386-ieee1275.rmk: Likewise.
7955 * conf/i386-pc.rmk: Likewise.
7956 * conf/mips-yeeloong.rmk: Likewise.
7957 * conf/mips.rmk: Likewise.
7958 * conf/powerpc-ieee1275.rmk: Likewise.
7959 * conf/sparc64-ieee1275.rmk: Likewise.
7960 * conf/x86_64-efi.rmk: Likewise.
7961 * conf/i386-coreboot.rmk: Moved qemu parts ..
7962 * conf/i386-qemu.rmk: ... here
7963 * conf/i386-efi.rmk: Moved common parts to...
7964 * conf/x86-efi.rmk: ... here.
7965 * conf/i386.rmk: Added modules common to all x86 variants.
7966 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
7967 * disk/memdisk.c: Remove grub/machine/kernel.h.
7968 * gensymlist.sh.in: Include symbol.h.
7969 * hook/datehook.c: Correct module name.
7970 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
7971 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
7972 * include/grub/i386/efi/serial.h: New file.
7973 * include/grub/x86_64/efi/serial.h: Likewise.
7974 * util/time.c: Likewise.
7975 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
7976
7977 2010-03-14 Colin King <colin.king@ubuntu.com>
7978 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
7979
7980 Shrink the pre-partition-table part of boot.img by eight bytes.
7981
7982 * boot/i386/pc/boot.S (ERR): New macro.
7983 (chs_mode): Use ERR.
7984 (geometry_error): Likewise.
7985 (hd_probe_error): Remove. This is only used once, so we wrwite
7986 it inline instead.
7987 (read_error): Instead of printing read_error_string, just set up
7988 %si and fall through to ...
7989 (error_message): ... this new function, also used by ERR.
7990
7991 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
7992
7993 Speed up consecutive hostdisk operations on the same device.
7994
7995 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
7996 (grub_util_biosdisk_open): Initialise disk->data.
7997 (struct linux_partition_cache): New structure.
7998 (linux_find_partition): Cache partition start positions; these are
7999 expensive to compute on every read and write.
8000 (open_device): Cache open file descriptor in disk->data, so that we
8001 don't have to reopen it and flush the buffer cache for consecutive
8002 operations on the same device.
8003 (grub_util_biosdisk_close): New function.
8004 (grub_util_biosdisk_dev): Set `close' member.
8005
8006 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
8007 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
8008 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8009 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
8010 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
8011
8012 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8013
8014 Compile parts of grub-emu as modules.
8015
8016 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
8017 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
8018 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
8019 (all-local): Add $(GRUB_EMU).
8020 (install-local): Install $(GRUB_EMU).
8021 (uninstall): Uninstall $(GRUB_EMU).
8022 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
8023 * kern/dl.c: Likewise.
8024 * commands/sleep.c: Not include machine/time.h.
8025 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
8026 (COMMON_CFLAGS): Likewise.
8027 (sbin_UTILITIES): Remove grub-emu.
8028 (grub_emu_SOURCES): Removed.
8029 (kernel_img_RELOCATABLE): New variable.
8030 (pkglib_PROGRAMS): Add kernel.img.
8031 (kernel_img_SOURCES): New variable
8032 (kernel_img_CFLAGS): Likewise.
8033 (kernel_img_LDFLAGS): Likewise.
8034 (TARGET_NO_STRIP): Likewise.
8035 (TARGET_NO_DYNAMIC_MODULES): Likewise.
8036 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
8037 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
8038 (grub-emu): New target.
8039 (GRUB_EMU): New variable.
8040 * configure.ac: Whitelist -emu as possible x86_64 architecture.
8041 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
8042 * loader/xnu.c: Likewise.
8043 * include/grub/pci.h: Likewise.
8044 * genemuinit.sh: New file.
8045 * genemuinitheader.sh: Likewise.
8046 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
8047 Support TARGET_NO_DYNAMIC_MODULES.
8048 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
8049 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
8050 * disk/loopback.c: Likewise.
8051 * font/font_cmd.c: Likewise.
8052 * partmap/acorn.c: Likewise.
8053 * partmap/amiga.c: Likewise.
8054 * partmap/apple.c: Likewise.
8055 * partmap/gpt.c: Likewise.
8056 * partmap/msdos.c: Likewise.
8057 * partmap/sun.c: Likewise.
8058 * parttool/msdospart.c: Likewise.
8059 * term/gfxterm.c: Likewise.
8060 * video/bitmap.c: Likewise.
8061 * video/readers/jpeg.c: Likewise.
8062 * video/readers/png.c: Likewise.
8063 * video/readers/tga.c: Likewise.
8064 * video/video.c: Likewise.
8065 * util/grub-emu.c (read_command_list): Removed.
8066 (main): Don't call util_init_nls.
8067 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
8068 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
8069
8070 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8071
8072 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
8073 date.mod, datehook.mod.
8074 (datetime_mod_SOURCES): New variable.
8075 (datetime_mod_CFLAGS): Likewise.
8076 (datetime_mod_LDFLAGS): Likewise.
8077 (date_mod_SOURCES): Likewise.
8078 (date_mod_CFLAGS): Likewise.
8079 (date_mod_LDFLAGS): Likewise.
8080 (datehook_mod_SOURCES): Likewise.
8081 (datehook_mod_CFLAGS): Likewise.
8082 (datehook_mod_LDFLAGS): Likewise.
8083 * conf/sparc64-ieee1275.rmk: Likewise.
8084 * lib/ieee1275/datetime.c: New file.
8085
8086 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8087
8088 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
8089 (ieee1275_fb_mod_SOURCES): New variable.
8090 (ieee1275_fb_mod_CFLAGS): Likewise.
8091 (ieee1275_fb_mod_LDFLAGS): Likewise.
8092 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
8093 New proto.
8094 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
8095 (HEAP_MAX_ADDR): Likewise.
8096 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
8097 type.
8098 Correct stop condition.
8099 (grub_ieee1275_devices_iterate): New function.
8100 * video/ieee1275.c: New file.
8101
8102 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8103
8104 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
8105
8106 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
8107 as scratch.
8108 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
8109 SCRATCH_PAD_DISKBOOT as scratch.
8110 (bootit): Pass Openfirmware pointer in %o4.
8111 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
8112 of 0x200000.
8113 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
8114 with util/grub-mkrawimage.c.
8115 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
8116 * include/grub/aout.h (AOUT_MID_SUN): New definition.
8117 (grub_aout_get_type) [GRUB_UTIL]: Removed.
8118 (grub_aout_load) [GRUB_UTIL]: Likewise.
8119 * include/grub/kernel.h (grub_modules_get_end): New proto.
8120 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
8121 (SCRATCH_PAD_BOOT): New definition.
8122 (SCRATCH_PAD_DISKBOOT): Likewise.
8123 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
8124 * include/grub/sparc64/ieee1275/ieee1275.h
8125 (grub_ieee1275_original_stack): New variable
8126 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
8127 New definition
8128 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
8129 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
8130 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
8131 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
8132 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
8133 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
8134 (grub_platform_image_format_t): New type.
8135 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
8136 * kern/main.c (grub_modules_get_end)
8137 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
8138 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
8139 (codestart): Switch stacks.
8140 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
8141 variable.
8142 (grub_heap_init): Use grub_modules_get_end.
8143 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
8144 stack.
8145 * util/grub-mkrawimage.c (generate_image): Support sparc64.
8146 (main): Likewise.
8147 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
8148
8149 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
8150
8151 * util/grub-mkrescue.in: Base ISO UUID on UTC.
8152
8153 2010-03-08 Matt Kraai <kraai@ftbfs.org>
8154
8155 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
8156 bug #559005).
8157
8158 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
8159
8160 * genmoddep.awk: Output all missing symbols and not only first.
8161
8162 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8163
8164 * NEWS: Put the date of 1.98 release.
8165
8166 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8167
8168 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
8169 ft2build.h.
8170
8171 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8172
8173 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
8174 completition in the middle of string.
8175
8176 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8177
8178 * util/grub-mkrescue.in: Use mktemp with explicit template.
8179
8180 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8181
8182 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
8183
8184 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8185
8186 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
8187 right pointer.
8188
8189 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8190
8191 Fix FreeBSD compilation.
8192
8193 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
8194 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
8195
8196 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8197
8198 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
8199
8200 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8201
8202 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
8203
8204 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8205
8206 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
8207
8208 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
8209
8210 Support relative image path in theme file.
8211
8212 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
8213 (image_set_property): Handle theme_dir and relative path.
8214
8215 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8216
8217 * configure.ac: Alias amd64 to x86_64.
8218
8219 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8220
8221 * NEWS: mention multiboot on EFI.
8222
8223 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8224
8225 * kern/main.c (grub_load_modules): Handle errors from init functions of
8226 embeded modules.
8227
8228 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8229
8230 * normal/autofs.c (autoload_fs_module): Handle errors.
8231
8232 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8233
8234 Disable linux.mod on qemu-mips since it's not functional and leads
8235 to compilation failure.
8236
8237 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
8238 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
8239 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
8240 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
8241 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
8242 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
8243 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
8244 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
8245 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
8246 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
8247 Reported by: BVK Chaitanya
8248
8249 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
8250
8251 * INSTALL: Add gettext as a dependency and add qemu to a new section
8252 "Prerequisites for make-check".
8253
8254 2010-03-04 Christian Franke <franke@computer.org>
8255
8256 * util/grub-pe2elf.c: Add missing include "progname.h".
8257
8258 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8259
8260 * normal/crypto.c (read_crypto_list): Fix a typo.
8261 Reported by: Seth Goldberg.
8262
8263 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8264
8265 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
8266 Reported by: Seth Goldberg.
8267
8268 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8269
8270 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
8271 ascii.bitmaps.
8272
8273 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8274
8275 * genmk.rb: Remove terminal*.lst in make clean.
8276 Reported by: Seth Goldberg.
8277
8278 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8279
8280 * util/i386/efi/grub-install.in: Copy gettext files.
8281
8282 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
8283
8284 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
8285
8286 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
8287
8288 Wait for user entry basing on presence of output rather than on errors.
8289
8290 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
8291 (grub_install_newline_hook): Likewise.
8292 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
8293 * normal/menu.c (show_menu): Check line_counter to determine presence
8294 of output.
8295 * normal/term.c (grub_normal_line_counter): New variable.
8296 (grub_normal_get_line_counter): New function.
8297 (grub_install_newline_hook): Likewise.
8298
8299 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
8300
8301 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
8302
8303 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
8304
8305 * configure.ac: Update version to 1.98.
8306
8307 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8308
8309 * util/grub.d/10_linux.in (linux_entry): Don't default to
8310 gfxpayload=keep if Linux doesn't support video handover.
8311
8312 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
8313
8314 Don't compile video modules on yeeloong since video subsystem is part
8315 of kernel.
8316
8317 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
8318 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
8319 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
8320 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
8321 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
8322 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
8323 * include/grub/bitmap_scale.h: Likewise.
8324 * include/grub/bufio.h: Likewise.
8325 * include/grub/font.h: Likewise.
8326 * include/grub/gfxterm.h: Likewise.
8327 * include/grub/video.h: Likewise.
8328 * include/grub/vbe.h: Don't include video_fb.h.
8329 * video/i386/pc/vbe.c: Include video_fb.h.
8330 * commands/i386/pc/vbetest.c: Include video.h.
8331
8332 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
8333
8334 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
8335 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
8336 default entry if GRUB_SAVEDEFAULT=true. This allows using
8337 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
8338 saving a new default on every boot.
8339
8340 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8341
8342 * normal/crypto.c (read_crypto_list): Fix a memory leak.
8343 * normal/term.c (read_terminal_list): Likewise.
8344 * normal/main.c (grub_normal_init_page): Likewise.
8345 (grub_normal_read_line_real): Likewise.
8346
8347 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8348
8349 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
8350 memory leak.
8351 Reported by: Seth Goldberg.
8352
8353 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
8354
8355 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
8356 duplicate declaration of `start'.
8357
8358 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
8359
8360 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
8361 filename.
8362 Reported by: Georgy Buranov
8363
8364 2010-02-20 Carles Pina i Estany <carles@pina.cat>
8365
8366 * util/grub-mkrawimage.c (usage): Change string formatting to
8367 improve gettext.
8368
8369 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
8370
8371 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
8372 backspace keys.
8373
8374 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
8375
8376 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
8377 Reported by: Michael Suchanek.
8378
8379 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
8380
8381 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
8382 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
8383
8384 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
8385
8386 Remove any reference to non-free fonts.
8387
8388 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
8389 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
8390 uses non-free components.
8391 * font/font.c (grub_font_get_name): Remove example name.
8392 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
8393 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
8394 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
8395 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
8396
8397 2010-02-16 Georgy Buranov <gburanov@gmail.com>
8398
8399 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
8400
8401 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
8402
8403 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
8404 Double divisor.
8405 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
8406 features.
8407 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
8408
8409 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
8410
8411 * gensymlist.sh.in: Use TARGET_CC instead of CC.
8412
8413 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
8414
8415 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
8416 * docs/grub.texi (Command-line and menu entry commands): Document play
8417 command.
8418
8419 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
8420
8421 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
8422 parse arguments as inline tempo and notes. Move code for playing notes
8423 to...
8424 (play): ... new function.
8425
8426 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
8427
8428 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
8429 grub_uint16_t instead of short.
8430 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
8431 disk from little endian to cpu endianness.
8432
8433 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
8434
8435 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
8436 GRUB_TICKS_PER_SECOND instead of 120.
8437
8438 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8439
8440 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
8441 escape sequence after \e.
8442
8443 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8444
8445 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
8446 non-ASCII characters.
8447
8448 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8449
8450 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
8451 set root in single quotes to prevent \, from being unescaped.
8452
8453 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8454
8455 Prevent unknown commands from stopping menuentry execution.
8456
8457 * script/execute.c (grub_script_execute_cmdline): Print error after
8458 unknown command.
8459
8460 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8461
8462 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
8463 Reported by: Pavel Pisa.
8464
8465 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8466
8467 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
8468
8469 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8470
8471 Merge grub_ieee1275_map_physical into grub_map and rename to
8472 grub_ieee1275_map
8473
8474 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
8475 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
8476 Remove.
8477 * kern/ieee1275/openfw.c (grub_map): Rename to ...
8478 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
8479 necessary.
8480 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
8481
8482 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8483
8484 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
8485 opening and not after.
8486
8487 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8488
8489 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
8490 constants.
8491
8492 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8493
8494 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
8495 (alloc_phys): Use ALIGN_UP instead of align_addr.
8496
8497 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8498
8499 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
8500
8501 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8502
8503 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
8504
8505 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8506
8507 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
8508 verbose dprintf.
8509
8510 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8511
8512 Fix over-4GiB seek on sparc64.
8513
8514 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
8515 Replace pos_i and pos_lo with pos. All users updated.
8516 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
8517 New constant.
8518 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
8519 Likewise.
8520 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
8521 and pos_lo.
8522
8523 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8524
8525 * util/grub-mkrawimage.c (main): Call set_program_name.
8526
8527 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8528
8529 Properly align 64-bit targets.
8530
8531 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
8532 (generate_image): Use ALIGN_ADDR.
8533
8534 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8535
8536 Properly create cross-endian images.
8537
8538 * include/grub/types.h (grub_host_to_target_addr): New macro
8539 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
8540
8541 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8542
8543 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
8544
8545 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8546
8547 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
8548
8549 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
8550 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
8551 (grub_linux_boot): Divide by 64K when on VESA.
8552
8553 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8554
8555 Support GRUB_GFXPAYLOAD_LINUX.
8556
8557 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
8558 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
8559
8560 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8561
8562 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
8563 to show messages instead of discarding them.
8564 Process errors after executing command and not before. Keep old method
8565 too as precaution.
8566
8567 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8568
8569 * configure.ac: Check for ft2build.h.
8570
8571 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8572
8573 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
8574
8575 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8576
8577 * genkernsyms.sh.in: Use TARGET_CC.
8578
8579 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
8580
8581 * NEWS: Update.
8582
8583 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8584
8585 * include/grub/multiboot2.h: Remove leftover file.
8586 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
8587 * include/grub/partition.h [GRUB_UTIL]: Likewise.
8588
8589 2010-02-07 Yves Blusseau <blusseau@zetam.org>
8590
8591 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
8592
8593 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8594
8595 Fix warnings in grub-emu when compiling with maximum warning options.
8596
8597 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
8598 (grub_arch_modules_addr): Return 0 and not NULL.
8599 * util/misc.c (ENABLE_RELOCATABLE): New definition.
8600 (xstrdup): Use newstr instead of dup.
8601 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
8602 of disk to dsk to avoid shadowing.
8603 (find_free_slot): Fix prototype.
8604 * util/getroot.c (grub_util_is_dmraid): Make static.
8605 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
8606 Add missing prototype.
8607 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
8608
8609 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8610
8611 * loader/i386/linux.c (grub_linux_setup_video): Handle error
8612 appropriately.
8613
8614 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8615
8616 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
8617 code out.
8618
8619 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8620
8621 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
8622 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
8623 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
8624 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
8625 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
8626 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
8627
8628 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8629
8630 * include/grub/err.h (grub_err_printf): Don't export.
8631
8632 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8633
8634 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
8635
8636 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8637
8638 * include/grub/i18n.h (grub_gettext_dummy): Removed.
8639 * kern/misc.c (grub_gettext_dummy): Make static.
8640
8641 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8642
8643 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
8644 by non-valid ones.
8645 * kern/term.c (grub_putchar): Likewise.
8646
8647 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8648
8649 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
8650 buggy hook call and memory leak.
8651
8652 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8653
8654 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
8655
8656 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8657
8658 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
8659
8660 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8661
8662 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
8663 modevar.
8664 Return grub_errno on allocation error.
8665
8666 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8667
8668 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
8669
8670 2010-02-06 Yves Blusseau <blusseau@zetam.org>
8671
8672 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
8673 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
8674
8675 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8676
8677 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
8678 non-pxe disk.
8679 (grub_pxefs_open): Likewise.
8680
8681 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
8682
8683 * util/grub.d/10_hurd.in: Add --class information to menuentries.
8684 * util/grub.d/10_kfreebsd.in: Likewise.
8685 * util/grub.d/10_linux.in: Likewise.
8686
8687 2010-02-06 Colin D Bennett <colin@gibibit.com>
8688
8689 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
8690 (gfxmenu_mod_SOURCES): New variable.
8691 (gfxmenu_mod_CFLAGS): Likewise.
8692 (gfxmenu_mod_LDFLAGS): Likewise.
8693 * include/grub/term.h (grub_term_set_current_output): Declare
8694 argument as const.
8695 * docs/gfxmenu-theme-example.txt: New file.
8696 * gfxmenu/gfxmenu.c: Likewise.
8697 * gfxmenu/gui_box.c: Likewise.
8698 * gfxmenu/gui_canvas.c: Likewise.
8699 * gfxmenu/gui_circular_progress.c: Likewise.
8700 * gfxmenu/gui_image.c: Likewise.
8701 * gfxmenu/gui_label.c: Likewise.
8702 * gfxmenu/gui_list.c: Likewise.
8703 * gfxmenu/gui_progress_bar.c: Likewise.
8704 * gfxmenu/gui_string_util.c: Likewise.
8705 * gfxmenu/gui_util.c: Likewise.
8706 * gfxmenu/icon_manager.c: Likewise.
8707 * gfxmenu/model.c: Likewise.
8708 * gfxmenu/named_colors.c: Likewise.
8709 * gfxmenu/theme_loader.c: Likewise.
8710 * gfxmenu/view.c: Likewise.
8711 * gfxmenu/widget-box.c: Likewise.
8712 * include/grub/gfxmenu_model.h: Likewise.
8713 * include/grub/gfxmenu_view.h: Likewise.
8714 * include/grub/gfxwidgets.h: Likewise.
8715 * include/grub/gui.h: Likewise.
8716 * include/grub/gui_string_util.h: Likewise.
8717 * include/grub/icon_manager.h: Likewise.
8718
8719 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8720
8721 Agglomerate scrolling in gfxterm.
8722
8723 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
8724 (grub_virtual_screen_setup): Initialise 'total_screen'.
8725 (write_char): Split to ...
8726 (paint_char): ... this ...
8727 (write_char): ... and this.
8728 (paint_char): Handle delayed scrolling.
8729 (draw_cursor): Likewise.
8730 (scroll_up): Split to ...
8731 (real_scroll): ... this ...
8732 (scroll_up): ... and this.
8733 (real_scroll): Handle multi-line scroll and draw below-the-bottom
8734 characters.
8735 (grub_gfxterm_refresh): Call real_scroll.
8736
8737 2010-02-06 Colin D Bennett <colin@gibibit.com>
8738
8739 * include/grub/misc.h (grub_iscntrl): New inline function.
8740 (grub_isalnum): Likewise.
8741 (grub_strtol): Likewise.
8742
8743 2010-02-06 Colin D Bennett <colin@gibibit.com>
8744
8745 * normal/menu_text.c (get_entry_number): Move from here ...
8746 * normal/menu.c (get_entry_number): ... moved here.
8747 * include/grub/menu.h (grub_menu_get_default_entry_index):
8748 New prototype.
8749 * normal/menu.c (grub_menu_get_default_entry_index): New function.
8750 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
8751 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
8752 (grub_menu_viewer_should_return): Likewise.
8753 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
8754 * normal/menu_text.c (run_menu): Enable menu switching.
8755 * normal/menu_viewer.c (should_return): New variable.
8756 (menu_viewer_changed): Likewise.
8757 (grub_menu_viewer_show_menu): Handle menu viewer changes.
8758 (grub_menu_viewer_should_return): New function.
8759 (menuviewer_write_hook): Likewise.
8760 (grub_menu_viewer_init): Likewise.
8761
8762 2010-02-06 Colin D Bennet <colin@gibibit.com>
8763 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8764
8765 Support for gfxterm in a window.
8766
8767 * include/grub/gfxterm.h: New file.
8768 * include/grub/video.h (struct grub_video_rect): New declaration.
8769 (grub_video_rect_t): Likewise.
8770 * term/gfxterm.c (struct grub_gfxterm_window): New type.
8771 (refcount): New variable.
8772 (render_target): Likewise.
8773 (window): Likewise.
8774 (repaint_callback): Likewise.
8775 (grub_virtual_screen_setup): Use 'render_target'.
8776 (init_window): New function.
8777 (grub_gfxterm_init_window): Likewise.
8778 (grub_gfxterm_init): Check reference counter.
8779 Use init_window.
8780 (destroy_window): New function.
8781 (grub_gfxterm_destroy_window): Likewise.
8782 (grub_gfxterm_fini): Check reference counter.
8783 Use destroy_window.
8784 (redraw_screen_rect): Restore viewport.
8785 Use 'render_target' and 'window'.
8786 Call 'repaint_callback'.
8787 (write_char): Use 'render_target'.
8788 (draw_cursor): Likewise.
8789 (scroll_up): Restore viewport.
8790 Use 'render_target' and 'window'.
8791 Call 'repaint_callback'.
8792 (grub_gfxterm_cls): Likewise.
8793 (grub_gfxterm_refresh): Use 'window'.
8794 (grub_gfxterm_set_repaint_callback): New function.
8795 (grub_gfxterm_background_image_cmd): Use 'window'.
8796 (grub_gfxterm_get_term): New function.
8797 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
8798
8799 2010-02-06 Colin D Bennett <colin@gibibit.com>
8800
8801 Bitmap scaling support.
8802
8803 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
8804 (bitmap_scale_mod_SOURCES): New variable.
8805 (bitmap_scale_mod_CFLAGS): Likewise.
8806 (bitmap_scale_mod_LDFLAGS): Likewise.
8807 * include/grub/bitmap_scale.h: New file.
8808 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
8809 (background_image_cmd_options): New variable.
8810 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
8811 (cmd): Rename and change type to ...
8812 (background_image_cmd_handle): ... this. All users updated.
8813 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
8814 * video/bitmap_scale.c: New file.
8815
8816 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8817
8818 SDL support.
8819
8820 * Makefile.in (LIBSDL): New variable.
8821 (enable_grub_emu_sdl): Likewise.
8822 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
8823 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
8824 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
8825 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
8826 * util/sdl.c: New file.
8827
8828 2010-02-06 Colin D Bennett <colin@gibibit.com>
8829 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8830
8831 Double buffering support.
8832
8833 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
8834 * include/grub/video.h: Update comment.
8835 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
8836 New type.
8837 (grub_video_fb_doublebuf_blit_init): New prototype.
8838 * term/gfxterm.c (scroll_up): Support double buffering.
8839 (grub_gfxterm_refresh): Likewise.
8840 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
8841 (grub_video_fb_doublebuf_blit_init): Likewise.
8842 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
8843 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
8844 'displayed_page', 'render_page' and 'update_screen'.
8845 (grub_video_vbe_fini): Free offscreen buffer.
8846 (doublebuf_pageflipping_commit): New function.
8847 (doublebuf_pageflipping_update_screen): Likewise.
8848 (doublebuf_pageflipping_init): Likewise.
8849 (double_buffering_init): Likewise.
8850 (grub_video_vbe_setup): Enable doublebuffering.
8851 (grub_video_vbe_swap_buffers): Implement.
8852 (grub_video_vbe_set_active_render_target): Handle double buffering.
8853 (grub_video_vbe_get_active_render_target): Likewise.
8854 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
8855 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
8856 (grub_video_vbe_enable_double_buffering): Likewise.
8857 (grub_video_vbe_swap_buffers): Use update_screen.
8858 (grub_video_set_mode): Use double buffering.
8859
8860 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
8861
8862 * maintainance/gentrigtables.py: Remove.
8863 * lib/trig.c: Likewise.
8864
8865 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
8866
8867 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
8868 `trigtables.c'.
8869 (trigtables.c): New rule.
8870 (gentrigtables): Likewise.
8871 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
8872
8873 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
8874
8875 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
8876 integer constants.
8877
8878 2010-02-06 Colin D Bennet <colin@gibibit.com>
8879
8880 Trigonometry support.
8881
8882 * include/grub/trig.h: New file.
8883 * lib/trig.c: Likewise.
8884 * maintainance/gentrigtables.py: Likewise.
8885 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
8886 (trig_mod_SOURCES): New variable.
8887 (trig_mod_CFLAGS): Likewise.
8888 (trig_mod_LDFLAGS): Likewise.
8889
8890 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8891
8892 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
8893 disk devices.
8894
8895 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8896
8897 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
8898 error.
8899
8900 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8901
8902 * util/hostdisk.c (open_device): Don't use partition device when reading
8903 before the partition.
8904 (grub_util_biosdisk_read): Don't read from partition and before the
8905 partition in single operation.
8906 (grub_util_biosdisk_write): Don't write to partition and before the
8907 partition in single operation.
8908
8909 2010-02-03 Torsten Landschoff <torsten@debian.org>
8910
8911 * kern/disk.c (grub_disk_read): Fix offset computation when reading
8912 last sectors.
8913
8914 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8915
8916 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
8917 CDROM reads.
8918 (grub_biosdisk_write): Refuse to write to CDROM.
8919
8920 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8921
8922 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
8923
8924 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8925
8926 * font/font.c (find_glyph): Check that bmp_idx is available before
8927 using it.
8928 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
8929 with (font == NULL).
8930
8931 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
8932
8933 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
8934
8935 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
8936
8937 * include/grub/script_sh.h (sourcecode): Add const qualifier.
8938 * util/grub-script-check.c (getline): Fix empty lines case.
8939
8940 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
8941
8942 * Makefile.in (check): Exit with fail status when one of the tests
8943 fails.
8944 * tests/example_functional_test.c (example_test): Fix reversed assert.
8945 * tests/example_unit_test.c (example_test): Likewise.
8946
8947 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
8948
8949 * util/grub.d/10_linux.in: This script does not use any of the
8950 contents of gettext.sh, only the external command `gettext', so stop
8951 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
8952 the same prefix as GRUB.)
8953 * util/grub.d/10_kfreebsd.in: Likewise.
8954
8955 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8956
8957 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
8958 of the line.
8959
8960 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8961
8962 * kern/disk.c (grub_disk_read): Fix offset computation when reading
8963 last sectors.
8964
8965 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8966
8967 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
8968 having a 4KiB and not 32KiB buffer size.
8969
8970 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
8971
8972 * util/hostfs.c: Include `<errno.h>'.
8973 (grub_hostfs_read): Handle errors from fseeko() and fread().
8974
8975 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
8976
8977 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
8978 loop when using read hooks on files whose size isn't sector-aligned.
8979
8980 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
8981
8982 Remove unused parameter.
8983
8984 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
8985 (grub_iso9660_open): Remove initialization of `data->length'.
8986
8987 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
8988
8989 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
8990 memleak conditions.
8991
8992 2010-01-27 Carles Pina i Estany <carles@pina.cat>
8993
8994 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
8995 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
8996
8997 2010-01-26 Carles Pina i Estany <carles@pina.cat>
8998
8999 * util/bin2h.c (usage): Fix warning (space after backslash).
9000
9001 2010-01-26 Carles Pina i Estany <carles@pina.cat>
9002
9003 * font/font.c: Include `grub/fontformat.h.
9004 Remove font file format constants.
9005 (grub_font_load): Use the new macros.
9006 * include/grub/fontformat.h: New file.
9007 * util/grub-mkfont.c: Include `grub/fontformat.c'.
9008 (write_font_pf2): Use the new macros.
9009
9010 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
9011
9012 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
9013 does.
9014
9015 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
9016
9017 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
9018
9019 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
9020 (_start): Macroify `0x7F'.
9021
9022 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
9023 (make_install_device): Use "(pxe)" as fallback prefix when booting
9024 via PXE.
9025
9026 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
9027
9028 * configure.ac: Reset LIBS after check for libgcc symbols.
9029
9030 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
9031
9032 * util/hostdisk.c (open_device): Add trailing newline to debug
9033 message.
9034
9035 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
9036
9037 * configure.ac: Check for `limits.h'.
9038 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
9039
9040 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
9041
9042 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
9043 capitalize error strings.
9044
9045 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
9046
9047 * util/grub.d/10_hurd.in: Add a recovery mode.
9048
9049 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
9050
9051 * configure.ac: Check for libgcc symbols with -nostdlib.
9052
9053 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
9054
9055 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
9056
9057 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9058
9059 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
9060 stack since heap may be unavailable at that point.
9061 (grub_ofconsole_gotoxy): Likewise.
9062
9063 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9064
9065 * configure.ac: Check for _restgpr_14_x.
9066 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
9067 and _savegpr_* prototypes.
9068
9069 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
9070
9071 Use generic grub_reboot() for i386-efi.
9072
9073 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
9074 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
9075 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
9076
9077 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9078
9079 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
9080 presence of "prefix" variable as it breaks when normal.mod is
9081 embedded.
9082
9083 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
9084
9085 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
9086 stack since heap is unavailable at that point.
9087
9088 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
9089
9090 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
9091 (grub_freebsd_bootinfo): Rewritten.
9092 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
9093
9094 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
9095
9096 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
9097
9098 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
9099
9100 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
9101 domain now.
9102
9103 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
9104
9105 * util/misc.c (make_system_path_relative_to_its_root): Change the work
9106 around for handling "/" to the correct fix. Fix a memory leak. Use
9107 xstrdup instead of strdup.
9108
9109 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9110
9111 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
9112
9113 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9114
9115 Optimise glyph lookup by Basic Multilingual Plane lookup array.
9116
9117 * font/font.c (struct grub_font): New member 'bmp_idx'.
9118 (font_init): Initialise 'bmp_idx'.
9119 (load_font_index): Fill 'bmp_idx'.
9120 (find_glyph): Make inline. Use bmp_idx for BMP characters.
9121
9122 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9123
9124 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
9125 unnecessary calls.
9126
9127 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9128
9129 Move context handling out of the kernel.
9130
9131 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
9132 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
9133 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
9134 * conf/i386-efi.rmk: Likewise.
9135 * conf/i386-ieee1275.rmk: Likewise.
9136 * conf/i386-pc.rmk: Likewise.
9137 * conf/powerpc-ieee1275.rmk: Likewise.
9138 * conf/sparc64-ieee1275.rmk: Likewise.
9139 * conf/x86_64-efi.rmk: Likewise.
9140 * include/grub/env.h: Include grub/menu.h.
9141 (grub_env_var_type): Removed.
9142 (grub_env_var): Replaced field 'type' with 'global'.
9143 (grub_env_find): New prototype.
9144 (grub_env_context_open): Remove EXPORT_FUNC.
9145 (grub_env_context_close): Likewise.
9146 (grub_env_export): Likewise.
9147 (grub_env_set_data_slot): Removed.
9148 (grub_env_get_data_slot): Likewise.
9149 (grub_env_unset_data_slot): Likewise.
9150 (grub_env_unset_menu): New prototype.
9151 (grub_env_set_menu): Likewise.
9152 (grub_env_get_menu): Likewise.
9153 * include/grub/env_private.h: New file.
9154 * include/grub/normal.h (grub_context_init): New prototype.
9155 (grub_context_fini): Likewise.
9156 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
9157 * normal/context.c (grub_cmd_export): ... to here.
9158 * kern/env.c: Include env_private.h.
9159 (HASHSZ): Moved to include/grub/env_private.h.
9160 (grub_env_context): Likewise.
9161 (grub_env_sorted_var): Likewise.
9162 (current_context): Renamed from this ...
9163 (grub_current_context): ...to this. 'static' removed. All users updated.
9164 (grub_env_find): Removed 'static'.
9165 (grub_env_context_open): Moved to normal/context.c.
9166 (grub_env_context_close): Likewise.
9167 (grub_env_export): Likewise.
9168 (mangle_data_slot_name): Removed.
9169 (grub_env_set_data_slot): Likewise.
9170 (grub_env_get_data_slot): Likewise.
9171 (grub_env_unset_data_slot): Likewise.
9172 * kern/main.c (grub_set_root_dev): Don't export root.
9173 It will be done later.
9174 (grub_main): Don't export prefix.
9175 It will be done later.
9176 * normal/context.c: New file.
9177 * normal/main.c (free_menu): Use grub_env_unset_menu.
9178 (grub_normal_add_menu_entry): Use grub_env_get_menu.
9179 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
9180 (GRUB_MOD_INIT(normal)): Call grub_context_init.
9181 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
9182
9183 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9184
9185 setpci support.
9186
9187 * commands/setpci.c: New file.
9188 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
9189 (setpci_mod_SOURCES): New variable.
9190 (setpci_mod_CFLAGS): Likewise.
9191 (setpci_mod_LDFLAGS): Likewise.
9192
9193 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9194
9195 Byte-addressable PCI configuration space.
9196
9197 * bus/pci.c (grub_pci_make_address): Use byte address instead of
9198 dword address.
9199 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
9200 GRUB_PCI_REG_CACHELINE.
9201 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
9202 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
9203 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
9204 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
9205 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
9206 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
9207 grub_pci_make_address.
9208 (lock_rom_area): Likewise.
9209 * commands/lspci.c (grub_lspci_iter): Use macroses
9210 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
9211 of grub_pci_make_address.
9212 * disk/ata.c (grub_ata_pciinit): Likewise.
9213 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
9214 (GRUB_PCI_REG_VENDOR): Likewise.
9215 (GRUB_PCI_REG_DEVICE): Likewise.
9216 (GRUB_PCI_REG_COMMAND): Likewise.
9217 (GRUB_PCI_REG_STATUS): Likewise.
9218 (GRUB_PCI_REG_REVISION): Likewise.
9219 (GRUB_PCI_REG_CLASS): Likewise.
9220 (GRUB_PCI_REG_CACHELINE): Likewise.
9221 (GRUB_PCI_REG_LAT_TIMER): Likewise.
9222 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
9223 (GRUB_PCI_REG_BIST): Likewise.
9224 (GRUB_PCI_REG_ADDRESSES): Likewise.
9225 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9226 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9227 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9228 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9229 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9230 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9231 (GRUB_PCI_REG_CIS_POINTER): Likewise.
9232 (GRUB_PCI_REG_SUBVENDOR): Likewise.
9233 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
9234 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
9235 (GRUB_PCI_REG_CAP_POINTER): Likewise.
9236 (GRUB_PCI_REG_IRQ_LINE): Likewise.
9237 (GRUB_PCI_REG_IRQ_PIN): Likewise.
9238 (GRUB_PCI_REG_MIN_GNT): Likewise.
9239 (GRUB_PCI_REG_MAX_LAT): Likewise.
9240 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
9241 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
9242 * video/efi_uga.c (find_framebuf): Likewise.
9243 * video/sm712.c (grub_video_sm712_setup): Likewise.
9244 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
9245 space.
9246
9247 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9248
9249 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
9250 can be reliably determined to be supported.
9251
9252 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9253
9254 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
9255 that VESA is supported.
9256 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
9257 supported.
9258
9259 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9260
9261 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
9262
9263 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9264
9265 * util/misc.c (make_system_path_relative_to_its_root): Work around
9266 special-casing of "/", as previous incarnation of this routine did.
9267
9268 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9269
9270 Fix any-emu compilation.
9271
9272 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
9273 * grub_bin2h_SOURCES: New variable.
9274
9275 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9276
9277 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
9278
9279 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9280
9281 * util/grub.d/00_header.in: Fix handling of locale_dir.
9282
9283 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9284
9285 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
9286 as possible unifont location (Gentoo).
9287 Reported by: Alexander Brüning
9288
9289 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9290
9291 Don't try to generate lists for kernel.img.
9292
9293 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
9294 (pkglib_MODULES): Remove kernel.img.
9295 (kernel_img_EXPORTS): Removed.
9296 (kernel_img_RELOCATABLE): New variable.
9297 * conf/x86_64-efi.rmk: Likewise.
9298 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
9299
9300 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9301
9302 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
9303 grub_xasprintf or grub_snprintf.
9304 (grub_vsprintf): Likewise.
9305 (grub_snprintf): New proto.
9306 (grub_vsnprintf): Likewise.
9307 (grub_xasprintf): Likewise.
9308 (grub_xvasprintf): Likewise.
9309 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
9310 (grub_sprintf): Removed.
9311 (grub_vsnprintf): New function.
9312 (grub_snprintf): Likewise.
9313 (grub_xvasprintf): Likewise.
9314 (grub_xasprintf): Likewise.
9315 (grub_vsprintf): Renamed to ...
9316 (grub_vsnprintf_real): ...this. New argument max_len.
9317
9318 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
9319
9320 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
9321 fix grub-script-check warning.
9322
9323 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9324
9325 * include/grub/font.h (grub_font_load): Fix prototype.
9326
9327 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9328
9329 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
9330
9331 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9332
9333 * include/grub/x86_64/at_keyboard.h: New file.
9334
9335 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9336
9337 * loader/mips/linux.c: Include missing grub/i18n.h.
9338
9339 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
9340
9341 * normal/menu.c (notify_execution_failure): Clarify error message.
9342
9343 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
9344
9345 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
9346 return value (and revert all return statements). Update users.
9347
9348 2010-01-20 Dan Merillat <debian@dan.merillat.org>
9349
9350 * kern/device.c (grub_device_iterate): Allocate new part_ent
9351 structure based on sizeof (*p) rather than sizeof (p->next), to
9352 account for structure padding.
9353
9354 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
9355 disk is NULL, which might happen for LVM physical volumes with no
9356 LVM signature.
9357
9358 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
9359
9360 * loader/mips/linux.c (grub_cmd_initrd)
9361 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
9362
9363 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
9364
9365 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
9366 (grub_video_video_init, grub_video_bitmap_init)
9367 (grub_font_manager_init, grub_term_gfxterm_init)
9368 (grub_at_keyboard_init): New extern declarations.
9369 (grub_machine_init): Initialize gfxterm and at_keyboard.
9370
9371 * kern/main.c (grub_main): Revert grub_printf delay kludge.
9372
9373 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
9374 `gfxterm.mod' into core image.
9375
9376 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
9377 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9378 (kernel_img_FORMAT): Copy to ...
9379
9380 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
9381 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9382 (kernel_img_FORMAT): ... here, and ...
9383
9384 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
9385 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9386 (kernel_img_FORMAT): ... here.
9387
9388 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
9389 and input (at_keyboard) terminals in kernel.
9390 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
9391
9392 (pkglib_MODULES): Remove `pci.mod'.
9393 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
9394 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
9395 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
9396 (at_keyboard_mod_LDFLAGS): Remove variables.
9397
9398 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
9399
9400 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
9401
9402 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
9403
9404 * include/grub/mips/libgcc.h: Only export symbols for functions
9405 that libgcc provides.
9406
9407 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
9408
9409 MIPS support.
9410
9411 * bus/bonito.c: New file.
9412 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
9413 GRUB_PCI_NUM_DEVICES.
9414 * term/i386/pc/serial.c: Move to ...
9415 * term/serial.c: ... here. All users updated.
9416 * util/i386/pc/grub-mkimage.c: Move to ...
9417 * util/grub-mkrawimage.c: ... here. All users updated.
9418 * term/i386/pc/at_keyboard.c: Move to ...
9419 * term/at_keyboard.c: ... here. All users updated.
9420 * conf/mips-qemu-mips.rmk: New file.
9421 * conf/mips-yeeloong.rmk: Likewise.
9422 * conf/mips.rmk: Likewise.
9423 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
9424 mipsel-qemu-mips.
9425 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
9426 to port addresses.
9427 (grub_ata_pciinit): Support CS5536.
9428 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
9429 * font/font_cmd.c (loadfont_command): Open file before passing it to
9430 grub_font_load.
9431 (pseudo_file_read): New function.
9432 (pseudo_file_close): Likewise.
9433 (pseudo_fs): New structure.
9434 (load_font_module): New function.
9435 (GRUB_MOD_INIT(font_manager)): Load embedded font.
9436 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
9437 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
9438 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
9439 * include/grub/i386/at_keyboard.h: Split into ...
9440 * include/grub/at_keyboard.h: ... this ...
9441 * include/grub/i386/at_keyboard.h: ... and this.
9442 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
9443 New prototype.
9444 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
9445 updated.
9446 (grub_elf64_size): Likewise.
9447 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
9448 filename.
9449 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
9450 * include/grub/i386/coreboot/serial.h: Rewritten.
9451 * include/grub/i386/ieee1275/serial.h: Include
9452 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
9453 * include/grub/i386/pc/serial.h: Moved from here ...
9454 * include/grub/serial.h: ... to here. All users updated.
9455 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
9456 (GRUB_PCI_NUM_BUS): Likewise.
9457 (GRUB_PCI_NUM_DEVICES): Likewise.
9458 (grub_pci_device_map_range): Add missing volatile keyword.
9459 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
9460 * include/grub/mips/at_keyboard.h: New file.
9461 * include/grub/mips/cache.h: Likewise.
9462 * include/grub/mips/io.h: Likewise.
9463 * include/grub/mips/kernel.h: Likewise.
9464 * include/grub/mips/libgcc.h: Likewise.
9465 * include/grub/mips/pci.h: Likewise.
9466 * include/grub/mips/qemu-mips/boot.h: Likewise.
9467 * include/grub/mips/qemu-mips/kernel.h: Likewise.
9468 * include/grub/mips/qemu-mips/loader.h: Likewise.
9469 * include/grub/mips/qemu-mips/memory.h: Likewise.
9470 * include/grub/mips/qemu-mips/serial.h: Likewise.
9471 * include/grub/mips/qemu-mips/time.h: Likewise.
9472 * include/grub/mips/relocator.h: Likewise.
9473 * include/grub/mips/time.h: Likewise.
9474 * include/grub/mips/types.h: Likewise.
9475 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
9476 * include/grub/mips/yeeloong/boot.h: Likewise.
9477 * include/grub/mips/yeeloong/kernel.h: Likewise.
9478 * include/grub/mips/yeeloong/loader.h: Likewise.
9479 * include/grub/mips/yeeloong/memory.h: Likewise.
9480 * include/grub/mips/yeeloong/pci.h: Likewise.
9481 * include/grub/mips/yeeloong/serial.h: Likewise.
9482 * include/grub/mips/yeeloong/time.h: Likewise.
9483 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
9484 * kern/elf.c (grub_elf32_size): New parameter. All users
9485 updated.
9486 (grub_elf64_size): Likewise.
9487 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
9488 Load modules before saying "Welcome to GRUB!".
9489 Call grub_refresh after saying "Welcome to GRUB!".
9490 * kern/mips/cache.S: New file.
9491 * kern/mips/cache_flush.S: Likewise.
9492 * kern/mips/dl.c: Likewise.
9493 * kern/mips/init.c: Likewise.
9494 * kern/mips/qemu-mips/init.c: Likewise.
9495 * kern/mips/startup.S: Likewise.
9496 * kern/mips/yeeloong/init.c: Likewise.
9497 * kern/term.c (grub_putcode): Handle NULL terminal.
9498 (grub_getcharwidth): Likewise.
9499 (grub_getkey): Likewise.
9500 (grub_checkkey): Likewise.
9501 (grub_getkeystatus): Likewise.
9502 (grub_getxy): Likewise.
9503 (grub_getwh): Likewise.
9504 (grub_gotoxy): Likewise.
9505 (grub_cls): Likewise.
9506 (grub_setcolorstate): Likewise.
9507 (grub_setcolor): Likewise.
9508 (grub_getcolor): Likewise.
9509 (grub_refresh): Likewise.
9510 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
9511 (write_jump): Add hatch nop.
9512 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
9513 * lib/mips/setjmp.S: New file.
9514 * loader/mips/linux.c: Likewise.
9515 * term/i386/pc/at_keyboard.c: Move from here ...
9516 * term/at_keyboard.c: ... to here.
9517 * term/i386/pc/serial.c: Moved from here ...
9518 * term/serial.c: ... to here. All users updated.
9519 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
9520 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
9521 (serial_translate_key_sequence): Avoid deadlock.
9522 (grub_serial_getkey): Handle backspace.
9523 (grub_serial_putchar): Fix newline handling.
9524 * util/i386/pc/grub-mkimage.c: Move from here ...
9525 * util/grub-mkrawimage.c: ... to here. All users updated.
9526 (generate_image): New parameters 'font_path' and 'format'.
9527 Support embedding font.
9528 Use grub_host_to_target* instead of grub_cpu_to_le*.
9529 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
9530 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
9531 (options): New option "--font".
9532 (usage): Likewise.
9533 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
9534 (main): Handle "--font".
9535 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
9536 (grub_virtual_screen_setup): Set bg_color_display.
9537 (redraw_screen_rect): Use bg_color_display instead of incorrect
9538 bg_color.
9539 (grub_gfxterm_cls): Likewise.
9540 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
9541 Support embedding config file.
9542 (add_segments): Likewise.
9543 (options): New option "--config".
9544 (main): Handle "--config".
9545 * video/sm712.c: New file.
9546
9547 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
9548
9549 Fix parallel builds.
9550
9551 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
9552 font.c depend on ascii.h).
9553
9554 2010-01-12 Carles Pina i Estany <carles@pina.cat>
9555
9556 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
9557
9558 2010-01-11 Carles Pina i Estany <carles@pina.cat>
9559
9560 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
9561 By default: disabled.
9562 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
9563 parameter.
9564
9565 2010-01-10 Carles Pina i Estany <carles@pina.cat>
9566
9567 * font/font.c: Update copyright years.
9568 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
9569
9570 2010-01-10 Carles Pina i Estany <carles@pina.cat>
9571
9572 * font/font.c: Include `ascii.h'.
9573 (ASCII_BITMAP_SIZE): New macro.
9574 (ascii_font_glyph): Define.
9575 (ascii_glyph_lookup): New function.
9576 (grub_font_get_string_width): Change comment. If glyph not found, use
9577 ascii_glyph_lookup.
9578 (grub_font_get_glyph_with_fallback): If glyph not available returns
9579 ascii_glyph_lookup.
9580 * util/grub-mkfont.c (file_formats): New enum.
9581 (options): Add `ascii-bitmaps' new option.
9582 (usage): Add `asii-bitmaps' new option.
9583 (write_font_ascii_bitmap): New function.
9584 (write_font): Rename to ...
9585 (write_font_p2): ... this. Remove print_glyphs call.
9586 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
9587 used. Call print_glyphs.
9588 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
9589
9590 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
9591
9592 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
9593 (grub_bin2h_SOURCES): New variable.
9594 * util/bin2h.c: New file.
9595
9596 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9597
9598 * include/multiboot.h: Resynced with spec.
9599 * include/multiboot2.h: Likewise.
9600 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
9601 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
9602
9603 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
9604
9605 * include/grub/term.h (grub_term_register_input,
9606 grub_term_register_output): Check return of terminal init()
9607 routines, and abort if errors are raised.
9608
9609 * commands/terminal.c: Update copyright year.
9610
9611 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
9612
9613 * commands/terminal.c (grub_cmd_terminal_input)
9614 (grub_cmd_terminal_output): Check return of terminal init()
9615 routines, and abort if errors are raised.
9616
9617 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
9618
9619 * include/grub/i386/bsd.h: Fix include pathes.
9620
9621 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
9622
9623 Add missing *BSD copyright headers.
9624
9625 * include/grub/aout.h: Add BSD licence.
9626 * include/grub/i386/bsd.h: Parts under different licences moved to ...
9627 * include/grub/i386/freebsd_linker.h: ... here,
9628 * include/grub/i386/freebsd_reboot.h: ... here,
9629 * include/grub/i386/netbsd_bootinfo.h: ... here,
9630 * include/grub/i386/netbsd_reboot.h: ... here,
9631 * include/grub/i386/openbsd_bootarg.h: ... here,
9632 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
9633 licence to each file.
9634
9635 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
9636
9637 * acinclude.m4: Remove `nop' assembly instruction; it's not
9638 implemented by all architectures.
9639
9640 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
9641
9642 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
9643 ELILO. This is no longer necessary.
9644
9645 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
9646
9647 Added new tool, grub-scrit-check to verify grub.cfg syntax.
9648
9649 * util/grub-script-check.c: grub-script-check tool.
9650 * conf/common.rmk: Make rules for grub-script-check.
9651
9652 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
9653
9654 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
9655 spotting it back in 2008. Shame on me for forgetting he did.
9656
9657 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
9658
9659 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
9660
9661 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
9662 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
9663 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
9664 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
9665 (GRUB_VIDEO_TYPE_EFI): Rename to ...
9666 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
9667
9668 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
9669
9670 * include/grub/test.h: Add license header.
9671 * tests/example_functional_test.c: Likewise.
9672 * tests/example_unit_test.c: Likewise.
9673 * tests/lib/functional_test.c: Likewise.
9674 * tests/lib/test.c: Likewise.
9675 * tests/lib/unit_test.c: Likewise.
9676
9677 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
9678
9679 Use flag-based instead of hook-based video mode selection and "auto"
9680 keyword.
9681
9682 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
9683 (grub_video_set_mode): Changed prototype. All users updated.
9684 (grub_video_check_mode_flag): New inline function.
9685 * video/video.c (parse_modespec): New function.
9686 (grub_video_set_mode): Parse flags and keywords.
9687
9688 2010-01-17 Carles Pina i Estany <carles@pina.cat>
9689
9690 * util/misc.c (grub_util_info): Fix the order of the parameters in a
9691 fprintf call.
9692
9693 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
9694
9695 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
9696
9697 2010-01-16 Carles Pina i Estany <carles@pina.cat>
9698
9699 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
9700 string.
9701 * util/grub-emu.c (usage): Likewise.
9702 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
9703 * util/i386/efi/grub-mkimage.c (usage): Likewise.
9704 * util/i386/pc/grub-mkimage.c (usage): Likewise.
9705 * util/i386/pc/grub-setup.c (usage): Likewise.
9706
9707 2010-01-16 Carles Pina i Estany <carles@pina.cat>
9708
9709 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
9710 the message.
9711 (grub_util_info): Likewise.
9712 (grub_util_error): Likewise.
9713 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
9714 and/or new lines in `grub_util_warna', `grub_util_info',
9715 `grub_util_error' calls.
9716 * util/getroot.c: Likewise.
9717 * util/grub-editenv.c: Likewise.
9718 * util/grub-emu.c: Likewise.
9719 * util/grub-fstest.c: Likewise.
9720 * util/grub-mkdevicemap.c: Likewise.
9721 * util/grub-mkfont.c: Likewise.
9722 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9723 * util/grub-mkrelpath.c: Likewise.
9724 * util/grub-pe2elf.c: Likewise.
9725 * util/grub-probe.c: Likewise.
9726 * util/hostdisk.c: Likewise.
9727 * util/i386/efi/grub-mkimage.c: Likewise.
9728 * util/i386/pc/grub-mkimage.c: Likewise.
9729 * util/i386/pc/grub-setup.c: Likewise.
9730 * util/ieee1275/ofpath.c: Likewise.
9731 * util/mkisofs/eltorito.c: Likewise.
9732 * util/mkisofs/rock.c: Likewise.
9733 * util/mkisofs/write.c: Likewise.
9734 * util/raid.c: Likewise.
9735 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
9736 * util/sparc64/ieee1275/grub-setup.c: Likewise.
9737
9738 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
9739
9740 Enable multiboot on non-pc.
9741
9742 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
9743 multiboot.mod and multiboot2.mod to ...
9744 * conf/i386.rmk (pkglib_MODULES): ... here.
9745 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
9746 Moved to ...
9747 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
9748 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
9749 Moved to ...
9750 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
9751 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
9752 Moved to ...
9753 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
9754 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
9755 Moved to ...
9756 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
9757 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
9758 relocator.mod.
9759 (ata_mod_SOURCES): Removed.
9760 (ata_mod_CFLAGS): Likewise.
9761 (ata_mod_LDFLAGS): Likewise.
9762 (relocator_mod_SOURCES): Removed.
9763 (relocator_mod_CFLAGS): Likewise.
9764 (relocator_mod_ASFLAGS): Likewise.
9765 (relocator_mod_LDFLAGS): Likewise.
9766 Include i386.mk.
9767 * include/grub/x86_64/multiboot.h: New file.
9768 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
9769 Terminate EFI.
9770
9771 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
9772
9773 Video multiboot support.
9774
9775 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
9776 New prototype.
9777 * include/multiboot.h: Resynced with multiboot specification.
9778 * include/multiboot2.h: Likewise.
9779 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
9780 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
9781 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
9782 (HAS_VGA_TEXT): Likewise.
9783 (accepts_video): New variable.
9784 (grub_multiboot_set_accepts_video): New function.
9785 (grub_multiboot_get_mbi_size): Account for video structures.
9786 (set_video_mode): New function.
9787 (retrieve_video_parameters): Likewise.
9788 (grub_multiboot_make_mbi): Fill video fields.
9789
9790 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
9791
9792 Video driver ids.
9793
9794 * include/grub/video.h (grub_video_driver_id): New type.
9795 (grub_video_adapter): New member 'id'. All users updated.
9796 (grub_video_get_driver_id): New proto.
9797 * video/video.c (grub_video_get_driver_id): New function.
9798
9799 2010-01-14 Carles Pina i Estany <carles@pina.cat>
9800
9801 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
9802 `var=val'.
9803
9804 2010-01-14 Carles Pina i Estany <carles@pina.cat>
9805
9806 * normal/cmdline.c (print_completion): Gettextizze.
9807
9808 2001-01-14 Carles Pina i Estany <carles@pina.cat>
9809
9810 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
9811
9812 2010-01-14 Carles Pina i Estany <carles@pina.cat>
9813
9814 * gettext/gettext.c (grub_gettext_translate): Push and pop
9815 grub_errno.
9816 (grub_gettext_delete_list): Change comment style.
9817 * kern/err.c (grub_error): Gettextizze.
9818 (grub_fatal): Gettextizze.
9819
9820 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
9821
9822 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
9823 (grub_linux16_real_boot): ... this.
9824 * kern/i386/loader.S: Likewise.
9825 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
9826 (grub_linux16_boot): New function. Switches to text mode and calls
9827 grub_linux16_real_boot().
9828
9829 * loader/i386/bsd.c: Include `<grub/video.h>'.
9830 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
9831 text mode before calling grub_unix_real_boot().
9832
9833 * loader/i386/multiboot.c: Include `<grub/video.h>'.
9834 (grub_multiboot_boot): Switch to text mode before calling
9835 grub_relocator32_boot().
9836
9837 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
9838 (grub_chainloader_boot): Switch to text mode before calling
9839 grub_chainloader_real_boot().
9840
9841 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
9842 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
9843
9844 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
9845 non-empty value.
9846
9847 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
9848 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
9849
9850 * util/grub.d/00_header.in: Define a "savedefault" function for use
9851 in menu entries.
9852 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
9853
9854 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
9855 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
9856
9857 * util/grub-mkconfig_lib.in (save_default_entry): Only set
9858 saved_entry if boot_once is unset.
9859 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
9860 previous saved entry (i.e. grub-reboot).
9861
9862 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
9863
9864 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
9865
9866 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
9867
9868 * util/grub.d/00_header.in: Use `set var=val' rather than plain
9869 `var=val'.
9870 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
9871
9872 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
9873
9874 * util/grub-reboot.in: Fix --version output.
9875 * util/grub-set-default.in: Likewise.
9876
9877 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
9878
9879 * util/grub.d/00_header.in: Silently ignore zero-sized environment
9880 blocks.
9881
9882 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
9883
9884 * util/grub.d/00_header.in: Quote the value assigned to `default',
9885 in case it contains spaces.
9886
9887 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
9888
9889 * util/grub.d/30_os-prober.in: Fix merge error that moved a
9890 `save_default_entry' call from the macosx case to the linux case.
9891
9892 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9893 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
9894
9895 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
9896 in `chosen' environment variable.
9897 * normal/menu_text.c (get_entry_number): Check if the variable
9898 matches the title of a menu entry.
9899 (run_menu): Pass menu to get_entry_number.
9900
9901 * util/grub-reboot.in: New file.
9902 * util/grub-set-default.in: New file.
9903 * conf/common.rmk (grub-reboot): New utility.
9904 (grub-set-default): New utility.
9905
9906 * util/grub-mkconfig_lib.in (save_default_entry): New function.
9907 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
9908 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
9909 move it to `saved_entry' for the next boot. Load environment on
9910 initialisation.
9911 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
9912 * util/grub.d/10_hurd.in: Likewise.
9913 * util/grub.d/10_linux.in (linux_entry): Likewise.
9914 * util/grub.d/10_windows.in: Likewise.
9915 * util/grub.d/30_os-prober.in: Likewise.
9916
9917 * util/grub-install.in: Create environment block.
9918 * util/i386/efi/grub-install.in: Likewise.
9919 * util/ieee1275/grub-install.in: Likewise.
9920 * util/sparc64/ieee1275/grub-install.in: Likewise.
9921
9922 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
9923
9924 Unit testing framework for GRUB.
9925
9926 * Makefile.in: Test framework build rules for 'make check'.
9927 * conf/tests.rmk: Build rules for individual tests and framework.
9928
9929 * include/grub/test.h: Header file for whitebox tests.
9930 * tests/lib/functional_test.c: Framework support for whitebox
9931 functional tests.
9932 * tests/lib/test.c: Common whitebox testing code for unit and
9933 functional tests.
9934 * tests/lib/unit_test.c: Framework support for whitebox unit
9935 tests.
9936
9937 * tests/util/grub-shell-tester.in: Support utility for grub-script
9938 tests.
9939 * tests/util/grub-shell.in: Utility to execute grub-script
9940 commands in a Qemu instance.
9941
9942 * tests/example_functional_test.c: Example whitebox functional
9943 test.
9944 * tests/example_grub_script_test.in: Example grub-script test.
9945 * tests/example_scripted_test.in: Example scripted test.
9946 * tests/example_unit_test.c: Example whitebox unit test.
9947
9948 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9949
9950 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
9951 Add loader/i386/multiboot_mbi.c.
9952 (multiboot2_mod_SOURCES): Likewise.
9953 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
9954 (multiboot2_mod_SOURCES): Likewise.
9955 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
9956 (grub_multiboot_make_mbi): Likewise.
9957 (grub_multiboot_free_mbi): Likewise.
9958 (grub_multiboot_init_mbi): Likewise.
9959 (grub_multiboot_add_module): Likewise.
9960 (grub_multiboot_set_bootdev): Likewise.
9961 * loader/i386/multiboot.c (mbi): Removed.
9962 (mbi_dest): Likewise.
9963 (alloc_mbi): New variable.
9964 (grub_multiboot_payload_size): Removed. All users updated.
9965 (grub_multiboot_pure_size): New variable.
9966 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
9967 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
9968 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
9969 (grub_fill_multiboot_mmap): Likewise.
9970 (grub_multiboot_get_bootdev): Likewise.
9971 (grub_multiboot): Use multiboot_mbi functions.
9972 * loader/i386/multiboot_mbi.c: New file.
9973
9974 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
9975
9976 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
9977 it would result in module crash.
9978
9979 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
9980
9981 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
9982 (grub_ofconsole_getwh): Split to ...
9983 (grub_ofconsole_getwh): ... this.
9984 (grub_ofconsole_dimensions): ...and this.
9985 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
9986
9987 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
9988
9989 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
9990
9991 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9992
9993 * loader/i386/pc/multiboot2.c: Removed stalled file.
9994
9995 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9996
9997 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
9998 Reported by: Grégoire Sutre
9999
10000 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
10001
10002 * util/misc.c (canonicalize_file_name): New function.
10003 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
10004 instead of realpath().
10005
10006 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
10007
10008 * util/grub-install.in (usage): Clarify meaning of --root-directory,
10009 and make it clearer that it's optional. Based on confusion
10010 witnessed on IRC.
10011
10012 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10013
10014 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
10015 in premature implicit newline.
10016
10017 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10018
10019 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
10020 which resulted in garbled command line at the end of screen.
10021
10022 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
10023
10024 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
10025 initialization with similar approach as with other Linux loaders.
10026
10027 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
10028
10029 Fix i386-ieee1275 build.
10030
10031 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
10032 and grub_term_height() for video_{width,height} initialization.
10033
10034 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
10035
10036 Fix grub-emu build.
10037
10038 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
10039
10040 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
10041 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
10042
10043 Support for multiple terminals.
10044
10045 * Makefile.in (pkglib_DATA): terminal.lst.
10046 (terminal.lst): New target.
10047 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
10048 (GRUB_MOD_INIT(handler)): Likewise.
10049 (GRUB_MOD_FINI(handler)): Likewise.
10050 * commands/help.c (grub_cmd_help): Handle multiple terminals.
10051 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
10052 * commands/sleep.c (do_print): Use grub_term_restore_pos.
10053 (grub_cmd_sleep): Use grub_term_save_pos.
10054 * commands/terminal.c: New file.
10055 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
10056 commands/terminal.c and lib/charset.c.
10057 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
10058 (pkglib_MODULES): Add terminal.mod.
10059 (terminal_mod_SOURCES): New variable.
10060 (terminal_mod_CFLAGS): Likewise.
10061 (terminal_mod_LDFLAGS): Likewise.
10062 * genhandlerlist.sh: Don't handle terminals.
10063 * genmk.rb: Generate terminal-*.lst.
10064 * genterminallist.sh: New file.
10065 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
10066 (grub_is_valid_utf8): Likewise.
10067 (grub_utf8_to_ucs4_alloc): Likewise.
10068 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
10069 (grub_menu_register_viewer): Changed argument.
10070 (grub_menu_try_text): New proto.
10071 (grub_gfxmenu_try_hook): New declaration.
10072 * include/grub/normal.h (grub_normal_exit_level): New declaration.
10073 (grub_menu_init_page): Additional argument term.
10074 (grub_normal_init_page): Likewise.
10075 (grub_cmdline_get): Arguments simplified.
10076 (grub_utf8_to_ucs4_alloc): Removed.
10077 (grub_print_ucs4): Additional argument term.
10078 (grub_getstringwidth): Likewise.
10079 (grub_print_message_indented): Likewise.
10080 (grub_menu_text_register_instances): New proto.
10081 (grub_show_menu): Likewise.
10082 (read_terminal_list): Likewise.
10083 (grub_set_more): Likewise.
10084 * include/grub/parser.h: Include handler.h.
10085 * include/grub/reader.h: Rewritten.
10086 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
10087 (GRUB_TERM_WIDTH): Changed to function.
10088 (GRUB_TERM_HEIGHT): Likewise.
10089 (GRUB_TERM_BORDER_WIDTH): Likewise.
10090 (GRUB_TERM_BORDER_HEIGHT): Likewise.
10091 (GRUB_TERM_NUM_ENTRIES): Likewise.
10092 (GRUB_TERM_ENTRY_WIDTH): Likewise.
10093 (GRUB_TERM_CURSOR_X): Likewise.
10094 (grub_term_input_class): Likewise.
10095 (grub_term_output_class): Likewise.
10096 (grub_term_outputs_disabled): New declaration.
10097 (grub_term_inputs_disabled): Likewise.
10098 (grub_term_outputs): Likewise.
10099 (grub_term_inputs): Likewise.
10100 (grub_term_register_input): Rewritten.
10101 (grub_term_register_output): Likewise.
10102 (grub_term_unregister_input): Likewise.
10103 (grub_term_unregister_output): Likewise.
10104 (FOR_ACTIVE_TERM_INPUTS): New macro.
10105 (FOR_DISABLED_TERM_INPUTS): Likewise.
10106 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
10107 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
10108 * include/grub/terminfo.h: Add oterm argument to all protypes.
10109 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
10110 Use grub_rescue_run.
10111 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
10112 All users updated.
10113 * kern/reader.c: Removed. All users updated.
10114 * kern/rescue_reader.c (grub_rescue_init): Removed.
10115 (grub_rescue_reader): Likewise.
10116 (grub_register_rescue_reader): Likewise.
10117 (grub_rescue_run): New function based on kern/reader.c.
10118 * kern/term.c: Adapted for multiterm.
10119 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
10120 (grub_is_valid_utf8): Likewise.
10121 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
10122 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
10123 right terminal.
10124 * loader/i386/linux.c (grub_linux_boot): Likewise.
10125 * normal/auth.c (grub_username_get): New function.
10126 (grub_auth_check_authentication): Use grub_username_get.
10127 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
10128 * normal/color.c: Adapt for multiterm.
10129 * normal/main.c (read_config_file): Don't use grub_reader_loop.
10130 (grub_normal_init_page): Additional argument term.
10131 (read_lists): Call read_terminal_lists.
10132 (grub_enter_normal_mode): Call grub_cmdline_run.
10133 Handle grub_normal_exit_level.
10134 (grub_cmd_normal): Make reentrant.
10135 (grub_cmd_normal_exit): New function.
10136 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
10137 * normal/menu.c: Adapt for multiterm.
10138 * normal/menu_entry.c: Likewise.
10139 * normal/menu_text.c: Likewise.
10140 * normal/menu_viewer.c: Removed. All users updated.
10141 * normal/term.c: New file.
10142 * util/console.c: Change order of includes to workaround a bug in
10143 ncurses headers.
10144 * term/terminfo.c: New argument oterm on all exported functions.
10145 All users updated.
10146 * util/grub-editenv.c (grub_term_input_class): Removed.
10147 (grub_term_output_class): Likewise.
10148
10149 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
10150
10151 Make loader output a bit more user-friendly.
10152
10153 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
10154 is being loaded. Likewise for the Hurd.
10155
10156 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
10157 that kernel of FreeBSD ${version} is being loaded.
10158
10159 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
10160 grub_dprintf().
10161 (grub_cmd_initrd): Likewise.
10162 * util/grub.d/10_linux.in (linux_entry): Print message indicating
10163 that Linux ${version} is being loaded. Likewise for initrd.
10164
10165 2010-01-09 Carles Pina i Estany <carles@pina.cat>
10166
10167 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
10168
10169 2010-01-08 Carles Pina i Estany <carles@pina.cat>
10170
10171 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
10172 (GRUB_MOD_INIT): Gettextizze.
10173 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
10174 (GRUB_MOD_INIT): Gettextizze.
10175 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
10176 (grub_cmd_linux): Capitalise Linux.
10177 (GRUB_MOD_INIT): Gettextizze.
10178 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
10179 (grub_cmd_linux): Capitalise Linux.
10180 (GRUB_MOD_INIT): Gettextizze.
10181 * loader/i386/linux.c: Include `<grub/i18n.h>'.
10182 (grub_cmd_linux): Capitalise Linux.
10183 (GRUB_MOD_INIT): Gettextizze.
10184 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
10185 (GRUB_MOD_INIT): Gettextizze.
10186 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
10187 (grub_cmd_linux): Capitalise Linux.
10188 (GRUB_MOD_INIT): Gettextizze.
10189 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
10190 (grub_cpu_xnu_init): Gettextizze.
10191 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
10192 (GRUB_MOD_INIT): Gettextizze.
10193 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
10194 (GRUB_MOD_INIT): Gettextizze.
10195 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
10196 (grub_linux_load64): Capitalise Linux.
10197 (GRUB_MOD_INIT): Gettextizze.
10198 * loader/xnu.c: Include `<grub/i18n.h>'.
10199 (GRUB_MOD_INIT): Gettextizze.
10200 * po/POTFILES: Add `loader/efi/appleloader.c',
10201 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
10202 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
10203 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
10204 `loader/i386/xnu.c', `loader/multiboot_loader.c',
10205 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
10206 and `loader/xnu.c'.
10207
10208 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
10209
10210 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
10211
10212 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
10213
10214 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
10215 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
10216 * util/mkisofs/mkisofs.c (main): Readjust --version output.
10217
10218 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
10219
10220 Reset Multiboot 2 support. New loader implements the draft in
10221 /branches/multiboot2 and shares as much code as possible with the
10222 production Multiboot 1 implementation.
10223
10224 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
10225 * loader/multiboot2.c: Likewise.
10226 * loader/i386/multiboot_helper.S: Likewise.
10227 * include/multiboot2.h: Replace with latest version from the draft
10228 in /branches/multiboot2.
10229
10230 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
10231 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
10232 and `loader/multiboot2.c'.
10233 (pkglib_MODULES): Add `multiboot2.mod'.
10234 (multiboot2_mod_SOURCES): New variable.
10235 (multiboot2_mod_LDFLAGS): Likewise.
10236 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
10237
10238 * conf/i386-pc.rmk: Likewise.
10239
10240 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
10241 (multiboot_mod_SOURCES): Remove variable.
10242 (multiboot_mod_LDFLAGS): Likewise.
10243 (multiboot_mod_CFLAGS): Likewise.
10244
10245 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
10246 `<multiboot2.h>' instead of `<multiboot.h>'.
10247 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
10248 (MULTIBOOT_HEADER_MAGIC): New macros.
10249
10250 * loader/multiboot_loader.c (module_version_status): Remove variable.
10251 (find_multi_boot2_header): Remove function.
10252 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
10253 logic. Always check for the Multiboot version we're compiling for.
10254 (grub_cmd_module_loader): Likewise.
10255 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
10256 command instead of `multiboot'.
10257
10258 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
10259
10260 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
10261 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
10262 all users.
10263
10264 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
10265 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
10266
10267 Fix breakage introduced with previous commit.
10268
10269 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
10270 commands.
10271 * normal/handler.c (read_handler_list): Revert part of previous commit
10272 affecting this file.
10273 * normal/main.c (read_lists): Move read_handler_list() call back to ...
10274 (grub_normal_execute): ... here.
10275
10276 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
10277
10278 Merge prefix-redefinition-fix branch.
10279
10280 * normal/autofs.c (read_fs_list): Make function capable of being
10281 run multiple times, gracefuly replacing the previous data
10282 structures.
10283 * normal/dyncmd.c (read_command_list): Likewise.
10284 * normal/handler.c (read_handler_list): Likewise.
10285 * normal/main.c (read_lists): New function. Calls all the
10286 list reading functions.
10287 (grub_normal_execute): Use read_lists() instead of calling all
10288 list reading functions explicitly. Register read_lists() as a
10289 variable hook attached to ${prefix}.
10290
10291 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
10292
10293 Merge crypto branch.
10294
10295 * Makefile.in (pkglib_DATA): Add crypto.lst.
10296 (crypto.lst): New target.
10297 * commands/hashsum.c: New file.
10298 * commands/password.c (check_password): Use grub_crypto_memcmp.
10299 * commands/password_pbkdf2.c: New file.
10300 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
10301 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
10302 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
10303 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
10304 -I$(srcdir)/lib/libgcrypt_wrap.
10305 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
10306 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
10307 password_pbkdf2.mod.
10308 (crypto_mod_SOURCES): New variable.
10309 (crypto_mod_CFLAGS): Likewise.
10310 (crypto_mod_LDFLAGS): Likewise.
10311 (hashsum_mod_SOURCES): New variable.
10312 (hashsum_mod_CFLAGS): Likewise.
10313 (hashsum_mod_LDFLAGS): Likewise.
10314 (pbkdf2_mod_SOURCES): New variable.
10315 (pbkdf2_mod_CFLAGS): Likewise.
10316 (pbkdf2_mod_LDFLAGS): Likewise.
10317 (password_pbkdf2_mod_SOURCES): New variable.
10318 (password_pbkdf2_mod_CFLAGS): Likewise.
10319 (password_pbkdf2_mod_LDFLAGS): Likewise.
10320 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
10321 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
10322 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
10323 Include conf/gcry.rmk.
10324 * include/grub/auth.h: Rewritten.
10325 * include/grub/crypto.h: New file.
10326 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
10327 * include/grub/normal.h (read_crypto_list): New prototype.
10328 * lib/crypto.c: New file.
10329 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
10330 * lib/pbkdf2.c: Likewise.
10331 * normal/auth.c (grub_auth_strcmp): Removed.
10332 (grub_iswordseparator): Likewise.
10333 (grub_auth_strword): Likewise.
10334 (is_authenticated): Use grub_strword.
10335 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
10336 and grub_strword. Pass entered password to authentication callback.
10337 * normal/crypto.c: New file.
10338 * normal/main.c: Call read_crypto_list.
10339 * util/grub-mkpasswd-pbkdf2.c: New file.
10340 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
10341
10342 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
10343
10344 Fix descent and ascent calculation.
10345
10346 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
10347 (options): New option "asce".
10348 (usage): Likewise.
10349 (add_char): Ignore invalid glyphs for descent calculation.
10350 Calculate ascent from actual content.
10351 (print_glyphs): Use 'asce'.
10352 (write_font): Likewise. Allow ascent override.
10353 (main): Handle "asce" option.
10354
10355 2010-01-06 Carles Pina i Estany <carles@pina.cat>
10356
10357 * kern/err.c: Include `<grub/i18n.h>'.
10358 (grub_print_error): Add full stop. Gettextizze.
10359 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
10360 (grub_bsd_load_elf): Capitalise ELF.
10361 (grub_cmd_freebsd_loadenv): Add `s' in error string.
10362 (grub_cmd_freebsd_module): Likewise.
10363 (grub_cmd_freebsd_module_elf): Likewise.
10364 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
10365
10366 2010-01-06 Carles Pina i Estany <carles@pina.cat>
10367
10368 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
10369 * commands/search_file.c (HELP_MESSAGE): New macro.
10370 * commands/search_label.c (HELP_MESSAGE): Likewise.
10371 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
10372 * po/POTFILES: Add `commands/search_file.c',
10373 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
10374 `commands/search.c'.
10375
10376 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
10377
10378 * config.rpath: Update from Gnulib.
10379
10380 2010-01-05 Yves Blusseau <blusseau@zetam.org>
10381
10382 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
10383
10384 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
10385
10386 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
10387
10388 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
10389
10390 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
10391 arguments to fread so that we get a return value in bytes, rather
10392 than something that will normally be rounded down to 0.
10393 Adjust error handling to avoid producing garbage when size_t is not
10394 the same size as long long.
10395
10396 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
10397
10398 * util/mkisofs/write.c (padblock_write): Check return value of
10399 fread.
10400
10401 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
10402
10403 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
10404 floppy images now.
10405
10406 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
10407
10408 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
10409
10410 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
10411 instead of manual alignment.
10412 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
10413 verbose). Avoid attempts to read past end of the device
10414 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
10415 but GRUB_DISK_CACHE_SIZE may exceed that).
10416
10417 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
10418
10419 * commands/crc.c (grub_cmd_crc): Abort on read errors.
10420 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
10421 it to upper layer.
10422
10423 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10424
10425 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
10426 New constant.
10427 (grub_efi_piwg_device_path): New structure
10428 (grub_efi_piwg_device_path_t): New type.
10429 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
10430 (devpath_1): Transform to a structure. All users updated.
10431 (devpath_2): Likewise.
10432 (devpath_3): Likewise.
10433 (devpath_4): Likewise.
10434 (devpath_5): Likewise.
10435
10436 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10437
10438 * loader/efi/appleloader.c: Restored. Update all users.
10439
10440 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
10441
10442 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
10443
10444 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
10445 (struct boot_blocklist): Move from here ...
10446 * include/grub/i386/pc/boot.h [ASM_FILE]
10447 (struct grub_boot_blocklist): ... to here. Update all users.
10448 (setup): Only initialize `start' member of `first_block'
10449 structure. Add assert() calls to verify the other members.
10450
10451 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
10452 (generate_image): Fix broken blocklist length initialization.
10453 Add assert() call to verify blocklist `segment' field.
10454
10455 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
10456
10457 * loader/efi/appleloader.c: Remove. Update all users.
10458
10459 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
10460
10461 * boot/i386/pc/boot.S: Update copyright year.
10462 * boot/i386/pc/cdboot.S: Likewise.
10463 * boot/i386/pc/diskboot.S: Likewise.
10464 * boot/i386/pc/lnxboot.S: Likewise.
10465 * boot/i386/pc/pxeboot.S: Likewise.
10466 * bus/pci.c: Likewise.
10467 * commands/cmp.c: Likewise.
10468 * commands/help.c: Likewise.
10469 * commands/hexdump.c: Likewise.
10470 * commands/i386/pc/halt.c: Likewise.
10471 * commands/i386/pc/play.c: Likewise.
10472 * commands/i386/pc/vbeinfo.c: Likewise.
10473 * commands/ls.c: Likewise.
10474 * commands/test.c: Likewise.
10475 * disk/dmraid_nvidia.c: Likewise.
10476 * disk/i386/pc/biosdisk.c: Likewise.
10477 * disk/ieee1275/nand.c: Likewise.
10478 * disk/ieee1275/ofdisk.c: Likewise.
10479 * disk/lvm.c: Likewise.
10480 * disk/raid.c: Likewise.
10481 * disk/raid6_recover.c: Likewise.
10482 * disk/scsi.c: Likewise.
10483 * fs/affs.c: Likewise.
10484 * fs/cpio.c: Likewise.
10485 * fs/ext2.c: Likewise.
10486 * fs/hfs.c: Likewise.
10487 * fs/iso9660.c: Likewise.
10488 * fs/ntfs.c: Likewise.
10489 * fs/sfs.c: Likewise.
10490 * fs/udf.c: Likewise.
10491 * fs/ufs.c: Likewise.
10492 * fs/xfs.c: Likewise.
10493 * gencmdlist.sh: Likewise.
10494 * genmk.rb: Likewise.
10495 * include/grub/disk.h: Likewise.
10496 * include/grub/efi/api.h: Likewise.
10497 * include/grub/efi/efi.h: Likewise.
10498 * include/grub/efi/pe32.h: Likewise.
10499 * include/grub/elf.h: Likewise.
10500 * include/grub/fs.h: Likewise.
10501 * include/grub/i386/at_keyboard.h: Likewise.
10502 * include/grub/i386/pc/memory.h: Likewise.
10503 * include/grub/i386/pc/vbe.h: Likewise.
10504 * include/grub/i386/pci.h: Likewise.
10505 * include/grub/i386/tsc.h: Likewise.
10506 * include/grub/ieee1275/ieee1275.h: Likewise.
10507 * include/grub/ntfs.h: Likewise.
10508 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
10509 * include/grub/sparc64/libgcc.h: Likewise.
10510 * include/grub/symbol.h: Likewise.
10511 * include/grub/types.h: Likewise.
10512 * include/multiboot2.h: Likewise.
10513 * io/gzio.c: Likewise.
10514 * kern/device.c: Likewise.
10515 * kern/disk.c: Likewise.
10516 * kern/efi/efi.c: Likewise.
10517 * kern/efi/mm.c: Likewise.
10518 * kern/elf.c: Likewise.
10519 * kern/file.c: Likewise.
10520 * kern/i386/dl.c: Likewise.
10521 * kern/i386/pc/init.c: Likewise.
10522 * kern/i386/pc/startup.S: Likewise.
10523 * kern/ieee1275/ieee1275.c: Likewise.
10524 * kern/ieee1275/init.c: Likewise.
10525 * kern/main.c: Likewise.
10526 * kern/mm.c: Likewise.
10527 * kern/powerpc/dl.c: Likewise.
10528 * kern/sparc64/dl.c: Likewise.
10529 * kern/x86_64/dl.c: Likewise.
10530 * lib/hexdump.c: Likewise.
10531 * loader/efi/appleloader.c: Likewise.
10532 * loader/i386/ieee1275/linux.c: Likewise.
10533 * loader/i386/pc/chainloader.c: Likewise.
10534 * loader/i386/pc/linux.c: Likewise.
10535 * loader/i386/pc/multiboot2.c: Likewise.
10536 * loader/ieee1275/multiboot2.c: Likewise.
10537 * loader/multiboot2.c: Likewise.
10538 * loader/multiboot_loader.c: Likewise.
10539 * loader/powerpc/ieee1275/linux.c: Likewise.
10540 * normal/completion.c: Likewise.
10541 * normal/menu_entry.c: Likewise.
10542 * partmap/apple.c: Likewise.
10543 * util/grub.d/10_hurd.in: Likewise.
10544 * util/hostfs.c: Likewise.
10545 * video/readers/png.c: Likewise.
10546
10547 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
10548
10549 * include/grub/misc.h (GNUC_PREREQ): New macro.
10550 (ATTRIBUTE_ERROR): New macro.
10551 * include/grub/list.h (grub_bad_type_cast_real): Use
10552 ATTRIBUTE_ERROR.
10553
10554 2010-01-03 Carles Pina i Estany <carles@pina.cat>
10555
10556 * normal/menu_text.c (print_message): Change messages.
10557
10558 2010-01-03 Carles Pina i Estany <carles@pina.cat>
10559
10560 * normal/menu_entry.c (store_completion): Gettextizze.
10561
10562 2010-01-03 Carles Pina i Estany <carles@pina.cat>
10563
10564 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
10565
10566 2010-01-03 Carles Pina i Estany <carles@pina.cat>
10567
10568 * po/POTFILES: Sort correctly.
10569
10570 2010-01-03 Carles Pina i Estany <carles@pina.cat>
10571
10572 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
10573 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
10574 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
10575 full stop.
10576 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
10577 summary. Gettextizze the strings.
10578 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
10579 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
10580 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
10581 full stop.
10582 (GRUB_MOD_INIT): Remove command name from summary.
10583 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
10584 summary.
10585 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
10586 * term/i386/pc/serial.c (options): Add full stops.
10587 (GRUB_MOD_INIT): Remove command name from the summary.
10588
10589 2010-01-03 Carles Pina i Estany <carles@pina.cat>
10590
10591 * commands/acpi.c: Gettextizze help strings and/or options. Include
10592 `grub/i18n.h' if needed.
10593 * commands/blocklist.c: Likewise.
10594 * commands/boot.c: Likewise.
10595 * commands/cat.c: Likewise.
10596 * commands/cmp.c: Likewise.
10597 * commands/configfile.c: Likewise.
10598 * commands/crc.c: Likewise.
10599 * commands/date.c: Likewise.
10600 * commands/echo.c: Likewise.
10601 * commands/efi/fixvideo.c: Likewise.
10602 * commands/efi/loadbios.c: Likewise.
10603 * commands/gptsync.c: Likewise.
10604 * commands/halt.c: Likewise.
10605 * commands/handler.c: Likewise.
10606 * commands/hdparm.c: Likewise.
10607 * commands/hexdump.c: Likewise.
10608 * commands/i386/cpuid.c: Likewise.
10609 * commands/i386/pc/drivemap.c: Likewise.
10610 * commands/i386/pc/halt.c: Likewise.
10611 * commands/i386/pc/pxecmd.c: Likewise.
10612 * commands/i386/pc/vbeinfo.c: Likewise.
10613 * commands/i386/pc/vbetest.c: Likewise.
10614 * commands/ieee1275/suspend.c: Likewise.
10615 * commands/keystatus.c: Likewise.
10616 * commands/loadenv.c: Likewise.
10617 * commands/ls.c: Likewise.
10618 * commands/lsmmap.c: Likewise.
10619 * commands/lspci.c: Likewise.
10620 * commands/memrw.c: Likewise.
10621 * commands/minicmd.c: Likewise.
10622 * commands/parttool.c: Likewise.
10623 * commands/password.c: Likewise.
10624 * commands/probe.c: Likewise.
10625 * commands/read.c: Likewise.
10626 * commands/reboot.c: Likewise.
10627 * commands/search.c: Likewise.
10628 * commands/sleep.c: Likewise.
10629 * commands/test.c: Likewise.
10630 * commands/true.c: Likewise.
10631 * commands/usbtest.c: Likewise.
10632 * commands/videotest.c: Likewise.
10633 * commands/xnu_uuid.c: Likewise.
10634 * disk/loopback.c: Likewise.
10635 * hello/hello.c: Likewise.
10636 * loader/i386/bsd.c: Likewise.
10637 * term/i386/pc/serial.c: Likewise.
10638 * po/POTFILES: Add new files.
10639
10640 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
10641
10642 * term/i386/pc/at_keyboard.c
10643 (keyboard_controller_wait_untill_ready): Rename to ...
10644 (keyboard_controller_wait_until_ready): ... this. Update all users.
10645
10646 2010-01-01 Carles Pina i Estany <carles@pina.cat>
10647
10648 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
10649 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
10650 string using string width.
10651 * normal/menu_text.c (grub_print_message_indented): Use
10652 grub_print_spaces and not print_spaces.
10653 (print_timeout): Likewise.
10654 (print_spaces): Move to...
10655 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
10656
10657 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
10658
10659 Import from Gnulib.
10660
10661 * gnulib/getdelim.c: New file.
10662 * gnulib/getline.c: Likewise.
10663
10664 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
10665
10666 * include/grub/list.h (grub_assert_fail): Removed.
10667 (grub_bad_type_cast_real): New function.
10668 (grub_bad_type_cast): New macro.
10669 (GRUB_AS_LIST): Use grub_bad_type_cast.
10670 (GRUB_AS_LIST_P): Likewise.
10671 (GRUB_AS_NAMED_LIST): Likewise.
10672 (GRUB_AS_NAMED_LIST_P): Likewise.
10673 (GRUB_AS_PRIO_LIST): Likewise.
10674 (GRUB_AS_PRIO_LIST_P): Likewise.
10675 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
10676
10677 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
10678
10679 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
10680 Fix syntax error.
10681
10682 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
10683
10684 * configure.ac: Check for TARGET_CFLAGS initialization before we
10685 initialize it ourselves (sigh).
10686 Move a few modifications to TARGET_CFLAGS to be unconditional
10687 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
10688 eh_frame)
10689
10690 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
10691 * term/i386/pc/at_keyboard.c
10692 (keyboard_controller_wait_untill_ready): Likewise.
10693 (keyboard_controller_led): Rename `led_status' paramter to avoid
10694 name conflict.
10695
10696 2009-12-28 Carles Pina i Estany <carles@pina.cat>
10697
10698 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
10699 quotes.
10700
10701 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
10702
10703 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
10704
10705 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
10706
10707 * normal/menu_text.c (grub_print_message_indented): Prevent
10708 past-the-end-of-array dereference.
10709
10710 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
10711
10712 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
10713 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
10714
10715 2009-12-27 Carles Pina i Estany <carles@pina.cat>
10716
10717 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
10718 * normal/main.c (grub_normal_read_line): Remove a space from the
10719 default prompt.
10720
10721 2009-12-27 Carles Pina i Estany <carles@pina.cat>
10722
10723 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
10724 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
10725 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
10726 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
10727 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
10728 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
10729 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
10730
10731 2009-12-26 Carles Pina i Estany <carles@pina.cat>
10732
10733 * video/readers/jpeg.c (cmd): Declare.
10734 (grub_cmd_jpegtest): Use `grub_command_t' type.
10735 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
10736 Assign to `cmd'.
10737 (GRUB_MOD_FINI): Use `cmd' to unregister.
10738 * video/readers/png.c (cmd): Declare.
10739 (grub_cmd_pngtest): Use `grub_command_t' type.
10740 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
10741 Assign to `cmd'.
10742 (GRUB_MOD_FINI): Use `cmd' to unregister.
10743 * video/readers/tga.c (cmd): Declare.
10744 (grub_cmd_tgatest): Use `grub_command_t' type.
10745 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
10746 Assign to `cmd'.
10747 (GRUB_MOD_FINI): Use `cmd' to unregister.
10748
10749 2009-12-26 Carles Pina i Estany <carles@pina.cat>
10750
10751 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
10752 stops.
10753 * kern/corecmd.c (grub_register_core_commands): Likewise.
10754 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
10755 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
10756 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
10757 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
10758 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
10759 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
10760 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
10761 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
10762 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
10763 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
10764 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
10765 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
10766 * normal/handler.c (insert_handler): Likewise.
10767 * normal/main.c (GRUB_MOD_INIT): Likewise.
10768 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
10769
10770 2009-12-26 Carles Pina i Estany <carles@pina.cat>
10771
10772 * commands/help.c (grub_cmd_help): Print the command name before the
10773 summary.
10774 (GRUB_MOD_INIT): Remove command name from the summary.
10775 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
10776 string as summary.
10777 * lib/arg.c (find_long): Print the command name before the summary.
10778 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
10779 summary.
10780 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
10781 * commands/cat.c (GRUB_MOD_INIT): Likewise.
10782 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
10783 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
10784 * commands/crc.c (GRUB_MOD_INIT): Likewise.
10785 * commands/date.c (GRUB_MOD_INIT): Likewise.
10786 * commands/echo.c (GRUB_MOD_INIT): Likewise.
10787 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
10788 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
10789 * commands/handler.c (GRUB_MOD_INIT): Likewise.
10790 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
10791 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
10792 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
10793 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
10794 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
10795 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
10796 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
10797 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
10798 * commands/ls.c (GRUB_MOD_INIT): Likewise.
10799 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
10800 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
10801 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
10802 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
10803 * commands/password.c (GRUB_MOD_INIT): Likewise.
10804 * commands/probe.c (GRUB_MOD_INIT): Likewise.
10805 * commands/read.c (GRUB_MOD_INIT): Likewise.
10806 * commands/search.c (GRUB_MOD_INIT): Likewise.
10807 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
10808 * commands/test.c (GRUB_MOD_INIT): Likewise.
10809 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
10810 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
10811 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
10812 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
10813 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
10814 * lib/arg.c (GRUB_MOD_INIT): Likewise.
10815 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
10816 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
10817 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
10818 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
10819 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
10820 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
10821 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
10822 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
10823
10824 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10825
10826 Use search command for preliminar UUID search.
10827
10828 * commands/search.c: Split into ...
10829 * commands/search_wrap.c: ...this
10830 * commands/search.c: ...and this.
10831 * commands/search_file.c: New file.
10832 * commands/search_label.c: New file.
10833 * commands/search_uuid.c: New file.
10834 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
10835 Add commands/search_wrap.c, commands/search_file.c,
10836 commands/search_label.c and commands/search_uuid.c.
10837 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
10838 (search_mod_SOURCES): Set to commands/search_wrap.c.
10839 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
10840 search_label.mod.
10841 (search_fs_file_mod_SOURCES): New variable.
10842 (search_fs_file_mod_CFLAGS): Likewise.
10843 (search_fs_file_mod_LDFLAGS): Likewise.
10844 (search_label_mod_SOURCES): Likewise.
10845 (search_label_mod_CFLAGS): Likewise.
10846 (search_label_mod_LDFLAGS): Likewise.
10847 (search_fs_uuid_mod_SOURCES): New variable.
10848 (search_fs_uuid_mod_CFLAGS): Likewise.
10849 (search_fs_uuid_mod_LDFLAGS): Likewise.
10850 (fs_file_mod_SOURCES): Removed.
10851 (fs_file_mod_CFLAGS): Likewise.
10852 (fs_file_mod_LDFLAGS): Likewise.
10853 (fs_uuid_mod_SOURCES): Removed.
10854 (fs_uuid_mod_CFLAGS): Likewise.
10855 (fs_uuid_mod_LDFLAGS): Likewise.
10856 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
10857 Set to util/grub-install.in.
10858 * disk/fs_file.c: Removed.
10859 * disk/fs_uuid.c: Likewise.
10860 * include/grub/search.h: New file.
10861 * util/grub-install.in: Handle sparc64.
10862 Create and use load.cfg.
10863 * util/sparc64/ieee1275/grub-install.in: Removed.
10864
10865 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10866
10867 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
10868 Ignore return status if CF is cleared.
10869 (grub_biosdisk_get_diskinfo_standard): Likewise.
10870
10871 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
10872
10873 * term/i386/pc/at_keyboard.c
10874 (keyboard_controller_wait_untill_ready): New function.
10875 (grub_keyboard_controller_write, grub_keyboard_controller_read)
10876 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
10877 for keyboard polling, rather than duplicate the same loop. This
10878 saves a few bytes in code size.
10879
10880 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10881
10882 Support for (pxe[:server[:gateway]]) syntax and
10883 use environment variable for PXE.
10884
10885 * commands/i386/pc/pxecmd.c (options): Removed.
10886 (print_ip): Removed.
10887 (grub_cmd_pxe): Removed
10888 (grub_cmd_pxe_unload): New function.
10889 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
10890 (grub_pxe_your_ip): Made static.
10891 (grub_pxe_default_server_ip): Likewise.
10892 (grub_pxe_default_gateway_ip): Likewise.
10893 (grub_pxe_blksize): Likewise.
10894 (parse_ip): New function.
10895 (grub_pxe_open): Support server and gateway specification.
10896 (grub_pxe_close): Free disk->data.
10897 (grub_pxefs_open): Use disk->data.
10898 (grub_pxefs_read): Likewise.
10899 (grub_env_write_readonly): New function.
10900 (set_mac_env): Likewise.
10901 (set_env_limn_ro): Likewise.
10902 (parse_dhcp_vendor): Likewise.
10903 (grub_pxe_detect): Set the environment variables.
10904 (set_ip_env): New function.
10905 (write_ip_env): Likewise.
10906 (grub_env_write_pxe_default_server): Likewise.
10907 (grub_env_write_pxe_default_gateway): Likewise.
10908 (grub_env_write_pxe_blocksize): Likewise.
10909 (GRUB_MOD_INIT(pxe)): Set environment variables.
10910 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
10911 (grub_pxe_mac_addr_t): ... this. All users updated.
10912 (grub_pxe_your_ip): Removed.
10913 (grub_pxe_server_ip): Likewise.
10914 (grub_pxe_gateway_ip): Likewise.
10915 (grub_pxe_blksize): Likewise.
10916
10917 2009-12-25 Carles Pina i Estany <carles@pina.cat>
10918
10919 * commands/help.c: Include `<grub/i18n.h>'.
10920 (grub_cmd_help): Gettextizze.
10921 (GRUB_MOD_INIT): Likewise.
10922 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
10923 (GRUB_MOD_INIT): Gettextizze.
10924 * commands/search.c: Include `<grub/i18n.h>'.
10925 (options): Gettextizze.
10926 (GRUB_MOD_INIT): Gettextizze.
10927 * lib/arg.c: Include `<grub/i18n.h>'.
10928 (help_options): Gettextizze.
10929 (find_long): Likewise.
10930 (grub_arg_show_help): Likewise.
10931 * normal/dyncmd.c: Include `<grub/i18n.h>'.
10932 (read_command_list): Gettextizze.
10933 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
10934 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
10935
10936 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
10937
10938 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
10939 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
10940 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
10941 (led_status): New variable.
10942 (keyboard_controller_led): New function.
10943 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
10944 update led status for caps lock, num lock and scroll lock.
10945
10946 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
10947
10948 * util/hostdisk.c (open_device): Fix a comment.
10949
10950 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10951
10952 * util/grub-install.in (host_os): New variable.
10953 * util/i386/efi/grub-install.in (host_os): Likewise.
10954
10955 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10956
10957 * util/mkisofs/write.c (padblock_write): Abort when given an
10958 excedingly large embed image, instead of silently truncating it.
10959
10960 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10961
10962 * include/multiboot.h: Indentation fixes.
10963
10964 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10965
10966 * include/multiboot.h (struct multiboot_aout_symbol_table)
10967 (struct multiboot_elf_section_header_table): New structure
10968 declarations (stolen from GRUB Legacy).
10969 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
10970 table information.
10971
10972 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
10973 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
10974 type aliases.
10975
10976 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10977
10978 * include/multiboot.h: Make comments src2texi-friendly.
10979
10980 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10981
10982 For consistency with [multiboot]/docs/boot.S.
10983
10984 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
10985 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
10986 (MULTIBOOT_MAGIC2): Rename from this ...
10987 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
10988
10989 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
10990
10991 * include/multiboot.h: Remove `<grub/types.h>'.
10992 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
10993 types. Update all users.
10994
10995 2009-12-25 Carles Pina i Estany <carles@pina.cat>
10996
10997 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
10998 `couldn't' and `can not' by `cannot'.
10999 * commands/i386/pc/drivemap.c: Likewise.
11000 * disk/ata.c: Likewise.
11001 * disk/ieee1275/nand.c: Likewise.
11002 * fs/affs.c: Likewise.
11003 * fs/fat.c: Likewise.
11004 * fs/hfs.c: Likewise.
11005 * fs/hfsplus.c: Likewise.
11006 * fs/iso9660.c: Likewise.
11007 * fs/jfs.c: Likewise.
11008 * fs/minix.c: Likewise.
11009 * fs/reiserfs.c: Likewise.
11010 * fs/sfs.c: Likewise.
11011 * fs/udf.c: Likewise.
11012 * fs/ufs.c: Likewise.
11013 * fs/xfs.c: Likewise.
11014 * loader/powerpc/ieee1275/linux.c: Likewise.
11015 * loader/sparc64/ieee1275/linux.c: Likewise.
11016 * util/grub-probe.c: Likewise.
11017 * util/misc.c: Likewise.
11018
11019 2009-12-24 Carles Pina i Estany <carles@pina.cat>
11020
11021 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
11022 grub_errno calls.
11023 * commands/acpi.c: Likewise.
11024 * commands/blocklist.c: Likewise.
11025 * commands/efi/loadbios.c: Likewise.
11026 * commands/i386/pc/drivemap.c: Likewise.
11027 * commands/loadenv.c: Likewise.
11028 * commands/memrw.c: Likewise.
11029 * commands/password.c: Likewise.
11030 * commands/videotest.c: Likewise.
11031 * disk/ata.c: Likewise.
11032 * disk/ata_pthru.c: Likewise.
11033 * disk/dmraid_nvidia.c: Likewise.
11034 * disk/ieee1275/nand.c: Likewise.
11035 * disk/ieee1275/ofdisk.c: Likewise.
11036 * disk/loopback.c: Likewise.
11037 * disk/lvm.c: Likewise.
11038 * disk/mdraid_linux.c: Likewise.
11039 * disk/raid.c: Likewise.
11040 * disk/raid6_recover.c: Likewise.
11041 * disk/scsi.c: Likewise.
11042 * efiemu/main.c: Likewise.
11043 * efiemu/mm.c: Likewise.
11044 * efiemu/pnvram.c: Likewise.
11045 * efiemu/symbols.c: Likewise.
11046 * font/font.c: Likewise.
11047 * fs/cpio.c: Likewise.
11048 * fs/hfsplus.c: Likewise.
11049 * fs/iso9660.c: Likewise.
11050 * fs/jfs.c: Likewise.
11051 * fs/minix.c: Likewise.
11052 * fs/ntfs.c: Likewise.
11053 * fs/ntfscomp.c: Likewise.
11054 * fs/reiserfs.c: Likewise.
11055 * fs/ufs.c: Likewise.
11056 * fs/xfs.c: Likewise.
11057 * gettext/gettext.c: Likewise.
11058 * include/grub/auth.h: Likewise.
11059 * kern/elf.c: Likewise.
11060 * kern/file.c: Likewise.
11061 * kern/ieee1275/init.c: Likewise.
11062 * kern/ieee1275/mmap.c: Likewise.
11063 * kern/ieee1275/openfw.c: Likewise.
11064 * kern/powerpc/dl.c: Likewise.
11065 * kern/sparc64/dl.c: Likewise.
11066 * lib/arg.c: Likewise.
11067 * loader/i386/bsd.c: Likewise.
11068 * loader/i386/bsdXX.c: Likewise.
11069 * loader/i386/efi/linux.c: Likewise.
11070 * loader/i386/efi/xnu.c: Likewise.
11071 * loader/i386/ieee1275/linux.c: Likewise.
11072 * loader/i386/linux.c: Likewise.
11073 * loader/i386/multiboot.c: Likewise.
11074 * loader/i386/pc/linux.c: Likewise.
11075 * loader/i386/pc/multiboot2.c: Likewise.
11076 * loader/i386/xnu.c: Likewise.
11077 * loader/ieee1275/multiboot2.c: Likewise.
11078 * loader/macho.c: Likewise.
11079 * loader/machoXX.c: Likewise.
11080 * loader/multiboot2.c: Likewise.
11081 * loader/multiboot_loader.c: Likewise.
11082 * loader/powerpc/ieee1275/linux.c: Likewise.
11083 * loader/sparc64/ieee1275/linux.c: Likewise.
11084 * loader/xnu.c: Likewise.
11085 * loader/xnu_resume.c: Likewise.
11086 * mmap/i386/pc/mmap.c: Likewise.
11087 * normal/menu_viewer.c: Likewise.
11088 * partmap/acorn.c: Likewise.
11089 * partmap/amiga.c: Likewise.
11090 * partmap/apple.c: Likewise.
11091 * script/lexer.c: Likewise.
11092 * term/gfxterm.c: Likewise.
11093 * term/i386/pc/serial.c: Likewise.
11094 * term/i386/pc/vga.c: Likewise.
11095 * term/ieee1275/ofconsole.c: Likewise.
11096 * term/terminfo.c: Likewise.
11097 * video/bitmap.c: Likewise.
11098 * video/efi_gop.c: Likewise.
11099 * video/efi_uga.c: Likewise.
11100 * video/fb/video_fb.c: Likewise.
11101 * video/i386/pc/vbe.c: Likewise.
11102 * video/readers/tga.c: Likewise.
11103 * video/video.c: Likewise.
11104
11105 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
11106
11107 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
11108 * commands/lspci.c: Likewise.
11109 * commands/probe.c: Likewise.
11110 * commands/xnu_uuid.c: Likewise.
11111 * conf/i386-coreboot.rmk: Likewise.
11112 * conf/i386-efi.rmk: Likewise.
11113 * conf/i386-ieee1275.rmk: Likewise.
11114 * conf/i386-pc.rmk: Likewise.
11115 * conf/powerpc-ieee1275.rmk: Likewise.
11116 * conf/sparc64-ieee1275.rmk: Likewise.
11117 * conf/x86_64-efi.rmk: Likewise.
11118 * fs/i386/pc/pxe.c: Likewise.
11119 * gettext/gettext.c: Likewise.
11120 * include/grub/efi/graphics_output.h: Likewise.
11121 * include/grub/i386/pc/memory.h: Likewise.
11122 * kern/env.c: Likewise.
11123 * kern/i386/qemu/startup.S: Likewise.
11124 * lib/i386/pc/biosnum.c: Likewise.
11125 * lib/i386/relocator.c: Likewise.
11126 * lib/i386/relocator_asm.S: Likewise.
11127 * lib/relocator.c: Likewise.
11128 * loader/i386/bsd.c: Likewise.
11129 * loader/i386/multiboot.c: Likewise.
11130 * loader/i386/pc/chainloader.c: Likewise.
11131 * loader/i386/xnu.c: Likewise.
11132 * loader/xnu.c: Likewise.
11133 * normal/main.c: Likewise.
11134 * normal/menu_text.c: Likewise.
11135 * util/getroot.c: Likewise.
11136 * util/grub-mkconfig_lib.in: Likewise.
11137 * util/grub.d/00_header.in: Likewise.
11138 * util/i386/pc/grub-mkimage.c: Likewise.
11139 * util/mkisofs/eltorito.c: Likewise.
11140 * util/mkisofs/exclude.h: Likewise.
11141 * util/mkisofs/hash.c: Likewise.
11142 * util/mkisofs/iso9660.h: Likewise.
11143 * util/mkisofs/joliet.c: Likewise.
11144 * util/mkisofs/mkisofs.c: Likewise.
11145 * util/mkisofs/mkisofs.h: Likewise.
11146 * util/mkisofs/multi.c: Likewise.
11147 * util/mkisofs/name.c: Likewise.
11148 * util/mkisofs/rock.c: Likewise.
11149 * util/mkisofs/tree.c: Likewise.
11150 * util/mkisofs/write.c: Likewise.
11151 * video/efi_gop.c: Likewise.
11152
11153 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11154
11155 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
11156 size counting.
11157
11158 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
11159
11160 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
11161 * genmk.rb (class SCRIPT): Modify the target file instead of source.
11162
11163 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11164
11165 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
11166 (GRUB_MOD_INIT(memrw)): Update help line.
11167
11168 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11169
11170 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
11171 Use grub_extcmd_t. All users updated.
11172 (options): New variable.
11173 (grub_cmd_read): Restructure for readability. Support "-v" option.
11174 (grub_cmd_write): Restructure for readability.
11175
11176 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
11177
11178 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
11179
11180 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
11181
11182 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
11183 with the actual contents of the correspondending make variable.
11184 * util/grub-mkrescue.in (pkglib_DATA): New variable.
11185 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
11186 specifying `*.lst' and `efiemu??.o'
11187
11188 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
11189
11190 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
11191 after function name.
11192 Noticed by Rene Engelhard <rene@debian.org>.
11193
11194 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11195
11196 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
11197 (options): New variable.
11198 (iospace): Likewise.
11199 (grub_lspci_iter): List IO spaces if "-i" was given.
11200 (grub_cmd_lspci): Parse options.
11201 (GRUB_MOD_INIT(lspci)): Use extcmd.
11202 (GRUB_MOD_FINI(lspci)): Likewise.
11203
11204 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
11205
11206 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
11207 `function' keyword.
11208 Patch by Tony Mancill <tmancill@debian.org>.
11209
11210 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11211
11212 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
11213 (grub_uhci_portstatus): Likewise.
11214 (grub_uhci_portstatus): Add necessary delay.
11215 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
11216
11217 2009-12-21 Carles Pina i Estany <carles@pina.cat>
11218
11219 * commands/acpi.c (options): Fix capitalizations and/or full stops.
11220 (GRUB_MOD_INIT): Likewise.
11221 * commands/boot.c (GRUB_MOD_INIT): Likewise.
11222 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
11223 * commands/echo.c (options): Fix capitalizations and/or full stops.
11224 * commands/efi/loadbios.c (enable_rom_area): Likewise.
11225 (enable_rom_area): Likewise.
11226 (GRUB_MOD_INIT): Likewise.
11227 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
11228 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
11229 * commands/handler.c (GRUB_MOD_INIT): Likewise.
11230 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
11231 * commands/hexdump.c (options): Likewise.
11232 * commands/i386/cpuid.c (options): Likewise.
11233 (GRUB_MOD_INIT): Likewise.
11234 * commands/i386/pc/drivemap.c (options): Likewise.
11235 (GRUB_MOD_INIT): Likewise.
11236 * commands/i386/pc/halt (options): Likewise.
11237 (GRUB_MOD_INIT): Likewise.
11238 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
11239 * commands/i386/pc/pxecmd.c (options): Likewise.
11240 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
11241 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
11242 * commands/keystatus.c (options): Likewise.
11243 (GRUB_MOD_INIT): Likewise.
11244 * commands/loadenv.c (options): Likewise.
11245 * commands/ls.c (options): Likewise.
11246 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
11247 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
11248 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
11249 * commands/parttool.c (helpmsg): Likewise.
11250 * commands/probe.c (options): Likewise.
11251 * commands/read.c (GRUB_MOD_INIT): Likewise.
11252 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
11253 * commands/search.c (options): Likewise.
11254 * commands/sleep.c (options): Likewise.
11255 * commands/test.c (GRUB_MOD_INIT): Likewise.
11256 * commands/true.c (GRUB_MOD_INIT): Likewise.
11257 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
11258 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
11259 * lib/arg.c (help_options): Likewise.
11260 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
11261 `$(XGETTEXT)'.
11262 * po/POTFILES: Add `commands/loadenv.c'.
11263
11264 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
11265
11266 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
11267 instead of specifying them explicit.
11268
11269 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11270
11271 * NEWS: Add grub-probe support for GNU/Hurd.
11272
11273 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11274
11275 * NEWS: gettext was added after 1.97.
11276
11277 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11278
11279 * util/mkisofs/msdos_partition.h: New file (based on
11280 include/grub/msdos_partition.h).
11281 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
11282 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
11283 (ld_options, main): Recognize --protective-msdos-label.
11284 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
11285 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
11286 (padblock_write): If `use_protective_msdos_label' is set, patch a
11287 protective DOS-style label in the output image.
11288
11289 * util/grub-mkrescue.in: Use --protective-msdos-label.
11290
11291 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11292
11293 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
11294 boot.
11295
11296 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11297
11298 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
11299 variables.
11300 (ld_options, main): Recognize `--embedded-boot'.
11301 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
11302 declarations.
11303 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
11304 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
11305 (padblock_write): Likewise. Rewrite to support embedded boot image.
11306
11307 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
11308 for BIOS-based disk boot instead of only ElTorito.
11309
11310 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11311
11312 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
11313 build (not needed for bootstrap).
11314
11315 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11316
11317 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
11318 from i386-pc build (not needed for bootstrap).
11319 Rewrite a pair of strings.
11320
11321 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11322
11323 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
11324
11325 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
11326
11327 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
11328
11329 2009-12-21 Andreas Born <futur.andy@googlemail.com>
11330
11331 * kern/env.c (grub_env_context_open): Mark exported variable for
11332 reexport.
11333
11334 2009-12-21 Andreas Born <futur.andy@googlemail.com>
11335
11336 * kern/env.c (grub_env_export): Create nonexistent variables before
11337 exporting.
11338
11339 2009-12-20 Carles Pina i Estany <carles@pina.cat>
11340
11341 * include/grub/auth.h: Include `<grub/i18n.h>'.
11342 (GRUB_GET_PASSWORD): Gettextizze string.
11343 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
11344 menu_text.c.
11345 (grub_utf8_to_ucs4_alloc): Fix indentation.
11346 (grub_print_ucs4): Likewise.
11347 (grub_getstringwidth): Likewise.
11348 (print_message_indented): New declaration.
11349 * normal/auth.c: Include `<grub/i18n.h>'.
11350 (grub_auth_check_authentication): Gettexttize string.
11351 * normal/cmdline.c: Include `<grub/i18n.h>'.
11352 (grub_cmdline_get): Gettextizze.
11353 * normal/color.c: Include `<grub/i18n.h>'.
11354 (grub_parse_color_name_pair): Gettexttize strings.
11355 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
11356 string (use `print_message_indented').
11357 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
11358 `include/grub/normal.h'.
11359 (print_message_indented): Renamed to ...
11360 (grub_print_message_indented): ... this. Remove `static' qualifer (now
11361 used in normal/main.c).
11362 (print_message): Use `grub_print_message_indented' instead of
11363 `print_message_indented'.
11364 (print_timeout): Likewise.
11365 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
11366 (grub_normal_print_device_info): Gettexttize strings.
11367 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
11368
11369 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
11370
11371 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
11372 of arguments. Return number of tokens and not arguments. All users
11373 updated.
11374
11375 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
11376
11377 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
11378 non-MSDOS paritions.
11379
11380 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
11381
11382 * include/grub/types.h (UNUSED): Removed since it conflicts with
11383 NetBSD headers. All users changed to direct __attribute__ ((unused)).
11384 Reported by Grégoire Sutre.
11385
11386 2009-12-19 Carles Pina i Estany <carles@pina.cat>
11387
11388 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
11389 (grub_print_ucs4_alloc): Likewise.
11390 (grub_getstringwidth): Likewise.
11391 * normal/main.c (grub_normal_init_page): Gettextize version string.
11392 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
11393 (getstringwidth): Renamed to ...
11394 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
11395 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
11396 (grub_print_ucs4): Remove `static' qualifer (now used in
11397 normal/main.c).
11398 * po/POTFILES: Add normal/main.c.
11399
11400 2009-12-19 Carles Pina i Estany <carles@pina.cat>
11401
11402 * normal/menu_text.c (STANDARD_MARGIN): New macro.
11403 (print_message_indented): Add `margin_left' and `margin_right'
11404 parameters.
11405 (print_message): Update `print_message_indented' calls. Adds '\n' to the
11406 strings.
11407 (print_timeout): Use `print_message_indented' to print the message.
11408 Deletes `second_stage' parameter.
11409 (run_menu): Update `print_timeout' calls.
11410
11411 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
11412
11413 Fix console palette on OpenFirmware.
11414
11415 * term/ieee1275/ofconsole.c (MAX): Removed.
11416 (colors): Redone based on VGA palette.
11417 (grub_ofconsole_setcolor): Discard brightness bit since only 8
11418 colors are supported.
11419 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
11420
11421 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
11422
11423 Fix potential EfiEmu double prepare.
11424
11425 * efiemu/main.c (prepared): New variable
11426 (grub_efiemu_unload): Set prepare to '0'.
11427 (grub_efiemu_prepare): Return if already prepared. Set prepared.
11428
11429 set_virtual_address_map support.
11430
11431 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
11432 prototype.
11433 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
11434 prototype.
11435 (grub_efiemu_crc32): Likewise.
11436 (grub_efiemu_crc64): Likewise.
11437 (grub_efiemu_set_virtual_address_map): Likewise.
11438 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
11439 New definition.
11440 (grub_autoefi_set_virtual_address_map): Likewise.
11441 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
11442 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
11443 Restructure flow to accomodate it.
11444 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
11445 (grub_efiemu_crc): Recompute CRC32.
11446 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
11447 (efiemu_ptv_relocated): ... this. Made global. All users updated.
11448 * efiemu/symbols.c (relocated_handle): New variable.
11449 (grub_efiemu_free_syms): Free relocated_handle.
11450 (grub_efiemu_alloc_syms): Allocate relocated_handle.
11451 (grub_efiemu_write_sym_markers): New function.
11452 (grub_efiemu_set_virtual_address_map): Likewise.
11453
11454 Newer XNU parameters.
11455
11456 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
11457 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
11458 (grub_xnu_fill_devicetree): New prototype.
11459 (grub_xnu_heap_real_start): New variable.
11460 * loader/xnu.c (get_name_ptr): New function.
11461 (grub_xnu_load_driver): Fill namelen and name.
11462
11463 64-bit xnu support.
11464
11465 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
11466 and 'loader/macho64.c'.
11467 * conf/i386-pc.rmk: Likewise.
11468 * conf/x86_64-efi.rmk: Likewise.
11469 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
11470 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
11471 * include/grub/macho.h (grub_macho_segment64): New structure.
11472 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
11473 (grub_macho_size32): ... to this.
11474 (grub_macho32_get_entry_point): Renamed from ...
11475 (grub_macho_get_entry_point32): ... to this.
11476 (grub_macho_contains_macho64): New prototype.
11477 (grub_macho_size64): Likewise.
11478 (grub_macho_get_entry_point64): Likewise.
11479 (grub_macho32_load): Renamed from ...
11480 (grub_macho_load32): ... to this.
11481 (grub_macho32_filesize): Renamed from ...
11482 (grub_macho_filesize32): ... to this.
11483 (grub_macho32_readfile): Renamed from ...
11484 (grub_macho_readfile32): ... to this.
11485 (grub_macho_filesize64): New prototype.
11486 (grub_macho_readfile64): Likewise.
11487 (grub_macho_parse32): Likewise.
11488 (grub_macho_parse64): Likewise.
11489 * loader/macho.c: Split into ...
11490 * loader/machoXX.c: ... and this. Replace 32 with XX.
11491 * loader/macho32.c: New file.
11492 * loader/macho64.c: Likewise.
11493 * loader/xnu.c (grub_xnu_is_64bit): New variable.
11494 (grub_cmd_xnu_kernel): Make 32-bit only.
11495 (grub_cmd_xnu_kernel64): New function.
11496 (grub_xnu_load_driver): Support Mach-O 64.
11497 (grub_cmd_xnu_mkext): Likewise.
11498 * util/grub.d/30_os-prober.in (osx_entry): New function.
11499 Generate entries for 64-bit boot too.
11500
11501 Eliminate ad-hoc tree format in XNU and EfiEmu.
11502
11503 * efiemu/main.c (grub_efiemu_prepare): Update comment.
11504 * efiemu/pnvram.c: Rewritten to use environment variables.
11505 All users updated.
11506
11507 Inline utf16_to_utf8.
11508
11509 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
11510 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
11511 All users updated.
11512 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
11513
11514 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
11515 * commands/usbtest.c (grub_usb_get_string): ... move here.
11516 (usb_print_str): Fix error handling.
11517 * include/grub/usb.h (grub_usb_get_string): Remove.
11518
11519 UTF-8 to UTF-16 transformation.
11520
11521 * conf/common.rmk (pkglib_MODULES): Add charset.mod
11522 (charset_mod_SOURCES): New variable.
11523 (charset_mod_CFLAGS): Likewise.
11524 (charset_mod_LDFLAGS): Likewise.
11525 * include/grub/utf.h: New file.
11526 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
11527
11528 Support for device properties.
11529
11530 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
11531 (grub_xnu_devprop_device_header): Likewise.
11532 (grub_xnu_devprop_device_descriptor): Likewise.
11533 (grub_xnu_devprop_add_device): New prototype.
11534 (grub_xnu_devprop_remove_device): Likewise.
11535 (grub_xnu_devprop_remove_property): Likewise.
11536 (grub_xnu_devprop_add_property_utf8): Likewise.
11537 (grub_xnu_devprop_add_property_utf16): Likewise.
11538 (grub_cpu_xnu_init): Likewise.
11539 (grub_cpu_xnu_fini): Likewise.
11540 (grub_cpu_xnu_unload): Likewise.
11541 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
11542 (property_descriptor): Likewise.
11543 (devices): New variable.
11544 (grub_xnu_devprop_remove_property): New function.
11545 (grub_xnu_devprop_add_device): Likewise.
11546 (grub_xnu_devprop_remove_device): Likewise.
11547 (grub_xnu_devprop_add_property): Likewise.
11548 (grub_xnu_devprop_add_property_utf8): Likewise.
11549 (grub_xnu_devprop_add_property_utf16): Likewise.
11550 (hextoval): Likewise.
11551 (grub_cpu_xnu_fill_devprop): Likewise.
11552 (grub_cmd_devprop_load): Likewise.
11553 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
11554 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
11555 (cmd_devprop_load): New variable.
11556 (grub_cpu_xnu_init): New function.
11557 (grub_cpu_xnu_fini): Likewise.
11558 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
11559 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
11560 (grub_cmd_xnu_devtree): Likewise.
11561 (hextoval): New function.
11562 (unescape): Likewise.
11563 (grub_xnu_fill_devicetree): Likewise.
11564
11565 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
11566 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
11567
11568 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
11569
11570 Workaround for broken ATI VBE.
11571
11572 * video/i386/pc/vbe.c (last_set_mode): New variable.
11573 (grub_vbe_set_video_mode): Set 'last_set_mode'.
11574 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
11575 (grub_video_vbe_setup): Don't check for reserved flag.
11576
11577 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
11578
11579 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
11580 the `find' command.
11581
11582 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
11583
11584 UUID support for HFS.
11585
11586 * fs/hfs.c (grub_hfs_uuid): New function.
11587 (grub_hfs_fs): New value .uuid.
11588 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
11589
11590 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
11591
11592 Fix a segfault with parsing unknown long options.
11593
11594 * util/grub-mkrelpath.c (options): Zero terminate it.
11595
11596 2009-12-13 Carles Pina i Estany <carles@pina.cat>
11597
11598 * include/grub/misc.h (grub_puts): New declaration.
11599 (grub_puts_): Likewise.
11600 * kern/misc.c (grub_puts): New definition.
11601 (grub_puts_): Likewise.
11602
11603 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
11604
11605 * util/grub-probe.c (probe): Improve error message.
11606
11607 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
11608
11609 * loader/i386/multiboot_elfxx.c
11610 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
11611 initialization.
11612
11613 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11614
11615 Relocator framework
11616
11617 * loader/i386/xnu_helper.S: Removed. All users updated.
11618 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
11619 (relocator_mod_SOURCES): New variable.
11620 (relocator_mod_CFLAGS): Likewise.
11621 (relocator_mod_LDFLAGS): Likewise.
11622 (relocator_mod_ASFLAGS): Likewise.
11623 * conf/x86_64.rmk: Likewise.
11624 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
11625 (grub_multiboot_payload_entry_offset): Likewise.
11626 (grub_multiboot_forward_relocator): Likewise.
11627 (grub_multiboot_forward_relocator_end): Likewise.
11628 (grub_multiboot_backward_relocator): Likewise.
11629 (grub_multiboot_backward_relocator_end): Likewise.
11630 (grub_multiboot_payload_eip): New variable.
11631 (grub_multiboot_payload_orig): Likewise.
11632 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
11633 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
11634 * include/grub/i386/memory.h
11635 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
11636 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
11637 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
11638 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
11639 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
11640 * include/grub/i386/relocator.h: New file.
11641 * include/grub/x86_64/relocator.h: Likewise.
11642 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
11643 (XNU_RELOCATOR): New macro.
11644 (grub_xnu_launcher_start): Remove.
11645 (grub_xnu_launcher_end): Likewise.
11646 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
11647 (grub_xnu_heap_real_start): Remove.
11648 (grub_xnu_heap_start): Change to void *. All users updated.
11649 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
11650 * lib/i386/relocator.c: New file.
11651 * lib/i386/relocator_asm.S: Likewise.
11652 * lib/i386/relocator_backward.S: Likewise.
11653 * lib/mips/relocator.c: Likewise.
11654 * lib/mips/relocator_asm.S: Likewise.
11655 * lib/relocator.c: Likewise.
11656 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
11657 (entry): Removed.
11658 (playground): Likewise.
11659 (grub_multiboot_payload_orig): New variable.
11660 (grub_multiboot_payload_dest): Likewise.
11661 (grub_multiboot_payload_size): Likewise.
11662 (grub_multiboot_payload_eip): Likewise.
11663 (grub_multiboot_payload_esp): Likewise.
11664 (grub_multiboot_boot): Use grub_relocator32_boot.
11665 (grub_multiboot_unload): Free relocators.
11666 (grub_multiboot): Setup stack. Use relocators.
11667 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
11668 (grub_multiboot_load_elfXX): Use relocators.
11669 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
11670 (grub_multiboot_payload_size): Likewise.
11671 (grub_multiboot_payload_dest): Likewise.
11672 (grub_multiboot_payload_entry_offset): Likewise.
11673 (grub_multiboot_forward_relocator): Likewise.
11674 (grub_multiboot_backward_relocator): Likewise.
11675 (grub_multiboot_real_boot): Likewise.
11676 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
11677 (grub_xnu_entry_point): Likewise.
11678 (grub_xnu_arg1): Likewise.
11679 (grub_xnu_stack): Likewise.
11680 (grub_xnu_launch): Removed.
11681 (grub_xnu_boot_resume): New function.
11682 (grub_xnu_boot): Use relocators.
11683 * loader/i386/xnu_helper.S: Removed.
11684 * loader/xnu.c (grub_xnu_heap_start): New variable.
11685 (grub_xnu_heap_size): Likewise.
11686 (grub_xnu_heap_malloc): Use relocators.
11687 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
11688
11689 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11690
11691 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
11692 anything.
11693
11694 2009-12-13 Carles Pina i Estany <carles@pina.cat>
11695
11696 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
11697 GRUB_ERR_NONE before calling grub_env_set.
11698
11699 2009-12-12 Robert Millan <rmh@aybabtu.com>
11700
11701 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
11702 * genmk.rb (video): New variable.
11703 (CLEANFILES, VIDEOFILES): Add #{video}.
11704 (#{video}): New target rule.
11705 * genvideolist.sh: New file.
11706 * Makefile.in (pkglib_DATA): Add video.lst.
11707 (video.lst): New target rule.
11708 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
11709 `video.lst'.
11710 * util/grub.d/30_os-prober.in: Replace `vbe' with
11711 ${GRUB_VIDEO_BACKEND}.
11712
11713 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
11714
11715 * THANKS: Add David Miller.
11716
11717 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
11718
11719 libpciaccess support.
11720
11721 * Makefile.in (LIBPCIACCESS): New variable.
11722 (enable_grub_emu_pci): Likewise.
11723 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
11724 util/pci.c and commands/lspci.c.
11725 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
11726 * configure.ac (grub-emu-pci): New option.
11727 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
11728 (grub_pci_device_unmap_range): Likewise.
11729 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
11730 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
11731 (grub_pci_address_t) [!GRUB_UTIL]: New type.
11732 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
11733 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
11734 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
11735 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
11736 * include/grub/pciutils.h: New file.
11737 * util/pci.c: Likewise.
11738
11739 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
11740
11741 * util/misc.c: Don't include <errno.h> twice.
11742
11743 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
11744
11745 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
11746 name in an error message.
11747 (grub_biosdisk_rw): Likewise.
11748
11749 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
11750
11751 Eliminate NTFS 4Gib barrier.
11752
11753 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
11754 (read_run_data): Likewise.
11755 (grub_ntfs_read_run_list): Likewise.
11756 (grub_ntfs_read_block): Likewise.
11757 (grub_ntfs_iterate_dir): Likewise.
11758 (read_mft): Likewise.
11759 (read_data): Likewise.
11760 Use COM_LOG_LEN.
11761 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
11762 to avoid 64-bit division
11763 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
11764 (grub_ntfs_rlst): Use grub_disk_addr_t.
11765
11766 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
11767
11768 Eliminate grub-fstest 4Gib barrier.
11769
11770 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
11771 (read_file): Fix error reporting.
11772
11773 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
11774
11775 Eliminate hexdump 4Gib barrier.
11776
11777 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
11778 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
11779
11780 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
11781
11782 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
11783 Fixes amarsh bug.
11784
11785 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
11786
11787 Remove miscellaneous files in distclean target.
11788
11789 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
11790
11791 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
11792
11793 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
11794 if they're already set. This resolves the conflict between my
11795 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
11796 fixing the --grub-probe option again.
11797 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
11798 change on 2009-10-06, so that we now once again source
11799 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
11800
11801 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
11802
11803 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
11804 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
11805 `util/devicemap.c'.
11806
11807 2009-12-08 Carles Pina i Estany <carles@pina.cat>
11808
11809 * include/grub/misc.h (grub_printf_): New declaration.
11810 * kern/misc.c (grub_printf_): New definition.
11811 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
11812 instead of `grub_printf' and `_'.
11813 * normal/menu_entry.c (store_completion): Likewise.
11814 (run): Likewise.
11815 (grub_menu_entry_run): Likewise.
11816 * normal/menu_text.c (grub_wait_after_message): Likewise.
11817 (notify_booting): Likewise.
11818 (notify_fallback): Likewise.
11819 (notify_execution_failure): Likewise.
11820
11821 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
11822
11823 * configure.ac: Check for vasprintf.
11824 * util/misc.c (asprintf): Move allocation from here ...
11825 (vasprintf): ... to here. New function.
11826 (xasprintf): New function.
11827 * include/grub/util/misc.h (vasprintf, xasprintf): Add
11828 prototypes.
11829 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
11830 * util/grub-mkfont.c (write_font): Likewise.
11831 * util/grub-probe.c (probe): Likewise.
11832 * util/hostdisk.c (make_device_name): Likewise.
11833
11834 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
11835
11836 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
11837 anything even prefixed with 'cdrom' as a cdrom.
11838
11839 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
11840
11841 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
11842 mount points.
11843
11844 2009-12-05 Carles Pina i Estany <carles@pina.cat>
11845
11846 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
11847 grub_gettext_msg_list.
11848 (grub_gettext_gettranslation_from_position): Return const char *
11849 and not char *.
11850 (grub_gettext_translate): Add the translated strings into a list,
11851 returns from the list if existing there.
11852 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
11853 (grub_gettext_delete_list): Delete the list.
11854 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
11855 lang environment variable is changed.
11856 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
11857
11858 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
11859
11860 Rename kernel.mod to kernel.img.
11861
11862 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
11863 (kernel_mod_EXPORTS): Rename to ...
11864 (kernel_img_EXPORTS): ... this.
11865 (kernel_mod_SOURCES): Rename to ...
11866 (kernel_img_SOURCES): ... this.
11867 (kernel_mod_HEADERS): Rename to ...
11868 (kernel_img_HEADERS): ... this. All users updated.
11869 (kernel_mod_CFLAGS): Rename to ...
11870 (kernel_img_CFLAGS): ... this.
11871 (kernel_mod_ASFLAGS): Rename to ...
11872 (kernel_img_ASFLAGS): ... this.
11873 (kernel_mod_LDFLAGS): Rename to ...
11874 (kernel_img_LDFLAGS): ... this.
11875 * conf/x86_64-efi.rmk: Likewise.
11876 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
11877 (read_kernel_image): ... this. All users updated.
11878 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
11879
11880 2009-12-05 Carles Pina i Estany <carles@pina.cat>
11881
11882 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
11883 (print_spaces): New function.
11884 (grub_print_ucs4): New function.
11885 (getstringwidth): New function.
11886 (print_message_indented): New function.
11887 (print_message): Gettexttize strings using print_message_indented.
11888 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
11889 width.
11890 (get_entry_number): Gettextize and uses dynamic terminal width.
11891 (notify_booting, notify_fallback, notify_execution_failure):
11892 Gettextize.
11893 * normal/menu_entry.c (store_completion): Cleanup the gettextized
11894 string.
11895 (run): Likewise.
11896 (grub_menu_entry_run): Likewise.
11897 * PO/POTFILES: Add normal/menu_entry.c.
11898
11899 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
11900
11901 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
11902
11903 2009-12-05 Carles Pina i Estany <carles@pina.cat>
11904
11905 * util/grub-install.in: Install gettext .mo files.
11906 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
11907
11908 2009-12-05 Carles Pina i Estany <carles@pina.cat>
11909
11910 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
11911 grub_dprintf.
11912
11913 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
11914
11915 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
11916 non-firmware-dependant one in realmode.S takes precedence.
11917
11918 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
11919
11920 * commands/halt.c: Replace misc arch-specific headers with
11921 `<grub/misc.h>'.
11922 * commands/reboot.c: Likewise.
11923 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
11924 `<grub/misc.h>'.
11925 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
11926 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
11927 (kernel_img_SOURCES): ... to here.
11928
11929 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
11930 * include/grub/i386/pc/init.h: Likewise.
11931 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
11932 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
11933
11934 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
11935
11936 * include/grub/i386/halt.h: Remove.
11937 * include/grub/i386/reboot.h: Likewise.
11938
11939 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
11940
11941 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
11942
11943 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
11944 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
11945 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
11946 "progname.h"
11947 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
11948 * util/sparc64/ieee1275/grub-setup.c: Likewise.
11949 (usage): Add missing comma in printf.
11950
11951 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
11952
11953 Use the same reboot approach on i386 coreboot and qemu as we do on
11954 BIOS.
11955
11956 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
11957 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
11958 * kern/i386/reboot.c: Remove.
11959 * include/grub/i386/reboot.h (grub_reboot): Export function.
11960 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
11961 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
11962 0xf000:0xfff0 instead of 0xffff:0x0000.
11963 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
11964 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
11965
11966 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
11967
11968 Fix $srcdir != $objdir build.
11969
11970 * Makefile.in (po/%.po): Rewrite as ...
11971 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
11972
11973 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
11974
11975 Fix GNU/Hurd grub-install crash.
11976 * util/grub-probe.c (probe): Try to access `path' only when it is not
11977 NULL.
11978
11979 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
11980
11981 Correct module naming.
11982
11983 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
11984 (GRUB_MOD_INIT(efi_uga)): ... to this
11985 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
11986 (GRUB_MOD_FINI(efi_uga)): ... to this
11987 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
11988 (GRUB_MOD_INIT(efi_gop)): ... to this
11989 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
11990 (GRUB_MOD_FINI(efi_gop)): ... to this
11991
11992 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
11993
11994 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
11995 translatable.
11996 (usage): Translate `arg' strings using gettext().
11997 Thanks to Jordi Mallach for the suggestion.
11998
11999 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
12000
12001 GOP support. Based on patch from Bean
12002 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
12003
12004 * video/efi_gop.c: New file.
12005 * include/grub/efi/graphics_output.h: Likewise.
12006 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
12007 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
12008 variables.
12009 * conf/x86_64-efi.rmk: Likewise.
12010
12011 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
12012
12013 Rename efi_fb to efi_uga.
12014
12015 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
12016 'efi_uga.mod'.
12017 (efi_fb_mod_SOURCES): Rename this ...
12018 (efi_uga_mod_SOURCES): ... to this.
12019 (efi_fb_mod_CFLAGS): Rename this ...
12020 (efi_uga_mod_CFLAGS): ... to this.
12021 (efi_fb_mod_LDFLAGS): Rename this ...
12022 (efi_uga_mod_LDFLAGS): ... to this.
12023 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
12024 'efi_uga.mod'.
12025 (efi_fb_mod_SOURCES): Rename this ...
12026 (efi_uga_mod_SOURCES): ... to this.
12027 (efi_fb_mod_CFLAGS): Rename this ...
12028 (efi_uga_mod_CFLAGS): ... to this.
12029 (efi_fb_mod_LDFLAGS): Rename this ...
12030 (efi_uga_mod_LDFLAGS): ... to this.
12031 * video/efi_fb.c: Move this ...
12032 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
12033
12034 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
12035
12036 * po/README: New file. Explain our PO file workflow.
12037
12038 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
12039
12040 * po/ChangeLog: Remove. Move relevant entries back to ...
12041 * ChangeLog: ... here.
12042 * po/ca.po: Remove (now handled by TLP).
12043 * po/id.po: Likewise.
12044 * po/zh_CN.po: Likewise.
12045 * Makefile.in (LINGUAS): Initialize in a way that supports
12046 empty set.
12047
12048 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
12049
12050 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
12051 reliing on po/LINGUAS.
12052 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
12053 (po/%.po): ... this.
12054
12055 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
12056
12057 * util/i386/efi/grub-mkimage.c: Include "progname.h".
12058 (main): Use `program_name' instead of nonexistent `progname'.
12059
12060 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
12061
12062 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
12063 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
12064
12065 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
12066
12067 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
12068 commit.
12069 * conf/i386-efi.rmk: Likewise.
12070 * conf/i386-ieee1275.rmk: Likewise.
12071 * conf/powerpc-ieee1275.rmk: Likewise.
12072 * conf/sparc64-ieee1275.rmk: Likewise.
12073 * conf/x86_64-efi.rmk: Likewise.
12074
12075 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
12076
12077 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
12078
12079 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
12080
12081 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
12082
12083 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
12084
12085 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
12086 (grub_mkdevicemap_SOURCES): New variable.
12087 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
12088 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
12089 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
12090 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
12091 (grub_mkdevicemap_SOURCES): Remove.
12092 * conf/i386-efi.rmk: Likewise.
12093 * conf/i386-ieee1275.rmk: Likewise.
12094 * conf/i386-pc.rmk: Likewise.
12095 * conf/powerpc-ieee1275.rmk: Likewise.
12096 * conf/sparc64-ieee1275.rmk: Likewise.
12097 * conf/x86_64-efi.rmk: Likewise.
12098 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
12099 (usage): Fix strings to use `program_name'.
12100 (main): Initialize gettext.
12101 * util/grub-editenv.c: Likewise.
12102 * util/grub-emu.c: Likewise.
12103 * util/grub-fstest.c: Likewise.
12104 * util/grub-mkdevicemap.c: Likewise.
12105 * util/grub-mkfont.c: Likewise.
12106 * util/grub-mkrelpath.c: Likewise.
12107 * util/grub-pe2elf.c: Likewise.
12108 * util/grub-probe.c: Likewise.
12109 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
12110 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
12111 * util/sparc64/ieee1275/grub-setup.c: Likewise.
12112
12113 * util/misc.c: Include `"progname.h"'.
12114 (progname): Remove variable.
12115 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
12116
12117 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
12118
12119 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
12120 printf and print a newline after the menuentry header line.
12121 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
12122
12123 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
12124
12125 autoconf >= 2.60 support $(localedir).
12126
12127 * INSTALL: Note that autoconf 2.60 is required.
12128 * configure.ac (AC_PREREQ): Bump to 2.60.
12129 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
12130 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
12131
12132 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
12133
12134 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
12135 aclocal is run.
12136
12137 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
12138
12139 * normal/main.c (grub_normal_read_line): Fix off-by-one
12140 buffer overflow.
12141
12142 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
12143
12144 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
12145 "parser.grub" in grub_command_execute() call.
12146
12147 2009-11-24 Carles Pina i Estany <carles@pina.cat>
12148
12149 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
12150 * conf/i386-efi.rmk: Likewise.
12151 * conf/i386-ieee1275.rmk: Likewise.
12152 * conf/i386-pc.rmk: Likewise.
12153 * conf/powerpc-ieee1275.rmk: Likewise.
12154 * conf/sparc64-ieee1275.rmk: Likewise.
12155 * conf/x86_64-efi.rmk: Likewise.
12156 * gettext/gettex.c: Include <grub/i18n.h>.
12157 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
12158 here ...
12159 * include/grub/i18n.h: ... to here
12160 * include/grub/i18n.h: ... to here.
12161 * kern/misc.c: Include <grub/i18n.h>
12162 (grub_gettext_dummy): Move above user.
12163
12164 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
12165
12166 * util/Makefile.in (install-local): Convert a `for' into a normal
12167 shell expansion.
12168
12169 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
12170
12171 * autogen.sh: Add automake call.
12172 * config.guess: Remove.
12173 * config.sub: Likewise.
12174 * install-sh: Likewise.
12175
12176 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
12177
12178 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
12179
12180 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
12181
12182 * util/Makefile.in (install-local): Convert a make `$(foreach)'
12183 function to a normal shell `for'.
12184
12185 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
12186
12187 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
12188
12189 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
12190
12191 * util/grub-mkrelpath.c: New file.
12192 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
12193 (grub_mkrelpath_SOURCES): New variable.
12194 * include/grub/util/misc.h: New function prototype.
12195 * util/misc.c (make_system_path_relative_to_its_root): New function.
12196
12197 * util/grub-mkconfig_lib.in (bindir): New variable.
12198 (grub_mkrelpath): Likewise.
12199 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
12200
12201 * util/probe.c (probe): Make the file path relative to its root.
12202 Change a info message to use the GRUB path. Enable again the
12203 check if we can read the file with GRUB facilities.
12204
12205 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
12206 to its root.
12207
12208 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
12209
12210 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
12211 platform.
12212
12213 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
12214
12215 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
12216 strncmp().
12217
12218 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
12219
12220 * util/getroot.c (grub_util_is_dmraid): New function.
12221 (grub_util_get_dev_abstraction): Treat dmraid and multipath
12222 devices as normal ones, not as LVM.
12223
12224 2009-11-23 Carles Pina i Estany <carles@pina.cat>
12225
12226 * conf/common.rmk: Add grub-gettext_lib target and updates
12227 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
12228 LDFLAGS.
12229 * gettext/gettext.c: New file. (Reads mo files).
12230 * include/grub/file.h (grub_file_pread): New prototype.
12231 * include/grub/i18n.h (_): New prototype.
12232 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
12233 prototypes.
12234 * kern/misc.c (grub_gettext_dummy): New function.
12235 * normal/menu_text.c: Include <grub/i18n.h>.
12236 * normal/menu_text.c (print_timeout): Gettexttize string.
12237 * normal/menu_text.c (print_message): Gettexttize string.
12238 * po/POTFILES: Add `normal/menu_text.c'.
12239 * po/ca.po: Add new translations.
12240 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
12241 gettext module and defines locale_dir and lang in grub.cfg.
12242 * NEWS: Add gettext support.
12243
12244 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12245
12246 * util/hostdisk.c: Include `<grub/i18n.h>'.
12247 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
12248 (make_device_name): Rewrite using asprintf.
12249 (convert_system_partition_to_system_disk): Replace 0 with NULL.
12250 (find_system_device): If a device is not found, generate one just
12251 by reusing the OS path name.
12252 (read_device_map): Make it permissible for device.map not to exist.
12253
12254 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12255
12256 * script/sh/execute.c: Move from here ...
12257 * script/execute.c: ... to here. Update all users.
12258 * script/sh/function.c: Move from here ...
12259 * script/function.c: ... to here. Update all users.
12260 * script/sh/lexer.c: Move from here ...
12261 * script/lexer.c: ... to here. Update all users.
12262 * script/sh/main.c: Move from here ...
12263 * script/main.c: ... to here. Update all users.
12264 * script/sh/parser.y: Move from here ...
12265 * script/parser.y: ... to here. Update all users.
12266 * script/sh/script.c: Move from here ...
12267 * script/script.c: ... to here. Update all users.
12268
12269 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12270
12271 * configure.ac: Detect all `emu' platforms. Define
12272 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
12273 --enable-grub-emu logic. Disable include/grub/machine
12274 symlink on `emu' platforms.
12275
12276 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
12277 * gensymlist.sh.in: Likewise.
12278
12279 * include/grub/i386/coreboot/machine.h: Remove file.
12280 * include/grub/i386/efi/machine.h: Likewise.
12281 * include/grub/i386/ieee1275/machine.h: Likewise.
12282 * include/grub/i386/pc/machine.h: Likewise.
12283 * include/grub/i386/qemu/machine.h: Likewise.
12284 * include/grub/powerpc/ieee1275/machine.h: Likewise.
12285 * include/grub/sparc64/ieee1275/machine.h: Likewise.
12286 * include/grub/x86_64/efi/machine.h: Likewise.
12287
12288 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
12289 * commands/halt.c: Likewise.
12290 * commands/reboot.c: Likewise.
12291 * include/grub/autoefi.h: Likewise.
12292 * include/grub/i386/at_keyboard.h: Likewise.
12293 * include/grub/i386/kernel.h: Likewise.
12294 * include/grub/i386/loader.h: Likewise.
12295 * include/grub/i386/pc/memory.h: Likewise.
12296 * kern/dl.c: Likewise.
12297 * kern/i386/coreboot/init.c: Likewise.
12298 * loader/i386/bsd.c: Likewise.
12299 * loader/i386/linux.c: Likewise.
12300 * loader/multiboot_loader.c: Likewise.
12301 * term/i386/pc/serial.c: Likewise.
12302 * term/usb_keyboard.c: Likewise.
12303
12304 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
12305 `<grub/machine/machine.h>'
12306 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
12307 * util/misc.c: Remove `<grub/machine/machine.h>' and
12308 `<grub/machine/time.h>'.
12309
12310 * Makefile.in (enable_grub_emu): Remove variable.
12311 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
12312
12313 * conf/any-emu.rmk: New file.
12314 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
12315 (grub_emu_init.c): Move from here ...
12316 * conf/any-emu.rmk: ... to here.
12317
12318 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
12319 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
12320 * conf/any-emu.rmk: ... to here.
12321
12322 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12323
12324 * include/grub/parser.h (grub_parser_register): Document need
12325 of `name' parameter.
12326 * normal/main.c (grub_normal_read_line): Simplify prompt string.
12327 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
12328 "sh" to "grub".
12329
12330 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12331
12332 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
12333 `$(XGETTEXT)'.
12334 * include/grub/i18n.h (N_): New macro.
12335 * util/mkisofs/mkisofs.h: Likewise.
12336 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
12337 around N_().
12338 (usage): Use gettext() to translate help strings when printing them.
12339
12340 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12341
12342 Based on patch from Bean
12343 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
12344
12345 * video/efi_fb.c: New file.
12346 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
12347 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
12348 variables.
12349 * conf/x86_64-efi.rmk: Likewise.
12350
12351 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
12352
12353 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
12354 * util/i386/pc/grub-setup.c: Likewise.
12355
12356 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
12357
12358 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
12359 <hurd/fs.h>
12360 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
12361 file_get_storage_info to implement grub_guess_root_device.
12362
12363 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
12364
12365 * Makefile.in (target): Use make's builtin $(shell) function
12366 instead of calling directly $(SHELL) to create the locale directories,
12367 inside the $(foreach) function.
12368
12369 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
12370
12371 * util/grub-mkrescue.in: Print an error and usage if output option
12372 has not been given.
12373
12374 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
12375
12376 Patch from Loïc Minier <loic.minier@ubuntu.com>.
12377 * util/grub.d/30_os-prober.in: Cope with Linux entries where
12378 root and /boot are on different devices.
12379
12380 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
12381
12382 Fix build for srcdir != objdir.
12383
12384 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
12385 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
12386 $(srcdir).
12387 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
12388 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
12389 reference for input.
12390
12391 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
12392
12393 * util/grub-mkrescue.in: Use source directory direcly (without copiing
12394 or hardlinking it). Remove -J option, Joliet is not compatible with
12395 multiple source directories.
12396
12397 2009-11-21 Carles Pina i Estany <carles@pina.cat>
12398 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
12399
12400 * util/grub-mkrescue.in: Recognize `--override-directory' option.
12401 (process_input_dir): New function. Process an arbitrary input
12402 directory.
12403 Misc adjustments to support both "override mode" and system-wide mode.
12404
12405 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
12406
12407 * configure.ac (UNIFONT_BDF): Rename to ...
12408 (FONT_SOURCE): ... this. Update all users.
12409
12410 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
12411
12412 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
12413 to the list of unifont files to look for.
12414
12415 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
12416
12417 Patch from Joe Auricchio <jauricchio@gmail.com>
12418 * commands/minicmd.c (grub_mini_cmd_clear): New function.
12419 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
12420 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
12421
12422 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
12423
12424 * Makefile.in (install-local): Add a missing backslash.
12425
12426 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
12427
12428 * include/grub/x86_64/io.h: New file.
12429
12430 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
12431
12432 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
12433 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
12434 Include `"progname.h"'.
12435 (main): Initialize gettext.
12436 * util/i386/pc/grub-setup.c: Gettexttize.
12437 * util/i386/pc/grub-mkimage.c: Likewise.
12438
12439 * Makefile.in (po/*.po): Redefine as ...
12440 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
12441
12442 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
12443
12444 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
12445
12446 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
12447 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
12448 (program_name): Remove.
12449 (main): Initialize gettext support.
12450 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
12451 Include `<libintl.h>'.
12452 (_): New macro.
12453
12454 * util/mkisofs/eltorito.c: Gettexttize.
12455 * util/mkisofs/joliet.c: Likewise.
12456 * util/mkisofs/mkisofs.c: Likewise.
12457 * util/mkisofs/multi.c: Likewise.
12458 * util/mkisofs/rock.c: Likewise.
12459 * util/mkisofs/tree.c: Likewise.
12460 * util/mkisofs/write.c: Likewise.
12461
12462 * po/POTFILES: Update with new files.
12463
12464 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
12465
12466 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
12467 * util/mkisofs/iso9660.h: Likewise.
12468 * util/mkisofs/joliet.c: Likewise.
12469 * util/mkisofs/mkisofs.c: Likewise.
12470 * util/mkisofs/mkisofs.h: Likewise.
12471 * util/mkisofs/rock.c: Likewise.
12472 * util/mkisofs/tree.c: Likewise.
12473 * util/mkisofs/write.c: Likewise.
12474
12475 * util/mkisofs/eltorito.c (rcsid): Remove.
12476 * util/mkisofs/hash.c: Likewise.
12477 * util/mkisofs/joliet.c: Likewise.
12478 * util/mkisofs/name.c: Likewise.
12479 * util/mkisofs/rock.c: Likewise.
12480 * util/mkisofs/tree.c: Likewise.
12481 * util/mkisofs/write.c: Likewise.
12482
12483 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
12484
12485 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
12486 instead of static allocation.
12487 * util/mkisofs/match.h: Likewise.
12488
12489 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
12490
12491 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
12492 and `util/grub.d/10_linux.in'.
12493 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
12494 translatable Shell files.
12495
12496 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
12497
12498 * Makefile.in ($(srcdir)/aclocal.m4): New target.
12499
12500 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12501
12502 * INSTALL: Document Automake is needed for bootstrap.
12503 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
12504 * util/grub.d/10_kfreebsd.in (bindir): New variable.
12505 Add gettext initialization.
12506 (kfreebsd_entry): Make menuentry output translatable.
12507
12508 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12509
12510 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
12511 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
12512 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
12513 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
12514 (LINGUAS): Auto-generate using `po/LINGUAS'.
12515 * po/LINGUAS: New file.
12516
12517 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12518
12519 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
12520 other things).
12521 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
12522 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
12523 bindtextdomain() calls for gettext initialization.
12524
12525 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12526
12527 * gnulib/progname.c: New file (imported from Gnulib).
12528 * gnulib/progname.h: Likewise.
12529 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
12530 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
12531 (usage): Replace `progname' with `program_name'.
12532 (main): Use set_program_name() for program name initialization.
12533
12534 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12535
12536 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
12537 from here ...
12538 * Makefile.in (CPPFLAGS): ... to here.
12539
12540 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
12541
12542 * aclocal.m4: Move from here ...
12543 * acinclude.m4: ... to here.
12544 * autogen.sh: Add call to `aclocal'.
12545 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
12546
12547 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
12548
12549 * Makefile.in (CLEANFILES): Add `po/*.mo'.
12550 (LINGUAS): New variable.
12551 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
12552 (install-local): Install MO files.
12553 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
12554 * include/grub/i18n.h: New file.
12555 * po/POTFILES: New file.
12556 * po/ca.po: New file.
12557 * util/grub.d/10_linux.in (bindir): New variable.
12558 Add gettext initialization.
12559 (linux_entry): Make menuentry output translatable.
12560 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
12561 (usage): Make --help output translatable.
12562 (main): Initialize gettext.
12563
12564 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12565
12566 * import_gcry.py: New file (written by Vladimir with minor
12567 adjustments).
12568 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
12569 ciphers.
12570 * INSTALL: Document that Python is required for bootstrap.
12571
12572 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12573
12574 Import ciphers from libgcrypt 1.4.4.
12575
12576 * lib/libgcrypt/cipher/ChangeLog
12577 * lib/libgcrypt/cipher/ac.c
12578 * lib/libgcrypt/cipher/arcfour.c
12579 * lib/libgcrypt/cipher/bithelp.h
12580 * lib/libgcrypt/cipher/blowfish.c
12581 * lib/libgcrypt/cipher/camellia-glue.c
12582 * lib/libgcrypt/cipher/camellia.c
12583 * lib/libgcrypt/cipher/camellia.h
12584 * lib/libgcrypt/cipher/cast5.c
12585 * lib/libgcrypt/cipher/cipher.c
12586 * lib/libgcrypt/cipher/crc.c
12587 * lib/libgcrypt/cipher/des.c
12588 * lib/libgcrypt/cipher/dsa.c
12589 * lib/libgcrypt/cipher/ecc.c
12590 * lib/libgcrypt/cipher/elgamal.c
12591 * lib/libgcrypt/cipher/hash-common.c
12592 * lib/libgcrypt/cipher/hash-common.h
12593 * lib/libgcrypt/cipher/hmac-tests.c
12594 * lib/libgcrypt/cipher/md.c
12595 * lib/libgcrypt/cipher/md4.c
12596 * lib/libgcrypt/cipher/md5.c
12597 * lib/libgcrypt/cipher/primegen.c
12598 * lib/libgcrypt/cipher/pubkey.c
12599 * lib/libgcrypt/cipher/rfc2268.c
12600 * lib/libgcrypt/cipher/rijndael-tables.h
12601 * lib/libgcrypt/cipher/rijndael.c
12602 * lib/libgcrypt/cipher/rmd.h
12603 * lib/libgcrypt/cipher/rmd160.c
12604 * lib/libgcrypt/cipher/rsa.c
12605 * lib/libgcrypt/cipher/seed.c
12606 * lib/libgcrypt/cipher/serpent.c
12607 * lib/libgcrypt/cipher/sha1.c
12608 * lib/libgcrypt/cipher/sha256.c
12609 * lib/libgcrypt/cipher/sha512.c
12610 * lib/libgcrypt/cipher/tiger.c
12611 * lib/libgcrypt/cipher/twofish.c
12612 * lib/libgcrypt/cipher/whirlpool.c
12613
12614 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
12615
12616 Fix build for systems without error().
12617
12618 * gnulib/error.c: New file (imported from Gnulib).
12619 * gnulib/error.h: Likewise.
12620 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
12621 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
12622 (this variable is now used by error()).
12623
12624 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
12625
12626 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
12627 instead of relying that char is signed.
12628
12629 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12630
12631 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
12632 blocksize different from specified.
12633 (grub_pxefs_read): Likewise.
12634
12635 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
12636
12637 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
12638
12639 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
12640 (grub_ata_readwrite): Likewise. Update 2 format strings.
12641 (grub_atapi_read): Likewise.
12642
12643 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
12644 * conf/i386.rmk (pkglib_MODULES): ... to here ...
12645 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
12646 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
12647 (ata_mod_LDFLAGS): Move from here ...
12648 * conf/i386.rmk: ... to here ...
12649 * conf/x86_64-efi.rmk: ... and here.
12650 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
12651 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
12652
12653 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
12654
12655 Relicense multiboot.h, with RMS' blessing.
12656
12657 * include/multiboot.h: Change to X11 license.
12658
12659 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
12660
12661 Support --version in grub-mkisofs.
12662
12663 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
12664 (OPTION_VERSION): New macro.
12665 (ld_options): Recognize --version.
12666 (usage): Move `program_name' from here ...
12667 (program_name): ... to here. Add `static' qualifier.
12668 (main): Recognize `OPTION_VERSION'.
12669
12670 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
12671
12672 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
12673 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
12674
12675 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
12676
12677 Fix help2man generation for mkisofs.
12678
12679 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
12680 (usage): Send output to stdout (rather than stderr).
12681
12682 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
12683
12684 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
12685 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
12686 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
12687 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
12688 (bin_SCRIPTS): Add `grub-mkfloppy'.
12689 (grub_mkfloppy_SOURCES): New variable.
12690
12691 * util/grub-mkrescue.in: New file.
12692 * util/i386/pc/grub-mkfloppy.in: New file.
12693
12694 * util/i386/coreboot/grub-mkrescue.in: Remove.
12695 * util/i386/pc/grub-mkrescue.in: Remove.
12696
12697 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
12698
12699 * include/grub/multiboot.h (struct grub_multiboot_header): Move
12700 from here ...
12701 * include/multiboot.h (struct multiboot_header): ... to here. Update
12702 all users.
12703 * include/grub/multiboot.h (struct grub_multiboot_info): Move
12704 from here ...
12705 * include/multiboot.h (struct multiboot_info): ... to here. Update
12706 all users.
12707 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
12708 from here ...
12709 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
12710 Update all users.
12711 * include/grub/multiboot.h (struct grub_mod_list): Move
12712 from here ...
12713 * include/multiboot.h (struct multiboot_mod_list): ... to here.
12714 Update all users.
12715
12716 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
12717
12718 * include/multiboot2.h (multiboot_word): Rename from this ...
12719 (multiboot2_word): ... to this. Update all users.
12720 (multiboot_header): Rename from this ...
12721 (multiboot2_header): ... to this. Update all users.
12722 (multiboot_tag_header): Rename from this ...
12723 (multiboot2_tag_header): ... to this. Update all users.
12724 (multiboot_tag_start): Rename from this ...
12725 (multiboot2_tag_start): ... to this. Update all users.
12726 (multiboot_tag_name): Rename from this ...
12727 (multiboot2_tag_name): ... to this. Update all users.
12728 (multiboot_tag_module): Rename from this ...
12729 (multiboot2_tag_module): ... to this. Update all users.
12730 (multiboot_tag_memory): Rename from this ...
12731 (multiboot2_tag_memory): ... to this. Update all users.
12732 (multiboot_tag_unused): Rename from this ...
12733 (multiboot2_tag_unused): ... to this. Update all users.
12734 (multiboot_tag_end): Rename from this ...
12735 (multiboot2_tag_end): ... to this. Update all users.
12736
12737 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
12738
12739 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
12740 this platform we should support Multiboot1 first.
12741
12742 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
12743 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
12744 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
12745
12746 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
12747
12748 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
12749 of write calls (converting them to fwrite() if they aren't already).
12750 (get_torito_desc): Likewise.
12751 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
12752
12753 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
12754
12755 * util/i386/pc/grub-install.in: Move from here ...
12756 * util/grub-install.in: ... to here. Update all users.
12757
12758 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
12759
12760 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
12761
12762 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
12763
12764 Support for El Torito without floppy emulation.
12765
12766 * util/mkisofs/eltorito.c: Include `<errno.h>'.
12767 (init_boot_catalog): Improve error handling.
12768 (get_torito_desc): Don't use floppy emulation unless requested by
12769 user. Patch boot information table when requested via
12770 `-boot-info-table'.
12771 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
12772 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
12773 (use_boot_info_table): New variables.
12774 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
12775 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
12776 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
12777 `--eltorito-emul-floppy'.
12778 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
12779 and `OPTION_ELTORITO_EMUL_FLOPPY'.
12780 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
12781 (use_boot_info_table, get_731): New prototypes.
12782 * util/mkisofs/write.c (get_731): New function.
12783
12784 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
12785
12786 Fix the generation of the man page.
12787
12788 * util/pc/i386/grub-install.in: Source
12789 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
12790
12791 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
12792
12793 Large file support for grub-mkisofs.
12794
12795 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
12796 * util/mkisofs/mkisofs.c (next_extent, last_extent)
12797 (session_start): Upgrade type to `uint64_t'. Update all users.
12798 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
12799 (struct directory_entry): Upgrade type of `starting_block' and
12800 `size' to `uint64_t'. Update all users.
12801 (struct deferred): Remove unused structure.
12802 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
12803 Update all users.
12804 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
12805 file is larger than `UINT32_MAX'.
12806 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
12807 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
12808 return value.
12809 (struct deferred_write): Upgrade type of `extent' and `size' to
12810 `uint64_t'. Update all users.
12811 (last_extent_written): Upgrade type to `uint64_t'. Update all
12812 users.
12813 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
12814 Update all users. Upgrade type of `remain' to `int64_t' and
12815 `use' to `size_t'. Use error() to handle fread() errors.
12816 (write_files): Rely on write_one_file() rather than calling
12817 xfwrite() directly.
12818
12819 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
12820
12821 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
12822
12823 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12824
12825 * util/mkisofs/fnmatch.c: Remove.
12826 * util/mkisofs/getopt1.c: Likewise.
12827 * util/mkisofs/getopt.c: Likewise.
12828 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
12829 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
12830 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
12831 `gnulib/getopt1.c' and `gnulib/getopt.c'.
12832 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
12833
12834 * configure.ac: Detect `mingw32msvc' host_os.
12835 Check for lstat(), getuid() and getgid().
12836
12837 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
12838 instances of `u_char' with `uint8_t'.
12839
12840 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
12841 [!HAVE_GETUID] (getuid): New function (stub).
12842 [!HAVE_GETGID] (getgid): Likewise.
12843 [!HAVE_LSTAT] (lstat): Likewise.
12844 [!S_IROTH] (S_IROTH): New macro (dummy).
12845 [!S_IRGRP] (S_IRGRP): Likewise.
12846
12847 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12848
12849 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
12850 conditional expression).
12851
12852 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12853
12854 Import from Gnulib.
12855
12856 * gnulib/fnmatch.c: New file.
12857 * gnulib/fnmatch.h: Likewise.
12858 * gnulib/fnmatch_loop.c: Likewise.
12859 * gnulib/getopt.c: Likewise.
12860 * gnulib/getopt.h: Likewise.
12861 * gnulib/getopt1.c: Likewise.
12862 * gnulib/getopt_int.h: Likewise.
12863 * gnulib/gettext.h: Likewise.
12864
12865 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12866
12867 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
12868 * normal/handler.c (read_handler_list): Likewise.
12869
12870 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12871
12872 Misc cleanup.
12873
12874 * kern/command.c (grub_register_command_prio): Use
12875 grub_zalloc() instead of explicitly zeroing data.
12876 * kern/list.c: Include `<grub/mm.h>'.
12877 (grub_named_list_find): Replace `0' with `NULL'.
12878 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
12879 (fs_module_list): Change type to `grub_named_list_t'. Update all
12880 users.
12881 * normal/dyncmd.c (read_command_list): Add space between function
12882 call and parenthesis.
12883 * normal/handler.c (read_handler_list): Likewise.
12884
12885 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12886
12887 * normal/auth.c (punishment_delay): Moved from here ...
12888 (grub_auth_strcmp): ... to here (inside function).
12889
12890 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12891
12892 * include/grub/list.h (struct grub_named_list): Remove `const'
12893 qualifier from `name'.
12894 (struct grub_prio_list): Likewise.
12895
12896 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12897
12898 * normal/auth.c: Include `<grub/time.h>'.
12899 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
12900
12901 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12902
12903 * normal/auth.c (punishment_delay): New variable.
12904 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
12905 (grub_auth_check_authentication): Punish failed login attempts with
12906 an incremental (2^N) delay.
12907
12908 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12909
12910 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
12911 path with $(srcdir).
12912
12913 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
12914
12915 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
12916
12917 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
12918
12919 * util/i386/coreboot/grub-mkrescue.in: New file.
12920 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
12921 variables.
12922
12923 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
12924 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
12925 * configure.ac: Add header and function checks to satisfy grub-mkisofs
12926 requirements.
12927 * util/mkisofs/defaults.h: New file.
12928 * util/mkisofs/eltorito.c: Likewise.
12929 * util/mkisofs/exclude.h: Likewise.
12930 * util/mkisofs/fnmatch.c: Likewise.
12931 * util/mkisofs/getopt.c: Likewise.
12932 * util/mkisofs/getopt1.c: Likewise.
12933 * util/mkisofs/hash.c: Likewise.
12934 * util/mkisofs/include/fctldefs.h: Likewise.
12935 * util/mkisofs/include/mconfig.h: Likewise.
12936 * util/mkisofs/include/prototyp.h: Likewise.
12937 * util/mkisofs/include/statdefs.h: Likewise.
12938 * util/mkisofs/iso9660.h: Likewise.
12939 * util/mkisofs/joliet.c: Likewise.
12940 * util/mkisofs/match.c: Likewise.
12941 * util/mkisofs/match.h: Likewise.
12942 * util/mkisofs/mkisofs.c: Likewise.
12943 * util/mkisofs/mkisofs.h: Likewise.
12944 * util/mkisofs/multi.c: Likewise.
12945 * util/mkisofs/name.c: Likewise.
12946 * util/mkisofs/rock.c: Likewise.
12947 * util/mkisofs/tree.c: Likewise.
12948 * util/mkisofs/write.c: Likewise.
12949
12950 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
12951
12952 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
12953 being insecure.
12954
12955 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
12956
12957 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
12958 `grub-mkimage' (and use $0 when possible).
12959
12960 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
12961
12962 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
12963 error message for excessively large memory map.
12964
12965 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
12966
12967 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
12968 executable bit.
12969
12970 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
12971
12972 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
12973 message for coreboot users.
12974
12975 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
12976
12977 Fix build with GNU gold.
12978
12979 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
12980 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
12981 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
12982 link addresses.
12983 * aclocal.m4: Likewise.
12984
12985 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
12986
12987 * configure.ac (AC_PREREQ): Bump to 2.59d.
12988 * INSTALL: Make it more clear when Autoconf and Ruby are
12989 needed and when to run `./autogen.sh'.
12990
12991 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12992
12993 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
12994 OSes.
12995
12996 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12997
12998 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
12999
13000 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13001
13002 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
13003 giving it to GNU Mach.
13004
13005 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13006
13007 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
13008 GNU partition number to get internal GRUB partition number.
13009
13010 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13011
13012 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
13013 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
13014
13015 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
13016
13017 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
13018 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
13019 case.
13020
13021 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
13022
13023 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
13024
13025 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
13026
13027 Fix build problem.
13028
13029 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
13030 `-isystem=$(srcdir)/include'.
13031
13032 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
13033
13034 * util/i386/pc/grub-install.in: Remove hint that device.map should be
13035 checked (grub-install doesn't currently rely on it).
13036
13037 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
13038
13039 Revert SVN r2660.
13040
13041 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
13042 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
13043 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
13044 * conf/i386-ieee1275.rmk: Likewise.
13045 * conf/i386-pc.rmk: Likewise.
13046 * conf/powerpc-ieee1275.rmk: Likewise.
13047 * conf/sparc64-ieee1275.rmk: Likewise.
13048 * conf/x86_64-efi.rmk: Likewise.
13049
13050 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
13051
13052 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
13053
13054 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
13055
13056 * include/grub/misc.h: Stop checking for APPLE_CC.
13057
13058 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
13059
13060 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
13061 doesn't cause an infinite call loop.
13062
13063 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
13064
13065 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
13066 strings.
13067
13068 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13069
13070 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
13071 variable.
13072 * Makefile.in: Likewise.
13073
13074 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13075
13076 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
13077
13078 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13079
13080 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
13081
13082 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13083
13084 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
13085
13086 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13087
13088 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
13089 from here ...
13090 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
13091
13092 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13093
13094 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
13095 in $(MAKEINFO) invocation. This makes it clear in output that
13096 errors are being ignored.
13097
13098 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13099
13100 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
13101 from here ...
13102 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
13103 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
13104 * conf/i386-ieee1275.rmk: Likewise.
13105 * conf/i386-pc.rmk: Likewise.
13106 * conf/powerpc-ieee1275.rmk: Likewise.
13107 * conf/sparc64-ieee1275.rmk: Likewise.
13108 * conf/x86_64-efi.rmk: Likewise.
13109
13110 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
13111
13112 * util/grub-editenv.c (main): If only a command is given, use
13113 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
13114 (usage): FILENAME is now optional and has a default.
13115
13116 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
13117
13118 Improve grub-mkconfig performance when there are several menu
13119 entries on a single filesystem.
13120
13121 * util/grub.d/10_linux.in (linux_entry): Cache the output of
13122 prepare_grub_to_access_device.
13123 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
13124 * util/grub.d/30_os-prober.in: Likewise.
13125
13126 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13127
13128 * util/grub.d/10_freebsd.in: Remove.
13129 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
13130 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
13131
13132 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13133
13134 * docs/grub.cfg: Fix example usage of *BSD loaders.
13135
13136 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13137
13138 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
13139 grub_util_error() call.
13140
13141 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13142
13143 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
13144 `reserved_first_sector' member.
13145 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
13146 `reserved_first_sector' to 1.
13147 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
13148 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
13149 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
13150 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
13151 filesystems which begin at first sector.
13152 (options): New option --skip-fs-probe.
13153 (main): Handle --skip-fs-probe and pass it to setup().
13154
13155 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13156
13157 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
13158 (memset): Fix function prototype.
13159
13160 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13161 2009-10-25 Vasily Averin <vvs@parallels.com>
13162
13163 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
13164 `dirent.direntlen == 0'.
13165
13166 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13167
13168 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
13169 `cpio'.
13170 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
13171
13172 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13173
13174 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
13175 `__trampoline_setup' and `__ucmpdi2'.
13176 * include/grub/powerpc/libgcc.h: Only export symbols for functions
13177 that libgcc provides.
13178
13179 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13180
13181 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
13182 * include/grub/sparc64/libgcc.h (memset): Likewise.
13183 * include/grub/misc.h (memset, memcmp): New function prototypes.
13184
13185 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13186
13187 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
13188 `cpio'.
13189 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
13190
13191 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13192
13193 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
13194 * docs/grub.cfg: Compensate for recent change in multiboot
13195 loader (since 2009-08-14 it won't pass filename to payload).
13196 * util/grub.d/10_hurd.in: Likewise.
13197
13198 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
13199
13200 * config.guess: Update to latest version from config git
13201 repository.
13202 * config.sub: Likewise.
13203
13204 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
13205
13206 Fix build on sparc64.
13207
13208 * configure.ac: Perform checks for libgcc symbols before
13209 adding `-nostdlib' to LDFLAGS.
13210
13211 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13212
13213 Let user specify OpenBSD root device.
13214
13215 * loader/i386/bsd.c (openbsd_root): New variable.
13216 (openbsd_opts): New option 'root'.
13217 (OPENBSD_ROOT_ARG): New macro.
13218 (grub_openbsd_boot): Use 'openbsd_root'.
13219 (grub_cmd_openbsd): Fill 'openbsd_root'.
13220
13221 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
13222
13223 * NEWS: Misc adjustments.
13224
13225 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13226
13227 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
13228
13229 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
13230
13231 * configure.ac: Bump version to 1.97.
13232
13233 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
13234
13235 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
13236 -mno-3dnow on x86 architectures. Some toolchains enable these
13237 features by default, but they rely on registers that aren't enabled
13238 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
13239
13240 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
13241
13242 Make entry text a bit more readable.
13243
13244 * util/grub.d/10_linux.in: Add `with' before `Linux'.
13245
13246 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
13247
13248 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
13249
13250 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
13251
13252 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
13253 operations.
13254
13255 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
13256
13257 * configure.ac: Add missing dollar.
13258
13259 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
13260
13261 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
13262
13263 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
13264 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
13265 exports.
13266 * include/grub/sparc64/libgcc.h: Likewise. Use
13267 preprocessor conditionals.
13268
13269 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
13270
13271 * conf/common.rmk (grub-dumpbios): Remove rule.
13272 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
13273 * util/grub-dumpbios.in: Remove file.
13274
13275 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
13276
13277 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
13278 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
13279
13280 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
13281 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
13282 users.
13283
13284 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
13285 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
13286 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
13287 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
13288 users.
13289
13290 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
13291
13292 * term/tparm.c: Switch to GPLv3.
13293
13294 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
13295
13296 * include/grub/i386/cpuid.h: Add header protection.
13297
13298 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
13299
13300 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
13301
13302 * include/grub/i386/cpuid.h: New file.
13303 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
13304 (has_longmode): Rename to ...
13305 (grub_cpuid_has_longmode): ... this. Update all users. Remove
13306 `static' attribute.
13307 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
13308 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
13309 on a CPU that doesn't implement AMD64 instruction set.
13310
13311 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
13312
13313 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
13314 that version.texi is rebuilt on version number changes.
13315
13316 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
13317
13318 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
13319 Fixes bug #27602.
13320
13321 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
13322
13323 * util/i386/pc/grub-install.in: Source
13324 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
13325 that the --grub-probe option will work.
13326 * util/sparc64/ieee1275/grub-install.in: Likewise.
13327
13328 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
13329
13330 * configure.ac: Bump version to 1.97~beta4.
13331
13332 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
13333
13334 Resync grub-mkdevicemap in x86_64-efi.
13335
13336 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
13337 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
13338 `util/devicemap.c'.
13339
13340 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
13341
13342 * util/grub-editenv.c (create_envblk_file): Write new block with a
13343 .new suffix and then rename it into place, to ensure atomic
13344 creation.
13345
13346 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
13347
13348 Do not automatically install headers.
13349
13350 * Makefile.in (include_DATA): Remove. Update all users.
13351
13352 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
13353
13354 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
13355 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
13356
13357 * util/osdetect.lua: Remove.
13358 * script/lua/lauxlib.c: Likewise.
13359 * script/lua/ldebug.c: Likewise.
13360 * script/lua/grub_main.c: Likewise.
13361 * script/lua/lauxlib.h: Likewise.
13362 * script/lua/ldebug.h: Likewise.
13363 * script/lua/ltablib.c: Likewise.
13364 * script/lua/liolib.c: Likewise.
13365 * script/lua/lstrlib.c: Likewise.
13366 * script/lua/lualib.h: Likewise.
13367 * script/lua/ldo.c: Likewise.
13368 * script/lua/ldump.c: Likewise.
13369 * script/lua/ldo.h: Likewise.
13370 * script/lua/loslib.c: Likewise.
13371 * script/lua/lundump.c: Likewise.
13372 * script/lua/grub_lib.c: Likewise.
13373 * script/lua/ldblib.c: Likewise.
13374 * script/lua/lundump.h: Likewise.
13375 * script/lua/lmem.c: Likewise.
13376 * script/lua/grub_lib.h: Likewise.
13377 * script/lua/lmathlib.c: Likewise.
13378 * script/lua/lstate.c: Likewise.
13379 * script/lua/ltm.c: Likewise.
13380 * script/lua/lvm.c: Likewise.
13381 * script/lua/lmem.h: Likewise.
13382 * script/lua/lstate.h: Likewise.
13383 * script/lua/ltm.h: Likewise.
13384 * script/lua/ltable.c: Likewise.
13385 * script/lua/lvm.h: Likewise.
13386 * script/lua/llex.c: Likewise.
13387 * script/lua/lgc.c: Likewise.
13388 * script/lua/grub_lua.h: Likewise.
13389 * script/lua/loadlib.c: Likewise.
13390 * script/lua/lfunc.c: Likewise.
13391 * script/lua/lopcodes.c: Likewise.
13392 * script/lua/lparser.c: Likewise.
13393 * script/lua/ltable.h: Likewise.
13394 * script/lua/llex.h: Likewise.
13395 * script/lua/lgc.h: Likewise.
13396 * script/lua/lfunc.h: Likewise.
13397 * script/lua/lbaselib.c: Likewise.
13398 * script/lua/lopcodes.h: Likewise.
13399 * script/lua/lparser.h: Likewise.
13400 * script/lua/lzio.c: Likewise.
13401 * script/lua/linit.c: Likewise.
13402 * script/lua/lobject.c: Likewise.
13403 * script/lua/llimits.h: Likewise.
13404 * script/lua/lstring.c: Likewise.
13405 * script/lua/lzio.h: Likewise.
13406 * script/lua/lapi.c: Likewise.
13407 * script/lua/lcode.c: Likewise.
13408 * script/lua/lua.h: Likewise.
13409 * script/lua/lobject.h: Likewise.
13410 * script/lua/lstring.h: Likewise.
13411 * script/lua/lapi.h: Likewise.
13412 * script/lua/lcode.h: Likewise.
13413 * script/lua/luaconf.h: Likewise.
13414
13415 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
13416
13417 * docs/grub.texi (Command-line and menu entry commands): Document
13418 date and echo commands.
13419
13420 2009-09-24 Pavel Roskin <proski@gnu.org>
13421
13422 * include/grub/kernel.h (struct grub_module_header): Remove
13423 `grub_module_header_types'. Make `type' unsigned. Make `size'
13424 32-bit on all platforms.
13425 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
13426 8-bit field. Use grub_host_to_target32() for `size'.
13427 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
13428 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
13429 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
13430
13431 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
13432
13433 Fix "lost keypress" bug in at_keyboard.
13434
13435 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
13436 Checks for readyness of input buffer (without flushing it).
13437 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
13438 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
13439
13440 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
13441
13442 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
13443 size check within GRUB_MACHINE_PCBIOS section.
13444
13445 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
13446
13447 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
13448 return value.
13449 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
13450 KEYBOARD_ISREADY check.
13451 (grub_at_keyboard_checkkey): Rename to ...
13452 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
13453 Remove gratuitous cast.
13454
13455 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
13456
13457 * configure.ac: Call AC_PROG_MKDIR_P.
13458 * Makefile.in (docs/stamp-vti): Create docs directory. Create
13459 version.texi in $(builddir) rather than $(srcdir).
13460 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
13461 to makeinfo's @include search path.
13462
13463 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
13464
13465 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
13466
13467 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
13468
13469 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
13470 for `*.dpkg-new'.
13471
13472 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
13473
13474 Build info documentation. Some code borrowed from Automake.
13475
13476 * configure.ac: Check for makeinfo.
13477 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
13478 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
13479 docs/version.texi.
13480 (MOSTLYCLEANFILES): Add vti.tmp.
13481 (docs/version.texi, docs/stamp-vti): Update automatically.
13482 (docs/grub.info): Build info documentation. Use --force and ignore
13483 errors for now.
13484 (all-local): Add $(INFOS).
13485 (install-local): Install info files.
13486 (uninstall): Uninstall info files.
13487 * docs/version.texi: Remove from revision control. This file is
13488 automatically generated on build now.
13489 * gendistlist.sh: Add `*.info'.
13490
13491 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
13492
13493 * kern/term.c: Fix indentation.
13494
13495 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
13496
13497 * util/hostdisk.c: Fix a comment.
13498
13499 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
13500
13501 Fix regression introduced in r2539.
13502
13503 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
13504 to 0xA1.
13505
13506 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
13507
13508 * util/grub.d/30_os-prober.in: Don't throw away stderr from
13509 os-prober. Under normal operation, it does not print anything to
13510 stderr; if it does, we need to debug it, and throwing away stderr
13511 makes that excessively difficult.
13512
13513 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
13514
13515 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
13516
13517 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
13518
13519 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
13520 AC_LANG_PROGRAM from autoconf.
13521 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
13522 prototypes (fixes warning).
13523
13524 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
13525 `--disable-werror' was used.
13526
13527 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
13528
13529 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
13530 uninitialized `lastaddr'.
13531
13532 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
13533
13534 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
13535
13536 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
13537
13538 * commands/test.c (get_fileinfo): Return immediately if
13539 grub_fs_probe fails.
13540
13541 2009-09-14 José Martínez <xosemp@gmail.com>
13542
13543 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
13544
13545 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
13546
13547 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
13548 output.
13549
13550 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
13551
13552 * configure.ac: Remove --enable-grub-pe2elf. Only build
13553 grub-pe2elf when needed by the build system itself.
13554 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
13555
13556 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
13557
13558 * configure.ac: Bump version to 1.97~beta3.
13559 * docs/version.texi: Likewise.
13560
13561 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
13562
13563 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
13564 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
13565 from here ...
13566 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
13567 (grub_linux_setup_video): ... to here (with some adjustments).
13568
13569 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
13570
13571 Fix memory corruption issue (spotted by Colin Watson).
13572
13573 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
13574 causing returned size to be stored in an incorrect memory location.
13575 Fix use of uninitialized value when storing the returned size.
13576
13577 2009-09-12 Yves Blusseau <blusseau@zetam.org>
13578
13579 Change clean rules to properly remove files
13580
13581 * genmk.rb: add new clean rules
13582 * Makefile.in (clean): add the new targets
13583 (mostlyclean): likewise
13584
13585 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
13586
13587 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
13588 to grub_uint64_t.
13589 * fs/ntfs.c (init_file): Understand 64-bit sizes for
13590 non-resident files.
13591
13592 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
13593
13594 * configure.ac: Don't look for help2man when cross-compiling. Fixes
13595 part of bug #27349.
13596
13597 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
13598
13599 * util/grub-mkconfig.in: Make the created config mode 400 and
13600 print a warning if it fails.
13601
13602 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
13603
13604 * util/grub.d/40_custom.in: Ask user to type custom entries below
13605 comment, rather than below 'exec tail' line.
13606
13607 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
13608
13609 * util/grub.d/40_custom.in: Make sure that the explanatory text is
13610 visible in grub.cfg.
13611
13612 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
13613
13614 * util/grub.d/40_custom.in: Make it a little clearer how to use this
13615 file.
13616
13617 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
13618
13619 * docs/grub.cfg: Add an example menu entry for memtest86+.
13620
13621 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
13622
13623 * config.guess: Update to latest version from config git.
13624 * config.sub: Likewise.
13625
13626 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
13627
13628 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
13629 unknown-command case. Fixes bug #27320.
13630
13631 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
13632
13633 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
13634 `help' if the command exists.
13635
13636 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
13637
13638 * INSTALL: Require GCC 4.1.3 or later.
13639
13640 2009-09-06 Yves Blusseau <blusseau@zetam.org>
13641
13642 * Makefile.in (RMKFILES): add i386-qemu.rmk
13643 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
13644 $(srcdir)/stamp-h.in
13645
13646 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
13647
13648 * util/grub-probe.c (probe): Comment out buggy codepath, which
13649 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
13650 should be re-enabled after 1.97.
13651
13652 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
13653
13654 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
13655 find searches for.
13656
13657 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
13658
13659 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
13660 unnecessary calls to grub_error.
13661
13662 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
13663
13664 * NEWS: Mention `keystatus' and Unicode fonts.
13665
13666 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
13667
13668 * configure.ac: Bump version to 1.97~beta2.
13669 * docs/version.texi: Likewise.
13670
13671 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
13672
13673 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
13674 containing unwind information in some cases where it previously did
13675 not. Use -fno-dwarf2-cfi-asm if available to restore the old
13676 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
13677 discussion.
13678
13679 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
13680
13681 Embedding loadenv module into grub-emu
13682
13683 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
13684 commands/loadenv.c
13685 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
13686 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
13687 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
13688 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
13689 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
13690 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
13691
13692 2009-09-03 Magnus Granberg <zorry@ume.nu>
13693
13694 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
13695 include -fPIE in the default specs.
13696 * configure.ac: Check if pie_possible is yes and add -fno-PIE
13697 to TARGET_CFLAGS.
13698
13699 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
13700
13701 * INSTALL: Note that GNU Bison 2.3 or later is required.
13702
13703 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
13704
13705 * kern/i386/pc/startup.S: Fix typo.
13706
13707 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
13708
13709 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
13710 according to GCS.
13711
13712 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
13713
13714 * docs/grub.texi (Naming convention): Describe one-based partition
13715 numbering.
13716 (Device syntax): Likewise.
13717 (File name syntax): Likewise.
13718 (Block list syntax): Likewise.
13719 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
13720 menu.lst.
13721 (File name syntax): Likewise.
13722 (Command-line and menu entry commands): Document acpi, blocklist,
13723 crc, export, insmod, keystatus, ls, set, and unset commands.
13724
13725 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
13726
13727 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
13728 to avoid implying that only one of --shift, --ctrl, or --alt may be
13729 used.
13730
13731 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
13732
13733 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
13734 rather than comparing against S_IFREG, which will almost never work.
13735
13736 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
13737
13738 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
13739 (write_blocklists): Likewise.
13740
13741 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
13742
13743 * script/lua/grub_lua.h (fputs): Supply a format string as the first
13744 argument to grub_printf.
13745
13746 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
13747
13748 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
13749 non GNU test.
13750
13751 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
13752
13753 * kern/file.c (grub_file_read): Spelling fix
13754
13755 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
13756
13757 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
13758 loading of headers in some cases.
13759
13760 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
13761
13762 * configure.ac: Bump version to 1.97~beta1.
13763 * docs/version.texi: Likewise.
13764
13765 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
13766
13767 * include/grub/i386/xnu.h: Add license header.
13768 include grub/err.h explicitly.
13769
13770 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
13771
13772 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
13773 to `ufs' in the vfs.root.mountfrom kernel parameter.
13774
13775 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
13776
13777 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
13778
13779 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
13780 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
13781
13782 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
13783 `ARRAY_SIZE' macro.
13784
13785 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13786
13787 * kern/file.c (grub_file_read): Check offset.
13788 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
13789 * fs/jfs.c (grub_jfs_read_file): Likewise.
13790 * fs/ntfs.c (grub_ntfs_read): Likewise.
13791 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
13792 * fs/minix.c (grub_minix_read_file): Correct offset check.
13793 * fs/ufs.c (grub_ufs_read_file): Likewise.
13794
13795 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
13796
13797 * term/i386/pc/console.c (bios_data_area): Cast
13798 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
13799
13800 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13801
13802 1-bit optimised blitters.
13803
13804 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
13805 prototype.
13806 (grub_video_fbblit_replace_24bit_1bit): Likewise.
13807 (grub_video_fbblit_replace_16bit_1bit): Likewise.
13808 (grub_video_fbblit_replace_8bit_1bit): Likewise.
13809 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
13810 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
13811 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
13812 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
13813 function.
13814 (grub_video_fbblit_replace_24bit_1bit): Likewise.
13815 (grub_video_fbblit_replace_16bit_1bit): Likewise.
13816 (grub_video_fbblit_replace_8bit_1bit): Likewise.
13817 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
13818 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
13819 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
13820 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
13821 when possible.
13822 * video/video.c (grub_video_get_blit_format): Return
13823 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
13824
13825 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
13826
13827 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
13828 the first argument to grub_printf.
13829
13830 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
13831 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
13832
13833 Add `getkeystatus' terminal method. Add a new `keystatus' command
13834 to query it.
13835
13836 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
13837 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
13838 modifier key bitmasks.
13839 (struct grub_term_input): Add `getkeystatus' member.
13840 (grub_getkeystatus): Add prototype.
13841 * kern/term.c (grub_getkeystatus): New function.
13842
13843 * include/grub/i386/pc/memory.h
13844 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
13845 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
13846 Data Area layout.
13847 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
13848 (grub_console_term_input): Set `getkeystatus' member.
13849 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
13850 constants.
13851 (grub_usb_keyboard_getreport): Likewise.
13852 (grub_usb_keyboard_checkkey): Likewise.
13853 (grub_usb_keyboard_getkeystatus): New function.
13854 (grub_usb_keyboard_term): Set `getkeystatus' member.
13855
13856 * commands/keystatus.c: New file.
13857 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
13858 (keystatus_mod_SOURCES): New variable.
13859 (keystatus_mod_CFLAGS): Likewise.
13860 (keystatus_mod_LDFLAGS): Likewise.
13861 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
13862 commands/keystatus.c.
13863 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13864 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13865 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13866 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13867 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13868 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13869
13870 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
13871
13872 Split befs.mod and afs.mod into *_be.mod and *.mod
13873
13874 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
13875 (grub_fstest_SOURCES): Likewise.
13876 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
13877 (afs_be_mod_SOURCES): New variable.
13878 (afs_be_mod_CFLAGS): Likewise.
13879 (afs_be_mod_LDFLAGS): Likewise.
13880 (befs_be_mod_SOURCES): Likewise.
13881 (befs_be_mod_CFLAGS): Likewise.
13882 (befs_be_mod_LDFLAGS): Likewise.
13883 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
13884 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13885 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13886 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
13887 (grub_emu_SOURCES): Likewise.
13888 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13889 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13890 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13891 * fs/afs_be.c: New file.
13892 * fs/befs_be.c: New file.
13893 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
13894 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
13895 (U16): Replaced with ...
13896 (grub_afs_to_cpu16): ...this. All users updated.
13897 (U32): Replaced with ...
13898 (grub_afs_to_cpu32): ...this. All users updated.
13899 (U64): Replaced with ...
13900 (grub_afs_to_cpu64): ...this. All users updated.
13901 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
13902 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
13903 (grub_afs_validate_sblock): Check only one endianness.
13904 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
13905 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
13906 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
13907 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
13908 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
13909 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
13910 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
13911 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
13912
13913 2009-08-26 Bean <bean123ch@gmail.com>
13914
13915 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
13916 64-bit number.
13917 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
13918 (grub_xfs_inode_block): Change return type to grub_uint64_t.
13919 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
13920
13921 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13922
13923 NetBSD memory map support.
13924
13925 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
13926 (grub_netbsd_btinfo_mmap_header): New structure.
13927 (grub_netbsd_btinfo_mmap_entry): Likewise.
13928 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
13929
13930 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13931
13932 Enable bsd.mod on coreboot.
13933
13934 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
13935 (bsd_mod_SOURCES): New variable.
13936 (bsd_mod_CFLAGS): Likewise.
13937 (bsd_mod_LDFLAGS): Likewise.
13938 (bsd_mod_ASFLAGS): Likewise.
13939 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
13940 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
13941
13942 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13943
13944 Cleanup NetBSD root support.
13945
13946 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
13947 grub_bsd_get_device.
13948 Fix typo.
13949
13950 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
13951
13952 * util/grub.d/00_header.in: Move check for the video backend of
13953 gfxterm from here ...
13954 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
13955 a suitable video backend.
13956
13957 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13958
13959 Fix breakage in grub-setup.
13960
13961 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
13962 "msdos_partition_map".
13963
13964 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13965
13966 Fix breakage in normal/auth.c.
13967
13968 * normal/auth.c (grub_iswordseparator): New function.
13969
13970 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
13971
13972 Authentication support.
13973
13974 * commands/password.c: New file.
13975 * conf/common.rmk (pkglib_MODULES): Add password.mod.
13976 (password_mod_SOURCES): New variable.
13977 (password_mod_CFLAGS): Likewise.
13978 (password_mod_LDFLAGS): Likewise.
13979 (normal_mod_SOURCES): Add normal/auth.c.
13980 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
13981 normal/auth.c.
13982 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
13983 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13984 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
13985 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13986 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
13987 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
13988 * include/grub/auth.h: New file.
13989 * include/grub/err.h (grub_err_t): New enum value
13990 GRUB_ERR_ACCESS_DENIED.
13991 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
13992 'users'.
13993 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
13994 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
13995 users updated.
13996 * normal/auth.c: New file.
13997 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
13998 (grub_cmdline_run): Don't allow to go to command line without
13999 authentication.
14000 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
14001 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
14002 menuentry without superuser rights.
14003 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
14004 user isn't a superuser.
14005
14006 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14007
14008 Save space by inlining misc.c functions.
14009
14010 * kern/misc.c (grub_iswordseparator): Made static.
14011 * kern/misc.c (grub_strcat): Moved from here ...
14012 * include/grub/misc.h (grub_strcat): ... here. Inlined.
14013 * kern/misc.c (grub_strncat): Moved from here ...
14014 * include/grub/misc.h (grub_strncat): ... here. Inlined.
14015 * kern/misc.c (grub_strcasecmp): Moved from here ...
14016 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
14017 * kern/misc.c (grub_strncasecmp): Moved from here ...
14018 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
14019 * kern/misc.c (grub_isalpha): Moved from here ...
14020 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
14021 * kern/misc.c (grub_isdigit): Moved from here ...
14022 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
14023 * kern/misc.c (grub_isgraph): Moved from here ...
14024 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
14025 * kern/misc.c (grub_tolower): Moved from here ...
14026 * include/grub/misc.h (grub_tolower): ... here. Inlined.
14027
14028 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14029
14030 * script/sh/function.c (grub_script_function_find): Cut error message
14031 not to flood terminal.
14032 * script/sh/lexer.c (grub_script_yylex): Remove command line length
14033 limit.
14034 * script/sh/script.c (grub_script_arg_add): Duplicate string.
14035
14036 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
14037
14038 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
14039 `report' grub_uint8_t *.
14040 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
14041 Use a 50-millisecond timeout rather than just repeating
14042 grub_usb_keyboard_getreport 50 times.
14043 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
14044
14045 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14046
14047 Rename *_partition_map to part_*
14048
14049 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
14050 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
14051 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
14052 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
14053 All users updated.
14054 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
14055 All users updated.
14056 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
14057 * util/grub-probe.c (probe_partmap): Don't transform partition name
14058 to get module name.
14059
14060 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14061
14062 Fix OpenBSD and NetBSD support.
14063
14064 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
14065 memory address conflict.
14066 (OPENBSD_MMAP_ACPI): New definition.
14067 (OPENBSD_MMAP_NVS): Likewise.
14068 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
14069 and OPENBSD_MMAP_NVS.
14070 Add memory map terminator
14071 Explicit cast when calling grub_unix_real_boot.
14072 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
14073
14074 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14075
14076 Let user specify NetBSD root device.
14077
14078 * loader/i386/bsd.c (netbsd_root): New variable.
14079 (netbsd_opts): New option 'root'.
14080 (NETBSD_ROOT_ARG): New macro.
14081 (grub_netbsd_boot): Use 'netbsd_root'.
14082 (grub_bsd_unload): Free 'netbsd_root'.
14083 (grub_cmd_netbsd): Fill 'netbsd_root'.
14084
14085 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14086
14087 Support for 64-bit NetBSD.
14088
14089 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
14090 point when booting non-FreeBSD.
14091
14092 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14093
14094 Support --no-smp and --no-acpi for NetBSD.
14095
14096 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
14097 (NETBSD_AB_NOACPI): Likewise.
14098 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
14099 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
14100
14101 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14102
14103 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
14104 errors.
14105 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
14106 errors. Call grub_error when needed.
14107
14108 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14109
14110 * commands/search.c (search_fs): Try searching without autoload first.
14111 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
14112 filesystem module explicitly for faster booting.
14113
14114 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
14115
14116 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
14117
14118 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
14119
14120 * util/grub.d/30_os-prober.in: Disable os-prober if
14121 `GRUB_DISABLE_OS_PROBER' was set to true.
14122
14123 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
14124
14125 * partmap/pc.c: Rename to ...
14126 * partmap/msdos.c: ... this. Update all users.
14127 (grub_pc_partition_map): Rename to ...
14128 (grub_msdos_partition_map): ... this. Update all users.
14129
14130 * parttool/pcpart.c: Rename to ...
14131 * parttool/msdospart.c: ... this. Update all users.
14132
14133 * include/grub/pc_partition.h: Rename to ...
14134 * include/grub/msdos_partition.h: ... this. Update all users.
14135 (grub_pc_partition_bsd_entry): Rename to ...
14136 (grub_msdos_partition_bsd_entry): ... this. Update all users.
14137 (grub_pc_partition_disk_label): Rename to ...
14138 (grub_msdos_partition_disk_label): ... this. Update all users.
14139 (grub_pc_partition_entry): Rename to ...
14140 (grub_msdos_partition_entry): ... this. Update all users.
14141 (grub_pc_partition_mbr): Rename to ...
14142 (grub_msdos_partition_mbr): ... this. Update all users.
14143 (grub_pc_partition): Rename to ...
14144 (grub_msdos_partition): ... this. Update all users.
14145 (grub_pc_partition_is_empty): Rename to ...
14146 (grub_msdos_partition_is_empty): ... this. Update all users.
14147 (grub_pc_partition_is_extended): Rename to ...
14148 (grub_msdos_partition_is_extended): ... this. Update all users.
14149 (grub_pc_partition_is_bsd): Rename to ...
14150 (grub_msdos_partition_is_bsd): ... this. Update all users.
14151
14152 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
14153 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
14154 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
14155 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
14156 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
14157 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
14158 (gpt_mod_LDFLAGS): Rename to ...
14159 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
14160 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
14161 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
14162 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
14163 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
14164 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
14165 (part_gpt_mod_LDFLAGS): ... this.
14166 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
14167 `pcpart.mod' to `msdospart.mod'.
14168 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
14169 to ...
14170 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
14171 (msdospart_mod_LDFLAGS): ... this.
14172
14173 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14174
14175 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
14176 (openbsd_opts): Likewise.
14177 (netbsd_opts): Likewise.
14178 (freebsd_flags): Added 0 terminator.
14179 (openbsd_flags): Likewise.
14180 (netbsd_flags): Likewise.
14181 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
14182 (grub_cmd_freebsd): Transformed into extended command.
14183 (grub_cmd_openbsd): Likewise.
14184 (grub_cmd_netbsd): Likewise.
14185 (cmd_freebsd): Changed type to grub_extcmd_t.
14186 (cmd_openbsd): Likewise.
14187 (cmd_netbsd): Likewise.
14188 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
14189 grub_cmd_openbsd as extended commands.
14190 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
14191 cmd_netbsd and cmd_openbsd
14192
14193 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
14194
14195 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
14196
14197 2009-08-21 Pavel Roskin <proski@gnu.org>
14198
14199 * Makefile.in (install-local): When checking if a file is in the
14200 build directory, use "test -e" to detect symlinks.
14201
14202 * Makefile.in (install-local): Remove all files in
14203 $(DESTDIR)$(pkglibdir) before installing new files there.
14204
14205 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
14206
14207 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
14208 grub-mkelfimage.
14209
14210 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
14211
14212 * util/grub-mkconfig.in: Don't use gfxterm by default if not
14213 explicitly specified by the user.
14214
14215 2009-08-18 Pavel Roskin <proski@gnu.org>
14216
14217 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
14218 grub_uint8_t pointer for data.
14219 * include/grub/fbutil.h (struct grub_video_fbblit_info):
14220 Likewise.
14221 * video/fb/fbutil.c: Remove unnecessary casts.
14222
14223 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
14224
14225 VBE cleanup.
14226
14227 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
14228 (grub_vbe_set_video_mode): Save active mode info
14229 only after setting the mode.
14230 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
14231 second argument.
14232
14233 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
14234
14235 Rename variables for clarity.
14236
14237 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
14238 (active_vbe_mode_info): ... this. All users updated.
14239 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
14240 All users updated.
14241 (initial_mode): Rename to ...
14242 (initial_vbe_mode): ... this. All users updated.
14243 (mode_in_use): Rename to ..
14244 (vbe_mode_in_use): ... this. All users updated.
14245 (mode_list): Rename to ..
14246 (vbe_mode_list): ... this. All users updated.
14247 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
14248 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
14249 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
14250 'mode_list_size' to 'vbe_mode_list_size'.
14251 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
14252 'best_mode_info' to 'best_vbe_mode_info' and
14253 'best_mode' to 'best_vbe_mode'
14254
14255 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
14256
14257 Remove duplicate grub_video_fb_get_video_ptr.
14258
14259 * include/grub/fbutil.h (get_data_ptr): Rename to ...
14260 (grub_video_fb_get_video_ptr): ... this.
14261 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
14262 * video/fb/fbutil.c: Add comment about addressing.
14263 (get_data_ptr): Rename to ...
14264 (grub_video_fb_get_video_ptr): ... this. All users updated.
14265 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
14266
14267 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
14268
14269 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
14270 grub_dprintf() that was just added.
14271
14272 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
14273
14274 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
14275 (DEFAULT_VIDEO_MODE): Remove macros.
14276 (grub_linux_boot): Remove assumption that Linux has FB support,
14277 and use "text" as default video mode.
14278
14279 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
14280
14281 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
14282 grub_dprintf.
14283 * fs/fat.c (grub_fat_read_data): Likewise.
14284
14285 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14286
14287 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
14288 payload.
14289 (grub_module): Likewise.
14290
14291 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14292
14293 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
14294 mbi->cmdline but free playground.
14295
14296 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14297
14298 Handle group offset on UFS1.
14299
14300 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
14301 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
14302
14303 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14304
14305 Split ufs.mod into ufs1.mod and ufs2.mod.
14306
14307 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
14308 (grub_fstest_SOURCES): Likewise.
14309 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
14310 (ufs_mod_SOURCES): Remove.
14311 (ufs_mod_CFLAGS): Likewise.
14312 (ufs_mod_LDFLAGS): Likewise.
14313 (ufs1_mod_SOURCES): New variable.
14314 (ufs1_mod_CFLAGS): Likewise.
14315 (ufs1_mod_LDFLAGS): Likewise.
14316 (ufs2_mod_SOURCES): New variable.
14317 (ufs2_mod_CFLAGS): Likewise.
14318 (ufs2_mod_LDFLAGS): Likewise.
14319 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
14320 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
14321 Likewise.
14322 (grub_emu_SOURCES): Likewise.
14323 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14324 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14325 (grub_setup_SOURCES): Likewise.
14326 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14327 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
14328 (grub_setup_SOURCES): Likewise.
14329 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
14330 Likewise.
14331 * fs/ufs2.c: New file.
14332 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
14333
14334 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14335
14336 Framebuffer split.
14337
14338 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
14339 subsystem at the end.
14340 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
14341 (video_fb_mod_SOURCES): New variable.
14342 (video_fb_mod_CFLAGS): Likewise.
14343 (video_fb_mod_LDFLAGS): Likewise.
14344 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
14345 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
14346 * video/i386/pc/vbeblit.c: Moved from here ...
14347 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
14348 * video/i386/pc/vbefill.c: Moved from here ...
14349 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
14350 * video/i386/pc/vbeutil.c: Moved from here ...
14351 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
14352 * include/grub/i386/pc/vbeblit.h: Moved from here ...
14353 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
14354 * include/grub/i386/pc/vbefill.h: Moved from here ...
14355 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
14356 * include/grub/i386/pc/vbeutil.h: Moved from here ...
14357 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
14358 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
14359 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
14360 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
14361 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
14362 (grub_video_adapter): Added 'get_info_and_fini'.
14363 (grub_video_get_info_and_fini): New prototype.
14364 (grub_video_set_mode): make modestring const char *.
14365 * loader/i386/linux.c (grub_linux_setup_video): Use
14366 grub_video_get_info_and_fini.
14367 (grub_linux_boot): Move modesetting just before booting.
14368 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
14369 grub_video_get_info_and_fini.
14370 * video/i386/pc/vbe.c: Moved framebuffer part ...
14371 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
14372 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
14373 grub_video_fbstd_colors and grub_video_fb_set_palette.
14374 (grub_video_vbe_init): Clear 'framebuffer' variable and use
14375 grub_video_fb_init.
14376 (grub_video_vbe_fini): Use grub_video_fb_fini.
14377 (grub_video_vbe_setup): Use framebuffer.render_target instead of
14378 render_target and use grub_video_fb_set_active_render_target and
14379 grub_video_fb_set_palette.
14380 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
14381 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
14382 (grub_video_vbe_adapter): Use framebuffer.
14383 * video/video.c (grub_video_get_info_and_fini): New function.
14384 (grub_video_set_mode): Make modestring const char *.
14385 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
14386 values are already initialised.
14387
14388 2009-08-14 Pavel Roskin <proski@gnu.org>
14389
14390 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
14391 ABS and APPLE_CC.
14392 * boot/i386/pc/diskboot.S: Likewise.
14393 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
14394 sectors allow compilation on MacOSX.
14395 * conf/i386-pc.rmk: Enable unconditional compilation of
14396 lnxboot.img.
14397
14398 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
14399
14400 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
14401 * util/grub.d/00_header.in: Enter interruptible sleep if
14402 GRUB_HIDDEN_TIMEOUT is set.
14403
14404 2009-08-13 Yves Blusseau <blusseau@zetam.org>
14405
14406 * include/grub/symbol.h: Add the LOCAL macro.
14407 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
14408 starting with "L_".
14409
14410 2009-08-13 Pavel Roskin <proski@gnu.org>
14411
14412 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
14413 any modern compilers we support.
14414
14415 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
14416 Use local labels starting with "L_" so that Apple assembler
14417 knows they are local.
14418
14419 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
14420
14421 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
14422 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
14423 (bsd_kernel_types): ... this enum.
14424
14425 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
14426 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
14427 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
14428
14429 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
14430 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
14431 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
14432 messages.
14433
14434 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
14435
14436 * util/grub-dumpdevtree: Moved from here ...
14437 * util/i386/efi/grub-dumpdevtree: ... to here.
14438 (hexify): New function. Converts a string to its hex version.
14439 Generate hex versions of "efi" and "device-properties" by calling
14440 hexify() on the ASCII strings rather than by hardcoding numbers.
14441
14442 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
14443
14444 * fs/jfs.c: Update copyright year.
14445
14446 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
14447
14448 * util/grub.d/00_header.in: Fix a comment.
14449 * util/grub.d/10_linux.in: Likewise.
14450 * util/grub.d/10_windows.in: Likewise.
14451 * util/grub.d/10_hurd.in: Likewise.
14452
14453 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
14454
14455 * util/grub-mkconfig.in: Allow the user to specify the used font
14456 with GRUB_FONT.
14457
14458 2009-08-08 Pavel Roskin <proski@gnu.org>
14459
14460 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
14461 available, xfs.mod needs it now.
14462
14463 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
14464 the "g" modifier in sed when the intention is to strip something
14465 once. This fixes comparison of kernels with multiple dashes.
14466
14467 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
14468 on it. Add missing space before closing bracket. Fix
14469 misleading formatting.
14470
14471 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14472
14473 * docs/grub.texi: Major overhaul. Remove all sections that are
14474 specific to GRUB Legacy, or mostly composed of Legacy-specific
14475 information.
14476
14477 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14478
14479 * docs/version.texi: New file. Provides version information for
14480 grub.texi.
14481
14482 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14483
14484 * docs/grub.texi: Update CVS information to SVN.
14485 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
14486
14487 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
14488
14489 * util/grub-mkconfig.in: Remove a wrong `fi'.
14490
14491 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
14492
14493 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
14494 (grub_jfs_uuid): New function.
14495 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
14496
14497 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
14498
14499 * util/grub-mkconfig_lib.in (font_path): Move the functionality
14500 of it to ...
14501 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
14502 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
14503
14504 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14505
14506 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
14507 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
14508 Update all users.
14509
14510 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
14511 not just "vmlinu[zx]".
14512 Moved from here ...
14513 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
14514 all users.
14515
14516 * util/grub.d/10_linux.in (find_latest): Moved from here ...
14517 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
14518 all users.
14519
14520 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14521
14522 * util/grub.d/10_freebsd.in: Use an absolute device path for
14523 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
14524
14525 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
14526
14527 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
14528 handling of multiple abstraction modules.
14529
14530 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
14531
14532 Fix a bug resulting in black screen when loading Linux using a
14533 packed video mode.
14534
14535 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
14536 function.
14537
14538 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
14539 (grub_vbe_bios_getset_dac_palette_width): New function.
14540 (grub_vbe_bios_get_dac_palette_width)
14541 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
14542 grub_vbe_bios_getset_dac_palette_width()).
14543
14544 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
14545 check for return status.
14546 (grub_vbe_get_video_mode_info): When getting information for a packed
14547 mode (<= 8 bpp), obtain DAC palette width using
14548 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
14549 {red,green,blue}_mark_size.
14550
14551 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
14552
14553 * commands/search.c (options): Fix help output to match actual code.
14554
14555 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
14556
14557 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
14558 of homegrown code.
14559
14560 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
14561
14562 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
14563 on XFS or ReiserFS.
14564
14565 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
14566
14567 Support Apple partition map with sector size different from 512 bytes.
14568
14569 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
14570 (apple_partition_map_iterate): Respect 'aheader.blocksize'
14571 and 'apart.partmap_size'.
14572
14573 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
14574 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
14575
14576 Fix cpuid command.
14577
14578 * commands/i386/cpuid.c (options): New variable.
14579 (grub_cmd_cpuid): Return real error.
14580 (GRUB_MOD_INIT(cpuid)): Declare options.
14581
14582 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
14583
14584 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
14585 valid.
14586
14587 2009-07-31 Bean <bean123ch@gmail.com>
14588
14589 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
14590 log2_inode.
14591 (grub_fshelp_node): Move inode field to the end.
14592 (grub_xfs_data): Remove inode field.
14593 (grub_xfs_inode_block): Calculate inode size using sblock.
14594 (grub_xfs_inode_offset): Likewise.
14595 (grub_xfs_read_inode): Calculate inode size using sblock.
14596 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
14597 (grub_xfs_iterate_dir): Calculate inode size using sblock.
14598 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
14599 to match inode size.
14600 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
14601 not accessible when data is null.
14602 (grub_xfs_open): Likewise.
14603
14604 2009-07-31 Bean <bean123ch@gmail.com>
14605
14606 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
14607 Don't change pv->disk if it's already set.
14608
14609 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
14610 (grub_raid_register): ... here.
14611 (grub_raid_rescan): Removed.
14612
14613 * include/grub/raid.h (grub_raid_rescan): Removed.
14614
14615 * util/grub-fstest.c: Remove include file <grub/raid.h>.
14616 (fstest): Replace grub_raid_rescan with module fini function followed
14617 by init function.
14618
14619 * util/grub-probe.c: Add include file <grub/raid.h>.
14620 (probe_raid_level): New function.
14621 (probe): Detect abstraction by walking the disk device, support two
14622 level of abstraction (LVM on RAID) when detecting partition map.
14623
14624 2009-07-31 Pavel Roskin <proski@gnu.org>
14625
14626 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
14627 to grub_zalloc(), it was erroneous.
14628 Reported by Bean <bean123ch@gmail.com>
14629
14630 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
14631
14632 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
14633 embedding zone, not only the first one.
14634
14635 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
14636
14637 * term/gfxterm.c (clear_char): New function.
14638 (grub_virtual_screen_setup): Use clear_char.
14639 (scroll_up): Likewise.
14640 (grub_virtual_screen_cls): Likewise.
14641
14642 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
14643
14644 * util/deviceiter.c (get_acceleraid_disk_name): New static
14645 function.
14646 (grub_util_iterate_devices): Handle Accelraid devices.
14647 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
14648
14649 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
14650
14651 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
14652 separator for the suggested gfxpayload string (';' collides with the
14653 parser and needs escaping).
14654
14655 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
14656
14657 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
14658 Clear direction flag before jumping to OS.
14659 (grub_multiboot2_real_boot): Likewise.
14660
14661 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
14662
14663 * util/i386/pc/grub-install: Fix parsing of --disk-module
14664 option.
14665
14666 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
14667
14668 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
14669 when embedding.
14670
14671 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
14672
14673 * util/grub-mkconfig.in (package_version): New variable.
14674 Use it do display the version.
14675
14676 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
14677
14678 * kern/file.c (grub_file_open): Revert to previous check with
14679 grub_errno.
14680
14681 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14682
14683 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
14684 from help line. It's out of sync with code.
14685
14686 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14687
14688 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
14689 entries on failed boot.
14690
14691 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
14692
14693 * kern/file.c (grub_file_open): Fix an error check.
14694
14695 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
14696
14697 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
14698 partition map couldn't be identified.
14699
14700 2009-07-23 Pavel Roskin <proski@gnu.org>
14701
14702 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
14703 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
14704 case of little endian words becomes just an optimization.
14705 Respect const modifier.
14706 (md5_final): Use code that doesn't depend on endianness.
14707
14708 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
14709 to avoid loss of upper bits if align is unsigned and shorter
14710 than addr.
14711
14712 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
14713
14714 UUID support for UFS
14715
14716 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
14717 (grub_ufs_uuid): New function.
14718 (grub_ufs_fs): add .uuid
14719
14720 2009-07-21 Pavel Roskin <proski@gnu.org>
14721
14722 * kern/dl.c (grub_dl_check_header): Make static.
14723
14724 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
14725
14726 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
14727 add drivemap for Vista. It breaks Windows 7.
14728
14729 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
14730
14731 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
14732 128 bytes
14733
14734 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14735
14736 Add BFS support
14737
14738 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
14739 (grub_fstest_SOURCES): Likewise.
14740 (pkglib_MODULES): Add befs.mod.
14741 (befs_mod_SOURCES): New variable.
14742 (befs_mod_CFLAGS): Likewise.
14743 (befs_mod_LDFLAGS): Likewise.
14744 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
14745 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14746 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14747 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14748 (grub_setup_SOURCES): Likewise.
14749 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14750 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14751 (grub_setup_SOURCES): Likewise.
14752 * fs/befs.c: New file.
14753 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
14754 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
14755 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
14756 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
14757 (B_KEY_INDEX_ALIGN): New declaration.
14758 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
14759 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
14760 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
14761 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
14762 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
14763 (grub_afs_mount) [MODE_BFS]: Likewise.
14764 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
14765 (grub_afs_fs): Use GRUB_AFS_FSNAME
14766 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
14767 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
14768 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
14769 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
14770
14771 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
14772
14773 * util/getroot.c (find_root_device): Add support for MacOSX.
14774 * util/hostdisk.c: Likewise.
14775
14776 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14777
14778 * font/font.c (find_glyph): Check whether a font is present to avoid
14779 segmentation fault.
14780
14781 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
14782
14783 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
14784
14785 2009-07-20 Pavel Roskin <proski@gnu.org>
14786
14787 * configure.ac: Trim excessively wordy excuses.
14788
14789 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14790
14791 Add symlink, mtime and label support to AtheFS.
14792
14793 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
14794 (grub_afs_iterate_dir): Handle symlinks.
14795 (grub_afs_open): Use grub_afs_read_symlink.
14796 (grub_afs_dir): Likewise.
14797 Pass mtime.
14798 (grub_afs_label): New function.
14799 (grub_afs_fs): Add grub_afs_label.
14800 (grub_afs_read_symlink): New function.
14801
14802 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
14803
14804 Fix AtheFS support.
14805
14806 * fs/afs.c: Fix comments style.
14807 (grub_afs_blockrun): Declare as packed.
14808 (grub_afs_datastream): Likewise.
14809 (grub_afs_bnode): Likewise.
14810 (grub_afs_btree): Likewise.
14811 (grub_afs_sblock): Likewise.
14812 Declare `name' as char.
14813 (grub_afs_inode): Declare as packed.
14814 Change void *vnode to grub_uint32_t unused.
14815 (grub_afs_iterate_dir): Check that key_size is positive.
14816 (grub_afs_mount): Don't read superblock twice.
14817 (grub_afs_dir): Don't free node in case of error,
14818 grub_fshelp_find_file already handles this.
14819 (grub_afs_open): Likewise.
14820
14821 2009-07-19 Pavel Roskin <proski@gnu.org>
14822
14823 * Makefile.in: Remove LIBLZO and enable_lzo.
14824 * conf/i386-pc.rmk: Remove lzo support.
14825 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
14826 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
14827 support.
14828 * kern/i386/pc/lzo1x.S: Remove.
14829 * kern/i386/pc/startup.S: Remove lzo support.
14830 * util/i386/pc/grub-mkimage.c: Likewise.
14831
14832 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
14833
14834 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
14835 * fs/xfs.c (grub_xfs_dir): Likewise.
14836 * fs/afs.c (grub_afs_dir): Likewise.
14837 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
14838 (grub_iso9660_open): Likewise.
14839 * fs/jfs.c (grub_jfs_open): Likewise.
14840 * fs/ext2.c (grub_ext2_dir): Likewise.
14841 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
14842 * script/sh/lexer.c (grub_script_yylex): Likewise.
14843
14844 2009-07-16 Pavel Roskin <proski@gnu.org>
14845
14846 * configure.ac: Never add "-c" to CFLAGS.
14847
14848 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
14849
14850 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
14851 grub_cv_cc_efiemu should be used.
14852
14853 * configure.ac: Typo fixes.
14854
14855 * kern/mm.c (grub_zalloc): New function.
14856 (grub_debug_zalloc): Likewise.
14857 * include/grub/mm.h: Declare grub_zalloc() and
14858 grub_debug_zalloc().
14859 * util/misc.c (grub_zalloc): New function.
14860 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
14861 instead of grub_malloc(), remove unneeded initializations.
14862 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
14863 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
14864 * commands/parttool.c (grub_cmd_parttool): Likewise.
14865 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
14866 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
14867 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
14868 * disk/usbms.c (grub_usbms_finddevs): Likewise.
14869 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
14870 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
14871 (grub_cmd_efiemu_pnvram): Likewise.
14872 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
14873 * fs/iso9660.c (grub_iso9660_mount): Likewise.
14874 (grub_iso9660_iterate_dir): Likewise.
14875 * fs/jfs.c (grub_jfs_opendir): Likewise.
14876 * fs/ntfs.c (list_file): Likewise.
14877 (grub_ntfs_mount): Likewise.
14878 * kern/disk.c (grub_disk_open): Likewise.
14879 * kern/dl.c (grub_dl_load_core): Likewise.
14880 * kern/elf.c (grub_elf_file): Likewise.
14881 * kern/env.c (grub_env_context_open): Likewise.
14882 (grub_env_set): Likewise.
14883 (grub_env_set_data_slot): Likewise.
14884 * kern/file.c (grub_file_open): Likewise.
14885 * kern/fs.c (grub_fs_blocklist_open): Likewise.
14886 * loader/i386/multiboot.c (grub_module): Likewise.
14887 * loader/xnu.c (grub_xnu_create_key): Likewise.
14888 (grub_xnu_create_value): Likewise.
14889 * normal/main.c (grub_normal_add_menu_entry): Likewise.
14890 (read_config_file): Likewise.
14891 * normal/menu_entry.c (make_screen): Likewise.
14892 * partmap/sun.c (sun_partition_map_iterate): Likewise.
14893 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
14894 * script/sh/script.c (grub_script_parse): Likewise.
14895 * video/bitmap.c (grub_video_bitmap_create): Likewise.
14896 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
14897 * video/readers/png.c (grub_png_output_byte): Likewise.
14898 (grub_video_reader_png): Likewise.
14899
14900 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
14901
14902 Enable all targets that can be built by default
14903
14904 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
14905 grub-mkfont and grub-fstest if they can be built
14906
14907 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
14908
14909 Fix hang and segmentation fault in grub-emu-usb
14910
14911 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
14912 * util/usb.c (grub_libusb_devices): likewise
14913 (grub_libusb_init): rename to ...
14914 (GRUB_MOD_INIT (libusb)):...this
14915 (grub_libusb_fini): rename to ..
14916 (GRUB_MOD_FINI (libusb)):...this
14917 * disk/usbms.c (grub_usbms_transfer): fix retry logic
14918 * include/grub/disk.h (grub_raid_init): removed, it's useless
14919 (grub_raid_fini): likewise
14920 (grub_lvm_init): likewise
14921 (grub_lvm_fini): likewise
14922 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
14923 by grub_init_all
14924
14925 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
14926
14927 Fix libusb
14928
14929 * Makefile.in (LIBUSB): new macro
14930 * genmk.rb (Utility/print_tail): new method
14931 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
14932 (top level): call util.print_tail at the end.
14933
14934 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
14935
14936 Make FreeBSD accept zpool.cache
14937
14938 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
14939 type is /boot/zfs/zpool.cache
14940
14941 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
14942
14943 Fix 64-bit efiemu
14944
14945 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
14946 correct wrong typedef
14947 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
14948
14949 2009-07-15 Pavel Roskin <proski@gnu.org>
14950
14951 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
14952 * kern/disk.c (struct grub_disk_cache): Likewise.
14953
14954 * commands/probe.c (options): Typo fix.
14955
14956 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
14957 Increase to 0x5a to accommodate FAT32. Adjust other offsets
14958 accordingly.
14959 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
14960
14961 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
14962 the end of "Error" to make the message more readable.
14963
14964 * boot/i386/pc/boot.S (kernel_segment): Remove.
14965 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
14966 for destination.
14967
14968 * boot/i386/pc/boot.S (boot_version): Remove.
14969 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
14970 Remove.
14971
14972 * include/grub/i386/pc/boot.h: Sort all offsets.
14973 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
14974 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
14975 * boot/i386/pc/boot.S: Assert location of every offset listed in
14976 include/grub/i386/pc/boot.h.
14977
14978 2009-07-13 Pavel Roskin <proski@gnu.org>
14979
14980 * include/grub/i386/coreboot/machine.h: Rename
14981 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
14982 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
14983 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
14984
14985 * kern/dl.c: Force native word size to suppress warnings when
14986 compiling grub-emu.
14987
14988 * kern/device.c (grub_device_iterate): Change struct part_ent to
14989 hold the name, not a pointer to it. Use one grub_malloc() per
14990 partition, not two. Free partition_name if grub_malloc() fails.
14991 Set ents to NULL only before grub_partition_iterate() is called.
14992
14993 2009-07-11 Bean <bean123ch@gmail.com>
14994
14995 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
14996 childname.
14997
14998 2009-07-10 Bean <bean123ch@gmail.com>
14999 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
15000
15001 * kern/ieee1275/openfw.c (grub_children_iterate)
15002 (grub_devalias_iterate): Fix size evaluation for property or path
15003 strings, which was broken since r2132.
15004
15005 2009-07-07 Pavel Roskin <proski@gnu.org>
15006
15007 * commands/search.c (search_file): Merge into ...
15008 (search_fs): ... this. Accept search type as argument.
15009 (grub_cmd_search): Pass search type to search_fs().
15010
15011 * include/grub/util/console.h: New file.
15012 * util/console.c: Use it instead of grub/machine/console.h.
15013 * util/grub-emu.c: Likewise.
15014
15015 * lib/arg.c (find_long_option): Remove.
15016 (find_long): Add `len' argument, make `s' const char *.
15017 (grub_arg_parse): Parse long options in place, not in a
15018 temporary buffer.
15019
15020 2009-07-06 Pavel Roskin <proski@gnu.org>
15021
15022 * commands/search.c (search_fs): Fix potential NULL pointer
15023 dereference.
15024
15025 * commands/search.c (search_fs): Replace QUID macro with quid_fn
15026 function pointer.
15027
15028 2009-07-06 Daniel Mierswa <impulze@impulze.org>
15029
15030 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
15031 comparison.
15032
15033 2009-07-05 Pavel Roskin <proski@gnu.org>
15034
15035 * include/grub/i386/linux.h (struct linux_kernel_params):
15036 Restore padding3, it's still needed.
15037
15038 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
15039 FreeBSD.
15040 * util/osdetect.lua: Likewise.
15041
15042 2009-07-05 Bean <bean123ch@gmail.com>
15043
15044 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
15045
15046 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
15047 (grub_lua_getenv): Likewise.
15048 (grub_lua_setenv): Likewise.
15049 (save_errno): New function.
15050 (push_result): Likewise.
15051 (grub_lua_enum_device): Likewise.
15052 (grub_lua_enum_file): Likewise.
15053 (grub_lua_file_open): Likewise.
15054 (grub_lua_file_close): Likewise.
15055 (grub_lua_file_seek): Likewise.
15056 (grub_lua_file_read): Likewise.
15057 (grub_lua_file_getline): Likewise.
15058 (grub_lua_file_getsize): Likewise.
15059 (grub_lua_file_getpos): Likewise.
15060 (grub_lua_file_eof): Likewise.
15061 (grub_lua_file_exist): Likewise.
15062 (grub_lua_add_menu): Likewise.
15063
15064 * script/lua/grub_lua.h (isupper): New inline function.
15065 (islower): Likewise.
15066 (ispunct): Likewise.
15067 (isxdigit): Likewise.
15068 (strcspn): Change to normal function.
15069 (strpbkr): New function declaration.
15070 (memchr): Likewise.
15071
15072 * script/lua/grub_main.c (scan_str): New function.
15073 (strcspn): Likewise.
15074 (strpbrk): Likewise.
15075 (memchr): Likewise.
15076
15077 * script/lua/linit.c (lualibs): Enable the string library.
15078
15079 * util/osdetect.lua: New file.
15080
15081 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
15082
15083 * include/grub/i386/linux.h (struct linux_kernel_params): Add
15084 `capabilities' member.
15085
15086 2009-07-02 Pavel Roskin <proski@gnu.org>
15087
15088 * genparttoollist.sh: Add missing newline at the end.
15089
15090 2009-07-01 Pavel Roskin <proski@gnu.org>
15091
15092 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
15093
15094 * util/hostdisk.c (open_device): Remove `const' from
15095 `sysctl_size', as sysctlbyname() can change it (in this case it
15096 doesn't actually happen).
15097
15098 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
15099 using signed long int constants.
15100
15101 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
15102 constant to avoid a warning on FreeBSD.
15103
15104 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
15105 where it's needed.
15106
15107 * Makefile.in: Install include/grub/machine symlink.
15108
15109 * Makefile.in: When installing symlinks, use "cp -fR", which
15110 works on FreeBSD and MacOSX.
15111 From Yves Blusseau <cl7m42e02@sneakemail.com>
15112
15113 * kern/dl.c (grub_dl_resolve_symbol): Make static.
15114 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
15115
15116 * util/misc.c: Move grub_reboot() and grub_halt() ...
15117 * util/grub-emu.c: ... here. Make main_env static.
15118 * include/grub/util/misc.h: Remove main_env.
15119
15120 * kern/mm.c: Use correct format to print size_t.
15121
15122 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
15123 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
15124 * kern/powerpc/dl.c: Likewise.
15125 * kern/sparc64/dl.c: Likewise.
15126 * kern/x86_64/dl.c: Likewise.
15127
15128 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
15129
15130 Fix grub-emu build on sparc64-ieee1275.
15131
15132 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
15133 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
15134
15135 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
15136
15137 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
15138 (grub_reboot, grub_halt): New functions.
15139
15140 * util/i386/pc/misc.c: Delete. Update all users.
15141 * util/sparc64/ieee1275/misc.c: Likewise.
15142 * util/powerpc/ieee1275/misc.c: Likewise.
15143
15144 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
15145
15146 * conf/i386.rmk (setjmp_mod_SOURCES)
15147 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
15148 * conf/common.rmk (setjmp_mod_SOURCES)
15149 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
15150 to use $(target_cpu).
15151 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
15152 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
15153 * conf/powerpc-ieee1275.rmk: Likewise.
15154 * conf/sparc64-ieee1275.rmk: Likewise.
15155
15156 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
15157 $(target_cpu) for kern/$(target_cpu)/dl.c.
15158 * conf/i386-efi.rmk: Likewise.
15159 * conf/i386-ieee1275.rmk: Likewise.
15160 * conf/x86_64-efi.rmk: Likewise.
15161 * conf/i386-coreboot.rmk: Likewise.
15162 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
15163 $(target_cpu) for kern/$(target_cpu)/dl.c and for
15164 kern/$(target_cpu)/cache.S.
15165 * conf/sparc64-ieee1275.rmk: Likewise.
15166
15167 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
15168
15169 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
15170 type to `grub_uint8_t', and adjust `padding9' accordingly.
15171
15172 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
15173
15174 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
15175
15176 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
15177 assembly in final jump, using register constraints.
15178
15179 (grub_linux_boot): For text mode, initialize `have_vga' using
15180 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
15181
15182 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
15183 right before the final jump.
15184
15185 Set `video_mode' to 0x3.
15186
15187 Document initialization of `video_page', `video_mode' and
15188 `video_ega_bx'.
15189
15190 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
15191
15192 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
15193 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
15194 and set GRUB_LINUX_FLAG_QUIET appropriately.
15195
15196 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
15197
15198 Fix build on Debian / sparc.
15199
15200 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
15201
15202 2009-06-28 Pavel Roskin <proski@gnu.org>
15203
15204 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
15205 fix a warning.
15206
15207 * util/grub.d/10_linux.in: Match SUSE style initrd names.
15208
15209 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
15210
15211 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
15212 `err'.
15213
15214 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
15215
15216 Revert r2338.
15217
15218 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
15219 file can't be opened. grub_file_open() is already supposed to set
15220 grub_errno / grub_errmsg appropriately.
15221 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15222
15223 2009-06-27 Pavel Roskin <proski@gnu.org>
15224 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
15225
15226 * include/grub/dl.h: Include grub/elf.h.
15227 (struct grub_dl): Add symtab field.
15228 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
15229 GRUB_MODULES_MACHINE_READONLY.
15230 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
15231 of the header for read-only modules.
15232 (grub_dl_unload): Free mod->symtab for read-only modules.
15233 * kern/i386/dl.c: Use mod->symtab.
15234 * kern/powerpc/dl.c: Likewise.
15235 * kern/sparc64/dl.c: Likewise.
15236 * kern/x86_64/dl.c: Likewise.
15237
15238 * conf/i386-qemu.rmk: New file.
15239 * kern/i386/qemu/startup.S: Likewise.
15240 * kern/i386/qemu/mmap.c: Likewise.
15241 * boot/i386/qemu/boot.S: Likewise.
15242 * include/grub/i386/qemu/time.h: Likewise.
15243 * include/grub/i386/qemu/serial.h: Likewise.
15244 * include/grub/i386/qemu/kernel.h: Likewise.
15245 * include/grub/i386/qemu/console.h: Likewise.
15246 * include/grub/i386/qemu/boot.h: Likewise.
15247 * include/grub/i386/qemu/init.h: Likewise.
15248 * include/grub/i386/qemu/machine.h: Likewise.
15249 * include/grub/i386/qemu/loader.h: Likewise.
15250 * include/grub/i386/qemu/memory.h: Likewise.
15251
15252 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
15253 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
15254 [qemu] (pkglib_IMAGES): Add `boot.img'.
15255 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
15256 [qemu] (boot_img_FORMAT): New variables.
15257 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
15258 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
15259 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
15260 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
15261 [qemu] (kernel_img_FORMAT): New variables.
15262
15263 * configure.ac: Recognise `i386-qemu'.
15264
15265 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
15266 (for no compression).
15267 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
15268 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
15269 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
15270 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
15271 ifdefs).
15272
15273 2009-06-27 Pavel Roskin <proski@gnu.org>
15274
15275 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
15276 read.
15277 * efiemu/prepare32.c: Likewise.
15278 * efiemu/prepare64.c: Likewise.
15279
15280 2009-06-26 Pavel Roskin <proski@gnu.org>
15281
15282 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
15283 * include/grub/elf.h: Define symbols without "32" or "64" based
15284 on GRUB_TARGET_WORDSIZE.
15285 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
15286 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
15287 ELF definitions.
15288 * efiemu/loadcore64.c: Likewise.
15289 * loader/i386/bsd32.c: Likewise.
15290 * loader/i386/bsd64.c: Likewise.
15291 * kern/dl.c: Remove own ELF definitions.
15292 * util/i386/efi/grub-mkimage.c: Likewise.
15293
15294 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
15295
15296 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
15297 segment 0x0 unconditionally, because the reference generated by
15298 GAS is an absolute address.
15299
15300 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15301
15302 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
15303 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
15304
15305 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15306
15307 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
15308 indexes. Check for -f explicitly.
15309 (search_file): Improve error message.
15310 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
15311
15312 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15313
15314 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
15315 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
15316
15317 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15318
15319 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
15320 * conf/i386-ieee1275.rmk: Likewise.
15321 * conf/i386-coreboot.rmk: Likewise.
15322
15323 * kern/i386/pc/startup.S (grub_stop): Remove function.
15324 * kern/i386/ieee1275/startup.S: Likewise.
15325 * kern/i386/coreboot/startup.S: Likewise.
15326 * kern/i386/misc.S (grub_stop): New function.
15327
15328 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15329
15330 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
15331 * kern/i386/realmode.S (real_to_prot): ... to here.
15332
15333 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15334
15335 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
15336 with `kernel.img'.
15337 (kernel_elf_SOURCES): Rename to ...
15338 (kernel_img_SOURCES): ... this.
15339 (kernel_elf_HEADERS): Rename to ...
15340 (kernel_img_HEADERS): ... this. Update all users.
15341 (kernel_elf_ASFLAGS): Rename to ...
15342 (kernel_img_ASFLAGS): ... this.
15343 (kernel_elf_CFLAGS): Rename to ...
15344 (kernel_img_CFLAGS): ... this.
15345 (kernel_elf_LDFLAGS): Rename to ...
15346 (kernel_img_LDFLAGS): ... this.
15347 * conf/i386-coreboot.rmk: Likewise.
15348 * conf/powerpc-ieee1275.rmk: Likewise.
15349
15350 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
15351 with "kernel.img".
15352
15353 2009-06-21 Pavel Roskin <proski@gnu.org>
15354
15355 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
15356 to match nested functions.
15357 * loader/sparc64/ieee1275/linux.c: Likewise.
15358
15359 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
15360
15361 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
15362
15363 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
15364 all i386 platforms.
15365
15366 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
15367
15368 Fix asm file handling on ELF, and remove workarounds.
15369
15370 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
15371 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15372 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
15373 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
15374
15375 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
15376
15377 Load BSD ELF modules
15378
15379 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
15380 and loader/i386/bsd64.c
15381 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
15382 (FREEBSD_MODTYPE_ELF_MODULE): New definition
15383 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
15384 (grub_freebsd_load_elfmodule32): New declaration
15385 (grub_freebsd_load_elfmoduleobj64): Likewise
15386 (grub_freebsd_load_elf_meta32): Likewise
15387 (grub_freebsd_load_elf_meta64): Likewise
15388 (grub_freebsd_add_meta): Likewise
15389 (grub_freebsd_add_meta_module): Likewise
15390 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
15391 (grub_freebsd_add_meta_module): Likewise and move module-specific
15392 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
15393 (grub_cmd_freebsd): Add elf-kernel specific parts
15394 based on grub_freebsd_add_meta_module
15395 (grub_cmd_freebsd_module): Add type parsing moved from
15396 grub_freebsd_add_meta_module
15397 (grub_cmd_freebsd_module_elf): New function
15398 (cmd_freebsd_module_elf): New variable
15399 (GRUB_MOD_INIT): Register freebsd_module_elf
15400 * loader/i386/bsd32.c: New file
15401 * loader/i386/bsd64.c: Likewise
15402 * loader/i386/bsdXX.c: Likewise
15403 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
15404 (grub_elf64_load): Likewise
15405 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
15406 All users updated
15407 (grub_elf64_load_hook_t): Likewise
15408
15409 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
15410
15411 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
15412 variable.
15413 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
15414 don't write a menu entry for recovery mode.
15415
15416 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
15417
15418 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
15419 after it's no longer needed.
15420
15421 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
15422
15423 * include/grub/i386/loader.h (grub_linux_prot_size)
15424 (grub_linux_tmp_addr, grub_linux_real_addr)
15425 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
15426 GRUB_MACHINE_PCBIOS.
15427 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
15428 common grub_util_info() call to ...
15429 (generate_image): ... here.
15430 Fix use of uninitialized memory, comparison of signed with
15431 unsigned integers and memory leak.
15432 Remove bogus module address message.
15433
15434 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
15435
15436 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
15437 grub_raid_register
15438 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
15439
15440 2009-06-19 Pavel Roskin <proski@gnu.org>
15441
15442 * configure.ac: Remove stray AC_MSG_CHECKING.
15443
15444 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
15445
15446 * disk/scsi.c (grub_scsi_open): use continue instead of big if
15447
15448 2009-06-18 Pavel Roskin <proski@gnu.org>
15449
15450 * conf/common.rmk: Add fs_file.mod.
15451 * disk/fs_file.c: New file.
15452 * include/grub/disk.h (enum grub_disk_dev_id): Add
15453 GRUB_DISK_DEVICE_FILE_ID.
15454
15455 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
15456
15457 Fix build with Apple's toolchain. Part 2
15458
15459 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
15460 a fake start
15461
15462 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
15463
15464 Fix build with Apple's toolchain. Part 1
15465
15466 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
15467 for long calls
15468 * configure.ac: remove a leftover AC_MSG_RESULT
15469 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
15470 Apple's toolchain
15471
15472 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
15473
15474 Fix warnings
15475
15476 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
15477 (decomp_block): initialize ch
15478 use grub_memcpy instead of memcpy
15479
15480 2009-06-17 Pavel Roskin <proski@gnu.org>
15481
15482 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
15483 version, use declarations needed to use vga_text as the startup
15484 console.
15485
15486 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
15487 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
15488 the kernel.
15489 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
15490 and grub_at_keyboard_fini(), it's done on module load and
15491 unload.
15492
15493 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
15494
15495 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
15496 file can't be found.
15497 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15498
15499 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
15500
15501 Fix newline handling
15502
15503 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
15504 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
15505 (grub_script_yylex): don't segfault on unterminated script
15506 newline terminates command and variable
15507
15508 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
15509
15510 avoid double grub_adjust_range call. Bug reported by David Simner
15511
15512 * kern/disk.c (grub_disk_write): change to raw disk access before
15513 calling disk_read
15514
15515 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
15516
15517 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
15518 spaces, for the benefit of help2man.
15519 * util/i386/efi/grub-mkimage.c (usage): Likewise.
15520
15521 2009-06-16 Pavel Roskin <proski@gnu.org>
15522
15523 * kern/i386/halt.c: Include grub/machine/init.h.
15524 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
15525
15526 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
15527
15528 * util/grub.d/30_os-prober.in: Use ${root} in the generated
15529 drivemap menuentry.
15530
15531 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
15532
15533 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
15534 `echo' command.
15535
15536 2009-06-16 Pavel Roskin <proski@gnu.org>
15537
15538 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
15539 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
15540 save %dx, we only need %dl and we never change it.
15541 * boot/i386/pc/cdboot.S: Don't set the root drive.
15542 * boot/i386/pc/pxeboot.S: Likewise.
15543 * include/grub/i386/pc/boot.h: Remove
15544 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
15545 GRUB_BOOT_MACHINE_DRIVE_CHECK.
15546 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
15547 * kern/i386/pc/init.c (make_install_device): Remove references
15548 to grub_root_drive.
15549 * kern/i386/pc/startup.S: Likewise.
15550 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
15551
15552 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
15553
15554 xnu_uuid command
15555
15556 * commands/xnu_uuid.c: new file
15557 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
15558 (xnu_uuid_mod_SOURCES): new variable
15559 (xnu_uuid_mod_CFLAGS): likewise
15560 (xnu_uuid_mod_LDFLAGS): likewise
15561 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
15562 * conf/i386-ieee1275.rmk: likewise
15563 * conf/i386-pc.rmk: likewise
15564 * conf/powerpc-ieee1275.rmk: likewise
15565 * conf/sparc64-ieee1275.rmk: likewise
15566 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
15567
15568 2009-06-16 Pavel Roskin <proski@gnu.org>
15569
15570 * configure.ac: Avoid '==' in test command, it's not portable.
15571
15572 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
15573
15574 Probe command
15575
15576 * commands/probe.c: new file
15577 * conf/common.rmk (pkglib_MODULES): add probe.mod
15578 (probe_mod_SOURCES): new variable
15579 (probe_mod_CFLAGS): likewise
15580 (probe_mod_LDFLAGS): likewise
15581 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
15582 * conf/i386-ieee1275.rmk: likewise
15583 * conf/i386-pc.rmk: likewise
15584 * conf/powerpc-ieee1275.rmk: likewise
15585 * conf/sparc64-ieee1275.rmk: likewise
15586
15587 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
15588
15589 Fix handling of string like \"hello\" and "a
15590 b"
15591
15592 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
15593 (grub_script_yylex): fix parsing of quoting, escaping and newline
15594
15595 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
15596
15597 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
15598 handling
15599
15600 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
15601
15602 * util/grub-mkconfig.in: Fix parsing of --output option.
15603
15604 2009-06-12 Pavel Roskin <proski@gnu.org>
15605
15606 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
15607 genmk.rb don't need to be generated or installed.
15608
15609 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15610
15611 * commands/i386/pc/drivemap_int13h.S: add more comments
15612
15613 2009-06-11 Pavel Roskin <proski@gnu.org>
15614
15615 * Makefile.in (uninstall): Uninstall manuals.
15616
15617 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
15618 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
15619 and update-grub_lib in two places.
15620 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
15621
15622 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
15623 a compiler warning.
15624
15625 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
15626 `entry_lo' to fix variable shadowing.
15627
15628 2009-06-11 Christian Franke <franke@computer.org>
15629
15630 * kern/misc.c (__enable_execute_stack): Add missing return type
15631 to prevent gcc warning.
15632
15633 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
15634
15635 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
15636
15637 2009-06-11 Pavel Roskin <proski@gnu.org>
15638
15639 * Makefile.in: Don't rely on any scripts being executable.
15640 Always use $(SHELL) to run shell scripts.
15641
15642 * configure.ac: Always define ___main if using -nostdlib. This
15643 fixes tests on Cygwin.
15644
15645 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
15646
15647 UDF fix
15648
15649 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
15650 is in bytes and not in blocks
15651
15652 2009-06-11 Pavel Roskin <proski@gnu.org>
15653
15654 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
15655 warning.
15656
15657 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
15658
15659 * util/grub.d/30_os-prober.in: Fix a comment. Source
15660 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
15661 to set the root device. Place drivemap command in the generated
15662 chain entry.
15663
15664 2009-06-11 Pavel Roskin <proski@gnu.org>
15665
15666 * configure.ac: Remove host_m32. Issues with 64-bit utilities
15667 have long been resolved.
15668
15669 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
15670
15671 * util/grub.d/10_linux.in: Capitalise "Linux".
15672
15673 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
15674
15675 2009-06-11 Pavel Roskin <proski@gnu.org>
15676
15677 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
15678 fix a gcc warning and ensure that the function won't ever exit.
15679
15680 * kern/i386/ieee1275/init.c: Add missing prototype for
15681 grub_stop_floppy().
15682
15683 * loader/ieee1275/multiboot2.c [__i386__]: Include
15684 grub/cpu/multiboot.h.
15685
15686 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
15687 casts to short - they are not portable and cause warnings. Fix
15688 use of uninitialized values in input_buf. Use ARRAY_SIZE.
15689
15690 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
15691
15692 Drivemap fixes
15693
15694 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
15695 new function
15696 (grub_get_root_biosnumber_saved): new variable
15697 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
15698 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
15699 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
15700 %dx after the call if necessary
15701 * conf/common.rmk (pkglib_MODULES): remove boot.mod
15702 (boot_mod_SOURCES): remove
15703 (boot_mod_CFLAGS): remove
15704 (boot_mod_LDFLAGS): remove
15705 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
15706 (boot_mod_SOURCES): new variable
15707 (boot_mod_CFLAGS): likewise
15708 (boot_mod_LDFLAGS): likewise
15709 * conf/i386-efi.rmk: likewise
15710 * conf/i386-ieee1275.rmk: likewise
15711 * conf/i386-pc.rmk: likewise
15712 * conf/powerpc-ieee1275.rmk: likewise
15713 * conf/sparc64-ieee1275.rmk: likewise
15714 * conf/x86_64-efi.rmk: likewise
15715 * include/grub/i386/pc/biosnum.h: new file
15716 * lib/i386/pc/biosnum.c: likewise
15717 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
15718 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
15719 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
15720
15721 2009-06-10 Pavel Roskin <proski@gnu.org>
15722
15723 * io/gzio.c (test_header): Don't reuse one buffer for all data.
15724 Use separate variables. Read only the file size at the end, but
15725 not the checksum that we don't use.
15726
15727 * kern/file.c (grub_file_read): Use void pointer for the buffer.
15728 Adjust all callers.
15729
15730 * kern/ieee1275/openfw.c: Remove libc includes.
15731 * kern/ieee1275/cmain.c: Likewise.
15732 * include/grub/ieee1275/ieee1275.h: Likewise.
15733
15734 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
15735 compiler warnings.
15736
15737 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
15738
15739 * Makefile.in: Remove all trailing whitespace.
15740 * conf/i386-pc.rmk: Likewise.
15741 * conf/powerpc-ieee1275.rmk: Likewise.
15742 * conf/sparc64-ieee1275.rmk: Likewise.
15743 * docs/grub.texi: Likewise.
15744 * docs/texinfo.tex: Likewise.
15745 * disk/fs_uuid.c: Likewise.
15746 * disk/lvm.c: Likewise.
15747 * disk/scsi.c: Likewise.
15748 * disk/ata.c: Likewise.
15749 * disk/ieee1275/ofdisk.c: Likewise.
15750 * disk/i386/pc/biosdisk.c: Likewise.
15751 * disk/host.c: Likewise.
15752 * disk/raid.c: Likewise.
15753 * disk/efi/efidisk.c: Likewise.
15754 * disk/usbms.c: Likewise.
15755 * disk/memdisk.c: Likewise.
15756 * disk/loopback.c: Likewise.
15757 * kern/powerpc/dl.c: Likewise.
15758 * kern/device.c: Likewise.
15759 * kern/dl.c: Likewise.
15760 * kern/sparc64/dl.c: Likewise.
15761 * kern/ieee1275/ieee1275.c: Likewise.
15762 * kern/term.c: Likewise.
15763 * kern/fs.c: Likewise.
15764 * kern/i386/dl.c: Likewise.
15765 * kern/i386/pc/startup.S: Likewise.
15766 * kern/i386/pc/init.c: Likewise.
15767 * kern/i386/pc/mmap.c: Likewise.
15768 * kern/i386/pc/lzo1x.S: Likewise.
15769 * kern/i386/ieee1275/init.c: Likewise.
15770 * kern/i386/realmode.S: Likewise.
15771 * kern/i386/tsc.c: Likewise.
15772 * kern/partition.c: Likewise.
15773 * kern/corecmd.c: Likewise.
15774 * kern/file.c: Likewise.
15775 * kern/efi/efi.c: Likewise.
15776 * kern/efi/init.c: Likewise.
15777 * kern/efi/mm.c: Likewise.
15778 * kern/main.c: Likewise.
15779 * kern/err.c: Likewise.
15780 * kern/env.c: Likewise.
15781 * kern/disk.c: Likewise.
15782 * kern/generic/millisleep.c: Likewise.
15783 * kern/generic/rtc_get_time_ms.c: Likewise.
15784 * kern/misc.c: Likewise.
15785 * kern/parser.c: Likewise.
15786 * genmk.rb: Likewise.
15787 * configure.ac: Likewise.
15788 * boot/i386/pc/diskboot.S: Likewise.
15789 * boot/i386/pc/pxeboot.S: Likewise.
15790 * boot/i386/pc/boot.S: Likewise.
15791 * boot/i386/pc/lnxboot.S: Likewise.
15792 * boot/i386/pc/cdboot.S: Likewise.
15793 * parttool/pcpart.c: Likewise.
15794 * video/readers/tga.c: Likewise.
15795 * video/video.c: Likewise.
15796 * video/bitmap.c: Likewise.
15797 * lib/envblk.c: Likewise.
15798 * lib/i386/setjmp.S: Likewise.
15799 * fs/xfs.c: Likewise.
15800 * fs/afs.c: Likewise.
15801 * fs/fat.c: Likewise.
15802 * fs/ntfs.c: Likewise.
15803 * fs/udf.c: Likewise.
15804 * fs/affs.c: Likewise.
15805 * fs/iso9660.c: Likewise.
15806 * fs/hfs.c: Likewise.
15807 * fs/fshelp.c: Likewise.
15808 * fs/ext2.c: Likewise.
15809 * fs/jfs.c: Likewise.
15810 * fs/reiserfs.c: Likewise.
15811 * fs/hfsplus.c: Likewise.
15812 * fs/minix.c: Likewise.
15813 * fs/cpio.c: Likewise.
15814 * fs/sfs.c: Likewise.
15815 * fs/ufs.c: Likewise.
15816 * efiemu/prepare.c: Likewise.
15817 * efiemu/loadcore_common.c: Likewise.
15818 * efiemu/runtime/efiemu.sh: Likewise.
15819 * efiemu/runtime/efiemu.S: Likewise.
15820 * efiemu/runtime/efiemu.c: Likewise.
15821 * efiemu/pnvram.c: Likewise.
15822 * efiemu/main.c: Likewise.
15823 * efiemu/i386/pc/cfgtables.c: Likewise.
15824 * efiemu/i386/loadcore64.c: Likewise.
15825 * efiemu/i386/loadcore32.c: Likewise.
15826 * efiemu/loadcore.c: Likewise.
15827 * efiemu/symbols.c: Likewise.
15828 * efiemu/mm.c: Likewise.
15829 * include/grub/autoefi.h: Likewise.
15830 * include/grub/datetime.h: Likewise.
15831 * include/grub/term.h: Likewise.
15832 * include/grub/hfs.h: Likewise.
15833 * include/grub/lvm.h: Likewise.
15834 * include/grub/i386/tsc.h: Likewise.
15835 * include/grub/i386/linux.h: Likewise.
15836 * include/grub/i386/xnu.h: Likewise.
15837 * include/grub/i386/efiemu.h: Likewise.
15838 * include/grub/i386/pc/biosdisk.h: Likewise.
15839 * include/grub/i386/pc/memory.h: Likewise.
15840 * include/grub/i386/pc/vbe.h: Likewise.
15841 * include/grub/parttool.h: Likewise.
15842 * include/grub/video.h: Likewise.
15843 * include/grub/memory.h: Likewise.
15844 * include/grub/fs.h: Likewise.
15845 * include/grub/partition.h: Likewise.
15846 * include/grub/xnu.h: Likewise.
15847 * include/grub/efi/api.h: Likewise.
15848 * include/grub/efi/pe32.h: Likewise.
15849 * include/grub/efi/memory.h: Likewise.
15850 * include/grub/multiboot.h: Likewise.
15851 * include/grub/usbdesc.h: Likewise.
15852 * include/grub/multiboot2.h: Likewise.
15853 * include/grub/acpi.h: Likewise.
15854 * include/grub/efiemu/efiemu.h: Likewise.
15855 * include/grub/disk.h: Likewise.
15856 * include/grub/ieee1275/ieee1275.h: Likewise.
15857 * include/grub/net.h: Likewise.
15858 * include/grub/machoload.h: Likewise.
15859 * include/grub/macho.h: Likewise.
15860 * include/multiboot.h: Likewise.
15861 * genmoddep.awk: Likewise.
15862 * normal/main.c: Likewise.
15863 * normal/menu_entry.c: Likewise.
15864 * normal/menu_viewer.c: Likewise.
15865 * normal/completion.c: Likewise.
15866 * normal/cmdline.c: Likewise.
15867 * normal/misc.c: Likewise.
15868 * normal/datetime.c: Likewise.
15869 * bus/usb/usbtrans.c: Likewise.
15870 * bus/usb/ohci.c: Likewise.
15871 * bus/usb/uhci.c: Likewise.
15872 * bus/usb/usb.c: Likewise.
15873 * mmap/efi/mmap.c: Likewise.
15874 * mmap/i386/pc/mmap_helper.S: Likewise.
15875 * mmap/i386/pc/mmap.c: Likewise.
15876 * mmap/i386/mmap.c: Likewise.
15877 * mmap/i386/uppermem.c: Likewise.
15878 * mmap/mmap.c: Likewise.
15879 * commands/acpi.c: Likewise.
15880 * commands/echo.c: Likewise.
15881 * commands/blocklist.c: Likewise.
15882 * commands/loadenv.c: Likewise.
15883 * commands/usbtest.c: Likewise.
15884 * commands/boot.c: Likewise.
15885 * commands/parttool.c: Likewise.
15886 * commands/search.c: Likewise.
15887 * commands/cat.c: Likewise.
15888 * commands/i386/pc/play.c: Likewise.
15889 * commands/i386/pc/drivemap.c: Likewise.
15890 * commands/i386/pc/vbeinfo.c: Likewise.
15891 * commands/i386/pc/acpi.c: Likewise.
15892 * commands/i386/pc/vbetest.c: Likewise.
15893 * commands/ls.c: Likewise.
15894 * commands/cmp.c: Likewise.
15895 * commands/test.c: Likewise.
15896 * commands/efi/acpi.c: Likewise.
15897 * commands/gptsync.c: Likewise.
15898 * commands/help.c: Likewise.
15899 * partmap/amiga.c: Likewise.
15900 * partmap/apple.c: Likewise.
15901 * partmap/acorn.c: Likewise.
15902 * partmap/pc.c: Likewise.
15903 * partmap/sun.c: Likewise.
15904 * partmap/gpt.c: Likewise.
15905 * script/sh/lexer.c: Likewise.
15906 * script/sh/function.c: Likewise.
15907 * font/font.c: Likewise.
15908 * font/font_cmd.c: Likewise.
15909 * loader/powerpc/ieee1275/linux.c: Likewise.
15910 * loader/efi/chainloader.c: Likewise.
15911 * loader/multiboot_loader.c: Likewise.
15912 * loader/macho.c: Likewise.
15913 * loader/i386/multiboot.c: Likewise.
15914 * loader/i386/linux.c: Likewise.
15915 * loader/i386/pc/linux.c: Likewise.
15916 * loader/i386/pc/multiboot2.c: Likewise.
15917 * loader/i386/pc/chainloader.c: Likewise.
15918 * loader/i386/pc/xnu.c: Likewise.
15919 * loader/i386/bsd_trampoline.S: Likewise.
15920 * loader/i386/efi/linux.c: Likewise.
15921 * loader/i386/multiboot_elfxx.c: Likewise.
15922 * loader/i386/bsd_helper.S: Likewise.
15923 * loader/i386/bsd.c: Likewise.
15924 * loader/i386/linux_trampoline.S: Likewise.
15925 * loader/i386/xnu_helper.S: Likewise.
15926 * loader/i386/xnu.c: Likewise.
15927 * loader/i386/bsd_pagetable.c: Likewise.
15928 * loader/i386/multiboot_helper.S: Likewise.
15929 * loader/xnu.c: Likewise.
15930 * loader/xnu_resume.c: Likewise.
15931 * io/gzio.c: Likewise.
15932 * term/efi/console.c: Likewise.
15933 * term/terminfo.c: Likewise.
15934 * term/ieee1275/ofconsole.c: Likewise.
15935 * term/i386/pc/serial.c: Likewise.
15936 * term/i386/pc/vesafb.c: Likewise.
15937 * term/i386/pc/vga.c: Likewise.
15938 * term/usb_keyboard.c: Likewise.
15939 * term/gfxterm.c: Likewise.
15940 * aclocal.m4: Likewise.
15941 * util/lvm.c: Likewise.
15942 * util/grub.d/30_os-prober.in: Likewise.
15943 * util/grub.d/10_hurd.in: Likewise.
15944 * util/console.c: Likewise.
15945 * util/grub-macho2img.c: Likewise.
15946 * util/grub-probe.c: Likewise.
15947 * util/hostfs.c: Likewise.
15948 * util/i386/pc/grub-mkimage.c: Likewise.
15949 * util/i386/pc/grub-setup.c: Likewise.
15950 * util/i386/efi/grub-mkimage.c: Likewise.
15951 * util/grub-mkconfig.in: Likewise.
15952 * util/raid.c: Likewise.
15953 * util/resolve.c: Likewise.
15954 * util/grub-mkdevicemap.c: Likewise.
15955 * util/grub-emu.c: Likewise.
15956 * util/getroot.c: Likewise.
15957 * util/hostdisk.c: Likewise.
15958 * util/usb.c: Likewise.
15959 * util/grub-editenv.c: Likewise.
15960 * util/misc.c: Likewise.
15961
15962 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
15963
15964 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
15965 `genparttoollist.sh'.
15966 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
15967 Add `*.sh' to the list find searches for and change `mdate.sh'
15968 to `mdate-sh'.
15969
15970 2009-06-10 Pavel Roskin <proski@gnu.org>
15971
15972 * include/grub/multiboot2.h: Provide compatibility defines for
15973 multiboot2.h.
15974 * include/multiboot2.h: Include stdint.h only if needed, using
15975 angle brackets.
15976 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
15977 grub/multiboot2.h.
15978 * loader/ieee1275/multiboot2.c: Likewise.
15979 * loader/multiboot2.c: Likewise.
15980 * loader/multiboot_loader.c: Likewise.
15981
15982 * configure.ac: Use -nostdlib when probing for the target. It
15983 should not be required to have libc for the target.
15984
15985 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
15986 they fail without libc headers for the target.
15987 * include/grub/powerpc/libgcc.h: Use weak attribute for all
15988 exports.
15989 * include/grub/sparc64/libgcc.h: Likewise. Don't use
15990 preprocessor conditionals.
15991
15992 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
15993 build system doesn't need to be aware of the tar.c internals.
15994
15995 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
15996
15997 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
15998
15999 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
16000
16001 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
16002 disk limit to 26 for IDE, Virtio, Xen and SCSI.
16003
16004 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
16005
16006 * util/i386/pc/grub-install.in: Change the error message if UUIDs
16007 aren't available if ata.mod gets used.
16008
16009 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
16010
16011 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
16012 initialising controller.
16013 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
16014
16015 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
16016
16017 * util/i386/pc/grub-install.in: Add a parameter --disk-module
16018 to choose between ata and biosdisk module on i386-pc.
16019
16020 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
16021
16022 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
16023 Subclass and Programming Interface fields in terms of the 3 byte
16024 Class Code register.
16025 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
16026
16027 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
16028 interface is OHCI. Add grub_dprintf for symmetry with
16029 bus/usb/uhci.c.
16030 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
16031 interface is UHCI. Add interf variable for programming
16032 interface. Print interface with class/subclass.
16033
16034 * bus/usb/ohci.c: Set interf with correct field.
16035
16036 * bus/usb/uhci.c: Remove unneeded doubled lines.
16037 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
16038 Remove whitespace inside comment.
16039
16040 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
16041
16042 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
16043 as fallback an equivalent option without depth.
16044
16045 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
16046
16047 Not fail if unable to retrieve C/H/S on LBA disks
16048
16049 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
16050 if unable to retrieve C/H/S on LBA disks
16051
16052 2009-06-08 Pavel Roskin <proski@gnu.org>
16053
16054 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
16055 about aliasing.
16056
16057 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
16058
16059 * Makefile.in (uninstall): Remove all $lib_DATA files.
16060
16061 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
16062
16063 Bugfix: install on partitionless device
16064
16065 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
16066 is a whole disk
16067
16068 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
16069
16070 * Makefile.in (uninstall): Remove all $include_DATA files.
16071
16072 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
16073
16074 * commands/true.c: New file. Implement the true and false commands.
16075 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
16076 (true_mod_SOURCES): New variable.
16077 (true_mod_CFLAGS): Likewise.
16078 (true_mod_LDFLAGS): Likewise.
16079
16080 2009-06-05 Colin D Bennett <colin@gibibit.com>
16081
16082 Optimized font character lookup using binary search instead of linear
16083 search. Fonts now are required to have the character index ordered by
16084 code point.
16085
16086 * font/font.c (load_font_index): Verify that fonts have ordered
16087 character indices.
16088 (find_glyph): Use binary search instead of linear search to find a
16089 character in a font.
16090
16091 2009-06-05 Michael Scherer <misc@mandriva.org>
16092
16093 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
16094 uses case sensitive btree.
16095 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
16096 only for case insensitive filesystems.
16097
16098 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
16099
16100 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
16101 * conf/common.rmk (search_mod_CFLAGS): likewise
16102
16103 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16104
16105 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
16106 compensate a compiler bug
16107
16108 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16109
16110 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
16111 instead of '\b'
16112
16113 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16114
16115 Definitions for creating asm symbols with Apple's CC
16116
16117 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
16118 [APPLE_CC] (VARIABLE): likewise
16119
16120 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16121
16122 Disable lnxboot.img when compiled
16123 with Apple's CC
16124
16125 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
16126 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
16127 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
16128 [! APPLE_CC] (CODE_LENG): skip
16129 [! APPLE_CC] (setup_sects): likewise
16130 [! APPLE_CC]: skip filling
16131
16132 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16133
16134 Address in trampolines based on 32-bit registers when compiled
16135 with Apple's CC
16136
16137 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
16138 for addresses
16139 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
16140
16141 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16142
16143 Avoid aliases when compiling with Apple's CC for PCBIOS machine
16144
16145 * kern/misc.c [APPLE_CC] (memcpy): new function
16146 [APPLE_CC] (memmove): likewise
16147 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
16148 (memcpy): define alias conditionally on !APPLE_CC
16149 (memset): likewise
16150 (abort): likewise
16151 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
16152 APPLE_CC are defined
16153 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
16154 (grub_assert_fail): make prototype conditional
16155
16156 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16157
16158 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
16159
16160 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
16161 grub-macho2img
16162 (CLEANFILES): add grub-macho2img
16163 (grub_macho2img_SOURCES): new variable
16164 * kern/i386/pc/startup.S (bss_start): new variable
16165 (bss_end): likewise
16166 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
16167 * util/grub-macho2img.c: new file
16168
16169 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16170
16171 Use objconv when compiling with Apple's CC
16172
16173 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
16174 (efiemu64.o): likewise
16175 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
16176 when compiling with Apple's CC
16177 (efiemu64_s.o): likewise
16178 * configure.ac: check for objconv when compiling with Apple's CC
16179 * genmk.rb: use objconv for modules when compiled with Apple's CC
16180
16181 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16182
16183 Define segment as well as section when compiling with
16184 Apple's CC
16185
16186 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
16187 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
16188 (efiemu_convert_pointer): likewise
16189 (efiemu_set_virtual_address_map): likewise
16190 (efiemu_convert_pointer): likewise
16191 (efiemu_getcrc32): likewise
16192 (init_crc32_table): likewise
16193 (reflect): likewise
16194 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
16195 (GRUB_MOD_DEP): likewise
16196
16197 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16198
16199 Allow a compilation without -mcmodel=large
16200
16201 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
16202 when compiled without -mcmodel=large
16203 (filter_memory_map): remove memory post 4 GiB when compiled
16204 without -mcmodel=large
16205 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
16206 TARGET_CFLAGS when -mcmodel=large isn't supported
16207
16208 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16209
16210 Remove nested functions in efiemu core
16211
16212 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
16213
16214 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16215
16216 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
16217
16218 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
16219 temporary storage
16220 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
16221 using Apple's CC
16222 (grub_cpu_is_tsc_supported): likewise
16223 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
16224
16225 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16226
16227 Absolute addressing through constant with Apple's cc
16228
16229 * kern/i386/pc/startup.S: Define necessary constants
16230 and address through it when using ABS with Apple's CC
16231 * boot/i386/pc/diskboot.S: likewise
16232 * boot/i386/pc/boot.S: likewise
16233 * boot/i386/pc/lnxboot.S: likewise
16234 * boot/i386/pc/cdboot.S: likewise
16235 * mmap/i386/pc/mmap_helper.S: likewise
16236 * commands/i386/pc/drivemap_int13h.S: likewise
16237
16238 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16239
16240 Check if compiler is apple cc
16241
16242 * Makefile.in (ASFLAGS): new variable
16243 (TARGET_ASFLAGS): likewise
16244 (TARGET_MODULE_FORMAT): likewise
16245 (TARGET_APPLE_CC): likewise
16246 (OBJCONV): likewise
16247 (TARGET_IMG_CFLAGS): likewise
16248 (TARGET_CPPFLAGS): add includedir
16249 * configure.ac: call grub_apple_cc and grub_apple_target_cc
16250 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
16251 Check for linker script only if compiler isn't Apple's CC
16252 (TARGET_MODULE_FORMAT): set
16253 (TARGET_APPLE_CC): likewise
16254 (TARGET_ASFLAGS): likewise
16255 (ASFLAGS): likewise
16256 Check for objcopy only if compiler isn't Apple's CC
16257 Check for BSS symbol only if compiler isn't Apple's CC
16258 * genmk.rb: adapt nm options if we use Apple's utils
16259 * aclocal.m4 (grub_apple_cc): new test
16260 (grub_apple_target_cc): likewise
16261
16262 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16263
16264 Simplify sed expressions and improve awk
16265
16266 * Makefile.in (install-local): simplify sed expression
16267 * gencmdlist.sh: likewise
16268 * genmoddep.awk: avoid adding module as a dependency of itself
16269
16270 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16271
16272 Add missing start symbols
16273
16274 * boot/i386/pc/boot.S: add start
16275 * boot/i386/pc/pxeboot.S: likewise
16276
16277 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16278
16279 Fix wrong assumptions with grub-mkimage on EFI
16280
16281 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
16282 (relocate_addresses): consider both r_addend and value at offset
16283 (make_mods_section): zerofill modinfo and header
16284 (convert_elf): write prefix here
16285
16286 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16287
16288 Use .asciz instead of .string
16289
16290 * i386/pc/diskboot.S: use .asciz instead of .string
16291 * i386/pc/boot.S: likewise
16292 * include/grub/dl.h (GRUB_MOD_DEP): likewise
16293 (GRUB_MOD_NAME): likewise
16294
16295 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16296
16297 gfxpayload support
16298
16299 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
16300 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
16301 (grub_video_setup): remove
16302 (grub_video_set_mode): new prototype
16303 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
16304 (vid_mode): remove
16305 (linux_vesafb_res): compile only on PCBIOS
16306 (grub_linux_boot): support gfxpayload
16307 * loader/i386/pc/xnu.c (video_hook): new function
16308 (grub_xnu_set_video): support gfxpayload
16309 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
16310 (DEFAULT_VIDEO_HEIGHT): likewise
16311 (DEFAULT_VIDEO_FLAGS): likewise
16312 (DEFAULT_VIDEO_MODE): new definition
16313 (video_hook): new function
16314 (grub_gfxterm_init): use grub_video_set_mode
16315 * util/grub.d/30_os-prober.in: remove explicit modesetting before
16316 loading xnu
16317 * video/video.c (grub_video_setup): removed
16318 (grub_video_set_mode): new function based on grub_gfxterm_init and
16319 grub_video_setup
16320
16321 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16322
16323 Avoid calling biosdisk in drivemap
16324
16325 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
16326 (revparse_biosdisk): likewise
16327 (list_mappings): derive name from id directly
16328 (grub_cmd_drivemap): use tryparse_diskstring
16329
16330 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16331
16332 Script fixes
16333
16334 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
16335 (grub_lexer_param): add tokenonhold
16336 (grub_script_create_cmdline): remove cmdline. All callers updated
16337 (grub_script_function_create): make functionname
16338 grub_script_arg. All callers updated
16339 (grub_script_execute_argument_to_string): new prototype
16340 * kern/parser.c (state_transitions): reorder
16341 (grub_parser_cmdline_state): fix a bug and make more compact
16342 * script/sh/execute.c (grub_script_execute_argument_to_string):
16343 make global
16344 (grub_script_execute_cmdline): use new format
16345 * script/sh/function.c (grub_script_function_create): make functionname
16346 grub_script_arg. All callers updated
16347 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
16348 (grub_script_yylex): remove
16349 (grub_script_yylex2): renamed to ...
16350 (grub_script_yylex): ...renamed
16351 parse the expressions like a${b}c
16352 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
16353 (GRUB_PARSER_TOKEN_VAR): remove
16354 (GRUB_PARSER_TOKEN_NAME): likewise
16355 ("if"): declare as typeless
16356 ("while"): likewise
16357 ("function"): likewise
16358 ("else"): likewise
16359 ("then"): likewise
16360 ("fi"): likewise
16361 (text): remove
16362 (argument): likewise
16363 (script): accept empty scripts and make exit on error
16364 (arguments): use GRUB_PARSER_TOKEN_ARG
16365 (function): likewise
16366 (command): move error handling to script
16367 (menuentry): move grub_script_lexer_ref before
16368 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
16369 argument. All callers updated
16370
16371 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
16372
16373 Prevent GRUB from probing floppies during boot.
16374
16375 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
16376 * commands/search.c (options): Add --no-floppy.
16377 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
16378 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
16379 --no-floppy when searching for UUIDs.
16380
16381 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
16382
16383 Simplify the code duplication in commands/search.c.
16384
16385 * commands/search.c (search_label, search_fs_uuid): Merge into ...
16386 (search_fs): ... this. Update all users.
16387
16388 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
16389
16390 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
16391
16392 2009-05-28 Pavel Roskin <proski@gnu.org>
16393
16394 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
16395 Remove the original symlink explicitly.
16396
16397 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
16398 just one slash. That's how grub_fshelp_find_file() does it.
16399
16400 2009-05-26 Pavel Roskin <proski@gnu.org>
16401
16402 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
16403 to `str'.
16404
16405 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
16406 possibly unused.
16407
16408 2009-05-25 Christian Franke <franke@computer.org>
16409
16410 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
16411 register.
16412 (grub_atapi_identify): Add wait after drive select.
16413 (grub_ata_identify): Do more strict status register check before
16414 calling grub_atapi_identify (). Suppress error message if status
16415 register is 0x00 after command failure. Add status register
16416 check after PIO read to avoid bogus identify due to stuck DRQ.
16417 Thanks to Pavel Roskin for testing.
16418 (grub_device_initialize): Remove unsafe status register check.
16419 Thanks to 'phcoder' for problem report and patch.
16420 Prevent sign extension in debug message.
16421
16422 2009-05-23 Colin D Bennett <colin@gibibit.com>
16423
16424 Cleaned up `include/grub/normal.h'. Grouped prototypes by
16425 definition file, and functions defined in `normal/menu.c' have had
16426 their prototypes moved to `include/grub/menu.h' for consistency.
16427
16428 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
16429 from normal.h.
16430 (grub_menu_get_entry): Likewise.
16431 (grub_menu_get_timeout): Likewise.
16432 (grub_menu_set_timeout): Likewise.
16433 (grub_menu_execute_entry): Likewise.
16434 (grub_menu_execute_with_fallback): Likewise.
16435 (grub_menu_entry_run): Likewise.
16436
16437 * include/grub/normal.h: Re-ordered and grouped function
16438 prototypes by file that the function is defined in.
16439 (grub_menu_execute_callback): Removed; moved to menu.h.
16440 (grub_menu_get_entry): Likewise.
16441 (grub_menu_get_timeout): Likewise.
16442 (grub_menu_set_timeout): Likewise.
16443 (grub_menu_execute_entry): Likewise.
16444 (grub_menu_execute_with_fallback): Likewise.
16445 (grub_menu_entry_run): Likewise.
16446 (grub_menu_addentry): Renamed from this ...
16447 (grub_normal_add_menu_entry): ... to this.
16448
16449 * normal/main.c (grub_menu_addentry): Renamed from this ...
16450 (grub_normal_add_menu_entry): ... to this.
16451
16452 * script/sh/execute.c (grub_script_execute_menuentry): Update
16453 reference to renamed grub_menu_addentry function.
16454
16455 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
16456
16457 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
16458
16459 2009-05-22 Pavel Roskin <proski@gnu.org>
16460
16461 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
16462 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
16463 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
16464 compiling for the i386 targets, but not for the utilities.
16465
16466 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
16467 to grub_uint8_t.
16468 (grub_root_drive): Likewise.
16469 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
16470 remove alignment.
16471 (grub_root_drive): Change size to byte.
16472 (grub_start_addr): Remove.
16473 (grub_end_addr): Likewise.
16474 (grub_apm_bios_info): Likewise.
16475
16476 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
16477
16478 * normal/i386: Remove.
16479 * normal/powerpc: Likewise.
16480 * normal/sparc64: Likewise.
16481 * normal/x86_64: Likewise.
16482
16483 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
16484
16485 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
16486 * loader/i386/linux_trampoline.S: Fix indentation
16487 * loader/i386/xnu_helper.S: Likewise
16488
16489 2009-05-18 Colin D Bennett <colin@gibibit.com>
16490
16491 Display error messages when parsing a Lua statement fails.
16492 Previously, executing a syntactically invalid statement like
16493 ")foo" or "bar;" would silently fail.
16494
16495 * script/lua/grub_main.c (handle_lua_error): New function.
16496 (grub_lua_parse_line): Improved reporting of Lua parser and
16497 execution errors.
16498
16499 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16500
16501 Remove -Werror which causes build to fail on some systems
16502
16503 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
16504 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
16505 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
16506
16507 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16508
16509 trampoline for linux on 64-bit platform
16510
16511 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
16512 loader/i386/efi/linux_trampoline.S
16513 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
16514 declaration
16515 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
16516 here
16517 * loader/i386/linux_trampoline.S: moved here
16518 * loader/i386/efi/linux.c (allocate_pages): reserve space for
16519 trampoline
16520 (jumpvector): removed
16521 (grub_linux_trampoline_start): new declaration
16522 (grub_linux_trampoline_end): likewise
16523 (grub_linux_boot): use trampoline when on 64-bit platform
16524 * loader/i386/linux.c: likewise
16525
16526 2009-05-16 Pavel Roskin <proski@gnu.org>
16527
16528 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
16529 const to avoid a warning.
16530 (grub_lua_setenv): Likewise.
16531 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
16532 lmsg to fix a warning.
16533
16534 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
16535
16536 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
16537 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
16538 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
16539 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
16540 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
16541 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
16542 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
16543 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
16544
16545 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
16546
16547 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
16548
16549 2009-05-16 Bean <bean123ch@gmail.com>
16550
16551 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
16552 (lua_mod_SOURCES): New variable.
16553 (lua_mod_CFLAGS): Likewise.
16554 (lua_mod_LDFLAGS): Likewise.
16555
16556 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
16557 (setjmp_mod_SOURCES): New variable.
16558 (setjmp_mod_CFLAGS): Likewise.
16559 (setjmp_LDFLAGS): Likewise.
16560
16561 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
16562 (setjmp_mod_SOURCES): New variable.
16563 (setjmp_mod_CFLAGS): Likewise.
16564 (setjmp_LDFLAGS): Likewise.
16565
16566 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
16567 (setjmp_mod_SOURCES): New variable.
16568 (setjmp_mod_CFLAGS): Likewise.
16569 (setjmp_LDFLAGS): Likewise.
16570
16571 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
16572 (setjmp_mod_SOURCES): New variable.
16573 (setjmp_mod_CFLAGS): Likewise.
16574 (setjmp_LDFLAGS): Likewise.
16575
16576 * normal/i386/setjmp.S: Moved from here ...
16577 * lib/i386/setjmp.S: ... Moved here
16578 * normal/x86_64/setjmp.S: Moved from here ...
16579 * lib/x86_64/setjmp.S: ... Moved here
16580 * normal/powerpc/setjmp.S: Moved from here ...
16581 * lib/powerpc/setjmp.S: ... Moved here
16582 * normal/sparc64/setjmp.S: Moved from here ...
16583 * lib/sparc64/setjmp.S: ... Moved here
16584
16585 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
16586 returns_twice in mingw.
16587
16588 * script/lua/grub_lib.c: New file.
16589 * script/lua/grub_lib.h: Likewise.
16590 * script/lua/grub_lua.h: Likewise.
16591 * script/lua/grub_main.c: Likewise.
16592 * script/lua/lapi.c: Likewise.
16593 * script/lua/lapi.h: Likewise.
16594 * script/lua/lauxlib.c: Likewise.
16595 * script/lua/lauxlib.h: Likewise.
16596 * script/lua/lbaselib.c: Likewise.
16597 * script/lua/lcode.c: Likewise.
16598 * script/lua/lcode.h: Likewise.
16599 * script/lua/ldblib.c: Likewise.
16600 * script/lua/ldebug.c: Likewise.
16601 * script/lua/ldebug.h: Likewise.
16602 * script/lua/ldo.c: Likewise.
16603 * script/lua/ldo.h: Likewise.
16604 * script/lua/ldump.c: Likewise.
16605 * script/lua/lfunc.c: Likewise.
16606 * script/lua/lfunc.h: Likewise.
16607 * script/lua/lgc.c: Likewise.
16608 * script/lua/lgc.h: Likewise.
16609 * script/lua/linit.c: Likewise.
16610 * script/lua/liolib.c: Likewise.
16611 * script/lua/llex.c: Likewise.
16612 * script/lua/llex.h: Likewise.
16613 * script/lua/llimits.h: Likewise.
16614 * script/lua/lmathlib.c: Likewise.
16615 * script/lua/lmem.c: Likewise.
16616 * script/lua/lmem.h: Likewise.
16617 * script/lua/loadlib.c: Likewise.
16618 * script/lua/lobject.c: Likewise.
16619 * script/lua/lobject.h: Likewise.
16620 * script/lua/lopcodes.c: Likewise.
16621 * script/lua/lopcodes.h: Likewise.
16622 * script/lua/loslib.c: Likewise.
16623 * script/lua/lparser.c: Likewise.
16624 * script/lua/lparser.h: Likewise.
16625 * script/lua/lstate.c: Likewise.
16626 * script/lua/lstate.h: Likewise.
16627 * script/lua/lstring.c: Likewise.
16628 * script/lua/lstring.h: Likewise.
16629 * script/lua/lstrlib.c: Likewise.
16630 * script/lua/ltable.c: Likewise.
16631 * script/lua/ltable.h: Likewise.
16632 * script/lua/ltablib.c: Likewise.
16633 * script/lua/ltm.c: Likewise.
16634 * script/lua/ltm.h: Likewise.
16635 * script/lua/lua.h: Likewise.
16636 * script/lua/luaconf.h: Likewise.
16637 * script/lua/lualib.h: Likewise.
16638 * script/lua/lundump.c: Likewise.
16639 * script/lua/lundump.h: Likewise.
16640 * script/lua/lvm.c: Likewise.
16641 * script/lua/lvm.h: Likewise.
16642 * script/lua/lzio.c: Likewise.
16643 * script/lua/lzio.h: Likewise.
16644
16645 2009-05-16 Bean <bean123ch@gmail.com>
16646
16647 * include/grub/kernel.h (grub_module_header_types): Add type
16648 OBJ_TYPE_CONFIG.
16649
16650 * kern/main.c (grub_load_config): New function.
16651 (grub_main): Call grub_load_config to read boot config.
16652
16653 * grub-mkimage (generate_image): New parameter config_path.
16654 (options): New option --config.
16655 (main): Parse --config option, and pass it to generate_image.
16656
16657 2009-05-14 Christian Franke <franke@computer.org>
16658
16659 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
16660 This fixes build on Cygwin.
16661
16662 2009-05-14 Pavel Roskin <proski@gnu.org>
16663
16664 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
16665 jump. This saves two bytes, so the typical case of 2 swapped
16666 drives would fit 32 bytes.
16667
16668 2009-05-13 Pavel Roskin <proski@gnu.org>
16669
16670 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
16671 grub_uint32_t to avoid a warning.
16672
16673 * loader/i386/linux.c (allocate_pages): When assigning
16674 real_mode_mem, cast through grub_size_t to fix a warning. The
16675 code already makes sure that the value would fit a pointer.
16676 (grub_linux_setup_video): Cast render_target->data to
16677 grub_size_t to fix a warning.
16678
16679 2009-05-13 Javier Martín <lordhabbit@gmail.com>
16680
16681 * commands/i386/pc/drivemap.c: New file - implement drivemap
16682 command.
16683 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
16684 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
16685
16686 2009-05-13 Pavel Roskin <proski@gnu.org>
16687
16688 * util/i386/pc/grub-setup.c (setup): Remove unused variable
16689 embedding_area_exists.
16690
16691 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
16692
16693 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
16694 it easier to understand / work with.
16695 Improve warning messages for cases where there's no embedding area,
16696 or when it is too small (or core.img too large).
16697
16698 2009-05-13 Pavel Roskin <proski@gnu.org>
16699
16700 * loader/i386/pc/multiboot2.c: Add necessary includes for
16701 grub_multiboot2_real_boot().
16702
16703 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
16704 PX record is always little-endian. We only need the lower 2
16705 bytes of the mode.
16706
16707 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
16708 facilitate code reuse.
16709 (grub_cpio_mount): Use "struct head", not a char buffer. This
16710 fixes a warning reported by gcc 4.4.
16711
16712 * kernel/disk.c (grub_disk_read): Use void pointer for the
16713 buffer.
16714 (grub_disk_write): Use const void pointer for the buffer.
16715 Adjust all callers. Remove unnecessary casts.
16716
16717 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
16718
16719 * util/i386/pc/grub-install.in: Update copyright year.
16720
16721 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16722
16723 gptsync
16724
16725 * commands/gptsync.c: new file
16726 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
16727 (gptsync_mod_SOURCES): new variable
16728 (gptsync_mod_CFLAGS): likewise
16729 (gptsync_mod_LDFLAGS): likewise
16730 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
16731 new definition
16732 (GRUB_PC_PARTITION_TYPE_HFS): likewise
16733 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
16734 * conf/i386-ieee1275.rmk: likewise
16735 * conf/i386-pc.rmk: likewise
16736 * conf/powerpc-ieee1275.rmk: likewise
16737
16738 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16739
16740 Fixed grub-emu
16741
16742 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
16743 (grub_dl_ref): likewise
16744
16745 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
16746
16747 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
16748 split in two functions (one for msdos and one for gpt).
16749
16750 2009-05-08 Pavel Roskin <proski@gnu.org>
16751
16752 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
16753 not modified.
16754
16755 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
16756 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
16757 Initialize them with -1. Add sanity check for bad1. Eliminate
16758 nerr variable.
16759
16760 2009-05-08 David S. Miller <davem@davemloft.net>
16761
16762 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
16763
16764 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
16765
16766 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
16767 existence.
16768
16769 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
16770
16771 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
16772 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
16773
16774 2009-05-05 David S. Miller <davem@davemloft.net>
16775
16776 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
16777
16778 2009-05-05 Pavel Roskin <proski@gnu.org>
16779
16780 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
16781 of grub_dl_ref() and grub_dl_unref().
16782 * commands/parttool.c: Remove preprocessor conditionals around
16783 grub_dl_ref() and grub_dl_unref().
16784 * fs/affs.c: Likewise.
16785 * fs/afs.c: Likewise.
16786 * fs/cpio.c: Likewise.
16787 * fs/ext2.c: Likewise.
16788 * fs/fat.c: Likewise.
16789 * fs/hfs.c: Likewise.
16790 * fs/hfsplus.c: Likewise.
16791 * fs/iso9660.c: Likewise.
16792 * fs/jfs.c: Likewise.
16793 * fs/minix.c: Likewise.
16794 * fs/ntfs.c: Likewise.
16795 * fs/reiserfs.c: Likewise.
16796 * fs/sfs.c: Likewise.
16797 * fs/udf.c: Likewise.
16798 * fs/ufs.c: Likewise.
16799 * fs/xfs.c: Likewise.
16800 * include/grub/dl.h: Likewise.
16801 * loader/xnu.c: Likewise.
16802
16803 2009-05-04 Pavel Roskin <proski@gnu.org>
16804
16805 * commands/acpi.c: Remove unused variable my_mod.
16806 * partmap/amiga.c: Likewise.
16807 * partmap/apple.c: Likewise.
16808 * partmap/gpt.c: Likewise.
16809 * partmap/pc.c: Likewise.
16810 * partmap/sun.c: Likewise.
16811 * term/gfxterm.c: Likewise.
16812 * term/i386/pc/vesafb.c: Likewise.
16813 * term/i386/pc/vga.c: Likewise.
16814
16815 2009-05-04 David S. Miller <davem@davemloft.net>
16816
16817 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
16818 pointer args to grub_ieee1275_get_property().
16819
16820 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
16821
16822 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
16823 devices, and do not traverse down under controller nodes.
16824
16825 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
16826 (grub_ofdisk_open): Use it to un-escape "," characters.
16827 * kern/disk.c (find_part_sep): New.
16828 (grub_disk_open): Use it to find the first non-escaped ','
16829 character in the disk name.
16830 * util/ieee1275/devicemap.c (escape_of_path): New.
16831 (grub_util_emit_devicemap_entry): Use it.
16832 * util/sparc64/ieee1275/grub-install.in: Update script to
16833 strip partition specifiers properly by not triggering on
16834 '\' escaped ',' characters.
16835
16836 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
16837
16838 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
16839 to 0x300.
16840 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
16841 resolutions.
16842 (linux_vesafb_modes): Add a lot of additional modes to the list (based
16843 on documentation from Wikipedia).
16844
16845 2009-05-04 Pavel Roskin <proski@gnu.org>
16846
16847 * disk/ata.c: Spelling fixes.
16848 * disk/raid.c: Likewise.
16849 * disk/usbms.c: Likewise.
16850 * disk/dmraid_nvidia.c: Likewise.
16851 * kern/ieee1275/openfw.c: Likewise.
16852 * kern/ieee1275/init.c: Likewise.
16853 * kern/ieee1275/cmain.c: Likewise.
16854 * boot/i386/pc/cdboot.S: Likewise.
16855 * video/readers/png.c: Likewise.
16856 * video/i386/pc/vbe.c: Likewise.
16857 * fs/udf.c: Likewise.
16858 * fs/hfs.c: Likewise.
16859 * fs/reiserfs.c: Likewise.
16860 * efiemu/runtime/efiemu.c: Likewise.
16861 * efiemu/main.c: Likewise.
16862 * efiemu/mm.c: Likewise.
16863 * include/grub/elf.h: Likewise.
16864 * include/grub/xnu.h: Likewise.
16865 * include/grub/usbdesc.h: Likewise.
16866 * include/grub/usb.h: Likewise.
16867 * include/grub/script_sh.h: Likewise.
16868 * include/grub/lib/LzmaEnc.h: Likewise.
16869 * include/grub/efiemu/efiemu.h: Likewise.
16870 * include/grub/command.h: Likewise.
16871 * normal/menu.c: Likewise.
16872 * normal/main.c: Likewise.
16873 * normal/datetime.c: Likewise.
16874 * bus/usb/uhci.c: Likewise.
16875 * mmap/i386/uppermem.c: Likewise.
16876 * mmap/mmap.c: Likewise.
16877 * commands/acpi.c: Likewise.
16878 * commands/test.c: Likewise.
16879 * partmap/apple.c: Likewise.
16880 * font/font.c: Likewise.
16881 * loader/sparc64/ieee1275/linux.c: Likewise.
16882 * loader/macho.c: Likewise.
16883 * loader/i386/bsd_trampoline.S: Likewise.
16884 * loader/i386/bsd.c: Likewise.
16885 * loader/xnu.c: Likewise.
16886 * term/i386/pc/vesafb.c: Likewise.
16887 * term/usb_keyboard.c: Likewise.
16888 * util/resolve.c: Likewise.
16889 * util/getroot.c: Likewise.
16890
16891 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
16892
16893 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
16894
16895 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
16896
16897 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
16898 build error.
16899
16900 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
16901
16902 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
16903 parameter only available on BIOS.
16904
16905 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
16906
16907 Removed wrong semicolon in declaration
16908
16909 * grub/misc.h (grub_dprintf): remove semicolon
16910
16911 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
16912
16913 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
16914 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
16915 is done by grub_cmd_linux() now).
16916 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
16917 restore video to text mode.
16918 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
16919 indicates lack of "vga=" parameter. "vga=0" is mapped to
16920 `GRUB_LINUX_VID_MODE_NORMAL'.
16921
16922 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
16923
16924 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
16925 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
16926 and `normal/script.c'. Add `kern/rescue_reader.c',
16927 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
16928 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
16929 `grub_script.tab.c'.
16930
16931 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16932 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16933 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16934 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
16935 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16936
16937 * Makefile.in: Remove duplicated 2008 in Copyright line.
16938
16939 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
16940
16941 * util/misc.c (grub_util_warn): New function. Emits a warning
16942 unconditionally.
16943 * include/grub/util/misc.h (grub_util_warn): New declaration.
16944
16945 * util/i386/pc/grub-install.in: Understand --force and pass it down
16946 to grub-setup.
16947
16948 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
16949 down to setup().
16950 (setup): Improve error messages and add warnings when requested to
16951 install in odd layouts. Refuse to install using blocklists unless
16952 --force was set.
16953
16954 2009-05-04 martin f. krafft <madduck@madduck.net>
16955
16956 * disk/raid.c (grub_raid_scan_device): Improve debug message.
16957
16958 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
16959
16960 Updated copyright year
16961
16962 * fs/hfsplus.c: updated copyright year
16963
16964 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
16965
16966 HFS+ UUID
16967
16968 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
16969 in the space previously used by unused3
16970 (grub_hfsplus_uuid): new function
16971 (grub_hfsplus_fs): added uuid field
16972
16973 2009-05-03 Pavel Roskin <proski@gnu.org>
16974
16975 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
16976 suppress warnings. It's no longer needed.
16977 * disk/host.c: Likewise.
16978 * disk/ata_pthru.c: Likewise.
16979 * disk/loopback.c: Likewise.
16980 * hook/datehook.c: Likewise.
16981 * parttool/pcpart.c: Likewise.
16982 * fs/i386/pc/pxe.c: Likewise.
16983 * fs/ntfscomp.c: Likewise.
16984 * efiemu/main.c: Likewise.
16985 * mmap/mmap.c: Likewise.
16986 * commands/crc.c: Likewise.
16987 * commands/hexdump.c: Likewise.
16988 * commands/hdparm.c: Likewise.
16989 * commands/acpi.c: Likewise.
16990 * commands/echo.c: Likewise.
16991 * commands/minicmd.c: Likewise.
16992 * commands/blocklist.c: Likewise.
16993 * commands/memrw.c: Likewise.
16994 * commands/loadenv.c: Likewise.
16995 * commands/usbtest.c: Likewise.
16996 * commands/lsmmap.c: Likewise.
16997 * commands/boot.c: Likewise.
16998 * commands/parttool.c: Likewise.
16999 * commands/configfile.c: Likewise.
17000 * commands/search.c: Likewise.
17001 * commands/ieee1275/suspend.c: Likewise.
17002 * commands/cat.c: Likewise.
17003 * commands/i386/pc/pxecmd.c: Likewise.
17004 * commands/i386/pc/play.c: Likewise.
17005 * commands/i386/pc/halt.c: Likewise.
17006 * commands/i386/pc/vbeinfo.c: Likewise.
17007 * commands/i386/pc/vbetest.c: Likewise.
17008 * commands/lspci.c: Likewise.
17009 * commands/date.c: Likewise.
17010 * commands/handler.c: Likewise.
17011 * commands/ls.c: Likewise.
17012 * commands/test.c: Likewise.
17013 * commands/cmp.c: Likewise.
17014 * commands/efi/loadbios.c: Likewise.
17015 * commands/efi/fixvideo.c: Likewise.
17016 * commands/halt.c: Likewise.
17017 * commands/help.c: Likewise.
17018 * commands/reboot.c: Likewise.
17019 * hello/hello.c: Likewise.
17020 * script/sh/main.c: Likewise.
17021 * loader/xnu.c: Likewise.
17022 * term/terminfo.c: Likewise.
17023 * term/i386/pc/serial.c: Likewise.
17024 * term/usb_keyboard.c: Likewise.
17025
17026 2009-05-03 David S. Miller <davem@davemloft.net>
17027
17028 * normal/menu.c: Include grub/parser.h
17029
17030 2009-05-03 Pavel Roskin <proski@gnu.org>
17031
17032 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
17033 not char*.
17034 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
17035 Suggested by Javier Martín <lordhabbit@gmail.com>
17036
17037 * util/i386/pc/grub-mkrescue.in: Allow for the case when
17038 efiemu??.o doesn't exist.
17039 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
17040 copying.
17041
17042 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
17043
17044 FreeBSD 64-bit support
17045
17046 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
17047 and loader/i386/bsd_trampoline.S
17048 (bsd_mod_ASFLAGS): new variable
17049 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
17050 (FREEBSD_MODTYPE_KERNEL64): likewise
17051 (grub_bsd64_trampoline_start): likewise
17052 (grub_bsd64_trampoline_end): likewise
17053 (grub_bsd64_trampoline_selfjump): likewise
17054 (grub_bsd64_trampoline_gdt): likewise
17055 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
17056 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
17057 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
17058 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
17059 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
17060 of "attrib" member
17061 * loader/i386/bsd_pagetable.c: new file
17062 * loader/i386/bsd_trampoline.S: likewise
17063 * loader/i386/bsd.c (ALIGN_QWORD): new macro
17064 (ALIGN_VAR): likewise
17065 (entry_hi): new variable
17066 (kern_end_mdofs): likewise
17067 (is_64bit): likewise
17068 (grub_freebsd_add_meta): use ALIGN_VAR
17069 (grub_e820_mmap): new declaration
17070 (grub_freebsd_add_mmap): new function
17071 (grub_freebsd_add_meta_module): support 64 bit kernels
17072 (grub_freebsd_list_modules): use ALIGN_VAR
17073 (gdt_descriptor): new declaration
17074 (grub_freebsd_boot): support 64 bit kernels
17075 (grub_bsd_elf64_hook): new function
17076 (grub_bsd_load_elf): support elf64
17077
17078 2009-05-03 Bean <bean123ch@gmail.com>
17079
17080 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
17081 after we get the result of if statement.
17082
17083 2009-05-03 Bean <bean123ch@gmail.com>
17084
17085 * Makefile.in (enable_efiemu): New variable.
17086
17087 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
17088 set.
17089 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
17090 path.
17091 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
17092 path, add -mno-red-zone option.
17093 (efiemu64_s.o): Likewise.
17094 (efiemu64.o): Use macro $^ for source file.
17095
17096 * configure.ac (--enable-efiemu): New option.
17097
17098 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
17099
17100 xnu support
17101
17102 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
17103 (pkglib_MODULES): add xnu.mod
17104 (xnu_mod_SOURCES): new variable
17105 (xnu_mod_CFLAGS): likewise
17106 (xnu_mod_LDFLAGS): likewise
17107 (xnu_mod_ASFLAGS): likewise
17108 * conf/i386-pc.rmk: likewise
17109 * conf/x86_64-efi.rmk: likewise
17110 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
17111 new declaration
17112 * include/grub/i386/macho.h: new file
17113 * include/grub/i386/xnu.h: likewise
17114 * include/grub/macho.h: likewise
17115 * include/grub/machoload.h: likewise
17116 * include/grub/x86_64/macho.h: likewise
17117 * include/grub/x86_64/xnu.h: likewise
17118 * include/grub/xnu.h: likewise
17119 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
17120 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
17121 * loader/i386/efi/xnu.c: new file
17122 * loader/i386/pc/xnu.c: likewise
17123 * loader/i386/xnu.c: likewise
17124 * loader/i386/xnu_helper.S: likewise
17125 * loader/macho.c: likewise
17126 * loader/xnu.c: likewise
17127 * loader/xnu_resume.c: likewise
17128 * util/grub-dumpdevtree: likewise
17129 * include/grub/i386/pit.h: include grub/err.h
17130 (grub_pit_wait): export
17131 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
17132
17133 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
17134
17135 Efiemu
17136
17137 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
17138 _linux_efi, linux_efi.
17139 new files in grub-emu
17140 new targets efiemu32.o and efiemu64.o
17141 * loader/linux_normal_efiemu.c: likewise
17142 * loader/i386/efi/linux.c: added preliminary efiemu support
17143 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
17144 files to copy
17145 * include/grub/autoefi.h: new file
17146 * include/grub/i386/efiemu.h: likewise
17147 * include/grub/i386/pc/efiemu.h: likewise
17148 * include/grub/efi/api.h: add LL suffix when necessary
17149 new definitions relating to tables
17150 * include/grub/efiemu/efiemu.h: new file
17151 * include/grub/efiemu/runtime.h: likewise
17152 * efiemu/prepare.c: likewise
17153 * efiemu/loadcore_common.c: likewise
17154 * efiemu/loadcore64.c: likewise
17155 * efiemu/runtime/efiemu.sh: likewise
17156 * efiemu/runtime/efiemu.S: likewise
17157 * efiemu/runtime/efiemu.c: likewise
17158 * efiemu/runtime/config.h: likewise
17159 * efiemu/prepare32.c: likewise
17160 * efiemu/main.c: likewise
17161 * efiemu/modules/pnvram.c: likewise
17162 * efiemu/modules/i386: likewise
17163 * efiemu/modules/i386/pc: likewise
17164 * efiemu/modules/acpi.c: likewise
17165 * efiemu/i386/pc/cfgtables.c: likewise
17166 * efiemu/i386/loadcore64.c: likewise
17167 * efiemu/i386/loadcore32.c: likewise
17168 * efiemu/prepare64.c: likewise
17169 * efiemu/loadcore.c: likewise
17170 * efiemu/symbols.c: likewise
17171 * efiemu/mm.c: likewise
17172 * efiemu/loadcore32.c: likewise
17173
17174 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
17175
17176 ACPI spoofing
17177
17178 * commands/acpi.c: new file
17179 * commands/i386/pc/acpi.c: likewise
17180 * commands/efi/acpi.c: likewise
17181 * include/grub/acpi.h: likewise
17182 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
17183 (acpi_mod_SOURCES): new variable
17184 (acpi_mod_CFLAGS): likewise
17185 (acpi_mod_LDFLAGS): likewise
17186 * conf/i386-efi.rmk: likewise
17187 * conf/x86_64-efi.rmk: likewise
17188
17189 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
17190
17191 Missing part from mmap patch
17192
17193 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
17194 (grub_mmap_unregister)
17195 (grub_mmap_free_and_unregister): use grub_mmap_register
17196
17197 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
17198
17199 Mmap services
17200
17201 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
17202 * loader/i386/linux.c (find_mmap_size): likewise
17203 (allocate_pages): likewise
17204 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
17205 (grub_fill_multiboot_mmap): likewise
17206 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
17207 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
17208 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
17209 (OPENBSD_MMAP_RESERVED): likewise
17210 * include/grub/i386/pc/memory.h: include grub/memory.h
17211 (grub_lower_mem): removed
17212 (grub_upper_mem): likewise
17213 (GRUB_MACHINE_MEMORY_ACPI): new definition
17214 (GRUB_MACHINE_MEMORY_NVS): likewise
17215 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
17216 (GRUB_MACHINE_MEMORY_HOLE): likewise
17217 (grub_machine_mmap_register): likewise
17218 (grub_machine_mmap_unregister): likewise
17219 (grub_machine_get_upper): likewise
17220 (grub_machine_get_lower): likewise
17221 (grub_machine_get_post64): likewise
17222 * include/grub/i386/efi/memory.h: new file
17223 * include/grub/x86_64/efi/memory.h: likewise
17224 * include/grub/efi/memory.h: likewise
17225 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
17226 (mmap_mod_SOURCES): new variable
17227 (mmap_mod_LDFLAGS): likewise
17228 (mmap_mod_ASFLAGS): likewise
17229 * conf/i386-coreboot.rmk: likewise
17230 * conf/i386-ieee1275.rmk: likewise
17231 * conf/i386-efi.rmk: likewise
17232 * conf/x86_64-efi.rmk: likewise
17233 * include/grub/types.h (UINT_TO_PTR): new macro
17234 (PTR_TO_UINT32): likewise
17235 (PTR_TO_UINT64): likewise
17236 * include/grub/memory.h: new file
17237 * mmap/i386/pc/mmap.c: likewise
17238 * mmap/i386/pc/mmap_helper.S: likewise
17239 * mmap/i386/uppermem.c: likewise
17240 * mmap/mmap.c: likewise
17241 * mmap/efi/mmap.c: likewise
17242 * kern/i386/coreboot/init.c (grub_machine_init): don't use
17243 grub_upper_mem
17244 * kern/i386/pc/init.c (grub_lower_mem): removed variable
17245 (grub_upper_mem): likewise
17246 (grub_machine_init): don't use grub_upper_mem,
17247 make grub_lower_mem local
17248 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
17249 grub_mmap_iterate and grub_mmap_get_upper
17250 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
17251
17252 2009-05-02 Bean <bean123ch@gmail.com>
17253
17254 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
17255 script/sh/parser.y.
17256 (pkglib_MODULES): Add normal.mod and sh.mod.
17257 (normal_SOURCES): New variable.
17258 (normal_mod_CFLAGS): Likewise.
17259 (normal_mod_LDFLAGS): Likewise.
17260 (sh_mod_SOURCES): Likewise.
17261 (sh_mod_CFLAGS): Likewise.
17262 (sh_mod_LDFLAGS): Likewise.
17263
17264 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
17265 script/sh/lexer.c_DEPENDENCIES.
17266 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
17267 kern/rescue_reader.c and kern/rescue_parser.c.
17268 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
17269 (grub_emu_SOURCES): Change source files.
17270 (pkglib_MODULES): Remove normal.mod.
17271 (normal_SOURCES): Removed.
17272 (normal_mod_CFLAGS): Likewise.
17273 (normal_mod_LDFLAGS): Likewise.
17274 * conf/i386-coreboot.rmk: Likewise.
17275 * conf/i386-efi.rmk: Likewise.
17276 * conf/i386-ieee1276.rmk: Likewise.
17277 * conf/powerpc-ieee1275.rmk: Likewise.
17278 * conf/sparc64-ieee1275.rmk: Likewise.
17279 * conf/x86_64-efi.rmk: Likewise.
17280
17281 * include/grub/command.h (grub_command_execute): New inline function.
17282
17283 * include/grub/menu.h (grub_menu_entry): Removed commands field.
17284
17285 * include/grub/normal.h: Remove <grub/setjmp.h>.
17286 (grub_fs_module_list): Moved to normal/autofs.c.
17287 (grub_exit_env): Removed.
17288 (grub_command_execute): Likewise.
17289 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
17290 parameter script.
17291 (read_command_list): New function declaration.
17292 (read_fs_list): Likewise.
17293
17294 * include/parser.h: Include <grub/reader.h>.
17295 (grub_parser_split_cmdline): Change type of getline parameter.
17296 (grub_parser): New structure.
17297 (grub_parser_class): New variable.
17298 (grub_parser_execute): New function declaration.
17299 (grub_register_rescue_parser): Likewise.
17300 (grub_parser_register): New inline function.
17301 (grub_parser_unregister): Likewise.
17302 (grub_parser_get_current): Likewise.
17303 (grub_parser_set_current): Likewise.
17304
17305 * include/grub/reader.h: New file.
17306 * kern/reader.c: Likewise.
17307 * kern/rescue_parser.c: Likewise.
17308 * kern/rescue_reader.c: Likewise.
17309 * normal/autofs.c: Likewise.
17310 * normal/dyncmd.c: Likewise.
17311
17312 * include/grub/rescue.h: Removed.
17313 * normal/command.h: Likewise.
17314
17315 * include/grub/script.h: Moved to ...
17316 * include/grub/script_sh.h: ... Moved here.
17317 * normal/execute.c: Moved to ...
17318 * script/sh/execute.c: ... Moved here.
17319 * normal/function.c: Moved to ...
17320 * script/sh/function.c: ... Moved here.
17321 * normal/lexer.c: Moved to ...
17322 * script/sh/lexer.c: ... Moved here.
17323 * normal/parser.y: Moved to ...
17324 * script/sh/parser.y: ... Moved here.
17325 * normal/script.c: Moved to ...
17326 * script/sh/script.c: ... Moved here.
17327
17328 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
17329 <grub/reader.h>.
17330 (grub_exit_env): Removed.
17331 (fs_module_list): Moved to normal/autofs.c.
17332 (grub_file_getline): Don't handle comment here.
17333 (free_menu): Skip removed field entry->commands.
17334 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
17335 script parameter.
17336 (read_config_file): Removed nested parameter, change getline function.
17337 (grub_enter_normal_mode): Removed.
17338 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
17339 (read_command_list): Likewise.
17340 (autoload_fs_module): Moved to normal/autofs.c.
17341 (read_fs_list): Likewise.
17342 (reader_nested): New variable.
17343 (grub_normal_execute): Run parser.sh to switch to sh parser.
17344 (grub_cmd_rescue): Removed.
17345 (cmd_normal): Removed.
17346 (grub_cmd_normal): Unregister itself at the beginning. Don't register
17347 rescue command.
17348 (grub_cmdline_run): New function.
17349 (grub_normal_reader_init): Likewise.
17350 (grub_normal_read_line): Likewise.
17351 (grub_env_write_pager): Likewise.
17352 (cmdline): New variable.
17353 (grub_normal_reader): Likewise.
17354 (GRUB_MOD_INIT): Register normal reader and set as current, register
17355 pager hook, register normal command with grub_register_command_prio,
17356 so that it won't show up in command.lst.
17357 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
17358 grub_fs_autoload_hook.
17359
17360 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
17361 (grub_menu_execute_entry): Replace grub_script_execute with
17362 grub_parser_execute, change parameter to grub_command_execute.
17363
17364 * normal/menu_text.c: Remove <grub/script.h>.
17365
17366 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
17367 and <grub/parser.h>.
17368 (run): Change editor_getline to use new parser interface. Change
17369 parameter to grub_command_execute.
17370
17371 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
17372 <grub/reader.h> and <grub/parser.h>.
17373 (grub_load_normal_mode): Execute normal command.
17374 (grub_main): Call grub_register_core_commands,
17375 grub_register_rescue_parser and grub_register_rescue_reader, use
17376 grub_reader_loop to enter input loop.
17377
17378 * kern/parser.c (grub_parser_split_cmdline): Change type of
17379 getline parameter.
17380 (grub_parser_class): New variable.
17381 (grub_parser_execute): New function.
17382
17383 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
17384 * loader/multiboot2.c: Likewise.
17385 * loader/sparc64/ieee1275/linux.c: Likewise.
17386
17387 * util/grub-emu.c (read_command_list): New dummy function.
17388
17389 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
17390
17391 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
17392 count to 16 for CCISS and IDA.
17393
17394 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
17395
17396 * normal/menu_text.c (grub_wait_after_message): Print a newline
17397 after waiting for user input.
17398
17399 * loader/i386/linux.c: Include `<grub/normal.h>'.
17400 (grub_cmd_linux): Improve the error message about `ask' mode, by
17401 waiting for user input so it's not missed (we can do this, since
17402 user requested interaction).
17403
17404 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
17405
17406 Added missing lst to grub-mkrescue
17407
17408 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
17409 and ${input_dir}/parttool.lst
17410
17411 2009-04-30 David S. Miller <davem@davemloft.net>
17412
17413 * util/hostdisk.c (device_is_wholedisk): New function.
17414 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
17415 zero only if device_is_wholedisk() returns true.
17416
17417 * util/hostdisk.c (convert_system_partition_to_system_disk):
17418 Handle virtual disk devices named /dev/vdiskX as found on sparc
17419 and powerpc.
17420
17421 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
17422 lettered partition specifier is found, convert to numbered.
17423
17424 2009-04-29 David S. Miller <davem@davemloft.net>
17425
17426 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
17427 * include/grub/sparc64/ieee1275/memory.h: Likewise.
17428
17429 * normal/command.c: Add missing newline at end of file.
17430
17431 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
17432 warnings.
17433 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
17434 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
17435 grub_ofdisk_read): Likewise, and deal similarly with the fact that
17436 ihandles have a 32-bit type but need to be stored in a "void *".
17437
17438 2009-04-28 Pavel Roskin <proski@gnu.org>
17439
17440 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
17441 not disk. Adjust all dependencies.
17442 (grub_fs_uuid_close): Use grub_device_close(), not
17443 grub_disk_close().
17444
17445 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
17446 parent's partition, don't copy it by reference, as it gets freed
17447 on close.
17448
17449 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
17450
17451 Preboot hooks support
17452
17453 * commands/boot.c (struct grub_preboot_t): new declaration
17454 (preboots_head): new variable
17455 (preboots_tail): likewise
17456 (grub_loader_register_preboot_hook): new function
17457 (grub_loader_unregister_preboot_hook): likewise
17458 (grub_loader_set): launch preboot hooks
17459 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
17460 (grub_loader_register_preboot_hook): new declaration
17461 (grub_loader_unregister_preboot_hook): likewise
17462
17463 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
17464
17465 Warning fix
17466
17467 * disk/scsi.c (grub_scsi_open): added missing cast when
17468 calling grub_dprintf
17469
17470 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
17471
17472 Bug and warning fixes
17473
17474 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
17475 declaration
17476 * commands/test.c (test_parse): fixed bug with file tests and corrected
17477 declaration of find_file
17478
17479 2009-04-26 Pavel Roskin <proski@gnu.org>
17480
17481 * Makefile.in: Don't install empty manual pages if help2man is
17482 missing. Use help2man option for output, not shell redirection.
17483
17484 2009-04-26 David S. Miller <davem@davemloft.net>
17485
17486 * util/grub-mkdevicemap.c (make_device_map): Add missing
17487 NESTED_FUNC_ATTR to process_device().
17488
17489 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17490
17491 Test command
17492
17493 * commands/test.c: rewritten to use bash-like test
17494
17495 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17496
17497 Parttool autoloading and improvements
17498
17499 * Makefile.in (pkglib_DATA): add parttool.lst
17500 (parttool.lst): new target
17501 * genmk.rb: generate parttool-*
17502 (CLEANFILES): add #{parttool}
17503 (PARTTOOLFILES): new variable
17504 * genparttoollist.sh: new file
17505 * parttool/pcpart.c (grub_pcpart_boot): more feedback
17506 (grub_pcpart_type): likewise
17507 * commands/parttool.c (helpmsg): new variable
17508 (grub_cmd_parttool): output help if not enough arguments are supplied
17509 autoload modules
17510 (GRUB_MOD_INIT(parttool)): use helpmsg
17511
17512 2009-04-24 David S. Miller <davem@davemloft.net>
17513
17514 Avoiding opening same device multiple times in device iterator.
17515
17516 * kern/device.c: (grub_device_iterate): Define struct part_ent,
17517 and use it to build a list of partitions in iterate_disk() and
17518 iterate_partition().
17519
17520 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
17521 on disk->data.
17522
17523 * disk/ieee1275/nand.c (grub_nand_iterate): Return
17524 grub_devalias_iterate() result instead of unconditional 0.
17525 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
17526 Also, capture hook return value, either directly or via
17527 grub_children_iterate(), and propagate to caller.
17528 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
17529 grub_children_iterate): Return value is now 'int' instead of
17530 'grub_err_t'.
17531 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
17532 like a proper iterator, stopping when hooks return non-zero.
17533 (grub_devalias_iterate): Likewise.
17534
17535 2009-04-23 David S. Miller <davem@davemloft.net>
17536
17537 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
17538
17539 2009-04-22 David S. Miller <davem@davemloft.net>
17540
17541 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
17542 is larger than address_cells, use that value for address_cells too.
17543
17544 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
17545 IEEE1275_MAX_PATH_LEN): Define.
17546 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
17547 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
17548 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
17549 'devtype'. Explicitly NULL terminate devalias expansion.
17550
17551 * util/sparc64/ieee1275/misc.c: New file.
17552 * util/sparc64/ieee1275/grub-setup.c: New file.
17553 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
17554 * util/sparc64/ieee1275/grub-mkimage.c: New file.
17555 * util/sparc64/ieee1275/grub-install.in: New file.
17556 * util/ieee1275/ofpath.c: New file.
17557 * util/ieee1275/devicemap.c: New file.
17558 * util/devicemap.c: New file.
17559 * util/deviceiter.c: New file.
17560 * kern/sparc64/ieee1275/init.c: New file.
17561 * include/grub/util/ofpath.h: New file.
17562 * include/grub/util/deviceiter.h: New file.
17563 * util/grub-mkdevicemap.c: Include deviceiter.h.
17564 Implement using grub_util_emit_devicemap_entry and
17565 grub_util_iterate_devices.
17566 * conf/i386-corebook.rmk: Build util/deviceiter.c and
17567 util/devicemap.c into grub-mkdevicemap
17568 * conf/i386-efi.rmk: Likewise.
17569 * conf/i386-ieee1275.rmk: Likewise.
17570 * conf/i386-pc.rmk: Likewise.
17571 * conf/powerpc-ieee1275.rmk: Likewise.
17572 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
17573 images and installation utilities. Build kernel as image
17574 instead of as elf binary. Use common rules as much as possible.
17575
17576 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
17577
17578 Correct GPT definition
17579
17580 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
17581 of "attrib" member
17582
17583 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
17584
17585 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
17586
17587 2009-04-19 David S. Miller <davem@davemloft.net>
17588
17589 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
17590 (grub_rescue_cmd_linux): Rename to...
17591 (grub_cmd_linux): and fix prototype.
17592 (grub_rescue_cmd_initrd): Rename to...
17593 (grub_cmd_initrd): and fix prototype.
17594 (cmd_linux, cmd_initrd): New.
17595 (GRUB_MOD_INIT(linux)): Use grub_register_command().
17596 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
17597
17598 2009-04-17 Pavel Roskin <proski@gnu.org>
17599
17600 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
17601 format.
17602 (grub_ohci_transfer): Likewise.
17603
17604 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
17605
17606 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
17607 return without a value. Fix inconsistent indentation.
17608
17609 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
17610 match struct grub_fs.
17611
17612 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
17613 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
17614 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
17615 * commands/lspci.c (grub_lspci_iter): Likewise.
17616
17617 2009-04-16 Bean <bean123ch@gmail.com>
17618
17619 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
17620 value.
17621
17622 2009-04-15 Pavel Roskin <proski@gnu.org>
17623
17624 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
17625 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
17626 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
17627 definitions.
17628
17629 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
17630
17631 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
17632 that no multiple data or metadata areas are supported and `Unknown
17633 metadata header'.
17634
17635 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
17636
17637 Move loader out of the kernel
17638
17639 * kern/loader.c: moved to ...
17640 * commands/boot.c: ... moved here
17641 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
17642 * commands/boot.c (grub_cmd_boot): moved here. All users updated
17643 * include/grub/kernel.h (grub_machine_fini): export
17644 * include/grub/loader.h (grub_loader_is_loaded): update declaration
17645 (grub_loader_set): likewise
17646 (grub_loader_unset): likewise
17647 (grub_loader_boot): likewise
17648 * conf/common.rmk: new module boot.mod
17649 (pkglib_MODULES): add boot.mod
17650 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
17651 (grub_emu_SOURCES): likewise
17652 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
17653 (grub_emu_SOURCES): likewise
17654 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
17655 (grub_emu_SOURCES): likewise
17656 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
17657 (grub_emu_SOURCES): likewise
17658 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
17659 (grub_emu_SOURCES): likewise
17660 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
17661 (grub_emu_SOURCES): likewise
17662 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
17663 (grub_emu_SOURCES): likewise
17664
17665 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
17666
17667 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
17668
17669 * kern/misc.c (grub_itoa): Removed function
17670 (grub_ltoa): likewise
17671 (grub_vsprintf): use grub_lltoa
17672
17673 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
17674
17675 Restore grub-emu
17676
17677 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
17678 * conf/i386-coreboot.rmk: likewise
17679 * conf/i386-ieee1275.rmk: likewise
17680 * conf/powerpc-ieee1275.rmk: likewise
17681
17682 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
17683
17684 * INSTALL: Add that `./autogen.sh' needs to be run before
17685 `./configure.'.
17686
17687 2009-04-14 Bean <bean123ch@gmail.com>
17688
17689 * Makefile.in (pkglib_DATA): Add handler.lst.
17690 (handler.lst): New rule.
17691
17692 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
17693 * conf/i386-coreboot.rmk: Likewise.
17694 * conf/i386-ieee1275.rmk: Likewise.
17695 * conf/i386-efi.rmk: Likewise.
17696 * conf/x86_64-efi.rmk: Likewise.
17697 * conf/powerpc-ieee1275.rmk: Likewise.
17698 * conf/sparc64-ieee1275.rmk: Likewise.
17699
17700 * genhandlerlist.sh: New file.
17701
17702 * genmk.rb: Add rules to generate handler.lst.
17703
17704 * include/grub/normal.h (grub_file_getline): New function definition.
17705 (read_handler_list): Likewise.
17706 (free_handler_list): Likewise.
17707
17708 * include/grub/term.h (grub_term_register_input): Add name parameter
17709 for auto generation of handler.lst.
17710 (grub_term_register_output): Likewise.
17711
17712 * normal/handler.c: New file.
17713
17714 * normal/main.c (get_line): Renamed to grub_file_getline.
17715 (read_config_file): Use the newly renamed grub_file_getline.
17716 (read_command_list): Likewise.
17717 (read_fs_list): Likewise.
17718 (grub_normal_execute): Call read_handler_list to parse handler.lst.
17719 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
17720
17721 * term/efi/console.c (grub_console_init): Add name parameter for auto
17722 generation of handler.lst.
17723 * term/gfxterm.c: Likewise.
17724 * term/i386/pc/at_keyboard.c: Likewise.
17725 * term/i386/pc/console.c: Likewise.
17726 * term/i386/pc/serial.c: Likewise.
17727 * term/i386/pc/vesafb.c: Likewise.
17728 * term/i386/pc/vga.c: Likewise.
17729 * term/i386/pc/vga_text.c: Likewise.
17730 * term/ieee1275/ofconsole.c: Likewise.
17731 * term/usb_keyboard.c: Likewise.
17732
17733 2009-04-14 Bean <bean123ch@gmail.com>
17734
17735 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
17736 properly with null character.
17737
17738 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
17739
17740 * configure: Remove.
17741 * config.h.in: Likewise.
17742 * stamp-h.in: Likewise.
17743 * DISTLIST: Likewise.
17744 * conf/common.mk: Likewise.
17745 * conf/i386-coreboot.mk: Likewise.
17746 * conf/i386-efi.mk: Likewise.
17747 * conf/i386-ieee1275.mk: Likewise.
17748 * conf/i386.mk: Likewise.
17749 * conf/i386-pc.mk: Likewise.
17750 * conf/powerpc-ieee1275.mk: Likewise.
17751 * conf/sparc64-ieee1275.mk: Likewise.
17752 * conf/x86_64-efi.mk: Likewise.
17753
17754 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
17755 develop on GRUB.
17756
17757 2009-04-14 John Stanley <jpsinthemix@verizon.net>
17758 David S. Miller <davem@davemloft.net>
17759
17760 * util/hostdisk.c (make_device_name): Fix buffer length
17761 calculations.
17762
17763 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
17764
17765 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
17766 <sys/param.h> and <sys/sysctl.h>.
17767 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
17768 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
17769 opening the device and reset them afterwards.
17770
17771 2009-04-13 Pavel Roskin <proski@gnu.org>
17772
17773 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
17774 Reported by John Stanley <jpsinthemix@verizon.net>
17775
17776 2009-04-13 Robert Millan <rmh@aybabtu.com>
17777
17778 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
17779 that name for menuentries when appropriate.
17780
17781 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
17782
17783 * util/grub.d/10_freebsd.in: Add a missing `fi'.
17784
17785 2009-04-13 Robert Millan <rmh@aybabtu.com>
17786
17787 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
17788 to Linux, simply abort telling the user it's no longer supported.
17789
17790 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
17791
17792 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
17793 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
17794 `freebsd_loadenv' only when devices.hints exist.
17795
17796 2009-04-13 Pavel Roskin <proski@gnu.org>
17797
17798 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
17799
17800 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
17801
17802 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
17803 partition number.
17804 (grub_drive): Likewise.
17805
17806 2009-04-13 David S. Miller <davem@davemloft.net>
17807
17808 * kern/sparc64/ieee1275/ieee1275.c: New file.
17809 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
17810 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
17811 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
17812 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
17813 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
17814 grub_ieee1275_alloc_physmem): Declare new exported functions.
17815
17816 * include/grub/sparc64/ieee1275/loader.h: New file.
17817 * include/grub/sparc64/ieee1275/memory.h: Likewise.
17818 * include/grub/sparc64/kernel.h: Likewise.
17819 * loader/sparc64/ieee1275/linux.c: Likewise.
17820
17821 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
17822 (grub_fstest_SOURCES): Likewise.
17823
17824 * util/hostdisk.c (make_device_name): Do not make any assumptions
17825 about the length of drive names.
17826
17827 * kern/dl.c (grub_dl_load_file): Close file immediately when
17828 we are done using it.
17829
17830 2009-04-12 David S. Miller <davem@davemloft.net>
17831
17832 * kern/misc.c (grub_ltoa): Fix cast when handling negative
17833 values. Noticed by Pavel Roskin.
17834
17835 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
17836 target compiler.
17837
17838 * genmk.rb: Add more flexible image type specification, also
17839 pass --strip-unneeded to objcopy.
17840 * conf/i386-pc.rmk: Use *_FORMAT.
17841 * conf/i386-pc.mk: Rebuilt.
17842
17843 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
17844 (OFDISK_HASH_SZ): Define.
17845 (ofdisk_hash): New hash table.
17846 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
17847 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
17848 instead of device phandle which is not unique.
17849
17850 * kern/sparc64/ieee1275/init.c: Delete, replace with...
17851 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
17852 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
17853 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
17854 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
17855 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
17856 GRUB_KERNEL_MACHINE_DATA_END): Define.
17857 (grub_kernel_image_size, grub_total_module_size): Declare.
17858
17859 2009-04-12 Pavel Roskin <proski@gnu.org>
17860
17861 * configure.ac: Change the logic when we check for target tools.
17862 Do it when the target is specified and it's different from the
17863 specified value of the host.
17864
17865 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
17866
17867 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
17868 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
17869 GNU/kFreeBSD. Check if a device is a character device. Use
17870 DIOCGMEDIASIZE to get the size.
17871 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
17872 support for GNU/kFreeBSD.
17873 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
17874 is a character device instead of a block device. Add support for
17875 FreeBSD device names.
17876
17877 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
17878 is a character device instead of a block device.
17879
17880 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
17881 is a character device instead of a block device.
17882
17883 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
17884
17885 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
17886 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
17887 FreeBSD. Check if a device is a character device. Use
17888 DIOCGMEDIASIZE to get the size.
17889 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
17890 support for FreeBSD.
17891 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
17892 is a character device instead of a block device. Add support for
17893 FreeBSD device names.
17894
17895 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
17896 a character device instead of a block device.
17897 (grub_util_check_char_device): New function.
17898
17899 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
17900 a character device instead of a block device.
17901
17902 * include/grub/util/getroot.h (grub_util_check_char_device): New
17903 prototype.
17904
17905 2009-04-11 David S. Miller <davem@davemloft.net>
17906
17907 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
17908 static libgcc.
17909 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
17910 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
17911 function, if present.
17912 (__bswapdi2): Likewise.
17913
17914 * include/grub/sparc64/ieee1275/boot.h: New file.
17915 * boot/sparc64/ieee1275/boot.S: Likewise.
17916 * boot/sparc64/ieee1275/diskboot.S: Likewise.
17917
17918 * kern/misc.c (grub_ltoa): New function.
17919 (grub_vsprintf): Use it to format 'long' integers.
17920
17921 2009-04-10 David S. Miller <davem@davemloft.net>
17922
17923 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
17924 slots are of type grub_ieee1275_cell_t.
17925 (grub_nand_read): Likewise.
17926 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
17927 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
17928 macros are used to compare values in arg/ret block of the call.
17929 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
17930 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
17931 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
17932 grub_ieee1275_instance_to_path, grub_ieee1275_write,
17933 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
17934 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
17935 grub_ieee1275_close, grub_ieee1275_set_property,
17936 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
17937 grub_ieee1275_cell_t.
17938 * kern/ieee1275/openfw.c (grub_map): Likewise.
17939 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
17940 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
17941
17942 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
17943 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
17944 (grub_devalias_iterate): Likewise.
17945
17946 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17947
17948 UFS improvements
17949
17950 * fs/ufs.c (INODE_NBLOCKS): new definition
17951 (struct grub_ufs_dirent): added fields for non-BSD dirents
17952 (grub_ufs_get_file_block): fixed double indirect handling
17953 (grub_ufs_lookup_symlink): use more robust way to determine whether
17954 symlink is inline
17955 (grub_ufs_find_file): support for non-BSD dirents
17956 (grub_ufs_dir): support for non-BSD dirents
17957
17958 2009-04-10 Bean <bean123ch@gnail.com>
17959
17960 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
17961 attribute, otherwise the size would be wrong for i386 platform.
17962
17963 * include/grub/pci.h (grub_pci_read_word): New inline function.
17964 (grub_pci_read_byte): Likewise.
17965 (grub_pci_write): Likewise.
17966 (grub_pci_write_word): Likewise.
17967 (grub_pci_write_byte): Likewise.
17968
17969 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
17970
17971 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
17972 (find_framebuf): Scan pci to locate the frame buffer address.
17973
17974 * commands/efi/fixvideo.c: New file.
17975
17976 * commands/efi/loadbios.c: Likewise.
17977
17978 * commands/memrw.c: Likewise.
17979
17980 * util/grub-dumpbios.in: Likewise.
17981
17982 * conf/common.rmk (grub-dumpbios): New utility.
17983 (pkglib_MODULES): New module memrw.mod.
17984 (memrw_mod_SOURCE): New macro.
17985 (memrw_mod_CFLAGS): Likewise.
17986 (memrw_mod_LDFLAGS): Likewise.
17987
17988 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
17989 fixvideo.mod.
17990 (loadbios_mod_SOURCE): New macro.
17991 (loadbios_mod_CFLAGS): Likewise.
17992 (loadbios_mod_LDFLAGS): Likewise.
17993 (fixvideo_mod_SOURCE): Likewise.
17994 (fixvideo_mod_CFLAGS): Likewise.
17995 (fixvideo_mod_LDFLAGS): Likewise.
17996
17997 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
17998 fixvideo.mod.
17999 (loadbios_mod_SOURCE): New macro.
18000 (loadbios_mod_CFLAGS): Likewise.
18001 (loadbios_mod_LDFLAGS): Likewise.
18002 (fixvideo_mod_SOURCE): Likewise.
18003 (fixvideo_mod_CFLAGS): Likewise.
18004 (fixvideo_mod_LDFLAGS): Likewise.
18005
18006 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
18007
18008 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
18009
18010 2009-04-07 David S. Miller <davem@davemloft.net>
18011
18012 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
18013 support for R_SPARC_OLO10 relocations. Fix compile warning for
18014 R_SPARC_WDISP30 case.
18015 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
18016
18017 2009-04-06 Pavel Roskin <proski@gnu.org>
18018
18019 * include/grub/misc.h (ARRAY_SIZE): New macro.
18020 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
18021 New macro.
18022 * loader/i386/linux.c (allocate_pages): Use free_pages().
18023 (grub_linux_unload): Don't use free_pages().
18024 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
18025 wrong index. Treat all other modes as text modes.
18026 (grub_cmd_linux): Initialize vid_mode unconditionally to
18027 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
18028
18029 * commands/help.c (print_command_help): Use cmd->prio, not
18030 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
18031
18032 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
18033
18034 Parttool
18035
18036 * parttool/pcpart.c: new file
18037 * commands/parttool.c: likewise
18038 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
18039 (parttool_mod_SOURCES): new variable
18040 (parttool_mod_CFLAGS): likewise
18041 (parttool_mod_LDFLAGS): likewise
18042 (pcpart_mod_SOURCES): likewise
18043 (pcpart_mod_CFLAGS): likewise
18044 (pcpart_mod_LDFLAGS): likewise
18045 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
18046 and parttool/pcpart.c
18047 * conf/i386-efi.rmk: likewise
18048 * conf/i386-ieee1275.rmk: likewise
18049 * conf/i386-pc.rmk: likewise
18050 * conf/powerpc-ieee1275.rmk: likewise
18051 * conf/sparc64-ieee1275.rmk: likewise
18052 * conf/x86_64-ieee1275.rmk: likewise
18053
18054 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
18055
18056 Support for mtime and further expandability of dir command
18057
18058 * include/grub/lib/datetime.h: moved to ...
18059 * include/grub/datetime.h: ... moved here and added
18060 declaration of grub_unixtime2datetime. All users updated
18061 * include/grub/fs.h: new syntax for dir and mtime functions in
18062 struct grub_fs
18063 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
18064 and GRUB_FSHELP_FLAGS_MASK
18065 * commands/ls.c (grub_ls_list_files): Write mtime in long format
18066 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
18067 (grub_ext2_mtime): new function
18068 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
18069 (grub_hfsplus_mtime): new function
18070 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
18071 (GRUB_UFS_ATTR_FILE): likewise
18072 (GRUB_UFS_ATTR_LNK): likewise
18073 (struct grub_ufs_sblock): new fields mtime
18074 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
18075 all users updated
18076 (grub_ufs_dir): mtime support
18077 (grub_ufs_mtime): new function
18078 * fs/affs.c (grub_affs_dir): use new dir syntax
18079 * fs/afs.c (grub_afs_dir): likewise
18080 * fs/cpio.c (grub_cpio_dir): likewise
18081 * fs/fat.c (grub_fat_find_dir): likewise
18082 * fs/hfs.c (grub_hfs_dir): likewise
18083 * fs/iso9660.c (grub_iso9660_dir): likewise
18084 * fs/jfs.c (grub_jfs_dir): likewise
18085 * fs/minix.c (grub_minix_dir): likewise
18086 * fs/ntfs.c (grub_ntfs_dir): likewise
18087 * fs/reiserfs.c (grub_reiserfs_dir): likewise
18088 * fs/sfs.c (grub_sfs_dir): likewise
18089 * fs/xfs.c (grub_xfs_dir): likewise
18090 * util/hostfs.c (grub_hostfs_dir): likewise
18091 * lib/datetime.c: moved to ...
18092 * normal/datetime.c: ... moved here
18093 (grub_unixtime2datetime): new function
18094 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
18095 * normal/completion.c (iterate_dir): use new dir syntax
18096 * normal/misc.c (grub_normal_print_device_info): tell the
18097 last modification time of a volume
18098 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
18099 * conf/common.rmk: added lib/datetime.c to ls.mod
18100 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
18101 (normal_mod_SOURCES): likewise
18102 (datetime_mod_SOURCES): Removed lib/datetime.c
18103 * conf/i386-efi.rmk: likewise
18104 * conf/i386-ieee1275.rmk: likewise
18105 * conf/i386-pc.rmk: likewise
18106 * conf/powerpc-ieee1275.rmk: likewise
18107 * conf/sparc64-ieee1275.rmk: likewise
18108 * conf/x86_64-efi.rmk: likewise
18109
18110 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
18111
18112 Trim trailing spaces in FAT label and support mtools-like labels
18113
18114 * fs/fat.c (grub_fat_iterate_dir): New function based
18115 on grub_fat_find_dir
18116 (grub_fat_find_dir): use grub_fat_iterate_dir
18117 (grub_fat_label): likewise
18118
18119 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
18120
18121 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
18122 and command.h
18123 remove extraneous kernel_elf_HEADERS
18124
18125 2009-04-04 Bean <bean123ch@gnail.com>
18126
18127 * include/grub/util/misc.h: Add dummy function fsync for mingw.
18128
18129 * util/misc.c: Likewise.
18130
18131 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
18132
18133 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
18134 instead of grub_printf.
18135
18136 2009-04-03 Robert Millan <rmh@aybabtu.com>
18137
18138 * loader/i386/linux.c (grub_linux_setup_video): Fill
18139 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
18140 values from `mode info' structure instead of hardcoded
18141 values.
18142
18143 2009-04-01 Pavel Roskin <proski@gnu.org>
18144
18145 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
18146 unused now.
18147 * genmk.rb: Likewise.
18148 * configure.ac: Likewise.
18149
18150 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
18151
18152 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
18153 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
18154
18155 2009-04-01 David S. Miller <davem@davemloft.net>
18156
18157 * normal/sparc64/setjmp.S: Fix setjmp implementation.
18158 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
18159 (grub_setjmp): Mark with 'returns_twice' attribute.
18160 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
18161 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
18162 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
18163
18164 2009-04-01 Robert Millan <rmh@aybabtu.com>
18165
18166 Reapply fix from 2008-07-28 which was accidentally reverted; also
18167 perform the same fix to a similar check in same function.
18168
18169 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
18170 with the same number are found, just use issue a warning with
18171 grub_dprintf(), as this error has been reported to be non-fatal.
18172
18173 2009-03-31 Pavel Roskin <proski@gnu.org>
18174
18175 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
18176 for cross-compilation.
18177
18178 2009-03-30 Robert Millan <rmh@aybabtu.com>
18179
18180 Fix i386-ieee1275 build.
18181
18182 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
18183 Remove declaration.
18184
18185 2009-03-30 Pavel Roskin <proski@gnu.org>
18186
18187 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
18188 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
18189 zero-terminated, rely only on the strlen value. Fix comparison
18190 of strings differing in length.
18191
18192 2009-03-30 Robert Millan <rmh@aybabtu.com>
18193
18194 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
18195 checking for abi version. Improve error messages on BIOS to notify
18196 user about `linux16' command.
18197
18198 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
18199
18200 Leak fixes
18201
18202 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
18203 in case of collision
18204 * disk/scsi.c (grub_scsi_open): free scsi in case of error
18205
18206 2009-03-29 Robert Millan <rmh@aybabtu.com>
18207
18208 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
18209 set `vid_mode' accordingly.
18210 (grub_linux_boot): Process `vid_mode' and set video mode.
18211
18212 2009-03-29 Robert Millan <rmh@aybabtu.com>
18213
18214 * util/grub.d/10_linux.in (linux_entry): New function.
18215 Factorize generation of Linux boot entries.
18216
18217 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
18218
18219 Make the format of Environment Block plain text. The boot loader
18220 part is not tested well yet.
18221
18222 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
18223 (buffer): Removed.
18224 (envblk): Likewise.
18225 (usage): Remove "info" and "clear". Add "unset". Update the
18226 description of "set", as this does not delete variables any
18227 longer.
18228 (create_envblk_file): Complete rewrite.
18229 (open_envblk_file): Likewise.
18230 (cmd_info): Removed.
18231 (cmd_list): Likewise.
18232 (cmd_set): Likewise.
18233 (cmd_clear): Likewise.
18234 (list_variables): New function.
18235 (write_envblk): Likewise.
18236 (set_variables): Likewise.
18237 (unset_variables): Likewise.
18238 (main): Complete rewrite.
18239
18240 * commands/loadenv.c (buffer): Removed.
18241 (envblk): Likewise.
18242 (open_envblk_file): New function.
18243 (read_envblk_file): Complete rewrite.
18244 (grub_cmd_load_env): Likewise.
18245 (grub_cmd_list_env): Likewise.
18246 (struct blocklist): New struct.
18247 (free_blocklists): New function.
18248 (check_blocklists): Likewise.
18249 (write_blocklists): Likewise.
18250 (grub_cmd_save_env): Complete rewrite.
18251
18252 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
18253 a plain text signature.
18254 (GRUB_ENVBLK_MAXLEN): Removed.
18255 (struct grub_envblk): Complete rewrite.
18256 (grub_envblk_find): Removed.
18257 (grub_envblk_insert): Likewise.
18258 (grub_envblk_open): New prototype.
18259 (grub_envblk_set): Likewise.
18260 (grub_envblk_delete): Put const to VALUE.
18261 (grub_envblk_iterate): Put const to NAME and VALUE.
18262 (grub_envblk_close): New prototype.
18263 (grub_envblk_buffer): New inline function.
18264 (grub_envblk_size): Likewise.
18265
18266 * lib/envblk.c: Include grub/mm.h.
18267 (grub_env_find): Removed.
18268 (grub_envblk_open): New function.
18269 (grub_envblk_close): Likewise.
18270 (escaped_value_len): Likewise.
18271 (find_next_line): Likewise.
18272 (grub_envblk_insert): Removed.
18273 (grub_envblk_set): New function.
18274 (grub_envblk_delete): Complete rewrite.
18275 (grub_envblk_iterate): Likewise.
18276
18277 2009-03-28 Robert Millan <rmh@aybabtu.com>
18278
18279 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
18280 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
18281 variables. Use 16-bit loader.
18282 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
18283 loader.
18284 * kern/i386/loader.S (grub_linux_boot): Rename to ...
18285 (grub_linux16_boot): ... this. Update all users.
18286 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
18287 (grub_linux_boot): ... this. Update all users.
18288
18289 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
18290 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
18291 commands to `linux16' and `initrd16'.
18292 (GRUB_MOD_FINI(linux)): Rename to ...
18293 (GRUB_MOD_FINI(linux16)): ... this.
18294
18295 2009-03-24 Pavel Roskin <proski@gnu.org>
18296
18297 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
18298 not just for compilation.
18299
18300 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
18301
18302 Move multiboot helper out of kernel
18303
18304 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
18305 `loader/i386/multiboot_helper.S'.
18306 * conf/i386-coreboot.rmk: Likewise
18307 * conf/i386-ieee1275.rmk: Likewise
18308
18309 * kern/i386/loader.S: Move multiboot helpers from here...
18310 * loader/i386/multiboot_helper.S: ...moved here
18311 * include/grub/i386/loader.h: Move declarations of multiboot
18312 helpers from here...
18313 * include/grub/i386/multiboot.h: ...moved here
18314 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
18315
18316 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
18317
18318 * kern/env.c (grub_env_context_open): Added an argument to specify
18319 whether a new context inherits exported variables from current
18320 one. This is useful when making a sandbox to interpret a config
18321 file.
18322 All callers updated.
18323
18324 * include/grub/env.h (grub_env_context_open): Updated the prototype.
18325
18326 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
18327
18328 * kern/env.c (grub_env_context_close): Fix memory leaks.
18329
18330 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
18331
18332 * normal/main.c (grub_normal_execute): Added an argument
18333 BATCH to specify if an interactive interface should be provided
18334 after reading a config file.
18335 All callers updated.
18336 (read_command_list): Prevent being executed twice.
18337 (read_fs_list): Likewise.
18338
18339 * include/grub/normal.h (grub_normal_execute): Updated the
18340 prototype.
18341
18342 2009-03-22 Pavel Roskin <proski@gno.org>
18343
18344 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
18345 _start.
18346 * kern/i386/pc/startup.S: Likewise.
18347 * kern/i386/efi/startup.S: Likewise.
18348 * kern/i386/ieee1275/startup.S: Likewise.
18349 * kern/i386/coreboot/startup.S: Likewise.
18350 * kern/x86_64/efi/startup.S: Likewise.
18351
18352 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
18353 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
18354 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
18355
18356 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
18357
18358 Bugfixes in multiboot for bugs uncovered by solaris kernel.
18359
18360 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
18361 limit detection.
18362 Use vaddr of correct segment for entry_point.
18363
18364 2009-03-21 Bean <bean123ch@gmail.com>
18365
18366 * commands/blocklist.c: Add include file <grub/command.h>, remove
18367 <grub/normal.h> and <grub/arg.h>.
18368 (grub_cmd_blocklist): Use the new command interface.
18369 (GRUB_MOD_INIT): Likewise.
18370 (GRUB_MOD_FINI): Likewise.
18371 * commands/boot.c: Likewise.
18372 * commands/cat.c: Likewise.
18373 * commands/cmp.c: Likewise.
18374 * commands/configfile.c: Likewise.
18375 * commands/crc.c: Likewise.
18376 * commands/echo.c: Likewise.
18377 * commands/halt.c: Likewise.
18378 * commands/handler.c: Likewise.
18379 * commands/hdparm.c: Likewise.
18380 * commands/help.c: Likewise.
18381 * commands/hexdump.c: Likewise.
18382 * commands/loadenv.c: Likewise.
18383 * commands/ls.c: Likewise.
18384 * commands/lsmmap.c: Likewise.
18385 * commands/lspci.c: Likewise.
18386 * commands/loadenv.c: Likewise.
18387 * commands/read.c: Likewise.
18388 * commands/reboot.c: Likewise.
18389 * commands/search.c: Likewise.
18390 * commands/sleep.c: Likewise.
18391 * commands/test.c: Likewise.
18392 * commands/usbtest.c: Likewise.
18393 * commands/videotest.c: Likewise.
18394 * commands/i386/cpuid.c: Likewise.
18395 * commands/i386/pc/halt.c: Likewise.
18396 * commands/i386/pc/play.c: Likewise.
18397 * commands/i386/pc/pxecmd.c: Likewise.
18398 * commands/i386/pc/vbeinfo.c: Likewise.
18399 * commands/i386/pc/vbetest.c: Likewise.
18400 * commands/ieee1275/suspend.c: Likewise.
18401 * disk/loopback.c: Likewise.
18402 * font/font_cmd.c: Likewise.
18403 * hello/hello.c: Likewise.
18404 * loader/efi/appleloader.c: Likewise.
18405 * loader/efi/chainloader.c: Likewise.
18406 * loader/i386/bsd.c: Likewise.
18407 * loader/i386/efi/linux.c: Likewise.
18408 * loader/i386/ieee1275/linux.c: Likewise.
18409 * loader/i386/linux.c: Likewise.
18410 * loader/i386/pc/chainloader.c: Likewise.
18411 * loader/i386/pc/linux.c: Likewise.
18412 * loader/powerpc/ieee1275/linux.c: Likewise.
18413 * loader/multiboot_loader.c: Likewise.
18414 * term/gfxterm.c: Likewise.
18415 * term/i386/pc/serial.c: Likewise.
18416 * term/terminfo.c: Likewise.
18417
18418 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
18419 * term/i386/pc/vga.c: Likewise.
18420 * video/readers/jpeg.c: Likewise.
18421 * video/readers/png.c: Likewise.
18422 * video/readers/tga.c: Likewise.
18423
18424 * util/grub-fstest (cmd_loopback): Removed.
18425 (cmd_blocklist): Likewise.
18426 (cmd_ls): Likewise.
18427 (grub_register_command): Likewise.
18428 (grub_unregister_command): Likewise.
18429 (execute_command): Use grub_command_find to locate command and execute
18430 it.
18431
18432 * include/grub/efi/chainloader.h: Removed.
18433 * loader/efi/chainloader_normal.c: Likewise.
18434 * loader/i386/bsd_normal.c: Likewise.
18435 * loader/i386/pc/chainloader_normal.c: Likewise.
18436 * loader/i386/pc/multiboot_normal.c: Likewise.
18437 * loader/linux_normal.c: Likewise.
18438 * loader/multiboot_loader_normal.c: Likewise.
18439 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
18440
18441 * gencmdlist.sh: Scan new registration command grub_register_extcmd
18442 and grub_register_command_p1.
18443
18444 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
18445 kern/command.c, lib/arg.c and commands/extcmd.c.
18446 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
18447 (minicmd_mod_SOURCES): New variable.
18448 (minicmd_mod_CFLAGS): Likewise.
18449 (minicmd_mod_LDFLAGS): Likewise.
18450 (extcmd_mod_SOURCES): Likewise.
18451 (extcmd_mod_CFLAGS): Likewise.
18452 (extcmd_mod_LDFLAGS): Likewise.
18453 (boot_mod_SOURCES): Removed.
18454 (boot_mod_CFLAGS): Likewise.
18455 (boot_mod_LDFLAGS): Likewise.
18456
18457 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
18458 kern/corecmd.c.
18459 (kernel_img_HEADERS): Add command.h.
18460 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
18461 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
18462 and lib/arg.c.
18463 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
18464 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
18465 remove the corresponding normal mode command.
18466 (normal_mod_SOURCES): Remove normal/arg.c.
18467 * conf/i386-coreboot.rmk: Likewise.
18468 * conf/i386-efi.rmk: Likewise.
18469 * conf/i386-ieee1275.rmk: Likewise.
18470 * conf/powerpc-ieee1275.rmk: Likewise.
18471 * conf/x86_64-efi.rmk: Likewise.
18472
18473 * include/grub/arg.h: Move from here ...
18474 * include/grub/lib/arg.h: ... to here.
18475
18476 * normal/arg.c: Move from here ...
18477 * lib/arg.c: ... to here.
18478
18479 * commands/extcmd.c: New file.
18480 * commands/minicmd.c: Likewise.
18481 * include/grub/command.h: Likewise.
18482 * include/grub/extcmd.h: Likewise.
18483 * kern/command.c: Likewise.
18484 * kern/corecmd.c: Likewise.
18485
18486 * kern/list.c (grub_list_iterate): Return int instead of void.
18487 (grub_list_insert): New function.
18488 (grub_prio_list_insert): Likewise.
18489
18490 * kern/rescue.c (grub_rescue_command): Removed.
18491 (grub_rescue_command_list): Likewise.
18492 (grub_rescue_register_command): Likewise.
18493 (grub_rescue_unregister_command): Likewise.
18494 (grub_rescue_cmd_boot): Move to minicmd.c
18495 (grub_rescue_cmd_help): Likewise.
18496 (grub_rescue_cmd_info): Likewise.
18497 (grub_rescue_cmd_boot): Likewise.
18498 (grub_rescue_cmd_testload): Likewise.
18499 (grub_rescue_cmd_dump): Likewise.
18500 (grub_rescue_cmd_rmmod): Likewise.
18501 (grub_rescue_cmd_lsmod): Likewise.
18502 (grub_rescue_cmd_exit): Likewise.
18503 (grub_rescue_print_devices): Moved to corecmd.c.
18504 (grub_rescue_print_files): Likewise.
18505 (grub_rescue_cmd_ls): Likewise.
18506 (grub_rescue_cmd_insmod): Likewise.
18507 (grub_rescue_cmd_set): Likewise.
18508 (grub_rescue_cmd_unset): Likewise.
18509 (attempt_normal_mode): Use grub_command_find to get normal module.
18510 (grub_enter_rescue_mode): Use grub_register_core_commands to register
18511 commands, remove grub_rescue_register_command calls.
18512
18513 * normal/command.c (grub_register_command): Removed.
18514 (grub_unregister_command): Likewise.
18515 (grub_command_find): Likewise.
18516 (grub_iterate_commands): Likewise.
18517 (rescue_command): Likewise.
18518 (export_command): Moved to corecmd.c.
18519 (set_command): Removed.
18520 (unset_command): Likewise.
18521 (insmod_command): Likewise.
18522 (rmmod_command): Likewise.
18523 (lsmod_command): Likewise.
18524 (grub_command_init): Likewise.
18525
18526 * normal/completion.c (iterate_command): Use cmd->prio to check for
18527 active command.
18528 (complete_arguments): Use grub_extcmd_t structure to find options.
18529 (grub_normal_do_completion): Change function grub_iterate_commands to
18530 grub_command_iterate.
18531
18532 * normal/execute.c (grub_script_execute_cmd): No need to parse
18533 argument here.
18534
18535 * normal/main.c (grub_dyncmd_dispatcher): New function.
18536 (read_command_list): Register unload commands as dyncmd.
18537 (grub_cmd_normal): Use new command interface, register rescue,
18538 unregister normal at entry, register normal, unregister rescue at exit.
18539
18540 * include/grub/list.h (grub_list_test_t): New type.
18541 (grub_list_iterate): Return int instead of void.
18542 (grub_list_insert): New function.
18543 (GRUB_AS_NAMED_LIST_P): New macro.
18544 (GRUB_AS_PRIO_LIST): Likewise.
18545 (GRUB_AS_PRIO_LIST_P): Likewise.
18546 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
18547 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
18548 (grub_prio_list): New structure.
18549 (grub_prio_list_insert): New function.
18550 (grub_prio_list_remove): New inline function.
18551
18552 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
18553 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
18554 (GRUB_COMMAND_FLAG_MENU): Likewise.
18555 (GRUB_COMMAND_FLAG_BOTH): Likewise.
18556 (GRUB_COMMAND_FLAG_TITLE): Likewise.
18557 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
18558 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
18559 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
18560 (grub_command): Likewise.
18561 (grub_register_command): Likewise.
18562 (grub_command_find): Likewise.
18563 (grub_iterate_commands): Likewise.
18564 (grub_command_init): Likewise.
18565 (grub_arg_parse): Likewise.
18566 (grub_arg_show_help): Likewise.
18567
18568 * include/grub/rescue.h (grub_rescue_register_command): Removed.
18569 (grub_rescue_unregister_command): Likewise.
18570
18571 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
18572 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
18573 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
18574
18575 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
18576 grub_rescue_cmd_initrd.
18577 * include/grub/i386/loader.h: Likewise.
18578 * include/grub/x86_64/loader.h: Likewise.
18579
18580 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
18581
18582 2009-03-21 Bean <bean123ch@gmail.com>
18583
18584 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
18585 instead of stat in mingw environment.
18586
18587 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
18588
18589 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
18590
18591 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
18592 AC_CONFIG_LINKS.
18593
18594 2009-03-21 Bean <bean123ch@gmail.com>
18595
18596 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
18597 out of range error.
18598
18599 2009-03-18 Michel Dänzer <michel@daenzer.net>
18600
18601 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
18602 checking inode flags for EXT4_EXTENTS_FLAG.
18603
18604 2009-03-18 Robert Millan <rmh@aybabtu.com>
18605
18606 * loader/i386/linux.c: Include `<grub/video.h>' and
18607 `<grub/i386/pc/vbe.h>'..
18608 (grub_linux_setup_video): New function. Loosely based on the EFI one.
18609 (grub_linux32_boot): Attempt to configure video settings with
18610 grub_linux_setup_video().
18611 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
18612 to avoid grub_console_fini() which would step out of graphical mode
18613 unconditionally.
18614
18615 2009-03-14 Robert Millan <rmh@aybabtu.com>
18616
18617 Fix build on powerpc.
18618 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
18619
18620 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
18621
18622 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
18623 background image command.
18624
18625 2009-03-12 Colin D Bennett <colin@gibibit.com>
18626
18627 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
18628 (grub_gfxterm_putchar): Extract pairs of identical calls to
18629 draw_cursor out of conditional blocks.
18630
18631 2009-03-11 Pavel Roskin <proski@gnu.org>
18632
18633 * fs/hfs.c (grub_hfs_strncasecmp): New function.
18634 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
18635
18636 2009-03-11 Robert Millan <rmh@aybabtu.com>
18637
18638 * loader/i386/multiboot_elfxx.c
18639 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
18640
18641 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
18642
18643 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
18644 `kern/handler.c'.
18645
18646 2009-03-11 Robert Millan <rmh@aybabtu.com>
18647
18648 * loader/i386/multiboot.c (code_size): New variable.
18649 (grub_multiboot): Define offsets by adding to `code_size' rather
18650 than subtracting from `grub_multiboot_payload_size'. Provide
18651 4-byte alignment to MBI and others by increasing
18652 `boot_loader_name_length' appropriately.
18653
18654 * loader/i386/multiboot_elfxx.c
18655 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
18656
18657 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
18658
18659 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
18660 `fs/ext2.c'.
18661
18662 2009-03-08 Robert Millan <rmh@aybabtu.com>
18663
18664 Make loader/i386/linux.c usable on i386-pc again.
18665
18666 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
18667 memory to heap.
18668 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
18669 `#error' stanza.
18670
18671 2009-03-07 Bean <bean123ch@gmail.com>
18672
18673 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
18674 allocation.
18675
18676 2009-03-06 Robert Millan <rmh@aybabtu.com>
18677
18678 Fix display issue on terminals with screen size other than 80x25
18679 (e.g. gfxterm with resolution higher than 640x480).
18680
18681 * normal/main.c (grub_normal_init_page): Display title text in a
18682 position relative to the center of the terminal instead of relying
18683 on a hardcoded offset.
18684
18685 2009-03-04 Robert Millan <rmh@aybabtu.com>
18686
18687 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
18688 installed.
18689
18690 * Makefile.in (host_kernel): New variable.
18691 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
18692 scripts instead of just the windows one.
18693 * configure.ac: Initialize and AC_SUBST `host_kernel'.
18694
18695 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
18696
18697 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
18698 `kern/handler.c'.
18699 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
18700 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18701 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
18702 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18703 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18704 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18705
18706 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
18707
18708 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
18709 or if there's no space for the disk label and print the partition number on a
18710 invalid magic.
18711
18712 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
18713
18714 * util/misc.c: Include <time.h>.
18715 (grub_millisleep): New function.
18716
18717 2009-03-04 Bean <bean123ch@gmail.com>
18718
18719 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
18720 another option -mno-red-zone.
18721
18722 * commands/handler.c: Change module description.
18723
18724 * kern/handler.c: Add missing space at the end of description line.
18725
18726 * kern/list.c: Likewise.
18727
18728 2009-03-03 Robert Millan <rmh@aybabtu.com>
18729
18730 Move more components to the relocation area, and fix mbi pointer
18731 handling to use the destination rather than the origin (thanks to
18732 Vladimir Serbinenko for spotting).
18733
18734 * loader/i386/multiboot.c (mbi_dest): New variable.
18735 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
18736 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
18737 relocation area.
18738
18739 2009-03-01 Bean <bean123ch@gmail.com>
18740
18741 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
18742 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
18743 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
18744 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
18745
18746 * loader/i386/efi/linux.c (acpi_guid): New variable.
18747 (acpi_guid): Likewise.
18748 (EBDA_SEG_ADDR): New constant.
18749 (LOW_MEM_ADDR): Likewise.
18750 (FAKE_EBDA_SEG): Likewise.
18751 (fake_bios_data): New function.
18752 (grub_linux_boot): Call fake_bios_data.
18753
18754 2009-03-01 Bean <bean123ch@gmail.com>
18755
18756 * commands/terminal.c: Removed.
18757
18758 * commands/handler.c: New file.
18759
18760 * include/grub/list.h: Likewise.
18761
18762 * include/grub/handler.h: Likewise.
18763
18764 * kern/list.c: Likewise.
18765
18766 * kern/handler.c: Likewise.
18767
18768 * kern/term.h: Include header file <grub/handler.h>.
18769 (grub_term_input): Move next field to the beginning.
18770 (grub_term_output): Likewise.
18771 (grub_term_input_class): New variable.
18772 (grub_term_output_class): Likewise.
18773 (grub_term_register_input): Changed to inline function.
18774 (grub_term_register_output): Likewise.
18775 (grub_term_unregister_input): Likewise.
18776 (grub_term_unregister_output): Likewise.
18777 (grub_term_set_current_input): Likewise.
18778 (grub_term_set_current_output): Likewise.
18779 (grub_term_get_current_input): Likewise.
18780 (grub_term_get_current_output): Likewise.
18781 (grub_term_iterate_input): Removed.
18782 (grub_term_iterate_output): Likewise.
18783
18784 * kern/term.c (grub_term_list_input): Removed.
18785 (grub_term_list_output): Likewise.
18786 (grub_term_input_class): New variable.
18787 (grub_term_output_class): Likewise.
18788 (grub_cur_term_input): Change variable as macro.
18789 (grub_cur_term_output): Likewise.
18790 (grub_term_register_input): Removed.
18791 (grub_term_register_output): Likewise.
18792 (grub_term_unregister_input): Likewise.
18793 (grub_term_unregister_output): Likewise.
18794 (grub_term_set_current_input): Likewise.
18795 (grub_term_set_current_output): Likewise.
18796 (grub_term_iterate_input): Likewise.
18797 (grub_term_iterate_output): Likewise.
18798 (grub_term_get_current_input): Likewise.
18799 (grub_term_get_current_output): Likewise.
18800
18801 * util/grub-editenv.c: Include header file <grub/handler.h>.
18802 (grub_term_get_current_input): Removed.
18803 (grub_term_get_current_output): Likewise.
18804 (grub_term_input_class): New variable.
18805 (grub_term_output_class): Likewise.
18806
18807 * util/grub-fstest.c (grub_term_get_current_input): Removed.
18808 (grub_term_get_current_output): Likewise.
18809 (grub_term_input_class): New variable.
18810 (grub_term_output_class): Likewise.
18811
18812 * util/grub-probe.c (grub_term_get_current_input): Removed.
18813 (grub_term_get_current_output): Likewise.
18814 (grub_term_input_class): New variable.
18815 (grub_term_output_class): Likewise.
18816
18817 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
18818 (grub_term_get_current_output): Likewise.
18819 (grub_term_input_class): New variable.
18820 (grub_term_output_class): Likewise.
18821
18822 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
18823 (terminal_mod_SOURCES): Likewise.
18824 (terminal_mod_CFLAGS): Likewise.
18825 (terminal_mod_LDFLAGS): Likewise.
18826
18827 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
18828 handler.c.
18829 (kernel_img_SOURCES): Add list.c and handler.c.
18830 (kernel_img_HEADERS): Add list.h and handler.h.
18831
18832 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
18833 handler.c.
18834 (kernel_mod_SOURCES): Add list.c and handler.c.
18835 (kernel_mod_HEADERS): Add list.h and handler.h.
18836
18837 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
18838 handler.c.
18839 (kernel_elf_SOURCES): Add list.c and handler.c.
18840 (kernel_elf_HEADERS): Add list.h and handler.h.
18841
18842 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
18843 handler.c.
18844 (kernel_elf_SOURCES): Add list.c and handler.c.
18845 (kernel_elf_HEADERS): Add list.h and handler.h.
18846
18847 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
18848 handler.c.
18849 (kernel_mod_SOURCES): Add list.c and handler.c.
18850 (kernel_mod_HEADERS): Add list.h and handler.h.
18851
18852 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
18853 handler.c.
18854 (kernel_elf_SOURCES): Add list.c and handler.c.
18855 (kernel_elf_HEADERS): Add list.h and handler.h.
18856
18857 2009-02-27 Robert Millan <rmh@aybabtu.com>
18858
18859 Factorize elf32 / elf64 code in Multiboot loader. This will
18860 prevent it from getting out of sync again.
18861
18862 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
18863 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
18864 grub_multiboot_load_elf64): Move from here ...
18865 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
18866 grub_multiboot_load_elf): ... to here (new file).
18867
18868 2009-02-27 Robert Millan <rmh@aybabtu.com>
18869
18870 * util/grub.d/10_linux.in: Rename "single-user mode" to
18871 "recovery mode".
18872
18873 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
18874
18875 Don't leak in SCSI code.
18876 * disk/scsi.c (grub_scsi_close): free `scsi'.
18877
18878 2009-02-27 Robert Millan <rmh@aybabtu.com>
18879
18880 * loader/i386/pc/multiboot.c: Move from here ...
18881 * loader/i386/multiboot.c: ... to here. Update all users.
18882
18883 2009-02-27 Robert Millan <rmh@aybabtu.com>
18884
18885 Patch from Alexandre Bique <bique.alexandre@gmail.com>
18886 * util/i386/pc/grub-setup.c (setup): Fix directory path.
18887
18888 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
18889
18890 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
18891 b-tree.
18892
18893 2009-02-27 Robert Millan <rmh@aybabtu.com>
18894
18895 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
18896 `0x' qualifier as 0 when base is specified as parameter).
18897
18898 2009-02-24 Bean <bean123ch@gmail.com>
18899
18900 * configure.ac: Check for -mcmodel=large in x86_64 target.
18901
18902 * include/grub/efi/api.h (efi_call_10): New macro.
18903 (efi_wrap_10): New function.
18904
18905 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
18906 (GRUB_PE32_REL_BASED_HIGH): Likewise.
18907 (GRUB_PE32_REL_BASED_LOW): Likewise.
18908 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
18909 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
18910 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
18911 (GRUB_PE32_REL_BASED_SECTION): Likewise.
18912 (GRUB_PE32_REL_BASED_REL): Likewise.
18913 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
18914 (GRUB_PE32_REL_BASED_DIR64): Likewise.
18915 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
18916
18917 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
18918 issue.
18919
18920 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
18921 (efi_wrap_10): New function.
18922
18923 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
18924
18925 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
18926 MB/MBP model (NV chipset).
18927 (devdata_devs): Add devpath_5 to the list.
18928
18929 * load/i386/efi/linux.c (video_base): Remove variable.
18930 (RGB_MASK): New macro.
18931 (RGB_MAGIC): Likewise.
18932 (LINE_MIN): Likewise.
18933 (LINE_MAX): Likewise.
18934 (FBTEST_STEP): Likewise.
18935 (FBTEST_COUNT): Likewise.
18936 (fb_list): New variable.
18937 (grub_find_video_card): Remove function.
18938 (find_framebuf): New function.
18939 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
18940 line length.
18941
18942 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
18943 problem for x86_64.
18944
18945 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
18946
18947 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
18948
18949 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
18950 coding tool name.
18951
18952 2009-02-22 Robert Millan <rmh@aybabtu.com>
18953
18954 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
18955 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
18956 in our relocation, instead of using it directly from heap. Also
18957 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
18958
18959 2009-02-21 Robert Millan <rmh@aybabtu.com>
18960
18961 Implement USB keyboard support (based on patch by Marco Gerards)
18962
18963 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
18964 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
18965 (usb_keyboard_mod_LDFLAGS): New variables.
18966
18967 * term/usb_keyboard.c: New file.
18968
18969 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
18970
18971 Corrected wrong declaration
18972
18973 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
18974
18975 2009-02-14 Christian Franke <franke@computer.org>
18976
18977 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
18978 (grub_lspci_iter): Print class code and programming interface byte.
18979
18980 2009-02-14 Christian Franke <franke@computer.org>
18981
18982 * gendistlist.sh: Ignore `.svn' directories.
18983
18984 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
18985
18986 * fs/fat.c: Add 2009 to Copyright line.
18987
18988 2009-02-14 Christian Franke <franke@computer.org>
18989
18990 * commands/hdparm.c: New file. Provides `hdparm' command
18991 which sends ATA commands via grub_disk_ata_pass_through ().
18992
18993 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
18994
18995 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
18996 and <grub/cpu/io.h> to include/grub/ata.h.
18997 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
18998 (GRUB_CDROM_SECTOR_SIZE): Remove.
18999 (GRUB_ATA_*): Move to include/grub/ata.h.
19000 (GRUB_ATAPI_*): Likewise.
19001 (enum grub_ata_commands): Likewise.
19002 (enum grub_ata_timeout_milliseconds): Likewise.
19003 (struct grub_ata_device): Likewise.
19004 (grub_ata_regset): Likewise.
19005 (grub_ata_regget): Likewise.
19006 (grub_ata_regset2): Likewise.
19007 (grub_ata_regget2): Likewise.
19008 (grub_ata_check_ready): Likewise.
19009 (grub_ata_wait_not_busy): Remove static, exported in
19010 include/grub/ata.h.
19011 (grub_ata_wait_drq): Likewise.
19012 (grub_ata_pio_read): Likewise.
19013
19014 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
19015 function for hdparm.mod.
19016
19017 * include/grub/ata.h: New file, contains declarations from
19018 disk/ata.c.
19019 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
19020
19021 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
19022 (grub_disk_ata_pass_through): New exported variable.
19023
19024 * kern/disk.c (grub_disk_ata_pass_through): New variable.
19025
19026 2009-02-13 Colin D Bennett <colin@gibibit.com>
19027
19028 Support multiple fallback entries, and provide an API to support
19029 executing default+fallback menu entries. Renamed the `terminal' menu
19030 viewer to `text'.
19031
19032 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
19033 variable declaration.
19034 (grub_menu_execute_callback): New structure declaration.
19035 (grub_menu_execute_callback_t): New typedef.
19036 (grub_menu_execute_with_fallback): New function declaration.
19037 (grub_menu_get_entry): Likewise.
19038 (grub_menu_get_timeout): Likewise.
19039 (grub_menu_set_timeout): Likewise.
19040
19041 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
19042
19043 * normal/menu.c (grub_wait_after_message): Moved to
19044 `normal/menu_text.c'.
19045 (draw_border): Likewise.
19046 (print_message): Likewise.
19047 (print_entry): Likewise.
19048 (print_entries): Likewise.
19049 (grub_menu_init_page): Likewise.
19050 (get_entry_number): Likewise.
19051 (print_timeout): Likewise.
19052 (run_menu): Likewise.
19053 (grub_menu_execute_entry): Likewise.
19054 (show_text_menu): Likewise.
19055 (get_and_remove_first_entry_number): New function.
19056 (grub_menu_execute_with_fallback): Likewise.
19057 (get_entry): Renamed to ...
19058 (grub_menu_get_entry): .. this and made it global.
19059 (get_timeout): Renamed to ...
19060 (grub_menu_get_timeout): ... this and made it global.
19061 (set_timeout): Renamed to ...
19062 (grub_menu_set_timeout): ... this and made it global.
19063 (grub_normal_terminal_menu_viewer): Renamed to ...
19064 (grub_normal_text_menu_viewer): ... this.
19065
19066 * normal/menu_text.c: New file. Extracted text-menu-specific code
19067 from normal/menu.c.
19068
19069 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
19070 (normal_mod_SOURCES): Likewise.
19071
19072 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19073 (normal_mod_SOURCES): Likewise.
19074
19075 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19076 (normal_mod_SOURCES): Likewise.
19077
19078 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
19079 (normal_mod_SOURCES): Likewise.
19080
19081 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19082 (normal_mod_SOURCES): Likewise.
19083
19084 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19085 (normal_mod_SOURCES): Likewise.
19086
19087 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19088 (normal_mod_SOURCES): Likewise.
19089
19090 2009-02-11 Robert Millan <rmh@aybabtu.com>
19091
19092 * util/grub.d/00_header.in: Update old reference to `font' command.
19093
19094 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
19095
19096 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
19097
19098 Based on patch from Javier Martín.
19099
19100 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
19101
19102 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
19103 to avoid false positives with FAT.
19104 (grub_fstest_SOURCES): Likewise.
19105 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19106 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19107 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19108 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
19109 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19110 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19111
19112 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
19113
19114 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
19115 bpb.version_specific.fat12_or_fat16.fstype and
19116 bpb.version_specific.fat32.fstype.
19117
19118 2009-02-08 Robert Millan <rmh@aybabtu.com>
19119
19120 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
19121
19122 2009-02-08 Robert Millan <rmh@aybabtu.com>
19123
19124 * Makefile.in (host_os, host_cpu): New variables.
19125 (target_os): Remove. Update all users.
19126
19127 2009-02-08 Marco Gerards <marco@gnu.org>
19128
19129 * Makefile.in (enable_grub_emu_usb): New variable.
19130 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
19131 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
19132 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
19133 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
19134 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
19135 `usbtest.mod' and `usbms.mod'.
19136 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
19137 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
19138 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
19139 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
19140 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
19141 variables.
19142
19143 * disk/usbms.c: New file.
19144
19145 * include/grub/usb.h: Likewise.
19146
19147 * include/grub/usbtrans.h: Likewise.
19148
19149 * include/grub/usbdesc.h: Likewise.
19150
19151 * bus/usb/usbtrans.c: Likewise.
19152
19153 * bus/usb/ohci.c: Likewise.
19154
19155 * bus/usb/uhci.c: Likewise.
19156
19157 * bus/usb/usbhub.c: Likewise.
19158
19159 * bus/usb/usb.c: Likewise.
19160
19161 * commands/usbtest.c: Likewise.
19162
19163 * util/usb.c: Likewise.
19164
19165 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
19166
19167 * configure.ac: Test for libusb presence.
19168
19169 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
19170
19171 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
19172
19173 * kern/mm.c: Add more comments.
19174
19175 2009-02-08 Robert Millan <rmh@aybabtu.com>
19176
19177 Patch from Javier Martín.
19178 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
19179 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
19180
19181 2009-02-08 Robert Millan <rmh@aybabtu.com>
19182
19183 * fs/cpio.c: Split tar functionality to ...
19184 * fs/tar.c: ... here (new file). Update all users.
19185
19186 2009-02-07 Robert Millan <rmh@aybabtu.com>
19187
19188 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
19189 backward-incompatible features.
19190
19191 Based on patch from Javier Martín, with some adjustments.
19192
19193 2009-02-07 Michael Scherer <misc@mandriva.org>
19194
19195 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
19196
19197 2009-02-07 Robert Millan <rmh@aybabtu.com>
19198
19199 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
19200 position of `disk/lvm.c' to ensure grub_init_all() always picks it
19201 after the RAID stuff.
19202
19203 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
19204
19205 Fixes problem when running vbetest command as reported by
19206 Vladimir Serbinenko <phcoder@gmail.com>.
19207
19208 * (grub_vbe_set_video_mode): Fixed problem with text modes.
19209
19210 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
19211
19212 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
19213 /dev/md/NpN style mdraid devices.
19214
19215 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
19216
19217 * util/unifont2pff.rb: Remove.
19218
19219 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
19220
19221 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
19222 `#'.
19223
19224 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
19225
19226 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
19227 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19228 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19229 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
19230 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19231 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19232 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19233
19234 2009-02-02 Christian Franke <franke@computer.org>
19235
19236 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
19237
19238 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
19239
19240 * INSTALL: Note that we now require at least autoconf 2.59 and
19241 that LZO is optional.
19242
19243 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
19244
19245 Base on patch on bug #24154 created by Tomas Tintera
19246 <trosos@seznam.cz>.
19247
19248 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
19249
19250 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
19251
19252 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
19253 <bero@arklinux.org>.
19254
19255 * normal/parser.y (script_init): Add missing semicolon.
19256
19257 2009-01-31 Colin D Bennett <colin@gibibit.com>
19258
19259 * normal/main.c: Add include to grub/menu_viewer.h.
19260 (free_menu_entry_classes): Added.
19261 (grub_normal_menu_addentry): Added class property handling.
19262 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
19263 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
19264
19265 * normal/menu_viewer.c: New file.
19266
19267 * normal/menu.c (run_menu_entry): Renamed to ...
19268 (grub_menu_execute_entry): ... this and made it as global.
19269 (grub_menu_run): Renamed to ...
19270 (show_text_menu): ... this and made it local.
19271 (show_text_menu): Adapt to new function names.
19272 (grub_normal_terminal_menu_viewer): New global variable.
19273
19274 * include/grub/menu.h: New file.
19275
19276 * include/grub/menu_viewer.h: New file.
19277
19278 * include/grub/normal.h: Added include to grub/menu.h.
19279 (grub_menu_entry): Moved to include/grub/menu.h.
19280 (grub_menu_entry_t): Likewise.
19281 (grub_menu): Likewise.
19282 (grub_menu_t): Likewise.
19283 (grub_normal_terminal_menu_viewer): Added.
19284 (grub_menu_execute_entry): Likewise.
19285 (grub_menu_run): Removed.
19286
19287 * DISTLIST: Added include/grub/menu.h.
19288 Added include/grub/menu_viewer.h.
19289 Added normal/menu_viewer.c.
19290
19291 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
19292
19293 * normal/execute.c (grub_script_execute_menuentry): Changed to use
19294 arglist for menutitle arguments.
19295
19296 * normal/main.c (grub_normal_menu_addentry): Likewise.
19297
19298 * normal/parser.y (menuentry): Likewise.
19299
19300 * normal/script.c (grub_script_create_cmdmenu): Likewise.
19301
19302 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
19303 (grub_script_create_cmdmenu): Likewise.
19304
19305 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
19306
19307 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
19308 changes.
19309
19310 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
19311
19312 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
19313
19314 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
19315
19316 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
19317
19318 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
19319
19320 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
19321
19322 2009-01-30 Christian Franke <franke@computer.org>
19323
19324 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
19325 in option help text.
19326
19327 2009-01-27 Pavel Roskin <proski@gnu.org>
19328
19329 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
19330
19331 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
19332
19333 * commands/lsmmap.c: Add include to grub/machine/memory.h.
19334
19335 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
19336
19337 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
19338 unregister function.
19339
19340 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
19341
19342 * disk/scsi.c (grub_scsi_read): Fix sign problem.
19343
19344 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
19345
19346 * util/grub-mkfont.c (usage): Fix typo.
19347
19348 * util/elf/grub-mkimage.c (load_modules): Fix warning.
19349
19350 2009-01-26 Daniel Mierswa <impulze@impulze.org>
19351
19352 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
19353
19354 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
19355
19356 * kern/misc.c (grub_strcasecmp): New function.
19357 (grub_strcasecmp): Use grub_size_t instead of int for length.
19358 Fix return value.
19359 * include/grub/misc.h: Update function prototypes.
19360
19361 2009-01-26 Robert Millan <rmh@aybabtu.com>
19362
19363 * configure.ac: Fix cross-compilation check.
19364
19365 2009-01-22 Christian Franke <franke@computer.org>
19366
19367 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
19368 (precision) digit string. Allow `.format2' without `format1' (width).
19369 Limit input chars for `%s' output to `format2' if specified. This is
19370 compatible with standard printf ().
19371
19372 2009-01-22 Christian Franke <franke@computer.org>
19373
19374 * disk/ata.c (grub_ata_wait_status): Replace by ...
19375 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
19376 other status bits may be invalid while BSY is asserted.
19377 (grub_ata_check_ready): New function.
19378 (grub_ata_cmd): Removed.
19379 (grub_ata_wait_drq): New function.
19380 (grub_ata_strncpy): Remove inline.
19381 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
19382 and error check now done by grub_ata_wait_drq ().
19383 (grub_ata_pio_write): Likewise.
19384 (grub_atapi_identify): Set DEV before check for !BSY. Use
19385 grub_ata_wait_drq () to wait for data.
19386 (grub_ata_device_initialize): Add status register check to
19387 detect missing SATA slave devices. Add debug messages.
19388 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
19389 (grub_atapi_packet): Set DEV before check for !BSY. Replace
19390 transfer loop by grub_ata_pio_write ().
19391 (grub_ata_identify): Set DEV before check for !BSY. Use
19392 grub_ata_wait_drq () to wait for data.
19393 (grub_ata_setaddress): Set DEV before check for !BSY.
19394 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
19395 read/write in one loop. Fix invalid command on write. Fix incomplete
19396 command on (size % batch) == 0. Add missing error check after write of
19397 last block. Add debug messages.
19398 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
19399
19400 2009-01-19 Christian Franke <franke@computer.org>
19401
19402 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
19403 (GRUB_ATAPI_IREASON_*): Likewise.
19404 (grub_ata_pio_write): Fix timeout error return.
19405 (grub_atapi_identify): Add grub_ata_wait () after cmd.
19406 (grub_atapi_wait_drq): New function.
19407 (grub_atapi_packet): New parameter `size'.
19408 Use grub_atapi_wait_drq () and direct write instead of
19409 grub_ata_pio_write ().
19410 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
19411 reads the number of bytes requested by the device for each DRQ
19412 assertion.
19413 (grub_atapi_write): Remove old implementation, return not
19414 implemented instead.
19415
19416 2009-01-19 Christian Franke <franke@computer.org>
19417
19418 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
19419 of 512 to calculate data size.
19420 (grub_scsi_read12): Likewise.
19421 (grub_scsi_write10): Likewise.
19422 (grub_scsi_write12): Likewise.
19423 (grub_scsi_read): Adjust size according to blocksize.
19424 Add checks for invalid blocksize and unaligned transfer.
19425
19426 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
19427
19428 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
19429
19430 * term/gfxterm.c (write_char): Fix background rendering for wide
19431 width glyphs.
19432
19433 2009-01-19 Robert Millan <rmh@aybabtu.com>
19434
19435 * config.guess: Update to latest version from config git.
19436 * config.sub: Likewise.
19437
19438 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
19439
19440 * Makefile.in: Change font compilation to use new grub-mkfont instead
19441 of java version.
19442
19443 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
19444 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
19445 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
19446 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
19447 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
19448 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
19449 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
19450 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
19451 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
19452
19453 2009-01-16 Christian Franke <franke@computer.org>
19454
19455 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
19456 (enum grub_ata_timeout_milliseconds): New enum.
19457 (grub_ata_wait_status): Add parameter milliseconds.
19458 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
19459 recovery from timed-out commands.
19460 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
19461 return grub_errno instead of REG_ERROR.
19462 (grub_ata_pio_write): Add parameter milliseconds.
19463 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
19464 Pass milliseconds to grub_ata_wait_status () and
19465 grub_ata_pio_read ().
19466 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
19467 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
19468 grub_ata_wait_status (). Fix IDENTIFY timeout check.
19469 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
19470 It is not suitable for device detection, because DEV bit is ignored,
19471 the command may run too long, and not all devices set the signature
19472 properly.
19473 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
19474 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
19475 Fix device selection, DEV bit must be set first to address the registers
19476 of the correct device.
19477 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
19478 grub_ata_pio_read/write ().
19479 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
19480 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
19481
19482 2009-01-13 Carles Pina i Estany <carles@pina.cat>
19483
19484 * util/grub-editenv.c (main): Use fseeko(), not fseek().
19485
19486 2009-01-13 Bean <bean123ch@gmail.com>
19487
19488 * util/grub-mkfont.c (write_font): forget to remove some debug code.
19489
19490 2009-01-13 Bean <bean123ch@gmail.com>
19491
19492 * Makefile.in: (enable_grub_mkfont): New variable.
19493 (freetype_cflags): Likewise.
19494 (freetype_libs): Likewise.
19495
19496 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
19497 (grub_mkfont_SOURCES): New variable.
19498 (grub_mkfont_CFLAGS): Likewise.
19499 (grub_mkfont_LDFLAGS): Likewise.
19500
19501 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
19502 library if `--enable-grub-mkfont' is requested.
19503 (enable_grub_mkfont): New variable.
19504 (freetype_cflags): Likewise.
19505 (freetype_libs): Likewise.
19506
19507 * util/grub-mkfont.c: New file.
19508
19509 2009-01-12 Christian Franke <franke@computer.org>
19510
19511 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
19512 mode check. Fix setting of compat_use[].
19513
19514 2009-01-10 Robert Millan <rmh@aybabtu.com>
19515
19516 Update a few copyright years which we forgot to do in 2008 (only for
19517 files whose changes made in 2008 were copyright-significant)
19518
19519 * Makefile.in: Add 2008 to Copyright line.
19520 * disk/ieee1275/ofdisk.c: Likewise.
19521 * disk/efi/efidisk.c: Likewise.
19522 * kern/dl.c: Likewise.
19523 * kern/sparc64/ieee1275/init.c: Likewise.
19524 * kern/mm.c: Likewise.
19525 * kern/efi/mm.c: Likewise.
19526 * boot/i386/pc/boot.S: Likewise.
19527 * genfslist.sh: Likewise.
19528 * fs/iso9660.c: Likewise.
19529 * fs/hfs.c: Likewise.
19530 * fs/jfs.c: Likewise.
19531 * fs/minix.c: Likewise.
19532 * fs/ufs.c: Likewise.
19533 * gensymlist.sh.in: Likewise.
19534 * genkernsyms.sh.in: Likewise.
19535 * include/grub/misc.h: Likewise.
19536 * include/grub/types.h: Likewise.
19537 * include/grub/symbol.h: Likewise.
19538 * include/grub/elf.h: Likewise.
19539 * include/grub/kernel.h: Likewise.
19540 * include/grub/disk.h: Likewise.
19541 * include/grub/dl.h: Likewise.
19542 * include/grub/i386/linux.h: Likewise.
19543 * include/grub/i386/pc/biosdisk.h: Likewise.
19544 * include/grub/efi/api.h: Likewise.
19545 * include/grub/efi/pe32.h: Likewise.
19546 * include/grub/util/misc.h: Likewise.
19547 * normal/execute.c: Likewise.
19548 * normal/arg.c: Likewise.
19549 * normal/completion.c: Likewise.
19550 * normal/lexer.c: Likewise.
19551 * normal/parser.y: Likewise.
19552 * normal/misc.c: Likewise.
19553 * commands/i386/pc/vbeinfo.c: Likewise.
19554 * commands/hexdump.c: Likewise.
19555 * commands/terminal.c: Likewise.
19556 * commands/ls.c: Likewise.
19557 * commands/help.c: Likewise.
19558 * partmap/pc.c: Likewise.
19559 * loader/efi/chainloader.c: Likewise.
19560 * loader/multiboot_loader.c: Likewise.
19561 * loader/i386/pc/multiboot2.c: Likewise.
19562 * term/efi/console.c: Likewise.
19563 * term/i386/pc/serial.c: Likewise.
19564 * util/lvm.c: Likewise.
19565 * util/console.c: Likewise.
19566 * util/i386/efi/grub-mkimage.c: Likewise.
19567 * util/raid.c: Likewise.
19568
19569 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
19570
19571 * commands/videotest.c: Removed include to grub/machine/memory.h.
19572
19573 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
19574 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
19575 (video_mod_SOURCES): Removed.
19576 (video_mod_CFLAGS): Likewise.
19577 (video_mod_LDFLAGS): Likewise.
19578 (gfxterm_mod_SOURCES): Likewise.
19579 (gfxterm_mod_CFLAGS): Likewise.
19580 (gfxterm_mod_LDFLAGS): Likewise.
19581 (videotest_mod_SOURCES): Likewise.
19582 (videotest_mod_CFLAGS): Likewise.
19583 (videotest_mod_LDFLAGS): Likewise.
19584 (bitmap_mod_SOURCES): Likewise.
19585 (bitmap_mod_CFLAGS): Likewise.
19586 (bitmap_mod_LDFLAGS): Likewise.
19587 (tga_mod_SOURCES): Likewise.
19588 (tga_mod_CFLAGS): Likewise.
19589 (tga_mod_LDFLAGS): Likewise.
19590 (jpeg_mod_SOURCES): Likewise.
19591 (jpeg_mod_CFLAGS): Likewise.
19592 (jpeg_mod_LDFLAGS): Likewise.
19593 (png_mod_SOURCES): Likewise.
19594 (png_mod_CFLAGS): Likewise.
19595 (png_mod_LDFLAGS): Likewise.
19596
19597 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
19598 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
19599 (video_mod_SOURCES): Added.
19600 (video_mod_CFLAGS): Likewise.
19601 (video_mod_LDFLAGS): Likewise.
19602 (videotest_mod_SOURCES): Likewise.
19603 (videotest_mod_CFLAGS): Likewise.
19604 (videotest_mod_LDFLAGS): Likewise.
19605 (bitmap_mod_SOURCES): Likewise.
19606 (bitmap_mod_CFLAGS): Likewise.
19607 (bitmap_mod_LDFLAGS): Likewise.
19608 (tga_mod_SOURCES): Likewise.
19609 (tga_mod_CFLAGS): Likewise.
19610 (tga_mod_LDFLAGS): Likewise.
19611 (jpeg_mod_SOURCES): Likewise.
19612 (jpeg_mod_CFLAGS): Likewise.
19613 (jpeg_mod_LDFLAGS): Likewise.
19614 (png_mod_SOURCES): Likewise.
19615 (png_mod_CFLAGS): Likewise.
19616 (png_mod_LDFLAGS): Likewise.
19617 (gfxterm_mod_SOURCES): Likewise.
19618 (gfxterm_mod_CFLAGS): Likewise.
19619 (gfxterm_mod_LDFLAGS): Likewise.
19620
19621 * term/gfxterm.c: Removed include to grub/machine/memory.h,
19622 grub/machine/console.h.
19623
19624 2009-01-04 Jerone Young <jerone@gmail.com>
19625
19626 Make on screen instructions clearer
19627
19628 Based on patch created by Jidanni <jidanni@jidanni.org>
19629
19630 * normal/menu.c: print clearer instructions on the screen
19631
19632 2009-01-02 Colin D Bennett <colin@gibibit.com>
19633
19634 New font engine.
19635
19636 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
19637 build system and fixed gfxterm.c to work with different sized fonts.
19638
19639 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
19640
19641 * configure: Re-generated.
19642
19643 * DISTLIST: Removed font/manager.c.
19644 Added font/font.c.
19645 Added font/font_cmd.c.
19646
19647 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
19648 compilation.
19649
19650 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
19651
19652 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
19653
19654 * kern/term.c: Changed users of grub_utf8_to_ucs4.
19655
19656 * normal/menu.c: Likewise.
19657
19658 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
19659 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
19660
19661 * include/grub/font.h: Replaced with new file.
19662
19663 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
19664 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
19665 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
19666 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
19667 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
19668 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
19669 fg_red, fg_green, fg_blue, fg_alpha.
19670 (grub_video_adapter): Removed blit_glyph.
19671 (grub_video_blit_glyph): Removed.
19672
19673 * font/manager.c: Removed file.
19674
19675 * font/font.c: New file.
19676
19677 * font/font_cmd.c: Likewise.
19678
19679 * video/video.c (grub_video_blit_glyph): Removed.
19680
19681 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
19682 (grub_video_vbe_map_rgba): Likewise.
19683 (grub_video_vbe_unmap_color_int): Likewise.
19684 (grub_video_vbe_blit_glyph): Removed.
19685 (grub_video_vbe_adapter): Removed blit_glyph.
19686
19687 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
19688 (get_pixel): Likewise.
19689 (set_pixel): Likewise.
19690
19691 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
19692
19693 * term/gfxterm.c: Adapted to new font engine.
19694
19695 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
19696
19697 * term/i386/pc/vga.c: Likewise.
19698
19699 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
19700
19701 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
19702
19703 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
19704
19705 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
19706
19707 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
19708
19709 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
19710
19711 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
19712
19713 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
19714
19715 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
19716
19717 * util/grub.d/00_header.in: Changed to use new loadfont command.
19718
19719 * util/grub-mkconfig_lib.in: Changed font extension.
19720
19721 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
19722
19723 * util/getroot.c (grub_util_get_grub_dev): Add support for
19724 /dev/md/dNNpNN style partitionable mdraid devices.
19725
19726 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
19727
19728 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
19729 at a time limit of the PXE TFTP API correctly.
19730 (grub_pxefs_close): Likewise.
19731
19732 2008-11-29 Robert Millan <rmh@aybabtu.com>
19733
19734 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
19735 grub_ata_device_initialize() calls.
19736
19737 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
19738
19739 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
19740 iteration failed.
19741 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
19742
19743 2008-11-28 Robert Millan <rmh@aybabtu.com>
19744
19745 Fix build on powerpc-ieee1275. Based on patch created by
19746 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
19747 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
19748 `kern/ieee1275/mmap.c'.
19749 * include/grub/powerpc/ieee1275/memory.h: New file.
19750
19751 Provide grub-install on coreboot.
19752 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
19753 (grub_install_SOURCES): New variable.
19754 * util/i386/pc/grub-install.in: Add a few condition checks to make it
19755 usable on coreboot.
19756
19757 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
19758
19759 * util/grub-fstest.c (grub_term_get_current_input): Change return type
19760 to `grub_term_input_t'.
19761 (grub_term_get_current_output): Change return type to
19762 `grub_term_output_t'.
19763
19764 2008-11-22 Robert Millan <rmh@aybabtu.com>
19765
19766 Fix breakage on coreboot due to declaration mismatch.
19767 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
19768 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
19769 grub_vga_text_cls().
19770
19771 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
19772 comments. Avoid copying one more byte than necessary (just in case).
19773
19774 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
19775 to 0x200000 (avoids trouble with some OFW implementations, and matches
19776 with the one in Yaboot).
19777 Reported by Manoel Abranches
19778
19779 2008-11-20 Robert Millan <rmh@aybabtu.com>
19780
19781 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
19782 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
19783
19784 * util/grub-mkconfig_lib.in (grub_warn): New function.
19785 (convert_system_path_to_grub_path): Use grub_warn() when issuing
19786 warnings, to obtain consistent formatting.
19787 * util/grub.d/00_header.in: Likewise.
19788 * util/update-grub_lib.in: Likewise.
19789
19790 * loader/i386/linux.c (allocate_pages): Fix a warning.
19791 Move comment text to `#error' stanza.
19792
19793 Harmonize ieee1275's grub_available_iterate() with the generic
19794 grub_machine_mmap_iterate() interface (fixes a recently-introduced
19795 build problem on i386-ieee1275):
19796 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
19797 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
19798 parameter `type'. Update all users of this function.
19799 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
19800 `kern/ieee1275/mmap.c'.
19801 * kern/ieee1275/init.c
19802 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
19803 with ...
19804 (grub_machine_mmap_iterate): ... this.
19805 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
19806 return type to `grub_err_t'. Update all implementations of this
19807 function prototype.
19808 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
19809 Likewise.
19810
19811 Add `lsmmap' command (lists firmware-provided memory map):
19812 * commands/lsmmap.c: New file.
19813 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
19814 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
19815 variables.
19816 * conf/powerpc-ieee1275.rmk: Likewise.
19817 * conf/i386-coreboot.rmk: Likewise.
19818 * conf/i386-ieee1275.rmk: Likewise.
19819
19820 2008-11-19 Robert Millan <rmh@aybabtu.com>
19821
19822 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
19823 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
19824 constraints to initrd allocation (based on code from
19825 loader/i386/pc/linux.c). Without them, initrd was allocated too high
19826 for Linux to find it.
19827
19828 2008-11-14 Robert Millan <rmh@aybabtu.com>
19829
19830 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
19831 order to cope with duplicate slashes.
19832
19833 2008-11-14 Robert Millan <rmh@aybabtu.com>
19834
19835 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
19836 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
19837 don't want to mess with lower memory, because it is used in the Linux
19838 loader.
19839
19840 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
19841 an appropriate place in lower memory, between 0x10000 and 0x90000,
19842 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
19843 is in our heap (probably as a result of it being corrupted during
19844 decompression). Add #error instance with comment to explain why this
19845 loader isn't currently usable on PC/BIOS.
19846
19847 2008-11-14 Robert Millan <rmh@aybabtu.com>
19848
19849 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
19850 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
19851
19852 2008-11-12 Robert Millan <rmh@aybabtu.com>
19853
19854 Make loader/i386/linux.c buildable on i386-pc (although disabled).
19855
19856 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
19857 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
19858 from here ...
19859 * include/grub/i386/pc/memory.h: ... to here.
19860
19861 2008-11-12 Robert Millan <rmh@aybabtu.com>
19862
19863 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
19864 split).
19865
19866 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
19867 (grub_console_cur_color, grub_console_real_putchar)
19868 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
19869 (grub_console_setcolorstate, grub_console_setcolor)
19870 (grub_console_getcolor): Move from here ...
19871 * include/grub/i386/vga_common.h: ... to here (new file).
19872
19873 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
19874 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
19875 `<grub/i386/io.h>'.
19876 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
19877 `<grub/i386/vga_common.h>'.
19878
19879 2008-11-12 Robert Millan <rmh@aybabtu.com>
19880
19881 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
19882 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
19883 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
19884 variables.
19885 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
19886 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
19887
19888 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
19889 grub_console_init() with call to grub_vga_text_init().
19890 (grub_machine_fini): Replace call to
19891 grub_console_fini() with call to grub_vga_text_fini() and
19892 grub_at_keyboard_fini().
19893
19894 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
19895 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
19896 (grub_console_setcolorstate, grub_console_setcolor)
19897 (grub_console_getcolor): New function prototypes.
19898
19899 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
19900 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
19901 (grub_vga_text_setcursor): Static-ize.
19902 (grub_vga_text_term): New structure.
19903 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
19904
19905 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
19906 (grub_console_cur_color, grub_console_standard_color)
19907 (grub_console_normal_color, grub_console_highlight_color)
19908 (map_char, grub_console_putchar, grub_console_getcharwidth)
19909 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
19910 (grub_console_getcolor): Move from here ...
19911 * term/i386/vga_common.c: ... to here (same function names).
19912
19913 2008-11-12 Robert Millan <rmh@aybabtu.com>
19914
19915 Use newly-added Multiboot support in coreboot.
19916
19917 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
19918 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
19919
19920 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
19921 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
19922 (codestart): Store the MBI in `startup_multiboot_info' when we're
19923 being loaded using Multiboot.
19924
19925 * kern/i386/coreboot/init.c (grub_machine_init): Move
19926 grub_at_keyboard_init() call to beginning of function (useful for
19927 debugging). Call grub_machine_mmap_init() before attempting to use
19928 grub_machine_mmap_iterate().
19929 (grub_lower_mem, grub_upper_mem): Move from here ...
19930 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
19931 here (new file).
19932
19933 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
19934 function prototype.
19935
19936 2008-11-12 Robert Millan <rmh@aybabtu.com>
19937
19938 Fix a regression introduced by the at_keyboard.mod split. Because
19939 some terminals are default on some platforms and non-default on
19940 others, the first terminal being registered determines which is
19941 going to be default.
19942
19943 * kern/term.c (grub_term_register_input): If this is the first
19944 terminal being registered, set it as the current one.
19945 (grub_term_register_output): Likewise.
19946
19947 * term/efi/console.c (grub_console_init): Do not call
19948 grub_term_set_current_output() or grub_term_set_current_input().
19949 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
19950 * term/i386/pc/console.c (grub_console_init): Likewise.
19951 (grub_console_fini): Do not call grub_term_set_current_input()
19952 (but leave grub_term_set_current_output() to restore text mode).
19953
19954 2008-11-10 Robert Millan <rmh@aybabtu.com>
19955
19956 * util/grub.d/00_header.in: Add backward compatibility check for
19957 versions of terminal.mod that don't understand `terminal_input' or
19958 `terminal_output'.
19959
19960 2008-11-09 Robert Millan <rmh@aybabtu.com>
19961
19962 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
19963 `terminal_input' / `terminal_output', not `terminal'.
19964
19965 2008-11-08 Robert Millan <rmh@aybabtu.com>
19966
19967 * Makefile.in (include_DATA): Fix srcdir=. assumption.
19968 (DISTCLEANFILES): Add `build_env.mk'.
19969
19970 2008-11-08 Robert Millan <rmh@aybabtu.com>
19971
19972 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
19973 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
19974 members. Update all users.
19975 * util/console.c (grub_ncurses_term): Split in ...
19976 (grub_ncurses_term_input): ... this, and ...
19977 (grub_ncurses_term_output): ... this. Update all users.
19978 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
19979
19980 2008-11-08 Robert Millan <rmh@aybabtu.com>
19981
19982 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
19983 (PKGDATA): Add $(pkgdata_SRCDIR).
19984 (pkglib_BUILDDIR): New variable.
19985 (pkgdata_SRCDIR): New variable.
19986 (build_env.mk): New target.
19987 (include_DATA): New variable.
19988 (install-local): Install $(include_DATA) files in $(includedir).
19989
19990 2008-11-07 Pavel Roskin <proski@gnu.org>
19991
19992 * gendistlist.sh: Use C locale for sorting to ensure consistent
19993 output on all systems.
19994
19995 * util/grub.d/00_header.in: Remove incorrect space before
19996 "serial".
19997
19998 2008-11-07 Robert Millan <rmh@aybabtu.com>
19999
20000 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
20001 per specification.
20002 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
20003 * loader/multiboot_loader.c (find_multi_boot2_header): New function
20004 (based on find_multi_boot1_header).
20005 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
20006 using find_multi_boot2_header(), and abort if neither Multiboot or
20007 Multiboot headers were found.
20008
20009 2008-11-07 Robert Millan <rmh@aybabtu.com>
20010
20011 Modularize at_keyboard.mod:
20012
20013 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
20014 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
20015 (at_keyboard_mod_LDFLAGS): New variables.
20016
20017 Actual terminal split:
20018
20019 * include/grub/term.h (struct grub_term): Split in ...
20020 (struct grub_term_input): ... this, and ...
20021 (struct grub_term_output): ... this. Update all users.
20022 (grub_term_set_current): Split in ...
20023 (grub_term_set_current_input): ... this, and ...
20024 (grub_term_set_current_output): ... this.
20025 (grub_term_get_current): Split in ...
20026 (grub_term_get_current_input): ... this, and ...
20027 (grub_term_get_current_output): ... this.
20028 (grub_term_register): Split in ...
20029 (grub_term_register_input): ... this, and ...
20030 (grub_term_register_output): ... this.
20031 (grub_term_unregister): Split in ...
20032 (grub_term_unregister_input): ... this, and ...
20033 (grub_term_unregister_output): ... this.
20034 (grub_term_iterate): Split in ...
20035 (grub_term_iterate_input): ... this, and ...
20036 (grub_term_iterate_output): ... this.
20037
20038 * kern/term.c (grub_term_list): Split in ...
20039 (grub_term_list_input): ... this, and ...
20040 (grub_term_list_output): ... this. Update all users.
20041 (grub_cur_term): Split in ...
20042 (grub_cur_term_input): ... this, and ...
20043 (grub_cur_term_output): ... this. Update all users.
20044 (grub_term_set_current): Split in ...
20045 (grub_term_set_current_input): ... this, and ...
20046 (grub_term_set_current_output): ... this.
20047 (grub_term_get_current): Split in ...
20048 (grub_term_get_current_input): ... this, and ...
20049 (grub_term_get_current_output): ... this.
20050 (grub_term_register): Split in ...
20051 (grub_term_register_input): ... this, and ...
20052 (grub_term_register_output): ... this.
20053 (grub_term_unregister): Split in ...
20054 (grub_term_unregister_input): ... this, and ...
20055 (grub_term_unregister_output): ... this.
20056 (grub_term_iterate): Split in ...
20057 (grub_term_iterate_input): ... this, and ...
20058 (grub_term_iterate_output): ... this.
20059
20060 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
20061 a check for input and one for output (and only attempt to get keys
20062 from user when input works).
20063
20064 * util/grub-probe.c (grub_term_get_current): Split in ...
20065 (grub_term_get_current_input): ... this, and ...
20066 (grub_term_get_current_output): ... this.
20067 * util/grub-fstest.c: Likewise.
20068 * util/i386/pc/grub-setup.c: Likewise.
20069 * util/grub-editenv.c: Likewise.
20070
20071 Portability adjustments:
20072
20073 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
20074 `term/i386/pc/at_keyboard.c'.
20075 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
20076 grub_keyboard_controller_init() (now handled by terminal .init).
20077 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
20078 grub_at_keyboard_init().
20079 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
20080 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
20081 at_keyboard.mod via input terminal interface).
20082 * include/grub/i386/coreboot/console.h: Convert into a stub for
20083 `<grub/i386/pc/console.h>'.
20084
20085 Migrate full terminals to new API:
20086
20087 * term/efi/console.c (grub_console_term): Split into ...
20088 (grub_console_term_input): ... this, and ...
20089 (grub_console_term_output): ... this. Update all users.
20090 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
20091 (grub_ofconsole_init): Split into ...
20092 (grub_ofconsole_init_input): ... this, and ...
20093 (grub_ofconsole_init_output): ... this.
20094 (grub_ofconsole_term): Split into ...
20095 (grub_ofconsole_term_input): ... this, and ...
20096 (grub_ofconsole_term_output): ... this. Update all users.
20097 * term/i386/pc/serial.c (grub_serial_term): Split into ...
20098 (grub_serial_term_input): ... this, and ...
20099 (grub_serial_term_output): ... this. Update all users.
20100 * term/i386/pc/console.c (grub_console_term): Split into ...
20101 (grub_console_term_input): ... this, and ...
20102 (grub_console_term_output): ... this. Update all users.
20103 (grub_console_term_input): Only enable it on PC/BIOS platform.
20104 (grub_console_init): Remove grub_keyboard_controller_init() call.
20105
20106 Migrate input terminals to new API:
20107
20108 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
20109 `i386' and `i386/pc' to enable build on x86_64 (this driver is
20110 i386-specific anyway).
20111 (grub_console_checkkey): Rename to ...
20112 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
20113 users.
20114 (grub_keyboard_controller_orig): New variable.
20115 (grub_console_getkey): Rename to ...
20116 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
20117 users.
20118 (grub_keyboard_controller_init): Static-ize. Save original
20119 controller value so that it can be restored ...
20120 (grub_keyboard_controller_fini): ... here (new function).
20121 (grub_at_keyboard_term): New structure.
20122 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
20123 functions.
20124
20125 Migrate output terminals to new API:
20126
20127 * term/i386/pc/vga.c (grub_vga_term): Change type to
20128 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
20129 members. Update all users.
20130 * term/gfxterm.c (grub_video_term): Change type to
20131 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
20132 members. Update all users.
20133 * include/grub/i386/pc/console.h (grub_console_checkkey)
20134 (grub_console_getkey): Do not export (no longer needed by gfxterm,
20135 etc).
20136
20137 Migrate `terminal' command and userland tools to new API:
20138
20139 * commands/terminal.c (grub_cmd_terminal): Split into ...
20140 (grub_cmd_terminal_input): ... this, and ...
20141 (grub_cmd_terminal_output): ... this.
20142 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
20143 `terminal_input' and `terminal_output'.
20144 * util/grub.d/00_header.in: Adjust `terminal' calls to new
20145 `terminal_input' / `terminal_output' API.
20146 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
20147 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
20148 provided ${GRUB_TERMINAL}, convert it).
20149
20150 2008-11-04 Robert Millan <rmh@aybabtu.com>
20151
20152 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
20153 for FreeBSD.
20154 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
20155
20156 2008-11-03 Bean <bean123ch@gmail.com>
20157
20158 * kern/elf.c (grub_elf32_load): Revert to previous code.
20159 (grub_elf64_load): Likewise.
20160
20161 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
20162
20163 2008-11-01 Robert Millan <rmh@aybabtu.com>
20164
20165 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
20166 (TARGET_CPPFLAGS): Likewise.
20167 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
20168
20169 2008-11-01 Carles Pina i Estany <carles@pina.cat>
20170
20171 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
20172
20173 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
20174
20175 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
20176 addition of objects until the code is not going to be able to fail.
20177
20178 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
20179
20180 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
20181 (add a missing NULL check, and correct them by moving the pointer
20182 operations after the actual check).
20183
20184 2008-10-29 Robert Millan <rmh@aybabtu.com>
20185
20186 * util/i386/pc/grub-install.in: Handle empty string as output from
20187 make_system_path_relative_to_its_root().
20188
20189 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
20190
20191 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
20192 circular metadata worst case scenario. If the metadata is circular
20193 then copy the wrap in place.
20194 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
20195 project lib/format_text/layout.h
20196 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
20197
20198 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
20199
20200 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
20201
20202 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
20203
20204 * util/update-grub_lib.in: Mention filename in warning message.
20205
20206 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
20207
20208 * NEWS: Update for rename of update-grub to grub-mkconfig.
20209
20210 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
20211
20212 * util/update-grub_lib.in: Copy to ...
20213 * util/grub-mkconfig_lib.in: ... this. Update all users.
20214 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
20215 * util/update-grub.in: Rename to ...
20216 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
20217 option. Add `--output' option to allow users to specify the generated
20218 configuration file. Default to stdout.
20219 (update_grub_dir): Rename to ...
20220 (grub_mkconfig_dir): ... this.
20221 (grub_cfg): Default to an empty string.
20222 * conf/common.rmk (update-grub): Rename to ...
20223 (grub-mkconfig): ... this.
20224 (update-grub_lib): Copy to ...
20225 (grub-mkconfig_lib): ... this.
20226 (update-grub_SCRIPTS): Copy to ...
20227 (grub-mkconfig_SCRIPTS): ... this. Update all users.
20228 (update-grub_DATA): Rename to ...
20229 (grub-mkconfig_DATA): ... this.
20230
20231 2008-09-28 Robert Millan <rmh@aybabtu.com>
20232
20233 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
20234 to `modified'. Add the real `created' field.
20235 (grub_iso9660_uuid): Use `modified' rather than `created' for
20236 constructing the UUID.
20237
20238 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
20239
20240 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
20241 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
20242
20243 2008-09-28 Bean <bean123ch@gmail.com>
20244
20245 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
20246 Thanks to Christian Franke for finding this bug.
20247
20248 2008-09-25 Robert Millan <rmh@aybabtu.com>
20249
20250 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
20251 instances of grub_util_get_disk_name() (see previous commit).
20252
20253 2008-09-25 Robert Millan <rmh@aybabtu.com>
20254
20255 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
20256 `util/i386/get_disk_name.c'.
20257 * conf/i386-efi.rmk: Likewise.
20258 * conf/x86_64-efi.rmk: Likewise.
20259 * conf/i386-coreboot.rmk: Likewise.
20260 * conf/i386-ieee1275.rmk: Likewise.
20261 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
20262 `util/ieee1275/get_disk_name.c'.
20263 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
20264 * util/ieee1275/get_disk_name.c: Remove file.
20265 * util/i386/get_disk_name.c: Remove file.
20266 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
20267 "hd%d" for device.map entries, rather than using
20268 grub_util_get_disk_name().
20269
20270 2008-09-24 Carles Pina i Estany <carles@pina.cat>
20271
20272 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
20273 warning.
20274 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
20275
20276 2008-09-24 Carles Pina i Estany <carles@pina.cat>
20277
20278 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
20279 Changed to 0x5100.
20280 (GRUB_TERM_PPAGE): Changed to 0x4900.
20281
20282 2008-09-24 Robert Millan <rmh@aybabtu.com>
20283
20284 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
20285 macros (they were i386-pc specific).
20286 * include/grub/sparc64/ieee1275/console.h: Likewise.
20287 * include/grub/efi/console.h: Likewise.
20288
20289 2008-09-22 Bean <bean123ch@gmail.com>
20290
20291 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
20292 resident and in attribute list.
20293
20294 * include/grub/ntfs.h (BMP_LEN): Removed.
20295
20296 2008-09-22 Bean <bean123ch@gmail.com>
20297
20298 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
20299 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
20300
20301 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
20302 error occurs, as grub_disk_open will call grub_disk_close, which will
20303 call p->close (scsi).
20304
20305 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
20306
20307 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
20308 (AC_PREREQ): Bumped to 2.59.
20309 (AC_TRY_COMPILE): Replace obsolete macro with ...
20310 (AC_COMPILE_IFELSE): ... this.
20311 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
20312 (AC_LINK_IFELSE): ... this.
20313
20314 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
20315
20316 * autogen.sh: Add a call to `gendistlist.sh'.
20317
20318 2008-09-19 Christian Franke <franke@computer.org>
20319
20320 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
20321 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
20322 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
20323 Export __enable_execute_stack() to modules.
20324 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
20325 New function.
20326
20327 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
20328
20329 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
20330 Sort the list.
20331
20332 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
20333
20334 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
20335 #include <grub/util/hostdisk.h>.
20336
20337 2008-09-08 Robert Millan <rmh@aybabtu.com>
20338
20339 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
20340 segments when their filesz is zero (grub_file_read() interprets
20341 zero-size as "read until EOF", which results in memory corruption).
20342 Use `lowest_segment' rather than 0 for calculating the current
20343 segment load address.
20344
20345 2008-09-08 Robert Millan <rmh@aybabtu.com>
20346
20347 * util/hostdisk.c (open_device): Replace a grub_util_info() call
20348 with grub_dprintf("hostdisk", ...), as it was so verbose that it
20349 clobbered useful information.
20350
20351 2008-09-08 Robert Millan <rmh@aybabtu.com>
20352
20353 * include/grub/util/biosdisk.h: Move to ...
20354 * include/grub/util/hostdisk.h: ... here. Update all users.
20355 * util/biosdisk.c: Move to ...
20356 * util/hostdisk.c: ... here. Update all users.
20357
20358 2008-09-07 Robert Millan <rmh@aybabtu.com>
20359
20360 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
20361 variables.
20362 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
20363 and length can be stored directly in the `mbi->mmap_addr' and
20364 `mbi->mmap_length' struct fields.
20365
20366 2008-09-07 Robert Millan <rmh@aybabtu.com>
20367
20368 * conf/i386.rmk: New file. Provides declaration for building
20369 `cpuid.mod'.
20370 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
20371 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
20372 variables.
20373 Include `conf/i386.mk'.
20374 * conf/i386-efi.rmk: Likewise.
20375 * conf/x86_64-efi.rmk: Likewise.
20376 * conf/i386-coreboot.rmk: Likewise.
20377 * conf/i386-ieee1275.rmk: Likewise.
20378
20379 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
20380
20381 Based on patch created by Colin D Bennett <colin@gibibit.com>.
20382 Adds optimization support for BGR based modes.
20383
20384 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
20385 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
20386 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
20387 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
20388 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
20389 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
20390 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
20391 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
20392 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
20393 (grub_video_i386_vbeblit_index_index): Likewise.
20394 (grub_video_i386_vbeblit_replace_directN): Added.
20395 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
20396 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
20397 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
20398 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
20399 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
20400 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
20401 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
20402 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
20403 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
20404 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
20405 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
20406 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
20407 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
20408
20409 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
20410 (grub_video_i386_vbefill_R8G8B8): Likewise.
20411 (grub_video_i386_vbefill_index): Likewise.
20412 (grub_video_i386_vbefill_direct32): Added.
20413 (grub_video_i386_vbefill_direct24): Likewise.
20414 (grub_video_i386_vbefill_direct16): Likewise.
20415 (grub_video_i386_vbefill_direct8): Likewise.
20416
20417 * include/grub/video.h (grub_video_blit_format): Removed
20418 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
20419 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
20420 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
20421 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
20422 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
20423
20424 * video/video.c (grub_video_get_blit_format): Updated to use new
20425 blit formats. Added handling for 16 bit color modes.
20426
20427 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
20428 fillers.
20429 (common_blitter): Updated to use new blitters.
20430
20431 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
20432 Removed.
20433 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
20434 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
20435 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
20436 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
20437 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
20438 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
20439 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
20440 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
20441 (grub_video_i386_vbeblit_index_index): Likewise.
20442 (grub_video_i386_vbeblit_replace_directN): Added.
20443 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
20444 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
20445 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
20446 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
20447 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
20448 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
20449 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
20450 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
20451 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
20452 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
20453 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
20454 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
20455 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
20456
20457 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
20458 (grub_video_i386_vbefill_R8G8B8): Likewise.
20459 (grub_video_i386_vbefill_index): Likewise.
20460 (grub_video_i386_vbefill_direct32): Added.
20461 (grub_video_i386_vbefill_direct24): Likewise.
20462 (grub_video_i386_vbefill_direct16): Likewise.
20463 (grub_video_i386_vbefill_direct8): Likewise.
20464
20465 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
20466 types.
20467
20468 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
20469 types.
20470
20471 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
20472 blitter types.
20473
20474 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
20475 types.
20476
20477 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
20478
20479 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
20480 RAID level 1.
20481
20482 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
20483
20484 * fs/iso9660.c (grub_iso9660_date): New structure.
20485 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
20486 (grub_iso9660_uuid): New function.
20487
20488 2008-09-05 Bean <bean123ch@gmail.com>
20489
20490 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
20491
20492 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
20493 insensitive bit for names in Win32 and Win32 & DOS namespace.
20494
20495 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
20496
20497 * include/grub/types.h (LONG_MAX): Likewise.
20498
20499 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
20500
20501 * util/getroot.c: Include <config.h>.
20502 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
20503 add support for /dev/md/N devices and handle LVM double dash escaping.
20504
20505 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
20506
20507 * config.guess: Update to latest version from config git.
20508 * config.sub: Likewise.
20509
20510 2008-09-03 Robert Millan <rmh@aybabtu.com>
20511
20512 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
20513 `disk->total_sectors'.
20514
20515 2008-09-01 Colin D Bennett <colin@gibibit.com>
20516
20517 * include/grub/normal.h: Fixed incorrect comment for
20518 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
20519
20520 2008-09-01 Colin D Bennett <colin@gibibit.com>
20521
20522 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
20523 values with defines.
20524
20525 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
20526 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
20527 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
20528 (GRUB_VBE_MODEATTR_COLOR): Likewise.
20529 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
20530 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
20531 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
20532 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
20533 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
20534 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
20535 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
20536 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
20537 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
20538 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
20539 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
20540 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
20541 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
20542 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
20543 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
20544
20545 2008-08-31 Robert Millan <rmh@aybabtu.com>
20546
20547 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
20548 declaration.
20549 (grub_multiboot): Fix a few warnings.
20550
20551 2008-08-31 Robert Millan <rmh@aybabtu.com>
20552
20553 * loader/i386/pc/multiboot.c: Update comment not to say that
20554 boot_device support is unimplemented.
20555
20556 2008-08-31 Robert Millan <rmh@aybabtu.com>
20557
20558 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
20559 or memory map support are unimplemented.
20560
20561 2008-08-31 Colin D Bennett <colin@gibibit.com>
20562
20563 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
20564
20565 2008-08-31 Colin D Bennett <colin@gibibit.com>
20566
20567 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
20568 total video memory in 'vbeinfo' output; show color format details for
20569 each video mode.
20570
20571 2008-08-30 Pavel Roskin <proski@gnu.org>
20572
20573 * util/genmoddep.c: Remove for real this time.
20574 * DISTLIST: Remove util/genmoddep.c.
20575
20576 2008-08-30 Robert Millan <rmh@aybabtu.com>
20577
20578 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
20579 as required by Multiboot spec (it was already 4-byte aligned, but
20580 only by chance).
20581
20582 2008-08-29 Pavel Roskin <proski@gnu.org>
20583
20584 * kern/powerpc/ieee1275/crt0.S: Rename to ...
20585 * kern/powerpc/ieee1275/startup.S: ... this.
20586 * conf/powerpc-ieee1275.rmk: Adjust for the above.
20587 * DISTLIST: Likewise.
20588
20589 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
20590 grub/cpu/kernel.h. Add start label for consistency with other
20591 platforms. Add grub_prefix immediately after start. Add jump
20592 to the code after grub_prefix.
20593 * include/grub/powerpc/kernel.h: Provide valid values for
20594 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
20595
20596 2008-08-29 Bean <bean123ch@gmail.com>
20597
20598 * configure.ac: Change host_os to cygwin for mingw.
20599 (asprintf): New check for function.
20600
20601 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
20602 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
20603
20604 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
20605 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
20606 sync, sleep and grub_util_get_disk_size for mingw.
20607
20608 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
20609 to get size in mingw.
20610 (open_device): Use flag O_BINARY if it's defined.
20611 (find_root_device): Add dummy code for mingw.
20612
20613 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
20614 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
20615 (get_scsi_disk_name): Return 0 for mingw.
20616
20617 * util/hostfs.c: #include <grub/util/misc.h>.
20618 (grub_hostfs_open): Use "rb" flag to open file, use
20619 grub_util_get_disk_size to get disk size for mingw.
20620
20621 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
20622 (asprintf): New function if HAVE_ASPRINTF is not set.
20623 (sync): New function for mingw.
20624 (sleep): Likewise.
20625 (grub_util_get_disk_size): Likewise.
20626
20627 2008-08-28 Pavel Roskin <proski@gnu.org>
20628
20629 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
20630 kern/time.c.
20631
20632 2008-08-28 Robert Millan <rmh@aybabtu.com>
20633
20634 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
20635
20636 2008-08-28 Robert Millan <rmh@aybabtu.com>
20637
20638 Change find_grub_drive() syntax so it doesn't prevent it from
20639 detecting NULL names as errors.
20640
20641 * util/biosdisk.c (find_grub_drive): Move free slot search code
20642 from here ...
20643 (find_free_slot): ... to here.
20644 (read_device_map): Use find_free_slot() to search for free slots.
20645
20646 2008-08-27 Marco Gerards <marco@gnu.org>
20647
20648 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
20649 (scsi_mod_SOURCES): New variable.
20650 (scsi_mod_CFLAGS): Likewise
20651 (scsi_mod_LDFLAGS): Likewise.
20652
20653 * disk/scsi.c: New file.
20654
20655 * include/grub/scsi.h: Likewise.
20656
20657 * include/grub/scsicmd.h: Likewise.
20658
20659 * disk/ata.c: Include <grub/scsi.h>.
20660 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
20661 instead.
20662 (grub_ata_iterate): Skip ATAPI devices.
20663 (grub_ata_open): Only handle ATAPI devices.
20664 (struct grub_atapi_read): Removed.
20665 (grub_atapi_readsector): Likewise.
20666 (grub_ata_read): No longer handle ATAPI devices.
20667 (grub_ata_write): Likewise.
20668 (grub_atapi_iterate): New function.
20669 (grub_atapi_read): Likewise.
20670 (grub_atapi_write): Likewise.
20671 (grub_atapi_open): Likewise.
20672 (grub_atapi_close): Likewise.
20673 (grub_atapi_dev): New variable.
20674 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
20675 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
20676
20677 * include/grub/disk.h (enum grub_disk_dev_id): Add
20678 `GRUB_DISK_DEVICE_SCSI_ID'.
20679
20680 2008-08-26 Robert Millan <rmh@aybabtu.com>
20681
20682 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
20683 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
20684 descriptive.
20685
20686 2008-08-23 Bean <bean123ch@gmail.com>
20687
20688 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
20689 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
20690 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
20691 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
20692 dm_nv.mod.
20693 (raid5rec_mod_SOURCES): New macro.
20694 (raid5rec_mod_CFLAGS): Likewise.
20695 (raid5rec_mod_LDFLAGS): Likewise.
20696 (raid6rec_mod_SOURCES): Likewise.
20697 (raid6rec_mod_CFLAGS): Likewise.
20698 (raid6rec_mod_LDFLAGS): Likewise.
20699 (mdraid_mod_SOURCES): Likewise.
20700 (mdraid_mod_CFLAGS): Likewise.
20701 (mdraid_mod_LDFLAGS): Likewise.
20702 (dm_nv_mod_SOURCES): Likewise.
20703 (dm_nv_mod_CFLAGS): Likewise.
20704 (dm_nv_mod_LDFLAGS): Likewise.
20705
20706 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
20707 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
20708 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
20709
20710 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
20711 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
20712
20713 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20714
20715 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20716
20717 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20718
20719 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20720
20721 * disk/raid5_recover.c: New file.
20722
20723 * disk/raid6_recover.c: Likewise.
20724
20725 * disk/mdraid_linux.c: Likewise.
20726
20727 * disk/dmraid_nvidia.c: Likewise.
20728
20729 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
20730 ULONG_MAX.
20731
20732 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
20733 calculate the size of raid device.
20734 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
20735 different layout of raid5.
20736 (grub_raid_scan_device): Remove code specific to mdraid.
20737 (grub_raid_list): New variable.
20738 (free_array): New function.
20739 (grub_raid_register): Likewise.
20740 (grub_raid_unregister): Likewise.
20741 (grub_raid_rescan): Likewise.
20742 (GRUB_MOD_INIT): Don't iterate device here.
20743 (GRUB_MOD_FINI): Use free_array to release resource.
20744
20745 * include/grub/raid.h: Remove macro and structure specific to mdraid.
20746 (grub_raid5_recover_func_t): New function variable type.
20747 (grub_raid6_recover_func_t): Likewise.
20748 (grub_raid5_recover_func): New variable.
20749 (grub_raid6_recover_func): Likewise.
20750 (grub_raid_register): New function.
20751 (grub_raid_unregister): Likewise.
20752 (grub_raid_rescan): Likewise.
20753 (grub_raid_block_xor): Likewise.
20754
20755 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
20756 (CMD_CRC): New macro.
20757 (part): Removed.
20758 (read_file): Handle device as well as file.
20759 (cmd_crc): New function.
20760 (fstest): Handle multiple disks.
20761 (options): Remove part, raw and long, add root and diskcount.
20762 (usage): Add crc, remove -p, -r, -l, add -r and -c.
20763 (main): Find the first non option entry and ignore subsequent options,
20764 add handling for the new options, support multiple disks.
20765
20766 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
20767
20768 2008-08-23 Bean <bean123ch@gmail.com>
20769
20770 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
20771
20772 * genfslist.sh: Ignore kernel.mod.
20773
20774 * genpartmaplist.sh: Likewise.
20775
20776 2008-08-23 Robert Millan <rmh@aybabtu.com>
20777
20778 * util/getroot.c (find_root_device): Skip anything that starts with
20779 a dot, not just directories. This avoids things like /dev/.tmp.md0.
20780
20781 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
20782
20783 * util/update-grub.in (GRUB_GFXMODE): Export variable.
20784 * util/grub.d/00_header.in: Allow the administrator to change default
20785 gfxmode via ${GRUB_GFXMODE}.
20786
20787 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
20788
20789 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
20790
20791 2008-08-21 Robert Millan <rmh@aybabtu.com>
20792
20793 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
20794 loader.
20795 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
20796 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
20797
20798 2008-08-20 Carles Pina i Estany <carles@pina.cat>
20799
20800 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
20801 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
20802
20803 2008-08-19 Robert Millan <rmh@aybabtu.com>
20804
20805 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
20806 (struct grub_virtual_screen): Remove `cursor_color'.
20807 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
20808 initialization.
20809 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
20810
20811 2008-08-18 Robert Millan <rmh@aybabtu.com>
20812
20813 Unify (identical) linux_normal.c files.
20814 * loader/i386/efi/linux_normal.c: Move from here ...
20815 * loader/linux_normal.c: ... to here. Update all users.
20816 * loader/i386/pc/linux_normal.c: Delete. Update all users.
20817 * loader/i386/ieee1275/linux_normal.c: Likewise.
20818
20819 2008-08-18 Robert Millan <rmh@aybabtu.com>
20820
20821 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
20822 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
20823 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
20824 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
20825 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
20826 New macros.
20827 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
20828 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
20829 (GRUB_LINUX_CL_END_OFFSET): ... to here.
20830 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
20831 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
20832 (GRUB_EFI_CL_END_OFFSET): Rename to ...
20833 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
20834 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
20835 Initialize `params->video_cursor_x' and `params->video_cursor_y'
20836 portably using grub_getxy().
20837 Replace `-EFI' with `-bzImage' in boot message.
20838
20839 2008-08-17 Robert Millan <rmh@aybabtu.com>
20840
20841 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
20842
20843 2008-08-17 Robert Millan <rmh@aybabtu.com>
20844
20845 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
20846
20847 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
20848 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
20849 (grub_machine_mmap_iterate): New function declaration.
20850 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
20851 structure.
20852 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
20853 macros.
20854
20855 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
20856 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
20857 Move e820 parsing from here ...
20858 * kern/i386/pc/mmap.c: New file.
20859 (grub_machine_mmap_iterate): ... to here.
20860
20861 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
20862 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
20863 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
20864 (grub_available_iterate): Redeclare to return `void', and redeclare
20865 its hook to use grub_uint64_t as addr and size parameters, and rename
20866 to ...
20867 (grub_machine_mmap_iterate): ... this. Update all users.
20868
20869 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
20870 to make it more readable. Rename to ...
20871 (grub_machine_mmap_iterate): ... this.
20872
20873 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
20874 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
20875 (grub_multiboot): Allocate an extra region after the payload, and fill
20876 it with a Multiboot memory map. Adjust a.out loader to calculate size
20877 with the extra space.
20878 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
20879 with the extra space.
20880
20881 2008-08-17 Carles Pina i Estany <carles@pina.cat>
20882
20883 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
20884
20885 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
20886
20887 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
20888 mdate-sh to the list `find' searches for.
20889 * DISTLIST: Regenerated.
20890
20891 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
20892
20893 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
20894 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
20895 genmoddep.awk, gensymlist.sh.in.
20896 (DISTDIRS): Add bus, docs, hook, lib.
20897 * DISTLIST: Regenerated.
20898 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
20899
20900 2008-08-16 Robert Millan <rmh@aybabtu.com>
20901
20902 * disk/raid.c (grub_raid_init): Handle/report errors set by
20903 grub_device_iterate().
20904 * disk/lvm.c (grub_lvm_init): Likewise.
20905
20906 2008-08-15 Bean <bean123ch@gmail.com>
20907
20908 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
20909 and datehook.mod.
20910 (datetime_mod_SOURCES): New macro.
20911 (datetime_mod_CFLAGS): Likewise.
20912 (datetime_mod_LDFLAGS): Likewise.
20913 (date_mod_SOURCES): Likewise.
20914 (date_mod_CFLAGS): Likewise.
20915 (date_mod_LDFLAGS): Likewise.
20916 (datehook_mod_SOURCES): Likewise.
20917 (datehook_mod_CFLAGS): Likewise.
20918 (datehook_mod_LDFLAGS): Likewise.
20919
20920 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
20921 and datehook.mod.
20922 (datetime_mod_SOURCES): New macro.
20923 (datetime_mod_CFLAGS): Likewise.
20924 (datetime_mod_LDFLAGS): Likewise.
20925 (date_mod_SOURCES): Likewise.
20926 (date_mod_CFLAGS): Likewise.
20927 (date_mod_LDFLAGS): Likewise.
20928 (datehook_mod_SOURCES): Likewise.
20929 (datehook_mod_CFLAGS): Likewise.
20930 (datehook_mod_LDFLAGS): Likewise.
20931
20932 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
20933 and datehook.mod.
20934 (datetime_mod_SOURCES): New macro.
20935 (datetime_mod_CFLAGS): Likewise.
20936 (datetime_mod_LDFLAGS): Likewise.
20937 (date_mod_SOURCES): Likewise.
20938 (date_mod_CFLAGS): Likewise.
20939 (date_mod_LDFLAGS): Likewise.
20940 (datehook_mod_SOURCES): Likewise.
20941 (datehook_mod_CFLAGS): Likewise.
20942 (datehook_mod_LDFLAGS): Likewise.
20943
20944 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
20945 and datehook.mod.
20946 (datetime_mod_SOURCES): New macro.
20947 (datetime_mod_CFLAGS): Likewise.
20948 (datetime_mod_LDFLAGS): Likewise.
20949 (date_mod_SOURCES): Likewise.
20950 (date_mod_CFLAGS): Likewise.
20951 (date_mod_LDFLAGS): Likewise.
20952 (datehook_mod_SOURCES): Likewise.
20953 (datehook_mod_CFLAGS): Likewise.
20954 (datehook_mod_LDFLAGS): Likewise.
20955
20956 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
20957 and datehook.mod.
20958 (datetime_mod_SOURCES): New macro.
20959 (datetime_mod_CFLAGS): Likewise.
20960 (datetime_mod_LDFLAGS): Likewise.
20961 (date_mod_SOURCES): Likewise.
20962 (date_mod_CFLAGS): Likewise.
20963 (date_mod_LDFLAGS): Likewise.
20964 (datehook_mod_SOURCES): Likewise.
20965 (datehook_mod_CFLAGS): Likewise.
20966 (datehook_mod_LDFLAGS): Likewise.
20967
20968 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
20969
20970 * commands/date.c: New file.
20971
20972 * hook/datehook.c: Likewise.
20973
20974 * include/grub/lib/datetime.h: Likewise.
20975
20976 * include/grub/i386/cmos.h: Likewise.
20977
20978 * lib/datetime.c: Likewise.
20979
20980 * lib/i386/datetime.c: Likewise.
20981
20982 * lib/efi/datetime.c: Likewise.
20983
20984 2008-08-14 Robert Millan <rmh@aybabtu.com>
20985
20986 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
20987 (grub_mkelfimage_SOURCES): New variable.
20988 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
20989
20990 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
20991 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
20992 * conf/powerpc-ieee1275.rmk: Likewise.
20993 * conf/i386-ieee1275.rmk: Likewise.
20994
20995 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
20996 * kern/i386/coreboot/init.c: Likewise.
20997
20998 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
20999 with `<grub/cpu/kernel.h>'.
21000 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
21001 to ...
21002 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
21003 * kern/i386/coreboot/startup.S: Likewise.
21004
21005 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
21006 (GRUB_MOD_GAP): Remove.
21007 * include/grub/powerpc/kernel.h: New file.
21008 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
21009 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
21010 * include/grub/i386/kernel.h: New file.
21011 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
21012 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
21013 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
21014
21015 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
21016 `grub-mkelfimage'.
21017 Use --directory when invoking grub_mkimage.
21018
21019 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
21020 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
21021 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
21022 and GRUB_KERNEL_CPU_PREFIX.
21023
21024 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
21025
21026 * include/grub/err.h (grub_err_printf): New function prototype.
21027 * util/misc.c (grub_err_printf): New function.
21028 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
21029 grub_printf.
21030 * kern/err.c (grub_print_error): Use grub_err_printf.
21031
21032 2008-08-13 Robert Millan <rmh@aybabtu.com>
21033
21034 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
21035
21036 2008-08-13 Robert Millan <rmh@aybabtu.com>
21037
21038 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
21039 boot entry.
21040
21041 2008-08-12 Robert Millan <rmh@aybabtu.com>
21042
21043 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
21044 of the relocation code from here ...
21045 (grub_multiboot): ... to here.
21046 (forward_relocator, backward_relocator): Move from here ...
21047 * kern/i386/loader.S (grub_multiboot_forward_relocator)
21048 (grub_multiboot_backward_relocator): ... to here.
21049 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
21050 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
21051 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
21052 (grub_multiboot_forward_relocator_end)
21053 (grub_multiboot_backward_relocator)
21054 (grub_multiboot_backward_relocator_end): New variables.
21055
21056 2008-08-12 Bean <bean123ch@gmail.com>
21057
21058 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
21059
21060 2008-08-11 Robert Millan <rmh@aybabtu.com>
21061
21062 * kern/i386/linuxbios/startup.S: Move from here ...
21063 * kern/i386/coreboot/startup.S: ... to here.
21064
21065 * kern/i386/linuxbios/init.c: Move from here ...
21066 * kern/i386/coreboot/init.c: ... to here.
21067
21068 * kern/i386/linuxbios/table.c: Move from here ...
21069 * kern/i386/coreboot/mmap.c: ... to here.
21070
21071 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
21072
21073 2008-08-11 Robert Millan <rmh@aybabtu.com>
21074
21075 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
21076 errors. Leave it to the upper layer to handle them.
21077
21078 2008-08-09 Christian Franke <franke@computer.org>
21079
21080 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
21081 * conf/common.rmk: Install `grub-pe2elf' only if requested.
21082 Install `grub.d/10_windows' only on Cygwin.
21083 * configure.ac: Add subst of `target_os'.
21084 Check `target_os' also before setting TARGET_OBJ2ELF.
21085 Add `--enable-grub-pe2elf'.
21086
21087 2008-08-08 Robert Millan <rmh@aybabtu.com>
21088
21089 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
21090 (grub_last_time): Change type to grub_uint64_t.
21091 (grub_disk_open): Migrate code from to using grub_get_time_ms().
21092 (grub_disk_close): Likewise.
21093
21094 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
21095 (run_menu): Migrate code from to using grub_get_time_ms().
21096
21097 * util/misc.c (grub_get_time_ms): New function.
21098
21099 2008-08-08 Marco Gerards <marco@gnu.org>
21100
21101 * disk/ata.c (grub_ata_regget): Change return type to
21102 `grub_uint8_t'.
21103 (grub_ata_regget2): Likewise.
21104 (grub_ata_wait_status): New function.
21105 (grub_ata_wait_busy): Removed function, updated all users to use
21106 `grub_ata_wait_status'.
21107 (grub_ata_wait_drq): Likewise.
21108 (grub_ata_cmd): New function.
21109 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
21110 error handling.
21111 (grub_ata_pio_write): Add error handling.
21112 (grub_atapi_identify): Likewise.
21113 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
21114 handling.
21115 (grub_ata_identify): Use `grub_ata_cmd' and improve error
21116 handling. Actually use the detected registers. Reorder the
21117 detection logic such that it is easier to read.
21118 (grub_ata_pciinit): Do not assign the same ID to each controller.
21119 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
21120 handling.
21121 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
21122
21123 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
21124
21125 2008-08-08 Marco Gerards <marco@gnu.org>
21126
21127 * NEWS: Update.
21128
21129 2008-08-07 Bean <bean123ch@gmail.com>
21130
21131 * include/grub/x86_64/pci.h: New file.
21132
21133 2008-08-07 Christian Franke <franke@computer.org>
21134
21135 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
21136 (TIMER2_GATE): Likewise.
21137 (grub_pit_wait): Add enable/disable of the timer2 gate
21138 bit of port 0x61. This fixes a possible infinite loop.
21139
21140 2008-08-07 Bean <bean123ch@gmail.com>
21141
21142 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
21143 kern/i386/tsc.c and kern/i386/pit.c.
21144
21145 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
21146 x86_64 platform.
21147
21148 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
21149 <grub/i386/tsc.h>.
21150
21151 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
21152
21153 2008-08-07 Bean <bean123ch@gmail.com>
21154
21155 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
21156
21157 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
21158
21159 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
21160 multiple inclusion. Add #include <grub/types.h>.
21161
21162 2008-08-06 Christian Franke <franke@computer.org>
21163
21164 * conf/common.rmk: Build and install `10_windows'.
21165 * util/grub.d/10_windows.in: New script.
21166
21167 2008-08-06 Pavel Roskin <proski@gnu.org>
21168
21169 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
21170
21171 2008-08-06 Robert Millan <rmh@aybabtu.com>
21172
21173 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
21174 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
21175
21176 2008-08-06 Bean <bean123ch@gmail.com>
21177
21178 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
21179 (grub_pxefs_fs_int): Remove dummy definition.
21180 (grub_pxefs_open): Use data->block_size to store the current block
21181 size setting.
21182 (grub_pxefs_read): Use block size stored in data->block_size. As the
21183 value of grub_pxe_blksize can be changed after the file is opened.
21184
21185 2008-08-06 Bean <bean123ch@gmail.com>
21186
21187 * fs/i386/pc/pxe.c (curr_file): new variable.
21188 (grub_pxefs_open): Simply the handling of pxe file system. Don't
21189 require the dummy internal file system anymore.
21190 (grub_pxefs_read): Removed.
21191 (grub_pxefs_close): Likewise.
21192 (grub_pxefs_fs_int): Likewise.
21193 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
21194 connection when we switch file.
21195 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
21196
21197 2008-08-06 Robert Millan <rmh@aybabtu.com>
21198
21199 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
21200 `halt.mod'.
21201 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
21202 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
21203
21204 * kern/i386/halt.c: New file.
21205 * kern/i386/reboot.c: Likewise.
21206 * include/grub/i386/reboot.h: Likewise.
21207 * include/grub/i386/halt.h: Likewise.
21208
21209 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
21210 Include `<grub/cpu/halt.h>'.
21211 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
21212 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
21213
21214 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
21215 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
21216 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
21217 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
21218 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
21219 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
21220 from here ...
21221 * include/grub/i386/at_keyboard.h: ... to here.
21222
21223 2008-08-05 Robert Millan <rmh@aybabtu.com>
21224
21225 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
21226 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
21227 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
21228 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
21229 `kern/generic/millisleep.c'.
21230
21231 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
21232 instead of grub_get_rtc().
21233 (grub_tsc_init): Initialize `tsc_boot_time'.
21234
21235 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
21236 (grub_machine_init): Use grub_tsc_init() rather than
21237 installing an RTC-based handler via grub_install_get_time_ms().
21238
21239 * kern/i386/pit.c: New file.
21240 * include/grub/i386/pit.h: Likewise.
21241
21242 2008-08-05 Bean <bean123ch@gmail.com>
21243
21244 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
21245
21246 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
21247 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
21248 (pxe_mod_SOURCES): New macro.
21249 (pxe_mod_CFLAGS): Likewise.
21250 (pxe_mod_LDFLAGS): Likewise.
21251 (pxecmd_mod_SOURCES): Likewise.
21252 (pxecmd_mod_CFLAGS): Likewise.
21253 (pxecmd_mod_LDFLAGS): Likewise.
21254
21255 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
21256 (grub_pxe_call): Likewise.
21257
21258 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
21259
21260 * commands/i386/pc/pxecmd.c: New file.
21261
21262 * fs/i386/pc/pxe.c: Likewise.
21263
21264 * include/grub/i386/pc/pxe.h: Likewise.
21265
21266 2008-08-05 Bean <bean123ch@gmail.com>
21267
21268 * util/console.c (grub_console_cur_color): New variable.
21269 (grub_console_standard_color): Likewise.
21270 (grub_console_normal_color): Likewise.
21271 (grub_console_highlight_color): Likewise.
21272 (color_map): Likewise.
21273 (use_color): Likewise.
21274 (NUM_COLORS): New macro.
21275 (grub_ncurses_setcolorstate): Handle color properly.
21276 (grub_ncurses_setcolor): Don't change color here, just remember the
21277 settings, color will be set in grub_ncurses_setcolorstate.
21278 (grub_ncurses_getcolor): New function.
21279 (grub_ncurses_init): Initialize color pairs.
21280 (grub_ncurses_term): New member grub_ncurses_getcolor.
21281
21282 2008-08-05 Colin D Bennett <colin@gibibit.com>
21283
21284 High resolution timer support. Implemented for x86 CPUs using TSC.
21285 Extracted generic grub_millisleep() so it's linked in only as needed.
21286 This requires a Pentium compatible CPU; if the RDTSC instruction is
21287 not supported, then it falls back on the generic grub_get_time_ms()
21288 implementation that uses the machine's RTC.
21289
21290 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
21291 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
21292 `kern/generic/millisleep.c'.
21293
21294 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
21295 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
21296
21297 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
21298 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
21299
21300 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
21301
21302 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
21303 `kern/generic/millisleep.c'.
21304
21305 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
21306
21307 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
21308
21309 * kern/generic/rtc_get_time_ms.c: New file.
21310
21311 * kern/generic/millisleep.c: New file.
21312
21313 * kern/misc.c: Don't include
21314 <kern/time.h> anymore.
21315 (grub_millisleep_generic): Removed.
21316
21317 * commands/sleep.c (grub_interruptible_millisleep): Uses
21318 grub_get_time_ms() instead of grub_get_rtc().
21319
21320 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
21321 function.
21322 (grub_cpu_is_cpuid_supported): New inline function.
21323 (grub_cpu_is_tsc_supported): New inline function.
21324 (grub_tsc_init): New function prototype.
21325 (grub_tsc_get_time_ms): New function prototype.
21326
21327 * kern/i386/tsc.c (grub_get_time_ms): New file.
21328
21329 * include/grub/time.h: Include <grub/types.h.
21330 (grub_millisleep_generic): Removed.
21331 (grub_get_time_ms): New prototype.
21332 (grub_install_get_time_ms): New prototype.
21333 (grub_rtc_get_time_ms): New prototype.
21334
21335 * kern/time.c (grub_get_time_ms): New function.
21336 (grub_install_get_time_ms): New function.
21337
21338 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
21339 <grub/time.h> anymore.
21340 (grub_millisleep): Removed.
21341 (grub_machine_init): Call grub_tsc_init.
21342
21343 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
21344 get_time_ms() implementation.
21345
21346 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
21347 (ieee1275_get_time_ms): New function.
21348 (grub_machine_init): Install get_time_ms() implementation.
21349
21350 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
21351 (grub_machine_init): Call grub_tsc_init().
21352 (grub_millisleep): Removed.
21353
21354 * kern/ieee1275/init.c (grub_millisleep): Removed.
21355 (grub_machine_init): Install ieee1275_get_time_ms()
21356 implementation.
21357 (ieee1275_get_time_ms): New function.
21358 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
21359 real work.
21360
21361 2008-08-05 Marco Gerards <marco@gnu.org>
21362
21363 * disk/ata.c: Include <grub/pci.h>.
21364 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
21365 (grub_ata_initialize): Rewritten.
21366 (grub_ata_device_initialize): New function.
21367
21368 2008-08-04 Pavel Roskin <proski@gnu.org>
21369
21370 * kern/main.c: Include grub/mm.h.
21371
21372 2008-08-04 Robert Millan <rmh@aybabtu.com>
21373
21374 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
21375 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
21376 corruption problem).
21377
21378 2008-08-04 Robert Millan <rmh@aybabtu.com>
21379
21380 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
21381 warnings introduced in my last commit.
21382
21383 2008-08-03 Robert Millan <rmh@aybabtu.com>
21384
21385 Make PCI available on all i386 architectures.
21386
21387 * include/grub/i386/pc/pci.h: Move from here ...
21388 * include/grub/i386/pci.h: ... to here.
21389
21390 * include/grub/i386/pc/pci.h: Remove.
21391 * include/grub/i386/efi/pci.h: Remove.
21392 * include/grub/x86_64/efi/pci.h: Remove.
21393
21394 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
21395 `<grub/cpu/pci.h>'.
21396
21397 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
21398 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
21399 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
21400
21401 * conf/i386-ieee1275.rmk: Likewise.
21402
21403 2008-08-03 Robert Millan <rmh@aybabtu.com>
21404
21405 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
21406 (grub_console_setcursor): Make it possible to set cursor off.
21407
21408 2008-08-03 Robert Millan <rmh@aybabtu.com>
21409
21410 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
21411 of modules instead of assuming which platform provides what.
21412 * util/update-grub.in: Likewise.
21413
21414 2008-08-03 Robert Millan <rmh@aybabtu.com>
21415
21416 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
21417 instead of `grub_install_dos_part' to determine whether a drive needs
21418 to be prepended to prefix (`grub_install_dos_part' is not reliable,
21419 because it can be overridden when loading GRUB via Multiboot).
21420
21421 2008-08-02 Robert Millan <rmh@aybabtu.com>
21422
21423 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
21424
21425 2008-08-02 Robert Millan <rmh@aybabtu.com>
21426
21427 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
21428 of informational grub_dprintf() calls.
21429
21430 2008-08-02 Robert Millan <rmh@aybabtu.com>
21431
21432 * disk/memdisk.c (memdisk_size): Don't initialize.
21433 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
21434
21435 * include/grub/i386/pc/kernel.h
21436 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
21437 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
21438 (grub_memdisk_image_size, grub_arch_memdisk_addr)
21439 (grub_arch_memdisk_size): Remove.
21440
21441 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
21442 field (was only used to transfer a constant). Add `type' field to
21443 support multiple module types.
21444 (grub_module_iterate): New function.
21445
21446 * kern/device.c (grub_device_open): Do not hide error messages
21447 when grub_disk_open() fails. Use grub_print_error() instead.
21448
21449 * kern/i386/pc/init.c (grub_arch_modules_addr)
21450 (grub_arch_memdisk_size): Remove functions.
21451 (grub_arch_modules_addr): Return the module address in high memory
21452 (now that it isn't copied anymore).
21453
21454 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
21455 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
21456 decompression routine (grub_total_module_size already includes that
21457 now). Don't copy modules back to low memory.
21458
21459 * kern/main.c: Include `<grub/mm.h>'.
21460 (grub_load_modules): Split out (and use) ...
21461 (grub_module_iterate): ... this function, which iterates through
21462 module objects and runs a hook.
21463 Comment out grub_mm_init_region() call, as it would cause non-ELF
21464 modules to be overwritten.
21465
21466 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
21467 the memdisk image in its own region, make it part of the module list.
21468 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
21469 (main): Parse --memdisk|-m option, and pass user-provided path as
21470 parameter to generate_image().
21471 (add_segments): Pass `memdisk_path' down to load_modules().
21472 (load_modules): Embed memdisk image in module section when requested.
21473 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
21474 `header.type' instead of `header.offset'.
21475
21476 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
21477 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
21478 (memdisk_mod_LDFLAGS): New variables.
21479 * conf/i386-coreboot.rmk: Likewise.
21480 * conf/i386-ieee1275.rmk: Likewise.
21481
21482 2008-08-02 Robert Millan <rmh@aybabtu.com>
21483
21484 * loader/i386/pc/multiboot.c (playground, forward_relocator)
21485 (backward_relocator): New variables. Used to allocate and relocate
21486 the payload, respectively.
21487 (grub_multiboot_load_elf32): Load into heap instead of requested
21488 address, install the appropriate relocator code in each bound of
21489 the payload, and set the entry point such that
21490 grub_multiboot_real_boot() will jump to one of them.
21491
21492 * kern/i386/loader.S (grub_multiboot_payload_size)
21493 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
21494 (grub_multiboot_payload_entry_offset): New variables.
21495 (grub_multiboot_real_boot): Set cpu context to what the relocator
21496 expects, and jump to the relocator instead of the payload.
21497
21498 * include/grub/i386/loader.h (grub_multiboot_payload_size)
21499 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
21500 (grub_multiboot_payload_entry_offset): Export.
21501
21502 2008-08-01 Bean <bean123ch@gmail.com>
21503
21504 * normal/menu_entry.c (editor_getline): Don't return the original
21505 string as result, as it will be released by lexer once it has done
21506 using it.
21507
21508 2008-08-01 Robert Millan <rmh@aybabtu.com>
21509
21510 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
21511 within menuentries, not before them.
21512 util/grub.d/10_hurd.in: Likewise.
21513
21514 2008-08-01 Bean <bean123ch@gmail.com>
21515
21516 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
21517 (bufio_mod_SOURCES): New macro.
21518 (bufio_mod_CFLAGS): Likewise.
21519 (bufio_mod_LDFLAGS): Likewise.
21520
21521 * include/grub/bufio.h: New file.
21522
21523 * io/bufio.c: Likewise.
21524
21525 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
21526 (grub_video_reader_png): Use grub_buffile_open to open file.
21527
21528 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
21529 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
21530
21531 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
21532 (grub_video_reader_tga): Use grub_buffile_open to open file.
21533
21534 * font/manager.c: Include <grub/bufio.h>.
21535 (add_font): Use grub_buffile_open to open file.
21536
21537 2008-07-31 Robert Millan <rmh@aybabtu.com>
21538
21539 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
21540 ELF segments, use a macro for arbitrarily accessing any of them instead
21541 of preparing a pointer that allows access to one at a time.
21542 (grub_multiboot_load_elf64): Likewise.
21543
21544 2008-07-31 Bean <bean123ch@gmail.com>
21545
21546 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
21547 GRUB_KERNEL_MACHINE_DATA_END.
21548
21549 2008-07-30 Robert Millan <rmh@aybabtu.com>
21550
21551 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
21552 Increase from 0x50 to 0x60.
21553 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
21554 use UUIDs to identify the root drive for them. If that's not
21555 possible, abort.
21556 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
21557 check, for cross-disk installs.
21558
21559 2008-07-30 Robert Millan <rmh@aybabtu.com>
21560
21561 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
21562 is non-empty, use it to set the `prefix' environment variable instead
21563 of the usual approach.
21564 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
21565 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
21566 environment variable instead of dummy make_install_device().
21567
21568 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
21569 (start): Insert a data section, with `grub_prefix' variable.
21570 * kern/i386/linuxbios/startup.S: Likewise.
21571
21572 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
21573 New variable reference.
21574 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
21575 New macro. Defines offset of `grub_prefix' within startup.S (relative
21576 to `start').
21577 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
21578 section within startup.S (relative to `start').
21579 * include/grub/i386/coreboot/kernel.h: Likewise.
21580
21581 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
21582 Overwrite grub_prefix with its contents, at the beginning of the
21583 first segment.
21584 (main): Understand -p|--prefix.
21585
21586 2008-07-30 Robert Millan <rmh@aybabtu.com>
21587
21588 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
21589
21590 2008-07-30 Robert Millan <rmh@aybabtu.com>
21591
21592 * term/i386/pc/vga_text.c (grub_console_cls): Use
21593 grub_console_gotoxy() to go back to beginning of the screen.
21594 Found by Patrick Georgi <patrick.georgi@coresystems.de>
21595
21596 2008-07-29 Christian Franke <franke@computer.org>
21597
21598 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
21599 Add conversion of emulated mount points on Cygwin.
21600
21601 2008-07-29 Christian Franke <franke@computer.org>
21602
21603 * util/update-grub.in: Add a check for admin
21604 group on Cygwin.
21605 Remove old `grub.cfg.new' before creation.
21606 Add `-f' to `mv' to handle the different filesystem
21607 semantics of Windows.
21608
21609 2008-07-29 Bean <bean123ch@gmail.com>
21610
21611 * normal/main.c (get_line): Fix buffer overflow bug.
21612
21613 2008-07-28 Robert Millan <rmh@aybabtu.com>
21614
21615 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
21616 (struct grub_apple_header): New struct. Describes the layout of
21617 the partmap header.
21618 (apple_partition_map_iterate): Check the header magic as well as the
21619 partition magic (which was already being checked).
21620
21621 2008-07-28 Pavel Roskin <proski@gnu.org>
21622
21623 * genmk.rb: Add a warning to the beginning of the output that
21624 it's a generated file and should not be edited.
21625
21626 2008-07-28 Robert Millan <rmh@aybabtu.com>
21627
21628 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
21629 with the same number are found, just use issue a warning with
21630 grub_dprintf(), as this error has been reported to be non-fatal.
21631
21632 2008-07-27 Robert Millan <rmh@aybabtu.com>
21633
21634 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
21635 information.
21636
21637 2008-07-27 Bean <bean123ch@gmail.com>
21638
21639 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
21640 (grub_fat_find_dir): Ignore case when comparing filename.
21641
21642 2008-07-27 Bean <bean123ch@gmail.com>
21643
21644 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
21645 smallino, as it's more descriptive, and i8count can be confused with
21646 the other field count.
21647 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
21648 inode type.
21649
21650 2008-07-27 Bean <bean123ch@gmail.com>
21651
21652 * commands/crc.c: New file.
21653
21654 * lib/crc.c: Likewise.
21655
21656 * include/grub/lib/crc.h: Likewise.
21657
21658 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
21659
21660 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
21661 (hexdump): Move this function to ...
21662
21663 * lib/hexdump.c: ... here.
21664
21665 * include/grub/hexdump.h: Renamed to ...
21666
21667 * include/grub/lib/hexdump.h: ... this.
21668
21669 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
21670
21671 * util/grub-editenv.c: Likewise.
21672
21673 * include/envblk.h: Renamed to ...
21674
21675 * include/lib/envblk.h: ... this.
21676
21677 * util/envblk.c: Renamed to ...
21678
21679 * lib/envblk.c: ... this.
21680
21681 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
21682 lib/hexdump.c.
21683 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
21684 (pkglib_MODULES): Add crc.mod.
21685 (hexdump_mod_SOURCES): Add lib/hexdump.c.
21686 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
21687 (crc_mod_SOURCES): New macro.
21688 (crc_mod_CFLAGS): Likewise.
21689 (crc_mod_LDFLAGS): Likewise.
21690
21691 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
21692
21693 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21694
21695 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21696
21697 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21698
21699 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21700
21701 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
21702
21703 * commands/help.c: Include <grub/term.h>.
21704 (TERM_WIDTH): Removed. Updated all users.
21705
21706 2008-07-27 Pavel Roskin <proski@gnu.org>
21707
21708 * util/getroot.c (find_root_device): Rephrase a comment to avoid
21709 spurious warnings about a comment within a comment.
21710
21711 2008-07-25 Robert Millan <rmh@aybabtu.com>
21712
21713 * util/getroot.c (find_root_device): Skip devices that match
21714 /dev/dm-[0-9]. This lets the real device be found for any type of
21715 abstraction (LVM, EVMS, RAID..).
21716 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
21717 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
21718 device is found first, find_root_device() will now skip it.
21719
21720 2008-07-24 Pavel Roskin <proski@gnu.org>
21721
21722 * include/grub/types.h: Use __builtin_bswap32() and
21723 __builtin_bswap64() with gcc 4.3 and newer.
21724
21725 2008-07-24 Christian Franke <franke@computer.org>
21726
21727 * util/i386/pc/grub-install.in: If `--debug' is specified,
21728 pass `--verbose' to grub-setup.
21729 Abort script if make_system_path_relative_to_its_root() fails.
21730
21731 2008-07-24 Bean <bean123ch@gmail.com>
21732
21733 * configure.ac: Fixed a bug caused by the previous cygwin patch,
21734 variable `target_platform' should be `platform'.
21735
21736 2008-07-24 Bean <bean123ch@gmail.com>
21737
21738 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
21739 (grub_png_init_fixed_block): New function.
21740 (grub_png_decode_image_data): Handle fixed huffman code compression.
21741
21742 2008-07-24 Bean <bean123ch@gmail.com>
21743
21744 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
21745 (grub_pe2elf_SOURCES): New macro.
21746 (CLEANFILES): Add grub-pe2elf.
21747
21748 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
21749 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
21750 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
21751 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
21752 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
21753 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
21754 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
21755 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
21756 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
21757 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
21758 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
21759 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
21760 (GRUB_PE32_DT_FUNCTION): Likewise.
21761 (GRUB_PE32_REL_I386_DIR32): Likewise.
21762 (GRUB_PE32_REL_I386_REL32): Likewise.
21763 (grub_pe32_symbol): New structure.
21764 (grub_pe32_reloc): Likewise.
21765
21766 * util/grub-pe2elf.c: New file.
21767
21768 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
21769 start symbol in non pc platform.
21770
21771 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
21772
21773 The following patches are from Christian Franke.
21774
21775 * include/grub/dl.h: Remove .previous, gas supports this only
21776 for ELF format.
21777
21778 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
21779 Remove .type, gas supports this only for ELF format.
21780
21781 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
21782 nullbytes in symbol table. This fixes an infinite loop if table is
21783 zero filled.
21784
21785 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
21786 TARGET_IMG_LDFLAGS and EXEEXT.
21787
21788 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
21789 TARGET_IMG_LDFLAGS_AC.
21790 (grub_CHECK_STACK_ARG_PROBE): New function.
21791
21792 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
21793
21794 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
21795
21796 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
21797 to set TARGET_IMG_LD* accordingly.
21798 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
21799 Add call to grub_CHECK_STACK_ARG_PROBE.
21800 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
21801
21802 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
21803
21804 * genmk.rb: Add EXEEXT to CLEANFILES.
21805
21806 2008-07-23 Robert Millan <rmh@aybabtu.com>
21807
21808 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
21809 define the codes for arrows and lines used for the menu).
21810 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
21811 as well.
21812
21813 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
21814 fonts, because the latter are too slow.
21815
21816 2008-07-21 Bean <bean123ch@gmail.com>
21817
21818 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
21819 a20. Run keyboard test last, as it will cause macbook to halt.
21820
21821 2008-07-18 Pavel Roskin <proski@gnu.org>
21822
21823 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
21824 load foreign architecture modules correctly anyway. Keep
21825 support for loading host architecture modules, whether we
21826 compile them or not.
21827
21828 2008-07-17 Pavel Roskin <proski@gnu.org>
21829
21830 * configure.ac: Use -m32 or -m64 regardless of whether we had to
21831 change target_cpu. The compiler default can mismatch target_cpu
21832 in any case.
21833
21834 * disk/efi/efidisk.c: Fix format warnings on x86_64.
21835 * kern/efi/efi.c: Likewise.
21836
21837 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
21838 target compiler is functional.
21839 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
21840 are set up.
21841
21842 * configure.ac: Default to efi platform for x86_64-apple. Allow
21843 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
21844 adjustments from the rest, only do them if target is not
21845 explicitly given. Merge other adjustments with the final sanity
21846 check. Remove an extraneous check for supported CPU. Be
21847 specific which CPU and which platform is not supported.
21848
21849 * configure.ac: Default to pc platform for x86_64.
21850
21851 2008-07-17 Robert Millan <rmh@aybabtu.com>
21852
21853 Partial LinuxBIOS -> Coreboot rename.
21854
21855 * conf/i386-linuxbios.rmk: Renamed to ...
21856 * conf/i386-coreboot.rmk: ... this.
21857 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
21858 * configure.ac: Accept "coreboot" as input platform (but maintain
21859 compatibility with "linuxbios").
21860 * include/grub/i386/linuxbios: Renamed to ...
21861 * include/grub/i386/coreboot: ... this.
21862
21863 2008-07-17 Bean <bean123ch@gmail.com>
21864
21865 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
21866 (appleldr_mod_SOURCE): New variable.
21867 (appleldr_mod_CFLAGS): Likewise.
21868 (appleldr_mod_LDFLAGS): Likewise.
21869 (pci_mod_SOURCES): Likewise.
21870 (pci_mod_CFLAGS): Likewise.
21871 (pci_mod_LDFLAGS): Likewise.
21872 (lspci_mod_SOURCES): Likewise.
21873 (lspci_mod_CFLAGS): Likewise.
21874 (lspci_mod_LDFLAGS): Likewise.
21875
21876 * conf/x86_64-efi.rmk: New file.
21877
21878 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
21879 macro.
21880 (grub_efidisk_write): Likewise.
21881
21882 * include/efi/api.h (efi_call_0): New macro.
21883 (efi_call_1): Likewise.
21884 (efi_call_2): Likewise.
21885 (efi_call_3): Likewise.
21886 (efi_call_4): Likewise.
21887 (efi_call_5): Likewise.
21888 (efi_call_6): Likewise.
21889
21890 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
21891 grub_rescue_cmd_chainloader.
21892
21893 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
21894 (grub_pe32_optional_header): Change some fields based on i386 or
21895 x86_64 platform.
21896 (GRUB_PE32_PE32_MAGIC): Likewise.
21897
21898 * include/grub/efi/uga_draw.h: New file.
21899
21900 * include/grub/elf.h (STN_ABS): New constant.
21901 (R_X86_64_NONE): Relocation constant for x86_64.
21902 (R_X86_64_64): Likewise.
21903 (R_X86_64_PC32): Likewise.
21904 (R_X86_64_GOT32): Likewise.
21905 (R_X86_64_PLT32): Likewise.
21906 (R_X86_64_COPY): Likewise.
21907 (R_X86_64_GLOB_DAT): Likewise.
21908 (R_X86_64_JUMP_SLOT): Likewise.
21909 (R_X86_64_RELATIVE): Likewise.
21910 (R_X86_64_GOTPCREL): Likewise.
21911 (R_X86_64_32): Likewise.
21912 (R_X86_64_32S): Likewise.
21913 (R_X86_64_16): Likewise.
21914 (R_X86_64_PC16): Likewise.
21915 (R_X86_64_8): Likewise.
21916 (R_X86_64_PC8): Likewise.
21917
21918 * include/grub/i386/efi/pci.h: New file.
21919
21920 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
21921 Change it value based on platform.
21922 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
21923 (GRUB_E820_RAM): Likewise.
21924 (GRUB_E820_RESERVED): Likewise.
21925 (GRUB_E820_ACPI): Likewise.
21926 (GRUB_E820_NVS): Likewise.
21927 (GRUB_E820_EXEC_CODE): Likewise.
21928 (GRUB_E820_MAX_ENTRY): Likewise.
21929 (grub_e820_mmap): New structure.
21930 (linux_kernel_header): Change the efi field according to different
21931 kernel version, also field from linux_kernel_header.
21932
21933 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
21934
21935 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
21936 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
21937 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
21938 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
21939 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
21940 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
21941 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
21942 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
21943 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
21944 (GRUB_PCI_ADDR_IO_MASK): Likewise.
21945
21946 * include/grub/x86_64/efi/kernel.h: New file.
21947
21948 * include/grub/x86_64/efi/loader.h: Likewise.
21949
21950 * include/grub/x86_64/efi/machine.h: Likewise.
21951
21952 * include/grub/x86_64/efi/pci.h: Likewise.
21953
21954 * include/grub/x86_64/efi/time.h: Likewise.
21955
21956 * include/grub/x86_64/linux.h: Likewise.
21957
21958 * include/grub/x86_64/setjmp.h: Likewise.
21959
21960 * include/grub/x86_64/time.h: Likewise.
21961
21962 * include/grub/x86_64/types.h: Likewise.
21963
21964 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
21965 GRUB_TARGET_SIZEOF_VOID_P.
21966
21967 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
21968 (grub_efi_locate_handle): Likewise.
21969 (grub_efi_open_protocol): Likewise.
21970 (grub_efi_set_text_mode): Likewise.
21971 (grub_efi_stall): Likewise.
21972 (grub_exit): Likewise.
21973 (grub_reboot): Likewise.
21974 (grub_halt): Likewise.
21975 (grub_efi_exit_boot_services): Likewise.
21976 (grub_get_rtc): Likewise.
21977
21978 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
21979 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
21980 (grub_efi_allocate_pages): Wrap efi calls.
21981 (grub_efi_free_pages): Wrap efi calls.
21982 (grub_efi_get_memory_map): Wrap efi calls.
21983
21984 * kern/x86_64/dl.c: New file.
21985
21986 * kern/x86_64/efi/callwrap.S: Likewise.
21987
21988 * kern/x86_64/efi/startup.S: Likewise.
21989
21990 * loader/efi/appleloader.c: Likewise.
21991
21992 * loader/efi/chainloader.c (cmdline): New variable.
21993 (grub_chainloader_unload): Wrap efi calls.
21994 (grub_chainloader_boot): Likewise.
21995 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
21996 command line.
21997
21998 * loader/efi/chainloader_normal.c (chainloader_command):
21999 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
22000 command line.
22001
22002 * loader/i386/efi/linux.c (allocate_pages): Change allocation
22003 method.
22004 (grub_e820_add_region): New function.
22005 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
22006 booting.
22007 (grub_find_video_card): New function.
22008 (grub_linux_setup_video): New function.
22009 (grub_rescue_cmd_linux): Probe for video information.
22010
22011 * normal/x86_64/setjmp.S: New file.
22012
22013 * term/efi/console.c (map_char): New function.
22014 (grub_console_putchar): Map unicode char.
22015 (grub_console_checkkey): Wrap efi calls.
22016 (grub_console_getkey): Likewise.
22017 (grub_console_getwh): Likewise.
22018 (grub_console_gotoxy): Likewise.
22019 (grub_console_cls): Likewise.
22020 (grub_console_setcolorstate): Likewise.
22021 (grub_console_setcursor): Likewise.
22022
22023 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
22024
22025 2008-07-16 Pavel Roskin <proski@gnu.org>
22026
22027 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
22028 format strings.
22029
22030 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
22031 pointer, not an integer. This fixes a warning and prevents
22032 precision loss on 64-bit systems.
22033 (relocate_addresses): Remove unneeded cast.
22034
22035 2008-07-15 Pavel Roskin <proski@gnu.org>
22036
22037 * kern/i386/ieee1275/init.c: Include grub/cache.h.
22038
22039 * term/ieee1275/ofconsole.c: Disable code unused on i386.
22040
22041 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
22042 Fix comparison between signed and unsigned.
22043
22044 * include/grub/i386/ieee1275/console.h: Declare
22045 grub_console_init() and grub_console_fini().
22046
22047 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
22048 It's empty and unused.
22049
22050 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
22051 beginning to avoid warnings with some compilers.
22052
22053 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
22054 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
22055
22056 2008-07-14 Pavel Roskin <proski@gnu.org>
22057
22058 * kern/env.c (grub_register_variable_hook): Don't copy empty
22059 string, it leaks memory. Pass "" to grub_env_set(), it should
22060 handle constant strings.
22061
22062 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
22063 * commands/cmp.c (grub_cmd_cmp): Likewise.
22064 * kern/dl.c (grub_dl_flush_cache): Likewise.
22065 (grub_dl_load_core): Likewise.
22066 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
22067 (grub_elf64_load_phdrs): Likewise.
22068
22069 2008-07-13 Pavel Roskin <proski@gnu.org>
22070
22071 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
22072 between signed and unsigned.
22073 (LzmaEnc_Finish): Fix warning about an unused parameter.
22074
22075 2008-07-13 Bean <bean123ch@gmail.com>
22076
22077 * Makefile.in (enable_lzo): New rule.
22078
22079 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
22080
22081 * configure.ac (ENABLE_LZO): New option --enable-lzo.
22082
22083 * boot/i386/pc/lnxboot.S: #include <config.h>.
22084
22085 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
22086 its value according to the compression algorithm used, lzo or lzma.
22087
22088 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
22089 compression algorithm according to configure macro.
22090
22091 * kern/i386/pc/startup.S (codestart): Likewise.
22092
22093 * kern/i386/pc/lzma_decode.S: New file.
22094
22095 * include/grub/lib/LzFind.h: Likewise.
22096
22097 * include/grub/lib/LzHash.h: Likewise.
22098
22099 * include/grub/lib/LzmaDec.h: Likewise.
22100
22101 * include/grub/lib/LzmaEnc.h: Likewise.
22102
22103 * include/grub/lib/LzmaTypes.h: Likewise.
22104
22105 * lib/LzFind.c: Likewise.
22106
22107 * lib/LzmaDec.c: Likewise.
22108
22109 * lib/LzmaEnc.c: Likewise.
22110
22111 2008-07-13 Bean <bean123ch@gmail.com>
22112
22113 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
22114 (grub_ext4_extent_header): New structure.
22115 (grub_ext4_extent): Likewise.
22116 (grub_ext4_extent_idx): Likewise.
22117 (grub_ext4_find_leaf): New function.
22118 (grub_ext2_read_block): Handle extents.
22119
22120 2008-07-12 Robert Millan <rmh@aybabtu.com>
22121
22122 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
22123
22124 2008-07-11 Robert Millan <rmh@aybabtu.com>
22125
22126 * util/grub.d/40_custom.in: New file. Example on how to add custom
22127 entries to /etc/grub.d.
22128 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
22129 40_custom (implicitly, by merging all the grub.d rules).
22130
22131 2008-07-11 Pavel Roskin <proski@gnu.org>
22132
22133 * commands/read.c (grub_getline): Fix invalid memory access.
22134 Don't add newline to the variable value.
22135
22136 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
22137 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
22138 (serial_hw_get_port): Check validity of the port number.
22139 (grub_cmd_serial): Check return value of serial_hw_get_port().
22140
22141 2008-07-07 Pavel Roskin <proski@gnu.org>
22142
22143 * boot/i386/pc/diskboot.S (notification_string): Replace
22144 "Loading kernel" with just "loading". This is shorter, less
22145 confusing and saves a few bytes for possible future changes.
22146
22147 2008-07-05 Pavel Roskin <proski@gnu.org>
22148
22149 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
22150 size for ATAPI devices, they are undefined. Output sector
22151 number in decimal form.
22152
22153 * disk/ata.c: Use named constants for status bits.
22154
22155 2008-07-04 Pavel Roskin <proski@gnu.org>
22156
22157 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
22158 grub_addr_t before casting it to the void pointer to fix a
22159 warning. Non-addressable regions are discarded earlier.
22160 (grub_arch_modules_addr): Cast _end to grub_addr_t.
22161 * kern/i386/linuxbios/table.c: Include grub/misc.h.
22162 (check_signature): Don't shadow table_header.
22163 (grub_linuxbios_table_iterate): Cast numeric constants to
22164 grub_linuxbios_table_header_t.
22165 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
22166 grub_stop().
22167
22168 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
22169 prevent warnings.
22170
22171 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
22172 pointer, which can cause warnings. Support 64-bit addresses.
22173
22174 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
22175 of sizeof(long). This fixes PowerPC image generation on x86_64.
22176
22177 2008-07-04 Robert Millan <rmh@aybabtu.com>
22178
22179 This fixes a performance issue when pc & gpt partmap iterators
22180 didn't abort iteration even after our hook found what it was
22181 looking for (often causing expensive probes of non-existent drives).
22182
22183 Some callers relied on previous buggy behaviour, since they would
22184 raise an error when their own hooks caused early abortion of its
22185 iteration.
22186
22187 * kern/device.c (grub_device_open): Improve error message.
22188 * disk/lvm.c (grub_lvm_open): Likewise.
22189 * disk/raid.c (grub_raid_open): Likewise.
22190
22191 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
22192 when hook requests it, independently of grub_errno.
22193 (pc_partition_map_probe): Do not fail when find_func() caused
22194 early abortion of pc_partition_map_iterate().
22195
22196 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
22197 when hook requests it, independently of grub_errno.
22198 (gpt_partition_map_probe): Do not fail when find_func() caused
22199 early abortion of gpt_partition_map_iterate().
22200
22201 * kern/partition.c (grub_partition_iterate): Abort parent iteration
22202 when hook requests it, independently of grub_errno. Do not fail when
22203 part_map_iterate_hook() caused early abortion of p->iterate().
22204
22205 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
22206 when grub_partition_iterate() returned with non-zero.
22207
22208 2008-07-03 Pavel Roskin <proski@gnu.org>
22209
22210 * disk/ata.c (grub_ata_pio_write): Check status before writing,
22211 like we do in grub_ata_pio_read().
22212 (grub_ata_readwrite): Always write individual sectors. Fix the
22213 sector count for the remainder.
22214 (grub_ata_write): Enable writing to ATA devices. Correctly
22215 report error for ATAPI devices.
22216
22217 2008-07-02 Pavel Roskin <proski@gnu.org>
22218
22219 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
22220 warning.
22221
22222 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
22223 for every read sector, we already increment it for the whole
22224 batch. This fixes reading more than 256 sectors at once.
22225
22226 * util/grub-editenv.c (cmd_info): Cast argument to long
22227 explicitly. ptrdiff_t reduces to int on i386.
22228
22229 * util/grub-editenv.c (main): Be specific which parameter is
22230 missing.
22231
22232 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
22233 (memdisk): Make memdisk_orig_addr a pointer.
22234
22235 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
22236 for file offsets, use grub_off_t instead. Fix printf format
22237 warnings.
22238
22239 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
22240 there. Real unexpected warnings should not drown in the noise
22241 about known problems.
22242
22243 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
22244 grub_disk_addr_t for memory addresses.
22245
22246 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
22247 explicitly to fix a warning.
22248
22249 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
22250
22251 * Makefile.in (MODULE_LDFLAGS): New variable.
22252 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
22253 the linker accepts --build-id=none.
22254 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
22255 MODULE_LDFLAGS.
22256 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
22257
22258 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
22259 those in Linux XFS code. Provide a way to access 64-bit parent
22260 inode.
22261 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
22262 the end of struct grub_xfs_dir_header.
22263
22264 2008-07-02 Bean <bean123ch@gmail.com>
22265
22266 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
22267 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
22268 and GRUB_IEEE1275_FLAG_NO_ANSI.
22269
22270 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
22271 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
22272 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
22273
22274 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
22275 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
22276
22277 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
22278 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
22279
22280 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
22281 esc sequence on non ANSI terminal.
22282 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
22283
22284 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
22285 beginning of file.
22286
22287 2008-07-02 Bean <bean123ch@gmail.com>
22288
22289 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
22290 (grub_editenv_SOURCES): New variable.
22291 (pkglib_MODULES): Add loadenv.mod.
22292 (loadenv_mod_SOURCES): New variable.
22293 (loadenv_mod_CFLAGS): Likewise.
22294 (loadenv_mod_LDFLAGS): Likewise.
22295
22296 * include/grub/envblk.h: New file.
22297
22298 * util/envblk.c: New file.
22299
22300 * util/grub-editenv.c: New file.
22301
22302 * commands/loadenv.c: New file.
22303
22304 2008-07-01 Pavel Roskin <proski@gnu.org>
22305
22306 * include/multiboot2.h (struct multiboot_tag_module): Use char,
22307 not unsigned char. This fixes warnings and is consistent with
22308 other tags.
22309
22310 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
22311
22312 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
22313
22314 * term/tparm.c (analyze): Always set *popcount.
22315
22316 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
22317 cast to fix a warning.
22318
22319 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
22320 cast to suppress a warning.
22321
22322 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
22323 grub_fshelp_read_file() expects.
22324
22325 * fs/fat.c: Fix UUID calculation on big-endian systems. We
22326 write uuid as a 32-bit value in CPU byte order, so declare and
22327 use it as such.
22328
22329 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
22330 long if the format specifier expects it.
22331 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
22332 * partmap/pc.c (pc_partition_map_iterate): Likewise.
22333 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
22334 long to fix a warning.
22335 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
22336 grub_dprintf() arguments to fix warnings.
22337
22338 2008-06-30 Pavel Roskin <proski@gnu.org>
22339
22340 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
22341 install_bsd_part immediately before core.img is embedded or
22342 modified on disk. This fixes core.img verification if core.img
22343 cannot be embedded.
22344
22345 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
22346 core_path to calculate the blocklist.
22347 Patch from Javier Martín <lordhabbit@gmail.com>
22348
22349 2008-06-29 Robert Millan <rmh@aybabtu.com>
22350
22351 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
22352 block to disk block.
22353 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
22354 Patch from Niels Böhm <bitbucket@arcor.de>
22355
22356 2008-06-29 Robert Millan <rmh@aybabtu.com>
22357
22358 * util/update-grub_lib.in (font_path): Search for fonts in
22359 /boot/grub first, which is more likely to be readable (we aren't
22360 deciding where fonts live, just looking for them).
22361
22362 2008-06-26 Pavel Roskin <proski@gnu.org>
22363
22364 * util/biosdisk.c (read_device_map): Don't leave dead map
22365 entries for devices failing stat() check.
22366
22367 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
22368 core_path_dev for the core.img path on the target device.
22369
22370 2008-06-26 Robert Millan <rmh@aybabtu.com>
22371
22372 * disk/fs_uuid.c: New file.
22373 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
22374 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
22375 (fs_uuid_mod_LDFLAGS): New variables.
22376 * include/grub/disk.h (grub_disk_dev_id): Add
22377 `GRUB_DISK_DEVICE_UUID_ID'.
22378 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
22379 implement iterate().
22380
22381 2008-06-26 Robert Millan <rmh@aybabtu.com>
22382
22383 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
22384 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
22385 Linux image includes no initrd.
22386
22387 2008-06-21 Javier Martín <lordhabbit@gmail.com>
22388
22389 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
22390 call to resolve the core image location that effectively appended the
22391 name twice.
22392
22393 2008-06-21 Robert Millan <rmh@aybabtu.com>
22394
22395 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
22396 call from here ...
22397
22398 * util/grub.d/10_hurd.in: ... to here ...
22399 * util/grub.d/10_linux.in: ... and here.
22400
22401 2008-06-19 Robert Millan <rmh@aybabtu.com>
22402
22403 * kern/main.c (grub_main): Export `prefix' variable immediately
22404 after it has been set by grub_machine_set_prefix().
22405
22406 2008-06-19 Robert Millan <rmh@aybabtu.com>
22407
22408 * commands/search.c (search_label, search_fs_uuid, search_file): Print
22409 search result when not saving to variable, not the other way around.
22410 When saving to variable, abort iteration as soon as a match is found.
22411
22412 2008-06-19 Robert Millan <rmh@aybabtu.com>
22413
22414 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
22415 check for partition that provides /boot/grub. Its logic is flawed,
22416 as it prevents prepare_grub_to_access_device() from being called
22417 multiple times.
22418
22419 2008-06-19 Robert Millan <rmh@aybabtu.com>
22420
22421 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
22422 "insmod" command directly when abstraction modules are needed,
22423 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
22424 since it had already been processed).
22425
22426 2008-06-19 Pavel Roskin <proski@gnu.org>
22427
22428 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
22429 changed. This is needed in case GRUB_LIBDIR changes.
22430 * conf/i386-ieee1275.rmk: Likewise.
22431 * conf/i386-linuxbios.rmk: Likewise.
22432 * conf/i386-pc.rmk: Likewise.
22433 * conf/powerpc-ieee1275.rmk: Likewise.
22434
22435 2008-06-18 Pavel Roskin <proski@gnu.org>
22436
22437 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
22438 kernel_elf_symlist.c to symlist.c for consistency with other
22439 architectures. Update all users.
22440 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
22441
22442 2008-06-18 Robert Millan <rmh@aybabtu.com>
22443
22444 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
22445 it in prefix.
22446
22447 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
22448 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
22449 a RAID device, run setup() for all members independently on whether
22450 LVM abstraction is being used.
22451 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
22452 If grub-mkimage has set `*install_dos_part == -2', don't override this
22453 value.
22454 Perform *install_dos_part adjustments independently on whether
22455 we're embedding or not.
22456 Clarify error message when image is too big for embedding.
22457 Remove duplicate *install_dos_part stanza.
22458
22459 2008-06-17 Robert Millan <rmh@aybabtu.com>
22460
22461 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
22462 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
22463 variables.
22464 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
22465 values in grub_ofconsole_normal_color and
22466 grub_ofconsole_highlight_color (they're not directly related to
22467 background and foreground).
22468 (grub_ofconsole_setcolorstate): Extract background and foreground
22469 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
22470
22471 2008-06-17 Robert Millan <rmh@aybabtu.com>
22472
22473 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
22474 /boot/grub for the check in last commit, not /boot (they could be
22475 different partitions).
22476
22477 2008-06-16 Robert Millan <rmh@aybabtu.com>
22478
22479 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
22480 asked to setup access for the same partition that provides /boot,
22481 don't bother using UUIDs since our root already has the value we
22482 want.
22483
22484 2008-06-16 Robert Millan <rmh@aybabtu.com>
22485
22486 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
22487 I2O devices.
22488 Patch from Sven Mueller <sven@debian.org>.
22489
22490 2008-06-16 Robert Millan <rmh@aybabtu.com>
22491
22492 * util/update-grub.in: Check for $EUID instead of $UID.
22493 Reported by Vincent Zweije.
22494
22495 2008-06-16 Bean <bean123ch@gmail.com>
22496
22497 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
22498 (grub_ext2_read_block): Likewise.
22499 (grub_ext2_read_inode): Likewise.
22500 (grub_ext2_mount): Likewise.
22501 (grub_ext2_close): Likewise.
22502 (grub_ext3_get_journal): Removed.
22503
22504 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
22505 (grub_reiserfs_read_symlink): Likewise.
22506 (grub_reiserfs_mount): Likewise.
22507 (grub_reiserfs_open): Likewise.
22508 (grub_reiserfs_read): Likewise.
22509 (grub_reiserfs_close): Likewise.
22510 (grub_reiserfs_get_journal): Removed.
22511
22512 * fs/fshelp.c (grub_fshelp_read): Removed.
22513 (grub_fshelp_map_block): Likewise.
22514
22515 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
22516 (grub_fshelp_journal): Likewise.
22517 (grub_fshelp_read): Likewise.
22518 (grub_fshelp_map_block): Likewise.
22519
22520 2008-06-16 Pavel Roskin <proski@gnu.org>
22521
22522 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
22523 floating point anymore.
22524 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
22525
22526 2008-06-15 Pavel Roskin <proski@gnu.org>
22527
22528 * commands/ls.c (grub_ls_list_files): Use integer calculations
22529 for human readable format, avoid floating point use.
22530 * kern/misc.c (grub_ftoa): Remove.
22531 (grub_vsprintf): Remove floating point support.
22532
22533 2008-06-15 Robert Millan <rmh@aybabtu.com>
22534
22535 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
22536 devices.
22537 Reported by Max Vozeler.
22538
22539 2008-06-15 Robert Millan <rmh@aybabtu.com>
22540
22541 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
22542 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
22543 skipped later.
22544 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
22545 the beginning of the prefix.
22546
22547 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
22548 It is assumed that if we have a memdisk, grub-mkimage has set
22549 grub_prefix to include the "(memdisk)" drive in it.
22550
22551 2008-06-15 Robert Millan <rmh@aybabtu.com>
22552
22553 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
22554 Initialize keyboard controller after registering the terminal, so that
22555 grub_printf() can be called from grub_keyboard_controller_init().
22556
22557 2008-06-15 Robert Millan <rmh@aybabtu.com>
22558
22559 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
22560 extent-btree which is written as big endian on disk.
22561 Reported by Alain Greppin <al@chilibi.org>.
22562
22563 2008-06-14 Robert Millan <rmh@aybabtu.com>
22564
22565 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
22566 * util/i386/pc/grub-install.in (modules): Likewise.
22567
22568 2008-06-13 Pavel Roskin <proski@gnu.org>
22569
22570 * commands/ls.c (grub_ls_list_files): Fix format warnings.
22571
22572 2008-06-13 Bean <bean123ch@gmail.com>
22573
22574 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
22575
22576 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
22577
22578 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
22579 to indicate sparse block.
22580
22581 2008-06-12 Pavel Roskin <proski@gnu.org>
22582
22583 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
22584 number, grub_fshelp_read() does it for us.
22585
22586 * fs/fshelp.c (grub_fshelp_read): New function. Implement
22587 linear disk read with journal translation.
22588 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
22589 * include/grub/fshelp.h: Declare grub_fshelp_read().
22590
22591 2008-06-09 Pavel Roskin <proski@gnu.org>
22592
22593 * fs/minix.c (grub_minix_mount): Handle error reading
22594 superblock.
22595
22596 2008-06-08 Robert Millan <rmh@aybabtu.com>
22597
22598 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
22599 don't append the RAID prefix afterwards.
22600 Reported by Clint Adams.
22601
22602 2008-06-08 Robert Millan <rmh@aybabtu.com>
22603
22604 Based on description from Pavel:
22605 * kern/disk.c (grub_disk_check_range): Rename to ...
22606 (grub_disk_adjust_range): ... this. Add a comment explaining the
22607 tasks performed by this function.
22608
22609 2008-06-08 Robert Millan <rmh@aybabtu.com>
22610
22611 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
22612 `num_serial' (for consistency with other variables).
22613 (struct grub_ntfs_data): Add `uuid' member.
22614 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
22615 (grub_ntfs_uuid): New function.
22616 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
22617
22618 2008-06-07 Pavel Roskin <proski@gnu.org>
22619
22620 * util/biosdisk.c (open_device): Revert last change to the
22621 function, it broke installation. The sector needs to be
22622 different dependent on which device is opened.
22623
22624 2008-06-06 Robert Millan <rmh@aybabtu.com>
22625
22626 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
22627 rest of GRUB, and breakage doesn't happen if its value were modified.
22628
22629 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22630 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
22631 a constant (same value).
22632 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
22633 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
22634
22635 2008-06-06 Robert Millan <rmh@aybabtu.com>
22636
22637 * util/biosdisk.c (open_device): Do not modify sector offset when
22638 accessing a partition. kern/disk.c already handles this for us.
22639
22640 2008-06-06 Robert Millan <rmh@aybabtu.com>
22641
22642 * util/grub-emu.c (grub_machine_init): Move code in this function from
22643 here ...
22644 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
22645 segfault in case grub_printf() is called).
22646
22647 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
22648 grub_probe. Update all users not to explicitly add it again.
22649 (grub_device): New variable; contains corresponding device for grubdir.
22650 (fs_module, partmap_module, devabstraction_module): Pass
22651 `--device ${grub_device}' to grub_probe to avoid traversing /dev
22652 every time.
22653
22654 2008-06-05 Robert Millan <rmh@aybabtu.com>
22655
22656 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
22657 is found, print it (same layout as with labels).
22658
22659 2008-06-04 Robert Millan <rmh@aybabtu.com>
22660
22661 * util/biosdisk.c (get_drive): Rename to ...
22662 (find_grub_drive): ... this. Update all users.
22663
22664 (get_os_disk): Rename to ...
22665 (convert_system_partition_to_system_disk): ... this. Update all users.
22666
22667 (find_drive): Rename to ...
22668 (find_system_device): ... this. Update all users.
22669
22670 2008-06-04 Robert Millan <rmh@aybabtu.com>
22671
22672 * util/biosdisk.c (get_os_disk): Handle IDA devices.
22673 * util/grub-mkdevicemap.c (get_mmc_disk_name)
22674 (make_device_map): Likewise.
22675
22676 2008-06-01 Robert Millan <rmh@aybabtu.com>
22677
22678 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
22679 before dereferencing it.
22680
22681 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
22682 union with fat12/fat16-specific ones. Add some new fields, including
22683 `num_serial' for both versions.
22684 (struct grub_fat_data): Add `uuid' member.
22685 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
22686 names. Initialize `data->uuid' using `num_serial'.
22687 (grub_fat_uuid): New function.
22688 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
22689
22690 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
22691 (grub_reiserfs_uuid): New function.
22692 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
22693 member.
22694
22695 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
22696 (grub_xfs_uuid): New function.
22697 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
22698
22699 2008-06-01 Robert Millan <rmh@aybabtu.com>
22700
22701 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
22702 code that is backward compatible with pre-uuid search command.
22703
22704 2008-05-31 Robert Millan <rmh@aybabtu.com>
22705
22706 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
22707 floppies after everything else, to ensure floppy drive isn't accessed
22708 unnecessarily (patch from Bean).
22709
22710 2008-05-31 Robert Millan <rmh@aybabtu.com>
22711
22712 * commands/search.c (search_label, search_fs_uuid, search_file): Do
22713 not print device names when we were asked to set a variable.
22714
22715 2008-05-31 Robert Millan <rmh@aybabtu.com>
22716
22717 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
22718 using "cursor-on" and "cursor-off" commands (understood at least by
22719 the Open Firmware flavour on OLPC).
22720
22721 2008-05-31 Michael Gorven <michael@gorven.za.net>
22722
22723 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
22724 on and off sequences.
22725
22726 2008-05-31 Robert Millan <rmh@aybabtu.com>
22727
22728 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
22729 * util/update-grub.in: Likewise.
22730
22731 2008-05-30 Pavel Roskin <proski@gnu.org>
22732
22733 * util/biosdisk.c (linux_find_partition): Simplify logic and
22734 make the code more universal. Keep special processing for
22735 devfs, but use a simple rule for all other devices. If the
22736 device ends with a number, append 'p' and the partition number.
22737 Otherwise, append only the partition number.
22738
22739 2008-05-30 Robert Millan <rmh@aybabtu.com>
22740
22741 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
22742 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
22743 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
22744 the `root' parameter to Linux.
22745
22746 2008-05-30 Robert Millan <rmh@aybabtu.com>
22747
22748 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
22749 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
22750 --fs_uuid with --fs-uuid.
22751 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
22752 all filesystems support them).
22753
22754 2008-05-30 Robert Millan <rmh@aybabtu.com>
22755
22756 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
22757 grub_printf() flags, since we're printing in units of 2 bytes.
22758
22759 2008-05-30 Robert Millan <rmh@aybabtu.com>
22760
22761 * util/grub.d/00_header.in: Remove obsolete comment referencing
22762 convert_system_path_to_grub_path().
22763 * util/update-grub.in: Likewise.
22764 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
22765 (convert_system_path_to_grub_path): Add a warning message explaining
22766 that this function is deprecated. Rely on is_path_readable_by_grub()
22767 for the readability checks.
22768 (font_path): Use is_path_readable_by_grub() for the readability
22769 check rather than convert_system_path_to_grub_path().
22770
22771 2008-05-30 Robert Millan <rmh@aybabtu.com>
22772
22773 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
22774 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
22775 converting it first.
22776 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
22777 grub.cfg for access to font file, and afterwards call it again to set
22778 the root device.
22779
22780 2008-05-30 Robert Millan <rmh@aybabtu.com>
22781
22782 * commands/search.c (options): Add --fs_uuid option.
22783 (search_fs_uuid): New function.
22784 (grub_cmd_search): Fix --set argument passing.
22785 Use search_fs_uuid() when requested via --fs_uuid.
22786 (grub_search_init): Update help message.
22787 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
22788 and redeclare it as an array of 16-bit words.
22789 (grub_ext2_uuid): New function.
22790 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
22791 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
22792 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
22793 (GRUB_DEVICE_BOOT_UUID): New variables.
22794 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
22795 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
22796 whenever possible.
22797 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
22798 just assume `root' variable has the right value.
22799 * util/grub.d/10_linux.in: Likewise.
22800 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
22801 via PRINT_FS_UUID.
22802 (main): Recognise `-t fs_uuid' argument.
22803
22804 2008-05-30 Robert Millan <rmh@aybabtu.com>
22805
22806 * util/biosdisk.c (map): Redefine structure to hold information
22807 about GRUB drive name.
22808 (get_drive): Reimplement without assuming (and verifying) BIOS-like
22809 drive names.
22810 (call_hook): Remove.
22811 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
22812 member. Assume drive has partitions.
22813 (grub_util_biosdisk_open): Access device names via `.device' struct
22814 member.
22815 (open_device): Likewise.
22816 (find_drive): Likewise.
22817 (read_device_map): Adjust map[] usage to match the new struct
22818 definition. Don't check for duplicates (still possible, but not cheap
22819 anymore).
22820 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
22821 (make_device_name): Remove assumption of BIOS-like drive names.
22822
22823 2008-05-30 Pavel Roskin <proski@gnu.org>
22824
22825 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
22826 compiling execute.c doesn't need grub_script.tab.h anymore.
22827 (normal/command.c_DEPENDENCIES): Likewise.
22828 (normal/function.c_DEPENDENCIES): Likewise.
22829 * conf/i386-ieee1275.rmk: Likewise.
22830 * conf/i386-linuxbios.rmk: Likewise.
22831 * conf/i386-pc.rmk: Likewise.
22832 * conf/powerpc-ieee1275.rmk: Likewise.
22833 * conf/sparc64-ieee1275.rmk: Likewise.
22834
22835 2008-05-29 Pavel Roskin <proski@gnu.org>
22836
22837 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
22838 when scanning metadata for volume group name.
22839
22840 * include/grub/script.h: Don't include grub_script.tab.h. It's
22841 a generated file, which may only be included from the files with
22842 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
22843 use union YYSTYPE, as the later allows forward declaration.
22844 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
22845
22846 2008-05-29 Robert Millan <rmh@aybabtu.com>
22847
22848 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
22849 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
22850 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
22851 (grub_console_checkkey): Add grub_dprintf() call to report unknown
22852 scan codes.
22853
22854 2008-05-29 Robert Millan <rmh@aybabtu.com>
22855
22856 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
22857 control key combinations.
22858
22859 2008-05-29 Robert Millan <rmh@aybabtu.com>
22860
22861 * util/powerpc/ieee1275/grub-install.in: Move from here ...
22862 * util/ieee1275/grub-install.in: ... to here.
22863 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
22864 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
22865 (grub_install_SOURCES): Likewise.
22866
22867 2008-05-29 Robert Millan <rmh@aybabtu.com>
22868
22869 * fs/affs.c: Update copyright year.
22870 * fs/ext2.c: Likewise.
22871 * fs/fshelp.c: Likewise.
22872 * fs/hfsplus.c: Likewise.
22873 * fs/ntfs.c: Likewise.
22874 * fs/xfs.c: Likewise.
22875 * include/grub/fshelp.h: Likewise.
22876 * util/grub-mkdevicemap.c: Likewise.
22877
22878 2008-05-28 Robert Millan <rmh@aybabtu.com>
22879
22880 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
22881 might need to be fatfs to support some firmware implementations
22882 (e.g. OFW or EFI).
22883
22884 2008-05-28 Robert Millan <rmh@aybabtu.com>
22885
22886 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
22887 devices.
22888 * util/grub-mkdevicemap.c (get_mmc_disk_name)
22889 (make_device_map): Likewise.
22890
22891 2008-05-20 Bean <bean123ch@gmail.com>
22892
22893 * fs/fshelp.c (grub_fshelp_map_block): New function.
22894 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
22895 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
22896
22897 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
22898 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
22899 (grub_fshelp_journal): New structure.
22900 (grub_fshelp_map_block): New function prototype.
22901 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
22902 (grub_fshelp_map_block): Likewise.
22903
22904 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
22905 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
22906 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
22907 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
22908 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
22909 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
22910 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
22911 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
22912 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
22913 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
22914 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
22915 (grub_ext2_sblock): New members for journal support.
22916 (grub_ext3_journal_header): New structure.
22917 (grub_ext3_journal_revoke_header): Likewise.
22918 (grub_ext3_journal_block_tag): Likewise.
22919 (grub_ext3_journal_sblock): Likewise.
22920 (grub_fshelp_node): New members logfile and journal.
22921 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
22922 grub_fshelp_map_block to get real block number.
22923 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
22924 number.
22925 (grub_ext2_read_inode): Likewise.
22926 (grub_ext3_get_journal): New function.
22927 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
22928 (grub_ext2_close): Release memory used by journal.
22929
22930 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
22931 (REISERFS_MAGIC_DESC_BLOCK): New macro.
22932 (grub_reiserfs_transaction_header): Renamed to
22933 grub_reiserfs_description_block, replace field data with real_blocks.
22934 (grub_reiserfs_commit_block): New structure.
22935 (grub_reiserfs_data): New member journal.
22936 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
22937 number.
22938 (grub_reiserfs_read_symlink): Likewise.
22939 (grub_reiserfs_iterate_dir): Likewise.
22940 (grub_reiserfs_open): Likewise.
22941 (grub_reiserfs_read): Likewise.
22942 (grub_reiserfs_get_journal): New function.
22943 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
22944 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
22945 using grub_reiserfs_get_journal.
22946 (grub_reiserfs_close): Release memory used by journal.
22947
22948 * fs/affs.c (grub_affs_read_block): Change block type to
22949 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
22950
22951 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
22952
22953 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
22954
22955 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
22956
22957 * fs/udf.c (grub_udf_read_block): Change block type to
22958 grub_disk_addr_t. Use type cast to avoid warning.
22959
22960 * fs/xfs.c (grub_xfs_read_block): Likewise.
22961
22962 2008-05-16 Christian Franke <franke@computer.org>
22963
22964 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
22965 to ensure that break with ESC will always work.
22966 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
22967 Remove ESC from keyboard queue.
22968
22969 2008-05-16 Christian Franke <franke@computer.org>
22970
22971 * util/biosdisk.c: [__CYGWIN__] Add includes.
22972 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
22973 (get_os_disk): Move variable declarations to OS specific
22974 parts to avoid warning.
22975 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
22976 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
22977 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
22978 Cygwin.
22979 * util/getroot.c: [__CYGWIN__] Add includes.
22980 (strip_extra_slashes): Fix "/" case.
22981 [__CYGWIN__] (get_win32_path): New function.
22982 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
22983 [__CYGWIN__] (find_root_device): Disable.
22984 [__CYGWIN__] (get_bootsec_serial): New function.
22985 [__CYGWIN__] (find_cygwin_root_device): Likewise.
22986 [__linux__] (grub_guess_root_device): Add early returns to simplify
22987 structure.
22988 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
22989 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
22990 check for Linux only.
22991
22992 2008-05-15 Bean <bean123ch@gmail.com>
22993
22994 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
22995 keyboard hang problem in apple's intel mac.
22996
22997 2008-05-09 Robert Millan <rmh@aybabtu.com>
22998
22999 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
23000 devices.
23001 * util/grub-mkdevicemap.c (get_virtio_disk_name)
23002 (make_device_map): Likewise.
23003 Reported by Aurelien Jarno <aurel32@debian.org>
23004
23005 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
23006
23007 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
23008 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
23009 (make_device_map): Output entries for xvd type disks.
23010
23011 2008-05-07 Robert Millan <rmh@aybabtu.com>
23012
23013 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
23014 devices.
23015 * util/grub-mkdevicemap.c (get_cciss_disk_name)
23016 (make_device_map): Likewise.
23017 Reported by Roland Dreier <rdreier@cisco.com>
23018
23019 2008-05-07 Robert Millan <rmh@aybabtu.com>
23020
23021 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
23022 grub_strstr() call. Correct a few mistakes in failure path handling.
23023
23024 2008-05-06 Robert Millan <rmh@aybabtu.com>
23025
23026 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
23027 Do not print a trailing slash (therefore, the root directory is an
23028 empty string).
23029 (convert_system_path_to_grub_path): Do not remove trailing slash
23030 from make_system_path_relative_to_its_root() output.
23031
23032 * util/i386/pc/grub-install.in: Add trailing slash to output from
23033 make_system_path_relative_to_its_root().
23034
23035 2008-05-06 Robert Millan <rmh@aybabtu.com>
23036
23037 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
23038 ensures that output lines aren't intermangled with those sent to
23039 stderr (via grub_util_info()).
23040 * util/grub-probe.c (grub_refresh): Likewise.
23041 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
23042
23043 2008-05-05 Christian Franke <franke@computer.org>
23044
23045 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
23046 Add Cygwin device names.
23047 (get_ide_disk_name) [__CYGWIN__]: Likewise.
23048 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
23049 (check_device): Return error instead of success on empty name.
23050 (make_device_map): Move label inside linux specific code to
23051 prevent compiler warning.
23052
23053 2008-04-30 Robert Millan <rmh@aybabtu.com>
23054
23055 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
23056 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
23057 first boot option.
23058 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
23059
23060 2008-04-29 Robert Millan <rmh@aybabtu.com>
23061
23062 * docs/grub.cfg: New file (example GRUB configuration).
23063
23064 2008-04-26 Robert Millan <rmh@aybabtu.com>
23065
23066 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
23067 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
23068 and `disk/ieee1275/nand.c'.
23069
23070 2008-04-25 Bean <bean123ch@gmail.com>
23071
23072 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
23073 i386-linuxbios.
23074
23075 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
23076 change the buffer size to 4096 for cdrom device.
23077
23078 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
23079 and nand.mod.
23080 (_linux_mod_SOURCES): New variable.
23081 (_linux_mod_CFLAGS): Likewise.
23082 (_linux_mod_LDFLAGS): Likewise.
23083 (linux_mod_SOURCES): Likewise.
23084 (linux_mod_CFLAGS): Likewise.
23085 (linux_mod_LDFLAGS): Likewise.
23086 (nand_mod_SOURCES): Likewise.
23087 (nand_mod_CFLAGS): Likewise.
23088 (nand_mod_LDFLAGS): Likewise.
23089
23090 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
23091 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
23092 type property. (nand device in olpc don't have this property)
23093
23094 * include/grub/disk.h (grub_disk_dev_id): New macro
23095 GRUB_DISK_DEVICE_NAND_ID.
23096
23097 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
23098 function prototype.
23099 (grub_rescue_cmd_initrd): Likewise.
23100
23101 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
23102 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
23103 ofw_cif_handler and ofw_idt, adjust padding number.
23104
23105 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
23106 GRUB_MACHINE_IEEE1275 is defined.
23107
23108 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
23109 Use NESTED_FUNC_ATTR attribute on the hook parameter.
23110
23111 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
23112 on nested function heap_init.
23113 (grub_upper_mem): New variable for i386-ieee1275.
23114 (grub_get_extended_memory): New function for i386-ieee1275.
23115 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
23116
23117 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
23118 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
23119 property.
23120
23121 * loader/i386/ieee1275/linux.c: New file.
23122
23123 * loader/i386/ieee1275/linux_normal.c: New file.
23124
23125 * disk/ieee1275/nand.c: New file.
23126
23127 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
23128
23129 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
23130 value.
23131 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
23132
23133 2008-04-18 Robert Millan <rmh@aybabtu.com>
23134
23135 Restructures early code path on ieee1275 to unify grub_main() as
23136 the first C function that is executed in every platform.
23137
23138 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
23139 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
23140 cmain().
23141 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
23142 * kern/ieee1275/cmain.c (cmain): Rename to ...
23143 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
23144 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
23145 at the beginning.
23146
23147 2008-04-18 Robert Millan <rmh@aybabtu.com>
23148
23149 * util/update-grub.in: Fix syntax error when setting
23150 `GRUB_PRELOAD_MODULES'.
23151 Reported by Stephane Chazelas <stephane@artesyncp.com>
23152
23153 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
23154
23155 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
23156 section into account, newer toolchains generate unique build ids
23157 * configure.ac: remove the test for --build-id=none acceptance,
23158 we want build ids to be preserved
23159 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
23160 far from other sections don't cause the raw binary images grow
23161 size
23162
23163 2008-04-15 Robert Millan <rmh@aybabtu.com>
23164
23165 * disk/lvm.c: Update copyright year.
23166 * kern/misc.c: Likewise.
23167
23168 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
23169
23170 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
23171 there is no memory left for physical volume name.
23172
23173 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
23174
23175 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
23176 volume name mapping to support bigger than 9 character names properly.
23177
23178 2008-04-13 Robert Millan <rmh@aybabtu.com>
23179
23180 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
23181 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
23182
23183 2008-04-13 Christian Franke <franke@computer.org>
23184
23185 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
23186 to create a floppy emulation boot CD when non emulation mode
23187 does not work.
23188 Enable Joliet CD filesystem extension.
23189
23190 2008-04-13 Robert Millan <rmh@aybabtu.com>
23191
23192 * kern/misc.c (grub_strncat): Fix off-by-one error.
23193 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
23194
23195 * kern/env.c (grub_env_context_close): Clear current context, not
23196 previous one.
23197 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
23198
23199 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
23200
23201 2008-04-13 Robert Millan <rmh@aybabtu.com>
23202
23203 Improve robustness when handling LVM.
23204
23205 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
23206 (and leave `*p' unmodified).
23207 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
23208 through it.
23209 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
23210 iterating through it.
23211 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
23212 through it.
23213 (grub_lvm_scan_device): Check the return value (and fail gracefully
23214 when due) on each grub_lvm_getvalue() or grub_strstr() call.
23215 Don't assume `vg->pvs != NULL' when iterating through it.
23216
23217 2008-04-13 Robert Millan <rmh@aybabtu.com>
23218
23219 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
23220 * genmk.rb (partmap): New variable.
23221 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
23222 (#{partmap}): New target rule.
23223 * genpartmaplist.sh: New file.
23224 * Makefile.in (pkglib_DATA): Add partmap.lst.
23225 (partmap.lst): New target rule.
23226 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
23227 modules (including all partition maps), instead of preloading them.
23228
23229 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
23230
23231 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
23232 `linux-boot-prober' (if installed) to detect other operating
23233 systems which are installed on the computer and add them to
23234 the boot menu.
23235 * conf/common.rmk: Build and install 30_os-prober.
23236
23237 2008-04-12 Robert Millan <rmh@aybabtu.com>
23238
23239 * kern/powerpc/ieee1275/init.c: Move from here ...
23240 * kern/ieee1275/init.c: ... to here. Update all users.
23241
23242 * kern/powerpc/ieee1275/cmain.c: Move from here ...
23243 * kern/ieee1275/cmain.c: ... to here. Update all users.
23244
23245 * kern/powerpc/ieee1275/openfw.c: Move from here ...
23246 * kern/ieee1275/openfw.c: ... to here. Update all users.
23247
23248 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
23249 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
23250
23251 2008-04-10 Pavel Roskin <proski@gnu.org>
23252
23253 * configure.ac: Always use "_cv_" in cache variables for
23254 compatibility with Autoconf 2.62.
23255
23256 2008-04-07 Robert Millan <rmh@aybabtu.com>
23257
23258 Revert grub/machine/init.h addition by Pavel (since it breaks on
23259 i386-ieee1275 and others):
23260 * util/i386/pc/misc.c: Remove grub/machine/init.h.
23261 * util/powerpc/ieee1275/misc.c: Likewise.
23262
23263 2008-04-07 Robert Millan <rmh@aybabtu.com>
23264
23265 * util/grub-probe.c (probe): Improve error message.
23266
23267 2008-04-07 Robert Millan <rmh@aybabtu.com>
23268
23269 * util/biosdisk.c (read_device_map): Skip devices that don't exist
23270 (this prevents the presence of a bogus entry from ruining the whole
23271 thing).
23272
23273 2008-04-06 Pavel Roskin <proski@gnu.org>
23274
23275 * util/biosdisk.c: Include grub/util/biosdisk.h.
23276 * util/grub-fstest.c (execute_command): Make static.
23277 * util/grub-mkdevicemap.c (check_device): Likewise.
23278 * util/i386/pc/misc.c: Include grub/machine/init.h.
23279 * util/powerpc/ieee1275/misc.c: Likewise.
23280 * util/lvm.c: Include grub/util/lvm.h.
23281 * util/misc.c: Include grub/kernel.h, grub/misc.h and
23282 grub/cache.h.
23283 * util/raid.c: Include grub/util/raid.h.
23284 (grub_util_getdiskname): Make static.
23285
23286 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
23287 grub_hostfs_fini(), as they are called from grub_init_all() and
23288 grub_fini_all() respectively. This fixes an infinite loop in
23289 grub-fstest due to double registration of hostfs.
23290 Reported by Christian Franke <Christian.Franke@t-online.de>
23291
23292 2008-04-05 Pavel Roskin <proski@gnu.org>
23293
23294 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
23295 all 8 functions. Otherwise, probe function 0 only.
23296
23297 2008-04-04 Pavel Roskin <proski@gnu.org>
23298
23299 * commands/lspci.c (grub_lspci_iter): Print the bus number
23300 correctly.
23301
23302 * commands/lspci.c (grub_pci_classes): Fix typos.
23303 (grub_lspci_iter): Don't print func twice. Print vendor ID
23304 before device ID, as it's normally done.
23305
23306 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
23307 Fix signedness warnings.
23308 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
23309 Likewise.
23310 * util/ieee1275/get_disk_name.c: Include config.h so that
23311 _GNU_SOURCE is defined and getline() is declared. Mark an
23312 unused argument as such. Fix a signedness warning.
23313
23314 2008-04-02 Pavel Roskin <proski@gnu.org>
23315
23316 * genkernsyms.sh.in: Use more robust assignments for CC and
23317 srcdir. Quote srcdir.
23318 * gensymlist.sh.in: Likewise. Assert at the compile time that
23319 the symbol table is not empty.
23320
23321 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
23322 * fs/cpio.c (grub_cpio_read): Likewise.
23323
23324 2008-04-01 Pavel Roskin <proski@gnu.org>
23325
23326 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
23327 * disk/host.c (grub_host_open): Likewise.
23328 * disk/loopback.c (grub_loopback_open): Likewise.
23329 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
23330 disk->id as in disk/host.c, not a multi-character constant.
23331
23332 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
23333 later is obsolete, potentially dangerous and sets a bad example.
23334 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
23335 * util/misc.c (grub_util_get_image_size): Likewise.
23336
23337 * disk/loopback.c (options): Improve help for "--partitions".
23338
23339 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
23340 options to align them with the short options, e.g. "echo -e".
23341
23342 2008-03-31 Bean <bean123ch@gmail.com>
23343
23344 * video/reader/png.c (grub_png_data): New member is_16bit and
23345 image_data.
23346 (grub_png_decode_image_header): Detect 16 bit png image.
23347 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
23348 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
23349 (grub_video_reader_png): Release memory occupied by image_data.
23350
23351 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
23352 4096 bytes.
23353 (grub_nfs_mount): Skip the test for sector per cluster.
23354
23355 * include/grub/ntfs.h (MAX_SPC): Removed.
23356
23357 2008-03-31 Bean <bean123ch@gmail.com>
23358
23359 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
23360 (grub_probe_SOURCES): Add fs/afs.c.
23361 (grub_fstest_SOURCES): Likewise.
23362 (afs_mod_SOURCES): New variable.
23363 (afs_mod_CFLAGS): Likewise.
23364 (afs_mod_LDFLAGS): Likewise.
23365
23366 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
23367 (grub_emu_SOURCES): Likewise.
23368
23369 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23370
23371 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23372
23373 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
23374
23375 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23376
23377 * fs/afs.c: New file.
23378
23379 2008-03-30 Pavel Roskin <proski@gnu.org>
23380
23381 * disk/host.c: Include grub/misc.h to fix a warning.
23382 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
23383 warnings about implicit declarations.
23384
23385 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
23386 variable.
23387 * include/grub/i386/loader.h: Change declaration of
23388 grub_linux_boot() to match what grub_loader_set() expects.
23389 * util/getroot.c (grub_guess_root_device): Return const char* to
23390 fix a warning.
23391 * util/grub-probe.c (probe): Fix a warning about uninitialized
23392 abstraction_name variable.
23393 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
23394 second argument as unused to fix a warning.
23395
23396 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
23397 missing grub_error() call.
23398
23399 * util/update-grub_lib.in: Define datarootdir, since Autoconf
23400 2.60 and newer uses it to define datadir.
23401
23402 * commands/sleep.c: Fix warning about implicit declaration.
23403 * disk/memdisk.c: Likewise.
23404 * loader/aout.c: Likewise.
23405 * loader/i386/bsd_normal.c: Likewise.
23406 * util/grub-probe.c: Likewise.
23407
23408 * commands/i386/cpuid.c (has_longmode): Make static.
23409 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
23410 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
23411
23412 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
23413 GDT. This is more robust, as %ds can change.
23414 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
23415 calling real_to_prot().
23416 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
23417
23418 2008-03-28 Pavel Roskin <proski@gnu.org>
23419
23420 * kern/i386/pc/startup.S: Assert that uncompressed functions
23421 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
23422 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
23423 code, as they push parts of the code (error handlers) beyond
23424 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
23425 code as correctness and size.
23426
23427 2008-03-28 Pavel Roskin <proski@gnu.org>
23428
23429 * kern/i386/pc/startup.S
23430 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
23431 data block address to the real mode, keep offset minimal. This
23432 works around a bug in AWARD BIOS on old Athlon systems, which
23433 makes CD detection hang.
23434
23435 2008-03-26 Pavel Roskin <proski@gnu.org>
23436
23437 * normal/color.c (grub_parse_color_name_pair): Make `name' a
23438 const.
23439 * include/grub/normal.h: Add grub_parse_color_name_pair()
23440 declaration.
23441
23442 2008-03-24 Bean <bean123ch@gmail.com>
23443
23444 * disk/i386/pc/biosdisk.c (cd_start): Removed.
23445 (cd_count): Removed.
23446 (cd_drive): New variable.
23447 (grub_biosdisk_get_drive): Don't check for (cdN) device.
23448 (grub_biosdisk_call_hook): Likewise.
23449 (grub_biosdisk_iterate): Change cdrom detection method.
23450 (grub_biosdisk_open): Replace cd_start with cd_drive.
23451 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
23452 detect cdrom device.
23453
23454 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
23455 Removed.
23456 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
23457 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
23458 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
23459 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
23460 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
23461 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
23462 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
23463 (grub_biosdisk_cdrp): New structure.
23464 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
23465
23466 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
23467
23468 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
23469 device.
23470
23471 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
23472 New function.
23473
23474 2008-03-20 Robert Millan <rmh@aybabtu.com>
23475
23476 Remove 2 TiB limit in ata.mod.
23477 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
23478 (grub_ata_dumpinfo): Print sector count with 0x%llx.
23479 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
23480 grub_uint64_t instead of grub_uint32_t.
23481
23482 2008-03-05 Bean <bean123ch@gmail.com>
23483
23484 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
23485 (grub_multiboot): Set boot device.
23486
23487 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
23488
23489 2008-03-02 Bean <bean123ch@gmail.com>
23490
23491 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
23492 symlink_buffer.
23493
23494 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
23495
23496 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
23497 texinfo.tex.
23498
23499 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
23500 modified.
23501
23502 * docs/fdl.texi: New file.
23503
23504 * docs/mdate-sh: New file. Copied from gnulib.
23505 * docs/texinfo.tex: Likewise.
23506
23507 * config.guess: Updated from gnulib.
23508 * install-sh: Likewise.
23509
23510 2008-02-28 Robert Millan <rmh@aybabtu.com>
23511
23512 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
23513 (aout_mod_SOURCES): New variable.
23514 (aout_mod_CFLAGS): Likewise.
23515 (aout_mod_LDFLAGS): Likewise.
23516
23517 * conf/i386-ieee1275.rmk: Likewise.
23518
23519 2008-02-28 Robert Millan <rmh@aybabtu.com>
23520
23521 * util/update-grub.in: Reorganise terminal validity check. Accept
23522 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
23523 Based on suggestion by Franklin PIAT.
23524
23525 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
23526
23527 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
23528 function.
23529 * util/getroot.c (grub_util_check_block_device): New function that
23530 returns the given argument if it is a block device and returns NULL else.
23531 * util/grub-probe.c (argument_is_device): New variable.
23532 (probe): Promote device_name from a variable to an argument. Receive
23533 device_name from grub_util_check_block_device() if path is NULL and from
23534 grub_guess_root_device() else. Do not free() device_name anymore.
23535 (options): Introduce new parameter '-d, --device'.
23536 (main): Add description of the new parameter to the help screen.
23537 Rename path variable to argument. Set argument_is_device if the '-d'
23538 option is given. Pass argument to probe() depending on
23539 argument_is_device.
23540
23541 2008-02-24 Bean <bean123ch@gmail.com>
23542
23543 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
23544 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
23545 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
23546 (GRUB_ISO9660_VOLDESC_PART): Likewise.
23547 (GRUB_ISO9660_VOLDESC_END): Likewise.
23548 (grub_iso9660_primary_voldesc): New member escape.
23549 (grub_iso9660_data): New member joliet.
23550 (grub_iso9660_convert_string): New function.
23551 (grub_iso9660_mount): Detect joliet extension.
23552 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
23553 (grub_iso9660_iso9660_label): Likewise.
23554
23555 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
23556 (grub_setup_SOURCES): Add fs/udf.c.
23557 (grub_fstest_SOURCES): Likewise.
23558 (udf_mod_SOURCES): New variable.
23559 (udf_mod_CFLAGS): Likewise.
23560 (udf_mod_LDFLAGS): Likewise.
23561
23562 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
23563 (grub_emu_SOURCES): Likewise.
23564
23565 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23566
23567 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23568
23569 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
23570
23571 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23572
23573 * fs/udf.c: New file.
23574
23575 2008-02-24 Robert Millan <rmh@aybabtu.com>
23576
23577 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
23578 (normal/lexer.c_DEPENDENCIES): New variables.
23579 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
23580 (normal/lexer.c_DEPENDENCIES): Likewise.
23581 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
23582 (normal/lexer.c_DEPENDENCIES): Likewise.
23583 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
23584 (normal/lexer.c_DEPENDENCIES): Likewise.
23585 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
23586 (normal/lexer.c_DEPENDENCIES): Likewise.
23587 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
23588 (normal/lexer.c_DEPENDENCIES): Likewise.
23589
23590 2008-02-23 Robert Millan <rmh@aybabtu.com>
23591
23592 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
23593 since they were intended to be in hex. This didn't break previously
23594 because of a bug in gpt_partition_map_iterate() (see below).
23595
23596 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
23597 when checking the validity of GPT header.
23598 Remove `partno', since it always provides the same information as `i'.
23599
23600 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
23601
23602 * include/grub/efi/time.h: Fix a wrong comment.
23603
23604 2008-02-19 Pavel Roskin <proski@gnu.org>
23605
23606 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
23607 message.
23608
23609 2008-02-19 Bean <bean123ch@gmail.com>
23610
23611 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
23612 (aout_mod_SOURCES): New variable.
23613 (aout_mod_CFLAGS): Likewise.
23614 (aout_mod_LDFLAGS): Likewise.
23615 (_bsd_mod_SOURCES): New variable.
23616 (_bsd_mod_CFLAGS): Likewise.
23617 (_bsd_mod_LDFLAGS): Likewise.
23618 (bsd_mod_SOURCES): New variable.
23619 (bsd_mod_CFLAGS): Likewise.
23620 (bsd_mod_LDFLAGS): Likewise.
23621
23622 * include/grub/aout.h: New file.
23623
23624 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
23625
23626 * include/grub/i386/bsd.h: New file.
23627
23628 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
23629 to make it public.
23630
23631 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
23632 function is called, so that it's possible to change it inside the hook.
23633 (grub_elf64_load): Likewise.
23634 (grub_elf_file): Don't close the file if elf header is not found.
23635 (grub_elf_close): Close the file if grub_elf_file fails (The new
23636 grub_elf_file won't close it).
23637 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
23638 (grub_elf64_size): Likewise.
23639
23640 * kern/i386/loader.S (grub_unix_real_boot): New function.
23641
23642 * loader/aout.c: New file.
23643
23644 * loader/i386/bsd.c: New file.
23645
23646 * loader/i386/bsd_normal.c: New file.
23647
23648 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
23649
23650 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
23651 can test other formats.
23652
23653 2008-02-19 Robert Millan <rmh@aybabtu.com>
23654
23655 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
23656 (grub_gpt_partition_type_empty): Redefine with macro from
23657 `<grub/gpt_partition.h>'.
23658 (gpt_partition_map_iterate): Adjust partition type comparison.
23659
23660 Export `entry' as partmap-specific `part.data' struct.
23661 (grub_gpt_header, grub_gpt_partentry): Move from here ...
23662
23663 * include/grub/gpt_partition.h (grub_gpt_header)
23664 (grub_gpt_partentry): ... to here (new file).
23665
23666 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
23667
23668 (grub_gpt_partition_type_bios_boot): New const variable, defined
23669 with macro from `<grub/gpt_partition.h>'.
23670
23671 (setup): Replace `first_start' with `embed_region', which keeps
23672 track of the embed region (and is partmap-agnostic).
23673
23674 Replace find_first_partition_start() with find_usable_region(),
23675 which finds a usable region for embedding using partmap-specific
23676 knowledge (supports PC/MSDOS and GPT).
23677
23678 Fix all assumptions that the embed region start at sector 1, using
23679 `embed_region.start' from now on. Similarly, use `embed_region.end'
23680 rather than `first_start' to calculate available size.
23681
23682 In grub_util_info() message, replace "into after the MBR" with an
23683 indication of the specific sector our embed region starts at.
23684
23685 2008-02-19 Robert Millan <rmh@aybabtu.com>
23686
23687 * DISTLIST: Replace `commands/ieee1275/halt.c' and
23688 `commands/ieee1275/reboot.c' with `commands/halt.c' and
23689 `commands/reboot.c'.
23690 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
23691 (halt_mod_SOURCES): Likewise.
23692 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
23693 (halt_mod_SOURCES): Likewise.
23694
23695 2008-02-17 Christian Franke <franke@computer.org>
23696
23697 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
23698
23699 2008-02-17 Robert Millan <rmh@aybabtu.com>
23700
23701 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
23702 set `first_start' to 0 for non-PC/MSDOS partition maps.
23703
23704 2008-02-16 Robert Millan <rmh@aybabtu.com>
23705
23706 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
23707 do not assume partition map is PC/MSDOS before performing checks that
23708 are specific to that layout.
23709
23710 2008-02-13 Robert Millan <rmh@aybabtu.com>
23711
23712 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
23713 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
23714 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
23715
23716 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
23717
23718 * configure.ac: Only a cosmetic change on the handling of
23719 -fno-stack-protector.
23720
23721 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
23722
23723 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
23724 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
23725 reboot.c.
23726 (grub_install_SOURCES): Add halt.mod and reboot.mod.
23727 (halt_mod_SOURCES): New variable.
23728 (halt_mod_CFLAGS): Likewise.
23729 (halt_mod_LDFLAGS): Likewise.
23730 (reboot_mod_SOURCES): Likewise.
23731 (reboot_mod_CFLAGS): Likewise.
23732 (reboot_mod_LDFLAGS): Likewise.
23733
23734 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
23735 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
23736 reboot.c.
23737 (halt_mod_SOURCES): Likewise.
23738 (reboot_mod_SOURCES): Likewise.
23739
23740 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
23741 commands/i386/pc/reboot.c by commands/reboot.c.
23742 (reboot_mod_SOURCES): Likewise.
23743
23744 * commands/i386/pc/reboot.c: merge this file ...
23745
23746 * commands/ieee1275/reboot.c: ... and this file ...
23747
23748 * commands/reboot.c: ... to this file.
23749 Add some precompiler directive to include the correct header for
23750 each machine.
23751
23752 * commands/ieee1275/halt.c: move this file ...
23753
23754 * commands/halt.c: ... to here.
23755 Add some precompiler directive to include the correct header for
23756 each machine.
23757
23758 * include/grub/efi/efi.h (grub_reboot): New function declaration.
23759 (grub_halt): Likewise.
23760
23761 * kern/efi/efi.c (grub_reboot): New function.
23762 (grub_halt): Likewise.
23763
23764 2008-02-12 Robert Millan <rmh@aybabtu.com>
23765
23766 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
23767 /dev (like it is done for /dev/mapper). This doesn't provide support
23768 for EVMS, but at least it is now easy to identify the problem when it
23769 arises.
23770
23771 2008-02-11 Robert Millan <rmh@aybabtu.com>
23772
23773 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
23774 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
23775 comparing it with -1, not 0.
23776
23777 2008-02-10 Robert Millan <rmh@aybabtu.com>
23778
23779 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
23780 `disk/lvm.c'.
23781 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23782 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23783
23784 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
23785 `disk/lvm.c' to the end of the list.
23786 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
23787 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23788
23789 2008-02-10 Robert Millan <rmh@aybabtu.com>
23790
23791 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
23792 grub_print_error() instead. This will let user know why we're entering
23793 rescue mode.
23794 Based on suggestions from Sam Morris.
23795
23796 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
23797
23798 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
23799 on remaining N args, instead of "--" arg N times.
23800
23801 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
23802
23803 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
23804 (fill_with_default_glyph): Changed to use unknown_glyph for fill
23805 pattern for unknown glyphs.
23806
23807 2008-02-09 Robert Millan <rmh@aybabtu.com>
23808
23809 * configure.ac: Probe for `help2man'.
23810 * Makefile.in (builddir): New variable.
23811 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
23812 or otherwise add a few flags/options to it.
23813 (install-local): For every executable utility or script that is
23814 installed, invoke $(HELP2MAN) to install a manpage based on --help
23815 output.
23816
23817 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
23818 that it doesn't prevent --help from working in build tree.
23819
23820 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
23821 with `bug-grub@gnu.org'.
23822 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
23823 * util/update-grub.in (usage): New function.
23824 Implement proper argument check, with support for --help and --version
23825 (as well as existing -y).
23826
23827 2008-02-09 Christian Franke <franke@computer.org>
23828
23829 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
23830 avoid overwriting previous output.
23831 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
23832
23833 2008-02-09 Robert Millan <rmh@aybabtu.com>
23834
23835 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
23836 drawing the menu.
23837
23838 2008-02-09 Robert Millan <rmh@aybabtu.com>
23839
23840 * commands/sleep.c: New file.
23841 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
23842 (sleep_mod_SOURCES): New variable.
23843 (sleep_mod_CFLAGS): Likewise.
23844 (sleep_mod_LDFLAGS): Likewise.
23845
23846 2008-02-09 Robert Millan <rmh@aybabtu.com>
23847
23848 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
23849 situations in which we can deduce the RAID size and the superblock
23850 doesn't match it.
23851
23852 2008-02-09 Robert Millan <rmh@aybabtu.com>
23853
23854 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
23855 and return a grub_diskmemberlist_t composed of LVM physical volumes.
23856 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
23857
23858 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
23859 and return a grub_diskmemberlist_t composed of physical array members.
23860 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
23861
23862 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
23863 prototype.
23864 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
23865 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
23866 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
23867
23868 * util/grub-probe.c (probe): Move partmap probing code from here ...
23869 (probe_partmap): ... to here.
23870 (probe): Use probe_partmap() once for the disk we're probing, and
23871 additionally, when such disk contains a memberlist() struct member,
23872 once for each disk that is contained in the structure returned by
23873 memberlist().
23874
23875 2008-02-09 Robert Millan <rmh@aybabtu.com>
23876
23877 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
23878 environment variable to 'all' in order to obtain debug output from
23879 non-util/ code.
23880 * util/i386/pc/grub-setup.c (main): Likewise.
23881
23882 2008-02-08 Robert Millan <rmh@aybabtu.com>
23883
23884 * disk/raid.c (grub_raid_scan_device): Check for
23885 `array->device[sb.this_disk.number]' rather than for
23886 `array->device[sb.this_disk.number]->name', since the latter is not
23887 guaranteed to be accessible.
23888
23889 2008-02-08 Robert Millan <rmh@aybabtu.com>
23890
23891 * disk/raid.c: Update copyright.
23892 * fs/cpio.c: Likewise.
23893 * include/grub/raid.h: Likewise.
23894 * loader/i386/pc/multiboot.c: Likewise.
23895 * util/hostfs.c: Likewise.
23896
23897 2008-02-08 Robert Millan <rmh@aybabtu.com>
23898
23899 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
23900 to a grub_disk_t array.
23901 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
23902 `device[x]'.
23903 (grub_raid_scan_device): Replace `device[x].name' accesses with
23904 `device[x]->name'. Simplify initialization of `array->device[x]'.
23905
23906 2008-02-08 Robert Millan <rmh@aybabtu.com>
23907
23908 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
23909 grub_dprintf() calls.
23910 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
23911 error message.
23912
23913 2008-02-07 Christian Franke <franke@computer.org>
23914
23915 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
23916 instead of fseek and ftell to support large files.
23917 (grub_hostfs_read): Likewise.
23918
23919 2008-02-07 Robert Millan <rmh@aybabtu.com>
23920
23921 Patch from Jeroen Dekkers.
23922 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
23923 failure, since successfully reading all array members might not be
23924 required.
23925
23926 2008-02-06 Robert Millan <rmh@aybabtu.com>
23927
23928 * util/grub-probe.c (probe): Simplify partmap probing (with the
23929 assumption that the first word up to the underscore equals to
23930 the module name).
23931
23932 2008-02-06 Christian Franke <franke@computer.org>
23933
23934 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
23935 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
23936 last block of a cpio or tar stream.
23937 Check for "TRAILER!!!" instead of any empty data
23938 block to detect last block of a cpio stream.
23939 (grub_cpio_dir): Fix constness of variable np.
23940 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
23941 cpio or tar trailer is detected. This fixes a crash
23942 on open of a non existing file.
23943
23944 2008-02-05 Bean <bean123ch@gmail.com>
23945
23946 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
23947 address of entry.
23948 (grub_multiboot_load_elf64): Likewise.
23949 (grub_multiboot): Initialize mbi structure.
23950
23951 * util/grub-fstest.c: Don't include unused header file script.h.
23952
23953 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
23954 of file.
23955 (grub_fstest_SOURCES): Likewise.
23956
23957 2008-02-05 Robert Millan <rmh@aybabtu.com>
23958
23959 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
23960 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
23961 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
23962 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
23963
23964 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
23965 (translation_table): Replace hardcoded values with macros
23966 provided by `<grub/term.h>'.
23967
23968 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
23969 (keyboard_map): Correct/add a few values, with macros provided
23970 by `<grub/term.h>'.
23971 (keyboard_map_shift): Zero values that don't differ from their
23972 `keyboard_map' equivalents.
23973 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
23974 Discard the second scan code that is always sent by Caps lock.
23975 Only use `keyboard_map_shift' when it provides a non-zero value,
23976 otherwise fallback to `keyboard_map'.
23977
23978 2008-02-04 Bean <bean123ch@gmail.com>
23979
23980 * Makefile.in (enable_grub_fstest): New variable.
23981
23982 * conf/common.rmk (grub_fstest_init.lst): New rule.
23983 (grub_fstest_init.h): Likewise.
23984 (grub_fstest_init.c): Likewise.
23985 (util/grub-fstest.c_DEPENDENCIES): New variable.
23986 (grub_fstest_SOURCES): Likewise.
23987
23988 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
23989
23990 * util/grub-fstest.c: New file.
23991
23992 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
23993
23994 Make grub-setup handle a separate root device.
23995
23996 * util/i386/pc/grub-setup.c (setup): Always open the root device,
23997 so that the root device can be compared with the destination
23998 device.
23999 When embedding the core image, if the root and destination devices
24000 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
24001 0xFF.
24002 When not embedding, set ROOT_DRIVE to 0xFF.
24003
24004 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
24005
24006 Add support for having a grub directory in a different drive. This
24007 is still only the data handling part.
24008
24009 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
24010 (codestart): Save %dh in GRUB_ROOT_DRIVE.
24011 (grub_root_drive): New variable.
24012
24013 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
24014 instead of GRUB_BOOT_DRIVE to construct a device name. Set
24015 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
24016 as it was.
24017
24018 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
24019
24020 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
24021 macro.
24022 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
24023
24024 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
24025 is bogus, because PXE booting does not specify any drive
24026 correctly.
24027
24028 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
24029 am not sure if this is really correct.
24030
24031 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
24032 is always identical to the boot drive when booting from a CD.
24033
24034 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
24035 longer.
24036 (root_drive): New variable.
24037 (real_start): Unconditionally set %dh to ROOT_DRIVE.
24038 (setup_sectors): Push %dx right after popping it, because %dh will
24039 be modified later.
24040 (copy_buffer): Restore %dx.
24041
24042 2008-02-03 Robert Millan <rmh@aybabtu.com>
24043
24044 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
24045 use `cdboot.img' for cdrom images.
24046
24047 2008-02-03 Robert Millan <rmh@aybabtu.com>
24048
24049 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
24050 only setup gfxterm when `font' command has succeeded.
24051
24052 2008-02-03 Robert Millan <rmh@aybabtu.com>
24053
24054 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
24055 (grub_rescue_cmd_multiboot_loader)
24056 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
24057
24058 2008-02-03 Pavel Roskin <proski@gnu.org>
24059
24060 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
24061 %edx and %esi from stack only after grub_gate_a20() is called.
24062 grub_gate_a20() clobbers %edx.
24063
24064 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
24065
24066 * configure.ac (AC_INIT): Bumped to 1.96.
24067
24068 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
24069 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
24070 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
24071 video/readers/png.c.
24072
24073 2008-02-03 Bean <bean123ch@gmail.com>
24074
24075 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
24076 (cdboot_img_SOURCES): New variable.
24077 (cdboot_img_ASFLAGS): New variable.
24078 (cdboot_img_LDFLAGS): New variable.
24079
24080 * boot/i386/pc/cdboot.S: New file.
24081
24082 * disk/i386/pc/biosdisk.c (cd_start): New variable.
24083 (cd_count): Likewise.
24084 (grub_biosdisk_get_drive): Add support for cd device.
24085 (grub_biosdisk_call_hook): Likewise.
24086 (grub_biosdisk_iterate): Likewise.
24087 (grub_biosdisk_open): Likewise.
24088 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
24089 (grub_biosdisk_rw): Support reading from cd device.
24090 (GRUB_MOD_INIT): Iterate cd devices.
24091
24092 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
24093 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
24094 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
24095
24096 * kern/i386/pc/init.c (make_install_device): Check for cd device.
24097
24098 2008-02-02 Robert Millan <rmh@aybabtu.com>
24099
24100 * commands/read.c: New file.
24101 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
24102 (read_mod_SOURCES): New variable.
24103 (read_mod_CFLAGS): Likewise.
24104 (read_mod_LDFLAGS): Likewise.
24105
24106 2008-02-02 Robert Millan <rmh@aybabtu.com>
24107
24108 * normal/main.c (grub_normal_execute): Check for `menu->size' when
24109 determining whether menu has to be displayed.
24110
24111 2008-02-02 Marco Gerards <marco@gnu.org>
24112
24113 * bus/pci.c: New file.
24114
24115 * include/grub/pci.h: Likewise.
24116
24117 * include/grub/i386/pc/pci.h: Likewise.
24118
24119 * commands/lspci.c: Likewise.
24120
24121 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
24122 `lspci.mod'.
24123 (pci_mod_SOURCES): New variable.
24124 (pci_mod_CFLAGS): Likewise.
24125 (pci_mod_LDFLAGS): Likewise.
24126 (lspci_mod_SOURCES): Likewise.
24127 (lspci_mod_CFLAGS): Likewise.
24128 (lspci_mod_LDFLAGS): Likewise.
24129
24130 2008-02-02 Bean <bean123ch@gmail.com>
24131
24132 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
24133 (grub_ufs_get_file_block): Fix indirect block calculation problem.
24134
24135 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
24136 (grub_xfs_btree_node): New structure.
24137 (grub_xfs_btree_root): New structure.
24138 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
24139 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
24140 (GRUB_XFS_EXTENT_BLOCK): Likewise.
24141 (GRUB_XFS_EXTENT_SIZE): Likewise.
24142 (grub_xfs_read_block): Support btree format type.
24143 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
24144 Use directory block as basic unit.
24145
24146 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
24147
24148 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
24149 __attribute__ ((__regparm__ (1))).
24150
24151 2008-02-01 Robert Millan <rmh@aybabtu.com>
24152
24153 Correct a mistake in previous commit.
24154
24155 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
24156 top.
24157 (normal/command.c_DEPENDENCIES): New variable.
24158
24159 2008-02-01 Robert Millan <rmh@aybabtu.com>
24160
24161 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
24162 top.
24163 (normal/command.c_DEPENDENCIES): New variable.
24164 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
24165 * conf/i386-ieee1275.rmk: Likewise.
24166 * conf/i386-linuxbios.rmk: Likewise.
24167 * conf/i386-pc.rmk: Likewise.
24168 * conf/sparc64-ieee1275.rmk: Likewise.
24169 * conf/powerpc-ieee1275.rmk: Likewise.
24170 (grub_emu_SOURCES): Add `fs/fshelp.c'.
24171
24172 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
24173
24174 2008-02-01 Robert Millan <rmh@aybabtu.com>
24175
24176 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
24177 call at beginning of function.
24178
24179 2008-01-31 Pavel Roskin <proski@gnu.org>
24180
24181 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
24182 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
24183 (grub_mkrescue_SOURCES): Likewise.
24184 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
24185
24186 2008-01-30 Robert Millan <rmh@aybabtu.com>
24187
24188 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
24189 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
24190 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
24191 (grub_probe_SOURCES): ... to here.
24192
24193 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
24194 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
24195 * conf/i386-ieee1275.rmk: Likewise.
24196 * conf/i386-linuxbios.rmk: Likewise.
24197 * conf/powerpc-ieee1275.rmk: Likewise.
24198
24199 2008-01-30 Tristan Gingold <gingold@free.fr>
24200
24201 * kern/rescue.c: Silently accept empty lines.
24202
24203 2008-01-29 Bean <bean123ch@gmail.com>
24204
24205 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
24206 (real_code_2): Code cleanup and change comment style.
24207 (move_memory): Avoid using 32-bit address mode.
24208
24209 2008-01-29 Bean <bean123ch@gmail.com>
24210
24211 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
24212 (png_mod_SOURCES): New variable.
24213 (png_mod_CFLAGS): Likewise.
24214 (png_mod_LDFLAGS): Likewise.
24215
24216 * video/readers/png.c: New file.
24217
24218 2008-01-28 Robert Millan <rmh@aybabtu.com>
24219
24220 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
24221 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
24222 `ifndef GRUB_MOD_GAP' hack.
24223 * util/elf/grub-mkimage.c (add_segments): Likewise.
24224
24225 2008-01-27 Robert Millan <rmh@aybabtu.com>
24226
24227 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
24228 `GRUB_MOD_GAP' for platforms in which it's not defined.
24229 * util/elf/grub-mkimage.c (add_segments): Likewise.
24230
24231 2008-01-27 Robert Millan <rmh@aybabtu.com>
24232
24233 Get grub-emu to build again (including parallel builds).
24234
24235 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
24236 Split into ...
24237 (util/grub-emu.c_DEPENDENCIES): ... this, ...
24238 (normal/execute.c_DEPENDENCIES): ... this, ...
24239 (grub-emu_DEPENDENCIES): ... and this.
24240
24241 * conf/i386-efi.rmk: Likewise.
24242 * conf/i386-linuxbios.rmk: Likewise.
24243 * conf/i386-ieee1275.rmk: Likewise.
24244 * conf/powerpc-ieee1275.rmk: Likewise.
24245 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
24246
24247 2008-01-27 Robert Millan <rmh@aybabtu.com>
24248
24249 * NEWS: Add a few items.
24250
24251 2008-01-27 Robert Millan <rmh@aybabtu.com>
24252
24253 Fix parallel builds with grub-emu. Based on earlier commit for
24254 grub-probe and grub-setup.
24255
24256 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24257 (util/grub-emu.c_DEPENDENCIES): ... this.
24258 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24259 (util/grub-emu.c_DEPENDENCIES): ... this.
24260 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24261 (util/grub-emu.c_DEPENDENCIES): ... this.
24262 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24263 (util/grub-emu.c_DEPENDENCIES): ... this.
24264 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24265 (util/grub-emu.c_DEPENDENCIES): ... this.
24266
24267 2008-01-27 Pavel Roskin <proski@gnu.org>
24268
24269 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
24270 to create a gap between _end and the modules added to the image
24271 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
24272 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
24273 * util/elf/grub-mkimage.c (add_segments): Likewise.
24274
24275 2008-01-26 Pavel Roskin <proski@gnu.org>
24276
24277 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
24278 just return an error.
24279
24280 2008-01-26 Bean <bean123ch@gmail.com>
24281
24282 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
24283 (grub_reiserfs_get_item): Save offset of the next item.
24284 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
24285
24286 2008-01-25 Robert Millan <rmh@aybabtu.com>
24287
24288 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
24289 make all filesystem sources appear together (possibly fixing omissions
24290 while at it).
24291 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24292 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24293 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
24294 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24295
24296 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
24297 add `kern/file.c'.
24298 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
24299 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
24300 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
24301 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
24302
24303 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
24304 (probe): Add a sanity check to make sure of our ability to read
24305 requested files when probing for filesystem type.
24306
24307 * genmk.rb: Update copyright year (2007).
24308
24309 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
24310 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
24311 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
24312 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
24313 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
24314 : Remove function prototypes.
24315
24316 2008-01-25 Robert Millan <rmh@aybabtu.com>
24317
24318 Revert my previous commits (based on wrong assumption of how grub_errno
24319 works).
24320
24321 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
24322 * kern/file.c (grub_file_open): Likewise.
24323
24324 2008-01-24 Pavel Roskin <proski@gnu.org>
24325
24326 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
24327 that hang if GRUB tries to setup colors.
24328 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
24329 colors for firmwares that don't support it.
24330 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
24331 Recognize Open Hack'Ware, set flags to work around its
24332 limitations.
24333
24334 2008-01-24 Robert Millan <rmh@aybabtu.com>
24335
24336 * kern/file.c (grub_file_open): Do not account previous failures of
24337 unrelated functions when grub_errno is checked for.
24338 Reported by Oleg Strikov.
24339
24340 2008-01-24 Bean <bean123ch@gmail.com>
24341
24342 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
24343 (grub_ufs_sblock): New member volume name.
24344 (grub_ufs_find_file): Fix string copy bug.
24345 (grub_ufs_label): Implement this function properly.
24346
24347 * fs/hfs.c (grub_hfs_cnid_type): New enum.
24348 (grub_hfs_iterate_records): Use the correct file number for extents
24349 and catalog file. Fix problem in next index calculation.
24350 (grub_hfs_find_node): Replace recursive function call with loop.
24351 (grub_hfs_iterate_dir): Replace recursive function call with loop.
24352
24353 2008-01-23 Robert Millan <rmh@aybabtu.com>
24354
24355 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
24356 `<grub/symbol.h>' and `<grub/multiboot.h>'.
24357 (grub_multiboot2_real_boot): New function prototype.
24358
24359 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
24360 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
24361
24362 * kern/i386/ieee1275/init.c (grub_os_area_addr)
24363 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
24364
24365 2008-01-23 Robert Millan <rmh@aybabtu.com>
24366
24367 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
24368 #ifdef'ed out grub_printf().
24369
24370 2008-01-23 Robert Millan <rmh@aybabtu.com>
24371
24372 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
24373 grub_dprintf calls, since they make "debug=all" mode unusable.
24374 (grub_console_checkkey): Likewise.
24375
24376 2008-01-23 Robert Millan <rmh@aybabtu.com>
24377
24378 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
24379 `term/i386/pc/at_keyboard.c'.
24380 (pkglib_MODULES): Add `serial.mod'.
24381 (serial_mod_SOURCES): New variable.
24382 (serial_mod_CFLAGS): Likewise.
24383 (serial_mod_LDFLAGS): Likewise.
24384
24385 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
24386 `<grub/powerpc/ieee1275/console.h>'.
24387 (grub_keyboard_controller_init): New function prototype.
24388 (grub_console_checkkey): Likewise.
24389 (grub_console_getkey): Likewise.
24390
24391 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
24392 keyboard on i386.
24393
24394 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
24395 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
24396
24397 2008-01-23 Robert Millan <rmh@aybabtu.com>
24398
24399 * kern/i386/pc/init.c (make_install_device): When memdisk image is
24400 present, "(memdisk)/boot/grub" becomes the default prefix.
24401
24402 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
24403 a memdisk tarball with all the modules. Add --overlay=DIR option that
24404 allows users to overlay additional files into the image.
24405
24406 2008-01-23 Robert Millan <rmh@aybabtu.com>
24407
24408 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
24409 and `machine/memory.h'.
24410 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
24411 (_multiboot_mod_SOURCES): New variable.
24412 (_multiboot_mod_CFLAGS): Likewise.
24413 (_multiboot_mod_LDFLAGS): Likewise.
24414 (multiboot_mod_SOURCES): Likewise.
24415 (multiboot_mod_CFLAGS): Likewise.
24416 (multiboot_mod_LDFLAGS): Likewise.
24417
24418 * include/grub/i386/ieee1275/loader.h: New file.
24419
24420 * include/grub/i386/ieee1275/machine.h: Likewise.
24421
24422 * include/grub/i386/ieee1275/memory.h: Likewise.
24423
24424 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
24425 variable declaration.
24426 (grub_os_area_size): Likewise.
24427
24428 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
24429 (grub_lower_mem, grub_upper_mem): New variables.
24430 (grub_stop_floppy): New function (just to make
24431 grub_multiboot2_real_boot() happy).
24432
24433 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
24434 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
24435 (grub_stop): New function.
24436 Include `"../realmode.S"' and `"../loader.S"'.
24437
24438 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
24439 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
24440
24441 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
24442 rely on grub_multiboot2_real_boot() for final boot.
24443
24444 2008-01-22 Robert Millan <rmh@aybabtu.com>
24445
24446 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
24447 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
24448 device that doesn't look like an SD card.
24449 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
24450 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
24451 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
24452 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
24453 found.
24454
24455 2008-01-22 Robert Millan <rmh@aybabtu.com>
24456
24457 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
24458 avoid claiming over our own code.
24459
24460 2008-01-22 Bean <bean123ch@gmail.com>
24461
24462 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
24463 (jpeg_mod_SOURCES): New variable.
24464 (jpeg_mod_CFLAGS): Likewise.
24465 (jpeg_mod_LDFLAGS): Likewise.
24466
24467 * video/readers/jpeg.c : New file.
24468
24469 2008-01-22 Bean <bean123ch@gmail.com>
24470
24471 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
24472 there are no more items.
24473
24474 2008-01-21 Robert Millan <rmh@aybabtu.com>
24475
24476 * kern/mm.c (grub_mm_init_region): Improve debug message.
24477
24478 2008-01-21 Robert Millan <rmh@aybabtu.com>
24479
24480 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
24481 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
24482 address.
24483 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
24484 a C macro.
24485 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
24486 Indicates start of upper memory.
24487 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
24488 (generate_image): Abort when image size is big enough to corrupt
24489 upper memory.
24490
24491 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
24492 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
24493 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
24494 instead of hardcoding 0xA0000.
24495 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
24496 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
24497 instead of hardcoding 0xA0000.
24498
24499 2008-01-21 Robert Millan <rmh@aybabtu.com>
24500
24501 * disk/memdisk.c (memdisk_size): New variable.
24502 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
24503 `memdisk_size'.
24504 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
24505 image to dynamic memory.
24506 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
24507 `memdisk_size'. Free memdisk block.
24508
24509 2008-01-21 Robert Millan <rmh@aybabtu.com>
24510
24511 Fix detection of very small filesystems (like tar).
24512
24513 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
24514 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
24515 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
24516 a problem with this disk).
24517
24518 2008-01-21 Robert Millan <rmh@aybabtu.com>
24519
24520 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
24521 on grub_biosdisk_rw_standard() error.
24522
24523 2008-01-21 Robert Millan <rmh@aybabtu.com>
24524
24525 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
24526 recent changes.
24527 * kern/elf.c: Likewise.
24528 * kern/ieee1275/ieee1275.c: Likewise.
24529 * kern/powerpc/ieee1275/openfw.c: Likewise.
24530 * term/ieee1275/ofconsole.c: Likewise.
24531
24532 2008-01-21 Robert Millan <rmh@aybabtu.com>
24533
24534 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
24535
24536 * include/grub/kernel.h (grub_arch_memdisk_addr)
24537 (grub_arch_memdisk_size): Moved from here ...
24538
24539 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
24540 (grub_arch_memdisk_size): ... to here.
24541
24542 2008-01-21 Robert Millan <rmh@aybabtu.com>
24543
24544 Mostly based on bugfix from Bean.
24545
24546 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
24547 attribute with hook() parameter.
24548 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
24549 declaration.
24550 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
24551 attribute with hook() parameter.
24552 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
24553 declaration.
24554
24555 2008-01-21 Robert Millan <rmh@aybabtu.com>
24556
24557 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
24558 (pkglib_MODULES): Add `memdisk.mod'.
24559 (memdisk_mod_SOURCES): New variable.
24560 (memdisk_mod_CFLAGS): Likewise.
24561 (memdisk_mod_LDFLAGS): Likewise.
24562
24563 * disk/memdisk.c: New file.
24564
24565 * include/grub/disk.h (grub_disk_dev_id): Add
24566 `GRUB_DISK_DEVICE_MEMDISK_ID'.
24567
24568 * include/grub/i386/pc/kernel.h
24569 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
24570 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
24571 (grub_kernel_image_size): New variable declaration.
24572 (grub_total_module_size): Likewise.
24573 (grub_memdisk_image_size): Likewise.
24574
24575 * include/grub/i386/pc/memory.h
24576 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
24577
24578 * include/grub/kernel.h: Include `<grub/symbol.h>'.
24579 (grub_arch_memdisk_addr): New variable declaration.
24580 (grub_arch_memdisk_size): Likewise.
24581
24582 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
24583 (grub_arch_memdisk_size): Likewise.
24584
24585 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
24586 (codestart): Replace hardcoded `0x100000' with
24587 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
24588
24589 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
24590 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
24591 not NULL, append the contents of the file it refers to, at the end of
24592 the compressed kernel image. Initialize `grub_memdisk_image_size'
24593 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
24594 (options): Add "memdisk"|'m' option.
24595 (main): Parse --memdisk|-m option, and pass user-provided path as
24596 parameter to generate_image().
24597
24598 2008-01-20 Robert Millan <rmh@aybabtu.com>
24599
24600 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
24601 grub_dprintf() calls from here ...
24602 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
24603
24604 2008-01-20 Robert Millan <rmh@aybabtu.com>
24605
24606 Fix detection of "real mode" when /options/real-mode? doesn't exist.
24607
24608 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
24609 declaration.
24610 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
24611 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
24612 `GRUB_IEEE1275_FLAG_REAL_MODE'.
24613 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
24614 property).
24615 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
24616 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
24617
24618 2008-01-19 Robert Millan <rmh@aybabtu.com>
24619
24620 Get rid of confusing function (superseded by
24621 `grub_ieee1275_get_integer_property')
24622 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
24623 prototype.
24624 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
24625 function.
24626 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
24627 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
24628 in native endianness from grub_ieee1275_get_integer_property().
24629
24630 2008-01-19 Robert Millan <rmh@aybabtu.com>
24631
24632 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
24633 command after "shut-down", since implementations differ on which
24634 the command for halt is.
24635
24636 2008-01-19 Robert Millan <rmh@aybabtu.com>
24637
24638 * include/grub/i386/linuxbios/console.h: Add header protection.
24639 (grub_keyboard_controller_init): New function prototype.
24640 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
24641 (KEYBOARD_COMMAND_READ): Likewise.
24642 (KEYBOARD_COMMAND_WRITE): Likewise.
24643 (KEYBOARD_SCANCODE_SET1): Likewise.
24644 (grub_keyboard_controller_write): New function.
24645 (grub_keyboard_controller_read): Likewise.
24646 (grub_keyboard_controller_init): Likewise.
24647
24648 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
24649 (grub_console_init): On coreboot/LinuxBIOS, call
24650 grub_keyboard_controller_init().
24651
24652 2008-01-19 Robert Millan <rmh@aybabtu.com>
24653
24654 PowerPC changes provided by Pavel Roskin.
24655
24656 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
24657 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
24658 don't rely on cmain() doing it.
24659 * kern/i386/ieee1275/startup.S (_start): Store %eax in
24660 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
24661
24662 2008-01-16 Robert Millan <rmh@aybabtu.com>
24663
24664 * include/grub/i386/linuxbios/memory.h
24665 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
24666 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
24667 receive `table_header' as argument. Instead, probe for it in the
24668 known memory ranges where it can be present.
24669 (grub_available_iterate): Do not pass a fixed `table_header' address
24670 to grub_linuxbios_table_iterate().
24671
24672 2008-01-15 Robert Millan <rmh@aybabtu.com>
24673
24674 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
24675 * conf/i386-ieee1275.rmk: New file.
24676 * include/grub/i386/ieee1275/console.h: Likewise.
24677 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
24678 * include/grub/i386/ieee1275/kernel.h: Likewise.
24679 * include/grub/i386/ieee1275/time.h: Likewise.
24680 * kern/i386/ieee1275/init.c: Likewise.
24681 * kern/i386/ieee1275/startup.S: Likewise.
24682
24683 2008-01-15 Robert Millan <rmh@aybabtu.com>
24684
24685 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
24686 when pointers are 32-bit (but still do set it to one when they are
24687 64-bit).
24688
24689 2008-01-15 Robert Millan <rmh@aybabtu.com>
24690
24691 * include/grub/ieee1275/ieee1275.h
24692 (grub_ieee1275_get_integer_property): New function prototype.
24693
24694 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
24695 (grub_ieee1275_get_integer_property): New function. Wraps around
24696 grub_ieee1275_get_property() to handle endianness.
24697
24698 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
24699 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
24700 where appropriate.
24701 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
24702 (grub_map): Likewise.
24703 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
24704
24705 2008-01-15 Bean <bean123ch@gmail.com>
24706
24707 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
24708 (grub_script_execute_cmdline): Reset grub_errno.
24709
24710 * normal/main.c (read_config_file): Reset grub_errno.
24711
24712 * normal/parse.y (script_init): New.
24713 (script): Move function and menuentry here.
24714 (delimiter): New.
24715 (command): Add delimiter at the end of command.
24716 (commands): Adjust to match the new command.
24717 (commandblock): Remove grub_script_lexer_record_start.
24718 (menuentry): Add grub_script_lexer_record_start, use the new commands.
24719 (if): Use the new commands.
24720
24721 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
24722
24723 2008-01-15 Robert Millan <rmh@aybabtu.com>
24724
24725 * normal/menu.c (run_menu): Move timeout message from here ...
24726 (print_timeout): ... to here.
24727 (run_menu): Use print_timeout() once during initial draw to print
24728 the whole message, and again in every clock tick to update only
24729 the number of seconds.
24730
24731 2008-01-15 Robert Millan <rmh@aybabtu.com>
24732
24733 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
24734 actual size of `available' from grub_ieee1275_get_property(), and
24735 restrict parsing to that bound.
24736
24737 2008-01-15 Christian Franke <franke@computer.org>
24738
24739 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
24740 (argp_program_version): Remove variable.
24741 (argp_program_bug_address): Likewise.
24742 (options): Convert from struct argp_option to struct option.
24743 (struct arguments): Remove.
24744 (parse_opt): Remove.
24745 (usage): New function.
24746 (main): Replace struct args members by simple variables.
24747 Replace argp_parse() by getopt_long().
24748 Add switch to evaluate options.
24749 Add missing "(...)" around root_dev in prefix string.
24750
24751 2008-01-14 Robert Millan <rmh@aybabtu.com>
24752
24753 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
24754 for grub_ieee1275_exit(), in order to improve portability.
24755
24756 2008-01-14 Robert Millan <rmh@aybabtu.com>
24757
24758 * util/grub.d/10_linux.in (prefix): Define.
24759 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
24760
24761 2008-01-13 Pavel Roskin <proski@gnu.org>
24762
24763 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
24764 grub_errno if no errors have been detected.
24765
24766 2008-01-12 Robert Millan <rmh@aybabtu.com>
24767
24768 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
24769 (grub_util_get_dev_abstraction): New function prototype.
24770
24771 * util/getroot.c: Include `<grub/util/getroot.h>'
24772 (grub_util_get_grub_dev): Move detection of abstraction type to ...
24773 (grub_util_get_dev_abstraction): ... here (new function).
24774
24775 * util/grub-probe.c: Convert PRINT_* to an enum. Add
24776 `PRINT_ABSTRACTION'.
24777 (probe): Probe for abstraction type when requested.
24778 (main): Understand `--target=abstraction'.
24779
24780 * util/i386/efi/grub-install.in: Add abstraction module to core
24781 image when it is found to be necessary.
24782 * util/i386/pc/grub-install.in: Likewise.
24783 * util/powerpc/ieee1275/grub-install.in: Likewise.
24784
24785 * util/update-grub_lib.in (font_path): Return system path without
24786 converting to GRUB path.
24787 * util/update-grub.in: Convert system path returned by font_path()
24788 to a GRUB path. Use `grub-probe -t abstraction' to determine what
24789 abstraction module is needed for loading fonts (if any). Export
24790 that as `GRUB_PRELOAD_MODULES'.
24791 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
24792 insmod commands).
24793
24794 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
24795
24796 Remove some unused code from reiserfs.
24797
24798 * fs/reiserfs.c (struct grub_reiserfs_key)
24799 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
24800 (struct grub_reiserfs_node_body): Removed.
24801 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
24802 Likewise.
24803 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
24804 Likewise.
24805 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
24806 Likewise.
24807 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
24808 Likewise.
24809 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
24810 Likewise.
24811 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
24812 Likewise.
24813 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
24814 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
24815 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
24816
24817 2008-01-10 Robert Millan <rmh@aybabtu.com>
24818
24819 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
24820 Determines if a file is garbage left by packaging systems, etc.
24821 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
24822 for processing /etc/grub.d scripts.
24823 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
24824 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
24825 as a condition for processing Linux images.
24826
24827 2008-01-10 Pavel Roskin <proski@gnu.org>
24828
24829 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
24830 to compile reiserfs.c on PowerPC.
24831
24832 2008-01-10 Robert Millan <rmh@aybabtu.com>
24833
24834 * kern/device.c (grub_device_iterate): Do not abort device iteration
24835 when one of the devices cannot be opened.
24836 * kern/disk.c (grub_disk_open): Do not account previous failures of
24837 unrelated functions when grub_errno is checked for.
24838
24839 2008-01-08 Robert Millan <rmh@aybabtu.com>
24840
24841 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
24842 `! grub_linux_is_bzimage', change order of address comparison to make
24843 it more intuitive, and improve "too big zImage" error message.
24844
24845 2008-01-08 Robert Millan <rmh@aybabtu.com>
24846
24847 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
24848 `$(update-grub_DATA)'.
24849 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
24850 targets.
24851
24852 2008-01-07 Robert Millan <rmh@aybabtu.com>
24853
24854 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
24855 which instruction is modified by grub-setup during installation
24856 (since it wasn't obvious by only looking at this file).
24857
24858 2008-01-07 Robert Millan <rmh@aybabtu.com>
24859
24860 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
24861 listing actual TODO items.
24862
24863 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
24864
24865 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
24866 correctly.
24867 (grub_reiserfs_get_key_offset): Likewise.
24868 (grub_reiserfs_set_key_offset): Likewise.
24869 (grub_reiserfs_set_key_type): Likewise.
24870 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
24871
24872 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
24873 better to remove the bitfield version completely.
24874
24875 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
24876
24877 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
24878 allocated from the heap, due to the fshelp implementation.
24879 (grub_reiserfs_dir): Free NODE, due to the same reason.
24880
24881 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
24882
24883 Mostly from Vincent Pelletier:
24884
24885 * fs/reiserfs.c: New file.
24886
24887 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
24888 (reiserfs_mod_SOURCES): New variable.
24889 (reiserfs_mod_CFLAGS): Likewise.
24890 (reiserfs_mod_LDFLAGS): Likewise.
24891
24892 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
24893 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
24894 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
24895 normal/color.c.
24896
24897 2008-01-06 Robert Millan <rmh@aybabtu.com>
24898
24899 * normal/color.c: Remove `<grub/env.h>'.
24900
24901 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
24902
24903 * include/grub/normal.h: Include <grub/env.h>.
24904
24905 2008-01-05 Robert Millan <rmh@aybabtu.com>
24906
24907 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
24908 usage example with `(hd0,1)'.
24909 Reported by Samuel Thibault.
24910
24911 2008-01-05 Robert Millan <rmh@aybabtu.com>
24912
24913 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
24914 (grub_linux_boot_zimage): Rename to ...
24915 (grub_linux_boot): ... this.
24916 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
24917 (grub_linux_boot_zimage): Conditionalize zImage copy.
24918
24919 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
24920 (grub_linux_boot_bzimage): Remove prototype.
24921 (grub_linux_boot_zimage): Rename to ...
24922 (grub_linux_boot): ... this.
24923
24924 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
24925 (grub_linux_boot): Remove function.
24926
24927 2008-01-05 Robert Millan <rmh@aybabtu.com>
24928
24929 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
24930 (grub_env_write_color_highlight): Likewise.
24931 (grub_wait_after_message): Likewise.
24932
24933 * normal/color.c: New file.
24934
24935 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
24936 (normal_mod_DEPENDENCIES): Likewise.
24937
24938 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
24939 (normal_mod_DEPENDENCIES): Likewise.
24940
24941 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
24942 (normal_mod_DEPENDENCIES): Likewise.
24943
24944 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
24945 (normal_mod_DEPENDENCIES): Likewise.
24946
24947 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
24948 for waiting after a message is printed.
24949 * normal/main.c (read_config_file): Likewise.
24950 (grub_normal_init): Register grub_env_write_color_normal() and
24951 grub_env_write_color_highlight() hooks. Mark `color_normal' and
24952 `color_highlight' variables as global.
24953
24954 * normal/menu.c (grub_wait_after_message): New function.
24955 (grub_color_menu_normal): New variable. Replaces ...
24956 (GRUB_COLOR_MENU_NORMAL): ... this macro.
24957 (grub_color_menu_highlight): New variable. Replaces ...
24958 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
24959 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
24960 `GRUB_TERM_COLOR_STANDARD'.
24961 (print_message): Use `grub_setcolorstate' to reload colors. Rename
24962 `normal_code' and `highlight_code' to `old_color_normal' and
24963 `old_color_highlight', respectively.
24964 (grub_menu_init_page): Update colors when drawing the menu, based on
24965 `menu_color_normal' and `menu_color_highlight' variables.
24966 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
24967 a message is printed.
24968
24969 2008-01-05 Robert Millan <rmh@aybabtu.com>
24970
24971 * kern/env.c (grub_env_context_open): Propagate hooks for global
24972 variables to new context.
24973
24974 * kern/main.c (grub_set_root_dev): Export `root' variable.
24975
24976 2008-01-05 Robert Millan <rmh@aybabtu.com>
24977
24978 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
24979 discs unconditionally, since udev and others have options to provide
24980 them.
24981
24982 2008-01-05 Robert Millan <rmh@aybabtu.com>
24983
24984 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
24985
24986 2008-01-04 Christian Franke <franke@computer.org>
24987
24988 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
24989 of eisa_mmap.
24990
24991 2008-01-03 Pavel Roskin <proski@gnu.org>
24992
24993 * kern/i386/linuxbios/init.c: Put "void" to all function
24994 declarations with no arguments.
24995 * kern/powerpc/ieee1275/init.c: Likewise.
24996 * term/i386/pc/at_keyboard.c: Likewise.
24997 * term/i386/pc/vga_text.c: Likewise.
24998 * util/grub-mkdevicemap.c: Likewise.
24999
25000 2008-01-02 Robert Millan <rmh@aybabtu.com>
25001
25002 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
25003 message when loaded image is out of bounds.
25004 (grub_multiboot_load_elf64): Likewise.
25005
25006 2008-01-02 Pavel Roskin <proski@gnu.org>
25007
25008 * util/grub.d/10_linux.in: Try version without ".old" when
25009 looking for initrd. It's better to use initrd from the newer
25010 kernel of the same version than no initrd at all.
25011
25012 2008-01-01 Robert Millan <rmh@aybabtu.com>
25013
25014 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
25015
25016 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
25017
25018 * include/grub/video.h: Added grub_video_unmap_color and
25019 grub_video_get_active_render_target.
25020 (grub_video_adapter): Added unmap_color and get_active_render_target.
25021
25022 * video/video.c: Added grub_video_unmap_color and
25023 grub_video_get_active_render_target.
25024 (grub_video_get_info): Changed method to accept NULL pointer as an
25025 argument to allow detection of active video adapter.
25026
25027 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
25028 grub_video_vbe_unmap_color_int.
25029 Added grub_video_vbe_unmap_color and
25030 grub_video_vbe_get_active_render_target.
25031 (grub_video_vbe_adapter): Added unmap_color and
25032 get_active_render_target.
25033
25034 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
25035 with grub_video_vbe_unmap_color_int.
25036
25037 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
25038 (DEFAULT_NORMAL_COLOR): Likewise.
25039 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
25040 (DEFAULT_FG_COLOR): Removed.
25041 (DEFAULT_BG_COLOR): Likewise.
25042 (DEFAULT_CURSOR_COLOR): Changed value.
25043 (grub_virtual_screen): Added standard_color_setting,
25044 normal_color_setting, highlight_color_setting and term_color.
25045 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
25046 (bitmap_width): Added.
25047 (bitmap_height): Likewise.
25048 (bitmap): Likewise.
25049 (set_term_color): Likewise.
25050 (grub_virtual_screen_setup): Changed to use new terminal coloring
25051 settings.
25052 (grub_gfxterm_init): Added init for bitmap.
25053 (grub_gfxterm_fini): Added destroy for bitmap.
25054 (redraw_screen_rect): Updated to use background bitmap and new
25055 terminal coloring.
25056 (scroll_up): Added optimization for case when there is no bitmap.
25057 (grub_gfxterm_cls): Fixed to use correct background color.
25058 (grub_virtual_screen_setcolorstate): Changed to use new terminal
25059 coloring.
25060 (grub_virtual_screen_setcolor): Likewise.
25061 (grub_virtual_screen_getcolor): Added.
25062 (grub_gfxterm_background_image_cmd): Likewise.
25063 (grub_video_term): Added setcolor and getcolor.
25064 (MOD_INIT): Added registration of background_image command.
25065 (MOD_TERM): Added unregistration for background_image command.
25066
25067 2007-12-30 Pavel Roskin <proski@gnu.org>
25068
25069 * loader/multiboot_loader.c: Fix multiboot command
25070 unregistration. Fix all typos in the word "multiboot".
25071
25072 2007-12-29 Pavel Roskin <proski@gnu.org>
25073
25074 * util/grub.d/10_linux.in: Refactor search for initrd. Add
25075 support for initrd names used in Fedora.
25076
25077 2007-12-26 Bean <bean123ch@gmail.com>
25078
25079 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
25080 (cpio_mod_SOURCES): New variable.
25081 (cpio_mod_CFLAGS): Likewise.
25082 (cpio_mod_LDFLAGS): Likewise.
25083
25084 * fs/cpio.c: New file.
25085
25086 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
25087
25088 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25089
25090 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
25091
25092 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25093
25094 2007-12-25 Robert Millan <rmh@aybabtu.com>
25095
25096 * include/grub/term.h (struct grub_term): Add `getcolor' function.
25097 (grub_getcolor): New function.
25098
25099 * kern/term.c (grub_getcolor): New function.
25100 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
25101 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
25102 (print_entry): Set normal and highlight colors to
25103 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
25104 respectively, before printing and restore them to old
25105 values afterwards.
25106 (grub_menu_init_page): Likewise. Fill an additional colored space
25107 that would otherwise be left blank.
25108
25109 * term/efi/console.c (grub_console_getcolor): New function.
25110 (struct grub_console_term.getcolor): New variable.
25111 * term/i386/pc/console.c (grub_console_getcolor): New function.
25112 (struct grub_console_term.getcolor): New variable.
25113 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
25114 (struct grub_console_term.getcolor): New variable.
25115
25116 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
25117 (struct grub_console_term.setcolor): Remove variable.
25118 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
25119 (struct grub_console_term.setcolor): Remove variable.
25120 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
25121 (struct grub_console_term.setcolor): Remove variable.
25122 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
25123 (struct grub_console_term.setcolor): Remove variable.
25124
25125 2007-12-25 Robert Millan <rmh@aybabtu.com>
25126
25127 * configure.ac: Search for possible unifont.hex locations, and
25128 define UNIFONT_HEX if found.
25129
25130 * Makefile.in (UNIFONT_HEX): Define variable.
25131 (DATA): Rename to ...
25132 (PKGLIB): ... this. Update all users.
25133 (PKGDATA): New variable.
25134 (pkgdata_IMAGES): Rename to ...
25135 (pkglib_IMAGES): ... this. Update all users.
25136 (pkgdata_MODULES): Rename to ...
25137 (pkglib_MODULES): ... this. Update all users.
25138 (pkgdata_PROGRAMS): Rename to ...
25139 (pkglib_PROGRAMS): ... this. Update all users.
25140 (pkgdata_DATA): Rename to ...
25141 (pkglib_DATA): ... this. Update all users.
25142 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
25143 (unicode.pff, ascii.pff): New rules.
25144 (all-local): Add `$(PKGDATA)' dependency.
25145 (install-local): Process `$(PKGDATA)'.
25146
25147 * util/update-grub_lib.in (font_path): Search for *.pff files in
25148 a few more locations, including `${pkgdata}'.
25149
25150 2007-12-23 Robert Millan <rmh@aybabtu.com>
25151
25152 Patch from Bean <bean123ch@gmail.com>:
25153 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
25154 `size'.
25155
25156 2007-12-21 Bean <bean123ch@gmail.com>
25157
25158 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
25159 (ntfscomp_mod_SOURCES): New variable.
25160 (ntfscomp_mod_CFLAGS): Likewise.
25161 (ntfscomp_mod_LDFLAGS): Likewise.
25162
25163 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
25164 (grub_probe_SOURCES): Likewise.
25165 (grub_emu_SOURCES): Likewise.
25166
25167 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
25168 (grub_emu_SOURCES): Likewise.
25169
25170 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
25171 (grub_emu_SOURCES): Likewise.
25172
25173 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
25174 (grub_emu_SOURCES): Likewise.
25175
25176 * fs/ntfs.c (grub_ntfscomp_func): New variable.
25177 (read_run_list): Renamed to grub_ntfs_read_run_list.
25178 (decomp_nextvcn): Moved to ntfscomp.c.
25179 (decomp_getch): Likewise.
25180 (decomp_get16): Likewise.
25181 (decomp_block): Likewise.
25182 (read_block): Likewise.
25183 (read_data): Partially moved to ntfscomp.c.
25184 (fixup): Change unsigned to grub_uint16_t.
25185 (read_mft): Change unsigned long to grub_uint32_t.
25186 (read_attr): Likewise.
25187 (read_data): Likewise.
25188 (read_run_data): Likewise.
25189 (read_run_list): Likewise.
25190 (read_mft): Likewise.
25191
25192 * fs/ntfscomp.c: New file.
25193
25194 * include/grub/ntfs.h: New file.
25195
25196 2007-12-16 Robert Millan <rmh@aybabtu.com>
25197
25198 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
25199 IDE disk check, since Linux is known to support 20 IDE disks.
25200 Reported by Colin Watson.
25201
25202 2007-12-15 Bean <bean123ch@gmail.com>
25203
25204 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
25205 (lnxboot_img_SOURCES): New variable.
25206 (lnxboot_img_ASFLAGS): Likewise.
25207 (lnxboot_img_LDFLAGS): Likewise.
25208
25209 * boot/i386/pc/lnxboot.S: New file.
25210
25211 2007-11-24 Pavel Roskin <proski@gnu.org>
25212
25213 * configure.ac: Test if '--build-id=none' is supported by the
25214 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
25215 objcopy to generate incorrect binary files (binutils
25216 2.17.50.0.18-1 as shipped by Fedora 8).
25217 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
25218 linking, so that build ID doesn't break the test.
25219
25220 2007-11-24 Pavel Roskin <proski@gnu.org>
25221
25222 * include/grub/i386/time.h: use "void" in the argument list
25223 of grub_cpu_idle().
25224 * include/grub/powerpc/time.h: Likewise.
25225 * include/grub/sparc64/time.h: Likewise.
25226
25227 2007-11-18 Christian Franke <franke@computer.org>
25228
25229 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
25230 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
25231 This fixes the problem that function keys did not work in grub-emu.
25232
25233 2007-11-18 Christian Franke <franke@computer.org>
25234
25235 * disk/host.c (grub_host_open): Remove attribute unused from
25236 name parameter. Add check for "host". This fixes the problem
25237 that grub-emu does not find partitions.
25238
25239 2007-11-18 Christian Franke <franke@computer.org>
25240
25241 * util/hostfs.c (is_dir): New function.
25242 (grub_hostfs_dir): Handle missing dirent.d_type case.
25243 (grub_hostfs_read): Add missing fseek().
25244 (grub_hostfs_label): Clear label pointer. This fixes a crash
25245 of grub-emu on "ls (host)".
25246
25247 2007-11-18 Christian Franke <franke@computer.org>
25248
25249 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
25250 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
25251 to 64 bit boundary by default.
25252
25253 2007-11-18 Bean <bean123ch@gmail.com>
25254
25255 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
25256 (hexdump_mod_SOURCES): New variable.
25257 (hexdump_mod_CFLAGS): Likewise.
25258 (hexdump_mod_LDFLAGS): Likewise.
25259
25260 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
25261
25262 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
25263
25264 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
25265
25266 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
25267
25268 * include/grub/hexdump.h: New file.
25269
25270 * commands/hexdump.c: New file.
25271
25272 2007-11-10 Robert Millan <rmh@aybabtu.com>
25273
25274 * commands/i386/pc/play.c (beep_off): Switch order of arguments
25275 in grub_outb() calls.
25276 (beep_on): Likewise.
25277
25278 2007-11-10 Christian Franke <franke@computer.org>
25279
25280 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
25281 (grub_menu_run): Likewise.
25282
25283 2007-11-10 Robert Millan <rmh@aybabtu.com>
25284
25285 * include/grub/i386/efi/machine.h: New file.
25286 * include/grub/i386/linuxbios/machine.h: Likewise.
25287 * include/grub/i386/pc/machine.h: Likewise.
25288 * include/grub/powerpc/ieee1275/machine.h: Likewise.
25289 * include/grub/sparc64/ieee1275/machine.h: Likewise.
25290
25291 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
25292 (serial_hw_io_addr): New variable.
25293 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
25294 instead of `(unsigned short *) 0x400'.
25295
25296 2007-11-10 Bean <bean123ch@gmail.com>
25297
25298 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
25299
25300 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
25301
25302 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
25303 (vga_mod_SOURCES): Added.
25304 (vga_mod_CFLAGS): Likewise.
25305 (vga_mod_LDFLAGS): Likewise.
25306
25307 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
25308 grub_outb() calls.
25309 (set_map_mask): Likewise.
25310 (set_read_map): Likewise.
25311 (set_read_address): Likewise.
25312 (vga_font): Removed variable.
25313 (get_vga_glyph): Removed function.
25314 (invalidate_char): Likewise.
25315 (write_char): Changed to use grub_font_get_glyph() for font
25316 information.
25317 (grub_vga_putchar): Likewise.
25318 (grub_vga_getcharwidth): Likewise.
25319
25320 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
25321
25322 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
25323 flags.
25324 (pxeboot_img_LDFLAGS): Likewise.
25325 (diskboot_img_LDFLAGS): Likewise.
25326 (kernel_img_LDFLAGS): Likewise.
25327
25328 2007-11-06 Robert Millan <rmh@aybabtu.com>
25329
25330 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
25331 in grub_outb() calls.
25332 (serial_hw_init): Likewise.
25333
25334 2007-11-05 Robert Millan <rmh@aybabtu.com>
25335
25336 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
25337 spaces. Skip non-regular files.
25338
25339 2007-11-05 Robert Millan <rmh@aybabtu.com>
25340
25341 * kern/disk.c (grub_disk_firmware_fini)
25342 (grub_disk_firmware_is_tainted): New variables.
25343
25344 * include/grub/disk.h (grub_disk_firmware_fini)
25345 (grub_disk_firmware_is_tainted): Likewise.
25346
25347 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
25348 (grub_disk_biosdisk_fini): ... to here.
25349 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
25350 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
25351 is set. Register grub_disk_biosdisk_fini() in
25352 `grub_disk_firmware_fini'.
25353
25354 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
25355 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
25356 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
25357 to finish existing firmware disk interface.
25358
25359 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
25360 (ata_mod_SOURCES): New variable.
25361 (ata_mod_CFLAGS): Likewise.
25362 (ata_mod_LDFLAGS): Likewise.
25363
25364 2007-11-05 Robert Millan <rmh@aybabtu.com>
25365
25366 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
25367 (grub_ata_wait): Reimplement using grub_millisleep().
25368
25369 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
25370 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
25371
25372 2007-11-03 Marco Gerards <marco@gnu.org>
25373
25374 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
25375 (CRTC_ADDR_PORT): New macro.
25376 (CRTC_DATA_PORT): Likewise.
25377 (CRTC_CURSOR): Likewise.
25378 (CRTC_CURSOR_ADDR_HIGH): Likewise.
25379 (CRTC_CURSOR_ADDR_LOW): Likewise.
25380 (update_cursor): New function.
25381 (grub_console_real_putchar): Call `update_cursor'.
25382 (grub_console_gotoxy): Likewise.
25383 (grub_console_cls): Set the default color when clearing the
25384 screen.
25385 (grub_console_setcursor): Implemented.
25386
25387 2007-11-03 Marco Gerards <marco@gnu.org>
25388
25389 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
25390 become activate.
25391 (grub_ata_pio_write): Likewise.
25392
25393 (grub_atapi_identify): Wait after issuing an ATA command.
25394 (grub_atapi_packet): Likewise.
25395 (grub_ata_identify): Likewise.
25396 (grub_ata_readwrite): Likewise.
25397
25398 2007-11-03 Marco Gerards <marco@gnu.org>
25399
25400 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
25401 (grub_ata_pio_write): Likewise.
25402 (grub_ata_readwrite): Use `grub_error', instead of
25403 returning `grub_errno'.
25404
25405 2007-11-03 Marco Gerards <marco@gnu.org>
25406
25407 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
25408 grub_ata_pio_write once for every single sector, instead of for
25409 multiple sectors.
25410
25411 2007-10-31 Robert Millan <rmh@aybabtu.com>
25412
25413 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
25414
25415 * conf/i386-linuxbios.rmk: New file.
25416
25417 * kern/i386/pc/hardware.c: Likewise.
25418 * term/i386/pc/at_keyboard.c: Likewise.
25419 * term/i386/pc/vga_text.c: Likewise.
25420
25421 * include/grub/i386/linuxbios/boot.h: Likewise.
25422 * include/grub/i386/linuxbios/console.h: Likewise.
25423 * include/grub/i386/linuxbios/init.h: Likewise.
25424 * include/grub/i386/linuxbios/kernel.h: Likewise.
25425 * include/grub/i386/linuxbios/loader.h: Likewise.
25426 * include/grub/i386/linuxbios/memory.h: Likewise.
25427 * include/grub/i386/linuxbios/serial.h: Likewise.
25428 * include/grub/i386/linuxbios/time.h: Likewise.
25429
25430 * kern/i386/linuxbios/init.c: Likewise.
25431 * kern/i386/linuxbios/startup.S: Likewise.
25432 * kern/i386/linuxbios/table.c: Likewise.
25433
25434 2007-10-31 Marco Gerards <marco@gnu.org>
25435
25436 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
25437 (ata_mod_SOURCES): New variable.
25438 (ata_mod_CFLAGS): Likewise.
25439 (ata_mod_LDFLAGS): Likewise.
25440
25441 * disk/ata.c: New file.
25442
25443 * include/grub/disk.h (grub_disk_dev_id): Add
25444 `GRUB_DISK_DEV_ATA_ID'.
25445
25446 2007-10-31 Robert Millan <rmh@aybabtu.com>
25447
25448 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
25449 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
25450
25451 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
25452 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
25453
25454 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
25455 `<grub/types.h>'.
25456
25457 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
25458
25459 2007-10-27 Robert Millan <rmh@aybabtu.com>
25460
25461 * include/grub/types.h (ULONG_MAX): Define macro.
25462
25463 2007-10-22 Robert Millan <rmh@aybabtu.com>
25464
25465 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
25466 `"../realmode.S"'.
25467 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
25468
25469 2007-10-22 Robert Millan <rmh@aybabtu.com>
25470
25471 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
25472 (pkgdata_MODULES): Add `biosdisk.mod'.
25473 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
25474 variables.
25475
25476 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
25477 (grub_biosdisk_init): Replace with ...
25478 (GRUB_MOD_INIT(biosdisk)): ... this.
25479 (grub_biosdisk_fini): Replace with ...
25480 (GRUB_MOD_FINI(biosdisk)): ... this.
25481
25482 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
25483 (grub_machine_init): Remove call to grub_biosdisk_init().
25484 (grub_machine_fini): Remove call to grub_machine_fini().
25485
25486 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
25487
25488 2007-10-22 Robert Millan <rmh@aybabtu.com>
25489
25490 * include/grub/time.h: New file.
25491 * include/grub/i386/time.h: Likewise.
25492 * include/grub/powerpc/time.h: Likewise.
25493 * include/grub/sparc64/time.h: Likewise.
25494
25495 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
25496 instances to ...
25497 (KERNEL_MACHINE_TIME_HEADER): ... this.
25498 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
25499 instances to ...
25500 (KERNEL_MACHINE_TIME_HEADER): ... this.
25501 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
25502 instances to ...
25503 (KERNEL_MACHINE_TIME_HEADER): ... this.
25504
25505 * kern/i386/efi/init.c: Include `<grub/time.h>'.
25506 (grub_millisleep): New function.
25507 * kern/i386/pc/init.c: Include `<grub/time.h>'.
25508 (grub_millisleep): New function.
25509 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
25510 Remove `grub/machine/time.h' include.
25511 (grub_millisleep): New function.
25512 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
25513 Remove `grub/machine/time.h' include.
25514 (grub_millisleep): New function.
25515
25516 * include/grub/misc.h (grub_div_roundup): New function.
25517
25518 * kern/misc.c: Include `<grub/time.h>'.
25519 (grub_millisleep_generic): New function.
25520
25521 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
25522 Add `time.h'.
25523 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
25524 Add `time.h'.
25525 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
25526 `machine/time.h'. Add `time.h'.
25527 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
25528
25529 2007-10-21 Robert Millan <rmh@aybabtu.com>
25530
25531 * include/grub/misc.h (grub_max): New function.
25532
25533 2007-10-21 Robert Millan <rmh@aybabtu.com>
25534
25535 * util/misc.c (grub_util_info): Call fflush() before returning.
25536
25537 2007-10-20 Robert Millan <rmh@aybabtu.com>
25538
25539 * genmk.rb (Image): Copy `extra_flags' from here ...
25540 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
25541
25542 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
25543 to `argc' and `args' arguments.
25544
25545 2007-10-17 Robert Millan <rmh@aybabtu.com>
25546
25547 * kern/i386/loader.S: New file.
25548
25549 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
25550 * kern/i386/loader.S (grub_linux_prot_size)... to here.
25551 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
25552 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
25553 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
25554 * kern/i386/loader.S (grub_linux_real_addr)... to here.
25555 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
25556 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
25557 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
25558 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
25559 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
25560 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
25561 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
25562 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
25563
25564 * kern/i386/realmode.S: New file.
25565
25566 * kern/i386/pc/startup.S (protstack): Moved from here ...
25567 * kern/i386/realmode.S (protstack)... to here.
25568 * kern/i386/pc/startup.S (gdt): Moved from here ...
25569 * kern/i386/realmode.S (gdt)... to here.
25570 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
25571 * kern/i386/realmode.S (prot_to_real)... to here.
25572
25573 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
25574 `kern/i386/realmode.S'.
25575
25576 2007-10-17 Robert Millan <rmh@aybabtu.com>
25577
25578 * include/grub/i386/loader.h: New file.
25579
25580 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
25581 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
25582 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
25583 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
25584 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
25585 * include/grub/i386/loader.h (grub_linux_prot_size)
25586 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
25587 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
25588 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
25589 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
25590
25591 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
25592
25593 2007-10-15 Robert Millan <rmh@aybabtu.com>
25594
25595 * normal/misc.c (grub_normal_print_device_info): Do not probe for
25596 filesystem when dev->disk is unset.
25597 Do probe for filesystem even when dev->disk->has_partitions is set.
25598 In case a filesystem is found, always report it.
25599 In case it isn't, if dev->disk->has_partitions is set, report that
25600 a partition table was found instead of reporting that no filesystem
25601 could be identified.
25602
25603 2007-10-12 Robert Millan <rmh@aybabtu.com>
25604
25605 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
25606 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
25607
25608 * include/grub/types.h (grub_host_to_target16): New macro.
25609 (grub_host_to_target32): Likewise.
25610 (grub_host_to_target64): Likewise.
25611 (grub_target_to_host16): Likewise.
25612 (grub_target_to_host32): Likewise.
25613 (grub_target_to_host64): Likewise.
25614
25615 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
25616 Renamed from to ...
25617 (GRUB_MOD_ALIGN): ...this. Update all users.
25618
25619 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
25620 grub_host_to_target32.
25621 Replace grub_be_to_cpu32 with grub_target_to_host32.
25622 (load_modules): Likewise.
25623 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
25624 Replace grub_be_to_cpu32 with grub_target_to_host32.
25625 Replace grub_cpu_to_be16 with grub_host_to_target16.
25626 Replace grub_cpu_to_be32 grub_host_to_target32.
25627
25628 2007-10-12 Robert Millan <rmh@aybabtu.com>
25629
25630 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
25631 * util/elf/grub-mkimage.c: ... here.
25632
25633 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
25634 `util/powerpc/ieee1275/grub-mkimage.c'.
25635
25636 2007-10-07 Robert Millan <rmh@aybabtu.com>
25637
25638 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
25639 and make it easier to figure out.
25640 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
25641 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
25642 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
25643 leave us with less than HEAP_MIN_SIZE total heap.
25644 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
25645
25646 2007-10-03 Robert Millan <rmh@aybabtu.com>
25647
25648 * include/grub/i386/io.h: New file.
25649 * commands/i386/pc/play.c (inb): Removed.
25650 (outb): Removed.
25651 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
25652 with grub_outb().
25653 * term/i386/pc/serial.c (inb): Removed.
25654 (outb): Removed.
25655 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
25656 with grub_outb().
25657 * term/i386/pc/vga.c (inb): Removed.
25658 (outb): Removed.
25659 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
25660 with grub_outb().
25661
25662 2007-10-02 Robert Millan <rmh@aybabtu.com>
25663
25664 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
25665 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25666 Reported by Marcin Kurek.
25667
25668 2007-09-07 Robert Millan <rmh@aybabtu.com>
25669
25670 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
25671 SmartFirmware version updates (as released by Sven Luther), and avoid
25672 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
25673 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
25674 known broken.
25675
25676 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
25677
25678 From Hitoshi Ozeki:
25679 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
25680 when merging two regions.
25681
25682 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
25683
25684 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
25685 * normal/completion.c (grub_normal_do_completion): Likewise.
25686 Reported by Hitoshi Ozeki.
25687
25688 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
25689
25690 Do not use devices at boot in chainloading.
25691
25692 * loader/i386/pc/chainloader.c (boot_drive): New variable.
25693 (boot_part_addr): Likewise.
25694 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
25695 with BOOT_DRIVE and BOOT_PART_ADDR.
25696 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
25697 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
25698
25699 2007-08-29 Robert Millan <rmh@aybabtu.com>
25700
25701 Patch from Simon Peter <dn.tlp@gmx.net>:
25702 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
25703 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
25704 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
25705 util/i386/pc/grub-setup.c_DEPENDENCIES.
25706 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
25707 util/grub-probe.c_DEPENDENCIES.
25708 * conf/powerpc-ieee1275.rmk: Likewise.
25709
25710 2007-08-28 Robert Millan <rmh@aybabtu.com>
25711
25712 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
25713 to tell grub-mkdevicemap how to name devices.
25714 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
25715 feature).
25716
25717 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
25718 util/i386/get_disk_name.c.
25719 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
25720 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
25721 util/ieee1275/get_disk_name.c.
25722
25723 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
25724
25725 * DISTLIST: Add util/i386/get_disk_name.c and
25726 util/ieee1275/get_disk_name.c.
25727
25728 * util/grub-mkdevicemap.c: Replace device naming logic with
25729 grub_util_get_disk_name() calls.
25730
25731 2007-08-20 Robert Millan <rmh@aybabtu.com>
25732
25733 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
25734 (so that it works for both plural and singular quantities).
25735
25736 2007-08-05 Robert Millan <rmh@aybabtu.com>
25737
25738 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
25739 so that [xz] isn't taken into account when determining order.
25740
25741 2007-08-02 Marco Gerards <marco@gnu.org>
25742
25743 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
25744 `include/multiboot2.h', `include/grub/elfload.h',
25745 `include/multiboot.h', `include/grub/multiboot.h',
25746 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
25747 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
25748 `kern/elf.c', `loader/multiboot_loader.c',
25749 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
25750 `loader/i386/pc/multiboot2.c',
25751 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
25752 `util/i386/pc/grub-mkrescue.in'. Remove
25753 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
25754 `include/grub/i386/pc/util/biosdisk.h' and
25755 `include/grub/powerpc/ieee1275/multiboot.h'.
25756
25757 2007-08-02 Bean <bean123ch@gmail.com>
25758
25759 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
25760 (ntfs_mod_SOURCES): New variable.
25761 (ntfs_mod_CFLAGS): Likewise.
25762 (ntfs_mod_LDFLAGS): Likewise.
25763
25764 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
25765 (grub_probe_SOURCES): Likewise.
25766 (grub_emu_SOURCES): Likewise.
25767
25768 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
25769 (grub_emu_SOURCES): Likewise.
25770
25771 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
25772 (grub_emu_SOURCES): Likewise.
25773
25774 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
25775
25776 * fs/ntfs.c: New file.
25777
25778 2007-08-02 Bean <bean123ch@gmail.com>
25779
25780 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
25781
25782 * file.h (grub_file): Likewise.
25783
25784 * fshelp.h (grub_fshelp_read_file): Likewise.
25785
25786 * util/i386/pc/grub-setup.c (setup): Likewise.
25787 (save_first_sector): Likewise.
25788 (save_blocklists): Likewise.
25789
25790 * fs/affs.c (grub_affs_read_file): Likewise.
25791
25792 * fs/ext2.c (grub_ext2_read_file): Likewise.
25793
25794 * fs/fat.c (grub_fat_read_data): Likewise.
25795
25796 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
25797
25798 * fs/hfs.c (grub_hfs_read_file): Likewise.
25799
25800 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
25801
25802 * fs/jfs.c (grub_jfs_read_file): Likewise.
25803
25804 * fs/minix.c (grub_minix_read_file): Likewise.
25805
25806 * fs/sfs.c (grub_sfs_read_file): Likewise.
25807
25808 * fs/ufs.c (grub_ufs_read_file): Likewise.
25809
25810 * fs/xfs.c (grub_xfs_read_file): Likewise.
25811
25812 * command/blocklist.c (read_blocklist): Likewise.
25813 (print_blocklist): Likewise.
25814
25815 2007-08-02 Marco Gerards <marco@gnu.org>
25816
25817 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
25818 `util/hostfs.c'.
25819
25820 * disk/host.c: New file.
25821
25822 * util/hostfs.c: Likewise.
25823
25824 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
25825 return `GRUB_ERR_BAD_FS'.
25826 * fs/sfs.c (grub_sfs_mount): Likewise.
25827 * fs/xfs.c (grub_xfs_mount): Likewise.
25828
25829 * include/grub/disk.h (enum grub_disk_dev_id): Add
25830 `GRUB_DISK_DEVICE_HOST_ID'.
25831
25832 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
25833
25834 2007-07-24 Jerone Young <jerone@gmail.com>
25835
25836 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
25837 modules for compilation.
25838 * conf/powerpc-ieee1275.rmk: Likewise.
25839
25840 * include/multiboot.h: Move multiboot definitions to one file. Rename
25841 many definitions to not get grub specific.
25842 * include/multiboot2.h: Create header with multiboot 2 definitions.
25843 * include/grub/multiboot.h: Header for grub specific function
25844 prototypes and definitions.
25845 * include/grub/multiboot2.h: Likewise.
25846 * include/grub/multiboot_loader.h: Likewise.
25847 * include/grub/i386/pc/multiboot.h: Removed.
25848 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
25849
25850 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
25851 and 2 to allow for one multiboot and module commands.
25852 * loader/multiboot2.c: Add multiboot2 functionality.
25853 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
25854 and definition names.
25855 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
25856 2 functions.
25857 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
25858 ieee1275 specific multiboot2 code.
25859
25860 * kern/i386/pc/startup.S: Change headers and definition names for
25861 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
25862
25863 2007-07-22 Robert Millan <rmh@aybabtu.com>
25864
25865 * geninitheader.sh: Process file specified in first parameter rather
25866 than hardcoding grub_modules_init.lst.
25867 * geninit.sh: Likewise. Also, construct header name dynamically rather
25868 than hardcoding grub_modules_init.h.
25869
25870 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
25871 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
25872 grub_probe_init.[ch] and grub_setup_init.[ch].
25873
25874 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
25875 grub_modules_init.h with grub_emu_init.h.
25876 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
25877 grub_probe_init.[ch] files.
25878 * conf/i386-efi.rmk: Likewise.
25879 * conf/i386-pc.rmk: Likewise.
25880 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
25881 grub_setup_init.[ch] files.
25882
25883 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
25884 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
25885 to initialize modules rather than a list of hardcoded functions.
25886 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
25887 grub_init_all() to initialize modules rather than a list of hardcoded
25888 functions.
25889
25890 2007-07-22 Robert Millan <rmh@aybabtu.com>
25891
25892 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
25893 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
25894
25895 2007-07-22 Robert Millan <rmh@aybabtu.com>
25896
25897 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
25898 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
25899 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
25900 flag when running on SmartFirmware.
25901 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
25902 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
25903 was set.
25904
25905 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
25906 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
25907 rather than decreasing it.
25908
25909 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
25910 there's not enough space to do it, fail in the same way as when it
25911 can't be done because there are no partitions.
25912
25913 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
25914 when nvsetenv failed.
25915
25916 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
25917
25918 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
25919 because this rule is automatically generated.
25920 (grub-mkrescue): Removed for the same reason as above.
25921
25922 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
25923
25924 Migrate to GNU General Public License Version 3.
25925
25926 * COPYING: Replaced with the plain text version of GPLv3.
25927
25928 * config.guess: Updated from gnulib.
25929 * config.sub: Likewise.
25930
25931 * geninit.sh: Output a GPLv3 copyright notice.
25932 * geninitheader.sh: Likewise.
25933 * genmodsrc.sh: Likewise.
25934 * gensymlist.sh.in: Likewise.
25935
25936 * boot/i386/pc/boot.S: Upgraded to GPLv3.
25937 * boot/i386/pc/diskboot.S: Likewise.
25938 * boot/i386/pc/pxeboot.S: Likewise.
25939 * commands/blocklist.c: Likewise.
25940 * commands/boot.c: Likewise.
25941 * commands/cat.c: Likewise.
25942 * commands/cmp.c: Likewise.
25943 * commands/configfile.c: Likewise.
25944 * commands/echo.c: Likewise.
25945 * commands/help.c: Likewise.
25946 * commands/ls.c: Likewise.
25947 * commands/search.c: Likewise.
25948 * commands/terminal.c: Likewise.
25949 * commands/test.c: Likewise.
25950 * commands/videotest.c: Likewise.
25951 * commands/i386/cpuid.c: Likewise.
25952 * commands/i386/pc/halt.c: Likewise.
25953 * commands/i386/pc/play.c: Likewise.
25954 * commands/i386/pc/reboot.c: Likewise.
25955 * commands/i386/pc/vbeinfo.c: Likewise.
25956 * commands/i386/pc/vbetest.c: Likewise.
25957 * commands/ieee1275/halt.c: Likewise.
25958 * commands/ieee1275/reboot.c: Likewise.
25959 * commands/ieee1275/suspend.c: Likewise.
25960 * disk/loopback.c: Likewise.
25961 * disk/lvm.c: Likewise.
25962 * disk/raid.c: Likewise.
25963 * disk/efi/efidisk.c: Likewise.
25964 * disk/i386/pc/biosdisk.c: Likewise.
25965 * disk/ieee1275/ofdisk.c: Likewise.
25966 * font/manager.c: Likewise.
25967 * fs/affs.c: Likewise.
25968 * fs/ext2.c: Likewise.
25969 * fs/fat.c: Likewise.
25970 * fs/fshelp.c: Likewise.
25971 * fs/hfs.c: Likewise.
25972 * fs/hfsplus.c: Likewise.
25973 * fs/iso9660.c: Likewise.
25974 * fs/jfs.c: Likewise.
25975 * fs/minix.c: Likewise.
25976 * fs/sfs.c: Likewise.
25977 * fs/ufs.c: Likewise.
25978 * fs/xfs.c: Likewise.
25979 * hello/hello.c: Likewise.
25980 * include/grub/acorn_filecore.h: Likewise.
25981 * include/grub/arg.h: Likewise.
25982 * include/grub/bitmap.h: Likewise.
25983 * include/grub/boot.h: Likewise.
25984 * include/grub/cache.h: Likewise.
25985 * include/grub/device.h: Likewise.
25986 * include/grub/disk.h: Likewise.
25987 * include/grub/dl.h: Likewise.
25988 * include/grub/elfload.h: Likewise.
25989 * include/grub/env.h: Likewise.
25990 * include/grub/err.h: Likewise.
25991 * include/grub/file.h: Likewise.
25992 * include/grub/font.h: Likewise.
25993 * include/grub/fs.h: Likewise.
25994 * include/grub/fshelp.h: Likewise.
25995 * include/grub/gzio.h: Likewise.
25996 * include/grub/hfs.h: Likewise.
25997 * include/grub/kernel.h: Likewise.
25998 * include/grub/loader.h: Likewise.
25999 * include/grub/lvm.h: Likewise.
26000 * include/grub/misc.h: Likewise.
26001 * include/grub/mm.h: Likewise.
26002 * include/grub/net.h: Likewise.
26003 * include/grub/normal.h: Likewise.
26004 * include/grub/parser.h: Likewise.
26005 * include/grub/partition.h: Likewise.
26006 * include/grub/pc_partition.h: Likewise.
26007 * include/grub/raid.h: Likewise.
26008 * include/grub/rescue.h: Likewise.
26009 * include/grub/script.h: Likewise.
26010 * include/grub/setjmp.h: Likewise.
26011 * include/grub/symbol.h: Likewise.
26012 * include/grub/term.h: Likewise.
26013 * include/grub/terminfo.h: Likewise.
26014 * include/grub/tparm.h: Likewise.
26015 * include/grub/types.h: Likewise.
26016 * include/grub/video.h: Likewise.
26017 * include/grub/efi/api.h: Likewise.
26018 * include/grub/efi/chainloader.h: Likewise.
26019 * include/grub/efi/console.h: Likewise.
26020 * include/grub/efi/console_control.h: Likewise.
26021 * include/grub/efi/disk.h: Likewise.
26022 * include/grub/efi/efi.h: Likewise.
26023 * include/grub/efi/pe32.h: Likewise.
26024 * include/grub/efi/time.h: Likewise.
26025 * include/grub/i386/linux.h: Likewise.
26026 * include/grub/i386/setjmp.h: Likewise.
26027 * include/grub/i386/types.h: Likewise.
26028 * include/grub/i386/efi/kernel.h: Likewise.
26029 * include/grub/i386/efi/loader.h: Likewise.
26030 * include/grub/i386/efi/time.h: Likewise.
26031 * include/grub/i386/pc/biosdisk.h: Likewise.
26032 * include/grub/i386/pc/boot.h: Likewise.
26033 * include/grub/i386/pc/chainloader.h: Likewise.
26034 * include/grub/i386/pc/console.h: Likewise.
26035 * include/grub/i386/pc/init.h: Likewise.
26036 * include/grub/i386/pc/kernel.h: Likewise.
26037 * include/grub/i386/pc/loader.h: Likewise.
26038 * include/grub/i386/pc/memory.h: Likewise.
26039 * include/grub/i386/pc/multiboot.h: Likewise.
26040 * include/grub/i386/pc/serial.h: Likewise.
26041 * include/grub/i386/pc/time.h: Likewise.
26042 * include/grub/i386/pc/vbe.h: Likewise.
26043 * include/grub/i386/pc/vbeblit.h: Likewise.
26044 * include/grub/i386/pc/vbefill.h: Likewise.
26045 * include/grub/i386/pc/vbeutil.h: Likewise.
26046 * include/grub/i386/pc/vga.h: Likewise.
26047 * include/grub/ieee1275/ieee1275.h: Likewise.
26048 * include/grub/ieee1275/ofdisk.h: Likewise.
26049 * include/grub/powerpc/libgcc.h: Likewise.
26050 * include/grub/powerpc/setjmp.h: Likewise.
26051 * include/grub/powerpc/types.h: Likewise.
26052 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
26053 * include/grub/powerpc/ieee1275/console.h: Likewise.
26054 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
26055 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26056 * include/grub/powerpc/ieee1275/loader.h: Likewise.
26057 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
26058 * include/grub/powerpc/ieee1275/time.h: Likewise.
26059 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
26060 * include/grub/sparc64/libgcc.h: Likewise.
26061 * include/grub/sparc64/setjmp.h: Likewise.
26062 * include/grub/sparc64/types.h: Likewise.
26063 * include/grub/sparc64/ieee1275/console.h: Likewise.
26064 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
26065 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26066 * include/grub/sparc64/ieee1275/time.h: Likewise.
26067 * include/grub/util/biosdisk.h: Likewise.
26068 * include/grub/util/getroot.h: Likewise.
26069 * include/grub/util/lvm.h: Likewise.
26070 * include/grub/util/misc.h: Likewise.
26071 * include/grub/util/raid.h: Likewise.
26072 * include/grub/util/resolve.h: Likewise.
26073 * io/gzio.c: Likewise.
26074 * kern/device.c: Likewise.
26075 * kern/disk.c: Likewise.
26076 * kern/dl.c: Likewise.
26077 * kern/elf.c: Likewise.
26078 * kern/env.c: Likewise.
26079 * kern/err.c: Likewise.
26080 * kern/file.c: Likewise.
26081 * kern/fs.c: Likewise.
26082 * kern/loader.c: Likewise.
26083 * kern/main.c: Likewise.
26084 * kern/misc.c: Likewise.
26085 * kern/mm.c: Likewise.
26086 * kern/parser.c: Likewise.
26087 * kern/partition.c: Likewise.
26088 * kern/rescue.c: Likewise.
26089 * kern/term.c: Likewise.
26090 * kern/efi/efi.c: Likewise.
26091 * kern/efi/init.c: Likewise.
26092 * kern/efi/mm.c: Likewise.
26093 * kern/i386/dl.c: Likewise.
26094 * kern/i386/efi/init.c: Likewise.
26095 * kern/i386/efi/startup.S: Likewise.
26096 * kern/i386/pc/init.c: Likewise.
26097 * kern/i386/pc/lzo1x.S: Likewise.
26098 * kern/i386/pc/startup.S: Likewise.
26099 * kern/ieee1275/ieee1275.c: Likewise.
26100 * kern/powerpc/cache.S: Likewise.
26101 * kern/powerpc/dl.c: Likewise.
26102 * kern/powerpc/ieee1275/cmain.c: Likewise.
26103 * kern/powerpc/ieee1275/crt0.S: Likewise.
26104 * kern/powerpc/ieee1275/init.c: Likewise.
26105 * kern/powerpc/ieee1275/openfw.c: Likewise.
26106 * kern/sparc64/cache.S: Likewise.
26107 * kern/sparc64/dl.c: Likewise.
26108 * kern/sparc64/ieee1275/init.c: Likewise.
26109 * kern/sparc64/ieee1275/openfw.c: Likewise.
26110 * loader/efi/chainloader.c: Likewise.
26111 * loader/efi/chainloader_normal.c: Likewise.
26112 * loader/i386/efi/linux.c: Likewise.
26113 * loader/i386/efi/linux_normal.c: Likewise.
26114 * loader/i386/pc/chainloader.c: Likewise.
26115 * loader/i386/pc/chainloader_normal.c: Likewise.
26116 * loader/i386/pc/linux.c: Likewise.
26117 * loader/i386/pc/linux_normal.c: Likewise.
26118 * loader/i386/pc/multiboot.c: Likewise.
26119 * loader/i386/pc/multiboot_normal.c: Likewise.
26120 * loader/powerpc/ieee1275/linux.c: Likewise.
26121 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
26122 * normal/arg.c: Likewise.
26123 * normal/cmdline.c: Likewise.
26124 * normal/command.c: Likewise.
26125 * normal/completion.c: Likewise.
26126 * normal/execute.c: Likewise.
26127 * normal/function.c: Likewise.
26128 * normal/lexer.c: Likewise.
26129 * normal/main.c: Likewise.
26130 * normal/menu.c: Likewise.
26131 * normal/menu_entry.c: Likewise.
26132 * normal/misc.c: Likewise.
26133 * normal/parser.y: Likewise.
26134 * normal/script.c: Likewise.
26135 * normal/i386/setjmp.S: Likewise.
26136 * normal/powerpc/setjmp.S: Likewise.
26137 * normal/sparc64/setjmp.S: Likewise.
26138 * partmap/acorn.c: Likewise.
26139 * partmap/amiga.c: Likewise.
26140 * partmap/apple.c: Likewise.
26141 * partmap/gpt.c: Likewise.
26142 * partmap/pc.c: Likewise.
26143 * partmap/sun.c: Likewise.
26144 * term/gfxterm.c: Likewise.
26145 * term/terminfo.c: Likewise.
26146 * term/efi/console.c: Likewise.
26147 * term/i386/pc/console.c: Likewise.
26148 * term/i386/pc/serial.c: Likewise.
26149 * term/i386/pc/vesafb.c: Likewise.
26150 * term/i386/pc/vga.c: Likewise.
26151 * term/ieee1275/ofconsole.c: Likewise.
26152 * util/biosdisk.c: Likewise.
26153 * util/console.c: Likewise.
26154 * util/genmoddep.c: Likewise.
26155 * util/getroot.c: Likewise.
26156 * util/grub-emu.c: Likewise.
26157 * util/grub-mkdevicemap.c: Likewise.
26158 * util/grub-probe.c: Likewise.
26159 * util/lvm.c: Likewise.
26160 * util/misc.c: Likewise.
26161 * util/raid.c: Likewise.
26162 * util/resolve.c: Likewise.
26163 * util/update-grub.in: Likewise.
26164 * util/update-grub_lib.in: Likewise.
26165 * util/grub.d/00_header.in: Likewise.
26166 * util/grub.d/10_hurd.in: Likewise.
26167 * util/grub.d/10_linux.in: Likewise.
26168 * util/i386/efi/grub-install.in: Likewise.
26169 * util/i386/efi/grub-mkimage.c: Likewise.
26170 * util/i386/pc/grub-install.in: Likewise.
26171 * util/i386/pc/grub-mkimage.c: Likewise.
26172 * util/i386/pc/grub-mkrescue.in: Likewise.
26173 * util/i386/pc/grub-setup.c: Likewise.
26174 * util/i386/pc/misc.c: Likewise.
26175 * util/powerpc/ieee1275/grub-install.in: Likewise.
26176 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
26177 * util/powerpc/ieee1275/misc.c: Likewise.
26178 * video/bitmap.c: Likewise.
26179 * video/video.c: Likewise.
26180 * video/i386/pc/vbe.c: Likewise.
26181 * video/i386/pc/vbeblit.c: Likewise.
26182 * video/i386/pc/vbefill.c: Likewise.
26183 * video/i386/pc/vbeutil.c: Likewise.
26184 * video/readers/tga.c: Likewise.
26185
26186 2007-07-02 Robert Millan <rmh@aybabtu.com>
26187
26188 * conf/i386-efi.rmk: Replace obsolete reference to
26189 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
26190 with util/getroot.c.
26191 * conf/powerpc-ieee1275.rmk: Likewise.
26192 * conf/sparc64-ieee1275.rmk: Likewise.
26193
26194 * util/grub-emu.c (main): Fix unchecked pointer handling.
26195
26196 2007-07-02 Robert Millan <rmh@aybabtu.com>
26197
26198 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
26199 invocation to fail, in order to support partition-less media.
26200
26201 * util/i386/pc/grub-install.in: Likewise.
26202
26203 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
26204 which fs or partmap modules are needed (akin to its sister scripts).
26205
26206 Also use grub-probe to get rid of unportable /proc/mounts check.
26207
26208 Print the same informational message that the other scripts do, before
26209 exiting.
26210
26211 2007-06-23 Robert Millan <rmh@aybabtu.com>
26212
26213 * util/update-grub_lib.in (font_path): New function. Determine whether
26214 a font file can be found and, if so, echo the GRUB path to it.
26215
26216 * util/update-grub.in: Handle multiple terminals depending on user
26217 input, platform availability and font file presence. Propagate
26218 variables of our findings to /etc/grub.d/ children.
26219
26220 * util/grub.d/00_header.in: Handle multiple terminals, based on
26221 environment setup by update-grub.
26222
26223 2007-06-23 Robert Millan <rmh@aybabtu.com>
26224
26225 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
26226
26227 2007-06-21 Robert Millan <rmh@aybabtu.com>
26228
26229 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
26230 indicate end of data section in kernel image.
26231 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
26232 GRUB_KERNEL_MACHINE_DATA_END.
26233
26234 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
26235 space for it.
26236 * kern/i386/efi/startup.S: Likewise.
26237
26238 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
26239 during image generation. Implement --prefix option to override this
26240 patch.
26241 * util/i386/efi/grub-mkimage.c: Likewise.
26242
26243 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
26244 code to make path relative to its root into a separate function.
26245
26246 * util/i386/pc/grub-install.in: Use newly provided
26247 make_system_path_relative_to_its_root() to convert ${grubdir}, then
26248 pass the result to grub-install --prefix.
26249
26250 2007-06-13 Robert Millan <rmh@aybabtu.com>
26251
26252 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
26253 DEFAULT_DEVICE_MAP.
26254 * util/grub-emu.c: Use above definitions from misc.h instead of
26255 defining them.
26256 * util/grub-mkdevicemap.c: Likewise.
26257 * util/i386/pc/grub-setup.c: Likewise.
26258 * util/grub-probe.c: Likewise.
26259 (probe): Abort with grub_util_error() when either
26260 grub_guess_root_device or grub_util_get_grub_dev fails.
26261
26262 2007-06-12 Robert Millan <rmh@aybabtu.com>
26263
26264 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
26265 "pager" assignment.
26266 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
26267 "pcdata".
26268 * util/grub-probe.c (probe): Likewise for "drive_name".
26269
26270 2007-06-11 Robert Millan <rmh@aybabtu.com>
26271
26272 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
26273 not just the cdrom one.
26274
26275 2007-06-11 Robert Millan <rmh@aybabtu.com>
26276
26277 * util/i386/pc/grub-mkrescue.in: Add "set -e".
26278 Add --pkglibdir=DIR option to override pkglibdir.
26279 Mention --image-type=TYPE in help output.
26280 Fix --grub-mkimage (it was a no-op).
26281 Abort gracefully when no parameter is given.
26282
26283 2007-06-11 Robert Millan <rmh@aybabtu.com>
26284
26285 * util/i386/pc/grub-mkrescue.in: New file.
26286 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
26287 * Makefile.in: Handle bin_SCRIPTS.
26288
26289 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
26290
26291 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
26292 list of video modes.
26293
26294 2007-06-06 Robert Millan <rmh@aybabtu.com>
26295
26296 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
26297 file doesn't exist, or if it is in a filesystem grub can't read.
26298
26299 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
26300 not abort if GRUB_DRIVE could not be defined. Rearrange generated
26301 header comment to fit in 80 columns when the variables are resolved.
26302
26303 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
26304 could be identified by update-grub. Remove redundant check for
26305 unifont.pff existence (since convert_system_path_to_grub_path now
26306 handles that).
26307
26308 2007-06-04 Robert Millan <rmh@aybabtu.com>
26309
26310 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
26311
26312 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
26313
26314 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
26315
26316 2007-06-04 Robert Millan <rmh@aybabtu.com>
26317
26318 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
26319
26320 * include/grub/partition.h: Declare grub_apple_partition_map_init and
26321 grub_apple_partition_map_fini.
26322
26323 * util/biosdisk.c
26324 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
26325 to access >2 TiB disks).
26326
26327 Print disk->total_sectors with %llu instead of %lu, since this
26328 variable is always 64-bit (prevents wrong disk size from being displayed
26329 on either >2 TiB disk or big-endian CPU).
26330
26331 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
26332 into a generic case that supports all (sane) partition maps.
26333
26334 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
26335 breaks big-endian.
26336
26337 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
26338 and grub_apple_partition_map_fini() after that.
26339
26340 2007-06-01 Robert Millan <rmh@aybabtu.com>
26341
26342 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
26343
26344 * util/grub.d/00_header.in: Only enable gfxterm when
26345 convert_system_path_to_grub_path() succeeds.
26346
26347 2007-05-20 Robert Millan <rmh@aybabtu.com>
26348
26349 * util/update-grub_lib.in: New file.
26350 * DISTLIST: Add update-grub_lib.in.
26351 * conf/common.rmk: Generate update-grub_lib and install it in
26352 $(lib_DATA).
26353 * Makefile.in: Add install routine for $(lib_DATA).
26354
26355 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
26356 function provided by update-grub_lib to support arbitrary paths of
26357 unifont.pff.
26358 * util/update-grub.in: Use convert_system_path_to_grub_path() to
26359 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
26360
26361 2007-05-19 Robert Millan <rmh@aybabtu.com>
26362
26363 * commands/i386/cpuid.c: New module.
26364 * DISTLIST: Add it.
26365 * conf/i386-efi.rmk: Enable cpuid.mod.
26366 * conf/i386-pc.rmk: Likewise.
26367
26368 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
26369
26370 * kern/disk.c (grub_disk_read): Check return value of
26371 grub_realloc().
26372
26373 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
26374
26375 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
26376 arrays.
26377 * disk/raid.c (grub_raid_open): Likewise.
26378
26379 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
26380
26381 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
26382 stack instead of on the heap.
26383
26384 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
26385 before doing a read on it.
26386
26387 * configure.ac: Only use -fno-stack-protector for the target
26388 environment.
26389
26390 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
26391
26392 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
26393 __attribute_ ((unused)) to mode_type argument.
26394
26395 * util/getroot.c (grub_guess_root_device): Fix #endif.
26396
26397 * kern/misc.c (memcmp): Fix prototype.
26398
26399 * include/grub/partition.h [GRUB_UTIL]
26400 (grub_gpt_partition_map_init): Add prototype.
26401 (grub_gpt_partition_map_fini): Likewise.
26402
26403 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
26404 at the right place.
26405
26406 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
26407 (grub_fat_read_data): Likewise.
26408 (grub_fat_find_dir): Likewise.
26409
26410 * font/manager.c (find_glyph): Make table a const.
26411 (grub_font_get_glyph): Remove bitmap from if statement.
26412
26413 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
26414
26415 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
26416 code, first search for device in /dev/mapper, then in /dev.
26417 (grub_util_get_grub_dev): New function.
26418 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
26419 prototype.
26420 * util/grub-probe.c (probe): Remove check for RAID, call
26421 grub_util_get_grub_dev() instead of
26422 grub_util_biosdisk_get_grub_dev().
26423 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
26424 grub_util_biosdisk_get_grub_dev().
26425 * util/i386/pc/grub-setup.c (main): Likewise.
26426
26427 2007-05-16 Robert Millan <rmh@aybabtu.com>
26428
26429 * DISTLIST: Update for the latest changes.
26430 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
26431 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
26432 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
26433 grub/util/biosdisk.h.
26434 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
26435 grub/util/biosdisk.h.
26436
26437 2007-05-16 Robert Millan <rmh@aybabtu.com>
26438
26439 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
26440
26441 2007-05-16 Robert Millan <rmh@aybabtu.com>
26442
26443 * util/i386/efi/grub-install.in: New.
26444 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
26445 newly added grub-install.
26446 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
26447 include.
26448 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
26449 grub/util/biosdisk.h.
26450 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
26451 grub/util/biosdisk.h.
26452
26453 2007-05-16 Robert Millan <rmh@aybabtu.com>
26454
26455 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
26456 * include/grub/util/biosdisk.h: ... here.
26457 * util/i386/pc/biosdisk.c: Moved to ...
26458 * util/biosdisk.c: ... here.
26459 * util/i386/pc/getroot.c: Moved to ...
26460 * util/getroot.c: ... here.
26461 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
26462 * util/grub-mkdevicemap.c: ... here.
26463 * util/i386/pc/grub-probe.c: Moved to ...
26464 * util/grub-probe.c: ... here.
26465
26466 2007-05-15 Robert Millan <rmh@aybabtu.com>
26467
26468 * util/update-grub.in: Remove duplicated line in grub.cfg header
26469 message.
26470
26471 2007-05-13 Robert Millan <rmh@aybabtu.com>
26472
26473 * util/update-grub.in: Fix a few assumptions about the devices holding
26474 /, /boot and /boot/grub being the same.
26475 * util/grub.d/00_header.in: Likewise.
26476 * util/grub.d/10_hurd.in: Likewise.
26477 * util/grub.d/10_linux.in: Likewise.
26478
26479 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
26480 patterns. Use that to define the `.old' suffix as older than `'.
26481
26482 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
26483
26484 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
26485 the grub.cfg header message.
26486
26487 2007-05-11 Robert Millan <rmh@aybabtu.com>
26488
26489 * util/update-grub.in: Create device.map if it doesn't already exist,
26490 before attempting to run grub-probe.
26491 Check for grub-probe and grub-mkdevicemap with the same code
26492 grub-install is using.
26493 Remove test mode.
26494
26495 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
26496
26497 * Makefile.in: Add the datarootdir autoconf variable.
26498
26499 2007-05-09 Robert Millan <rmh@aybabtu.com>
26500
26501 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
26502 fail gracefully if dev->disk->partition == NULL.
26503
26504 2007-05-07 Robert Millan <rmh@aybabtu.com>
26505
26506 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
26507 determine partition map module.
26508 * util/i386/pc/grub-install.in: Use this feature to decide which
26509 partition module to load, instead of hardcoding pc and gpt.
26510
26511 2007-05-07 Robert Millan <rmh@aybabtu.com>
26512
26513 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
26514 source directory differs from build directory.
26515
26516 2007-05-05 Robert Millan <rmh@aybabtu.com>
26517
26518 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
26519 initialisation.
26520
26521 2007-05-05 Robert Millan <rmh@aybabtu.com>
26522
26523 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
26524
26525 2007-05-05 Robert Millan <rmh@aybabtu.com>
26526
26527 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
26528 command-line arguments via ${GRUB_CMDLINE_LINUX}.
26529
26530 2007-05-05 Robert Millan <rmh@aybabtu.com>
26531
26532 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
26533 (grub_probe_SOURCES): Likewise.
26534 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
26535 GPT and initialize dos_part and bsd_part accordingly.
26536 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
26537 install_bsd_part.
26538 (main): Activate gpt module for use during partition identification,
26539 and deactivate it afterwards.
26540 * util/i386/pc/grub-install.in: Add gpt module to core.img.
26541 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
26542 partition identification, and deactivate it afterwards.
26543
26544 2007-05-05 Robert Millan <rmh@aybabtu.com>
26545
26546 * term/i386/pc/console.c (grub_console_fini): Call
26547 grub_term_set_current() before grub_term_unregister().
26548
26549 2007-05-04 Robert Millan <rmh@aybabtu.com>
26550
26551 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
26552 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
26553 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
26554 and update-grub_DATA.
26555 * conf/common.rmk: Build and install update-grub components.
26556 * conf/common.mk: Regenerate.
26557 * util/update-grub.in: New. Core of update-grub.
26558 * util/grub.d/00_header.in: New. Generates grub.cfg header.
26559 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
26560 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
26561 * util/grub.d/README: New. Document grub.d directory layout.
26562
26563 2007-05-01 Robert Millan <rmh@aybabtu.com>
26564
26565 * util/grub-emu.c: Move initialization functions
26566 grub_util_biosdisk_init() and grub_init_all() before
26567 grub_util_biosdisk_get_grub_dev(), which relies on them.
26568
26569 2007-04-19 Robert Millan <rmh@aybabtu.com>
26570
26571 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
26572 it is used later.
26573
26574 2007-04-18 Jerone Young <jerone@gmail.com>
26575
26576 * kernel/elf.c: Add missing parenthesis for conditional statement
26577 stanza.
26578
26579 2007-04-10 Jerone Young <jerone@gmail.com>
26580
26581 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
26582 continue on and look for device node with real device name.
26583
26584 2007-04-10 Jerone Young <jerone@gmail.com>
26585
26586 * configure.ac: Add argument for autoconf to use transformation
26587 ability.
26588 * Makefile.in: Add autoconf package transformation code.
26589 * util/i386/pc/grub-install.in: Likewise.
26590 * util/powerpc/ieee1275/grub-install.in: Likewise.
26591
26592 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
26593
26594 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
26595 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
26596 (EXT2_REVISION): Likewise.
26597 (EXT2_INODE_SIZE): Likewise.
26598 (struct grub_ext2_block_group): Added a missing member
26599 "used_dirs".
26600 (grub_ext2_read_inode): Divide by the inode size in a superblock
26601 instead of 128 to obtain INODES_PER_BLOCK.
26602 Use the macro EXT2_INODE_SIZE instead of directly using
26603 SBLOCK->INODE_SIZE.
26604
26605 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
26606
26607 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
26608 superblock instead of the structure size to compute an
26609 offset. This fixes the problem that GRUB could not read a
26610 filesystem when inode size is different from 128-byte.
26611
26612 2007-03-05 Marco Gerards <marco@gnu.org>
26613
26614 * normal/main.c (read_config_file): When "menu" is not set, create
26615 an initial context.
26616
26617 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
26618
26619 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
26620 (HEAP_LIMIT): New macro.
26621 (grub_claim_heap): Claim memory up to `heaplimit'.
26622
26623 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
26624
26625 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
26626 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
26627 (_start): Likewise.
26628 (grub_arch_modules_addr): Return address after `_end'.
26629 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
26630 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
26631 (add_segments): Calculate `_end' from phdr size and location.
26632 (ALIGN_UP): Moved to ...
26633 * include/grub/misc.h: here.
26634 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
26635 New macro.
26636 (GRUB_IEEE1275_MODULE_BASE): Removed.
26637
26638 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
26639
26640 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
26641 loop boundary.
26642
26643 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
26644
26645 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
26646 All users updated.
26647 (grub_elf64_load_hook_t): Likewise.
26648 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
26649 debug output.
26650
26651 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
26652
26653 * kern/mm.c: Update copyright.
26654 (grub_mm_debug): Correct syntax error.
26655 (grub_mm_dump_free): New function.
26656 (grub_debug_free): Call `grub_free'.
26657 * include/grub/mm.h: Update copyright.
26658 (grub_mm_dump_free): Add declaration.
26659
26660 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
26661
26662 * include/grub/ieee1275/ieee1275.h: Update copyright.
26663 * kern/powerpc/ieee1275/init.c: Likewise.
26664 * kern/powerpc/ieee1275/openfw.c: Likewise.
26665
26666 * loader/powerpc/ieee1275/linux.c: Likewise.
26667 * include/grub/elfload.h: Likewise.
26668 * kern/elf.c: Likewise.
26669 (grub_elf32_load): Pass `base' and `size' parameters. Update all
26670 callers.
26671 (grub_elf64_load): Likewise.
26672 (grub_elf32_load_segment): Move to a nested function.
26673 (grub_elf64_load_segment): Likewise.
26674
26675 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
26676
26677 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
26678 prototype.
26679 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
26680 (grub_heap_len): Likewise.
26681 (HEAP_SIZE): New macro.
26682 (grub_claim_heap): New function.
26683 (grub_machine_init): Don't claim heap directly. Call
26684 `grub_claim_heap'.
26685 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
26686 (grub_available_iterate): New function.
26687
26688 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
26689
26690 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
26691 * configure.ac: Use it for testing the HOST and TARGET compilers.
26692
26693 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
26694
26695 * Makefile.in (enable_grub_emu): New variable.
26696 * configure.ac (--enable-grub-emu): New option.
26697 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
26698 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
26699 * conf/i386-pc.rmk: Likewise.
26700 * conf/powerpc-ieee1275.rmk: Likewise.
26701 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
26702
26703 2006-12-12 Marco Gerards <marco@gnu.org>
26704
26705 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
26706
26707 * kern/env.c (grub_env_unset): Don't free the member `value' when
26708 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
26709 pointer.
26710
26711 * normal/main.c (current_menu): Removed.
26712 (free_menu): Unset the `menu' environment variable.
26713 (grub_normal_menu_addentry): Make use of the environment variable
26714 `menu', instead of using the global `current_menu'. Allocate
26715 memory for the sourcecode of this entry.
26716 (read_config_file): New argument `nested', changed all callers.
26717 Only in the case of a new context, initialize a new menu. Set the
26718 `menu' environment variable.
26719 (grub_normal_execute): Don't set and unset the environment
26720 variable `menu' here anymore. Only free the menu when leaving the
26721 context.
26722
26723 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
26724 leak.
26725
26726 2006-12-11 Marco Gerards <marco@gnu.org>
26727
26728 * normal/menu_entry.c (run): Fix off by one bug so the last line
26729 is executed. Move the loader check to outside the loop.
26730
26731 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
26732
26733 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
26734
26735 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
26736
26737 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
26738 the number of sectors. Reported by Andrey Shuvikov
26739 <mr_hyro@yahoo.com>.
26740
26741 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
26742
26743 * kern/disk.c (grub_disk_read): When there is a read error, always
26744 try to read only the necessary data.
26745
26746 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
26747 disk/raid.c.
26748 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
26749 prototype.
26750 [GRUB_UTIL] (grub_raid_fini): Likewise.
26751 [GRUB_UTIL] (grub_lvm_init): Likewise.
26752 [GRUB_UTIL] (grub_lvm_fini): Likewise.
26753 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
26754 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
26755 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
26756 and grub_raid_fini().
26757
26758 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
26759
26760 * include/grub/types.h (__unused): Rename to UNUSED.
26761 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
26762 (grub_elf64_size): Likewise.
26763
26764 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
26765
26766 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
26767 grub_error_push and grub_error_pop in the error-handling path.
26768 (grub_elf32_load_segment): Only call grub_file_read with non-zero
26769 length.
26770
26771 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
26772
26773 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
26774 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
26775 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26776 (kernel_elf_SOURCES): Likewise.
26777 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
26778 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
26779 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
26780 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
26781 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
26782 (elf_mod_SOURCES): New variable.
26783 (elf_mod_CFLAGS): Likewise.
26784 (elf_mod_LDFLAGS): Likewise.
26785 * include/grub/types.h (__unused): New macro.
26786 * include/grub/elfload.h: New file.
26787 * kern/elf.c: Likewise.
26788 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
26789 (ELF32_LOADMASK): New macro.
26790 (ELF64_LOADMASK): Likewise.
26791 (vmlinux): Removed.
26792 (grub_linux_load32): New function.
26793 (grub_linux_load64): Likewise.
26794 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
26795 Use grub_elf_t instead of grub_file_t.
26796
26797 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
26798
26799 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
26800 `catch_result' to struct set_color_args.
26801
26802 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
26803
26804 * normal/menu.c: Include grub/script.h.
26805 * normal/menu_entry.c: Likewise.
26806 * include/grub/normal.h: Do not include grub/script.h.
26807
26808 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
26809
26810 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
26811
26812 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
26813
26814 * kern/disk.c (grub_disk_open): Print debug messages when opening a
26815 disk.
26816 (grub_disk_close): Print debug messages when closing a disk.
26817 (grub_disk_read): Print debug messages when disk read fails.
26818 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
26819 filesystem type.
26820 * kern/partition.c: Include misc.h.
26821 (grub_partition_iterate): Print debug messages when detecting
26822 partition type.
26823
26824 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
26825
26826 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
26827 is negative.
26828 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
26829
26830 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
26831
26832 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
26833 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
26834
26835 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
26836
26837 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
26838 instead of sizeof(lv). Patch by Michael Guntsche.
26839
26840 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
26841
26842 * disk/lvm.c: Rename VGS to VG_LIST.
26843 (grub_lvm_iterate): Change VGS->LV to VG-LV.
26844 (grub_lvm_open): Likewise.
26845 Thanks to Michael Guntsche for finding this bug.
26846
26847 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
26848
26849 * configure.ac (AC_INIT): Bumped to 1.95.
26850
26851 2006-10-14 Robert Millan <rmh@aybabtu.com>
26852
26853 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
26854 with "/dev/.static/dev/md".
26855
26856 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
26857
26858 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
26859 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
26860 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
26861 DRIVE_NAME are always freed.
26862
26863 * util/i386/pc/biosdisk.c (make_device_name): Add one into
26864 DOS_PART, as a DOS partition is counted from one instead of zero
26865 now. Reported by Robert Millan.
26866
26867 2006-10-14 Robert Millan <rmh@aybabtu.com>
26868
26869 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
26870 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
26871 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
26872 string returned by grub_guess_root_device.
26873 * util/i386/pc/grub-setup.c: Likewise.
26874 * util/i386/pc/grub-probefs.c: Likewise.
26875
26876 * util/i386/pc/grub-probefs.c: Rename to ...
26877 * util/i386/pc/grub-probe.c: ... this.
26878 * DISTLIST: Remove grub-probefs, add grub-probe.
26879 * conf/i386-efi.rmk: Likewise.
26880 * conf/i386-pc.rmk: Likewise.
26881 * util/i386/pc/grub-install.in: Likewise.
26882
26883 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
26884 choose which information we want to print.
26885
26886 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
26887
26888 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
26889 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
26890 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
26891 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
26892 video/readers/tga.c and video/i386/pc/vbeutil.c.
26893
26894 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
26895
26896 Added support for RAID and LVM.
26897
26898 * disk/lvm.c: New file.
26899 * disk/raid.c: Likewise.
26900 * include/grub/lvm.h: Likewise.
26901 * include/grub/raid.h: Likewise.
26902 * include/grub/util/lvm.h: Likewise.
26903 * include/grub/util/raid.h: Likewise.
26904 * util/lvm.c: Likewise.
26905 * util/raid.c: Likewise.
26906
26907 * include/grub/disk.h (grub_disk_dev_id): Add
26908 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
26909 (grub_disk_get_size): New prototype.
26910 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
26911 returns a partition.
26912 (grub_disk_get_size): New function.
26913
26914 * kern/i386/pc/init.c (make_install_device): Copy the prefix
26915 verbatim if grub_install_dos_part is -2.
26916
26917 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
26918 and LVM devices.
26919
26920 * util/i386/pc/grub-setup.c (setup): New argument
26921 MUST_EMBED. Force embedding of GRUB when the argument is
26922 true. Close FILE before returning.
26923 (main): Add support for RAID and LVM.
26924
26925 * conf/common.rmk: Add RAID and LVM modules.
26926 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
26927 util/lvm.c.
26928 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
26929
26930 * kern/misc.c (grub_strstr): New function.
26931 * include/grub/misc.h (grub_strstr): New prototype.
26932
26933 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
26934
26935 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
26936
26937 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
26938
26939 * kern/misc.c (grub_strtoull): Guess the base only if not
26940 specified.
26941
26942 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
26943
26944 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
26945 PowerMac support.
26946
26947 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
26948
26949 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
26950
26951 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
26952 Remove `flags' argument. All callers changed.
26953 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
26954 (IEEE1275_IHANDLE_INVALID): New variable.
26955 (IEEE1275_CELL_INVALID): New variable.
26956 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
26957 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
26958 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
26959 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
26960 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
26961 codes from Open Firmware. All callers updated.
26962 (grub_ieee1275_next_property): Directly return Open Firmware return
26963 code.
26964 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
26965 Standardize error checking from `grub_ieee1275_get_property'.
26966 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
26967 `devalias' to `aliases'. Correct comments. Consolidate error paths.
26968
26969 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
26970
26971 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
26972 `instance_to_package_args' to `instance_to_path_args'.
26973
26974 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
26975 `grub_ieee1275_chosen'.
26976
26977 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
26978 `grub_ieee1275_interpret'.
26979
26980 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
26981
26982 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
26983
26984 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
26985
26986 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
26987 (__cmpdi): Likewise.
26988
26989 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
26990 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
26991 `grub_ssize_t'.
26992
26993 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
26994
26995 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
26996 to type `grub_ssize_t'.
26997 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
26998
26999 2006-09-22 Marco Gerards <marco@gnu.org>
27000
27001 * normal/script.c (grub_script_create_cmdmenu): Skip leading
27002 newlines.
27003
27004 2006-09-22 Marco Gerards <marco@gnu.org>
27005
27006 * commands/echo.c: New file.
27007
27008 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
27009
27010 * conf/common.rmk (echo_mod_SOURCES): New variable.
27011 (echo_mod_CFLAGS): Likewise.
27012 (echo_mod_LDFLAGS): Likewise.
27013
27014 2006-09-22 Marco Gerards <marco@gnu.org>
27015
27016 * normal/main.c (get_line): Malloc memory instead of using
27017 preallocated memory. Removed the arguments `cmdline' and
27018 `max_len'. Updated all callers.
27019
27020 2006-09-22 Marco Gerards <marco@gnu.org>
27021
27022 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
27023 (normal_mod_DEPENDENCIES): Likewise.
27024
27025 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
27026 (normal_mod_DEPENDENCIES): Likewise.
27027
27028 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
27029
27030 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
27031
27032 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
27033 programs.
27034 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
27035 (normal_mod_DEPENDENCIES): Likewise.
27036 * conf/i386-pc.mk: Regenerate.
27037 * conf/i386-efi.mk: Likewise
27038 * conf/common.mk: Likewise.
27039 * conf/powerpc-ieee1275.mk: Likewise.
27040 * conf/sparc64-ieee1275.mk: Likewise.
27041
27042 2006-09-22 Robert Millan <rmh@aybabtu.com>
27043
27044 Sync with i386 version.
27045 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
27046 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
27047
27048 2006-09-21 Robert Millan <rmh@aybabtu.com>
27049
27050 Import from GRUB Legacy (lib/device.c):
27051 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
27052 (init_device_map) [__linux__]: Add support for I2O devices.
27053
27054 2006-09-14 Marco Gerards <marco@gnu.org>
27055
27056 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
27057 `-melf_i386'.
27058
27059 2006-09-14 Robert Millan <rmh@aybabtu.com>
27060
27061 * util/i386/pc/grub-install.in: Skip menu.lst when removing
27062 /boot/grub/*.lst.
27063
27064 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
27065
27066 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
27067 before adding it to device.map.
27068
27069 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
27070
27071 * genmk.rb: Let GCC generate dependencies the first time it
27072 compiles a file; using the -MD option.
27073 * conf/common.mk: Regenerate.
27074 * conf/i386-pc.mk: Likewise.
27075 * conf/i386-efi.mk: Likewise.
27076 * conf/powerpc-ieee1275.mk: Likewise.
27077 * conf/sparc64-ieee1275.mk: Likewise.
27078
27079 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
27080
27081 Move the prototypes of grub_setjmp and grub_longjmp to
27082 cpu/setjmp.h, so that each architecture may specify different
27083 attributes.
27084
27085 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
27086 (grub_longjmp): Likewise.
27087 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
27088 (grub_longjmp): Likewise.
27089 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
27090 (grub_longjmp): Likewise.
27091
27092 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
27093 [!GRUB_UTIL] (grub_longjmp): Removed.
27094
27095 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
27096
27097 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
27098 "color!" method does not return any value.
27099
27100 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
27101
27102 * include/grub/bitmap.h: New file.
27103
27104 * include/grub/i386/pc/vbeutil.h: Likewise.
27105
27106 * video/bitmap.c: Likewise.
27107
27108 * video/readers/tga.c: Likewise.
27109
27110 * video/i386/pc/vbeutil.c: Likewise.
27111
27112 * commands/videotest.c: Code cleanup and updated to reflect to new
27113 video API.
27114
27115 * term/gfxterm.c: Likewise.
27116
27117 * video/video.c: Likewise.
27118
27119 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
27120 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
27121 (bitmap_mod_SOURCES): New entry.
27122 (bitmap_mod_CFLAGS): Likewise.
27123 (bitmap_mod_LDFLAGS): Likewise.
27124 (tga_mod_SOURCES): Likewise.
27125 (tga_mod_CFLAGS): Likewise.
27126 (tga_mod_LDFLAGS): Likewise.
27127
27128 * include/grub/video.h (grub_video_blit_operators): New enum type.
27129 (grub_video_render_target): Changed as forward declaration and moved
27130 actual definition to be video driver specific.
27131 (grub_video_adapter.blit_bitmap): Added blitting operator.
27132 (grub_video_adapter.blit_render_target): Likewise.
27133 (grub_video_blit_bitmap): Likewise.
27134 (grub_video_blit_render_target): Likewise.
27135
27136 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
27137 driver specific render target definition.
27138 (grub_video_vbe_map_rgba): Added driver internal helper.
27139 (grub_video_vbe_unmap_color): Updated to use
27140 grub_video_i386_vbeblit_info.
27141 (grub_video_vbe_get_video_ptr): Likewise.
27142
27143 * include/grub/i386/pc/vbeblit.h
27144 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
27145 grub_video_i386_vbeblit_info.
27146 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
27147 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
27148 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
27149 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
27150 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
27151 (grub_video_i386_vbeblit_index_index): Likewise.
27152 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
27153 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
27154 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
27155 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
27156 operator.
27157 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
27158 operator.
27159
27160 * video/i386/pc/vbeblit.c: Updated to reflect changes on
27161 include/grub/i386/pc/vbeblit.h.
27162
27163 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
27164 Updated to use grub_video_i386_vbeblit_info.
27165 (grub_video_i386_vbefill_R8G8B8): Likewise.
27166 (grub_video_i386_vbefill_index): Likewise.
27167 (grub_video_i386_vbefill): Added generic filler.
27168
27169 * video/i386/pc/vbefill.c: Updated to reflect changes on
27170 include/grub/i386/pc/vbefill.h.
27171
27172 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
27173 grub_video_i386_vbeblit_info.
27174 (grub_video_vbe_unmap_color): Likewise.
27175 (grub_video_vbe_blit_glyph): Likewise.
27176 (grub_video_vbe_scroll): Likewise.
27177 (grub_video_vbe_draw_pixel): Removed function.
27178 (grub_video_vbe_get_pixel): Likewise.
27179 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
27180 updated code to use it.
27181 (common_blitter): Added common blitter for render target and bitmap.
27182 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
27183 (grub_video_vbe_blit_render_target): Likewise.
27184
27185 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
27186
27187 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
27188 is in text mode if there is no console control protocol instance
27189 available.
27190
27191 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
27192
27193 * include/grub/video.h: Code cleanup.
27194
27195 * include/grub/i386/pc/vbe.h: Likewise.
27196
27197 * video/i386/pc/vbe.c: Likewise.
27198
27199 * video/i386/pc/vbeblit.c: Likewise.
27200
27201 * video/i386/pc/vbefill.c: Likewise.
27202
27203 * video/video.c: Likewise. Also added more comments.
27204
27205 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
27206
27207 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
27208 (struct grub_biosdisk_dap): Likewise.
27209
27210 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
27211 linkage settings for all functions.
27212
27213 2006-07-12 Marco Gerards <marco@gnu.org>
27214
27215 * configure.ac (--enable-mm-debug): Fix typo.
27216
27217 * genkernsyms.sh.in: Use proper quoting for `CC'.
27218
27219 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
27220
27221 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
27222 (normal_mod_ASFLAGS): Remove "-m32".
27223
27224 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
27225
27226 * util/misc.c: Include config.h.
27227 [!HAVE_MEMALIGN]: Do not include malloc.h.
27228 (grub_memalign): Use posix_memalign, if present. Then, use
27229 memalign, if present. Otherwise, emit an error.
27230
27231 * util/grub-emu.c: Do not include malloc.h.
27232
27233 * include/grub/util/misc.h: Include unistd.h. This is required for
27234 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
27235 D. Eades III <hde@foobar-qux.org>.
27236
27237 * configure.ac (AC_GNU_SOURCE): Added.
27238 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
27239 type.
27240
27241 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
27242
27243 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
27244 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
27245
27246 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
27247
27248 * include/grub/types.h (grub_host_addr_t): Rename to
27249 grub_target_addr_t.
27250 (grub_host_off_t): Rename to grub_target_off_t.
27251 (grub_host_size_t): Rename to grub_target_size_t.
27252 (grub_host_ssize_t): Rename to grub_target_ssize_t.
27253 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
27254
27255 * include/grub/kernel.h (struct grub_module_header): Change type
27256 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
27257 (grub_module_info): Likewise.
27258
27259 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
27260
27261 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
27262 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
27263 Velazquez <jesus.velazquez@gmail.com>.
27264
27265 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
27266
27267 Count partitions from 1 instead of 0 in the string representation
27268 of partitions. Still use 0-based internally.
27269
27270 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
27271 (sun_partition_map_iterate): Use grub_partition_t instead of
27272 struct grub_partition *. Cast DESC->START_CYLINDER to
27273 grub_uint64_t after converting the endian.
27274 (sun_partition_map_probe): Subtract 1 for PARTNUM.
27275 (sun_partition_map_get_name): Add 1 to P->INDEX.
27276
27277 * partmap/pc.c (grub_partition_parse): Subtract 1 for
27278 PCDATA->DOS_PART.
27279 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
27280
27281 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
27282 zero instead of one.
27283 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
27284 (gpt_partition_map_get_name): Add 1 into P->INDEX.
27285
27286 * partmap/apple.c (apple_partition_map_iterate): Change the type
27287 of POS to unsigned.
27288 (apple_partition_map_probe): Subtract 1 for PARTNUM.
27289 (apple_partition_map_get_name): Add 1 into P->INDEX.
27290
27291 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
27292 of POS to unsigned.
27293 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
27294 calculate the offset of a partition.
27295 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
27296 (amiga_partition_map_get_name): Add 1 into P->INDEX.
27297
27298 * partmap/acorn.c (acorn_partition_map_find): Change the type of
27299 SECTOR to grub_disk_addr_t.
27300 (acorn_partition_map_iterate): Likewise.
27301 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
27302 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
27303 top.
27304 (acorn_partition_map_get_name): Add 1 into P->INDEX.
27305
27306 * kern/i386/pc/init.c (make_install_device): Add 1 into
27307 GRUB_INSTALL_DOS_PART.
27308
27309 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
27310 conditional.
27311
27312 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
27313
27314 Clean up the code to support 64-bit addressing in disks and
27315 files. This change is not enough for filesystems yet.
27316
27317 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
27318 type of "start" to grub_uint64_t.
27319 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
27320 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
27321 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
27322 convert addresses.
27323
27324 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
27325 to grub_disk_addr_t.
27326
27327 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
27328 string.
27329
27330 * partmap/pc.c (pc_partition_map_iterate): Likewise.
27331
27332 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
27333 to char *.
27334
27335 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
27336
27337 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
27338
27339 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
27340
27341 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
27342 to grub_off_t, to detect an error from grub_file_seek.
27343 (grub_multiboot_load_elf32): Likewise.
27344
27345 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
27346 maximum unsigned long value when an overflow is detected.
27347 (grub_strtoull): New function.
27348 (grub_divmod64): Likewise.
27349 (grub_lltoa): use grub_divmod64.
27350
27351 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
27352 grub_disk_addr_t.
27353 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
27354 the pointer to next character. Use grub_strtoull instead of
27355 grub_strtoul.
27356 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
27357 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
27358 respectively.
27359
27360 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
27361 return value is signed.
27362 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
27363 test if OFFSET is less than zero, as OFFSET is unsigned now.
27364
27365 * kern/disk.c (struct grub_disk_cache): Change the type of
27366 "sector" to grub_disk_addr_t.
27367 (grub_disk_cache_get_index): Change the type of SECTOR to
27368 grub_disk_addr_t. Calculate the hash with SECTOR casted to
27369 unsigned after shifting.
27370 (grub_disk_cache_invalidate): Change the type of SECTOR to
27371 grub_disk_addr_t.
27372 (grub_disk_cache_unlock): Likewise.
27373 (grub_disk_cache_store): Likewise.
27374 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
27375 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
27376 grub_disk_addr_t and grub_uint64_t, respectively.
27377 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
27378 body, as the value of OFFSET is tweaked by
27379 grub_disk_check_range. Change the types of START_SECTOR, LEN and
27380 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
27381 respectively.
27382 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
27383 body, as the value of OFFSET is tweaked by
27384 grub_disk_check_range. Change the types of LEN and N to
27385 grub_size_t.
27386
27387 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
27388 and "saved_offset" to grub_off_t.
27389 (test_header): Cast BUF to char *.
27390 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
27391 to char *.
27392 (grub_gzio_read): Change the types of OFFSET and SIZE to
27393 grub_off_t and grub_size_t, respectively.
27394
27395 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
27396 Removed.
27397 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
27398 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
27399 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
27400 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
27401 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
27402
27403 * include/grub/types.h (grub_off_t): Unconditionally set to
27404 grub_uint64_t.
27405 (grub_disk_addr_t): Changed to grub_uint64_t.
27406
27407 * include/grub/partition.h (struct grub_partition): Change the
27408 types of "start", "len" and "offset" to grub_disk_addr_t,
27409 grub_uint64_t and grub_disk_addr_t, respectively.
27410 (grub_partition_get_start): Return grub_disk_addr_t.
27411 (grub_partition_get_len): Return grub_uint64_t.
27412
27413 * include/grub/misc.h (grub_strtoull): New prototype.
27414 (grub_divmod64): Likewise.
27415
27416 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
27417 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
27418 grub_off_t, respectively.
27419 All callers and references changed.
27420
27421 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
27422 grub_size_t in "read".
27423 All callers and references changed.
27424
27425 * include/grub/file.h (struct grub_file): Change the types of
27426 "offset" and "size" to grub_off_t and grub_off_t,
27427 respectively. Change the type of SECTOR to grub_disk_addr_t in
27428 "read_hook".
27429 (grub_file_read): Change the type of LEN to grub_size_t.
27430 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
27431 grub_off_t.
27432 (grub_file_size): Return grub_off_t.
27433 (grub_file_tell): Likewise.
27434 All callers and references changed.
27435
27436 * include/grub/disk.h (struct grub_disk_dev): Change the types of
27437 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
27438 "write".
27439 (struct grub_disk): Change the type of "total_sectors" to
27440 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
27441 "read_hook".
27442 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
27443 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
27444 (grub_disk_write): Likewise.
27445 All callers and references changed.
27446
27447 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
27448 char * for grub_strncmp to silence gcc.
27449 (grub_iso9660_mount): Likewise.
27450 (grub_iso9660_mount): Likewise.
27451 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
27452 return statement.
27453 (grub_iso9660_iterate_dir): Likewise.
27454 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
27455
27456 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
27457 LEN to grub_disk_addr_t and grub_size_t, respectively.
27458
27459 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
27460
27461 * fs/jfs.c (grub_jfs_read_file): Likewise.
27462
27463 * fs/minix.c (grub_jfs_read_file): Likewise.
27464
27465 * fs/sfs.c (grub_jfs_read_file): Likewise.
27466
27467 * fs/ufs.c (grub_jfs_read_file): Likewise.
27468
27469 * fs/xfs.c (grub_jfs_read_file): Likewise.
27470
27471 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
27472 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
27473 respectively.
27474
27475 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
27476 BLKNR to -1 instead of returning GRUB_ERRNO.
27477 (grub_ext2_read_file): Change the types of SECTOR and
27478 LEN to grub_disk_addr_t and grub_size_t, respectively.
27479
27480 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
27481 LEN to grub_disk_addr_t and grub_size_t, respectively.
27482
27483 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
27484 grub_file_read.
27485
27486 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
27487 string. Do not cast SECTOR explicitly.
27488
27489 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
27490 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
27491 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
27492 grub_disk_addr_t and grub_size_t, respectively. If the sector is
27493 over 2TB and LBA mode is not supported, raise an error.
27494 (get_safe_sectors): New function.
27495 (grub_biosdisk_read): Use get_safe_sectors.
27496 (grub_biosdisk_write): Likewise.
27497
27498 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
27499 (grub_efidisk_write): Likewise.
27500
27501 * disk/loopback.c (delete_loopback): Cosmetic changes.
27502 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
27503 correctly.
27504 (grub_loopback_open): Likewise.
27505 (grub_loopback_read): Likewise. Also, change the type of POS to
27506 grub_off_t, and fix the usage of grub_memset.
27507
27508 * commands/i386/pc/play.c: Include grub/machine/time.h.
27509
27510 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
27511 print FILE->SIZE.
27512
27513 * commands/configfile.c: Include grub/env.h.
27514
27515 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
27516 GRUB_ERRNO directly instead. Change the type of POS to
27517 grub_off_t. Follow the coding standard.
27518
27519 * commands/blocklist.c: Include grub/partition.h.
27520 (grub_cmd_blocklist): Return an error if the underlying device is
27521 not a disk. Take the starting sector of a partition into account,
27522 if a partition is used.
27523
27524 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
27525 a length field.
27526 (lba_mode): Support 64-bit addresses.
27527 (chs_mode): Likewise.
27528 (copy_buffer): Adapted to the new offsets of a length field and a
27529 segment field.
27530 (blocklist_default_start): Allocate 64-bit space.
27531
27532 * boot/i386/pc/boot.S (force_lba): Removed.
27533 (boot_drive): Moved to under KERNEL_SECTOR.
27534 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
27535 space.
27536 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
27537 is useless.
27538 (lba_mode): Refactored to support a 64-bit address. More size
27539 optimization.
27540 (setup_sectors): Likewise.
27541
27542 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
27543
27544 * DISTLIST: Added include/grub/i386/linux.h. Removed
27545 include/grub/i386/pc/linux.h
27546
27547 * configure.ac (AC_INIT): Bumped to 1.94.
27548
27549 * config.guess: Updated from gnulib.
27550 * config.sub: Likewise.
27551 * install-sh: Likewise.
27552 * mkinstalldirs: Likewise.
27553
27554 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
27555
27556 * conf/common.rmk (grub_modules_init.lst): Depended on
27557 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
27558 MODSRCFILES.
27559
27560 * genmk.rb (PModule::rule): Reverted the previous change.
27561
27562 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
27563
27564 * conf/common.rmk (grub_modules_init.lst): Depends on
27565 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
27566 that the target does not exist before producing.
27567 (grub_modules_init.h): Remove the target before generating.
27568 (grub_emu_init.c): Likewise.
27569
27570 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
27571
27572 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
27573
27574 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
27575 for the target-specific tests. Make sure that we also have the
27576 up-to-date target variables for those tests.
27577
27578 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
27579
27580 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
27581 (PModule::rule): Likewise.
27582
27583 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
27584
27585 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
27586 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
27587 target-specific flags should be prefixed.
27588 (PModule::rule): Likewise.
27589
27590 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
27591
27592 * configure.ac (CMP): Check if cmp is available explicitly.
27593
27594 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
27595
27596 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
27597 (target_cpu): New variable.
27598 (pkglibdir): Use target_cpu instead of host_cpu.
27599
27600 * util/i386/pc/grub-install.in (host_cpu): Removed.
27601 (target_cpu): New variable.
27602 (pkglibdir): Use target_cpu instead of host_cpu.
27603
27604 * util/genmoddep.c: Removed.
27605
27606 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
27607 instead of GRUB_HOST_SIZEOF_VOID_P.
27608 * kern/dl.c: Likewise.
27609
27610 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
27611 ...
27612 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
27613 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
27614 (GRUB_TARGET_SIZEOF_LONG): ... this.
27615 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
27616 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
27617 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
27618 to ...
27619 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
27620 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
27621 (GRUB_TARGET_SIZEOF_LONG): ... this.
27622 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
27623 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
27624 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
27625 to ...
27626 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
27627 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
27628 (GRUB_TARGET_SIZEOF_LONG): ... this.
27629 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
27630 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
27631
27632 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
27633 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
27634 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
27635 instead of GRUB_HOST_SIZEOF_LONG.
27636 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
27637 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
27638 GRUB_CPU_WORDS_BIGENDIAN.
27639 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
27640 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
27641 grub_host_ssize_t.
27642
27643 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
27644 (genmoddep_SOURCES): Likewise.
27645 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
27646 (genmoddep_SOURCES): Likewise.
27647 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
27648 (genmoddep_SOURCES): Likewise.
27649 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
27650 Likewise.
27651 (genmoddep_SOURCES): Likewise.
27652
27653 * genmoddep.awk: New file.
27654
27655 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
27656 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
27657 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
27658 (PModule::rule): Likewise.
27659 (Program::rule): Likewise.
27660 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
27661 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
27662 respectively.
27663
27664 * configure.ac: Rewritten intensively to use host and target
27665 instead of build and host, respectively.
27666
27667 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
27668 (host_cpu): Removed.
27669 (target_cpu): New variable.
27670 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
27671 (BUILD_CC): Removed.
27672 (BUILD_CFLAGS): Likewise.
27673 (BUILD_CPPFLAGS): Likewise.
27674 (TARGET_CC): New variable.
27675 (TARGET_CFLAGS): Likewise.
27676 (TARGET_CPPFLAGS): Likewise.
27677 (TARGET_LDFLAGS): Likewise.
27678 (AWK): Likewise.
27679 (include): Use target_cpu instead of host_cpu.
27680 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
27681
27682 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
27683
27684 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
27685
27686 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
27687 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
27688 field 'false' to 'exec_on_false'.
27689 (grub_script_create_cmdif): Renamed argument names to reflect above
27690 changes.
27691
27692 * normal/execute.c (grub_script_execute_cmdif): Likewise.
27693
27694 * normal/script.c (grub_script_create_cmdif): Likewise.
27695
27696 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
27697
27698 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
27699 top.
27700 (grub_hfsplus_btree_recptr): Likewise.
27701 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
27702 FILEBLOCK both to pass a block number and store next block
27703 number.
27704 (grub_hfsplus_read_block): Rewritten heavily to support an extent
27705 overflow file correctly. Specify errors appropriately, because
27706 fshelp expects that GRUB_ERRNO is set when fails. Reuse
27707 grub_hfsplus_btree_recptr to get the pointer to a found key.
27708 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
27709 is found.
27710
27711 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
27712 linux.mod.
27713 (_linux_mod_SOURCES): New variable.
27714 (_linux_mod_CFLAGS): Likewise.
27715 (_linux_mod_LDFLAGS): Likewise.
27716 (linux_mod_SOURCES): Likewise.
27717 (linux_mod_CFLAGS): Likewise.
27718 (linux_mod_LDFLAGS): Likewise.
27719
27720 * DISTLIST: Added loader/i386/efi/linux.c,
27721 loader/i386/efi/linux_normal.c and
27722 include/grub/i386/efi/loader.h.
27723
27724 * loader/i386/efi/linux.c: New file.
27725 * loader/i386/efi/linux_normal.c: Likewise.
27726 * include/grub/i386/efi/loader.h: Likewise.
27727
27728 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
27729
27730 * commands/blocklist.c: New file.
27731
27732 * DISTLIST: Added commands/blocklist.c.
27733
27734 * term/efi/console.c (grub_console_highlight_color): Use a lighter
27735 color for the background, and a darker color for the foreground.
27736 (grub_console_checkkey): Return READ_KEY.
27737 (grub_console_cls): Set the background to
27738 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
27739
27740 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
27741
27742 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
27743 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
27744
27745 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
27746 prototype.
27747
27748 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
27749 BG. The spec is wrong again.
27750
27751 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
27752 prototype.
27753 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
27754
27755 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
27756 commands/blocklist.c.
27757 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27758
27759 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
27760 (blocklist_mod_SOURCES): New variable.
27761 (blocklist_mod_CFLAGS): Likewise.
27762 (blocklist_mod_LDFLAGS): Likewise.
27763
27764 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
27765
27766 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
27767 duplication.
27768 (lba_mode): Use %eax more intensively to reduce the code size.
27769
27770 2006-05-20 Marco Gerards <marco@gnu.org>
27771
27772 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
27773
27774 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
27775 for `menuentry'.
27776 (script): Accept leading newlines.
27777 (newlines): New rule to describe 0 or more newlines.
27778 (commands): Accept `command' with trailing newline. Fixed the
27779 order in which arguments were passed to `grub_script_add_cmd'.
27780 Accept commands separated by newlines.
27781 (function): Changed to accept newlines.
27782 (menuentry) Rewritten.
27783
27784 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
27785 front of the list, instead of to the end.
27786
27787 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
27788
27789 * util/i386/pc/grub-install.in (bindir): New variable.
27790 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
27791 Shaver <lbgwjl@gmail.com>.
27792
27793 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
27794
27795 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
27796 grub/machine/linux.h
27797 * loader/i386/pc/linux.c: Likewise.
27798
27799 * include/grub/i386/pc/linux.h: Moved to ...
27800 * include/grub/i386/linux.h: ... here.
27801
27802 * include/grub/i386/linux.h (struct linux_kernel_params): New
27803 struct.
27804
27805 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
27806
27807 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
27808 checking.
27809 (grub_video_vbe_blit_glyph): Likewise.
27810 (grub_video_vbe_blit_bitmap): Likewise.
27811 (grub_video_vbe_blit_render_target): Likewise.
27812
27813 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
27814
27815 * configure.ac (--with-platform): Properly quote the square
27816 brackets.
27817
27818 2006-05-08 Marco Gerards <marco@gnu.org>
27819
27820 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
27821 this...
27822 (kernel_elf_HEADERS): ...to this. Updated all users.
27823 (grubof_symlist.c): Renamed from this...
27824 (kernel_elf_symlist.c): ...to this. Updated all users.
27825 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
27826 (grubof_SOURCES): Renamed from this...
27827 (kernel_elf_SOURCES): ...to this.
27828 (grubof_HEADERS): Renamed from this...
27829 (kernel_elf_HEADERS): ...to this.
27830 (grubof_CFLAGS): Renamed from this...
27831 (kernel_elf_CFLAGS): ...to this.
27832 (grubof_ASFLAGS): Renamed from this...
27833 (kernel_elf_ASFLAGS): ...to this.
27834 (grubof_LDFLAGS): Renamed from this...
27835 (kernel_elf_LDFLAGS): ...to this.
27836
27837 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
27838 this...
27839 (kernel_elf_HEADERS): ...to this. Updated all users.
27840 (grubof_symlist.c): Renamed from this...
27841 (kernel_elf_symlist.c): ...to this. Updated all users.
27842 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
27843 (grubof_SOURCES): Renamed from this...
27844 (kernel_elf_SOURCES): ...to this.
27845 (grubof_HEADERS): Renamed from this...
27846 (kernel_elf_HEADERS): ...to this.
27847 (grubof_CFLAGS): Renamed from this...
27848 (kernel_elf_CFLAGS): ...to this.
27849 (grubof_ASFLAGS): Renamed from this...
27850 (kernel_elf_ASFLAGS): ...to this.
27851 (grubof_LDFLAGS): Renamed from this...
27852 (kernel_elf_LDFLAGS): ...to this.
27853
27854 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
27855 `kernel.elf' instead of `grubof'.
27856
27857 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
27858
27859 Add --with-platform to configure. Use pkglibdir instead of
27860 pkgdatadir. This is reported by Roger Leigh.
27861
27862 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
27863 (host_vendor): Likewise.
27864 (host_os): Likewise.
27865 (pkgdatadir): Likewise.
27866 (platform): New variable.
27867 (pkglibdir): Likewise.
27868 Use PKGLIBDIR instead of PKGDATADIR.
27869
27870 * util/i386/pc/grub-install.in (datadir): Removed.
27871 (host_vendor): Likewise.
27872 (host_os): Likewise.
27873 (pkgdatadir): Likewise.
27874 (platform): New variable.
27875 (pkglibdir): Likewise.
27876 Use PKGLIBDIR instead of PKGDATADIR.
27877
27878 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
27879 instead of GRUB_DATADIR.
27880 (main): Likewise.
27881 * util/i386/pc/grub-mkimage.c (usage): Likewise.
27882 (main): Likewise.
27883 * util/i386/efi/grub-mkimage.c (usage): Likewise.
27884 (main): Likewise.
27885
27886 * configure.ac (--with-platform): New option.
27887 Use PLATFORM instead of HOST_VENDOR to specify a platform.
27888
27889 * Makefile.in: Include a makefile based on PLATFORM instead of
27890 HOST_VENDOR.
27891 (pkgdatadir): Not appended by the machine type.
27892 (pkglibdir): Appended by the machine type.
27893 (host_vendor): Removed.
27894 (platform): New variable.
27895 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
27896 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
27897 (uninstall): Likewise.
27898
27899 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
27900
27901 Use the environment context in the menu. Remove the commands
27902 "default" and "timeout", and use variables instead.
27903
27904 * normal/menu.c: Include grub/env.h.
27905 (print_entry): Cast TITLE to silence gcc.
27906 (get_timeout): New function.
27907 (set_timeout): Likewise.
27908 (get_entry_number): Likewise.
27909 (run_menu): Use a default entry, a fallback entry and a timeout
27910 in the environment variables "default", "fallback" and
27911 "timeout". Also, tweak the default entry if it is not within the
27912 current menu entries.
27913 (grub_menu_run): Use a fallback entry in the environment variable
27914 "fallback".
27915
27916 * normal/main.c (read_config_file): Do not initialize
27917 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
27918 NEWMENU->TIMEOUT.
27919 (grub_normal_execute): Use a data slot to store the menu.
27920
27921 * include/grub/normal.h (struct grub_menu): Removed default_entry,
27922 fallback_entry and timeout.
27923 (struct grub_menu_list): Removed.
27924 (grub_menu_list_t): Likewise.
27925 (struct grub_context): Likewise.
27926 (grub_context_t): Likewise.
27927 (grub_context_get): Likewise.
27928 (grub_context_get_current_menu): Likewise.
27929 (grub_context_push_menu): Likewise.
27930 (grub_context_pop_menu): Likewise.
27931 (grub_default_init): Likewise.
27932 (grub_default_fini): Likewise.
27933 (grub_timeout_init): Likewise.
27934 (grub_timeout_fini): Likewise.
27935
27936 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
27937 and timeout.mod.
27938 (normal_mod_SOURCES): Removed normal/context.c.
27939
27940 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
27941 commands/default.c, commands/timeout.c and normal/context.c.
27942 (normal_mod_SOURCES): Removed normal/context.c.
27943
27944 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
27945 commands/timeout.c and normal/context.c.
27946 (normal_mod_SOURCES): Removed normal/context.c.
27947
27948 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
27949 commands/default.c, commands/timeout.c and normal/context.c.
27950 (normal_mod_SOURCES): Removed normal/context.c.
27951
27952 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
27953 timeout.mod.
27954 (default_mod_SOURCES): Removed.
27955 (default_mod_CFLAGS): Likewise.
27956 (default_mod_LDFLAGS): Likewise.
27957 (timeout_mod_SOURCES): Removed.
27958 (timeout_mod_CFLAGS): Likewise.
27959 (timeout_mod_LDFLAGS): Likewise.
27960
27961 * DISTLIST: Removed commands/default.c, commands/timeout.c and
27962 normal/context.c.
27963
27964 * commands/default.c: Removed.
27965 * commands/timeout.c: Likewise.
27966 * normal/context.c: Likewise.
27967
27968 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
27969
27970 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
27971
27972 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
27973
27974 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
27975 "next" to "prev" for readability.
27976 (struct grub_env_sorted_var): New struct.
27977 (grub_env_context): Renamed to ...
27978 (initial_context): ... this.
27979 (grub_env_var_context): Renamed to ...
27980 (current_context): ... this.
27981 (grub_env_find): Look only at CURRENT_CONTEXT.
27982 (grub_env_context_open): Rewritten to copy exported variables from
27983 previous context.
27984 (grub_env_context_close): Rewritten according to the new
27985 scheme. Also, add an assertion to prevent the initial context from
27986 removed.
27987 (grub_env_insert): Removed the code for the sorted list.
27988 (grub_env_remove): Likewise.
27989 (grub_env_export): Simply mark the variable with
27990 GRUB_ENV_VAR_GLOBAL.
27991 (grub_env_set): A cosmetic change for naming consistency.
27992 (grub_env_get): Likewise.
27993 (grub_env_unset): Likewise.
27994 (grub_env_iterate): Rewritten to sort variables within this
27995 function.
27996 (grub_register_variable_hook): Fixed for naming consistency. Call
27997 grub_env_find again, only if NAME is not found at the first time.
27998 (mangle_data_slot_name): New function.
27999 (grub_env_set_data_slot): Likewise.
28000 (grub_env_get_data_slot): Likewise.
28001 (grub_env_unset_data_slot): Likewise.
28002
28003 * include/grub/env.h (grub_env_var_type): New enum.
28004 (GRUB_ENV_VAR_LOCAL): New constant.
28005 (GRUB_ENV_VAR_GLOBAL): Likewise.
28006 (GRUB_ENV_VAR_DATA): Likewise.
28007 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
28008 "type".
28009 (grub_env_set): Replace VAR with NAME for consistency.
28010 (grub_register_variable_hook): Likewise.
28011 (grub_env_export): Specify the name of the argument.
28012 (grub_env_set_data_slot): New prototype.
28013 (grub_env_get_data_slot): Likewise.
28014 (grub_env_unset_data_slot): Likewise.
28015
28016 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
28017
28018 Extend the loader so that GRUB can accept a loader which comes
28019 back to GRUB when a loaded image exits. Also, this change adds
28020 support for a chainloader on EFI.
28021
28022 * term/efi/console.c: Include grub/misc.h.
28023 (grub_console_checkkey): Display a scan code on the top for
28024 debugging. This will be removed once the EFI port gets stable.
28025 Correct the scan code mapping.
28026
28027 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
28028 allocate memory from larger regions, in order to reduce the number
28029 of allocated regions. Otherwise, the MacOSX loader panics.
28030 (filter_memory_map): Avoid less than 1MB for compatibility with
28031 other loaders.
28032 (add_memory_regions): Allocate from the tail of a region, if
28033 possible, to avoid allocating a region near to 1MB, for the MacOSX
28034 loader.
28035
28036 * kern/efi/init.c (grub_efi_set_prefix): Specify
28037 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
28038
28039 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
28040 argument IMAGE_HANDLE and specify it to get a loaded image.
28041 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
28042 grub_efi_get_loaded_image.
28043 (grub_efi_get_filename): Divide the length by the size of
28044 grub_efi_char16_t.
28045 (grub_efi_get_device_path): New function.
28046 (grub_efi_print_device_path): Print End Device Path nodes. Divide
28047 the length by the size of grub_efi_char16_t for a file path device
28048 path node.
28049
28050 * kern/loader.c (grub_loader_noreturn): New variable.
28051 (grub_loader_set): Accept a new argument NORETURN. Set
28052 GRUB_LOADER_NORETURN to NORETURN.
28053 All callers changed.
28054 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
28055 grub_machine_fini.
28056
28057 * include/grub/efi/efi.h (grub_efi_get_device_path): New
28058 prototype.
28059 (grub_efi_get_loaded_image): Take an argument to specify an image
28060 handle.
28061
28062 * include/grub/loader.h (grub_loader_set): Added one more argument
28063 NORETURN.
28064
28065 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
28066 instead of grub_efi_open_protocol.
28067 (grub_efidisk_get_device_name): Likewise.
28068 (grub_efidisk_close): Print a newline.
28069 (grub_efidisk_get_device_handle): Fixed to use
28070 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
28071 GRUB_EFI_DEVICE_PATH_TYPE.
28072
28073 * disk/efi/efidisk.c (device_path_guid): Moved to ...
28074 * kern/efi/efi.c (device_path_guid): ... here.
28075
28076 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
28077 chain.mod.
28078 (kernel_mod_HEADERS): Added efi/disk.h.
28079 (_chain_mod_SOURCES): New variable.
28080 (_chain_mod_CFLAGS): Likewise.
28081 (_chain_mod_LDFLAGS): Likewise.
28082 (chain_mod_SOURCES): Likewise.
28083 (chain_mod_CFLAGS): Likewise.
28084 (chain_mod_LDFLAGS): Likewise.
28085
28086 * DISTLIST: Added include/grub/efi/chainloader.h,
28087 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
28088
28089 * include/grub/efi/chainloader.h: New file.
28090 * loader/efi/chainloader.c: Likewise.
28091 * loader/efi/chainloader_normal.c: Likewise.
28092
28093 2006-04-30 Marco Gerards <marco@gnu.org>
28094
28095 * commands/configfile.c (grub_cmd_source): New function.
28096 (GRUB_MOD_INIT): Register the commands `source' and `.'.
28097 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
28098
28099 2006-04-30 Marco Gerards <marco@gnu.org>
28100
28101 * normal/execute.c (grub_script_execute_cmd): Change the return
28102 type to `grub_err_t'. Correctly return the error.
28103 (grub_script_execute_cmdline): In case a command line is not a
28104 command or a function, try to interpret it as an assignment.
28105
28106 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
28107
28108 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
28109 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
28110 skip a node whose name is obviously invalid as UTF-16,
28111 i.e. contains a NUL character. Stop the iteration when the last
28112 directory entry is found. Instead of using the return value of
28113 grub_hfsplus_btree_iterate_node, store the value in RET and use
28114 it, because the iterator can be stopped by the last directory
28115 entry.
28116
28117 2006-04-30 Marco Gerards <marco@gnu.org>
28118
28119 * include/grub/env.h (grub_env_export): New prototype. Reported
28120 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
28121
28122 2006-04-30 Marco Gerards <marco@gnu.org>
28123
28124 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
28125 size of the extents in a catalog file record.
28126
28127 2006-04-29 Marco Gerards <marco@gnu.org>
28128
28129 * commands/configfile.c (grub_cmd_configfile): Execute the
28130 configfile within its own context.
28131
28132 * include/grub/env.h (grub_env_context_open): New prototype.
28133 (grub_env_context_close): Likewise.
28134
28135 * kern/env.c (grub_env): Removed.
28136 (grub_env_sorted): Likewise.
28137 (grub_env_context): New variable.
28138 (grub_env_var_context): Likewise.
28139 (grub_env_find): Search both the active context and the global
28140 context.
28141 (grub_env_context_open): New function.
28142 (grub_env_context_close): Likewise.
28143 (grub_env_insert): Likewise.
28144 (grub_env_remove): Likewise.
28145 (grub_env_export): Likewise.
28146 (grub_env_set): Changed to use helper functions to avoid code
28147 duplication.
28148 (grub_env_iterate): Rewritten so both the current context and the
28149 global context are being used.
28150
28151 * normal/command.c (export_command): New function.
28152 (grub_command_init): Register the `export' function.
28153
28154 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
28155
28156 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
28157 explicitly to suppress gcc's warnings.
28158 * fs/fat.c (grub_fat_find_dir): Likewise.
28159 (grub_fat_label): Likewise.
28160 * fs/xfs.c (grub_xfs_read_inode): Likewise.
28161 (grub_xfs_mount): Likewise.
28162 (grub_xfs_label): Likewise.
28163 * fs/affs.c (grub_affs_mount): Likewise.
28164 (grub_affs_label): Likewise.
28165 (grub_affs_iterate_dir): Likewise.
28166 * fs/sfs.c (grub_sfs_mount): Likewise.
28167 (grub_sfs_iterate_dir): Likewise.
28168 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
28169 * fs/hfs.c (grub_hfs_mount): Likewise.
28170 (grub_hfs_cmp_catkeys): Likewise.
28171 (grub_hfs_find_dir): Likewise.
28172 (grub_hfs_dir): Likewise.
28173 (grub_hfs_label): Likewise.
28174 * fs/jfs.c (grub_jfs_mount): Likewise.
28175 (grub_jfs_opendir): Likewise.
28176 (grub_jfs_getent): Likewise.
28177 (grub_jfs_lookup_symlink): Likewise.
28178 (grub_jfs_label): Likewise.
28179 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
28180 (grub_hfsplus_iterate_dir): Likewise.
28181 (grub_hfsplus_btree_iterate_node): Made static.
28182
28183 * util/grub-emu.c (prefix): New variable.
28184 (grub_machine_set_prefix): New function.
28185 (main): Do not set the environment variable "prefix" here. Only
28186 set PREFIX, which is used later by grub_machine_set_prefix.
28187
28188 * include/grub/video.h: Do not include grub/symbol.h.
28189 (grub_video_register): Not exported. This symbol is not defined in
28190 the kernel.
28191 (grub_video_unregister): Likewise.
28192 (grub_video_iterate): Likewise.
28193 (grub_video_setup): Likewise.
28194 (grub_video_restore): Likewise.
28195 (grub_video_get_info): Likewise.
28196 (grub_video_get_blit_format): Likewise.
28197 (grub_video_set_palette): Likewise.
28198 (grub_video_get_palette): Likewise.
28199 (grub_video_set_viewport): Likewise.
28200 (grub_video_get_viewport): Likewise.
28201 (grub_video_map_color): Likewise.
28202 (grub_video_map_rgb): Likewise.
28203 (grub_video_map_rgba): Likewise.
28204 (grub_video_fill_rect): Likewise.
28205 (grub_video_blit_glyph): Likewise.
28206 (grub_video_blit_bitmap): Likewise.
28207 (grub_video_blit_render_target): Likewise.
28208 (grub_video_scroll): Likewise.
28209 (grub_video_swap_buffers): Likewise.
28210 (grub_video_create_render_target): Likewise.
28211 (grub_video_delete_render_target): Likewise.
28212 (grub_video_set_active_render_target): Likewise.
28213
28214 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
28215 Undefined.
28216 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
28217
28218 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
28219 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
28220 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
28221 instead of $(srcdir)/genkernsyms.sh.
28222
28223 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
28224 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
28225 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
28226 instead of $(srcdir)/genkernsyms.sh.
28227
28228 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
28229 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
28230 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
28231 instead of $(srcdir)/genkernsyms.sh.
28232
28233 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
28234 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
28235 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
28236 instead of $(srcdir)/genkernsyms.sh.
28237
28238 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
28239 genkernsyms.sh.
28240
28241 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
28242 genkernsyms.sh.
28243 (gensymlist.sh): New target.
28244 (genkernsyms.sh): Likewise.
28245
28246 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
28247 genkernsyms.sh.in and gensymlist.sh.in.
28248
28249 * genkernsyms.sh: Removed.
28250 * gensymlist.sh: Likewise.
28251
28252 * genkernsyms.sh.in: New file.
28253 * gensymlist.sh.in: Likewise.
28254
28255 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
28256
28257 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
28258 clobber "prefix", since we may have already set it manually.
28259
28260 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
28261
28262 * kern/misc.c (abort): New alias for grub_abort.
28263
28264 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
28265
28266 A new machine-specific function "grub_machine_set_prefix" is
28267 defined. This is called after loading modules, so that a prefix
28268 initialization can use modules. Also, this change adds an
28269 intensive debugging feature for the memory manager via the
28270 configure option "--enable-mm-debug".
28271
28272 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
28273 PART.LEN.
28274
28275 * kern/sparc64/ieee1275/init.c (abort): Removed.
28276 (grub_stop): Likewise.
28277 (grub_exit): New function.
28278 (grub_set_prefix): Renamed to ...
28279 (grub_machine_set_prefix): ... this.
28280 (grub_machine_init): Do not call grub_set_prefix.
28281
28282 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
28283 (grub_machine_set_prefix): ... this.
28284 (grub_machine_init): Do not call grub_set_prefix.
28285
28286 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
28287 (grub_machine_init): Do not set the prefix here.
28288
28289 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
28290
28291 * kern/efi/init.c: Include grub/mm.h.
28292 (grub_efi_set_prefix): New function.
28293
28294 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
28295 (grub_efi_get_filename): New function.
28296 (grub_print_device_path): Renamed to ...
28297 (grub_efi_print_device_path): ... this.
28298
28299 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
28300 [MM_DEBUG] (grub_realloc): Likewise.
28301 [MM_DEBUG] (grub_free): Likewise.
28302 [MM_DEBUG] (grub_memalign): Likewise.
28303 [MM_DEBUG] (grub_mm_debug): New variable.
28304 [MM_DEBUG] (grub_debug_malloc): New function.
28305 [MM_DEBUG] (grub_debug_free): New function.
28306 [MM_DEBUG] (grub_debug_realloc): New function.
28307 [MM_DEBUG] (grub_debug_memalign): New function.
28308
28309 * kern/misc.c (grub_abort): Print a newline to distinguish
28310 the message.
28311
28312 * kern/main.c (grub_main): Call grub_machine_set_prefix and
28313 grub_set_root_dev after loading modules. This is necessary when
28314 setting a prefix depends on modules.
28315
28316 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
28317 (grub_efi_print_device_path): ... this.
28318 (grub_efi_get_filename): New prototype.
28319 (grub_efi_set_prefix): Likewise.
28320
28321 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
28322 and grub/disk.h.
28323 (grub_efidisk_get_device_handle): New prototype.
28324 (grub_efidisk_get_device_name): Likewise.
28325
28326 * include/grub/mm.h: Include config.h.
28327 (MM_DEBUG): Removed.
28328 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
28329 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
28330 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
28331 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
28332 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
28333 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
28334 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
28335 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
28336 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
28337
28338 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
28339
28340 * disk/efi/efidisk.c: Include grub/partition.h.
28341 (iterate_child_devices): New function.
28342 (add_device): First, compare only last device path nodes, so that
28343 devices are sorted by the types.
28344 (grub_efidisk_get_device_handle): New function.
28345 (grub_efidisk_get_device_name): Likewise.
28346
28347 * configure.ac (--enable-mm-debug): New option to enable the
28348 memory manager debugging feature. This makes the binary much
28349 bigger, so is disabled by default.
28350
28351 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
28352
28353 Use grub_abort instead of grub_stop, and grub_exit must be
28354 define in each architecture now. Also, this change adds support
28355 for EFI disks.
28356
28357 * util/i386/pc/grub-probefs.c: Include grub/term.h.
28358 (grub_getkey): New function.
28359 (grub_term_get_current): Likewise.
28360
28361 * util/i386/pc/grub-setup.c: Include grub/term.h.
28362 (grub_getkey): New function.
28363 (grub_term_get_current): Likewise.
28364
28365 * util/misc.c (grub_stop): Renamed to ...
28366 (grub_exit): ... this.
28367
28368 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
28369 (grub_exit): ... this.
28370 (grub_machine_init): Use grub_abort instead of abort.
28371 (grub_stop): Removed.
28372
28373 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
28374 abort.
28375
28376 * kern/i386/pc/startup.S (grub_exit): New function.
28377 (cold_reboot): New label.
28378
28379 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
28380 (grub_efi_init): Call grub_efidisk_init.
28381 (grub_efi_fini): Call grub_efidisk_fini.
28382
28383 * kern/efi/efi.c: Include grub/mm.h.
28384 (grub_efi_console_control_guid): Renamed to ...
28385 (console_control_guid): ... this.
28386 (grub_efi_loaded_image_guid): Renamed to ...
28387 (loaded_image_guid): ... this.
28388 (grub_efi_locate_handle): New function.
28389 (grub_efi_open_protocol): Likewise.
28390 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
28391 GRUB_EFI_CONSOLE_CONTROL_GUID.
28392 (grub_efi_exit): Removed.
28393 (grub_stop): Likewise.
28394 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
28395 (grub_exit): New function.
28396 (grub_print_device_path): Likewise.
28397
28398 * kern/rescue.c (grub_rescue_cmd_exit): New function.
28399 (grub_enter_rescue_mode): Register "exit".
28400
28401 * kern/misc.c (grub_real_dprintf): A cosmetic change.
28402 (grub_abort): New function.
28403
28404 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
28405
28406 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
28407
28408 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
28409
28410 * include/grub/efi/efi.h (grub_efi_exit): Removed.
28411 (grub_print_device_path): New prototype.
28412 (grub_efi_locate_handle): Likewise.
28413 (grub_efi_open_protocol): Likewise.
28414
28415 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
28416 * disk/efi/efidisk.c: Likewise.
28417
28418 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
28419
28420 * include/grub/efi/console_control.h
28421 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
28422
28423 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
28424 last 8 bytes as an array.
28425 (GRUB_EFI_DISK_IO_GUID): New macro.
28426 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
28427 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
28428 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
28429 grub_uint8_t.
28430 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
28431 (struct grub_efi_device_path): Rename the member "sub_type" to
28432 "subtype".
28433 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
28434 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
28435 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
28436 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
28437 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
28438 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
28439 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
28440 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
28441 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
28442 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
28443 (struct grub_efi_pci_device_path): New structure.
28444 (grub_efi_pci_device_path_t): New type.
28445 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
28446 (struct grub_efi_pccard_device_path): New structure.
28447 (grub_efi_pccard_device_path_t): New type.
28448 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
28449 (struct grub_efi_memory_mapped_device_path): New structure.
28450 (grub_efi_memory_mapped_device_path_t): New type.
28451 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
28452 (struct grub_efi_vendor_device_path): New structure.
28453 (grub_efi_vendor_device_path_t): New type.
28454 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
28455 (struct grub_efi_controller_device_path): New structure.
28456 (grub_efi_controller_device_path_t): New type.
28457 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
28458 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
28459 (struct grub_efi_acpi_device_path): New structure.
28460 (grub_efi_acpi_device_path_t): New type.
28461 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
28462 (struct grub_efi_expanded_acpi_device_path): New structure.
28463 (grub_efi_expanded_acpi_device_path_t): New type.
28464 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
28465 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
28466 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
28467 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
28468 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
28469 (struct grub_efi_atapi_device_path): New structure.
28470 (grub_efi_atapi_device_path_t): New type.
28471 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
28472 (struct grub_efi_fibre_channel_device_path): New structure.
28473 (grub_efi_fibre_channel_device_path_t): New type.
28474 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
28475 (struct grub_efi_1394_device_path): New structure.
28476 (grub_efi_1394_device_path_t): New type.
28477 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
28478 (struct grub_efi_usb_device_path): New structure.
28479 (grub_efi_usb_device_path_t): New type.
28480 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
28481 (struct grub_efi_usb_class_device_path): New structure.
28482 (grub_efi_usb_class_device_path_t): New type.
28483 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
28484 (struct grub_efi_i2o_device_path): New structure.
28485 (grub_efi_i2o_device_path_t): New type.
28486 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
28487 (struct grub_efi_mac_address_device_path): New structure.
28488 (grub_efi_mac_address_device_path_t): New type.
28489 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
28490 (struct grub_efi_ipv4_device_path): New structure.
28491 (grub_efi_ipv4_device_path_t): New type.
28492 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
28493 (struct grub_efi_ipv6_device_path): New structure.
28494 (grub_efi_ipv6_device_path_t): New type.
28495 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
28496 (struct grub_efi_infiniband_device_path): New structure.
28497 (grub_efi_infiniband_device_path_t): New type.
28498 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
28499 (struct grub_efi_uart_device_path): New structure.
28500 (grub_efi_uart_device_path_t): New type.
28501 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
28502 (struct grub_efi_vendor_messaging_device_path): New structure.
28503 (grub_efi_vendor_messaging_device_path_t): New type.
28504 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
28505 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
28506 (struct grub_efi_hard_drive_device_path): New structure.
28507 (grub_efi_hard_drive_device_path_t): New type.
28508 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
28509 (struct grub_efi_cdrom_device_path): New structure.
28510 (grub_efi_cdrom_device_path_t): New type.
28511 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
28512 (struct grub_efi_vendor_media_device_path): New structure.
28513 (grub_efi_vendor_media_device_path_t): New type.
28514 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
28515 (struct grub_efi_file_path_device_path): New structure.
28516 (grub_efi_file_path_device_path_t): New type.
28517 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
28518 (struct grub_efi_protocol_device_path): New structure.
28519 (grub_efi_protocol_device_path_t): New type.
28520 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
28521 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
28522 (struct grub_efi_bios_device_path): New structure.
28523 (grub_efi_bios_device_path_t): New type.
28524 (struct grub_efi_disk_io): New structure.
28525 (grub_efi_disk_io_t): New type.
28526 (struct grub_efi_block_io_media): New structure.
28527 (grub_efi_block_io_media_t): New type.
28528 (struct grub_efi_block_io): New structure.
28529 (grub_efi_block_io_t): New type.
28530
28531 * include/grub/misc.h (grub_stop): Removed.
28532 (grub_exit): New prototype.
28533 (grub_abort): Likewise.
28534
28535 * include/grub/disk.h (enum grub_disk_dev_id): Added
28536 GRUB_DISK_DEVICE_EFIDISK_ID.
28537
28538 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
28539 disk/efi/efidisk.c.
28540 (kernel_syms.lst): Remove the target if an error occurs.
28541
28542 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
28543
28544 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
28545 as it was simply too buggy.
28546
28547 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
28548
28549 * kern/misc.c (grub_lltoa): New function.
28550 (grub_vsprintf): Added support for the long long suffix,
28551 i.e. "ll".
28552
28553 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
28554
28555 * Makefile.in (LDFLAGS): Add variable.
28556 (LD): Remove variable.
28557 * configure.ac: Add -m32 to LDFLAGS.
28558 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
28559 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
28560 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
28561 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
28562 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
28563 variables.
28564 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
28565 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
28566 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
28567
28568 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
28569
28570 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
28571 length for unknown glyph.
28572
28573 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
28574
28575 Add support for pre-loaded modules into the EFI port.
28576
28577 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
28578 completely. Accept one more argument DIR. The caller has changed.
28579
28580 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
28581
28582 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
28583 (grub_efi_loaded_image_guid): New variable.
28584 (grub_efi_get_loaded_image): New function.
28585 (grub_arch_modules_addr): Likewise.
28586
28587 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
28588 prototype.
28589
28590 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
28591 (struct grub_efi_loaded_image): New structure.
28592 (grub_efi_loaded_image_t): New type.
28593
28594 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
28595
28596 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
28597 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
28598 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
28599
28600 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
28601
28602 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
28603
28604 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
28605
28606 * DISTLIST: Added include/grub/efi/console.h,
28607 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
28608 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
28609
28610 * include/grub/efi/console.h: New file.
28611 * include/grub/efi/time.h: Likewise.
28612 * include/grub/i386/efi/kernel.h: Likewise.
28613 * kern/efi/init.c: Likewise.
28614 * kern/efi/mm.c: Likewise.
28615 * term/efi/console.c: Likewise.
28616
28617 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
28618 (grub_stop): Removed.
28619 (grub_get_rtc): Likewise.
28620 (grub_machine_init): Simply call grub_efi_init.
28621 (grub_machine_fini): Call grub_efi_fini.
28622
28623 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
28624 (grub_efi_output_string): Removed.
28625 (grub_efi_stall): New function.
28626 (grub_stop): Likewise.
28627 (grub_get_rtc): Likewise.
28628
28629 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
28630 (grub_efi_stall): New prototype.
28631 (grub_efi_allocate_pages): Likewise.
28632 (grub_efi_free_pages): Likewise.
28633 (grub_efi_get_memory_map): Likewise.
28634 (grub_efi_mm_init): Likewise.
28635 (grub_efi_mm_fini): Likewise.
28636 (grub_efi_init): Likewise.
28637 (grub_efi_fini): Likewise.
28638
28639 * include/grub/i386/efi/time.h: Do not include
28640 grub/symbol.h. Include grub/efi/time.h.
28641 (GRUB_TICKS_PER_SECOND): Removed.
28642 (grub_get_rtc): Likewise.
28643
28644 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
28645 Added padding. The EFI spec is buggy.
28646 (GRUB_EFI_BLACK): New macro.
28647 (GRUB_EFI_BLUE): Likewise.
28648 (GRUB_EFI_GREEN): Likewise.
28649 (GRUB_EFI_CYAN): Likewise.
28650 (GRUB_EFI_RED): Likewise.
28651 (GRUB_EFI_MAGENTA): Likewise.
28652 (GRUB_EFI_BROWN): Likewise.
28653 (GRUB_EFI_LIGHTGRAY): Likewise.
28654 (GRUB_EFI_BRIGHT): Likewise.
28655 (GRUB_EFI_DARKGRAY): Likewise.
28656 (GRUB_EFI_LIGHTBLUE): Likewise.
28657 (GRUB_EFI_LIGHTGREEN): Likewise.
28658 (GRUB_EFI_LIGHTCYAN): Likewise.
28659 (GRUB_EFI_LIGHTRED): Likewise.
28660 (GRUB_EFI_LIGHTMAGENTA): Likewise.
28661 (GRUB_EFI_YELLOW): Likewise.
28662 (GRUB_EFI_WHITE): Likewise.
28663 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
28664 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
28665 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
28666 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
28667 (GRUB_EFI_BACKGROUND_RED): Likewise.
28668 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
28669 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
28670 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
28671 (GRUB_EFI_TEXT_ATTR): Likewise.
28672
28673 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
28674 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
28675 (kernel_mod_HEADERS): Added efi/time.h.
28676
28677 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
28678
28679 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
28680 include/grub/efi/api.h, include/grub/efi/console_control.h,
28681 include/grub/efi/efi.h, include/grub/efi/pe32.h,
28682 include/grub/i386/efi/time.h, kern/efi/efi.c,
28683 kern/i386/efi/init.c, kern/i386/efi/startup.S,
28684 and util/i386/efi/grub-mkimage.c.
28685
28686 * Makefile.in (RMKFILES): Added i386-efi.rmk.
28687
28688 * genmk.rb (PModule#rule): Do not export symbols if
28689 #{prefix}_EXPORTS is set to "no".
28690
28691 * conf/i386-efi.mk: New file.
28692 * conf/i386-efi.rmk: Likewise.
28693 * include/grub/efi/api.h: Likewise.
28694 * include/grub/efi/console_control.h: Likewise.
28695 * include/grub/efi/efi.h: Likewise.
28696 * include/grub/efi/pe32.h: Likewise.
28697 * include/grub/i386/efi/time.h: Likewise.
28698 * kern/efi/efi.c: Likewise.
28699 * kern/i386/efi/init.c: Likewise.
28700 * kern/i386/efi/startup.S: Likewise.
28701 * util/i386/efi/grub-mkimage.c: Likewise.
28702
28703 2006-04-17 Marco Gerards <marco@gnu.org>
28704
28705 * include/grub/script.h: Include <grub/parser.h> and
28706 "grub_script.tab.h".
28707 (struct grub_lexer_param): New struct.
28708 (struct grub_parser_param): Likewise.
28709 (grub_script_create_arglist): Pass the state in an argument.
28710 (grub_script_add_arglist): Likewise.
28711 (grub_script_create_cmdline): Likewise.
28712 (grub_script_create_cmdblock): Likewise.
28713 (grub_script_create_cmdif): Likewise.
28714 (grub_script_create_cmdmenu): Likewise.
28715 (grub_script_add_cmd): Likewise.
28716 (grub_script_arg_add): Likewise.
28717 (grub_script_lexer_ref): Likewise.
28718 (grub_script_lexer_deref): Likewise.
28719 (grub_script_lexer_record_start): Likewise.
28720 (grub_script_lexer_record_stop): Likewise.
28721 (grub_script_mem_record): Likewise.
28722 (grub_script_mem_record_stop): Likewise.
28723 (grub_script_malloc): Likewise.
28724 (grub_script_yylex): Likewise.
28725 (grub_script_yyparse): Likewise.
28726 (grub_script_yyerror): Likewise.
28727 (grub_script_yylex): Likewise.
28728 (grub_script_lexer_init): Return the state.
28729
28730 * normal/lexer.c (grub_script_lexer_state): Removed variable.
28731 (grub_script_lexer_done): Likewise.
28732 (grub_script_lexer_getline): Likewise.
28733 (grub_script_lexer_refs): Likewise.
28734 (script): Likewise.
28735 (newscript): Likewise.
28736 (record): Likewise.
28737 (recording): Likewise.
28738 (recordpos): Likewise.
28739 (recordlen): Likewise.
28740 (grub_script_lexer_init): Return the state instead of setting
28741 global variables.
28742 (grub_script_lexer_ref): Use the newly added argument for state
28743 instead of globals.
28744 (grub_script_lexer_deref): Likewise.
28745 (grub_script_lexer_record_start): Likewise.
28746 (grub_script_lexer_record_stop): Likewise.
28747 (recordchar): Likewise.
28748 (nextchar): Likewise.
28749 (grub_script_yylex2): Likewise.
28750 (grub_script_yylex): Likewise.
28751 (grub_script_yyerror): Likewise.
28752
28753 * normal/parser.y (func_mem): Removed variable.
28754 (menu_entry): Likewise.
28755 (err): Likewise.
28756 (%lex-param): New parser option.
28757 (%parse-param): Likewise.
28758 (script): Always return the AST.
28759 (argument): Pass the state around.
28760 (arguments): Likewise.
28761 (grubcmd): Likewise.
28762 (commands): Likewise.
28763 (function): Likewise.
28764 (menuentry): Likewise.
28765 (if_statement): Likewise.
28766 (if): Likewise.
28767
28768 * normal/script.c (grub_script_memused): Removed variable.
28769 (grub_script_parsed): Likewise.
28770 (grub_script_malloc): Added a state argument. Use that instead of
28771 global variables.
28772 (grub_script_mem_record): Likewise.
28773 (grub_script_mem_record_stop): Likewise.
28774 (grub_script_arg_add): Likewise.
28775 (grub_script_add_arglist): Likewise.
28776 (grub_script_create_cmdline): Likewise.
28777 (grub_script_create_cmdif): Likewise.
28778 (grub_script_create_cmdmenu): Likewise.
28779 (grub_script_add_cmd): Likewise.
28780 (grub_script_parse): Setup the state before calling the parser.
28781
28782 2006-04-16 Marco Gerards <marco@gnu.org>
28783
28784 * normal/command.c (grub_command_init): Remove the title command.
28785
28786 * normal/lexer.c (grub_script_yylex): Renamed from this...
28787 (grub_script_yylex2): ... to this.
28788 (grub_script_yylex): New function. Temporary
28789 introduced to filter some tokens.
28790 (grub_script_yyerror): Print a newline.
28791
28792 * normal/main.c (read_config_file): Output information about the
28793 lines that contain errors. Wait for a key after all lines have
28794 been processed. Don't return an empty menu.
28795
28796 * normal/parser.y (func_mem): Don't initialize.
28797 (menu_entry): Likewise.
28798 (err): New variable.
28799 (script): Don't return anything when an error was encountered.
28800 (ws, returns): Removed rules.
28801 (argument): Disabled concatenated variable support.
28802 (arguments): Remove explicit separators.
28803 (grubcmd): Likewise.
28804 (function): Likewise.
28805 (menuentry): Likewise.
28806 (if): Likewise.
28807 (commands): Likewise. Add error handling.
28808
28809 * normal/script.c (grub_script_create_cmdline): If
28810 `grub_script_parsed' is 0, assume the parser encountered an error.
28811
28812 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
28813
28814 * configure.ac: Add support for EFI. Fix the typo
28815 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
28816
28817 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
28818
28819 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
28820 foreign multibyte characters should be shown correctly.
28821
28822 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
28823
28824 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
28825 calculation.
28826 (read_config_file): Made it to close file before returning.
28827
28828 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
28829
28830 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
28831 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
28832 video/i386/pc/vbefill.c.
28833
28834 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
28835 video/i386/pc/vbefill.c.
28836
28837 * include/grub/video.h (grub_video_blit_format): New enum.
28838 (grub_video_mode_info): Added new member blit_format.
28839 (grub_video_get_blit_format): New function prototype.
28840
28841 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
28842 function prototype.
28843 (grub_video_vbe_map_rgb): Likewise.
28844 (grub_video_vbe_unmap_color): Likewise.
28845
28846 * include/grub/i386/pc/vbeblit.h: New file.
28847
28848 * include/grub/i386/pc/vbefill.h: New file.
28849
28850 * video/video.c (grub_video_get_blit_format): New function.
28851 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
28852 (grub_video_vbe_map_rgb): Likewise.
28853 (grub_video_vbe_unmap_color): Likewise.
28854
28855 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
28856 optimized fills.
28857 (grub_video_vbe_blit_render_target): Changed to use more optimized
28858 blits.
28859 (grub_video_vbe_setup): Added detection for optimized settings.
28860 (grub_video_vbe_create_render_target): Likewise.
28861
28862 * video/i386/pc/vbeblit.c: New file.
28863
28864 * video/i386/pc/vbefill.c: New file.
28865
28866 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
28867
28868 * font/manager.c (grub_font_get_glyph): Removed font fixup from
28869 here...
28870
28871 * util/unifont2pff.rb: ... and moved it to here. Improved argument
28872 parsing to support both hex and dec ranges. If filename was missing
28873 show usage information.
28874
28875 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
28876
28877 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
28878 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
28879
28880 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
28881 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
28882 (video_mod_SOURCES): Added.
28883 (video_mod_CFLAGS): Likewise.
28884 (video_mod_LDFLAGS): Likewise.
28885 (gfxterm_mod_SOURCES): Likewise.
28886 (gfxterm_mod_CFLAGS): Likewise.
28887 (gfxterm_mod_LDFLAGS): Likewise.
28888 (videotest_mod_SOURCES): Likewise.
28889 (videotest_mod_CFLAGS): Likewise.
28890 (videotest_mod_LDFLAGS): Likewise.
28891 (vesafb_mod_SOURCES): Removed.
28892 (vesafb_mod_CFLAGS): Likewise.
28893 (vesafb_mod_LDFLAGS): Likewise.
28894 (vga_mod_SOURCES): Likewise.
28895 (vga_mod_CFLAGS): Likewise.
28896 (vga_mod_LDFLAGS): Likewise.
28897
28898 * commands/videotest.c: New file.
28899
28900 * font/manager.c (fill_with_default_glyph): Modified to use
28901 grub_font_glyph.
28902 (grub_font_get_glyph): Likewise.
28903 (fontmanager): Renamed from this...
28904 (font_manager): ... to this.
28905
28906 * include/grub/font.h (grub_font_glyph): Added new structure.
28907 (grub_font_get_glyph): Modified to use grub_font_glyph.
28908
28909 * include/grub/misc.h (grub_abs): Added as inline function.
28910
28911 * include/grub/video.h: New file.
28912
28913 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
28914 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
28915 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
28916 (grub_vbe_get_controller_info): Renamed from this...
28917 (grub_vbe_bios_get_controller_info): ... to this.
28918 (grub_vbe_get_mode_info): Renamed from this...
28919 (grub_vbe_bios_get_mode_info): ... to this.
28920 (grub_vbe_set_mode): Renamed from this...
28921 (grub_vbe_bios_set_mode): ... to this.
28922 (grub_vbe_get_mode): Renamed from this...
28923 (grub_vbe_bios_get_mode): ... to this.
28924 (grub_vbe_set_memory_window): Renamed from this...
28925 (grub_vbe_bios_set_memory_window): ... to this.
28926 (grub_vbe_get_memory_window): Renamed from this...
28927 (grub_vbe_bios_get_memory_window): ... to this.
28928 (grub_vbe_set_scanline_length): Renamed from this...
28929 (grub_vbe_set_scanline_length): ... to this.
28930 (grub_vbe_get_scanline_length): Renamed from this...
28931 (grub_vbe_bios_get_scanline_length): ... to this.
28932 (grub_vbe_set_display_start): Renamed from this...
28933 (grub_vbe_bios_set_display_start): ... to this.
28934 (grub_vbe_get_display_start): Renamed from this...
28935 (grub_vbe_bios_get_display_start): ... to this.
28936 (grub_vbe_set_palette_data): Renamed from this...
28937 (grub_vbe_bios_set_palette_data): ... to this.
28938 (grub_vbe_set_pixel_rgb): Removed.
28939 (grub_vbe_set_pixel_index): Likewise.
28940
28941 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
28942 from this...
28943 (grub_vbe_bios_get_controller_info): ... to this.
28944 (grub_vbe_get_mode_info): Renamed from this...
28945 (grub_vbe_bios_get_mode_info): ... to this.
28946 (grub_vbe_set_mode): Renamed from this...
28947 (grub_vbe_bios_set_mode): ... to this.
28948 (grub_vbe_get_mode): Renamed from this...
28949 (grub_vbe_bios_get_mode): ... to this.
28950 (grub_vbe_set_memory_window): Renamed from this...
28951 (grub_vbe_bios_set_memory_window): ... to this.
28952 (grub_vbe_get_memory_window): Renamed from this...
28953 (grub_vbe_bios_get_memory_window): ... to this.
28954 (grub_vbe_set_scanline_length): Renamed from this...
28955 (grub_vbe_set_scanline_length): ... to this.
28956 (grub_vbe_get_scanline_length): Renamed from this...
28957 (grub_vbe_bios_get_scanline_length): ... to this.
28958 (grub_vbe_set_display_start): Renamed from this...
28959 (grub_vbe_bios_set_display_start): ... to this.
28960 (grub_vbe_get_display_start): Renamed from this...
28961 (grub_vbe_bios_get_display_start): ... to this.
28962 (grub_vbe_set_palette_data): Renamed from this...
28963 (grub_vbe_bios_set_palette_data): ... to this.
28964 (grub_vbe_bios_get_controller_info): Fixed problem with registers
28965 getting corrupted after calling it. Added more pushes and pops.
28966 (grub_vbe_bios_set_mode): Likewise.
28967 (grub_vbe_bios_get_mode): Likewise.
28968 (grub_vbe_bios_get_memory_window): Likewise.
28969 (grub_vbe_bios_set_scanline_length): Likewise.
28970 (grub_vbe_bios_get_scanline_length): Likewise.
28971 (grub_vbe_bios_get_display_start): Likewise.
28972 (grub_vbe_bios_set_palette_data): Likewise.
28973
28974 * normal/cmdline.c (cl_set_pos): Refresh the screen.
28975 (cl_insert): Likewise.
28976 (cl_delete): Likewise.
28977
28978 * term/gfxterm.c: New file.
28979
28980 * term/i386/pc/vesafb.c: Removed file.
28981
28982 * video/video.c: New file.
28983
28984 * video/i386/pc/vbe.c (real2pm): Added new function.
28985 (grub_video_vbe_draw_pixel): Likewise.
28986 (grub_video_vbe_get_video_ptr): Likewise.
28987 (grub_video_vbe_get_pixel): Likewise
28988 (grub_video_vbe_init): Likewise.
28989 (grub_video_vbe_fini): Likewise.
28990 (grub_video_vbe_setup): Likewise.
28991 (grub_video_vbe_get_info): Likewise.
28992 (grub_video_vbe_set_palette): Likewise.
28993 (grub_video_vbe_get_palette): Likewise.
28994 (grub_video_vbe_set_viewport): Likewise.
28995 (grub_video_vbe_get_viewport): Likewise.
28996 (grub_video_vbe_map_color): Likewise.
28997 (grub_video_vbe_map_rgb): Likewise.
28998 (grub_video_vbe_map_rgba): Likewise.
28999 (grub_video_vbe_unmap_color): Likewise.
29000 (grub_video_vbe_fill_rect): Likewise.
29001 (grub_video_vbe_blit_glyph): Likewise.
29002 (grub_video_vbe_blit_bitmap): Likewise.
29003 (grub_video_vbe_blit_render_target): Likewise.
29004 (grub_video_vbe_scroll): Likewise.
29005 (grub_video_vbe_swap_buffers): Likewise.
29006 (grub_video_vbe_create_render_target): Likewise.
29007 (grub_video_vbe_delete_render_target): Likewise.
29008 (grub_video_vbe_set_active_render_target): Likewise.
29009 (grub_vbe_set_pixel_rgb): Remove function.
29010 (grub_vbe_set_pixel_index): Likewise.
29011 (index_color_mode): Remove static variable.
29012 (active_mode): Likewise.
29013 (framebuffer): Likewise.
29014 (bytes_per_scan_line): Likewise.
29015 (grub_video_vbe_adapter): Added new static variable.
29016 (framebuffer): Likewise.
29017 (render_target): Likewise.
29018 (initial_mode): Likewise.
29019 (mode_in_use): Likewise.
29020 (mode_list): Likewise.
29021
29022 2006-03-10 Marco Gerards <marco@gnu.org>
29023
29024 * configure.ac (AC_INIT): Bumped to 1.93.
29025
29026 * DISTLIST: Added `include/grub/hfs.h'.
29027
29028 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
29029
29030 * boot/i386/pc/boot.S (general_error): Before looping, try INT
29031 18H, which might help the BIOS falling back to next boot media.
29032
29033 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
29034
29035 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
29036 Poe Chen <poe.poechen@gmail.com>.
29037
29038 2006-01-17 Marco Gerards <marco@gnu.org>
29039
29040 * include/grub/normal.h: Include <grub/script.h>.
29041 (grub_command_list): Removed struct.
29042 (grub_command_list_t): Removed type.
29043 (grub_menu_entry): Remove members `num' and `command_list'. Add
29044 members `commands' and `sourcecode'.
29045 * include/grub/script.h: Add inclusion guards.
29046 (grub_script_cmd_menuentry): New struct.
29047 (grub_script_execute_menuentry): New prototype.
29048 (grub_script_lexer_record_start): Likewise.
29049 (grub_script_lexer_record_stop): Likewise.
29050 * normal/execute.c (grub_script_execute_menuentry): New function.
29051 * normal/lexer.c (record, recording, recordpos, recordlen): New
29052 variables.
29053 (grub_script_lexer_record_start): New function.
29054 (grub_script_lexer_record_stop): Likewise.
29055 (recordchar): Likewise.
29056 (nextchar): Likewise.
29057 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
29058 2048 as the buffer size. Add the tokens `menuentry' and `@'.
29059 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
29060 (current_menu): New variable.
29061 (free_menu): Mainly rewritten.
29062 (grub_normal_menu_addentry): New function.
29063 (read_config_file): Rewritten.
29064 * normal/menu.c (run_menu_entry): Mainly rewritten.
29065 * normal/menu_entry.c (make_screen): Rewritten the code to insert
29066 the menu entry.
29067 (run): Mainly rewritten.
29068 * normal/parser.y (menu_entry): New variable.
29069 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
29070 (menuentry): New rule.
29071 (command): Add `menuentry'.
29072 (if_statement): Allow additional returns before `fi'.
29073 * normal/script.c (grub_script_create_cmdmenu): New function.
29074
29075 2006-01-03 Marco Gerards <marco@gnu.org>
29076
29077 * INSTALL: GNU Bison is required.
29078 * configure.ac: Rewritten the test to detect Bison.
29079 * Makefile.in (YACC): New variable. Reported by Xun Sun
29080 <xun.sun.cn@gmail.com>.
29081
29082 2006-01-03 Marco Gerards <marco@gnu.org>
29083
29084 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
29085 the HFS+ filesystem to filesystem blocks.
29086 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
29087 GCC warning is silenced.
29088
29089 2006-01-03 Marco Gerards <marco@gnu.org>
29090
29091 * partmap/apple.c (apple_partition_map_iterate): Convert the data
29092 read from disk from big endian to host byte order.
29093
29094 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
29095
29096 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
29097 documentation.
29098 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
29099 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
29100 embedded HFS+ filesystem.
29101 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
29102 (grub_hfs_sblock): Move from here...
29103 * include/grub/hfs.h: To here... New file.
29104 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
29105 documentation.
29106 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
29107 New macros.
29108 (grub_hfsplus_volheader): Change type of member `magic' to
29109 `grub_uint16_t'.
29110 (grub_hfsplus_data): Add new member `embedded_offset'.
29111 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
29112 returned block.
29113 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
29114 Calculate the offset.
29115
29116 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
29117
29118 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
29119 Removed.
29120 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
29121
29122 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
29123
29124 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
29125 ENV->NAME is NULL after allocating ENV->VALUE.
29126
29127 2005-12-25 Marco Gerards <marco@gnu.org>
29128
29129 * kern/env.c (grub_env_set): Rewritten the error handling code.
29130
29131 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
29132
29133 * geninit.sh: Made more robust, and more portable.
29134
29135 2005-12-25 Marco Gerards <marco@gnu.org>
29136
29137 Add support for Apple HFS+ filesystems.
29138
29139 * fs/hfsplus.c: New file.
29140
29141 * DISTLIST: Added `fs/hfsplus.c'.
29142
29143 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
29144 (hfsplus_mod_SOURCES): New variable.
29145 (hfsplus_mod_CFLAGS): Likewise.
29146 (hfsplus_mod_LDFLAGS): Likewise.
29147 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
29148 (grub_setup_SOURCES): Likewise.
29149 (grub_mkdevicemap_SOURCES): Likewise.
29150 (grub_emu_SOURCES): Likewise.
29151 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29152
29153 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
29154
29155 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
29156
29157 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
29158
29159 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
29160 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
29161 include/grub/parser.h, include/grub/script.h, kern/parser.c,
29162 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
29163 normal/lexer.c, normal/parser.y, normal/script.c, and
29164 partmap/gpt.c.
29165 Removed kern/sparc64/cache.c.
29166
29167 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
29168 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
29169 grub_emu_init.c.
29170
29171 * configure.ac (AC_INIT): Bumped to 1.92.
29172
29173 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
29174
29175 * kern/err.c (grub_error_push): Added new function to support error
29176 stacks.
29177 (grub_error_pop): Likewise.
29178 (grub_error_stack_items): New local variable to support error stacks.
29179 (grub_error_stack_pos): Likewise.
29180 (grub_error_stack_assert): Likewise.
29181 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
29182 stack depth.
29183 (grub_print_error): Added support to print errors from error stack.
29184
29185 * include/grub/err.h (grub_error_push): Added function prototype.
29186 (grub_error_pop): Likewise.
29187
29188 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
29189
29190 * configure.ac: Accept `powerpc64' as host_cpu.
29191 (amd64): Rename to `biarch32'.
29192
29193 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
29194 non-cacheline-aligned addresses.
29195
29196 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
29197 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
29198 if `size' is non-zero.
29199
29200 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
29201
29202 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
29203 and `cd' to make sure the filename is not prefixed with a
29204 directory name.
29205 (pkgdata_MODULES): Add `gpt.mod'.
29206 (gpt_mod_SOURCES): New variable.
29207 (gpt_mod_CFLAGS): Likewise.
29208 (gpt_mod_LDFLAGS): Likewise.
29209
29210 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
29211
29212 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
29213 New macro.
29214
29215 * partmap/gpt.c: New file.
29216
29217 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
29218 GPT partition map is detected.
29219
29220 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
29221
29222 * commands/i386/pc/play.c: New file.
29223 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
29224 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
29225 macros.
29226
29227 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
29228
29229 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
29230 ((unused))' to silence gcc warning.
29231
29232 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
29233
29234 * configure.ac: Correct `AC_PROG_YACC' test.
29235
29236 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
29237
29238 * util/powerpc/ieee1275/grub-install.in: Run the mount point
29239 check before installing files.
29240
29241 2005-11-22 Mike Small <smallm@panix.com>
29242
29243 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
29244 number regex so multidigit numbers are recognized correctly.
29245
29246 2005-11-22 Mike Small <smallm@panix.com>
29247
29248 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
29249 debugging message before attempting to claim memory.
29250 (grub_rescue_cmd_initrd): Add a claim debugging message and try
29251 multiple addresses in case of failure.
29252
29253 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
29254
29255 * term/tparm.c (get_space): Remove empty `if' statement.
29256
29257 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
29258
29259 * kern/parser.c (check_varstate): Rename `state' to 's'.
29260
29261 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
29262
29263 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
29264 variable definitions to the beginning of each function. Sort stack
29265 variables by size.
29266 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
29267 `buf' argument to `char *'.
29268
29269 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
29270
29271 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
29272 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
29273 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
29274 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
29275 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
29276 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
29277 configfile.mod, search.mod, gzio.mod and test.mod.
29278 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
29279 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
29280 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
29281 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
29282 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
29283 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
29284 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
29285 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
29286 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
29287 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
29288 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
29289 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
29290 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
29291 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
29292 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
29293 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
29294 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
29295 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
29296 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
29297 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
29298 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
29299 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
29300 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
29301
29302 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
29303 `grep --include'.
29304 (pkgdata_MODULES): Add test.mod.
29305
29306 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
29307
29308 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
29309 appending to variables with "+=".
29310 (PModule): Use full pathname to generate *.lst filenames.
29311
29312 * Makefile.in: Fixed list rules moved from genmk.rb.
29313 (.DELETE_ON_ERROR): New special target.
29314 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
29315
29316 * conf/i386-pc.rmk: Include conf/common.mk.
29317 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
29318 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
29319 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
29320 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
29321 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
29322 configfile.mod, search.mod, gzio.mod and test.mod.
29323 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
29324 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
29325 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
29326 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
29327 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
29328 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
29329 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
29330 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
29331 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
29332 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
29333 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
29334 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
29335 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
29336 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
29337 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
29338 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
29339 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
29340 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
29341 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
29342 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
29343 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
29344 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
29345 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
29346 here...
29347 * conf/common.rmk: ... to here. New file.
29348
29349 * conf/common.mk: New file.
29350
29351 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
29352
29353 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
29354 (grub_script.tab.c): ... here.
29355
29356 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
29357 (grub_script.tab.c): ... here.
29358
29359 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
29360 (grub_script.tab.c): ... here.
29361
29362 * normal/command.c (grub_command_find): Fixed a memory leak of
29363 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
29364
29365 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
29366
29367 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
29368 "@" which marks the start of a comment on ARM.
29369 (VARIABLE): Likewise.
29370
29371 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
29372
29373 Add support for Linux/ADFS partition tables.
29374
29375 * partmap/acorn.c: New file.
29376
29377 * include/grub/acorn_filecore.h: Likewise.
29378
29379 * DISTLIST: Added `partmap/acorn.c' and
29380 `include/grub/acorn_filecore.h'.
29381
29382 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
29383 `partmap/acorn.c'.
29384 (pkgdata_MODULES): Add `acorn.mod'.
29385 (acorn_mod_SOURCES): New variable.
29386 (acorn_mod_CFLAGS): Likewise.
29387
29388 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
29389 `partmap/acorn.c'.
29390 (pkgdata_MODULES): Add `acorn.mod'.
29391 (acorn_mod_SOURCES): New variable.
29392 (acorn_mod_CFLAGS): Likewise.
29393
29394 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
29395 (pkgdata_MODULES): Add `acorn.mod'.
29396 (acorn_mod_SOURCES): New variable.
29397 (acorn_mod_CFLAGS): Likewise.
29398 (acorn_mod_LDFLAGS): Likewise.
29399
29400 * include/types.h (grub_disk_addr_t): New typedef.
29401
29402 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
29403
29404 * geninit.sh: New file.
29405
29406 * geninitheader.sh: Likewise.
29407
29408 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
29409 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
29410 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
29411 * commands/configfile.c (grub_configfile_init)
29412 (grub_configfile_fini): Likewise.
29413 * commands/default.c (grub_default_init, grub_default_fini):
29414 Likewise.
29415 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
29416 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
29417 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
29418 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
29419 Likewise.
29420 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
29421 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
29422 Likewise.
29423 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
29424 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
29425 Likewise.
29426 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
29427 Likewise.
29428 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
29429 Likewise.
29430 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
29431 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
29432 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
29433 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
29434 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
29435 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
29436 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
29437 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
29438 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
29439 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
29440 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
29441 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
29442 * partmap/amiga.c (grub_amiga_partition_map_init)
29443 (grub_amiga_partition_map_fini): Likewise.
29444 * partmap/apple.c (grub_apple_partition_map_init)
29445 (grub_apple_partition_map_fini): Likewise.
29446 * partmap/pc.c (grub_pc_partition_map_init)
29447 (grub_pc_partition_map_fini): Likewise.
29448 * partmap/sun.c (grub_sun_partition_map_init,
29449 grub_sun_partition_map_fini): Likewise.
29450 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
29451 Likewise.
29452
29453 * util/grub-emu.c: Include <grub_modules_init.h>.
29454 (main): Don't initialize and de-initialize any modules directly,
29455 use `grub_init_all' and `grub_fini_all' instead.
29456
29457 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
29458 `grub_vesafb_mod_init'.
29459 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
29460 all users.
29461 * term/i386/pc/vga.c (grub_vga_init): Renamed to
29462 `grub_vga_mod_init'. Updated all users.
29463 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
29464
29465 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
29466 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
29467 rules.
29468
29469 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
29470 Generate a function to initialize the module in utilities.
29471 Updated all callers.
29472 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
29473 initialize the module in utilities. Updated all callers.
29474
29475 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
29476
29477 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
29478 escape sequence and a literal ^L to clear the screen.
29479
29480 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
29481 when returning from Open Firmware.
29482
29483 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
29484
29485 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
29486 (grub_ofconsole_height): Likewise.
29487 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
29488 manually insert a '\n'.
29489 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
29490 `grub_ofconsole_height'. Return early if these are already set.
29491
29492 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
29493
29494 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
29495 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
29496 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
29497 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
29498 and `normal/script.c'.
29499 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
29500 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
29501 (test_mod_SOURCES): New variable.
29502 (test_mod_CFLAGS): Likewise.
29503 (test_mod_LDFLAGS): Likewise.
29504 (pkgdata_MODULES): Add `test.mod'.
29505 (grub_script.tab.c): New rule.
29506 (grub_script.tab.h): Likewise.
29507
29508 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
29509
29510 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
29511 `commands/test.c', `normal/execute.c', `normal/lexer.c',
29512 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
29513 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
29514 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
29515 (test_mod_SOURCES): New variable.
29516 (test_mod_CFLAGS): Likewise.
29517 (pkgdata_MODULES): Add `test.mod'.
29518 (grub_script.tab.c): New rule.
29519 (grub_script.tab.h): Likewise.
29520
29521 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
29522
29523 Add initial scripting support.
29524
29525 * commands/test.c: New file.
29526 * include/grub/script.h: Likewise.
29527 * normal/execute.c: Likewise.
29528 * normal/function.c: Likewise.
29529 * normal/lexer.c: Likewise.
29530 * normal/parser.y: Likewise.
29531 * normal/script.c: Likewise.
29532
29533 * configure.ac: Add `AC_PROG_YACC' test.
29534
29535 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
29536 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
29537 `normal/function.c' and `normal/script.c'.
29538 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
29539 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
29540 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
29541 variables.
29542 (pkgdata_MODULES): Add `test.mod'.
29543 (grub_script.tab.c): New rule.
29544 (grub_script.tab.h): Likewise.
29545
29546 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
29547
29548 * include/grub/normal.h (grub_test_init): New prototype.
29549 (grub_test_fini): Likewise.
29550
29551 * normal/command.c: Include <grub/script.h>.
29552 (grub_command_execute): Rewritten.
29553
29554 * util/grub-emu.c (main): Call `grub_test_init' and
29555 `grub_test_fini'.
29556
29557 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
29558
29559 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
29560 to 0.
29561 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
29562 there are no pending characters.
29563
29564 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
29565
29566 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
29567 `grub_strndup' to drop device arguments. Replace unnecessary
29568 `grub_strndup' with `grub_strdup'.
29569
29570 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
29571
29572 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
29573 `debug' environment variable has been set.
29574
29575 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
29576
29577 * Makefile.in (install-local): Use $(DATA).
29578 (uninstall): Likewise.
29579 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
29580 (sbin_UTILITIES): ... to here.
29581 (sbin_SCRIPTS): New variable.
29582 (grub_install_SOURCES): New variable.
29583 * util/powerpc/ieee1275/grub-install.in: New file.
29584 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
29585 variable.
29586 (add_segments): Call `grub_util_get_path'.
29587
29588 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
29589
29590 From Timothy Baldwin:
29591 * commands/ls.c (grub_ls_list_files): Close FILE with
29592 grub_file_close.
29593 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
29594
29595 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
29596
29597 * include/grub/parser.h: New file.
29598
29599 * kern/parser.c: Likewise.
29600
29601 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
29602 (grub_setup_SOURCES): Likewise.
29603 (grub_probefs_SOURCES): Likewise.
29604 (grub_emu_SOURCES): Likewise.
29605 (kernel_img_HEADERS): Add `parser.h'.
29606
29607 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
29608 (grub_emu_SOURCES): Add `kern/parser.c'.
29609 (grubof_SOURCES): Likewise.
29610
29611 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
29612 (grubof_SOURCES): Add `kern/parser.c'.
29613
29614 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
29615
29616 * kern/misc.c (grub_split_cmdline): Removed function.
29617
29618 * kern/rescue.c: Include <grub/parser.h>.
29619 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
29620 of `grub_split_cmdline'.
29621
29622 * normal/command.c: Include <grub/parser.h>.
29623 (grub_command_execute): Use `grub_parser_split_cmdline' instead
29624 of `grub_split_cmdline'.
29625
29626 * normal/completion.c: Include <grub/parser.h>.
29627 (cmdline_state): New variable.
29628 (iterate_dir): End the filename with a quote depending on the
29629 command line state.
29630 (get_state): new function.
29631 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
29632 split the arguments and determine the current argument. When the
29633 argument string is not quoted, escape all spaces.
29634
29635 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
29636
29637 * normal/sparc64/setjmp.S: New file.
29638
29639 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
29640
29641 * include/grub/sparc64/libgcc.h: New file.
29642 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
29643 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
29644 normal/sparc64/setjmp.c.
29645
29646 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
29647
29648 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
29649 * kern/sparc64/cache.S: New file.
29650 * kern/sparc64/cache.c: Removed.
29651 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
29652 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
29653 -mtune=ultrasparc.
29654 (COMMON_LDFLAGS): Add -melf64_sparc.
29655 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
29656 (grubof_SOURCES): Use cache.S instead of cache.c.
29657 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
29658 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
29659 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
29660 commented though.
29661 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
29662 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
29663 (linux_mod_CFLAGS): Commented out.
29664 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
29665 out because module isn't built.
29666 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
29667 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
29668 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
29669 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
29670 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
29671 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
29672 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
29673 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
29674 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
29675 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
29676 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
29677 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
29678 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
29679 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
29680
29681 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
29682
29683 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
29684 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
29685 longer, because HFS should not be used on PC.
29686
29687 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
29688
29689 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
29690 consistently within the loop.
29691
29692 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
29693
29694 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
29695 directory can not be read.
29696
29697 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
29698
29699 * configure.ac (AC_INIT): Increase the version number to 1.91.
29700
29701 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
29702 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
29703 term/i386/pc/serial.c.
29704
29705 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
29706
29707 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
29708 file size must be permitted.
29709
29710 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
29711 between %ah and %al.
29712
29713 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
29714
29715 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
29716 grub_uint64_t.
29717 Call the hook with a NUL-terminated filename.
29718 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
29719 grub_cpu_to_be32.
29720
29721 * kern/term.c (cursor_state): New variable.
29722 (grub_term_set_current): Reset the cursor state on a new
29723 terminal.
29724 (grub_setcursor): Rewritten to use CURSOR_STATE.
29725 (grub_getcursor): New function.
29726
29727 * include/grub/term.h (grub_getcursor): New prototype.
29728
29729 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
29730 integers on ARM. Reported by Timothy Baldwin
29731 <T.E.Baldwin99@members.leeds.ac.uk>.
29732
29733 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
29734
29735 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
29736 allocated.
29737 (grub_sfs_dir): Likewise.
29738
29739 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
29740
29741 Add support for the SFS filesystem.
29742
29743 * fs/sfs.c: New file.
29744
29745 * DISTLIST: Added `fs/sfs.c'.
29746
29747 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
29748 (grub_probefs_SOURCES): Likewise.
29749 (grub_emu_SOURCES): Likewise.
29750 (pkgdata_MODULES): Add `sfs.mod'.
29751 (sfs_mod_SOURCES): New variable.
29752 (sfs_mod_CFLAGS): Likewise.
29753 (sfs_mod_LDFLAGS): Likewise.
29754
29755 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
29756 (pkgdata_MODULES): Add `sfs.mod'.
29757 (sfs_mod_SOURCES): New variable.
29758 (sfs_mod_CFLAGS): Likewise.
29759
29760 * util/grub-emu.c (main): Call `grub_sfs_init' and
29761 `grub_sfs_fini'.
29762
29763 * include/grub/fs.h (grub_sfs_init): New prototype.
29764 (grub_sfs_fini): Likewise.
29765
29766 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
29767
29768 Add support for the AFFS filesystem.
29769
29770 * fs/affs.c: New file.
29771
29772 * DISTLIST: Added `fs/affs.c'.
29773
29774 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
29775 (grub_probefs_SOURCES): Likewise.
29776 (grub_emu_SOURCES): Likewise.
29777 (pkgdata_MODULES): Add `affs.mod'.
29778 (affs_mod_SOURCES): New variable.
29779 (affs_mod_CFLAGS): Likewise.
29780 (affs_mod_LDFLAGS): Likewise.
29781
29782 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
29783 (pkgdata_MODULES): Add `affs.mod'.
29784 (affs_mod_SOURCES): New variable.
29785 (affs_mod_CFLAGS): Likewise.
29786
29787 * util/grub-emu.c (main): Call `grub_affs_init' and
29788 `grub_affs_fini'.
29789
29790 * include/grub/fs.h (grub_affs_init): New prototype.
29791 (grub_affs_fini): Likewise.
29792
29793 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
29794
29795 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
29796
29797 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
29798
29799 * configure.ac: Accept `x86_64' as host_cpu. In that case add
29800 `-m32' to CFLAGS.
29801
29802 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
29803 linking.
29804
29805 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
29806 (COMMON_LDFLAGS): New variable.
29807 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
29808 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
29809 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
29810 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
29811 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
29812 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
29813 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
29814 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
29815 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
29816 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
29817 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
29818 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
29819 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
29820 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
29821 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
29822 variables.
29823 (normal_mod_ASFLAGS): Add `-m32'.
29824
29825 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
29826 (grub_host_size_t, grub_host_ssize_t): New types.
29827 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
29828 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
29829 `GRUB_HOST_SIZEOF_VOID_P'.
29830
29831 * include/grub/kernel.h (struct grub_module_header): Type of
29832 member offset changed to `grub_host_off_t'. Type of member size
29833 changed to `grub_host_size_t'.
29834 (struct grub_module_info): Type of member offset changed to
29835 `grub_host_off_t'. Type of member size changed to
29836 `grub_host_size_t'.
29837
29838 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
29839
29840 Make GRUB's kernel compliant to Multiboot Specification.
29841
29842 * kern/i386/pc/startup.S (multiboot_header): New label.
29843 (multiboot_entry): Likewise.
29844 (multiboot_trampoline): Likewise.
29845
29846 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29847 Increased to 0x4A0.
29848
29849 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
29850 put parentheses after a question mark.
29851 [!GRUB_UTIL] (my_mod): New variable.
29852
29853 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
29854
29855 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
29856
29857 Adds support for the XFS filesystem. Btrees are not supported
29858 yet.
29859
29860 * fs/xfs.c: New file.
29861
29862 * DISTLIST: Added `fs/xfs.c'.
29863
29864 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
29865 (grub_probefs_SOURCES): Likewise.
29866 (grub_emu_SOURCES): Likewise.
29867 (pkgdata_MODULES): Add `xfs.mod'.
29868 (xfs_mod_SOURCES): New variable.
29869 (xfs_mod_CFLAGS): Likewise.
29870
29871 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
29872 (pkgdata_MODULES): Add `xfs.mod'.
29873 (xfs_mod_SOURCES): New variable.
29874 (xfs_mod_CFLAGS): Likewise.
29875
29876 * util/grub-emu.c (main): Call `grub_xfs_init' and
29877 `grub_xfs_fini'.
29878
29879 * include/grub/fs.h (grub_xfs_init): New prototype.
29880 (grub_xfs_fini): Likewise.
29881
29882
29883 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
29884
29885 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
29886 color modes, allow greater than 16 colors to be configured as
29887 a default palette.
29888
29889 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
29890
29891 * normal/completion.c (complete_arguments): Add the qualifier
29892 const into OPTIONS.
29893
29894 From Omniflux <omniflux+lists@omniflux.com>:
29895 * include/grub/terminfo.h: New file.
29896 * include/grub/tparm.h: Likewise.
29897 * include/grub/i386/pc/serial.h: Likewise.
29898 * term/terminfo.c: Likewise.
29899 * term/tparm.c: Likewise.
29900 * term/i386/pc/serial.c: Likewise.
29901 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
29902 serial.mod.
29903 (terminfo_mod_SOURCES): New variable.
29904 (terminfo_mod_CFLAGS): Likewise.
29905 (serial_mod_SOURCES): Likewise.
29906 (serial_mod_CFLAGS): Likewise.
29907
29908 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
29909
29910 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
29911 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
29912 and kern/powerpc/ieee1275/cmain.c, respectively.
29913
29914 * boot/powerpc/ieee1275/crt0.S: Moved to ...
29915 * kern/powerpc/ieee1275/crt0.S: ... here.
29916
29917 * boot/powerpc/ieee1275/cmain.c: Moved to ...
29918 * kern/powerpc/ieee1275/cmain.c: ... here.
29919
29920 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
29921 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
29922 instead of boot/powerpc/ieee1275/crt0.S and
29923 boot/powerpc/ieee1275/cmain.c, respectively.
29924
29925 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
29926 sectors. It was not used anyway.
29927
29928 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
29929
29930 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
29931 `unused parameter' warning.
29932
29933 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
29934
29935 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
29936 function.
29937 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
29938 getcharwidth.
29939
29940 2005-08-28 Marco Gerards <metgerards@student.han.nl>
29941
29942 * include/grub/normal.h (enum grub_completion_type): Added
29943 `GRUB_COMPLETION_TYPE_ARGUMENT'.
29944
29945 * normal/cmdline.c (print_completion): Handle
29946 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
29947 * normal/menu_entry.c (store_completion): Likewise.
29948
29949 * normal/completion.c (complete_arguments): New function.
29950 (grub_normal_do_completion): Call `complete_arguments' when the
29951 current words start with a dash.
29952
29953 2005-08-27 Marco Gerards <metgerards@student.han.nl>
29954
29955 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
29956 `gzio.mod' instead of `io.mod').
29957
29958 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
29959
29960 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
29961 (DISTDIRS): Added io and video.
29962 Rewrite the search routine to make an output consistently.
29963
29964 * DISTLIST: Added conf/sparc64-ieee1275.mk,
29965 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
29966 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
29967 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
29968 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
29969 util/powerpc/ieee1275/misc.c.
29970
29971 * include/grub/gzio.h: New file.
29972 * io/gzio.c: Likewise.
29973
29974 * kern/file.c (grub_file_close): Call grub_device_close only if
29975 FILE->DEVICE is not NULL.
29976
29977 * include/grub/mm.h [!NULL] (NULL): New macro.
29978
29979 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
29980
29981 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
29982 (pkgdata_MODULES): Added gzio.mod.
29983 (gzio_mod_SOURCES): New variable.
29984 (gzio_mod_CFLAGS): Likewise.
29985
29986 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
29987 (pkgdata_MODULES): Added gzio.mod.
29988 (gzio_mod_SOURCES): New variable.
29989 (gzio_mod_CFLAGS): Likewise.
29990
29991 * commands/cat.c: Include grub/gzio.h.
29992 (grub_cmd_cat): Use grub_gzfile_open instead of
29993 grub_file_open.
29994
29995 * commands/cmp.c: Include grub/gzio.h.
29996 (grub_cmd_cmp): Use grub_gzfile_open instead of
29997 grub_file_open.
29998
29999 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
30000 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
30001 grub_file_open.
30002 (grub_rescue_cmd_module): Likewise.
30003
30004 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
30005
30006 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
30007 kern/sparc64/ieee1275/init.c because it contains _start.
30008 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
30009
30010 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
30011
30012 * configure.ac: Add support for sparc64 host with ieee1275
30013 firmware.
30014 * configure: Generated from configure.ac.
30015 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
30016 instead of int.
30017 (grub_ofdisk_read): Likewise.
30018 (grub_ofdisk_open): Use %p to print pointer values, and cast the
30019 pointers as (void *) to remove a warning.
30020 (grub_ofdisk_close): Likewise.
30021 (grub_ofdisk_read): Likewise.
30022 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
30023 returns, so make it return void to remove a warning.
30024 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
30025 Corresponding prototype change.
30026 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
30027 values, and cast the pointers as (void *) to remove a warning.
30028 (grub_mm_dump): Likewise.
30029 * conf/sparc64-ieee1275.mk: New file.
30030 * conf/sparc64-ieee1275.rmk: Likewise.
30031 * include/grub/sparc64/setjmp.h: Likewise.
30032 * include/grub/sparc64/types.h: Likewise.
30033 * include/grub/sparc64/ieee1275/console.h: Likewise.
30034 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
30035 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
30036 * include/grub/sparc64/ieee1275/time.h: Likewise.
30037 * kern/sparc64/cache.c: Likewise.
30038 * kern/sparc64/dl.c: Likewise.
30039 * kern/sparc64/ieee1275/init.c: Likewise.
30040 * kern/sparc64/ieee1275/openfw.c: Likewise.
30041
30042 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
30043
30044 * util/console.c (grub_ncurses_putchar): If C is greater than
30045 0x7f, set C to a question mark.
30046 (grub_ncurses_getcharwidth): New function.
30047 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
30048 getcharwidth.
30049
30050 * normal/menu.c (print_entry): Made aware of Unicode. First,
30051 convert TITLE to UCS-4, and predict the cursor position by
30052 grub_getcharwidth.
30053
30054 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
30055 const to SRC.
30056 * kern/misc.c (grub_utf16_to_utf8): Likewise.
30057
30058 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
30059
30060 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
30061 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
30062 grub_strcat.
30063
30064 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
30065 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
30066 grub_strcpy and grub_strlen. Take it into account that a space
30067 character is inserted as a delimiter.
30068
30069 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
30070
30071 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
30072 invalid magic in the error.
30073
30074 * commands/search.c: New file.
30075
30076 * util/grub-emu.c (main): Call grub_search_init and
30077 grub_search_fini.
30078
30079 * kern/rescue.c (grub_rescue_print_disks): Removed.
30080 (grub_rescue_print_devices): New function.
30081 (grub_rescue_cmd_ls): Use grub_device_iterate with
30082 grub_rescue_print_devices instead of grub_disk_dev_iterate with
30083 grub_rescue_print_disks.
30084
30085 * kern/partition.c (grub_partition_iterate): Return the result of
30086 PARTMAP->ITERATE instead of GRUB_ERRNO.
30087
30088 * kern/device.c: Include grub/partition.h.
30089 (grub_device_iterate): New function.
30090
30091 * include/grub/partition.h (grub_partition_iterate): Return int
30092 instead of grub_err_t.
30093
30094 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
30095 prototype.
30096 [GRUB_UTIL] (grub_search_fini): Likewise.
30097
30098 * include/grub/device.h (grub_device_iterate): New prototype.
30099
30100 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
30101 commands/search.c.
30102 (pkgdata_MODULES): Added search.mod.
30103 (search_mod_SOURCES): New variable.
30104 (search_mod_CFLAGS): Likewise.
30105
30106 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
30107 (pkgdata_MODULES): Added search.mod.
30108 (search_mod_SOURCES): New variable.
30109 (search_mod_CFLAGS): Likewise.
30110
30111 * commands/ls.c (grub_ls_list_disks): Renamed to ...
30112 (grub_ls_list_devices): ... this, and use grub_device_iterate.
30113 All callers changed.
30114
30115 * DISTLIST: Added commands/search.c.
30116
30117 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
30118
30119 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
30120 conversion.
30121 (grub_getcharwidth): New function.
30122
30123 * kern/misc.c (grub_utf8_to_ucs4): New function.
30124
30125 * include/grub/term.h (struct grub_term): Added a new member
30126 "getcharwidth".
30127 (grub_getcharwidth): New prototype.
30128
30129 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
30130
30131 * term/i386/pc/console.c (map_char): New function. Segregated from
30132 grub_console_putchar.
30133 (grub_console_putchar): Use map_char.
30134 (grub_console_getcharwidth): New function.
30135 (grub_console_term): Specified grub_console_getcharwidth as
30136 getcharwidth.
30137
30138 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
30139 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
30140
30141 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
30142 GRUB_ERRNO.
30143 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
30144 on grub_strtoul completely.
30145 (write_char): Declare local variables in the beginning of the
30146 function.
30147 (grub_vesafb_getcharwidth): New function.
30148 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
30149 getcharwidth.
30150
30151 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
30152
30153 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
30154 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
30155 commands/i386/pc/vbetest.c.
30156
30157 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
30158 call grub_vbe_get_controller_info again, because the returned
30159 information is volatile.
30160 (grub_vbe_set_video_mode): Mostly rewritten.
30161 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
30162 grub_vbe_status_t correctly.
30163 (grub_vbe_get_video_mode_info): Likewise.
30164 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
30165 several if statements.
30166
30167 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
30168 * commands/i386/pc/vbeinfo.c: ... this.
30169
30170 * commands/i386/pc/vbe_test.c: Renamed to ...
30171 * commands/i386/pc/vbetest.c: ... this.
30172
30173 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
30174 ...
30175 (grub_cmd_vbeinfo): ... this. Save video modes before
30176 iterating. Skip a video mode, if it is not available, not enough
30177 information is given or it is monochrome. Show the memory
30178 model. Leave the interpretation of MODEVAR to grub_strtoul
30179 completely.
30180 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
30181 (GRUB_MOD_FINI): Likewise.
30182
30183 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
30184 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
30185 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
30186 duplicated grub_env_get. Leave the interpretation of MODEVAR to
30187 grub_strtoul completely.
30188 (real2pm): Removed.
30189 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
30190 (GRUB_MOD_FINI): Likewise.
30191
30192 * normal/misc.c: Include grub/mm.h.
30193
30194 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
30195 vbe_list_modes with vbetest.mod and vbeinfo.mod.
30196 (vbe_list_modes_mod_SOURCES): Removed.
30197 (vbe_list_modes_mod_CFLAGS): Likewise.
30198 (vbe_test_mod_SOURCES): Likewise.
30199 (vbe_test_mod_CFLAGS): Likewise.
30200 (vbeinfo_mod_SOURCES): New variable.
30201 (vbeinfo_mod_CFLAGS): Likewise.
30202 (vbetest_mod_SOURCES): Likewise.
30203 (vbetest_mod_CFLAGS): Likewise.
30204
30205 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
30206
30207 * normal/misc.c: New file.
30208
30209 * DISTLIST: Added normal/misc.c.
30210
30211 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
30212 DISK to HOOK. Call HOOK with DISK.
30213 * partmap/apple.c (apple_partition_map_iterate): Likewise.
30214 * partmap/pc.c (pc_partition_map_iterate): Likewise.
30215 * partmap/sun.c (sun_partition_map_iterate): Likewise.
30216
30217 * normal/menu_entry.c (struct screen): Added a new member
30218 "completion_shown".
30219 (completion_buffer): New global variable.
30220 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
30221 (store_completion): New function.
30222 (complete): Likewise.
30223 (clear_completions): Likewise.
30224 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
30225 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
30226 a tab, call complete.
30227
30228 * normal/completion.c (disk_dev): Removed.
30229 (print_simple_completion): Likewise.
30230 (print_partition_completion): Likewise.
30231 (print_func): New global variable.
30232 (add_completion): Do not take the arguments WHAT or PRINT any
30233 longer. Added a new argument TYPE. Instead of printing directly,
30234 call PRINT_FUNC if not NULL.
30235 All callers changed.
30236 (complete_device): Use a local variable DEV instead of
30237 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
30238 (grub_normal_do_completion): Take a new argument HOOK. Do not
30239 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
30240 empty string, return NULL instead.
30241 All callers changed.
30242
30243 * normal/cmdline.c (print_completion): New function.
30244
30245 * kern/partition.c (grub_partition_iterate): Add an argument DISK
30246 to HOOK.
30247 All callers changed.
30248
30249 * kern/disk.c (grub_print_partinfo): Removed.
30250
30251 * include/grub/partition.h (struct grub_partition_map): Add a new
30252 argument DISK into HOOK of ITERATE.
30253 (grub_partition_iterate): Add a new argument DISK to HOOK.
30254
30255 * include/grub/normal.h (enum grub_completion_type): New enum.
30256 (grub_completion_type_t): New type.
30257 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
30258 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
30259 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
30260 (GRUB_COMPLETION_TYPE_FILE): Likewise.
30261 (grub_normal_do_completion): Added a new argument HOOK.
30262 (grub_normal_print_device_info): New prototype.
30263
30264 * include/grub/disk.h (grub_print_partinfo): Removed.
30265
30266 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
30267 (normal_mod_SOURCES): Likewise.
30268 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30269 (normal_mod_SOURCES): Likewise.
30270
30271 * commands/ls.c (grub_ls_list_disks): Use
30272 grub_normal_print_device_info instead of grub_print_partinfo. Free
30273 PNAME.
30274 (grub_ls_list_files): Use grub_normal_print_device_info instead of
30275 duplicating the code.
30276
30277 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
30278
30279 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
30280 follow GCS more precisely.
30281 * commands/i386/pc/vbe_test.c: Likewise.
30282 * include/grub/i386/pc/vbe.h: Likewise.
30283 * term/i386/pc/vesafb.c: Likewise.
30284 * video/i386/pc/vbe.c: Likewise.
30285
30286 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
30287
30288 * DISTLIST: Added term/i386/pc/vesafb.c
30289 DISTLIST: Added video/i386/pc/vbe.c
30290 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
30291 DISTLIST: Added commands/i386/pc/vbe_test.c.
30292 * commands/i386/pc/vbe_list_modes.c: New file.
30293 * commands/i386/pc/vbe_test.c: Likewise.
30294 * term/i386/pc/vesafb.c: Likewise.
30295 * video/i386/pc/vbe.c: Likewise.
30296 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
30297 (grub_vbe_probe) Added prototype.
30298 (grub_vbe_set_video_mode) Likewise.
30299 (grub_vbe_get_video_mode) Likewise.
30300 (grub_vbe_get_video_mode_info) Likewise.
30301 (grub_vbe_set_pixel_rgb) Likewise.
30302 (grub_vbe_set_pixel_index) Likewise.
30303 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
30304 (pkgdata_MODULES): Added vesafb.mod.
30305 (pkgdata_MODULES): Added vbe_list_modes.mod.
30306 (pkgdata_MODULES): Added vbe_test.mod.
30307 (vbe_mod_SOURCES): Added.
30308 (vbe_mod_CFLAGS): Likewise.
30309 (vesafb_mod_SOURCES): Likewise.
30310 (vesafb_mod_CFLAGS): Likewise.
30311 (vbe_list_modes_mod_SOURCES): Likewise.
30312 (vbe_list_modes_mod_CFLAGS): Likewise.
30313 (vbe_test_mod_SOURCES): Likewise.
30314 (vbe_test_mod_CFLAGS): Likewise.
30315
30316 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
30317
30318 * normal/command.c (grub_command_execute): If INTERACTIVE is
30319 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
30320 CMDLINE. Disable the pager if INTERACTIVE is true.
30321 All callers are changed.
30322
30323 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
30324 before reading a config file.
30325 * normal/main.c (read_config_file): Even if a command is not
30326 found, register it if it is within an entry.
30327
30328 * util/grub-emu.c: Include sys/types.h and unistd.h.
30329 (options): Added --hold.
30330 (struct arguments): Added a new member "hold".
30331 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
30332 missing.
30333 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
30334 cleared by a debugger, if it is not zero.
30335
30336 * include/grub/normal.h (grub_command_execute): Add an argument
30337 INTERACTIVE.
30338
30339 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
30340
30341 * DISTLIST: Added include/grub/i386/pc/vbe.h.
30342
30343 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
30344
30345 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
30346 program with another one, because the old one didn't detect a bug
30347 in gcc-3.4. Always use regparm 2, because the new test is still
30348 not enough for gcc-4.0. Someone must investigate a simple test
30349 case which detects a bug in gcc-4.0.
30350
30351 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
30352
30353 * DISTLIST: Added normal/completion.c.
30354
30355 * normal/completion.c: New file.
30356
30357 * term/i386/pc/console.c (grub_console_getwh): New function.
30358 (grub_console_term): Assign grub_console_getwh to getwh.
30359
30360 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
30361 function is defined in normal/completion.c as
30362 grub_normal_do_completion.
30363 (grub_cmdline_get): Use grub_normal_do_completion instead of
30364 grub_tab_complete.
30365
30366 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
30367 returns non-zero, otherwise return 0.
30368 (grub_partition_iterate): First, probe the partition map. Then,
30369 call ITERATE only for this partition map.
30370
30371 * kern/misc.c (grub_strncmp): Rewritten.
30372
30373 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
30374 returns non-zero. Otherwise return 0.
30375
30376 * include/grub/partition.h (grub_partition_map_iterate): Return
30377 int instead of void.
30378
30379 * include/grub/normal.h (grub_normal_do_completion): New prototype.
30380
30381 * include/grub/misc.h (grub_strncmp): Change the type of N to
30382 grub_size_t.
30383
30384 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
30385 of void.
30386
30387 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
30388 unsigned explicitly before comparing it with I.
30389
30390 * kern/main.c (grub_env_write_root): Add the attribute unused into
30391 VAR.
30392
30393 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
30394 normal/completion.c.
30395 (normal_mod_SOURCES): Likewise.
30396 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30397 (normal_mod_SOURCES): Likewise.
30398
30399 * normal/command.c (grub_iterate_commands): If ITERATE returns
30400 non-zero, return one immediately.
30401
30402 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
30403
30404 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
30405 * kern/i386/pc/startup.S: Updated Global Descriptor table's
30406 descriptions.
30407 (grub_vbe_get_controller_info): New function.
30408 (grub_vbe_get_mode_info): Likewise.
30409 (grub_vbe_set_mode): Likewise.
30410 (grub_vbe_get_mode): Likewise.
30411 (grub_vbe_set_memory_window): Likewise.
30412 (grub_vbe_get_memory_window): Likewise.
30413 (grub_vbe_set_scanline_length): Likewise.
30414 (grub_vbe_get_scanline_length): Likewise.
30415 (grub_vbe_set_display_start): Likewise.
30416 (grub_vbe_get_display_start): Likewise.
30417 (grub_vbe_set_palette_data): Likewise.
30418 * include/grub/i386/pc/vbe.h: New file.
30419
30420 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
30421
30422 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
30423 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
30424 * DISTLIST: Likewise.
30425 * kern/ieee1275/of.c: Moved to ...
30426 * kern/ieee1275/ieee1275.c: ... here.
30427
30428 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
30429
30430 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
30431 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
30432 Pass 0 as `end' parameter to grub_strtoul().
30433
30434 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
30435
30436 * include/grub/powerpc/ieee1275/console.h: Do not include
30437 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
30438 ifdef.
30439 (grub_console_cur_color): Remove i386-specific prototype.
30440 (grub_console_real_putchar): Likewise.
30441 (grub_console_checkkey): Likewise.
30442 (grub_console_getkey): Likewise.
30443 (grub_console_getxy): Likewise.
30444 (grub_console_gotoxy): Likewise.
30445 (grub_console_cls): Likewise.
30446 (grub_console_setcursor): Likewise.
30447 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
30448 Include <grub/machine/console.h>.
30449 * term/ieee1275/ofconsole.c: Likewise.
30450
30451 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
30452
30453 * Makefile.in (LIBLZO): New variable.
30454
30455 * configure.ac: Check for LZO version 2.
30456
30457 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
30458 lzo/lzo1x.h instead of lzo1x.h.
30459
30460 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
30461 of -llzo.
30462
30463 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
30464 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
30465
30466 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
30467 copying the data from PARTITION to P.
30468
30469 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
30470
30471 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
30472 negative, unload the module.
30473
30474 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
30475 map is "pc_partition_map" but not "pc".
30476 (usage): Fix the description. The options are --boot-image and
30477 --core-image but not --boot-file or --core-file.
30478 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
30479 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
30480 DEFAULT_DIRECTORY.
30481
30482 * util/i386/pc/grub-install.in: Do not specify --boot-file or
30483 --core-file. Specify INSTALL_DEVICE as an argument.
30484
30485 * util/console.c: Include config.h.
30486 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
30487 [HAVE_NCURSES_H]: Include ncurses.h.
30488 [HAVE_CURSES_H]: Include curses.h.
30489 [!A_NORMAL] (A_NORMAL): Defined as zero.
30490 [!A_STANDOUT] (A_STANDOUT): Likewise.
30491
30492 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
30493 -lncurses.
30494 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
30495
30496 * configure.ac: Check for curses libraries and headers.
30497
30498 * Makefile.in (LIBCURSES): New variable.
30499
30500 * genmk.rb (Script::rule): Set the executable bits.
30501
30502 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
30503 name of the PC partition map is "pc_partition_map" but not "pc".
30504
30505 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
30506
30507 * util/i386/pc/grub-install.in (grub_probefs): New variable.
30508 (modules): Likewise.
30509 (usage): Added descriptions for --modules and --grub-probefs.
30510 Handle --modules and --grub-probefs. Save the arguments in MODULES
30511 and GRUB_PROBEFS, respectively.
30512 Auto-detect a filesystem module against GRUBDIR. If the result is
30513 empty and modules are not specified explicitly, abort the
30514 installation. Add the result to MODULES.
30515
30516 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
30517 disk/powerpc/ieee1275/ofdisk.c,
30518 include/grub/powerpc/ieee1275/init.h and
30519 term/powerpc/ieee1275/ofconsole.c.
30520 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
30521 term/ieee1275/ofconsole.c.
30522
30523 * include/grub/powerpc/ieee1275/console.h: Resurrected.
30524
30525 * COPYING: Upgraded to the latest version. Only the address of the
30526 FSF office has changed.
30527
30528 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
30529
30530 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
30531 kern/ieee1275.c with kern/ieee1275/of.c.
30532
30533 * kern/ieee1275.c: Moved to ...
30534 * kern/ieee1275/of.c: ... here.
30535
30536 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
30537
30538 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
30539 readability.
30540
30541 * config.guess: Updated to the latest version from gnulib.
30542 * config.sub: Likewise.
30543 * install.sh: Likewise.
30544 * mkinstalldirs: Likewise.
30545
30546 * include/grub/console.h: Removed. This file is arch-specific. Do
30547 not put this in include/grub.
30548
30549 * include/grub/i386/pc/console.h: Resurrected.
30550
30551 * util/console.c: Include grub/machine/console.h instead of
30552 grub/console.h.
30553 * util/grub-emu.c: Likewise.
30554
30555 2005-08-04 Marco Gerards <metgerards@student.han.nl>
30556
30557 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
30558 hardcoded value.
30559
30560 From Vincent Pelletier <subdino2004@yahoo.fr>
30561 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
30562 Redefined to use grub_getwh.
30563 (grub_term): New member named getwh.
30564 (grub_getwh): New prototype.
30565 * kern/term.c (grub_getwh): New function.
30566 * term/i386/pc/console.c (grub_console_getwh): New function.
30567 (grub_console_term): New member `getwh'.
30568 * term/i386/pc/vga.c (grub_vga_getwh): New function.
30569 (grub_vga_term): New member `getwh'.
30570 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
30571 grub_ssize_t.
30572 (grub_ofconsole_getw): New function.
30573 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
30574 (grub_ofconsole_term): New field named getwh and new initial
30575 value.
30576
30577 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
30578
30579 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
30580 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
30581 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
30582 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
30583 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
30584 of <grub/machine/ieee1275.h>.
30585 * commands/ieee1275/reboot.c: Likewise.
30586 * boot/powerpc/ieee1275/ieee1275.c: Move ...
30587 * kern/ieee1275.c: ... to here. All users updated. Change all
30588 parameter structs to use new type `grub_ieee1275_cell_t'.
30589 * term/powerpc/ieee1275/ofconsole.c: Move ...
30590 * term/ieee1275/ofconsole.c: ... to here. All users updated.
30591 * disk/powerpc/ieee1275/ofdisk.c: Move ...
30592 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
30593 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
30594 to return int.
30595 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
30596 Remove unused prototypes. All users updated.
30597 * include/grub/powerpc/ieee1275/console.h: Removed.
30598 * include/grub/powerpc/ieee1275/ieee1275.h: Define
30599 `grub_ieee1275_cell_t'.
30600 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
30601 Cast comparisons with -1 to the correct type.
30602 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
30603 type to match `grub_ieee1275_entry_fn'.
30604
30605 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
30606
30607 * DISTLIST: Added util/i386/pc/grub-probefs.c.
30608
30609 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
30610 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
30611 partmap/sun.c.
30612 (grub_probefs_SOURCES): New variable.
30613
30614 * util/i386/pc/grub-probefs.c: New file.
30615
30616 * util/i386/pc/grub-setup.c (main): Call
30617 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
30618 grub_hfs_init and grub_jfs_init to initialize the system. Call
30619 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
30620 grub_pc_partition_map_fini to finish the system.
30621
30622 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
30623
30624 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
30625 function.
30626 (grub_multiboot_load_elf32): Likewise.
30627 (grub_multiboot_is_elf64): Likewise.
30628 (grub_multiboot_load_elf64): Likewise.
30629 (grub_multiboot_load_elf): Likewise.
30630 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
30631 an ELF32 or ELF64 file.
30632 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
30633
30634 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
30635 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
30636 NULL before calling FS->LABEL.
30637 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
30638 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
30639 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
30640 before calling FS->LABEL.
30641
30642 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
30643
30644 * util/i386/pc/grub-install.in (datadir): New variable.
30645 (libdir): Removed.
30646 (pkgdatadir): New variable.
30647 (pkglibdir): Removed.
30648
30649 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
30650
30651 * DISTLIST: Added util/i386/pc/grub-install.in.
30652
30653 * util/i386/pc/grub-install.in: New file.
30654
30655 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
30656 (grub_install_SOURCES): Likewise.
30657
30658 * genmk.rb: Added support for scripts.
30659 (Script): New class.
30660 (scripts): New variable.
30661
30662 * Makefile.in (install-local): Install sbin_SCRIPTS by
30663 INSTALL_SCRIPT.
30664 (uninstall): Remove sbin_SCRIPTS.
30665
30666 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
30667 device, try to get a GRUB device by
30668 grub_util_biosdisk_get_grub_dev.
30669 Free DEST_DEV.
30670
30671 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
30672 description for --device-map.
30673
30674 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
30675
30676 Change the semantics of variable hooks. They now return strings
30677 instead of error values.
30678
30679 * util/i386/pc/grub-setup.c: Include grub/env.h.
30680 (setup): Use grub_device_set_root instead of grub_env_set.
30681
30682 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
30683 grub_env_get instead of grub_device_set_root and
30684 grub_device_get_root, respectively.
30685
30686 * kern/main.c (grub_env_write_root): New function.
30687 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
30688 grub_env_set instead of grub_device_set_root.
30689
30690 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
30691 many variables.
30692 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
30693 rather than calling ENV->WRITE_HOOK afterwards.
30694 (grub_env_get): Return the result of ENV->READ_HOOK rather than
30695 passing a pointer of a pointer.
30696 (grub_register_variable_hook): Change the types of "read_hook" and
30697 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
30698 respectively.
30699 Allocate the default empty string on the heap, because this string
30700 may be freed later.
30701
30702 * kern/device.c: Include grub/env.h.
30703 (grub_device_set_root): Removed.
30704 (grub_device_get_root): Likewise.
30705 (grub_device_open): Use grub_env_get instead of
30706 grub_device_get_root.
30707
30708 * include/grub/env.h (grub_env_read_hook_t): New type.
30709 (grub_env_write_hook_t): Likewise.
30710 (grub_env_var): Change the types of "read_hook" and "write_hook"
30711 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
30712 (grub_register_variable_hook): Likewise.
30713
30714 * include/grub/device.h (grub_device_set_root): Removed.
30715 (grub_device_set_root): Likewise.
30716
30717 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
30718 make sure that DIRNAME terminates with '/', so that
30719 grub_fat_find_dir will fail if PATH is not a directory.
30720
30721 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
30722 from DIRNAME.
30723 Use the qualifier auto for print_files and print_files_long.
30724 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
30725 as a regular file.
30726 Put a newline only if there is no error.
30727 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
30728 used.
30729
30730 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
30731
30732 * kern/partition.c (grub_partition_probe): Initialize PART to
30733 NULL. Otherwise, when no partition map is registered, this returns
30734 a garbage.
30735
30736 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
30737
30738 * partmap/apple.c (apple_partition_map_iterate): Check if POS
30739 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
30740 valid.
30741
30742 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
30743
30744 * commands/ls.c (grub_ls_list_disks): Print the filesystem
30745 information on each device, if it does not have partitions. Print
30746 "Device" instead of "Disk", because this function is not specific
30747 to disk devices.
30748
30749 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
30750 static to ensure that it is put on the memory rather than a
30751 register.
30752
30753 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
30754
30755 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
30756 (grub_cat_init): Likewise.
30757 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
30758 (options): Likewise.
30759 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
30760 (grub_configfile_init): Likewise.
30761 * font/manager.c (GRUB_MOD_INIT): Likewise.
30762 * commands/help.c (GRUB_MOD_INIT): Likewise.
30763 (grub_help_init): Likewise.
30764 * normal/command.c (grub_command_init): Likewise.
30765 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
30766 * disk/loopback.c (grub_loop_init): Likewise.
30767 (GRUB_MOD_INIT): Likewise.
30768 * commands/ls.c (grub_ls_init): Likewise.
30769 (GRUB_MOD_INIT): Likewise.
30770 (options): Likewise.
30771 * commands/boot.c (grub_boot_init): Likewise.
30772 (GRUB_MOD_INIT): Likewise.
30773 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
30774 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
30775 (GRUB_MOD_INIT): Likewise.
30776 * commands/cmp.c (grub_cmp_init): Likewise.
30777 (GRUB_MOD_INIT): Likewise.
30778
30779 * normal/arg.c: Use <> instead of "" to include header files.
30780 (SHORT_ARG_HELP): New macro.
30781 (SHORT_ARG_USAGE): Likewise.
30782 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
30783 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
30784 descriptions.
30785 (find_short): Check if C is 'h' or 'u' explicitly.
30786 (grub_arg_show_help): Use space characters instead of tabs. Treat
30787 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
30788 are shown with --help and --usage only if they are not used for
30789 the command itself.
30790 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
30791 'h' and 'u'.
30792
30793 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
30794 const into "longarg". Change the type of "shortarg" to int.
30795
30796 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
30797
30798 * boot/i386/pc/boot.S (boot_drive_check): New label.
30799
30800 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
30801 macro.
30802
30803 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
30804 which do not pass a boot drive correctly. Copied from GRUB Legacy.
30805
30806 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
30807
30808 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
30809 When turning off Gate A20, skip the check and return immediately,
30810 because this is not fatal usually.
30811
30812 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
30813
30814 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
30815 be 0x7C00 instead of 0x8000.
30816
30817 * boot/i386/pc/pxeboot.S: Rewritten.
30818
30819 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
30820 EXT_C.
30821 (gate_a20_check_state): Read a byte from 0x108000. Invert the
30822 result.
30823
30824 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
30825
30826 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
30827 robustness. This routine now supports a BIOS call and System
30828 Control Port A to modify the gate A20.
30829
30830 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30831 Increased to 0x440.
30832
30833 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
30834
30835 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
30836 device path and resulting ihandle.
30837 (grub_ofdisk_close): dprintf the ihandle being closed.
30838 (grub_ofdisk_read): dprintf function parameters.
30839 * kern/mm.c (grub_mm_init_region): Likewise.
30840 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
30841 (grub_linux_boot): dprintf the Linux entry point, initrd address and
30842 size, and boot arguments.
30843 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
30844 before loading into memory.
30845 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
30846 before loading into memory.
30847
30848 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
30849
30850 * kern/mm.c: Added much documentation.
30851 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
30852 8, set to 5 instead of 8.
30853
30854 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
30855
30856 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
30857
30858 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
30859 (grub_mkdevicemap_SOURCES): New variable.
30860
30861 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
30862 lib/device.c of GRUB Legacy.
30863
30864 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
30865
30866 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
30867 instead of PATH is NULL.
30868
30869 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
30870
30871 * commands/cmp.c (BUFFER_SIZE): New macro.
30872 (grub_cmd_cmp): Close the right file at the right time. Compare
30873 only data just read. Don't report files of different size as
30874 identical. Dynamically allocate buffers. Move variable
30875 declarations at the beginning of function.
30876
30877 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
30878
30879 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
30880 reverse.
30881
30882 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
30883
30884 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
30885 when backspace is pressed at beginning of line.
30886
30887 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
30888
30889 * DISTLIST: Added genfslist.sh.
30890
30891 * normal/main.c (fs_module_list): New variable.
30892 (autoload_fs_module): New function.
30893 (read_fs_list): Likewise.
30894 (grub_normal_execute): Call read_fs_list.
30895
30896 * kern/fs.c (grub_fs_autoload_hook): New variable.
30897 (grub_fs_probe): Added support for auto-loading.
30898
30899 * include/grub/normal.h (struct grub_fs_module_list): New struct.
30900 (grub_fs_module_list_t): New type.
30901
30902 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
30903 (grub_fs_autoload_hook): New prototype.
30904
30905 * genfslist.sh: New file.
30906
30907 * genmk.rb: Added a rule to generate a filesystem list.
30908
30909 2005-06-30 Marco Gerards <metgerards@student.han.nl>
30910
30911 * configure.ac: Fix the test for cross-compiling.
30912
30913 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
30914 define GRUB_UTIL anymore.
30915
30916 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
30917 so this function works on other systems than just big endian.
30918 (load_modules): Likewise.
30919 (add_segments): Likewise.
30920
30921 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
30922
30923 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
30924 contains `l' modifier, get a long from va_arg().
30925
30926 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
30927
30928 * kern/mm.c (grub_free): If the next free block which is being
30929 merged is the first free block, set the first block to the block
30930 being freed.
30931 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
30932
30933 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
30934
30935 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
30936 `grub_ieee1275_chosen'.
30937
30938 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
30939
30940 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
30941 (grub_ieee1275_chosen): New variable.
30942 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
30943 `chosen'.
30944 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
30945 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
30946 Rename first argument to `phandle' for consistency.
30947 (grub_ieee1275_get_property_length): Likewise.
30948 (grub_ieee1275_next_property): Likewise. Change type of first argument
30949 to grub_ieee1275_phandle_t.
30950 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
30951 Move export next to declaration.
30952 (grub_ieee1275_chosen): New variable.
30953 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
30954 Correct cosmetic typo.
30955 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
30956 `grub_ieee1275_chosen'.
30957 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
30958 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
30959 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
30960 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
30961 `grub_ieee1275_chosen'.
30962
30963 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
30964
30965 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
30966 /chosen/bootargs.
30967 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
30968 /chosen/bootargs as "variable=value" pairs.
30969
30970 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
30971
30972 * include/grub/misc.h (grub_dprintf): New macro.
30973 (grub_real_dprintf): New prototype.
30974 (grub_strword): Likewise.
30975 (grub_iswordseparator): Likewise.
30976 * kern/misc.c (grub_real_dprintf): New function.
30977 (grub_strword): Likewise.
30978 (grub_iswordseparator): Likewise.
30979
30980 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
30981
30982 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
30983 (roundup): Remove macro.
30984 (grub_ieee1275_flags): Make static.
30985 (grub_ieee1275_realmode): Remove.
30986 (grub_ieee1275_test_flag): New function.
30987 (grub_ieee1275_set_flag): Likewise.
30988 (find_options): Rename to `grub_ieee1275_find_options'; update
30989 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
30990 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
30991 (cmain): New prototype.
30992 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
30993 `grub_ieee1275_flags' directly.
30994 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
30995 machine/biosdisk.h.
30996 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
30997 Don't include grub/machine/init.h.
30998 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
30999 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
31000 Remove prototype.
31001 (grub_ieee1275_realmode): Likewise.
31002 (grub_ieee1275_flag): New enum.
31003 (grub_ieee1275_test_flag): New prototype.
31004 (grub_ieee1275_set_flag): New prototype.
31005 * include/grub/powerpc/ieee1275/init.h: Remove file.
31006 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
31007 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
31008 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
31009 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
31010 comment.
31011 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
31012 `grub_ieee1275_test_flag'.
31013 (grub_ieee1275_encode_devname): Likewise.
31014
31015 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
31016
31017 * include/grub/powerpc/ieee1275/ieee1275.h
31018 (grub_ieee1275_encode_devname): New prototype.
31019 (grub_ieee1275_get_filename): Likewise.
31020 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
31021 function.
31022 (grub_set_prefix): Likewise.
31023 (grub_machine_init): Call grub_set_prefix.
31024 * kern/powerpc/ieee1275/openfw.c: Fix typos.
31025 (grub_parse_type): New enum.
31026 (grub_ieee1275_get_devargs): New function.
31027 (grub_ieee1275_get_devname): Likewise.
31028 (grub_ieee1275_parse_args): Likewise.
31029 (grub_ieee1275_get_filename): Likewise.
31030 (grub_ieee1275_encode_devname): Likewise.
31031
31032 2005-03-30 Marco Gerards <metgerards@student.han.nl>
31033
31034 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
31035 `grub_loader_unset'.
31036
31037 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
31038
31039 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
31040 instead of grub_ieee1275_interpret.
31041 (grub_halt_init): New function.
31042 (grub_halt_fini): Likewise.
31043 (GRUB_MOD_INIT): Correct message grammar.
31044 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
31045 instead of grub_ieee1275_interpret.
31046 (grub_reboot_init): New function.
31047 (grub_reboot_fini): Likewise.
31048 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
31049 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
31050 util/i386/pc/misc.c with commands/ieee1275/halt.c,
31051 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
31052 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
31053 function.
31054 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
31055 Add prototype.
31056 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
31057 prototype.
31058 (grub_halt): Likewise.
31059 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
31060 (cmain): Remove __attribute__((unused)).
31061 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
31062 (grub_heap_len): Likewise.
31063 (grub_machine_fini): New function.
31064 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
31065 (grub_halt): Likewise.
31066 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
31067 function.
31068 * util/powerpc/ieee1275/misc.c: New file.
31069
31070 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
31071
31072 * DISTLIST: New file.
31073 * gendistlist.sh: Likewise.
31074
31075 * Makefile.in (COMMON_DISTFILES): Removed.
31076 (BOOT_DISTFILES): Likewise.
31077 (CONF_DISTFILES): Likewise.
31078 (DISK_DISTFILES): Likewise.
31079 (FS_DISTFILES): Likewise.
31080 (INCLUDE_DISTFILES): Likewise.
31081 (KERN_DISTFILES): Likewise.
31082 (LOADER_DISTFILES): Likewise.
31083 (TERM_DISTFILES): Likewise.
31084 (UTIL_DISTFILES): Likewise.
31085 (DISTFILES): Likewise.
31086 (uninstall): Uninstall files in $(pkgdata_DATA).
31087 (DISTLIST): New target.
31088 (distdir): Use the contents of the file DISTLIST to get a list of
31089 distributed files.
31090
31091 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
31092
31093 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
31094 descriptor. This is ported from GRUB Legacy.
31095
31096 * gencmdlist.sh: Added an extra semicolon to make it work with
31097 old sed versions. Reported by Robert Bihlmeyer
31098 <robbe@orcus.priv.at>.
31099
31100 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
31101
31102 Automatic loading of commands is supported.
31103
31104 * normal/main.c (read_command_list): New function.
31105 (grub_normal_execute): Call read_command_list.
31106
31107 * normal/command.c (grub_register_command): Return zero or CMD.
31108 Allocate CMD->NAME from the heap.
31109 Initialize CMD->MODULE_NAME to zero.
31110 Find the same name as well. If the same command is found and it is
31111 a dummy command, overwrite members. If it is not a dummy command,
31112 return zero.
31113 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
31114 (grub_command_find): If a dummy command is found, load a module
31115 and retry to find a command only once.
31116
31117 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
31118 make sure that each command is loaded.
31119
31120 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
31121 macro.
31122 (struct grub_command): Remove const from the member `name'.
31123 Add a new member `module_name'.
31124 (grub_register_command): Return grub_command_t.
31125
31126 * commands/help.c (grub_cmd_help): Call grub_command_find to make
31127 sure that each command is loaded.
31128
31129 * genmk.rb (PModule::rule): Specify a module name without the
31130 suffix ".mod" to gencmdlist.sh.
31131
31132 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
31133
31134 * gencmdlist.sh: New file.
31135
31136 * genmk.rb (PModule::rule): Generate a rule for a command list.
31137 Clean command.lst.
31138 Generate command.lst from $(COMMANDFILES).
31139
31140 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
31141 (DATA): Added $(pkgdata_DATA).
31142 (install-local): Install files in $(pkgdata_DATA).
31143
31144 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
31145
31146 * term/i386/pc/vga.c (debug_command): Removed.
31147 (GRUB_MOD_INIT): Do not register the command "debug".
31148
31149 From Hollis Blanchard:
31150 * commands/configfile.c: New file.
31151 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
31152 commands/configfile.c.
31153 (pkgdata_MODULES): Added configfile.mod.
31154 (configfile_mod_SOURCES): New variable.
31155 (configfile_mod_CFLAGS): Likewise.
31156 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
31157 commands/configfile.c.
31158 (pkgdata_MODULES): Added configfile.mod.
31159 (configfile_mod_SOURCES): New variable.
31160 (configfile_mod_CFLAGS): Likewise.
31161 * util/grub-emu.c (main): Call grub_configfile_init and
31162 grub_configfile_fini.
31163 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
31164 prototype.
31165 [GRUB_UTIL] (grub_configfile_fini): Likewise.
31166
31167 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
31168
31169 * normal/arg.c (grub_arg_show_help): Do not show the bug report
31170 address.
31171
31172 * commands/help.c (grub_cmd_help): Do not print newlines after
31173 the last command in print_command_help.
31174
31175 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
31176
31177 * commands/default.h: New file.
31178 * commands/timeout.h: Likewise.
31179 * normal/context.c: Likewise.
31180
31181 * util/misc.c: Do not include sys/times.h.
31182 Include sys/time.h and grub/machine/time.h.
31183 (grub_get_rtc): Rewritten with gettimeofday.
31184
31185 * util/grub-emu.c (main): Call grub_default_init and
31186 grub_timeout_init before grub_normal_init, and call
31187 grub_timeout_fini and grub_default_fini after grub_main.
31188
31189 * util/console.c (grub_ncurses_checkkey): Return the read
31190 character or -1.
31191
31192 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
31193 timeouts.
31194
31195 * normal/main.c (read_config_file): Push MENU. If this fails,
31196 print an error and wait for a user input.
31197 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
31198 If a menu is empty or an error occurs, pop MENU.
31199 (grub_normal_execute): Pop and free MENU after grub_menu_run
31200 returns.
31201
31202 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
31203
31204 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
31205 include time.h.
31206 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
31207 without GRUB_UTIL.
31208 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
31209 time.h.
31210 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
31211 without GRUB_UTIL.
31212
31213 * include/grub/normal.h (struct grub_menu_list): New struct.
31214 (grub_menu_list_t): New type.
31215 (struct grub_context): New struct.
31216 (grub_context_t): New type.
31217 (grub_register_command): Got rid of EXPORT_FUNC.
31218 (grub_unregister_command): Likewise.
31219 (grub_context_get): New prototype.
31220 (grub_context_get_current_menu): Likewise.
31221 (grub_context_push_menu): Likewise.
31222 (grub_context_pop_menu): Likewise.
31223 [GRUB_UTIL] (grub_default_init): Likewise.
31224 [GRUB_UTIL] (grub_default_fini): Likewise.
31225 [GRUB_UTIL] (grub_timeout_init): Likewise.
31226 [GRUB_UTIL] (grub_timeout_fini): Likewise.
31227
31228 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
31229 commands/timeout.c and normal/context.c.
31230 (pkgdata_MODULES): Added default.mod and timeout.mod.
31231 (normal_mod_SOURCES): Added normal/context.c.
31232 (default_mod_SOURCES): New variable.
31233 (default_mod_CFLAGS): Likewise.
31234 (timeout_mod_SOURCES): Likewise.
31235 (timeout_mod_CFLAGS): Likewise.
31236 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
31237 conf/i386-pc.rmk.
31238 (pkgdata_MODULES): Added default.mod and timeout.mod.
31239 (normal_mod_SOURCES): Added normal/context.c.
31240 (default_mod_SOURCES): New variable.
31241 (default_mod_CFLAGS): Likewise.
31242 (timeout_mod_SOURCES): Likewise.
31243 (timeout_mod_CFLAGS): Likewise.
31244
31245 * Makefile.in (all-local): Added $(MKFILES).
31246
31247 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
31248
31249 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
31250 (grub_emu_SOURCES): Likewise.
31251 (pkgdata_MODULES): Add `sun.mod'.
31252 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
31253 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31254 `partmap/sun.c'.
31255 (pkgdata_MODULES): Add `sun.mod'.
31256 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
31257 * include/grub/partition.h (grub_sun_partition_map_init): New
31258 prototype.
31259 (grub_sun_partition_map_fini): Likewise.
31260 * partmap/sun.c: New file.
31261 * util/grub-emu.c (main): Initialize and de-initialize the sun
31262 partitionmap support.
31263
31264 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
31265
31266 This implements an Emacs-like menu entry editor.
31267
31268 * normal/menu_entry.c: New file.
31269
31270 * util/console.c (grub_ncurses_putchar): Translate some Unicode
31271 characters to ASCII.
31272 (saved_char): New variable.
31273 (grub_ncurses_checkkey): Rewritten completely.
31274 (grub_ncurses_getkey): Likewise.
31275 (grub_ncurses_init): Call raw instead of cbreak.
31276
31277 * normal/menu.c (print_entry): Do not put a space.
31278 (init_page): Renamed to ...
31279 (grub_menu_init_page): ... this. All callers changed.
31280 (edit_menu_entry): Removed.
31281 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
31282
31283 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
31284
31285 * kern/misc.c (grub_vprintf): Call grub_refresh.
31286
31287 * normal/menu.c (DISP_LEFT): Renamed to ...
31288 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
31289 * normal/menu.c (DISP_UP): Renamed to ...
31290 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
31291 * normal/menu.c (DISP_RIGHT): Renamed to ...
31292 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
31293 * normal/menu.c (DISP_DOWN): Renamed to ...
31294 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
31295 * normal/menu.c (DISP_HLINE): Renamed to ...
31296 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
31297 * normal/menu.c (DISP_VLINE): Renamed to ...
31298 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
31299 * normal/menu.c (DISP_UL): Renamed to ...
31300 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
31301 * normal/menu.c (DISP_UR): Renamed to ...
31302 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
31303 * normal/menu.c (DISP_LL): Renamed to ...
31304 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
31305 * normal/menu.c (DISP_LR): Renamed to ...
31306 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
31307 * normal/menu.c (TERM_WIDTH): Renamed to ...
31308 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
31309 * normal/menu.c (TERM_HEIGHT): Renamed to ...
31310 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
31311 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
31312 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
31313 * normal/menu.c (TERM_MARGIN): Renamed to ...
31314 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
31315 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
31316 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
31317 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
31318 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
31319 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
31320 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
31321 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
31322 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
31323 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
31324 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
31325 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
31326 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
31327 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
31328 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
31329 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
31330 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
31331 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
31332 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
31333 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
31334 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
31335 All callers changed.
31336
31337 * include/grub/normal.h: New prototype.
31338
31339 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
31340 normal/menu_entry.c.
31341 (normal_mod_SOURCES): Likewise.
31342 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31343 (normal_mod_SOURCES): Likewise.
31344
31345 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
31346
31347 * include/grub/normal.h (grub_halt_init): New prototype.
31348 (grub_halt_fini): Likewise.
31349 (grub_reboot_init): Likewise.
31350 (grub_reboot_fini): Likewise.
31351
31352 * util/grub-emu.c: Include signal.h.
31353 (main_env): New global variable.
31354 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
31355 catch C-c.
31356 (grub_machine_fini): New function.
31357 (main): Call grub_halt_init and grub_reboot_init before
31358 grub_main, and grub_reboot_fini and grub_halt_fini after it.
31359 Call setjmp with MAIN_ENV to go back afterwards.
31360 Call grub_machine_fini right before return.
31361
31362 * include/grub/util/misc.h: Include setjmp.h.
31363 (main_env): New prototype.
31364
31365 * include/grub/kernel.h (grub_machine_fini): New prototype.
31366 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
31367 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
31368
31369 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
31370 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
31371 * term/i386/pc/console.c (grub_console_fini): Likewise.
31372
31373 * util/i386/pc/misc.c: New file.
31374
31375 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
31376 util/i386/pc/misc.c, commands/i386/pc/halt.c and
31377 commands/i386/pc/reboot.c.
31378
31379 2005-02-14 Guillem Jover <guillem@hadrons.org>
31380
31381 * include/grub/dl.h (grub_dl_check_header): New prototype.
31382 (grub_arch_dl_check_header): Change return type to grub_err_t,
31383 remove size parameter and export function. Update all callers.
31384 * kern/dl.c (grub_dl_check_header): New function.
31385 (grub_dl_load_core): Use `grub_dl_check_header' instead of
31386 `grub_arch_dl_check_header'. Check ELF type. Check if sections
31387 are inside the core.
31388 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
31389 independent ELF header checks.
31390 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
31391 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
31392 `grub_dl_check_header' instead of explicit checks. Check for the
31393 ELF type.
31394 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
31395 `grub_dl_check_header' instead of explicit checks. Remove arch
31396 specific ELF header checks.
31397
31398 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
31399 argument SIZE.
31400
31401 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
31402
31403 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
31404 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
31405
31406 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
31407
31408 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
31409 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
31410 (part_map_iterate): Clear `grub_errno' and return 0 if
31411 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
31412 * partmap/amiga.c (amiga_partition_map_iterate): Return
31413 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
31414 * partmap/apple.c (apple_partition_map_iterate): Likewise.
31415
31416 2005-02-01 Guillem Jover <guillem@hadrons.org>
31417
31418 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
31419 help info.
31420
31421 2005-01-31 Marco Gerards <metgerards@student.han.nl>
31422
31423 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
31424 Removed prototype.
31425 (grub_rescue_cmd_linux): New prototype.
31426 (grub_rescue_cmd_initrd): Likewise.
31427 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
31428 `bi_rec'.
31429 (grub_linux_release_mem): Release the memory for the initrd.
31430 (grub_load_linux): Renamed from this...
31431 (grub_rescue_cmd_linux): ...To this. Changed all callers.
31432 Changed `entry' not to be static. Loop over memory regions to
31433 find another one when the default fails.
31434 (grub_rescue_cmd_initrd): New function.
31435 (grub_linux_init): Remove function.
31436 (grub_linux_fini): Likewise.
31437 (GRUB_MOD_INIT): Register `initrd'.
31438 (GRUB_MOD_FINI): Unregister `initrd'.
31439 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
31440 Function removed.
31441 (grub_linux_normal_fini): Likewise.
31442 (GRUB_MOD_INIT): Register `initrd'.
31443 (GRUB_MOD_FINI): Unregister `initrd'.
31444
31445 2005-01-31 Marco Gerards <metgerards@student.han.nl>
31446
31447 * commands/help.c: New file.
31448 * normal/arg.c (show_help): Renamed to...
31449 (grub_arg_show_help): ... this.
31450 * commands/i386/pc/halt.c: New file.
31451 * commands/i386/pc/reboot.c: Likewise.
31452 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
31453 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
31454 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
31455 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
31456 variables.
31457 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31458 `commands/help.c'.
31459 (pkgdata_MODULES): Add `help.mod'.
31460 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
31461 * grub/i386/pc/init.h (grub_reboot): New prototype.
31462 (grub_halt): Likewise.
31463 * include/grub/normal.h (grub_arg_show_help): New prototype.
31464 (grub_help_init): Likewise.
31465 (grub_help_fini): Likewise.
31466 * util/grub-emu.c (main): Initialize and deinitialize the help
31467 command.
31468
31469 * normal/cmdline.c (grub_cmdline_get): Doc fix.
31470
31471 * normal/command.c (grub_command_init): Fixed the description of
31472 the `set' and `unset' commands.
31473
31474 2005-01-31 Marco Gerards <metgerards@student.han.nl>
31475
31476 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
31477 function.
31478 * commands/ieee1275/halt.c: New file.
31479 * commands/ieee1275/reboot.c: Likewise.
31480 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
31481 `__attribute__ ((unused))'. Some GCS related fixed.
31482 (grub_suspend_init) [GRUB_UTIL]: Function removed.
31483 (grub_suspend_fini): Likewise.
31484 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
31485 and `halt.mod'.
31486 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
31487 (halt_mod_CFLAGS): New variables.
31488 * include/grub/powerpc/ieee1275/ieee1275.h
31489 (grub_ieee1275_interpret): New prototype.
31490
31491 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
31492
31493 * include/grub/misc.h (memmove): New prototype.
31494 (memcpy): Likewise.
31495
31496 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
31497
31498 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
31499 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
31500
31501 2005-01-22 Marco Gerards <metgerards@student.han.nl>
31502
31503 * kern/misc.c (grub_strndup): Function rewritten.
31504
31505 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
31506
31507 * normal/menu.c (TERM_WIDTH): Macro redefined.
31508 (TERM_TOP_BORDER_Y): Likewise.
31509 (draw_border): Replaced while-loop by a for-loop. Make the number
31510 of lines consistent with the number of lines displayed in
31511 print_entries. Added a margin below the rectangle.
31512 (print_entry): Make the entry fit in the rectangle.
31513 (print_entries): Display the scroll arrows next to the right
31514 border.
31515
31516 2005-01-21 Marco Gerards <metgerards@student.han.nl>
31517
31518 * fs/minix.c (grub_minix_find_file): Reserve more space for
31519 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
31520 `grub_strncpy' to copy `path' into it.
31521
31522 2005-01-21 Marco Gerards <metgerards@student.han.nl>
31523
31524 Add the loopback device, a device via which files can be accessed
31525 as devices.
31526
31527 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
31528 (pkgdata_MODULES): Add loopback.mod.
31529 (loopback_mod_SOURCES): New variable.
31530 (loopback_mod_CFLAGS): Likewise.
31531 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31532 `disk/loopback.c'.
31533 (pkgdata_MODULES): Add loopback.mod.
31534 (loopback_mod_SOURCES): New variable.
31535 (loopback_mod_CFLAGS): Likewise.
31536 * disk/loopback.c: new file.
31537 * include/grub/normal.h (grub_loop_init): New prototype.
31538 (grub_loop_fini): New prototype.
31539 * util/grub-emu.c (main): Initialize and de-initialize loopback
31540 support.
31541 * include/grub/disk.h (grub_disk_dev_id): Add
31542 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
31543
31544 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
31545
31546 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
31547 function.
31548 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
31549 (suspend_mod_SOURCES): New variable.
31550 (suspend_mod_CFLAGS): Likewise.
31551 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
31552 New prototype.
31553 * commands/ieee1275/suspend.c: New file.
31554
31555 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
31556
31557 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
31558 ((unused))' to `__attribute__ ((used))'.
31559 (GRUB_MOD_FINI): Likewise.
31560 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
31561 * genmk.rb (PModule): Assign space to common symbols when linking
31562 modules.
31563
31564 2005-01-20 Marco Gerards <metgerards@student.han.nl>
31565
31566 * include/grub/mm.h (grub_mm_init_region): Change the type of the
31567 `unsigned' arguments to `grub_size_t'.
31568 (grub_malloc): Likewise.
31569 (grub_realloc): Likewise.
31570 (grub_memalign): Likewise.
31571 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
31572 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
31573 * util/misc.c (grub_malloc): Likewise.
31574 (grub_realloc): Likewise.
31575 * kern/mm.c (get_header_from_pointer): Change the casts to
31576 `unsigned' into a cast to `grub_size_t'.
31577
31578 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
31579 point to `currnode' when `currnode' is changed.
31580
31581 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
31582 Schottelius <nico-linux@schottelius.org>.
31583
31584 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
31585
31586 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
31587 (note_path): Remove variable.
31588 (GRUB_IEEE1275_NOTE_NAME): New macro.
31589 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
31590 (grub_ieee1275_note_hdr): New structure.
31591 (grub_ieee1275_note_desc): Likewise.
31592 (grub_ieee1275_note): Likewise.
31593 (load_note): Remove `dir' argument. All callers updated. Remove
31594 `note_img' and `path'. Do not load a file from `note_path'.
31595 Initialize a struct grub_ieee1275_note and write that to `out'.
31596 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
31597
31598 2005-01-05 Marco Gerards <metgerards@student.han.nl>
31599
31600 * util/misc.c (grub_util_read_image): Revert last change. It
31601 called `grub_util_read_at', which seeks from the beginning of the
31602 file.
31603
31604 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
31605
31606 * TODO: Add note about endianness in grub-mkimage.
31607 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
31608 section.
31609 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
31610 (grub_mkimage_SOURCES): New target.
31611 * include/grub/kernel.h (grub_start_addr): Remove variable.
31612 (grub_end_addr): Likewise.
31613 (grub_total_module_size): Likewise.
31614 (grub_kernel_image_size): Likewise.
31615 (GRUB_MODULE_MAGIC): New constant.
31616 (grub_module_info): New structure.
31617 (grub_arch_modules_addr): New prototype.
31618 (grub_get_end_addr): Remove prototype.
31619 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
31620 * include/grub/powerpc/ieee1275/kernel.h: New file.
31621 * include/grub/util/misc.h (grub_util_get_fp_size): New
31622 prototype.
31623 (grub_util_read_at): Likewise.
31624 (grub_util_write_image_at): Likewise.
31625 * kern/main.c (grub_get_end_addr): Remove function.
31626 (grub_load_modules): Call grub_arch_modules_addr instead of using
31627 grub_end_addr. Look for a grub_module_info struct in memory. Use
31628 the grub_module_info fields instead of calling grub_get_end_addr
31629 as loop conditions. Move grub_add_unused_region code here.
31630 (grub_add_unused_region): Remove function.
31631 * kern/i386/pc/init.c: Include grub/cache.h.
31632 (grub_machine_init): Remove call to grub_get_end_addr. Remove
31633 one call to add_mem_region.
31634 (grub_arch_modules_addr): New function.
31635 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
31636 (grub_total_module_size): Likewise.
31637 Include grub/machine/kernel.h.
31638 (grub_arch_modules_addr): New function.
31639 * util/grub-emu.c (grub_end_addr): Remove variable.
31640 (grub_total_module_size): Likewise.
31641 (grub_arch_modules_addr): New function.
31642 * util/misc.c: Include unistd.h.
31643 (grub_util_get_fp_size): New function.
31644 (grub_util_read_at): Likewise.
31645 (grub_util_write_image_at): Likewise.
31646 (grub_util_read_image): Call grub_util_read_at.
31647 (grub_util_write_image): Call grub_util_write_image_at.
31648 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
31649 additional memory in kernel_img for a struct grub_module_info.
31650 Fill in that grub_module_info.
31651 * util/powerpc/ieee1275/grub-mkimage.c: New file.
31652
31653 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
31654
31655 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
31656 New function.
31657 * include/grub/powerpc/ieee1275/ieee1275.h
31658 (grub_ieee1275_milliseconds): New prototype.
31659 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
31660 Change to 1000.
31661 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
31662 grub_ieee1275_milliseconds.
31663
31664 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
31665
31666 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
31667 variable.
31668 (find_options): New function.
31669 (cmain): Call find_options.
31670 * include/grub/powerpc/ieee1275/ieee1275.h
31671 (grub_ieee1275_realmode): New extern variable.
31672 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
31673 grub_map if grub_ieee1275_realmode is false.
31674
31675 2004-12-29 Marco Gerards <metgerards@student.han.nl>
31676
31677 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
31678 lines are inserted and make it work like readline. Reported by
31679 Vincent Pelletier <subdino2004@yahoo.fr>.
31680
31681 2004-12-28 Marco Gerards <metgerards@student.han.nl>
31682
31683 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
31684
31685 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
31686 `kern/powerpc/cache.S'.
31687
31688 2004-12-27 Marco Gerards <metgerards@student.han.nl>
31689
31690 * genmk.rb: Handle the `Program' class in the main loop. Written
31691 by Johan Rydberg <jrydberg@gnu.org>.
31692 (Program): New class.
31693 (programs): New variable.
31694 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
31695 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
31696 instead of "grub/kernel.h". Include <grub/machine/init.h>.
31697 (help_arch): Function removed.
31698 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
31699 `powerpc/libgcc.h' and `loader.h'.
31700 (pkgdata_PROGRAMS): New variable.
31701 (sbin_UTILITIES): Variable removed.
31702 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
31703 (grubof_SOURCES): Variable re-defined so it only includes the
31704 core functionality.
31705 (grubof_CFLAGS): Remove `-DGRUBOF'.
31706 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
31707 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
31708 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
31709 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
31710 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
31711 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
31712 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
31713 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
31714 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
31715 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
31716 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
31717 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
31718 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
31719 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
31720 (pc_mod_CFLAGS): New variables.
31721 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
31722 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
31723 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
31724 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
31725 Moved from here...
31726 * include/grub/i386/pc/init.h (grub_os_area_addr)
31727 (rub_os_area_size): ... to here.
31728 * include/grub/powerpc/ieee1275/ieee1275.h
31729 (grub_ieee1275_entry_fn): Export symbol.
31730 * include/grub/powerpc/ieee1275/init.h: New file.
31731 * include/grub/powerpc/libgcc.h: Likewise.
31732 * include/grub/cache.h: Likewise.
31733 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
31734 <hollis@penguinppc.org>.
31735 * kern/dl.c: Include <grub/cache.h>.
31736 (grub_dl_flush_cache): New function.
31737 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
31738 for this module.
31739 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
31740 (grub_console_init): Removed prototypes.
31741 (grub_machine_init): Don't initialize the modules anymore.
31742 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
31743 static.
31744 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
31745 Macro undef removed.
31746 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
31747 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
31748 relocation `R_PPC_REL32'. Return an error when the relocation is
31749 unknown.
31750 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
31751 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
31752 * util/misc.c (grub_arch_sync_caches): Likewise.
31753
31754 2004-12-19 Marco Gerards <metgerards@student.han.nl>
31755
31756 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
31757 `symlist.c', add `grubof_symlist.c'.
31758 (symlist.c): Variable removed.
31759 (grubof_HEADERS): Variable added.
31760 (grubof_symlist.c): New target.
31761 (kernel_syms.lst): Use `grubof_HEADERS' instead of
31762 `kernel_img_HEADERS'.
31763 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
31764 * kern/powerpc/dl.c: New file.
31765 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
31766 Function removed.
31767 (grub_arch_dl_relocate_symbols): Likewise.
31768 (grub_register_exported_symbols): Likewise.
31769
31770 2004-12-13 Marco Gerards <metgerards@student.han.nl>
31771
31772 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
31773 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
31774 to fail instead. Reported by Vincent Pelletier
31775 <subdino2004@yahoo.fr>.
31776
31777 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
31778 it is not allocated. Reported by Vincent Pelletier
31779 <subdino2004@yahoo.fr>.
31780
31781 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
31782 output so the output looks better.
31783
31784 2004-12-04 Marco Gerards <metgerards@student.han.nl>
31785
31786 Modulize the partition map support and add support for the amiga
31787 partition map.
31788
31789 * commands/ls.c: Include <grub/partition.h> instead of
31790 <grub/machine/partition.h>.
31791 * kern/disk.c: Likewise.
31792 * kern/rescue.c: Likewise.
31793 * loader/i386/pc/chainloader.c: Likewise.
31794 * normal/cmdline.c: Likewise.
31795 * kern/powerpc/ieee1275/init.c: Likewise.
31796 (grub_machine_init): Call `grub_pc_partition_map_init',
31797 `grub_amiga_partition_map_init' and
31798 `grub_apple_partition_map_init'.
31799 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
31800 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
31801 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
31802 `partition.h' and `pc_partition.h'.
31803 (grub_setup_SOURCES): Remove
31804 `disk/i386/pc/partition.c'. Add `kern/partition.c',
31805 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
31806 (grub_emu_SOURCES): Likewise.
31807 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
31808 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
31809 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
31810 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
31811 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
31812 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
31813 (grubof_SOURCES): Likewise.
31814 * disk/i386/pc/partition.c: File removed.
31815 * disk/powerpc/ieee1275/partition.c: Likewise.
31816 * include/grub/powerpc/ieee1275/partition.h: Likewise.
31817 * include/grub/i386/pc/partition.h: Likewise.
31818 * kern/partition.c: New file.
31819 * partmap/amiga.c: Likewise.
31820 * partmap/apple.c: Likewise.
31821 * partmap/pc.c: Likewise.
31822 * include/grub/partition.h: Likewise..
31823 * include/grub/pc_partition.h: Likewise.
31824 * util/grub-emu.c: Include <grub/partition.h> instead of
31825 <grub/machine/partition.h>.
31826 (main): Call `grub_pc_partition_map_init',
31827 `grub_amiga_partition_map_init' and
31828 `grub_apple_partition_map_init' and deinitialize afterwards.
31829 * util/i386/pc/biosdisk.c: Include `#include
31830 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
31831 `<grub/machine/partition.h>'.
31832 * util/i386/pc/grub-setup.c: Likewise.
31833 * util/i386/pc/biosdisk.c: Likewise.
31834 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
31835 partition information in case of a PC partition.
31836 * util/i386/pc/grub-setup.c: Include `#include
31837 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
31838 `<grub/machine/partition.h>'.
31839 (setup): Only access the PC specific partition information in case
31840 of a PC partition.
31841
31842 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
31843
31844 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
31845 (grub_longjmp): Likewise.
31846 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
31847 20.
31848 * normal/powerpc/setjmp.S: New file.
31849 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
31850 `normal/powerpc/setjmp.S'.
31851 (grubof_CFLAGS): Add `-DGRUBOF'.
31852 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
31853 [GRUB_UTIL && !GRUBOF].
31854
31855 2004-11-16 Marco Gerards <metgerards@student.han.nl>
31856
31857 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
31858 property named `name'. Correctly handle the error returned by
31859 `grub_ieee1275_finddevice' if a device can not be opened.
31860
31861 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
31862
31863 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
31864 `actual' for negativity.
31865 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
31866 kern/fshelp.c.
31867
31868 2004-11-01 Marco Gerards <metgerards@student.han.nl>
31869
31870 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
31871 (PAGE_OFFSET): New macro.
31872 (CRTC_ADDR_PORT): Likewise.
31873 (CRTC_DATA_PORT): Likewise.
31874 (START_ADDR_HIGH_REGISTER): Likewise.
31875 (START_ADDR_LOW_REGISTER): Likewise.
31876 (GRAPHICS_ADDR_PORT): Likewise.
31877 (GRAPHICS_DATA_PORT): Likewise.
31878 (READ_MAP_REGISTER): Likewise.
31879 (INPUT_STATUS1_REGISTER): Likewise.
31880 (INPUT_STATUS1_VERTR_BIT): Likewise.
31881 (page): New variable.
31882 (wait_vretrace): New function.
31883 (set_read_map): Likewise.
31884 (set_start_address): Likewise.
31885 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
31886 the right page.
31887 (check_vga_mem): Take the page into account.
31888 (write_char): Likewise.
31889 (write_cursor): Likewise.
31890 (scroll_up): Likewise. Copy the page to the page that is not
31891 shown and switch between both pages.
31892 (grub_vga_putchar): Fix off by one error.
31893 (grub_vga_cls): Wait for the vertical retrace. Take the page into
31894 account.
31895
31896 2004-11-01 Marco Gerards <metgerards@student.han.nl>
31897
31898 Add support for iso9660 (including rockridge).
31899
31900 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
31901 (iso9660_mod_SOURCES): New variable.
31902 (iso9660_mod_CFLAGS): Likewise.
31903 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
31904 * include/grub/fs.h (grub_iso9660_init): New prototype.
31905 * util/grub-emu.c (main): Call `grub_iso9660_init'.
31906 * fs/iso9660.c: New file.
31907
31908 * include/grub/misc.h (grub_strncat): New prototype.
31909 * kern/misc.c (grub_strncat): New function.
31910
31911 * fs/hfs.c (grub_hfs_mount): Translate the error
31912 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
31913 * fs/jfs.c (grub_jfs_mount): Likewise.
31914 * fs/ufs.c (grub_ufs_mount): Likewise.
31915
31916 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
31917
31918 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
31919 which initialized BAT registers.
31920 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
31921 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
31922 Move from here...
31923 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
31924 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
31925 ... to here.
31926 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
31927 (grub_mapclaim): Likewise.
31928 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
31929 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
31930 hand.
31931
31932 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
31933
31934 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
31935 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
31936 -ffreestanding and -msoft-float.
31937
31938 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
31939
31940 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
31941 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
31942 set in grub_ieee1275_flags.
31943
31944 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
31945
31946 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
31947 prototype.
31948 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
31949 grub_console_init first.
31950 Change the memory range used for grub_ieee1275_claim and
31951 grub_mm_init_region.
31952 Print an error message if the claim fails.
31953 Include <grub/misc.h>.
31954
31955 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
31956
31957 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
31958 Call grub_children_iterate for device nodes of type `scsi',
31959 `ide', or `ata'.
31960 (grub_ofdisk_open): Remove manual device alias resolution.
31961 Fix memory leak when device cannot be opened.
31962 * include/grub/powerpc/ieee1275/ieee1275.h
31963 (grub_children_iterate): New prototype.
31964 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
31965 New function.
31966 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
31967 Return -1 if args.size was -1.
31968
31969 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
31970
31971 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
31972 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
31973 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
31974 Open Firmware's memory for it; claim memory from _start to _end.
31975 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
31976 (_end): New extern.
31977 (_start): Zero BSS from __bss_start to _end.
31978 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
31979 New extern.
31980 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
31981
31982 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
31983
31984 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
31985 -1 if args.base was -1.
31986
31987 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
31988
31989 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
31990 escape sequence instead of a literal ^L. Also call
31991 grub_ofconsole_gotoxy.
31992
31993 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
31994
31995 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
31996 void * arguments to grub_addr_t. All callers updated. Also make
31997 the `result' argument optional.
31998 (grub_ieee1275_release): change void * arguments to grub_addr_t.
31999 All callers updated.
32000
32001 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
32002
32003 * commands/ls.c (grub_ls_list_files): Use the string following the
32004 initial ')', if present, as the filesystem path.
32005 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
32006
32007 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
32008
32009 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
32010
32011 Make the source code of the menu interface more readable.
32012
32013 * normal/menu.c: Include grub/mm.h.
32014 (TERM_WIDTH): New macro.
32015 (TERM_HEIGHT): Likewise.
32016 (TERM_INFO_HEIGHT): Likewise.
32017 (TERM_MARGIN): Likewise.
32018 (TERM_SCROLL_WIDTH): Likewise.
32019 (TERM_TOP_BORDER_Y): Likewise.
32020 (TERM_LEFT_BORDER_X): Likewise.
32021 (TERM_BORDER_WIDTH): Likewise.
32022 (TERM_MESSAGE_HEIGHT): Likewise.
32023 (TERM_BORDER_HEIGHT): Likewise.
32024 (TERM_NUM_ENTRIES): Likewise.
32025 (TERM_FIRST_ENTRY_Y): Likewise.
32026 (TERM_ENTRY_WIDTH): Likewise.
32027 (TERM_CURSOR_X): Likewise.
32028 (draw_border): Use macros instead of magic numbers.
32029 (print_entry): Likewise.
32030 (print_entries): Likewise.
32031 (run_menu): Likewise. Also, handle the key 'e'.
32032 (run_menu_entry): Ignore empty command lines.
32033 (print_message): Added a new argument EDIT. If EDIT is true,
32034 print a different message.
32035 (init_page): Likewise.
32036 (edit_menu_entry): New function. Not implemented yet.
32037
32038 2004-09-17 Marco Gerards <metgerards@student.han.nl>
32039
32040 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
32041 can be loaded from normal mode.
32042
32043 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
32044 `multiboot.mod'.
32045 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
32046 (multiboot_mod_CFLAGS): New variables.
32047 * loader/i386/pc/linux_normal.c: New file.
32048 * loader/i386/pc/multiboot_normal.c: Likewise.
32049
32050 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
32051 attribute `unused'.
32052
32053 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
32054 `fdiro' to read the mode information from instead of `diro'.
32055
32056 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
32057 looking up a symlink.
32058
32059 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
32060 macro.
32061 * normal/command.c (grub_command_execute): Don't parse the
32062 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
32063 flags of the command.
32064
32065 * normal/menu.c (grub_menu_run): Fix typo.
32066
32067 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
32068
32069 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
32070
32071 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
32072 `y + 1' instead of `y - 1'.
32073
32074 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
32075
32076 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
32077
32078 From Hollis Blanchard <hollis@penguinppc.org>:
32079 * kern/misc.c (memmove): New alias for grub_memmove.
32080 (memcmp): New alias for grub_memcmp.
32081 (memset): New alias for grub_memset.
32082 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
32083 Change "int handle" to "grub_ieee1275_phandle_t handle".
32084 * include/grub/powerpc/ieee1275/ieee1275.h
32085 (grub_ieee1275_get_property): Likewise.
32086
32087 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
32088
32089 Added normal mode command `chainloader' as module chain.mod, which
32090 depends on normal.mod and _chain.mod.
32091
32092 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
32093 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
32094 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
32095 Deleted prototype.
32096 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
32097 but arguments parsing moved to ...
32098 (grub_chainloader_cmd): ... here. New function.
32099 * include/grub/i386/pc/chainloader.h: New file.
32100 * loader/i386/pc/chainloader_normal.c: Likewise.
32101
32102 2004-09-11 Marco Gerards <metgerards@student.han.nl>
32103
32104 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
32105 (grub_mkimage_LDFLAGS): Likewise.
32106 (grub_emu_SOURCES): Likewise.
32107 (kernel_img_HEADERS): Added fshelp.h.
32108 * fs/ext2.c: Include <grub/fshelp.h>.
32109 (FILETYPE_REG): New macro.
32110 (FILETYPE_INO_REG): Likewise.
32111 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
32112 Changed all users.
32113 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
32114 all users.
32115 (grub_fshelp_node): New struct.
32116 (grub_ext2_data): Added member `diropen'. Changed member `inode'
32117 to a pointer.
32118 (grub_ext2_get_file_block): Removed function.
32119 (grub_ext2_read_block): New function.
32120 (grub_ext2_read_file): Replaced parameter `data' by `node'.
32121 This function was written.
32122 (grub_ext2_mount): Read the root inode. Create a diropen struct.
32123 (grub_ext2_find_file): Removed function.
32124 (grub_ext2_read_symlink): New function.
32125 (grub_ext2_iterate_dir): Likewise.
32126 (grub_ext2_open): Rewritten.
32127 (grub_ext2_dir): Rewritten.
32128 * include/grub/fshelp.h: New file.
32129 * fs/fshelp.c: Likewise.
32130
32131 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
32132
32133 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
32134 (print_message): Add a missing newline.
32135 (run_menu): Added timeout support.
32136 (run_menu_entry): New local function.
32137 (grub_menu_run): Added support for booting.
32138
32139 * kern/loader.c (grub_loader_is_loaded): New function.
32140
32141 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
32142 (grub_get_rtc): Exported.
32143
32144 * include/grub/i386/pc/time.h: Include grub/symbol.h.
32145 (grub_get_rtc): Exported.
32146
32147 * include/grub/normal.h (struct grub_command_list): Remove
32148 constant from the member `command'.
32149
32150 * include/grub/loader.h (grub_loader_is_loaded): Declared.
32151
32152 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
32153
32154 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
32155
32156 2004-08-28 Marco Gerards <metgerards@student.han.nl>
32157
32158 Add support for the JFS filesystem.
32159
32160 * fs/jfs.c: New file.
32161 * include/grub/fs.h (grub_jfs_init): New prototype.
32162 (grub_jfs_fini): New prototype.
32163 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
32164 (grub_emu_SOURCES): Likewise.
32165 (pkgdata_MODULES): Add jfs.mod.
32166 (jfs_mod_SOURCES): New variable.
32167 (jfs_mod_CFLAGS): Likewise.
32168 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
32169 (grubof_SOURCES): Likewise.
32170 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
32171
32172 * fs/fat.c (grub_fat_find_dir): Convert the filename little
32173 endian to the host endian.
32174 (grub_fat_utf16_to_utf8): Move function from there...
32175 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
32176 the endianness of the source string anymore.
32177 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
32178
32179 2004-08-24 Marco Gerards <metgerards@student.han.nl>
32180
32181 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
32182 (grub_boot_fini) [GRUB_UTIL]: Likewise.
32183 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
32184 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
32185
32186 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
32187 (grub_hfs_iterate_dir): Make the function static. Add prototypes
32188 for `node_found' and `it_dir'.
32189 (grub_hfs_dir): Add prototype for `dir_hook'.
32190
32191 * fs/minix.c (grub_minix_get_file_block): Add prototype for
32192 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
32193 and `indir32' to silence a gcc warning.
32194
32195 * include/grub/fs.h (grub_hfs_init): New prototype.
32196 (grub_hfs_fini): Likewise.
32197
32198
32199 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
32200
32201 Each disk device has its own id now. This is useful to make use
32202 of multiple disk devices.
32203
32204 * include/grub/disk.h (grub_disk_dev_id): New enum.
32205 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
32206 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
32207
32208 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
32209 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
32210
32211 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
32212 GRUB_DISK_DEVICE_OFDISK_ID as an id.
32213
32214 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
32215 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
32216
32217 * include/grub/disk.h (struct grub_disk_dev): Added a new member
32218 "id" which is used by the cache manager.
32219
32220 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
32221 of just "GRUB".
32222
32223 2004-08-18 Marco Gerards <metgerards@student.han.nl>
32224
32225 * fs/hfs.c: New file.
32226 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
32227 (grub_emu_SOURCES): Likewise.
32228 (pkgdata_MODULES): Add hfs.mod.
32229 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
32230 (grubof_SOURCES): Likewise.
32231 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
32232
32233 * include/grub/misc.h (grub_strncasecmp): Add prototype.
32234 * kern/misc.c (grub_strncasecmp): Add function.
32235
32236 2004-08-14 Marco Gerards <metgerards@student.han.nl>
32237
32238 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
32239 with parentheses.
32240
32241 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
32242 (grub_ext2_dir): In case the directory entry type is unknown, read
32243 it from the inode.
32244
32245 2004-08-02 Peter Bruin <pjbruin@dds.nl>
32246
32247 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
32248 grub_load_linux instead of grub_rescue_cmd_linux as second
32249 argument of grub_rescue_register_command.
32250
32251 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
32252
32253 2004-07-27 Marco Gerards <metgerards@student.han.nl>
32254
32255 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
32256 function.
32257 * commands/boot.c: Remove the check for `GRUB_UTIL'.
32258 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
32259 `loader/powerpc/ieee1275/linux.c',
32260 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
32261 * include/grub/powerpc/ieee1275/ieee1275.h
32262 (grub_ieee1275_release): New prototype.
32263 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
32264 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
32265 normal, boot, linux and linux_normal.
32266 * loader/powerpc/ieee1275/linux.c: New file.
32267 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
32268
32269 2004-07-12 Marco Gerards <metgerards@student.han.nl>
32270
32271 * normal/arg.c (grub_arg_parse): Correct error handling after
32272 reallocating the argumentlist (check if `argl' is not null instead
32273 of checking if `args' is not null).
32274 * kern/mm.c (grub_realloc): Return the same pointer when using the
32275 same region, instead of returning the header address.
32276
32277 2004-07-11 Marco Gerards <metgerards@student.han.nl>
32278
32279 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
32280 one block instead of two when looking for the initial partition.
32281 (grub_partition_probe): Initialize the local variable `p' with 0.
32282 Use base 10 for the grub_strtoul call.
32283 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
32284 need for one local variable.
32285 (grub_strtoul): Don't add the new value to `num', instead of that
32286 just assign it.
32287
32288 2004-07-11 Marco Gerards <metgerards@student.han.nl>
32289
32290 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
32291 (pxeboot_img_SOURCES): New variable.
32292 (pxeboot_img_ASFLAGS): Likewise.
32293 (pxeboot_img_LDFLAGS): Likewise.
32294 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
32295 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
32296 <lode_leroy@hotmail.com>.
32297
32298 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
32299
32300 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
32301 there was no input.
32302
32303 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
32304
32305 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
32306 the history buffer logic.
32307
32308 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
32309
32310 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
32311 (FILETYPE_INO_SYMLINK): New macros.
32312 (grub_ext2_find_file): Check if the node is a directory using the
32313 inode stat information instead of using the filetype in the
32314 dirent. Exclude the first character of an absolute symlink.
32315 (grub_ext2_dir): Mask out the filetype part of the mode member of
32316 the inode.
32317
32318 2004-05-24 Marco Gerards <metgerards@student.han.nl>
32319
32320 Add support for UFS version 1 and 2. Add support for the minix
32321 filesystem version 1 and 2, both the variants with 14 and 30 long
32322 filenames.
32323
32324 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
32325 fs/minix.c.
32326 (grub_emu_SOURCES): Likewise.
32327 (pkgdata_MODULES): Add ufs.mod and minix.mod.
32328 (ufs_mod_SOURCES): New variable.
32329 (ufs_mod_CFLAGS): Likewise.
32330 (minix_mod_SOURCES): Likewise.
32331 (minix_mod_CFLAGS): Likewise.
32332 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
32333 fs/minix.c.
32334 (grubof_SOURCES): Likewise.
32335 * fs/ufs.c: New file.
32336 * fs/minix.c: New file.
32337 * include/grub/fs.h (grub_ufs_init): New prototype.
32338 (grub_ufs_fini): Likewise.
32339 (grub_minix_init): Likewise.
32340 (grub_minix_fini): Likewise.
32341 * util/grub-emu.c (main): Initialize and deinitialize UFS and
32342 minix fs.
32343
32344 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
32345
32346 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
32347 commands/ls.c, commands/terminal.c, commands/boot.c,
32348 commands/cmp.c and commands/cat.c.
32349 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
32350
32351 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
32352 "env.h"
32353
32354 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32355
32356 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
32357 and grub_, respectively. Because the conversion is trivial and
32358 mechanical, I omit the details here. Please refer to the CVS
32359 if you need more information.
32360
32361 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32362
32363 * include/pupa: Renamed to ...
32364 * include/grub: ... this.
32365 * util/i386/pc/pupa-mkimage.c: Renamed to ...
32366 * util/i386/pc/grub-mkimage.c: ... this.
32367 * util/i386/pc/pupa-setup.c: Renamed to ...
32368 * util/i386/pc/grub-setup.c: ... this.
32369 * util/pupa-emu.c: Renamed to ...
32370 * util/grub-emu.c: ... this.
32371
32372 2004-03-29 Marco Gerards <metgerards@student.han.nl>
32373
32374 Add support for the newworld apple macintosh (PPC). This has been
32375 tested on the powerbook 2000 only. It only adds support for
32376 generic ieee1275 functions, console and disk support. This should
32377 be easy to port to other architectures with support for Open
32378 Firmware.
32379
32380 * configure.ac: Accept the powerpc as host_cpu. In the case of
32381 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
32382 specific tests are only executed while building for the i386.
32383 Inverse test for crosscompile.
32384 * genmk.rb (Utility): Allow assembler files.
32385 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
32386 * conf/powerpc-ieee1275.rmk: New file.
32387 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
32388 * disk/powerpc/ieee1275/partition.c: Likewise.
32389 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
32390 * include/pupa/powerpc/ieee1275/console.h: Likewise.
32391 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
32392 * include/pupa/powerpc/ieee1275/time.h: Likewise.
32393 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
32394 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
32395 * include/pupa/powerpc/ieee1275/loader.h
32396 * include/pupa/powerpc/setjmp.h: Likewise.
32397 * include/pupa/powerpc/types.h: Likewise.
32398 * kern/powerpc/ieee1275/init.c: Likewise.
32399 * kern/powerpc/ieee1275/openfw.c: Likewise.
32400 * term/powerpc/ieee1275/ofconsole.c: Likewise.
32401
32402 These files were written by Johan Rydberg
32403 (jrydberg@night.trouble.net) and I only modified them slightly.
32404
32405 * boot/powerpc/ieee1275/cmain.c: New file.
32406 * boot/powerpc/ieee1275/crt0.S: Likewise.
32407 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
32408 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
32409
32410 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
32411
32412 * Makefile.in: Update copyright.
32413 * genmodsrc.sh: Likewise.
32414 * gensymlist.sh: Likewise.
32415 * term/i386/pc/vga.c: Indent correctly.
32416
32417 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
32418 bugreporting address.
32419 * util/i386/pc/pupa-setup.c (usage): Likewise,
32420 (main): Call pupa_ext2_init and pupa_ext2_fini.
32421
32422 * fs/fat.c (log2): Renamed to ...
32423 (fat_log2): ... this.
32424 All callers changed.
32425 * kern/misc.c (memcpy): Alias to pupa_memmove.
32426 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
32427 lvalue cast.
32428 * util/console.c (pupa_ncurses_fini): Return 0.
32429
32430 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
32431 Move fail label here.
32432 [__GNU__]: Don't warn when using stat.
32433 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
32434 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
32435 long int. Use strtol instead of strtoul.
32436
32437 2004-03-14 Marco Gerards <metgerards@student.han.nl>
32438
32439 * commands/boot.c: New file.
32440 * commands/cat.c: Likewise.
32441 * commands/cmp.c: Likewise.
32442 * commands/ls.c: Likewise.
32443 * commands/terminal.c: Likewise.
32444 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
32445 (pupa_register_command): Changed interface to match the new
32446 argument parser.
32447 (pupa_command_execute): Changed (almost rewritten) so it uses
32448 pupa_split_command. Added support for setting variables using the
32449 syntax `foo=bar'.
32450 (rescue_command): Changed to work with the new argument parser.
32451 (terminal_command): Moved from here to commands/terminal.c.
32452 (set_command): New function.
32453 (unset_command): New function.
32454 (insmod_command): New function.
32455 (rmmod_command): New function.
32456 (lsmod_command): New function.
32457 (pupa_command_init): Don't initialize the command terminal
32458 anymore. Initialize the commands set, unset, insmod, rmmod and
32459 lsmod.
32460 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
32461 (kernel_img_HEADERS): Add arg.h and env.h.
32462 (pupa_mkimage_LDFLAGS): Add kern/env.c.
32463 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
32464 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
32465 normal/arg.c.
32466 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
32467 terminal.mod.
32468 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
32469 (boot_mod_SOURCES): New variable.
32470 (terminal_mod_SOURCES): Likewise.
32471 (ls_mod_SOURCES): Likewise.
32472 (cmp_mod_SOURCES): Likewise.
32473 (cat_mod_SOURCES): Likewise.
32474
32475 * normal/arg.c: New file.
32476 * kern/env.c: Likewise.
32477 * include/pupa/arg.h: Likewise.
32478 * include/pupa/env.h: Likewise.
32479 * font/manager.c (font_command): Changed to match argument parsing
32480 interface changes.
32481 (PUPA_MOD_INIT): Likewise.
32482 * hello/hello.c (pupa_cmd_hello): Likewise.
32483 (PUPA_MOD_INIT): Likewise.
32484 * include/pupa/disk.h: Include <pupa/device.h>.
32485 (pupa_print_partinfo): New prototype.
32486 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
32487 (pupa_dl_get_prefix): Likewise.
32488 * include/pupa/misc.h: Include <pupa/err.h>.
32489 (pupa_isgraph): New prototype.
32490 (pupa_isdigit): Likewise.
32491 (pupa_split_cmdline): Likewise.
32492 * include/pupa/normal.h: Include <pupa/arg.h>.
32493 (pupa_command): Changed the prototype of the member `func' to
32494 match the argument parsing interface. Added member `options'.
32495 (pupa_register_command): Updated to match function.
32496 (pupa_arg_parse): New prototype.
32497 (pupa_hello_init) [PUPA_UTIL]: New prototype.
32498 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
32499 (pupa_ls_init) [PUPA_UTIL]: Likewise.
32500 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
32501 (pupa_cat_init) [PUPA_UTIL]: Likewise.
32502 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
32503 (pupa_boot_init) [PUPA_UTIL]: Likewise.
32504 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
32505 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
32506 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
32507 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
32508 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
32509 * kern/disk.c: Include <pupa/file.h>.
32510 (pupa_print_partinfo): New function.
32511 * kern/dl.c: Include <pupa/env.h>.
32512 (pupa_dl_dir): Variable removed.
32513 (pupa_dl_load): Use the environment variable `prefix' instead of
32514 the variable pupa_dl_dir.
32515 (pupa_dl_set_prefix): Function removed.
32516 (pupa_dl_get_prefix): Likewise.
32517 * kern/i386/pc/init.c: Include <pupa/env.h>.
32518 (pupa_machine_init): Use the environment variable `prefix' instead of
32519 using pupa_dl_set_prefix to set the prefix.
32520 * kern/main.c: Include <pupa/env.h>.
32521 (pupa_set_root_dev): Use the environment variable `prefix' instead of
32522 using pupa_dl_get_prefix to get the prefix.
32523 * kern/misc.c: Include <pupa/env.h>.
32524 (pupa_isdigit): New function.
32525 (pupa_isgraph): Likewise.
32526 (pupa_ftoa): Likewise.
32527 (pupa_vsprintf): Added support for printing values of the type
32528 `double'. Make it possible to format variable output when using
32529 formatting like `%1.2%f'.
32530 (pupa_split_cmdline): New function.
32531 * kern/rescue.c: Include <pupa/env.h>.
32532 (next_word): Removed function.
32533 (pupa_rescue_cmd_prefix): Likewise.
32534 (pupa_rescue_cmd_set): New function.
32535 (pupa_rescue_cmd_unset): New function.
32536 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
32537 split the command line instead of splitting it here. Added
32538 support for setting variables using the syntax `foo=bar'. Don't
32539 initialize the prefix command anymore. Initialized the set and
32540 unset commands.
32541 * normal/cmdline.c: Include <pupa/env.h>.
32542 (pupa_tab_complete): Added prototypes for print_simple_completion,
32543 print_partition_completion, add_completion, iterate_commands,
32544 iterate_dev, iterate_part and iterate_dir. Moved code to print
32545 partition information from here to kern/disk.c.
32546 (pupa_cmdline_run): Don't check if the function exists anymore.
32547 * normal/main.c: Include <pupa/env.h>.
32548 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
32549 instead of using pupa_dl_get_prefix to get the prefix.
32550 * term/i386/pc/vga.c: Include <pupa/arg.h>.
32551 (check_vga_mem): Cast pointers to `void *' to silence a gcc
32552 warning.
32553 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
32554 (pupa_vga_setcolor): Declare unused variables with `__attribute__
32555 ((unused))' to silence a gcc warning.
32556 (pupa_vga_setcolor): Likewise.
32557 (debug_command): Changed to match argument parsing
32558 interface changes.
32559 * util/pupa-emu.c: Include <pupa/env.h>.
32560 (options): Added 0's for unused fields to silence a gcc warning.
32561 (argp): Likewise.
32562 (main): Use the environment variable `prefix' instead of using
32563 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
32564 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
32565 and terminal.
32566
32567 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
32568 * util/misc.c: Include <malloc.h>.
32569 (pupa_malloc): Rewritten so errors are correctly reported.
32570 (pupa_realloc): Likewise.
32571 (pupa_memalign): Likewise.
32572 (pupa_mm_init_region): Declare unused variables with
32573 `__attribute__ ((unused))' to silence a gcc warning.
32574 * normal/i386/setjmp.S: Remove tab at the end of the file to
32575 silence a gcc warning.
32576 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
32577 variables with `__attribute__ ((unused))' to silence a gcc
32578 warning.
32579 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
32580 local variable i unsigned to silence a gcc warning.
32581
32582 * kern/term.c: Include <pupa/misc.h>.
32583 (pupa_more_lines): New variable.
32584 (pupa_more): Likewise.
32585 (pupa_putcode): When the pager is active pause at the end of every
32586 screen.
32587 (pupa_set_more): New function.
32588 * include/pupa/term.h (pupa_set_more): New prototype.
32589
32590
32591 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
32592
32593 Now this project is GRUB 2 rather than PUPA. The location of
32594 the CVS repository was moved to GRUB's.
32595
32596 * configure.ac: Use bug-grub as the reporting address.
32597 Use GRUB instead of PUPA.
32598 Change the version number to 1.90.
32599
32600 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
32601
32602 * genkernsyms.sh: Updated copyright information.
32603 * genmk.rb: Likewise.
32604 * genmodsrc.sh: Likewise.
32605 * gensymlist.sh: Likewise.
32606 * boot/i386/pc/boot.S: Likewise.
32607 * boot/i386/pc/diskboot.S: Likewise.
32608 * disk/i386/pc/biosdisk.c: Likewise.
32609 * disk/i386/pc/partition.c: Likewise.
32610 * font/manager.c: Likewise.
32611 * fs/ext2.c: Likewise.
32612 * fs/fat.c: Likewise.
32613 * include/pupa/boot.h: Likewise.
32614 * include/pupa/device.h: Likewise.
32615 * include/pupa/disk.h: Likewise.
32616 * include/pupa/dl.h: Likewise.
32617 * include/pupa/elf.h: Likewise.
32618 * include/pupa/err.h: Likewise.
32619 * include/pupa/file.h: Likewise.
32620 * include/pupa/font.h: Likewise.
32621 * include/pupa/fs.h: Likewise.
32622 * include/pupa/kernel.h: Likewise.
32623 * include/pupa/loader.h: Likewise.
32624 * include/pupa/misc.h: Likewise.
32625 * include/pupa/mm.h: Likewise.
32626 * include/pupa/net.h: Likewise.
32627 * include/pupa/normal.h: Likewise.
32628 * include/pupa/rescue.h: Likewise.
32629 * include/pupa/setjmp.h: Likewise.
32630 * include/pupa/symbol.h: Likewise.
32631 * include/pupa/term.h: Likewise.
32632 * include/pupa/types.h: Likewise.
32633 * include/pupa/i386/setjmp.h: Likewise.
32634 * include/pupa/i386/types.h: Likewise.
32635 * include/pupa/i386/pc/biosdisk.h: Likewise.
32636 * include/pupa/i386/pc/boot.h: Likewise.
32637 * include/pupa/i386/pc/console.h: Likewise.
32638 * include/pupa/i386/pc/init.h: Likewise.
32639 * include/pupa/i386/pc/kernel.h: Likewise.
32640 * include/pupa/i386/pc/linux.h: Likewise.
32641 * include/pupa/i386/pc/loader.h: Likewise.
32642 * include/pupa/i386/pc/memory.h: Likewise.
32643 * include/pupa/i386/pc/multiboot.h: Likewise.
32644 * include/pupa/i386/pc/partition.h: Likewise.
32645 * include/pupa/i386/pc/time.h: Likewise.
32646 * include/pupa/i386/pc/vga.h: Likewise.
32647 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
32648 * include/pupa/util/getroot.h: Likewise.
32649 * include/pupa/util/misc.h: Likewise.
32650 * include/pupa/util/resolve.h: Likewise.
32651 * kern/device.c: Likewise.
32652 * kern/disk.c: Likewise.
32653 * kern/dl.c: Likewise.
32654 * kern/err.c: Likewise.
32655 * kern/file.c: Likewise.
32656 * kern/fs.c: Likewise.
32657 * kern/loader.c: Likewise.
32658 * kern/main.c: Likewise.
32659 * kern/misc.c: Likewise.
32660 * kern/mm.c: Likewise.
32661 * kern/rescue.c: Likewise.
32662 * kern/term.c: Likewise.
32663 * kern/i386/dl.c: Likewise.
32664 * kern/i386/pc/init.c: Likewise.
32665 * kern/i386/pc/lzo1x.S: Likewise.
32666 * kern/i386/pc/startup.S: Likewise.
32667 * loader/i386/pc/chainloader.c: Likewise.
32668 * loader/i386/pc/linux.c: Likewise.
32669 * loader/i386/pc/multiboot.c: Likewise.
32670 * normal/cmdline.c: Likewise.
32671 * normal/command.c: Likewise.
32672 * normal/main.c: Likewise.
32673 * normal/menu.c: Likewise.
32674 * normal/i386/setjmp.S: Likewise.
32675 * term/i386/pc/console.c: Likewise.
32676 * term/i386/pc/vga.c: Likewise.
32677 * util/console.c: Likewise.
32678 * util/genmoddep.c: Likewise.
32679 * util/misc.c: Likewise.
32680 * util/pupa-emu.c: Likewise.
32681 * util/resolve.c: Likewise.
32682 * util/unifont2pff.rb: Likewise.
32683 * util/i386/pc/biosdisk.c: Likewise.
32684 * util/i386/pc/getroot.c: Likewise.
32685 * util/i386/pc/pupa-mkimage.c: Likewise.
32686 * util/i386/pc/pupa-setup.c: Likewise.
32687
32688 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
32689
32690 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
32691 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
32692 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
32693 reading and reset it after reading.
32694 (pupa_ext2_close): Return PUPA_ERR_NONE.
32695
32696 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
32697 Correct value.
32698 (struct linux_kernel_header): Add kernel_version and
32699 initrd_addr_max.
32700 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
32701 pupa_file_read succeeds.
32702 (pupa_rescue_cmd_initrd): Implement.
32703
32704 2003-12-03 Marco Gerards <metgerards@student.han.nl>
32705
32706 * fs/ext2.c (pupa_ext2_label): New function.
32707 (pupa_ext2_fs): Added label.
32708 * fs/fat.c (pupa_fat_label): New function.
32709 (pupa_fat_fs): Added label.
32710 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
32711
32712 * kern/misc.c (pupa_strndup): New function.
32713 * include/pupa/misc.h (pupa_strndup): New prototype.
32714
32715 * include/pupa/normal.h: Include <pupa/err.h>.
32716 (pupa_set_history): New prototype.
32717 (pupa_iterate_commands): New prototype.
32718 * normal/cmdline.c: Include <pupa/machine/partition.h>,
32719 <pupa/disk.h>, <pupa/file.h>.
32720 (hist_size): New variable.
32721 (hist_lines): Likewise.
32722 (hist_end): Likewise.
32723 (hist_used): Likewise.
32724 (pupa_set_history): New function.
32725 (pupa_history_get): Likewise.
32726 (pupa_history_add): Likewise.
32727 (pupa_history_replace): Likewise.
32728 (pupa_tab_complete): Likewise.
32729 (pupa_cmdline_run): Added tab completion and history buffer. Tab
32730 completion shows partitionnames while completing partitions, this
32731 feature was suggested by Jeff Bailey.
32732 * normal/command.c (pupa_iterate_commands): New function.
32733 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
32734 (pupa_normal_init): Initialize history buffer.
32735 (PUPA_MOD_INIT): Likewise.
32736 (pupa_normal_fini): Free the history buffer.
32737 (PUPA_MOD_FINI): Likewise.
32738
32739 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
32740 key.
32741
32742 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
32743 * configure.ac [i386]: Check for regparam bug.
32744 (NESTED_FUNC_ATTR) [! i386]: Defined.
32745
32746 2003-11-17 Marco Gerards <metgerards@student.han.nl>
32747
32748 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
32749 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
32750 (pupa_emu_SOURCES): New variable.
32751 (pupa_emu_LDFLAGS): Likewise.
32752 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
32753 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
32754 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
32755 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
32756 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
32757 (pupa_jmp_buf): New typedef.
32758 (pupa_setjmp) [PUPA_UTIL]: New macro.
32759 (pupa_longjmp) [PUPA_UTIL]: Likewise.
32760 * include/pupa/term.h (struct pupa_term): New member `refresh'.
32761 (pupa_refresh): New prototype.
32762 * include/pupa/util/getroot.h: New file.
32763 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
32764 it.
32765 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
32766 (pupa_rescue_cmd_cat): Likewise.
32767 (pupa_rescue_cmd_ls): Likewise.
32768 (pupa_rescue_cmd_testload): Likewise.
32769 (pupa_rescue_cmd_lsmod): Likewise.
32770 * normal/cmdline.c (pupa_cmdline_get): Likewise.
32771 * normal/menu.c (run_menu): Likewise.
32772 * kern/term.c (pupa_cls): Likewise.
32773 (pupa_refresh): New function.
32774 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
32775 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
32776 * util/console.c: New file.
32777
32778 * util/i386/pc/getroot.c: New file.
32779 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
32780 (pupa_putchar): New function.
32781 (pupa_refresh): Likewise.
32782 (xgetcwd): Function moved to ...
32783 (strip_extra_slashes): Likewise.
32784 (get_prefix): Likewise.
32785 * util/i386/pc/getroot.c: ... here.
32786 (find_root_device): Function moved and renamed to...
32787 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
32788 Changed all callers.
32789 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
32790 and renamed to...
32791 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
32792 Changed all callers.
32793 * util/misc.c (pupa_memalign): New function.
32794 (pupa_mm_init_region): Likewise.
32795 (pupa_register_exported_symbols): Likewise.
32796 (pupa_putchar): Function removed.
32797 * util/pupa-emu.c: New file.
32798
32799 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
32800
32801 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
32802 (_multiboot_mod_SOURCES): New variable.
32803 (_multiboot_mod_CFLAGS): Likewise.
32804 * loader/i386/pc/multiboot.c: New file.
32805 * include/pupa/i386/pc/multiboot.h: Likewise.
32806 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
32807 (pupa_multiboot_real_boot): New function.
32808 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
32809 (pupa_multiboot_real_boot): New prototype.
32810 (pupa_rescue_cmd_multiboot): Likewise
32811 (pupa_rescue_cmd_module): Likewise.
32812
32813 * kern/loader.c (pupa_loader_set): Continue when
32814 pupa_loader_unload_func() fails.
32815 (pupa_loader_unset): New function.
32816 * include/pupa/loader.h (pupa_loader_unset): New prototype.
32817
32818 * kern/misc.c (pupa_stpcpy): New function.
32819 * include/pupa/misc.h (pupa_stpcpy): New prototype.
32820
32821 2003-11-12 Marco Gerards <metgerards@student.han.nl>
32822
32823 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
32824 for available extensions.
32825
32826 * include/pupa/i386/pc/time.h: New file.
32827 * kern/disk.c: Include <pupa/machine/time.h>.
32828 (PUPA_CACHE_TIMEOUT): New macro.
32829 (pupa_last_time): New variable.
32830 (pupa_disk_open): Flush the cache when there was a timeout.
32831 (pupa_disk_close): Reset the timer.
32832 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
32833 pupa_currticks.
32834 * util/misc.c: Include <sys/times.h>
32835 (pupa_get_rtc): New function.
32836
32837 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
32838
32839 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
32840 as blocks.
32841 (pupa_ext2_get_file_block): Use blocks member.
32842
32843 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
32844 first block. Return -1 instead of pupa_errno on error.
32845
32846 2003-10-27 Marco Gerards <metgerards@student.han.nl>
32847
32848 * README: In the pupa-mkimage example use _chain instead of chain
32849 and ext2 instead of fat.
32850 * TODO: Replace ext2fs with jfs as an example. Add an item for
32851 adding journal playback for ext2fs.
32852 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
32853 (pkgdata_MODULES): Added ext2.mod.
32854 (ext2_mod_SOURCES): New variable.
32855 (ext2_mod_CFLAGS): Likewise.
32856 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
32857 * include/pupa/misc.h (pupa_strncpy): New prototype.
32858 (pupa_strcat): Likewise.
32859 (pupa_strncmp): Likewise.
32860 * kern/misc.c (pupa_strcat): Enable function.
32861 (pupa_strncpy): New function.
32862 (pupa_strncmp): Likewise.
32863 * fs/ext2.c: New file.
32864
32865 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
32866 when the read failed before retrying.
32867 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
32868 (_FILE_OFFSET_BITS): Likewise.
32869 * configure.ac: Added AC_SYS_LARGEFILE.
32870
32871 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
32872
32873 * genmk.rb (PModule#rule): Make sure to get only symbol names
32874 from the output of nm.
32875 Reported by Robert Millan <rmh.grub@aybabtu.com>.
32876
32877 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
32878
32879 I forgot to check in these changes for a long time. This adds
32880 incomplete support for VGA console, and this is still very
32881 buggy. Also, a lot of consideration is required for I18N,
32882 UNICODE, and VGA font issues. Therefore, assume that this is
32883 such that "better than nothing".
32884
32885 * font/manager.c: New file.
32886 * include/pupa/font.h: Likewise.
32887 * include/pupa/i386/pc/vga.h: Likewise.
32888 * term/i386/pc/vga.c: Likewise.
32889 * util/unifont2pff.rb: Likewise.
32890
32891 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
32892 (pkgdata_MODULES): Added vga.mod and font.mod.
32893 (vga_mod_SOURCES): New variables.
32894 (vga_mod_CFLAGS): Likewise.
32895 (font_mod_SOURCES): Likewise.
32896 (font_mod_CFLAGS): Likewise.
32897
32898 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
32899
32900 * include/pupa/term.h: Include pupa/err.h.
32901 (struct pupa_term): Added init and fini.
32902 Changed the argument of putchar to pupa_uint32_t.
32903
32904 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
32905 (pupa_console_real_putchar): New prototype.
32906 (pupa_console_putchar): Removed.
32907 (pupa_console_checkkey): Exported.
32908 (pupa_console_getkey): Likewise.
32909
32910 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
32911 characters.
32912
32913 * kern/term.c (pupa_term_set_current): Rewritten.
32914 (pupa_putchar): Likewise.
32915 (pupa_putcode): New function.
32916
32917 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
32918 (pupa_console_real_putchar): ... this.
32919 (pupa_vga_set_mode): New function.
32920 (pupa_vga_get_font): Likewise.
32921
32922 * normal/command.c: Include pupa/term.h.
32923 (terminal_command): New function.
32924 (pupa_command_init): Register the command "terminal".
32925
32926 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
32927 (DISP_UP): Likewise.
32928 (DISP_RIGHT): Likewise.
32929 (DISP_DOWN): Likewise.
32930 (DISP_HLINE): Likewise.
32931 (DISP_VLINE): Likewise.
32932 (DISP_UL): Likewise.
32933 (DISP_UR): Likewise.
32934 (DISP_LL): Likewise.
32935 (DISP_LR): Likewise.
32936
32937 * term/i386/pc/console.c (pupa_console_putchar): New function.
32938
32939 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
32940
32941 * util/resolve.c (pupa_util_resolve_dependencies): BUG
32942 FIX. Reverse the path_list.
32943
32944 * include/pupa/normal.h: Export pupa_register_command and
32945 pupa_unregister_command.
32946
32947 * hello/hello.c (pupa_cmd_hello): New module.
32948 * conf/i386-pc.rmk: Added hello.mod.
32949
32950 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
32951
32952 * kern/i386/pc/lzo1x.S: New file.
32953
32954 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
32955 (compress_kernel): New variable.
32956 (generate_image): Heavily modified to support compressing a
32957 large part of the core image.
32958
32959 * util/misc.c (pupa_util_read_image): Fix a file descriptor
32960 leak.
32961 (pupa_util_load_image): New function.
32962
32963 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
32964 (pupa_compressed_size): New variable.
32965 (codestart): Enable Gate A20 here.
32966 Decompress the compressed part of the core image.
32967 Rearrange the code to put functions and variables which are
32968 required for initialization in the non-compressed part.
32969 Include lzo1x.S.
32970
32971 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
32972 here.
32973
32974 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
32975
32976 * include/pupa/i386/pc/kernel.h
32977 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
32978 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
32979 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
32980 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
32981 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
32982
32983 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
32984
32985 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
32986 (Utility#rule): Likewise.
32987
32988 * configure.ac: Check if LZO is available.
32989
32990 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
32991
32992 * include/pupa/normal.h: New file.
32993 * include/pupa/setjmp.h: Likewise.
32994 * include/pupa/i386/setjmp.h: Likewise.
32995 * normal/cmdline.c: Likewise.
32996 * normal/command.c: Likewise.
32997 * normal/main.c: Likewise.
32998 * normal/menu.c: Likewise.
32999 * normal/i386/setjmp.S: Likewise.
33000
33001 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
33002 (pupa_rescue_cmd_initrd): Likewise.
33003
33004 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
33005 Likewise.
33006
33007 * kern/i386/pc/startup.S (translation_table): New variable.
33008 (translate_keycode): New function.
33009 (pupa_console_getkey): Call translate_keycode.
33010
33011 * kern/rescue.c (attempt_normal_mode): New function.
33012 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
33013 it failed, print a message.
33014
33015 * kern/mm.c (pupa_real_malloc): Print more information when a
33016 free magic is broken.
33017 (pupa_free): If the first free header is not free actually, set
33018 it to P.
33019
33020 * kern/main.c (pupa_load_normal_mode): Just load the module
33021 "normal".
33022 (pupa_main): Don't print the message
33023 "Entering into rescue mode..." here.
33024
33025 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
33026 Declared.
33027 (pupa_rescue_cmd_initrd): Likewise.
33028 (pupa_rescue_cmd_initrd): Likewise.
33029
33030 * include/pupa/symbol.h (FUNCTION): Specify the type.
33031 (VARIABLE): Likewise.
33032
33033 * include/pupa/err.h (pupa_err_t): Added
33034 PUPA_ERR_UNKNOWN_COMMAND.
33035
33036 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
33037 (pupa_dl_get_prefix): Likewise.
33038
33039 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
33040 Added _chain.mod and _linux.mod instead of chain.mod and
33041 linux.mod.
33042 (chain_mod_SOURCES): Renamed to ...
33043 (_chain_mod_SOURCES): ... this.
33044 (chain_mod_CFLAGS): Renamed to ...
33045 (_chain_mod_CFLAGS): ... this.
33046 (linux_mod_SOURCES): Renamed to ...
33047 (_linux_mod_SOURCES): ... this.
33048 (linux_mod_CFLAGS): Renamed to ...
33049 (_linux_mod_CFLAGS): ... this.
33050 (normal_mod_SOURCES): New variable.
33051 (normal_mod_CFLAGS): Likewise.
33052 (normal_mod_ASFLAGS): Likewise.
33053
33054 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
33055
33056 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
33057 possible.
33058
33059 * kern/dl.c (pupa_dl_ref): Refer depending modules
33060 recursively.
33061 (pupa_dl_unref): Unrefer depending modules recursively.
33062 Don't call pupa_dl_unload implicitly, because PUPA can crash if
33063 a module is unloaded before one depending on that module is
33064 unloaded.
33065 (pupa_dl_unload): Unload depending modules explicitly,
33066 if possible.
33067
33068 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
33069
33070 * include/pupa/i386/pc/linux.h: New file.
33071 * loader/i386/pc/linux.c: Likewise.
33072
33073 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
33074 Removed.
33075 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
33076 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
33077 of PUPA_CHAINLOADER_BOOT_SECTOR.
33078
33079 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
33080 (pupa_linux_prot_size): New variable.
33081 (pupa_linux_tmp_addr): Likewise.
33082 (pupa_linux_real_addr): Likewise.
33083 (pupa_linux_boot_zimage): New function.
33084 (pupa_linux_boot_bzimage): Likewise.
33085
33086 * kern/i386/pc/init.c (struct mem_region): New structure.
33087 (MAX_REGIONS): New macro.
33088 (mem_regions): New variable.
33089 (num_regions): Likewise.
33090 (pupa_os_area_addr): Likewise.
33091 (pupa_os_area_size): Likewise.
33092 (pupa_lower_mem): Likewise.
33093 (pupa_upper_mem): Likewise.
33094 (add_mem_region): New function.
33095 (compact_mem_regions): Likewise.
33096 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
33097 the size of the conventional memory and that of so-called upper
33098 memory (before the first memory hole).
33099 Instead of adding each found region to free memory, use
33100 add_mem_region and add them after removing overlaps.
33101 Also, add only 1/4 of the upper memory to free memory. The rest
33102 is used for loading OS images. Maybe this is ad hoc, but this
33103 makes it much easier to relocate OS images when booting.
33104
33105 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
33106 (pupa_enter_rescue_mode): Don't register initrd and module.
33107
33108 * kern/mm.c: Include pupa/dl.h.
33109
33110 * kern/main.c: Include pupa/file.h and pupa/device.h.
33111
33112 * kern/loader.c (pupa_loader_load_module_func): Removed.
33113 (pupa_loader_load_module): Likewise.
33114
33115 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
33116 ``.o''.
33117
33118 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
33119 (pupa_linux_tmp_addr): Likewise.
33120 (pupa_linux_real_addr): Likewise.
33121 (pupa_linux_boot_zimage): Likewise.
33122 (pupa_linux_boot_bzimage): Likewise.
33123
33124 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
33125 (pupa_upper_mem): Likewise.
33126 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
33127 module is too dangerous.
33128
33129 * include/pupa/loader.h (pupa_os_area_addr): Declared.
33130 (pupa_os_area_size): Likewise.
33131 (pupa_loader_set): Remove the first argument. Loader doesn't
33132 manage modules or initrd any longer.
33133 (pupa_loader_load_module): Removed.
33134
33135 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
33136 (linux_mod_SOURCES): New variable.
33137 (linux_mod_CFLAGS): Likewise.
33138
33139 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
33140
33141 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
33142 the length of a blocklist correctly.
33143
33144 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
33145 Use ioctl only if the OS file is a block device.
33146 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
33147 not very useful for normal files.
33148
33149 * kern/main.c (pupa_set_root_dev): New function.
33150 (pupa_load_normal_mode): Likewise.
33151 (pupa_main): Call those above.
33152
33153 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
33154 pupa_uint16_t.
33155
33156 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
33157
33158 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
33159
33160 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
33161 (setup): Configure the installed partition information and the
33162 dl prefix.
33163
33164 * loader/i386/pc/chainloader.c (my_mod): New variable.
33165 (pupa_chainloader_unload): New function.
33166 (pupa_rescue_cmd_chainloader): Refer itself.
33167 (PUPA_MOD_INIT): Save its own module in MY_MOD.
33168
33169 * kern/i386/pc/startup.S (install_partition): Removed.
33170 (version_string): Likewise.
33171 (config_file): Likewise.
33172 (pupa_install_dos_part): New variable.
33173 (pupa_install_bsd_part): Likewise.
33174 (pupa_prefix): Likewise.
33175 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
33176
33177 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
33178 and pupa/misc.h.
33179 (make_install_device): New function.
33180 (pupa_machine_init): Set the dl prefix.
33181
33182 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
33183 (buf): Renamed to ...
33184 (linebuf): ... this.
33185 (pupa_rescue_cmd_prefix): New function.
33186 (pupa_rescue_cmd_insmod): Likewise.
33187 (pupa_rescue_cmd_rmmod): Likewise.
33188 (pupa_rescue_cmd_lsmod): Likewise.
33189 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
33190 rmmod and lsmod.
33191
33192 * kern/mm.c (pupa_memalign): If failed even after invalidating
33193 disk caches, unload unneeded modules and retry.
33194
33195 * kern/misc.c (pupa_memmove): New function.
33196 (pupa_memcpy): Removed.
33197 (pupa_strcpy): New function.
33198 (pupa_itoa): Made static.
33199
33200 * kern/dl.c (pupa_dl_iterate): New function.
33201 (pupa_dl_ref): Likewise.
33202 (pupa_dl_unref): Likewise.
33203 (pupa_dl_unload): Return if succeeded or not.
33204 (pupa_dl_unload_unneeded): New function.
33205 (pupa_dl_unload_all): Likewise.
33206 (pupa_dl_init): Renamed to ...
33207 (pupa_dl_set_prefix): ... this.
33208 (pupa_dl_get_prefix): New function.
33209
33210 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
33211 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
33212 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
33213 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
33214 (pupa_install_dos_part): Declared.
33215 (pupa_install_bsd_part): Likewise.
33216 (pupa_prefix): Likewise.
33217 (pupa_boot_drive): Likewise.
33218
33219 * include/pupa/types.h: Fix a typo.
33220
33221 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
33222 pupa_memmove.
33223 (pupa_memmove): Declared.
33224 (pupa_strcpy): Likewise.
33225
33226 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
33227 pupa_mod_init takes one argument, its own module.
33228 (pupa_dl_unload_unneeded): Declared.
33229 (pupa_dl_unload_all): Likewise.
33230 (pupa_dl_ref): Likewise.
33231 (pupa_dl_unref): Likewise.
33232 (pupa_dl_iterate): Likewise.
33233 (pupa_dl_init): Renamed to ...
33234 (pupa_dl_set_prefix): ... this.
33235 (pupa_dl_get_prefix): Declared.
33236
33237 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
33238 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
33239 unloaded.
33240 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
33241 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
33242
33243 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
33244 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
33245
33246 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
33247
33248 * util/i386/pc/pupa-setup.c (setup): Define the internal
33249 function find_first_partition_start at the top level, because GCC
33250 3.0.x cannot compile internal functions in deeper scopes
33251 correctly.
33252 (find_root_device): Use lstat instead of stat.
33253 Don't follow symbolic links.
33254 Fix the path-constructing code.
33255
33256 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
33257 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
33258 by a BLKGETSIZE ioctl first, because block devices don't fill
33259 the member st_mode of the structure stat on Linux.
33260 [__linux__] (linux_find_partition): Use a temporary buffer
33261 REAL_DEV for the working space. Copy it to DEV before returning.
33262 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
33263 buffer cache consistent.
33264 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
33265 strncmp. The previous value was merely wrong.
33266 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
33267
33268 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
33269 FAT size is 12. The previous value was merely wrong.
33270
33271 * kern/main.c (pupa_main): Don't split the starting message from
33272 newlines.
33273
33274 * kern/term.c (pupa_putchar): Put CR after LF instead of before
33275 LF, because BIOS goes crazy about character attributes in this
33276 case.
33277
33278 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
33279
33280 * include/i386/pc/util/biosdisk.h: New file.
33281 * util/i386/pc/biosdisk.c: Likewise.
33282 * util/i386/pc/pupa-setup.c: Likewise.
33283
33284 * Makefile.in (INCLUDE_DISTFILES): Added
33285 include/pupa/i386/pc/util/biosdisk.h.
33286 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
33287 directory util/i386/pc.
33288 (install-local): Added a rule for sbin_UTILITIES.
33289 (uninstall): Likewise.
33290
33291 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
33292
33293 * util/misc.c (xrealloc): New function.
33294 (pupa_malloc): Likewise.
33295 (pupa_free): Likewise.
33296 (pupa_realloc): Likewise.
33297 (pupa_stop): Likewise.
33298 (pupa_putchar): Likewise.
33299
33300 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
33301
33302 * include/pupa/util/misc.h (xrealloc): Declared.
33303
33304 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
33305 macro.
33306 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
33307 (PUPA_BOOT_MACHINE_BPB_END): ... this.
33308
33309 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
33310 [PUPA_UTIL] (pupa_fat_fini): Likewise.
33311
33312 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
33313 way should be implemented.
33314 [PUPA_UTIL] (pupa_fat_fini): Likewise.
33315
33316 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
33317 the size of NAME for safety.
33318 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
33319 0x88.
33320
33321 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
33322 (pupa_setup_SOURCES): Likewise.
33323
33324 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
33325
33326 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
33327
33328 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
33329 bunch of pushl's from pusha, because this destroys the return
33330 value.
33331
33332 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
33333
33334 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
33335 This means that any missing prototypes could be fatal. Also, you
33336 must take care when writing assembly code. See the comments at
33337 the beginning of startup.S, for more details.
33338
33339 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
33340 compilation mechanism.
33341 (pupa_chainloader_real_boot): Likewise.
33342 (pupa_biosdisk_rw_int13_extensions): Likewise.
33343 (pupa_biosdisk_rw_standard): Likewise.
33344 (pupa_biosdisk_check_int13_extensions): Likewise.
33345 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
33346 (pupa_biosdisk_get_diskinfo_standard): Likewise.
33347 (pupa_get_memsize): Likewise.
33348 (pupa_get_mmap_entry): Likewise.
33349 (pupa_console_putchar): Likewise.
33350 (pupa_console_setcursor): Likewise.
33351 (pupa_getrtsecs): Use pushl instead of push.
33352
33353 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
33354 memory instead of the stack for a mmap entry, because some
33355 BIOSes may ignore the maximum size and overflow.
33356
33357 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
33358
33359 * genmk.rb (PModule#rule): Compile automatically generated
33360 sources with module-specific CFLAGS as well as other sources.
33361
33362 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
33363
33364 * configure.ac: Check ld.
33365 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
33366 respectively, before checking endianness and sizes.
33367
33368 * Makefile.in (LD): New variable.
33369
33370 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
33371
33372 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
33373
33374 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
33375
33376 * Changelog: New file.
33377