]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Output errors if theme loading failed.
[grub2.git] / ChangeLog
1 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
2
3 Output errors if theme loading failed.
4
5 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
6 grub_gfxterm_fullscreen on error paths to ...
7 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
8 theme loading error.
9
10 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
11
12 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13 space for older compilers.
14 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
15
16 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17
18 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
19 and report them as not RAID members since they are useless for GRUB.
20 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21
22 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
23
24 Increase LVM implementation robustness in order not to crash on
25 configurations like pvmove. Previously code assumed that in some places
26 only lvs or only pvs are used whereas it seems that they are used
27 interchangeably.
28
29 * grub-core/disk/lvm.c (read_node): New function.
30 (read_lv): Use read_node.
31 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
32 Match volumes only at the end when all lvs are found. Take both
33 pvs (first) and lvs (second) into account.
34 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
35 mirror_* into node_*. All users updated.
36 (grub_lvm_stripe): Merge this ...
37 (grub_lvm_mirror): ... and this ...
38 (grub_lvm_node): ... into this. All users updated.
39
40 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
41
42 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
43 of function to allow further scanning for LVMs.
44
45 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
46
47 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
48 on failed seek as it breaks open fd reusage.
49
50 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
51
52 * util/grub-install.in: Add a recommendation to use --recheck before
53 reporting bugs.
54
55 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
56
57 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
58 are obtained.
59
60 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
61
62 GRUB developper manual based on existing Internals section and
63 contributions by the various authors with active copyright assignment.
64
65 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
66 * docs/font_char_metrics.png: New file.
67 * docs/font_char_metrics.txt: Likewise.
68 * docs/grub-dev.texi: Likewise.
69 * docs/grub.texi (Internals): Move from here ...
70 * docs/grub-dev.texi: ... here.
71
72 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
73
74 Store the loopback device as data on loopback grub_disk structures,
75 rather than the file it points to. This fixes use of freed memory
76 if an existing loopback device is replaced.
77
78 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
79 disk->data, not dev->file.
80 (grub_loopback_read): Adjust file assignment to match.
81 Fixes Ubuntu bug #742967.
82
83 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
84
85 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
86 when replacing an existing device.
87
88 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
89
90 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
91 memory corruptions.
92
93 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
94 unsigned.
95 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
96 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
97 (grub_jfs_read_inode): Likewise.
98 (grub_jfs_opendir): Likewise. Remove now useless casts.
99 (grub_jfs_getent): Likewise.
100 Make ino a grub_uint32_t rather than int.
101 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
102 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
103 division and module with bit operations.
104 (grub_jfs_find_file): Make ino a grub_uint32_t.
105 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
106
107 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
108
109 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
110 warning. (This was in fact always initialised before use, but GCC
111 wasn't smart enough to prove that.)
112 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
113
114 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
115
116 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
117 stack alignment.
118 (efi_wrap_1): Likewise.
119 (efi_wrap_2): Likewise.
120 (efi_wrap_3): Likewise.
121 (efi_wrap_4): Likewise.
122 (efi_wrap_5): Likewise.
123 (efi_wrap_6): Likewise.
124 (efi_wrap_10): Likewise.
125 Based on information by: Red Hat/Peter Jones.
126
127 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
128
129 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
130 set-but-not-used variable.
131
132 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
133
134 * docs/grub.texi (Simple configuration): Be more explicit about
135 GRUB_DEFAULT, and add an example.
136 Reported by: Leslie Rhorer.
137
138 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
139
140 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
141 shell".
142
143 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
144
145 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
146 * util/grub.d/20_linux_xen.in: Likewise.
147
148 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
149
150 * util/grub.d/10_linux.in: Try alternative config filenames where
151 we parse config file.
152 * util/grub.d/20_linux_xen.in: Likewise.
153
154 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
155
156 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
157 * util/grub.d/20_linux_xen.in: Likewise.
158
159 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
160
161 * grub-core/disk/raid.c (insert_array): Add few potentially
162 useful grub_util_info.
163 (grub_raid_register): Likewise.
164
165 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
166
167 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
168 Preserve partition number in mdadm code path.
169
170 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
171
172 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
173 few potentially useful grub_util_info.
174
175 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
176
177 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
178
179 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
180
181 * docs/grub.texi (default): Use @example rather than nested
182 itemized lists to avoid breaking gendocs.
183
184 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
185
186 * docs/grub.texi (Future): Update.
187
188 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
189
190 * docs/grub.texi (Environment): New chapter.
191 (Changes from GRUB Legacy): Link to "Environment block" section for
192 details of limitations.
193 (Simple configuration): Likewise. Link to documentation of gfxmode
194 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
195 respectively.
196 (Shell-like scripting): Note that normal variables are stored in the
197 environment.
198 (gettext): Link to documentation of lang and locale_dir.
199 (list_env): New section.
200 (load_env): New section.
201 (save_env): New section.
202
203 (Reporting bugs): Fix typo.
204
205 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
206
207 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
208 the example.
209
210 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
211
212 * grub-core/term/at_keyboard.c (set_scancodes)
213 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
214
215 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
216
217 * docs/grub.texi (Menu-specific commands): Remove some semantics
218 that were true in GRUB Legacy but not in GRUB 2.
219 (submenu): New section.
220 (false): New section.
221 (read): New section.
222 (true): New section.
223
224 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
225
226 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
227
228 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
229
230 * docs/grub.texi (Simple configuration): Explain some of the
231 current limitations of grub-mkconfig.
232 Reported by: Leslie Rhorer.
233
234 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
235
236 Old macs search for boot.efi rather than for bootia32.efi.
237
238 * util/grub-install.in: Copy bootia32.efi to boot.efi.
239 * util/grub-mkrescue.in: Likewise.
240 Suggested by: Peter Jones.
241
242 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
243
244 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
245
246 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
247
248 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
249 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
250 (grub_lvm_mirror): New struct.
251 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
252 (grub_lvm_iterate): Iterate only visible volumes.
253 (grub_lvm_read): Factor out to ..
254 (read_lv): ... this. Support mirrors.
255 (grub_lvm_read): New wrapper function.
256 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
257 stripped or mirrored.
258
259 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
260
261 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
262
263 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
264
265 * docs/grub.texi (loopback): New section.
266
267 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
268
269 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
270 removed -p option.
271
272 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
273
274 * docs/grub.texi (BIOS installation): New section, partly based on
275 previous text in other sections.
276 (Installing GRUB using grub-install): Replace BIOS discussion with a
277 cross-reference.
278 (Images): Likewise.
279
280 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
281
282 * grub-core/kern/emu/hostdisk.c (find_partition_start)
283 [HAVE_DIOCGDINFO]: Add safety checks.
284
285 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
286
287 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
288 per default compiled in kernel and prior to 8.0 isn't shipped at all.
289
290 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
291
292 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
293 real_sb->size is zero (e.g. RAID-0), get the disk size from
294 real_sb->data_size instead.
295 Fixes Ubuntu bug #743136.
296
297 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
298
299 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
300 printf clauses for printing size and start.
301
302 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
303
304 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
305 Reported and tested by: Timothy Nikkel.
306
307 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
308
309 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
310 (dirty_region_add_real): ... this.
311 (dirty_region_add): Don't discard margin refresh when performing
312 scheduled repaint.
313
314 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
315
316 * grub-core/lib/relocator.c (allocate_regstart)
317 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
318 terminals are capabple of malloc-free operation.
319 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
320 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
321
322 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
323
324 * util/grub-setup.c: Copy the partition table zone if floppy support
325 is disabled, even if no partition table is found.
326
327 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
328 during POST if an invalid partition table is contained in the PBR
329 of the active partition when GRUB is installed to a partition.
330
331 2011-03-28 Colin Watson <cjwatson@debian.org>
332
333 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
334 comment.
335
336 2011-03-28 Colin Watson <cjwatson@debian.org>
337
338 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
339 to be specific about what kind of RAID device we're scanning for.
340
341 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
342
343 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
344 return freed string.
345
346 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
347
348 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
349
350 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
351
352 Use libgeom on FreeBSD to detect partitions.
353
354 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
355 (grub-mkrelpath): Likewise.
356 (grub-script-check): Likewise.
357 (grub-editenv): Likewise.
358 (grub-mkpasswd-pbkdf2): Likewise.
359 (grub-fstest): Likewise.
360 (grub-mkfont): Likewise.
361 (grub-mkdevicemap): Likewise.
362 (grub-probe): Likewise.
363 (grub-setup): Likewise.
364 (grub-ofpathname): Likewise.
365 (grub-mklayout): Likewise.
366 (example_unit_test): Likewise.
367 (grub-menulst2cfg): Likewise.
368 * grub-core/Makefile.core.def (grub-emu): Likewise.
369 (grub-emu-lite): Likewise.
370 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
371 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
372 define HAVE_DIOCGDINFO.
373 (follow_geom_up) [FreeBSD]: New function.
374 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
375 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
376 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
377 unconditionally of HAVE_DIOCGDINFO.
378
379 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
380
381 Fix FreeBSD compilation problem.
382
383 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
384 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
385
386 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
387
388 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
389 Switch back to page zero before loading a kernel, since some kernel
390 drivers expect that.
391 Thanks to: Felix Kuehling.
392
393 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
394
395 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
396 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
397 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
398
399 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
400
401 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
402 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
403
404 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
405
406 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
407 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
408 malloc is disabled.
409
410 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
411
412 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
413 for modules headers when counting the needed allocation size.
414
415 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
416
417 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
418 if no ASCII character is found to prevent crash.
419
420 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
421
422 * grub-core/video/bitmap.c (match_extension): Ignore case.
423
424 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
425
426 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
427
428 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
429
430 * grub-core/script/parser.y: Declare "time" as valid argument.
431
432 2011-03-23 Peter Jones <pjones@redhat.com>
433
434 Fix incorrect assert failure reporting.
435
436 * grub-core/tests/example_functional_test.c (example_test): Add
437 a failure comment.
438 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
439 (failure_start): ...this. Check that malloc succeeded.
440 Don't call xvasprintf. Return failure struct.
441 (failure_append_vtext): New function.
442 (failure_append_text): Likewise.
443 (add_failure): Likewise.
444 (grub_test_assert_helper): Likewise.
445 * include/grub/test.h (grub_test_assert_helper): New declaration.
446 (grub_test_assert): Macro rewritten.
447
448 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
449
450 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
451
452 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
453
454 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
455
456 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
457
458 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
459 into GRUB-style one.
460
461 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
462
463 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
464 error and not grub_errno.
465 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
466
467 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
468
469 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
470 GRUB_USB_SPEED_NONE in case of failure and not the error code.
471
472 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
473
474 * grub-core/efiemu/i386/pc/cfgtables.c
475 (grub_machine_efiemu_init_tables): Make declaration a prototype.
476 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
477 (grub_xnu_unlock): Likewise.
478 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
479
480 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
481
482 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
483 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
484 * grub-core/commands/hashsum.c (aliases): Likewise.
485 * grub-core/commands/setpci.c (pci_registers): Likewise.
486 * grub-core/disk/usbms.c (attach_hook): Likewise.
487 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
488 (zio_checksum_table): Likewise.
489 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
490 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
491 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
492 * grub-core/lib/relocator.c (leftovers): Likewise.
493 (extra_blocks): Likewise.
494 * grub-core/loader/i386/bsd.c (relocator): Likewise.
495 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
496 (modules_last): Likewise.
497 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
498 (devices): Likewise.
499 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
500 (modules_last): Likewise.
501 * grub-core/normal/auth.c (users): Likewise.
502 * grub-core/normal/context.c (initial_menu): Likewise.
503 (current_menu): Likewise.
504 * grub-core/normal/crypto.c (crypto_specs): Likewise.
505 * grub-core/term/serial.c (grub_serial_ports): Likewise.
506 (grub_serial_terminfo_input_template): Likewise.
507 (grub_serial_terminfo_output_template): Likewise.
508 (grub_serial_terminfo_input): Likewise.
509 (grub_serial_terminfo_output): Likewise.
510 (registered): Likewise.
511 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
512
513 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
514
515 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
516 grub_video_mode_type_t.
517 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
518 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
519 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
520
521 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
522
523 * util/grub-install.in: Correct the x86-64 name as x86_64.
524
525 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
526
527 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
528 initial chunk read from the kernel always includes GRUB's multiboot
529 header, which is now outside the first sector.
530
531 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
532
533 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
534 cached mmap_size, so that this works correctly when called multiple
535 times.
536 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
537
538 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
539
540 * docs/grub.texi (Simple configuration): Tidy up formatting.
541
542 2011-03-07 Szymon Janc <szymon@janc.net.pl>
543
544 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
545 Set-but-not-used variable removed.
546
547 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
548
549 Workaround yet another IEEE1275 bug.
550
551 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
552 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
553 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
554 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
555 is set.
556 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
557 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
558
559 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
560
561 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
562 error.
563
564 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
565
566 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
567 empty, since in that case we can only generate either nothing or a
568 syntactically invalid configuration file.
569 Reported by: Michal Suchanek. Fixes Debian bug #612898.
570
571 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
572
573 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
574 (Making a GRUB bootable CD-ROM): Likewise.
575 (Invoking grub-mkrescue): New section.
576 Reported by: Yann Dirson. Fixes Debian bug #612585.
577
578 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
579
580 * util/grub-install.in: Remove unnecessary brackets from tr
581 arguments.
582 * util/grub.d/10_hurd.in: Likewise.
583 * util/grub.d/10_kfreebsd.in: Likewise.
584 * util/grub.d/10_linux.in: Likewise.
585 * util/grub.d/20_linux_xen.in: Likewise.
586 Reported by: Jamie Heilman. Fixes Debian bug #612564.
587
588 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
589
590 * include/grub/file.h (not_easly_seekable): Rename to ...
591 (not_easily_seekable): ... this. Update all users.
592
593 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
594
595 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
596 grub-mkrescue.
597
598 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
599
600 * util/grub-mkimage.c (generate_image): Refuse to create the images
601 bigger than the actual flash (512K) in Loongson machines. 512K is also
602 the biggest chip supported by them.
603
604 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
605
606 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
607
608 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
609
610 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
611 super_offset field.
612
613 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
614
615 * util/grub-install.in: Ignore install device on platforms
616 where it doesn't make sense. Always use UUIDs except on pc, efi and
617 sparc64.
618 Reported by: Daniel Kahn Gillmor.
619
620 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
621
622 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
623
624 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
625
626 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
627 (iterate_real): Don't rely on partition being non-NULL.
628
629 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
630
631 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
632 supported platforms. Put a compile time assert for this rather than
633 generate a warning with 32-bit shift.
634
635 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
636
637 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
638 logical expression more readable.
639
640 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
641
642 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
643 even if some elements have a name.
644 Reported by: Alexander GQ Gerasiov.
645
646 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
647
648 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
649 path unreadable if `grub-probe -t abstraction' fails, for example if
650 memberlist fails on an LVM volume group.
651 Reported by: Darius Jahandarie.
652
653 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
654
655 * docs/grub.texi (Simple configuration): Document
656 GRUB_PRELOAD_MODULES.
657
658 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
659
660 * .bzrignore: Remove nonexistent grub-pbkdf2.
661
662 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
663
664 * configure.ac: Bump version to 1.99~rc1.
665
666 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
667
668 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
669 for safety.
670
671 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
672
673 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
674 module.
675
676 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
677
678 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
679
680 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
681
682 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
683 diskdevid.
684
685 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
686
687 Fix compilation on cygwin.
688
689 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
690 -R .drectve on cygwin.
691 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
692 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
693 (COND_CYGWIN): New condition.
694 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
695 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
696 not @TARGET_OBJ2ELF@.
697 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
698 type to determine whether aux is to be used.
699
700 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
701
702 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
703 realpath'ed device string.
704 Handle floppy (somewhat).
705 Issue error in unknown case rather than garbage.
706 Reported by: Axel Beckert.
707
708 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
709
710 * util/grub.d/00_header.in (load_video): Handle the case when no video
711 drivers available.
712 Thanks to: Axel Beckert.
713
714 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
715
716 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
717 variable. Fixes problem on big endian platforms.
718
719 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
720
721 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
722 It doesn't work well there.
723
724 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
725
726 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
727 warning.
728 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
729 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
730 counter.
731
732 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
733
734 Use alias->path rather than buggy "canon".
735
736 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
737 (ofdisk_hash_add): New argument curcan. All users updated.
738
739 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
740
741 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
742
743 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
744
745 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
746 loadmask before doing any calculations. Use correct type for offset.
747 (grub_linux_load64): Likewise.
748
749 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
750
751 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
752 with NULL.
753 (console_grub_equivalences_unshift): Likewise.
754 Reported by: Daniel Dehennin.
755
756 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
757
758 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
759 (set_env_limn_ro): Likewise.
760 (GRUB_MOD_INIT): Likewise.
761 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
762 ARRAY_SIZE while on it.
763 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
764 * grub-core/normal/context.c (grub_env_export): Move from here ...
765 * grub-core/kern/env.c (grub_env_export): ... here.
766 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
767 prefix.
768 * grub-core/kern/main.c (grub_main): Export root and prefix.
769 * include/grub/env.h (grub_env_export): Export.
770 Reported by: Seth Goldberg.
771
772 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
773
774 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
775 Take into account space used by ELF sections and multiboot palette.
776 Reported by: Grégoire Sutre.
777
778 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
779
780 * BUGS: New file.
781
782 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
783
784 Pass more appropriate video id to Linux.
785
786 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
787 grub_video_get_driver_id and variable gfxpayloadforcelfb to
788 fill have_vga.
789 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
790 shift params->lfb_size.
791 * include/grub/i386/linux.h: Make an enume out of have_vga values.
792
793 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
794
795 * util/grub-menulst2cfg.c: Add missing include of misc.h.
796
797 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
798
799 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
800 separator and pass bootpath/devid even if only one of them is available.
801 Reported by: Seth Goldberg.
802
803 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
804
805 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
806 implementations bug on them.
807
808 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
809 memory.
810 (filter_memory_map): Likewise.
811
812 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
813
814 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
815 Reported by: nebuchadnezzar.
816
817 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
818
819 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
820 Reported by: nebuchadnezzar.
821
822 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
823
824 Submenu default support.
825
826 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
827 auto_boot. All users updated.
828 Declared static.
829 Handle chosen and default with submenus.
830 (grub_menu_execute_with_fallback): Declared static.
831 Don't notify failure if autobooted. Upper level does it.
832 (menuentry_eq): New function.
833 (get_entry_number): Use menuentry_eq.
834 (show_menu): New parameter "autobooted". All users updated.
835 (grub_show_menu): Likewise.
836 * include/grub/normal.h (grub_show_menu): Likewise.
837 * include/grub/menu.h (grub_menu_execute_entry): Removed.
838 (grub_menu_execute_with_fallback): Likewise.
839
840 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
841
842 * util/grub-mklayout.c (usage): Update help text.
843
844 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
845
846 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
847
848 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
849
850 * util/grub-menulst2cfg.c (main): Trim the line.
851
852 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
853
854 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
855 (grub_machine_init): Don't check amount of low memory as reportedly
856 INT 12h can be broken and if low memory is too low we wouldn't have
857 gotten into grub_machine_init anyway.
858
859 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
860
861 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
862 (grub_machine_mmap_iterate): Take low memory into account
863
864 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
865
866 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
867 badfs.
868 Reported by: TiCPU.
869
870 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
871
872 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
873 members errors.
874
875 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
876
877 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
878 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
879
880 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
881
882 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
883 openbsd and netbsd types being in part_bsd module.
884
885 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
886
887 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
888 (_FILE_OFFSET_BITS): Likewise.
889 Reported by: Seth Goldberg.
890
891 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
892
893 * configure.ac: Check for libdevmapper header.
894
895 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
896
897 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
898 avoid aliasing.
899 (fzap_lookup): Likewise.
900 (dnode_get): Likewise.
901 (make_mdn): Likewise.
902 (zfs_mount): Likewise.
903 (fzap_iterate): Use temporary pointer to avoid aliasing.
904 (grub_zfs_read): Likewise.
905 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
906 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
907 pointers to avoid aliasing.
908 (grub_cmd_xnu_kernel64): Likewise.
909 (grub_xnu_load_driver): Likewise.
910
911 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
912
913 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
914 aliasing warning.
915 (grub_cmd_terminal_output): Likewise.
916 Reported and tested by: Grégoire Sutre.
917
918 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
919
920 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
921 warning.
922 Reported and tested by: Grégoire Sutre.
923
924 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
925
926 * configure.ac: Do CPU substitution even if it's specified explicitly.
927 Reported and tested by: Alain Greppin.
928
929 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
930
931 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
932 Reported and tested by: Alain Greppin.
933
934 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
935
936 Satisfy some bison versions need for inttypes.h.
937
938 * grub-core/lib/posix_wrap/inttypes.h: New file.
939 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
940 (int16_t): Likewise.
941 (int32_t): Likewise.
942 (int64_t): Likewise.
943 Reported and tested by: Alain Greppin.
944
945 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
946
947 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
948 Silence spurious warning.
949 Reported and tested by: Alain Greppin.
950
951 2011-01-07 Szymon Janc <szymon@janc.net.pl>
952
953 * docs/grub.texi (Support automatic decompression): Update with xz
954 decompression support.
955
956 2011-01-07 Szymon Janc <szymon@janc.net.pl>
957
958 Improve loaders' kernel command line handling.
959
960 * grub-core/lib/cmdline.c: New file.
961 * include/grub/lib/cmdline.h: Likewise.
962 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
963 grub_create_loader_cmdline to create kernel command line.
964 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
965 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
966 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
967 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
968 (linux): Add lib/cmdline.c on common.
969
970 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
971
972 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
973 inopos might be unaligned.
974
975 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
976
977 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
978 endian transformations.
979 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
980 Based on report by: Doug Nazar.
981
982 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
983
984 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
985 array->members[i].start_sector.
986 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
987
988 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
989
990 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
991 Reported and tested by: Grégoire Sutre.
992
993 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
994
995 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
996 avoid causing test failures by clearing the screen.
997
998 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
999
1000 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
1001 Fix prefix check to handle the case where dir ends with a slash
1002 (most significantly, "/" itself).
1003 Reported by: Michael Vogt.
1004
1005 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1006
1007 Run terminfo_cls on initing terminfo output to clear the screen and
1008 move the cursor to (0,0).
1009
1010 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
1011 Call grub_terminfo_output_init.
1012 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
1013 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
1014 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
1015
1016 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1017
1018 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
1019 only when needed.
1020
1021 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1022
1023 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
1024 CTRL.
1025
1026 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1027
1028 The E820 type 5 is BADRAM, not EXEC_CODE.
1029
1030 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
1031 (GRUB_E820_BADRAM): New define.
1032 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
1033 into reserved. Propagate BADRAM.
1034 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
1035 (GRUB_E820_BADRAM): New define.
1036
1037 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
1038
1039 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
1040 Ignore the memory post-4G.
1041 (grub_relocator_firmware_alloc_region): Additional debug statement.
1042
1043 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
1044
1045 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
1046 names.
1047 Reported by: David Pravec.
1048
1049 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
1050
1051 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
1052 BIOSes.
1053
1054 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
1055
1056 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
1057 Prevent overflow.
1058 (grub_reed_solomon_recover): Likewise.
1059
1060 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
1061
1062 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
1063
1064 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
1065
1066 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
1067 variable.
1068
1069 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
1070
1071 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
1072 descriptions of extract_legacy_entries_source and
1073 extract_legacy_entries_configfile.
1074 Reported by: Seung Soo, Ha.
1075
1076 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
1077
1078 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
1079 on devices that do not implement function 0.
1080
1081 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
1082
1083 * grub-core/fs/hfsplus.c: Make parent unsigned.
1084 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
1085 overflows.
1086 (grub_hfsplus_cmp_extkey): Likewise
1087
1088 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1089
1090 * util/grub-install.in: Correctly use bootloader_id and not
1091 GRUB_DISTRIBUTOR on efibootmgr line.
1092
1093 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1094
1095 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
1096
1097 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
1098
1099 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
1100 Xen and reorder menu item wording to make it clearer that this entry
1101 will launch Xen. Print separate messages when loading Xen and
1102 Linux.
1103
1104 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
1105
1106 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
1107 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
1108 loop in case of incorrect amiga partmap.
1109
1110 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
1111
1112 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
1113 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
1114 Reported by:EHeM.
1115
1116 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
1117
1118 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
1119 spurious warning.
1120 Reported by: crocket
1121
1122 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
1123
1124 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
1125 Preload EFIemu.
1126 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
1127
1128 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
1129
1130 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
1131 is loaded
1132 (grub_cmd_xnu_kextdir): Likewise.
1133 (grub_cmd_xnu_splash): Likewise.
1134
1135 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
1136
1137 Avoid using Reed-Solomon with 0 redundancy.
1138
1139 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
1140 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
1141 or 0 redundancy.
1142 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
1143 (grub_reed_solomon_recover): Likewise.
1144
1145 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
1146
1147 Don't use disk subsystem in freebsd_boot.
1148
1149 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
1150 (freebsd_biosdev): Likewise.
1151 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
1152 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
1153
1154 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
1155
1156 Handling of files of unknown size is currently limited. They can't be
1157 used e.g. for initrd or modules. Moreover gzip handling of not
1158 easily seekable files is buggy. Disable unknown file size for now. May
1159 be inefficient but works.
1160
1161 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
1162 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
1163
1164 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
1165
1166 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
1167 floppy probe.
1168
1169 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
1170
1171 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
1172
1173 2010-12-25 Shea Levy <shlevy>
1174
1175 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
1176
1177 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
1178
1179 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
1180 Windows Server 2008.
1181 Reported by: Devin Giddings.
1182
1183 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
1184
1185 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
1186 writing an error message because of async power management.
1187 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
1188 (grub_reboot): Likewise.
1189
1190 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
1191
1192 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
1193 keep unit tests from failing when they shouldn't.
1194
1195 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
1196
1197 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
1198 previous patch increased the size of the RS code by 20 bytes (at
1199 least with gcc-4.4), so increase this by 20 bytes to match.
1200 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
1201
1202 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
1203
1204 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
1205 scratch area. Make sure to initialise chosen in standalone mode as
1206 well as non-standalone.
1207 Reported by: Robert Hooker and Andy Whitcroft.
1208 Tested by: Andy Whitcroft.
1209
1210 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
1211
1212 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
1213 constructing a new unescaped string and passing it to grub_xputs in
1214 one go, rather than passing characters to grub_printf one at a time.
1215
1216 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
1217
1218 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
1219 initialising utf16.
1220
1221 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
1222
1223 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
1224 comment. Add an extra layer of quotation, requiring the output of
1225 this function to be used in a printf format string.
1226 (gettext_printf): New function.
1227 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
1228 Extract translatable strings from here-documents and use a temporary
1229 variable instead, so that xgettext can find them.
1230 * util/grub.d/10_kfreebsd.in: Likewise.
1231 * util/grub.d/10_linux.in: Likewise.
1232 * util/grub.d/20_linux_xen.in: Likewise.
1233
1234 * po/grub.d.sed: New file.
1235 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
1236 arguments. Set c-format flags on all strings extracted from
1237 util/grub.d/ (xgettext refuses to include these itself for strings
1238 it extracted from a shell file, but these really are c-format).
1239
1240 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
1241
1242 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
1243 Avoid next pointing to nowhere.
1244
1245 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
1246
1247 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
1248 rather than assuming than rootblock is exactly in the middle.
1249 (grub_affs_label): Likewise.
1250
1251 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
1252
1253 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
1254 reserved_first_sector to 0.
1255 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
1256 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
1257 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
1258
1259 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
1260
1261 Fix handling of UTF-16 UDF labels.
1262
1263 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
1264 (read_string): .. here.
1265 (grub_udf_label): Use read_string.
1266
1267 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
1268
1269 * grub-core/normal/menu_entry.c (run): Execute commands from menu
1270 editor under argument scope.
1271 Reported by: Jordan Uggla
1272
1273 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1274
1275 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
1276
1277 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
1278
1279 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
1280 line, and other keys scroll an entire page (previous handling was
1281 for \r and \n to scroll a page and other keys to scroll two lines).
1282
1283 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1284
1285 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
1286 Set ptrdest to correct get_physical_target_address rather than
1287 incorrect get_virtual_current_address.
1288
1289 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
1290
1291 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
1292 correct cat to grub_uint8_t * rather than grub_uint32_t *.
1293
1294 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
1295
1296 * .bzrignore: Ignore grub-core/rs_decoder.S.
1297
1298 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
1299
1300 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
1301 .mo/.mo.gz opening sequence to ...
1302 (grub_mofile_open_lang): ... here.
1303 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
1304 * util/grub.d/00_header.in (grub_lang): Include country part of
1305 locale.
1306 Reported by: Mario Limonciello.
1307
1308 2010-12-09 Robert Millan <rmh@gnu.org>
1309
1310 * NEWS: Document addition of ZFS support.
1311
1312 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
1313
1314 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
1315 rather than `/ 2', as the latter requires -Wa,--divide which would
1316 require bumping our minimum binutils version.
1317
1318 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
1319
1320 * util/grub-script-check.c (main): Print script line number on
1321 error.
1322
1323 2010-12-01 Robert Millan <rmh@gnu.org>
1324
1325 * grub-core/fs/zfs/zfs.c: New file.
1326 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
1327 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
1328 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
1329 * grub-core/fs/zfs/zfsinfo.c: Likewise.
1330
1331 * include/grub/zfs/dmu.h: Likewise.
1332 * include/grub/zfs/dmu_objset.h: Likewise.
1333 * include/grub/zfs/dnode.h: Likewise.
1334 * include/grub/zfs/dsl_dataset.h: Likewise.
1335 * include/grub/zfs/dsl_dir.h: Likewise.
1336 * include/grub/zfs/sa_impl.h: Likewise.
1337 * include/grub/zfs/spa.h: Likewise.
1338 * include/grub/zfs/uberblock_impl.h: Likewise.
1339 * include/grub/zfs/vdev_impl.h: Likewise.
1340 * include/grub/zfs/zap_impl.h: Likewise.
1341 * include/grub/zfs/zap_leaf.h: Likewise.
1342 * include/grub/zfs/zfs.h: Likewise.
1343 * include/grub/zfs/zfs_acl.h: Likewise.
1344 * include/grub/zfs/zfs_znode.h: Likewise.
1345 * include/grub/zfs/zil.h: Likewise.
1346 * include/grub/zfs/zio.h: Likewise.
1347 * include/grub/zfs/zio_checksum.h: Likewise.
1348
1349 * Makefile.util.def: Build ZFS into libgrubmods.
1350 * grub-core/Makefile.core.def: Build zfs.mod.
1351
1352 2010-11-30 Szymon Janc <szymon@janc.net.pl>
1353
1354 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
1355 variable.
1356 * grub-core/commands/wildcard.c (match_files): Likewise.
1357
1358 2010-11-30 Robert Millan <rmh@gnu.org>
1359
1360 * grub-core/loader/i386/bsd.c
1361 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
1362 whether kernel is loaded using grub_loader_is_loaded(), rather
1363 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
1364 certain error conditions.
1365
1366 2010-11-30 Robert Millan <rmh@gnu.org>
1367
1368 * grub-core/commands/echo.c: Include `<grub/term.h>'.
1369 (grub_cmd_echo): Call grub_refresh() after printing a message.
1370
1371 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1372
1373 Avoid using tricks for initialising endian variables.
1374
1375 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
1376 Make const.
1377 (GRUB_MOD_INIT): Don't byte-swap.
1378 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
1379 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
1380 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
1381 (grub_swap_bytes32_compile_time): Likewise.
1382 (grub_cpu_to_le32_compile_time): Likewise.
1383 (grub_cpu_to_le16_compile_time): Likewise.
1384
1385 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1386
1387 * util/grub-setup.c (setup): Stop recommending --force. People who
1388 understand the dangers of blocklists are able to find this option
1389 anyway and the ones who don't shouldn't use it anyway.
1390
1391 2010-11-26 Robert Millan <rmh@gnu.org>
1392
1393 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
1394 Update all users.
1395
1396 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
1397
1398 Fix LVM-on-RAID probing.
1399
1400 * util/grub-probe.c (probe): Remember which disk was detected as
1401 RAID (perhaps an LVM physical volume). Use that disk's raidname
1402 rather than that of the top-level disk.
1403
1404 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
1405
1406 Fix cmdline argument quotes for setparams command of menuentry
1407 definitions.
1408
1409 * grub-core/commands/menuentry.c (setparams_prefix): Use single
1410 quotes for arguments.
1411 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
1412 grub_strchrsub function instead.
1413
1414 * include/grub/misc.h (grub_strchrsub): New function.
1415
1416 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
1417
1418 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
1419 effort by skipping "." and ".." entries up-front.
1420 Suggested by: Michael Lazarev.
1421
1422 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
1423
1424 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
1425 ldflags to ldadd, to fix link line ordering.
1426 (none_decompress): Likewise.
1427
1428 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
1429
1430 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
1431 platforms.
1432 (grub-emu-lite): Remove kern/emu/cache.S.
1433
1434 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
1435
1436 * util/deviceiter.c (compare_devices): If the by-id link for a
1437 device couldn't be resolved, fall back to sorting by the by-id link
1438 rather than segfaulting.
1439 Reported and tested by: Daniel Mierswa.
1440
1441 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
1442
1443 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
1444 ldflags, to fix link line ordering.
1445
1446 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
1447
1448 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
1449 linkers are picky about this.
1450
1451 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
1452
1453 * grub-core/Makefile.am (command.lst): Adjust sed expression
1454 ordering so that extended and priority commands aren't treated as
1455 ordinary commands.
1456
1457 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
1458
1459 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
1460 Remove byte-swapping function calls, which are not valid in
1461 structure initialisers.
1462 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
1463 non-const.
1464 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
1465 grub_gpt_partition_type_bios_boot.
1466
1467 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
1468
1469 Fix test program build on GNU/kFreeBSD.
1470
1471 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
1472 $(LIBNVPAIR)' library dependencies.
1473
1474 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
1475
1476 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
1477
1478 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
1479
1480 * util/grub-install.in: Remove excessive quoting that broke
1481 installations to RAID devices.
1482
1483 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
1484
1485 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
1486 bootloader version instead of 0.
1487
1488 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
1489
1490 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
1491 warning.
1492
1493 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
1494
1495 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
1496 retrieve the metadat sector if size isn't known.
1497 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
1498
1499 2010-11-18 Robert Millan <rmh@gnu.org>
1500
1501 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
1502 with grub_memcmp().
1503
1504 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1505
1506 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
1507 arrow.
1508 Reported by: Jordan Uggla.
1509
1510 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1511
1512 Make better UTF compliant.
1513
1514 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
1515 sequences as incorrect.
1516 (grub_is_valid_utf8): Likewise.
1517 (grub_utf8_to_ucs4): Likewise.
1518 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
1519 (grub_ucs4_to_utf8_alloc): Likewise.
1520 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
1521
1522 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1523
1524 Make legacy_source behave like source.
1525
1526 * grub-core/commands/legacycfg.c (legacy_file): Don't call
1527 grub_show_menu.
1528 (grub_cmd_legacy_source): Call grub_show_menu if needed.
1529
1530 2010-11-16 Colin Watson <cjwatson@debian.org>
1531
1532 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
1533 (-Wunused implies -Wunused-parameter, but not vice versa).
1534
1535 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
1536
1537 * configure.ac: Make error messages less confusing by testing for
1538 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
1539 accepted, but produces a diagnostic if something else is wrong).
1540
1541 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
1542
1543 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
1544 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
1545 (now unused).
1546 (grub_keyboard_controller_init)
1547 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
1548 read the initial state since controller isn't inited yet.
1549
1550 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
1551
1552 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
1553 allocate_regbeg may need to create new chunk header.
1554
1555 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1556
1557 Fix quoting in legacy parser.
1558
1559 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
1560 single quotes.
1561 (grub_legacy_parse): Likewise.
1562 Reported by: Jordan Uggla.
1563 Tested by: Jordan Uggla.
1564
1565 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1566
1567 Don't add -lgcc on i386 and x86_64.
1568
1569 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
1570 * conf/Makefile.common (LDADD_KERNEL): Likewise.
1571 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
1572
1573 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1574
1575 * configure.ac: Add -Wno-trampolines when supported.
1576
1577 2010-11-14 Modestas Vainius <modax@debian.org>
1578
1579 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
1580 fakeraid.
1581
1582 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
1583
1584 Add generic logical block size support for UDF.
1585
1586 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
1587 (GRUB_UDF_BLKSZ): Removed.
1588 (struct grub_udf_data): New field "lbshift" to hold the logical block
1589 size of the file system in log2 format. All users updated.
1590 (sblocklist): Change type to unsigned.
1591 (grub_udf_mount): Change type of "sblklist" to unsigned.
1592 Move AVDP search before VRS recognition, because the latter requires
1593 knowledge of the logical block size, which is detected during the
1594 former.
1595 Detect and validate logical block size during AVDP search, adding
1596 support for block sizes 512, 1024 and 4096.
1597 Make VRS recognition independent of block size.
1598
1599 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
1600
1601 Properly handle deleted files on UDF.
1602
1603 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
1604 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
1605 set.
1606
1607 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
1608
1609 Support reading files larger than 2 GiB.
1610
1611 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
1612 "offset" to grub_off_t.
1613 (grub_udf_read_file): Likewise for parameter "pos".
1614
1615 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1616
1617 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
1618 unavailable.
1619 (Simple configuration): Refer to Changes from GRUB Legacy about
1620 save_env availability.
1621
1622 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1623
1624 * util/grub-install.in: Ignore empty partition table detection
1625 instead of trying to include part_ module.
1626
1627 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1628
1629 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
1630 LVM on RAID support.
1631
1632 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1633
1634 Properly define WORDS_BIGENDIAN in wrapped environments.
1635
1636 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
1637 definition.
1638 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
1639
1640 Reported by: Manoel Rebelo Abranches.
1641 Tested by: Manoel Rebelo Abranches.
1642
1643 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1644
1645 * util/grub-mkconfig.in: Fix quoting.
1646
1647 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1648
1649 Support big ext2 files.
1650
1651 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
1652 (grub_ext2_read_block): Support triple indirect blocks.
1653 (grub_ext2_read_file): Use 64-bit types and read size_high.
1654 (grub_ext2_open): Read size_high.
1655 Reported by: Ximin Luo.
1656 Tested by: Manoel Rebelo Abranches.
1657
1658 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1659
1660 * util/grub-install.in: Handle filenames containing spaces.
1661 Reported by: Jordan Uggla.
1662 Tested by: Jordan Uggla.
1663
1664 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1665
1666 * util/grub-mkconfig.in (grub_script_check): New variable.
1667 Use grub_script_check instead of grub-script-check.
1668 Reported by: Barry Jackson.
1669
1670 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1671
1672 * docs/grub.texi (menu): Correct the order.
1673 Reported by: D. Hugh Redelmeier.
1674
1675 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1676
1677 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
1678 jump.
1679
1680 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
1681
1682 * include/grub/elfload.h (grub_elf32_size): New parameter.
1683 All users updated.
1684 Return maximum segments alignment.
1685 (grub_elf64_size): Likewise.
1686 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
1687 Return maximum segments alignment.
1688 (grub_elf64_size): Likewise.
1689 * grub-core/loader/powerpc/ieee1275/linux.c:
1690 (grub_linux_claimmap_iterate): New function. Uses the
1691 "available" property in the "memory" node for memory allocation
1692 for kernel in the PowerPC loader.
1693 (grub_linux_load32): Correctly find linux entry point offset.
1694 (grub_linux_load64): Likewise.
1695
1696 2010-11-07 Robert Millan <rmh@gnu.org>
1697
1698 On mips-yeeloong, build with -march=loongson2f when this flag is
1699 available (GCC >= 4.4).
1700 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
1701 `-march=mips3'.
1702 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
1703 or otherwise add -march=mips3.
1704
1705 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
1706
1707 Suppress shell expansion on echo '*' and echo "*" like cases.
1708 Reported by: Jordan Uggla.
1709
1710 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
1711 string arguments before shell expansion.
1712 * tests/grub_cmd_echo.in: New testcases.
1713
1714 2010-11-07 Robert Millan <rmh@gnu.org>
1715
1716 * conf/mips-qemu-mips.rmk: Remove stale file from previous
1717 transition.
1718
1719 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1720
1721 * grub-core/kern/emu/hostdisk.c
1722 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
1723
1724 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
1725
1726 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
1727 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
1728 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
1729
1730 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
1731
1732 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
1733
1734 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
1735
1736 * util/grub-install.in: Replace useless recomendation to pass
1737 --modules with a recomendation to report a bug.
1738
1739 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
1740
1741 Properly register serial terminfo.
1742 Reported by: Jordan Uggla
1743
1744 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
1745 const.
1746 (grub_serial_terminfo_output_template): Likewise.
1747 (grub_cmd_serial): Register "serial" with terminfo.
1748 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
1749 grub_serial_terminfo_output.
1750
1751 2010-11-05 Robert Millan <rmh@gnu.org>
1752
1753 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
1754 needed).
1755
1756 2010-11-05 Robert Millan <rmh@gnu.org>
1757
1758 On Yeeloong, pass machine type information to Linux.
1759
1760 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
1761 (LOONGSON_MACHTYPE): New macro, set to
1762 "machtype=lemote-yeeloong-2f-8.9inches".
1763 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
1764 additional argument to Linux.
1765
1766 2010-11-04 Robert Millan <rmh@gnu.org>
1767
1768 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
1769 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
1770 (its SATA disks are detected as slaveless IDE master drives on
1771 kFreeBSD).
1772 Reported by Carsten Aulbert.
1773
1774 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
1775
1776 * util/bin2h.c (main): Fix spelling error in generated output.
1777
1778 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
1779
1780 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
1781
1782 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1783
1784 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
1785 vga= option is supplied.
1786
1787 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1788
1789 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
1790 * util/grub.d/10_kfreebsd.in: Likewise.
1791 * util/grub.d/10_linux.in: Likewise.
1792 * util/grub.d/20_linux_xen.in: Likewise.
1793
1794 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1795
1796 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
1797 argument as an argument to no-argument option.
1798
1799 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1800
1801 * util/grub.d/10_linux.in: Add missing load_video with explicit
1802 GRUB_GFXPAYLOAD_LINUX.
1803
1804 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1805
1806 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
1807
1808 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1809
1810 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
1811 elements with invlid index.
1812 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
1813 * grub-core/disk/raid.c (insert_array): Automatically reallocate
1814 members.
1815 * include/grub/raid.h (grub_raid_member): New struct.
1816 (grub_raid_array): Transform devices and start_sector into usage of
1817 grub_raid_member. All users updated
1818 (allocated_devs): New member.
1819
1820 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1821
1822 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
1823 is modified
1824
1825 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
1826
1827 NetBSD build fix for getline function conflict from gnulib.
1828
1829 * Makefile.util.def (libgrubkern.a): New library for grub kernel
1830 components that depend on gnulib headers.
1831 (libgrubmods.a): Renamed from earlier libgrub.a.
1832 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
1833
1834 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1835
1836 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
1837 install rather than creating a broken install.
1838
1839 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1840
1841 * util/grub-setup.c (argp): Remove misleading example of installing to
1842 a partition.
1843
1844 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1845
1846 * util/grub-setup.c (setup): Clarify the error message.
1847
1848 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1849
1850 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
1851
1852 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
1853
1854 * grub-core/kern/emu/misc.c
1855 (grub_make_system_path_relative_to_its_root)
1856 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
1857
1858 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
1859
1860 * grub-core/kern/emu/misc.c
1861 (grub_make_system_path_relative_to_its_root): Revert r2882.
1862
1863 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
1864
1865 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
1866 useless field head. All users updated.
1867 (free_subchunk): Correct handling of IN_REGION subchunk.
1868
1869 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
1870
1871 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
1872 (Supported kernels): Likewise.
1873
1874 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
1875
1876 Make mktemp invocations portable.
1877
1878 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
1879 exit if mktemp fails.
1880 * tests/grub_script_blockarg.in: Likewise.
1881 * tests/partmap_test.in: Likewise.
1882 * tests/util/grub-shell-tester.in: Likewise.
1883 * tests/util/grub-shell.in: Likewise.
1884 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1885 * Makefile.am: Likewise, and chain shell commands with `&&'
1886 instead of ';'.
1887 * util/grub-mkrescue.in: Use the same explicit template as above, and
1888 exit if mktemp fails.
1889
1890 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
1891
1892 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
1893 Linux kernel, reported by Dennis Schridde.
1894
1895 2010-10-17 Szymon Janc <szymon@janc.net.pl>
1896
1897 * grub-core/normal/auth.c (grub_auth_check_authentication):
1898 Set-but-not-used variable removed.
1899
1900 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1901
1902 * docs/grub.texi (GNU/Linux): Document APM unavailability with
1903 32-bit linux protocol.
1904
1905 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1906
1907 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
1908 cursor shape for sanity.
1909
1910 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1911
1912 * docs/grub.texi (Installation): Document buggy BIOS install.
1913
1914 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1915
1916 * docs/grub.texi (Installation): Indent.
1917
1918 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1919
1920 * util/grub-setup.c (setup): New parameter allow_floppy.
1921 (arguments): New member allow_floppy.
1922 (argp_parser): Handle --allow-floppy.
1923 (main): Pass allow_floppy.
1924 * util/grub-install.in: New option --allow-floppy passed though to
1925 grub-setup.
1926
1927 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1928
1929 * util/grub-install.in: Handle partitionless disks.
1930
1931 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1932
1933 * util/grub-setup.c (setup): Don't clean blocklists before readability
1934 verfification.
1935
1936 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1937
1938 * docs/grub.texi (Installation): Document embedding zone. Remove
1939 obsolete grub-install example.
1940
1941 2010-10-16 Szymon Janc <szymon@janc.net.pl>
1942
1943 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
1944 Set-but-not-used variable ifdef'ed.
1945 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
1946 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
1947 variable removed.
1948 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
1949 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
1950 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
1951 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
1952 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
1953 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
1954 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
1955 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
1956 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
1957 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
1958 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
1959 Likewise.
1960
1961 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1962
1963 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
1964 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
1965 enum value.
1966
1967 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1968
1969 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
1970 synonym to _S5_. Needed for some DSDTs.
1971
1972 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1973
1974 Userspace ACPI parser debugging.
1975
1976 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
1977 headers and add relevant defines. Don't include standard headers.
1978 (main) [GRUB_DSDT_TEST]: New function.
1979 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
1980 Don't declare functions.
1981
1982 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1983
1984 Remove dead grub_efi_mm_fini.
1985
1986 * grub-core/kern/efi/mm.c (allocated_page): Removed.
1987 (ALLOCATED_PAGES_SIZE): Likewise.
1988 (MAX_ALLOCATED_PAGES): Likewise.
1989 (allocated_pages): Likewise.
1990 (grub_efi_allocate_pages): Don't record allocated pages.
1991 (grub_efi_free_pages): Likewise.
1992 (grub_efi_mm_init): Likewise.
1993 (grub_efi_mm_fini): Removed.
1994
1995 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1996
1997 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
1998 (grub_efi_mm_init): Take into account the memory map size increase.
1999
2000 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2001
2002 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
2003 (serial_hw_put): Wait based on real time rather than port reads. Don't
2004 roken ports.
2005 * include/grub/serial.h (grub_serial_port): New field broken.
2006
2007 2010-10-16 Robert Millan <rmh@gnu.org>
2008
2009 * grub-core/kern/emu/misc.c
2010 (grub_make_system_path_relative_to_its_root): Fix premature return
2011 when processing non-root ZFS filesystems.
2012 Reported by Sergio Talens-Oliag.
2013
2014 2010-10-15 Robert Millan <rmh@gnu.org>
2015
2016 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
2017 guarantee compressed ones are processed first.
2018
2019 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2020
2021 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
2022 grub_efiemu_autocore.
2023
2024 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2025
2026 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
2027 rather than 0x1b.
2028 (grub_console_getkey): Use correct jae opcode rather than ja.
2029
2030 2010-10-12 Robert Millan <rmh@gnu.org>
2031
2032 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
2033 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
2034 variable. All references updated.
2035
2036 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
2037
2038 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2039
2040 Correctly distinguish mdraid flavours.
2041
2042 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
2043 (insert_array): New argument raid.
2044 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
2045 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
2046 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
2047
2048 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
2049
2050 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
2051 handling of special keys.
2052
2053 2010-10-02 Aleš Nesrsta <starous@volny.cz>
2054
2055 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
2056 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
2057
2058 2010-10-02 Aleš Nesrsta <starous@volny.cz>
2059
2060 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
2061 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
2062 users updated.
2063 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
2064 Use right endpoint when querying descriptor.
2065
2066 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
2067
2068 Clear out 0x80 color bit on EFI.
2069 Tested by: decoder
2070 Reported by: decoder and meta tech.
2071
2072 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
2073 (grub_console_setcolorstate): Clear out 0x80 bit.
2074 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
2075 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
2076 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
2077
2078 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
2079
2080 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
2081 Set to "auto".
2082
2083 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
2084
2085 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
2086 mo_file after freeing.
2087
2088 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
2089
2090 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
2091
2092 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
2093
2094 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
2095 flags.
2096
2097 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
2098
2099 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
2100 usage.
2101
2102 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
2103
2104 Put terminfo into core on ieee1275 and yeeloong (needed for console).
2105
2106 * gentpl.py: New groups terminfoinkernel and terminfomodule.
2107 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
2108 and terminfo.h when needed.
2109 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
2110 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
2111 (terminfo): Enable only on terminfokernel.
2112 (extcmd): Likewise.
2113 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
2114 * include/grub/lib/arg.h: Likewise.
2115 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
2116 incorrect usage of ->.
2117
2118 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
2119
2120 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
2121 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
2122
2123 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
2124
2125 Fix coreboot compilation.
2126
2127 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
2128 Take VBE info into account even if only text is supported.
2129 (fill_vbe_info): Take into account the case when only VGA text
2130 is supported.
2131 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
2132 on coreboot, multiboot and qemu.
2133
2134 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
2135
2136 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
2137 debug messages.
2138 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
2139
2140 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
2141
2142 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
2143 parameters.
2144
2145 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
2146
2147 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
2148 if they were BSD-style.
2149
2150 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
2151
2152 * grub-core/boot/i386/pc/lnxboot.S: Replace
2153 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
2154 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
2155
2156 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
2157
2158 Write embedding zone using Reed-Solomon.
2159
2160 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
2161 * grub-core/Makefile.am (rs_decoder.S): New target.
2162 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
2163 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
2164 (multiboot): Move to RS part.
2165 (post_reed_solomon): New label.
2166 (grub_boot_drive): Move to non-RS part since it's modified in memory
2167 on boot.
2168 Include rs_decoder.S.
2169 * grub-core/lib/reed_solomon.c: New file.
2170 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
2171 New definition.
2172 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
2173 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
2174 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
2175 * include/grub/partition.h (grub_partition_map): Change prototype of
2176 embed to allow returning additional sectors.
2177 * include/grub/reed_solomon.h: New file.
2178 * util/grub-setup.c (setup): Handle Reed-Solomon.
2179
2180 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
2181
2182 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
2183 i386 and x86-64 definedness tests.
2184
2185 2010-09-27 Yves Blusseau <blusseau@zetam.org>
2186
2187 Fix generation of kernel_syms.lst
2188
2189 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
2190 ASM_PREFIX
2191
2192 2010-09-26 Robert Millan <rmh@gnu.org>
2193
2194 Support degraded ZFS arrays in "grub-probe -t device" resolution.
2195
2196 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
2197 the pool is an array of devices, iterate through it and return the
2198 first device that passes a stat() test (instead of blindly returning
2199 the first one).
2200
2201 2010-09-26 Robert Millan <rmh@gnu.org>
2202
2203 Build fixes for GNU/kFreeBSD.
2204
2205 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
2206 to programs that require ZFS conversion.
2207 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
2208 kernels that don't have FLOPPY_MAJOR.
2209
2210 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
2211
2212 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
2213
2214 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
2215
2216 Fix grub-emu build.
2217
2218 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
2219 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
2220 mdraid09 and mdraid1x.
2221
2222 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
2223
2224 Re-enable grub-extras.
2225
2226 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
2227 avoid confusing Automake. Run autogen only twice, once for the top
2228 level and once for grub-core. Add Makefile.util.def and
2229 Makefile.core.def from extra modules to the appropriate autogen
2230 invocations. If Makefile.common exists in an extra module, include
2231 it in both Makefile.util.am and grub-core/Makefile.core.am;
2232 similarly, include any Makefile.util.common file in Makefile.util.am
2233 and any Makefile.core.common file in grub-core/Makefile.core.am.
2234 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
2235 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
2236 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
2237 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
2238
2239 * gentpl.py (gvar_add): Turn GVARS into a set.
2240 (global_variable_initializers): Sort global variables on output.
2241 (vars_init): New function.
2242 (first_time): Likewise.
2243 (library): Ensure that non-global variable initialisations are
2244 emitted before the first time we emit code for a library block.
2245 Append to variables rather than setting them. Only emit
2246 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
2247 each conditional path.
2248 (program): installdir() emits an Autogen macro, so must be passed to
2249 var_add rather than gvar_add.
2250 (data): Likewise.
2251 (script): Likewise.
2252 (rules): New function, centralising handling for different target
2253 types. Set up Guile association lists for first_time and vars_init,
2254 and send most output to a diversion so that variable initialisations
2255 can be emitted first.
2256 (module_rules): Use new rules function.
2257 (kernel_rules): Likewise.
2258 (image_rules): Likewise.
2259 (library_rules): Likewise.
2260 (program_rules): Likewise.
2261 (script_rules): Likewise.
2262 (data_rules): Likewise.
2263
2264 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
2265
2266 * .bzrignore: Add contrib and grub-core/contrib. Remove
2267 grub-core/Makefile.gcry.am.
2268
2269 2010-09-24 Yves Blusseau <blusseau@zetam.org>
2270
2271 * grub-core/lib/LzFind.c: Add missing include.
2272 * grub-core/lib/LzmaEnc.c: Likewise.
2273 * grub-core/script/lexer.c: Likewise.
2274 * grub-core/script/yylex.l: Likewise.
2275 * util/grub-macho2img.c: Likewise.
2276 * util/grub-menulst2cfg.c: Likewise.
2277 * util/grub-mklayout.c: Likewise.
2278 * util/grub-mkpasswd-pbkdf2.c
2279 * util/grub-mkrelpath.c: Likewise.
2280 * util/resolve.c: Likewise.
2281
2282 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
2283
2284 * Makefile.util.def (example_unit_test): Add
2285 grub-core/gnulib/libgnu.a.
2286
2287 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
2288
2289 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
2290
2291 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2292
2293 Support xz compression on yeeloong.
2294
2295 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
2296 * configure.ac: Check for LZMA.
2297 * grub-core/Makefile.core.def (xz_decompress): New target.
2298 (none_decompress): Likewise.
2299 * grub-core/boot/decompressor/minilib.c: New file.
2300 * grub-core/boot/decompressor/none.c: Likewise.
2301 * grub-core/boot/decompressor/xz.c: Likewise.
2302 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
2303 * grub-core/kern/mips/cache_flush.S: Likewise.
2304 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
2305 * grub-core/kern/mips/startup.S: Move first stage to ...
2306 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
2307 nomacro.
2308 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
2309 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
2310 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
2311 Allocate statically.
2312 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
2313 Allocate statically or use scratch. Don't check CRC32.
2314 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
2315 Allocate statically. Don't check CRC32.
2316 * include/grub/decompressor.h: New file.
2317 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
2318 Removed.
2319 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
2320 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
2321 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
2322 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
2323 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
2324 * util/grub-mkimage.c (grub_compression_t): New type.
2325 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
2326 (image_target_desc): New field default_compression.
2327 (image_targets): Adjust yeeloong targets.
2328 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
2329 (compress_kernel): New parameter comp.
2330 (generate_image): Likewise. Handle new compression case.
2331 (options): New option --compression
2332 (help): Likewise.
2333 (main): Handle new option.
2334
2335 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
2336
2337 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
2338
2339 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
2340
2341 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
2342 typo in __i386__ conditional.
2343
2344 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2345
2346 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
2347 include.
2348
2349 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2350
2351 Implement EFI and ACPI multiboot2 extensions.
2352
2353 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
2354 new tags as supported.
2355 (acpiv2_size): New function.
2356 (grub_multiboot_get_mbi_size): Take new tags into account.
2357 (grub_multiboot_make_mbi): Add new tags.
2358 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
2359
2360 2010-09-21 Aleš Nesrsta <starous@volny.cz>
2361
2362 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
2363 Added missing configuration of USB device.
2364
2365 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2366
2367 * grub-core/normal/menu_entry.c (run): Make sure we always return
2368 a value.
2369
2370 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2371
2372 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
2373 NumberOfPages is UINT64 according to the UEFI specification, not
2374 UINTN. Fix printf format.
2375
2376 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2377
2378 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
2379 `err' to grub_usb_err_t.
2380 Reported and tested by: KESHAV P.R.
2381
2382 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2383
2384 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
2385 tpart non-const, so that we can assign to it. (Since this is a
2386 typedef, the constness refers to the pointer rather than what it
2387 points to.)
2388
2389 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2390
2391 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
2392 $(top_srcdir)/grub-core/gnulib as well as
2393 $(top_builddir)/grub-core/gnulib.
2394 Reported by: KESHAV P.R.
2395
2396 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2397
2398 * util/grub-install.in: Fix the bootloader ID option to be
2399 consistently --bootloader-id, not --bootloader_id.
2400 Reported by: KESHAV P.R.
2401
2402 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2403
2404 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
2405 check hash checksum." consistently translatable.
2406
2407 2010-09-21 Yves Blusseau <blusseau@zetam.org>
2408
2409 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
2410 $(top_builddir).
2411
2412 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2413
2414 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
2415 (GRUB_MOD_INIT): Register sha1sum command.
2416 (GRUB_MOD_FINI): Unregister sha1sum command.
2417
2418 2010-09-21 Yves Blusseau <blusseau@zetam.org>
2419
2420 Keep boot and grub directory names in sync with utils scripts
2421
2422 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
2423 * config.h.in: Add previous macros.
2424 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
2425 * util/grub-install.in: Use $bootdir and $grubdir variables.
2426
2427 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2428
2429 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
2430 convert partition names to disk names if the new `convert' parameter
2431 is set.
2432 (grub_util_biosdisk_get_grub_dev): If opening the disk device
2433 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
2434 disk in its own right. This can happen with Xen disk images.
2435
2436 2010-09-21 Yves Blusseau <blusseau@zetam.org>
2437
2438 * util/grub-editenv.c: Update strings to avoid warnings when generating
2439 grub.pot file.
2440 * util/grub-setup.c: Likewise.
2441
2442 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
2443
2444 * configure.ac: Change version to 1.99~beta0.
2445
2446 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
2447
2448 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
2449 Add BADRAM.
2450 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
2451 Likewise.
2452 * include/multiboot.h: Resynced with specification.
2453 * include/multiboot2.h: Likewise.
2454
2455 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2456
2457 Fix po directory handling.
2458
2459 * configure.ac: Create po/Makefile.in rather than po/Makefile.
2460 * grub-core/gnulib/Makefile.am: Import gettext module.
2461 * m4/gnulib-cache.m4: Likewise.
2462 * m4/gnulib-comp.m4: Likewise.
2463 * m4/gettext.m4: New file, from gnulib.
2464 * m4/glibc2.m4: Likewise.
2465 * m4/iconv.m4: Likewise.
2466 * m4/intdiv0.m4: Likewise.
2467 * m4/intl.m4: Likewise.
2468 * m4/intldir.m4: Likewise.
2469 * m4/intlmacosx.m4: Likewise.
2470 * m4/intmax.m4: Likewise.
2471 * m4/inttypes-pri.m4: Likewise.
2472 * m4/lcmessage.m4: Likewise.
2473 * m4/lib-ld.m4: Likewise.
2474 * m4/lib-link.m4: Likewise.
2475 * m4/lib-prefix.m4: Likewise.
2476 * m4/lock.m4: Likewise.
2477 * m4/nls.m4: Likewise.
2478 * m4/po.m4: Likewise.
2479 * m4/printf-posix.m4: Likewise.
2480 * m4/progtest.m4: Likewise.
2481 * m4/threadlib.m4: Likewise.
2482 * m4/uintmax_t.m4: Likewise.
2483 * m4/visibility.m4: Likewise.
2484 * po/Makefile.am: Remove.
2485 * po/Makefile.in.in: New file, from gettext.
2486 ($(DOMAIN).pot-update): Support POTFILES-shell.
2487 * po/Makevars: New file.
2488 * po/POTFILES-shell: Rename to ...
2489 * po/POTFILES-shell.in: ... this. Update.
2490 * po/POTFILES: Rename to ...
2491 * po/POTFILES.in: ... this. Update.
2492 * po/Rules-quot: New file, from gettext.
2493 * po/boldquot.sed: Likewise.
2494 * po/en@boldquot.header: Likewise.
2495 * po/en@quot.header: Likewise.
2496 * po/insert-header.sin: Likewise.
2497 * po/quot.sed: Likewise.
2498 * po/remove-potcdate.sin: Likewise.
2499
2500 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2501
2502 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
2503
2504 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2505
2506 * util/grub.d/20_linux_xen.in: Use submenus.
2507
2508 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2509
2510 Support submenus.
2511
2512 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
2513 parameter submenu. All users updated.
2514 * grub-core/normal/main.c (free_menu): Rename to ...
2515 (grub_normal_free_menu): ... this. Made global.
2516 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
2517 if requested.
2518 * grub-core/normal/menu_entry.c (screen): New field submenu.
2519 (make_screen): Set submenu.
2520 (run): Open new context if requested.
2521 * include/grub/menu.h (grub_menu_entry): New field submenu.
2522 * include/grub/normal.h (grub_normal_free_menu): New proto.
2523
2524 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2525
2526 Menu entries extractor.
2527
2528 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
2529 variants.
2530 (GRUB_MOD_INIT): Register new variants.
2531 (GRUB_MOD_FINI): Unregister new variants.
2532 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
2533 into grub_cmd_legacy_source.
2534 (grub_cmd_legacy_source): Implement extractor variants.
2535 (GRUB_MOD_INIT): Register new variants.
2536 (GRUB_MOD_FINI): Unregister new variants.
2537 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
2538 as an extractor.
2539 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
2540 search as an extractor.
2541 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
2542 test as an extractor.
2543 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
2544 as an extractor.
2545 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
2546 (grub_env_new_context): New function.
2547 (grub_env_context_open): Likewise.
2548 (grub_env_extractor_open): Likewise.
2549 (grub_env_extractor_close): Likewise.
2550 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
2551 grub_extractor_level.
2552 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
2553 * include/grub/env.h (grub_env_extractor_open): New proto.
2554 (grub_env_extractor_close): Likewise.
2555 * include/grub/normal.h (grub_extractor_level): New external variable.
2556
2557 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2558
2559 Make cutmem accept a region specification.
2560 Suggested by: Samuel Thibault
2561
2562 * grub-core/mmap/mmap.c (parsemem): New function.
2563 (grub_cmd_cutmem): Handle new arguments.
2564
2565 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2566
2567 New command cutmem.
2568
2569 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
2570 (GRUB_MOD_INIT): Register new command.
2571 (GRUB_MOD_FINI): Unregister new command.
2572
2573 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2574
2575 Support some annoying BSD and Minix subpartitions.
2576
2577 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
2578 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
2579 Properly handle concatenation.
2580 * grub-core/kern/device.c (grub_device_iterate): Likewise.
2581 * grub-core/normal/completion.c (iterate_partition): Likewise.
2582 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
2583 contain partition. All users updated.
2584 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
2585 struct.
2586 (grub_openbsdlabel_partition_map): Likewise.
2587 (bsdlabel_partition_map_iterate): Rename to ..
2588 (iterate_real): ... this. New arguments sector, freebsd and pmap.
2589 (bsdlabel_partition_map_iterate): New function.
2590 (netopenbsdlabel_partition_map_iterate): Likewise.
2591 (netbsdlabel_partition_map_iterate): Likewise.
2592 (openbsdlabel_partition_map_iterate): Likewise.
2593 (GRUB_MOD_INIT): Register new partmaps.
2594 (GRUB_MOD_FINI): Unregister new partmaps.
2595 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
2596 (grub_partition_msdos_iterate): ... this. All users updated.
2597 Don't support embedding other than in a minix partition.
2598 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
2599 proto.
2600 * include/grub/partition.h (grub_partition): New field msdostype.
2601 * util/grub-install.in: Handle openbsd and netbsd types being in
2602 part_bsd module.
2603
2604 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2605
2606 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
2607
2608 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
2609 * grub-core/Makefile.core.def (mdraid): Renamed to ...
2610 (mdraid09): ... this.
2611 (mdraid1x): New module.
2612 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
2613 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
2614
2615 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2616
2617 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
2618 vsprintf.
2619
2620 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
2621
2622 * grub-core/commands/efi/lsefimmap.c: Correct header.
2623 * NEWS: Update.
2624
2625 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
2626
2627 * util/grub-editenv.c (argp_parser): Don't pass translated strings
2628 as printf format strings; the translations might contain '%' which
2629 could cause a crash.
2630 (main): Likewise.
2631 * util/grub-fstest.c (argp_parser): Likewise.
2632 * util/grub-setup.c (argp_parser): Likewise.
2633 (main): Likewise.
2634
2635 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2636
2637 Use argp in grub-fstest.
2638
2639 * util/grub-fstest.c: Don't include getopt.h.
2640 Include argp.h.
2641 (root): New variable.
2642 (args_count): Likewise.
2643 (nparm): Likewise.
2644 (num_disks): Likewise.
2645 (images): Likewise.
2646 (cmd): Likewise.
2647 (debug_str): Likewise.
2648 (args): Likewise.
2649 (options): Transformed to argp.
2650 (usage): Removed.
2651 (main): Split argument parsing into ...
2652 (argp_parser): ... this. Changed to argp format.
2653 (argp): New variable.
2654 (main): Use argp_parse.
2655
2656 2010-09-20 Tristan Gingold <gingold@free.fr>
2657 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
2658 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2659
2660 * grub-core/commands/efi/lsefimmap.c: New file.
2661 * grub-core/Makefile.core.def (lsefimmap): New module.
2662 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
2663
2664 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2665
2666 Pause the execution (10s max) if any errors are displayed so the user
2667 has a chance to see them.
2668
2669 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
2670 (grub_print_error): Increment grub_err_printed_errors.
2671 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
2672 execution if any errors were displayed.
2673 (show_menu): Remove old code for pause.
2674 * grub-core/normal/menu_entry.c (run): Likewise.
2675 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
2676 users updated.
2677 (grub_normal_get_char_counter): Likewise.
2678 * include/grub/err.h (grub_err_printed_errors): New external variable.
2679 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
2680
2681 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2682
2683 Support multiboot VBE info.
2684
2685 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
2686 Take VBE info into account.
2687 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
2688 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
2689 Call fill_vbe_info when appropriate.
2690 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
2691 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
2692 as supported.
2693 (grub_multiboot_get_mbi_size): Take new tags into account.
2694 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
2695 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
2696 Call fill_vbe_tag when appropriate.
2697 (grub_multiboot_make_mbi): Properly align tags.
2698 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
2699 function.
2700 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
2701 proto.
2702 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
2703
2704 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2705
2706 Suport manual terminal geometry specification.
2707
2708 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
2709 Save state in grub_ofconsole_terminfo_output.
2710 (grub_ofconsole_term): Use grub_terminfo_getwh.
2711 (grub_ofconsole_getwh): Removed.
2712 * grub-core/term/serial.c (grub_serial_getwh): Removed.
2713 (grub_serial_term): Use grub_terminfo_getwh.
2714 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
2715 (options): New struct.
2716 (OPTION_*): New enum.
2717 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
2718 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
2719 width and height.
2720 (grub_terminfo_getwh): New proto.
2721 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
2722
2723 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2724
2725 Handle legacy "terminal" command.
2726
2727 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
2728 and FLAG_TERMINAL.
2729 (legacy_commands): Add terminal and title.
2730 (grub_legacy_parse): Handle terminal. Simplify title handling.
2731
2732 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2733
2734 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
2735 parameters overflow.
2736
2737 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
2738
2739 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
2740 widthspec.h.
2741
2742 * docs/grub.texi (Shell-like scripting): Document `!'.
2743 (Network): Simplify using new i386-pc-pxe format. Mention
2744 grub-mknetdir.
2745
2746 * NEWS: Update.
2747
2748 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
2749
2750 * Makefile.am (SUBDIRS): Restore "."; it's important to force
2751 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
2752 when needed.
2753
2754 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
2755
2756 * grub-core/commands/efi/lsefisystab.c: Correct header.
2757 * grub-core/commands/efi/lssal.c: Likewise.
2758 * grub-core/commands/testload.c: Likewise.
2759
2760 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
2761
2762 * util/grub-mkrescue.in: Add explicit root argument to --set to
2763 prevent the UUID being interpreted as an argument to --set (matches
2764 previous change to prepare_grub_to_access_device).
2765
2766 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
2767
2768 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
2769 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
2770 the verbosity of later #ifs.
2771 (find_partition_start): Define this function on FreeBSD too.
2772 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
2773 function.
2774 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
2775 on FreeBSD.
2776
2777 2010-09-20 Yves Blusseau <blusseau@zetam.org>
2778
2779 * util/grub-editenv.c: Use argp instead of getopt.
2780
2781 2010-09-20 Yves Blusseau <blusseau@zetam.org>
2782
2783 * util/grub-setup.c: Use argp instead of getopt.
2784
2785 2010-09-20 Yves Blusseau <blusseau@zetam.org>
2786
2787 Use gnulib-tool to create gnulib source files.
2788
2789 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
2790 grub-core/gnulib directories
2791 * .bzignore: Add **/.deps and autogenerated gnulib files
2792 * configure.ac: Assign auxiliary directory to build-aux, add invocation
2793 of gnulib macros, add grub-core/gnulib/Makefile
2794 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
2795 include m4 directory to aclocal.
2796 * Makefile.util.def: Remove direct compilation of gnulib source files
2797 and use the new grub-core/gnulib/libgnu.a.
2798 * build-aux/config.rpath: move config.rpath from top directory to
2799 build-aux
2800 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
2801 in gnulib headers
2802 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
2803 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
2804 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
2805 header.
2806 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
2807 string.
2808
2809 2010-09-20 Yves Blusseau <blusseau@zetam.org>
2810
2811 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
2812 grub-core/genmod.sh and grub-core/gensyminfo.sh
2813
2814 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
2815
2816 Add a test for echo command options.
2817
2818 * tests/grub_cmd_echo.in: New test.
2819 * Makefile.util.def: Rules for new test.
2820
2821 2010-09-20 Szymon Janc <szymon@janc.net.pl>
2822
2823 Remove crc.mod and move crc command to hashsum.mod.
2824 Remove lib/crc.c - users updated to use gcrypt implementation.
2825
2826 * grub-core/commands/crc.c: Removed.
2827 * grub-core/Makefile.core.def (crc): Module removed.
2828 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
2829 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
2830 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
2831 * grub-core/lib/crc.c: Removed.
2832 * include/grub/lib/crc.h: Removed.
2833 * Makefile.util.def (crc): Remove lib/crc.c
2834 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
2835 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
2836 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
2837 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
2838 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
2839 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
2840
2841 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2842
2843 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
2844
2845 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2846
2847 Split config.h for util and core.
2848
2849 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
2850 (ADDR32): Likewise.
2851 (DATA32): Likewise.
2852 (BSS_START_SYMBOL): Likewise.
2853 (END_SYMBOL): Likewise.
2854 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
2855 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
2856 * config.h.in: New file.
2857 * configure.ac: Use config-util.h as config define file.
2858 Rename MACHINE into GRUB_MACHINE. All users updated.
2859 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
2860 updated.
2861 (NESTED_FUNC_ATTR): Likewise.
2862 Substitue new variables.
2863 (COND_HAVE_ASM_USCORE): New conditional.
2864 * grub-core/Makefile.am (ASM_PREFIX): New variable.
2865 (kernel_syms.lst): Use ASM_PREFIX.
2866 * grub-core/kern/emu/console.c: Include config-util.h.
2867 * grub-core/kern/emu/misc.c: Likewise.
2868 * grub-core/kern/emu/mm.c: Likewise.
2869 * include/grub/emu/misc.h: Likewise.
2870 * include/grub/libgcc.h: Likewise.
2871
2872 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2873
2874 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
2875 constants usage.
2876 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
2877 Fix GRUB_TERM_KEY_* constants usage.
2878 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
2879
2880 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2881
2882 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
2883 print pointer.
2884 * grub-core/bus/usb/uhci.c: Remove empty define.
2885 (grub_uhci_check_transfer): Add missing cast.
2886 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
2887 print pointer.
2888 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
2889 PRIuGRUB_SIZE.
2890 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
2891
2892 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2893
2894 * grub-core/Makefile.core.def (legacycfg): Add
2895 lib/i386/pc/vesa_modes_table.c on emu.
2896
2897 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
2898
2899 Reduce number of temporary files generated by build system.
2900
2901 * grub-core/gencmdlist.sh: Removed.
2902 * grub-core/genfslist.sh: Removed.
2903 * grub-core/genhandlerlist.sh: Removed.
2904 * grub-core/genmodsrc.sh: Removed.
2905 * grub-core/genpartmaplist.sh: Removed.
2906 * grub-core/genparttoollist.sh: Removed.
2907 * grub-core/gentermiinallist.sh: Removed.
2908 * grub-core/genvideolist.sh: Removed.
2909
2910 * grub-core/genmod.sh.in: New file.
2911 * grub-core/gensyminfo.sh.in: New file.
2912
2913 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
2914 * conf/Makefile.extra-dist: Update with new files.
2915 * gentpl.py: Remove rules related to unnecessary temporary files.
2916 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
2917 and und-* files.
2918 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
2919 genmod.sh scripts.
2920 * grub-core/bus/usb/uhci.c: Remove empty #define.
2921 * grub-core/genmoddep.awk: Updated with new syminfo format.
2922 * util/bash-completion.d/Makefile.am: Add config.log to
2923 CLEANFILES.
2924
2925 2010-09-19 Yves Blusseau <blusseau@zetam.org>
2926
2927 * Makefile.util.def: Add forgotten $(LIBINTL) library.
2928
2929 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
2930
2931 * util/grub-mkconfig.in: Check the config script for syntax errors
2932 before saving.
2933
2934 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
2935 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2936
2937 * Makefile.util.def (grub-install): Use util/grub-install.in on all
2938 platforms.
2939 * util/grub-install.in: Add EFI and IEEE1275 support.
2940 * util/i386/efi/grub-install.in: Removed.
2941 * util/ieee1275/grub-install.in: Likewise.
2942
2943 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2944
2945 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
2946 (grub_cmd_cmosclean): Likewise.
2947 (GRUB_MOD_INIT): Register command cmosclean.
2948 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
2949 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
2950
2951 2010-09-18 Carles Pina i Estany <carles@pina.cat>
2952 2010-09-18 Aleš Nesrsta <starous@volny.cz>
2953 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2954
2955 Add keyboard layouts support.
2956
2957 * Makefile.util.def (grub-mklayout): New file.
2958 (grub-kbdcomp): New script.
2959 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
2960 Add keyboard_layouts.h.
2961 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
2962 commands/boot.c on yeeloong.
2963 (keylayouts): New module.
2964 * grub-core/bus/usb/ohci.c
2965 * grub-core/bus/usb/uhci.c
2966 * grub-core/bus/usb/usbhub.c (rescan): New variable.
2967 (grub_usb_add_hub): Poll interrupt pipe for device handling.
2968 (attach_root_port): Likewise.
2969 (poll_nonroot_hub): Likewise.
2970 (grub_usb_poll_devices): Likewise.
2971 (detach_device): Close transfer.
2972 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
2973 function.
2974 (grub_usb_bulk_setup_readwrite): Likewise.
2975 (grub_usb_bulk_finish_readwrite): Likewise.
2976 * grub-core/commands/keylayouts.c: New file.
2977 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
2978 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
2979 aliases.
2980 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
2981 support scancode 2.
2982 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
2983 * include/grub/keyboard_layouts.h: New file.
2984 * util/grub-mklayout.c: New file.
2985 * util/grub-kbdcomp.in: Likewise.
2986
2987 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2988
2989 Unify memory types.
2990
2991 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
2992 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
2993 types.
2994 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
2995 (grub_upper_mem): Likewise.
2996 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
2997 * include/grub/memory.h (grub_memory_type_t): New enum.
2998 All users updated.
2999
3000 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3001
3002 * grub-core/Makefile.core.def (lsapm): New module.
3003 * grub-core/commands/i386/pc/lsapm.c: New file.
3004 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
3005 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
3006 Likewise.
3007 * include/grub/i386/pc/apm.h: New file.
3008 * include/multiboot.h (multiboot_apm_info): New struct.
3009
3010 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3011
3012 GRUB-legacy configuration file support.
3013
3014 * Makefile.util.def (grub-menulst2cfg): New util.
3015 * docs/man/grub-menulst2cfg.h2m: New file.
3016 * grub-core/Makefile.core.def (legacycfg): New module.
3017 * grub-core/commands/legacycfg.c: New file.
3018 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
3019 (grub_normal_add_menu_entry): ... this.
3020 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
3021 (grub_normal_set_password): ...this.
3022 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
3023 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
3024 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
3025 * grub-core/lib/legacy_parse.c: New file.
3026 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
3027 * include/grub/i386/pc/vesa_modes_table.h: New file.
3028 * include/grub/legacy_parse.h: Likewise.
3029 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
3030 * util/grub-menulst2cfg.c: New file.
3031
3032 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
3033
3034 * grub-core/kern/emu/hostdisk.c
3035 (convert_system_partition_to_system_disk): Initialise node.
3036
3037 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
3038
3039 * grub-core/kern/emu/hostdisk.c
3040 (convert_system_partition_to_system_disk): Fix devmapper memory pool
3041 leak.
3042 Reported and based on patch by: Modestas Vainius.
3043
3044 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
3045
3046 Fix DM-RAID probing with recent versions of device-mapper udev
3047 rules.
3048
3049 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
3050 canonicalise device paths under /dev/mapper/.
3051 (convert_system_partition_to_system_disk): Compare the
3052 uncanonicalised path to /dev/mapper/ rather than the canonicalised
3053 path, since device nodes under /dev/mapper/ are often symlinks.
3054
3055 2010-09-17 Yves Blusseau <blusseau@zetam.org>
3056
3057 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
3058
3059 2010-09-16 Yves Blusseau <blusseau@zetam.org>
3060
3061 * configure.ac: Avoid some annoying error messages if freetype-config
3062 program is not found.
3063
3064 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
3065
3066 Support RAID on virtio devices, and others.
3067
3068 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
3069 Rename to ...
3070 [__MINGW32__] (grub_find_device): ... this.
3071 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
3072 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
3073 reasonable default if dir is NULL.
3074 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
3075 ...
3076 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
3077 (grub_guess_root_device): Update callers.
3078 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
3079
3080 * util/raid.c (grub_util_getdiskname): Remove.
3081 (grub_util_raid_getmembers): Use grub_find_device rather than
3082 grub_util_getdiskname.
3083
3084 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
3085
3086 * docs/grub.texi (serial): Remove obsolete comment about GRUB
3087 needing to be compiled with serial support.
3088 (ls): Indicate that multiple files are accepted.
3089 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
3090 indicate that multiple files are accepted.
3091
3092 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
3093
3094 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
3095 libgrub_a_init.c, and util/bash-completion.d/grub.
3096
3097 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
3098
3099 * util/grub-setup.c (setup): Fix incorrect container semantics.
3100
3101 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
3102
3103 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
3104 misusage.
3105 Reported by: J. Nick Terry
3106
3107 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
3108
3109 Move embedding routines to partmap sources files.
3110
3111 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
3112 [GRUB_UTIL]: New variable.
3113 (gpt_partition_map_iterate): Set part.parent.
3114 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
3115 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
3116 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
3117 New function.
3118 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
3119 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
3120 (grub_partition_map) [GRUB_UTIL]: New field embed.
3121 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
3122 (setup): Use ->embed.
3123
3124 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
3125
3126 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
3127 function.
3128 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
3129 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
3130
3131 2010-09-15 Yves Blusseau <blusseau@zetam.org>
3132
3133 Add function to get completions from usage.
3134
3135 * util/bash-completion.d/grub-completion.bash.in: Add function to get
3136 completions from usage. Use LC_ALL=C to get options properly.
3137
3138 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
3139
3140 * grub-core/gnulib/basename-lgpl.c: Imported.
3141 * grub-core/gnulib/basename.c: Likewise.
3142 * grub-core/gnulib/dirname-lgpl.c: Likewise.
3143 * grub-core/gnulib/dirname.c: Likewise.
3144 * grub-core/gnulib/dirname.h: Likewise.
3145 * grub-core/gnulib/stripslash.c: Likewise.
3146
3147 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
3148
3149 * grub-core/gnulib/error.c: Resynced.
3150 * grub-core/gnulib/getopt.c: Likewise.
3151 * grub-core/gnulib/getopt_int.h: Likewise.
3152 * grub-core/gnulib/regex.h: Likewise.
3153 * grub-core/gnulib/regex_internal.c: Likewise.
3154 * grub-core/gnulib/regex_internal.h: Likewise.
3155
3156 2010-09-15 Szymon Janc <szymon@janc.net.pl>
3157
3158 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
3159 CRC calculations and validity checks.
3160 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
3161 calculations.
3162
3163 2010-09-15 Szymon Janc <szymon@janc.net.pl>
3164
3165 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
3166
3167 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3168
3169 Fix incorrect echo options handling.
3170 Reported by: Yves Blusseau.
3171
3172 * include/grub/command.h (grub_command_flags_t): New flags
3173 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
3174 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
3175 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
3176
3177 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3178
3179 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
3180 users updated.
3181 (GRUB_COMMAND_FLAG_MENU): Likewise.
3182 (GRUB_COMMAND_FLAG_BOTH): Likewise.
3183 (GRUB_COMMAND_FLAG_TITLE): Removed.
3184 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
3185 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
3186 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
3187 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
3188 (grub_command_flags_t): New enum. All users updated.
3189
3190 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
3191
3192 Fix solaris compilation.
3193
3194 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
3195 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
3196 (grub-emu-list): Likewise.
3197
3198 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3199
3200 Remove deprecated root command.
3201
3202 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
3203 updated.
3204
3205 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3206
3207 * util/i386/pc/grub-setup.c: Merge this ...
3208 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
3209 * util/grub-setup.c: ... into this.
3210 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
3211 New struct.
3212
3213 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3214
3215 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
3216 possible.
3217
3218 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3219
3220 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
3221 allocate p.
3222
3223 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3224
3225 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
3226 explicit root argument to set to prevent UUID to be interpreted as
3227 argument to set.
3228
3229 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3230
3231 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
3232
3233 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3234
3235 Don't export grub_gate_a20.
3236
3237 * grub-core/kern/i386/pc/init.c: Remove leftovers.
3238 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
3239 to ...
3240 (grub_gate_a20): ... this. All users updated.
3241 * include/grub/i386/pc/init.h: Removed. All users updated.
3242
3243 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3244
3245 Create euro.pf2 which supports most European languages.
3246
3247 * Makefile.am (grubdata_DATA): Add euro.pf2.
3248 (euro.pf2): New target.
3249 (CLEANFILES): Add euro.pf2.
3250
3251 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3252
3253 * configure.ac: Disable emu-usb by default to prevent inadvertent
3254 device takeover.
3255
3256 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 Disable usbserial on grub-emu since our libusb code isn't good enough
3259 yet.
3260
3261 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
3262 (usbserial_pl2303): Likewise.
3263 (usbserial_ftdi): Likewise.
3264
3265 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3266
3267 * include/grub/disk.h (grub_disk): Remove has_partitions.
3268 All users updated.
3269 * disk/loopback.c (grub_loopback): Remove has_partitions.
3270 All users updated.
3271 (options): Remove partitions. All users updated.
3272 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
3273 * util/i386/pc/grub-setup.c (setup): copy partition table only when
3274 actual partition table is found.
3275
3276 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3277
3278 Remove readability checks (too many false negatives).
3279
3280 * util/grub-install.in: Remove readability checks.
3281 * util/grub-mkconfig.in: Likewise.
3282 * util/grub.d/10_hurd.in: Likewise.
3283 * util/grub.d/10_kfreebsd.in: Likewise.
3284 * util/grub.d/10_linux.in: Likewise.
3285 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
3286 way.
3287
3288 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3289
3290 Enable acpi shutdown on all ACPI platforms.
3291
3292 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
3293 on coreboo, multiboot and EFI.
3294 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
3295 (grub_acpi_halt): Likewise.
3296 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
3297 (grub_cmd_halt): Don't call grub_acpi_halt directly.
3298 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
3299 * grub-core/lib/i386/halt.c (grub_halt)
3300 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
3301
3302 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3303
3304 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
3305 context.
3306
3307 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3308
3309 * grub-core/video/efi_gop.c: Fix over-80-chars line.
3310 * grub-core/video/efi_uga.c: Likewise.
3311
3312 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3313
3314 Filter devaliases and never open same device twice.
3315
3316 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
3317 (last_ihandle): Likewise.
3318 (ofdisk_hash_ent): New member shortest.
3319 (ofdisk_hash_add): Add canonical path too.
3320 (scan): New function.
3321 (grub_ofdisk_iterate): Iterate over hashed entries.
3322 (compute_dev_path): Don't add :0.
3323 (grub_ofdisk_open): Don't really open the disk.
3324 (grub_ofdisk_close): Avoid closing unrelated disk.
3325 (grub_ofdisk_read): Implement reopen logic.
3326 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
3327 New function.
3328 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
3329 New proto.
3330
3331 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3332
3333 Fix sparc64.
3334
3335 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
3336 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
3337 right address. Add sparc64_ieee1275_ldflags.
3338 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
3339 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
3340 to grub_host_to_target_addr
3341 (load_image): Likewise.
3342
3343 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3344
3345 * grub-core/normal/completion.c (complete_file): Handle device
3346 containing slash.
3347 Fix based on patch by Doug Nazar.
3348
3349 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3350
3351 grub-mknetdir script.
3352
3353 * Makefile.util.def (grub-mknetdir): New module.
3354 * tests/util/grub-shell.in: Support boot=net
3355 * util/grub-mknetdir.in: New file.
3356
3357 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3358
3359 videoinfo on non-vbe.
3360
3361 * grub-core/Makefile.core.def (vbeinfo): Removed.
3362 (vbetest): Removed.
3363 (videoinfo): New module.
3364 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
3365 * grub-core/commands/i386/pc/vbetest.c: Removed.
3366 * grub-core/commands/videoinfo.c: New file.
3367 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
3368 specification.
3369 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
3370 as vbetest.
3371 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
3372 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
3373 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
3374 mode_number. New parameter mode. All users updated.
3375 (grub_video_gop_iterate): New function.
3376 (grub_video_efi_gop): New member iterate.
3377 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
3378 (grub_vbe_set_video_mode): Remove setting useless fields.
3379 (vbe2videoinfo): New function.
3380 (grub_video_vbe_iterate): Likewise.
3381 (grub_video_vbe_setup): Use vbe2videoinfo.
3382 (grub_video_vbe_print_adapter_specific_info): New function.
3383 (grub_video_vbe_adapter): New fields iterate and
3384 print_adapter_specific_info.
3385 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
3386 All users updated.
3387 (grub_video_mode_info): New field mode_number.
3388 (grub_video_adapter): New fields iterate and
3389 print_adapter_specific_info.
3390
3391 2010-09-13 Tristan Gingold <gingold@free.fr>
3392 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
3393 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3394
3395 * grub-core/commands/efi/lsefisystab.c: New file.
3396 * grub-core/commands/efi/lssal.c: Likewise.
3397 * grub-core/Makefile.core.def (lsacpi): New module.
3398 (lsefisystab): Likewise.
3399 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
3400 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
3401 (grub_efi_sal_system_table): New struct.
3402 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
3403 (grub_efi_sal_system_table_memory_descriptor): Likewise.
3404 (grub_efi_sal_system_table_platform_features): Likewise.
3405 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
3406 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
3407 (grub_efi_sal_system_table_ap_wakeup): Likewise.
3408 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
3409
3410 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3411
3412 Support explicit user claim that a device is BIOS-visible.
3413
3414 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
3415 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
3416 * grub-core/kern/emu/hostdisk.c
3417 (convert_system_partition_to_system_disk): Support mdX.
3418 (find_system_device): New parameter add. All users updated.
3419 (grub_util_biosdisk_is_present): New function.
3420 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
3421 proto.
3422
3423 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3424
3425 Search hints support.
3426
3427 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
3428 All users updated.
3429
3430 2010-09-13 Yves Blusseau <blusseau@zetam.org>
3431
3432 Bash completion script for util commands
3433
3434 * Makefile.am: Add util/bash-completion.d directory
3435 * configure.ac: Likewise.
3436 * util/bash-completion.d/Makefile.am: New file.
3437 * util/bash-completion.d/grub-completion.bash.in: Likewise.
3438
3439 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3440
3441 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
3442 (print_backlog): set backlog_ucs4 and backlog_glyphs.
3443 Reported by: Yves Blusseau.
3444
3445 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3446
3447 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
3448 partition size and offset.
3449
3450 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3451
3452 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
3453
3454 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3455
3456 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
3457
3458 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3459
3460 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
3461 (grub_xvasprintf): Likewise.
3462
3463 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
3466
3467 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3468
3469 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
3470 args ending with NULL.
3471
3472 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3473
3474 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
3475 pointer.
3476
3477 2010-09-11 Szymon Janc <szymon@janc.net.pl>
3478
3479 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
3480
3481 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
3482
3483 Shutdown using ACPI.
3484
3485 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
3486 * grub-core/commands/acpihalt.c: New file.
3487 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
3488 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
3489 (grub_acpi_halt): New proto.
3490 (GRUB_ACPI_SLP_EN): New const.
3491 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
3492 (GRUB_ACPI_OPCODE_*): New enum.
3493 (GRUB_ACPI_EXTOPCODE_*): Likewise.
3494
3495 2010-09-11 Tristan Gingold <gingold@free.fr>
3496 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
3497 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
3498
3499 * commands/lsacpi.c: New file.
3500 * grub-core/Makefile.core.def (lsacpi): New module.
3501 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
3502 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
3503 (grub_acpi_madt_entry_header): New struct.
3504 (grub_acpi_madt): Likewise.
3505 (grub_acpi_madt_entry_interrupt_override): Likewise.
3506 (grub_acpi_madt_entry_sapic): Likewise.
3507 (grub_acpi_madt_entry_lsapic): Likewise.
3508 (grub_acpi_madt_entry_platform_int_source): Likewise.
3509 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
3510 (PRIuGRUB_UINT32_T): Likewise.
3511 (PRIxGRUB_UINT64_T): Likewise.
3512
3513 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
3514
3515 Implement loading palette on ieee1275_fb.
3516
3517 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
3518 (have_setcolors): Likewise.
3519 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
3520 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
3521 (grub_video_ieee1275_set_palette): Implement.
3522
3523 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
3524 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
3525
3526 * util/grub-install.in (grub_partition): New variable.
3527 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
3528 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
3529 Fixes a bug reported by Yves Blusseau.
3530
3531 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
3532
3533 Fix emu on mipsel.
3534
3535 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
3536 =grub_cpu_flush_cache on all mips and not only yeeloong.
3537 * configure.ac (COND_mips): New conditional.
3538 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
3539 platforms.
3540 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
3541 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
3542 [GRUB_LINKER_HAVE_INIT]: New function.
3543 (grub_emu_post_init): Likewise.
3544 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
3545 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
3546 * include/grub/cache.h (_mips): Include mips/cache.h.
3547 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
3548 LVM and RAID prototypes.
3549 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
3550 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
3551 function.
3552
3553 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
3554
3555 * util/grub-install.in: Don't try to verify core.img until after
3556 running grub-mkimage to create it.
3557
3558 2010-09-10 Robert Millan <rmh@gnu.org>
3559
3560 * util/grub.d/10_hurd.in: Add misc readability checks.
3561 * util/grub.d/10_kfreebsd.in: Likewise.
3562 * util/grub.d/10_linux.in: Likewise.
3563
3564 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
3565
3566 * util/grub-install.in: ${imgext} won't be defined here until the
3567 install branch is merged. For the meantime, only verify core.img on
3568 i386-pc and sparc64-ieee1275 platforms.
3569
3570 2010-09-10 Robert Millan <rmh@gnu.org>
3571
3572 Solaris support in grub_find_zpool_from_dir(). Thanks
3573 Seth Goldberg for referring to getextmntent() facility.
3574
3575 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
3576 `sys/mkdev.h'.
3577 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
3578 `<sys/mnttab.h>'.
3579 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
3580 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
3581 method for finding zpool name.
3582
3583 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
3584
3585 grub-fstest needs the host and hostfs modules while other utilities
3586 actively require those modules to be absent, so grub-fstest needs
3587 its own initialisation and finalisation code.
3588
3589 * Makefile.am (grub_fstest.pp): New target.
3590 (grub_fstest_init.lst): Likewise.
3591 (grub_fstest_init.c): Likewise.
3592 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
3593
3594 2010-09-10 Robert Millan <rmh@gnu.org>
3595
3596 * configure.ac: Check for `struct statfs.f_fstypename' and
3597 `struct statfs.f_mntfromname'.
3598
3599 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
3600 kFreeBSD-specific code.
3601
3602 2010-09-10 Robert Millan <rmh@gnu.org>
3603
3604 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
3605 on ZFS. Now non-main filesystems are supported as / too.
3606
3607 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
3608
3609 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
3610 and grub-core/disk/host.c to ...
3611 (grub-fstest): ... here. Having the host disk implementation
3612 present confuses grub-probe and other utility programs.
3613
3614 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
3615 when writing to a file, not when writing to stdout.
3616
3617 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
3618
3619 * tests/partmap_test.in: New test for partitions.
3620 * Makefile.util.def: Rules for new test.
3621
3622 2010-09-09 Robert Millan <rmh@gnu.org>
3623
3624 * util/grub-probe.c (probe): Fix a pair of unhandled error
3625 conditions.
3626
3627 2010-09-09 Robert Millan <rmh@gnu.org>
3628
3629 Basic Btrfs support (detection and UUID).
3630
3631 * grub-core/fs/btrfs.c: New file.
3632 * Makefile.util.def (library): Register btrfs.c.
3633 * grub-core/Makefile.core.def: Likewise.
3634
3635 2010-09-08 Robert Millan <rmh@gnu.org>
3636
3637 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
3638 with (optional) parameters to specify device and relative path.
3639 * util/grub-install.in: Use is_path_readable_by_grub() to
3640 verify readability of a few critical files.
3641 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
3642 verify readability of grub.cfg.new.
3643
3644 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
3645
3646 Split minix.mod into minix.mod and minix2.mod.
3647
3648 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
3649 * grub-core/Makefile.core.def (minix2): New module.
3650 * grub-core/fs/minix.c: Use definitions instead of runtime version
3651 checking.
3652 * grub-core/fs/minix2.c: New file.
3653
3654 2010-09-08 Yves Blusseau <blusseau@zetam.org>
3655
3656 Add new --boot-directory option to replace --root-directory
3657
3658 * util/grub-install.in: Add new --boot-directory option
3659 * util/grub-reboot.in: Likewise.
3660 * util/grub-set-default.in: Likewise.
3661
3662 2010-09-08 Yves Blusseau <blusseau@zetam.org>
3663
3664 * util/grub-mkconfig.in: Use new variable.
3665
3666 2010-09-08 Yves Blusseau <blusseau@zetam.org>
3667
3668 * configure.ac: Define some useful variables.
3669
3670 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
3671
3672 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3673 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
3674 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
3675 Use terminfo and don't use cursor-on/cursor-off unless it's known
3676 to work.
3677 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
3678 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
3679
3680 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
3681
3682 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
3683 starts with "(,", fill the drive containing the loaded image in
3684 between those two characters, but expect that a full partition
3685 specification including partition map names will follow.
3686
3687 2010-09-08 Robert Millan <rmh@gnu.org>
3688
3689 * configure.ac: Remove `--enable-grub-fstest' option.
3690 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
3691
3692 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
3693 `grub-fstest' instead of `grub-probe' for readability verification.
3694 * util/grub-probe.c (probe): Remove readability verification kludge.
3695
3696 2010-09-08 Robert Millan <rmh@gnu.org>
3697
3698 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
3699 initializing `GRUB_FS'.
3700
3701 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
3702
3703 Not command (!) support to GRUB script.
3704
3705 * tests/grub_script_not.in: New test.
3706 * Makefile.util.def: Rules for new test.
3707
3708 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
3709 ! command as a special case.
3710 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
3711
3712 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
3713
3714 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
3715 grub_free.
3716
3717 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
3718
3719 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
3720
3721 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
3722
3723 * docs/grub.texi (Shell-like scripting): Documentation for break,
3724 continue, shift and return commands.
3725
3726 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
3727
3728 Rename CD-ROM to cd on BIOS.
3729
3730 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
3731 "cd".
3732 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
3733
3734 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3735
3736 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
3737 * util/grub-probe.c (main): Likewise.
3738 * util/i386/pc/grub-setup.c (main): Likewise.
3739 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
3740 Reported and debugged by: alexxy
3741
3742 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3743
3744 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
3745 diagnostic info.
3746
3747 2010-09-05 Jo Shields <directhex@apebox.org>
3748
3749 * util/grub.d/30_os-prober.in: Add missing classes.
3750
3751 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3752
3753 * docs/grub.texi (Theme file format): Document new position format.
3754
3755 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3756
3757 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
3758 a table. Use @code instead of @verbatim.
3759
3760 2010-09-05 Colin D Bennett <colin@gibibit.com>
3761
3762 Gfxmenu documentation.
3763
3764 * docs/grub.texi (Theme file format): New chapter.
3765
3766 2010-09-05 Szymon Janc <szymon@janc.net.pl>
3767
3768 * grub-core/Makefile.core.def (xzio): New module.
3769 * grub-core/io/xzio.c: New file.
3770 * grub-core/lib/xzembed/xz.h: New file (from xembed).
3771 * grub-core/lib/xzembed/xz_config.h: Likewise.
3772 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
3773 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
3774 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
3775 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
3776 * grub-core/lib/xzembed/xz_private.h: Likewise.
3777 * grub-core/lib/xzembed/xz_stream.h: Likewise.
3778 * include/grub/file.h (grub_file_filter_id): New compression filter
3779 GRUB_FILE_FILTER_XZIO.
3780
3781 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3782
3783 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
3784 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
3785 size.
3786
3787 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3788
3789 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
3790 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
3791
3792 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3793
3794 Uncompressed checksum support.
3795
3796 * grub-core/commands/hashsum.c (options): Add option --uncompress.
3797 (check_list): New parameter uncompress.
3798 (grub_cmd_hashsum): Handle --uncompress.
3799
3800 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3801
3802 Reintroduce testload.
3803
3804 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
3805 from here ...
3806 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
3807 (GRUB_MOD_INIT): New function.
3808 (GRUB_MOD_FINI): Likewise.
3809 * grub-core/Makefile.core.def (testload): New module.
3810
3811 2010-09-05 Szymon Janc <szymon@janc.net.pl>
3812
3813 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
3814 (uint8_t): New type.
3815 (uint16_t): Likewise.
3816 (uint32_t): Likewise.
3817 (uint64_t): Likewise.
3818
3819 2010-09-05 Szymon Janc <szymon@janc.net.pl>
3820
3821 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
3822
3823 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
3826 Made static.
3827 (grub_gzfile_open): Removed. All users updated.
3828 (GRUB_MOD_INIT): New function.
3829 (GRUB_MOD_FINI): Likewise.
3830 * grub-core/kern/file.c (grub_file_filters_all): New variable.
3831 (grub_file_filters_enabled): Likewise.
3832 (grub_file_open): Handle filters.
3833 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
3834 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
3835 * include/grub/file.h (grub_file_filter_id_t): New type.
3836 (grub_file_filter_t): Likewise.
3837 (grub_file_filters_all): New extern variable.
3838 (grub_file_filters_enabled): Likewise.
3839 (grub_file_filter_register): New inline function.
3840 (grub_file_filter_unregister): Likewise.
3841 (grub_file_filter_disable): Likewise.
3842 (grub_file_filter_disable_compression): Likewise.
3843 * include/grub/gzio.h: Removed.
3844
3845 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3846
3847 Filename expansion support for wildcards in GRUB script.
3848
3849 * tests/grub_script_expansion.in: New test.
3850 * Makefile.util.def: Rule for new test.
3851
3852 * grub-core/commands/wildcard.c: New file, implements filename
3853 expansion support for GRUB script.
3854 * grub-core/Makefile.core.def: Rule update for regexp.mod.
3855 * grub-core/script/argv.c: Cosmetic changes.
3856 * grub-core/script/execute.c (grub_script_arglist_to_argv):
3857 Refactored to perform wildcard expansion on arguments.
3858 * include/grub/script_sh.h (grub_script_wildcard_translator): New
3859 struct.
3860
3861 * tests/util/grub-shell.in: Fix quoting for read input.
3862
3863 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3864
3865 Support for updating environment variables with matched substrings
3866 of regexp.
3867
3868 * tests/grub_cmd_regexp.in: New test.
3869 * Makefile.util.def: Rule for new test.
3870
3871 * grub-core/commands/regexp.c: New option -s to update environment
3872 variables with regexp matches.
3873
3874 2010-09-04 Szymon Janc <szymon@janc.net.pl>
3875
3876 * include/grub/file.h (grub_file): New member not_easly_seekable.
3877 (grub_file_seekable): New inline function.
3878 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
3879 easily seekable.
3880 (grub_gzio_open): Set not_easly_seekable.
3881 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
3882 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
3883
3884 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3885
3886 Support for options to appear multiple times on cmdline.
3887
3888 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
3889 * grub-core/commands/extcmd.c: Support for repeatable option.
3890 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
3891 repeatable option support.
3892
3893 Refactor menuentry into a regular command.
3894
3895 * grub-core/commands/menuentry.c: New file, menuentry command
3896 implementation.
3897 * grub-core/Makefile.core.def: Rule update for normal.mod.
3898 * grub-core/normal/main.c: Moved menuentry creation to
3899 grub-core/commands/menuentry.c.
3900 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
3901 (grub_menu_execute_entry_real): Removed.
3902 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
3903 function.
3904 (grub_script_execute_menuentry): Removed.
3905 * grub-core/script/parser.y (menuentry): Removed.
3906 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
3907 * grub-core/script/yylex.l (menuentry): Removed.
3908 * include/grub/menu.h (grub_menu_init): New prototype.
3909 (grub_menu_fini): New prototype.
3910 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
3911 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
3912 (grub_script_execute_sourcecode): New prototype.
3913
3914 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3915
3916 "return" command for GRUB script functions.
3917
3918 * tests/grub_script_return.in: New test.
3919 * Makefile.util.def: Rules for new test.
3920
3921 * grub-core/script/execute.c (grub_script_return): New function.
3922 * grub-core/script/main.c: Register/unregister return commaond.
3923 * include/grub/script_sh.h (grub_script_return): New prototype.
3924
3925 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3926
3927 "setparams" command to update positional parameters.
3928
3929 * tests/grub_script_setparams.in: New test.
3930 * Makefile.util.def: Rules for new test.
3931
3932 * grub-core/script/argv.c (grub_script_argv_make): New function.
3933 * grub-core/script/execute.c (replace_scope): New function.
3934 (grub_script_setparams): New function.
3935 * grub-core/script/lexer.c: Remove unused variables.
3936 * grub-core/script/main.c: Register/unregister setparams command.
3937 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
3938 (grub_script_setparams): New prototype.
3939
3940 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3941
3942 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
3943 grub_free order.
3944
3945 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3946
3947 Support for passing block of commands as an argument to extcmds.
3948
3949 * Makefile.util.def: Rules for new test.
3950 * tests/grub_script_blockarg.in: New test.
3951 * grub-core/tests/test_blockarg.c: New file, block argument
3952 command used in the test.
3953
3954 * include/grub/extcmd.h (grub_extcmd_context): New struct.
3955 (grub_register_extcmd_prio): New function prototype.
3956 (grub_extcmd_dispatcher): New function prototype.
3957 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
3958 type.
3959 * include/grub/script_sh.h (struct grub_script): New members
3960 `children', `next_siblings' and `refcnt' for block arguments and
3961 reference counting.
3962 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
3963 (grub_script_arg): New member `script' for block argument.
3964 (grub_script_argv): New member `script' for block argument.
3965 (grub_parser_param): New member `scripts' for block argument.
3966 (grub_script_mem_free): New extern function prototype.
3967 (grub_script_ref): New function prototype.
3968 (grub_script_unref): New function prototype.
3969
3970 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
3971 extcmd form to support block arguments.
3972 * grub-core/script/argv.c: Block arguments support.
3973 * grub-core/script/execute.c: Likewise.
3974 * grub-core/script/lexer.c: Likewise.
3975 * grub-core/script/main.c: Likewise.
3976 * grub-core/script/script.c: Likewise.
3977 * grub-core/script/parser.y: Likewise. New `block' and `block0'
3978 non-terminals.
3979
3980 * grub-core/commands/acpi.c: Update extcmd implementations with
3981 grub_extcmd_context_t.
3982 * grub-core/commands/cat.c: Likewise.
3983 * grub-core/commands/echo.c: Likewise.
3984 * grub-core/commands/extcmd.c: Likewise.
3985 * grub-core/commands/hashsum.c: Likewise.
3986 * grub-core/commands/hdparm.c: Likewise.
3987 * grub-core/commands/help.c: Likewise.
3988 * grub-core/commands/hexdump.c: Likewise.
3989 * grub-core/commands/i386/cpuid.c: Likewise.
3990 * grub-core/commands/i386/pc/drivemap.c: Likewise.
3991 * grub-core/commands/i386/pc/halt.c: Likewise.
3992 * grub-core/commands/i386/pc/sendkey.c: Likewise.
3993 * grub-core/commands/iorw.c: Likewise.
3994 * grub-core/commands/keystatus.c: Likewise.
3995 * grub-core/commands/loadenv.c: Likewise.
3996 * grub-core/commands/ls.c: Likewise.
3997 * grub-core/commands/lspci.c: Likewise.
3998 * grub-core/commands/memrw.c: Likewise.
3999 * grub-core/commands/probe.c: Likewise.
4000 * grub-core/commands/search_wrap.c: Likewise.
4001 * grub-core/commands/setpci.c: Likewise.
4002 * grub-core/commands/sleep.c: Likewise.
4003 * grub-core/disk/loopback.c: Likewise.
4004 * grub-core/hello/hello.c: Likewise.
4005 * grub-core/loader/i386/bsd.c: Likewise.
4006 * grub-core/loader/xnu.c: Likewise.
4007 * grub-core/term/gfxterm.c: Likewise.
4008 * grub-core/term/serial.c: Likewise.
4009 * grub-core/tests/lib/functional_test.c: Likewise.
4010
4011 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
4012
4013 Multi-line quoted strings support.
4014
4015 * grub-core/script/lexer.c (append_newline): Removed.
4016 (grub_script_lexer_yywrap): Refactored.
4017 (grub_script_lexer_init): Refactored.
4018 * grub-core/script/yylex.l (yywrap): New function.
4019 (grub_lexer_resplit): New function.
4020 (grub_lexer_unput): New function.
4021 * include/grub/script_sh.h (grub_lexer_param): New members, unput
4022 and resplit.
4023 * tests/grub_script_echo1.in: Added few more testcases.
4024
4025 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
4026
4027 * grub-core/kern/misc.c: Don't add abort alias in utils.
4028 Reported by: echoline.
4029
4030 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
4031
4032 Add missing files into "make dist" tarball for other platforms.
4033
4034 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
4035 * conf/Makefile.common (dist_noinst_DATA): New variable.
4036 * conf/Makefile.extra-dist: Added missing make dist files.
4037 * grub-core/Makefile.core.def: Likewise.
4038
4039 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
4040
4041 Compress grub_prefix.
4042
4043 * grub-core/boot/i386/pc/lnxboot.S: Use
4044 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
4045 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
4046 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
4047 GRUB_MACHINE_PREFIX_END. All users updated.
4048 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
4049 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
4050 + 0x40.
4051 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
4052 * util/grub-mkimage.c (image_target_desc): Change data_end to
4053 prefix_end. All users updated.
4054
4055 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
4056
4057 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
4058 value.
4059 (grub_openbsd_boot): Likewise.
4060 (grub_netbsd_boot): Likewise.
4061 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
4062 (grub_xnu_boot): Likewise.
4063
4064 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
4065
4066 * configure.ac: Clean LIBS variable after tests.
4067
4068 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
4069
4070 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
4071
4072 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
4073
4074 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
4075 echo if libdevmapper will be used.
4076
4077 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
4078
4079 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
4080 constant for the same file.
4081
4082 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
4083
4084 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
4085
4086 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
4087
4088 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
4089 grub-core/*.pp.
4090
4091 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
4092
4093 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
4094 required by the boot protocol.
4095
4096 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
4097 ebp and edi members.
4098 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
4099 state.ebp and state.edi.
4100 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
4101 %ebp and %edi according to grub_relocator32_ebp and
4102 grub_relocator32_edi respectively.
4103 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
4104 and state.edi.
4105
4106 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
4107
4108 Add i386-pc-pxe image target.
4109
4110 * util/grub-mkimage.c (image_target_desc): New enum value
4111 IMAGE_I386_PC_PXE.
4112 (image_targets): New target i386-pc-pxe.
4113 (generate_image): Handle i386-pc-pxe image.
4114
4115 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
4116
4117 Fix grub_pxe_scan.
4118
4119 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
4120 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
4121 All users updated.
4122 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
4123 (grub_pxe_pxenv): Correct type.
4124
4125 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
4126
4127 * NEWS: Document most of the important changes since 1.98.
4128
4129 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
4130
4131 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
4132 generated manual page) a little.
4133
4134 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
4135
4136 * docs/grub.texi: Add myself as an author.
4137
4138 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
4139
4140 * Makefile.util.def (libgrub.a): Add missing sunpc.
4141 Reported by: Seth Goldberg.
4142
4143 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
4144
4145 Interrupt wrapping and code simplifications.
4146
4147 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
4148 x86_noieee1275 which are functionaly equivalent in this case.
4149 (grub-install): Make source on each platform explicit. Enable on
4150 all noemu.
4151 * gentpl.py (x86_efi_pc): Removed group.
4152 (x86_noefi): Likewise.
4153 (i386_noefi): Likewise.
4154 (x86_noieee1275): Likewise.
4155 (i386_noieee1275): Likewise.
4156 (i386_noefi_noieee1275): Likewise.
4157 (i386_pc_qemu_coreboot): Likewise.
4158 (i386_coreboot_multiboot): Likewise.
4159 (i386_pc_coreboot_multiboot_qemu): Likewise.
4160 (x86_noefi_mips): Likewise.
4161 (noieee1275): Likewise.
4162 (ieee1275_mips): Likewise.
4163 (noemu_noieee1275): Likewise.
4164 (cmos): New group.
4165 (usb): Likewise.
4166 (videoinkernel): Likewise.
4167 (videomodules): Likewise.
4168 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
4169 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
4170 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
4171 include/grub/loader.h, include/grub/msdos_partition.h,
4172 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
4173 include/grub/machine/console.h, include/grub/machine/vga.h,
4174 include/grub/machine/vbe.h, include/grub/machine/init.h,
4175 include/grub/machine/kernel.h, include/grub/cpu/time.h,
4176 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
4177 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
4178 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
4179 * grub-core/Makefile.core.def (kernel): Explicit the source for
4180 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
4181 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
4182 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
4183 Use videoinkernel tag.
4184 (usb): Enable on all usb.
4185 (usbserial_common): Likewise.
4186 (usbserial_pl2303): Likewise.
4187 (usbserial_ftdi): Likewise.
4188 (uhci): Enable on all x86.
4189 (ohci): Enable on all pci.
4190 (cmostest): Enable on all CMOS.
4191 (acpi): Include commands/acpi.c on all platforms.
4192 (halt): Add relevant lib/*/halt.c.
4193 (hdparm): Enable on all pci.
4194 (lspci): Likewise.
4195 (usbtest): Enable on all usb.
4196 (ata): Enable on all pci.
4197 (ata_pthru): Likewise.
4198 (usbms): Enable on all usb.
4199 (usb_keyboard): Likewise.
4200 (font): Use tag videomodules.
4201 (bufio): Likewise.
4202 (datetime): Use tag cmos. Enable on all noemu.
4203 (mmap): Use tags common and x86.
4204 (gfxterm): Use tag videomodules.
4205 (bitmap): Likewise.
4206 (bitmap_scale): Likewise.
4207 (video_fb): Likewise.
4208 (video): Likewise.
4209 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
4210 adjust padding accordingly. All users updated.
4211 (grub_ohci_transaction): Fix bad format specification.
4212 (GRUB_MOD_INIT): Add asserts for struct size.
4213 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
4214 (grub_alloc_td): Likewise.
4215 (grub_free_queue): Likewise.
4216 (grub_uhci_transfer): Likewise.
4217 (grub_uhci_transaction): Fix bad format specification.
4218 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
4219 (grub_usb_bulk_readwrite): Likewise.
4220 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
4221 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
4222 Made static.
4223 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
4224 Made static.
4225 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
4226 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
4227 Transformed into C.
4228 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
4229 Moved from here ...
4230 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
4231 ... here. Transformed into C. Made static.
4232 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
4233 Moved from here ...
4234 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
4235 ... here. Transformed into C. Made static.
4236 * grub-core/kern/i386/pc/startup.S
4237 (grub_biosdisk_check_int13_extensions): Moved from here ...
4238 * grub-core/disk/i386/pc/biosdisk.c
4239 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
4240 Made static.
4241 * grub-core/kern/i386/pc/startup.S
4242 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
4243 * grub-core/disk/i386/pc/biosdisk.c
4244 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
4245 Transformed into C. Made static.
4246 * grub-core/kern/i386/pc/startup.S
4247 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
4248 * grub-core/disk/i386/pc/biosdisk.c
4249 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
4250 Transformed into C. Made static.
4251 * grub-core/kern/i386/pc/startup.S
4252 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
4253 * grub-core/disk/i386/pc/biosdisk.c
4254 (grub_biosdisk_get_diskinfo_standard): ... here.
4255 Transformed into C. Made static.
4256 * grub-core/kern/i386/pc/startup.S
4257 (grub_biosdisk_get_num_floppies): Moved from here ...
4258 * grub-core/disk/i386/pc/biosdisk.c
4259 (grub_biosdisk_get_num_floppies): ... here.
4260 Transformed into C. Made static.
4261 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
4262 New function.
4263 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
4264 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
4265 Transformed into C. Made static.
4266 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
4267 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
4268 Transformed into C. Made static.
4269 * grub-core/kern/i386/ieee1275/init.c: Removed.
4270 * grub-core/kern/i386/misc.S: Likewise.
4271 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
4272 Splitted from here ...
4273 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
4274 Transformed into C. Made static. All users updated.
4275 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
4276 Transformed into C. Made static. All users updated.
4277 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
4278 Moved from here...
4279 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
4280 Transformed into C. Made static. All users updated.
4281 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
4282 Moved from here...
4283 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
4284 Transformed into C. Made static. All users updated.
4285 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
4286 Removed (replaced by C version).
4287 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
4288 Moved from here...
4289 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
4290 Transformed into C. Made static.
4291 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
4292 Moved from here...
4293 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
4294 ... here. Transformed into C.
4295 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
4296 Moved from here...
4297 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
4298 ... here. Transformed into C.
4299 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
4300 Moved from here...
4301 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
4302 ... here. Transformed into C. Made static.
4303 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
4304 Moved from here...
4305 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
4306 ... here. Transformed into C.
4307 * grub-core/kern/i386/pc/startup.S
4308 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
4309 * grub-core/video/i386/pc/vbe.c
4310 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
4311 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
4312 Moved from here...
4313 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
4314 ... here. Transformed into C.
4315 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
4316 Moved from here...
4317 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
4318 ... here. Transformed into C.
4319 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
4320 Moved from here...
4321 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
4322 ... here. Transformed into C.
4323 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
4324 Moved from here...
4325 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
4326 ... here. Transformed into C.
4327 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
4328 Moved from here...
4329 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
4330 ... here. Transformed into C. Made static.
4331 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
4332 Moved from here...
4333 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
4334 ... here. Transformed into C. Made static.
4335 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
4336 Moved from here...
4337 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
4338 ... here. Transformed into C. Made static.
4339 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
4340 pxe_rm_entry as third argument.
4341 (grub_bios_interrupt): New function.
4342 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
4343 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
4344 of calling grub_stop.
4345 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
4346 * grub-core/lib/efi/halt.c (grub_halt): ...here.
4347 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
4348 * grub-core/lib/emu/halt.c (grub_halt): ... here.
4349 * grub-core/lib/i386/halt.c: Moved from here ...
4350 * grub-core/lib/i386/halt.c: ... here.
4351 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
4352 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
4353 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
4354 grub_stop_floppy.
4355 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
4356 * include/grub/i386/coreboot/init.h: Removed.
4357 * include/grub/i386/multiboot/init.h: Likewise.
4358 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
4359 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
4360 * include/grub/i386/pc/int.h: New file.
4361 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
4362 (grub_pxe_scan): Removed.
4363 (grub_pxe_call): Update prototype.
4364 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
4365 prototypes.
4366 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
4367 * include/grub/i386/qemu/init.h: Removed.
4368 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
4369 noreturn.
4370 (grub_halt): Likewise.
4371 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
4372 (grub_reboot): Likewise.
4373 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
4374 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
4375 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
4376
4377 2010-08-30 Robert Millan <rmh@gnu.org>
4378
4379 * NEWS: Document addition of ZFS support in `grub-install' and
4380 `grub-mkconfig'.
4381
4382 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
4383
4384 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
4385 dprintf output.
4386
4387 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
4388
4389 Remove leftover embedding of font objects.
4390
4391 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
4392 * util/grub-install.in (font): Removed.
4393 * util/grub-mkimage.c (generate_image): Remove font support. All users
4394 updated.
4395
4396 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
4397
4398 Remove leftover embedding of font objects.
4399
4400 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
4401 * util/grub-install.in (font): Removed.
4402 * util/grub-mkimage.c (generate_image): Remove font support. All users
4403 updated.
4404
4405 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
4406
4407 * docs/grub.texi (Network): Fix reference to pxe_blksize.
4408 Reported by: Ian Turner
4409
4410 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
4411
4412 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
4413 timeout to avoid indefinite boot stalling.
4414
4415 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
4416
4417 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
4418 (grub_env_write_color_highlight): Likewise.
4419
4420 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
4421
4422 * grub-core/normal/term.c (print_more): Return to normal and not
4423 to standard state after printing "---MORE---".
4424
4425 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
4426
4427 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
4428 Mask out the bit 0x80 since it has other meaning that specifiing color.
4429
4430 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
4431
4432 New relocator. Allows for more kernel support and more straightforward
4433 loader writing.
4434
4435 * Makefile.am (BOOTTARGET): New variable.
4436 (QEMU32): Likewise.
4437 (linux.init.x86_64): New target.
4438 (linux.init.i386): Likewise.
4439 (multiboot.elf): Likewise.
4440 (kfreebsd.elf): Likewise.
4441 (kfreebsd.aout): Likewise.
4442 (pc-chainloader.elf): Likewise.
4443 (pc-chainloader.bin): Likewise.
4444 (ntldr.elf): Likewise.
4445 (ntldr.bin): Likewise.
4446 (multiboot2.elf): Likewise.
4447 (kfreebsd.init.x86_64): Likewise.
4448 (kfreebsd.init.i386): Likewise.
4449 (knetbsd.init.i386): Likewise.
4450 (kopenbsd.init.i386): Likewise.
4451 (knetbsd.init.x86_64): Likewise.
4452 (kopenbsd.init.x86_64): Likewise.
4453 (linux-initramfs.i386): Likewise.
4454 (linux-initramfs.x86_64): Likewise.
4455 (kfreebsd-mfsroot.i386.img): Likewise.
4456 (knetbsd.image.i386): Likewise.
4457 (kopenbsd.image.i386): Likewise.
4458 (kopenbsd.image.x86_64): Likewise.
4459 (knetbsd.miniroot-image.i386.img): Likewise.
4460 (kfreebsd-mfsroot.x86_64.img): Likewise.
4461 (knetbsd.image.x86_64): Likewise.
4462 (knetbsd.miniroot-image.x86_64.img): Likewise.
4463 (kfreebsd-mfsroot.i386.gz): Likewise.
4464 (bootcheck-kfreebsd-i386): Likewise.
4465 (kfreebsd-mfsroot.x86_64.gz): Likewise.
4466 (bootcheck-kfreebsd-x86_64): Likewise.
4467 (knetbsd.miniroot-image.i386.gz): Likewise.
4468 (bootcheck-knetbsd-i386): Likewise.
4469 (bootcheck-kopenbsd-i386): Likewise.
4470 (bootcheck-kopenbsd-x86_64): Likewise.
4471 (knetbsd.miniroot-image.x86_64.gz): Likewise.
4472 (bootcheck-knetbsd-x86_64): Likewise.
4473 (bootcheck-linux-i386): Likewise.
4474 (bootcheck-linux-x86_64): Likewise.
4475 (bootcheck-linux16-i386): Likewise.
4476 (bootcheck-linux16-x86_64): Likewise.
4477 (bootcheck-multiboot): Likewise.
4478 (bootcheck-multiboot2): Likewise.
4479 (bootcheck-kfreebsd-aout): Likewise.
4480 (bootcheck-pc-chainloader): Likewise.
4481 (bootcheck-ntldr): Likewise.
4482 (CLEANFILES): Add new targets.
4483 (BOOTCHECKS): New variable.
4484 (.PHONY): Add bootchecks.
4485 (SUCCESSFUL_BOOT_STRING): New variable.
4486 (BOOTCHECK_TIMEOUT): Likewise.
4487 (bootcheck): New target
4488 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
4489 * configure.ac: Correct efiemu excuse.
4490 * docs/grub.texi (Supported kernels): New chapter.
4491 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
4492 include/grub/mm_private.h. Simplify inclusion of
4493 include/grub/boot.h, include/grub/loader.h
4494 and include/grub/msdos_partition.h
4495 (KERNEL_HEADER_FILES) [i386_coreboot]:
4496 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
4497 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
4498 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
4499 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
4500 include/grub/machine/loader.h.
4501 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
4502 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
4503 extra_dist.
4504 (pci.mod): Enable on i386-multiboot.
4505 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
4506 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
4507 i386-qemu.
4508 (relocator.mod): Rewritten.
4509 (aout.mod): Enable on all x86.
4510 (bsd.mod): Likewise.
4511 (ntldr.mod): New module.
4512 (linux.mod): Use loader/i386/linux.c on all x86.
4513 (xnu.mod): Enable on all x86.
4514 (vga_text.mod): disable on EFI and QEMU.
4515 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
4516 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
4517 * grub-core/efiemu/loadcore.c: Likewise.
4518 * grub-core/efiemu/main.c: Likewise.
4519 (grub_efiemu_exit_boot_services): Removed.
4520 (grub_efiemu_finish_boot_services): Likewise.
4521 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
4522 function.
4523 * grub-core/efiemu/i386/nocfgtables.c: New file.
4524 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
4525 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
4526 (grub_efi_finish_boot_services): Moved from here ...
4527 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
4528 Fille finish memory map and related data.
4529 (finish_mmap_buf): New variable.
4530 (grub_efi_uintn_t finish_mmap_size): Likewise.
4531 (grub_efi_uintn_t finish_key): Likewise.
4532 (grub_efi_uintn_t finish_desc_size): Likewise.
4533 (grub_efi_uint32_t finish_desc_version): Likewise.
4534 (grub_efi_is_finished): Likewise.
4535 (grub_efi_get_memory_map): Use saved memory map if EFI is already
4536 finished.
4537 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
4538 (grub_elf64_phdr_iterate): Likewise.
4539 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
4540 (grub_os_area_size): Likewise.
4541 (grub_machine_init): Don't reserve os area.
4542 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
4543 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
4544 * grub-core/kern/i386/loader.S: Removed.
4545 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
4546 (grub_os_area_size): Likewise.
4547 (grub_machine_init): Don't reserve os area.
4548 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
4549 Don't call grub_dl_unload_all.
4550 Don't include loader.S.
4551 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
4552 Declare the memory after _end as available.
4553 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
4554 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
4555 (GRUB_MM_ALLOC_MAGIC): Moved from here...
4556 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
4557 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
4558 * include/grub/mm_private.h (grub_mm_header): ... here.
4559 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
4560 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
4561 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
4562 (grub_mm_region): ..here. Removed addr. Added pre_size.
4563 All users updated.
4564 * grub-core/kern/mm.c (base): Renamed to ...
4565 (grub_mm_base): ... this. Made global.
4566 (grub_real_malloc): Alloc from end of region.
4567 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
4568 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
4569 * grub-core/kern/powerpc/cache_flush.S: ... here.
4570 * grub-core/lib/efi/relocator.c: New file.
4571 * grub-core/lib/i386/relocator.c: Rewritten.
4572 * grub-core/lib/i386/relocator16.S: New file.
4573 * grub-core/lib/i386/relocator32.S: Likewise.
4574 * grub-core/lib/i386/relocator64.S: Likewise.
4575 * grub-core/lib/i386/relocator_asm.S: Rewritten.
4576 * grub-core/lib/i386/relocator_common.S: New file.
4577 * grub-core/lib/ieee1275/relocator.c: Likewise.
4578 * grub-core/lib/mips/relocator.c: Rewritten.
4579 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
4580 stylistic adjustments.
4581 * grub-core/lib/powerpc/relocator.c: New file.
4582 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
4583 * grub-core/lib/relocator.c: Rewritten.
4584 * grub-core/lib/x86_64/relocator_asm.S: New file.
4585 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
4586 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
4587 (bsd_tag): New struct.
4588 (tags): New variable.
4589 (tags_last): Likewise.
4590 (netbsd_module): New struct.
4591 (netbsd_mods): New variable.
4592 (netbsd_mods_last): Likewise.
4593 (openbsd_opts): New parameter "serial".
4594 (OPENBSD_SERIAL_ARG): New definition.
4595 (netbsd_opts): New parameter "serial".
4596 (NETBSD_SERIAL_ARG): New definition.
4597 (grub_freebsd_add_meta): Reorganised into ...
4598 (grub_bsd_add_meta): ...this. All users updated.
4599 (grub_freebsd_add_mmap): Reorganised into ...
4600 (generate_e820_mmap): ...this...
4601 (grub_bsd_add_mmap): ...and this. All users updated.
4602 (grub_freebsd_list_modules): Use tags.
4603 (grub_netbsd_add_meta_module): New function.
4604 (grub_netbsd_list_modules): Likewise.
4605 (grub_freebsd_boot): Use relocator and finish EFI.
4606 (grub_openbsd_boot): Likewise.
4607 (grub_netbsd_setup_video): New function.
4608 (grub_netbsd_add_modules): Likewise.
4609 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
4610 and finish EFI.
4611 (grub_bsd_unload): Unload tags.
4612 (grub_bsd_load_aout): Use relocator.
4613 (grub_bsd_elf32_size_hook): New function.
4614 (grub_bsd_elf32_hook): Use relocator.
4615 (grub_bsd_elf64_size_hook): New function.
4616 (grub_bsd_elf64_hook): Use relocator.
4617 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
4618 (grub_bsd_load): Zero-out openbsd_ramdisk.
4619 (grub_bsd_load): Use relocator.
4620 (grub_cmd_openbsd): Support serial.
4621 (grub_cmd_netbsd): Support modules.
4622 (grub_cmd_freebsd_module): Use relocator.
4623 (grub_netbsd_module_load): New function.
4624 (grub_cmd_netbsd_module): Likewise.
4625 (grub_cmd_openbsd_ramdisk): Likewise.
4626 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
4627 kopenbsd_ramdisk.
4628 (GRUB_MOD_FINI): Unregister new commands.
4629 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
4630 (grub_freebsd_load_elfmodule_obj): Use relocator.
4631 (grub_freebsd_load_elfmodule): Likewise.
4632 (grub_freebsd_load_elf_meta): Likewise.
4633 (grub_netbsd_load_elf_meta): New function.
4634 (grub_openbsd_find_ramdisk): Likewise.
4635 * grub-core/loader/i386/bsd_helper.S: Removed.
4636 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
4637 * grub-core/loader/i386/bsd_trampoline.S: Removed.
4638 * grub-core/loader/i386/efi/linux.c: Likewise.
4639 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
4640 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
4641 (DEFAULT_VIDEO_MODE): Likewise.
4642 (real_mode_target): New variable.
4643 (prot_mode_target): Likewise.
4644 (initrd_mem_target): Likewise.
4645 (relocator): Likewise.
4646 (efi_mmap_buf): Likewise.
4647 (efi_mmap_size): Likewise.
4648 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
4649 (free_pages): Use relocator.
4650 (allocate_pages): Account for efi_mmap and use relocator. Return error.
4651 (grub_linux_setup_video): Return error.
4652 (grub_linux_trampoline_start): Removed.
4653 (grub_linux_trampoline_end): Likewise.
4654 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
4655 andd video parameters depending on firmware.
4656 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
4657 [GRUB_MACHINE_EFI]: Pass EFI parameters.
4658 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
4659 (grub_cmd_initrd): Use relocator.
4660 * grub-core/loader/i386/linux_trampoline.S: Removed.
4661 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
4662 (elf_sec_entsize): Likewise.
4663 (elf_sec_shstrndx): Likewise.
4664 (elf_sections): Likewise.
4665 (grub_multiboot_load): Use relocator.
4666 (grub_multiboot_get_mbi_size): Account for sections.
4667 (grub_multiboot_make_mbi): Use relocator and support sections.
4668 (grub_multiboot_add_elfsyms): New function.
4669 (grub_multiboot_free_mbi): Free sections.
4670 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
4671 (grub_linux_real_target): Likewise.
4672 (grub_linux_real_chunk): Likewise.
4673 (grub_linux16_prot_size): Likewise.
4674 (grub_linux16_boot): Use relocator.
4675 (grub_linux_unload): Unload relocator.
4676 (grub_cmd_linux): Use relocator.
4677 (grub_cmd_initrd): Likewise.
4678 * grub-core/loader/i386/pc/ntldr.c: New file.
4679 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
4680 Don't try to guess CPU frequency.
4681 (grub_xnu_set_video): Stretch bitmap.
4682 (grub_xnu_boot): Use relocator.
4683 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
4684 (grub_linux_unload): Free relocator.
4685 (grub_linux_load32): Use relocator.
4686 (grub_linux_load64): Likewise.
4687 (grub_cmd_initrd): Likewise.
4688 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
4689 (grub_multiboot_unload): Unload relocator.
4690 (grub_cmd_multiboot): Use relocator.
4691 (grub_cmd_module): Likewise.
4692 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
4693 Use relocator and support sections.
4694 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
4695 (elf_sec_entsize): Likewise.
4696 (elf_sec_shstrndx): Likewise.
4697 (elf_sections): Likewise.
4698 (grub_multiboot_load): Use relocator.
4699 (grub_multiboot_get_mbi_size): Account for sections.
4700 (grub_multiboot_make_mbi): Use relocator and support sections.
4701 (grub_multiboot_add_elfsyms): New function.
4702 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
4703 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
4704 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
4705 Prototype changed. All users updated.
4706 (grub_xnu_align_heap): Simplified.
4707 (grub_xnu_writetree_toheap): Likewise.
4708 (grub_xnu_unload): Unload relocator.
4709 (grub_cmd_xnu_kernel): Use relocator.
4710 (grub_cmd_xnu_kernel64): Likewise.
4711 (grub_xnu_register_memory): Simplified.
4712 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
4713 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
4714 EFI is finished.
4715 (grub_console_checkkey): Likewise.
4716 (grub_console_getkey): Likewise.
4717 (grub_console_getwh): Likewise.
4718 (grub_console_getxy): Likewise.
4719 (grub_console_gotoxy): Likewise.
4720 (grub_console_cls): Likewise.
4721 (grub_console_setcolorstate): Likewise.
4722 (grub_console_setcursor): Likewise.
4723 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
4724 * grub-core/tests/boot/kbsd.init-i386.S: New file.
4725 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
4726 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
4727 * grub-core/tests/boot/kernel-8086.S: Likewise.
4728 * grub-core/tests/boot/kernel-i386.S: Likewise.
4729 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
4730 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
4731 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
4732 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
4733 * grub-core/tests/boot/knetbsd.cfg: Likewise.
4734 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
4735 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
4736 * grub-core/tests/boot/linux.cfg: Likewise.
4737 * grub-core/tests/boot/linux.init-i386.S: Likewise.
4738 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
4739 * grub-core/tests/boot/linux16.cfg: Likewise.
4740 * grub-core/tests/boot/multiboot.cfg: Likewise.
4741 * grub-core/tests/boot/multiboot2.cfg: Likewise.
4742 * grub-core/tests/boot/ntldr.cfg: Likewise.
4743 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
4744 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
4745 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
4746 New definition.
4747 * include/grub/dl.h (grub_dl_unload_all): Removed.
4748 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
4749 (grub_efi_finish_boot_services): Change prototype.
4750 (grub_efi_is_finished): New variable.
4751 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
4752 Changed prototype.
4753 (grub_efiemu_finish_boot_services): Removed.
4754 (grub_machine_efiemu_init_tables): New prototype.
4755 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
4756 (grub_elf64_phdr_iterate): Likewise.
4757 * include/grub/i386/bsd.h: Include relocator.h.
4758 (freebsd_tag_header): New struct.
4759 (grub_openbsd_bios_mmap): Removed.
4760 (grub_unix_real_boot): Removed.
4761 (grub_freebsd_load_elfmodule32): Changed prototype.
4762 (grub_freebsd_load_elfmodule_obj64): Likewise.
4763 (grub_freebsd_load_elf_meta32): Likewise.
4764 (grub_freebsd_load_elf_meta64): Likewise.
4765 (grub_freebsd_add_meta): Removed.
4766 (grub_netbsd_load_elf_meta32): New prototype.
4767 (grub_netbsd_load_elf_meta64): Likewise.
4768 (grub_bsd_add_meta): Likewise.
4769 (grub_openbsd_ramdisk_descriptor): New struct.
4770 (grub_openbsd_find_ramdisk32): New prototype.
4771 (grub_openbsd_find_ramdisk64): Likewise.
4772 * include/grub/i386/coreboot/loader.h: Removed.
4773 * include/grub/i386/efi/loader.h: Likewise.
4774 * include/grub/i386/ieee1275/loader.h: Likewise.
4775 * include/grub/i386/linux.h (linux_kernel_header): Change void *
4776 to grub_uint32_t.
4777 * include/grub/i386/loader.h: Removed.
4778 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
4779 value.
4780 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
4781 (grub_phys_addr_t): New type.
4782 (grub_vtop): New inline function.
4783 (grub_map_memory): Likewise.
4784 (grub_unmap_memory): Likewise.
4785 * include/grub/i386/multiboot/loader.h: Removed.
4786 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
4787 (NETBSD_BTINFO_CONSOLE): New definition.
4788 (NETBSD_BTINFO_SYMTAB): Likewise.
4789 (NETBSD_BTINFO_MODULES): Likewise.
4790 (NETBSD_BTINFO_FRAMEBUF): Likewise.
4791 (grub_netbsd_bootinfo): New struct.
4792 (grub_netbsd_btinfo_common): Use explicit bitsize.
4793 (grub_netbsd_btinfo_mmap_entry): Removed.
4794 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
4795 (grub_netbsd_btinfo_bootdisk): New struct.
4796 (grub_netbsd_btinfo_symtab): Likewise.
4797 (grub_netbsd_btinfo_serial): Likewise.
4798 (grub_netbsd_btinfo_modules): Likewise.
4799 (grub_netbsd_btinfo_framebuf): Likewise.
4800 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
4801 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
4802 Likewise.
4803 (grub_openbsd_bootargs): Use explicit bitsize.
4804 (grub_openbsd_bootarg_console): New struct.
4805 (GRUB_OPENBSD_COM_MAJOR): New definition.
4806 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
4807 * include/grub/i386/pc/efiemu.h: Removed.
4808 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
4809 * include/grub/i386/qemu/loader.h: Removed.
4810 * include/grub/i386/relocator.h: Rewritten.
4811 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
4812 * include/grub/mips/memory.h: New file.
4813 * include/grub/mips/multiboot.h: Rewritten.
4814 * include/grub/mips/relocator.h: Rewritten.
4815 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
4816 (grub_vtop): New function.
4817 (grub_map_memory): Likewise.
4818 (grub_unmap_memory): Likewise.
4819 * include/grub/misc.h (ALIGN_DOWN): New definition.
4820 * include/grub/mm.h (grub_mm_check_real): New proto.
4821 (GRUB_MM_CHECK): New definition.
4822 * include/grub/mm_private.h: New file.
4823 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
4824 (grub_multiboot_get_mbi_size): Removed.
4825 (grub_multiboot_make_mbi): Change prottype.
4826 (grub_multiboot_set_accepts_video): New proto.
4827 (grub_multiboot_add_elfsyms): Likewise.
4828 (grub_multiboot_payload_eip): New variable.
4829 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
4830 New prototype.
4831 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
4832 New definition.
4833 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
4834 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
4835 * include/grub/powerpc/ieee1275/loader.h: Removed.
4836 * include/grub/powerpc/memory.h: New file.
4837 * include/grub/powerpc/relocator.h: Likewise.
4838 * include/grub/relocator.h: Likewise.
4839 * include/grub/relocator_private.h: Likewise.
4840 * include/grub/sparc64/ieee1275/loader.h: Removed.
4841 * include/grub/x86_64/memory.h: New file.
4842 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
4843 (grub_xnu_heap_malloc): Likewise.
4844 (grub_xnu_heap_real_start): Removed.
4845 (grub_xnu_heap_start): Likewise.
4846 (grub_xnu_relocator): New variable.
4847 (grub_xnu_heap_target_start): Likewise.
4848 * tests/util/grub-shell.in: Support non-pc.
4849 * util/grub-mkimage.c (image_targets): Fix multiboot target.
4850
4851 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
4852
4853 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
4854 on malloc error.
4855 (grub_bidi_logical_to_visual): Check that malloc succeded.
4856 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
4857 puts.
4858 (grub_xputs_normal): Likewise.
4859
4860 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
4861
4862 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
4863 extra_dist.
4864
4865 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
4866
4867 * grub-core/efiemu/runtime/efiemu.sh: Removed.
4868
4869 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
4870
4871 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
4872
4873 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
4874
4875 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
4876 dprintf.
4877
4878 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
4879
4880 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
4881
4882 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
4883
4884 * grub-core/normal/term.c (print_more): Fix a memory leak.
4885 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
4886 (grub_xputs_normal): Likewise.
4887
4888 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
4889
4890 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
4891 the begining of the string
4892
4893 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
4894
4895 * grub-core/script/script.c (grub_script_parse): Free parsed on
4896 failure.
4897
4898 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
4899
4900 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
4901 on failure.
4902
4903 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
4904
4905 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
4906 return.
4907
4908 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
4909
4910 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
4911 (scroll_up): Fix a memory leak.
4912
4913 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
4914
4915 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
4916 errors.
4917
4918 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
4919
4920 Handle USB pendrives exposed as floppies.
4921
4922 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
4923 floppy.
4924 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
4925 Check for partitions on all devices.
4926
4927 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
4928
4929 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
4930 (readkey): Likewise.
4931
4932 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
4933
4934 Multiple variable names support to "export" command.
4935
4936 * normal/context.c (grub_cmd_export): "export" command supports
4937 multiple variable names.
4938
4939 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
4940
4941 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
4942 --target=drive output to Mach device name.
4943
4944 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
4945
4946 New Automake based build system for GRUB.
4947
4948 * ABOUT-NLS: New file.
4949 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
4950 in Makefile.util.def file.
4951 * Makefile.util.def: New file. Autogen build definitions file for
4952 GRUB host utils.
4953 * conf/Makefile.common: New file. Common variables for GRUB host
4954 utils and target modules.
4955 * conf/Makefile.extra-dist: New file. Extra files for make dist.
4956 * docs/Makefile.am: New file. Automake file for docs.
4957 * gentpl.py: New file. Python script to generate Autogen
4958 template.
4959 * grub-core/Makefile.am: New file. GRUB target modules' rules
4960 that doesn't fit in Makefile.core.def file.
4961 * grub-core/Makefile.core.def: New file. Autogen build
4962 definitions file for GRUB target modules.
4963 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
4964 specific setjmp.S file.
4965 * po/Makefile.am: New file.
4966
4967 * .bzrignore: New ignores.
4968 * INSTALL: New requirements, without Ruby.
4969 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
4970 * autogen.sh: Updated to invoke autogen as necessary.
4971 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
4972 and defines for Automake conditionals.
4973 * geninit.sh: Refactoring.
4974
4975 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
4976 necessary.
4977 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
4978 New prototype.
4979
4980 * include/grub/test.h: Fix functional test modules' naming.
4981 * grub-core/tests/example_functional_test.c: Fix test module name.
4982
4983 * util/misc.c: Hosted versions' of grub functions for libgrub.a
4984 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
4985 * util/grub-editenv.c: Likewise.
4986 * util/grub-fstest.c: Likewise.
4987 * util/grub-mkdevicemap.c: Likewise.
4988 * util/grub-mkfont.c: Likewise.
4989 * util/grub-mkimage.c: Likewise.
4990 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4991 * util/grub-probe.c: Likewise.
4992 * util/grub-script-check.c: Likewise.
4993 * util/i386/pc/grub-setup.c: Likewise.
4994 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4995
4996 * tests/util/grub-shell.in: Fix override directory path.
4997 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
4998 * util/import_gcry.py: Create Makefile.gcry.def file instead.
4999
5000 * util/lvm.c: Update #includes.
5001 * util/raid.c: Likewise.
5002 * util/resolve.c: Likewise.
5003 * grub-core/bus/emu/pci.c: Likewise.
5004 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
5005 * grub-core/lib/posix_wrap/string.h: Likewise.
5006 * grub-core/kern/emu/main.c: Likewise.
5007
5008 * grub-core/gensymlist.sh: New file. Script for generating kernel
5009 symbols file.
5010 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
5011
5012 * grub-core/gentrigtables.c: Fix unused variable warnings.
5013
5014 * Makefile.in: Removed.
5015 * conf/any-emu.rmk: Removed.
5016 * conf/common.rmk: Removed.
5017 * conf/i386-coreboot.rmk: Removed.
5018 * conf/i386-efi.rmk: Removed.
5019 * conf/i386-ieee1275.rmk: Removed.
5020 * conf/i386-multiboot.rmk: Removed.
5021 * conf/i386-pc.rmk: Removed.
5022 * conf/i386-qemu.rmk: Removed.
5023 * conf/i386.rmk: Removed.
5024 * conf/mips-yeeloong.rmk: Removed.
5025 * conf/mips.rmk: Removed.
5026 * conf/powerpc-ieee1275.rmk: Removed.
5027 * conf/sparc64-ieee1275.rmk: Removed.
5028 * conf/tests.rmk: Removed.
5029 * conf/x86-efi.rmk: Removed.
5030 * conf/x86_64-efi.rmk: Removed.
5031 * gendistlist.sh: Removed.
5032 * geninitheader.sh: Removed.
5033 * genkernsyms.sh.in: Removed.
5034 * genmk.rb: Removed.
5035 * gensymlist.sh.in: Removed.
5036 * mkinstalldirs: Removed.
5037 * boot: Moved ...
5038 * grub-core/boot: ... to here.
5039 * bus: Moved ...
5040 * grub-core/bus: ... to here.
5041 * commands: Moved ...
5042 * grub-core/commands: ... to here.
5043 * disk: Moved ...
5044 * grub-core/disk: ... to here.
5045 * efiemu: Moved ...
5046 * grub-core/efiemu: ... to here.
5047 * font: Moved ...
5048 * grub-core/font: ... to here.
5049 * fs: Moved ...
5050 * grub-core/fs: ... to here.
5051 * gencmdlist.sh: Moved ...
5052 * grub-core/gencmdlist.sh: ... to here.
5053 * genemuinit.sh: Moved ...
5054 * grub-core/genemuinit.sh: ... to here.
5055 * genemuinitheader.sh: Moved ...
5056 * grub-core/genemuinitheader.sh: ... to here.
5057 * genfslist.sh: Moved ...
5058 * grub-core/genfslist.sh: ... to here.
5059 * genhandlerlist.sh: Moved ...
5060 * grub-core/genhandlerlist.sh: ... to here.
5061 * genmoddep.awk: Moved ...
5062 * grub-core/genmoddep.awk: ... to here.
5063 * genmodsrc.sh: Moved ...
5064 * grub-core/genmodsrc.sh: ... to here.
5065 * genpartmaplist.sh: Moved ...
5066 * grub-core/genpartmaplist.sh: ... to here.
5067 * genparttoollist.sh: Moved ...
5068 * grub-core/genparttoollist.sh: ... to here.
5069 * genterminallist.sh: Moved ...
5070 * grub-core/genterminallist.sh: ... to here.
5071 * gentrigtables.c: Moved ...
5072 * grub-core/gentrigtables.c: ... to here.
5073 * genvideolist.sh: Moved ...
5074 * grub-core/genvideolist.sh: ... to here.
5075 * gettext: Moved ...
5076 * grub-core/gettext: ... to here.
5077 * gfxmenu: Moved ...
5078 * grub-core/gfxmenu: ... to here.
5079 * gnulib: Moved ...
5080 * grub-core/gnulib: ... to here.
5081 * hello: Moved ...
5082 * grub-core/hello: ... to here.
5083 * hook: Moved ...
5084 * grub-core/hook: ... to here.
5085 * io: Moved ...
5086 * grub-core/io: ... to here.
5087 * kern: Moved ...
5088 * grub-core/kern: ... to here.
5089 * lib: Moved ...
5090 * grub-core/lib: ... to here.
5091 * loader: Moved ...
5092 * grub-core/loader: ... to here.
5093 * mmap: Moved ...
5094 * grub-core/mmap: ... to here.
5095 * normal: Moved ...
5096 * grub-core/normal: ... to here.
5097 * partmap: Moved ...
5098 * grub-core/partmap: ... to here.
5099 * parttool: Moved ...
5100 * grub-core/parttool: ... to here.
5101 * script: Moved ...
5102 * grub-core/script: ... to here.
5103 * term: Moved ...
5104 * grub-core/term: ... to here
5105 * tests/example_functional_test.c: Moved ...
5106 * grub-core/tests/example_functional_test.c: ... to here.
5107 * tests/lib/functional_test.c: Moved ...
5108 * grub-core/tests/lib/functional_test.c: ... to here.
5109 * tests/lib/test.c: Moved ...
5110 * grub-core/tests/lib/test.c: ... to here.
5111 * video: Moved ...
5112 * grub-core/video: ... to here.
5113
5114 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
5115
5116 Replace --enable-grub-emu-modules with grub-emu-lite.
5117
5118 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
5119 cache.S.
5120
5121 * include/grub/emu/misc.h (grub_emu_init): New prototype.
5122 * kern/emu/full.c: New file. For grub-emu specific initialization.
5123 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
5124 * kern/emu/main.c: Call initialization function grub_emu_init.
5125
5126 * Makefile.in: Include grub-emu-lite in install.
5127 * commands/parttool.c: Use grub_no_autoload to differentiate
5128 between grub-emu and grub-emu-lite.
5129 * include/grub/misc.h: New variable grub_no_autoload.
5130
5131 * conf/any-emu.rmk: New rules for grub-emu-lite.
5132 * configure.ac: Remove --enable-grub-emu-modules.
5133 * genmk.rb: Cleanup unnecessary rules.
5134 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
5135
5136 * normal/main.c: Don't load list files on grub-emu-lite.
5137 * util/misc.c (grub_arch_sync_caches): Removed.
5138
5139 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
5140
5141 * kern/mips/startup.S (grub_prefix): Update comment to refer to
5142 grub-mkimage rather than grub-mkelfimage.
5143 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
5144
5145 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5146
5147 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
5148 a key after CapsLock or NumLock. It's just a qemu bug.
5149
5150 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5151
5152 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
5153 needed by libusb wrapper.
5154
5155 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5156
5157 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
5158
5159 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5160
5161 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
5162 --nounzip is passed.
5163
5164 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
5165
5166 USB hotunplugging and USB serial support.
5167
5168 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
5169 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
5170 (grub_uhci_transfer): Respect timeout and set *actual.
5171 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
5172 non-standard length.
5173 (grub_usb_device_attach): Autoload modules.
5174 (GRUB_MOD_INIT): Set grub_term_poll_usb.
5175 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
5176 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
5177 users updated.
5178 (grub_usb_add_hub): Fill nports and children.
5179 (attach_root_port): Receive hub instead of controller.
5180 All users updated. Fill hub->devices.
5181 (grub_usb_root_hub): Allocate hub->devices.
5182 (detach_device): New function.
5183 (poll_nonroot_hub): Fill children and detach devices.
5184 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
5185 actual arguments. All users updated.
5186 (grub_usb_bulk_read_extended): New function.
5187 * bus/usb/serial/common.c: New file.
5188 * bus/usb/serial/ftdi.c: Likewise.
5189 * bus/usb/serial/pl2303.c: Likewise.
5190 * commands/terminal.c (handle_command): Support wildcard.
5191 * commands/usbtest.c: Output "Unknown" instead of empty string.
5192 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
5193 (usbserial_common_mod_SOURCES): New variable.
5194 (usbserial_common_mod_CFLAGS): Likewise.
5195 (usbserial_common_mod_LDFLAGS): Likewise.
5196 (pkglib_MODULES): Add usbserial_pl2303.mod.
5197 (usbserial_pl2303_mod_SOURCES): New variable.
5198 (usbserial_pl2303_mod_CFLAGS): Likewise.
5199 (usbserial_pl2303_mod_LDFLAGS): Likewise.
5200 (pkglib_MODULES): Add usbserial_ftdi.mod.
5201 (usbserial_ftdi_mod_SOURCES): New variable.
5202 (usbserial_ftdi_mod_CFLAGS): Likewise.
5203 (usbserial_ftdi_mod_LDFLAGS): Likewise.
5204 (pkglib_MODULES): Add serial.mod.
5205 (serial_mod_SOURCES): New variable.
5206 (serial_mod_CFLAGS): Likewise.
5207 (serial_mod_LDFLAGS): Likewise.
5208 * conf/i386-pc.rmk: Likewise.
5209 * conf/mips-yeeloong.rmk: Likewise.
5210 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
5211 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
5212 * disk/usbms.c (first_available_slot): New variable.
5213 (grub_usbms_attach): Don't reuse free slots due to potential cache
5214 problems.
5215 * include/grub/serial.h: Moved to ..
5216 * include/grub/ns8250.h: ...this.
5217 * include/grub/serial.h: New file.
5218 * include/grub/term.h (grub_term_poll_usb): New variable.
5219 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
5220 readkey. All users updated.
5221 (grub_terminfo_output_state): Pass term to put.
5222 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
5223 (grub_usb_controller_dev): Add timeout and actual arguments to
5224 transfer. All users updated.
5225 (grub_usb_interface): New field detach_data.
5226 (grub_usb_device): New fields children and nports.
5227 (grub_usb_ep_type_t): New type.
5228 (grub_usb_get_ep_type): New function.
5229 (grub_usb_bulk_read_extended): Likewise.
5230 * include/grub/usbdesc.h (grub_usb_desc): New type.
5231 * include/grub/usbserial.h: New file.
5232 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
5233 * kern/term.c (grub_term_poll_usb): New variable.
5234 (grub_getkey): Call grub_term_poll_usb if set.
5235 (grub_checkkey): Likewise.
5236 (grub_getkeystatus): Likewise.
5237 * term/serial.c: Moved controller-specific parts to ...
5238 * term/ns8250.c: ... here.
5239 * term/serial.c: Mostly rewritten.
5240 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
5241 according to spec.
5242
5243 2010-08-20 Robert Millan <rmh@gnu.org>
5244
5245 Make kFreeBSD code more generic to support ext2fs as root, ufs as
5246 a separate module and maybe other interesting combinations.
5247
5248 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
5249 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
5250 (kfreebsd_entry): Add generic filesystem module load routine.
5251 Map GRUB `ext2' to kFreeBSD `ext2fs'.
5252
5253 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
5254
5255 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
5256 "numcenter" (I misunderstood the purpose of this entry).
5257 * docs/grub.texi (sendkey): Likewise.
5258
5259 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
5260
5261 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
5262 status flag options; simply omitting the option is equivalent and
5263 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
5264 (keysym_table): Rename "num5numlock" to "numlock".
5265 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
5266 can uniformly say that only the last of multiple `sendkey'
5267 invocations has any effect.
5268 * docs/grub.texi (sendkey): New section.
5269
5270 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
5271
5272 * commands/i386/pc/sendkey.c (options): Fix three typos.
5273
5274 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5275
5276 Implement sendkey support.
5277
5278 * commands/i386/pc/sendkey.c: New file.
5279 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
5280 (sendkey_mod_SOURCES): New variable.
5281 (sendkey_mod_CFLAGS): Likewise.
5282 (sendkey_mod_LDFLAGS): Likewise.
5283
5284 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
5285
5286 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
5287 fix warnings from Autoconf.
5288
5289 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
5290
5291 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
5292 to avoid false positives with some assemblers that output things
5293 like "someprefix_func" as part of their output.
5294
5295 2010-08-15 Robert Millan <rmh@gnu.org>
5296
5297 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
5298 errors.
5299 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
5300 grub_get_libzfs_handle() errors.
5301
5302 2010-08-14 Robert Millan <rmh@gnu.org>
5303
5304 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
5305 filesystem is not ZFS.
5306
5307 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
5308
5309 Fix for misspelled color names defaulting to black/black (bug
5310 reported by Doug Nazar)
5311
5312 * include/grub/normal.h (grub_parse_color_name_pair): Add return
5313 status to prototype.
5314 * normal/color.c (grub_parse_color_name_pair): Return failure
5315 status.
5316 (grub_env_write_color_normal): Ignore bad color names.
5317 (grub_env_write_color_highlight): Likewise.
5318 * normal/main.c (GRUB_MOD_INIT): Set default color names.
5319
5320 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
5321
5322 "shift" command support to GRUB script.
5323
5324 * include/grub/script_sh.h (grub_script_shift): New prototype.
5325 * script/execute.c (grub_script_shift): New function.
5326 * script/main.c (grub_script_init): Register shift command.
5327 (grub_script_fini): Unregister shift command.
5328 * util/grub-script-check.c (grub_script_cmd_shift): New function.
5329
5330 * tests/grub_script_shift.in: New testcase.
5331 * conf/tests.rmk: Rules for new testcase.
5332
5333 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
5334
5335 "continue" command support to GRUB script.
5336
5337 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
5338 (grub_script_break): Continue support.
5339 * script/main.c (grub_script_init): Register continue command.
5340 (grub_script_fini): Unregister continue command.
5341
5342 * tests/grub_script_continue.in: New testcase.
5343 * conf/tests.rmk: Rules for new testcase.
5344
5345 2010-08-12 BVK Chaitanya <bvk@dbook>
5346
5347 "break" command support to GRUB script.
5348
5349 * conf/common.rmk: Rule updates to grub-script-check.
5350 * include/grub/misc.h (grub_min): New function.
5351 * include/grub/script_sh.h (grub_script_init): New prototype.
5352 (grub_script_fini): New prototype.
5353 (grub_script_break): New prototype.
5354 * script/main.c (grub_script_init): New function.
5355 (grub_script_fini): New function.
5356 * script/execute.c (grub_script_break): New function.
5357 * normal/main.c: Calls to grub_script_{init,fini}.
5358 * util/grub-script-check.c (grub_script_break): New function.
5359
5360 * tests/grub_script_break.in: New testcase.
5361 * conf/tests.rmk: Rules for new test case.
5362
5363 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
5364
5365 Function parameters support to GRUB script.
5366
5367 * script/yylex.l (VARIABLE): Regular expression update.
5368 * script/function.c (grub_script_function_call): Moved ...
5369 * script/execute.c (grub_script_function_call): ... to here.
5370 (grub_script_execute_arglist_to_argv): Removed.
5371 (grub_script_arglist_to_argv): New function.
5372 * script/argv.c: New file.
5373 (grub_script_argv_free): New function.
5374 (grub_script_argv_next): Likewise.
5375 (grub_script_argv_append): Likewise.
5376 (grub_script_argv_split_append): Likewise.
5377 * include/grub/script_sh.h (grub_script_argv): New struct.
5378 (grub_script_argv_free): New function.
5379 (grub_script_argv_next): Likewise.
5380 (grub_script_argv_append): Likewise.
5381 (grub_script_argv_split_append): Likewise.
5382
5383 * conf/common.rmk (normal.mod): New source script/argv.c.
5384
5385 * tests/grub_script_echo1.in: More tests.
5386 * tests/grub_script_vars1.in: Likewise.
5387 * tests/grub_script_functions.in: New test case.
5388 * conf/tests.rmk: Rules for new testcase.
5389
5390 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
5391
5392 Remove grub_script_cmdblock struct.
5393
5394 * include/grub/script_sh.h: Remove grub_script_cmdblock.
5395 * script/parser.y: Likewise.
5396 * script/execute.c: Rename cmdblock suffix to cmdlist.
5397 * script/script.c: Likewise.
5398 * util/grub-script-check.c: Likewise.
5399
5400 2010-08-11 Yves Blusseau <blusseau@zetam.org>
5401
5402 * .bzrignore: add grub-macho2img
5403
5404 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
5405
5406 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
5407
5408 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
5409
5410 Remove the dump of sm712 initialisation sequence.
5411
5412 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
5413 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
5414 (GRUB_VGA_IO_MISC_WRITE): Likewise.
5415 (GRUB_VGA_CR_*): Added many registers.
5416 (GRUB_VGA_SR_*): Likewise.
5417 (GRUB_VGA_GR_*): Likewise.
5418 (grub_vga_write_arx): New function.
5419 (grub_video_hw_config): New struct.
5420 (grub_vga_set_geometry): New function.
5421 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
5422 GRUB_PCI_CLASS_SUBCLASS_VGA.
5423 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
5424 * video/sm712.c (grub_sm712_write_reg): New function
5425 (grub_sm712_read_reg): Likewise.
5426 (grub_sm712_sr_write): Likewise.
5427 (grub_sm712_gr_write): Likewise.
5428 (grub_sm712_cr_write): Likewise.
5429 (grub_sm712_write_arx): Likewise.
5430 (grub_sm712_cr_shadow_write): Likewise.
5431 (grub_sm712_write_dda_lookup): Likewise.
5432 (grub_video_sm712_setup): Initialise the video rather then
5433 blindly replay the dump.
5434 (main) [TEST]: Add a routine to be able to compile as standalone for
5435 tests.
5436 * video/sm712_init.c (sm712_init): Removed.
5437 (sm712_sr_seq1): New array.
5438 (sm712_sr_seq2): Likewise.
5439
5440 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
5441
5442 * include/grub/vga.h: Add missing grub/pci.h include.
5443
5444 2010-08-10 Yves Blusseau <blusseau@zetam.org>
5445
5446 * util/grub-macho2img.c (main): fix typo
5447
5448 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
5449
5450 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
5451 (grub_vga_gr_read): Likewise.
5452 (grub_vga_cr_write): Likewise.
5453 (grub_vga_cr_read): Likewise.
5454 (grub_vga_sr_write): Likewise.
5455 (grub_vga_sr_read): Likewise.
5456 (grub_vga_palette_read): Likewise.
5457 (grub_vga_palette_write): Likewise.
5458 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
5459 (grub_sm712_sr_read): New function.
5460 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
5461 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
5462
5463 2010-08-09 Robert Millan <rmh@gnu.org>
5464
5465 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
5466 out unused variables on non-ZFS build.
5467
5468 2010-08-08 Robert Millan <rmh@gnu.org>
5469
5470 Fix path generation for sub-filesystems in ZFS.
5471
5472 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
5473 missing slash.
5474
5475 2010-08-08 Robert Millan <rmh@gnu.org>
5476
5477 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
5478
5479 2010-08-08 Robert Millan <rmh@gnu.org>
5480
5481 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
5482 exist, issue a proper error message (rely on `ls' for translated
5483 strings).
5484
5485 2010-08-08 Robert Millan <rmh@gnu.org>
5486
5487 Fix grub-probe invocation.
5488
5489 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
5490
5491 2010-08-04 Robert Millan <rmh@gnu.org>
5492
5493 * configure.ac: Remove checks for getfsstat() and getmntany().
5494 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
5495 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
5496 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
5497 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
5498 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
5499 function.
5500 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
5501 via find_mount_point_from_dir() and getfsstat() / getmntany().
5502
5503 2010-08-04 Robert Millan <rmh@gnu.org>
5504
5505 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
5506 (grub_find_zpool_from_mount_point): Merge into ...
5507 (grub_find_zpool_from_dir): ... this.
5508 * kern/emu/misc.c: Likewise.
5509
5510 * kern/emu/misc.c
5511 (grub_make_system_path_relative_to_its_root): Replace
5512 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
5513 with grub_find_zpool_from_dir().
5514 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
5515
5516 2010-08-04 Robert Millan <rmh@gnu.org>
5517
5518 Support OpenSolaris in ZFS device resolution.
5519
5520 * configure.ac: Check for getmntany().
5521 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
5522 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
5523 support.
5524
5525 2010-08-03 Robert Millan <rmh@gnu.org>
5526
5527 Fix grub-emu build.
5528
5529 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
5530 * include/grub/emu/misc.h: ... here.
5531
5532 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
5533 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
5534
5535 * util/misc.c: Remove `<grub/util/libzfs.h>'.
5536 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
5537 (grub_get_libzfs_handle): Move to ...
5538 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
5539 (grub_get_libzfs_handle): ... here.
5540
5541 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
5542
5543 * script/execute.c (grub_script_execute_cmdline): Check for NULL
5544 as command name case.
5545
5546 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
5547
5548 * disk/raid.c (insert_array): Select unique numbers for named arrays
5549 as well, for use as keys in the disk cache.
5550
5551 2010-08-01 Robert Millan <rmh@gnu.org>
5552
5553 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
5554 kFreeBSD device name, except on ZFS where the filesystem label is
5555 used.
5556 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
5557 `/boot/zfs/zpool.cache'.
5558 Set mountfrom kernel variable using ${kfreebsd_device}.
5559
5560 2010-08-01 Robert Millan <rmh@gnu.org>
5561
5562 Make it even harder to use uninitialized `libzfs_handle' (and
5563 make the interface a bit simpler).
5564
5565 * include/grub/util/misc.h (grub_util_init_libzfs)
5566 (libzfs_handle): Remove.
5567 (grub_get_libzfs_handle): New prototype.
5568
5569 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
5570 attribute.
5571 (grub_util_init_libzfs): Remove.
5572 (grub_get_libzfs_handle): New function.
5573
5574 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
5575 grub_get_libzfs_handle() to obtain a libzfs handle instead of
5576 accessing `libzfs_handle' directly.
5577
5578 2010-08-01 Robert Millan <rmh@gnu.org>
5579
5580 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
5581 (grub_find_zpool_from_mount_point): New function prototypes.
5582
5583 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
5584 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
5585
5586 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
5587 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
5588 `static' attribute.
5589
5590 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
5591 finding zpool from mount point into ...
5592 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
5593
5594 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
5595 requested path is part of a ZFS pool, use
5596 grub_find_zpool_from_mount_point() to detect its filesystem name,
5597 and generate a path with `/fsname@path' syntax.
5598
5599 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
5600
5601 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
5602 (void) rather than () so that this is a proper prototype.
5603
5604 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
5605
5606 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
5607
5608 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
5609
5610 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
5611 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
5612
5613 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
5614
5615 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
5616
5617 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
5618
5619 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
5620
5621 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
5622
5623 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
5624 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
5625 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
5626 disable gfxpayload.
5627 (Shell-like scripting): Add real content.
5628 (Serial terminal): Suggest `terminal_input serial; terminal_output
5629 serial' rather than putting the two commands on separate lines,
5630 since console input will be inoperative after the first command.
5631 (menuentry): Document --class, --users, and --hotkey options.
5632 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
5633 Vladimir Serbinenko).
5634
5635 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
5636 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
5637
5638 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
5639
5640 2010-08-01 Robert Millan <rmh@gnu.org>
5641
5642 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
5643 (grub_find_zpool_from_mount_point): New function prototypes.
5644
5645 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
5646 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
5647
5648 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
5649 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
5650 `static' attribute.
5651
5652 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
5653 finding zpool from mount point into ...
5654 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
5655
5656 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
5657 requested path is part of a ZFS pool, use
5658 grub_find_zpool_from_mount_point() to detect its filesystem name,
5659 and generate a path with `/fsname@path' syntax.
5660
5661 2010-08-01 Robert Millan <rmh@gnu.org>
5662
5663 Prevent accidental use of uninitialized libzfs_handle.
5664
5665 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
5666 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
5667 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
5668
5669 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
5670
5671 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
5672 util/grub.d/10_linux.in). Fixes Debian bug #591093.
5673
5674 2010-08-01 Robert Millan <rmh@gnu.org>
5675
5676 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
5677
5678 2010-07-31 Robert Millan <rmh@gnu.org>
5679
5680 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
5681
5682 2010-07-31 Robert Millan <rmh@gnu.org>
5683
5684 * kern/emu/misc.c: Add missing license header.
5685
5686 2010-07-31 Robert Millan <rmh@gnu.org>
5687
5688 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
5689
5690 * include/grub/util/libnvpair.h: Include `<config.h>'.
5691 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
5692 declaring libnvpair prototypes ourselves.
5693 * include/grub/util/libzfs.h: Include `<config.h>'.
5694 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
5695 declaring libzfs prototypes ourselves.
5696
5697 (libzfs_handle): Moved to ...
5698 * include/grub/util/misc.h (libzfs_handle): ... here.
5699 Include `<grub/util/libzfs.h>'.
5700
5701 2010-07-30 Robert Millan <rmh@gnu.org>
5702
5703 * include/grub/emu/misc.h: Add missing license header.
5704
5705 2010-07-30 Robert Millan <rmh@gnu.org>
5706
5707 Enable `grub-probe -t device' resolution on ZFS.
5708
5709 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
5710 * include/grub/util/libnvpair.h: New file.
5711 * include/grub/util/libzfs.h: New file.
5712
5713 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
5714 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
5715 `<grub/util/libnvpair.h>'.
5716 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
5717
5718 (find_mount_point_from_dir): New static function.
5719 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
5720 function.
5721 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
5722 find_root_device_from_libzfs() before ressorting to find_root_device().
5723
5724 * include/grub/util/misc.h (grub_util_init_libzfs): New function
5725 prototype.
5726 * util/misc.c: Include `<grub/util/libzfs.h>'.
5727 (grub_util_init_libzfs): New function.
5728 [HAVE_LIBZFS] (libzfs_handle): New global variable.
5729 [HAVE_LIBZFS] (fini_libzfs): New static function.
5730 (grub_util_init_libzfs): New function.
5731 * util/grub-probe.c (main): Call grub_util_init_libzfs().
5732
5733 2010-07-30 Robert Millan <rmh@gnu.org>
5734
5735 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
5736 (xmalloc, xrealloc, xstrdup, xasprintf): Add
5737 `warn_unused_result' attribute.
5738 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
5739 (grub_xasprintf, grub_xvasprintf): Likewise.
5740 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
5741
5742 2010-07-29 Robert Millan <rmh@gnu.org>
5743
5744 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
5745 (probe): Handle `PRINT_FS_LABEL'.
5746 (main): Handle `-t fs_label'.
5747
5748 2010-07-29 Robert Millan <rmh@gnu.org>
5749
5750 * configure.ac: Remove grub-mkisofs checks.
5751
5752 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
5753
5754 * util/ieee1275/grub-install.in: Don't use empty grub_device.
5755 Reported by: Lennart Sorensen.
5756
5757 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
5758
5759 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
5760 prior to terminal_input/terminal_output separation. It's been over 1.5
5761 years and those versions weren't widely deployed.
5762
5763 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
5764
5765 * disk/raid.c (insert_array): Don't count named arrays when looking
5766 for unused array numbers.
5767 Reported and tested by: Michael Guntsche.
5768
5769 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
5770
5771 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
5772 implementation of this so that grub-emu links again, with a note
5773 that this should support hotplugging in the future.
5774
5775 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
5776
5777 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
5778
5779 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
5780
5781 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
5782 handle on failure.
5783 (grub_loopback_close): Remove empty function.
5784 (grub_loopback_dev): Remove close method.
5785
5786 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
5787
5788 Disable EFI cursor when the EFI console becomes inactive.
5789
5790 * term/efi/console.c (grub_efi_console_init): New function.
5791 (grub_efi_console_fini): New function.
5792 (grub_console_term_output): Register init and fini methods.
5793
5794 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
5795
5796 * tests/util/grub-shell-tester.in: Remove bashism and declare as
5797 sh script.
5798
5799 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
5800
5801 * disk/loopback.c (grub_loopback): Replace filename with file.
5802 (delete_loopback): Handle new semantics.
5803 (grub_cmd_loopback): Likewise.
5804 (grub_loopback_iterate): Likewise.
5805 (grub_loopback_close): Likewise.
5806
5807 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
5808
5809 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
5810 with -p "".
5811 Reported by: Tito Keitel.
5812
5813 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
5814
5815 * docs/grub.texi (Naming convention): Document new naming convention.
5816
5817 2010-07-20 Vadim Solomin <vadic052@gmail.com>
5818 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
5819
5820 Generate device.map in something closer to the old ordering.
5821
5822 * util/deviceiter.c (struct device): New declaration.
5823 (compare_file_names): Rename to ...
5824 (compare_devices): ... this. Sort by kernel name in preference to
5825 the stable by-id name, but keep the latter as a fallback comparison.
5826 Update header comment.
5827 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
5828 of `struct device' rather than of plain file names.
5829
5830 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
5831
5832 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
5833 on i386.
5834
5835 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
5836
5837 * commands/acpi.c (setup_common_tables): Use sizeof instead of
5838 hardcoding size.
5839 (setv1table): Likewise.
5840
5841 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
5842
5843 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
5844 removing the homehost if present.
5845 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
5846 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
5847 removing the homehost if present.
5848 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
5849 if possible.
5850 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
5851
5852 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
5853 parameter. Set its pointer target to 0.
5854 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
5855 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
5856 `data_offset' value from the superblock for 1.x metadata.
5857 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
5858 data on the device.
5859 (insert_array): Record the start sector of data on the device.
5860 (grub_raid_register): Pass start_sector parameters to
5861 grub_raid_list->detect and insert_array.
5862 * include/grub/raid.h (struct grub_raid_array): Add start_sector
5863 member.
5864 (struct grub_raid): Add start_sector parameter to `detect'.
5865
5866 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
5867 __attribute__ ((packed)), leaving a comment.
5868 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
5869 (grub_mdraid_detect_09): ... here and ...
5870 (grub_mdraid_detect_1x): ... here.
5871
5872 2010-07-20 Peter Henn <peter.henn@web.de>
5873
5874 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
5875 chunk size and disk size, which are already given as sector counts
5876 as distinct from the 0.90 units. Fetch the correct device number
5877 from the role table instead of using the table index.
5878
5879 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
5880
5881 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
5882 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
5883 (WriteMostly1): New macro.
5884 Set array->name to NULL for metadata format 0.90. Add support for
5885 metadata 1.x. Fix some comments.
5886 * disk/raid.c (): Add support for name based RAID arrays. Fix a
5887 few comments.
5888 * util/getroot.c (grub_util_get_grub_dev): Add support for
5889 /dev/md/name style devices.
5890
5891 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
5892
5893 * .bzrignore: Ignore 20_linux_xen.
5894
5895 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
5896
5897 * util/import_unicode.py: Remove unnecessary imports.
5898
5899 2010-07-17 Aleš Nesrsta <starous@volny.cz>
5900
5901 Hotplugging and USB hub support.
5902
5903 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
5904 (grub_ohci): Likewise.
5905 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
5906 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
5907 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
5908 (GRUB_OHCI_CTRL_EDS): Likewise.
5909 (GRUB_OHCI_BULK_EDS): Likewise.
5910 (GRUB_OHCI_TDS): Likewise.
5911 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
5912 (grub_ohci_ed_phys2virt): New function.
5913 (grub_ohci_virt_to_phys): Likewise.
5914 (grub_ohci_td_phys2virt): Likewise.
5915 (grub_ohci_td_virt2phys): Likewise.
5916 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
5917 attachment.
5918 (grub_ohci_find_ed): New function.
5919 (grub_ohci_alloc_td): Likewise.
5920 (grub_ohci_free_td): Likewise.
5921 (grub_ohci_free_tds): Likewise.
5922 (grub_ohci_transfer): Use previously allocated memory.
5923 (grub_ohci_portstatus): Reset status changed bit.
5924 (grub_ohci_detect_dev): Supply status changed.
5925 (grub_ohci_fini_hw): Free memory.
5926 (grub_ohci_restore_hw): Reallocate memory.
5927 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
5928 Reset status change.
5929 (grub_uhci_detect_dev): Supply status_change.
5930 * bus/usb/usb.c (attach_hooks): New var.
5931 (grub_usb_device_attach): New function.
5932 (grub_usb_register_attach_hook_class): Likewise.
5933 (grub_usb_unregister_attach_hook_class): Likewise.
5934 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
5935 (grub_usb_add_hub): Reset connection changed bit.
5936 (attach_root_port): New function.
5937 (grub_usb_root_hub): Likewise.
5938 (poll_nonroot_hub): Likewise.
5939 (grub_usb_poll_devices): Likewise.
5940 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
5941 * disk/usbms.c (grub_usbms_open): Use device hooks.
5942 (grub_usbms_iterate) :Poll devices.
5943 (grub_usbms_finddevs): Split into ...
5944 (grub_usbms_attach): ... this ...
5945 (grub_usbms_attach): ... and this.
5946 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
5947 in detect_dev.
5948 (grub_usb_interface): New fields attached and detach_hook.
5949 (grub_usb_attach_hook_class): New type.
5950 (grub_usb_attach_desc): New struct.
5951 (grub_usb_register_attach_hook_class): New function.
5952 (grub_usb_unregister_attach_hook_class): Likewise.
5953 (grub_usb_poll_devices): Likewise.
5954 (grub_usb_device_attach): Likewise.
5955 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
5956 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
5957
5958 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
5959
5960 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
5961 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
5962 delta determination style. Works with most NetBSD partitions too.
5963
5964 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
5965
5966 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
5967 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
5968
5969 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
5970
5971 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
5972
5973 2010-07-14 Anton Blanchard <anton@samba.org>
5974
5975 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
5976 ET_DYN files.
5977
5978 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
5979
5980 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
5981
5982 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
5983
5984 * kern/partition.c (grub_partition_check_containment): New function to
5985 check that a partition is physically contained in a parent. Since
5986 offsets are relative (and non-negative), this reduces to checking that
5987 the partition ends before its parent.
5988 (grub_partition_map_probe): Discard out-of-range sub-partitions.
5989 (grub_partition_iterate): Likewise.
5990 * include/grub/partition.h (grub_partition_map): Slightly more detailed
5991 comments.
5992 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
5993 partitions that start before their parent, and add debug printfs.
5994
5995 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
5996
5997 * Makefile.in (.SUFFIX): Spell correctly, as ...
5998 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
5999 bare module name without `.mod', e.g. `test') tried to invoke a
6000 Modula-2 compiler.
6001
6002 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
6003
6004 * README: Point to the Info manual.
6005
6006 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
6007
6008 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
6009 2nd superblock position from partition size.
6010
6011 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
6012
6013 * Makefile.in (MAINTAINER_CLEANFILES): Remove
6014 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
6015 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
6016 outputs.
6017
6018 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
6019
6020 Restructure SCSI .id handling.
6021 Reported and tested by: Aleš Nesrsta.
6022
6023 * disk/ata.c (grub_atapi_close): Removed. All users updated.
6024 (grub_atapi_dev): Changed .name to "ata". New field .id.
6025 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
6026 (grub_usbms_dev): New field .id.
6027 * disk/scsi.c (grub_scsi_iterate): Generate name.
6028 (grub_scsi_open): Parse name.
6029 * include/grub/scsi.h (grub_make_scsi_id): New function.
6030 (grub_scsi_dev): Change iterate and open to number instead of naming
6031 busses. All users updated.
6032 (grub_scsi): Remove name. Add .bus.
6033
6034 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
6035
6036 * commands/help.c (grub_cmd_help): Fix a typo.
6037
6038 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
6039
6040 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
6041 Reported and tested by: Colin Watson.
6042
6043 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
6044
6045 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
6046 in this context.
6047
6048 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
6049
6050 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
6051
6052 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
6053
6054 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
6055 indentation.
6056
6057 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
6058
6059 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
6060 and disk/raid6_recover.c.
6061 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
6062 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
6063
6064 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
6065
6066 * term/gfxterm.c (repaint_schedulded): Rename to ...
6067 (repaint_scheduled): ... this. Update all callers.
6068 (repaint_was_schedulded): Rename to ...
6069 (repaint_was_scheduled): ... this. Update all callers.
6070
6071 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
6072
6073 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
6074 which we expect to be handled by upper layers.
6075
6076 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
6077
6078 * bus/usb/usbhub.c: #include time.h header.
6079
6080 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
6081
6082 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
6083 entry_name also for entries without stat blocks (e.g. ".."); fixes
6084 corruption of the first entry in a directory.
6085
6086 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
6087
6088 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
6089 after setting gfxterm as the active terminal. GRUB_BACKGROUND
6090 doesn't work otherwise.
6091
6092 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
6093
6094 * docs/grub.texi (Features): Update list of supported file systems.
6095 (GNU/Linux): Update for GRUB 2.
6096 (Serial terminal): Remove mention of --disable-serial, which was a
6097 GRUB Legacy configure option. Update instructions to use
6098 `terminal_input' and `terminal_output' rather than `terminal'.
6099 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
6100 configuration' and `Installing GRUB using grub-install'.
6101 (Menu entry editor): Update for GRUB 2.
6102 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
6103 Document new -a, -u, and -v options.
6104 (initrd): New section.
6105 (initrd16): New section.
6106 (linux): New section.
6107 (linux16): New section.
6108 (search): The `var' argument to `--set' is optional.
6109 (GRUB only offers a rescue shell): Go into a little more detail on
6110 drive ordering.
6111
6112 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
6113
6114 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
6115
6116 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
6117
6118 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
6119 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
6120
6121 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
6122
6123 * util/i386/pc/grub-setup.c (setup): Rename prefix to
6124 install_prefix, in line with install_dos_part and install_bsd_part.
6125 Add new prefix variable, which is copied to install_prefix after
6126 comparing core.img in memory with the one read from disk in the
6127 no-embedding case, and use that rather than overwriting
6128 install_prefix immediately when installing to a partition.
6129 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
6130 Bicakci.
6131
6132 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
6133
6134 * configure.ac: Avoid == in test command, it's not portable.
6135 * util/grub.d/30_os-prober.in: Likewise.
6136
6137 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
6138
6139 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
6140
6141 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
6142
6143 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
6144 multiple (top-level) partmaps.
6145
6146 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6147
6148 * util/i386/efi/grub-install.in: Don't use empty grub_device.
6149 Reported by: Tino Keitel.
6150
6151 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6152
6153 Bidi and diacritics support.
6154
6155 * Makefile.in (widthspec.bin): New target.
6156 (widthspec.h): Likewise.
6157 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
6158 * autogen.sh: Generate unidata.c.
6159 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
6160 * commands/ls.c (grub_ls_list_devices): Likewise.
6161 (grub_ls_list_files): Likewise.
6162 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
6163 (grub_mini_cmd_lsmod): Likewise.
6164 * commands/read.c: Likewise.
6165 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
6166 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
6167 * lib/arg.c (grub_arg_show_help): Likewise.
6168 * lib/crypto.c (grub_password_get): Likewise.
6169 * normal/auth.c (grub_username_get): Likewise.
6170 * normal/misc.c (grub_normal_print_device_info): Likewise.
6171 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
6172 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
6173 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
6174 (normal/charset.c_DEPENDENCIES): New variable.
6175 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
6176 (pkglib_MODULES): Remove charset.mod.
6177 (charset_mod_SOURCES): Removed.
6178 (charset_mod_CFLAGS): Likewise.
6179 (charset_mod_LDFLAGS): Likewise.
6180 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
6181 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
6182 and term/tparm.c.
6183 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
6184 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
6185 (kernel_img_HEADERS): Add terminfo.h.
6186 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
6187 Fill ->font. Reverse ascii bitmaps.
6188 (grub_font_get_xheight): New function.
6189 * font/font.c (grub_font_get_string_width): Moved from here ...
6190 * gfxmenu/font.c (grub_font_get_string_width): ... here.
6191 * font/font.c (grub_font_draw_string): Moved from here ...
6192 * gfxmenu/font.c (grub_font_draw_string): ... here.
6193 * font/font.c (grub_font_dup_glyph): New function.
6194 (grub_font_blit_glyph): Likewise.
6195 (grub_font_blit_glyph_mirror): Likewise.
6196 (blit_comb): Likewise.
6197 (grub_font_construct_dry_run): Likewise.
6198 (grub_font_get_constructed_device_width): Likewise.
6199 (grub_font_construct_glyph): Likewise.
6200 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
6201 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
6202 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
6203 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
6204 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
6205 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
6206 (grub_font_get_xheight): New proto.
6207 (grub_font_get_constructed_device_width): Likewise.
6208 (grub_font_construct_glyph): Likewise.
6209 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
6210 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
6211 * include/grub/font.h (grub_font_draw_string): Moved from here ...
6212 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
6213 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
6214 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
6215 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
6216 (grub_console_getcharwidth): Likewise.
6217 * include/grub/misc.h (grub_xputs): New proto.
6218 (grub_puts): Inlined.
6219 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
6220 (grub_normal_get_line_counter): Removed.
6221 (grub_install_newline_hook): Likewise.
6222 (grub_normal_get_char_counter): New proto.
6223 (grub_normal_reset_more): Likewise.
6224 (grub_xputs_normal): Likewise.
6225 * include/grub/powerpc/ieee1275/console.h: Removed.
6226 * include/grub/sparc64/ieee1275/console.h: Likewise.
6227 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
6228 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
6229 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
6230 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
6231 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
6232 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
6233 (grub_term_input): Pass reference to self. All users updated.
6234 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
6235 Pass reference to self. New fields normal_color, highlight_color and
6236 data. All users updated.
6237 (grub_putchar): Removed.
6238 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
6239 (grub_unicode_estimate_width): New function.
6240 (grub_term_getcharwidth): Add defaults.
6241 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
6242 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
6243 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
6244 (grub_cls): Remove EXPORT_FUNC.
6245 (grub_setcolorstate): Inline.
6246 (grub_newline_hook): Removed.
6247 * include/grub/terminfo.h: Rewritten. All users updated.
6248 * include/grub/unicode.h: New file.
6249 * include/grub/video.h (grub_video_signed_rect): New type.
6250 * kern/emu/console.c (grub_console_highlight_color): Removed.
6251 (grub_console_normal_color): Likewise.
6252 (grub_console_standard_color): Made static.
6253 (grub_ncurses_putchar): Remove mapping.
6254 (grub_ncurses_getcharwidth): Removed.
6255 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
6256 (grub_ncurses_setcolor): Removed.
6257 (grub_ncurses_getcolor): Likewise.
6258 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
6259 (grub_console_putchar): ... this.
6260 (grub_console_putchar): Handle argument difference.
6261 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
6262 console_init_early and console_init_lately.
6263 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
6264 * kern/misc.c (grub_puts): Removed.
6265 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
6266 (grub_vsnprintf_real): Remove str = NULL support.
6267 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
6268 * normal/charset.c (grub_utf8_to_ucs4): ... here.
6269 * kern/term.c (grub_putcode): Renamed to ...
6270 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
6271 (grub_putchar): Removed.
6272 (grub_xputs_dumb): New function.
6273 (grub_xputs): New variable.
6274 * lib/charset.c: Move from here ...
6275 * normal/charset.c: ... to here.
6276 (grub_ucs4_to_utf8): New function.
6277 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
6278 (join_types): New variable.
6279 (unpack_join): New function.
6280 (bidi_types): New variable.
6281 (unpack_bidi): New function.
6282 (get_bidi_type): Likewise.
6283 (get_join_type): Likewise.
6284 (is_mirrored): Likewise.
6285 (grub_unicode_get_comb_type): Likewise.
6286 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
6287 (is_type_after): Likewise.
6288 (grub_unicode_aglomerate_comb): Likewise.
6289 (bidi_line_wrap): Likewise.
6290 (grub_bidi_line_logical_to_visual): Likewise.
6291 (grub_bidi_logical_to_visual): Likewise.
6292 (grub_unicode_mirror_code): Likewise.
6293 (grub_unicode_shape_code): Likewise.
6294 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
6295 Don't use grub_putchar.
6296 * normal/main.c (grub_normal_init_page): Use grub_putcode.
6297 (grub_normal_reader_init): Likewise.
6298 (grub_xputs_saved): New variable.
6299 (GRUB_MOD_INIT): Set grub_xputs.
6300 (GRUB_MOD_FINI): Restore grub_xputs.
6301 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
6302 (menu_init): Avoid printing gfxmenu error.
6303 (show_menu): Use grub_normal_get_char_counter.
6304 * normal/menu_entry.c (update_screen): Fix out-of-array.
6305 (complete): Avoid NULL dereferencing.
6306 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
6307 * normal/menu_text.c (print_spaces): Removed.
6308 (grub_print_ucs4): Likewise.
6309 (grub_print_message_indented): Use grub_print_ucs4.
6310 (print_message): Use grub_putcode.
6311 (print_entry): Hanlde diacritics.
6312 * normal/term.c (term_state): New type.
6313 (grub_more_lines): Removed.
6314 (term_states): New variable.
6315 (grub_normal_line_counter): Renamed to ..
6316 (grub_normal_char_counter): ...this. All users updated.
6317 (grub_normal_get_line_counter): Renamed to ...
6318 (grub_normal_get_char_counter): ... this.
6319 (grub_normal_reset_more): New function.
6320 (process_newline): Removed.
6321 (print_more): New function.
6322 (grub_install_newline_hook): Removed.
6323 (map_code): New function.
6324 (grub_puts_terminal): Use grub_print_ucs4.
6325 (putglyph): New function.
6326 (putcode_real): Likewise.
6327 (grub_putcode): Use putcode_real.
6328 (get_maxwidth): New function.
6329 (get_startwidth): Likewise.
6330 (print_ucs4_terminal): Likewise.
6331 (find_term_state): Likewise.
6332 (put_glyphs_terminal): Likewise.
6333 (print_backlog): Likewise.
6334 (print_ucs4_real): Likewise.
6335 (grub_print_ucs4): Likewise.
6336 (grub_xputs_normal): Likewise.
6337 * term/efi/console.c (grub_console_putchar): Output diacritics.
6338 (grub_console_getcharwidth): Removed.
6339 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
6340 * term/gfxterm.c (clear_char): Free chars.
6341 (scroll_up): Avoid leaking memory.
6342 (grub_gfxterm_putchar): Support diacritics.
6343 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
6344 * term/i386/pc/console.c (grub_console_term_output): Declare as
6345 GRUB_TERM_CODE_TYPE_VGA.
6346 * term/i386/pc/vga.c (grub_vga_term): Declare as
6347 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
6348 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
6349 GRUB_TERM_CODE_TYPE_VGA.
6350 * term/i386/vga_common.c (map_char): Removed.
6351 (grub_console_putchar): Likewise.
6352 (grub_console_getcharwidth): Likewise.
6353 * term/ieee1275/ofconsole.c: Simplify using terminfo.
6354 (colors): Reordered to match terminfo.
6355 (grub_ofconsole_normal_color): Removed.
6356 (grub_ofconsole_writeesc): Likewise.
6357 (grub_ofconsole_highlight_color): Likewise.
6358 (grub_ofconsole_getcharwidth): Likewise.
6359 (grub_ofconsole_setcolorstate): Likewise.
6360 (grub_ofconsole_setcolor): Likewise.
6361 (grub_ofconsole_getcolor): Likewise.
6362 (grub_ofconsole_readkey): Renamed to ...
6363 (readkey): ... this. Remove escape sequence handling. Return -1 on no
6364 key.
6365 (grub_ofconsole_checkkey): Removed.
6366 (grub_ofconsole_getkey): Likewise.
6367 (grub_ofconsole_getxy): Likewise.
6368 (grub_ofconsole_gotoxy): Likewise.
6369 (grub_ofconsole_cls): Likewise.
6370 (grub_ofconsole_refresh): Likewise.
6371 (grub_ofconsole_terminfo_input): New struct.
6372 (grub_ofconsole_terminfo_output): Likewise.
6373 (grub_ofconsole_term_input): Use terminfo.
6374 (grub_ofconsole_term_output): Likewise.
6375 (grub_console_init): Split into ...
6376 (grub_console_init_early): ...this and ...
6377 (grub_console_init_lately): ...this. Use terminfo.
6378 (grub_ofconsole_putchar): Renamed to ...
6379 (put): ... this. Remove mapping.
6380 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
6381 * term/serial.c: Simplify using terminfo.
6382 (xpos): Removed.
6383 (ypos): Likewise.
6384 (keep_track): Likewise.
6385 (registered): Likewise.
6386 (input_buf): Likewise.
6387 (npending): Likewise.
6388 (serial_translate_key_sequence): Likewise.
6389 (fill_input_buf): Likewise.
6390 (grub_serial_checkkey): Likewise.
6391 (grub_serial_getkey): Likewise.
6392 (grub_serial_getxy): Likewise.
6393 (grub_serial_gotoxy): Likewise.
6394 (grub_serial_putchar): Likewise.
6395 (grub_serial_cls): Likewise.
6396 (grub_serial_setcolorstate): Likewise.
6397 (grub_serial_setcursor): Likewise.
6398 (serial_hw_init): Use serial_hw_fetch.
6399 (grub_serial_terminfo_input): New variable.
6400 (grub_serial_terminfo_output): Likewise.
6401 (grub_serial_term_input): Use terminfo.
6402 (grub_serial_term_output): Likewise.
6403 * term/terminfo.c (putstr): Use put.
6404 (grub_terminfo_all_free): New function
6405 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
6406 (grub_terminfo_output_register): New function.
6407 (grub_terminfo_output_unregister): Likewise.
6408 (grub_terminfo_getxy): Likewise.
6409 (grub_terminfo_readkey): Likewise.
6410 (grub_terminfo_checkkey): Likewise.
6411 (grub_terminfo_getkey): Likewise.
6412 (grub_terminfo_input_init): Likewise.
6413 (print_terminfo): Likewise.
6414 (grub_cmd_terminfo): Handle encoding.
6415 (grub_terminfo_gotoxy): Track position.
6416 (grub_terminfo_cls): Likewise.
6417 (grub_terminfo_putchar): Likewise.
6418 (grub_terminfo_setcolorstate): Handle colors
6419 (grub_terminfo_cursor_on): This ...
6420 (grub_terminfo_cursor_off): ... and this merged into ...
6421 (grub_terminfo_setcursor): ... this.
6422 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
6423 * unicode/ArabicShaping.txt: New file (imported from Unicode).
6424 * unicode/BidiMirroring.txt: Likewise.
6425 * unicode/UnicodeData.txt: Likewise.
6426 * unicode/COPYING: Likewise.
6427 * util/grub-editenv.c (grub_putchar): Removed.
6428 (grub_xputs_real): New function.
6429 (grub_xputs): New variable.
6430 * util/grub-fstest.c (grub_putchar): Removed.
6431 (grub_xputs_real): New function.
6432 (grub_xputs): New variable.
6433 * util/grub-mkdevicemap.c (grub_putchar): Removed.
6434 (grub_xputs_real): New function.
6435 (grub_xputs): New variable.
6436 * util/grub-probe.c (grub_putchar): Removed.
6437 (grub_xputs_real): New function.
6438 (grub_xputs): New variable.
6439 * util/grub-script-check.c (grub_putchar): Removed.
6440 (grub_xputs_real): New function.
6441 (grub_xputs): New variable.
6442 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
6443 (grub_xputs_real): New function.
6444 (grub_xputs): New variable.
6445 * util/import_unicode.py: New file.
6446 * util/grub-mkfont.c (ft_errmsgs): New array.
6447 (grub_glyph_info): Make bitmap a pointer.
6448 (file_formats): New type WIDTH_SPEC.
6449 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
6450 (options): Add width-spec.
6451 (help): Likewise.
6452 (add_char): Renamed to ...
6453 (add_glyph): ... this.
6454 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
6455 (glyph_replace): New type.
6456 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
6457 (add_char): New function.
6458 (add_subst): Likewise.
6459 (process_cursive): Likewise.
6460 (add_font): Handle GSUB.
6461 (write_font_width_spec): New function.
6462 (main): Sort glyphs.
6463 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
6464 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
6465 * kern/term.c (grub_cls): Moved from here...
6466 * normal/term.c (grub_cls): ... here.
6467
6468 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
6469
6470 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
6471 suitable for using within the format argument of printf when
6472 converting grub_size_t.
6473 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
6474 "x" to convert grub_size_t arguments.
6475
6476 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6477
6478 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
6479 too long captions.
6480 (list_get_minimal_size): Take selection box into account.
6481
6482 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6483
6484 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
6485 NULL font.
6486
6487 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
6488
6489 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
6490 devices when iterating over /dev/disk/by-id; they will be handled
6491 later if appropriate, which they aren't always (e.g. LVM).
6492
6493 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
6494
6495 * include/grub/misc.h (grub_reboot): Declare as noreturn.
6496 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
6497 fails.
6498 (grub_halt): Likewise.
6499 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
6500 reset-all fails.
6501 (grub_halt): Don't return, even if all of shut-down, power-off, and
6502 poweroff fail.
6503
6504 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
6505
6506 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
6507 arguments, not three.
6508
6509 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
6510
6511 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
6512 * util/grub.d/10_linux.in: Use it to check for LVM, so that
6513 LVM-on-RAID is handled correctly.
6514
6515 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
6516
6517 * docs/grub.texi (Changes from GRUB Legacy): New section.
6518 (Future): Fix typo.
6519
6520 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
6521
6522 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
6523 grub.d/README accidentally ends up executable for one reason or
6524 another. Ignore it.
6525
6526 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6527
6528 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
6529 (gpt_partition_map_iterate): Support non-512B sectors.
6530
6531 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6532
6533 * kern/efi/init.c (grub_efi_init): Disable watchdog.
6534 Tested by: Seth Goldberg.
6535
6536 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6537
6538 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
6539 Properly align mbi.
6540 Reported by: Seth Goldberg.
6541
6542 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
6543
6544 * util/grub-mkrescue.in: Avoid module duplication.
6545
6546 2010-07-01 Sean Finney <seanius@seanius.net>
6547
6548 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
6549
6550 2010-07-01 Sean Finney <seanius@seanius.net>
6551
6552 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
6553
6554 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
6555
6556 * disk/lvm.c (grub_lvm_checkvalue): New function.
6557 (grub_lvm_check_flag): Likewise.
6558
6559 2010-07-01 Robert Millan <rmh@gnu.org>
6560
6561 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
6562 Support 'p' as partition separator on kernel of FreeBSD (used
6563 with GPT labels).
6564 (grub_util_biosdisk_get_grub_dev): Likewise.
6565
6566 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
6567
6568 Yeeloong firmware port.
6569
6570 * boot/mips/yeeloong/fwstart.S: New file.
6571 * bus/cs5536.c (gpiodump): New const.
6572 (set_io_space): New function.
6573 (set_iod): Likewise.
6574 (set_p2d): Likewise.
6575 (grub_cs5536_init_geode): Likewise.
6576 * commands/mips/yeeloong/lsspd.c: New file.
6577 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
6578 (serial_mod_SOURCES): New variable.
6579 (serial_mod_CFLAGS): Likewise.
6580 (serial_mod_LDFLAGS): Likewise.
6581 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
6582 term/terminfo.c and term/tparm.c.
6583 (pkglib_IMAGES): Add fwstart.img.
6584 (fwstart_img_SOURCES): New variable.
6585 (fwstart_img_CFLAGS): Likewise.
6586 (fwstart_img_ASFLAGS): Likewise.
6587 (fwstart_img_LDFLAGS): Likewise.
6588 (fwstart_img_FORMAT): Likewise.
6589 (pkglib_MODULES): Add lsspd.mod.
6590 (lsspd_mod_SOURCES): New variable.
6591 (lsspd_mod_CFLAGS): Likewise.
6592 (lsspd_mod_LDFLAGS): Likewise.
6593 (pkglib_MODULES): Add halt.mod.
6594 (halt_mod_SOURCES): New variable.
6595 (halt_mod_CFLAGS): Likewise.
6596 (halt_mod_LDFLAGS): Likewise.
6597 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
6598 (serial_mod_SOURCES): Removed.
6599 (serial_mod_CFLAGS): Likewise.
6600 (serial_mod_LDFLAGS): Likewise.
6601 * disk/ata.c (check_device): New function.
6602 (grub_ata_device_initialize): Use check_device.
6603 (grub_ata_iterate): Recheck devices.
6604 (grub_ata_open): Likewise.
6605 (grub_atapi_iterate): Likewise.
6606 (grub_atapi_open): Likewise.
6607 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
6608 (GRUB_ATA_CH1_PORT1): Likewise.
6609 (GRUB_ATA_CH0_PORT2): Likewise.
6610 (GRUB_ATA_CH1_PORT2): Likewise.
6611 * include/grub/mips/loongson.h: New file.
6612 * include/grub/mips/yeeloong/ec.h: Likewise.
6613 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
6614 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
6615 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
6616 * include/grub/misc.h (grub_halt): Declare as noreturn.
6617 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
6618 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
6619 (UART_ENABLE_FIFO_TRIGGER1): New definition.
6620 (UART_ENABLE_DTRRTS): Likewise.
6621 (UART_ENABLE_MODEM): Removed.
6622 (UART_ENABLE_OUT2): New const.
6623 * include/grub/term.h (grub_term_register_input_active): New function.
6624 (grub_term_register_output_active): Likewise.
6625 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
6626 argument.
6627 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
6628 (init_pci): New function.
6629 (grub_machine_init): Execute platform init when firmware. Init serial.
6630 (grub_halt): Implement.
6631 (grub_exit): Likewise.
6632 (grub_reboot): Likewise.
6633 * term/serial.c (serial_hw_init): Update macros.
6634 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
6635 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
6636 (image_targets): New target mipsel-yeeloong-flash.
6637 (generate_image): Support IMAGE_YEELOONG_FLASH.
6638 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
6639 (grub_video_sm712_setup): Init card.
6640 (grub_video_sm712_set_palette): Removed.
6641 * video/sm712_init.c: New file.
6642
6643 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
6644
6645 * Makefile.in (install-local): Temporarily prepend $(builddir) to
6646 PATH when running help2man and then run it on the unadorned
6647 executable names, rather than passing $(builddir)/* paths to
6648 help2man. This avoids the build directory ending up in generated
6649 manual pages.
6650
6651 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
6652
6653 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
6654 to avoid accidents when debugging with 'sh -x'.
6655 * util/grub-mkrescue.in: Likewise.
6656 * util/grub.d/00_header.in: Likewise.
6657 * util/grub.d/10_hurd.in: Likewise.
6658 * util/grub.d/10_kfreebsd.in: Likewise.
6659 * util/grub.d/10_linux.in: Likewise.
6660 * util/grub.d/10_netbsd.in: Likewise.
6661 * util/grub.d/10_windows.in: Likewise.
6662 * util/grub.d/20_linux_xen.in: Likewise.
6663 * util/grub.d/30_os-prober.in: Likewise.
6664 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6665
6666 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
6667
6668 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
6669 last character in the buffer.
6670 Reported by: Vladimir Serbinenko.
6671
6672 2010-06-29 Robert Millan <rmh@gnu.org>
6673
6674 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
6675 (Command-line and menu entry commands): Document `badram' command.
6676
6677 2010-06-28 Robert Millan <rmh@gnu.org>
6678
6679 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
6680 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
6681 command using ${GRUB_BADRAM} as parameter.
6682
6683 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
6684
6685 * docs/grub.texi (Device map): New section.
6686 (Themes): New section (stub).
6687 * Makefile.in (docs/grub.info): The info documentation now builds
6688 without errors. Make sure it stays that way.
6689
6690 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
6691
6692 Use normal parser for menu entries.
6693 Reported by: Thomas Frauendorfer
6694
6695 * include/grub/parser.h (grub_parser_execute): Don't export.
6696 * normal/menu.c (grub_menu_execute_entry_real): New function.
6697 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
6698
6699 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
6700
6701 * docs/grub.texi (Embedded configuration): New section (replacing
6702 old "Preset Menu" stub).
6703 (Images): New section.
6704 (configfile): Note that any menu entries defined in `file' are shown
6705 immediately.
6706
6707 2010-06-28 Josh Triplett <josh@joshtriplett.org>
6708
6709 * mmap/i386/pc/mmap_helper.S: Set CF on return.
6710
6711 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
6712
6713 * util/grub-install.in: Add --debug-image= option.
6714
6715 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
6716
6717 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
6718 possible on Linux.
6719
6720 * util/deviceiter.c (check_device): Rename to ...
6721 (check_device_readable_unique): ... this. Update all callers.
6722 Maintain and check a list of which devices (by canonicalized name)
6723 have already been seen.
6724 (clear_seen_devices): New function.
6725 (compare_file_names) [__linux__]: New function.
6726 (grub_util_iterate_devices): Clear the list of seen devices on exit
6727 and (just in case) on entry.
6728 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
6729 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
6730 seen-devices list, superseded by general code in check_device.
6731
6732 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
6733
6734 * commands/cat.c (options): New variable.
6735 (grub_cmd_cat): Parse options. If the --dos option is given, print
6736 DOS-style "\r\n" line endings as simple newlines (Debian bug
6737 #586358).
6738 (GRUB_MOD_INIT): Use extcmd.
6739 (GRUB_MOD_FINI): Likewise.
6740 * docs/grub.texi (cat): Document --dos.
6741
6742 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
6743
6744 XEN with Linux grub-mkconfig support.
6745
6746 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
6747 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
6748 GRUB_CMDLINE_XEN_DEFAULT.
6749 * util/grub.d/20_linux_xen.in: New file.
6750
6751 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
6752
6753 Initialise VGA video on qemu ourselves.
6754
6755 * boot/i386/qemu/boot.S: Don't call 0xc000.
6756 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
6757 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
6758 (kernel_img_HEADERS): Add pci.h.
6759 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
6760 * configure.ac: Force unifont on qemu and yeeloong.
6761 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
6762 (grub_vga_palette_write): Use correct register.
6763 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
6764 Call grub_qemu_init_cirrus.
6765 * kern/i386/qemu/init.c: New file.
6766 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
6767
6768 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
6769
6770 2010-06-26 Pavel Roskin <proski@gnu.org>
6771
6772 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
6773 13.
6774
6775 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
6776
6777 * docs/grub.texi (Simple configuration): Explain that
6778 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
6779 set to `true' to disable their respective recovery entries, not
6780 merely set.
6781
6782 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
6783
6784 Make the `source' command slightly faster.
6785
6786 * normal/main.c (grub_normal_execute): Don't re-read list files when
6787 nested.
6788
6789 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
6790
6791 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
6792 field position and mask size to red fields from mode_info, not
6793 green.
6794 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
6795 Remove redundant tag->common.framebuffer_type assignment.
6796 Reported by: Seth Goldberg.
6797
6798 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
6799
6800 Sync up other versions of the Linux loader with Robert Millan's
6801 change of 2010-01-09, "Make loader output a bit more user-friendly".
6802
6803 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
6804 grub_dprintf().
6805 (grub_cmd_linux): Likewise.
6806 (grub_cmd_initrd): Likewise.
6807 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
6808 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6809
6810 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
6811
6812 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
6813 larger than MEMORY_MAP_SIZE.
6814
6815 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
6816
6817 Fix parallel build.
6818
6819 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
6820 dependency.
6821 * script/parser.y: #include grub_script.tab.h header.
6822
6823 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6824
6825 Support >3GiB and <16MiB RAM in i386-qemu.
6826
6827 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
6828 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
6829 (grub_lower_mem): Removed.
6830 (grub_upper_mem): Likewise.
6831 (mem_size): Made static.
6832 (above_4g): New variable.
6833 (grub_machine_mmap_init): Detect small mem_size and above_4g.
6834 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
6835 support.
6836
6837 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6838
6839 Cirrus 5446 and Bochs video cards support.
6840
6841 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
6842 video_bochs.mod
6843 (video_cirrus_mod_SOURCES): New variable.
6844 (video_cirrus_mod_CFLAGS): Likewise.
6845 (video_cirrus_mod_LDFLAGS): Likewise.
6846 (video_bochs_mod_SOURCES): Likewise.
6847 (video_bochs_mod_CFLAGS): Likewise.
6848 (video_bochs_mod_LDFLAGS): Likewise.
6849 * include/grub/vga.h: New file.
6850 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
6851 (grub_video_fb_set_page_t): New type.
6852 (grub_video_fb_setup): New prototype.
6853 (grub_video_fb_swap_buffers): Likewise.
6854 (grub_video_fb_get_info_and_fini): Likewise.
6855 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
6856 (CRTC_DATA_PORT): Likewise.
6857 (CRTC_CURSOR): Likewise.
6858 (CRTC_CURSOR_ADDR_HIGH): Likewise.
6859 (CRTC_CURSOR_ADDR_LOW): Likewise.
6860 (CRTC_CURSOR_DISABLE): Likewise.
6861 (update_cursor): Use grub_vga_cr_write.
6862 (grub_vga_text_setcursor): Likewise.
6863 * video/bochs.c: New file.
6864 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
6865 (palette): Likewise.
6866 (palette_size): Likewise.
6867 (framebuffer): New variable.
6868 (grub_video_fb_init): Use 'framebuffer'.
6869 (grub_video_fb_fini): Likewise.
6870 (grub_video_fb_get_info): Likewise.
6871 (grub_video_fb_get_palette): Likewise.
6872 (grub_video_fb_set_palette): Likewise.
6873 (grub_video_fb_set_viewport): Likewise.
6874 (grub_video_fb_get_viewport): Likewise.
6875 (grub_video_fb_map_color): Likewise.
6876 (grub_video_fb_map_rgb): Likewise.
6877 (grub_video_fb_map_rgba): Likewise.
6878 (grub_video_fb_unmap_color): Likewise.
6879 (grub_video_fb_unmap_color_int): Likewise.
6880 (grub_video_fb_fill_rect): Likewise.
6881 (grub_video_fb_blit_bitmap): Likewise.
6882 (grub_video_fb_blit_render_target): Likewise.
6883 (grub_video_fb_scroll): Likewise.
6884 (grub_video_fb_create_render_target): Likewise.
6885 (grub_video_fb_doublebuf_blit_init): Likewise.
6886 (grub_video_fb_set_active_render_target): Handle doublebuffering.
6887 (doublebuf_pageflipping_update_screen): New function.
6888 (doublebuf_pageflipping_init): Likewise.
6889 (grub_video_fb_setup): Likewise.
6890 (grub_video_fb_swap_buffers): Likewise.
6891 (grub_video_fb_get_info_and_fini): Likewise.
6892 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
6893 All users updated.
6894 (doublebuf_pageflipping_commit): Restructured into ...
6895 (doublebuf_pageflipping_set_page): ... this.
6896 (doublebuf_pageflipping_update_screen): Removed.
6897 (doublebuf_pageflipping_init): Likewise.
6898 (double_buffering_init): Likewise.
6899 (grub_video_vbe_setup): Use grub_video_fb_setup.
6900 (grub_video_vbe_swap_buffers): Removed.
6901 (grub_video_vbe_set_active_render_target): Likewise.
6902 (grub_video_vbe_get_active_render_target): Likewise.
6903 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
6904 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
6905 grub_video_fb_set_active_render_target and
6906 grub_video_fb_get_active_render_target.
6907 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
6908 (SEQUENCER_DATA_PORT): Likewise.
6909 (MAP_MASK_REGISTER): Likewise.
6910 (CRTC_ADDR_PORT): Likewise.
6911 (CRTC_DATA_PORT): Likewise.
6912 (START_ADDR_HIGH_REGISTER): Likewise.
6913 (START_ADDR_LOW_REGISTER): Likewise.
6914 (GRAPHICS_ADDR_PORT): Likewise.
6915 (GRAPHICS_DATA_PORT): Likewise.
6916 (READ_MAP_REGISTER): Likewise.
6917 (INPUT_STATUS1_REGISTER): Likewise.
6918 (INPUT_STATUS1_VERTR_BIT): Likewise.
6919 (get_map_mask): Use grub_vga_sr_read.
6920 (set_map_mask): Use grub_vga_sr_write.
6921 (set_read_map): Use grub_vga_gr_write.
6922 (set_start_address): Use grub_vga_cr_write.
6923 * video/sm712.c (framebuffer): Remove leftover fields.
6924
6925 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
6926
6927 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
6928 setting GRUB_VIDEO_BACKEND. Make it available as a user override
6929 instead. Replace the gfxterm backend check with a check that
6930 ${GRUB_PREFIX}/video.lst is non-empty.
6931 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
6932 again.
6933 (load_video): New generated function. Call it before loading
6934 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
6935 * util/grub.d/10_linux.in (linux_entry): Call load_video.
6936 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
6937 * docs/grub.texi (Simple configuration): Document
6938 GRUB_VIDEO_BACKEND.
6939
6940 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6941
6942 Use video functions in linux and xnu loaders.
6943
6944 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
6945 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
6946 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
6947 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
6948 loader/i386/pc/linux.c.
6949 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
6950 (find_line_len): Removed.
6951 (find_framebuf): Likewise.
6952 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
6953 * loader/i386/efi/xnu.c: Removed.
6954 * loader/i386/pc/xnu.c: Moved from here...
6955 * loader/i386/xnu.c: ...here.
6956
6957 Enable priorities in video drivers.
6958
6959 * include/grub/video.h (grub_video_adapter_prio_t): New type.
6960 (grub_video_adapter): New field prio.
6961 (grub_video_register): Respect prio when inserting.
6962 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
6963 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
6964 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
6965 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
6966 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
6967 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
6968 * video/sm712.c (grub_video_sm712_adapter): Likewise.
6969
6970 Fix SDL driver ID.
6971
6972 * include/grub/video.h (grub_video_driver_id_t): New value
6973 GRUB_VIDEO_DRIVER_SDL.
6974 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
6975
6976 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
6977
6978 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
6979 argument to printf.
6980 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
6981
6982 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
6983
6984 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
6985 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
6986
6987 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
6988
6989 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
6990 directly, and recommend grub-install instead.
6991 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
6992
6993 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
6994
6995 Fix i386-pc prefix handling with nested partitions (Debian bug
6996 #585068). Note that the case where the core image is booted using
6997 multiboot and relocated from its original location still requires
6998 more work.
6999
7000 * kern/i386/pc/init.c (make_install_device): If the prefix starts
7001 with "(,", fill the boot drive in between those two characters, but
7002 expect that a full partition specification including partition map
7003 names will follow.
7004 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
7005 specified, write a prefix without the drive name but including a
7006 full partition specification.
7007
7008 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
7009
7010 * util/grub-mkconfig.in: Ignore non-option arguments, for
7011 compatibility with older versions (before 2010-06-12) which did the
7012 same. In particular, this makes it easier to ship an update-grub
7013 wrapper which is compatible with that used with GRUB Legacy (Debian
7014 bug #586056).
7015
7016 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
7017
7018 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
7019 for manual page generation.
7020
7021 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
7022
7023 * po/POTFILES: Remove leftover commands/handler.c.
7024
7025 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
7026
7027 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
7028 left this script non-functional.
7029
7030 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
7031
7032 * docs/man/grub-emu.h2m: New file.
7033
7034 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
7035
7036 * docs/grub.texi (Commands): Document reduced command set in rescue
7037 mode.
7038 (cpuid): New section.
7039
7040 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
7041
7042 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
7043 new partition naming style.
7044 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
7045
7046 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
7047
7048 Add "-o grub.iso" like cmdline options support.
7049
7050 * util/grub-install.in: Improve cmdline option parsing.
7051 * util/grub-mkconfig.in: Likewise.
7052 * util/grub-mkrescue.in: Likewise.
7053 * util/grub-reboot.in: Likewise.
7054 * util/grub-set-default.in: Likewise.
7055 * util/i386/efi/grub-install.in: Likewise.
7056 * util/ieee1275/grub-install.in: Likewise.
7057 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7058
7059 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
7060
7061 * .bzrignore: Ignore 41_custom.
7062
7063 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
7064
7065 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
7066
7067 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
7068
7069 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
7070 prototype declarations.
7071
7072 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
7073 generating fs, partmap, and video lists.
7074 * include/grub/fs.h (grub_fs_register): Omit prototype if
7075 GRUB_LST_GENERATOR is defined.
7076 * include/grub/partition.h (grub_partition_map_register): Likewise.
7077 * include/grub/video.h (grub_video_register): Likewise.
7078
7079 2010-06-12 Javier Martín <lordhabbit@gmail.com>
7080
7081 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
7082
7083 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
7084
7085 * util/grub-mkrescue.in: Support --xorriso argument.
7086
7087 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
7088
7089 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
7090 Suggested by: Thomas Schmitt.
7091
7092 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
7093
7094 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
7095 Suggested by: Thomas Schmitt.
7096
7097 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
7098
7099 custom.cfg support.
7100
7101 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
7102 * util/grub.d/41_custom.in: New file.
7103
7104 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
7105
7106 * util/grub-mkrescue.in (make_image): Remove sh module, which has
7107 been merged back into normal.
7108
7109 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
7110
7111 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
7112 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
7113
7114 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
7115
7116 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
7117 when generating manual pages.
7118 * docs/man/grub-bin2h.h2m: New file.
7119 * docs/man/grub-editenv.h2m: New file.
7120 * docs/man/grub-fstest.h2m: New file.
7121 * docs/man/grub-install.h2m: New file.
7122 * docs/man/grub-macho2img.h2m: New file.
7123 * docs/man/grub-mkconfig.h2m: New file.
7124 * docs/man/grub-mkdevicemap.h2m: New file.
7125 * docs/man/grub-mkfont.h2m: New file.
7126 * docs/man/grub-mkimage.h2m: New file.
7127 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
7128 * docs/man/grub-mkrelpath.h2m: New file.
7129 * docs/man/grub-mkrescue.h2m: New file.
7130 * docs/man/grub-ofpathname.h2m: New file.
7131 * docs/man/grub-pe2elf.h2m: New file.
7132 * docs/man/grub-probe.h2m: New file.
7133 * docs/man/grub-reboot.h2m: New file.
7134 * docs/man/grub-script-check.h2m: New file.
7135 * docs/man/grub-set-default.h2m: New file.
7136 * docs/man/grub-setup.h2m: New file.
7137
7138 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
7139
7140 Use FOR_* macros instead of *_iterate whenever possible.
7141
7142 * commands/handler.c: Removed.
7143 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
7144 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
7145 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
7146 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
7147 (grub_probe_SOURCES): Remove kern/parser.c.
7148 (util/grub-script-check.c_DEPENDENCIES): Removed.
7149 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
7150 and grub_script_check_init.c.
7151 (grub_script_check_init.lst): Removed.
7152 (grub_script_check_init.h): Likewise.
7153 (grub_script_check_init.c): Likewise.
7154 (pkglib_MODULES): Remove handler.mod and sh.mod.
7155 (handler_mod_SOURCES): Removed.
7156 (handler_mod_CFLAGS): Likewise.
7157 (handler_mod_LDFLAGS): Likewise.
7158 (normal_mod_SOURCES): Remove normal/handler.c.
7159 Add script/main.c, script/script.c, script/execute.c,
7160 script/function.c, script/lexer.c, grub_script.tab.c
7161 and grub_script.yy.c.
7162 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
7163 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
7164 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
7165 (grub_setup_SOURCES): Remove kern/parser.c.
7166 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
7167 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
7168 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
7169 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
7170 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
7171 (grub_setup_SOURCES): Remove kern/parser.c.
7172 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
7173 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
7174 * include/grub/command.h (grub_command_iterate): Removed.
7175 (FOR_COMMANDS): New macro.
7176 * include/grub/dl.h (grub_dl): New member next.
7177 (grub_dl_iterate): Removed.
7178 (grub_dl_head): New variable declaration.
7179 (FOR_DL_MODULES): New macro.
7180 * include/grub/fs.h: Include list.h.
7181 (grub_fs): Make next first element.
7182 (grub_fs_list): New variable declaration.
7183 (grub_fs_register): Make inline.
7184 (grub_fs_unregister): Likewise.
7185 (grub_fs_iterate): Removed.
7186 (FOR_FILESYSTEMS): New macro.
7187 * include/grub/handler.h: Removed.
7188 * include/grub/list.h (grub_list_hook_t): Removed.
7189 (grub_list_test_t): Likewise.
7190 (grub_list_pop): Likewise.
7191 (grub_list_iterate): Likewise.
7192 (grub_list_insert): Likewise.
7193 (FOR_LIST_ELEMENTS): New macro.
7194 * include/grub/parser.h (grub_parser_class): Removed.
7195 (grub_parser_register): Likewise.
7196 (grub_parser_unregister): Likewise.
7197 (grub_parser_get_current): Likewise.
7198 (grub_parser_set_current): Likewise.
7199 (grub_register_rescue_parser): Likewise.
7200 (grub_rescue_parse_line): New function.
7201 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
7202 * include/grub/script_sh.h (grub_script_function_list): New variable
7203 declaration.
7204 (FOR_SCRIPT_FUNCTIONS): New macro.
7205 (grub_script_function_iterate): Removed.
7206 (grub_normal_parse_line): New prototype.
7207 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
7208 (FOR_DISABLED_TERM_INPUTS): Likewise.
7209 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
7210 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
7211 * include/grub/video.h (grub_video_adapter): Move 'next' to first
7212 element.
7213 (grub_video_register): Inline.
7214 (grub_video_unregister): Likewise.
7215 (grub_video_adapter_list): New variable declaration.
7216 (grub_video_iterate): Removed.
7217 (FOR_VIDEO_ADAPTERS): New macro.
7218 * kern/dl.c (grub_dl_list): Removed. All users updated.
7219 (grub_dl_iterate): Removed.
7220 * kern/fs.c (grub_fs_list): Make global.
7221 (grub_fs_register): Removed.
7222 (grub_fs_unregister): Likewise.
7223 (grub_fs_iterate): Likewise.
7224 * kern/handler.c: Removed.
7225 * kern/list.c (grub_list_pop): Removed.
7226 (grub_list_iterate): Likewise.
7227 (grub_list_insert): Likewise.
7228 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
7229 (grub_prio_list_insert): Don't use grub_list_insert.
7230 * kern/main.c (grub_register_rescue_parser): Don't call
7231 grub_register_rescue_parser.
7232 * kern/parser.c (grub_parser_class): Removed.
7233 (grub_parser_execute): Use grub_rescue_parse_line.
7234 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
7235 (grub_rescue_parser): Removed.
7236 (grub_register_rescue_parser): Likewise.
7237 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
7238 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
7239 (grub_auth_check_authentication): Likewise.
7240 * normal/completion.c (iterate_command): Removed.
7241 (grub_normal_do_completion): Use FOR_COMMANDS.
7242 * normal/handler.c: Removed.
7243 * normal/main.c (read_config_file): Remove parser changing.
7244 (grub_normal_execute): Don't call read_handler_list.
7245 (grub_normal_read_line_real): Statically allocate prompt.
7246 (grub_cmdline_run): Use grub_normal_parse_line.
7247 (GRUB_MOD_FINI): Don't call free_handler_list.
7248 * normal/menu_entry.c (run): Likewise.
7249 * script/function.c (grub_script_function_list): Make global.
7250 (grub_script_function_iterate): Removed.
7251 * script/main.c (grub_normal_parse_line): Make global.
7252 (grub_sh_parser): Removed.
7253 (GRUB_MOD_INIT): Likewise.
7254 (GRUB_MOD_FINI): Likewise.
7255 * tests/lib/functional_test.c (grub_functional_test): Use
7256 FOR_LIST_ELEMENTS.
7257 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
7258 (grub_test_run): Use FOR_LIST_ELEMENTS.
7259 * tests/lib/unit_test.c (main): Likewise.
7260 * util/deviceiter.c (grub_util_iterate_devices): Don't use
7261 grub_list_pop.
7262 * util/grub-fstest.c (grub_term_input_class): Removed.
7263 (grub_term_output_class): Likewise.
7264 * util/grub-probe.c: Likewise.
7265 * util/i386/pc/grub-setup.c: Likewise.
7266 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7267 * util/grub-script-check.c (main): Don't call grub_init_all and
7268 grub_fini_all.
7269 * video/video.c (grub_video_adapter_list): Make global.
7270 (grub_video_register): Removed.
7271 (grub_video_unregister): Likewise.
7272 (grub_video_iterate): Likewise.
7273
7274 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
7275
7276 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
7277 reported by Henrique Ferreiro.
7278
7279 2010-06-09 Robert Millan <rmh@gnu.org>
7280
7281 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
7282 ones, when both are available.
7283
7284 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
7285
7286 Make --version uniform and avoid hard-coded program name.
7287
7288 * util/grub-mkimage.c (main): Use `program_name' instead of
7289 hard-coded string.
7290 * util/i386/pc/grub-setup.c (main): Likewise.
7291 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
7292 * util/grub-install.in: Save the basename of $0 in $self, and use the
7293 latter in informational messages. Use the same format for --version
7294 as the binary programs.
7295 * util/grub-mkconfig.in: Likewise.
7296 * util/grub-mkrescue.in: Likewise.
7297 * util/grub-reboot.in: Likewise.
7298 * util/grub-set-default.in: Likewise.
7299 * util/i386/efi/grub-install.in: Likewise.
7300 * util/ieee1275/grub-install.in: Likewise.
7301 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7302
7303 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
7304
7305 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
7306 embedding area. Use <= instead of == when checking for non-emptiness.
7307
7308 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
7309
7310 * configure.ac: Add `.' to the directories searched for unifont.
7311
7312 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
7313
7314 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
7315 grub_script.yy.h.
7316
7317 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
7318
7319 * docs/grub.texi (History): Expand to cover GRUB 2.
7320 (Serial terminal): Refer to `terminal_input' and `terminal_output'
7321 commands, not `terminal'.
7322 (serial): Likewise.
7323 (terminal_input): New section.
7324 (terminal_output): New section.
7325 (uppermem): New section (stub).
7326 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
7327
7328 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
7329
7330 * docs/grub.texi (Security): Menu entries are unrestricted by
7331 default, not restricted to superusers as I had previously thought.
7332 Reword to account for this.
7333
7334 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
7335
7336 * kern/emu/misc.c (device_mapper_null_log): New function.
7337 (grub_device_mapper_supported): New function.
7338 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
7339 prototype.
7340 * kern/emu/hostdisk.c (find_partition_start): Check whether
7341 device-mapper is supported before trying to use it.
7342 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
7343
7344 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
7345
7346 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
7347 (File name syntax): Likewise.
7348 (help): --all is no longer supported in GRUB 2. Be more precise
7349 about pattern matching.
7350
7351 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
7352
7353 * normal/completion.c (grub_normal_do_completion): When completing
7354 arguments to "set" and the current word contains an equals sign,
7355 skip to after the equals sign before starting completion.
7356
7357 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
7358
7359 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
7360
7361 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
7362
7363 * docs/grub.texi (Network): New section.
7364 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
7365 `(nd)' as in GRUB Legacy.
7366 (pxe_unload): New section.
7367
7368 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
7369
7370 * docs/grub.texi (Troubleshooting): `echo' is not usually available
7371 in the rescue shell, so recommend using `set' instead. Thanks,
7372 Jordan Uggla.
7373
7374 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
7375
7376 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
7377 (password): New section.
7378 (password_pbkdf2): New section.
7379 (search): New section.
7380 (Security): New section.
7381 (Troubleshooting): New section, currently very incomplete.
7382 (Invoking grub-mkpasswd-pbkdf2): New section.
7383 (Internals): New section, currently very incomplete.
7384
7385 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
7386
7387 * util/grub.d/00_header.in: Add some more quoting (of
7388 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
7389 work again.
7390 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
7391
7392 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
7393
7394 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
7395 to `count', fixing variable shadowing that broke the -c option.
7396
7397 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
7398
7399 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
7400 in case they contain spaces.
7401
7402 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
7403
7404 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
7405 "part_" to partmap module names, in line with grub-install.
7406 Reported by: Jindřich Makovička (Debian bug #584426).
7407
7408 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
7409
7410 * util/grub-mkimage.c: Make target-related error messages slightly
7411 more helpful; -O talks about "format". Explicitly point to the use
7412 of -O if no target is specified.
7413 Reported by: Didier Raboud (Debian bug #584415).
7414
7415 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
7416
7417 * INSTALL: Document several build requirements for optional features
7418 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
7419
7420 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
7421
7422 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
7423 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
7424 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
7425
7426 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
7427
7428 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
7429 Thanks to Jordan Uggla for spotting this.
7430
7431 2010-06-02 Aleš Nesrsta <starous@volny.cz>
7432
7433 Finally make USB usable.
7434
7435 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
7436 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
7437 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
7438 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
7439 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
7440 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
7441 (GRUB_OHCI_FSMPS): Likewise.
7442 (GRUB_OHCI_PERIODIC_START): Likewise.
7443 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
7444 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
7445 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
7446 (GRUB_OHCI_SET_PORT_RESET): Likewise.
7447 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
7448 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
7449 (grub_ohci_transaction): Likewise.
7450 (grub_ohci_transfer): Improve condition detection algorithms.
7451 Handle toggle property. Program the transactions correctly.
7452 Improve error handling. Various important fixups.
7453 (grub_ohci_portstatus): Put register writes in right order.
7454 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
7455 (grub_uhci_transfer): Don't show "failed" message on success.
7456 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
7457 array.
7458 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
7459 determine its size.
7460 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
7461 before initialization is completed. Use IN direction for empty
7462 transfers. Use last_trans and compute toggle.
7463 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
7464 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
7465 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
7466 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
7467 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
7468 (grub_usb_device): Increase toggle to 256.
7469 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
7470 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
7471 GRUB_USBMS_SUBCLASS_SFF8070.
7472 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
7473 (grub_scsi_inquiry): New member page and alloc_length.
7474 (grub_scsi_request_sense): New structure.
7475 (grub_scsi_request_sense_data): Likewise.
7476 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
7477 control.
7478 * disk/scsi.c (grub_scsi_request_sense): New function.
7479 (grub_scsi_test_unit_ready): Likewise.
7480 (grub_scsi_inquiry): Fill new fields.
7481 (grub_scsi_read_capacity): Likewise.
7482 (grub_scsi_read10): Add request sense at the end.
7483 (grub_scsi_read12): Likewise.
7484 (grub_scsi_write10): Likewise.
7485 (grub_scsi_write12): Likewise.
7486 (grub_scsi_open): Add Test Unit Ready.
7487 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
7488 Support additional subclasses. Con't clear halt yet. Activate the
7489 proper config. Calculate LUNs correctly.
7490 (grub_usbms_transfer): Various important fixups.
7491
7492 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
7493
7494 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
7495 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
7496 (grub_ohci_fini_hw): New function.
7497 (grub_ohci_restore_hw): Likewise.
7498 (GRUB_MOD_INIT(ohci)): Register preboot hook.
7499 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
7500 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
7501
7502 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
7503
7504 Dedicated DMA allocations.
7505
7506 * bus/pci.c (grub_memalign_dma32): New function
7507 (grub_dma_free): Likewise.
7508 (grub_dma_get_virt): Likewise.
7509 (grub_dma_get_phys): Likewise.
7510 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
7511 (grub_ohci_pci_iter): Use dma32_alloc.
7512 (grub_ohci_transfer): Likewise.
7513 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
7514 (grub_usb_bulk_readwrite): Likewise.
7515 * include/grub/pci.h: Add declarations.
7516
7517 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
7518
7519 CS5536 support.
7520
7521 * bus/cs5536.c: New file.
7522 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
7523 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
7524 (cs5536_mod_SOURCES): New variable.
7525 (cs5536_mod_CFLAGS): Likewise.
7526 (cs5536_mod_LDFLAGS): Likewise.
7527 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
7528 machine/pci.h.
7529 (kernel_img_SOURCES): Add bus/cs5536.c.
7530 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
7531 usb_keyboard.mod.
7532 (usb_mod_SOURCES): New variable.
7533 (usb_mod_CFLAGS): New variable.
7534 (usb_mod_LDFLAGS): New variable.
7535 (usbtest_mod_SOURCES): New variable.
7536 (usbtest_mod_CFLAGS): New variable.
7537 (usbtest_mod_LDFLAGS): New variable.
7538 (ohci_mod_SOURCES): New variable.
7539 (ohci_mod_CFLAGS): New variable.
7540 (ohci_mod_LDFLAGS): New variable.
7541 (usbms_mod_SOURCES): New variable.
7542 (usbms_mod_CFLAGS): New variable.
7543 (usbms_mod_LDFLAGS): New variable.
7544 (usb_keyboard_mod_SOURCES): New variable.
7545 (usb_keyboard_mod_CFLAGS): New variable.
7546 (usb_keyboard_mod_LDFLAGS): New variable.
7547 * include/grub/smbus.h: New file.
7548 * include/grub/cs5536.h: New file.
7549
7550 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
7551
7552 * util/grub.d/00_header.in: Add safety check to make sure that
7553 ${locale_dir} exists before trying to probe it.
7554
7555 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
7556
7557 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
7558 per the GNU Coding Standards; this is now too obscure to be worth
7559 documenting.
7560 (QNX): Likewise.
7561 (chainloader): Remove cross-reference to `SCO UnixWare'.
7562
7563 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
7564
7565 * docs/grub.texi (Chain-loading): New section.
7566 (DOS/Windows): New section, borrowed from GRUB Legacy with details
7567 adjusted for GRUB 2.
7568 (SCO UnixWare): Likewise.
7569 (QNX): Likewise.
7570 (chainloader): Add reference to `Block list syntax'.
7571 (drivemap): New section.
7572 (parttool): New section.
7573
7574 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
7575
7576 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
7577 the grub shell'.
7578 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
7579 (Installing GRUB using grub-install): Remove reference to the grub
7580 shell; mention `grub-mkimage' and `grub-setup' instead.
7581 (Invoking grub-install): Likewise.
7582 (Interface): Add reference to `Menu entry editor'.
7583 (serial): Remove `--device' option.
7584
7585 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
7586
7587 * docs/grub.texi (Configuration): New section, documenting
7588 configuration file generation using grub-mkconfig. I've left a slot
7589 for documenting the full shell scripting format but have not yet
7590 started on writing that up.
7591 (Invoking grub-mkconfig): New section.
7592
7593 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
7594
7595 * docs/grub.texi (direntry): Remove grub-terminfo reference.
7596 (GNU GRUB manual): Likewise.
7597 (General commands): Update description of `terminfo' for GRUB 2.
7598
7599 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
7600
7601 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
7602 (GRUB_MOD_INIT): Fix capitalisation.
7603 * docs/grub.texi (Command-line and menu entry commands): Document
7604 gettext and gptsync commands.
7605
7606 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
7607
7608 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
7609 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
7610
7611 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
7612
7613 Add btrfs probing support, currently only in the single-device case.
7614
7615 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
7616 function.
7617 (grub_guess_root_device): Call find_root_device_from_mountinfo
7618 before looking in /dev.
7619
7620 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
7621
7622 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
7623 GRUB_DISK_SIZE_UNKNOWN.
7624 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
7625
7626 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
7627
7628 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
7629 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
7630 corrupted or not synced properly.
7631
7632 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
7633
7634 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
7635 Reported by: Seth Goldberg.
7636
7637 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
7638
7639 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
7640 addition of dest.
7641 Reported by: Seth Goldberg.
7642
7643 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
7644
7645 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
7646 Reported by: Seth Goldberg.
7647
7648 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
7649
7650 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
7651 64-bit address as signed on MIPS.
7652
7653 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
7654
7655 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
7656 to the empty string.
7657
7658 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
7659
7660 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
7661
7662 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
7663 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
7664 * kern/misc.c (__enable_execute_stack): Disable on
7665 GRUB_MACHINE_EMU.
7666
7667 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
7668
7669 Make grub-probe work with symbolic links under /dev/mapper as well
7670 as with real block devices. The Linux world seems to be (at best)
7671 in transition here, and GRUB shouldn't get caught in the middle.
7672
7673 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
7674 /dev/mapper.
7675
7676 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
7677
7678 * util/grub-script-check.c (main): Ensure defined behaviour on empty
7679 input files (in which case exit zero).
7680
7681 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
7682
7683 * kern/emu/misc.c (canonicalize_file_name): realpath can still
7684 return NULL for various reasons even if it has a maximum-length
7685 buffer: for example, there might be a symlink loop, or the path
7686 might exceed PATH_MAX. If this happens, return NULL.
7687
7688 2010-05-27 Robert Millan <rmh@gnu.org>
7689
7690 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
7691 partmap module to handle cross-partmap setups.
7692 Reported by Orestes Mas. Gràcies!
7693
7694 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
7695
7696 * util/grub-mkrescue.in: Initialise override_dir rather than
7697 assuming that it's unset or empty in the environment.
7698
7699 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
7700
7701 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
7702 variable index into p_index to suppress a warning with -Wshadow.
7703
7704 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
7705
7706 * INSTALL: Added flex >= 2.5.35 requirement.
7707
7708 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
7709
7710 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
7711
7712 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
7713
7714 cmostest support.
7715
7716 * commands/i386/cmostest.c: New file.
7717 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
7718 (cmostest_mod_SOURCES): New variable.
7719 (cmostest_mod_CFLAGS): Likewise.
7720 (cmostest_mod_LDFLAGS): Likewise.
7721 * conf/i386-pc.rmk: Likewise.
7722 * docs/grub.texi (Vendor power-on keys): New section.
7723 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
7724 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
7725 and GRUB_BUTTON_CMOS_ADDRESS.
7726 * util/grub.d/00_header.in: Handle powering-on by separate button.
7727
7728 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
7729
7730 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
7731 Removed drawing_scrollbar argument. All users updated
7732 Fixes #29792.
7733 Reported by Jo Shields
7734
7735 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
7736
7737 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
7738 buffer since gfxterm handles double repaint.
7739
7740 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
7741
7742 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
7743 * term/gfxterm.c (real_scroll): Likewise.
7744
7745 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7746
7747 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
7748 before calling BIOS.
7749
7750 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7751
7752 * include/grub/i18n.h: Always enable grub_gettext.
7753
7754 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7755
7756 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
7757 partition naming style.
7758
7759 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
7760
7761 * util/grub-mkconfig.in: Fix handling of -o so that it works when
7762 not the first option.
7763
7764 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
7765
7766 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
7767
7768 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
7769
7770 * util/misc.c: Move inclusion of <limits.h> to ...
7771 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
7772
7773 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
7774
7775 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
7776 Fix merge error in NetBSD code.
7777 (find_partition_start) [__NetBSD__]: Likewise.
7778
7779 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
7780
7781 Fix grub-mkrescue usage unit testing.
7782
7783 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
7784
7785 2010-05-18 Christian Franke <franke@computer.org>
7786
7787 * util/grub.d/10_windows.in: Use path names instead of
7788 drive letters to prevent warning from Cygwin 1.7.
7789 Add drivemap command to menuentry if needed.
7790
7791 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
7792
7793 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
7794 gnumach and gnumach.gz.
7795
7796 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7797
7798 * include/grub/i18n.h (gettext): Inline instead of using #define.
7799 (grub_gettext): Likewise.
7800 (_): Likewise.
7801
7802 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7803
7804 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
7805 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
7806 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
7807 (main): Add a slash after pkglibdirroot.
7808
7809 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7810
7811 * util/grub-install.in: Add missing "in" keyword.
7812
7813 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7814
7815 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
7816 Reported by: Seth Goldberg.
7817
7818 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7819
7820 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
7821
7822 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
7823
7824 * configure.ac: Check for Linux device-mapper support.
7825
7826 * util/hostdisk.c (device_is_mapped): New function.
7827 (find_partition_start): New function, partly broken out from
7828 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
7829 device-mapper support added.
7830 (linux_find_partition): Use find_partition_start.
7831 (convert_system_partition_to_system_disk): Add `st' argument.
7832 Support Linux /dev/mapper/* devices if device-mapper support is
7833 available; only DM-RAID devices are understood at present.
7834 (find_system_device): Add `st' argument. Pass it to
7835 convert_system_partition_to_system_disk.
7836 (grub_util_biosdisk_get_grub_dev): Pass stat result to
7837 find_system_device and convert_system_partition_to_system_disk. Use
7838 find_partition_start.
7839
7840 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
7841 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
7842 * util/deviceiter.c [__linux__]: Define MINOR.
7843 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
7844 * util/mkdevicemap.c (grub_putchar): New function.
7845 (grub_getkey): New function.
7846 (grub_refresh): New function.
7847 (main): Set debug=all if -v -v is used.
7848
7849 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
7850
7851 Fix build with non-GNU libcs.
7852
7853 * util/misc.c (canonicalize_file_name): Move to ...
7854 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
7855 grub_make_system_path_relative_to_its_root.
7856
7857 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
7858
7859 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
7860 we handle finding grub-mkimage. Default to finding grub-mkimage in
7861 ${bindir} with program_transform_name applied, and provide a
7862 --grub-mkimage option to override this.
7863
7864 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7865
7866 Remove grub-mkisofs.
7867
7868 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
7869 (grub_mkisofs_SOURCES): Removed.
7870 (grub_mkisofs_CFLAGS): Removed.
7871 * util/mkisofs/defaults.h: Removed.
7872 * util/mkisofs/eltorito.c: Likewise.
7873 * util/mkisofs/exclude.h: Likewise.
7874 * util/mkisofs/hash.c: Likewise.
7875 * util/mkisofs/include/: Likewise.
7876 * util/mkisofs/include/fctldefs.h: Likewise.
7877 * util/mkisofs/include/mconfig.h: Likewise.
7878 * util/mkisofs/include/prototyp.h: Likewise.
7879 * util/mkisofs/include/statdefs.h: Likewise.
7880 * util/mkisofs/iso9660.h: Likewise.
7881 * util/mkisofs/joliet.c: Likewise.
7882 * util/mkisofs/match.c: Likewise.
7883 * util/mkisofs/match.h: Likewise.
7884 * util/mkisofs/mkisofs.c: Likewise.
7885 * util/mkisofs/mkisofs.h: Likewise.
7886 * util/mkisofs/msdos_partition.h: Likewise.
7887 * util/mkisofs/multi.c: Likewise.
7888 * util/mkisofs/name.c: Likewise.
7889 * util/mkisofs/rock.c: Likewise.
7890 * util/mkisofs/tree.c: Likewise.
7891 * util/mkisofs/write.c: Likewise.
7892
7893 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7894
7895 Unify grub-mkimage accross platforms.
7896
7897 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
7898 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
7899 (grub_mkelfimage_SOURCES): Removed.
7900 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
7901 (util/grub-mkimage.c_DEPENDENCIES): .. this.
7902 (bin_UTILITIES): Add grub-mkimage.
7903 (grub_mkimage_SOURCES): New variable.
7904 (kernel_img_HEADERS): Remove machine/kernel.h.
7905 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
7906 (pkglib_PROGRAMS): Add kernel.img.
7907 (kernel_img_HEADERS): Add machine/kernel.h.
7908 (kernel_img_FORMAT): Removed.
7909 (bin_UTILITIES): Remove grub-mkimage.
7910 (grub_mkimage_SOURCES): Removed.
7911 (grub_mkimage_CFLAGS): Likewise.
7912 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
7913 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
7914 (pkglib_PROGRAMS): Add kernel.img.
7915 (bin_UTILITIES): Remove grub-mkimage.
7916 (grub_mkimage_SOURCES): Removed.
7917 (grub_mkimage_CFLAGS): Likewise.
7918 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
7919 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
7920 (pkglib_PROGRAMS): Add kernel.img.
7921 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
7922 (pkglib_PROGRAMS): Add kernel.img.
7923 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
7924 (grub_mkimage_SOURCES): Removed.
7925 (grub_mkimage_CFLAGS): Likewise.
7926 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
7927 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
7928 (pkglib_PROGRAMS): Add kernel.img.
7929 (bin_UTILITIES): Remove grub-mkimage.
7930 (grub_mkimage_SOURCES): Removed.
7931 (grub_mkimage_CFLAGS): Likewise.
7932 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
7933 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
7934 (grub_mkimage_SOURCES): Removed.
7935 (grub_mkimage_CFLAGS): Likewise.
7936 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
7937 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
7938 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
7939 (grub_pe32_optional_header): ... this.
7940 (grub_pe64_optional_header): ... and this. All users updated.
7941 (GRUB_PE32_PE32_MAGIC): Split into ..
7942 (GRUB_PE32_PE32_MAGIC): .. this.
7943 (GRUB_PE32_PE64_MAGIC): .. and this.
7944 (GRUB_PE32_SIGNATURE_SIZE): New definition.
7945 * include/grub/elf.h (PT_GNU_STACK): New definition.
7946 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
7947 * include/grub/i386/efi/kernel.h: Likewise.
7948 * include/grub/i386/kernel.h: Likewise.
7949 * include/grub/i386/pc/kernel.h: Likewise.
7950 * include/grub/i386/qemu/boot.h: Likewise.
7951 * include/grub/mips/kernel.h: Likewise.
7952 * include/grub/mips/qemu-mips/kernel.h: Likewise.
7953 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
7954 * include/grub/powerpc/kernel.h: Likewise.
7955 * include/grub/sparc64/ieee1275/boot.h: Likewise.
7956 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
7957 * include/grub/sparc64/kernel.h: Likewise.
7958 * include/grub/x86_64/efi/kernel.h: Likewise.
7959 * include/grub/x86_64/kernel.h: Likewise.
7960 * include/grub/offsets.h: New file.
7961 * include/grub/kernel.h (grub_module_info): Split into ...
7962 (grub_module_info32): ... this.
7963 (grub_module_info64): ... and this.
7964 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
7965 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
7966 (grub_boot_blocklist): Moved from here ...
7967 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
7968 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
7969 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
7970 * include/grub/types.h (grub_target_to_host16): Removed.
7971 (grub_target_to_host32): Likewise.
7972 (grub_target_to_host64): Likewise.
7973 (grub_host_to_target16): Likewise.
7974 (grub_host_to_target32): Likewise.
7975 (grub_host_to_target64): Likewise.
7976 (grub_host_to_target_addr): Likewise.
7977
7978 Support grub-mkrescue for efi, coreboot and qemu.
7979
7980 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
7981 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
7982 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
7983 * util/grub-mkrawimage.c: Moved from here ...
7984 * util/grub-mkimage.c: ... here. All users updated.
7985 (ALIGN_ADDR): Use image_target.
7986 (TARGET_NO_FIELD): New const.
7987 (image_target_desc): New type.
7988 (image_targets): New array.
7989 (grub_target_to_host64): Use image_target.
7990 (grub_target_to_host32): Likewise.
7991 (grub_target_to_host16): Likewise.
7992 (grub_host_to_target64): Likewise.
7993 (grub_host_to_target32): Likewise.
7994 (grub_host_to_target16): Likewise.
7995 (grub_host_to_target_addr): Likewise.
7996 (generate_image): Handle multiimage.
7997 (main): Require -O parameter. All users updated.
7998 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
7999 util/efi/grub-mkimage.c
8000 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
8001 New option --rom-directory.
8002 Use xorriso.
8003 * util/i386/efi/grub-mkimage.c: Removed.
8004 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
8005 (grub_target_to_host32): Likewise.
8006 (grub_target_to_host64): Likewise.
8007 (grub_host_to_target16): Likewise.
8008 (grub_host_to_target32): Likewise.
8009 (grub_host_to_target64): Likewise.
8010 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
8011 (grub_target_to_host32): Likewise.
8012 (grub_target_to_host64): Likewise.
8013 (grub_host_to_target16): Likewise.
8014 (grub_host_to_target32): Likewise.
8015 (grub_host_to_target64): Likewise.
8016
8017 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
8018
8019 Source tree is reorganized for emu build.
8020
8021 * include/grub/util/console.h: Move from here...
8022 * include/grub/emu/console.h: ...to here.
8023 * include/grub/util/getroot.h: Move from here...
8024 * include/grub/emu/getroot.h: ...to here.
8025 * include/grub/util/hostdisk.h: Move from here...
8026 * include/grub/emu/hostdisk.h: ...to here.
8027 * util/console.c: Move from here...
8028 * kern/emu/console.c: ...to here.
8029 * util/getroot.c: Move from here...
8030 * kern/emu/getroot.c: ...to here.
8031 * util/grub-emu.c: Move from here...
8032 * kern/emu/main.c: ...to here.
8033 * util/hostdisk.c: Move from here...
8034 * kern/emu/hostdisk.c: ...to here.
8035 * util/hostfs.c: Move from here...
8036 * kern/emu/hostfs.c: ...to here.
8037 * util/mm.c: Move from here...
8038 * kern/emu/mm.c: ...to here.
8039 * util/pci.c: Move from here...
8040 * bus/emu/pci.c: ...to here.
8041 * util/sdl.c: Move from here...
8042 * video/emu/sdl.c: ...to here.
8043 * util/time.c: Move from here...
8044 * kern/emu/time.c: ...to here.
8045 * util/usb.c: Move from here...
8046 * bus/usb/emu/usb.c: ...to here.
8047
8048 * include/grub/emu/misc.h: New header for grub-emu functions.
8049 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
8050
8051 * conf/any-emu.rmk: Rule updates for above renames.
8052 * conf/common.rmk: Likewise.
8053 * conf/i386-pc.rmk: Likewise.
8054 * conf/i386-qemu.rmk: Likewise.
8055 * conf/mips.rmk: Likewise.
8056 * conf/sparc64-ieee1275.rmk: Likewise.
8057 * conf/x86-efi.rmk: Likewise.
8058
8059 * disk/lvm.h: #include updates for above renames.
8060 * util/grub-mkrelpath.c: Likewise.
8061 * util/grub-probe.c: Likewise.
8062 * util/i386/pc/grub-setup.c: Likewise.
8063 * util/sparc64/ieee1275/grub-setup.c: Likewise.
8064 * kern/emu/console.c: Likewise.
8065 * kern/emu/getroot.c: Likewise.
8066 * kern/emu/hostdisk.c: Likewise.
8067 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
8068
8069 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
8070 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
8071 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
8072 * util/misc.c: Remove grub-emu functions.
8073
8074 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8075
8076 Fix gfxmenu crash.
8077 Reported by: Thorsten Grützmacher.
8078
8079 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
8080 timeout hook.
8081 (circprog_set_property): Register and unregister timeout hook.
8082 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
8083 (label_destroy): Free template. and unregister hook.
8084 (label_set_state): New function.
8085 (label_set_property): Handle templates and hooks.
8086 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
8087 timeout hook.
8088 (progress_bar_set_property): Register and unregister timeout hook.
8089 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
8090 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
8091 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
8092 (update_timeout_visit): Removed.
8093 (update_timeouts): New function.
8094 (redraw_timeouts): Likewise.
8095 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
8096 (grub_gfxmenu_clear_timeout): Likewise.
8097 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
8098 (grub_gfxmenu_timeout_notify): Likewise.
8099 (grub_gfxmenu_timeout_notifications): New external variable.
8100 (grub_gfxmenu_timeout_register): New function.
8101 (grub_gfxmenu_timeout_unregister): Likewise.
8102
8103 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8104
8105 Transform (broken) vga terminal into (working) vga video driver.
8106
8107 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
8108 video/i386/pc/vga.c.
8109 * include/grub/video.h (grub_video_driver_id):
8110 Add GRUB_VIDEO_DRIVER_VGA.
8111 * term/i386/pc/vga.c: Renamed to ...
8112 * video/i386/pc/vga.c: ...this
8113 (DEBUG_VGA): Removed.
8114 (CHAR_WIDTH): Likewise.
8115 (CHAR_HEIGHT): Likewise.
8116 (TEXT_WIDTH): Likewise.
8117 (TEXT_HEIGHT): Likewise.
8118 (DEFAULT_FG_COLOR): Likewise.
8119 (DEFAULT_BG_COLOR): Likewise.
8120 (colored_char): Likewise.
8121 (xpos): Likewise.
8122 (ypos): Likewise.
8123 (cursor_state): Likewise.
8124 (fg_color): Likewise.
8125 (bg_color): Likewise.
8126 (text_buf): Likewise.
8127 (page): Likewise.
8128 (font): Likewise.
8129 (framebuffer): New variable.
8130 (set_read_map): Disabled.
8131 (setup): New variable.
8132 (is_target): Likewise.
8133 (grub_vga_mod_init): Likewise.
8134 (grub_vga_mod_fini): Likewise.
8135 (check_vga_mem): Likewise.
8136 (write_char): Likewise.
8137 (write_cursor): Likewise.
8138 (scroll_up): Likewise.
8139 (grub_vga_putchar): Likewise.
8140 (grub_vga_getcharwidth): Likewise.
8141 (grub_vga_getwh): Likewise.
8142 (grub_vga_getxy): Likewise.
8143 (grub_vga_gotoxy): Likewise.
8144 (grub_vga_cls): Likewise.
8145 (grub_vga_setcolorstate): Likewise.
8146 (grub_vga_setcursor): Likewise.
8147 (grub_video_vga_init): New function.
8148 (grub_video_vga_setup): Likewise.
8149 (grub_video_vga_fini): Likewise.
8150 (update_target): Likewise.
8151 (grub_video_vga_blit_bitmap): Likewise.
8152 (grub_video_vga_blit_render_target): Likewise.
8153 (grub_video_vga_set_active_render_target): Likewise.
8154 (grub_video_vga_get_active_render_target): Likewise.
8155 (grub_video_vga_swap_buffers): Likewise.
8156 (grub_video_vga_set_palette): Likewise.
8157 (grub_video_vga_get_info_and_fini): Likewise.
8158 (grub_vga_term): Removed.
8159 (grub_video_vga_adapter): New variable.
8160 (GRUB_MOD_INIT): Register a video driver instead of terminal.
8161 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
8162
8163 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8164
8165 * video/readers/jpeg.c: Indented.
8166
8167 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8168
8169 Various jpeg cleanups.
8170
8171 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
8172 (grub_jpeg_decode_quan_table): Use sizeof.
8173 (grub_jpeg_decode_du): Use ARRAY_SIZE.
8174
8175 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
8176
8177 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
8178 tables. Ignore non-last ac bit.
8179 (grub_jpeg_decode_quan_table): Likewise.
8180
8181 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8182
8183 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8184 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
8185 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8186 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
8187 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
8188 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
8189
8190 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8191
8192 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
8193 error.
8194
8195 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8196
8197 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
8198
8199 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
8200
8201 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
8202 condition.
8203
8204 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
8205
8206 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
8207 part.
8208
8209 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
8210
8211 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
8212 pointers.
8213
8214 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
8215
8216 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
8217
8218 2010-05-01 Christian Franke <franke@computer.org>
8219
8220 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
8221 Remove broken Cygwin path conversion.
8222 * util/misc.c: [__CYGWIN__] Add include and define.
8223 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
8224 for Cygwin 1.7.
8225 (make_system_path_relative_to_its_root): Simplify loop, replace early
8226 return by break.
8227 [__CYGWIN__] Add conversion to win32 path.
8228 Include "/" case in trailing slash removal.
8229
8230 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8231
8232 * kern/main.c (grub_load_config): Fix copy-pasted comment.
8233 Reported by: Seth Goldberg
8234
8235 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8236
8237 * commands/help.c (grub_cmd_help): Fix a typo.
8238 Reported by: Seth Goldberg
8239
8240 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8241
8242 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
8243 name and add N_.
8244 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
8245 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
8246 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
8247 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
8248 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
8249 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
8250 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
8251 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
8252 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
8253 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
8254 * normal/context.c (GRUB_MOD_INIT): Likewise.
8255 * normal/main.c (GRUB_MOD_INIT): Likewise.
8256 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
8257 * term/serial.c (GRUB_MOD_INIT): Likewise.
8258 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
8259
8260 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8261
8262 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
8263 extra == 0.
8264
8265 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8266
8267 * commands/iorw.c: New file.
8268 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
8269 (iorw_mod_SOURCES): New variable.
8270 (iorw_mod_CFLAGS): Likewise.
8271 (iorw_mod_LDFLAGS): Likewise.
8272
8273 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8274
8275 Hotkey support
8276
8277 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
8278 * normal/main.c (hotkey_aliases): New variable.
8279 (grub_normal_add_menu_entry): Parse "--hotkey".
8280 * normal/menu_text.c (run_menu): Handle hotkeys.
8281
8282 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8283
8284 * kern/i386/coreboot/init.c (grub_machine_init): Call
8285 grub_machine_mmap_init on qemu.
8286
8287 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8288
8289 * boot/i386/qemu/boot.S: Add a missing .code16.
8290
8291 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8292
8293 Use LBIO on coreboot.
8294
8295 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
8296 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
8297 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
8298 New declaration.
8299 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
8300 grub_machine_mmap_init on coreboot.
8301 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
8302 GRUB_LINUXBIOS_MEMBER_LINK.
8303 (grub_machine_mmap_iterate): Fix declaration.
8304 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
8305
8306 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8307
8308 Split coreboot and multiboot ports.
8309
8310 * conf/i386-multiboot.rmk: New file.
8311 * configure.ac: Add multiboot port.
8312 * include/grub/i386/multiboot/boot.h: New file.
8313 * include/grub/i386/multiboot/console.h: Likewise.
8314 * include/grub/i386/multiboot/init.h: Likewise.
8315 * include/grub/i386/multiboot/kernel.h: Likewise.
8316 * include/grub/i386/multiboot/loader.h: Likewise.
8317 * include/grub/i386/multiboot/memory.h: Likewise.
8318 * include/grub/i386/multiboot/serial.h: Likewise.
8319 * include/grub/i386/multiboot/time.h: Likewise.
8320 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
8321 * loader/multiboot.c: Likewise.
8322 * loader/multiboot_mbi2.c: Likewise.
8323 * util/grub-mkrescue.in: Generate multiboot rescue.
8324
8325 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8326
8327 * kern/parser.c (grub_parser_execute): Cope with read-only config.
8328
8329 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8330
8331 Merge handling of input and output terminals. Fix a hang.
8332
8333 * commands/terminal.c (abstract_terminal): New struct.
8334 (handle_command): New function. Based on grub_cmd_terminal_input.
8335 (grub_cmd_terminal_input): Use handle_command.
8336 (grub_cmd_terminal_output): Use handle_command.
8337
8338 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
8339
8340 Fix comment handling.
8341
8342 * tests/grub_script_comments.in: New testcase.
8343 * conf/tests.rmk: Rules for new testcase.
8344 * script/yylex.l: Updated flex rules.
8345
8346 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8347
8348 * docs/grub.texi (play): Document that zero pitches produce rests.
8349 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
8350 if argc is 1.
8351
8352 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
8353
8354 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
8355 autogen issues.
8356
8357 2010-04-26 Christian Franke <franke@computer.org>
8358
8359 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
8360 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
8361 (grub_get_prefix): Remove function.
8362 * util/grub-emu.c (main): Replace grub_get_prefix () call by
8363 make_system_path_relative_to_its_root ().
8364 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
8365
8366 2010-04-24 Christian Franke <franke@computer.org>
8367
8368 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
8369 (kernel_img_LDFLAGS): Remove -static-libgcc.
8370
8371 2010-04-24 Christian Franke <franke@computer.org>
8372
8373 * configure.ac: Do not CHECK_BSS_START_SYMBOL
8374 and CHECK_END_SYMBOL if grub-emu is built.
8375 Unset TARGET_OBJ2ELF if grub-emu is built
8376 without module support.
8377
8378 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
8379
8380 Nilfs2 support.
8381
8382 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
8383 (grub_fstest_SOURCES): Likewise.
8384 (pkglib_MODULES): Add nilfs2.mod.
8385 (nilfs2_mod_SOURCES): New variable.
8386 (nilfs2_mod_CFLAGS): Likewise.
8387 (nilfs2_mod_LDFLAGS): Likewise.
8388 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
8389 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
8390 * fs/nilfs2.c: New file.
8391
8392 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
8393
8394 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
8395 is not supported.
8396
8397 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
8398
8399 Add grub-mkconfig support for NetBSD.
8400
8401 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
8402 * util/grub-mkconfig.in: export new NetBSD specific variables.
8403 * po/POTFILES-shell: added 10_netbsd.in.
8404 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
8405
8406 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
8407
8408 Fix emu build with grub-emu-pci and grub-emu-modules.
8409
8410 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
8411 functions.
8412 * include/grub/libpciaccess.h: New file.
8413 * conf/any-emu.rmk: Update kernel headers for emu build.
8414
8415 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
8416
8417 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
8418
8419 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
8420
8421 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
8422
8423 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8424
8425 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
8426 Retrieve chosen/bootpath if bootpath isn't hardcoded.
8427 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
8428 util/ieee1275/ofpath.c.
8429 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
8430 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
8431 * include/grub/sparc64/ieee1275/boot.h
8432 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
8433 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
8434 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
8435 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
8436 const char *.
8437 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
8438 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
8439 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
8440 install.
8441
8442 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
8443
8444 * util/grub-mkconfig.in: Corrected two == equality tests.
8445 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
8446 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
8447 expect a number appended to it.
8448 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
8449 expects a number appended to it.
8450
8451 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8452
8453 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
8454
8455 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8456
8457 * util/hostdisk.c (make_device_name): Change to new partition naming.
8458
8459 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
8460
8461 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
8462
8463 2010-04-17 Christian Franke <franke@computer.org>
8464
8465 * Makefile.in: Add missing localedir setting.
8466
8467 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
8468
8469 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
8470 mistake in r2156. Noticed by Anthony Fok.
8471
8472 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
8473 @localedir@.
8474 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
8475
8476 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
8477
8478 Fix a spurious, uninitialized variable warning.
8479
8480 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
8481 Initialize variable, shdr.
8482 (grub_freebsd_load_elfmodule): Likewise.
8483 (grub_freebsd_load_elf_meta): Likewise.
8484
8485 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
8486
8487 Fix for escaped dollar in double quoted strings.
8488
8489 * script/yylex.l: Updated flex rules.
8490 * conf/tests.rmk: Rule for new testcase.
8491 * tests/grub_script_dollar.in: New testcase.
8492
8493 2010-04-13 Carles Pina i Estany <carles@pina.cat>
8494 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
8495
8496 Enclose all translated strings in grub.cfg in single quotes, and
8497 escape them appropriately (Ubuntu bug #552921).
8498
8499 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
8500 * util/grub.d/10_hurd.in: Use it.
8501 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
8502 * util/grub.d/10_linux.in (linux_entry): Likewise.
8503
8504 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8505
8506 Fix cygwin compilation.
8507
8508 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
8509 * include/grub/misc.h (__register_frame_info)
8510 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
8511 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
8512 * kern/misc.c (__register_frame_info)
8513 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
8514 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
8515
8516 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8517
8518 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
8519
8520 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8521
8522 Unify libgcc processing.
8523
8524 * Makefile.in (kernel_img_LDFLAGS): New variable.
8525 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
8526 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
8527 overwriting.
8528 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
8529 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
8530 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
8531 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
8532 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
8533 overwriting. Remove -lgcc and -static-libgcc
8534 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
8535 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
8536 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
8537 (kernel_img_LDFLAGS): Append instead of overwriting.
8538 Remove -lgcc and -static-libgcc
8539 * conf/sparc64-ieee1275.rmk: Likewise.
8540 * include/grub/powerpc/libgcc.h: Move to ...
8541 * include/grub/libgcc.h: .. this.
8542 * include/grub/libgcc.h: Don't export most of the function on x86.
8543 (__bswapsi2): New export.
8544 (__bswapdi2): Likewise.
8545 * include/grub/mips/libgcc.h: Removed.
8546 * include/grub/sparc64/libgcc.h: Likewise.
8547
8548 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8549
8550 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
8551 disk_info_msg (conflicts with gettexting into languages with cases).
8552
8553 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
8554
8555 Add grub-probe support for NetBSD.
8556
8557 * util/getroot.c (find_root_device): Convert block device to
8558 character device on NetBSD.
8559 * util/probe.c (probe): Require character device on NetBSD.
8560 * util/hostdisk.c: NetBSD specific headers.
8561 (configure_device_driver): new function to tune device driver
8562 parameters (currently only for NetBSD floppy driver).
8563 (grub_util_biosdisk_open): NetBSD specific code (get disk size
8564 via disklabel ioctl).
8565 (open_device): call configure_device_driver on NetBSD.
8566 (convert_system_partition_to_system_disk): NetBSD specific code.
8567 (device_is_wholedisk): Likewise.
8568 (grub_util_biosdisk_get_grub_dev): Likewise.
8569 (make_device_name): Fixed a typo in bsd_part_str.
8570 * configure.ac: check for opendisk() and getrawpartition() on
8571 NetBSD and set LIBUTIL.
8572 * Makefile.in: add LIBUTIL to LIBS.
8573
8574 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
8575
8576 Documentation fix.
8577
8578 * util/grub-script-check.c: Better help message.
8579
8580 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
8581
8582 Fix FreeBSD build.
8583
8584 * configure.ac: Flex version check.
8585 * conf/common.rmk: Add -Wno-error to sh.mod.
8586 * script/yylex.l: Remove all #pragma.
8587
8588 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8589
8590 * include/grub/util/misc.h (canonicalise_file_name): Add missing
8591 prototype.
8592 Reported by: Seth Goldberg.
8593
8594 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8595
8596 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
8597 Rename "module" to "module2".
8598 Reported by: Seth Goldberg.
8599
8600 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8601
8602 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
8603 EXPORT_FUNC.
8604 Reported by: Seth Goldberg.
8605
8606 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8607
8608 * lib/posix_wrap/locale.h: Add missing file.
8609 Reported by: Seth Goldberg.
8610
8611 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8612
8613 grub-emu module load support.
8614
8615 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
8616 NO_DYNAMIC_MODULES switched to this.
8617 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
8618 (CFLAGS): Likewise.
8619 * conf/any-emu.rmk: Generate symlist.
8620 (kernel_img_HEADERS): Add util/datetime.h.
8621 (kernel_img_HEADERS) [sdl]: Add sdl.h.
8622 (kernel_img_HEADERS) [libusb]: Add libusb.h.
8623 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
8624 kern/$(target_cpu)/cache.S.
8625 * configure.ac (grub-emu-modules): New option.
8626 * genmk.rb: Handle multiple source lists.
8627 * include/grub/sdl.h: New file.
8628 * include/grub/libusb.h: Likewise.
8629 * util/grub-emu.c (main): Hanle (host) root.
8630 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
8631 GRUB_ERR_UNKNOWN_DEVICE.
8632 * util/misc.c: Move mm functions to ...
8633 * util/mm.c: ... here. All users updated.
8634
8635 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
8636
8637 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
8638 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
8639 missing files.
8640 (maintainer-clean): Remove libgcrypt-grub.
8641
8642 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
8643
8644 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
8645
8646 2010-04-09 EFI Coder <eficoder@hotmail.com>
8647
8648 * normal/menu_text.c (print_message): Clean up the message and show
8649 the Fn information when on EFI
8650 * term/efi/console.c (grub_console_checkkey): Add F4 support.
8651
8652 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
8653
8654 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
8655 All users updated.
8656 * normal/crypto.c (read_crypto_list): Likewise.
8657 * normal/dyncmd.c (read_command_list): Likewise.
8658 * normal/term.c (read_terminal_list): Likewise.
8659 * normal/main.c (read_lists): Use explicit prefix.
8660 (read_lists_hook): Use read_lists.
8661 (grub_normal_execute): Likewise.
8662
8663 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
8664
8665 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
8666 Reported by: Thomas Schmitt.
8667 Add -no-emul-boot to grub-mkisofs parameters.
8668
8669 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
8670
8671 * font/font.c: Indented.
8672
8673 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
8674
8675 Elif support to GRUB script (by Deepak Vankadaru).
8676
8677 * tests/grub_script_if.in: New testcase.
8678 * conf/tests.rmk: Rule for new testcase.
8679 * script/parser.y: Grammar rules for elif.
8680
8681 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
8682
8683 While and until loops support to GRUB script.
8684
8685 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
8686 (grub_script_create_cmdwhile): New function prototype.
8687 (grub_script_execute_cmdwhile): New function prototype.
8688 * script/execute.c (grub_script_execute_cmdwhile): New function.
8689 * script/parser.y (command): New commands.
8690 (whilecmd): New grammar rule.
8691 (untilcmd): New grammar rule.
8692 * script/script.c (grub_script_create_cmdwhile): New function.
8693 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
8694 function.
8695
8696 * tests/grub_script_while1.in: New testcase.
8697 * conf/tests.rmk: Rule for new testcase.
8698
8699 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
8700
8701 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
8702 as *.jpg.
8703
8704 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
8705
8706 GRUB_BACKGROUND support.
8707
8708 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
8709 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
8710
8711 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
8712
8713 Load fonts and modules for gfxmenu in grub-mkconfig.
8714 Idea by: Mario Vazquez
8715
8716 * util/grub.d/00_header.in: Load pf2 and image modules.
8717
8718 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
8719
8720 grub-mkconfig multiple terminal support.
8721
8722 * util/grub-mkconfig.in: Handle multiple terminals correctly.
8723 * util/grub.d/00_header.in: Likewise.
8724
8725 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
8726
8727 * Makefile.in: Specify files explicitly instead of using $< and $@ since
8728 we use cd $(srcdir).
8729
8730 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
8731
8732 * util/grub.d/10_linux.in: Only use the first word of
8733 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
8734 spaces in GRUB_DISTRIBUTOR.
8735 * util/grub.d/10_kfreebsd.in: Likewise.
8736 * util/grub.d/10_hurd.in: Likewise.
8737
8738 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
8739
8740 Fix unit testing framework for Qemu 0.12.
8741
8742 * tests/util/grub-shell.in: Remove -serial stdio option.
8743
8744 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8745
8746 POSIX header file wrappers.
8747
8748 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
8749 equivalents.
8750 * lib/posix_wrap/ctype.h: Likewise.
8751 * lib/posix_wrap/errno.h: Likewise.
8752 * lib/posix_wrap/langinfo.h: Likewise.
8753 * lib/posix_wrap/limits.h: Likewise.
8754 * lib/posix_wrap/localcharset.h: Likewise.
8755 * lib/posix_wrap/stdint.h: Likewise.
8756 * lib/posix_wrap/stdio.h: Likewise.
8757 * lib/posix_wrap/stdlib.h: Likewise.
8758 * lib/posix_wrap/string.h: Likewise.
8759 * lib/posix_wrap/sys/types.h: Likewise.
8760 * lib/posix_wrap/unistd.h: Likewise.
8761 * lib/posix_wrap/wchar.h: Likewise.
8762 * lib/posix_wrap/wctype.h: Likewise.
8763 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
8764 (grub_script.yy.h): Likewise.
8765 * script/yylex.l: Remove POSIX emulation #defines.
8766 * Makefile.in (POSIX_CFLAGS): New variable.
8767 (GNULIB_UTIL_CFLAGS): Likewise.
8768
8769 Regexp support.
8770
8771 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
8772 (regexp_mod_SOURCES): New variable.
8773 (regexp_mod_CFLAGS): Likewise.
8774 (regexp_mod_LDFLAGS): Likewise.
8775 * commands/regexp.c: New file.
8776 * gnulib/regcomp.c: New file. Imported from gnulib.
8777 * gnulib/regex.c: Likewise.
8778 * gnulib/regex_internal.c: Likewise.
8779 * gnulib/regex_internal.h: Likewise.
8780 * gnulib/regexec.c: Likewise.
8781 * gnulib/regex.h: Likewise.
8782
8783 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
8784
8785 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
8786 unsupported video mode types.
8787
8788 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
8789
8790 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
8791
8792 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
8793
8794 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
8795 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
8796
8797 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
8798
8799 Remove unused grub_vga_get_font.
8800
8801 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
8802 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
8803
8804 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
8805
8806 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
8807 * include/grub/misc.h: Likewise.
8808
8809 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
8810
8811 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
8812 for which failure is fatal.
8813
8814 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
8815
8816 * util/grub-install.in: Use mkdir -p to create grub directory.
8817 * util/i386/efi/grub-install.in: Likewise.
8818 * util/ieee1275/grub-install.in: Likewise.
8819
8820 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
8821
8822 * Makefile.in (LEX): new variable.
8823
8824 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
8825
8826 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
8827 `=' and added double quotes on operands of this equality test.
8828
8829 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
8830
8831 * Makefile.in (uninstall): Remove a leftover debug echo.
8832 Reported by: Grégoire Sutre
8833
8834 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
8835
8836 MIPS multiboot2 support.
8837
8838 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
8839 (multiboot2_mod_SOURCES): New variable.
8840 (multiboot2_mod_CFLAGS): Likewise.
8841 (multiboot2_mod_LDFLAGS): Likewise.
8842 (multiboot2_mod_ASFLAGS): Likewise.
8843 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
8844 definition.
8845 (MULTIBOOT_ENTRY_REGISTER): Likewise.
8846 (MULTIBOOT_MBI_REGISTER): Likewise.
8847 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
8848 (MULTIBOOT_ELF32_MACHINE): Likewise.
8849 (MULTIBOOT_ELF64_MACHINE): Likewise.
8850 * include/grub/mips/multiboot.h: New file.
8851 * include/grub/video.h (grub_video_driver_id): New type
8852 GRUB_VIDEO_DRIVER_SM712.
8853 (grub_video_get_info_and_fini): Export.
8854 (grub_video_get_palette): Likewise.
8855 (grub_video_get_driver_id): Likewise.
8856 * include/multiboot2.h: Resynced with spec.
8857 * loader/i386/multiboot.c: Moved from here ...
8858 * loader/multiboot.c: ... here. All users updated.
8859 (grub_multiboot_boot): Use platform-specific macros.
8860 * loader/i386/multiboot_elfxx.c: Moved from here ...
8861 * loader/multiboot_elfxx.c: ... here. All users updated.
8862 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
8863 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
8864 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
8865
8866 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8867
8868 Import gnulib argp module.
8869
8870 * gnulib/argp-ba.c: New file.
8871 * gnulib/argp-eexst.c: Likewise.
8872 * gnulib/argp-fmtstream.c: Likewise.
8873 * gnulib/argp-fmtstream.h: Likewise.
8874 * gnulib/argp-fs-xinl.c: Likewise.
8875 * gnulib/argp-help.c: Likewise.
8876 * gnulib/argp-namefrob.h: Likewise.
8877 * gnulib/argp-parse.c: Likewise.
8878 * gnulib/argp-pin.c: Likewise.
8879 * gnulib/argp-pv.c: Likewise.
8880 * gnulib/argp-pvh.c: Likewise.
8881 * gnulib/argp-version-etc.c: Likewise.
8882 * gnulib/argp-version-etc.h: Likewise.
8883 * gnulib/argp-xinl.c: Likewise.
8884 * gnulib/argp.h: Likewise.
8885
8886 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8887
8888 * kern/device.c (grub_device_iterate): Clear errors after failed
8889 opening device.
8890
8891 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8892
8893 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
8894 returned by firmware.
8895
8896 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8897
8898 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
8899 compilation on coreboot and qemu
8900
8901 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
8902
8903 * include/multiboot2.h: Resync with spec.
8904
8905 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
8906
8907 Multiboot2 tag support
8908
8909 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
8910 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
8911 Remove loader/multiboot_loader.c.
8912 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
8913 (grub_multiboot2_real_boot): Likewise.
8914 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
8915 (grub_get_multiboot_mmap_count): New proto.
8916 (grub_fill_multiboot_mmap): Likewise.
8917 (grub_multiboot_set_video_mode): Likewise.
8918 (grub_multiboot_set_console): Likewise.
8919 (grub_multiboot_load): Likewise.
8920 (grub_multiboot_load_elf): Likewise.
8921 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
8922 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
8923 * include/multiboot.h: Resynced with specification.
8924 * include/multiboot2.h: Resynced with specification.
8925 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
8926 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
8927 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
8928 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
8929 users updated.
8930 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
8931 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
8932 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
8933 Removed.
8934 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
8935 Moved from here...
8936 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
8937 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
8938 Moved from here...
8939 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
8940 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
8941 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
8942 All users updated.
8943 * loader/i386/multiboot_mbi2.c: New file.
8944
8945 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
8946
8947 Resync with gnulib.
8948
8949 * Makefile.in (GNULIB_CFLAGS): New variable.
8950 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
8951 (grub_script_check_CFLAGS): New variable.
8952 * gnulib/alloca.h: Resync with gnulib.
8953 * gnulib/error.c: Likewise.
8954 * gnulib/error.h: Likewise.
8955 * gnulib/fnmatch.c: Likewise.
8956 * gnulib/fnmatch_loop.c: Likewise.
8957 * gnulib/getdelim.c: Likewise.
8958 * gnulib/getline.c: Likewise.
8959 * gnulib/getopt.c: Likewise.
8960 * gnulib/getopt1.c: Likewise.
8961 * gnulib/getopt_int.h: Likewise.
8962 * gnulib/gettext.h: Likewise.
8963 * gnulib/progname.c: Likewise.
8964 * gnulib/progname.h: Likewise.
8965
8966 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
8967
8968 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
8969 which is the case with --disabled-nls.
8970
8971 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
8972 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
8973 * util/misc.c: Likewise.
8974 * util/mkisofs/mkisofs.c: Likewise.
8975 * util/mkisofs/mkisofs.h: Likewise.
8976
8977 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
8978
8979 Simplify Apple CC support.
8980
8981 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
8982 Add 0 byte at the end not to have a symbol with empty target.
8983 * mmap/i386/pc/mmap_helper.S: Likewise.
8984 * genmk.rb: Ignore errors 2030 and 2050.
8985 * kern/i386/pc/startup.S: Use LOCAL when possible.
8986
8987 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
8988
8989 Testcase and the fix for final semicolon on cmdline.
8990
8991 * tests/grub_script_final_semicolon.in: New testcase.
8992 * conf/tests.rmk: Rules for the new testcase.
8993 * script/parser.y: Grammar fix.
8994
8995 2010-03-26 BVK Chaitanya <bvk@localhost>
8996
8997 Blank lines testcase for GRUB script.
8998
8999 * tests/grub_script_blanklines.in: New testcase.
9000 * conf/tests.rmk: Rules for the new testcase.
9001
9002 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9003
9004 Don't use __FILE__.
9005
9006 * genmk.rb: Add -DGRUB_FILE to all C targets.
9007 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
9008 * include/grub/list.h: Likewise.
9009 * include/grub/misc.h: Likewise.
9010 * include/grub/mm.h: Likewise.
9011 * include/grub/test.h: Likewise.
9012 * kern/mm.c: Likewise.
9013 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
9014
9015 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9016
9017 Sunpc partitions support.
9018
9019 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
9020 (grub_fstest_SOURCES): Likewise.
9021 (pkglib_MODULES): Add part_sunpc.mod.
9022 (part_sunpc_mod_SOURCES): New variable.
9023 (part_sunpc_mod_CFLAGS): Likewise.
9024 (part_sunpc_mod_LDFLAGS): Likewise.
9025 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
9026 * partmap/sunpc.c: New file.
9027
9028 2010-03-26 BVK Chaitanya <bvk@localhost>
9029
9030 For loop support to GRUB script.
9031
9032 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
9033 (grub_script_create_cmdfor): New function prototype.
9034 (grub_script_execute_cmdfor): New function prototype.
9035 * script/execute.c (grub_script_execute_cmdfor): New function.
9036 * script/parser.y (command): New for command.
9037 (forcmd): New grammar rule.
9038 * script/script.c (grub_script_create_cmdfor): New function.
9039 * util/grub-script-check.c (grub_script_execute_cmdfor): New
9040 function.
9041 * tests/grub_script_for1.in: New testcase.
9042 * conf/tests.rmk: Rules for new testcase.
9043
9044 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9045
9046 Nested partitions
9047
9048 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
9049 'partition' is NULL, grub_partition_get_start already does that.
9050 * commands/loadenv.c (check_blocklists): Likewise.
9051 (write_blocklists): Likewise.
9052 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
9053 (grub_fstest_SOURCES): Likewise.
9054 (pkglib_MODULES): Add part_bsd.mod.
9055 (part_bsd_mod_SOURCES): New variable.
9056 (part_bsd_mod_CFLAGS): Likewise.
9057 (part_bsd_mod_LDFLAGS): Likewise.
9058 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
9059 (grub_emu_SOURCES): Likewise.
9060 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9061 * include/grub/bsdlabel.h: New file.
9062 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
9063 'get_name'.
9064 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
9065 (grub_partition_map_list): New variable.
9066 (grub_partition_map_register): Inline.
9067 (grub_partition_map_unregister): Likewise.
9068 (FOR_PARTITION_MAPS): New macro.
9069 (grub_partition_map_iterate): Removed.
9070 (grub_partition_get_start): Handle nested partitions.
9071 * include/grub/msdos_partition.h: Remove bsd-related entries.
9072 (grub_pc_partition): Remove.
9073 * kern/disk.c (grub_disk_close): Free partition data.
9074 (grub_disk_adjust_range): Handle nested partitions.
9075 * kern/partition.c (grub_partition_map_probe): New function.
9076 (grub_partition_probe): Parse name to number, handle subpartitions.
9077 (get_partmap): New function.
9078 (grub_partition_iterate): Handle subpartitions.
9079 (grub_partition_get_name): Likewise.
9080 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
9081 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
9082 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
9083 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
9084 Set 'number'.
9085 (acorn_partition_map_probe): Remove.
9086 (acorn_partition_map_get_name): Likewise.
9087 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
9088 Set 'number'.
9089 Set 'index' to 0 since there can be only one partition entry per sector.
9090 (amiga_partition_map_probe): Remove.
9091 (amiga_partition_map_get_name): Likewise.
9092 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
9093 Set 'number'.
9094 Set 'offset' and 'index' to real positions of partitions.
9095 (apple_partition_map_probe): Remove.
9096 (apple_partition_map_get_name): Likewise.
9097 * partmap/bsdlabel.c: New file.
9098 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
9099 Set 'number'.
9100 Allocate 'data' so it can be correctly freed.
9101 Set 'index' to offset inside sector.
9102 (gpt_partition_map_probe): Remove.
9103 (gpt_partition_map_get_name): Likewise.
9104 * partmap/msdos.c (grub_partition_parse): Remove.
9105 (pc_partition_map_iterate): Don't force raw access.
9106 Set 'number'.
9107 Make 'ext_offset' a local variable.
9108 (pc_partition_map_probe): Remove.
9109 (pc_partition_map_get_name): Remove.
9110 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
9111 Set 'number'.
9112 (sun_partition_map_probe): Remove.
9113 (sun_partition_map_get_name): Likewise.
9114 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
9115 (grub_pcpart_type): Likewise.
9116 * util/hostdisk.c (open_device): Handle new numbering scheme.
9117 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
9118 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
9119 * util/grub-probe.c (probe_partmap): Handle nested paritions.
9120 * util/grub-install.in: Insert all subpartition modules.
9121 * util/ieee1275/grub-install.in: Likewise.
9122
9123 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
9124
9125 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
9126 grammar.
9127
9128 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
9129
9130 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
9131
9132 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
9133
9134 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
9135 match where 'make install' puts them.
9136 * util/i386/efi/grub-install.in: Likewise.
9137
9138 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
9139
9140 * .bzrignore: Add gentrigtables, grub-script-check,
9141 grub_script_check_init.c, grub_script_check_init.h, and
9142 trigtables.c.
9143
9144 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
9145
9146 * kern/parser.c: Indented.
9147
9148 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
9149
9150 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
9151
9152 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
9153
9154 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
9155 alpha_mask_size == 0 case.
9156
9157 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
9158
9159 GRUB shell lexer and parser improvements.
9160
9161 * conf/any-emu.rmk: Build rule updates.
9162 * conf/common.rmk: Likewise.
9163 * conf/i386-coreboot.rmk: Likewise.
9164 * conf/i386-efi.rmk: Likewise.
9165 * conf/i386-ieee1275.rmk: Likewise.
9166 * conf/i386-pc.rmk: Likewise.
9167 * conf/powerpc-ieee1275.rmk: Likewise.
9168 * conf/x86_64-efi.rmk: Likewise.
9169
9170 * configure.ac: Configure check for flex.
9171
9172 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
9173 types.
9174 (grub_lexer_param): Struct member updates.
9175 (grub_parser_param): Likewise.
9176 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
9177 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
9178 (grub_script_lexer_init): Prototype update.
9179 (grub_script_lexer_record_start): Likewise.
9180 (grub_script_lexer_record_stop): Likewise.
9181 (grub_script_lexer_yywrap): New function prototype.
9182 (grub_script_lexer_fini): Likewise.
9183 (grub_script_execute_argument_to_string): Removed by...
9184 (grub_script_execute_argument_to_argv): ...better version.
9185
9186 * script/execute.c (ROUND_UPTO): New macro.
9187 (grub_script_execute_cmdline): Out of memory fixes.
9188 (grub_script_execute_menuentry): Likewise.
9189 (grub_script_execute_argument_to_string): Removed. Update all
9190 users by...
9191 (grub_script_execute_argument_to_argv): ...better version.
9192 * script/function.c (grub_script_function_create): Use
9193 grub_script_execute_argument_to_argv instead of
9194 grub_script_execute_argument_to_string.
9195
9196 * script/lexer.c (check_varstate): Removed.
9197 (check_textstate): Removed.
9198 (grub_script_lexer_record_start): Likewise.
9199 (grub_script_lexer_record_stop): Likewise.
9200 (recordchar): Replaced with...
9201 (grub_script_lexer_record): ...new function.
9202 (nextchar): Removed.
9203 (grub_script_lexer_init): Rewritten.
9204 (grub_script_yylex): Rewritten.
9205 (append_newline): New function.
9206 (grub_script_lexer_yywrap): New function.
9207 (grub_script_lexer_fini): New function.
9208 (grub_script_yyerror): Sets error flag.
9209
9210 * script/yylex.l: New file.
9211 (grub_lexer_yyfree): Wrapper for flex yyffre.
9212 (grub_lexer_yyalloc): Likewise.
9213 (grub_lexer_yyrealloc): Likewise.
9214 * script/parser.y: Refactored.
9215
9216 * script/script.c (grub_script_arg_add): Out of memory fixes.
9217 (grub_script_add_arglist): Likewise.
9218 (grub_script_create_cmdline): Likewise.
9219 (grub_script_create_cmdmenu): Likewise.
9220 (grub_script_add_cmd): Likewise.
9221 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
9222 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
9223 unnecessary code.
9224
9225 * tests/grub_script_echo1.in: New testcase.
9226 * tests/grub_script_vars1.in: New testcase.
9227 * tests/grub_script_echo_keywords.in: New testcase.
9228
9229 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
9230
9231 Remove some redundancy in build system.
9232
9233 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
9234 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
9235 (TARGET_LDFLAGS): Add -nostdlib.
9236 (TARGET_IMG_LDFLAGS): Likewise.
9237 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
9238 anything since mmap isn't available.
9239 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
9240 Add util/time.c.
9241 (pkglib_MODULES): Remove reboot.mod.
9242 (reboot_mod_SOURCES): Removed.
9243 (reboot_mod_CFLAGS): Likewise.
9244 (reboot_mod_LDFLAGS): Likewise.
9245 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
9246 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
9247 (DEFSYMFILES): Add kernel_syms.lst.
9248 (kernel_img_HEADERS): Add common headers.
9249 (symlist.c): New target.
9250 (kernel_syms.lst): Likewise.
9251 (pkglib_MODULES): Add memdisk.mod.
9252 (memdisk_mod_SOURCES): New variable.
9253 (memdisk_mod_CFLAGS): Likewise.
9254 (memdisk_mod_LDFLAGS): Likewise.
9255 (pkglib_MODULES): Add reboot.mod.
9256 (reboot_mod_SOURCES): New variable.
9257 (reboot_mod_CFLAGS): Likewise.
9258 (reboot_mod_LDFLAGS): Likewise.
9259 (pkglib_MODULES): Add date.mod.
9260 (date_mod_SOURCES): New variable.
9261 (date_mod_CFLAGS): Likewise.
9262 (date_mod_LDFLAGS): Likewise.
9263 (pkglib_MODULES): Add datehook.mod.
9264 (datehook_mod_SOURCES): New variable.
9265 (datehook_mod_CFLAGS): Likewise.
9266 (datehook_mod_LDFLAGS): Likewise.
9267 (pkglib_MODULES): Add lsmmap.mod.
9268 (lsmmap_mod_SOURCES): New variable.
9269 (lsmmap_mod_CFLAGS): Likewise.
9270 (lsmmap_mod_LDFLAGS): Likewise.
9271 (pkglib_MODULES): Add boot.mod.
9272 (boot_mod_SOURCES): New variable.
9273 (boot_mod_CFLAGS): Likewise.
9274 (boot_mod_LDFLAGS): Likewise.
9275 * conf/i386-coreboot.rmk: Removed redundant parts.
9276 * conf/i386-ieee1275.rmk: Likewise.
9277 * conf/i386-pc.rmk: Likewise.
9278 * conf/mips-yeeloong.rmk: Likewise.
9279 * conf/mips.rmk: Likewise.
9280 * conf/powerpc-ieee1275.rmk: Likewise.
9281 * conf/sparc64-ieee1275.rmk: Likewise.
9282 * conf/x86_64-efi.rmk: Likewise.
9283 * conf/i386-coreboot.rmk: Moved qemu parts ..
9284 * conf/i386-qemu.rmk: ... here
9285 * conf/i386-efi.rmk: Moved common parts to...
9286 * conf/x86-efi.rmk: ... here.
9287 * conf/i386.rmk: Added modules common to all x86 variants.
9288 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
9289 * disk/memdisk.c: Remove grub/machine/kernel.h.
9290 * gensymlist.sh.in: Include symbol.h.
9291 * hook/datehook.c: Correct module name.
9292 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
9293 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
9294 * include/grub/i386/efi/serial.h: New file.
9295 * include/grub/x86_64/efi/serial.h: Likewise.
9296 * util/time.c: Likewise.
9297 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
9298
9299 2010-03-14 Colin King <colin.king@ubuntu.com>
9300 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
9301
9302 Shrink the pre-partition-table part of boot.img by eight bytes.
9303
9304 * boot/i386/pc/boot.S (ERR): New macro.
9305 (chs_mode): Use ERR.
9306 (geometry_error): Likewise.
9307 (hd_probe_error): Remove. This is only used once, so we wrwite
9308 it inline instead.
9309 (read_error): Instead of printing read_error_string, just set up
9310 %si and fall through to ...
9311 (error_message): ... this new function, also used by ERR.
9312
9313 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
9314
9315 Speed up consecutive hostdisk operations on the same device.
9316
9317 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
9318 (grub_util_biosdisk_open): Initialise disk->data.
9319 (struct linux_partition_cache): New structure.
9320 (linux_find_partition): Cache partition start positions; these are
9321 expensive to compute on every read and write.
9322 (open_device): Cache open file descriptor in disk->data, so that we
9323 don't have to reopen it and flush the buffer cache for consecutive
9324 operations on the same device.
9325 (grub_util_biosdisk_close): New function.
9326 (grub_util_biosdisk_dev): Set `close' member.
9327
9328 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
9329 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
9330 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
9331 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
9332 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
9333
9334 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
9335
9336 Compile parts of grub-emu as modules.
9337
9338 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
9339 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
9340 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
9341 (all-local): Add $(GRUB_EMU).
9342 (install-local): Install $(GRUB_EMU).
9343 (uninstall): Uninstall $(GRUB_EMU).
9344 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
9345 * kern/dl.c: Likewise.
9346 * commands/sleep.c: Not include machine/time.h.
9347 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
9348 (COMMON_CFLAGS): Likewise.
9349 (sbin_UTILITIES): Remove grub-emu.
9350 (grub_emu_SOURCES): Removed.
9351 (kernel_img_RELOCATABLE): New variable.
9352 (pkglib_PROGRAMS): Add kernel.img.
9353 (kernel_img_SOURCES): New variable
9354 (kernel_img_CFLAGS): Likewise.
9355 (kernel_img_LDFLAGS): Likewise.
9356 (TARGET_NO_STRIP): Likewise.
9357 (TARGET_NO_DYNAMIC_MODULES): Likewise.
9358 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
9359 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
9360 (grub-emu): New target.
9361 (GRUB_EMU): New variable.
9362 * configure.ac: Whitelist -emu as possible x86_64 architecture.
9363 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
9364 * loader/xnu.c: Likewise.
9365 * include/grub/pci.h: Likewise.
9366 * genemuinit.sh: New file.
9367 * genemuinitheader.sh: Likewise.
9368 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
9369 Support TARGET_NO_DYNAMIC_MODULES.
9370 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
9371 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
9372 * disk/loopback.c: Likewise.
9373 * font/font_cmd.c: Likewise.
9374 * partmap/acorn.c: Likewise.
9375 * partmap/amiga.c: Likewise.
9376 * partmap/apple.c: Likewise.
9377 * partmap/gpt.c: Likewise.
9378 * partmap/msdos.c: Likewise.
9379 * partmap/sun.c: Likewise.
9380 * parttool/msdospart.c: Likewise.
9381 * term/gfxterm.c: Likewise.
9382 * video/bitmap.c: Likewise.
9383 * video/readers/jpeg.c: Likewise.
9384 * video/readers/png.c: Likewise.
9385 * video/readers/tga.c: Likewise.
9386 * video/video.c: Likewise.
9387 * util/grub-emu.c (read_command_list): Removed.
9388 (main): Don't call util_init_nls.
9389 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
9390 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
9391
9392 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
9393
9394 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
9395 date.mod, datehook.mod.
9396 (datetime_mod_SOURCES): New variable.
9397 (datetime_mod_CFLAGS): Likewise.
9398 (datetime_mod_LDFLAGS): Likewise.
9399 (date_mod_SOURCES): Likewise.
9400 (date_mod_CFLAGS): Likewise.
9401 (date_mod_LDFLAGS): Likewise.
9402 (datehook_mod_SOURCES): Likewise.
9403 (datehook_mod_CFLAGS): Likewise.
9404 (datehook_mod_LDFLAGS): Likewise.
9405 * conf/sparc64-ieee1275.rmk: Likewise.
9406 * lib/ieee1275/datetime.c: New file.
9407
9408 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
9409
9410 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
9411 (ieee1275_fb_mod_SOURCES): New variable.
9412 (ieee1275_fb_mod_CFLAGS): Likewise.
9413 (ieee1275_fb_mod_LDFLAGS): Likewise.
9414 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
9415 New proto.
9416 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
9417 (HEAP_MAX_ADDR): Likewise.
9418 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
9419 type.
9420 Correct stop condition.
9421 (grub_ieee1275_devices_iterate): New function.
9422 * video/ieee1275.c: New file.
9423
9424 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
9425
9426 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
9427
9428 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
9429 as scratch.
9430 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
9431 SCRATCH_PAD_DISKBOOT as scratch.
9432 (bootit): Pass Openfirmware pointer in %o4.
9433 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
9434 of 0x200000.
9435 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
9436 with util/grub-mkrawimage.c.
9437 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
9438 * include/grub/aout.h (AOUT_MID_SUN): New definition.
9439 (grub_aout_get_type) [GRUB_UTIL]: Removed.
9440 (grub_aout_load) [GRUB_UTIL]: Likewise.
9441 * include/grub/kernel.h (grub_modules_get_end): New proto.
9442 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
9443 (SCRATCH_PAD_BOOT): New definition.
9444 (SCRATCH_PAD_DISKBOOT): Likewise.
9445 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
9446 * include/grub/sparc64/ieee1275/ieee1275.h
9447 (grub_ieee1275_original_stack): New variable
9448 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
9449 New definition
9450 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
9451 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
9452 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
9453 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
9454 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
9455 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
9456 (grub_platform_image_format_t): New type.
9457 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
9458 * kern/main.c (grub_modules_get_end)
9459 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
9460 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
9461 (codestart): Switch stacks.
9462 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
9463 variable.
9464 (grub_heap_init): Use grub_modules_get_end.
9465 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
9466 stack.
9467 * util/grub-mkrawimage.c (generate_image): Support sparc64.
9468 (main): Likewise.
9469 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
9470
9471 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
9472
9473 * util/grub-mkrescue.in: Base ISO UUID on UTC.
9474
9475 2010-03-08 Matt Kraai <kraai@ftbfs.org>
9476
9477 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
9478 bug #559005).
9479
9480 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
9481
9482 * genmoddep.awk: Output all missing symbols and not only first.
9483
9484 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9485
9486 * NEWS: Put the date of 1.98 release.
9487
9488 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9489
9490 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
9491 ft2build.h.
9492
9493 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9494
9495 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
9496 completition in the middle of string.
9497
9498 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9499
9500 * util/grub-mkrescue.in: Use mktemp with explicit template.
9501
9502 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9503
9504 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
9505
9506 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9507
9508 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
9509 right pointer.
9510
9511 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
9512
9513 Fix FreeBSD compilation.
9514
9515 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
9516 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
9517
9518 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
9519
9520 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
9521
9522 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9523
9524 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
9525
9526 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9527
9528 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
9529
9530 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
9531
9532 Support relative image path in theme file.
9533
9534 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
9535 (image_set_property): Handle theme_dir and relative path.
9536
9537 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9538
9539 * configure.ac: Alias amd64 to x86_64.
9540
9541 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9542
9543 * NEWS: mention multiboot on EFI.
9544
9545 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9546
9547 * kern/main.c (grub_load_modules): Handle errors from init functions of
9548 embeded modules.
9549
9550 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9551
9552 * normal/autofs.c (autoload_fs_module): Handle errors.
9553
9554 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9555
9556 Disable linux.mod on qemu-mips since it's not functional and leads
9557 to compilation failure.
9558
9559 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
9560 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
9561 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
9562 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
9563 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
9564 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
9565 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
9566 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
9567 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
9568 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
9569 Reported by: BVK Chaitanya
9570
9571 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
9572
9573 * INSTALL: Add gettext as a dependency and add qemu to a new section
9574 "Prerequisites for make-check".
9575
9576 2010-03-04 Christian Franke <franke@computer.org>
9577
9578 * util/grub-pe2elf.c: Add missing include "progname.h".
9579
9580 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9581
9582 * normal/crypto.c (read_crypto_list): Fix a typo.
9583 Reported by: Seth Goldberg.
9584
9585 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9586
9587 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
9588 Reported by: Seth Goldberg.
9589
9590 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9591
9592 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
9593 ascii.bitmaps.
9594
9595 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9596
9597 * genmk.rb: Remove terminal*.lst in make clean.
9598 Reported by: Seth Goldberg.
9599
9600 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9601
9602 * util/i386/efi/grub-install.in: Copy gettext files.
9603
9604 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
9605
9606 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
9607
9608 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
9609
9610 Wait for user entry basing on presence of output rather than on errors.
9611
9612 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
9613 (grub_install_newline_hook): Likewise.
9614 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
9615 * normal/menu.c (show_menu): Check line_counter to determine presence
9616 of output.
9617 * normal/term.c (grub_normal_line_counter): New variable.
9618 (grub_normal_get_line_counter): New function.
9619 (grub_install_newline_hook): Likewise.
9620
9621 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
9622
9623 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
9624
9625 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
9626
9627 * configure.ac: Update version to 1.98.
9628
9629 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9630
9631 * util/grub.d/10_linux.in (linux_entry): Don't default to
9632 gfxpayload=keep if Linux doesn't support video handover.
9633
9634 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
9635
9636 Don't compile video modules on yeeloong since video subsystem is part
9637 of kernel.
9638
9639 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
9640 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
9641 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
9642 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
9643 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
9644 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
9645 * include/grub/bitmap_scale.h: Likewise.
9646 * include/grub/bufio.h: Likewise.
9647 * include/grub/font.h: Likewise.
9648 * include/grub/gfxterm.h: Likewise.
9649 * include/grub/video.h: Likewise.
9650 * include/grub/vbe.h: Don't include video_fb.h.
9651 * video/i386/pc/vbe.c: Include video_fb.h.
9652 * commands/i386/pc/vbetest.c: Include video.h.
9653
9654 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
9655
9656 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
9657 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
9658 default entry if GRUB_SAVEDEFAULT=true. This allows using
9659 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
9660 saving a new default on every boot.
9661
9662 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9663
9664 * normal/crypto.c (read_crypto_list): Fix a memory leak.
9665 * normal/term.c (read_terminal_list): Likewise.
9666 * normal/main.c (grub_normal_init_page): Likewise.
9667 (grub_normal_read_line_real): Likewise.
9668
9669 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9670
9671 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
9672 memory leak.
9673 Reported by: Seth Goldberg.
9674
9675 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
9676
9677 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
9678 duplicate declaration of `start'.
9679
9680 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
9681
9682 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
9683 filename.
9684 Reported by: Georgy Buranov
9685
9686 2010-02-20 Carles Pina i Estany <carles@pina.cat>
9687
9688 * util/grub-mkrawimage.c (usage): Change string formatting to
9689 improve gettext.
9690
9691 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
9692
9693 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
9694 backspace keys.
9695
9696 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
9697
9698 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
9699 Reported by: Michael Suchanek.
9700
9701 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9702
9703 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
9704 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
9705
9706 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
9707
9708 Remove any reference to non-free fonts.
9709
9710 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
9711 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
9712 uses non-free components.
9713 * font/font.c (grub_font_get_name): Remove example name.
9714 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
9715 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
9716 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
9717 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
9718
9719 2010-02-16 Georgy Buranov <gburanov@gmail.com>
9720
9721 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
9722
9723 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
9724
9725 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
9726 Double divisor.
9727 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
9728 features.
9729 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
9730
9731 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
9732
9733 * gensymlist.sh.in: Use TARGET_CC instead of CC.
9734
9735 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9736
9737 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
9738 * docs/grub.texi (Command-line and menu entry commands): Document play
9739 command.
9740
9741 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9742
9743 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
9744 parse arguments as inline tempo and notes. Move code for playing notes
9745 to...
9746 (play): ... new function.
9747
9748 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9749
9750 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
9751 grub_uint16_t instead of short.
9752 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
9753 disk from little endian to cpu endianness.
9754
9755 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
9756
9757 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
9758 GRUB_TICKS_PER_SECOND instead of 120.
9759
9760 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
9761
9762 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
9763 escape sequence after \e.
9764
9765 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
9766
9767 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
9768 non-ASCII characters.
9769
9770 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
9771
9772 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
9773 set root in single quotes to prevent \, from being unescaped.
9774
9775 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
9776
9777 Prevent unknown commands from stopping menuentry execution.
9778
9779 * script/execute.c (grub_script_execute_cmdline): Print error after
9780 unknown command.
9781
9782 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
9783
9784 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
9785 Reported by: Pavel Pisa.
9786
9787 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9788
9789 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
9790
9791 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9792
9793 Merge grub_ieee1275_map_physical into grub_map and rename to
9794 grub_ieee1275_map
9795
9796 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
9797 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
9798 Remove.
9799 * kern/ieee1275/openfw.c (grub_map): Rename to ...
9800 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
9801 necessary.
9802 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
9803
9804 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9805
9806 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
9807 opening and not after.
9808
9809 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9810
9811 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
9812 constants.
9813
9814 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9815
9816 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
9817 (alloc_phys): Use ALIGN_UP instead of align_addr.
9818
9819 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9820
9821 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
9822
9823 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9824
9825 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
9826
9827 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9828
9829 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
9830 verbose dprintf.
9831
9832 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9833
9834 Fix over-4GiB seek on sparc64.
9835
9836 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
9837 Replace pos_i and pos_lo with pos. All users updated.
9838 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
9839 New constant.
9840 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
9841 Likewise.
9842 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
9843 and pos_lo.
9844
9845 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9846
9847 * util/grub-mkrawimage.c (main): Call set_program_name.
9848
9849 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9850
9851 Properly align 64-bit targets.
9852
9853 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
9854 (generate_image): Use ALIGN_ADDR.
9855
9856 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9857
9858 Properly create cross-endian images.
9859
9860 * include/grub/types.h (grub_host_to_target_addr): New macro
9861 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
9862
9863 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9864
9865 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
9866
9867 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9868
9869 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
9870
9871 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
9872 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
9873 (grub_linux_boot): Divide by 64K when on VESA.
9874
9875 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9876
9877 Support GRUB_GFXPAYLOAD_LINUX.
9878
9879 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
9880 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
9881
9882 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9883
9884 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
9885 to show messages instead of discarding them.
9886 Process errors after executing command and not before. Keep old method
9887 too as precaution.
9888
9889 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9890
9891 * configure.ac: Check for ft2build.h.
9892
9893 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9894
9895 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
9896
9897 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9898
9899 * genkernsyms.sh.in: Use TARGET_CC.
9900
9901 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
9902
9903 * NEWS: Update.
9904
9905 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9906
9907 * include/grub/multiboot2.h: Remove leftover file.
9908 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
9909 * include/grub/partition.h [GRUB_UTIL]: Likewise.
9910
9911 2010-02-07 Yves Blusseau <blusseau@zetam.org>
9912
9913 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
9914
9915 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9916
9917 Fix warnings in grub-emu when compiling with maximum warning options.
9918
9919 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
9920 (grub_arch_modules_addr): Return 0 and not NULL.
9921 * util/misc.c (ENABLE_RELOCATABLE): New definition.
9922 (xstrdup): Use newstr instead of dup.
9923 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
9924 of disk to dsk to avoid shadowing.
9925 (find_free_slot): Fix prototype.
9926 * util/getroot.c (grub_util_is_dmraid): Make static.
9927 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
9928 Add missing prototype.
9929 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
9930
9931 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9932
9933 * loader/i386/linux.c (grub_linux_setup_video): Handle error
9934 appropriately.
9935
9936 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9937
9938 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
9939 code out.
9940
9941 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9942
9943 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
9944 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
9945 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
9946 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
9947 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
9948 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
9949
9950 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9951
9952 * include/grub/err.h (grub_err_printf): Don't export.
9953
9954 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9955
9956 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
9957
9958 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9959
9960 * include/grub/i18n.h (grub_gettext_dummy): Removed.
9961 * kern/misc.c (grub_gettext_dummy): Make static.
9962
9963 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9964
9965 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
9966 by non-valid ones.
9967 * kern/term.c (grub_putchar): Likewise.
9968
9969 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9970
9971 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
9972 buggy hook call and memory leak.
9973
9974 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9975
9976 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
9977
9978 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9979
9980 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
9981
9982 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9983
9984 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
9985 modevar.
9986 Return grub_errno on allocation error.
9987
9988 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9989
9990 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
9991
9992 2010-02-06 Yves Blusseau <blusseau@zetam.org>
9993
9994 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
9995 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
9996
9997 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9998
9999 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
10000 non-pxe disk.
10001 (grub_pxefs_open): Likewise.
10002
10003 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
10004
10005 * util/grub.d/10_hurd.in: Add --class information to menuentries.
10006 * util/grub.d/10_kfreebsd.in: Likewise.
10007 * util/grub.d/10_linux.in: Likewise.
10008
10009 2010-02-06 Colin D Bennett <colin@gibibit.com>
10010
10011 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
10012 (gfxmenu_mod_SOURCES): New variable.
10013 (gfxmenu_mod_CFLAGS): Likewise.
10014 (gfxmenu_mod_LDFLAGS): Likewise.
10015 * include/grub/term.h (grub_term_set_current_output): Declare
10016 argument as const.
10017 * docs/gfxmenu-theme-example.txt: New file.
10018 * gfxmenu/gfxmenu.c: Likewise.
10019 * gfxmenu/gui_box.c: Likewise.
10020 * gfxmenu/gui_canvas.c: Likewise.
10021 * gfxmenu/gui_circular_progress.c: Likewise.
10022 * gfxmenu/gui_image.c: Likewise.
10023 * gfxmenu/gui_label.c: Likewise.
10024 * gfxmenu/gui_list.c: Likewise.
10025 * gfxmenu/gui_progress_bar.c: Likewise.
10026 * gfxmenu/gui_string_util.c: Likewise.
10027 * gfxmenu/gui_util.c: Likewise.
10028 * gfxmenu/icon_manager.c: Likewise.
10029 * gfxmenu/model.c: Likewise.
10030 * gfxmenu/named_colors.c: Likewise.
10031 * gfxmenu/theme_loader.c: Likewise.
10032 * gfxmenu/view.c: Likewise.
10033 * gfxmenu/widget-box.c: Likewise.
10034 * include/grub/gfxmenu_model.h: Likewise.
10035 * include/grub/gfxmenu_view.h: Likewise.
10036 * include/grub/gfxwidgets.h: Likewise.
10037 * include/grub/gui.h: Likewise.
10038 * include/grub/gui_string_util.h: Likewise.
10039 * include/grub/icon_manager.h: Likewise.
10040
10041 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
10042
10043 Agglomerate scrolling in gfxterm.
10044
10045 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
10046 (grub_virtual_screen_setup): Initialise 'total_screen'.
10047 (write_char): Split to ...
10048 (paint_char): ... this ...
10049 (write_char): ... and this.
10050 (paint_char): Handle delayed scrolling.
10051 (draw_cursor): Likewise.
10052 (scroll_up): Split to ...
10053 (real_scroll): ... this ...
10054 (scroll_up): ... and this.
10055 (real_scroll): Handle multi-line scroll and draw below-the-bottom
10056 characters.
10057 (grub_gfxterm_refresh): Call real_scroll.
10058
10059 2010-02-06 Colin D Bennett <colin@gibibit.com>
10060
10061 * include/grub/misc.h (grub_iscntrl): New inline function.
10062 (grub_isalnum): Likewise.
10063 (grub_strtol): Likewise.
10064
10065 2010-02-06 Colin D Bennett <colin@gibibit.com>
10066
10067 * normal/menu_text.c (get_entry_number): Move from here ...
10068 * normal/menu.c (get_entry_number): ... moved here.
10069 * include/grub/menu.h (grub_menu_get_default_entry_index):
10070 New prototype.
10071 * normal/menu.c (grub_menu_get_default_entry_index): New function.
10072 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
10073 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
10074 (grub_menu_viewer_should_return): Likewise.
10075 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
10076 * normal/menu_text.c (run_menu): Enable menu switching.
10077 * normal/menu_viewer.c (should_return): New variable.
10078 (menu_viewer_changed): Likewise.
10079 (grub_menu_viewer_show_menu): Handle menu viewer changes.
10080 (grub_menu_viewer_should_return): New function.
10081 (menuviewer_write_hook): Likewise.
10082 (grub_menu_viewer_init): Likewise.
10083
10084 2010-02-06 Colin D Bennet <colin@gibibit.com>
10085 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
10086
10087 Support for gfxterm in a window.
10088
10089 * include/grub/gfxterm.h: New file.
10090 * include/grub/video.h (struct grub_video_rect): New declaration.
10091 (grub_video_rect_t): Likewise.
10092 * term/gfxterm.c (struct grub_gfxterm_window): New type.
10093 (refcount): New variable.
10094 (render_target): Likewise.
10095 (window): Likewise.
10096 (repaint_callback): Likewise.
10097 (grub_virtual_screen_setup): Use 'render_target'.
10098 (init_window): New function.
10099 (grub_gfxterm_init_window): Likewise.
10100 (grub_gfxterm_init): Check reference counter.
10101 Use init_window.
10102 (destroy_window): New function.
10103 (grub_gfxterm_destroy_window): Likewise.
10104 (grub_gfxterm_fini): Check reference counter.
10105 Use destroy_window.
10106 (redraw_screen_rect): Restore viewport.
10107 Use 'render_target' and 'window'.
10108 Call 'repaint_callback'.
10109 (write_char): Use 'render_target'.
10110 (draw_cursor): Likewise.
10111 (scroll_up): Restore viewport.
10112 Use 'render_target' and 'window'.
10113 Call 'repaint_callback'.
10114 (grub_gfxterm_cls): Likewise.
10115 (grub_gfxterm_refresh): Use 'window'.
10116 (grub_gfxterm_set_repaint_callback): New function.
10117 (grub_gfxterm_background_image_cmd): Use 'window'.
10118 (grub_gfxterm_get_term): New function.
10119 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
10120
10121 2010-02-06 Colin D Bennett <colin@gibibit.com>
10122
10123 Bitmap scaling support.
10124
10125 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
10126 (bitmap_scale_mod_SOURCES): New variable.
10127 (bitmap_scale_mod_CFLAGS): Likewise.
10128 (bitmap_scale_mod_LDFLAGS): Likewise.
10129 * include/grub/bitmap_scale.h: New file.
10130 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
10131 (background_image_cmd_options): New variable.
10132 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
10133 (cmd): Rename and change type to ...
10134 (background_image_cmd_handle): ... this. All users updated.
10135 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
10136 * video/bitmap_scale.c: New file.
10137
10138 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
10139
10140 SDL support.
10141
10142 * Makefile.in (LIBSDL): New variable.
10143 (enable_grub_emu_sdl): Likewise.
10144 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
10145 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
10146 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
10147 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
10148 * util/sdl.c: New file.
10149
10150 2010-02-06 Colin D Bennett <colin@gibibit.com>
10151 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
10152
10153 Double buffering support.
10154
10155 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
10156 * include/grub/video.h: Update comment.
10157 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
10158 New type.
10159 (grub_video_fb_doublebuf_blit_init): New prototype.
10160 * term/gfxterm.c (scroll_up): Support double buffering.
10161 (grub_gfxterm_refresh): Likewise.
10162 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
10163 (grub_video_fb_doublebuf_blit_init): Likewise.
10164 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
10165 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
10166 'displayed_page', 'render_page' and 'update_screen'.
10167 (grub_video_vbe_fini): Free offscreen buffer.
10168 (doublebuf_pageflipping_commit): New function.
10169 (doublebuf_pageflipping_update_screen): Likewise.
10170 (doublebuf_pageflipping_init): Likewise.
10171 (double_buffering_init): Likewise.
10172 (grub_video_vbe_setup): Enable doublebuffering.
10173 (grub_video_vbe_swap_buffers): Implement.
10174 (grub_video_vbe_set_active_render_target): Handle double buffering.
10175 (grub_video_vbe_get_active_render_target): Likewise.
10176 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
10177 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
10178 (grub_video_vbe_enable_double_buffering): Likewise.
10179 (grub_video_vbe_swap_buffers): Use update_screen.
10180 (grub_video_set_mode): Use double buffering.
10181
10182 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
10183
10184 * maintainance/gentrigtables.py: Remove.
10185 * lib/trig.c: Likewise.
10186
10187 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
10188
10189 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
10190 `trigtables.c'.
10191 (trigtables.c): New rule.
10192 (gentrigtables): Likewise.
10193 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
10194
10195 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
10196
10197 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
10198 integer constants.
10199
10200 2010-02-06 Colin D Bennet <colin@gibibit.com>
10201
10202 Trigonometry support.
10203
10204 * include/grub/trig.h: New file.
10205 * lib/trig.c: Likewise.
10206 * maintainance/gentrigtables.py: Likewise.
10207 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
10208 (trig_mod_SOURCES): New variable.
10209 (trig_mod_CFLAGS): Likewise.
10210 (trig_mod_LDFLAGS): Likewise.
10211
10212 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
10213
10214 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
10215 disk devices.
10216
10217 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
10218
10219 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
10220 error.
10221
10222 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10223
10224 * util/hostdisk.c (open_device): Don't use partition device when reading
10225 before the partition.
10226 (grub_util_biosdisk_read): Don't read from partition and before the
10227 partition in single operation.
10228 (grub_util_biosdisk_write): Don't write to partition and before the
10229 partition in single operation.
10230
10231 2010-02-03 Torsten Landschoff <torsten@debian.org>
10232
10233 * kern/disk.c (grub_disk_read): Fix offset computation when reading
10234 last sectors.
10235
10236 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10237
10238 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
10239 CDROM reads.
10240 (grub_biosdisk_write): Refuse to write to CDROM.
10241
10242 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10243
10244 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
10245
10246 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10247
10248 * font/font.c (find_glyph): Check that bmp_idx is available before
10249 using it.
10250 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
10251 with (font == NULL).
10252
10253 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
10254
10255 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
10256
10257 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
10258
10259 * include/grub/script_sh.h (sourcecode): Add const qualifier.
10260 * util/grub-script-check.c (getline): Fix empty lines case.
10261
10262 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
10263
10264 * Makefile.in (check): Exit with fail status when one of the tests
10265 fails.
10266 * tests/example_functional_test.c (example_test): Fix reversed assert.
10267 * tests/example_unit_test.c (example_test): Likewise.
10268
10269 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
10270
10271 * util/grub.d/10_linux.in: This script does not use any of the
10272 contents of gettext.sh, only the external command `gettext', so stop
10273 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
10274 the same prefix as GRUB.)
10275 * util/grub.d/10_kfreebsd.in: Likewise.
10276
10277 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
10278
10279 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
10280 of the line.
10281
10282 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
10283
10284 * kern/disk.c (grub_disk_read): Fix offset computation when reading
10285 last sectors.
10286
10287 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
10288
10289 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
10290 having a 4KiB and not 32KiB buffer size.
10291
10292 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
10293
10294 * util/hostfs.c: Include `<errno.h>'.
10295 (grub_hostfs_read): Handle errors from fseeko() and fread().
10296
10297 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
10298
10299 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
10300 loop when using read hooks on files whose size isn't sector-aligned.
10301
10302 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
10303
10304 Remove unused parameter.
10305
10306 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
10307 (grub_iso9660_open): Remove initialization of `data->length'.
10308
10309 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
10310
10311 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
10312 memleak conditions.
10313
10314 2010-01-27 Carles Pina i Estany <carles@pina.cat>
10315
10316 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
10317 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
10318
10319 2010-01-26 Carles Pina i Estany <carles@pina.cat>
10320
10321 * util/bin2h.c (usage): Fix warning (space after backslash).
10322
10323 2010-01-26 Carles Pina i Estany <carles@pina.cat>
10324
10325 * font/font.c: Include `grub/fontformat.h.
10326 Remove font file format constants.
10327 (grub_font_load): Use the new macros.
10328 * include/grub/fontformat.h: New file.
10329 * util/grub-mkfont.c: Include `grub/fontformat.c'.
10330 (write_font_pf2): Use the new macros.
10331
10332 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
10333
10334 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
10335 does.
10336
10337 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
10338
10339 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
10340
10341 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
10342 (_start): Macroify `0x7F'.
10343
10344 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
10345 (make_install_device): Use "(pxe)" as fallback prefix when booting
10346 via PXE.
10347
10348 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
10349
10350 * configure.ac: Reset LIBS after check for libgcc symbols.
10351
10352 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
10353
10354 * util/hostdisk.c (open_device): Add trailing newline to debug
10355 message.
10356
10357 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
10358
10359 * configure.ac: Check for `limits.h'.
10360 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
10361
10362 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
10363
10364 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
10365 capitalize error strings.
10366
10367 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
10368
10369 * util/grub.d/10_hurd.in: Add a recovery mode.
10370
10371 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
10372
10373 * configure.ac: Check for libgcc symbols with -nostdlib.
10374
10375 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
10376
10377 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
10378
10379 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
10380
10381 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
10382 stack since heap may be unavailable at that point.
10383 (grub_ofconsole_gotoxy): Likewise.
10384
10385 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
10386
10387 * configure.ac: Check for _restgpr_14_x.
10388 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
10389 and _savegpr_* prototypes.
10390
10391 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
10392
10393 Use generic grub_reboot() for i386-efi.
10394
10395 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
10396 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
10397 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
10398
10399 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
10400
10401 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
10402 presence of "prefix" variable as it breaks when normal.mod is
10403 embedded.
10404
10405 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
10406
10407 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
10408 stack since heap is unavailable at that point.
10409
10410 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
10411
10412 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
10413 (grub_freebsd_bootinfo): Rewritten.
10414 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
10415
10416 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
10417
10418 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
10419
10420 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
10421
10422 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
10423 domain now.
10424
10425 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
10426
10427 * util/misc.c (make_system_path_relative_to_its_root): Change the work
10428 around for handling "/" to the correct fix. Fix a memory leak. Use
10429 xstrdup instead of strdup.
10430
10431 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10432
10433 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
10434
10435 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10436
10437 Optimise glyph lookup by Basic Multilingual Plane lookup array.
10438
10439 * font/font.c (struct grub_font): New member 'bmp_idx'.
10440 (font_init): Initialise 'bmp_idx'.
10441 (load_font_index): Fill 'bmp_idx'.
10442 (find_glyph): Make inline. Use bmp_idx for BMP characters.
10443
10444 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10445
10446 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
10447 unnecessary calls.
10448
10449 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10450
10451 Move context handling out of the kernel.
10452
10453 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
10454 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
10455 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
10456 * conf/i386-efi.rmk: Likewise.
10457 * conf/i386-ieee1275.rmk: Likewise.
10458 * conf/i386-pc.rmk: Likewise.
10459 * conf/powerpc-ieee1275.rmk: Likewise.
10460 * conf/sparc64-ieee1275.rmk: Likewise.
10461 * conf/x86_64-efi.rmk: Likewise.
10462 * include/grub/env.h: Include grub/menu.h.
10463 (grub_env_var_type): Removed.
10464 (grub_env_var): Replaced field 'type' with 'global'.
10465 (grub_env_find): New prototype.
10466 (grub_env_context_open): Remove EXPORT_FUNC.
10467 (grub_env_context_close): Likewise.
10468 (grub_env_export): Likewise.
10469 (grub_env_set_data_slot): Removed.
10470 (grub_env_get_data_slot): Likewise.
10471 (grub_env_unset_data_slot): Likewise.
10472 (grub_env_unset_menu): New prototype.
10473 (grub_env_set_menu): Likewise.
10474 (grub_env_get_menu): Likewise.
10475 * include/grub/env_private.h: New file.
10476 * include/grub/normal.h (grub_context_init): New prototype.
10477 (grub_context_fini): Likewise.
10478 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
10479 * normal/context.c (grub_cmd_export): ... to here.
10480 * kern/env.c: Include env_private.h.
10481 (HASHSZ): Moved to include/grub/env_private.h.
10482 (grub_env_context): Likewise.
10483 (grub_env_sorted_var): Likewise.
10484 (current_context): Renamed from this ...
10485 (grub_current_context): ...to this. 'static' removed. All users updated.
10486 (grub_env_find): Removed 'static'.
10487 (grub_env_context_open): Moved to normal/context.c.
10488 (grub_env_context_close): Likewise.
10489 (grub_env_export): Likewise.
10490 (mangle_data_slot_name): Removed.
10491 (grub_env_set_data_slot): Likewise.
10492 (grub_env_get_data_slot): Likewise.
10493 (grub_env_unset_data_slot): Likewise.
10494 * kern/main.c (grub_set_root_dev): Don't export root.
10495 It will be done later.
10496 (grub_main): Don't export prefix.
10497 It will be done later.
10498 * normal/context.c: New file.
10499 * normal/main.c (free_menu): Use grub_env_unset_menu.
10500 (grub_normal_add_menu_entry): Use grub_env_get_menu.
10501 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
10502 (GRUB_MOD_INIT(normal)): Call grub_context_init.
10503 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
10504
10505 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10506
10507 setpci support.
10508
10509 * commands/setpci.c: New file.
10510 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
10511 (setpci_mod_SOURCES): New variable.
10512 (setpci_mod_CFLAGS): Likewise.
10513 (setpci_mod_LDFLAGS): Likewise.
10514
10515 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10516
10517 Byte-addressable PCI configuration space.
10518
10519 * bus/pci.c (grub_pci_make_address): Use byte address instead of
10520 dword address.
10521 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
10522 GRUB_PCI_REG_CACHELINE.
10523 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
10524 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
10525 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
10526 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
10527 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
10528 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
10529 grub_pci_make_address.
10530 (lock_rom_area): Likewise.
10531 * commands/lspci.c (grub_lspci_iter): Use macroses
10532 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
10533 of grub_pci_make_address.
10534 * disk/ata.c (grub_ata_pciinit): Likewise.
10535 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
10536 (GRUB_PCI_REG_VENDOR): Likewise.
10537 (GRUB_PCI_REG_DEVICE): Likewise.
10538 (GRUB_PCI_REG_COMMAND): Likewise.
10539 (GRUB_PCI_REG_STATUS): Likewise.
10540 (GRUB_PCI_REG_REVISION): Likewise.
10541 (GRUB_PCI_REG_CLASS): Likewise.
10542 (GRUB_PCI_REG_CACHELINE): Likewise.
10543 (GRUB_PCI_REG_LAT_TIMER): Likewise.
10544 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
10545 (GRUB_PCI_REG_BIST): Likewise.
10546 (GRUB_PCI_REG_ADDRESSES): Likewise.
10547 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
10548 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
10549 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
10550 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
10551 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
10552 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
10553 (GRUB_PCI_REG_CIS_POINTER): Likewise.
10554 (GRUB_PCI_REG_SUBVENDOR): Likewise.
10555 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
10556 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
10557 (GRUB_PCI_REG_CAP_POINTER): Likewise.
10558 (GRUB_PCI_REG_IRQ_LINE): Likewise.
10559 (GRUB_PCI_REG_IRQ_PIN): Likewise.
10560 (GRUB_PCI_REG_MIN_GNT): Likewise.
10561 (GRUB_PCI_REG_MAX_LAT): Likewise.
10562 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
10563 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
10564 * video/efi_uga.c (find_framebuf): Likewise.
10565 * video/sm712.c (grub_video_sm712_setup): Likewise.
10566 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
10567 space.
10568
10569 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
10570
10571 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
10572 can be reliably determined to be supported.
10573
10574 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
10575
10576 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
10577 that VESA is supported.
10578 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
10579 supported.
10580
10581 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10582
10583 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
10584
10585 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
10586
10587 * util/misc.c (make_system_path_relative_to_its_root): Work around
10588 special-casing of "/", as previous incarnation of this routine did.
10589
10590 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10591
10592 Fix any-emu compilation.
10593
10594 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
10595 * grub_bin2h_SOURCES: New variable.
10596
10597 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
10598
10599 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
10600
10601 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
10602
10603 * util/grub.d/00_header.in: Fix handling of locale_dir.
10604
10605 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10606
10607 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
10608 as possible unifont location (Gentoo).
10609 Reported by: Alexander Brüning
10610
10611 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10612
10613 Don't try to generate lists for kernel.img.
10614
10615 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
10616 (pkglib_MODULES): Remove kernel.img.
10617 (kernel_img_EXPORTS): Removed.
10618 (kernel_img_RELOCATABLE): New variable.
10619 * conf/x86_64-efi.rmk: Likewise.
10620 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
10621
10622 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10623
10624 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
10625 grub_xasprintf or grub_snprintf.
10626 (grub_vsprintf): Likewise.
10627 (grub_snprintf): New proto.
10628 (grub_vsnprintf): Likewise.
10629 (grub_xasprintf): Likewise.
10630 (grub_xvasprintf): Likewise.
10631 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
10632 (grub_sprintf): Removed.
10633 (grub_vsnprintf): New function.
10634 (grub_snprintf): Likewise.
10635 (grub_xvasprintf): Likewise.
10636 (grub_xasprintf): Likewise.
10637 (grub_vsprintf): Renamed to ...
10638 (grub_vsnprintf_real): ...this. New argument max_len.
10639
10640 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
10641
10642 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
10643 fix grub-script-check warning.
10644
10645 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10646
10647 * include/grub/font.h (grub_font_load): Fix prototype.
10648
10649 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10650
10651 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
10652
10653 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10654
10655 * include/grub/x86_64/at_keyboard.h: New file.
10656
10657 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10658
10659 * loader/mips/linux.c: Include missing grub/i18n.h.
10660
10661 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
10662
10663 * normal/menu.c (notify_execution_failure): Clarify error message.
10664
10665 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
10666
10667 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
10668 return value (and revert all return statements). Update users.
10669
10670 2010-01-20 Dan Merillat <debian@dan.merillat.org>
10671
10672 * kern/device.c (grub_device_iterate): Allocate new part_ent
10673 structure based on sizeof (*p) rather than sizeof (p->next), to
10674 account for structure padding.
10675
10676 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
10677 disk is NULL, which might happen for LVM physical volumes with no
10678 LVM signature.
10679
10680 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
10681
10682 * loader/mips/linux.c (grub_cmd_initrd)
10683 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
10684
10685 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
10686
10687 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
10688 (grub_video_video_init, grub_video_bitmap_init)
10689 (grub_font_manager_init, grub_term_gfxterm_init)
10690 (grub_at_keyboard_init): New extern declarations.
10691 (grub_machine_init): Initialize gfxterm and at_keyboard.
10692
10693 * kern/main.c (grub_main): Revert grub_printf delay kludge.
10694
10695 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
10696 `gfxterm.mod' into core image.
10697
10698 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
10699 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
10700 (kernel_img_FORMAT): Copy to ...
10701
10702 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
10703 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
10704 (kernel_img_FORMAT): ... here, and ...
10705
10706 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
10707 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
10708 (kernel_img_FORMAT): ... here.
10709
10710 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
10711 and input (at_keyboard) terminals in kernel.
10712 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
10713
10714 (pkglib_MODULES): Remove `pci.mod'.
10715 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
10716 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
10717 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
10718 (at_keyboard_mod_LDFLAGS): Remove variables.
10719
10720 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
10721
10722 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
10723
10724 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
10725
10726 * include/grub/mips/libgcc.h: Only export symbols for functions
10727 that libgcc provides.
10728
10729 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
10730
10731 MIPS support.
10732
10733 * bus/bonito.c: New file.
10734 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
10735 GRUB_PCI_NUM_DEVICES.
10736 * term/i386/pc/serial.c: Move to ...
10737 * term/serial.c: ... here. All users updated.
10738 * util/i386/pc/grub-mkimage.c: Move to ...
10739 * util/grub-mkrawimage.c: ... here. All users updated.
10740 * term/i386/pc/at_keyboard.c: Move to ...
10741 * term/at_keyboard.c: ... here. All users updated.
10742 * conf/mips-qemu-mips.rmk: New file.
10743 * conf/mips-yeeloong.rmk: Likewise.
10744 * conf/mips.rmk: Likewise.
10745 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
10746 mipsel-qemu-mips.
10747 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
10748 to port addresses.
10749 (grub_ata_pciinit): Support CS5536.
10750 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
10751 * font/font_cmd.c (loadfont_command): Open file before passing it to
10752 grub_font_load.
10753 (pseudo_file_read): New function.
10754 (pseudo_file_close): Likewise.
10755 (pseudo_fs): New structure.
10756 (load_font_module): New function.
10757 (GRUB_MOD_INIT(font_manager)): Load embedded font.
10758 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
10759 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
10760 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
10761 * include/grub/i386/at_keyboard.h: Split into ...
10762 * include/grub/at_keyboard.h: ... this ...
10763 * include/grub/i386/at_keyboard.h: ... and this.
10764 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
10765 New prototype.
10766 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
10767 updated.
10768 (grub_elf64_size): Likewise.
10769 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
10770 filename.
10771 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
10772 * include/grub/i386/coreboot/serial.h: Rewritten.
10773 * include/grub/i386/ieee1275/serial.h: Include
10774 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
10775 * include/grub/i386/pc/serial.h: Moved from here ...
10776 * include/grub/serial.h: ... to here. All users updated.
10777 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
10778 (GRUB_PCI_NUM_BUS): Likewise.
10779 (GRUB_PCI_NUM_DEVICES): Likewise.
10780 (grub_pci_device_map_range): Add missing volatile keyword.
10781 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
10782 * include/grub/mips/at_keyboard.h: New file.
10783 * include/grub/mips/cache.h: Likewise.
10784 * include/grub/mips/io.h: Likewise.
10785 * include/grub/mips/kernel.h: Likewise.
10786 * include/grub/mips/libgcc.h: Likewise.
10787 * include/grub/mips/pci.h: Likewise.
10788 * include/grub/mips/qemu-mips/boot.h: Likewise.
10789 * include/grub/mips/qemu-mips/kernel.h: Likewise.
10790 * include/grub/mips/qemu-mips/loader.h: Likewise.
10791 * include/grub/mips/qemu-mips/memory.h: Likewise.
10792 * include/grub/mips/qemu-mips/serial.h: Likewise.
10793 * include/grub/mips/qemu-mips/time.h: Likewise.
10794 * include/grub/mips/relocator.h: Likewise.
10795 * include/grub/mips/time.h: Likewise.
10796 * include/grub/mips/types.h: Likewise.
10797 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
10798 * include/grub/mips/yeeloong/boot.h: Likewise.
10799 * include/grub/mips/yeeloong/kernel.h: Likewise.
10800 * include/grub/mips/yeeloong/loader.h: Likewise.
10801 * include/grub/mips/yeeloong/memory.h: Likewise.
10802 * include/grub/mips/yeeloong/pci.h: Likewise.
10803 * include/grub/mips/yeeloong/serial.h: Likewise.
10804 * include/grub/mips/yeeloong/time.h: Likewise.
10805 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
10806 * kern/elf.c (grub_elf32_size): New parameter. All users
10807 updated.
10808 (grub_elf64_size): Likewise.
10809 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
10810 Load modules before saying "Welcome to GRUB!".
10811 Call grub_refresh after saying "Welcome to GRUB!".
10812 * kern/mips/cache.S: New file.
10813 * kern/mips/cache_flush.S: Likewise.
10814 * kern/mips/dl.c: Likewise.
10815 * kern/mips/init.c: Likewise.
10816 * kern/mips/qemu-mips/init.c: Likewise.
10817 * kern/mips/startup.S: Likewise.
10818 * kern/mips/yeeloong/init.c: Likewise.
10819 * kern/term.c (grub_putcode): Handle NULL terminal.
10820 (grub_getcharwidth): Likewise.
10821 (grub_getkey): Likewise.
10822 (grub_checkkey): Likewise.
10823 (grub_getkeystatus): Likewise.
10824 (grub_getxy): Likewise.
10825 (grub_getwh): Likewise.
10826 (grub_gotoxy): Likewise.
10827 (grub_cls): Likewise.
10828 (grub_setcolorstate): Likewise.
10829 (grub_setcolor): Likewise.
10830 (grub_getcolor): Likewise.
10831 (grub_refresh): Likewise.
10832 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
10833 (write_jump): Add hatch nop.
10834 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
10835 * lib/mips/setjmp.S: New file.
10836 * loader/mips/linux.c: Likewise.
10837 * term/i386/pc/at_keyboard.c: Move from here ...
10838 * term/at_keyboard.c: ... to here.
10839 * term/i386/pc/serial.c: Moved from here ...
10840 * term/serial.c: ... to here. All users updated.
10841 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
10842 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
10843 (serial_translate_key_sequence): Avoid deadlock.
10844 (grub_serial_getkey): Handle backspace.
10845 (grub_serial_putchar): Fix newline handling.
10846 * util/i386/pc/grub-mkimage.c: Move from here ...
10847 * util/grub-mkrawimage.c: ... to here. All users updated.
10848 (generate_image): New parameters 'font_path' and 'format'.
10849 Support embedding font.
10850 Use grub_host_to_target* instead of grub_cpu_to_le*.
10851 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
10852 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
10853 (options): New option "--font".
10854 (usage): Likewise.
10855 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
10856 (main): Handle "--font".
10857 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
10858 (grub_virtual_screen_setup): Set bg_color_display.
10859 (redraw_screen_rect): Use bg_color_display instead of incorrect
10860 bg_color.
10861 (grub_gfxterm_cls): Likewise.
10862 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
10863 Support embedding config file.
10864 (add_segments): Likewise.
10865 (options): New option "--config".
10866 (main): Handle "--config".
10867 * video/sm712.c: New file.
10868
10869 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10870
10871 Fix parallel builds.
10872
10873 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
10874 font.c depend on ascii.h).
10875
10876 2010-01-12 Carles Pina i Estany <carles@pina.cat>
10877
10878 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
10879
10880 2010-01-11 Carles Pina i Estany <carles@pina.cat>
10881
10882 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
10883 By default: disabled.
10884 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
10885 parameter.
10886
10887 2010-01-10 Carles Pina i Estany <carles@pina.cat>
10888
10889 * font/font.c: Update copyright years.
10890 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
10891
10892 2010-01-10 Carles Pina i Estany <carles@pina.cat>
10893
10894 * font/font.c: Include `ascii.h'.
10895 (ASCII_BITMAP_SIZE): New macro.
10896 (ascii_font_glyph): Define.
10897 (ascii_glyph_lookup): New function.
10898 (grub_font_get_string_width): Change comment. If glyph not found, use
10899 ascii_glyph_lookup.
10900 (grub_font_get_glyph_with_fallback): If glyph not available returns
10901 ascii_glyph_lookup.
10902 * util/grub-mkfont.c (file_formats): New enum.
10903 (options): Add `ascii-bitmaps' new option.
10904 (usage): Add `asii-bitmaps' new option.
10905 (write_font_ascii_bitmap): New function.
10906 (write_font): Rename to ...
10907 (write_font_p2): ... this. Remove print_glyphs call.
10908 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
10909 used. Call print_glyphs.
10910 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
10911
10912 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
10913
10914 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
10915 (grub_bin2h_SOURCES): New variable.
10916 * util/bin2h.c: New file.
10917
10918 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10919
10920 * include/multiboot.h: Resynced with spec.
10921 * include/multiboot2.h: Likewise.
10922 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
10923 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
10924
10925 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10926
10927 * include/grub/term.h (grub_term_register_input,
10928 grub_term_register_output): Check return of terminal init()
10929 routines, and abort if errors are raised.
10930
10931 * commands/terminal.c: Update copyright year.
10932
10933 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10934
10935 * commands/terminal.c (grub_cmd_terminal_input)
10936 (grub_cmd_terminal_output): Check return of terminal init()
10937 routines, and abort if errors are raised.
10938
10939 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10940
10941 * include/grub/i386/bsd.h: Fix include pathes.
10942
10943 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10944
10945 Add missing *BSD copyright headers.
10946
10947 * include/grub/aout.h: Add BSD licence.
10948 * include/grub/i386/bsd.h: Parts under different licences moved to ...
10949 * include/grub/i386/freebsd_linker.h: ... here,
10950 * include/grub/i386/freebsd_reboot.h: ... here,
10951 * include/grub/i386/netbsd_bootinfo.h: ... here,
10952 * include/grub/i386/netbsd_reboot.h: ... here,
10953 * include/grub/i386/openbsd_bootarg.h: ... here,
10954 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
10955 licence to each file.
10956
10957 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10958
10959 * acinclude.m4: Remove `nop' assembly instruction; it's not
10960 implemented by all architectures.
10961
10962 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10963
10964 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
10965 ELILO. This is no longer necessary.
10966
10967 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
10968
10969 Added new tool, grub-scrit-check to verify grub.cfg syntax.
10970
10971 * util/grub-script-check.c: grub-script-check tool.
10972 * conf/common.rmk: Make rules for grub-script-check.
10973
10974 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10975
10976 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
10977 spotting it back in 2008. Shame on me for forgetting he did.
10978
10979 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
10980
10981 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10982
10983 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
10984 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
10985 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
10986 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
10987 (GRUB_VIDEO_TYPE_EFI): Rename to ...
10988 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
10989
10990 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
10991
10992 * include/grub/test.h: Add license header.
10993 * tests/example_functional_test.c: Likewise.
10994 * tests/example_unit_test.c: Likewise.
10995 * tests/lib/functional_test.c: Likewise.
10996 * tests/lib/test.c: Likewise.
10997 * tests/lib/unit_test.c: Likewise.
10998
10999 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
11000
11001 Use flag-based instead of hook-based video mode selection and "auto"
11002 keyword.
11003
11004 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
11005 (grub_video_set_mode): Changed prototype. All users updated.
11006 (grub_video_check_mode_flag): New inline function.
11007 * video/video.c (parse_modespec): New function.
11008 (grub_video_set_mode): Parse flags and keywords.
11009
11010 2010-01-17 Carles Pina i Estany <carles@pina.cat>
11011
11012 * util/misc.c (grub_util_info): Fix the order of the parameters in a
11013 fprintf call.
11014
11015 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
11016
11017 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
11018
11019 2010-01-16 Carles Pina i Estany <carles@pina.cat>
11020
11021 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
11022 string.
11023 * util/grub-emu.c (usage): Likewise.
11024 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
11025 * util/i386/efi/grub-mkimage.c (usage): Likewise.
11026 * util/i386/pc/grub-mkimage.c (usage): Likewise.
11027 * util/i386/pc/grub-setup.c (usage): Likewise.
11028
11029 2010-01-16 Carles Pina i Estany <carles@pina.cat>
11030
11031 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
11032 the message.
11033 (grub_util_info): Likewise.
11034 (grub_util_error): Likewise.
11035 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
11036 and/or new lines in `grub_util_warna', `grub_util_info',
11037 `grub_util_error' calls.
11038 * util/getroot.c: Likewise.
11039 * util/grub-editenv.c: Likewise.
11040 * util/grub-emu.c: Likewise.
11041 * util/grub-fstest.c: Likewise.
11042 * util/grub-mkdevicemap.c: Likewise.
11043 * util/grub-mkfont.c: Likewise.
11044 * util/grub-mkpasswd-pbkdf2.c: Likewise.
11045 * util/grub-mkrelpath.c: Likewise.
11046 * util/grub-pe2elf.c: Likewise.
11047 * util/grub-probe.c: Likewise.
11048 * util/hostdisk.c: Likewise.
11049 * util/i386/efi/grub-mkimage.c: Likewise.
11050 * util/i386/pc/grub-mkimage.c: Likewise.
11051 * util/i386/pc/grub-setup.c: Likewise.
11052 * util/ieee1275/ofpath.c: Likewise.
11053 * util/mkisofs/eltorito.c: Likewise.
11054 * util/mkisofs/rock.c: Likewise.
11055 * util/mkisofs/write.c: Likewise.
11056 * util/raid.c: Likewise.
11057 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
11058 * util/sparc64/ieee1275/grub-setup.c: Likewise.
11059
11060 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
11061
11062 Enable multiboot on non-pc.
11063
11064 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
11065 multiboot.mod and multiboot2.mod to ...
11066 * conf/i386.rmk (pkglib_MODULES): ... here.
11067 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
11068 Moved to ...
11069 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
11070 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
11071 Moved to ...
11072 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
11073 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
11074 Moved to ...
11075 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
11076 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
11077 Moved to ...
11078 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
11079 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
11080 relocator.mod.
11081 (ata_mod_SOURCES): Removed.
11082 (ata_mod_CFLAGS): Likewise.
11083 (ata_mod_LDFLAGS): Likewise.
11084 (relocator_mod_SOURCES): Removed.
11085 (relocator_mod_CFLAGS): Likewise.
11086 (relocator_mod_ASFLAGS): Likewise.
11087 (relocator_mod_LDFLAGS): Likewise.
11088 Include i386.mk.
11089 * include/grub/x86_64/multiboot.h: New file.
11090 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
11091 Terminate EFI.
11092
11093 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
11094
11095 Video multiboot support.
11096
11097 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
11098 New prototype.
11099 * include/multiboot.h: Resynced with multiboot specification.
11100 * include/multiboot2.h: Likewise.
11101 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
11102 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
11103 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
11104 (HAS_VGA_TEXT): Likewise.
11105 (accepts_video): New variable.
11106 (grub_multiboot_set_accepts_video): New function.
11107 (grub_multiboot_get_mbi_size): Account for video structures.
11108 (set_video_mode): New function.
11109 (retrieve_video_parameters): Likewise.
11110 (grub_multiboot_make_mbi): Fill video fields.
11111
11112 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
11113
11114 Video driver ids.
11115
11116 * include/grub/video.h (grub_video_driver_id): New type.
11117 (grub_video_adapter): New member 'id'. All users updated.
11118 (grub_video_get_driver_id): New proto.
11119 * video/video.c (grub_video_get_driver_id): New function.
11120
11121 2010-01-14 Carles Pina i Estany <carles@pina.cat>
11122
11123 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
11124 `var=val'.
11125
11126 2010-01-14 Carles Pina i Estany <carles@pina.cat>
11127
11128 * normal/cmdline.c (print_completion): Gettextizze.
11129
11130 2001-01-14 Carles Pina i Estany <carles@pina.cat>
11131
11132 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
11133
11134 2010-01-14 Carles Pina i Estany <carles@pina.cat>
11135
11136 * gettext/gettext.c (grub_gettext_translate): Push and pop
11137 grub_errno.
11138 (grub_gettext_delete_list): Change comment style.
11139 * kern/err.c (grub_error): Gettextizze.
11140 (grub_fatal): Gettextizze.
11141
11142 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
11143
11144 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
11145 (grub_linux16_real_boot): ... this.
11146 * kern/i386/loader.S: Likewise.
11147 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
11148 (grub_linux16_boot): New function. Switches to text mode and calls
11149 grub_linux16_real_boot().
11150
11151 * loader/i386/bsd.c: Include `<grub/video.h>'.
11152 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
11153 text mode before calling grub_unix_real_boot().
11154
11155 * loader/i386/multiboot.c: Include `<grub/video.h>'.
11156 (grub_multiboot_boot): Switch to text mode before calling
11157 grub_relocator32_boot().
11158
11159 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
11160 (grub_chainloader_boot): Switch to text mode before calling
11161 grub_chainloader_real_boot().
11162
11163 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
11164 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
11165
11166 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
11167 non-empty value.
11168
11169 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
11170 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
11171
11172 * util/grub.d/00_header.in: Define a "savedefault" function for use
11173 in menu entries.
11174 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
11175
11176 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
11177 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
11178
11179 * util/grub-mkconfig_lib.in (save_default_entry): Only set
11180 saved_entry if boot_once is unset.
11181 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
11182 previous saved entry (i.e. grub-reboot).
11183
11184 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
11185
11186 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
11187
11188 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
11189
11190 * util/grub.d/00_header.in: Use `set var=val' rather than plain
11191 `var=val'.
11192 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
11193
11194 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
11195
11196 * util/grub-reboot.in: Fix --version output.
11197 * util/grub-set-default.in: Likewise.
11198
11199 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
11200
11201 * util/grub.d/00_header.in: Silently ignore zero-sized environment
11202 blocks.
11203
11204 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
11205
11206 * util/grub.d/00_header.in: Quote the value assigned to `default',
11207 in case it contains spaces.
11208
11209 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
11210
11211 * util/grub.d/30_os-prober.in: Fix merge error that moved a
11212 `save_default_entry' call from the macosx case to the linux case.
11213
11214 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11215 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
11216
11217 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
11218 in `chosen' environment variable.
11219 * normal/menu_text.c (get_entry_number): Check if the variable
11220 matches the title of a menu entry.
11221 (run_menu): Pass menu to get_entry_number.
11222
11223 * util/grub-reboot.in: New file.
11224 * util/grub-set-default.in: New file.
11225 * conf/common.rmk (grub-reboot): New utility.
11226 (grub-set-default): New utility.
11227
11228 * util/grub-mkconfig_lib.in (save_default_entry): New function.
11229 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
11230 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
11231 move it to `saved_entry' for the next boot. Load environment on
11232 initialisation.
11233 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
11234 * util/grub.d/10_hurd.in: Likewise.
11235 * util/grub.d/10_linux.in (linux_entry): Likewise.
11236 * util/grub.d/10_windows.in: Likewise.
11237 * util/grub.d/30_os-prober.in: Likewise.
11238
11239 * util/grub-install.in: Create environment block.
11240 * util/i386/efi/grub-install.in: Likewise.
11241 * util/ieee1275/grub-install.in: Likewise.
11242 * util/sparc64/ieee1275/grub-install.in: Likewise.
11243
11244 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
11245
11246 Unit testing framework for GRUB.
11247
11248 * Makefile.in: Test framework build rules for 'make check'.
11249 * conf/tests.rmk: Build rules for individual tests and framework.
11250
11251 * include/grub/test.h: Header file for whitebox tests.
11252 * tests/lib/functional_test.c: Framework support for whitebox
11253 functional tests.
11254 * tests/lib/test.c: Common whitebox testing code for unit and
11255 functional tests.
11256 * tests/lib/unit_test.c: Framework support for whitebox unit
11257 tests.
11258
11259 * tests/util/grub-shell-tester.in: Support utility for grub-script
11260 tests.
11261 * tests/util/grub-shell.in: Utility to execute grub-script
11262 commands in a Qemu instance.
11263
11264 * tests/example_functional_test.c: Example whitebox functional
11265 test.
11266 * tests/example_grub_script_test.in: Example grub-script test.
11267 * tests/example_scripted_test.in: Example scripted test.
11268 * tests/example_unit_test.c: Example whitebox unit test.
11269
11270 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11271
11272 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
11273 Add loader/i386/multiboot_mbi.c.
11274 (multiboot2_mod_SOURCES): Likewise.
11275 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
11276 (multiboot2_mod_SOURCES): Likewise.
11277 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
11278 (grub_multiboot_make_mbi): Likewise.
11279 (grub_multiboot_free_mbi): Likewise.
11280 (grub_multiboot_init_mbi): Likewise.
11281 (grub_multiboot_add_module): Likewise.
11282 (grub_multiboot_set_bootdev): Likewise.
11283 * loader/i386/multiboot.c (mbi): Removed.
11284 (mbi_dest): Likewise.
11285 (alloc_mbi): New variable.
11286 (grub_multiboot_payload_size): Removed. All users updated.
11287 (grub_multiboot_pure_size): New variable.
11288 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
11289 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
11290 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
11291 (grub_fill_multiboot_mmap): Likewise.
11292 (grub_multiboot_get_bootdev): Likewise.
11293 (grub_multiboot): Use multiboot_mbi functions.
11294 * loader/i386/multiboot_mbi.c: New file.
11295
11296 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11297
11298 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
11299 it would result in module crash.
11300
11301 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11302
11303 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
11304 (grub_ofconsole_getwh): Split to ...
11305 (grub_ofconsole_getwh): ... this.
11306 (grub_ofconsole_dimensions): ...and this.
11307 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
11308
11309 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
11310
11311 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
11312
11313 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11314
11315 * loader/i386/pc/multiboot2.c: Removed stalled file.
11316
11317 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11318
11319 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
11320 Reported by: Grégoire Sutre
11321
11322 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
11323
11324 * util/misc.c (canonicalize_file_name): New function.
11325 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
11326 instead of realpath().
11327
11328 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
11329
11330 * util/grub-install.in (usage): Clarify meaning of --root-directory,
11331 and make it clearer that it's optional. Based on confusion
11332 witnessed on IRC.
11333
11334 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
11335
11336 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
11337 in premature implicit newline.
11338
11339 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
11340
11341 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
11342 which resulted in garbled command line at the end of screen.
11343
11344 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
11345
11346 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
11347 initialization with similar approach as with other Linux loaders.
11348
11349 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
11350
11351 Fix i386-ieee1275 build.
11352
11353 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
11354 and grub_term_height() for video_{width,height} initialization.
11355
11356 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
11357
11358 Fix grub-emu build.
11359
11360 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
11361
11362 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
11363 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
11364
11365 Support for multiple terminals.
11366
11367 * Makefile.in (pkglib_DATA): terminal.lst.
11368 (terminal.lst): New target.
11369 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
11370 (GRUB_MOD_INIT(handler)): Likewise.
11371 (GRUB_MOD_FINI(handler)): Likewise.
11372 * commands/help.c (grub_cmd_help): Handle multiple terminals.
11373 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
11374 * commands/sleep.c (do_print): Use grub_term_restore_pos.
11375 (grub_cmd_sleep): Use grub_term_save_pos.
11376 * commands/terminal.c: New file.
11377 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
11378 commands/terminal.c and lib/charset.c.
11379 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
11380 (pkglib_MODULES): Add terminal.mod.
11381 (terminal_mod_SOURCES): New variable.
11382 (terminal_mod_CFLAGS): Likewise.
11383 (terminal_mod_LDFLAGS): Likewise.
11384 * genhandlerlist.sh: Don't handle terminals.
11385 * genmk.rb: Generate terminal-*.lst.
11386 * genterminallist.sh: New file.
11387 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
11388 (grub_is_valid_utf8): Likewise.
11389 (grub_utf8_to_ucs4_alloc): Likewise.
11390 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
11391 (grub_menu_register_viewer): Changed argument.
11392 (grub_menu_try_text): New proto.
11393 (grub_gfxmenu_try_hook): New declaration.
11394 * include/grub/normal.h (grub_normal_exit_level): New declaration.
11395 (grub_menu_init_page): Additional argument term.
11396 (grub_normal_init_page): Likewise.
11397 (grub_cmdline_get): Arguments simplified.
11398 (grub_utf8_to_ucs4_alloc): Removed.
11399 (grub_print_ucs4): Additional argument term.
11400 (grub_getstringwidth): Likewise.
11401 (grub_print_message_indented): Likewise.
11402 (grub_menu_text_register_instances): New proto.
11403 (grub_show_menu): Likewise.
11404 (read_terminal_list): Likewise.
11405 (grub_set_more): Likewise.
11406 * include/grub/parser.h: Include handler.h.
11407 * include/grub/reader.h: Rewritten.
11408 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
11409 (GRUB_TERM_WIDTH): Changed to function.
11410 (GRUB_TERM_HEIGHT): Likewise.
11411 (GRUB_TERM_BORDER_WIDTH): Likewise.
11412 (GRUB_TERM_BORDER_HEIGHT): Likewise.
11413 (GRUB_TERM_NUM_ENTRIES): Likewise.
11414 (GRUB_TERM_ENTRY_WIDTH): Likewise.
11415 (GRUB_TERM_CURSOR_X): Likewise.
11416 (grub_term_input_class): Likewise.
11417 (grub_term_output_class): Likewise.
11418 (grub_term_outputs_disabled): New declaration.
11419 (grub_term_inputs_disabled): Likewise.
11420 (grub_term_outputs): Likewise.
11421 (grub_term_inputs): Likewise.
11422 (grub_term_register_input): Rewritten.
11423 (grub_term_register_output): Likewise.
11424 (grub_term_unregister_input): Likewise.
11425 (grub_term_unregister_output): Likewise.
11426 (FOR_ACTIVE_TERM_INPUTS): New macro.
11427 (FOR_DISABLED_TERM_INPUTS): Likewise.
11428 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
11429 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
11430 * include/grub/terminfo.h: Add oterm argument to all protypes.
11431 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
11432 Use grub_rescue_run.
11433 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
11434 All users updated.
11435 * kern/reader.c: Removed. All users updated.
11436 * kern/rescue_reader.c (grub_rescue_init): Removed.
11437 (grub_rescue_reader): Likewise.
11438 (grub_register_rescue_reader): Likewise.
11439 (grub_rescue_run): New function based on kern/reader.c.
11440 * kern/term.c: Adapted for multiterm.
11441 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
11442 (grub_is_valid_utf8): Likewise.
11443 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
11444 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
11445 right terminal.
11446 * loader/i386/linux.c (grub_linux_boot): Likewise.
11447 * normal/auth.c (grub_username_get): New function.
11448 (grub_auth_check_authentication): Use grub_username_get.
11449 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
11450 * normal/color.c: Adapt for multiterm.
11451 * normal/main.c (read_config_file): Don't use grub_reader_loop.
11452 (grub_normal_init_page): Additional argument term.
11453 (read_lists): Call read_terminal_lists.
11454 (grub_enter_normal_mode): Call grub_cmdline_run.
11455 Handle grub_normal_exit_level.
11456 (grub_cmd_normal): Make reentrant.
11457 (grub_cmd_normal_exit): New function.
11458 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
11459 * normal/menu.c: Adapt for multiterm.
11460 * normal/menu_entry.c: Likewise.
11461 * normal/menu_text.c: Likewise.
11462 * normal/menu_viewer.c: Removed. All users updated.
11463 * normal/term.c: New file.
11464 * util/console.c: Change order of includes to workaround a bug in
11465 ncurses headers.
11466 * term/terminfo.c: New argument oterm on all exported functions.
11467 All users updated.
11468 * util/grub-editenv.c (grub_term_input_class): Removed.
11469 (grub_term_output_class): Likewise.
11470
11471 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
11472
11473 Make loader output a bit more user-friendly.
11474
11475 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
11476 is being loaded. Likewise for the Hurd.
11477
11478 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
11479 that kernel of FreeBSD ${version} is being loaded.
11480
11481 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
11482 grub_dprintf().
11483 (grub_cmd_initrd): Likewise.
11484 * util/grub.d/10_linux.in (linux_entry): Print message indicating
11485 that Linux ${version} is being loaded. Likewise for initrd.
11486
11487 2010-01-09 Carles Pina i Estany <carles@pina.cat>
11488
11489 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
11490
11491 2010-01-08 Carles Pina i Estany <carles@pina.cat>
11492
11493 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
11494 (GRUB_MOD_INIT): Gettextizze.
11495 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
11496 (GRUB_MOD_INIT): Gettextizze.
11497 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
11498 (grub_cmd_linux): Capitalise Linux.
11499 (GRUB_MOD_INIT): Gettextizze.
11500 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
11501 (grub_cmd_linux): Capitalise Linux.
11502 (GRUB_MOD_INIT): Gettextizze.
11503 * loader/i386/linux.c: Include `<grub/i18n.h>'.
11504 (grub_cmd_linux): Capitalise Linux.
11505 (GRUB_MOD_INIT): Gettextizze.
11506 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
11507 (GRUB_MOD_INIT): Gettextizze.
11508 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
11509 (grub_cmd_linux): Capitalise Linux.
11510 (GRUB_MOD_INIT): Gettextizze.
11511 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
11512 (grub_cpu_xnu_init): Gettextizze.
11513 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
11514 (GRUB_MOD_INIT): Gettextizze.
11515 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
11516 (GRUB_MOD_INIT): Gettextizze.
11517 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
11518 (grub_linux_load64): Capitalise Linux.
11519 (GRUB_MOD_INIT): Gettextizze.
11520 * loader/xnu.c: Include `<grub/i18n.h>'.
11521 (GRUB_MOD_INIT): Gettextizze.
11522 * po/POTFILES: Add `loader/efi/appleloader.c',
11523 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
11524 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
11525 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
11526 `loader/i386/xnu.c', `loader/multiboot_loader.c',
11527 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
11528 and `loader/xnu.c'.
11529
11530 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
11531
11532 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
11533
11534 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
11535
11536 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
11537 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
11538 * util/mkisofs/mkisofs.c (main): Readjust --version output.
11539
11540 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
11541
11542 Reset Multiboot 2 support. New loader implements the draft in
11543 /branches/multiboot2 and shares as much code as possible with the
11544 production Multiboot 1 implementation.
11545
11546 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
11547 * loader/multiboot2.c: Likewise.
11548 * loader/i386/multiboot_helper.S: Likewise.
11549 * include/multiboot2.h: Replace with latest version from the draft
11550 in /branches/multiboot2.
11551
11552 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
11553 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
11554 and `loader/multiboot2.c'.
11555 (pkglib_MODULES): Add `multiboot2.mod'.
11556 (multiboot2_mod_SOURCES): New variable.
11557 (multiboot2_mod_LDFLAGS): Likewise.
11558 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
11559
11560 * conf/i386-pc.rmk: Likewise.
11561
11562 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
11563 (multiboot_mod_SOURCES): Remove variable.
11564 (multiboot_mod_LDFLAGS): Likewise.
11565 (multiboot_mod_CFLAGS): Likewise.
11566
11567 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
11568 `<multiboot2.h>' instead of `<multiboot.h>'.
11569 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
11570 (MULTIBOOT_HEADER_MAGIC): New macros.
11571
11572 * loader/multiboot_loader.c (module_version_status): Remove variable.
11573 (find_multi_boot2_header): Remove function.
11574 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
11575 logic. Always check for the Multiboot version we're compiling for.
11576 (grub_cmd_module_loader): Likewise.
11577 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
11578 command instead of `multiboot'.
11579
11580 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
11581
11582 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
11583 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
11584 all users.
11585
11586 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
11587 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
11588
11589 Fix breakage introduced with previous commit.
11590
11591 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
11592 commands.
11593 * normal/handler.c (read_handler_list): Revert part of previous commit
11594 affecting this file.
11595 * normal/main.c (read_lists): Move read_handler_list() call back to ...
11596 (grub_normal_execute): ... here.
11597
11598 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
11599
11600 Merge prefix-redefinition-fix branch.
11601
11602 * normal/autofs.c (read_fs_list): Make function capable of being
11603 run multiple times, gracefuly replacing the previous data
11604 structures.
11605 * normal/dyncmd.c (read_command_list): Likewise.
11606 * normal/handler.c (read_handler_list): Likewise.
11607 * normal/main.c (read_lists): New function. Calls all the
11608 list reading functions.
11609 (grub_normal_execute): Use read_lists() instead of calling all
11610 list reading functions explicitly. Register read_lists() as a
11611 variable hook attached to ${prefix}.
11612
11613 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
11614
11615 Merge crypto branch.
11616
11617 * Makefile.in (pkglib_DATA): Add crypto.lst.
11618 (crypto.lst): New target.
11619 * commands/hashsum.c: New file.
11620 * commands/password.c (check_password): Use grub_crypto_memcmp.
11621 * commands/password_pbkdf2.c: New file.
11622 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
11623 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
11624 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
11625 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
11626 -I$(srcdir)/lib/libgcrypt_wrap.
11627 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
11628 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
11629 password_pbkdf2.mod.
11630 (crypto_mod_SOURCES): New variable.
11631 (crypto_mod_CFLAGS): Likewise.
11632 (crypto_mod_LDFLAGS): Likewise.
11633 (hashsum_mod_SOURCES): New variable.
11634 (hashsum_mod_CFLAGS): Likewise.
11635 (hashsum_mod_LDFLAGS): Likewise.
11636 (pbkdf2_mod_SOURCES): New variable.
11637 (pbkdf2_mod_CFLAGS): Likewise.
11638 (pbkdf2_mod_LDFLAGS): Likewise.
11639 (password_pbkdf2_mod_SOURCES): New variable.
11640 (password_pbkdf2_mod_CFLAGS): Likewise.
11641 (password_pbkdf2_mod_LDFLAGS): Likewise.
11642 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
11643 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
11644 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
11645 Include conf/gcry.rmk.
11646 * include/grub/auth.h: Rewritten.
11647 * include/grub/crypto.h: New file.
11648 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
11649 * include/grub/normal.h (read_crypto_list): New prototype.
11650 * lib/crypto.c: New file.
11651 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
11652 * lib/pbkdf2.c: Likewise.
11653 * normal/auth.c (grub_auth_strcmp): Removed.
11654 (grub_iswordseparator): Likewise.
11655 (grub_auth_strword): Likewise.
11656 (is_authenticated): Use grub_strword.
11657 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
11658 and grub_strword. Pass entered password to authentication callback.
11659 * normal/crypto.c: New file.
11660 * normal/main.c: Call read_crypto_list.
11661 * util/grub-mkpasswd-pbkdf2.c: New file.
11662 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
11663
11664 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
11665
11666 Fix descent and ascent calculation.
11667
11668 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
11669 (options): New option "asce".
11670 (usage): Likewise.
11671 (add_char): Ignore invalid glyphs for descent calculation.
11672 Calculate ascent from actual content.
11673 (print_glyphs): Use 'asce'.
11674 (write_font): Likewise. Allow ascent override.
11675 (main): Handle "asce" option.
11676
11677 2010-01-06 Carles Pina i Estany <carles@pina.cat>
11678
11679 * kern/err.c: Include `<grub/i18n.h>'.
11680 (grub_print_error): Add full stop. Gettextizze.
11681 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
11682 (grub_bsd_load_elf): Capitalise ELF.
11683 (grub_cmd_freebsd_loadenv): Add `s' in error string.
11684 (grub_cmd_freebsd_module): Likewise.
11685 (grub_cmd_freebsd_module_elf): Likewise.
11686 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
11687
11688 2010-01-06 Carles Pina i Estany <carles@pina.cat>
11689
11690 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
11691 * commands/search_file.c (HELP_MESSAGE): New macro.
11692 * commands/search_label.c (HELP_MESSAGE): Likewise.
11693 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
11694 * po/POTFILES: Add `commands/search_file.c',
11695 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
11696 `commands/search.c'.
11697
11698 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
11699
11700 * config.rpath: Update from Gnulib.
11701
11702 2010-01-05 Yves Blusseau <blusseau@zetam.org>
11703
11704 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
11705
11706 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
11707
11708 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
11709
11710 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
11711
11712 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
11713 arguments to fread so that we get a return value in bytes, rather
11714 than something that will normally be rounded down to 0.
11715 Adjust error handling to avoid producing garbage when size_t is not
11716 the same size as long long.
11717
11718 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
11719
11720 * util/mkisofs/write.c (padblock_write): Check return value of
11721 fread.
11722
11723 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
11724
11725 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
11726 floppy images now.
11727
11728 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
11729
11730 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
11731
11732 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
11733 instead of manual alignment.
11734 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
11735 verbose). Avoid attempts to read past end of the device
11736 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
11737 but GRUB_DISK_CACHE_SIZE may exceed that).
11738
11739 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
11740
11741 * commands/crc.c (grub_cmd_crc): Abort on read errors.
11742 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
11743 it to upper layer.
11744
11745 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
11746
11747 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
11748 New constant.
11749 (grub_efi_piwg_device_path): New structure
11750 (grub_efi_piwg_device_path_t): New type.
11751 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
11752 (devpath_1): Transform to a structure. All users updated.
11753 (devpath_2): Likewise.
11754 (devpath_3): Likewise.
11755 (devpath_4): Likewise.
11756 (devpath_5): Likewise.
11757
11758 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
11759
11760 * loader/efi/appleloader.c: Restored. Update all users.
11761
11762 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
11763
11764 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
11765
11766 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
11767 (struct boot_blocklist): Move from here ...
11768 * include/grub/i386/pc/boot.h [ASM_FILE]
11769 (struct grub_boot_blocklist): ... to here. Update all users.
11770 (setup): Only initialize `start' member of `first_block'
11771 structure. Add assert() calls to verify the other members.
11772
11773 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
11774 (generate_image): Fix broken blocklist length initialization.
11775 Add assert() call to verify blocklist `segment' field.
11776
11777 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
11778
11779 * loader/efi/appleloader.c: Remove. Update all users.
11780
11781 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
11782
11783 * boot/i386/pc/boot.S: Update copyright year.
11784 * boot/i386/pc/cdboot.S: Likewise.
11785 * boot/i386/pc/diskboot.S: Likewise.
11786 * boot/i386/pc/lnxboot.S: Likewise.
11787 * boot/i386/pc/pxeboot.S: Likewise.
11788 * bus/pci.c: Likewise.
11789 * commands/cmp.c: Likewise.
11790 * commands/help.c: Likewise.
11791 * commands/hexdump.c: Likewise.
11792 * commands/i386/pc/halt.c: Likewise.
11793 * commands/i386/pc/play.c: Likewise.
11794 * commands/i386/pc/vbeinfo.c: Likewise.
11795 * commands/ls.c: Likewise.
11796 * commands/test.c: Likewise.
11797 * disk/dmraid_nvidia.c: Likewise.
11798 * disk/i386/pc/biosdisk.c: Likewise.
11799 * disk/ieee1275/nand.c: Likewise.
11800 * disk/ieee1275/ofdisk.c: Likewise.
11801 * disk/lvm.c: Likewise.
11802 * disk/raid.c: Likewise.
11803 * disk/raid6_recover.c: Likewise.
11804 * disk/scsi.c: Likewise.
11805 * fs/affs.c: Likewise.
11806 * fs/cpio.c: Likewise.
11807 * fs/ext2.c: Likewise.
11808 * fs/hfs.c: Likewise.
11809 * fs/iso9660.c: Likewise.
11810 * fs/ntfs.c: Likewise.
11811 * fs/sfs.c: Likewise.
11812 * fs/udf.c: Likewise.
11813 * fs/ufs.c: Likewise.
11814 * fs/xfs.c: Likewise.
11815 * gencmdlist.sh: Likewise.
11816 * genmk.rb: Likewise.
11817 * include/grub/disk.h: Likewise.
11818 * include/grub/efi/api.h: Likewise.
11819 * include/grub/efi/efi.h: Likewise.
11820 * include/grub/efi/pe32.h: Likewise.
11821 * include/grub/elf.h: Likewise.
11822 * include/grub/fs.h: Likewise.
11823 * include/grub/i386/at_keyboard.h: Likewise.
11824 * include/grub/i386/pc/memory.h: Likewise.
11825 * include/grub/i386/pc/vbe.h: Likewise.
11826 * include/grub/i386/pci.h: Likewise.
11827 * include/grub/i386/tsc.h: Likewise.
11828 * include/grub/ieee1275/ieee1275.h: Likewise.
11829 * include/grub/ntfs.h: Likewise.
11830 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
11831 * include/grub/sparc64/libgcc.h: Likewise.
11832 * include/grub/symbol.h: Likewise.
11833 * include/grub/types.h: Likewise.
11834 * include/multiboot2.h: Likewise.
11835 * io/gzio.c: Likewise.
11836 * kern/device.c: Likewise.
11837 * kern/disk.c: Likewise.
11838 * kern/efi/efi.c: Likewise.
11839 * kern/efi/mm.c: Likewise.
11840 * kern/elf.c: Likewise.
11841 * kern/file.c: Likewise.
11842 * kern/i386/dl.c: Likewise.
11843 * kern/i386/pc/init.c: Likewise.
11844 * kern/i386/pc/startup.S: Likewise.
11845 * kern/ieee1275/ieee1275.c: Likewise.
11846 * kern/ieee1275/init.c: Likewise.
11847 * kern/main.c: Likewise.
11848 * kern/mm.c: Likewise.
11849 * kern/powerpc/dl.c: Likewise.
11850 * kern/sparc64/dl.c: Likewise.
11851 * kern/x86_64/dl.c: Likewise.
11852 * lib/hexdump.c: Likewise.
11853 * loader/efi/appleloader.c: Likewise.
11854 * loader/i386/ieee1275/linux.c: Likewise.
11855 * loader/i386/pc/chainloader.c: Likewise.
11856 * loader/i386/pc/linux.c: Likewise.
11857 * loader/i386/pc/multiboot2.c: Likewise.
11858 * loader/ieee1275/multiboot2.c: Likewise.
11859 * loader/multiboot2.c: Likewise.
11860 * loader/multiboot_loader.c: Likewise.
11861 * loader/powerpc/ieee1275/linux.c: Likewise.
11862 * normal/completion.c: Likewise.
11863 * normal/menu_entry.c: Likewise.
11864 * partmap/apple.c: Likewise.
11865 * util/grub.d/10_hurd.in: Likewise.
11866 * util/hostfs.c: Likewise.
11867 * video/readers/png.c: Likewise.
11868
11869 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
11870
11871 * include/grub/misc.h (GNUC_PREREQ): New macro.
11872 (ATTRIBUTE_ERROR): New macro.
11873 * include/grub/list.h (grub_bad_type_cast_real): Use
11874 ATTRIBUTE_ERROR.
11875
11876 2010-01-03 Carles Pina i Estany <carles@pina.cat>
11877
11878 * normal/menu_text.c (print_message): Change messages.
11879
11880 2010-01-03 Carles Pina i Estany <carles@pina.cat>
11881
11882 * normal/menu_entry.c (store_completion): Gettextizze.
11883
11884 2010-01-03 Carles Pina i Estany <carles@pina.cat>
11885
11886 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
11887
11888 2010-01-03 Carles Pina i Estany <carles@pina.cat>
11889
11890 * po/POTFILES: Sort correctly.
11891
11892 2010-01-03 Carles Pina i Estany <carles@pina.cat>
11893
11894 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
11895 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
11896 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
11897 full stop.
11898 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
11899 summary. Gettextizze the strings.
11900 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
11901 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
11902 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
11903 full stop.
11904 (GRUB_MOD_INIT): Remove command name from summary.
11905 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
11906 summary.
11907 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
11908 * term/i386/pc/serial.c (options): Add full stops.
11909 (GRUB_MOD_INIT): Remove command name from the summary.
11910
11911 2010-01-03 Carles Pina i Estany <carles@pina.cat>
11912
11913 * commands/acpi.c: Gettextizze help strings and/or options. Include
11914 `grub/i18n.h' if needed.
11915 * commands/blocklist.c: Likewise.
11916 * commands/boot.c: Likewise.
11917 * commands/cat.c: Likewise.
11918 * commands/cmp.c: Likewise.
11919 * commands/configfile.c: Likewise.
11920 * commands/crc.c: Likewise.
11921 * commands/date.c: Likewise.
11922 * commands/echo.c: Likewise.
11923 * commands/efi/fixvideo.c: Likewise.
11924 * commands/efi/loadbios.c: Likewise.
11925 * commands/gptsync.c: Likewise.
11926 * commands/halt.c: Likewise.
11927 * commands/handler.c: Likewise.
11928 * commands/hdparm.c: Likewise.
11929 * commands/hexdump.c: Likewise.
11930 * commands/i386/cpuid.c: Likewise.
11931 * commands/i386/pc/drivemap.c: Likewise.
11932 * commands/i386/pc/halt.c: Likewise.
11933 * commands/i386/pc/pxecmd.c: Likewise.
11934 * commands/i386/pc/vbeinfo.c: Likewise.
11935 * commands/i386/pc/vbetest.c: Likewise.
11936 * commands/ieee1275/suspend.c: Likewise.
11937 * commands/keystatus.c: Likewise.
11938 * commands/loadenv.c: Likewise.
11939 * commands/ls.c: Likewise.
11940 * commands/lsmmap.c: Likewise.
11941 * commands/lspci.c: Likewise.
11942 * commands/memrw.c: Likewise.
11943 * commands/minicmd.c: Likewise.
11944 * commands/parttool.c: Likewise.
11945 * commands/password.c: Likewise.
11946 * commands/probe.c: Likewise.
11947 * commands/read.c: Likewise.
11948 * commands/reboot.c: Likewise.
11949 * commands/search.c: Likewise.
11950 * commands/sleep.c: Likewise.
11951 * commands/test.c: Likewise.
11952 * commands/true.c: Likewise.
11953 * commands/usbtest.c: Likewise.
11954 * commands/videotest.c: Likewise.
11955 * commands/xnu_uuid.c: Likewise.
11956 * disk/loopback.c: Likewise.
11957 * hello/hello.c: Likewise.
11958 * loader/i386/bsd.c: Likewise.
11959 * term/i386/pc/serial.c: Likewise.
11960 * po/POTFILES: Add new files.
11961
11962 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
11963
11964 * term/i386/pc/at_keyboard.c
11965 (keyboard_controller_wait_untill_ready): Rename to ...
11966 (keyboard_controller_wait_until_ready): ... this. Update all users.
11967
11968 2010-01-01 Carles Pina i Estany <carles@pina.cat>
11969
11970 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
11971 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
11972 string using string width.
11973 * normal/menu_text.c (grub_print_message_indented): Use
11974 grub_print_spaces and not print_spaces.
11975 (print_timeout): Likewise.
11976 (print_spaces): Move to...
11977 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
11978
11979 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
11980
11981 Import from Gnulib.
11982
11983 * gnulib/getdelim.c: New file.
11984 * gnulib/getline.c: Likewise.
11985
11986 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
11987
11988 * include/grub/list.h (grub_assert_fail): Removed.
11989 (grub_bad_type_cast_real): New function.
11990 (grub_bad_type_cast): New macro.
11991 (GRUB_AS_LIST): Use grub_bad_type_cast.
11992 (GRUB_AS_LIST_P): Likewise.
11993 (GRUB_AS_NAMED_LIST): Likewise.
11994 (GRUB_AS_NAMED_LIST_P): Likewise.
11995 (GRUB_AS_PRIO_LIST): Likewise.
11996 (GRUB_AS_PRIO_LIST_P): Likewise.
11997 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
11998
11999 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
12000
12001 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
12002 Fix syntax error.
12003
12004 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
12005
12006 * configure.ac: Check for TARGET_CFLAGS initialization before we
12007 initialize it ourselves (sigh).
12008 Move a few modifications to TARGET_CFLAGS to be unconditional
12009 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
12010 eh_frame)
12011
12012 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
12013 * term/i386/pc/at_keyboard.c
12014 (keyboard_controller_wait_untill_ready): Likewise.
12015 (keyboard_controller_led): Rename `led_status' paramter to avoid
12016 name conflict.
12017
12018 2009-12-28 Carles Pina i Estany <carles@pina.cat>
12019
12020 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
12021 quotes.
12022
12023 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
12024
12025 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
12026
12027 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
12028
12029 * normal/menu_text.c (grub_print_message_indented): Prevent
12030 past-the-end-of-array dereference.
12031
12032 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
12033
12034 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
12035 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
12036
12037 2009-12-27 Carles Pina i Estany <carles@pina.cat>
12038
12039 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
12040 * normal/main.c (grub_normal_read_line): Remove a space from the
12041 default prompt.
12042
12043 2009-12-27 Carles Pina i Estany <carles@pina.cat>
12044
12045 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
12046 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
12047 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
12048 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
12049 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
12050 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
12051 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
12052
12053 2009-12-26 Carles Pina i Estany <carles@pina.cat>
12054
12055 * video/readers/jpeg.c (cmd): Declare.
12056 (grub_cmd_jpegtest): Use `grub_command_t' type.
12057 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
12058 Assign to `cmd'.
12059 (GRUB_MOD_FINI): Use `cmd' to unregister.
12060 * video/readers/png.c (cmd): Declare.
12061 (grub_cmd_pngtest): Use `grub_command_t' type.
12062 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
12063 Assign to `cmd'.
12064 (GRUB_MOD_FINI): Use `cmd' to unregister.
12065 * video/readers/tga.c (cmd): Declare.
12066 (grub_cmd_tgatest): Use `grub_command_t' type.
12067 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
12068 Assign to `cmd'.
12069 (GRUB_MOD_FINI): Use `cmd' to unregister.
12070
12071 2009-12-26 Carles Pina i Estany <carles@pina.cat>
12072
12073 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
12074 stops.
12075 * kern/corecmd.c (grub_register_core_commands): Likewise.
12076 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
12077 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
12078 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
12079 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
12080 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
12081 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
12082 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
12083 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
12084 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
12085 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
12086 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
12087 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
12088 * normal/handler.c (insert_handler): Likewise.
12089 * normal/main.c (GRUB_MOD_INIT): Likewise.
12090 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
12091
12092 2009-12-26 Carles Pina i Estany <carles@pina.cat>
12093
12094 * commands/help.c (grub_cmd_help): Print the command name before the
12095 summary.
12096 (GRUB_MOD_INIT): Remove command name from the summary.
12097 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
12098 string as summary.
12099 * lib/arg.c (find_long): Print the command name before the summary.
12100 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
12101 summary.
12102 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
12103 * commands/cat.c (GRUB_MOD_INIT): Likewise.
12104 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
12105 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
12106 * commands/crc.c (GRUB_MOD_INIT): Likewise.
12107 * commands/date.c (GRUB_MOD_INIT): Likewise.
12108 * commands/echo.c (GRUB_MOD_INIT): Likewise.
12109 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
12110 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
12111 * commands/handler.c (GRUB_MOD_INIT): Likewise.
12112 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
12113 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
12114 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
12115 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
12116 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
12117 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
12118 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
12119 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
12120 * commands/ls.c (GRUB_MOD_INIT): Likewise.
12121 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
12122 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
12123 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
12124 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
12125 * commands/password.c (GRUB_MOD_INIT): Likewise.
12126 * commands/probe.c (GRUB_MOD_INIT): Likewise.
12127 * commands/read.c (GRUB_MOD_INIT): Likewise.
12128 * commands/search.c (GRUB_MOD_INIT): Likewise.
12129 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
12130 * commands/test.c (GRUB_MOD_INIT): Likewise.
12131 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
12132 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
12133 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
12134 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
12135 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
12136 * lib/arg.c (GRUB_MOD_INIT): Likewise.
12137 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
12138 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
12139 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
12140 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
12141 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
12142 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
12143 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
12144 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
12145
12146 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12147
12148 Use search command for preliminar UUID search.
12149
12150 * commands/search.c: Split into ...
12151 * commands/search_wrap.c: ...this
12152 * commands/search.c: ...and this.
12153 * commands/search_file.c: New file.
12154 * commands/search_label.c: New file.
12155 * commands/search_uuid.c: New file.
12156 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
12157 Add commands/search_wrap.c, commands/search_file.c,
12158 commands/search_label.c and commands/search_uuid.c.
12159 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
12160 (search_mod_SOURCES): Set to commands/search_wrap.c.
12161 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
12162 search_label.mod.
12163 (search_fs_file_mod_SOURCES): New variable.
12164 (search_fs_file_mod_CFLAGS): Likewise.
12165 (search_fs_file_mod_LDFLAGS): Likewise.
12166 (search_label_mod_SOURCES): Likewise.
12167 (search_label_mod_CFLAGS): Likewise.
12168 (search_label_mod_LDFLAGS): Likewise.
12169 (search_fs_uuid_mod_SOURCES): New variable.
12170 (search_fs_uuid_mod_CFLAGS): Likewise.
12171 (search_fs_uuid_mod_LDFLAGS): Likewise.
12172 (fs_file_mod_SOURCES): Removed.
12173 (fs_file_mod_CFLAGS): Likewise.
12174 (fs_file_mod_LDFLAGS): Likewise.
12175 (fs_uuid_mod_SOURCES): Removed.
12176 (fs_uuid_mod_CFLAGS): Likewise.
12177 (fs_uuid_mod_LDFLAGS): Likewise.
12178 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
12179 Set to util/grub-install.in.
12180 * disk/fs_file.c: Removed.
12181 * disk/fs_uuid.c: Likewise.
12182 * include/grub/search.h: New file.
12183 * util/grub-install.in: Handle sparc64.
12184 Create and use load.cfg.
12185 * util/sparc64/ieee1275/grub-install.in: Removed.
12186
12187 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12188
12189 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
12190 Ignore return status if CF is cleared.
12191 (grub_biosdisk_get_diskinfo_standard): Likewise.
12192
12193 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
12194
12195 * term/i386/pc/at_keyboard.c
12196 (keyboard_controller_wait_untill_ready): New function.
12197 (grub_keyboard_controller_write, grub_keyboard_controller_read)
12198 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
12199 for keyboard polling, rather than duplicate the same loop. This
12200 saves a few bytes in code size.
12201
12202 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12203
12204 Support for (pxe[:server[:gateway]]) syntax and
12205 use environment variable for PXE.
12206
12207 * commands/i386/pc/pxecmd.c (options): Removed.
12208 (print_ip): Removed.
12209 (grub_cmd_pxe): Removed
12210 (grub_cmd_pxe_unload): New function.
12211 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
12212 (grub_pxe_your_ip): Made static.
12213 (grub_pxe_default_server_ip): Likewise.
12214 (grub_pxe_default_gateway_ip): Likewise.
12215 (grub_pxe_blksize): Likewise.
12216 (parse_ip): New function.
12217 (grub_pxe_open): Support server and gateway specification.
12218 (grub_pxe_close): Free disk->data.
12219 (grub_pxefs_open): Use disk->data.
12220 (grub_pxefs_read): Likewise.
12221 (grub_env_write_readonly): New function.
12222 (set_mac_env): Likewise.
12223 (set_env_limn_ro): Likewise.
12224 (parse_dhcp_vendor): Likewise.
12225 (grub_pxe_detect): Set the environment variables.
12226 (set_ip_env): New function.
12227 (write_ip_env): Likewise.
12228 (grub_env_write_pxe_default_server): Likewise.
12229 (grub_env_write_pxe_default_gateway): Likewise.
12230 (grub_env_write_pxe_blocksize): Likewise.
12231 (GRUB_MOD_INIT(pxe)): Set environment variables.
12232 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
12233 (grub_pxe_mac_addr_t): ... this. All users updated.
12234 (grub_pxe_your_ip): Removed.
12235 (grub_pxe_server_ip): Likewise.
12236 (grub_pxe_gateway_ip): Likewise.
12237 (grub_pxe_blksize): Likewise.
12238
12239 2009-12-25 Carles Pina i Estany <carles@pina.cat>
12240
12241 * commands/help.c: Include `<grub/i18n.h>'.
12242 (grub_cmd_help): Gettextizze.
12243 (GRUB_MOD_INIT): Likewise.
12244 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
12245 (GRUB_MOD_INIT): Gettextizze.
12246 * commands/search.c: Include `<grub/i18n.h>'.
12247 (options): Gettextizze.
12248 (GRUB_MOD_INIT): Gettextizze.
12249 * lib/arg.c: Include `<grub/i18n.h>'.
12250 (help_options): Gettextizze.
12251 (find_long): Likewise.
12252 (grub_arg_show_help): Likewise.
12253 * normal/dyncmd.c: Include `<grub/i18n.h>'.
12254 (read_command_list): Gettextizze.
12255 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
12256 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
12257
12258 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
12259
12260 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
12261 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
12262 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
12263 (led_status): New variable.
12264 (keyboard_controller_led): New function.
12265 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
12266 update led status for caps lock, num lock and scroll lock.
12267
12268 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
12269
12270 * util/hostdisk.c (open_device): Fix a comment.
12271
12272 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
12273
12274 * util/grub-install.in (host_os): New variable.
12275 * util/i386/efi/grub-install.in (host_os): Likewise.
12276
12277 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
12278
12279 * util/mkisofs/write.c (padblock_write): Abort when given an
12280 excedingly large embed image, instead of silently truncating it.
12281
12282 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
12283
12284 * include/multiboot.h: Indentation fixes.
12285
12286 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
12287
12288 * include/multiboot.h (struct multiboot_aout_symbol_table)
12289 (struct multiboot_elf_section_header_table): New structure
12290 declarations (stolen from GRUB Legacy).
12291 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
12292 table information.
12293
12294 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
12295 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
12296 type aliases.
12297
12298 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
12299
12300 * include/multiboot.h: Make comments src2texi-friendly.
12301
12302 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
12303
12304 For consistency with [multiboot]/docs/boot.S.
12305
12306 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
12307 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
12308 (MULTIBOOT_MAGIC2): Rename from this ...
12309 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
12310
12311 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
12312
12313 * include/multiboot.h: Remove `<grub/types.h>'.
12314 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
12315 types. Update all users.
12316
12317 2009-12-25 Carles Pina i Estany <carles@pina.cat>
12318
12319 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
12320 `couldn't' and `can not' by `cannot'.
12321 * commands/i386/pc/drivemap.c: Likewise.
12322 * disk/ata.c: Likewise.
12323 * disk/ieee1275/nand.c: Likewise.
12324 * fs/affs.c: Likewise.
12325 * fs/fat.c: Likewise.
12326 * fs/hfs.c: Likewise.
12327 * fs/hfsplus.c: Likewise.
12328 * fs/iso9660.c: Likewise.
12329 * fs/jfs.c: Likewise.
12330 * fs/minix.c: Likewise.
12331 * fs/reiserfs.c: Likewise.
12332 * fs/sfs.c: Likewise.
12333 * fs/udf.c: Likewise.
12334 * fs/ufs.c: Likewise.
12335 * fs/xfs.c: Likewise.
12336 * loader/powerpc/ieee1275/linux.c: Likewise.
12337 * loader/sparc64/ieee1275/linux.c: Likewise.
12338 * util/grub-probe.c: Likewise.
12339 * util/misc.c: Likewise.
12340
12341 2009-12-24 Carles Pina i Estany <carles@pina.cat>
12342
12343 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
12344 grub_errno calls.
12345 * commands/acpi.c: Likewise.
12346 * commands/blocklist.c: Likewise.
12347 * commands/efi/loadbios.c: Likewise.
12348 * commands/i386/pc/drivemap.c: Likewise.
12349 * commands/loadenv.c: Likewise.
12350 * commands/memrw.c: Likewise.
12351 * commands/password.c: Likewise.
12352 * commands/videotest.c: Likewise.
12353 * disk/ata.c: Likewise.
12354 * disk/ata_pthru.c: Likewise.
12355 * disk/dmraid_nvidia.c: Likewise.
12356 * disk/ieee1275/nand.c: Likewise.
12357 * disk/ieee1275/ofdisk.c: Likewise.
12358 * disk/loopback.c: Likewise.
12359 * disk/lvm.c: Likewise.
12360 * disk/mdraid_linux.c: Likewise.
12361 * disk/raid.c: Likewise.
12362 * disk/raid6_recover.c: Likewise.
12363 * disk/scsi.c: Likewise.
12364 * efiemu/main.c: Likewise.
12365 * efiemu/mm.c: Likewise.
12366 * efiemu/pnvram.c: Likewise.
12367 * efiemu/symbols.c: Likewise.
12368 * font/font.c: Likewise.
12369 * fs/cpio.c: Likewise.
12370 * fs/hfsplus.c: Likewise.
12371 * fs/iso9660.c: Likewise.
12372 * fs/jfs.c: Likewise.
12373 * fs/minix.c: Likewise.
12374 * fs/ntfs.c: Likewise.
12375 * fs/ntfscomp.c: Likewise.
12376 * fs/reiserfs.c: Likewise.
12377 * fs/ufs.c: Likewise.
12378 * fs/xfs.c: Likewise.
12379 * gettext/gettext.c: Likewise.
12380 * include/grub/auth.h: Likewise.
12381 * kern/elf.c: Likewise.
12382 * kern/file.c: Likewise.
12383 * kern/ieee1275/init.c: Likewise.
12384 * kern/ieee1275/mmap.c: Likewise.
12385 * kern/ieee1275/openfw.c: Likewise.
12386 * kern/powerpc/dl.c: Likewise.
12387 * kern/sparc64/dl.c: Likewise.
12388 * lib/arg.c: Likewise.
12389 * loader/i386/bsd.c: Likewise.
12390 * loader/i386/bsdXX.c: Likewise.
12391 * loader/i386/efi/linux.c: Likewise.
12392 * loader/i386/efi/xnu.c: Likewise.
12393 * loader/i386/ieee1275/linux.c: Likewise.
12394 * loader/i386/linux.c: Likewise.
12395 * loader/i386/multiboot.c: Likewise.
12396 * loader/i386/pc/linux.c: Likewise.
12397 * loader/i386/pc/multiboot2.c: Likewise.
12398 * loader/i386/xnu.c: Likewise.
12399 * loader/ieee1275/multiboot2.c: Likewise.
12400 * loader/macho.c: Likewise.
12401 * loader/machoXX.c: Likewise.
12402 * loader/multiboot2.c: Likewise.
12403 * loader/multiboot_loader.c: Likewise.
12404 * loader/powerpc/ieee1275/linux.c: Likewise.
12405 * loader/sparc64/ieee1275/linux.c: Likewise.
12406 * loader/xnu.c: Likewise.
12407 * loader/xnu_resume.c: Likewise.
12408 * mmap/i386/pc/mmap.c: Likewise.
12409 * normal/menu_viewer.c: Likewise.
12410 * partmap/acorn.c: Likewise.
12411 * partmap/amiga.c: Likewise.
12412 * partmap/apple.c: Likewise.
12413 * script/lexer.c: Likewise.
12414 * term/gfxterm.c: Likewise.
12415 * term/i386/pc/serial.c: Likewise.
12416 * term/i386/pc/vga.c: Likewise.
12417 * term/ieee1275/ofconsole.c: Likewise.
12418 * term/terminfo.c: Likewise.
12419 * video/bitmap.c: Likewise.
12420 * video/efi_gop.c: Likewise.
12421 * video/efi_uga.c: Likewise.
12422 * video/fb/video_fb.c: Likewise.
12423 * video/i386/pc/vbe.c: Likewise.
12424 * video/readers/tga.c: Likewise.
12425 * video/video.c: Likewise.
12426
12427 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
12428
12429 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
12430 * commands/lspci.c: Likewise.
12431 * commands/probe.c: Likewise.
12432 * commands/xnu_uuid.c: Likewise.
12433 * conf/i386-coreboot.rmk: Likewise.
12434 * conf/i386-efi.rmk: Likewise.
12435 * conf/i386-ieee1275.rmk: Likewise.
12436 * conf/i386-pc.rmk: Likewise.
12437 * conf/powerpc-ieee1275.rmk: Likewise.
12438 * conf/sparc64-ieee1275.rmk: Likewise.
12439 * conf/x86_64-efi.rmk: Likewise.
12440 * fs/i386/pc/pxe.c: Likewise.
12441 * gettext/gettext.c: Likewise.
12442 * include/grub/efi/graphics_output.h: Likewise.
12443 * include/grub/i386/pc/memory.h: Likewise.
12444 * kern/env.c: Likewise.
12445 * kern/i386/qemu/startup.S: Likewise.
12446 * lib/i386/pc/biosnum.c: Likewise.
12447 * lib/i386/relocator.c: Likewise.
12448 * lib/i386/relocator_asm.S: Likewise.
12449 * lib/relocator.c: Likewise.
12450 * loader/i386/bsd.c: Likewise.
12451 * loader/i386/multiboot.c: Likewise.
12452 * loader/i386/pc/chainloader.c: Likewise.
12453 * loader/i386/xnu.c: Likewise.
12454 * loader/xnu.c: Likewise.
12455 * normal/main.c: Likewise.
12456 * normal/menu_text.c: Likewise.
12457 * util/getroot.c: Likewise.
12458 * util/grub-mkconfig_lib.in: Likewise.
12459 * util/grub.d/00_header.in: Likewise.
12460 * util/i386/pc/grub-mkimage.c: Likewise.
12461 * util/mkisofs/eltorito.c: Likewise.
12462 * util/mkisofs/exclude.h: Likewise.
12463 * util/mkisofs/hash.c: Likewise.
12464 * util/mkisofs/iso9660.h: Likewise.
12465 * util/mkisofs/joliet.c: Likewise.
12466 * util/mkisofs/mkisofs.c: Likewise.
12467 * util/mkisofs/mkisofs.h: Likewise.
12468 * util/mkisofs/multi.c: Likewise.
12469 * util/mkisofs/name.c: Likewise.
12470 * util/mkisofs/rock.c: Likewise.
12471 * util/mkisofs/tree.c: Likewise.
12472 * util/mkisofs/write.c: Likewise.
12473 * video/efi_gop.c: Likewise.
12474
12475 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12476
12477 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
12478 size counting.
12479
12480 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
12481
12482 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
12483 * genmk.rb (class SCRIPT): Modify the target file instead of source.
12484
12485 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
12486
12487 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
12488 (GRUB_MOD_INIT(memrw)): Update help line.
12489
12490 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
12491
12492 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
12493 Use grub_extcmd_t. All users updated.
12494 (options): New variable.
12495 (grub_cmd_read): Restructure for readability. Support "-v" option.
12496 (grub_cmd_write): Restructure for readability.
12497
12498 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
12499
12500 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
12501
12502 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
12503
12504 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
12505 with the actual contents of the correspondending make variable.
12506 * util/grub-mkrescue.in (pkglib_DATA): New variable.
12507 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
12508 specifying `*.lst' and `efiemu??.o'
12509
12510 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
12511
12512 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
12513 after function name.
12514 Noticed by Rene Engelhard <rene@debian.org>.
12515
12516 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
12517
12518 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
12519 (options): New variable.
12520 (iospace): Likewise.
12521 (grub_lspci_iter): List IO spaces if "-i" was given.
12522 (grub_cmd_lspci): Parse options.
12523 (GRUB_MOD_INIT(lspci)): Use extcmd.
12524 (GRUB_MOD_FINI(lspci)): Likewise.
12525
12526 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
12527
12528 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
12529 `function' keyword.
12530 Patch by Tony Mancill <tmancill@debian.org>.
12531
12532 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
12533
12534 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
12535 (grub_uhci_portstatus): Likewise.
12536 (grub_uhci_portstatus): Add necessary delay.
12537 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
12538
12539 2009-12-21 Carles Pina i Estany <carles@pina.cat>
12540
12541 * commands/acpi.c (options): Fix capitalizations and/or full stops.
12542 (GRUB_MOD_INIT): Likewise.
12543 * commands/boot.c (GRUB_MOD_INIT): Likewise.
12544 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
12545 * commands/echo.c (options): Fix capitalizations and/or full stops.
12546 * commands/efi/loadbios.c (enable_rom_area): Likewise.
12547 (enable_rom_area): Likewise.
12548 (GRUB_MOD_INIT): Likewise.
12549 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
12550 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
12551 * commands/handler.c (GRUB_MOD_INIT): Likewise.
12552 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
12553 * commands/hexdump.c (options): Likewise.
12554 * commands/i386/cpuid.c (options): Likewise.
12555 (GRUB_MOD_INIT): Likewise.
12556 * commands/i386/pc/drivemap.c (options): Likewise.
12557 (GRUB_MOD_INIT): Likewise.
12558 * commands/i386/pc/halt (options): Likewise.
12559 (GRUB_MOD_INIT): Likewise.
12560 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
12561 * commands/i386/pc/pxecmd.c (options): Likewise.
12562 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
12563 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
12564 * commands/keystatus.c (options): Likewise.
12565 (GRUB_MOD_INIT): Likewise.
12566 * commands/loadenv.c (options): Likewise.
12567 * commands/ls.c (options): Likewise.
12568 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
12569 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
12570 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
12571 * commands/parttool.c (helpmsg): Likewise.
12572 * commands/probe.c (options): Likewise.
12573 * commands/read.c (GRUB_MOD_INIT): Likewise.
12574 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
12575 * commands/search.c (options): Likewise.
12576 * commands/sleep.c (options): Likewise.
12577 * commands/test.c (GRUB_MOD_INIT): Likewise.
12578 * commands/true.c (GRUB_MOD_INIT): Likewise.
12579 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
12580 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
12581 * lib/arg.c (help_options): Likewise.
12582 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
12583 `$(XGETTEXT)'.
12584 * po/POTFILES: Add `commands/loadenv.c'.
12585
12586 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
12587
12588 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
12589 instead of specifying them explicit.
12590
12591 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
12592
12593 * NEWS: Add grub-probe support for GNU/Hurd.
12594
12595 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
12596
12597 * NEWS: gettext was added after 1.97.
12598
12599 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
12600
12601 * util/mkisofs/msdos_partition.h: New file (based on
12602 include/grub/msdos_partition.h).
12603 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
12604 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
12605 (ld_options, main): Recognize --protective-msdos-label.
12606 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
12607 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
12608 (padblock_write): If `use_protective_msdos_label' is set, patch a
12609 protective DOS-style label in the output image.
12610
12611 * util/grub-mkrescue.in: Use --protective-msdos-label.
12612
12613 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
12614
12615 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
12616 boot.
12617
12618 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
12619
12620 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
12621 variables.
12622 (ld_options, main): Recognize `--embedded-boot'.
12623 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
12624 declarations.
12625 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
12626 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
12627 (padblock_write): Likewise. Rewrite to support embedded boot image.
12628
12629 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
12630 for BIOS-based disk boot instead of only ElTorito.
12631
12632 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
12633
12634 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
12635 build (not needed for bootstrap).
12636
12637 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
12638
12639 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
12640 from i386-pc build (not needed for bootstrap).
12641 Rewrite a pair of strings.
12642
12643 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
12644
12645 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
12646
12647 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
12648
12649 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
12650
12651 2009-12-21 Andreas Born <futur.andy@googlemail.com>
12652
12653 * kern/env.c (grub_env_context_open): Mark exported variable for
12654 reexport.
12655
12656 2009-12-21 Andreas Born <futur.andy@googlemail.com>
12657
12658 * kern/env.c (grub_env_export): Create nonexistent variables before
12659 exporting.
12660
12661 2009-12-20 Carles Pina i Estany <carles@pina.cat>
12662
12663 * include/grub/auth.h: Include `<grub/i18n.h>'.
12664 (GRUB_GET_PASSWORD): Gettextizze string.
12665 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
12666 menu_text.c.
12667 (grub_utf8_to_ucs4_alloc): Fix indentation.
12668 (grub_print_ucs4): Likewise.
12669 (grub_getstringwidth): Likewise.
12670 (print_message_indented): New declaration.
12671 * normal/auth.c: Include `<grub/i18n.h>'.
12672 (grub_auth_check_authentication): Gettexttize string.
12673 * normal/cmdline.c: Include `<grub/i18n.h>'.
12674 (grub_cmdline_get): Gettextizze.
12675 * normal/color.c: Include `<grub/i18n.h>'.
12676 (grub_parse_color_name_pair): Gettexttize strings.
12677 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
12678 string (use `print_message_indented').
12679 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
12680 `include/grub/normal.h'.
12681 (print_message_indented): Renamed to ...
12682 (grub_print_message_indented): ... this. Remove `static' qualifer (now
12683 used in normal/main.c).
12684 (print_message): Use `grub_print_message_indented' instead of
12685 `print_message_indented'.
12686 (print_timeout): Likewise.
12687 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
12688 (grub_normal_print_device_info): Gettexttize strings.
12689 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
12690
12691 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
12692
12693 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
12694 of arguments. Return number of tokens and not arguments. All users
12695 updated.
12696
12697 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
12698
12699 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
12700 non-MSDOS paritions.
12701
12702 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
12703
12704 * include/grub/types.h (UNUSED): Removed since it conflicts with
12705 NetBSD headers. All users changed to direct __attribute__ ((unused)).
12706 Reported by Grégoire Sutre.
12707
12708 2009-12-19 Carles Pina i Estany <carles@pina.cat>
12709
12710 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
12711 (grub_print_ucs4_alloc): Likewise.
12712 (grub_getstringwidth): Likewise.
12713 * normal/main.c (grub_normal_init_page): Gettextize version string.
12714 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
12715 (getstringwidth): Renamed to ...
12716 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
12717 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
12718 (grub_print_ucs4): Remove `static' qualifer (now used in
12719 normal/main.c).
12720 * po/POTFILES: Add normal/main.c.
12721
12722 2009-12-19 Carles Pina i Estany <carles@pina.cat>
12723
12724 * normal/menu_text.c (STANDARD_MARGIN): New macro.
12725 (print_message_indented): Add `margin_left' and `margin_right'
12726 parameters.
12727 (print_message): Update `print_message_indented' calls. Adds '\n' to the
12728 strings.
12729 (print_timeout): Use `print_message_indented' to print the message.
12730 Deletes `second_stage' parameter.
12731 (run_menu): Update `print_timeout' calls.
12732
12733 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
12734
12735 Fix console palette on OpenFirmware.
12736
12737 * term/ieee1275/ofconsole.c (MAX): Removed.
12738 (colors): Redone based on VGA palette.
12739 (grub_ofconsole_setcolor): Discard brightness bit since only 8
12740 colors are supported.
12741 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
12742
12743 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
12744
12745 Fix potential EfiEmu double prepare.
12746
12747 * efiemu/main.c (prepared): New variable
12748 (grub_efiemu_unload): Set prepare to '0'.
12749 (grub_efiemu_prepare): Return if already prepared. Set prepared.
12750
12751 set_virtual_address_map support.
12752
12753 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
12754 prototype.
12755 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
12756 prototype.
12757 (grub_efiemu_crc32): Likewise.
12758 (grub_efiemu_crc64): Likewise.
12759 (grub_efiemu_set_virtual_address_map): Likewise.
12760 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
12761 New definition.
12762 (grub_autoefi_set_virtual_address_map): Likewise.
12763 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
12764 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
12765 Restructure flow to accomodate it.
12766 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
12767 (grub_efiemu_crc): Recompute CRC32.
12768 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
12769 (efiemu_ptv_relocated): ... this. Made global. All users updated.
12770 * efiemu/symbols.c (relocated_handle): New variable.
12771 (grub_efiemu_free_syms): Free relocated_handle.
12772 (grub_efiemu_alloc_syms): Allocate relocated_handle.
12773 (grub_efiemu_write_sym_markers): New function.
12774 (grub_efiemu_set_virtual_address_map): Likewise.
12775
12776 Newer XNU parameters.
12777
12778 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
12779 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
12780 (grub_xnu_fill_devicetree): New prototype.
12781 (grub_xnu_heap_real_start): New variable.
12782 * loader/xnu.c (get_name_ptr): New function.
12783 (grub_xnu_load_driver): Fill namelen and name.
12784
12785 64-bit xnu support.
12786
12787 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
12788 and 'loader/macho64.c'.
12789 * conf/i386-pc.rmk: Likewise.
12790 * conf/x86_64-efi.rmk: Likewise.
12791 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
12792 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
12793 * include/grub/macho.h (grub_macho_segment64): New structure.
12794 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
12795 (grub_macho_size32): ... to this.
12796 (grub_macho32_get_entry_point): Renamed from ...
12797 (grub_macho_get_entry_point32): ... to this.
12798 (grub_macho_contains_macho64): New prototype.
12799 (grub_macho_size64): Likewise.
12800 (grub_macho_get_entry_point64): Likewise.
12801 (grub_macho32_load): Renamed from ...
12802 (grub_macho_load32): ... to this.
12803 (grub_macho32_filesize): Renamed from ...
12804 (grub_macho_filesize32): ... to this.
12805 (grub_macho32_readfile): Renamed from ...
12806 (grub_macho_readfile32): ... to this.
12807 (grub_macho_filesize64): New prototype.
12808 (grub_macho_readfile64): Likewise.
12809 (grub_macho_parse32): Likewise.
12810 (grub_macho_parse64): Likewise.
12811 * loader/macho.c: Split into ...
12812 * loader/machoXX.c: ... and this. Replace 32 with XX.
12813 * loader/macho32.c: New file.
12814 * loader/macho64.c: Likewise.
12815 * loader/xnu.c (grub_xnu_is_64bit): New variable.
12816 (grub_cmd_xnu_kernel): Make 32-bit only.
12817 (grub_cmd_xnu_kernel64): New function.
12818 (grub_xnu_load_driver): Support Mach-O 64.
12819 (grub_cmd_xnu_mkext): Likewise.
12820 * util/grub.d/30_os-prober.in (osx_entry): New function.
12821 Generate entries for 64-bit boot too.
12822
12823 Eliminate ad-hoc tree format in XNU and EfiEmu.
12824
12825 * efiemu/main.c (grub_efiemu_prepare): Update comment.
12826 * efiemu/pnvram.c: Rewritten to use environment variables.
12827 All users updated.
12828
12829 Inline utf16_to_utf8.
12830
12831 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
12832 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
12833 All users updated.
12834 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
12835
12836 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
12837 * commands/usbtest.c (grub_usb_get_string): ... move here.
12838 (usb_print_str): Fix error handling.
12839 * include/grub/usb.h (grub_usb_get_string): Remove.
12840
12841 UTF-8 to UTF-16 transformation.
12842
12843 * conf/common.rmk (pkglib_MODULES): Add charset.mod
12844 (charset_mod_SOURCES): New variable.
12845 (charset_mod_CFLAGS): Likewise.
12846 (charset_mod_LDFLAGS): Likewise.
12847 * include/grub/utf.h: New file.
12848 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
12849
12850 Support for device properties.
12851
12852 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
12853 (grub_xnu_devprop_device_header): Likewise.
12854 (grub_xnu_devprop_device_descriptor): Likewise.
12855 (grub_xnu_devprop_add_device): New prototype.
12856 (grub_xnu_devprop_remove_device): Likewise.
12857 (grub_xnu_devprop_remove_property): Likewise.
12858 (grub_xnu_devprop_add_property_utf8): Likewise.
12859 (grub_xnu_devprop_add_property_utf16): Likewise.
12860 (grub_cpu_xnu_init): Likewise.
12861 (grub_cpu_xnu_fini): Likewise.
12862 (grub_cpu_xnu_unload): Likewise.
12863 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
12864 (property_descriptor): Likewise.
12865 (devices): New variable.
12866 (grub_xnu_devprop_remove_property): New function.
12867 (grub_xnu_devprop_add_device): Likewise.
12868 (grub_xnu_devprop_remove_device): Likewise.
12869 (grub_xnu_devprop_add_property): Likewise.
12870 (grub_xnu_devprop_add_property_utf8): Likewise.
12871 (grub_xnu_devprop_add_property_utf16): Likewise.
12872 (hextoval): Likewise.
12873 (grub_cpu_xnu_fill_devprop): Likewise.
12874 (grub_cmd_devprop_load): Likewise.
12875 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
12876 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
12877 (cmd_devprop_load): New variable.
12878 (grub_cpu_xnu_init): New function.
12879 (grub_cpu_xnu_fini): Likewise.
12880 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
12881 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
12882 (grub_cmd_xnu_devtree): Likewise.
12883 (hextoval): New function.
12884 (unescape): Likewise.
12885 (grub_xnu_fill_devicetree): Likewise.
12886
12887 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
12888 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
12889
12890 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
12891
12892 Workaround for broken ATI VBE.
12893
12894 * video/i386/pc/vbe.c (last_set_mode): New variable.
12895 (grub_vbe_set_video_mode): Set 'last_set_mode'.
12896 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
12897 (grub_video_vbe_setup): Don't check for reserved flag.
12898
12899 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
12900
12901 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
12902 the `find' command.
12903
12904 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
12905
12906 UUID support for HFS.
12907
12908 * fs/hfs.c (grub_hfs_uuid): New function.
12909 (grub_hfs_fs): New value .uuid.
12910 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
12911
12912 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
12913
12914 Fix a segfault with parsing unknown long options.
12915
12916 * util/grub-mkrelpath.c (options): Zero terminate it.
12917
12918 2009-12-13 Carles Pina i Estany <carles@pina.cat>
12919
12920 * include/grub/misc.h (grub_puts): New declaration.
12921 (grub_puts_): Likewise.
12922 * kern/misc.c (grub_puts): New definition.
12923 (grub_puts_): Likewise.
12924
12925 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
12926
12927 * util/grub-probe.c (probe): Improve error message.
12928
12929 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
12930
12931 * loader/i386/multiboot_elfxx.c
12932 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
12933 initialization.
12934
12935 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12936
12937 Relocator framework
12938
12939 * loader/i386/xnu_helper.S: Removed. All users updated.
12940 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
12941 (relocator_mod_SOURCES): New variable.
12942 (relocator_mod_CFLAGS): Likewise.
12943 (relocator_mod_LDFLAGS): Likewise.
12944 (relocator_mod_ASFLAGS): Likewise.
12945 * conf/x86_64.rmk: Likewise.
12946 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
12947 (grub_multiboot_payload_entry_offset): Likewise.
12948 (grub_multiboot_forward_relocator): Likewise.
12949 (grub_multiboot_forward_relocator_end): Likewise.
12950 (grub_multiboot_backward_relocator): Likewise.
12951 (grub_multiboot_backward_relocator_end): Likewise.
12952 (grub_multiboot_payload_eip): New variable.
12953 (grub_multiboot_payload_orig): Likewise.
12954 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
12955 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
12956 * include/grub/i386/memory.h
12957 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
12958 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
12959 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
12960 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
12961 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
12962 * include/grub/i386/relocator.h: New file.
12963 * include/grub/x86_64/relocator.h: Likewise.
12964 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
12965 (XNU_RELOCATOR): New macro.
12966 (grub_xnu_launcher_start): Remove.
12967 (grub_xnu_launcher_end): Likewise.
12968 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
12969 (grub_xnu_heap_real_start): Remove.
12970 (grub_xnu_heap_start): Change to void *. All users updated.
12971 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
12972 * lib/i386/relocator.c: New file.
12973 * lib/i386/relocator_asm.S: Likewise.
12974 * lib/i386/relocator_backward.S: Likewise.
12975 * lib/mips/relocator.c: Likewise.
12976 * lib/mips/relocator_asm.S: Likewise.
12977 * lib/relocator.c: Likewise.
12978 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
12979 (entry): Removed.
12980 (playground): Likewise.
12981 (grub_multiboot_payload_orig): New variable.
12982 (grub_multiboot_payload_dest): Likewise.
12983 (grub_multiboot_payload_size): Likewise.
12984 (grub_multiboot_payload_eip): Likewise.
12985 (grub_multiboot_payload_esp): Likewise.
12986 (grub_multiboot_boot): Use grub_relocator32_boot.
12987 (grub_multiboot_unload): Free relocators.
12988 (grub_multiboot): Setup stack. Use relocators.
12989 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
12990 (grub_multiboot_load_elfXX): Use relocators.
12991 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
12992 (grub_multiboot_payload_size): Likewise.
12993 (grub_multiboot_payload_dest): Likewise.
12994 (grub_multiboot_payload_entry_offset): Likewise.
12995 (grub_multiboot_forward_relocator): Likewise.
12996 (grub_multiboot_backward_relocator): Likewise.
12997 (grub_multiboot_real_boot): Likewise.
12998 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
12999 (grub_xnu_entry_point): Likewise.
13000 (grub_xnu_arg1): Likewise.
13001 (grub_xnu_stack): Likewise.
13002 (grub_xnu_launch): Removed.
13003 (grub_xnu_boot_resume): New function.
13004 (grub_xnu_boot): Use relocators.
13005 * loader/i386/xnu_helper.S: Removed.
13006 * loader/xnu.c (grub_xnu_heap_start): New variable.
13007 (grub_xnu_heap_size): Likewise.
13008 (grub_xnu_heap_malloc): Use relocators.
13009 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
13010
13011 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13012
13013 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
13014 anything.
13015
13016 2009-12-13 Carles Pina i Estany <carles@pina.cat>
13017
13018 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
13019 GRUB_ERR_NONE before calling grub_env_set.
13020
13021 2009-12-12 Robert Millan <rmh@aybabtu.com>
13022
13023 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
13024 * genmk.rb (video): New variable.
13025 (CLEANFILES, VIDEOFILES): Add #{video}.
13026 (#{video}): New target rule.
13027 * genvideolist.sh: New file.
13028 * Makefile.in (pkglib_DATA): Add video.lst.
13029 (video.lst): New target rule.
13030 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
13031 `video.lst'.
13032 * util/grub.d/30_os-prober.in: Replace `vbe' with
13033 ${GRUB_VIDEO_BACKEND}.
13034
13035 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
13036
13037 * THANKS: Add David Miller.
13038
13039 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
13040
13041 libpciaccess support.
13042
13043 * Makefile.in (LIBPCIACCESS): New variable.
13044 (enable_grub_emu_pci): Likewise.
13045 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
13046 util/pci.c and commands/lspci.c.
13047 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
13048 * configure.ac (grub-emu-pci): New option.
13049 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
13050 (grub_pci_device_unmap_range): Likewise.
13051 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
13052 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
13053 (grub_pci_address_t) [!GRUB_UTIL]: New type.
13054 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
13055 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
13056 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
13057 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
13058 * include/grub/pciutils.h: New file.
13059 * util/pci.c: Likewise.
13060
13061 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
13062
13063 * util/misc.c: Don't include <errno.h> twice.
13064
13065 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
13066
13067 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
13068 name in an error message.
13069 (grub_biosdisk_rw): Likewise.
13070
13071 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
13072
13073 Eliminate NTFS 4Gib barrier.
13074
13075 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
13076 (read_run_data): Likewise.
13077 (grub_ntfs_read_run_list): Likewise.
13078 (grub_ntfs_read_block): Likewise.
13079 (grub_ntfs_iterate_dir): Likewise.
13080 (read_mft): Likewise.
13081 (read_data): Likewise.
13082 Use COM_LOG_LEN.
13083 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
13084 to avoid 64-bit division
13085 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
13086 (grub_ntfs_rlst): Use grub_disk_addr_t.
13087
13088 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
13089
13090 Eliminate grub-fstest 4Gib barrier.
13091
13092 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
13093 (read_file): Fix error reporting.
13094
13095 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
13096
13097 Eliminate hexdump 4Gib barrier.
13098
13099 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
13100 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
13101
13102 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
13103
13104 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
13105 Fixes amarsh bug.
13106
13107 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
13108
13109 Remove miscellaneous files in distclean target.
13110
13111 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
13112
13113 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
13114
13115 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
13116 if they're already set. This resolves the conflict between my
13117 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
13118 fixing the --grub-probe option again.
13119 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
13120 change on 2009-10-06, so that we now once again source
13121 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
13122
13123 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
13124
13125 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
13126 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
13127 `util/devicemap.c'.
13128
13129 2009-12-08 Carles Pina i Estany <carles@pina.cat>
13130
13131 * include/grub/misc.h (grub_printf_): New declaration.
13132 * kern/misc.c (grub_printf_): New definition.
13133 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
13134 instead of `grub_printf' and `_'.
13135 * normal/menu_entry.c (store_completion): Likewise.
13136 (run): Likewise.
13137 (grub_menu_entry_run): Likewise.
13138 * normal/menu_text.c (grub_wait_after_message): Likewise.
13139 (notify_booting): Likewise.
13140 (notify_fallback): Likewise.
13141 (notify_execution_failure): Likewise.
13142
13143 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
13144
13145 * configure.ac: Check for vasprintf.
13146 * util/misc.c (asprintf): Move allocation from here ...
13147 (vasprintf): ... to here. New function.
13148 (xasprintf): New function.
13149 * include/grub/util/misc.h (vasprintf, xasprintf): Add
13150 prototypes.
13151 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
13152 * util/grub-mkfont.c (write_font): Likewise.
13153 * util/grub-probe.c (probe): Likewise.
13154 * util/hostdisk.c (make_device_name): Likewise.
13155
13156 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
13157
13158 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
13159 anything even prefixed with 'cdrom' as a cdrom.
13160
13161 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
13162
13163 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
13164 mount points.
13165
13166 2009-12-05 Carles Pina i Estany <carles@pina.cat>
13167
13168 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
13169 grub_gettext_msg_list.
13170 (grub_gettext_gettranslation_from_position): Return const char *
13171 and not char *.
13172 (grub_gettext_translate): Add the translated strings into a list,
13173 returns from the list if existing there.
13174 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
13175 (grub_gettext_delete_list): Delete the list.
13176 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
13177 lang environment variable is changed.
13178 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
13179
13180 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
13181
13182 Rename kernel.mod to kernel.img.
13183
13184 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
13185 (kernel_mod_EXPORTS): Rename to ...
13186 (kernel_img_EXPORTS): ... this.
13187 (kernel_mod_SOURCES): Rename to ...
13188 (kernel_img_SOURCES): ... this.
13189 (kernel_mod_HEADERS): Rename to ...
13190 (kernel_img_HEADERS): ... this. All users updated.
13191 (kernel_mod_CFLAGS): Rename to ...
13192 (kernel_img_CFLAGS): ... this.
13193 (kernel_mod_ASFLAGS): Rename to ...
13194 (kernel_img_ASFLAGS): ... this.
13195 (kernel_mod_LDFLAGS): Rename to ...
13196 (kernel_img_LDFLAGS): ... this.
13197 * conf/x86_64-efi.rmk: Likewise.
13198 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
13199 (read_kernel_image): ... this. All users updated.
13200 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
13201
13202 2009-12-05 Carles Pina i Estany <carles@pina.cat>
13203
13204 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
13205 (print_spaces): New function.
13206 (grub_print_ucs4): New function.
13207 (getstringwidth): New function.
13208 (print_message_indented): New function.
13209 (print_message): Gettexttize strings using print_message_indented.
13210 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
13211 width.
13212 (get_entry_number): Gettextize and uses dynamic terminal width.
13213 (notify_booting, notify_fallback, notify_execution_failure):
13214 Gettextize.
13215 * normal/menu_entry.c (store_completion): Cleanup the gettextized
13216 string.
13217 (run): Likewise.
13218 (grub_menu_entry_run): Likewise.
13219 * PO/POTFILES: Add normal/menu_entry.c.
13220
13221 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
13222
13223 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
13224
13225 2009-12-05 Carles Pina i Estany <carles@pina.cat>
13226
13227 * util/grub-install.in: Install gettext .mo files.
13228 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
13229
13230 2009-12-05 Carles Pina i Estany <carles@pina.cat>
13231
13232 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
13233 grub_dprintf.
13234
13235 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
13236
13237 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
13238 non-firmware-dependant one in realmode.S takes precedence.
13239
13240 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
13241
13242 * commands/halt.c: Replace misc arch-specific headers with
13243 `<grub/misc.h>'.
13244 * commands/reboot.c: Likewise.
13245 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
13246 `<grub/misc.h>'.
13247 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
13248 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
13249 (kernel_img_SOURCES): ... to here.
13250
13251 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
13252 * include/grub/i386/pc/init.h: Likewise.
13253 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
13254 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
13255
13256 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
13257
13258 * include/grub/i386/halt.h: Remove.
13259 * include/grub/i386/reboot.h: Likewise.
13260
13261 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
13262
13263 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
13264
13265 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
13266 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
13267 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
13268 "progname.h"
13269 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
13270 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13271 (usage): Add missing comma in printf.
13272
13273 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
13274
13275 Use the same reboot approach on i386 coreboot and qemu as we do on
13276 BIOS.
13277
13278 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
13279 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
13280 * kern/i386/reboot.c: Remove.
13281 * include/grub/i386/reboot.h (grub_reboot): Export function.
13282 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
13283 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
13284 0xf000:0xfff0 instead of 0xffff:0x0000.
13285 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
13286 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
13287
13288 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
13289
13290 Fix $srcdir != $objdir build.
13291
13292 * Makefile.in (po/%.po): Rewrite as ...
13293 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
13294
13295 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
13296
13297 Fix GNU/Hurd grub-install crash.
13298 * util/grub-probe.c (probe): Try to access `path' only when it is not
13299 NULL.
13300
13301 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
13302
13303 Correct module naming.
13304
13305 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
13306 (GRUB_MOD_INIT(efi_uga)): ... to this
13307 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
13308 (GRUB_MOD_FINI(efi_uga)): ... to this
13309 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
13310 (GRUB_MOD_INIT(efi_gop)): ... to this
13311 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
13312 (GRUB_MOD_FINI(efi_gop)): ... to this
13313
13314 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
13315
13316 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
13317 translatable.
13318 (usage): Translate `arg' strings using gettext().
13319 Thanks to Jordi Mallach for the suggestion.
13320
13321 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
13322
13323 GOP support. Based on patch from Bean
13324 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
13325
13326 * video/efi_gop.c: New file.
13327 * include/grub/efi/graphics_output.h: Likewise.
13328 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
13329 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
13330 variables.
13331 * conf/x86_64-efi.rmk: Likewise.
13332
13333 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
13334
13335 Rename efi_fb to efi_uga.
13336
13337 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
13338 'efi_uga.mod'.
13339 (efi_fb_mod_SOURCES): Rename this ...
13340 (efi_uga_mod_SOURCES): ... to this.
13341 (efi_fb_mod_CFLAGS): Rename this ...
13342 (efi_uga_mod_CFLAGS): ... to this.
13343 (efi_fb_mod_LDFLAGS): Rename this ...
13344 (efi_uga_mod_LDFLAGS): ... to this.
13345 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
13346 'efi_uga.mod'.
13347 (efi_fb_mod_SOURCES): Rename this ...
13348 (efi_uga_mod_SOURCES): ... to this.
13349 (efi_fb_mod_CFLAGS): Rename this ...
13350 (efi_uga_mod_CFLAGS): ... to this.
13351 (efi_fb_mod_LDFLAGS): Rename this ...
13352 (efi_uga_mod_LDFLAGS): ... to this.
13353 * video/efi_fb.c: Move this ...
13354 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
13355
13356 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
13357
13358 * po/README: New file. Explain our PO file workflow.
13359
13360 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
13361
13362 * po/ChangeLog: Remove. Move relevant entries back to ...
13363 * ChangeLog: ... here.
13364 * po/ca.po: Remove (now handled by TLP).
13365 * po/id.po: Likewise.
13366 * po/zh_CN.po: Likewise.
13367 * Makefile.in (LINGUAS): Initialize in a way that supports
13368 empty set.
13369
13370 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
13371
13372 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
13373 reliing on po/LINGUAS.
13374 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
13375 (po/%.po): ... this.
13376
13377 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
13378
13379 * util/i386/efi/grub-mkimage.c: Include "progname.h".
13380 (main): Use `program_name' instead of nonexistent `progname'.
13381
13382 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
13383
13384 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
13385 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
13386
13387 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
13388
13389 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
13390 commit.
13391 * conf/i386-efi.rmk: Likewise.
13392 * conf/i386-ieee1275.rmk: Likewise.
13393 * conf/powerpc-ieee1275.rmk: Likewise.
13394 * conf/sparc64-ieee1275.rmk: Likewise.
13395 * conf/x86_64-efi.rmk: Likewise.
13396
13397 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
13398
13399 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
13400
13401 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
13402
13403 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
13404
13405 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
13406
13407 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
13408 (grub_mkdevicemap_SOURCES): New variable.
13409 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
13410 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
13411 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
13412 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
13413 (grub_mkdevicemap_SOURCES): Remove.
13414 * conf/i386-efi.rmk: Likewise.
13415 * conf/i386-ieee1275.rmk: Likewise.
13416 * conf/i386-pc.rmk: Likewise.
13417 * conf/powerpc-ieee1275.rmk: Likewise.
13418 * conf/sparc64-ieee1275.rmk: Likewise.
13419 * conf/x86_64-efi.rmk: Likewise.
13420 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
13421 (usage): Fix strings to use `program_name'.
13422 (main): Initialize gettext.
13423 * util/grub-editenv.c: Likewise.
13424 * util/grub-emu.c: Likewise.
13425 * util/grub-fstest.c: Likewise.
13426 * util/grub-mkdevicemap.c: Likewise.
13427 * util/grub-mkfont.c: Likewise.
13428 * util/grub-mkrelpath.c: Likewise.
13429 * util/grub-pe2elf.c: Likewise.
13430 * util/grub-probe.c: Likewise.
13431 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
13432 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
13433 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13434
13435 * util/misc.c: Include `"progname.h"'.
13436 (progname): Remove variable.
13437 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
13438
13439 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
13440
13441 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
13442 printf and print a newline after the menuentry header line.
13443 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
13444
13445 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
13446
13447 autoconf >= 2.60 support $(localedir).
13448
13449 * INSTALL: Note that autoconf 2.60 is required.
13450 * configure.ac (AC_PREREQ): Bump to 2.60.
13451 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
13452 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
13453
13454 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
13455
13456 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
13457 aclocal is run.
13458
13459 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
13460
13461 * normal/main.c (grub_normal_read_line): Fix off-by-one
13462 buffer overflow.
13463
13464 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
13465
13466 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
13467 "parser.grub" in grub_command_execute() call.
13468
13469 2009-11-24 Carles Pina i Estany <carles@pina.cat>
13470
13471 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
13472 * conf/i386-efi.rmk: Likewise.
13473 * conf/i386-ieee1275.rmk: Likewise.
13474 * conf/i386-pc.rmk: Likewise.
13475 * conf/powerpc-ieee1275.rmk: Likewise.
13476 * conf/sparc64-ieee1275.rmk: Likewise.
13477 * conf/x86_64-efi.rmk: Likewise.
13478 * gettext/gettex.c: Include <grub/i18n.h>.
13479 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
13480 here ...
13481 * include/grub/i18n.h: ... to here
13482 * include/grub/i18n.h: ... to here.
13483 * kern/misc.c: Include <grub/i18n.h>
13484 (grub_gettext_dummy): Move above user.
13485
13486 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
13487
13488 * util/Makefile.in (install-local): Convert a `for' into a normal
13489 shell expansion.
13490
13491 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
13492
13493 * autogen.sh: Add automake call.
13494 * config.guess: Remove.
13495 * config.sub: Likewise.
13496 * install-sh: Likewise.
13497
13498 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
13499
13500 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
13501
13502 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
13503
13504 * util/Makefile.in (install-local): Convert a make `$(foreach)'
13505 function to a normal shell `for'.
13506
13507 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
13508
13509 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
13510
13511 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
13512
13513 * util/grub-mkrelpath.c: New file.
13514 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
13515 (grub_mkrelpath_SOURCES): New variable.
13516 * include/grub/util/misc.h: New function prototype.
13517 * util/misc.c (make_system_path_relative_to_its_root): New function.
13518
13519 * util/grub-mkconfig_lib.in (bindir): New variable.
13520 (grub_mkrelpath): Likewise.
13521 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
13522
13523 * util/probe.c (probe): Make the file path relative to its root.
13524 Change a info message to use the GRUB path. Enable again the
13525 check if we can read the file with GRUB facilities.
13526
13527 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
13528 to its root.
13529
13530 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
13531
13532 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
13533 platform.
13534
13535 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
13536
13537 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
13538 strncmp().
13539
13540 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
13541
13542 * util/getroot.c (grub_util_is_dmraid): New function.
13543 (grub_util_get_dev_abstraction): Treat dmraid and multipath
13544 devices as normal ones, not as LVM.
13545
13546 2009-11-23 Carles Pina i Estany <carles@pina.cat>
13547
13548 * conf/common.rmk: Add grub-gettext_lib target and updates
13549 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
13550 LDFLAGS.
13551 * gettext/gettext.c: New file. (Reads mo files).
13552 * include/grub/file.h (grub_file_pread): New prototype.
13553 * include/grub/i18n.h (_): New prototype.
13554 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
13555 prototypes.
13556 * kern/misc.c (grub_gettext_dummy): New function.
13557 * normal/menu_text.c: Include <grub/i18n.h>.
13558 * normal/menu_text.c (print_timeout): Gettexttize string.
13559 * normal/menu_text.c (print_message): Gettexttize string.
13560 * po/POTFILES: Add `normal/menu_text.c'.
13561 * po/ca.po: Add new translations.
13562 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
13563 gettext module and defines locale_dir and lang in grub.cfg.
13564 * NEWS: Add gettext support.
13565
13566 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
13567
13568 * util/hostdisk.c: Include `<grub/i18n.h>'.
13569 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
13570 (make_device_name): Rewrite using asprintf.
13571 (convert_system_partition_to_system_disk): Replace 0 with NULL.
13572 (find_system_device): If a device is not found, generate one just
13573 by reusing the OS path name.
13574 (read_device_map): Make it permissible for device.map not to exist.
13575
13576 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
13577
13578 * script/sh/execute.c: Move from here ...
13579 * script/execute.c: ... to here. Update all users.
13580 * script/sh/function.c: Move from here ...
13581 * script/function.c: ... to here. Update all users.
13582 * script/sh/lexer.c: Move from here ...
13583 * script/lexer.c: ... to here. Update all users.
13584 * script/sh/main.c: Move from here ...
13585 * script/main.c: ... to here. Update all users.
13586 * script/sh/parser.y: Move from here ...
13587 * script/parser.y: ... to here. Update all users.
13588 * script/sh/script.c: Move from here ...
13589 * script/script.c: ... to here. Update all users.
13590
13591 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
13592
13593 * configure.ac: Detect all `emu' platforms. Define
13594 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
13595 --enable-grub-emu logic. Disable include/grub/machine
13596 symlink on `emu' platforms.
13597
13598 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
13599 * gensymlist.sh.in: Likewise.
13600
13601 * include/grub/i386/coreboot/machine.h: Remove file.
13602 * include/grub/i386/efi/machine.h: Likewise.
13603 * include/grub/i386/ieee1275/machine.h: Likewise.
13604 * include/grub/i386/pc/machine.h: Likewise.
13605 * include/grub/i386/qemu/machine.h: Likewise.
13606 * include/grub/powerpc/ieee1275/machine.h: Likewise.
13607 * include/grub/sparc64/ieee1275/machine.h: Likewise.
13608 * include/grub/x86_64/efi/machine.h: Likewise.
13609
13610 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
13611 * commands/halt.c: Likewise.
13612 * commands/reboot.c: Likewise.
13613 * include/grub/autoefi.h: Likewise.
13614 * include/grub/i386/at_keyboard.h: Likewise.
13615 * include/grub/i386/kernel.h: Likewise.
13616 * include/grub/i386/loader.h: Likewise.
13617 * include/grub/i386/pc/memory.h: Likewise.
13618 * kern/dl.c: Likewise.
13619 * kern/i386/coreboot/init.c: Likewise.
13620 * loader/i386/bsd.c: Likewise.
13621 * loader/i386/linux.c: Likewise.
13622 * loader/multiboot_loader.c: Likewise.
13623 * term/i386/pc/serial.c: Likewise.
13624 * term/usb_keyboard.c: Likewise.
13625
13626 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
13627 `<grub/machine/machine.h>'
13628 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
13629 * util/misc.c: Remove `<grub/machine/machine.h>' and
13630 `<grub/machine/time.h>'.
13631
13632 * Makefile.in (enable_grub_emu): Remove variable.
13633 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
13634
13635 * conf/any-emu.rmk: New file.
13636 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
13637 (grub_emu_init.c): Move from here ...
13638 * conf/any-emu.rmk: ... to here.
13639
13640 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
13641 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
13642 * conf/any-emu.rmk: ... to here.
13643
13644 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
13645
13646 * include/grub/parser.h (grub_parser_register): Document need
13647 of `name' parameter.
13648 * normal/main.c (grub_normal_read_line): Simplify prompt string.
13649 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
13650 "sh" to "grub".
13651
13652 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
13653
13654 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
13655 `$(XGETTEXT)'.
13656 * include/grub/i18n.h (N_): New macro.
13657 * util/mkisofs/mkisofs.h: Likewise.
13658 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
13659 around N_().
13660 (usage): Use gettext() to translate help strings when printing them.
13661
13662 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
13663
13664 Based on patch from Bean
13665 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
13666
13667 * video/efi_fb.c: New file.
13668 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
13669 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
13670 variables.
13671 * conf/x86_64-efi.rmk: Likewise.
13672
13673 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
13674
13675 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
13676 * util/i386/pc/grub-setup.c: Likewise.
13677
13678 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
13679
13680 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
13681 <hurd/fs.h>
13682 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
13683 file_get_storage_info to implement grub_guess_root_device.
13684
13685 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
13686
13687 * Makefile.in (target): Use make's builtin $(shell) function
13688 instead of calling directly $(SHELL) to create the locale directories,
13689 inside the $(foreach) function.
13690
13691 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
13692
13693 * util/grub-mkrescue.in: Print an error and usage if output option
13694 has not been given.
13695
13696 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
13697
13698 Patch from Loïc Minier <loic.minier@ubuntu.com>.
13699 * util/grub.d/30_os-prober.in: Cope with Linux entries where
13700 root and /boot are on different devices.
13701
13702 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
13703
13704 Fix build for srcdir != objdir.
13705
13706 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
13707 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
13708 $(srcdir).
13709 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
13710 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
13711 reference for input.
13712
13713 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
13714
13715 * util/grub-mkrescue.in: Use source directory direcly (without copiing
13716 or hardlinking it). Remove -J option, Joliet is not compatible with
13717 multiple source directories.
13718
13719 2009-11-21 Carles Pina i Estany <carles@pina.cat>
13720 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
13721
13722 * util/grub-mkrescue.in: Recognize `--override-directory' option.
13723 (process_input_dir): New function. Process an arbitrary input
13724 directory.
13725 Misc adjustments to support both "override mode" and system-wide mode.
13726
13727 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
13728
13729 * configure.ac (UNIFONT_BDF): Rename to ...
13730 (FONT_SOURCE): ... this. Update all users.
13731
13732 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
13733
13734 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
13735 to the list of unifont files to look for.
13736
13737 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
13738
13739 Patch from Joe Auricchio <jauricchio@gmail.com>
13740 * commands/minicmd.c (grub_mini_cmd_clear): New function.
13741 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
13742 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
13743
13744 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
13745
13746 * Makefile.in (install-local): Add a missing backslash.
13747
13748 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
13749
13750 * include/grub/x86_64/io.h: New file.
13751
13752 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
13753
13754 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
13755 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
13756 Include `"progname.h"'.
13757 (main): Initialize gettext.
13758 * util/i386/pc/grub-setup.c: Gettexttize.
13759 * util/i386/pc/grub-mkimage.c: Likewise.
13760
13761 * Makefile.in (po/*.po): Redefine as ...
13762 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
13763
13764 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
13765
13766 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
13767
13768 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
13769 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
13770 (program_name): Remove.
13771 (main): Initialize gettext support.
13772 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
13773 Include `<libintl.h>'.
13774 (_): New macro.
13775
13776 * util/mkisofs/eltorito.c: Gettexttize.
13777 * util/mkisofs/joliet.c: Likewise.
13778 * util/mkisofs/mkisofs.c: Likewise.
13779 * util/mkisofs/multi.c: Likewise.
13780 * util/mkisofs/rock.c: Likewise.
13781 * util/mkisofs/tree.c: Likewise.
13782 * util/mkisofs/write.c: Likewise.
13783
13784 * po/POTFILES: Update with new files.
13785
13786 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
13787
13788 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
13789 * util/mkisofs/iso9660.h: Likewise.
13790 * util/mkisofs/joliet.c: Likewise.
13791 * util/mkisofs/mkisofs.c: Likewise.
13792 * util/mkisofs/mkisofs.h: Likewise.
13793 * util/mkisofs/rock.c: Likewise.
13794 * util/mkisofs/tree.c: Likewise.
13795 * util/mkisofs/write.c: Likewise.
13796
13797 * util/mkisofs/eltorito.c (rcsid): Remove.
13798 * util/mkisofs/hash.c: Likewise.
13799 * util/mkisofs/joliet.c: Likewise.
13800 * util/mkisofs/name.c: Likewise.
13801 * util/mkisofs/rock.c: Likewise.
13802 * util/mkisofs/tree.c: Likewise.
13803 * util/mkisofs/write.c: Likewise.
13804
13805 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
13806
13807 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
13808 instead of static allocation.
13809 * util/mkisofs/match.h: Likewise.
13810
13811 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
13812
13813 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
13814 and `util/grub.d/10_linux.in'.
13815 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
13816 translatable Shell files.
13817
13818 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
13819
13820 * Makefile.in ($(srcdir)/aclocal.m4): New target.
13821
13822 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
13823
13824 * INSTALL: Document Automake is needed for bootstrap.
13825 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
13826 * util/grub.d/10_kfreebsd.in (bindir): New variable.
13827 Add gettext initialization.
13828 (kfreebsd_entry): Make menuentry output translatable.
13829
13830 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
13831
13832 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
13833 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
13834 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
13835 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
13836 (LINGUAS): Auto-generate using `po/LINGUAS'.
13837 * po/LINGUAS: New file.
13838
13839 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
13840
13841 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
13842 other things).
13843 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
13844 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
13845 bindtextdomain() calls for gettext initialization.
13846
13847 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
13848
13849 * gnulib/progname.c: New file (imported from Gnulib).
13850 * gnulib/progname.h: Likewise.
13851 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
13852 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
13853 (usage): Replace `progname' with `program_name'.
13854 (main): Use set_program_name() for program name initialization.
13855
13856 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
13857
13858 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
13859 from here ...
13860 * Makefile.in (CPPFLAGS): ... to here.
13861
13862 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
13863
13864 * aclocal.m4: Move from here ...
13865 * acinclude.m4: ... to here.
13866 * autogen.sh: Add call to `aclocal'.
13867 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
13868
13869 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
13870
13871 * Makefile.in (CLEANFILES): Add `po/*.mo'.
13872 (LINGUAS): New variable.
13873 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
13874 (install-local): Install MO files.
13875 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
13876 * include/grub/i18n.h: New file.
13877 * po/POTFILES: New file.
13878 * po/ca.po: New file.
13879 * util/grub.d/10_linux.in (bindir): New variable.
13880 Add gettext initialization.
13881 (linux_entry): Make menuentry output translatable.
13882 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
13883 (usage): Make --help output translatable.
13884 (main): Initialize gettext.
13885
13886 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
13887
13888 * import_gcry.py: New file (written by Vladimir with minor
13889 adjustments).
13890 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
13891 ciphers.
13892 * INSTALL: Document that Python is required for bootstrap.
13893
13894 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
13895
13896 Import ciphers from libgcrypt 1.4.4.
13897
13898 * lib/libgcrypt/cipher/ChangeLog
13899 * lib/libgcrypt/cipher/ac.c
13900 * lib/libgcrypt/cipher/arcfour.c
13901 * lib/libgcrypt/cipher/bithelp.h
13902 * lib/libgcrypt/cipher/blowfish.c
13903 * lib/libgcrypt/cipher/camellia-glue.c
13904 * lib/libgcrypt/cipher/camellia.c
13905 * lib/libgcrypt/cipher/camellia.h
13906 * lib/libgcrypt/cipher/cast5.c
13907 * lib/libgcrypt/cipher/cipher.c
13908 * lib/libgcrypt/cipher/crc.c
13909 * lib/libgcrypt/cipher/des.c
13910 * lib/libgcrypt/cipher/dsa.c
13911 * lib/libgcrypt/cipher/ecc.c
13912 * lib/libgcrypt/cipher/elgamal.c
13913 * lib/libgcrypt/cipher/hash-common.c
13914 * lib/libgcrypt/cipher/hash-common.h
13915 * lib/libgcrypt/cipher/hmac-tests.c
13916 * lib/libgcrypt/cipher/md.c
13917 * lib/libgcrypt/cipher/md4.c
13918 * lib/libgcrypt/cipher/md5.c
13919 * lib/libgcrypt/cipher/primegen.c
13920 * lib/libgcrypt/cipher/pubkey.c
13921 * lib/libgcrypt/cipher/rfc2268.c
13922 * lib/libgcrypt/cipher/rijndael-tables.h
13923 * lib/libgcrypt/cipher/rijndael.c
13924 * lib/libgcrypt/cipher/rmd.h
13925 * lib/libgcrypt/cipher/rmd160.c
13926 * lib/libgcrypt/cipher/rsa.c
13927 * lib/libgcrypt/cipher/seed.c
13928 * lib/libgcrypt/cipher/serpent.c
13929 * lib/libgcrypt/cipher/sha1.c
13930 * lib/libgcrypt/cipher/sha256.c
13931 * lib/libgcrypt/cipher/sha512.c
13932 * lib/libgcrypt/cipher/tiger.c
13933 * lib/libgcrypt/cipher/twofish.c
13934 * lib/libgcrypt/cipher/whirlpool.c
13935
13936 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
13937
13938 Fix build for systems without error().
13939
13940 * gnulib/error.c: New file (imported from Gnulib).
13941 * gnulib/error.h: Likewise.
13942 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
13943 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
13944 (this variable is now used by error()).
13945
13946 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
13947
13948 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
13949 instead of relying that char is signed.
13950
13951 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13952
13953 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
13954 blocksize different from specified.
13955 (grub_pxefs_read): Likewise.
13956
13957 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
13958
13959 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
13960
13961 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
13962 (grub_ata_readwrite): Likewise. Update 2 format strings.
13963 (grub_atapi_read): Likewise.
13964
13965 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
13966 * conf/i386.rmk (pkglib_MODULES): ... to here ...
13967 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
13968 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
13969 (ata_mod_LDFLAGS): Move from here ...
13970 * conf/i386.rmk: ... to here ...
13971 * conf/x86_64-efi.rmk: ... and here.
13972 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
13973 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
13974
13975 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
13976
13977 Relicense multiboot.h, with RMS' blessing.
13978
13979 * include/multiboot.h: Change to X11 license.
13980
13981 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
13982
13983 Support --version in grub-mkisofs.
13984
13985 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
13986 (OPTION_VERSION): New macro.
13987 (ld_options): Recognize --version.
13988 (usage): Move `program_name' from here ...
13989 (program_name): ... to here. Add `static' qualifier.
13990 (main): Recognize `OPTION_VERSION'.
13991
13992 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
13993
13994 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
13995 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
13996
13997 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
13998
13999 Fix help2man generation for mkisofs.
14000
14001 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
14002 (usage): Send output to stdout (rather than stderr).
14003
14004 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
14005
14006 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
14007 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
14008 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
14009 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
14010 (bin_SCRIPTS): Add `grub-mkfloppy'.
14011 (grub_mkfloppy_SOURCES): New variable.
14012
14013 * util/grub-mkrescue.in: New file.
14014 * util/i386/pc/grub-mkfloppy.in: New file.
14015
14016 * util/i386/coreboot/grub-mkrescue.in: Remove.
14017 * util/i386/pc/grub-mkrescue.in: Remove.
14018
14019 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
14020
14021 * include/grub/multiboot.h (struct grub_multiboot_header): Move
14022 from here ...
14023 * include/multiboot.h (struct multiboot_header): ... to here. Update
14024 all users.
14025 * include/grub/multiboot.h (struct grub_multiboot_info): Move
14026 from here ...
14027 * include/multiboot.h (struct multiboot_info): ... to here. Update
14028 all users.
14029 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
14030 from here ...
14031 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
14032 Update all users.
14033 * include/grub/multiboot.h (struct grub_mod_list): Move
14034 from here ...
14035 * include/multiboot.h (struct multiboot_mod_list): ... to here.
14036 Update all users.
14037
14038 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
14039
14040 * include/multiboot2.h (multiboot_word): Rename from this ...
14041 (multiboot2_word): ... to this. Update all users.
14042 (multiboot_header): Rename from this ...
14043 (multiboot2_header): ... to this. Update all users.
14044 (multiboot_tag_header): Rename from this ...
14045 (multiboot2_tag_header): ... to this. Update all users.
14046 (multiboot_tag_start): Rename from this ...
14047 (multiboot2_tag_start): ... to this. Update all users.
14048 (multiboot_tag_name): Rename from this ...
14049 (multiboot2_tag_name): ... to this. Update all users.
14050 (multiboot_tag_module): Rename from this ...
14051 (multiboot2_tag_module): ... to this. Update all users.
14052 (multiboot_tag_memory): Rename from this ...
14053 (multiboot2_tag_memory): ... to this. Update all users.
14054 (multiboot_tag_unused): Rename from this ...
14055 (multiboot2_tag_unused): ... to this. Update all users.
14056 (multiboot_tag_end): Rename from this ...
14057 (multiboot2_tag_end): ... to this. Update all users.
14058
14059 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
14060
14061 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
14062 this platform we should support Multiboot1 first.
14063
14064 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
14065 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
14066 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
14067
14068 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
14069
14070 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
14071 of write calls (converting them to fwrite() if they aren't already).
14072 (get_torito_desc): Likewise.
14073 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
14074
14075 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
14076
14077 * util/i386/pc/grub-install.in: Move from here ...
14078 * util/grub-install.in: ... to here. Update all users.
14079
14080 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
14081
14082 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
14083
14084 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
14085
14086 Support for El Torito without floppy emulation.
14087
14088 * util/mkisofs/eltorito.c: Include `<errno.h>'.
14089 (init_boot_catalog): Improve error handling.
14090 (get_torito_desc): Don't use floppy emulation unless requested by
14091 user. Patch boot information table when requested via
14092 `-boot-info-table'.
14093 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
14094 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
14095 (use_boot_info_table): New variables.
14096 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
14097 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
14098 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
14099 `--eltorito-emul-floppy'.
14100 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
14101 and `OPTION_ELTORITO_EMUL_FLOPPY'.
14102 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
14103 (use_boot_info_table, get_731): New prototypes.
14104 * util/mkisofs/write.c (get_731): New function.
14105
14106 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
14107
14108 Fix the generation of the man page.
14109
14110 * util/pc/i386/grub-install.in: Source
14111 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
14112
14113 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
14114
14115 Large file support for grub-mkisofs.
14116
14117 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
14118 * util/mkisofs/mkisofs.c (next_extent, last_extent)
14119 (session_start): Upgrade type to `uint64_t'. Update all users.
14120 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
14121 (struct directory_entry): Upgrade type of `starting_block' and
14122 `size' to `uint64_t'. Update all users.
14123 (struct deferred): Remove unused structure.
14124 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
14125 Update all users.
14126 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
14127 file is larger than `UINT32_MAX'.
14128 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
14129 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
14130 return value.
14131 (struct deferred_write): Upgrade type of `extent' and `size' to
14132 `uint64_t'. Update all users.
14133 (last_extent_written): Upgrade type to `uint64_t'. Update all
14134 users.
14135 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
14136 Update all users. Upgrade type of `remain' to `int64_t' and
14137 `use' to `size_t'. Use error() to handle fread() errors.
14138 (write_files): Rely on write_one_file() rather than calling
14139 xfwrite() directly.
14140
14141 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
14142
14143 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
14144
14145 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14146
14147 * util/mkisofs/fnmatch.c: Remove.
14148 * util/mkisofs/getopt1.c: Likewise.
14149 * util/mkisofs/getopt.c: Likewise.
14150 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
14151 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
14152 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
14153 `gnulib/getopt1.c' and `gnulib/getopt.c'.
14154 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
14155
14156 * configure.ac: Detect `mingw32msvc' host_os.
14157 Check for lstat(), getuid() and getgid().
14158
14159 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
14160 instances of `u_char' with `uint8_t'.
14161
14162 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
14163 [!HAVE_GETUID] (getuid): New function (stub).
14164 [!HAVE_GETGID] (getgid): Likewise.
14165 [!HAVE_LSTAT] (lstat): Likewise.
14166 [!S_IROTH] (S_IROTH): New macro (dummy).
14167 [!S_IRGRP] (S_IRGRP): Likewise.
14168
14169 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14170
14171 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
14172 conditional expression).
14173
14174 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14175
14176 Import from Gnulib.
14177
14178 * gnulib/fnmatch.c: New file.
14179 * gnulib/fnmatch.h: Likewise.
14180 * gnulib/fnmatch_loop.c: Likewise.
14181 * gnulib/getopt.c: Likewise.
14182 * gnulib/getopt.h: Likewise.
14183 * gnulib/getopt1.c: Likewise.
14184 * gnulib/getopt_int.h: Likewise.
14185 * gnulib/gettext.h: Likewise.
14186
14187 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14188
14189 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
14190 * normal/handler.c (read_handler_list): Likewise.
14191
14192 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14193
14194 Misc cleanup.
14195
14196 * kern/command.c (grub_register_command_prio): Use
14197 grub_zalloc() instead of explicitly zeroing data.
14198 * kern/list.c: Include `<grub/mm.h>'.
14199 (grub_named_list_find): Replace `0' with `NULL'.
14200 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
14201 (fs_module_list): Change type to `grub_named_list_t'. Update all
14202 users.
14203 * normal/dyncmd.c (read_command_list): Add space between function
14204 call and parenthesis.
14205 * normal/handler.c (read_handler_list): Likewise.
14206
14207 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14208
14209 * normal/auth.c (punishment_delay): Moved from here ...
14210 (grub_auth_strcmp): ... to here (inside function).
14211
14212 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14213
14214 * include/grub/list.h (struct grub_named_list): Remove `const'
14215 qualifier from `name'.
14216 (struct grub_prio_list): Likewise.
14217
14218 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14219
14220 * normal/auth.c: Include `<grub/time.h>'.
14221 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
14222
14223 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14224
14225 * normal/auth.c (punishment_delay): New variable.
14226 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
14227 (grub_auth_check_authentication): Punish failed login attempts with
14228 an incremental (2^N) delay.
14229
14230 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14231
14232 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
14233 path with $(srcdir).
14234
14235 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
14236
14237 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
14238
14239 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14240
14241 * util/i386/coreboot/grub-mkrescue.in: New file.
14242 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
14243 variables.
14244
14245 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
14246 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
14247 * configure.ac: Add header and function checks to satisfy grub-mkisofs
14248 requirements.
14249 * util/mkisofs/defaults.h: New file.
14250 * util/mkisofs/eltorito.c: Likewise.
14251 * util/mkisofs/exclude.h: Likewise.
14252 * util/mkisofs/fnmatch.c: Likewise.
14253 * util/mkisofs/getopt.c: Likewise.
14254 * util/mkisofs/getopt1.c: Likewise.
14255 * util/mkisofs/hash.c: Likewise.
14256 * util/mkisofs/include/fctldefs.h: Likewise.
14257 * util/mkisofs/include/mconfig.h: Likewise.
14258 * util/mkisofs/include/prototyp.h: Likewise.
14259 * util/mkisofs/include/statdefs.h: Likewise.
14260 * util/mkisofs/iso9660.h: Likewise.
14261 * util/mkisofs/joliet.c: Likewise.
14262 * util/mkisofs/match.c: Likewise.
14263 * util/mkisofs/match.h: Likewise.
14264 * util/mkisofs/mkisofs.c: Likewise.
14265 * util/mkisofs/mkisofs.h: Likewise.
14266 * util/mkisofs/multi.c: Likewise.
14267 * util/mkisofs/name.c: Likewise.
14268 * util/mkisofs/rock.c: Likewise.
14269 * util/mkisofs/tree.c: Likewise.
14270 * util/mkisofs/write.c: Likewise.
14271
14272 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
14273
14274 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
14275 being insecure.
14276
14277 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
14278
14279 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
14280 `grub-mkimage' (and use $0 when possible).
14281
14282 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
14283
14284 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
14285 error message for excessively large memory map.
14286
14287 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
14288
14289 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
14290 executable bit.
14291
14292 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
14293
14294 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
14295 message for coreboot users.
14296
14297 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
14298
14299 Fix build with GNU gold.
14300
14301 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
14302 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
14303 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
14304 link addresses.
14305 * aclocal.m4: Likewise.
14306
14307 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
14308
14309 * configure.ac (AC_PREREQ): Bump to 2.59d.
14310 * INSTALL: Make it more clear when Autoconf and Ruby are
14311 needed and when to run `./autogen.sh'.
14312
14313 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14314
14315 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
14316 OSes.
14317
14318 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14319
14320 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
14321
14322 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14323
14324 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
14325 giving it to GNU Mach.
14326
14327 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14328
14329 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
14330 GNU partition number to get internal GRUB partition number.
14331
14332 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14333
14334 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
14335 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
14336
14337 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
14338
14339 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
14340 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
14341 case.
14342
14343 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
14344
14345 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
14346
14347 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
14348
14349 Fix build problem.
14350
14351 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
14352 `-isystem=$(srcdir)/include'.
14353
14354 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
14355
14356 * util/i386/pc/grub-install.in: Remove hint that device.map should be
14357 checked (grub-install doesn't currently rely on it).
14358
14359 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
14360
14361 Revert SVN r2660.
14362
14363 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
14364 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
14365 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
14366 * conf/i386-ieee1275.rmk: Likewise.
14367 * conf/i386-pc.rmk: Likewise.
14368 * conf/powerpc-ieee1275.rmk: Likewise.
14369 * conf/sparc64-ieee1275.rmk: Likewise.
14370 * conf/x86_64-efi.rmk: Likewise.
14371
14372 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
14373
14374 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
14375
14376 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
14377
14378 * include/grub/misc.h: Stop checking for APPLE_CC.
14379
14380 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
14381
14382 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
14383 doesn't cause an infinite call loop.
14384
14385 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
14386
14387 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
14388 strings.
14389
14390 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
14391
14392 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
14393 variable.
14394 * Makefile.in: Likewise.
14395
14396 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
14397
14398 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
14399
14400 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
14401
14402 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
14403
14404 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
14405
14406 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
14407
14408 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
14409
14410 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
14411 from here ...
14412 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
14413
14414 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
14415
14416 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
14417 in $(MAKEINFO) invocation. This makes it clear in output that
14418 errors are being ignored.
14419
14420 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
14421
14422 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
14423 from here ...
14424 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
14425 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
14426 * conf/i386-ieee1275.rmk: Likewise.
14427 * conf/i386-pc.rmk: Likewise.
14428 * conf/powerpc-ieee1275.rmk: Likewise.
14429 * conf/sparc64-ieee1275.rmk: Likewise.
14430 * conf/x86_64-efi.rmk: Likewise.
14431
14432 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
14433
14434 * util/grub-editenv.c (main): If only a command is given, use
14435 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
14436 (usage): FILENAME is now optional and has a default.
14437
14438 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
14439
14440 Improve grub-mkconfig performance when there are several menu
14441 entries on a single filesystem.
14442
14443 * util/grub.d/10_linux.in (linux_entry): Cache the output of
14444 prepare_grub_to_access_device.
14445 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
14446 * util/grub.d/30_os-prober.in: Likewise.
14447
14448 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
14449
14450 * util/grub.d/10_freebsd.in: Remove.
14451 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
14452 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
14453
14454 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
14455
14456 * docs/grub.cfg: Fix example usage of *BSD loaders.
14457
14458 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14459
14460 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
14461 grub_util_error() call.
14462
14463 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14464
14465 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
14466 `reserved_first_sector' member.
14467 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
14468 `reserved_first_sector' to 1.
14469 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
14470 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
14471 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
14472 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
14473 filesystems which begin at first sector.
14474 (options): New option --skip-fs-probe.
14475 (main): Handle --skip-fs-probe and pass it to setup().
14476
14477 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14478
14479 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
14480 (memset): Fix function prototype.
14481
14482 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14483 2009-10-25 Vasily Averin <vvs@parallels.com>
14484
14485 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
14486 `dirent.direntlen == 0'.
14487
14488 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14489
14490 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
14491 `cpio'.
14492 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
14493
14494 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14495
14496 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
14497 `__trampoline_setup' and `__ucmpdi2'.
14498 * include/grub/powerpc/libgcc.h: Only export symbols for functions
14499 that libgcc provides.
14500
14501 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14502
14503 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
14504 * include/grub/sparc64/libgcc.h (memset): Likewise.
14505 * include/grub/misc.h (memset, memcmp): New function prototypes.
14506
14507 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14508
14509 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
14510 `cpio'.
14511 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
14512
14513 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14514
14515 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
14516 * docs/grub.cfg: Compensate for recent change in multiboot
14517 loader (since 2009-08-14 it won't pass filename to payload).
14518 * util/grub.d/10_hurd.in: Likewise.
14519
14520 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
14521
14522 * config.guess: Update to latest version from config git
14523 repository.
14524 * config.sub: Likewise.
14525
14526 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
14527
14528 Fix build on sparc64.
14529
14530 * configure.ac: Perform checks for libgcc symbols before
14531 adding `-nostdlib' to LDFLAGS.
14532
14533 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14534
14535 Let user specify OpenBSD root device.
14536
14537 * loader/i386/bsd.c (openbsd_root): New variable.
14538 (openbsd_opts): New option 'root'.
14539 (OPENBSD_ROOT_ARG): New macro.
14540 (grub_openbsd_boot): Use 'openbsd_root'.
14541 (grub_cmd_openbsd): Fill 'openbsd_root'.
14542
14543 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
14544
14545 * NEWS: Misc adjustments.
14546
14547 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14548
14549 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
14550
14551 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
14552
14553 * configure.ac: Bump version to 1.97.
14554
14555 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
14556
14557 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
14558 -mno-3dnow on x86 architectures. Some toolchains enable these
14559 features by default, but they rely on registers that aren't enabled
14560 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
14561
14562 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
14563
14564 Make entry text a bit more readable.
14565
14566 * util/grub.d/10_linux.in: Add `with' before `Linux'.
14567
14568 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
14569
14570 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
14571
14572 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
14573
14574 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
14575 operations.
14576
14577 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
14578
14579 * configure.ac: Add missing dollar.
14580
14581 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
14582
14583 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
14584
14585 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
14586 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
14587 exports.
14588 * include/grub/sparc64/libgcc.h: Likewise. Use
14589 preprocessor conditionals.
14590
14591 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
14592
14593 * conf/common.rmk (grub-dumpbios): Remove rule.
14594 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
14595 * util/grub-dumpbios.in: Remove file.
14596
14597 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
14598
14599 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
14600 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
14601
14602 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
14603 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
14604 users.
14605
14606 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
14607 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
14608 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
14609 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
14610 users.
14611
14612 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
14613
14614 * term/tparm.c: Switch to GPLv3.
14615
14616 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
14617
14618 * include/grub/i386/cpuid.h: Add header protection.
14619
14620 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
14621
14622 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
14623
14624 * include/grub/i386/cpuid.h: New file.
14625 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
14626 (has_longmode): Rename to ...
14627 (grub_cpuid_has_longmode): ... this. Update all users. Remove
14628 `static' attribute.
14629 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
14630 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
14631 on a CPU that doesn't implement AMD64 instruction set.
14632
14633 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
14634
14635 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
14636 that version.texi is rebuilt on version number changes.
14637
14638 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
14639
14640 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
14641 Fixes bug #27602.
14642
14643 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
14644
14645 * util/i386/pc/grub-install.in: Source
14646 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
14647 that the --grub-probe option will work.
14648 * util/sparc64/ieee1275/grub-install.in: Likewise.
14649
14650 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
14651
14652 * configure.ac: Bump version to 1.97~beta4.
14653
14654 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
14655
14656 Resync grub-mkdevicemap in x86_64-efi.
14657
14658 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
14659 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
14660 `util/devicemap.c'.
14661
14662 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
14663
14664 * util/grub-editenv.c (create_envblk_file): Write new block with a
14665 .new suffix and then rename it into place, to ensure atomic
14666 creation.
14667
14668 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
14669
14670 Do not automatically install headers.
14671
14672 * Makefile.in (include_DATA): Remove. Update all users.
14673
14674 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
14675
14676 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
14677 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
14678
14679 * util/osdetect.lua: Remove.
14680 * script/lua/lauxlib.c: Likewise.
14681 * script/lua/ldebug.c: Likewise.
14682 * script/lua/grub_main.c: Likewise.
14683 * script/lua/lauxlib.h: Likewise.
14684 * script/lua/ldebug.h: Likewise.
14685 * script/lua/ltablib.c: Likewise.
14686 * script/lua/liolib.c: Likewise.
14687 * script/lua/lstrlib.c: Likewise.
14688 * script/lua/lualib.h: Likewise.
14689 * script/lua/ldo.c: Likewise.
14690 * script/lua/ldump.c: Likewise.
14691 * script/lua/ldo.h: Likewise.
14692 * script/lua/loslib.c: Likewise.
14693 * script/lua/lundump.c: Likewise.
14694 * script/lua/grub_lib.c: Likewise.
14695 * script/lua/ldblib.c: Likewise.
14696 * script/lua/lundump.h: Likewise.
14697 * script/lua/lmem.c: Likewise.
14698 * script/lua/grub_lib.h: Likewise.
14699 * script/lua/lmathlib.c: Likewise.
14700 * script/lua/lstate.c: Likewise.
14701 * script/lua/ltm.c: Likewise.
14702 * script/lua/lvm.c: Likewise.
14703 * script/lua/lmem.h: Likewise.
14704 * script/lua/lstate.h: Likewise.
14705 * script/lua/ltm.h: Likewise.
14706 * script/lua/ltable.c: Likewise.
14707 * script/lua/lvm.h: Likewise.
14708 * script/lua/llex.c: Likewise.
14709 * script/lua/lgc.c: Likewise.
14710 * script/lua/grub_lua.h: Likewise.
14711 * script/lua/loadlib.c: Likewise.
14712 * script/lua/lfunc.c: Likewise.
14713 * script/lua/lopcodes.c: Likewise.
14714 * script/lua/lparser.c: Likewise.
14715 * script/lua/ltable.h: Likewise.
14716 * script/lua/llex.h: Likewise.
14717 * script/lua/lgc.h: Likewise.
14718 * script/lua/lfunc.h: Likewise.
14719 * script/lua/lbaselib.c: Likewise.
14720 * script/lua/lopcodes.h: Likewise.
14721 * script/lua/lparser.h: Likewise.
14722 * script/lua/lzio.c: Likewise.
14723 * script/lua/linit.c: Likewise.
14724 * script/lua/lobject.c: Likewise.
14725 * script/lua/llimits.h: Likewise.
14726 * script/lua/lstring.c: Likewise.
14727 * script/lua/lzio.h: Likewise.
14728 * script/lua/lapi.c: Likewise.
14729 * script/lua/lcode.c: Likewise.
14730 * script/lua/lua.h: Likewise.
14731 * script/lua/lobject.h: Likewise.
14732 * script/lua/lstring.h: Likewise.
14733 * script/lua/lapi.h: Likewise.
14734 * script/lua/lcode.h: Likewise.
14735 * script/lua/luaconf.h: Likewise.
14736
14737 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
14738
14739 * docs/grub.texi (Command-line and menu entry commands): Document
14740 date and echo commands.
14741
14742 2009-09-24 Pavel Roskin <proski@gnu.org>
14743
14744 * include/grub/kernel.h (struct grub_module_header): Remove
14745 `grub_module_header_types'. Make `type' unsigned. Make `size'
14746 32-bit on all platforms.
14747 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
14748 8-bit field. Use grub_host_to_target32() for `size'.
14749 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
14750 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
14751 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
14752
14753 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
14754
14755 Fix "lost keypress" bug in at_keyboard.
14756
14757 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
14758 Checks for readyness of input buffer (without flushing it).
14759 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
14760 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
14761
14762 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
14763
14764 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
14765 size check within GRUB_MACHINE_PCBIOS section.
14766
14767 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
14768
14769 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
14770 return value.
14771 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
14772 KEYBOARD_ISREADY check.
14773 (grub_at_keyboard_checkkey): Rename to ...
14774 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
14775 Remove gratuitous cast.
14776
14777 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
14778
14779 * configure.ac: Call AC_PROG_MKDIR_P.
14780 * Makefile.in (docs/stamp-vti): Create docs directory. Create
14781 version.texi in $(builddir) rather than $(srcdir).
14782 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
14783 to makeinfo's @include search path.
14784
14785 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
14786
14787 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
14788
14789 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
14790
14791 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
14792 for `*.dpkg-new'.
14793
14794 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
14795
14796 Build info documentation. Some code borrowed from Automake.
14797
14798 * configure.ac: Check for makeinfo.
14799 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
14800 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
14801 docs/version.texi.
14802 (MOSTLYCLEANFILES): Add vti.tmp.
14803 (docs/version.texi, docs/stamp-vti): Update automatically.
14804 (docs/grub.info): Build info documentation. Use --force and ignore
14805 errors for now.
14806 (all-local): Add $(INFOS).
14807 (install-local): Install info files.
14808 (uninstall): Uninstall info files.
14809 * docs/version.texi: Remove from revision control. This file is
14810 automatically generated on build now.
14811 * gendistlist.sh: Add `*.info'.
14812
14813 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
14814
14815 * kern/term.c: Fix indentation.
14816
14817 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
14818
14819 * util/hostdisk.c: Fix a comment.
14820
14821 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
14822
14823 Fix regression introduced in r2539.
14824
14825 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
14826 to 0xA1.
14827
14828 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
14829
14830 * util/grub.d/30_os-prober.in: Don't throw away stderr from
14831 os-prober. Under normal operation, it does not print anything to
14832 stderr; if it does, we need to debug it, and throwing away stderr
14833 makes that excessively difficult.
14834
14835 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
14836
14837 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
14838
14839 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
14840
14841 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
14842 AC_LANG_PROGRAM from autoconf.
14843 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
14844 prototypes (fixes warning).
14845
14846 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
14847 `--disable-werror' was used.
14848
14849 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
14850
14851 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
14852 uninitialized `lastaddr'.
14853
14854 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
14855
14856 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
14857
14858 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
14859
14860 * commands/test.c (get_fileinfo): Return immediately if
14861 grub_fs_probe fails.
14862
14863 2009-09-14 José Martínez <xosemp@gmail.com>
14864
14865 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
14866
14867 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
14868
14869 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
14870 output.
14871
14872 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
14873
14874 * configure.ac: Remove --enable-grub-pe2elf. Only build
14875 grub-pe2elf when needed by the build system itself.
14876 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
14877
14878 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
14879
14880 * configure.ac: Bump version to 1.97~beta3.
14881 * docs/version.texi: Likewise.
14882
14883 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
14884
14885 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
14886 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
14887 from here ...
14888 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
14889 (grub_linux_setup_video): ... to here (with some adjustments).
14890
14891 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
14892
14893 Fix memory corruption issue (spotted by Colin Watson).
14894
14895 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
14896 causing returned size to be stored in an incorrect memory location.
14897 Fix use of uninitialized value when storing the returned size.
14898
14899 2009-09-12 Yves Blusseau <blusseau@zetam.org>
14900
14901 Change clean rules to properly remove files
14902
14903 * genmk.rb: add new clean rules
14904 * Makefile.in (clean): add the new targets
14905 (mostlyclean): likewise
14906
14907 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
14908
14909 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
14910 to grub_uint64_t.
14911 * fs/ntfs.c (init_file): Understand 64-bit sizes for
14912 non-resident files.
14913
14914 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
14915
14916 * configure.ac: Don't look for help2man when cross-compiling. Fixes
14917 part of bug #27349.
14918
14919 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
14920
14921 * util/grub-mkconfig.in: Make the created config mode 400 and
14922 print a warning if it fails.
14923
14924 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
14925
14926 * util/grub.d/40_custom.in: Ask user to type custom entries below
14927 comment, rather than below 'exec tail' line.
14928
14929 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
14930
14931 * util/grub.d/40_custom.in: Make sure that the explanatory text is
14932 visible in grub.cfg.
14933
14934 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
14935
14936 * util/grub.d/40_custom.in: Make it a little clearer how to use this
14937 file.
14938
14939 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
14940
14941 * docs/grub.cfg: Add an example menu entry for memtest86+.
14942
14943 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
14944
14945 * config.guess: Update to latest version from config git.
14946 * config.sub: Likewise.
14947
14948 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
14949
14950 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
14951 unknown-command case. Fixes bug #27320.
14952
14953 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
14954
14955 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
14956 `help' if the command exists.
14957
14958 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
14959
14960 * INSTALL: Require GCC 4.1.3 or later.
14961
14962 2009-09-06 Yves Blusseau <blusseau@zetam.org>
14963
14964 * Makefile.in (RMKFILES): add i386-qemu.rmk
14965 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
14966 $(srcdir)/stamp-h.in
14967
14968 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
14969
14970 * util/grub-probe.c (probe): Comment out buggy codepath, which
14971 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
14972 should be re-enabled after 1.97.
14973
14974 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
14975
14976 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
14977 find searches for.
14978
14979 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
14980
14981 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
14982 unnecessary calls to grub_error.
14983
14984 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
14985
14986 * NEWS: Mention `keystatus' and Unicode fonts.
14987
14988 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
14989
14990 * configure.ac: Bump version to 1.97~beta2.
14991 * docs/version.texi: Likewise.
14992
14993 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
14994
14995 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
14996 containing unwind information in some cases where it previously did
14997 not. Use -fno-dwarf2-cfi-asm if available to restore the old
14998 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
14999 discussion.
15000
15001 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
15002
15003 Embedding loadenv module into grub-emu
15004
15005 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
15006 commands/loadenv.c
15007 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
15008 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
15009 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
15010 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
15011 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
15012 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
15013
15014 2009-09-03 Magnus Granberg <zorry@ume.nu>
15015
15016 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
15017 include -fPIE in the default specs.
15018 * configure.ac: Check if pie_possible is yes and add -fno-PIE
15019 to TARGET_CFLAGS.
15020
15021 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
15022
15023 * INSTALL: Note that GNU Bison 2.3 or later is required.
15024
15025 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
15026
15027 * kern/i386/pc/startup.S: Fix typo.
15028
15029 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
15030
15031 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
15032 according to GCS.
15033
15034 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
15035
15036 * docs/grub.texi (Naming convention): Describe one-based partition
15037 numbering.
15038 (Device syntax): Likewise.
15039 (File name syntax): Likewise.
15040 (Block list syntax): Likewise.
15041 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
15042 menu.lst.
15043 (File name syntax): Likewise.
15044 (Command-line and menu entry commands): Document acpi, blocklist,
15045 crc, export, insmod, keystatus, ls, set, and unset commands.
15046
15047 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
15048
15049 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
15050 to avoid implying that only one of --shift, --ctrl, or --alt may be
15051 used.
15052
15053 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
15054
15055 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
15056 rather than comparing against S_IFREG, which will almost never work.
15057
15058 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
15059
15060 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
15061 (write_blocklists): Likewise.
15062
15063 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
15064
15065 * script/lua/grub_lua.h (fputs): Supply a format string as the first
15066 argument to grub_printf.
15067
15068 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
15069
15070 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
15071 non GNU test.
15072
15073 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
15074
15075 * kern/file.c (grub_file_read): Spelling fix
15076
15077 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
15078
15079 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
15080 loading of headers in some cases.
15081
15082 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
15083
15084 * configure.ac: Bump version to 1.97~beta1.
15085 * docs/version.texi: Likewise.
15086
15087 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
15088
15089 * include/grub/i386/xnu.h: Add license header.
15090 include grub/err.h explicitly.
15091
15092 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
15093
15094 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
15095 to `ufs' in the vfs.root.mountfrom kernel parameter.
15096
15097 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
15098
15099 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
15100
15101 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
15102 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
15103
15104 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
15105 `ARRAY_SIZE' macro.
15106
15107 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
15108
15109 * kern/file.c (grub_file_read): Check offset.
15110 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
15111 * fs/jfs.c (grub_jfs_read_file): Likewise.
15112 * fs/ntfs.c (grub_ntfs_read): Likewise.
15113 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
15114 * fs/minix.c (grub_minix_read_file): Correct offset check.
15115 * fs/ufs.c (grub_ufs_read_file): Likewise.
15116
15117 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
15118
15119 * term/i386/pc/console.c (bios_data_area): Cast
15120 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
15121
15122 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
15123
15124 1-bit optimised blitters.
15125
15126 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
15127 prototype.
15128 (grub_video_fbblit_replace_24bit_1bit): Likewise.
15129 (grub_video_fbblit_replace_16bit_1bit): Likewise.
15130 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15131 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15132 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
15133 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
15134 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
15135 function.
15136 (grub_video_fbblit_replace_24bit_1bit): Likewise.
15137 (grub_video_fbblit_replace_16bit_1bit): Likewise.
15138 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15139 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15140 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
15141 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
15142 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
15143 when possible.
15144 * video/video.c (grub_video_get_blit_format): Return
15145 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
15146
15147 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
15148
15149 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
15150 the first argument to grub_printf.
15151
15152 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
15153 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
15154
15155 Add `getkeystatus' terminal method. Add a new `keystatus' command
15156 to query it.
15157
15158 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
15159 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
15160 modifier key bitmasks.
15161 (struct grub_term_input): Add `getkeystatus' member.
15162 (grub_getkeystatus): Add prototype.
15163 * kern/term.c (grub_getkeystatus): New function.
15164
15165 * include/grub/i386/pc/memory.h
15166 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
15167 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
15168 Data Area layout.
15169 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
15170 (grub_console_term_input): Set `getkeystatus' member.
15171 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
15172 constants.
15173 (grub_usb_keyboard_getreport): Likewise.
15174 (grub_usb_keyboard_checkkey): Likewise.
15175 (grub_usb_keyboard_getkeystatus): New function.
15176 (grub_usb_keyboard_term): Set `getkeystatus' member.
15177
15178 * commands/keystatus.c: New file.
15179 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
15180 (keystatus_mod_SOURCES): New variable.
15181 (keystatus_mod_CFLAGS): Likewise.
15182 (keystatus_mod_LDFLAGS): Likewise.
15183 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
15184 commands/keystatus.c.
15185 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15186 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15187 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15188 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15189 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15190 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15191
15192 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
15193
15194 Split befs.mod and afs.mod into *_be.mod and *.mod
15195
15196 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
15197 (grub_fstest_SOURCES): Likewise.
15198 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
15199 (afs_be_mod_SOURCES): New variable.
15200 (afs_be_mod_CFLAGS): Likewise.
15201 (afs_be_mod_LDFLAGS): Likewise.
15202 (befs_be_mod_SOURCES): Likewise.
15203 (befs_be_mod_CFLAGS): Likewise.
15204 (befs_be_mod_LDFLAGS): Likewise.
15205 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
15206 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15207 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15208 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
15209 (grub_emu_SOURCES): Likewise.
15210 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15211 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15212 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15213 * fs/afs_be.c: New file.
15214 * fs/befs_be.c: New file.
15215 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
15216 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
15217 (U16): Replaced with ...
15218 (grub_afs_to_cpu16): ...this. All users updated.
15219 (U32): Replaced with ...
15220 (grub_afs_to_cpu32): ...this. All users updated.
15221 (U64): Replaced with ...
15222 (grub_afs_to_cpu64): ...this. All users updated.
15223 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
15224 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
15225 (grub_afs_validate_sblock): Check only one endianness.
15226 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
15227 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
15228 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
15229 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
15230 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
15231 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
15232 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
15233 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
15234
15235 2009-08-26 Bean <bean123ch@gmail.com>
15236
15237 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
15238 64-bit number.
15239 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
15240 (grub_xfs_inode_block): Change return type to grub_uint64_t.
15241 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
15242
15243 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
15244
15245 NetBSD memory map support.
15246
15247 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
15248 (grub_netbsd_btinfo_mmap_header): New structure.
15249 (grub_netbsd_btinfo_mmap_entry): Likewise.
15250 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
15251
15252 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
15253
15254 Enable bsd.mod on coreboot.
15255
15256 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
15257 (bsd_mod_SOURCES): New variable.
15258 (bsd_mod_CFLAGS): Likewise.
15259 (bsd_mod_LDFLAGS): Likewise.
15260 (bsd_mod_ASFLAGS): Likewise.
15261 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
15262 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
15263
15264 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
15265
15266 Cleanup NetBSD root support.
15267
15268 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
15269 grub_bsd_get_device.
15270 Fix typo.
15271
15272 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
15273
15274 * util/grub.d/00_header.in: Move check for the video backend of
15275 gfxterm from here ...
15276 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
15277 a suitable video backend.
15278
15279 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
15280
15281 Fix breakage in grub-setup.
15282
15283 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
15284 "msdos_partition_map".
15285
15286 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
15287
15288 Fix breakage in normal/auth.c.
15289
15290 * normal/auth.c (grub_iswordseparator): New function.
15291
15292 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
15293
15294 Authentication support.
15295
15296 * commands/password.c: New file.
15297 * conf/common.rmk (pkglib_MODULES): Add password.mod.
15298 (password_mod_SOURCES): New variable.
15299 (password_mod_CFLAGS): Likewise.
15300 (password_mod_LDFLAGS): Likewise.
15301 (normal_mod_SOURCES): Add normal/auth.c.
15302 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
15303 normal/auth.c.
15304 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15305 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15306 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15307 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15308 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15309 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15310 * include/grub/auth.h: New file.
15311 * include/grub/err.h (grub_err_t): New enum value
15312 GRUB_ERR_ACCESS_DENIED.
15313 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
15314 'users'.
15315 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
15316 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
15317 users updated.
15318 * normal/auth.c: New file.
15319 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
15320 (grub_cmdline_run): Don't allow to go to command line without
15321 authentication.
15322 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
15323 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
15324 menuentry without superuser rights.
15325 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
15326 user isn't a superuser.
15327
15328 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
15329
15330 Save space by inlining misc.c functions.
15331
15332 * kern/misc.c (grub_iswordseparator): Made static.
15333 * kern/misc.c (grub_strcat): Moved from here ...
15334 * include/grub/misc.h (grub_strcat): ... here. Inlined.
15335 * kern/misc.c (grub_strncat): Moved from here ...
15336 * include/grub/misc.h (grub_strncat): ... here. Inlined.
15337 * kern/misc.c (grub_strcasecmp): Moved from here ...
15338 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
15339 * kern/misc.c (grub_strncasecmp): Moved from here ...
15340 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
15341 * kern/misc.c (grub_isalpha): Moved from here ...
15342 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
15343 * kern/misc.c (grub_isdigit): Moved from here ...
15344 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
15345 * kern/misc.c (grub_isgraph): Moved from here ...
15346 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
15347 * kern/misc.c (grub_tolower): Moved from here ...
15348 * include/grub/misc.h (grub_tolower): ... here. Inlined.
15349
15350 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
15351
15352 * script/sh/function.c (grub_script_function_find): Cut error message
15353 not to flood terminal.
15354 * script/sh/lexer.c (grub_script_yylex): Remove command line length
15355 limit.
15356 * script/sh/script.c (grub_script_arg_add): Duplicate string.
15357
15358 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
15359
15360 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
15361 `report' grub_uint8_t *.
15362 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
15363 Use a 50-millisecond timeout rather than just repeating
15364 grub_usb_keyboard_getreport 50 times.
15365 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
15366
15367 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
15368
15369 Rename *_partition_map to part_*
15370
15371 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
15372 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
15373 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
15374 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
15375 All users updated.
15376 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
15377 All users updated.
15378 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
15379 * util/grub-probe.c (probe_partmap): Don't transform partition name
15380 to get module name.
15381
15382 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
15383
15384 Fix OpenBSD and NetBSD support.
15385
15386 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
15387 memory address conflict.
15388 (OPENBSD_MMAP_ACPI): New definition.
15389 (OPENBSD_MMAP_NVS): Likewise.
15390 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
15391 and OPENBSD_MMAP_NVS.
15392 Add memory map terminator
15393 Explicit cast when calling grub_unix_real_boot.
15394 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
15395
15396 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
15397
15398 Let user specify NetBSD root device.
15399
15400 * loader/i386/bsd.c (netbsd_root): New variable.
15401 (netbsd_opts): New option 'root'.
15402 (NETBSD_ROOT_ARG): New macro.
15403 (grub_netbsd_boot): Use 'netbsd_root'.
15404 (grub_bsd_unload): Free 'netbsd_root'.
15405 (grub_cmd_netbsd): Fill 'netbsd_root'.
15406
15407 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
15408
15409 Support for 64-bit NetBSD.
15410
15411 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
15412 point when booting non-FreeBSD.
15413
15414 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
15415
15416 Support --no-smp and --no-acpi for NetBSD.
15417
15418 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
15419 (NETBSD_AB_NOACPI): Likewise.
15420 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
15421 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
15422
15423 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
15424
15425 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
15426 errors.
15427 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
15428 errors. Call grub_error when needed.
15429
15430 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
15431
15432 * commands/search.c (search_fs): Try searching without autoload first.
15433 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
15434 filesystem module explicitly for faster booting.
15435
15436 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
15437
15438 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
15439
15440 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
15441
15442 * util/grub.d/30_os-prober.in: Disable os-prober if
15443 `GRUB_DISABLE_OS_PROBER' was set to true.
15444
15445 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
15446
15447 * partmap/pc.c: Rename to ...
15448 * partmap/msdos.c: ... this. Update all users.
15449 (grub_pc_partition_map): Rename to ...
15450 (grub_msdos_partition_map): ... this. Update all users.
15451
15452 * parttool/pcpart.c: Rename to ...
15453 * parttool/msdospart.c: ... this. Update all users.
15454
15455 * include/grub/pc_partition.h: Rename to ...
15456 * include/grub/msdos_partition.h: ... this. Update all users.
15457 (grub_pc_partition_bsd_entry): Rename to ...
15458 (grub_msdos_partition_bsd_entry): ... this. Update all users.
15459 (grub_pc_partition_disk_label): Rename to ...
15460 (grub_msdos_partition_disk_label): ... this. Update all users.
15461 (grub_pc_partition_entry): Rename to ...
15462 (grub_msdos_partition_entry): ... this. Update all users.
15463 (grub_pc_partition_mbr): Rename to ...
15464 (grub_msdos_partition_mbr): ... this. Update all users.
15465 (grub_pc_partition): Rename to ...
15466 (grub_msdos_partition): ... this. Update all users.
15467 (grub_pc_partition_is_empty): Rename to ...
15468 (grub_msdos_partition_is_empty): ... this. Update all users.
15469 (grub_pc_partition_is_extended): Rename to ...
15470 (grub_msdos_partition_is_extended): ... this. Update all users.
15471 (grub_pc_partition_is_bsd): Rename to ...
15472 (grub_msdos_partition_is_bsd): ... this. Update all users.
15473
15474 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
15475 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
15476 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
15477 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
15478 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
15479 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
15480 (gpt_mod_LDFLAGS): Rename to ...
15481 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
15482 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
15483 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
15484 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
15485 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
15486 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
15487 (part_gpt_mod_LDFLAGS): ... this.
15488 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
15489 `pcpart.mod' to `msdospart.mod'.
15490 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
15491 to ...
15492 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
15493 (msdospart_mod_LDFLAGS): ... this.
15494
15495 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
15496
15497 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
15498 (openbsd_opts): Likewise.
15499 (netbsd_opts): Likewise.
15500 (freebsd_flags): Added 0 terminator.
15501 (openbsd_flags): Likewise.
15502 (netbsd_flags): Likewise.
15503 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
15504 (grub_cmd_freebsd): Transformed into extended command.
15505 (grub_cmd_openbsd): Likewise.
15506 (grub_cmd_netbsd): Likewise.
15507 (cmd_freebsd): Changed type to grub_extcmd_t.
15508 (cmd_openbsd): Likewise.
15509 (cmd_netbsd): Likewise.
15510 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
15511 grub_cmd_openbsd as extended commands.
15512 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
15513 cmd_netbsd and cmd_openbsd
15514
15515 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
15516
15517 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
15518
15519 2009-08-21 Pavel Roskin <proski@gnu.org>
15520
15521 * Makefile.in (install-local): When checking if a file is in the
15522 build directory, use "test -e" to detect symlinks.
15523
15524 * Makefile.in (install-local): Remove all files in
15525 $(DESTDIR)$(pkglibdir) before installing new files there.
15526
15527 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
15528
15529 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
15530 grub-mkelfimage.
15531
15532 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
15533
15534 * util/grub-mkconfig.in: Don't use gfxterm by default if not
15535 explicitly specified by the user.
15536
15537 2009-08-18 Pavel Roskin <proski@gnu.org>
15538
15539 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
15540 grub_uint8_t pointer for data.
15541 * include/grub/fbutil.h (struct grub_video_fbblit_info):
15542 Likewise.
15543 * video/fb/fbutil.c: Remove unnecessary casts.
15544
15545 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
15546
15547 VBE cleanup.
15548
15549 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
15550 (grub_vbe_set_video_mode): Save active mode info
15551 only after setting the mode.
15552 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
15553 second argument.
15554
15555 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
15556
15557 Rename variables for clarity.
15558
15559 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
15560 (active_vbe_mode_info): ... this. All users updated.
15561 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
15562 All users updated.
15563 (initial_mode): Rename to ...
15564 (initial_vbe_mode): ... this. All users updated.
15565 (mode_in_use): Rename to ..
15566 (vbe_mode_in_use): ... this. All users updated.
15567 (mode_list): Rename to ..
15568 (vbe_mode_list): ... this. All users updated.
15569 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
15570 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
15571 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
15572 'mode_list_size' to 'vbe_mode_list_size'.
15573 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
15574 'best_mode_info' to 'best_vbe_mode_info' and
15575 'best_mode' to 'best_vbe_mode'
15576
15577 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
15578
15579 Remove duplicate grub_video_fb_get_video_ptr.
15580
15581 * include/grub/fbutil.h (get_data_ptr): Rename to ...
15582 (grub_video_fb_get_video_ptr): ... this.
15583 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
15584 * video/fb/fbutil.c: Add comment about addressing.
15585 (get_data_ptr): Rename to ...
15586 (grub_video_fb_get_video_ptr): ... this. All users updated.
15587 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
15588
15589 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
15590
15591 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
15592 grub_dprintf() that was just added.
15593
15594 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
15595
15596 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
15597 (DEFAULT_VIDEO_MODE): Remove macros.
15598 (grub_linux_boot): Remove assumption that Linux has FB support,
15599 and use "text" as default video mode.
15600
15601 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
15602
15603 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
15604 grub_dprintf.
15605 * fs/fat.c (grub_fat_read_data): Likewise.
15606
15607 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
15608
15609 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
15610 payload.
15611 (grub_module): Likewise.
15612
15613 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
15614
15615 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
15616 mbi->cmdline but free playground.
15617
15618 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
15619
15620 Handle group offset on UFS1.
15621
15622 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
15623 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
15624
15625 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
15626
15627 Split ufs.mod into ufs1.mod and ufs2.mod.
15628
15629 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
15630 (grub_fstest_SOURCES): Likewise.
15631 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
15632 (ufs_mod_SOURCES): Remove.
15633 (ufs_mod_CFLAGS): Likewise.
15634 (ufs_mod_LDFLAGS): Likewise.
15635 (ufs1_mod_SOURCES): New variable.
15636 (ufs1_mod_CFLAGS): Likewise.
15637 (ufs1_mod_LDFLAGS): Likewise.
15638 (ufs2_mod_SOURCES): New variable.
15639 (ufs2_mod_CFLAGS): Likewise.
15640 (ufs2_mod_LDFLAGS): Likewise.
15641 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
15642 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
15643 Likewise.
15644 (grub_emu_SOURCES): Likewise.
15645 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15646 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15647 (grub_setup_SOURCES): Likewise.
15648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15649 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
15650 (grub_setup_SOURCES): Likewise.
15651 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
15652 Likewise.
15653 * fs/ufs2.c: New file.
15654 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
15655
15656 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
15657
15658 Framebuffer split.
15659
15660 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
15661 subsystem at the end.
15662 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
15663 (video_fb_mod_SOURCES): New variable.
15664 (video_fb_mod_CFLAGS): Likewise.
15665 (video_fb_mod_LDFLAGS): Likewise.
15666 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
15667 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
15668 * video/i386/pc/vbeblit.c: Moved from here ...
15669 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
15670 * video/i386/pc/vbefill.c: Moved from here ...
15671 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
15672 * video/i386/pc/vbeutil.c: Moved from here ...
15673 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
15674 * include/grub/i386/pc/vbeblit.h: Moved from here ...
15675 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
15676 * include/grub/i386/pc/vbefill.h: Moved from here ...
15677 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
15678 * include/grub/i386/pc/vbeutil.h: Moved from here ...
15679 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
15680 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
15681 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
15682 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
15683 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
15684 (grub_video_adapter): Added 'get_info_and_fini'.
15685 (grub_video_get_info_and_fini): New prototype.
15686 (grub_video_set_mode): make modestring const char *.
15687 * loader/i386/linux.c (grub_linux_setup_video): Use
15688 grub_video_get_info_and_fini.
15689 (grub_linux_boot): Move modesetting just before booting.
15690 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
15691 grub_video_get_info_and_fini.
15692 * video/i386/pc/vbe.c: Moved framebuffer part ...
15693 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
15694 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
15695 grub_video_fbstd_colors and grub_video_fb_set_palette.
15696 (grub_video_vbe_init): Clear 'framebuffer' variable and use
15697 grub_video_fb_init.
15698 (grub_video_vbe_fini): Use grub_video_fb_fini.
15699 (grub_video_vbe_setup): Use framebuffer.render_target instead of
15700 render_target and use grub_video_fb_set_active_render_target and
15701 grub_video_fb_set_palette.
15702 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
15703 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
15704 (grub_video_vbe_adapter): Use framebuffer.
15705 * video/video.c (grub_video_get_info_and_fini): New function.
15706 (grub_video_set_mode): Make modestring const char *.
15707 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
15708 values are already initialised.
15709
15710 2009-08-14 Pavel Roskin <proski@gnu.org>
15711
15712 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
15713 ABS and APPLE_CC.
15714 * boot/i386/pc/diskboot.S: Likewise.
15715 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
15716 sectors allow compilation on MacOSX.
15717 * conf/i386-pc.rmk: Enable unconditional compilation of
15718 lnxboot.img.
15719
15720 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
15721
15722 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
15723 * util/grub.d/00_header.in: Enter interruptible sleep if
15724 GRUB_HIDDEN_TIMEOUT is set.
15725
15726 2009-08-13 Yves Blusseau <blusseau@zetam.org>
15727
15728 * include/grub/symbol.h: Add the LOCAL macro.
15729 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
15730 starting with "L_".
15731
15732 2009-08-13 Pavel Roskin <proski@gnu.org>
15733
15734 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
15735 any modern compilers we support.
15736
15737 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
15738 Use local labels starting with "L_" so that Apple assembler
15739 knows they are local.
15740
15741 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
15742
15743 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
15744 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
15745 (bsd_kernel_types): ... this enum.
15746
15747 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
15748 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
15749 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
15750
15751 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
15752 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
15753 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
15754 messages.
15755
15756 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
15757
15758 * util/grub-dumpdevtree: Moved from here ...
15759 * util/i386/efi/grub-dumpdevtree: ... to here.
15760 (hexify): New function. Converts a string to its hex version.
15761 Generate hex versions of "efi" and "device-properties" by calling
15762 hexify() on the ASCII strings rather than by hardcoding numbers.
15763
15764 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
15765
15766 * fs/jfs.c: Update copyright year.
15767
15768 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
15769
15770 * util/grub.d/00_header.in: Fix a comment.
15771 * util/grub.d/10_linux.in: Likewise.
15772 * util/grub.d/10_windows.in: Likewise.
15773 * util/grub.d/10_hurd.in: Likewise.
15774
15775 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
15776
15777 * util/grub-mkconfig.in: Allow the user to specify the used font
15778 with GRUB_FONT.
15779
15780 2009-08-08 Pavel Roskin <proski@gnu.org>
15781
15782 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
15783 available, xfs.mod needs it now.
15784
15785 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
15786 the "g" modifier in sed when the intention is to strip something
15787 once. This fixes comparison of kernels with multiple dashes.
15788
15789 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
15790 on it. Add missing space before closing bracket. Fix
15791 misleading formatting.
15792
15793 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
15794
15795 * docs/grub.texi: Major overhaul. Remove all sections that are
15796 specific to GRUB Legacy, or mostly composed of Legacy-specific
15797 information.
15798
15799 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
15800
15801 * docs/version.texi: New file. Provides version information for
15802 grub.texi.
15803
15804 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
15805
15806 * docs/grub.texi: Update CVS information to SVN.
15807 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
15808
15809 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
15810
15811 * util/grub-mkconfig.in: Remove a wrong `fi'.
15812
15813 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
15814
15815 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
15816 (grub_jfs_uuid): New function.
15817 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
15818
15819 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
15820
15821 * util/grub-mkconfig_lib.in (font_path): Move the functionality
15822 of it to ...
15823 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
15824 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
15825
15826 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
15827
15828 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
15829 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
15830 Update all users.
15831
15832 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
15833 not just "vmlinu[zx]".
15834 Moved from here ...
15835 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
15836 all users.
15837
15838 * util/grub.d/10_linux.in (find_latest): Moved from here ...
15839 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
15840 all users.
15841
15842 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
15843
15844 * util/grub.d/10_freebsd.in: Use an absolute device path for
15845 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
15846
15847 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
15848
15849 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
15850 handling of multiple abstraction modules.
15851
15852 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
15853
15854 Fix a bug resulting in black screen when loading Linux using a
15855 packed video mode.
15856
15857 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
15858 function.
15859
15860 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
15861 (grub_vbe_bios_getset_dac_palette_width): New function.
15862 (grub_vbe_bios_get_dac_palette_width)
15863 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
15864 grub_vbe_bios_getset_dac_palette_width()).
15865
15866 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
15867 check for return status.
15868 (grub_vbe_get_video_mode_info): When getting information for a packed
15869 mode (<= 8 bpp), obtain DAC palette width using
15870 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
15871 {red,green,blue}_mark_size.
15872
15873 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
15874
15875 * commands/search.c (options): Fix help output to match actual code.
15876
15877 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
15878
15879 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
15880 of homegrown code.
15881
15882 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
15883
15884 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
15885 on XFS or ReiserFS.
15886
15887 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
15888
15889 Support Apple partition map with sector size different from 512 bytes.
15890
15891 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
15892 (apple_partition_map_iterate): Respect 'aheader.blocksize'
15893 and 'apart.partmap_size'.
15894
15895 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
15896 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
15897
15898 Fix cpuid command.
15899
15900 * commands/i386/cpuid.c (options): New variable.
15901 (grub_cmd_cpuid): Return real error.
15902 (GRUB_MOD_INIT(cpuid)): Declare options.
15903
15904 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
15905
15906 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
15907 valid.
15908
15909 2009-07-31 Bean <bean123ch@gmail.com>
15910
15911 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
15912 log2_inode.
15913 (grub_fshelp_node): Move inode field to the end.
15914 (grub_xfs_data): Remove inode field.
15915 (grub_xfs_inode_block): Calculate inode size using sblock.
15916 (grub_xfs_inode_offset): Likewise.
15917 (grub_xfs_read_inode): Calculate inode size using sblock.
15918 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
15919 (grub_xfs_iterate_dir): Calculate inode size using sblock.
15920 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
15921 to match inode size.
15922 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
15923 not accessible when data is null.
15924 (grub_xfs_open): Likewise.
15925
15926 2009-07-31 Bean <bean123ch@gmail.com>
15927
15928 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
15929 Don't change pv->disk if it's already set.
15930
15931 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
15932 (grub_raid_register): ... here.
15933 (grub_raid_rescan): Removed.
15934
15935 * include/grub/raid.h (grub_raid_rescan): Removed.
15936
15937 * util/grub-fstest.c: Remove include file <grub/raid.h>.
15938 (fstest): Replace grub_raid_rescan with module fini function followed
15939 by init function.
15940
15941 * util/grub-probe.c: Add include file <grub/raid.h>.
15942 (probe_raid_level): New function.
15943 (probe): Detect abstraction by walking the disk device, support two
15944 level of abstraction (LVM on RAID) when detecting partition map.
15945
15946 2009-07-31 Pavel Roskin <proski@gnu.org>
15947
15948 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
15949 to grub_zalloc(), it was erroneous.
15950 Reported by Bean <bean123ch@gmail.com>
15951
15952 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
15953
15954 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
15955 embedding zone, not only the first one.
15956
15957 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
15958
15959 * term/gfxterm.c (clear_char): New function.
15960 (grub_virtual_screen_setup): Use clear_char.
15961 (scroll_up): Likewise.
15962 (grub_virtual_screen_cls): Likewise.
15963
15964 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
15965
15966 * util/deviceiter.c (get_acceleraid_disk_name): New static
15967 function.
15968 (grub_util_iterate_devices): Handle Accelraid devices.
15969 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
15970
15971 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
15972
15973 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
15974 separator for the suggested gfxpayload string (';' collides with the
15975 parser and needs escaping).
15976
15977 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
15978
15979 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
15980 Clear direction flag before jumping to OS.
15981 (grub_multiboot2_real_boot): Likewise.
15982
15983 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
15984
15985 * util/i386/pc/grub-install: Fix parsing of --disk-module
15986 option.
15987
15988 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
15989
15990 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
15991 when embedding.
15992
15993 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
15994
15995 * util/grub-mkconfig.in (package_version): New variable.
15996 Use it do display the version.
15997
15998 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
15999
16000 * kern/file.c (grub_file_open): Revert to previous check with
16001 grub_errno.
16002
16003 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16004
16005 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
16006 from help line. It's out of sync with code.
16007
16008 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16009
16010 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
16011 entries on failed boot.
16012
16013 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
16014
16015 * kern/file.c (grub_file_open): Fix an error check.
16016
16017 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
16018
16019 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
16020 partition map couldn't be identified.
16021
16022 2009-07-23 Pavel Roskin <proski@gnu.org>
16023
16024 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
16025 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
16026 case of little endian words becomes just an optimization.
16027 Respect const modifier.
16028 (md5_final): Use code that doesn't depend on endianness.
16029
16030 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
16031 to avoid loss of upper bits if align is unsigned and shorter
16032 than addr.
16033
16034 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
16035
16036 UUID support for UFS
16037
16038 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
16039 (grub_ufs_uuid): New function.
16040 (grub_ufs_fs): add .uuid
16041
16042 2009-07-21 Pavel Roskin <proski@gnu.org>
16043
16044 * kern/dl.c (grub_dl_check_header): Make static.
16045
16046 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
16047
16048 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
16049 add drivemap for Vista. It breaks Windows 7.
16050
16051 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
16052
16053 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
16054 128 bytes
16055
16056 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
16057
16058 Add BFS support
16059
16060 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
16061 (grub_fstest_SOURCES): Likewise.
16062 (pkglib_MODULES): Add befs.mod.
16063 (befs_mod_SOURCES): New variable.
16064 (befs_mod_CFLAGS): Likewise.
16065 (befs_mod_LDFLAGS): Likewise.
16066 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
16067 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16068 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16069 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16070 (grub_setup_SOURCES): Likewise.
16071 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16072 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16073 (grub_setup_SOURCES): Likewise.
16074 * fs/befs.c: New file.
16075 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
16076 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
16077 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
16078 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
16079 (B_KEY_INDEX_ALIGN): New declaration.
16080 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
16081 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
16082 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
16083 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
16084 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
16085 (grub_afs_mount) [MODE_BFS]: Likewise.
16086 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
16087 (grub_afs_fs): Use GRUB_AFS_FSNAME
16088 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
16089 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
16090 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
16091 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
16092
16093 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
16094
16095 * util/getroot.c (find_root_device): Add support for MacOSX.
16096 * util/hostdisk.c: Likewise.
16097
16098 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
16099
16100 * font/font.c (find_glyph): Check whether a font is present to avoid
16101 segmentation fault.
16102
16103 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
16104
16105 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
16106
16107 2009-07-20 Pavel Roskin <proski@gnu.org>
16108
16109 * configure.ac: Trim excessively wordy excuses.
16110
16111 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
16112
16113 Add symlink, mtime and label support to AtheFS.
16114
16115 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
16116 (grub_afs_iterate_dir): Handle symlinks.
16117 (grub_afs_open): Use grub_afs_read_symlink.
16118 (grub_afs_dir): Likewise.
16119 Pass mtime.
16120 (grub_afs_label): New function.
16121 (grub_afs_fs): Add grub_afs_label.
16122 (grub_afs_read_symlink): New function.
16123
16124 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
16125
16126 Fix AtheFS support.
16127
16128 * fs/afs.c: Fix comments style.
16129 (grub_afs_blockrun): Declare as packed.
16130 (grub_afs_datastream): Likewise.
16131 (grub_afs_bnode): Likewise.
16132 (grub_afs_btree): Likewise.
16133 (grub_afs_sblock): Likewise.
16134 Declare `name' as char.
16135 (grub_afs_inode): Declare as packed.
16136 Change void *vnode to grub_uint32_t unused.
16137 (grub_afs_iterate_dir): Check that key_size is positive.
16138 (grub_afs_mount): Don't read superblock twice.
16139 (grub_afs_dir): Don't free node in case of error,
16140 grub_fshelp_find_file already handles this.
16141 (grub_afs_open): Likewise.
16142
16143 2009-07-19 Pavel Roskin <proski@gnu.org>
16144
16145 * Makefile.in: Remove LIBLZO and enable_lzo.
16146 * conf/i386-pc.rmk: Remove lzo support.
16147 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
16148 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
16149 support.
16150 * kern/i386/pc/lzo1x.S: Remove.
16151 * kern/i386/pc/startup.S: Remove lzo support.
16152 * util/i386/pc/grub-mkimage.c: Likewise.
16153
16154 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
16155
16156 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
16157 * fs/xfs.c (grub_xfs_dir): Likewise.
16158 * fs/afs.c (grub_afs_dir): Likewise.
16159 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
16160 (grub_iso9660_open): Likewise.
16161 * fs/jfs.c (grub_jfs_open): Likewise.
16162 * fs/ext2.c (grub_ext2_dir): Likewise.
16163 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
16164 * script/sh/lexer.c (grub_script_yylex): Likewise.
16165
16166 2009-07-16 Pavel Roskin <proski@gnu.org>
16167
16168 * configure.ac: Never add "-c" to CFLAGS.
16169
16170 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
16171
16172 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
16173 grub_cv_cc_efiemu should be used.
16174
16175 * configure.ac: Typo fixes.
16176
16177 * kern/mm.c (grub_zalloc): New function.
16178 (grub_debug_zalloc): Likewise.
16179 * include/grub/mm.h: Declare grub_zalloc() and
16180 grub_debug_zalloc().
16181 * util/misc.c (grub_zalloc): New function.
16182 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
16183 instead of grub_malloc(), remove unneeded initializations.
16184 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
16185 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
16186 * commands/parttool.c (grub_cmd_parttool): Likewise.
16187 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
16188 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
16189 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
16190 * disk/usbms.c (grub_usbms_finddevs): Likewise.
16191 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
16192 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
16193 (grub_cmd_efiemu_pnvram): Likewise.
16194 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
16195 * fs/iso9660.c (grub_iso9660_mount): Likewise.
16196 (grub_iso9660_iterate_dir): Likewise.
16197 * fs/jfs.c (grub_jfs_opendir): Likewise.
16198 * fs/ntfs.c (list_file): Likewise.
16199 (grub_ntfs_mount): Likewise.
16200 * kern/disk.c (grub_disk_open): Likewise.
16201 * kern/dl.c (grub_dl_load_core): Likewise.
16202 * kern/elf.c (grub_elf_file): Likewise.
16203 * kern/env.c (grub_env_context_open): Likewise.
16204 (grub_env_set): Likewise.
16205 (grub_env_set_data_slot): Likewise.
16206 * kern/file.c (grub_file_open): Likewise.
16207 * kern/fs.c (grub_fs_blocklist_open): Likewise.
16208 * loader/i386/multiboot.c (grub_module): Likewise.
16209 * loader/xnu.c (grub_xnu_create_key): Likewise.
16210 (grub_xnu_create_value): Likewise.
16211 * normal/main.c (grub_normal_add_menu_entry): Likewise.
16212 (read_config_file): Likewise.
16213 * normal/menu_entry.c (make_screen): Likewise.
16214 * partmap/sun.c (sun_partition_map_iterate): Likewise.
16215 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
16216 * script/sh/script.c (grub_script_parse): Likewise.
16217 * video/bitmap.c (grub_video_bitmap_create): Likewise.
16218 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
16219 * video/readers/png.c (grub_png_output_byte): Likewise.
16220 (grub_video_reader_png): Likewise.
16221
16222 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
16223
16224 Enable all targets that can be built by default
16225
16226 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
16227 grub-mkfont and grub-fstest if they can be built
16228
16229 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
16230
16231 Fix hang and segmentation fault in grub-emu-usb
16232
16233 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
16234 * util/usb.c (grub_libusb_devices): likewise
16235 (grub_libusb_init): rename to ...
16236 (GRUB_MOD_INIT (libusb)):...this
16237 (grub_libusb_fini): rename to ..
16238 (GRUB_MOD_FINI (libusb)):...this
16239 * disk/usbms.c (grub_usbms_transfer): fix retry logic
16240 * include/grub/disk.h (grub_raid_init): removed, it's useless
16241 (grub_raid_fini): likewise
16242 (grub_lvm_init): likewise
16243 (grub_lvm_fini): likewise
16244 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
16245 by grub_init_all
16246
16247 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
16248
16249 Fix libusb
16250
16251 * Makefile.in (LIBUSB): new macro
16252 * genmk.rb (Utility/print_tail): new method
16253 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
16254 (top level): call util.print_tail at the end.
16255
16256 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
16257
16258 Make FreeBSD accept zpool.cache
16259
16260 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
16261 type is /boot/zfs/zpool.cache
16262
16263 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
16264
16265 Fix 64-bit efiemu
16266
16267 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
16268 correct wrong typedef
16269 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
16270
16271 2009-07-15 Pavel Roskin <proski@gnu.org>
16272
16273 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
16274 * kern/disk.c (struct grub_disk_cache): Likewise.
16275
16276 * commands/probe.c (options): Typo fix.
16277
16278 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
16279 Increase to 0x5a to accommodate FAT32. Adjust other offsets
16280 accordingly.
16281 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
16282
16283 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
16284 the end of "Error" to make the message more readable.
16285
16286 * boot/i386/pc/boot.S (kernel_segment): Remove.
16287 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
16288 for destination.
16289
16290 * boot/i386/pc/boot.S (boot_version): Remove.
16291 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
16292 Remove.
16293
16294 * include/grub/i386/pc/boot.h: Sort all offsets.
16295 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
16296 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
16297 * boot/i386/pc/boot.S: Assert location of every offset listed in
16298 include/grub/i386/pc/boot.h.
16299
16300 2009-07-13 Pavel Roskin <proski@gnu.org>
16301
16302 * include/grub/i386/coreboot/machine.h: Rename
16303 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
16304 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
16305 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
16306
16307 * kern/dl.c: Force native word size to suppress warnings when
16308 compiling grub-emu.
16309
16310 * kern/device.c (grub_device_iterate): Change struct part_ent to
16311 hold the name, not a pointer to it. Use one grub_malloc() per
16312 partition, not two. Free partition_name if grub_malloc() fails.
16313 Set ents to NULL only before grub_partition_iterate() is called.
16314
16315 2009-07-11 Bean <bean123ch@gmail.com>
16316
16317 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
16318 childname.
16319
16320 2009-07-10 Bean <bean123ch@gmail.com>
16321 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
16322
16323 * kern/ieee1275/openfw.c (grub_children_iterate)
16324 (grub_devalias_iterate): Fix size evaluation for property or path
16325 strings, which was broken since r2132.
16326
16327 2009-07-07 Pavel Roskin <proski@gnu.org>
16328
16329 * commands/search.c (search_file): Merge into ...
16330 (search_fs): ... this. Accept search type as argument.
16331 (grub_cmd_search): Pass search type to search_fs().
16332
16333 * include/grub/util/console.h: New file.
16334 * util/console.c: Use it instead of grub/machine/console.h.
16335 * util/grub-emu.c: Likewise.
16336
16337 * lib/arg.c (find_long_option): Remove.
16338 (find_long): Add `len' argument, make `s' const char *.
16339 (grub_arg_parse): Parse long options in place, not in a
16340 temporary buffer.
16341
16342 2009-07-06 Pavel Roskin <proski@gnu.org>
16343
16344 * commands/search.c (search_fs): Fix potential NULL pointer
16345 dereference.
16346
16347 * commands/search.c (search_fs): Replace QUID macro with quid_fn
16348 function pointer.
16349
16350 2009-07-06 Daniel Mierswa <impulze@impulze.org>
16351
16352 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
16353 comparison.
16354
16355 2009-07-05 Pavel Roskin <proski@gnu.org>
16356
16357 * include/grub/i386/linux.h (struct linux_kernel_params):
16358 Restore padding3, it's still needed.
16359
16360 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
16361 FreeBSD.
16362 * util/osdetect.lua: Likewise.
16363
16364 2009-07-05 Bean <bean123ch@gmail.com>
16365
16366 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
16367
16368 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
16369 (grub_lua_getenv): Likewise.
16370 (grub_lua_setenv): Likewise.
16371 (save_errno): New function.
16372 (push_result): Likewise.
16373 (grub_lua_enum_device): Likewise.
16374 (grub_lua_enum_file): Likewise.
16375 (grub_lua_file_open): Likewise.
16376 (grub_lua_file_close): Likewise.
16377 (grub_lua_file_seek): Likewise.
16378 (grub_lua_file_read): Likewise.
16379 (grub_lua_file_getline): Likewise.
16380 (grub_lua_file_getsize): Likewise.
16381 (grub_lua_file_getpos): Likewise.
16382 (grub_lua_file_eof): Likewise.
16383 (grub_lua_file_exist): Likewise.
16384 (grub_lua_add_menu): Likewise.
16385
16386 * script/lua/grub_lua.h (isupper): New inline function.
16387 (islower): Likewise.
16388 (ispunct): Likewise.
16389 (isxdigit): Likewise.
16390 (strcspn): Change to normal function.
16391 (strpbkr): New function declaration.
16392 (memchr): Likewise.
16393
16394 * script/lua/grub_main.c (scan_str): New function.
16395 (strcspn): Likewise.
16396 (strpbrk): Likewise.
16397 (memchr): Likewise.
16398
16399 * script/lua/linit.c (lualibs): Enable the string library.
16400
16401 * util/osdetect.lua: New file.
16402
16403 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
16404
16405 * include/grub/i386/linux.h (struct linux_kernel_params): Add
16406 `capabilities' member.
16407
16408 2009-07-02 Pavel Roskin <proski@gnu.org>
16409
16410 * genparttoollist.sh: Add missing newline at the end.
16411
16412 2009-07-01 Pavel Roskin <proski@gnu.org>
16413
16414 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
16415
16416 * util/hostdisk.c (open_device): Remove `const' from
16417 `sysctl_size', as sysctlbyname() can change it (in this case it
16418 doesn't actually happen).
16419
16420 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
16421 using signed long int constants.
16422
16423 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
16424 constant to avoid a warning on FreeBSD.
16425
16426 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
16427 where it's needed.
16428
16429 * Makefile.in: Install include/grub/machine symlink.
16430
16431 * Makefile.in: When installing symlinks, use "cp -fR", which
16432 works on FreeBSD and MacOSX.
16433 From Yves Blusseau <cl7m42e02@sneakemail.com>
16434
16435 * kern/dl.c (grub_dl_resolve_symbol): Make static.
16436 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
16437
16438 * util/misc.c: Move grub_reboot() and grub_halt() ...
16439 * util/grub-emu.c: ... here. Make main_env static.
16440 * include/grub/util/misc.h: Remove main_env.
16441
16442 * kern/mm.c: Use correct format to print size_t.
16443
16444 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
16445 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
16446 * kern/powerpc/dl.c: Likewise.
16447 * kern/sparc64/dl.c: Likewise.
16448 * kern/x86_64/dl.c: Likewise.
16449
16450 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
16451
16452 Fix grub-emu build on sparc64-ieee1275.
16453
16454 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
16455 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
16456
16457 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
16458
16459 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
16460 (grub_reboot, grub_halt): New functions.
16461
16462 * util/i386/pc/misc.c: Delete. Update all users.
16463 * util/sparc64/ieee1275/misc.c: Likewise.
16464 * util/powerpc/ieee1275/misc.c: Likewise.
16465
16466 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
16467
16468 * conf/i386.rmk (setjmp_mod_SOURCES)
16469 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
16470 * conf/common.rmk (setjmp_mod_SOURCES)
16471 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
16472 to use $(target_cpu).
16473 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
16474 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
16475 * conf/powerpc-ieee1275.rmk: Likewise.
16476 * conf/sparc64-ieee1275.rmk: Likewise.
16477
16478 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
16479 $(target_cpu) for kern/$(target_cpu)/dl.c.
16480 * conf/i386-efi.rmk: Likewise.
16481 * conf/i386-ieee1275.rmk: Likewise.
16482 * conf/x86_64-efi.rmk: Likewise.
16483 * conf/i386-coreboot.rmk: Likewise.
16484 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
16485 $(target_cpu) for kern/$(target_cpu)/dl.c and for
16486 kern/$(target_cpu)/cache.S.
16487 * conf/sparc64-ieee1275.rmk: Likewise.
16488
16489 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
16490
16491 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
16492 type to `grub_uint8_t', and adjust `padding9' accordingly.
16493
16494 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
16495
16496 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
16497
16498 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
16499 assembly in final jump, using register constraints.
16500
16501 (grub_linux_boot): For text mode, initialize `have_vga' using
16502 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
16503
16504 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
16505 right before the final jump.
16506
16507 Set `video_mode' to 0x3.
16508
16509 Document initialization of `video_page', `video_mode' and
16510 `video_ega_bx'.
16511
16512 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
16513
16514 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
16515 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
16516 and set GRUB_LINUX_FLAG_QUIET appropriately.
16517
16518 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
16519
16520 Fix build on Debian / sparc.
16521
16522 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
16523
16524 2009-06-28 Pavel Roskin <proski@gnu.org>
16525
16526 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
16527 fix a warning.
16528
16529 * util/grub.d/10_linux.in: Match SUSE style initrd names.
16530
16531 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
16532
16533 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
16534 `err'.
16535
16536 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
16537
16538 Revert r2338.
16539
16540 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
16541 file can't be opened. grub_file_open() is already supposed to set
16542 grub_errno / grub_errmsg appropriately.
16543 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
16544
16545 2009-06-27 Pavel Roskin <proski@gnu.org>
16546 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
16547
16548 * include/grub/dl.h: Include grub/elf.h.
16549 (struct grub_dl): Add symtab field.
16550 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
16551 GRUB_MODULES_MACHINE_READONLY.
16552 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
16553 of the header for read-only modules.
16554 (grub_dl_unload): Free mod->symtab for read-only modules.
16555 * kern/i386/dl.c: Use mod->symtab.
16556 * kern/powerpc/dl.c: Likewise.
16557 * kern/sparc64/dl.c: Likewise.
16558 * kern/x86_64/dl.c: Likewise.
16559
16560 * conf/i386-qemu.rmk: New file.
16561 * kern/i386/qemu/startup.S: Likewise.
16562 * kern/i386/qemu/mmap.c: Likewise.
16563 * boot/i386/qemu/boot.S: Likewise.
16564 * include/grub/i386/qemu/time.h: Likewise.
16565 * include/grub/i386/qemu/serial.h: Likewise.
16566 * include/grub/i386/qemu/kernel.h: Likewise.
16567 * include/grub/i386/qemu/console.h: Likewise.
16568 * include/grub/i386/qemu/boot.h: Likewise.
16569 * include/grub/i386/qemu/init.h: Likewise.
16570 * include/grub/i386/qemu/machine.h: Likewise.
16571 * include/grub/i386/qemu/loader.h: Likewise.
16572 * include/grub/i386/qemu/memory.h: Likewise.
16573
16574 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
16575 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
16576 [qemu] (pkglib_IMAGES): Add `boot.img'.
16577 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
16578 [qemu] (boot_img_FORMAT): New variables.
16579 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
16580 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
16581 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
16582 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
16583 [qemu] (kernel_img_FORMAT): New variables.
16584
16585 * configure.ac: Recognise `i386-qemu'.
16586
16587 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
16588 (for no compression).
16589 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
16590 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
16591 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
16592 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
16593 ifdefs).
16594
16595 2009-06-27 Pavel Roskin <proski@gnu.org>
16596
16597 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
16598 read.
16599 * efiemu/prepare32.c: Likewise.
16600 * efiemu/prepare64.c: Likewise.
16601
16602 2009-06-26 Pavel Roskin <proski@gnu.org>
16603
16604 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
16605 * include/grub/elf.h: Define symbols without "32" or "64" based
16606 on GRUB_TARGET_WORDSIZE.
16607 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
16608 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
16609 ELF definitions.
16610 * efiemu/loadcore64.c: Likewise.
16611 * loader/i386/bsd32.c: Likewise.
16612 * loader/i386/bsd64.c: Likewise.
16613 * kern/dl.c: Remove own ELF definitions.
16614 * util/i386/efi/grub-mkimage.c: Likewise.
16615
16616 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
16617
16618 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
16619 segment 0x0 unconditionally, because the reference generated by
16620 GAS is an absolute address.
16621
16622 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
16623
16624 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
16625 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
16626
16627 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
16628
16629 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
16630 indexes. Check for -f explicitly.
16631 (search_file): Improve error message.
16632 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
16633
16634 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
16635
16636 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
16637 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
16638
16639 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
16640
16641 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
16642 * conf/i386-ieee1275.rmk: Likewise.
16643 * conf/i386-coreboot.rmk: Likewise.
16644
16645 * kern/i386/pc/startup.S (grub_stop): Remove function.
16646 * kern/i386/ieee1275/startup.S: Likewise.
16647 * kern/i386/coreboot/startup.S: Likewise.
16648 * kern/i386/misc.S (grub_stop): New function.
16649
16650 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
16651
16652 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
16653 * kern/i386/realmode.S (real_to_prot): ... to here.
16654
16655 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
16656
16657 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
16658 with `kernel.img'.
16659 (kernel_elf_SOURCES): Rename to ...
16660 (kernel_img_SOURCES): ... this.
16661 (kernel_elf_HEADERS): Rename to ...
16662 (kernel_img_HEADERS): ... this. Update all users.
16663 (kernel_elf_ASFLAGS): Rename to ...
16664 (kernel_img_ASFLAGS): ... this.
16665 (kernel_elf_CFLAGS): Rename to ...
16666 (kernel_img_CFLAGS): ... this.
16667 (kernel_elf_LDFLAGS): Rename to ...
16668 (kernel_img_LDFLAGS): ... this.
16669 * conf/i386-coreboot.rmk: Likewise.
16670 * conf/powerpc-ieee1275.rmk: Likewise.
16671
16672 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
16673 with "kernel.img".
16674
16675 2009-06-21 Pavel Roskin <proski@gnu.org>
16676
16677 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
16678 to match nested functions.
16679 * loader/sparc64/ieee1275/linux.c: Likewise.
16680
16681 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
16682
16683 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
16684
16685 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
16686 all i386 platforms.
16687
16688 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
16689
16690 Fix asm file handling on ELF, and remove workarounds.
16691
16692 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
16693 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
16694 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
16695 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
16696
16697 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
16698
16699 Load BSD ELF modules
16700
16701 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
16702 and loader/i386/bsd64.c
16703 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
16704 (FREEBSD_MODTYPE_ELF_MODULE): New definition
16705 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
16706 (grub_freebsd_load_elfmodule32): New declaration
16707 (grub_freebsd_load_elfmoduleobj64): Likewise
16708 (grub_freebsd_load_elf_meta32): Likewise
16709 (grub_freebsd_load_elf_meta64): Likewise
16710 (grub_freebsd_add_meta): Likewise
16711 (grub_freebsd_add_meta_module): Likewise
16712 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
16713 (grub_freebsd_add_meta_module): Likewise and move module-specific
16714 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
16715 (grub_cmd_freebsd): Add elf-kernel specific parts
16716 based on grub_freebsd_add_meta_module
16717 (grub_cmd_freebsd_module): Add type parsing moved from
16718 grub_freebsd_add_meta_module
16719 (grub_cmd_freebsd_module_elf): New function
16720 (cmd_freebsd_module_elf): New variable
16721 (GRUB_MOD_INIT): Register freebsd_module_elf
16722 * loader/i386/bsd32.c: New file
16723 * loader/i386/bsd64.c: Likewise
16724 * loader/i386/bsdXX.c: Likewise
16725 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
16726 (grub_elf64_load): Likewise
16727 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
16728 All users updated
16729 (grub_elf64_load_hook_t): Likewise
16730
16731 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
16732
16733 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
16734 variable.
16735 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
16736 don't write a menu entry for recovery mode.
16737
16738 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
16739
16740 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
16741 after it's no longer needed.
16742
16743 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
16744
16745 * include/grub/i386/loader.h (grub_linux_prot_size)
16746 (grub_linux_tmp_addr, grub_linux_real_addr)
16747 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
16748 GRUB_MACHINE_PCBIOS.
16749 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
16750 common grub_util_info() call to ...
16751 (generate_image): ... here.
16752 Fix use of uninitialized memory, comparison of signed with
16753 unsigned integers and memory leak.
16754 Remove bogus module address message.
16755
16756 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
16757
16758 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
16759 grub_raid_register
16760 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
16761
16762 2009-06-19 Pavel Roskin <proski@gnu.org>
16763
16764 * configure.ac: Remove stray AC_MSG_CHECKING.
16765
16766 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
16767
16768 * disk/scsi.c (grub_scsi_open): use continue instead of big if
16769
16770 2009-06-18 Pavel Roskin <proski@gnu.org>
16771
16772 * conf/common.rmk: Add fs_file.mod.
16773 * disk/fs_file.c: New file.
16774 * include/grub/disk.h (enum grub_disk_dev_id): Add
16775 GRUB_DISK_DEVICE_FILE_ID.
16776
16777 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
16778
16779 Fix build with Apple's toolchain. Part 2
16780
16781 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
16782 a fake start
16783
16784 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
16785
16786 Fix build with Apple's toolchain. Part 1
16787
16788 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
16789 for long calls
16790 * configure.ac: remove a leftover AC_MSG_RESULT
16791 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
16792 Apple's toolchain
16793
16794 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
16795
16796 Fix warnings
16797
16798 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
16799 (decomp_block): initialize ch
16800 use grub_memcpy instead of memcpy
16801
16802 2009-06-17 Pavel Roskin <proski@gnu.org>
16803
16804 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
16805 version, use declarations needed to use vga_text as the startup
16806 console.
16807
16808 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
16809 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
16810 the kernel.
16811 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
16812 and grub_at_keyboard_fini(), it's done on module load and
16813 unload.
16814
16815 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
16816
16817 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
16818 file can't be found.
16819 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
16820
16821 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
16822
16823 Fix newline handling
16824
16825 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
16826 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
16827 (grub_script_yylex): don't segfault on unterminated script
16828 newline terminates command and variable
16829
16830 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
16831
16832 avoid double grub_adjust_range call. Bug reported by David Simner
16833
16834 * kern/disk.c (grub_disk_write): change to raw disk access before
16835 calling disk_read
16836
16837 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
16838
16839 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
16840 spaces, for the benefit of help2man.
16841 * util/i386/efi/grub-mkimage.c (usage): Likewise.
16842
16843 2009-06-16 Pavel Roskin <proski@gnu.org>
16844
16845 * kern/i386/halt.c: Include grub/machine/init.h.
16846 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
16847
16848 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
16849
16850 * util/grub.d/30_os-prober.in: Use ${root} in the generated
16851 drivemap menuentry.
16852
16853 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
16854
16855 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
16856 `echo' command.
16857
16858 2009-06-16 Pavel Roskin <proski@gnu.org>
16859
16860 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
16861 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
16862 save %dx, we only need %dl and we never change it.
16863 * boot/i386/pc/cdboot.S: Don't set the root drive.
16864 * boot/i386/pc/pxeboot.S: Likewise.
16865 * include/grub/i386/pc/boot.h: Remove
16866 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
16867 GRUB_BOOT_MACHINE_DRIVE_CHECK.
16868 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
16869 * kern/i386/pc/init.c (make_install_device): Remove references
16870 to grub_root_drive.
16871 * kern/i386/pc/startup.S: Likewise.
16872 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
16873
16874 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
16875
16876 xnu_uuid command
16877
16878 * commands/xnu_uuid.c: new file
16879 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
16880 (xnu_uuid_mod_SOURCES): new variable
16881 (xnu_uuid_mod_CFLAGS): likewise
16882 (xnu_uuid_mod_LDFLAGS): likewise
16883 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
16884 * conf/i386-ieee1275.rmk: likewise
16885 * conf/i386-pc.rmk: likewise
16886 * conf/powerpc-ieee1275.rmk: likewise
16887 * conf/sparc64-ieee1275.rmk: likewise
16888 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
16889
16890 2009-06-16 Pavel Roskin <proski@gnu.org>
16891
16892 * configure.ac: Avoid '==' in test command, it's not portable.
16893
16894 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
16895
16896 Probe command
16897
16898 * commands/probe.c: new file
16899 * conf/common.rmk (pkglib_MODULES): add probe.mod
16900 (probe_mod_SOURCES): new variable
16901 (probe_mod_CFLAGS): likewise
16902 (probe_mod_LDFLAGS): likewise
16903 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
16904 * conf/i386-ieee1275.rmk: likewise
16905 * conf/i386-pc.rmk: likewise
16906 * conf/powerpc-ieee1275.rmk: likewise
16907 * conf/sparc64-ieee1275.rmk: likewise
16908
16909 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
16910
16911 Fix handling of string like \"hello\" and "a
16912 b"
16913
16914 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
16915 (grub_script_yylex): fix parsing of quoting, escaping and newline
16916
16917 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
16918
16919 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
16920 handling
16921
16922 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
16923
16924 * util/grub-mkconfig.in: Fix parsing of --output option.
16925
16926 2009-06-12 Pavel Roskin <proski@gnu.org>
16927
16928 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
16929 genmk.rb don't need to be generated or installed.
16930
16931 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
16932
16933 * commands/i386/pc/drivemap_int13h.S: add more comments
16934
16935 2009-06-11 Pavel Roskin <proski@gnu.org>
16936
16937 * Makefile.in (uninstall): Uninstall manuals.
16938
16939 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
16940 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
16941 and update-grub_lib in two places.
16942 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
16943
16944 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
16945 a compiler warning.
16946
16947 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
16948 `entry_lo' to fix variable shadowing.
16949
16950 2009-06-11 Christian Franke <franke@computer.org>
16951
16952 * kern/misc.c (__enable_execute_stack): Add missing return type
16953 to prevent gcc warning.
16954
16955 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
16956
16957 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
16958
16959 2009-06-11 Pavel Roskin <proski@gnu.org>
16960
16961 * Makefile.in: Don't rely on any scripts being executable.
16962 Always use $(SHELL) to run shell scripts.
16963
16964 * configure.ac: Always define ___main if using -nostdlib. This
16965 fixes tests on Cygwin.
16966
16967 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
16968
16969 UDF fix
16970
16971 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
16972 is in bytes and not in blocks
16973
16974 2009-06-11 Pavel Roskin <proski@gnu.org>
16975
16976 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
16977 warning.
16978
16979 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
16980
16981 * util/grub.d/30_os-prober.in: Fix a comment. Source
16982 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
16983 to set the root device. Place drivemap command in the generated
16984 chain entry.
16985
16986 2009-06-11 Pavel Roskin <proski@gnu.org>
16987
16988 * configure.ac: Remove host_m32. Issues with 64-bit utilities
16989 have long been resolved.
16990
16991 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
16992
16993 * util/grub.d/10_linux.in: Capitalise "Linux".
16994
16995 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
16996
16997 2009-06-11 Pavel Roskin <proski@gnu.org>
16998
16999 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
17000 fix a gcc warning and ensure that the function won't ever exit.
17001
17002 * kern/i386/ieee1275/init.c: Add missing prototype for
17003 grub_stop_floppy().
17004
17005 * loader/ieee1275/multiboot2.c [__i386__]: Include
17006 grub/cpu/multiboot.h.
17007
17008 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
17009 casts to short - they are not portable and cause warnings. Fix
17010 use of uninitialized values in input_buf. Use ARRAY_SIZE.
17011
17012 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
17013
17014 Drivemap fixes
17015
17016 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
17017 new function
17018 (grub_get_root_biosnumber_saved): new variable
17019 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
17020 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
17021 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
17022 %dx after the call if necessary
17023 * conf/common.rmk (pkglib_MODULES): remove boot.mod
17024 (boot_mod_SOURCES): remove
17025 (boot_mod_CFLAGS): remove
17026 (boot_mod_LDFLAGS): remove
17027 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
17028 (boot_mod_SOURCES): new variable
17029 (boot_mod_CFLAGS): likewise
17030 (boot_mod_LDFLAGS): likewise
17031 * conf/i386-efi.rmk: likewise
17032 * conf/i386-ieee1275.rmk: likewise
17033 * conf/i386-pc.rmk: likewise
17034 * conf/powerpc-ieee1275.rmk: likewise
17035 * conf/sparc64-ieee1275.rmk: likewise
17036 * conf/x86_64-efi.rmk: likewise
17037 * include/grub/i386/pc/biosnum.h: new file
17038 * lib/i386/pc/biosnum.c: likewise
17039 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
17040 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
17041 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
17042
17043 2009-06-10 Pavel Roskin <proski@gnu.org>
17044
17045 * io/gzio.c (test_header): Don't reuse one buffer for all data.
17046 Use separate variables. Read only the file size at the end, but
17047 not the checksum that we don't use.
17048
17049 * kern/file.c (grub_file_read): Use void pointer for the buffer.
17050 Adjust all callers.
17051
17052 * kern/ieee1275/openfw.c: Remove libc includes.
17053 * kern/ieee1275/cmain.c: Likewise.
17054 * include/grub/ieee1275/ieee1275.h: Likewise.
17055
17056 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
17057 compiler warnings.
17058
17059 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
17060
17061 * Makefile.in: Remove all trailing whitespace.
17062 * conf/i386-pc.rmk: Likewise.
17063 * conf/powerpc-ieee1275.rmk: Likewise.
17064 * conf/sparc64-ieee1275.rmk: Likewise.
17065 * docs/grub.texi: Likewise.
17066 * docs/texinfo.tex: Likewise.
17067 * disk/fs_uuid.c: Likewise.
17068 * disk/lvm.c: Likewise.
17069 * disk/scsi.c: Likewise.
17070 * disk/ata.c: Likewise.
17071 * disk/ieee1275/ofdisk.c: Likewise.
17072 * disk/i386/pc/biosdisk.c: Likewise.
17073 * disk/host.c: Likewise.
17074 * disk/raid.c: Likewise.
17075 * disk/efi/efidisk.c: Likewise.
17076 * disk/usbms.c: Likewise.
17077 * disk/memdisk.c: Likewise.
17078 * disk/loopback.c: Likewise.
17079 * kern/powerpc/dl.c: Likewise.
17080 * kern/device.c: Likewise.
17081 * kern/dl.c: Likewise.
17082 * kern/sparc64/dl.c: Likewise.
17083 * kern/ieee1275/ieee1275.c: Likewise.
17084 * kern/term.c: Likewise.
17085 * kern/fs.c: Likewise.
17086 * kern/i386/dl.c: Likewise.
17087 * kern/i386/pc/startup.S: Likewise.
17088 * kern/i386/pc/init.c: Likewise.
17089 * kern/i386/pc/mmap.c: Likewise.
17090 * kern/i386/pc/lzo1x.S: Likewise.
17091 * kern/i386/ieee1275/init.c: Likewise.
17092 * kern/i386/realmode.S: Likewise.
17093 * kern/i386/tsc.c: Likewise.
17094 * kern/partition.c: Likewise.
17095 * kern/corecmd.c: Likewise.
17096 * kern/file.c: Likewise.
17097 * kern/efi/efi.c: Likewise.
17098 * kern/efi/init.c: Likewise.
17099 * kern/efi/mm.c: Likewise.
17100 * kern/main.c: Likewise.
17101 * kern/err.c: Likewise.
17102 * kern/env.c: Likewise.
17103 * kern/disk.c: Likewise.
17104 * kern/generic/millisleep.c: Likewise.
17105 * kern/generic/rtc_get_time_ms.c: Likewise.
17106 * kern/misc.c: Likewise.
17107 * kern/parser.c: Likewise.
17108 * genmk.rb: Likewise.
17109 * configure.ac: Likewise.
17110 * boot/i386/pc/diskboot.S: Likewise.
17111 * boot/i386/pc/pxeboot.S: Likewise.
17112 * boot/i386/pc/boot.S: Likewise.
17113 * boot/i386/pc/lnxboot.S: Likewise.
17114 * boot/i386/pc/cdboot.S: Likewise.
17115 * parttool/pcpart.c: Likewise.
17116 * video/readers/tga.c: Likewise.
17117 * video/video.c: Likewise.
17118 * video/bitmap.c: Likewise.
17119 * lib/envblk.c: Likewise.
17120 * lib/i386/setjmp.S: Likewise.
17121 * fs/xfs.c: Likewise.
17122 * fs/afs.c: Likewise.
17123 * fs/fat.c: Likewise.
17124 * fs/ntfs.c: Likewise.
17125 * fs/udf.c: Likewise.
17126 * fs/affs.c: Likewise.
17127 * fs/iso9660.c: Likewise.
17128 * fs/hfs.c: Likewise.
17129 * fs/fshelp.c: Likewise.
17130 * fs/ext2.c: Likewise.
17131 * fs/jfs.c: Likewise.
17132 * fs/reiserfs.c: Likewise.
17133 * fs/hfsplus.c: Likewise.
17134 * fs/minix.c: Likewise.
17135 * fs/cpio.c: Likewise.
17136 * fs/sfs.c: Likewise.
17137 * fs/ufs.c: Likewise.
17138 * efiemu/prepare.c: Likewise.
17139 * efiemu/loadcore_common.c: Likewise.
17140 * efiemu/runtime/efiemu.sh: Likewise.
17141 * efiemu/runtime/efiemu.S: Likewise.
17142 * efiemu/runtime/efiemu.c: Likewise.
17143 * efiemu/pnvram.c: Likewise.
17144 * efiemu/main.c: Likewise.
17145 * efiemu/i386/pc/cfgtables.c: Likewise.
17146 * efiemu/i386/loadcore64.c: Likewise.
17147 * efiemu/i386/loadcore32.c: Likewise.
17148 * efiemu/loadcore.c: Likewise.
17149 * efiemu/symbols.c: Likewise.
17150 * efiemu/mm.c: Likewise.
17151 * include/grub/autoefi.h: Likewise.
17152 * include/grub/datetime.h: Likewise.
17153 * include/grub/term.h: Likewise.
17154 * include/grub/hfs.h: Likewise.
17155 * include/grub/lvm.h: Likewise.
17156 * include/grub/i386/tsc.h: Likewise.
17157 * include/grub/i386/linux.h: Likewise.
17158 * include/grub/i386/xnu.h: Likewise.
17159 * include/grub/i386/efiemu.h: Likewise.
17160 * include/grub/i386/pc/biosdisk.h: Likewise.
17161 * include/grub/i386/pc/memory.h: Likewise.
17162 * include/grub/i386/pc/vbe.h: Likewise.
17163 * include/grub/parttool.h: Likewise.
17164 * include/grub/video.h: Likewise.
17165 * include/grub/memory.h: Likewise.
17166 * include/grub/fs.h: Likewise.
17167 * include/grub/partition.h: Likewise.
17168 * include/grub/xnu.h: Likewise.
17169 * include/grub/efi/api.h: Likewise.
17170 * include/grub/efi/pe32.h: Likewise.
17171 * include/grub/efi/memory.h: Likewise.
17172 * include/grub/multiboot.h: Likewise.
17173 * include/grub/usbdesc.h: Likewise.
17174 * include/grub/multiboot2.h: Likewise.
17175 * include/grub/acpi.h: Likewise.
17176 * include/grub/efiemu/efiemu.h: Likewise.
17177 * include/grub/disk.h: Likewise.
17178 * include/grub/ieee1275/ieee1275.h: Likewise.
17179 * include/grub/net.h: Likewise.
17180 * include/grub/machoload.h: Likewise.
17181 * include/grub/macho.h: Likewise.
17182 * include/multiboot.h: Likewise.
17183 * genmoddep.awk: Likewise.
17184 * normal/main.c: Likewise.
17185 * normal/menu_entry.c: Likewise.
17186 * normal/menu_viewer.c: Likewise.
17187 * normal/completion.c: Likewise.
17188 * normal/cmdline.c: Likewise.
17189 * normal/misc.c: Likewise.
17190 * normal/datetime.c: Likewise.
17191 * bus/usb/usbtrans.c: Likewise.
17192 * bus/usb/ohci.c: Likewise.
17193 * bus/usb/uhci.c: Likewise.
17194 * bus/usb/usb.c: Likewise.
17195 * mmap/efi/mmap.c: Likewise.
17196 * mmap/i386/pc/mmap_helper.S: Likewise.
17197 * mmap/i386/pc/mmap.c: Likewise.
17198 * mmap/i386/mmap.c: Likewise.
17199 * mmap/i386/uppermem.c: Likewise.
17200 * mmap/mmap.c: Likewise.
17201 * commands/acpi.c: Likewise.
17202 * commands/echo.c: Likewise.
17203 * commands/blocklist.c: Likewise.
17204 * commands/loadenv.c: Likewise.
17205 * commands/usbtest.c: Likewise.
17206 * commands/boot.c: Likewise.
17207 * commands/parttool.c: Likewise.
17208 * commands/search.c: Likewise.
17209 * commands/cat.c: Likewise.
17210 * commands/i386/pc/play.c: Likewise.
17211 * commands/i386/pc/drivemap.c: Likewise.
17212 * commands/i386/pc/vbeinfo.c: Likewise.
17213 * commands/i386/pc/acpi.c: Likewise.
17214 * commands/i386/pc/vbetest.c: Likewise.
17215 * commands/ls.c: Likewise.
17216 * commands/cmp.c: Likewise.
17217 * commands/test.c: Likewise.
17218 * commands/efi/acpi.c: Likewise.
17219 * commands/gptsync.c: Likewise.
17220 * commands/help.c: Likewise.
17221 * partmap/amiga.c: Likewise.
17222 * partmap/apple.c: Likewise.
17223 * partmap/acorn.c: Likewise.
17224 * partmap/pc.c: Likewise.
17225 * partmap/sun.c: Likewise.
17226 * partmap/gpt.c: Likewise.
17227 * script/sh/lexer.c: Likewise.
17228 * script/sh/function.c: Likewise.
17229 * font/font.c: Likewise.
17230 * font/font_cmd.c: Likewise.
17231 * loader/powerpc/ieee1275/linux.c: Likewise.
17232 * loader/efi/chainloader.c: Likewise.
17233 * loader/multiboot_loader.c: Likewise.
17234 * loader/macho.c: Likewise.
17235 * loader/i386/multiboot.c: Likewise.
17236 * loader/i386/linux.c: Likewise.
17237 * loader/i386/pc/linux.c: Likewise.
17238 * loader/i386/pc/multiboot2.c: Likewise.
17239 * loader/i386/pc/chainloader.c: Likewise.
17240 * loader/i386/pc/xnu.c: Likewise.
17241 * loader/i386/bsd_trampoline.S: Likewise.
17242 * loader/i386/efi/linux.c: Likewise.
17243 * loader/i386/multiboot_elfxx.c: Likewise.
17244 * loader/i386/bsd_helper.S: Likewise.
17245 * loader/i386/bsd.c: Likewise.
17246 * loader/i386/linux_trampoline.S: Likewise.
17247 * loader/i386/xnu_helper.S: Likewise.
17248 * loader/i386/xnu.c: Likewise.
17249 * loader/i386/bsd_pagetable.c: Likewise.
17250 * loader/i386/multiboot_helper.S: Likewise.
17251 * loader/xnu.c: Likewise.
17252 * loader/xnu_resume.c: Likewise.
17253 * io/gzio.c: Likewise.
17254 * term/efi/console.c: Likewise.
17255 * term/terminfo.c: Likewise.
17256 * term/ieee1275/ofconsole.c: Likewise.
17257 * term/i386/pc/serial.c: Likewise.
17258 * term/i386/pc/vesafb.c: Likewise.
17259 * term/i386/pc/vga.c: Likewise.
17260 * term/usb_keyboard.c: Likewise.
17261 * term/gfxterm.c: Likewise.
17262 * aclocal.m4: Likewise.
17263 * util/lvm.c: Likewise.
17264 * util/grub.d/30_os-prober.in: Likewise.
17265 * util/grub.d/10_hurd.in: Likewise.
17266 * util/console.c: Likewise.
17267 * util/grub-macho2img.c: Likewise.
17268 * util/grub-probe.c: Likewise.
17269 * util/hostfs.c: Likewise.
17270 * util/i386/pc/grub-mkimage.c: Likewise.
17271 * util/i386/pc/grub-setup.c: Likewise.
17272 * util/i386/efi/grub-mkimage.c: Likewise.
17273 * util/grub-mkconfig.in: Likewise.
17274 * util/raid.c: Likewise.
17275 * util/resolve.c: Likewise.
17276 * util/grub-mkdevicemap.c: Likewise.
17277 * util/grub-emu.c: Likewise.
17278 * util/getroot.c: Likewise.
17279 * util/hostdisk.c: Likewise.
17280 * util/usb.c: Likewise.
17281 * util/grub-editenv.c: Likewise.
17282 * util/misc.c: Likewise.
17283
17284 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
17285
17286 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
17287 `genparttoollist.sh'.
17288 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
17289 Add `*.sh' to the list find searches for and change `mdate.sh'
17290 to `mdate-sh'.
17291
17292 2009-06-10 Pavel Roskin <proski@gnu.org>
17293
17294 * include/grub/multiboot2.h: Provide compatibility defines for
17295 multiboot2.h.
17296 * include/multiboot2.h: Include stdint.h only if needed, using
17297 angle brackets.
17298 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
17299 grub/multiboot2.h.
17300 * loader/ieee1275/multiboot2.c: Likewise.
17301 * loader/multiboot2.c: Likewise.
17302 * loader/multiboot_loader.c: Likewise.
17303
17304 * configure.ac: Use -nostdlib when probing for the target. It
17305 should not be required to have libc for the target.
17306
17307 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
17308 they fail without libc headers for the target.
17309 * include/grub/powerpc/libgcc.h: Use weak attribute for all
17310 exports.
17311 * include/grub/sparc64/libgcc.h: Likewise. Don't use
17312 preprocessor conditionals.
17313
17314 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
17315 build system doesn't need to be aware of the tar.c internals.
17316
17317 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
17318
17319 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
17320
17321 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
17322
17323 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
17324 disk limit to 26 for IDE, Virtio, Xen and SCSI.
17325
17326 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
17327
17328 * util/i386/pc/grub-install.in: Change the error message if UUIDs
17329 aren't available if ata.mod gets used.
17330
17331 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
17332
17333 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
17334 initialising controller.
17335 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
17336
17337 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
17338
17339 * util/i386/pc/grub-install.in: Add a parameter --disk-module
17340 to choose between ata and biosdisk module on i386-pc.
17341
17342 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
17343
17344 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
17345 Subclass and Programming Interface fields in terms of the 3 byte
17346 Class Code register.
17347 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
17348
17349 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
17350 interface is OHCI. Add grub_dprintf for symmetry with
17351 bus/usb/uhci.c.
17352 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
17353 interface is UHCI. Add interf variable for programming
17354 interface. Print interface with class/subclass.
17355
17356 * bus/usb/ohci.c: Set interf with correct field.
17357
17358 * bus/usb/uhci.c: Remove unneeded doubled lines.
17359 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
17360 Remove whitespace inside comment.
17361
17362 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
17363
17364 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
17365 as fallback an equivalent option without depth.
17366
17367 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
17368
17369 Not fail if unable to retrieve C/H/S on LBA disks
17370
17371 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
17372 if unable to retrieve C/H/S on LBA disks
17373
17374 2009-06-08 Pavel Roskin <proski@gnu.org>
17375
17376 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
17377 about aliasing.
17378
17379 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
17380
17381 * Makefile.in (uninstall): Remove all $lib_DATA files.
17382
17383 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
17384
17385 Bugfix: install on partitionless device
17386
17387 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
17388 is a whole disk
17389
17390 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
17391
17392 * Makefile.in (uninstall): Remove all $include_DATA files.
17393
17394 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
17395
17396 * commands/true.c: New file. Implement the true and false commands.
17397 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
17398 (true_mod_SOURCES): New variable.
17399 (true_mod_CFLAGS): Likewise.
17400 (true_mod_LDFLAGS): Likewise.
17401
17402 2009-06-05 Colin D Bennett <colin@gibibit.com>
17403
17404 Optimized font character lookup using binary search instead of linear
17405 search. Fonts now are required to have the character index ordered by
17406 code point.
17407
17408 * font/font.c (load_font_index): Verify that fonts have ordered
17409 character indices.
17410 (find_glyph): Use binary search instead of linear search to find a
17411 character in a font.
17412
17413 2009-06-05 Michael Scherer <misc@mandriva.org>
17414
17415 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
17416 uses case sensitive btree.
17417 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
17418 only for case insensitive filesystems.
17419
17420 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
17421
17422 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
17423 * conf/common.rmk (search_mod_CFLAGS): likewise
17424
17425 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17426
17427 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
17428 compensate a compiler bug
17429
17430 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17431
17432 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
17433 instead of '\b'
17434
17435 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17436
17437 Definitions for creating asm symbols with Apple's CC
17438
17439 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
17440 [APPLE_CC] (VARIABLE): likewise
17441
17442 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17443
17444 Disable lnxboot.img when compiled
17445 with Apple's CC
17446
17447 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
17448 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
17449 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
17450 [! APPLE_CC] (CODE_LENG): skip
17451 [! APPLE_CC] (setup_sects): likewise
17452 [! APPLE_CC]: skip filling
17453
17454 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17455
17456 Address in trampolines based on 32-bit registers when compiled
17457 with Apple's CC
17458
17459 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
17460 for addresses
17461 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
17462
17463 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17464
17465 Avoid aliases when compiling with Apple's CC for PCBIOS machine
17466
17467 * kern/misc.c [APPLE_CC] (memcpy): new function
17468 [APPLE_CC] (memmove): likewise
17469 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
17470 (memcpy): define alias conditionally on !APPLE_CC
17471 (memset): likewise
17472 (abort): likewise
17473 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
17474 APPLE_CC are defined
17475 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
17476 (grub_assert_fail): make prototype conditional
17477
17478 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17479
17480 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
17481
17482 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
17483 grub-macho2img
17484 (CLEANFILES): add grub-macho2img
17485 (grub_macho2img_SOURCES): new variable
17486 * kern/i386/pc/startup.S (bss_start): new variable
17487 (bss_end): likewise
17488 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
17489 * util/grub-macho2img.c: new file
17490
17491 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17492
17493 Use objconv when compiling with Apple's CC
17494
17495 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
17496 (efiemu64.o): likewise
17497 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
17498 when compiling with Apple's CC
17499 (efiemu64_s.o): likewise
17500 * configure.ac: check for objconv when compiling with Apple's CC
17501 * genmk.rb: use objconv for modules when compiled with Apple's CC
17502
17503 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17504
17505 Define segment as well as section when compiling with
17506 Apple's CC
17507
17508 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
17509 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
17510 (efiemu_convert_pointer): likewise
17511 (efiemu_set_virtual_address_map): likewise
17512 (efiemu_convert_pointer): likewise
17513 (efiemu_getcrc32): likewise
17514 (init_crc32_table): likewise
17515 (reflect): likewise
17516 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
17517 (GRUB_MOD_DEP): likewise
17518
17519 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17520
17521 Allow a compilation without -mcmodel=large
17522
17523 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
17524 when compiled without -mcmodel=large
17525 (filter_memory_map): remove memory post 4 GiB when compiled
17526 without -mcmodel=large
17527 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
17528 TARGET_CFLAGS when -mcmodel=large isn't supported
17529
17530 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17531
17532 Remove nested functions in efiemu core
17533
17534 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
17535
17536 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17537
17538 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
17539
17540 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
17541 temporary storage
17542 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
17543 using Apple's CC
17544 (grub_cpu_is_tsc_supported): likewise
17545 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
17546
17547 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17548
17549 Absolute addressing through constant with Apple's cc
17550
17551 * kern/i386/pc/startup.S: Define necessary constants
17552 and address through it when using ABS with Apple's CC
17553 * boot/i386/pc/diskboot.S: likewise
17554 * boot/i386/pc/boot.S: likewise
17555 * boot/i386/pc/lnxboot.S: likewise
17556 * boot/i386/pc/cdboot.S: likewise
17557 * mmap/i386/pc/mmap_helper.S: likewise
17558 * commands/i386/pc/drivemap_int13h.S: likewise
17559
17560 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17561
17562 Check if compiler is apple cc
17563
17564 * Makefile.in (ASFLAGS): new variable
17565 (TARGET_ASFLAGS): likewise
17566 (TARGET_MODULE_FORMAT): likewise
17567 (TARGET_APPLE_CC): likewise
17568 (OBJCONV): likewise
17569 (TARGET_IMG_CFLAGS): likewise
17570 (TARGET_CPPFLAGS): add includedir
17571 * configure.ac: call grub_apple_cc and grub_apple_target_cc
17572 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
17573 Check for linker script only if compiler isn't Apple's CC
17574 (TARGET_MODULE_FORMAT): set
17575 (TARGET_APPLE_CC): likewise
17576 (TARGET_ASFLAGS): likewise
17577 (ASFLAGS): likewise
17578 Check for objcopy only if compiler isn't Apple's CC
17579 Check for BSS symbol only if compiler isn't Apple's CC
17580 * genmk.rb: adapt nm options if we use Apple's utils
17581 * aclocal.m4 (grub_apple_cc): new test
17582 (grub_apple_target_cc): likewise
17583
17584 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17585
17586 Simplify sed expressions and improve awk
17587
17588 * Makefile.in (install-local): simplify sed expression
17589 * gencmdlist.sh: likewise
17590 * genmoddep.awk: avoid adding module as a dependency of itself
17591
17592 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17593
17594 Add missing start symbols
17595
17596 * boot/i386/pc/boot.S: add start
17597 * boot/i386/pc/pxeboot.S: likewise
17598
17599 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17600
17601 Fix wrong assumptions with grub-mkimage on EFI
17602
17603 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
17604 (relocate_addresses): consider both r_addend and value at offset
17605 (make_mods_section): zerofill modinfo and header
17606 (convert_elf): write prefix here
17607
17608 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17609
17610 Use .asciz instead of .string
17611
17612 * i386/pc/diskboot.S: use .asciz instead of .string
17613 * i386/pc/boot.S: likewise
17614 * include/grub/dl.h (GRUB_MOD_DEP): likewise
17615 (GRUB_MOD_NAME): likewise
17616
17617 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17618
17619 gfxpayload support
17620
17621 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
17622 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
17623 (grub_video_setup): remove
17624 (grub_video_set_mode): new prototype
17625 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
17626 (vid_mode): remove
17627 (linux_vesafb_res): compile only on PCBIOS
17628 (grub_linux_boot): support gfxpayload
17629 * loader/i386/pc/xnu.c (video_hook): new function
17630 (grub_xnu_set_video): support gfxpayload
17631 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
17632 (DEFAULT_VIDEO_HEIGHT): likewise
17633 (DEFAULT_VIDEO_FLAGS): likewise
17634 (DEFAULT_VIDEO_MODE): new definition
17635 (video_hook): new function
17636 (grub_gfxterm_init): use grub_video_set_mode
17637 * util/grub.d/30_os-prober.in: remove explicit modesetting before
17638 loading xnu
17639 * video/video.c (grub_video_setup): removed
17640 (grub_video_set_mode): new function based on grub_gfxterm_init and
17641 grub_video_setup
17642
17643 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17644
17645 Avoid calling biosdisk in drivemap
17646
17647 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
17648 (revparse_biosdisk): likewise
17649 (list_mappings): derive name from id directly
17650 (grub_cmd_drivemap): use tryparse_diskstring
17651
17652 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17653
17654 Script fixes
17655
17656 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
17657 (grub_lexer_param): add tokenonhold
17658 (grub_script_create_cmdline): remove cmdline. All callers updated
17659 (grub_script_function_create): make functionname
17660 grub_script_arg. All callers updated
17661 (grub_script_execute_argument_to_string): new prototype
17662 * kern/parser.c (state_transitions): reorder
17663 (grub_parser_cmdline_state): fix a bug and make more compact
17664 * script/sh/execute.c (grub_script_execute_argument_to_string):
17665 make global
17666 (grub_script_execute_cmdline): use new format
17667 * script/sh/function.c (grub_script_function_create): make functionname
17668 grub_script_arg. All callers updated
17669 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
17670 (grub_script_yylex): remove
17671 (grub_script_yylex2): renamed to ...
17672 (grub_script_yylex): ...renamed
17673 parse the expressions like a${b}c
17674 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
17675 (GRUB_PARSER_TOKEN_VAR): remove
17676 (GRUB_PARSER_TOKEN_NAME): likewise
17677 ("if"): declare as typeless
17678 ("while"): likewise
17679 ("function"): likewise
17680 ("else"): likewise
17681 ("then"): likewise
17682 ("fi"): likewise
17683 (text): remove
17684 (argument): likewise
17685 (script): accept empty scripts and make exit on error
17686 (arguments): use GRUB_PARSER_TOKEN_ARG
17687 (function): likewise
17688 (command): move error handling to script
17689 (menuentry): move grub_script_lexer_ref before
17690 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
17691 argument. All callers updated
17692
17693 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
17694
17695 Prevent GRUB from probing floppies during boot.
17696
17697 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
17698 * commands/search.c (options): Add --no-floppy.
17699 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
17700 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
17701 --no-floppy when searching for UUIDs.
17702
17703 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
17704
17705 Simplify the code duplication in commands/search.c.
17706
17707 * commands/search.c (search_label, search_fs_uuid): Merge into ...
17708 (search_fs): ... this. Update all users.
17709
17710 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
17711
17712 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
17713
17714 2009-05-28 Pavel Roskin <proski@gnu.org>
17715
17716 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
17717 Remove the original symlink explicitly.
17718
17719 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
17720 just one slash. That's how grub_fshelp_find_file() does it.
17721
17722 2009-05-26 Pavel Roskin <proski@gnu.org>
17723
17724 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
17725 to `str'.
17726
17727 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
17728 possibly unused.
17729
17730 2009-05-25 Christian Franke <franke@computer.org>
17731
17732 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
17733 register.
17734 (grub_atapi_identify): Add wait after drive select.
17735 (grub_ata_identify): Do more strict status register check before
17736 calling grub_atapi_identify (). Suppress error message if status
17737 register is 0x00 after command failure. Add status register
17738 check after PIO read to avoid bogus identify due to stuck DRQ.
17739 Thanks to Pavel Roskin for testing.
17740 (grub_device_initialize): Remove unsafe status register check.
17741 Thanks to 'phcoder' for problem report and patch.
17742 Prevent sign extension in debug message.
17743
17744 2009-05-23 Colin D Bennett <colin@gibibit.com>
17745
17746 Cleaned up `include/grub/normal.h'. Grouped prototypes by
17747 definition file, and functions defined in `normal/menu.c' have had
17748 their prototypes moved to `include/grub/menu.h' for consistency.
17749
17750 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
17751 from normal.h.
17752 (grub_menu_get_entry): Likewise.
17753 (grub_menu_get_timeout): Likewise.
17754 (grub_menu_set_timeout): Likewise.
17755 (grub_menu_execute_entry): Likewise.
17756 (grub_menu_execute_with_fallback): Likewise.
17757 (grub_menu_entry_run): Likewise.
17758
17759 * include/grub/normal.h: Re-ordered and grouped function
17760 prototypes by file that the function is defined in.
17761 (grub_menu_execute_callback): Removed; moved to menu.h.
17762 (grub_menu_get_entry): Likewise.
17763 (grub_menu_get_timeout): Likewise.
17764 (grub_menu_set_timeout): Likewise.
17765 (grub_menu_execute_entry): Likewise.
17766 (grub_menu_execute_with_fallback): Likewise.
17767 (grub_menu_entry_run): Likewise.
17768 (grub_menu_addentry): Renamed from this ...
17769 (grub_normal_add_menu_entry): ... to this.
17770
17771 * normal/main.c (grub_menu_addentry): Renamed from this ...
17772 (grub_normal_add_menu_entry): ... to this.
17773
17774 * script/sh/execute.c (grub_script_execute_menuentry): Update
17775 reference to renamed grub_menu_addentry function.
17776
17777 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
17778
17779 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
17780
17781 2009-05-22 Pavel Roskin <proski@gnu.org>
17782
17783 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
17784 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
17785 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
17786 compiling for the i386 targets, but not for the utilities.
17787
17788 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
17789 to grub_uint8_t.
17790 (grub_root_drive): Likewise.
17791 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
17792 remove alignment.
17793 (grub_root_drive): Change size to byte.
17794 (grub_start_addr): Remove.
17795 (grub_end_addr): Likewise.
17796 (grub_apm_bios_info): Likewise.
17797
17798 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
17799
17800 * normal/i386: Remove.
17801 * normal/powerpc: Likewise.
17802 * normal/sparc64: Likewise.
17803 * normal/x86_64: Likewise.
17804
17805 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
17806
17807 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
17808 * loader/i386/linux_trampoline.S: Fix indentation
17809 * loader/i386/xnu_helper.S: Likewise
17810
17811 2009-05-18 Colin D Bennett <colin@gibibit.com>
17812
17813 Display error messages when parsing a Lua statement fails.
17814 Previously, executing a syntactically invalid statement like
17815 ")foo" or "bar;" would silently fail.
17816
17817 * script/lua/grub_main.c (handle_lua_error): New function.
17818 (grub_lua_parse_line): Improved reporting of Lua parser and
17819 execution errors.
17820
17821 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17822
17823 Remove -Werror which causes build to fail on some systems
17824
17825 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
17826 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
17827 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
17828
17829 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17830
17831 trampoline for linux on 64-bit platform
17832
17833 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
17834 loader/i386/efi/linux_trampoline.S
17835 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
17836 declaration
17837 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
17838 here
17839 * loader/i386/linux_trampoline.S: moved here
17840 * loader/i386/efi/linux.c (allocate_pages): reserve space for
17841 trampoline
17842 (jumpvector): removed
17843 (grub_linux_trampoline_start): new declaration
17844 (grub_linux_trampoline_end): likewise
17845 (grub_linux_boot): use trampoline when on 64-bit platform
17846 * loader/i386/linux.c: likewise
17847
17848 2009-05-16 Pavel Roskin <proski@gnu.org>
17849
17850 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
17851 const to avoid a warning.
17852 (grub_lua_setenv): Likewise.
17853 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
17854 lmsg to fix a warning.
17855
17856 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
17857
17858 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
17859 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
17860 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
17861 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
17862 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
17863 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
17864 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
17865 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
17866
17867 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
17868
17869 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
17870
17871 2009-05-16 Bean <bean123ch@gmail.com>
17872
17873 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
17874 (lua_mod_SOURCES): New variable.
17875 (lua_mod_CFLAGS): Likewise.
17876 (lua_mod_LDFLAGS): Likewise.
17877
17878 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
17879 (setjmp_mod_SOURCES): New variable.
17880 (setjmp_mod_CFLAGS): Likewise.
17881 (setjmp_LDFLAGS): Likewise.
17882
17883 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
17884 (setjmp_mod_SOURCES): New variable.
17885 (setjmp_mod_CFLAGS): Likewise.
17886 (setjmp_LDFLAGS): Likewise.
17887
17888 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
17889 (setjmp_mod_SOURCES): New variable.
17890 (setjmp_mod_CFLAGS): Likewise.
17891 (setjmp_LDFLAGS): Likewise.
17892
17893 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
17894 (setjmp_mod_SOURCES): New variable.
17895 (setjmp_mod_CFLAGS): Likewise.
17896 (setjmp_LDFLAGS): Likewise.
17897
17898 * normal/i386/setjmp.S: Moved from here ...
17899 * lib/i386/setjmp.S: ... Moved here
17900 * normal/x86_64/setjmp.S: Moved from here ...
17901 * lib/x86_64/setjmp.S: ... Moved here
17902 * normal/powerpc/setjmp.S: Moved from here ...
17903 * lib/powerpc/setjmp.S: ... Moved here
17904 * normal/sparc64/setjmp.S: Moved from here ...
17905 * lib/sparc64/setjmp.S: ... Moved here
17906
17907 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
17908 returns_twice in mingw.
17909
17910 * script/lua/grub_lib.c: New file.
17911 * script/lua/grub_lib.h: Likewise.
17912 * script/lua/grub_lua.h: Likewise.
17913 * script/lua/grub_main.c: Likewise.
17914 * script/lua/lapi.c: Likewise.
17915 * script/lua/lapi.h: Likewise.
17916 * script/lua/lauxlib.c: Likewise.
17917 * script/lua/lauxlib.h: Likewise.
17918 * script/lua/lbaselib.c: Likewise.
17919 * script/lua/lcode.c: Likewise.
17920 * script/lua/lcode.h: Likewise.
17921 * script/lua/ldblib.c: Likewise.
17922 * script/lua/ldebug.c: Likewise.
17923 * script/lua/ldebug.h: Likewise.
17924 * script/lua/ldo.c: Likewise.
17925 * script/lua/ldo.h: Likewise.
17926 * script/lua/ldump.c: Likewise.
17927 * script/lua/lfunc.c: Likewise.
17928 * script/lua/lfunc.h: Likewise.
17929 * script/lua/lgc.c: Likewise.
17930 * script/lua/lgc.h: Likewise.
17931 * script/lua/linit.c: Likewise.
17932 * script/lua/liolib.c: Likewise.
17933 * script/lua/llex.c: Likewise.
17934 * script/lua/llex.h: Likewise.
17935 * script/lua/llimits.h: Likewise.
17936 * script/lua/lmathlib.c: Likewise.
17937 * script/lua/lmem.c: Likewise.
17938 * script/lua/lmem.h: Likewise.
17939 * script/lua/loadlib.c: Likewise.
17940 * script/lua/lobject.c: Likewise.
17941 * script/lua/lobject.h: Likewise.
17942 * script/lua/lopcodes.c: Likewise.
17943 * script/lua/lopcodes.h: Likewise.
17944 * script/lua/loslib.c: Likewise.
17945 * script/lua/lparser.c: Likewise.
17946 * script/lua/lparser.h: Likewise.
17947 * script/lua/lstate.c: Likewise.
17948 * script/lua/lstate.h: Likewise.
17949 * script/lua/lstring.c: Likewise.
17950 * script/lua/lstring.h: Likewise.
17951 * script/lua/lstrlib.c: Likewise.
17952 * script/lua/ltable.c: Likewise.
17953 * script/lua/ltable.h: Likewise.
17954 * script/lua/ltablib.c: Likewise.
17955 * script/lua/ltm.c: Likewise.
17956 * script/lua/ltm.h: Likewise.
17957 * script/lua/lua.h: Likewise.
17958 * script/lua/luaconf.h: Likewise.
17959 * script/lua/lualib.h: Likewise.
17960 * script/lua/lundump.c: Likewise.
17961 * script/lua/lundump.h: Likewise.
17962 * script/lua/lvm.c: Likewise.
17963 * script/lua/lvm.h: Likewise.
17964 * script/lua/lzio.c: Likewise.
17965 * script/lua/lzio.h: Likewise.
17966
17967 2009-05-16 Bean <bean123ch@gmail.com>
17968
17969 * include/grub/kernel.h (grub_module_header_types): Add type
17970 OBJ_TYPE_CONFIG.
17971
17972 * kern/main.c (grub_load_config): New function.
17973 (grub_main): Call grub_load_config to read boot config.
17974
17975 * grub-mkimage (generate_image): New parameter config_path.
17976 (options): New option --config.
17977 (main): Parse --config option, and pass it to generate_image.
17978
17979 2009-05-14 Christian Franke <franke@computer.org>
17980
17981 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
17982 This fixes build on Cygwin.
17983
17984 2009-05-14 Pavel Roskin <proski@gnu.org>
17985
17986 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
17987 jump. This saves two bytes, so the typical case of 2 swapped
17988 drives would fit 32 bytes.
17989
17990 2009-05-13 Pavel Roskin <proski@gnu.org>
17991
17992 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
17993 grub_uint32_t to avoid a warning.
17994
17995 * loader/i386/linux.c (allocate_pages): When assigning
17996 real_mode_mem, cast through grub_size_t to fix a warning. The
17997 code already makes sure that the value would fit a pointer.
17998 (grub_linux_setup_video): Cast render_target->data to
17999 grub_size_t to fix a warning.
18000
18001 2009-05-13 Javier Martín <lordhabbit@gmail.com>
18002
18003 * commands/i386/pc/drivemap.c: New file - implement drivemap
18004 command.
18005 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
18006 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
18007
18008 2009-05-13 Pavel Roskin <proski@gnu.org>
18009
18010 * util/i386/pc/grub-setup.c (setup): Remove unused variable
18011 embedding_area_exists.
18012
18013 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
18014
18015 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
18016 it easier to understand / work with.
18017 Improve warning messages for cases where there's no embedding area,
18018 or when it is too small (or core.img too large).
18019
18020 2009-05-13 Pavel Roskin <proski@gnu.org>
18021
18022 * loader/i386/pc/multiboot2.c: Add necessary includes for
18023 grub_multiboot2_real_boot().
18024
18025 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
18026 PX record is always little-endian. We only need the lower 2
18027 bytes of the mode.
18028
18029 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
18030 facilitate code reuse.
18031 (grub_cpio_mount): Use "struct head", not a char buffer. This
18032 fixes a warning reported by gcc 4.4.
18033
18034 * kernel/disk.c (grub_disk_read): Use void pointer for the
18035 buffer.
18036 (grub_disk_write): Use const void pointer for the buffer.
18037 Adjust all callers. Remove unnecessary casts.
18038
18039 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
18040
18041 * util/i386/pc/grub-install.in: Update copyright year.
18042
18043 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18044
18045 gptsync
18046
18047 * commands/gptsync.c: new file
18048 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
18049 (gptsync_mod_SOURCES): new variable
18050 (gptsync_mod_CFLAGS): likewise
18051 (gptsync_mod_LDFLAGS): likewise
18052 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
18053 new definition
18054 (GRUB_PC_PARTITION_TYPE_HFS): likewise
18055 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
18056 * conf/i386-ieee1275.rmk: likewise
18057 * conf/i386-pc.rmk: likewise
18058 * conf/powerpc-ieee1275.rmk: likewise
18059
18060 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18061
18062 Fixed grub-emu
18063
18064 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
18065 (grub_dl_ref): likewise
18066
18067 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
18068
18069 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
18070 split in two functions (one for msdos and one for gpt).
18071
18072 2009-05-08 Pavel Roskin <proski@gnu.org>
18073
18074 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
18075 not modified.
18076
18077 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
18078 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
18079 Initialize them with -1. Add sanity check for bad1. Eliminate
18080 nerr variable.
18081
18082 2009-05-08 David S. Miller <davem@davemloft.net>
18083
18084 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
18085
18086 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
18087
18088 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
18089 existence.
18090
18091 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
18092
18093 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18094 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
18095
18096 2009-05-05 David S. Miller <davem@davemloft.net>
18097
18098 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
18099
18100 2009-05-05 Pavel Roskin <proski@gnu.org>
18101
18102 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
18103 of grub_dl_ref() and grub_dl_unref().
18104 * commands/parttool.c: Remove preprocessor conditionals around
18105 grub_dl_ref() and grub_dl_unref().
18106 * fs/affs.c: Likewise.
18107 * fs/afs.c: Likewise.
18108 * fs/cpio.c: Likewise.
18109 * fs/ext2.c: Likewise.
18110 * fs/fat.c: Likewise.
18111 * fs/hfs.c: Likewise.
18112 * fs/hfsplus.c: Likewise.
18113 * fs/iso9660.c: Likewise.
18114 * fs/jfs.c: Likewise.
18115 * fs/minix.c: Likewise.
18116 * fs/ntfs.c: Likewise.
18117 * fs/reiserfs.c: Likewise.
18118 * fs/sfs.c: Likewise.
18119 * fs/udf.c: Likewise.
18120 * fs/ufs.c: Likewise.
18121 * fs/xfs.c: Likewise.
18122 * include/grub/dl.h: Likewise.
18123 * loader/xnu.c: Likewise.
18124
18125 2009-05-04 Pavel Roskin <proski@gnu.org>
18126
18127 * commands/acpi.c: Remove unused variable my_mod.
18128 * partmap/amiga.c: Likewise.
18129 * partmap/apple.c: Likewise.
18130 * partmap/gpt.c: Likewise.
18131 * partmap/pc.c: Likewise.
18132 * partmap/sun.c: Likewise.
18133 * term/gfxterm.c: Likewise.
18134 * term/i386/pc/vesafb.c: Likewise.
18135 * term/i386/pc/vga.c: Likewise.
18136
18137 2009-05-04 David S. Miller <davem@davemloft.net>
18138
18139 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
18140 pointer args to grub_ieee1275_get_property().
18141
18142 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
18143
18144 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
18145 devices, and do not traverse down under controller nodes.
18146
18147 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
18148 (grub_ofdisk_open): Use it to un-escape "," characters.
18149 * kern/disk.c (find_part_sep): New.
18150 (grub_disk_open): Use it to find the first non-escaped ','
18151 character in the disk name.
18152 * util/ieee1275/devicemap.c (escape_of_path): New.
18153 (grub_util_emit_devicemap_entry): Use it.
18154 * util/sparc64/ieee1275/grub-install.in: Update script to
18155 strip partition specifiers properly by not triggering on
18156 '\' escaped ',' characters.
18157
18158 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
18159
18160 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
18161 to 0x300.
18162 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
18163 resolutions.
18164 (linux_vesafb_modes): Add a lot of additional modes to the list (based
18165 on documentation from Wikipedia).
18166
18167 2009-05-04 Pavel Roskin <proski@gnu.org>
18168
18169 * disk/ata.c: Spelling fixes.
18170 * disk/raid.c: Likewise.
18171 * disk/usbms.c: Likewise.
18172 * disk/dmraid_nvidia.c: Likewise.
18173 * kern/ieee1275/openfw.c: Likewise.
18174 * kern/ieee1275/init.c: Likewise.
18175 * kern/ieee1275/cmain.c: Likewise.
18176 * boot/i386/pc/cdboot.S: Likewise.
18177 * video/readers/png.c: Likewise.
18178 * video/i386/pc/vbe.c: Likewise.
18179 * fs/udf.c: Likewise.
18180 * fs/hfs.c: Likewise.
18181 * fs/reiserfs.c: Likewise.
18182 * efiemu/runtime/efiemu.c: Likewise.
18183 * efiemu/main.c: Likewise.
18184 * efiemu/mm.c: Likewise.
18185 * include/grub/elf.h: Likewise.
18186 * include/grub/xnu.h: Likewise.
18187 * include/grub/usbdesc.h: Likewise.
18188 * include/grub/usb.h: Likewise.
18189 * include/grub/script_sh.h: Likewise.
18190 * include/grub/lib/LzmaEnc.h: Likewise.
18191 * include/grub/efiemu/efiemu.h: Likewise.
18192 * include/grub/command.h: Likewise.
18193 * normal/menu.c: Likewise.
18194 * normal/main.c: Likewise.
18195 * normal/datetime.c: Likewise.
18196 * bus/usb/uhci.c: Likewise.
18197 * mmap/i386/uppermem.c: Likewise.
18198 * mmap/mmap.c: Likewise.
18199 * commands/acpi.c: Likewise.
18200 * commands/test.c: Likewise.
18201 * partmap/apple.c: Likewise.
18202 * font/font.c: Likewise.
18203 * loader/sparc64/ieee1275/linux.c: Likewise.
18204 * loader/macho.c: Likewise.
18205 * loader/i386/bsd_trampoline.S: Likewise.
18206 * loader/i386/bsd.c: Likewise.
18207 * loader/xnu.c: Likewise.
18208 * term/i386/pc/vesafb.c: Likewise.
18209 * term/usb_keyboard.c: Likewise.
18210 * util/resolve.c: Likewise.
18211 * util/getroot.c: Likewise.
18212
18213 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
18214
18215 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
18216
18217 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
18218
18219 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
18220 build error.
18221
18222 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
18223
18224 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
18225 parameter only available on BIOS.
18226
18227 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
18228
18229 Removed wrong semicolon in declaration
18230
18231 * grub/misc.h (grub_dprintf): remove semicolon
18232
18233 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
18234
18235 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
18236 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
18237 is done by grub_cmd_linux() now).
18238 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
18239 restore video to text mode.
18240 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
18241 indicates lack of "vga=" parameter. "vga=0" is mapped to
18242 `GRUB_LINUX_VID_MODE_NORMAL'.
18243
18244 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
18245
18246 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
18247 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
18248 and `normal/script.c'. Add `kern/rescue_reader.c',
18249 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
18250 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
18251 `grub_script.tab.c'.
18252
18253 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18254 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18255 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18256 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
18257 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18258
18259 * Makefile.in: Remove duplicated 2008 in Copyright line.
18260
18261 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
18262
18263 * util/misc.c (grub_util_warn): New function. Emits a warning
18264 unconditionally.
18265 * include/grub/util/misc.h (grub_util_warn): New declaration.
18266
18267 * util/i386/pc/grub-install.in: Understand --force and pass it down
18268 to grub-setup.
18269
18270 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
18271 down to setup().
18272 (setup): Improve error messages and add warnings when requested to
18273 install in odd layouts. Refuse to install using blocklists unless
18274 --force was set.
18275
18276 2009-05-04 martin f. krafft <madduck@madduck.net>
18277
18278 * disk/raid.c (grub_raid_scan_device): Improve debug message.
18279
18280 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
18281
18282 Updated copyright year
18283
18284 * fs/hfsplus.c: updated copyright year
18285
18286 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
18287
18288 HFS+ UUID
18289
18290 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
18291 in the space previously used by unused3
18292 (grub_hfsplus_uuid): new function
18293 (grub_hfsplus_fs): added uuid field
18294
18295 2009-05-03 Pavel Roskin <proski@gnu.org>
18296
18297 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
18298 suppress warnings. It's no longer needed.
18299 * disk/host.c: Likewise.
18300 * disk/ata_pthru.c: Likewise.
18301 * disk/loopback.c: Likewise.
18302 * hook/datehook.c: Likewise.
18303 * parttool/pcpart.c: Likewise.
18304 * fs/i386/pc/pxe.c: Likewise.
18305 * fs/ntfscomp.c: Likewise.
18306 * efiemu/main.c: Likewise.
18307 * mmap/mmap.c: Likewise.
18308 * commands/crc.c: Likewise.
18309 * commands/hexdump.c: Likewise.
18310 * commands/hdparm.c: Likewise.
18311 * commands/acpi.c: Likewise.
18312 * commands/echo.c: Likewise.
18313 * commands/minicmd.c: Likewise.
18314 * commands/blocklist.c: Likewise.
18315 * commands/memrw.c: Likewise.
18316 * commands/loadenv.c: Likewise.
18317 * commands/usbtest.c: Likewise.
18318 * commands/lsmmap.c: Likewise.
18319 * commands/boot.c: Likewise.
18320 * commands/parttool.c: Likewise.
18321 * commands/configfile.c: Likewise.
18322 * commands/search.c: Likewise.
18323 * commands/ieee1275/suspend.c: Likewise.
18324 * commands/cat.c: Likewise.
18325 * commands/i386/pc/pxecmd.c: Likewise.
18326 * commands/i386/pc/play.c: Likewise.
18327 * commands/i386/pc/halt.c: Likewise.
18328 * commands/i386/pc/vbeinfo.c: Likewise.
18329 * commands/i386/pc/vbetest.c: Likewise.
18330 * commands/lspci.c: Likewise.
18331 * commands/date.c: Likewise.
18332 * commands/handler.c: Likewise.
18333 * commands/ls.c: Likewise.
18334 * commands/test.c: Likewise.
18335 * commands/cmp.c: Likewise.
18336 * commands/efi/loadbios.c: Likewise.
18337 * commands/efi/fixvideo.c: Likewise.
18338 * commands/halt.c: Likewise.
18339 * commands/help.c: Likewise.
18340 * commands/reboot.c: Likewise.
18341 * hello/hello.c: Likewise.
18342 * script/sh/main.c: Likewise.
18343 * loader/xnu.c: Likewise.
18344 * term/terminfo.c: Likewise.
18345 * term/i386/pc/serial.c: Likewise.
18346 * term/usb_keyboard.c: Likewise.
18347
18348 2009-05-03 David S. Miller <davem@davemloft.net>
18349
18350 * normal/menu.c: Include grub/parser.h
18351
18352 2009-05-03 Pavel Roskin <proski@gnu.org>
18353
18354 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
18355 not char*.
18356 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
18357 Suggested by Javier Martín <lordhabbit@gmail.com>
18358
18359 * util/i386/pc/grub-mkrescue.in: Allow for the case when
18360 efiemu??.o doesn't exist.
18361 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
18362 copying.
18363
18364 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
18365
18366 FreeBSD 64-bit support
18367
18368 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
18369 and loader/i386/bsd_trampoline.S
18370 (bsd_mod_ASFLAGS): new variable
18371 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
18372 (FREEBSD_MODTYPE_KERNEL64): likewise
18373 (grub_bsd64_trampoline_start): likewise
18374 (grub_bsd64_trampoline_end): likewise
18375 (grub_bsd64_trampoline_selfjump): likewise
18376 (grub_bsd64_trampoline_gdt): likewise
18377 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
18378 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
18379 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
18380 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18381 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
18382 of "attrib" member
18383 * loader/i386/bsd_pagetable.c: new file
18384 * loader/i386/bsd_trampoline.S: likewise
18385 * loader/i386/bsd.c (ALIGN_QWORD): new macro
18386 (ALIGN_VAR): likewise
18387 (entry_hi): new variable
18388 (kern_end_mdofs): likewise
18389 (is_64bit): likewise
18390 (grub_freebsd_add_meta): use ALIGN_VAR
18391 (grub_e820_mmap): new declaration
18392 (grub_freebsd_add_mmap): new function
18393 (grub_freebsd_add_meta_module): support 64 bit kernels
18394 (grub_freebsd_list_modules): use ALIGN_VAR
18395 (gdt_descriptor): new declaration
18396 (grub_freebsd_boot): support 64 bit kernels
18397 (grub_bsd_elf64_hook): new function
18398 (grub_bsd_load_elf): support elf64
18399
18400 2009-05-03 Bean <bean123ch@gmail.com>
18401
18402 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
18403 after we get the result of if statement.
18404
18405 2009-05-03 Bean <bean123ch@gmail.com>
18406
18407 * Makefile.in (enable_efiemu): New variable.
18408
18409 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
18410 set.
18411 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
18412 path.
18413 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
18414 path, add -mno-red-zone option.
18415 (efiemu64_s.o): Likewise.
18416 (efiemu64.o): Use macro $^ for source file.
18417
18418 * configure.ac (--enable-efiemu): New option.
18419
18420 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
18421
18422 xnu support
18423
18424 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
18425 (pkglib_MODULES): add xnu.mod
18426 (xnu_mod_SOURCES): new variable
18427 (xnu_mod_CFLAGS): likewise
18428 (xnu_mod_LDFLAGS): likewise
18429 (xnu_mod_ASFLAGS): likewise
18430 * conf/i386-pc.rmk: likewise
18431 * conf/x86_64-efi.rmk: likewise
18432 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
18433 new declaration
18434 * include/grub/i386/macho.h: new file
18435 * include/grub/i386/xnu.h: likewise
18436 * include/grub/macho.h: likewise
18437 * include/grub/machoload.h: likewise
18438 * include/grub/x86_64/macho.h: likewise
18439 * include/grub/x86_64/xnu.h: likewise
18440 * include/grub/xnu.h: likewise
18441 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
18442 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
18443 * loader/i386/efi/xnu.c: new file
18444 * loader/i386/pc/xnu.c: likewise
18445 * loader/i386/xnu.c: likewise
18446 * loader/i386/xnu_helper.S: likewise
18447 * loader/macho.c: likewise
18448 * loader/xnu.c: likewise
18449 * loader/xnu_resume.c: likewise
18450 * util/grub-dumpdevtree: likewise
18451 * include/grub/i386/pit.h: include grub/err.h
18452 (grub_pit_wait): export
18453 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
18454
18455 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
18456
18457 Efiemu
18458
18459 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
18460 _linux_efi, linux_efi.
18461 new files in grub-emu
18462 new targets efiemu32.o and efiemu64.o
18463 * loader/linux_normal_efiemu.c: likewise
18464 * loader/i386/efi/linux.c: added preliminary efiemu support
18465 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
18466 files to copy
18467 * include/grub/autoefi.h: new file
18468 * include/grub/i386/efiemu.h: likewise
18469 * include/grub/i386/pc/efiemu.h: likewise
18470 * include/grub/efi/api.h: add LL suffix when necessary
18471 new definitions relating to tables
18472 * include/grub/efiemu/efiemu.h: new file
18473 * include/grub/efiemu/runtime.h: likewise
18474 * efiemu/prepare.c: likewise
18475 * efiemu/loadcore_common.c: likewise
18476 * efiemu/loadcore64.c: likewise
18477 * efiemu/runtime/efiemu.sh: likewise
18478 * efiemu/runtime/efiemu.S: likewise
18479 * efiemu/runtime/efiemu.c: likewise
18480 * efiemu/runtime/config.h: likewise
18481 * efiemu/prepare32.c: likewise
18482 * efiemu/main.c: likewise
18483 * efiemu/modules/pnvram.c: likewise
18484 * efiemu/modules/i386: likewise
18485 * efiemu/modules/i386/pc: likewise
18486 * efiemu/modules/acpi.c: likewise
18487 * efiemu/i386/pc/cfgtables.c: likewise
18488 * efiemu/i386/loadcore64.c: likewise
18489 * efiemu/i386/loadcore32.c: likewise
18490 * efiemu/prepare64.c: likewise
18491 * efiemu/loadcore.c: likewise
18492 * efiemu/symbols.c: likewise
18493 * efiemu/mm.c: likewise
18494 * efiemu/loadcore32.c: likewise
18495
18496 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
18497
18498 ACPI spoofing
18499
18500 * commands/acpi.c: new file
18501 * commands/i386/pc/acpi.c: likewise
18502 * commands/efi/acpi.c: likewise
18503 * include/grub/acpi.h: likewise
18504 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
18505 (acpi_mod_SOURCES): new variable
18506 (acpi_mod_CFLAGS): likewise
18507 (acpi_mod_LDFLAGS): likewise
18508 * conf/i386-efi.rmk: likewise
18509 * conf/x86_64-efi.rmk: likewise
18510
18511 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
18512
18513 Missing part from mmap patch
18514
18515 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
18516 (grub_mmap_unregister)
18517 (grub_mmap_free_and_unregister): use grub_mmap_register
18518
18519 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
18520
18521 Mmap services
18522
18523 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
18524 * loader/i386/linux.c (find_mmap_size): likewise
18525 (allocate_pages): likewise
18526 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
18527 (grub_fill_multiboot_mmap): likewise
18528 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
18529 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
18530 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
18531 (OPENBSD_MMAP_RESERVED): likewise
18532 * include/grub/i386/pc/memory.h: include grub/memory.h
18533 (grub_lower_mem): removed
18534 (grub_upper_mem): likewise
18535 (GRUB_MACHINE_MEMORY_ACPI): new definition
18536 (GRUB_MACHINE_MEMORY_NVS): likewise
18537 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
18538 (GRUB_MACHINE_MEMORY_HOLE): likewise
18539 (grub_machine_mmap_register): likewise
18540 (grub_machine_mmap_unregister): likewise
18541 (grub_machine_get_upper): likewise
18542 (grub_machine_get_lower): likewise
18543 (grub_machine_get_post64): likewise
18544 * include/grub/i386/efi/memory.h: new file
18545 * include/grub/x86_64/efi/memory.h: likewise
18546 * include/grub/efi/memory.h: likewise
18547 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
18548 (mmap_mod_SOURCES): new variable
18549 (mmap_mod_LDFLAGS): likewise
18550 (mmap_mod_ASFLAGS): likewise
18551 * conf/i386-coreboot.rmk: likewise
18552 * conf/i386-ieee1275.rmk: likewise
18553 * conf/i386-efi.rmk: likewise
18554 * conf/x86_64-efi.rmk: likewise
18555 * include/grub/types.h (UINT_TO_PTR): new macro
18556 (PTR_TO_UINT32): likewise
18557 (PTR_TO_UINT64): likewise
18558 * include/grub/memory.h: new file
18559 * mmap/i386/pc/mmap.c: likewise
18560 * mmap/i386/pc/mmap_helper.S: likewise
18561 * mmap/i386/uppermem.c: likewise
18562 * mmap/mmap.c: likewise
18563 * mmap/efi/mmap.c: likewise
18564 * kern/i386/coreboot/init.c (grub_machine_init): don't use
18565 grub_upper_mem
18566 * kern/i386/pc/init.c (grub_lower_mem): removed variable
18567 (grub_upper_mem): likewise
18568 (grub_machine_init): don't use grub_upper_mem,
18569 make grub_lower_mem local
18570 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
18571 grub_mmap_iterate and grub_mmap_get_upper
18572 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
18573
18574 2009-05-02 Bean <bean123ch@gmail.com>
18575
18576 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
18577 script/sh/parser.y.
18578 (pkglib_MODULES): Add normal.mod and sh.mod.
18579 (normal_SOURCES): New variable.
18580 (normal_mod_CFLAGS): Likewise.
18581 (normal_mod_LDFLAGS): Likewise.
18582 (sh_mod_SOURCES): Likewise.
18583 (sh_mod_CFLAGS): Likewise.
18584 (sh_mod_LDFLAGS): Likewise.
18585
18586 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
18587 script/sh/lexer.c_DEPENDENCIES.
18588 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
18589 kern/rescue_reader.c and kern/rescue_parser.c.
18590 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
18591 (grub_emu_SOURCES): Change source files.
18592 (pkglib_MODULES): Remove normal.mod.
18593 (normal_SOURCES): Removed.
18594 (normal_mod_CFLAGS): Likewise.
18595 (normal_mod_LDFLAGS): Likewise.
18596 * conf/i386-coreboot.rmk: Likewise.
18597 * conf/i386-efi.rmk: Likewise.
18598 * conf/i386-ieee1276.rmk: Likewise.
18599 * conf/powerpc-ieee1275.rmk: Likewise.
18600 * conf/sparc64-ieee1275.rmk: Likewise.
18601 * conf/x86_64-efi.rmk: Likewise.
18602
18603 * include/grub/command.h (grub_command_execute): New inline function.
18604
18605 * include/grub/menu.h (grub_menu_entry): Removed commands field.
18606
18607 * include/grub/normal.h: Remove <grub/setjmp.h>.
18608 (grub_fs_module_list): Moved to normal/autofs.c.
18609 (grub_exit_env): Removed.
18610 (grub_command_execute): Likewise.
18611 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
18612 parameter script.
18613 (read_command_list): New function declaration.
18614 (read_fs_list): Likewise.
18615
18616 * include/parser.h: Include <grub/reader.h>.
18617 (grub_parser_split_cmdline): Change type of getline parameter.
18618 (grub_parser): New structure.
18619 (grub_parser_class): New variable.
18620 (grub_parser_execute): New function declaration.
18621 (grub_register_rescue_parser): Likewise.
18622 (grub_parser_register): New inline function.
18623 (grub_parser_unregister): Likewise.
18624 (grub_parser_get_current): Likewise.
18625 (grub_parser_set_current): Likewise.
18626
18627 * include/grub/reader.h: New file.
18628 * kern/reader.c: Likewise.
18629 * kern/rescue_parser.c: Likewise.
18630 * kern/rescue_reader.c: Likewise.
18631 * normal/autofs.c: Likewise.
18632 * normal/dyncmd.c: Likewise.
18633
18634 * include/grub/rescue.h: Removed.
18635 * normal/command.h: Likewise.
18636
18637 * include/grub/script.h: Moved to ...
18638 * include/grub/script_sh.h: ... Moved here.
18639 * normal/execute.c: Moved to ...
18640 * script/sh/execute.c: ... Moved here.
18641 * normal/function.c: Moved to ...
18642 * script/sh/function.c: ... Moved here.
18643 * normal/lexer.c: Moved to ...
18644 * script/sh/lexer.c: ... Moved here.
18645 * normal/parser.y: Moved to ...
18646 * script/sh/parser.y: ... Moved here.
18647 * normal/script.c: Moved to ...
18648 * script/sh/script.c: ... Moved here.
18649
18650 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
18651 <grub/reader.h>.
18652 (grub_exit_env): Removed.
18653 (fs_module_list): Moved to normal/autofs.c.
18654 (grub_file_getline): Don't handle comment here.
18655 (free_menu): Skip removed field entry->commands.
18656 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
18657 script parameter.
18658 (read_config_file): Removed nested parameter, change getline function.
18659 (grub_enter_normal_mode): Removed.
18660 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
18661 (read_command_list): Likewise.
18662 (autoload_fs_module): Moved to normal/autofs.c.
18663 (read_fs_list): Likewise.
18664 (reader_nested): New variable.
18665 (grub_normal_execute): Run parser.sh to switch to sh parser.
18666 (grub_cmd_rescue): Removed.
18667 (cmd_normal): Removed.
18668 (grub_cmd_normal): Unregister itself at the beginning. Don't register
18669 rescue command.
18670 (grub_cmdline_run): New function.
18671 (grub_normal_reader_init): Likewise.
18672 (grub_normal_read_line): Likewise.
18673 (grub_env_write_pager): Likewise.
18674 (cmdline): New variable.
18675 (grub_normal_reader): Likewise.
18676 (GRUB_MOD_INIT): Register normal reader and set as current, register
18677 pager hook, register normal command with grub_register_command_prio,
18678 so that it won't show up in command.lst.
18679 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
18680 grub_fs_autoload_hook.
18681
18682 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
18683 (grub_menu_execute_entry): Replace grub_script_execute with
18684 grub_parser_execute, change parameter to grub_command_execute.
18685
18686 * normal/menu_text.c: Remove <grub/script.h>.
18687
18688 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
18689 and <grub/parser.h>.
18690 (run): Change editor_getline to use new parser interface. Change
18691 parameter to grub_command_execute.
18692
18693 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
18694 <grub/reader.h> and <grub/parser.h>.
18695 (grub_load_normal_mode): Execute normal command.
18696 (grub_main): Call grub_register_core_commands,
18697 grub_register_rescue_parser and grub_register_rescue_reader, use
18698 grub_reader_loop to enter input loop.
18699
18700 * kern/parser.c (grub_parser_split_cmdline): Change type of
18701 getline parameter.
18702 (grub_parser_class): New variable.
18703 (grub_parser_execute): New function.
18704
18705 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
18706 * loader/multiboot2.c: Likewise.
18707 * loader/sparc64/ieee1275/linux.c: Likewise.
18708
18709 * util/grub-emu.c (read_command_list): New dummy function.
18710
18711 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
18712
18713 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
18714 count to 16 for CCISS and IDA.
18715
18716 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
18717
18718 * normal/menu_text.c (grub_wait_after_message): Print a newline
18719 after waiting for user input.
18720
18721 * loader/i386/linux.c: Include `<grub/normal.h>'.
18722 (grub_cmd_linux): Improve the error message about `ask' mode, by
18723 waiting for user input so it's not missed (we can do this, since
18724 user requested interaction).
18725
18726 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
18727
18728 Added missing lst to grub-mkrescue
18729
18730 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
18731 and ${input_dir}/parttool.lst
18732
18733 2009-04-30 David S. Miller <davem@davemloft.net>
18734
18735 * util/hostdisk.c (device_is_wholedisk): New function.
18736 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
18737 zero only if device_is_wholedisk() returns true.
18738
18739 * util/hostdisk.c (convert_system_partition_to_system_disk):
18740 Handle virtual disk devices named /dev/vdiskX as found on sparc
18741 and powerpc.
18742
18743 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
18744 lettered partition specifier is found, convert to numbered.
18745
18746 2009-04-29 David S. Miller <davem@davemloft.net>
18747
18748 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
18749 * include/grub/sparc64/ieee1275/memory.h: Likewise.
18750
18751 * normal/command.c: Add missing newline at end of file.
18752
18753 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
18754 warnings.
18755 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
18756 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
18757 grub_ofdisk_read): Likewise, and deal similarly with the fact that
18758 ihandles have a 32-bit type but need to be stored in a "void *".
18759
18760 2009-04-28 Pavel Roskin <proski@gnu.org>
18761
18762 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
18763 not disk. Adjust all dependencies.
18764 (grub_fs_uuid_close): Use grub_device_close(), not
18765 grub_disk_close().
18766
18767 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
18768 parent's partition, don't copy it by reference, as it gets freed
18769 on close.
18770
18771 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
18772
18773 Preboot hooks support
18774
18775 * commands/boot.c (struct grub_preboot_t): new declaration
18776 (preboots_head): new variable
18777 (preboots_tail): likewise
18778 (grub_loader_register_preboot_hook): new function
18779 (grub_loader_unregister_preboot_hook): likewise
18780 (grub_loader_set): launch preboot hooks
18781 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
18782 (grub_loader_register_preboot_hook): new declaration
18783 (grub_loader_unregister_preboot_hook): likewise
18784
18785 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
18786
18787 Warning fix
18788
18789 * disk/scsi.c (grub_scsi_open): added missing cast when
18790 calling grub_dprintf
18791
18792 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
18793
18794 Bug and warning fixes
18795
18796 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
18797 declaration
18798 * commands/test.c (test_parse): fixed bug with file tests and corrected
18799 declaration of find_file
18800
18801 2009-04-26 Pavel Roskin <proski@gnu.org>
18802
18803 * Makefile.in: Don't install empty manual pages if help2man is
18804 missing. Use help2man option for output, not shell redirection.
18805
18806 2009-04-26 David S. Miller <davem@davemloft.net>
18807
18808 * util/grub-mkdevicemap.c (make_device_map): Add missing
18809 NESTED_FUNC_ATTR to process_device().
18810
18811 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18812
18813 Test command
18814
18815 * commands/test.c: rewritten to use bash-like test
18816
18817 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18818
18819 Parttool autoloading and improvements
18820
18821 * Makefile.in (pkglib_DATA): add parttool.lst
18822 (parttool.lst): new target
18823 * genmk.rb: generate parttool-*
18824 (CLEANFILES): add #{parttool}
18825 (PARTTOOLFILES): new variable
18826 * genparttoollist.sh: new file
18827 * parttool/pcpart.c (grub_pcpart_boot): more feedback
18828 (grub_pcpart_type): likewise
18829 * commands/parttool.c (helpmsg): new variable
18830 (grub_cmd_parttool): output help if not enough arguments are supplied
18831 autoload modules
18832 (GRUB_MOD_INIT(parttool)): use helpmsg
18833
18834 2009-04-24 David S. Miller <davem@davemloft.net>
18835
18836 Avoiding opening same device multiple times in device iterator.
18837
18838 * kern/device.c: (grub_device_iterate): Define struct part_ent,
18839 and use it to build a list of partitions in iterate_disk() and
18840 iterate_partition().
18841
18842 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
18843 on disk->data.
18844
18845 * disk/ieee1275/nand.c (grub_nand_iterate): Return
18846 grub_devalias_iterate() result instead of unconditional 0.
18847 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
18848 Also, capture hook return value, either directly or via
18849 grub_children_iterate(), and propagate to caller.
18850 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
18851 grub_children_iterate): Return value is now 'int' instead of
18852 'grub_err_t'.
18853 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
18854 like a proper iterator, stopping when hooks return non-zero.
18855 (grub_devalias_iterate): Likewise.
18856
18857 2009-04-23 David S. Miller <davem@davemloft.net>
18858
18859 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
18860
18861 2009-04-22 David S. Miller <davem@davemloft.net>
18862
18863 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
18864 is larger than address_cells, use that value for address_cells too.
18865
18866 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
18867 IEEE1275_MAX_PATH_LEN): Define.
18868 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
18869 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
18870 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
18871 'devtype'. Explicitly NULL terminate devalias expansion.
18872
18873 * util/sparc64/ieee1275/misc.c: New file.
18874 * util/sparc64/ieee1275/grub-setup.c: New file.
18875 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
18876 * util/sparc64/ieee1275/grub-mkimage.c: New file.
18877 * util/sparc64/ieee1275/grub-install.in: New file.
18878 * util/ieee1275/ofpath.c: New file.
18879 * util/ieee1275/devicemap.c: New file.
18880 * util/devicemap.c: New file.
18881 * util/deviceiter.c: New file.
18882 * kern/sparc64/ieee1275/init.c: New file.
18883 * include/grub/util/ofpath.h: New file.
18884 * include/grub/util/deviceiter.h: New file.
18885 * util/grub-mkdevicemap.c: Include deviceiter.h.
18886 Implement using grub_util_emit_devicemap_entry and
18887 grub_util_iterate_devices.
18888 * conf/i386-corebook.rmk: Build util/deviceiter.c and
18889 util/devicemap.c into grub-mkdevicemap
18890 * conf/i386-efi.rmk: Likewise.
18891 * conf/i386-ieee1275.rmk: Likewise.
18892 * conf/i386-pc.rmk: Likewise.
18893 * conf/powerpc-ieee1275.rmk: Likewise.
18894 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
18895 images and installation utilities. Build kernel as image
18896 instead of as elf binary. Use common rules as much as possible.
18897
18898 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
18899
18900 Correct GPT definition
18901
18902 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
18903 of "attrib" member
18904
18905 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
18906
18907 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
18908
18909 2009-04-19 David S. Miller <davem@davemloft.net>
18910
18911 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
18912 (grub_rescue_cmd_linux): Rename to...
18913 (grub_cmd_linux): and fix prototype.
18914 (grub_rescue_cmd_initrd): Rename to...
18915 (grub_cmd_initrd): and fix prototype.
18916 (cmd_linux, cmd_initrd): New.
18917 (GRUB_MOD_INIT(linux)): Use grub_register_command().
18918 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
18919
18920 2009-04-17 Pavel Roskin <proski@gnu.org>
18921
18922 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
18923 format.
18924 (grub_ohci_transfer): Likewise.
18925
18926 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
18927
18928 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
18929 return without a value. Fix inconsistent indentation.
18930
18931 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
18932 match struct grub_fs.
18933
18934 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
18935 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
18936 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
18937 * commands/lspci.c (grub_lspci_iter): Likewise.
18938
18939 2009-04-16 Bean <bean123ch@gmail.com>
18940
18941 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
18942 value.
18943
18944 2009-04-15 Pavel Roskin <proski@gnu.org>
18945
18946 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
18947 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
18948 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
18949 definitions.
18950
18951 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
18952
18953 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
18954 that no multiple data or metadata areas are supported and `Unknown
18955 metadata header'.
18956
18957 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
18958
18959 Move loader out of the kernel
18960
18961 * kern/loader.c: moved to ...
18962 * commands/boot.c: ... moved here
18963 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
18964 * commands/boot.c (grub_cmd_boot): moved here. All users updated
18965 * include/grub/kernel.h (grub_machine_fini): export
18966 * include/grub/loader.h (grub_loader_is_loaded): update declaration
18967 (grub_loader_set): likewise
18968 (grub_loader_unset): likewise
18969 (grub_loader_boot): likewise
18970 * conf/common.rmk: new module boot.mod
18971 (pkglib_MODULES): add boot.mod
18972 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
18973 (grub_emu_SOURCES): likewise
18974 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
18975 (grub_emu_SOURCES): likewise
18976 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
18977 (grub_emu_SOURCES): likewise
18978 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
18979 (grub_emu_SOURCES): likewise
18980 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
18981 (grub_emu_SOURCES): likewise
18982 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
18983 (grub_emu_SOURCES): likewise
18984 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
18985 (grub_emu_SOURCES): likewise
18986
18987 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
18988
18989 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
18990
18991 * kern/misc.c (grub_itoa): Removed function
18992 (grub_ltoa): likewise
18993 (grub_vsprintf): use grub_lltoa
18994
18995 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
18996
18997 Restore grub-emu
18998
18999 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
19000 * conf/i386-coreboot.rmk: likewise
19001 * conf/i386-ieee1275.rmk: likewise
19002 * conf/powerpc-ieee1275.rmk: likewise
19003
19004 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
19005
19006 * INSTALL: Add that `./autogen.sh' needs to be run before
19007 `./configure.'.
19008
19009 2009-04-14 Bean <bean123ch@gmail.com>
19010
19011 * Makefile.in (pkglib_DATA): Add handler.lst.
19012 (handler.lst): New rule.
19013
19014 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
19015 * conf/i386-coreboot.rmk: Likewise.
19016 * conf/i386-ieee1275.rmk: Likewise.
19017 * conf/i386-efi.rmk: Likewise.
19018 * conf/x86_64-efi.rmk: Likewise.
19019 * conf/powerpc-ieee1275.rmk: Likewise.
19020 * conf/sparc64-ieee1275.rmk: Likewise.
19021
19022 * genhandlerlist.sh: New file.
19023
19024 * genmk.rb: Add rules to generate handler.lst.
19025
19026 * include/grub/normal.h (grub_file_getline): New function definition.
19027 (read_handler_list): Likewise.
19028 (free_handler_list): Likewise.
19029
19030 * include/grub/term.h (grub_term_register_input): Add name parameter
19031 for auto generation of handler.lst.
19032 (grub_term_register_output): Likewise.
19033
19034 * normal/handler.c: New file.
19035
19036 * normal/main.c (get_line): Renamed to grub_file_getline.
19037 (read_config_file): Use the newly renamed grub_file_getline.
19038 (read_command_list): Likewise.
19039 (read_fs_list): Likewise.
19040 (grub_normal_execute): Call read_handler_list to parse handler.lst.
19041 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
19042
19043 * term/efi/console.c (grub_console_init): Add name parameter for auto
19044 generation of handler.lst.
19045 * term/gfxterm.c: Likewise.
19046 * term/i386/pc/at_keyboard.c: Likewise.
19047 * term/i386/pc/console.c: Likewise.
19048 * term/i386/pc/serial.c: Likewise.
19049 * term/i386/pc/vesafb.c: Likewise.
19050 * term/i386/pc/vga.c: Likewise.
19051 * term/i386/pc/vga_text.c: Likewise.
19052 * term/ieee1275/ofconsole.c: Likewise.
19053 * term/usb_keyboard.c: Likewise.
19054
19055 2009-04-14 Bean <bean123ch@gmail.com>
19056
19057 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
19058 properly with null character.
19059
19060 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
19061
19062 * configure: Remove.
19063 * config.h.in: Likewise.
19064 * stamp-h.in: Likewise.
19065 * DISTLIST: Likewise.
19066 * conf/common.mk: Likewise.
19067 * conf/i386-coreboot.mk: Likewise.
19068 * conf/i386-efi.mk: Likewise.
19069 * conf/i386-ieee1275.mk: Likewise.
19070 * conf/i386.mk: Likewise.
19071 * conf/i386-pc.mk: Likewise.
19072 * conf/powerpc-ieee1275.mk: Likewise.
19073 * conf/sparc64-ieee1275.mk: Likewise.
19074 * conf/x86_64-efi.mk: Likewise.
19075
19076 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
19077 develop on GRUB.
19078
19079 2009-04-14 John Stanley <jpsinthemix@verizon.net>
19080 David S. Miller <davem@davemloft.net>
19081
19082 * util/hostdisk.c (make_device_name): Fix buffer length
19083 calculations.
19084
19085 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
19086
19087 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
19088 <sys/param.h> and <sys/sysctl.h>.
19089 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
19090 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
19091 opening the device and reset them afterwards.
19092
19093 2009-04-13 Pavel Roskin <proski@gnu.org>
19094
19095 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
19096 Reported by John Stanley <jpsinthemix@verizon.net>
19097
19098 2009-04-13 Robert Millan <rmh@aybabtu.com>
19099
19100 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
19101 that name for menuentries when appropriate.
19102
19103 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
19104
19105 * util/grub.d/10_freebsd.in: Add a missing `fi'.
19106
19107 2009-04-13 Robert Millan <rmh@aybabtu.com>
19108
19109 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
19110 to Linux, simply abort telling the user it's no longer supported.
19111
19112 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
19113
19114 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
19115 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
19116 `freebsd_loadenv' only when devices.hints exist.
19117
19118 2009-04-13 Pavel Roskin <proski@gnu.org>
19119
19120 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
19121
19122 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
19123
19124 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
19125 partition number.
19126 (grub_drive): Likewise.
19127
19128 2009-04-13 David S. Miller <davem@davemloft.net>
19129
19130 * kern/sparc64/ieee1275/ieee1275.c: New file.
19131 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
19132 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
19133 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
19134 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
19135 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
19136 grub_ieee1275_alloc_physmem): Declare new exported functions.
19137
19138 * include/grub/sparc64/ieee1275/loader.h: New file.
19139 * include/grub/sparc64/ieee1275/memory.h: Likewise.
19140 * include/grub/sparc64/kernel.h: Likewise.
19141 * loader/sparc64/ieee1275/linux.c: Likewise.
19142
19143 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
19144 (grub_fstest_SOURCES): Likewise.
19145
19146 * util/hostdisk.c (make_device_name): Do not make any assumptions
19147 about the length of drive names.
19148
19149 * kern/dl.c (grub_dl_load_file): Close file immediately when
19150 we are done using it.
19151
19152 2009-04-12 David S. Miller <davem@davemloft.net>
19153
19154 * kern/misc.c (grub_ltoa): Fix cast when handling negative
19155 values. Noticed by Pavel Roskin.
19156
19157 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
19158 target compiler.
19159
19160 * genmk.rb: Add more flexible image type specification, also
19161 pass --strip-unneeded to objcopy.
19162 * conf/i386-pc.rmk: Use *_FORMAT.
19163 * conf/i386-pc.mk: Rebuilt.
19164
19165 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
19166 (OFDISK_HASH_SZ): Define.
19167 (ofdisk_hash): New hash table.
19168 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
19169 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
19170 instead of device phandle which is not unique.
19171
19172 * kern/sparc64/ieee1275/init.c: Delete, replace with...
19173 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
19174 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
19175 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
19176 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
19177 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
19178 GRUB_KERNEL_MACHINE_DATA_END): Define.
19179 (grub_kernel_image_size, grub_total_module_size): Declare.
19180
19181 2009-04-12 Pavel Roskin <proski@gnu.org>
19182
19183 * configure.ac: Change the logic when we check for target tools.
19184 Do it when the target is specified and it's different from the
19185 specified value of the host.
19186
19187 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
19188
19189 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
19190 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
19191 GNU/kFreeBSD. Check if a device is a character device. Use
19192 DIOCGMEDIASIZE to get the size.
19193 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
19194 support for GNU/kFreeBSD.
19195 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
19196 is a character device instead of a block device. Add support for
19197 FreeBSD device names.
19198
19199 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
19200 is a character device instead of a block device.
19201
19202 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
19203 is a character device instead of a block device.
19204
19205 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
19206
19207 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
19208 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
19209 FreeBSD. Check if a device is a character device. Use
19210 DIOCGMEDIASIZE to get the size.
19211 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
19212 support for FreeBSD.
19213 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
19214 is a character device instead of a block device. Add support for
19215 FreeBSD device names.
19216
19217 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
19218 a character device instead of a block device.
19219 (grub_util_check_char_device): New function.
19220
19221 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
19222 a character device instead of a block device.
19223
19224 * include/grub/util/getroot.h (grub_util_check_char_device): New
19225 prototype.
19226
19227 2009-04-11 David S. Miller <davem@davemloft.net>
19228
19229 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
19230 static libgcc.
19231 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
19232 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
19233 function, if present.
19234 (__bswapdi2): Likewise.
19235
19236 * include/grub/sparc64/ieee1275/boot.h: New file.
19237 * boot/sparc64/ieee1275/boot.S: Likewise.
19238 * boot/sparc64/ieee1275/diskboot.S: Likewise.
19239
19240 * kern/misc.c (grub_ltoa): New function.
19241 (grub_vsprintf): Use it to format 'long' integers.
19242
19243 2009-04-10 David S. Miller <davem@davemloft.net>
19244
19245 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
19246 slots are of type grub_ieee1275_cell_t.
19247 (grub_nand_read): Likewise.
19248 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
19249 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
19250 macros are used to compare values in arg/ret block of the call.
19251 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
19252 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
19253 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
19254 grub_ieee1275_instance_to_path, grub_ieee1275_write,
19255 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
19256 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
19257 grub_ieee1275_close, grub_ieee1275_set_property,
19258 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
19259 grub_ieee1275_cell_t.
19260 * kern/ieee1275/openfw.c (grub_map): Likewise.
19261 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
19262 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
19263
19264 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
19265 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
19266 (grub_devalias_iterate): Likewise.
19267
19268 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19269
19270 UFS improvements
19271
19272 * fs/ufs.c (INODE_NBLOCKS): new definition
19273 (struct grub_ufs_dirent): added fields for non-BSD dirents
19274 (grub_ufs_get_file_block): fixed double indirect handling
19275 (grub_ufs_lookup_symlink): use more robust way to determine whether
19276 symlink is inline
19277 (grub_ufs_find_file): support for non-BSD dirents
19278 (grub_ufs_dir): support for non-BSD dirents
19279
19280 2009-04-10 Bean <bean123ch@gnail.com>
19281
19282 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
19283 attribute, otherwise the size would be wrong for i386 platform.
19284
19285 * include/grub/pci.h (grub_pci_read_word): New inline function.
19286 (grub_pci_read_byte): Likewise.
19287 (grub_pci_write): Likewise.
19288 (grub_pci_write_word): Likewise.
19289 (grub_pci_write_byte): Likewise.
19290
19291 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
19292
19293 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
19294 (find_framebuf): Scan pci to locate the frame buffer address.
19295
19296 * commands/efi/fixvideo.c: New file.
19297
19298 * commands/efi/loadbios.c: Likewise.
19299
19300 * commands/memrw.c: Likewise.
19301
19302 * util/grub-dumpbios.in: Likewise.
19303
19304 * conf/common.rmk (grub-dumpbios): New utility.
19305 (pkglib_MODULES): New module memrw.mod.
19306 (memrw_mod_SOURCE): New macro.
19307 (memrw_mod_CFLAGS): Likewise.
19308 (memrw_mod_LDFLAGS): Likewise.
19309
19310 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
19311 fixvideo.mod.
19312 (loadbios_mod_SOURCE): New macro.
19313 (loadbios_mod_CFLAGS): Likewise.
19314 (loadbios_mod_LDFLAGS): Likewise.
19315 (fixvideo_mod_SOURCE): Likewise.
19316 (fixvideo_mod_CFLAGS): Likewise.
19317 (fixvideo_mod_LDFLAGS): Likewise.
19318
19319 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
19320 fixvideo.mod.
19321 (loadbios_mod_SOURCE): New macro.
19322 (loadbios_mod_CFLAGS): Likewise.
19323 (loadbios_mod_LDFLAGS): Likewise.
19324 (fixvideo_mod_SOURCE): Likewise.
19325 (fixvideo_mod_CFLAGS): Likewise.
19326 (fixvideo_mod_LDFLAGS): Likewise.
19327
19328 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
19329
19330 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
19331
19332 2009-04-07 David S. Miller <davem@davemloft.net>
19333
19334 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
19335 support for R_SPARC_OLO10 relocations. Fix compile warning for
19336 R_SPARC_WDISP30 case.
19337 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
19338
19339 2009-04-06 Pavel Roskin <proski@gnu.org>
19340
19341 * include/grub/misc.h (ARRAY_SIZE): New macro.
19342 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
19343 New macro.
19344 * loader/i386/linux.c (allocate_pages): Use free_pages().
19345 (grub_linux_unload): Don't use free_pages().
19346 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
19347 wrong index. Treat all other modes as text modes.
19348 (grub_cmd_linux): Initialize vid_mode unconditionally to
19349 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
19350
19351 * commands/help.c (print_command_help): Use cmd->prio, not
19352 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
19353
19354 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19355
19356 Parttool
19357
19358 * parttool/pcpart.c: new file
19359 * commands/parttool.c: likewise
19360 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
19361 (parttool_mod_SOURCES): new variable
19362 (parttool_mod_CFLAGS): likewise
19363 (parttool_mod_LDFLAGS): likewise
19364 (pcpart_mod_SOURCES): likewise
19365 (pcpart_mod_CFLAGS): likewise
19366 (pcpart_mod_LDFLAGS): likewise
19367 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
19368 and parttool/pcpart.c
19369 * conf/i386-efi.rmk: likewise
19370 * conf/i386-ieee1275.rmk: likewise
19371 * conf/i386-pc.rmk: likewise
19372 * conf/powerpc-ieee1275.rmk: likewise
19373 * conf/sparc64-ieee1275.rmk: likewise
19374 * conf/x86_64-ieee1275.rmk: likewise
19375
19376 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
19377
19378 Support for mtime and further expandability of dir command
19379
19380 * include/grub/lib/datetime.h: moved to ...
19381 * include/grub/datetime.h: ... moved here and added
19382 declaration of grub_unixtime2datetime. All users updated
19383 * include/grub/fs.h: new syntax for dir and mtime functions in
19384 struct grub_fs
19385 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
19386 and GRUB_FSHELP_FLAGS_MASK
19387 * commands/ls.c (grub_ls_list_files): Write mtime in long format
19388 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
19389 (grub_ext2_mtime): new function
19390 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
19391 (grub_hfsplus_mtime): new function
19392 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
19393 (GRUB_UFS_ATTR_FILE): likewise
19394 (GRUB_UFS_ATTR_LNK): likewise
19395 (struct grub_ufs_sblock): new fields mtime
19396 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
19397 all users updated
19398 (grub_ufs_dir): mtime support
19399 (grub_ufs_mtime): new function
19400 * fs/affs.c (grub_affs_dir): use new dir syntax
19401 * fs/afs.c (grub_afs_dir): likewise
19402 * fs/cpio.c (grub_cpio_dir): likewise
19403 * fs/fat.c (grub_fat_find_dir): likewise
19404 * fs/hfs.c (grub_hfs_dir): likewise
19405 * fs/iso9660.c (grub_iso9660_dir): likewise
19406 * fs/jfs.c (grub_jfs_dir): likewise
19407 * fs/minix.c (grub_minix_dir): likewise
19408 * fs/ntfs.c (grub_ntfs_dir): likewise
19409 * fs/reiserfs.c (grub_reiserfs_dir): likewise
19410 * fs/sfs.c (grub_sfs_dir): likewise
19411 * fs/xfs.c (grub_xfs_dir): likewise
19412 * util/hostfs.c (grub_hostfs_dir): likewise
19413 * lib/datetime.c: moved to ...
19414 * normal/datetime.c: ... moved here
19415 (grub_unixtime2datetime): new function
19416 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
19417 * normal/completion.c (iterate_dir): use new dir syntax
19418 * normal/misc.c (grub_normal_print_device_info): tell the
19419 last modification time of a volume
19420 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
19421 * conf/common.rmk: added lib/datetime.c to ls.mod
19422 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
19423 (normal_mod_SOURCES): likewise
19424 (datetime_mod_SOURCES): Removed lib/datetime.c
19425 * conf/i386-efi.rmk: likewise
19426 * conf/i386-ieee1275.rmk: likewise
19427 * conf/i386-pc.rmk: likewise
19428 * conf/powerpc-ieee1275.rmk: likewise
19429 * conf/sparc64-ieee1275.rmk: likewise
19430 * conf/x86_64-efi.rmk: likewise
19431
19432 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
19433
19434 Trim trailing spaces in FAT label and support mtools-like labels
19435
19436 * fs/fat.c (grub_fat_iterate_dir): New function based
19437 on grub_fat_find_dir
19438 (grub_fat_find_dir): use grub_fat_iterate_dir
19439 (grub_fat_label): likewise
19440
19441 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
19442
19443 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
19444 and command.h
19445 remove extraneous kernel_elf_HEADERS
19446
19447 2009-04-04 Bean <bean123ch@gnail.com>
19448
19449 * include/grub/util/misc.h: Add dummy function fsync for mingw.
19450
19451 * util/misc.c: Likewise.
19452
19453 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19454
19455 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
19456 instead of grub_printf.
19457
19458 2009-04-03 Robert Millan <rmh@aybabtu.com>
19459
19460 * loader/i386/linux.c (grub_linux_setup_video): Fill
19461 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
19462 values from `mode info' structure instead of hardcoded
19463 values.
19464
19465 2009-04-01 Pavel Roskin <proski@gnu.org>
19466
19467 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
19468 unused now.
19469 * genmk.rb: Likewise.
19470 * configure.ac: Likewise.
19471
19472 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
19473
19474 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
19475 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
19476
19477 2009-04-01 David S. Miller <davem@davemloft.net>
19478
19479 * normal/sparc64/setjmp.S: Fix setjmp implementation.
19480 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
19481 (grub_setjmp): Mark with 'returns_twice' attribute.
19482 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
19483 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
19484 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
19485
19486 2009-04-01 Robert Millan <rmh@aybabtu.com>
19487
19488 Reapply fix from 2008-07-28 which was accidentally reverted; also
19489 perform the same fix to a similar check in same function.
19490
19491 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
19492 with the same number are found, just use issue a warning with
19493 grub_dprintf(), as this error has been reported to be non-fatal.
19494
19495 2009-03-31 Pavel Roskin <proski@gnu.org>
19496
19497 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
19498 for cross-compilation.
19499
19500 2009-03-30 Robert Millan <rmh@aybabtu.com>
19501
19502 Fix i386-ieee1275 build.
19503
19504 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
19505 Remove declaration.
19506
19507 2009-03-30 Pavel Roskin <proski@gnu.org>
19508
19509 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
19510 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
19511 zero-terminated, rely only on the strlen value. Fix comparison
19512 of strings differing in length.
19513
19514 2009-03-30 Robert Millan <rmh@aybabtu.com>
19515
19516 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
19517 checking for abi version. Improve error messages on BIOS to notify
19518 user about `linux16' command.
19519
19520 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19521
19522 Leak fixes
19523
19524 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
19525 in case of collision
19526 * disk/scsi.c (grub_scsi_open): free scsi in case of error
19527
19528 2009-03-29 Robert Millan <rmh@aybabtu.com>
19529
19530 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
19531 set `vid_mode' accordingly.
19532 (grub_linux_boot): Process `vid_mode' and set video mode.
19533
19534 2009-03-29 Robert Millan <rmh@aybabtu.com>
19535
19536 * util/grub.d/10_linux.in (linux_entry): New function.
19537 Factorize generation of Linux boot entries.
19538
19539 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
19540
19541 Make the format of Environment Block plain text. The boot loader
19542 part is not tested well yet.
19543
19544 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
19545 (buffer): Removed.
19546 (envblk): Likewise.
19547 (usage): Remove "info" and "clear". Add "unset". Update the
19548 description of "set", as this does not delete variables any
19549 longer.
19550 (create_envblk_file): Complete rewrite.
19551 (open_envblk_file): Likewise.
19552 (cmd_info): Removed.
19553 (cmd_list): Likewise.
19554 (cmd_set): Likewise.
19555 (cmd_clear): Likewise.
19556 (list_variables): New function.
19557 (write_envblk): Likewise.
19558 (set_variables): Likewise.
19559 (unset_variables): Likewise.
19560 (main): Complete rewrite.
19561
19562 * commands/loadenv.c (buffer): Removed.
19563 (envblk): Likewise.
19564 (open_envblk_file): New function.
19565 (read_envblk_file): Complete rewrite.
19566 (grub_cmd_load_env): Likewise.
19567 (grub_cmd_list_env): Likewise.
19568 (struct blocklist): New struct.
19569 (free_blocklists): New function.
19570 (check_blocklists): Likewise.
19571 (write_blocklists): Likewise.
19572 (grub_cmd_save_env): Complete rewrite.
19573
19574 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
19575 a plain text signature.
19576 (GRUB_ENVBLK_MAXLEN): Removed.
19577 (struct grub_envblk): Complete rewrite.
19578 (grub_envblk_find): Removed.
19579 (grub_envblk_insert): Likewise.
19580 (grub_envblk_open): New prototype.
19581 (grub_envblk_set): Likewise.
19582 (grub_envblk_delete): Put const to VALUE.
19583 (grub_envblk_iterate): Put const to NAME and VALUE.
19584 (grub_envblk_close): New prototype.
19585 (grub_envblk_buffer): New inline function.
19586 (grub_envblk_size): Likewise.
19587
19588 * lib/envblk.c: Include grub/mm.h.
19589 (grub_env_find): Removed.
19590 (grub_envblk_open): New function.
19591 (grub_envblk_close): Likewise.
19592 (escaped_value_len): Likewise.
19593 (find_next_line): Likewise.
19594 (grub_envblk_insert): Removed.
19595 (grub_envblk_set): New function.
19596 (grub_envblk_delete): Complete rewrite.
19597 (grub_envblk_iterate): Likewise.
19598
19599 2009-03-28 Robert Millan <rmh@aybabtu.com>
19600
19601 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
19602 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
19603 variables. Use 16-bit loader.
19604 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
19605 loader.
19606 * kern/i386/loader.S (grub_linux_boot): Rename to ...
19607 (grub_linux16_boot): ... this. Update all users.
19608 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
19609 (grub_linux_boot): ... this. Update all users.
19610
19611 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
19612 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
19613 commands to `linux16' and `initrd16'.
19614 (GRUB_MOD_FINI(linux)): Rename to ...
19615 (GRUB_MOD_FINI(linux16)): ... this.
19616
19617 2009-03-24 Pavel Roskin <proski@gnu.org>
19618
19619 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
19620 not just for compilation.
19621
19622 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
19623
19624 Move multiboot helper out of kernel
19625
19626 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
19627 `loader/i386/multiboot_helper.S'.
19628 * conf/i386-coreboot.rmk: Likewise
19629 * conf/i386-ieee1275.rmk: Likewise
19630
19631 * kern/i386/loader.S: Move multiboot helpers from here...
19632 * loader/i386/multiboot_helper.S: ...moved here
19633 * include/grub/i386/loader.h: Move declarations of multiboot
19634 helpers from here...
19635 * include/grub/i386/multiboot.h: ...moved here
19636 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
19637
19638 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
19639
19640 * kern/env.c (grub_env_context_open): Added an argument to specify
19641 whether a new context inherits exported variables from current
19642 one. This is useful when making a sandbox to interpret a config
19643 file.
19644 All callers updated.
19645
19646 * include/grub/env.h (grub_env_context_open): Updated the prototype.
19647
19648 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
19649
19650 * kern/env.c (grub_env_context_close): Fix memory leaks.
19651
19652 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
19653
19654 * normal/main.c (grub_normal_execute): Added an argument
19655 BATCH to specify if an interactive interface should be provided
19656 after reading a config file.
19657 All callers updated.
19658 (read_command_list): Prevent being executed twice.
19659 (read_fs_list): Likewise.
19660
19661 * include/grub/normal.h (grub_normal_execute): Updated the
19662 prototype.
19663
19664 2009-03-22 Pavel Roskin <proski@gno.org>
19665
19666 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
19667 _start.
19668 * kern/i386/pc/startup.S: Likewise.
19669 * kern/i386/efi/startup.S: Likewise.
19670 * kern/i386/ieee1275/startup.S: Likewise.
19671 * kern/i386/coreboot/startup.S: Likewise.
19672 * kern/x86_64/efi/startup.S: Likewise.
19673
19674 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
19675 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
19676 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
19677
19678 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
19679
19680 Bugfixes in multiboot for bugs uncovered by solaris kernel.
19681
19682 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
19683 limit detection.
19684 Use vaddr of correct segment for entry_point.
19685
19686 2009-03-21 Bean <bean123ch@gmail.com>
19687
19688 * commands/blocklist.c: Add include file <grub/command.h>, remove
19689 <grub/normal.h> and <grub/arg.h>.
19690 (grub_cmd_blocklist): Use the new command interface.
19691 (GRUB_MOD_INIT): Likewise.
19692 (GRUB_MOD_FINI): Likewise.
19693 * commands/boot.c: Likewise.
19694 * commands/cat.c: Likewise.
19695 * commands/cmp.c: Likewise.
19696 * commands/configfile.c: Likewise.
19697 * commands/crc.c: Likewise.
19698 * commands/echo.c: Likewise.
19699 * commands/halt.c: Likewise.
19700 * commands/handler.c: Likewise.
19701 * commands/hdparm.c: Likewise.
19702 * commands/help.c: Likewise.
19703 * commands/hexdump.c: Likewise.
19704 * commands/loadenv.c: Likewise.
19705 * commands/ls.c: Likewise.
19706 * commands/lsmmap.c: Likewise.
19707 * commands/lspci.c: Likewise.
19708 * commands/loadenv.c: Likewise.
19709 * commands/read.c: Likewise.
19710 * commands/reboot.c: Likewise.
19711 * commands/search.c: Likewise.
19712 * commands/sleep.c: Likewise.
19713 * commands/test.c: Likewise.
19714 * commands/usbtest.c: Likewise.
19715 * commands/videotest.c: Likewise.
19716 * commands/i386/cpuid.c: Likewise.
19717 * commands/i386/pc/halt.c: Likewise.
19718 * commands/i386/pc/play.c: Likewise.
19719 * commands/i386/pc/pxecmd.c: Likewise.
19720 * commands/i386/pc/vbeinfo.c: Likewise.
19721 * commands/i386/pc/vbetest.c: Likewise.
19722 * commands/ieee1275/suspend.c: Likewise.
19723 * disk/loopback.c: Likewise.
19724 * font/font_cmd.c: Likewise.
19725 * hello/hello.c: Likewise.
19726 * loader/efi/appleloader.c: Likewise.
19727 * loader/efi/chainloader.c: Likewise.
19728 * loader/i386/bsd.c: Likewise.
19729 * loader/i386/efi/linux.c: Likewise.
19730 * loader/i386/ieee1275/linux.c: Likewise.
19731 * loader/i386/linux.c: Likewise.
19732 * loader/i386/pc/chainloader.c: Likewise.
19733 * loader/i386/pc/linux.c: Likewise.
19734 * loader/powerpc/ieee1275/linux.c: Likewise.
19735 * loader/multiboot_loader.c: Likewise.
19736 * term/gfxterm.c: Likewise.
19737 * term/i386/pc/serial.c: Likewise.
19738 * term/terminfo.c: Likewise.
19739
19740 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
19741 * term/i386/pc/vga.c: Likewise.
19742 * video/readers/jpeg.c: Likewise.
19743 * video/readers/png.c: Likewise.
19744 * video/readers/tga.c: Likewise.
19745
19746 * util/grub-fstest (cmd_loopback): Removed.
19747 (cmd_blocklist): Likewise.
19748 (cmd_ls): Likewise.
19749 (grub_register_command): Likewise.
19750 (grub_unregister_command): Likewise.
19751 (execute_command): Use grub_command_find to locate command and execute
19752 it.
19753
19754 * include/grub/efi/chainloader.h: Removed.
19755 * loader/efi/chainloader_normal.c: Likewise.
19756 * loader/i386/bsd_normal.c: Likewise.
19757 * loader/i386/pc/chainloader_normal.c: Likewise.
19758 * loader/i386/pc/multiboot_normal.c: Likewise.
19759 * loader/linux_normal.c: Likewise.
19760 * loader/multiboot_loader_normal.c: Likewise.
19761 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
19762
19763 * gencmdlist.sh: Scan new registration command grub_register_extcmd
19764 and grub_register_command_p1.
19765
19766 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
19767 kern/command.c, lib/arg.c and commands/extcmd.c.
19768 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
19769 (minicmd_mod_SOURCES): New variable.
19770 (minicmd_mod_CFLAGS): Likewise.
19771 (minicmd_mod_LDFLAGS): Likewise.
19772 (extcmd_mod_SOURCES): Likewise.
19773 (extcmd_mod_CFLAGS): Likewise.
19774 (extcmd_mod_LDFLAGS): Likewise.
19775 (boot_mod_SOURCES): Removed.
19776 (boot_mod_CFLAGS): Likewise.
19777 (boot_mod_LDFLAGS): Likewise.
19778
19779 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
19780 kern/corecmd.c.
19781 (kernel_img_HEADERS): Add command.h.
19782 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
19783 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
19784 and lib/arg.c.
19785 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
19786 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
19787 remove the corresponding normal mode command.
19788 (normal_mod_SOURCES): Remove normal/arg.c.
19789 * conf/i386-coreboot.rmk: Likewise.
19790 * conf/i386-efi.rmk: Likewise.
19791 * conf/i386-ieee1275.rmk: Likewise.
19792 * conf/powerpc-ieee1275.rmk: Likewise.
19793 * conf/x86_64-efi.rmk: Likewise.
19794
19795 * include/grub/arg.h: Move from here ...
19796 * include/grub/lib/arg.h: ... to here.
19797
19798 * normal/arg.c: Move from here ...
19799 * lib/arg.c: ... to here.
19800
19801 * commands/extcmd.c: New file.
19802 * commands/minicmd.c: Likewise.
19803 * include/grub/command.h: Likewise.
19804 * include/grub/extcmd.h: Likewise.
19805 * kern/command.c: Likewise.
19806 * kern/corecmd.c: Likewise.
19807
19808 * kern/list.c (grub_list_iterate): Return int instead of void.
19809 (grub_list_insert): New function.
19810 (grub_prio_list_insert): Likewise.
19811
19812 * kern/rescue.c (grub_rescue_command): Removed.
19813 (grub_rescue_command_list): Likewise.
19814 (grub_rescue_register_command): Likewise.
19815 (grub_rescue_unregister_command): Likewise.
19816 (grub_rescue_cmd_boot): Move to minicmd.c
19817 (grub_rescue_cmd_help): Likewise.
19818 (grub_rescue_cmd_info): Likewise.
19819 (grub_rescue_cmd_boot): Likewise.
19820 (grub_rescue_cmd_testload): Likewise.
19821 (grub_rescue_cmd_dump): Likewise.
19822 (grub_rescue_cmd_rmmod): Likewise.
19823 (grub_rescue_cmd_lsmod): Likewise.
19824 (grub_rescue_cmd_exit): Likewise.
19825 (grub_rescue_print_devices): Moved to corecmd.c.
19826 (grub_rescue_print_files): Likewise.
19827 (grub_rescue_cmd_ls): Likewise.
19828 (grub_rescue_cmd_insmod): Likewise.
19829 (grub_rescue_cmd_set): Likewise.
19830 (grub_rescue_cmd_unset): Likewise.
19831 (attempt_normal_mode): Use grub_command_find to get normal module.
19832 (grub_enter_rescue_mode): Use grub_register_core_commands to register
19833 commands, remove grub_rescue_register_command calls.
19834
19835 * normal/command.c (grub_register_command): Removed.
19836 (grub_unregister_command): Likewise.
19837 (grub_command_find): Likewise.
19838 (grub_iterate_commands): Likewise.
19839 (rescue_command): Likewise.
19840 (export_command): Moved to corecmd.c.
19841 (set_command): Removed.
19842 (unset_command): Likewise.
19843 (insmod_command): Likewise.
19844 (rmmod_command): Likewise.
19845 (lsmod_command): Likewise.
19846 (grub_command_init): Likewise.
19847
19848 * normal/completion.c (iterate_command): Use cmd->prio to check for
19849 active command.
19850 (complete_arguments): Use grub_extcmd_t structure to find options.
19851 (grub_normal_do_completion): Change function grub_iterate_commands to
19852 grub_command_iterate.
19853
19854 * normal/execute.c (grub_script_execute_cmd): No need to parse
19855 argument here.
19856
19857 * normal/main.c (grub_dyncmd_dispatcher): New function.
19858 (read_command_list): Register unload commands as dyncmd.
19859 (grub_cmd_normal): Use new command interface, register rescue,
19860 unregister normal at entry, register normal, unregister rescue at exit.
19861
19862 * include/grub/list.h (grub_list_test_t): New type.
19863 (grub_list_iterate): Return int instead of void.
19864 (grub_list_insert): New function.
19865 (GRUB_AS_NAMED_LIST_P): New macro.
19866 (GRUB_AS_PRIO_LIST): Likewise.
19867 (GRUB_AS_PRIO_LIST_P): Likewise.
19868 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
19869 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
19870 (grub_prio_list): New structure.
19871 (grub_prio_list_insert): New function.
19872 (grub_prio_list_remove): New inline function.
19873
19874 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
19875 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
19876 (GRUB_COMMAND_FLAG_MENU): Likewise.
19877 (GRUB_COMMAND_FLAG_BOTH): Likewise.
19878 (GRUB_COMMAND_FLAG_TITLE): Likewise.
19879 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
19880 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
19881 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
19882 (grub_command): Likewise.
19883 (grub_register_command): Likewise.
19884 (grub_command_find): Likewise.
19885 (grub_iterate_commands): Likewise.
19886 (grub_command_init): Likewise.
19887 (grub_arg_parse): Likewise.
19888 (grub_arg_show_help): Likewise.
19889
19890 * include/grub/rescue.h (grub_rescue_register_command): Removed.
19891 (grub_rescue_unregister_command): Likewise.
19892
19893 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
19894 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
19895 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
19896
19897 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
19898 grub_rescue_cmd_initrd.
19899 * include/grub/i386/loader.h: Likewise.
19900 * include/grub/x86_64/loader.h: Likewise.
19901
19902 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
19903
19904 2009-03-21 Bean <bean123ch@gmail.com>
19905
19906 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
19907 instead of stat in mingw environment.
19908
19909 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
19910
19911 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
19912
19913 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
19914 AC_CONFIG_LINKS.
19915
19916 2009-03-21 Bean <bean123ch@gmail.com>
19917
19918 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
19919 out of range error.
19920
19921 2009-03-18 Michel Dänzer <michel@daenzer.net>
19922
19923 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
19924 checking inode flags for EXT4_EXTENTS_FLAG.
19925
19926 2009-03-18 Robert Millan <rmh@aybabtu.com>
19927
19928 * loader/i386/linux.c: Include `<grub/video.h>' and
19929 `<grub/i386/pc/vbe.h>'..
19930 (grub_linux_setup_video): New function. Loosely based on the EFI one.
19931 (grub_linux32_boot): Attempt to configure video settings with
19932 grub_linux_setup_video().
19933 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
19934 to avoid grub_console_fini() which would step out of graphical mode
19935 unconditionally.
19936
19937 2009-03-14 Robert Millan <rmh@aybabtu.com>
19938
19939 Fix build on powerpc.
19940 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
19941
19942 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
19943
19944 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
19945 background image command.
19946
19947 2009-03-12 Colin D Bennett <colin@gibibit.com>
19948
19949 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
19950 (grub_gfxterm_putchar): Extract pairs of identical calls to
19951 draw_cursor out of conditional blocks.
19952
19953 2009-03-11 Pavel Roskin <proski@gnu.org>
19954
19955 * fs/hfs.c (grub_hfs_strncasecmp): New function.
19956 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
19957
19958 2009-03-11 Robert Millan <rmh@aybabtu.com>
19959
19960 * loader/i386/multiboot_elfxx.c
19961 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
19962
19963 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
19964
19965 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
19966 `kern/handler.c'.
19967
19968 2009-03-11 Robert Millan <rmh@aybabtu.com>
19969
19970 * loader/i386/multiboot.c (code_size): New variable.
19971 (grub_multiboot): Define offsets by adding to `code_size' rather
19972 than subtracting from `grub_multiboot_payload_size'. Provide
19973 4-byte alignment to MBI and others by increasing
19974 `boot_loader_name_length' appropriately.
19975
19976 * loader/i386/multiboot_elfxx.c
19977 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
19978
19979 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
19980
19981 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
19982 `fs/ext2.c'.
19983
19984 2009-03-08 Robert Millan <rmh@aybabtu.com>
19985
19986 Make loader/i386/linux.c usable on i386-pc again.
19987
19988 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
19989 memory to heap.
19990 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
19991 `#error' stanza.
19992
19993 2009-03-07 Bean <bean123ch@gmail.com>
19994
19995 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
19996 allocation.
19997
19998 2009-03-06 Robert Millan <rmh@aybabtu.com>
19999
20000 Fix display issue on terminals with screen size other than 80x25
20001 (e.g. gfxterm with resolution higher than 640x480).
20002
20003 * normal/main.c (grub_normal_init_page): Display title text in a
20004 position relative to the center of the terminal instead of relying
20005 on a hardcoded offset.
20006
20007 2009-03-04 Robert Millan <rmh@aybabtu.com>
20008
20009 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
20010 installed.
20011
20012 * Makefile.in (host_kernel): New variable.
20013 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
20014 scripts instead of just the windows one.
20015 * configure.ac: Initialize and AC_SUBST `host_kernel'.
20016
20017 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
20018
20019 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
20020 `kern/handler.c'.
20021 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20022 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20023 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
20024 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20025 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20026 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20027
20028 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
20029
20030 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
20031 or if there's no space for the disk label and print the partition number on a
20032 invalid magic.
20033
20034 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
20035
20036 * util/misc.c: Include <time.h>.
20037 (grub_millisleep): New function.
20038
20039 2009-03-04 Bean <bean123ch@gmail.com>
20040
20041 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
20042 another option -mno-red-zone.
20043
20044 * commands/handler.c: Change module description.
20045
20046 * kern/handler.c: Add missing space at the end of description line.
20047
20048 * kern/list.c: Likewise.
20049
20050 2009-03-03 Robert Millan <rmh@aybabtu.com>
20051
20052 Move more components to the relocation area, and fix mbi pointer
20053 handling to use the destination rather than the origin (thanks to
20054 Vladimir Serbinenko for spotting).
20055
20056 * loader/i386/multiboot.c (mbi_dest): New variable.
20057 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
20058 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
20059 relocation area.
20060
20061 2009-03-01 Bean <bean123ch@gmail.com>
20062
20063 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
20064 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
20065 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
20066 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
20067
20068 * loader/i386/efi/linux.c (acpi_guid): New variable.
20069 (acpi_guid): Likewise.
20070 (EBDA_SEG_ADDR): New constant.
20071 (LOW_MEM_ADDR): Likewise.
20072 (FAKE_EBDA_SEG): Likewise.
20073 (fake_bios_data): New function.
20074 (grub_linux_boot): Call fake_bios_data.
20075
20076 2009-03-01 Bean <bean123ch@gmail.com>
20077
20078 * commands/terminal.c: Removed.
20079
20080 * commands/handler.c: New file.
20081
20082 * include/grub/list.h: Likewise.
20083
20084 * include/grub/handler.h: Likewise.
20085
20086 * kern/list.c: Likewise.
20087
20088 * kern/handler.c: Likewise.
20089
20090 * kern/term.h: Include header file <grub/handler.h>.
20091 (grub_term_input): Move next field to the beginning.
20092 (grub_term_output): Likewise.
20093 (grub_term_input_class): New variable.
20094 (grub_term_output_class): Likewise.
20095 (grub_term_register_input): Changed to inline function.
20096 (grub_term_register_output): Likewise.
20097 (grub_term_unregister_input): Likewise.
20098 (grub_term_unregister_output): Likewise.
20099 (grub_term_set_current_input): Likewise.
20100 (grub_term_set_current_output): Likewise.
20101 (grub_term_get_current_input): Likewise.
20102 (grub_term_get_current_output): Likewise.
20103 (grub_term_iterate_input): Removed.
20104 (grub_term_iterate_output): Likewise.
20105
20106 * kern/term.c (grub_term_list_input): Removed.
20107 (grub_term_list_output): Likewise.
20108 (grub_term_input_class): New variable.
20109 (grub_term_output_class): Likewise.
20110 (grub_cur_term_input): Change variable as macro.
20111 (grub_cur_term_output): Likewise.
20112 (grub_term_register_input): Removed.
20113 (grub_term_register_output): Likewise.
20114 (grub_term_unregister_input): Likewise.
20115 (grub_term_unregister_output): Likewise.
20116 (grub_term_set_current_input): Likewise.
20117 (grub_term_set_current_output): Likewise.
20118 (grub_term_iterate_input): Likewise.
20119 (grub_term_iterate_output): Likewise.
20120 (grub_term_get_current_input): Likewise.
20121 (grub_term_get_current_output): Likewise.
20122
20123 * util/grub-editenv.c: Include header file <grub/handler.h>.
20124 (grub_term_get_current_input): Removed.
20125 (grub_term_get_current_output): Likewise.
20126 (grub_term_input_class): New variable.
20127 (grub_term_output_class): Likewise.
20128
20129 * util/grub-fstest.c (grub_term_get_current_input): Removed.
20130 (grub_term_get_current_output): Likewise.
20131 (grub_term_input_class): New variable.
20132 (grub_term_output_class): Likewise.
20133
20134 * util/grub-probe.c (grub_term_get_current_input): Removed.
20135 (grub_term_get_current_output): Likewise.
20136 (grub_term_input_class): New variable.
20137 (grub_term_output_class): Likewise.
20138
20139 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
20140 (grub_term_get_current_output): Likewise.
20141 (grub_term_input_class): New variable.
20142 (grub_term_output_class): Likewise.
20143
20144 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
20145 (terminal_mod_SOURCES): Likewise.
20146 (terminal_mod_CFLAGS): Likewise.
20147 (terminal_mod_LDFLAGS): Likewise.
20148
20149 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
20150 handler.c.
20151 (kernel_img_SOURCES): Add list.c and handler.c.
20152 (kernel_img_HEADERS): Add list.h and handler.h.
20153
20154 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
20155 handler.c.
20156 (kernel_mod_SOURCES): Add list.c and handler.c.
20157 (kernel_mod_HEADERS): Add list.h and handler.h.
20158
20159 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
20160 handler.c.
20161 (kernel_elf_SOURCES): Add list.c and handler.c.
20162 (kernel_elf_HEADERS): Add list.h and handler.h.
20163
20164 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
20165 handler.c.
20166 (kernel_elf_SOURCES): Add list.c and handler.c.
20167 (kernel_elf_HEADERS): Add list.h and handler.h.
20168
20169 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
20170 handler.c.
20171 (kernel_mod_SOURCES): Add list.c and handler.c.
20172 (kernel_mod_HEADERS): Add list.h and handler.h.
20173
20174 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
20175 handler.c.
20176 (kernel_elf_SOURCES): Add list.c and handler.c.
20177 (kernel_elf_HEADERS): Add list.h and handler.h.
20178
20179 2009-02-27 Robert Millan <rmh@aybabtu.com>
20180
20181 Factorize elf32 / elf64 code in Multiboot loader. This will
20182 prevent it from getting out of sync again.
20183
20184 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
20185 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
20186 grub_multiboot_load_elf64): Move from here ...
20187 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
20188 grub_multiboot_load_elf): ... to here (new file).
20189
20190 2009-02-27 Robert Millan <rmh@aybabtu.com>
20191
20192 * util/grub.d/10_linux.in: Rename "single-user mode" to
20193 "recovery mode".
20194
20195 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
20196
20197 Don't leak in SCSI code.
20198 * disk/scsi.c (grub_scsi_close): free `scsi'.
20199
20200 2009-02-27 Robert Millan <rmh@aybabtu.com>
20201
20202 * loader/i386/pc/multiboot.c: Move from here ...
20203 * loader/i386/multiboot.c: ... to here. Update all users.
20204
20205 2009-02-27 Robert Millan <rmh@aybabtu.com>
20206
20207 Patch from Alexandre Bique <bique.alexandre@gmail.com>
20208 * util/i386/pc/grub-setup.c (setup): Fix directory path.
20209
20210 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
20211
20212 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
20213 b-tree.
20214
20215 2009-02-27 Robert Millan <rmh@aybabtu.com>
20216
20217 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
20218 `0x' qualifier as 0 when base is specified as parameter).
20219
20220 2009-02-24 Bean <bean123ch@gmail.com>
20221
20222 * configure.ac: Check for -mcmodel=large in x86_64 target.
20223
20224 * include/grub/efi/api.h (efi_call_10): New macro.
20225 (efi_wrap_10): New function.
20226
20227 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
20228 (GRUB_PE32_REL_BASED_HIGH): Likewise.
20229 (GRUB_PE32_REL_BASED_LOW): Likewise.
20230 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
20231 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
20232 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
20233 (GRUB_PE32_REL_BASED_SECTION): Likewise.
20234 (GRUB_PE32_REL_BASED_REL): Likewise.
20235 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
20236 (GRUB_PE32_REL_BASED_DIR64): Likewise.
20237 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
20238
20239 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
20240 issue.
20241
20242 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
20243 (efi_wrap_10): New function.
20244
20245 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
20246
20247 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
20248 MB/MBP model (NV chipset).
20249 (devdata_devs): Add devpath_5 to the list.
20250
20251 * load/i386/efi/linux.c (video_base): Remove variable.
20252 (RGB_MASK): New macro.
20253 (RGB_MAGIC): Likewise.
20254 (LINE_MIN): Likewise.
20255 (LINE_MAX): Likewise.
20256 (FBTEST_STEP): Likewise.
20257 (FBTEST_COUNT): Likewise.
20258 (fb_list): New variable.
20259 (grub_find_video_card): Remove function.
20260 (find_framebuf): New function.
20261 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
20262 line length.
20263
20264 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
20265 problem for x86_64.
20266
20267 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
20268
20269 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
20270
20271 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
20272 coding tool name.
20273
20274 2009-02-22 Robert Millan <rmh@aybabtu.com>
20275
20276 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
20277 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
20278 in our relocation, instead of using it directly from heap. Also
20279 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
20280
20281 2009-02-21 Robert Millan <rmh@aybabtu.com>
20282
20283 Implement USB keyboard support (based on patch by Marco Gerards)
20284
20285 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
20286 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
20287 (usb_keyboard_mod_LDFLAGS): New variables.
20288
20289 * term/usb_keyboard.c: New file.
20290
20291 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
20292
20293 Corrected wrong declaration
20294
20295 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
20296
20297 2009-02-14 Christian Franke <franke@computer.org>
20298
20299 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
20300 (grub_lspci_iter): Print class code and programming interface byte.
20301
20302 2009-02-14 Christian Franke <franke@computer.org>
20303
20304 * gendistlist.sh: Ignore `.svn' directories.
20305
20306 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
20307
20308 * fs/fat.c: Add 2009 to Copyright line.
20309
20310 2009-02-14 Christian Franke <franke@computer.org>
20311
20312 * commands/hdparm.c: New file. Provides `hdparm' command
20313 which sends ATA commands via grub_disk_ata_pass_through ().
20314
20315 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
20316
20317 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
20318 and <grub/cpu/io.h> to include/grub/ata.h.
20319 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
20320 (GRUB_CDROM_SECTOR_SIZE): Remove.
20321 (GRUB_ATA_*): Move to include/grub/ata.h.
20322 (GRUB_ATAPI_*): Likewise.
20323 (enum grub_ata_commands): Likewise.
20324 (enum grub_ata_timeout_milliseconds): Likewise.
20325 (struct grub_ata_device): Likewise.
20326 (grub_ata_regset): Likewise.
20327 (grub_ata_regget): Likewise.
20328 (grub_ata_regset2): Likewise.
20329 (grub_ata_regget2): Likewise.
20330 (grub_ata_check_ready): Likewise.
20331 (grub_ata_wait_not_busy): Remove static, exported in
20332 include/grub/ata.h.
20333 (grub_ata_wait_drq): Likewise.
20334 (grub_ata_pio_read): Likewise.
20335
20336 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
20337 function for hdparm.mod.
20338
20339 * include/grub/ata.h: New file, contains declarations from
20340 disk/ata.c.
20341 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
20342
20343 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
20344 (grub_disk_ata_pass_through): New exported variable.
20345
20346 * kern/disk.c (grub_disk_ata_pass_through): New variable.
20347
20348 2009-02-13 Colin D Bennett <colin@gibibit.com>
20349
20350 Support multiple fallback entries, and provide an API to support
20351 executing default+fallback menu entries. Renamed the `terminal' menu
20352 viewer to `text'.
20353
20354 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
20355 variable declaration.
20356 (grub_menu_execute_callback): New structure declaration.
20357 (grub_menu_execute_callback_t): New typedef.
20358 (grub_menu_execute_with_fallback): New function declaration.
20359 (grub_menu_get_entry): Likewise.
20360 (grub_menu_get_timeout): Likewise.
20361 (grub_menu_set_timeout): Likewise.
20362
20363 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
20364
20365 * normal/menu.c (grub_wait_after_message): Moved to
20366 `normal/menu_text.c'.
20367 (draw_border): Likewise.
20368 (print_message): Likewise.
20369 (print_entry): Likewise.
20370 (print_entries): Likewise.
20371 (grub_menu_init_page): Likewise.
20372 (get_entry_number): Likewise.
20373 (print_timeout): Likewise.
20374 (run_menu): Likewise.
20375 (grub_menu_execute_entry): Likewise.
20376 (show_text_menu): Likewise.
20377 (get_and_remove_first_entry_number): New function.
20378 (grub_menu_execute_with_fallback): Likewise.
20379 (get_entry): Renamed to ...
20380 (grub_menu_get_entry): .. this and made it global.
20381 (get_timeout): Renamed to ...
20382 (grub_menu_get_timeout): ... this and made it global.
20383 (set_timeout): Renamed to ...
20384 (grub_menu_set_timeout): ... this and made it global.
20385 (grub_normal_terminal_menu_viewer): Renamed to ...
20386 (grub_normal_text_menu_viewer): ... this.
20387
20388 * normal/menu_text.c: New file. Extracted text-menu-specific code
20389 from normal/menu.c.
20390
20391 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
20392 (normal_mod_SOURCES): Likewise.
20393
20394 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20395 (normal_mod_SOURCES): Likewise.
20396
20397 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20398 (normal_mod_SOURCES): Likewise.
20399
20400 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
20401 (normal_mod_SOURCES): Likewise.
20402
20403 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20404 (normal_mod_SOURCES): Likewise.
20405
20406 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20407 (normal_mod_SOURCES): Likewise.
20408
20409 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20410 (normal_mod_SOURCES): Likewise.
20411
20412 2009-02-11 Robert Millan <rmh@aybabtu.com>
20413
20414 * util/grub.d/00_header.in: Update old reference to `font' command.
20415
20416 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
20417
20418 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
20419
20420 Based on patch from Javier Martín.
20421
20422 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
20423
20424 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
20425 to avoid false positives with FAT.
20426 (grub_fstest_SOURCES): Likewise.
20427 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
20428 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20429 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20430 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
20431 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20432 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20433
20434 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
20435
20436 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
20437 bpb.version_specific.fat12_or_fat16.fstype and
20438 bpb.version_specific.fat32.fstype.
20439
20440 2009-02-08 Robert Millan <rmh@aybabtu.com>
20441
20442 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
20443
20444 2009-02-08 Robert Millan <rmh@aybabtu.com>
20445
20446 * Makefile.in (host_os, host_cpu): New variables.
20447 (target_os): Remove. Update all users.
20448
20449 2009-02-08 Marco Gerards <marco@gnu.org>
20450
20451 * Makefile.in (enable_grub_emu_usb): New variable.
20452 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
20453 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
20454 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
20455 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
20456 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
20457 `usbtest.mod' and `usbms.mod'.
20458 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
20459 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
20460 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
20461 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
20462 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
20463 variables.
20464
20465 * disk/usbms.c: New file.
20466
20467 * include/grub/usb.h: Likewise.
20468
20469 * include/grub/usbtrans.h: Likewise.
20470
20471 * include/grub/usbdesc.h: Likewise.
20472
20473 * bus/usb/usbtrans.c: Likewise.
20474
20475 * bus/usb/ohci.c: Likewise.
20476
20477 * bus/usb/uhci.c: Likewise.
20478
20479 * bus/usb/usbhub.c: Likewise.
20480
20481 * bus/usb/usb.c: Likewise.
20482
20483 * commands/usbtest.c: Likewise.
20484
20485 * util/usb.c: Likewise.
20486
20487 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
20488
20489 * configure.ac: Test for libusb presence.
20490
20491 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
20492
20493 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
20494
20495 * kern/mm.c: Add more comments.
20496
20497 2009-02-08 Robert Millan <rmh@aybabtu.com>
20498
20499 Patch from Javier Martín.
20500 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
20501 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
20502
20503 2009-02-08 Robert Millan <rmh@aybabtu.com>
20504
20505 * fs/cpio.c: Split tar functionality to ...
20506 * fs/tar.c: ... here (new file). Update all users.
20507
20508 2009-02-07 Robert Millan <rmh@aybabtu.com>
20509
20510 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
20511 backward-incompatible features.
20512
20513 Based on patch from Javier Martín, with some adjustments.
20514
20515 2009-02-07 Michael Scherer <misc@mandriva.org>
20516
20517 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
20518
20519 2009-02-07 Robert Millan <rmh@aybabtu.com>
20520
20521 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
20522 position of `disk/lvm.c' to ensure grub_init_all() always picks it
20523 after the RAID stuff.
20524
20525 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
20526
20527 Fixes problem when running vbetest command as reported by
20528 Vladimir Serbinenko <phcoder@gmail.com>.
20529
20530 * (grub_vbe_set_video_mode): Fixed problem with text modes.
20531
20532 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
20533
20534 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
20535 /dev/md/NpN style mdraid devices.
20536
20537 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
20538
20539 * util/unifont2pff.rb: Remove.
20540
20541 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
20542
20543 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
20544 `#'.
20545
20546 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
20547
20548 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
20549 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20550 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20551 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
20552 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20553 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20554 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20555
20556 2009-02-02 Christian Franke <franke@computer.org>
20557
20558 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
20559
20560 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
20561
20562 * INSTALL: Note that we now require at least autoconf 2.59 and
20563 that LZO is optional.
20564
20565 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
20566
20567 Base on patch on bug #24154 created by Tomas Tintera
20568 <trosos@seznam.cz>.
20569
20570 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
20571
20572 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
20573
20574 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
20575 <bero@arklinux.org>.
20576
20577 * normal/parser.y (script_init): Add missing semicolon.
20578
20579 2009-01-31 Colin D Bennett <colin@gibibit.com>
20580
20581 * normal/main.c: Add include to grub/menu_viewer.h.
20582 (free_menu_entry_classes): Added.
20583 (grub_normal_menu_addentry): Added class property handling.
20584 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
20585 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
20586
20587 * normal/menu_viewer.c: New file.
20588
20589 * normal/menu.c (run_menu_entry): Renamed to ...
20590 (grub_menu_execute_entry): ... this and made it as global.
20591 (grub_menu_run): Renamed to ...
20592 (show_text_menu): ... this and made it local.
20593 (show_text_menu): Adapt to new function names.
20594 (grub_normal_terminal_menu_viewer): New global variable.
20595
20596 * include/grub/menu.h: New file.
20597
20598 * include/grub/menu_viewer.h: New file.
20599
20600 * include/grub/normal.h: Added include to grub/menu.h.
20601 (grub_menu_entry): Moved to include/grub/menu.h.
20602 (grub_menu_entry_t): Likewise.
20603 (grub_menu): Likewise.
20604 (grub_menu_t): Likewise.
20605 (grub_normal_terminal_menu_viewer): Added.
20606 (grub_menu_execute_entry): Likewise.
20607 (grub_menu_run): Removed.
20608
20609 * DISTLIST: Added include/grub/menu.h.
20610 Added include/grub/menu_viewer.h.
20611 Added normal/menu_viewer.c.
20612
20613 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
20614
20615 * normal/execute.c (grub_script_execute_menuentry): Changed to use
20616 arglist for menutitle arguments.
20617
20618 * normal/main.c (grub_normal_menu_addentry): Likewise.
20619
20620 * normal/parser.y (menuentry): Likewise.
20621
20622 * normal/script.c (grub_script_create_cmdmenu): Likewise.
20623
20624 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
20625 (grub_script_create_cmdmenu): Likewise.
20626
20627 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
20628
20629 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
20630 changes.
20631
20632 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
20633
20634 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
20635
20636 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
20637
20638 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
20639
20640 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
20641
20642 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
20643
20644 2009-01-30 Christian Franke <franke@computer.org>
20645
20646 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
20647 in option help text.
20648
20649 2009-01-27 Pavel Roskin <proski@gnu.org>
20650
20651 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
20652
20653 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
20654
20655 * commands/lsmmap.c: Add include to grub/machine/memory.h.
20656
20657 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
20658
20659 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
20660 unregister function.
20661
20662 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
20663
20664 * disk/scsi.c (grub_scsi_read): Fix sign problem.
20665
20666 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
20667
20668 * util/grub-mkfont.c (usage): Fix typo.
20669
20670 * util/elf/grub-mkimage.c (load_modules): Fix warning.
20671
20672 2009-01-26 Daniel Mierswa <impulze@impulze.org>
20673
20674 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
20675
20676 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
20677
20678 * kern/misc.c (grub_strcasecmp): New function.
20679 (grub_strcasecmp): Use grub_size_t instead of int for length.
20680 Fix return value.
20681 * include/grub/misc.h: Update function prototypes.
20682
20683 2009-01-26 Robert Millan <rmh@aybabtu.com>
20684
20685 * configure.ac: Fix cross-compilation check.
20686
20687 2009-01-22 Christian Franke <franke@computer.org>
20688
20689 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
20690 (precision) digit string. Allow `.format2' without `format1' (width).
20691 Limit input chars for `%s' output to `format2' if specified. This is
20692 compatible with standard printf ().
20693
20694 2009-01-22 Christian Franke <franke@computer.org>
20695
20696 * disk/ata.c (grub_ata_wait_status): Replace by ...
20697 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
20698 other status bits may be invalid while BSY is asserted.
20699 (grub_ata_check_ready): New function.
20700 (grub_ata_cmd): Removed.
20701 (grub_ata_wait_drq): New function.
20702 (grub_ata_strncpy): Remove inline.
20703 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
20704 and error check now done by grub_ata_wait_drq ().
20705 (grub_ata_pio_write): Likewise.
20706 (grub_atapi_identify): Set DEV before check for !BSY. Use
20707 grub_ata_wait_drq () to wait for data.
20708 (grub_ata_device_initialize): Add status register check to
20709 detect missing SATA slave devices. Add debug messages.
20710 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
20711 (grub_atapi_packet): Set DEV before check for !BSY. Replace
20712 transfer loop by grub_ata_pio_write ().
20713 (grub_ata_identify): Set DEV before check for !BSY. Use
20714 grub_ata_wait_drq () to wait for data.
20715 (grub_ata_setaddress): Set DEV before check for !BSY.
20716 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
20717 read/write in one loop. Fix invalid command on write. Fix incomplete
20718 command on (size % batch) == 0. Add missing error check after write of
20719 last block. Add debug messages.
20720 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
20721
20722 2009-01-19 Christian Franke <franke@computer.org>
20723
20724 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
20725 (GRUB_ATAPI_IREASON_*): Likewise.
20726 (grub_ata_pio_write): Fix timeout error return.
20727 (grub_atapi_identify): Add grub_ata_wait () after cmd.
20728 (grub_atapi_wait_drq): New function.
20729 (grub_atapi_packet): New parameter `size'.
20730 Use grub_atapi_wait_drq () and direct write instead of
20731 grub_ata_pio_write ().
20732 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
20733 reads the number of bytes requested by the device for each DRQ
20734 assertion.
20735 (grub_atapi_write): Remove old implementation, return not
20736 implemented instead.
20737
20738 2009-01-19 Christian Franke <franke@computer.org>
20739
20740 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
20741 of 512 to calculate data size.
20742 (grub_scsi_read12): Likewise.
20743 (grub_scsi_write10): Likewise.
20744 (grub_scsi_write12): Likewise.
20745 (grub_scsi_read): Adjust size according to blocksize.
20746 Add checks for invalid blocksize and unaligned transfer.
20747
20748 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
20749
20750 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
20751
20752 * term/gfxterm.c (write_char): Fix background rendering for wide
20753 width glyphs.
20754
20755 2009-01-19 Robert Millan <rmh@aybabtu.com>
20756
20757 * config.guess: Update to latest version from config git.
20758 * config.sub: Likewise.
20759
20760 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
20761
20762 * Makefile.in: Change font compilation to use new grub-mkfont instead
20763 of java version.
20764
20765 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
20766 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
20767 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
20768 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
20769 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
20770 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
20771 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
20772 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
20773 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
20774
20775 2009-01-16 Christian Franke <franke@computer.org>
20776
20777 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
20778 (enum grub_ata_timeout_milliseconds): New enum.
20779 (grub_ata_wait_status): Add parameter milliseconds.
20780 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
20781 recovery from timed-out commands.
20782 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
20783 return grub_errno instead of REG_ERROR.
20784 (grub_ata_pio_write): Add parameter milliseconds.
20785 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
20786 Pass milliseconds to grub_ata_wait_status () and
20787 grub_ata_pio_read ().
20788 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
20789 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
20790 grub_ata_wait_status (). Fix IDENTIFY timeout check.
20791 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
20792 It is not suitable for device detection, because DEV bit is ignored,
20793 the command may run too long, and not all devices set the signature
20794 properly.
20795 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
20796 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
20797 Fix device selection, DEV bit must be set first to address the registers
20798 of the correct device.
20799 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
20800 grub_ata_pio_read/write ().
20801 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
20802 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
20803
20804 2009-01-13 Carles Pina i Estany <carles@pina.cat>
20805
20806 * util/grub-editenv.c (main): Use fseeko(), not fseek().
20807
20808 2009-01-13 Bean <bean123ch@gmail.com>
20809
20810 * util/grub-mkfont.c (write_font): forget to remove some debug code.
20811
20812 2009-01-13 Bean <bean123ch@gmail.com>
20813
20814 * Makefile.in: (enable_grub_mkfont): New variable.
20815 (freetype_cflags): Likewise.
20816 (freetype_libs): Likewise.
20817
20818 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
20819 (grub_mkfont_SOURCES): New variable.
20820 (grub_mkfont_CFLAGS): Likewise.
20821 (grub_mkfont_LDFLAGS): Likewise.
20822
20823 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
20824 library if `--enable-grub-mkfont' is requested.
20825 (enable_grub_mkfont): New variable.
20826 (freetype_cflags): Likewise.
20827 (freetype_libs): Likewise.
20828
20829 * util/grub-mkfont.c: New file.
20830
20831 2009-01-12 Christian Franke <franke@computer.org>
20832
20833 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
20834 mode check. Fix setting of compat_use[].
20835
20836 2009-01-10 Robert Millan <rmh@aybabtu.com>
20837
20838 Update a few copyright years which we forgot to do in 2008 (only for
20839 files whose changes made in 2008 were copyright-significant)
20840
20841 * Makefile.in: Add 2008 to Copyright line.
20842 * disk/ieee1275/ofdisk.c: Likewise.
20843 * disk/efi/efidisk.c: Likewise.
20844 * kern/dl.c: Likewise.
20845 * kern/sparc64/ieee1275/init.c: Likewise.
20846 * kern/mm.c: Likewise.
20847 * kern/efi/mm.c: Likewise.
20848 * boot/i386/pc/boot.S: Likewise.
20849 * genfslist.sh: Likewise.
20850 * fs/iso9660.c: Likewise.
20851 * fs/hfs.c: Likewise.
20852 * fs/jfs.c: Likewise.
20853 * fs/minix.c: Likewise.
20854 * fs/ufs.c: Likewise.
20855 * gensymlist.sh.in: Likewise.
20856 * genkernsyms.sh.in: Likewise.
20857 * include/grub/misc.h: Likewise.
20858 * include/grub/types.h: Likewise.
20859 * include/grub/symbol.h: Likewise.
20860 * include/grub/elf.h: Likewise.
20861 * include/grub/kernel.h: Likewise.
20862 * include/grub/disk.h: Likewise.
20863 * include/grub/dl.h: Likewise.
20864 * include/grub/i386/linux.h: Likewise.
20865 * include/grub/i386/pc/biosdisk.h: Likewise.
20866 * include/grub/efi/api.h: Likewise.
20867 * include/grub/efi/pe32.h: Likewise.
20868 * include/grub/util/misc.h: Likewise.
20869 * normal/execute.c: Likewise.
20870 * normal/arg.c: Likewise.
20871 * normal/completion.c: Likewise.
20872 * normal/lexer.c: Likewise.
20873 * normal/parser.y: Likewise.
20874 * normal/misc.c: Likewise.
20875 * commands/i386/pc/vbeinfo.c: Likewise.
20876 * commands/hexdump.c: Likewise.
20877 * commands/terminal.c: Likewise.
20878 * commands/ls.c: Likewise.
20879 * commands/help.c: Likewise.
20880 * partmap/pc.c: Likewise.
20881 * loader/efi/chainloader.c: Likewise.
20882 * loader/multiboot_loader.c: Likewise.
20883 * loader/i386/pc/multiboot2.c: Likewise.
20884 * term/efi/console.c: Likewise.
20885 * term/i386/pc/serial.c: Likewise.
20886 * util/lvm.c: Likewise.
20887 * util/console.c: Likewise.
20888 * util/i386/efi/grub-mkimage.c: Likewise.
20889 * util/raid.c: Likewise.
20890
20891 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
20892
20893 * commands/videotest.c: Removed include to grub/machine/memory.h.
20894
20895 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
20896 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
20897 (video_mod_SOURCES): Removed.
20898 (video_mod_CFLAGS): Likewise.
20899 (video_mod_LDFLAGS): Likewise.
20900 (gfxterm_mod_SOURCES): Likewise.
20901 (gfxterm_mod_CFLAGS): Likewise.
20902 (gfxterm_mod_LDFLAGS): Likewise.
20903 (videotest_mod_SOURCES): Likewise.
20904 (videotest_mod_CFLAGS): Likewise.
20905 (videotest_mod_LDFLAGS): Likewise.
20906 (bitmap_mod_SOURCES): Likewise.
20907 (bitmap_mod_CFLAGS): Likewise.
20908 (bitmap_mod_LDFLAGS): Likewise.
20909 (tga_mod_SOURCES): Likewise.
20910 (tga_mod_CFLAGS): Likewise.
20911 (tga_mod_LDFLAGS): Likewise.
20912 (jpeg_mod_SOURCES): Likewise.
20913 (jpeg_mod_CFLAGS): Likewise.
20914 (jpeg_mod_LDFLAGS): Likewise.
20915 (png_mod_SOURCES): Likewise.
20916 (png_mod_CFLAGS): Likewise.
20917 (png_mod_LDFLAGS): Likewise.
20918
20919 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
20920 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
20921 (video_mod_SOURCES): Added.
20922 (video_mod_CFLAGS): Likewise.
20923 (video_mod_LDFLAGS): Likewise.
20924 (videotest_mod_SOURCES): Likewise.
20925 (videotest_mod_CFLAGS): Likewise.
20926 (videotest_mod_LDFLAGS): Likewise.
20927 (bitmap_mod_SOURCES): Likewise.
20928 (bitmap_mod_CFLAGS): Likewise.
20929 (bitmap_mod_LDFLAGS): Likewise.
20930 (tga_mod_SOURCES): Likewise.
20931 (tga_mod_CFLAGS): Likewise.
20932 (tga_mod_LDFLAGS): Likewise.
20933 (jpeg_mod_SOURCES): Likewise.
20934 (jpeg_mod_CFLAGS): Likewise.
20935 (jpeg_mod_LDFLAGS): Likewise.
20936 (png_mod_SOURCES): Likewise.
20937 (png_mod_CFLAGS): Likewise.
20938 (png_mod_LDFLAGS): Likewise.
20939 (gfxterm_mod_SOURCES): Likewise.
20940 (gfxterm_mod_CFLAGS): Likewise.
20941 (gfxterm_mod_LDFLAGS): Likewise.
20942
20943 * term/gfxterm.c: Removed include to grub/machine/memory.h,
20944 grub/machine/console.h.
20945
20946 2009-01-04 Jerone Young <jerone@gmail.com>
20947
20948 Make on screen instructions clearer
20949
20950 Based on patch created by Jidanni <jidanni@jidanni.org>
20951
20952 * normal/menu.c: print clearer instructions on the screen
20953
20954 2009-01-02 Colin D Bennett <colin@gibibit.com>
20955
20956 New font engine.
20957
20958 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
20959 build system and fixed gfxterm.c to work with different sized fonts.
20960
20961 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
20962
20963 * configure: Re-generated.
20964
20965 * DISTLIST: Removed font/manager.c.
20966 Added font/font.c.
20967 Added font/font_cmd.c.
20968
20969 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
20970 compilation.
20971
20972 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
20973
20974 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
20975
20976 * kern/term.c: Changed users of grub_utf8_to_ucs4.
20977
20978 * normal/menu.c: Likewise.
20979
20980 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
20981 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
20982
20983 * include/grub/font.h: Replaced with new file.
20984
20985 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
20986 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
20987 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
20988 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
20989 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
20990 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
20991 fg_red, fg_green, fg_blue, fg_alpha.
20992 (grub_video_adapter): Removed blit_glyph.
20993 (grub_video_blit_glyph): Removed.
20994
20995 * font/manager.c: Removed file.
20996
20997 * font/font.c: New file.
20998
20999 * font/font_cmd.c: Likewise.
21000
21001 * video/video.c (grub_video_blit_glyph): Removed.
21002
21003 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
21004 (grub_video_vbe_map_rgba): Likewise.
21005 (grub_video_vbe_unmap_color_int): Likewise.
21006 (grub_video_vbe_blit_glyph): Removed.
21007 (grub_video_vbe_adapter): Removed blit_glyph.
21008
21009 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
21010 (get_pixel): Likewise.
21011 (set_pixel): Likewise.
21012
21013 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
21014
21015 * term/gfxterm.c: Adapted to new font engine.
21016
21017 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
21018
21019 * term/i386/pc/vga.c: Likewise.
21020
21021 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
21022
21023 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
21024
21025 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
21026
21027 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
21028
21029 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
21030
21031 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
21032
21033 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
21034
21035 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
21036
21037 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
21038
21039 * util/grub.d/00_header.in: Changed to use new loadfont command.
21040
21041 * util/grub-mkconfig_lib.in: Changed font extension.
21042
21043 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
21044
21045 * util/getroot.c (grub_util_get_grub_dev): Add support for
21046 /dev/md/dNNpNN style partitionable mdraid devices.
21047
21048 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
21049
21050 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
21051 at a time limit of the PXE TFTP API correctly.
21052 (grub_pxefs_close): Likewise.
21053
21054 2008-11-29 Robert Millan <rmh@aybabtu.com>
21055
21056 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
21057 grub_ata_device_initialize() calls.
21058
21059 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
21060
21061 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
21062 iteration failed.
21063 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
21064
21065 2008-11-28 Robert Millan <rmh@aybabtu.com>
21066
21067 Fix build on powerpc-ieee1275. Based on patch created by
21068 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
21069 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
21070 `kern/ieee1275/mmap.c'.
21071 * include/grub/powerpc/ieee1275/memory.h: New file.
21072
21073 Provide grub-install on coreboot.
21074 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
21075 (grub_install_SOURCES): New variable.
21076 * util/i386/pc/grub-install.in: Add a few condition checks to make it
21077 usable on coreboot.
21078
21079 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
21080
21081 * util/grub-fstest.c (grub_term_get_current_input): Change return type
21082 to `grub_term_input_t'.
21083 (grub_term_get_current_output): Change return type to
21084 `grub_term_output_t'.
21085
21086 2008-11-22 Robert Millan <rmh@aybabtu.com>
21087
21088 Fix breakage on coreboot due to declaration mismatch.
21089 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
21090 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
21091 grub_vga_text_cls().
21092
21093 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
21094 comments. Avoid copying one more byte than necessary (just in case).
21095
21096 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
21097 to 0x200000 (avoids trouble with some OFW implementations, and matches
21098 with the one in Yaboot).
21099 Reported by Manoel Abranches
21100
21101 2008-11-20 Robert Millan <rmh@aybabtu.com>
21102
21103 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
21104 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
21105
21106 * util/grub-mkconfig_lib.in (grub_warn): New function.
21107 (convert_system_path_to_grub_path): Use grub_warn() when issuing
21108 warnings, to obtain consistent formatting.
21109 * util/grub.d/00_header.in: Likewise.
21110 * util/update-grub_lib.in: Likewise.
21111
21112 * loader/i386/linux.c (allocate_pages): Fix a warning.
21113 Move comment text to `#error' stanza.
21114
21115 Harmonize ieee1275's grub_available_iterate() with the generic
21116 grub_machine_mmap_iterate() interface (fixes a recently-introduced
21117 build problem on i386-ieee1275):
21118 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
21119 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
21120 parameter `type'. Update all users of this function.
21121 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
21122 `kern/ieee1275/mmap.c'.
21123 * kern/ieee1275/init.c
21124 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
21125 with ...
21126 (grub_machine_mmap_iterate): ... this.
21127 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
21128 return type to `grub_err_t'. Update all implementations of this
21129 function prototype.
21130 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
21131 Likewise.
21132
21133 Add `lsmmap' command (lists firmware-provided memory map):
21134 * commands/lsmmap.c: New file.
21135 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
21136 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
21137 variables.
21138 * conf/powerpc-ieee1275.rmk: Likewise.
21139 * conf/i386-coreboot.rmk: Likewise.
21140 * conf/i386-ieee1275.rmk: Likewise.
21141
21142 2008-11-19 Robert Millan <rmh@aybabtu.com>
21143
21144 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
21145 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
21146 constraints to initrd allocation (based on code from
21147 loader/i386/pc/linux.c). Without them, initrd was allocated too high
21148 for Linux to find it.
21149
21150 2008-11-14 Robert Millan <rmh@aybabtu.com>
21151
21152 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
21153 order to cope with duplicate slashes.
21154
21155 2008-11-14 Robert Millan <rmh@aybabtu.com>
21156
21157 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
21158 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
21159 don't want to mess with lower memory, because it is used in the Linux
21160 loader.
21161
21162 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
21163 an appropriate place in lower memory, between 0x10000 and 0x90000,
21164 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
21165 is in our heap (probably as a result of it being corrupted during
21166 decompression). Add #error instance with comment to explain why this
21167 loader isn't currently usable on PC/BIOS.
21168
21169 2008-11-14 Robert Millan <rmh@aybabtu.com>
21170
21171 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
21172 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
21173
21174 2008-11-12 Robert Millan <rmh@aybabtu.com>
21175
21176 Make loader/i386/linux.c buildable on i386-pc (although disabled).
21177
21178 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
21179 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
21180 from here ...
21181 * include/grub/i386/pc/memory.h: ... to here.
21182
21183 2008-11-12 Robert Millan <rmh@aybabtu.com>
21184
21185 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
21186 split).
21187
21188 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
21189 (grub_console_cur_color, grub_console_real_putchar)
21190 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
21191 (grub_console_setcolorstate, grub_console_setcolor)
21192 (grub_console_getcolor): Move from here ...
21193 * include/grub/i386/vga_common.h: ... to here (new file).
21194
21195 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
21196 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
21197 `<grub/i386/io.h>'.
21198 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
21199 `<grub/i386/vga_common.h>'.
21200
21201 2008-11-12 Robert Millan <rmh@aybabtu.com>
21202
21203 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
21204 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
21205 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
21206 variables.
21207 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
21208 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
21209
21210 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
21211 grub_console_init() with call to grub_vga_text_init().
21212 (grub_machine_fini): Replace call to
21213 grub_console_fini() with call to grub_vga_text_fini() and
21214 grub_at_keyboard_fini().
21215
21216 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
21217 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
21218 (grub_console_setcolorstate, grub_console_setcolor)
21219 (grub_console_getcolor): New function prototypes.
21220
21221 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
21222 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
21223 (grub_vga_text_setcursor): Static-ize.
21224 (grub_vga_text_term): New structure.
21225 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
21226
21227 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
21228 (grub_console_cur_color, grub_console_standard_color)
21229 (grub_console_normal_color, grub_console_highlight_color)
21230 (map_char, grub_console_putchar, grub_console_getcharwidth)
21231 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
21232 (grub_console_getcolor): Move from here ...
21233 * term/i386/vga_common.c: ... to here (same function names).
21234
21235 2008-11-12 Robert Millan <rmh@aybabtu.com>
21236
21237 Use newly-added Multiboot support in coreboot.
21238
21239 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
21240 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
21241
21242 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
21243 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
21244 (codestart): Store the MBI in `startup_multiboot_info' when we're
21245 being loaded using Multiboot.
21246
21247 * kern/i386/coreboot/init.c (grub_machine_init): Move
21248 grub_at_keyboard_init() call to beginning of function (useful for
21249 debugging). Call grub_machine_mmap_init() before attempting to use
21250 grub_machine_mmap_iterate().
21251 (grub_lower_mem, grub_upper_mem): Move from here ...
21252 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
21253 here (new file).
21254
21255 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
21256 function prototype.
21257
21258 2008-11-12 Robert Millan <rmh@aybabtu.com>
21259
21260 Fix a regression introduced by the at_keyboard.mod split. Because
21261 some terminals are default on some platforms and non-default on
21262 others, the first terminal being registered determines which is
21263 going to be default.
21264
21265 * kern/term.c (grub_term_register_input): If this is the first
21266 terminal being registered, set it as the current one.
21267 (grub_term_register_output): Likewise.
21268
21269 * term/efi/console.c (grub_console_init): Do not call
21270 grub_term_set_current_output() or grub_term_set_current_input().
21271 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
21272 * term/i386/pc/console.c (grub_console_init): Likewise.
21273 (grub_console_fini): Do not call grub_term_set_current_input()
21274 (but leave grub_term_set_current_output() to restore text mode).
21275
21276 2008-11-10 Robert Millan <rmh@aybabtu.com>
21277
21278 * util/grub.d/00_header.in: Add backward compatibility check for
21279 versions of terminal.mod that don't understand `terminal_input' or
21280 `terminal_output'.
21281
21282 2008-11-09 Robert Millan <rmh@aybabtu.com>
21283
21284 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
21285 `terminal_input' / `terminal_output', not `terminal'.
21286
21287 2008-11-08 Robert Millan <rmh@aybabtu.com>
21288
21289 * Makefile.in (include_DATA): Fix srcdir=. assumption.
21290 (DISTCLEANFILES): Add `build_env.mk'.
21291
21292 2008-11-08 Robert Millan <rmh@aybabtu.com>
21293
21294 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
21295 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
21296 members. Update all users.
21297 * util/console.c (grub_ncurses_term): Split in ...
21298 (grub_ncurses_term_input): ... this, and ...
21299 (grub_ncurses_term_output): ... this. Update all users.
21300 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
21301
21302 2008-11-08 Robert Millan <rmh@aybabtu.com>
21303
21304 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
21305 (PKGDATA): Add $(pkgdata_SRCDIR).
21306 (pkglib_BUILDDIR): New variable.
21307 (pkgdata_SRCDIR): New variable.
21308 (build_env.mk): New target.
21309 (include_DATA): New variable.
21310 (install-local): Install $(include_DATA) files in $(includedir).
21311
21312 2008-11-07 Pavel Roskin <proski@gnu.org>
21313
21314 * gendistlist.sh: Use C locale for sorting to ensure consistent
21315 output on all systems.
21316
21317 * util/grub.d/00_header.in: Remove incorrect space before
21318 "serial".
21319
21320 2008-11-07 Robert Millan <rmh@aybabtu.com>
21321
21322 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
21323 per specification.
21324 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
21325 * loader/multiboot_loader.c (find_multi_boot2_header): New function
21326 (based on find_multi_boot1_header).
21327 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
21328 using find_multi_boot2_header(), and abort if neither Multiboot or
21329 Multiboot headers were found.
21330
21331 2008-11-07 Robert Millan <rmh@aybabtu.com>
21332
21333 Modularize at_keyboard.mod:
21334
21335 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
21336 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
21337 (at_keyboard_mod_LDFLAGS): New variables.
21338
21339 Actual terminal split:
21340
21341 * include/grub/term.h (struct grub_term): Split in ...
21342 (struct grub_term_input): ... this, and ...
21343 (struct grub_term_output): ... this. Update all users.
21344 (grub_term_set_current): Split in ...
21345 (grub_term_set_current_input): ... this, and ...
21346 (grub_term_set_current_output): ... this.
21347 (grub_term_get_current): Split in ...
21348 (grub_term_get_current_input): ... this, and ...
21349 (grub_term_get_current_output): ... this.
21350 (grub_term_register): Split in ...
21351 (grub_term_register_input): ... this, and ...
21352 (grub_term_register_output): ... this.
21353 (grub_term_unregister): Split in ...
21354 (grub_term_unregister_input): ... this, and ...
21355 (grub_term_unregister_output): ... this.
21356 (grub_term_iterate): Split in ...
21357 (grub_term_iterate_input): ... this, and ...
21358 (grub_term_iterate_output): ... this.
21359
21360 * kern/term.c (grub_term_list): Split in ...
21361 (grub_term_list_input): ... this, and ...
21362 (grub_term_list_output): ... this. Update all users.
21363 (grub_cur_term): Split in ...
21364 (grub_cur_term_input): ... this, and ...
21365 (grub_cur_term_output): ... this. Update all users.
21366 (grub_term_set_current): Split in ...
21367 (grub_term_set_current_input): ... this, and ...
21368 (grub_term_set_current_output): ... this.
21369 (grub_term_get_current): Split in ...
21370 (grub_term_get_current_input): ... this, and ...
21371 (grub_term_get_current_output): ... this.
21372 (grub_term_register): Split in ...
21373 (grub_term_register_input): ... this, and ...
21374 (grub_term_register_output): ... this.
21375 (grub_term_unregister): Split in ...
21376 (grub_term_unregister_input): ... this, and ...
21377 (grub_term_unregister_output): ... this.
21378 (grub_term_iterate): Split in ...
21379 (grub_term_iterate_input): ... this, and ...
21380 (grub_term_iterate_output): ... this.
21381
21382 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
21383 a check for input and one for output (and only attempt to get keys
21384 from user when input works).
21385
21386 * util/grub-probe.c (grub_term_get_current): Split in ...
21387 (grub_term_get_current_input): ... this, and ...
21388 (grub_term_get_current_output): ... this.
21389 * util/grub-fstest.c: Likewise.
21390 * util/i386/pc/grub-setup.c: Likewise.
21391 * util/grub-editenv.c: Likewise.
21392
21393 Portability adjustments:
21394
21395 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
21396 `term/i386/pc/at_keyboard.c'.
21397 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
21398 grub_keyboard_controller_init() (now handled by terminal .init).
21399 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
21400 grub_at_keyboard_init().
21401 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
21402 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
21403 at_keyboard.mod via input terminal interface).
21404 * include/grub/i386/coreboot/console.h: Convert into a stub for
21405 `<grub/i386/pc/console.h>'.
21406
21407 Migrate full terminals to new API:
21408
21409 * term/efi/console.c (grub_console_term): Split into ...
21410 (grub_console_term_input): ... this, and ...
21411 (grub_console_term_output): ... this. Update all users.
21412 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
21413 (grub_ofconsole_init): Split into ...
21414 (grub_ofconsole_init_input): ... this, and ...
21415 (grub_ofconsole_init_output): ... this.
21416 (grub_ofconsole_term): Split into ...
21417 (grub_ofconsole_term_input): ... this, and ...
21418 (grub_ofconsole_term_output): ... this. Update all users.
21419 * term/i386/pc/serial.c (grub_serial_term): Split into ...
21420 (grub_serial_term_input): ... this, and ...
21421 (grub_serial_term_output): ... this. Update all users.
21422 * term/i386/pc/console.c (grub_console_term): Split into ...
21423 (grub_console_term_input): ... this, and ...
21424 (grub_console_term_output): ... this. Update all users.
21425 (grub_console_term_input): Only enable it on PC/BIOS platform.
21426 (grub_console_init): Remove grub_keyboard_controller_init() call.
21427
21428 Migrate input terminals to new API:
21429
21430 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
21431 `i386' and `i386/pc' to enable build on x86_64 (this driver is
21432 i386-specific anyway).
21433 (grub_console_checkkey): Rename to ...
21434 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
21435 users.
21436 (grub_keyboard_controller_orig): New variable.
21437 (grub_console_getkey): Rename to ...
21438 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
21439 users.
21440 (grub_keyboard_controller_init): Static-ize. Save original
21441 controller value so that it can be restored ...
21442 (grub_keyboard_controller_fini): ... here (new function).
21443 (grub_at_keyboard_term): New structure.
21444 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
21445 functions.
21446
21447 Migrate output terminals to new API:
21448
21449 * term/i386/pc/vga.c (grub_vga_term): Change type to
21450 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
21451 members. Update all users.
21452 * term/gfxterm.c (grub_video_term): Change type to
21453 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
21454 members. Update all users.
21455 * include/grub/i386/pc/console.h (grub_console_checkkey)
21456 (grub_console_getkey): Do not export (no longer needed by gfxterm,
21457 etc).
21458
21459 Migrate `terminal' command and userland tools to new API:
21460
21461 * commands/terminal.c (grub_cmd_terminal): Split into ...
21462 (grub_cmd_terminal_input): ... this, and ...
21463 (grub_cmd_terminal_output): ... this.
21464 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
21465 `terminal_input' and `terminal_output'.
21466 * util/grub.d/00_header.in: Adjust `terminal' calls to new
21467 `terminal_input' / `terminal_output' API.
21468 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
21469 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
21470 provided ${GRUB_TERMINAL}, convert it).
21471
21472 2008-11-04 Robert Millan <rmh@aybabtu.com>
21473
21474 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
21475 for FreeBSD.
21476 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
21477
21478 2008-11-03 Bean <bean123ch@gmail.com>
21479
21480 * kern/elf.c (grub_elf32_load): Revert to previous code.
21481 (grub_elf64_load): Likewise.
21482
21483 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
21484
21485 2008-11-01 Robert Millan <rmh@aybabtu.com>
21486
21487 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
21488 (TARGET_CPPFLAGS): Likewise.
21489 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
21490
21491 2008-11-01 Carles Pina i Estany <carles@pina.cat>
21492
21493 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
21494
21495 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
21496
21497 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
21498 addition of objects until the code is not going to be able to fail.
21499
21500 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
21501
21502 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
21503 (add a missing NULL check, and correct them by moving the pointer
21504 operations after the actual check).
21505
21506 2008-10-29 Robert Millan <rmh@aybabtu.com>
21507
21508 * util/i386/pc/grub-install.in: Handle empty string as output from
21509 make_system_path_relative_to_its_root().
21510
21511 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
21512
21513 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
21514 circular metadata worst case scenario. If the metadata is circular
21515 then copy the wrap in place.
21516 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
21517 project lib/format_text/layout.h
21518 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
21519
21520 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
21521
21522 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
21523
21524 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
21525
21526 * util/update-grub_lib.in: Mention filename in warning message.
21527
21528 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
21529
21530 * NEWS: Update for rename of update-grub to grub-mkconfig.
21531
21532 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
21533
21534 * util/update-grub_lib.in: Copy to ...
21535 * util/grub-mkconfig_lib.in: ... this. Update all users.
21536 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
21537 * util/update-grub.in: Rename to ...
21538 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
21539 option. Add `--output' option to allow users to specify the generated
21540 configuration file. Default to stdout.
21541 (update_grub_dir): Rename to ...
21542 (grub_mkconfig_dir): ... this.
21543 (grub_cfg): Default to an empty string.
21544 * conf/common.rmk (update-grub): Rename to ...
21545 (grub-mkconfig): ... this.
21546 (update-grub_lib): Copy to ...
21547 (grub-mkconfig_lib): ... this.
21548 (update-grub_SCRIPTS): Copy to ...
21549 (grub-mkconfig_SCRIPTS): ... this. Update all users.
21550 (update-grub_DATA): Rename to ...
21551 (grub-mkconfig_DATA): ... this.
21552
21553 2008-09-28 Robert Millan <rmh@aybabtu.com>
21554
21555 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
21556 to `modified'. Add the real `created' field.
21557 (grub_iso9660_uuid): Use `modified' rather than `created' for
21558 constructing the UUID.
21559
21560 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
21561
21562 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
21563 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
21564
21565 2008-09-28 Bean <bean123ch@gmail.com>
21566
21567 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
21568 Thanks to Christian Franke for finding this bug.
21569
21570 2008-09-25 Robert Millan <rmh@aybabtu.com>
21571
21572 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
21573 instances of grub_util_get_disk_name() (see previous commit).
21574
21575 2008-09-25 Robert Millan <rmh@aybabtu.com>
21576
21577 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
21578 `util/i386/get_disk_name.c'.
21579 * conf/i386-efi.rmk: Likewise.
21580 * conf/x86_64-efi.rmk: Likewise.
21581 * conf/i386-coreboot.rmk: Likewise.
21582 * conf/i386-ieee1275.rmk: Likewise.
21583 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
21584 `util/ieee1275/get_disk_name.c'.
21585 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
21586 * util/ieee1275/get_disk_name.c: Remove file.
21587 * util/i386/get_disk_name.c: Remove file.
21588 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
21589 "hd%d" for device.map entries, rather than using
21590 grub_util_get_disk_name().
21591
21592 2008-09-24 Carles Pina i Estany <carles@pina.cat>
21593
21594 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
21595 warning.
21596 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
21597
21598 2008-09-24 Carles Pina i Estany <carles@pina.cat>
21599
21600 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
21601 Changed to 0x5100.
21602 (GRUB_TERM_PPAGE): Changed to 0x4900.
21603
21604 2008-09-24 Robert Millan <rmh@aybabtu.com>
21605
21606 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
21607 macros (they were i386-pc specific).
21608 * include/grub/sparc64/ieee1275/console.h: Likewise.
21609 * include/grub/efi/console.h: Likewise.
21610
21611 2008-09-22 Bean <bean123ch@gmail.com>
21612
21613 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
21614 resident and in attribute list.
21615
21616 * include/grub/ntfs.h (BMP_LEN): Removed.
21617
21618 2008-09-22 Bean <bean123ch@gmail.com>
21619
21620 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
21621 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
21622
21623 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
21624 error occurs, as grub_disk_open will call grub_disk_close, which will
21625 call p->close (scsi).
21626
21627 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
21628
21629 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
21630 (AC_PREREQ): Bumped to 2.59.
21631 (AC_TRY_COMPILE): Replace obsolete macro with ...
21632 (AC_COMPILE_IFELSE): ... this.
21633 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
21634 (AC_LINK_IFELSE): ... this.
21635
21636 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
21637
21638 * autogen.sh: Add a call to `gendistlist.sh'.
21639
21640 2008-09-19 Christian Franke <franke@computer.org>
21641
21642 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
21643 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
21644 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
21645 Export __enable_execute_stack() to modules.
21646 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
21647 New function.
21648
21649 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
21650
21651 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
21652 Sort the list.
21653
21654 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
21655
21656 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
21657 #include <grub/util/hostdisk.h>.
21658
21659 2008-09-08 Robert Millan <rmh@aybabtu.com>
21660
21661 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
21662 segments when their filesz is zero (grub_file_read() interprets
21663 zero-size as "read until EOF", which results in memory corruption).
21664 Use `lowest_segment' rather than 0 for calculating the current
21665 segment load address.
21666
21667 2008-09-08 Robert Millan <rmh@aybabtu.com>
21668
21669 * util/hostdisk.c (open_device): Replace a grub_util_info() call
21670 with grub_dprintf("hostdisk", ...), as it was so verbose that it
21671 clobbered useful information.
21672
21673 2008-09-08 Robert Millan <rmh@aybabtu.com>
21674
21675 * include/grub/util/biosdisk.h: Move to ...
21676 * include/grub/util/hostdisk.h: ... here. Update all users.
21677 * util/biosdisk.c: Move to ...
21678 * util/hostdisk.c: ... here. Update all users.
21679
21680 2008-09-07 Robert Millan <rmh@aybabtu.com>
21681
21682 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
21683 variables.
21684 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
21685 and length can be stored directly in the `mbi->mmap_addr' and
21686 `mbi->mmap_length' struct fields.
21687
21688 2008-09-07 Robert Millan <rmh@aybabtu.com>
21689
21690 * conf/i386.rmk: New file. Provides declaration for building
21691 `cpuid.mod'.
21692 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
21693 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
21694 variables.
21695 Include `conf/i386.mk'.
21696 * conf/i386-efi.rmk: Likewise.
21697 * conf/x86_64-efi.rmk: Likewise.
21698 * conf/i386-coreboot.rmk: Likewise.
21699 * conf/i386-ieee1275.rmk: Likewise.
21700
21701 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
21702
21703 Based on patch created by Colin D Bennett <colin@gibibit.com>.
21704 Adds optimization support for BGR based modes.
21705
21706 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
21707 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
21708 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
21709 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
21710 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
21711 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
21712 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
21713 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
21714 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
21715 (grub_video_i386_vbeblit_index_index): Likewise.
21716 (grub_video_i386_vbeblit_replace_directN): Added.
21717 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
21718 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
21719 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
21720 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
21721 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
21722 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
21723 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
21724 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
21725 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
21726 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
21727 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
21728 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
21729 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
21730
21731 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
21732 (grub_video_i386_vbefill_R8G8B8): Likewise.
21733 (grub_video_i386_vbefill_index): Likewise.
21734 (grub_video_i386_vbefill_direct32): Added.
21735 (grub_video_i386_vbefill_direct24): Likewise.
21736 (grub_video_i386_vbefill_direct16): Likewise.
21737 (grub_video_i386_vbefill_direct8): Likewise.
21738
21739 * include/grub/video.h (grub_video_blit_format): Removed
21740 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
21741 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
21742 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
21743 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
21744 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
21745
21746 * video/video.c (grub_video_get_blit_format): Updated to use new
21747 blit formats. Added handling for 16 bit color modes.
21748
21749 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
21750 fillers.
21751 (common_blitter): Updated to use new blitters.
21752
21753 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
21754 Removed.
21755 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
21756 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
21757 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
21758 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
21759 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
21760 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
21761 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
21762 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
21763 (grub_video_i386_vbeblit_index_index): Likewise.
21764 (grub_video_i386_vbeblit_replace_directN): Added.
21765 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
21766 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
21767 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
21768 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
21769 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
21770 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
21771 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
21772 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
21773 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
21774 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
21775 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
21776 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
21777 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
21778
21779 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
21780 (grub_video_i386_vbefill_R8G8B8): Likewise.
21781 (grub_video_i386_vbefill_index): Likewise.
21782 (grub_video_i386_vbefill_direct32): Added.
21783 (grub_video_i386_vbefill_direct24): Likewise.
21784 (grub_video_i386_vbefill_direct16): Likewise.
21785 (grub_video_i386_vbefill_direct8): Likewise.
21786
21787 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
21788 types.
21789
21790 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
21791 types.
21792
21793 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
21794 blitter types.
21795
21796 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
21797 types.
21798
21799 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
21800
21801 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
21802 RAID level 1.
21803
21804 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
21805
21806 * fs/iso9660.c (grub_iso9660_date): New structure.
21807 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
21808 (grub_iso9660_uuid): New function.
21809
21810 2008-09-05 Bean <bean123ch@gmail.com>
21811
21812 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
21813
21814 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
21815 insensitive bit for names in Win32 and Win32 & DOS namespace.
21816
21817 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
21818
21819 * include/grub/types.h (LONG_MAX): Likewise.
21820
21821 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
21822
21823 * util/getroot.c: Include <config.h>.
21824 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
21825 add support for /dev/md/N devices and handle LVM double dash escaping.
21826
21827 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
21828
21829 * config.guess: Update to latest version from config git.
21830 * config.sub: Likewise.
21831
21832 2008-09-03 Robert Millan <rmh@aybabtu.com>
21833
21834 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
21835 `disk->total_sectors'.
21836
21837 2008-09-01 Colin D Bennett <colin@gibibit.com>
21838
21839 * include/grub/normal.h: Fixed incorrect comment for
21840 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
21841
21842 2008-09-01 Colin D Bennett <colin@gibibit.com>
21843
21844 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
21845 values with defines.
21846
21847 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
21848 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
21849 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
21850 (GRUB_VBE_MODEATTR_COLOR): Likewise.
21851 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
21852 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
21853 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
21854 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
21855 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
21856 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
21857 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
21858 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
21859 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
21860 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
21861 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
21862 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
21863 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
21864 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
21865 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
21866
21867 2008-08-31 Robert Millan <rmh@aybabtu.com>
21868
21869 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
21870 declaration.
21871 (grub_multiboot): Fix a few warnings.
21872
21873 2008-08-31 Robert Millan <rmh@aybabtu.com>
21874
21875 * loader/i386/pc/multiboot.c: Update comment not to say that
21876 boot_device support is unimplemented.
21877
21878 2008-08-31 Robert Millan <rmh@aybabtu.com>
21879
21880 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
21881 or memory map support are unimplemented.
21882
21883 2008-08-31 Colin D Bennett <colin@gibibit.com>
21884
21885 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
21886
21887 2008-08-31 Colin D Bennett <colin@gibibit.com>
21888
21889 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
21890 total video memory in 'vbeinfo' output; show color format details for
21891 each video mode.
21892
21893 2008-08-30 Pavel Roskin <proski@gnu.org>
21894
21895 * util/genmoddep.c: Remove for real this time.
21896 * DISTLIST: Remove util/genmoddep.c.
21897
21898 2008-08-30 Robert Millan <rmh@aybabtu.com>
21899
21900 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
21901 as required by Multiboot spec (it was already 4-byte aligned, but
21902 only by chance).
21903
21904 2008-08-29 Pavel Roskin <proski@gnu.org>
21905
21906 * kern/powerpc/ieee1275/crt0.S: Rename to ...
21907 * kern/powerpc/ieee1275/startup.S: ... this.
21908 * conf/powerpc-ieee1275.rmk: Adjust for the above.
21909 * DISTLIST: Likewise.
21910
21911 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
21912 grub/cpu/kernel.h. Add start label for consistency with other
21913 platforms. Add grub_prefix immediately after start. Add jump
21914 to the code after grub_prefix.
21915 * include/grub/powerpc/kernel.h: Provide valid values for
21916 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
21917
21918 2008-08-29 Bean <bean123ch@gmail.com>
21919
21920 * configure.ac: Change host_os to cygwin for mingw.
21921 (asprintf): New check for function.
21922
21923 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
21924 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
21925
21926 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
21927 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
21928 sync, sleep and grub_util_get_disk_size for mingw.
21929
21930 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
21931 to get size in mingw.
21932 (open_device): Use flag O_BINARY if it's defined.
21933 (find_root_device): Add dummy code for mingw.
21934
21935 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
21936 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
21937 (get_scsi_disk_name): Return 0 for mingw.
21938
21939 * util/hostfs.c: #include <grub/util/misc.h>.
21940 (grub_hostfs_open): Use "rb" flag to open file, use
21941 grub_util_get_disk_size to get disk size for mingw.
21942
21943 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
21944 (asprintf): New function if HAVE_ASPRINTF is not set.
21945 (sync): New function for mingw.
21946 (sleep): Likewise.
21947 (grub_util_get_disk_size): Likewise.
21948
21949 2008-08-28 Pavel Roskin <proski@gnu.org>
21950
21951 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
21952 kern/time.c.
21953
21954 2008-08-28 Robert Millan <rmh@aybabtu.com>
21955
21956 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
21957
21958 2008-08-28 Robert Millan <rmh@aybabtu.com>
21959
21960 Change find_grub_drive() syntax so it doesn't prevent it from
21961 detecting NULL names as errors.
21962
21963 * util/biosdisk.c (find_grub_drive): Move free slot search code
21964 from here ...
21965 (find_free_slot): ... to here.
21966 (read_device_map): Use find_free_slot() to search for free slots.
21967
21968 2008-08-27 Marco Gerards <marco@gnu.org>
21969
21970 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
21971 (scsi_mod_SOURCES): New variable.
21972 (scsi_mod_CFLAGS): Likewise
21973 (scsi_mod_LDFLAGS): Likewise.
21974
21975 * disk/scsi.c: New file.
21976
21977 * include/grub/scsi.h: Likewise.
21978
21979 * include/grub/scsicmd.h: Likewise.
21980
21981 * disk/ata.c: Include <grub/scsi.h>.
21982 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
21983 instead.
21984 (grub_ata_iterate): Skip ATAPI devices.
21985 (grub_ata_open): Only handle ATAPI devices.
21986 (struct grub_atapi_read): Removed.
21987 (grub_atapi_readsector): Likewise.
21988 (grub_ata_read): No longer handle ATAPI devices.
21989 (grub_ata_write): Likewise.
21990 (grub_atapi_iterate): New function.
21991 (grub_atapi_read): Likewise.
21992 (grub_atapi_write): Likewise.
21993 (grub_atapi_open): Likewise.
21994 (grub_atapi_close): Likewise.
21995 (grub_atapi_dev): New variable.
21996 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
21997 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
21998
21999 * include/grub/disk.h (enum grub_disk_dev_id): Add
22000 `GRUB_DISK_DEVICE_SCSI_ID'.
22001
22002 2008-08-26 Robert Millan <rmh@aybabtu.com>
22003
22004 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
22005 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
22006 descriptive.
22007
22008 2008-08-23 Bean <bean123ch@gmail.com>
22009
22010 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
22011 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
22012 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
22013 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
22014 dm_nv.mod.
22015 (raid5rec_mod_SOURCES): New macro.
22016 (raid5rec_mod_CFLAGS): Likewise.
22017 (raid5rec_mod_LDFLAGS): Likewise.
22018 (raid6rec_mod_SOURCES): Likewise.
22019 (raid6rec_mod_CFLAGS): Likewise.
22020 (raid6rec_mod_LDFLAGS): Likewise.
22021 (mdraid_mod_SOURCES): Likewise.
22022 (mdraid_mod_CFLAGS): Likewise.
22023 (mdraid_mod_LDFLAGS): Likewise.
22024 (dm_nv_mod_SOURCES): Likewise.
22025 (dm_nv_mod_CFLAGS): Likewise.
22026 (dm_nv_mod_LDFLAGS): Likewise.
22027
22028 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
22029 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
22030 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
22031
22032 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
22033 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
22034
22035 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22036
22037 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22038
22039 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22040
22041 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22042
22043 * disk/raid5_recover.c: New file.
22044
22045 * disk/raid6_recover.c: Likewise.
22046
22047 * disk/mdraid_linux.c: Likewise.
22048
22049 * disk/dmraid_nvidia.c: Likewise.
22050
22051 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
22052 ULONG_MAX.
22053
22054 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
22055 calculate the size of raid device.
22056 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
22057 different layout of raid5.
22058 (grub_raid_scan_device): Remove code specific to mdraid.
22059 (grub_raid_list): New variable.
22060 (free_array): New function.
22061 (grub_raid_register): Likewise.
22062 (grub_raid_unregister): Likewise.
22063 (grub_raid_rescan): Likewise.
22064 (GRUB_MOD_INIT): Don't iterate device here.
22065 (GRUB_MOD_FINI): Use free_array to release resource.
22066
22067 * include/grub/raid.h: Remove macro and structure specific to mdraid.
22068 (grub_raid5_recover_func_t): New function variable type.
22069 (grub_raid6_recover_func_t): Likewise.
22070 (grub_raid5_recover_func): New variable.
22071 (grub_raid6_recover_func): Likewise.
22072 (grub_raid_register): New function.
22073 (grub_raid_unregister): Likewise.
22074 (grub_raid_rescan): Likewise.
22075 (grub_raid_block_xor): Likewise.
22076
22077 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
22078 (CMD_CRC): New macro.
22079 (part): Removed.
22080 (read_file): Handle device as well as file.
22081 (cmd_crc): New function.
22082 (fstest): Handle multiple disks.
22083 (options): Remove part, raw and long, add root and diskcount.
22084 (usage): Add crc, remove -p, -r, -l, add -r and -c.
22085 (main): Find the first non option entry and ignore subsequent options,
22086 add handling for the new options, support multiple disks.
22087
22088 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
22089
22090 2008-08-23 Bean <bean123ch@gmail.com>
22091
22092 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
22093
22094 * genfslist.sh: Ignore kernel.mod.
22095
22096 * genpartmaplist.sh: Likewise.
22097
22098 2008-08-23 Robert Millan <rmh@aybabtu.com>
22099
22100 * util/getroot.c (find_root_device): Skip anything that starts with
22101 a dot, not just directories. This avoids things like /dev/.tmp.md0.
22102
22103 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
22104
22105 * util/update-grub.in (GRUB_GFXMODE): Export variable.
22106 * util/grub.d/00_header.in: Allow the administrator to change default
22107 gfxmode via ${GRUB_GFXMODE}.
22108
22109 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
22110
22111 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
22112
22113 2008-08-21 Robert Millan <rmh@aybabtu.com>
22114
22115 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
22116 loader.
22117 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
22118 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
22119
22120 2008-08-20 Carles Pina i Estany <carles@pina.cat>
22121
22122 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
22123 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
22124
22125 2008-08-19 Robert Millan <rmh@aybabtu.com>
22126
22127 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
22128 (struct grub_virtual_screen): Remove `cursor_color'.
22129 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
22130 initialization.
22131 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
22132
22133 2008-08-18 Robert Millan <rmh@aybabtu.com>
22134
22135 Unify (identical) linux_normal.c files.
22136 * loader/i386/efi/linux_normal.c: Move from here ...
22137 * loader/linux_normal.c: ... to here. Update all users.
22138 * loader/i386/pc/linux_normal.c: Delete. Update all users.
22139 * loader/i386/ieee1275/linux_normal.c: Likewise.
22140
22141 2008-08-18 Robert Millan <rmh@aybabtu.com>
22142
22143 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
22144 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
22145 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
22146 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
22147 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
22148 New macros.
22149 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
22150 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
22151 (GRUB_LINUX_CL_END_OFFSET): ... to here.
22152 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
22153 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
22154 (GRUB_EFI_CL_END_OFFSET): Rename to ...
22155 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
22156 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
22157 Initialize `params->video_cursor_x' and `params->video_cursor_y'
22158 portably using grub_getxy().
22159 Replace `-EFI' with `-bzImage' in boot message.
22160
22161 2008-08-17 Robert Millan <rmh@aybabtu.com>
22162
22163 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
22164
22165 2008-08-17 Robert Millan <rmh@aybabtu.com>
22166
22167 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
22168
22169 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
22170 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
22171 (grub_machine_mmap_iterate): New function declaration.
22172 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
22173 structure.
22174 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
22175 macros.
22176
22177 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
22178 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
22179 Move e820 parsing from here ...
22180 * kern/i386/pc/mmap.c: New file.
22181 (grub_machine_mmap_iterate): ... to here.
22182
22183 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
22184 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
22185 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
22186 (grub_available_iterate): Redeclare to return `void', and redeclare
22187 its hook to use grub_uint64_t as addr and size parameters, and rename
22188 to ...
22189 (grub_machine_mmap_iterate): ... this. Update all users.
22190
22191 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
22192 to make it more readable. Rename to ...
22193 (grub_machine_mmap_iterate): ... this.
22194
22195 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
22196 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
22197 (grub_multiboot): Allocate an extra region after the payload, and fill
22198 it with a Multiboot memory map. Adjust a.out loader to calculate size
22199 with the extra space.
22200 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
22201 with the extra space.
22202
22203 2008-08-17 Carles Pina i Estany <carles@pina.cat>
22204
22205 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
22206
22207 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
22208
22209 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
22210 mdate-sh to the list `find' searches for.
22211 * DISTLIST: Regenerated.
22212
22213 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
22214
22215 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
22216 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
22217 genmoddep.awk, gensymlist.sh.in.
22218 (DISTDIRS): Add bus, docs, hook, lib.
22219 * DISTLIST: Regenerated.
22220 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
22221
22222 2008-08-16 Robert Millan <rmh@aybabtu.com>
22223
22224 * disk/raid.c (grub_raid_init): Handle/report errors set by
22225 grub_device_iterate().
22226 * disk/lvm.c (grub_lvm_init): Likewise.
22227
22228 2008-08-15 Bean <bean123ch@gmail.com>
22229
22230 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
22231 and datehook.mod.
22232 (datetime_mod_SOURCES): New macro.
22233 (datetime_mod_CFLAGS): Likewise.
22234 (datetime_mod_LDFLAGS): Likewise.
22235 (date_mod_SOURCES): Likewise.
22236 (date_mod_CFLAGS): Likewise.
22237 (date_mod_LDFLAGS): Likewise.
22238 (datehook_mod_SOURCES): Likewise.
22239 (datehook_mod_CFLAGS): Likewise.
22240 (datehook_mod_LDFLAGS): Likewise.
22241
22242 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
22243 and datehook.mod.
22244 (datetime_mod_SOURCES): New macro.
22245 (datetime_mod_CFLAGS): Likewise.
22246 (datetime_mod_LDFLAGS): Likewise.
22247 (date_mod_SOURCES): Likewise.
22248 (date_mod_CFLAGS): Likewise.
22249 (date_mod_LDFLAGS): Likewise.
22250 (datehook_mod_SOURCES): Likewise.
22251 (datehook_mod_CFLAGS): Likewise.
22252 (datehook_mod_LDFLAGS): Likewise.
22253
22254 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
22255 and datehook.mod.
22256 (datetime_mod_SOURCES): New macro.
22257 (datetime_mod_CFLAGS): Likewise.
22258 (datetime_mod_LDFLAGS): Likewise.
22259 (date_mod_SOURCES): Likewise.
22260 (date_mod_CFLAGS): Likewise.
22261 (date_mod_LDFLAGS): Likewise.
22262 (datehook_mod_SOURCES): Likewise.
22263 (datehook_mod_CFLAGS): Likewise.
22264 (datehook_mod_LDFLAGS): Likewise.
22265
22266 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
22267 and datehook.mod.
22268 (datetime_mod_SOURCES): New macro.
22269 (datetime_mod_CFLAGS): Likewise.
22270 (datetime_mod_LDFLAGS): Likewise.
22271 (date_mod_SOURCES): Likewise.
22272 (date_mod_CFLAGS): Likewise.
22273 (date_mod_LDFLAGS): Likewise.
22274 (datehook_mod_SOURCES): Likewise.
22275 (datehook_mod_CFLAGS): Likewise.
22276 (datehook_mod_LDFLAGS): Likewise.
22277
22278 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
22279 and datehook.mod.
22280 (datetime_mod_SOURCES): New macro.
22281 (datetime_mod_CFLAGS): Likewise.
22282 (datetime_mod_LDFLAGS): Likewise.
22283 (date_mod_SOURCES): Likewise.
22284 (date_mod_CFLAGS): Likewise.
22285 (date_mod_LDFLAGS): Likewise.
22286 (datehook_mod_SOURCES): Likewise.
22287 (datehook_mod_CFLAGS): Likewise.
22288 (datehook_mod_LDFLAGS): Likewise.
22289
22290 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
22291
22292 * commands/date.c: New file.
22293
22294 * hook/datehook.c: Likewise.
22295
22296 * include/grub/lib/datetime.h: Likewise.
22297
22298 * include/grub/i386/cmos.h: Likewise.
22299
22300 * lib/datetime.c: Likewise.
22301
22302 * lib/i386/datetime.c: Likewise.
22303
22304 * lib/efi/datetime.c: Likewise.
22305
22306 2008-08-14 Robert Millan <rmh@aybabtu.com>
22307
22308 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
22309 (grub_mkelfimage_SOURCES): New variable.
22310 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
22311
22312 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
22313 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
22314 * conf/powerpc-ieee1275.rmk: Likewise.
22315 * conf/i386-ieee1275.rmk: Likewise.
22316
22317 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
22318 * kern/i386/coreboot/init.c: Likewise.
22319
22320 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
22321 with `<grub/cpu/kernel.h>'.
22322 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
22323 to ...
22324 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
22325 * kern/i386/coreboot/startup.S: Likewise.
22326
22327 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
22328 (GRUB_MOD_GAP): Remove.
22329 * include/grub/powerpc/kernel.h: New file.
22330 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
22331 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
22332 * include/grub/i386/kernel.h: New file.
22333 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
22334 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
22335 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
22336
22337 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
22338 `grub-mkelfimage'.
22339 Use --directory when invoking grub_mkimage.
22340
22341 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
22342 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
22343 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
22344 and GRUB_KERNEL_CPU_PREFIX.
22345
22346 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
22347
22348 * include/grub/err.h (grub_err_printf): New function prototype.
22349 * util/misc.c (grub_err_printf): New function.
22350 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
22351 grub_printf.
22352 * kern/err.c (grub_print_error): Use grub_err_printf.
22353
22354 2008-08-13 Robert Millan <rmh@aybabtu.com>
22355
22356 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
22357
22358 2008-08-13 Robert Millan <rmh@aybabtu.com>
22359
22360 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
22361 boot entry.
22362
22363 2008-08-12 Robert Millan <rmh@aybabtu.com>
22364
22365 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
22366 of the relocation code from here ...
22367 (grub_multiboot): ... to here.
22368 (forward_relocator, backward_relocator): Move from here ...
22369 * kern/i386/loader.S (grub_multiboot_forward_relocator)
22370 (grub_multiboot_backward_relocator): ... to here.
22371 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
22372 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
22373 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
22374 (grub_multiboot_forward_relocator_end)
22375 (grub_multiboot_backward_relocator)
22376 (grub_multiboot_backward_relocator_end): New variables.
22377
22378 2008-08-12 Bean <bean123ch@gmail.com>
22379
22380 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
22381
22382 2008-08-11 Robert Millan <rmh@aybabtu.com>
22383
22384 * kern/i386/linuxbios/startup.S: Move from here ...
22385 * kern/i386/coreboot/startup.S: ... to here.
22386
22387 * kern/i386/linuxbios/init.c: Move from here ...
22388 * kern/i386/coreboot/init.c: ... to here.
22389
22390 * kern/i386/linuxbios/table.c: Move from here ...
22391 * kern/i386/coreboot/mmap.c: ... to here.
22392
22393 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
22394
22395 2008-08-11 Robert Millan <rmh@aybabtu.com>
22396
22397 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
22398 errors. Leave it to the upper layer to handle them.
22399
22400 2008-08-09 Christian Franke <franke@computer.org>
22401
22402 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
22403 * conf/common.rmk: Install `grub-pe2elf' only if requested.
22404 Install `grub.d/10_windows' only on Cygwin.
22405 * configure.ac: Add subst of `target_os'.
22406 Check `target_os' also before setting TARGET_OBJ2ELF.
22407 Add `--enable-grub-pe2elf'.
22408
22409 2008-08-08 Robert Millan <rmh@aybabtu.com>
22410
22411 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
22412 (grub_last_time): Change type to grub_uint64_t.
22413 (grub_disk_open): Migrate code from to using grub_get_time_ms().
22414 (grub_disk_close): Likewise.
22415
22416 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
22417 (run_menu): Migrate code from to using grub_get_time_ms().
22418
22419 * util/misc.c (grub_get_time_ms): New function.
22420
22421 2008-08-08 Marco Gerards <marco@gnu.org>
22422
22423 * disk/ata.c (grub_ata_regget): Change return type to
22424 `grub_uint8_t'.
22425 (grub_ata_regget2): Likewise.
22426 (grub_ata_wait_status): New function.
22427 (grub_ata_wait_busy): Removed function, updated all users to use
22428 `grub_ata_wait_status'.
22429 (grub_ata_wait_drq): Likewise.
22430 (grub_ata_cmd): New function.
22431 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
22432 error handling.
22433 (grub_ata_pio_write): Add error handling.
22434 (grub_atapi_identify): Likewise.
22435 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
22436 handling.
22437 (grub_ata_identify): Use `grub_ata_cmd' and improve error
22438 handling. Actually use the detected registers. Reorder the
22439 detection logic such that it is easier to read.
22440 (grub_ata_pciinit): Do not assign the same ID to each controller.
22441 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
22442 handling.
22443 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
22444
22445 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
22446
22447 2008-08-08 Marco Gerards <marco@gnu.org>
22448
22449 * NEWS: Update.
22450
22451 2008-08-07 Bean <bean123ch@gmail.com>
22452
22453 * include/grub/x86_64/pci.h: New file.
22454
22455 2008-08-07 Christian Franke <franke@computer.org>
22456
22457 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
22458 (TIMER2_GATE): Likewise.
22459 (grub_pit_wait): Add enable/disable of the timer2 gate
22460 bit of port 0x61. This fixes a possible infinite loop.
22461
22462 2008-08-07 Bean <bean123ch@gmail.com>
22463
22464 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
22465 kern/i386/tsc.c and kern/i386/pit.c.
22466
22467 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
22468 x86_64 platform.
22469
22470 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
22471 <grub/i386/tsc.h>.
22472
22473 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
22474
22475 2008-08-07 Bean <bean123ch@gmail.com>
22476
22477 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
22478
22479 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
22480
22481 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
22482 multiple inclusion. Add #include <grub/types.h>.
22483
22484 2008-08-06 Christian Franke <franke@computer.org>
22485
22486 * conf/common.rmk: Build and install `10_windows'.
22487 * util/grub.d/10_windows.in: New script.
22488
22489 2008-08-06 Pavel Roskin <proski@gnu.org>
22490
22491 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
22492
22493 2008-08-06 Robert Millan <rmh@aybabtu.com>
22494
22495 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
22496 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
22497
22498 2008-08-06 Bean <bean123ch@gmail.com>
22499
22500 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
22501 (grub_pxefs_fs_int): Remove dummy definition.
22502 (grub_pxefs_open): Use data->block_size to store the current block
22503 size setting.
22504 (grub_pxefs_read): Use block size stored in data->block_size. As the
22505 value of grub_pxe_blksize can be changed after the file is opened.
22506
22507 2008-08-06 Bean <bean123ch@gmail.com>
22508
22509 * fs/i386/pc/pxe.c (curr_file): new variable.
22510 (grub_pxefs_open): Simply the handling of pxe file system. Don't
22511 require the dummy internal file system anymore.
22512 (grub_pxefs_read): Removed.
22513 (grub_pxefs_close): Likewise.
22514 (grub_pxefs_fs_int): Likewise.
22515 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
22516 connection when we switch file.
22517 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
22518
22519 2008-08-06 Robert Millan <rmh@aybabtu.com>
22520
22521 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
22522 `halt.mod'.
22523 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
22524 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
22525
22526 * kern/i386/halt.c: New file.
22527 * kern/i386/reboot.c: Likewise.
22528 * include/grub/i386/reboot.h: Likewise.
22529 * include/grub/i386/halt.h: Likewise.
22530
22531 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
22532 Include `<grub/cpu/halt.h>'.
22533 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
22534 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
22535
22536 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
22537 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
22538 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
22539 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
22540 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
22541 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
22542 from here ...
22543 * include/grub/i386/at_keyboard.h: ... to here.
22544
22545 2008-08-05 Robert Millan <rmh@aybabtu.com>
22546
22547 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
22548 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
22549 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
22550 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
22551 `kern/generic/millisleep.c'.
22552
22553 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
22554 instead of grub_get_rtc().
22555 (grub_tsc_init): Initialize `tsc_boot_time'.
22556
22557 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
22558 (grub_machine_init): Use grub_tsc_init() rather than
22559 installing an RTC-based handler via grub_install_get_time_ms().
22560
22561 * kern/i386/pit.c: New file.
22562 * include/grub/i386/pit.h: Likewise.
22563
22564 2008-08-05 Bean <bean123ch@gmail.com>
22565
22566 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
22567
22568 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
22569 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
22570 (pxe_mod_SOURCES): New macro.
22571 (pxe_mod_CFLAGS): Likewise.
22572 (pxe_mod_LDFLAGS): Likewise.
22573 (pxecmd_mod_SOURCES): Likewise.
22574 (pxecmd_mod_CFLAGS): Likewise.
22575 (pxecmd_mod_LDFLAGS): Likewise.
22576
22577 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
22578 (grub_pxe_call): Likewise.
22579
22580 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
22581
22582 * commands/i386/pc/pxecmd.c: New file.
22583
22584 * fs/i386/pc/pxe.c: Likewise.
22585
22586 * include/grub/i386/pc/pxe.h: Likewise.
22587
22588 2008-08-05 Bean <bean123ch@gmail.com>
22589
22590 * util/console.c (grub_console_cur_color): New variable.
22591 (grub_console_standard_color): Likewise.
22592 (grub_console_normal_color): Likewise.
22593 (grub_console_highlight_color): Likewise.
22594 (color_map): Likewise.
22595 (use_color): Likewise.
22596 (NUM_COLORS): New macro.
22597 (grub_ncurses_setcolorstate): Handle color properly.
22598 (grub_ncurses_setcolor): Don't change color here, just remember the
22599 settings, color will be set in grub_ncurses_setcolorstate.
22600 (grub_ncurses_getcolor): New function.
22601 (grub_ncurses_init): Initialize color pairs.
22602 (grub_ncurses_term): New member grub_ncurses_getcolor.
22603
22604 2008-08-05 Colin D Bennett <colin@gibibit.com>
22605
22606 High resolution timer support. Implemented for x86 CPUs using TSC.
22607 Extracted generic grub_millisleep() so it's linked in only as needed.
22608 This requires a Pentium compatible CPU; if the RDTSC instruction is
22609 not supported, then it falls back on the generic grub_get_time_ms()
22610 implementation that uses the machine's RTC.
22611
22612 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
22613 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
22614 `kern/generic/millisleep.c'.
22615
22616 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
22617 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
22618
22619 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
22620 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
22621
22622 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
22623
22624 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
22625 `kern/generic/millisleep.c'.
22626
22627 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
22628
22629 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
22630
22631 * kern/generic/rtc_get_time_ms.c: New file.
22632
22633 * kern/generic/millisleep.c: New file.
22634
22635 * kern/misc.c: Don't include
22636 <kern/time.h> anymore.
22637 (grub_millisleep_generic): Removed.
22638
22639 * commands/sleep.c (grub_interruptible_millisleep): Uses
22640 grub_get_time_ms() instead of grub_get_rtc().
22641
22642 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
22643 function.
22644 (grub_cpu_is_cpuid_supported): New inline function.
22645 (grub_cpu_is_tsc_supported): New inline function.
22646 (grub_tsc_init): New function prototype.
22647 (grub_tsc_get_time_ms): New function prototype.
22648
22649 * kern/i386/tsc.c (grub_get_time_ms): New file.
22650
22651 * include/grub/time.h: Include <grub/types.h.
22652 (grub_millisleep_generic): Removed.
22653 (grub_get_time_ms): New prototype.
22654 (grub_install_get_time_ms): New prototype.
22655 (grub_rtc_get_time_ms): New prototype.
22656
22657 * kern/time.c (grub_get_time_ms): New function.
22658 (grub_install_get_time_ms): New function.
22659
22660 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
22661 <grub/time.h> anymore.
22662 (grub_millisleep): Removed.
22663 (grub_machine_init): Call grub_tsc_init.
22664
22665 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
22666 get_time_ms() implementation.
22667
22668 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
22669 (ieee1275_get_time_ms): New function.
22670 (grub_machine_init): Install get_time_ms() implementation.
22671
22672 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
22673 (grub_machine_init): Call grub_tsc_init().
22674 (grub_millisleep): Removed.
22675
22676 * kern/ieee1275/init.c (grub_millisleep): Removed.
22677 (grub_machine_init): Install ieee1275_get_time_ms()
22678 implementation.
22679 (ieee1275_get_time_ms): New function.
22680 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
22681 real work.
22682
22683 2008-08-05 Marco Gerards <marco@gnu.org>
22684
22685 * disk/ata.c: Include <grub/pci.h>.
22686 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
22687 (grub_ata_initialize): Rewritten.
22688 (grub_ata_device_initialize): New function.
22689
22690 2008-08-04 Pavel Roskin <proski@gnu.org>
22691
22692 * kern/main.c: Include grub/mm.h.
22693
22694 2008-08-04 Robert Millan <rmh@aybabtu.com>
22695
22696 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
22697 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
22698 corruption problem).
22699
22700 2008-08-04 Robert Millan <rmh@aybabtu.com>
22701
22702 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
22703 warnings introduced in my last commit.
22704
22705 2008-08-03 Robert Millan <rmh@aybabtu.com>
22706
22707 Make PCI available on all i386 architectures.
22708
22709 * include/grub/i386/pc/pci.h: Move from here ...
22710 * include/grub/i386/pci.h: ... to here.
22711
22712 * include/grub/i386/pc/pci.h: Remove.
22713 * include/grub/i386/efi/pci.h: Remove.
22714 * include/grub/x86_64/efi/pci.h: Remove.
22715
22716 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
22717 `<grub/cpu/pci.h>'.
22718
22719 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
22720 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
22721 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
22722
22723 * conf/i386-ieee1275.rmk: Likewise.
22724
22725 2008-08-03 Robert Millan <rmh@aybabtu.com>
22726
22727 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
22728 (grub_console_setcursor): Make it possible to set cursor off.
22729
22730 2008-08-03 Robert Millan <rmh@aybabtu.com>
22731
22732 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
22733 of modules instead of assuming which platform provides what.
22734 * util/update-grub.in: Likewise.
22735
22736 2008-08-03 Robert Millan <rmh@aybabtu.com>
22737
22738 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
22739 instead of `grub_install_dos_part' to determine whether a drive needs
22740 to be prepended to prefix (`grub_install_dos_part' is not reliable,
22741 because it can be overridden when loading GRUB via Multiboot).
22742
22743 2008-08-02 Robert Millan <rmh@aybabtu.com>
22744
22745 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
22746
22747 2008-08-02 Robert Millan <rmh@aybabtu.com>
22748
22749 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
22750 of informational grub_dprintf() calls.
22751
22752 2008-08-02 Robert Millan <rmh@aybabtu.com>
22753
22754 * disk/memdisk.c (memdisk_size): Don't initialize.
22755 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
22756
22757 * include/grub/i386/pc/kernel.h
22758 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
22759 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
22760 (grub_memdisk_image_size, grub_arch_memdisk_addr)
22761 (grub_arch_memdisk_size): Remove.
22762
22763 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
22764 field (was only used to transfer a constant). Add `type' field to
22765 support multiple module types.
22766 (grub_module_iterate): New function.
22767
22768 * kern/device.c (grub_device_open): Do not hide error messages
22769 when grub_disk_open() fails. Use grub_print_error() instead.
22770
22771 * kern/i386/pc/init.c (grub_arch_modules_addr)
22772 (grub_arch_memdisk_size): Remove functions.
22773 (grub_arch_modules_addr): Return the module address in high memory
22774 (now that it isn't copied anymore).
22775
22776 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
22777 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
22778 decompression routine (grub_total_module_size already includes that
22779 now). Don't copy modules back to low memory.
22780
22781 * kern/main.c: Include `<grub/mm.h>'.
22782 (grub_load_modules): Split out (and use) ...
22783 (grub_module_iterate): ... this function, which iterates through
22784 module objects and runs a hook.
22785 Comment out grub_mm_init_region() call, as it would cause non-ELF
22786 modules to be overwritten.
22787
22788 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
22789 the memdisk image in its own region, make it part of the module list.
22790 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
22791 (main): Parse --memdisk|-m option, and pass user-provided path as
22792 parameter to generate_image().
22793 (add_segments): Pass `memdisk_path' down to load_modules().
22794 (load_modules): Embed memdisk image in module section when requested.
22795 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
22796 `header.type' instead of `header.offset'.
22797
22798 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
22799 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
22800 (memdisk_mod_LDFLAGS): New variables.
22801 * conf/i386-coreboot.rmk: Likewise.
22802 * conf/i386-ieee1275.rmk: Likewise.
22803
22804 2008-08-02 Robert Millan <rmh@aybabtu.com>
22805
22806 * loader/i386/pc/multiboot.c (playground, forward_relocator)
22807 (backward_relocator): New variables. Used to allocate and relocate
22808 the payload, respectively.
22809 (grub_multiboot_load_elf32): Load into heap instead of requested
22810 address, install the appropriate relocator code in each bound of
22811 the payload, and set the entry point such that
22812 grub_multiboot_real_boot() will jump to one of them.
22813
22814 * kern/i386/loader.S (grub_multiboot_payload_size)
22815 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
22816 (grub_multiboot_payload_entry_offset): New variables.
22817 (grub_multiboot_real_boot): Set cpu context to what the relocator
22818 expects, and jump to the relocator instead of the payload.
22819
22820 * include/grub/i386/loader.h (grub_multiboot_payload_size)
22821 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
22822 (grub_multiboot_payload_entry_offset): Export.
22823
22824 2008-08-01 Bean <bean123ch@gmail.com>
22825
22826 * normal/menu_entry.c (editor_getline): Don't return the original
22827 string as result, as it will be released by lexer once it has done
22828 using it.
22829
22830 2008-08-01 Robert Millan <rmh@aybabtu.com>
22831
22832 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
22833 within menuentries, not before them.
22834 util/grub.d/10_hurd.in: Likewise.
22835
22836 2008-08-01 Bean <bean123ch@gmail.com>
22837
22838 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
22839 (bufio_mod_SOURCES): New macro.
22840 (bufio_mod_CFLAGS): Likewise.
22841 (bufio_mod_LDFLAGS): Likewise.
22842
22843 * include/grub/bufio.h: New file.
22844
22845 * io/bufio.c: Likewise.
22846
22847 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
22848 (grub_video_reader_png): Use grub_buffile_open to open file.
22849
22850 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
22851 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
22852
22853 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
22854 (grub_video_reader_tga): Use grub_buffile_open to open file.
22855
22856 * font/manager.c: Include <grub/bufio.h>.
22857 (add_font): Use grub_buffile_open to open file.
22858
22859 2008-07-31 Robert Millan <rmh@aybabtu.com>
22860
22861 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
22862 ELF segments, use a macro for arbitrarily accessing any of them instead
22863 of preparing a pointer that allows access to one at a time.
22864 (grub_multiboot_load_elf64): Likewise.
22865
22866 2008-07-31 Bean <bean123ch@gmail.com>
22867
22868 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
22869 GRUB_KERNEL_MACHINE_DATA_END.
22870
22871 2008-07-30 Robert Millan <rmh@aybabtu.com>
22872
22873 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
22874 Increase from 0x50 to 0x60.
22875 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
22876 use UUIDs to identify the root drive for them. If that's not
22877 possible, abort.
22878 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
22879 check, for cross-disk installs.
22880
22881 2008-07-30 Robert Millan <rmh@aybabtu.com>
22882
22883 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
22884 is non-empty, use it to set the `prefix' environment variable instead
22885 of the usual approach.
22886 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
22887 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
22888 environment variable instead of dummy make_install_device().
22889
22890 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
22891 (start): Insert a data section, with `grub_prefix' variable.
22892 * kern/i386/linuxbios/startup.S: Likewise.
22893
22894 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
22895 New variable reference.
22896 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
22897 New macro. Defines offset of `grub_prefix' within startup.S (relative
22898 to `start').
22899 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
22900 section within startup.S (relative to `start').
22901 * include/grub/i386/coreboot/kernel.h: Likewise.
22902
22903 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
22904 Overwrite grub_prefix with its contents, at the beginning of the
22905 first segment.
22906 (main): Understand -p|--prefix.
22907
22908 2008-07-30 Robert Millan <rmh@aybabtu.com>
22909
22910 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
22911
22912 2008-07-30 Robert Millan <rmh@aybabtu.com>
22913
22914 * term/i386/pc/vga_text.c (grub_console_cls): Use
22915 grub_console_gotoxy() to go back to beginning of the screen.
22916 Found by Patrick Georgi <patrick.georgi@coresystems.de>
22917
22918 2008-07-29 Christian Franke <franke@computer.org>
22919
22920 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
22921 Add conversion of emulated mount points on Cygwin.
22922
22923 2008-07-29 Christian Franke <franke@computer.org>
22924
22925 * util/update-grub.in: Add a check for admin
22926 group on Cygwin.
22927 Remove old `grub.cfg.new' before creation.
22928 Add `-f' to `mv' to handle the different filesystem
22929 semantics of Windows.
22930
22931 2008-07-29 Bean <bean123ch@gmail.com>
22932
22933 * normal/main.c (get_line): Fix buffer overflow bug.
22934
22935 2008-07-28 Robert Millan <rmh@aybabtu.com>
22936
22937 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
22938 (struct grub_apple_header): New struct. Describes the layout of
22939 the partmap header.
22940 (apple_partition_map_iterate): Check the header magic as well as the
22941 partition magic (which was already being checked).
22942
22943 2008-07-28 Pavel Roskin <proski@gnu.org>
22944
22945 * genmk.rb: Add a warning to the beginning of the output that
22946 it's a generated file and should not be edited.
22947
22948 2008-07-28 Robert Millan <rmh@aybabtu.com>
22949
22950 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
22951 with the same number are found, just use issue a warning with
22952 grub_dprintf(), as this error has been reported to be non-fatal.
22953
22954 2008-07-27 Robert Millan <rmh@aybabtu.com>
22955
22956 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
22957 information.
22958
22959 2008-07-27 Bean <bean123ch@gmail.com>
22960
22961 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
22962 (grub_fat_find_dir): Ignore case when comparing filename.
22963
22964 2008-07-27 Bean <bean123ch@gmail.com>
22965
22966 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
22967 smallino, as it's more descriptive, and i8count can be confused with
22968 the other field count.
22969 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
22970 inode type.
22971
22972 2008-07-27 Bean <bean123ch@gmail.com>
22973
22974 * commands/crc.c: New file.
22975
22976 * lib/crc.c: Likewise.
22977
22978 * include/grub/lib/crc.h: Likewise.
22979
22980 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
22981
22982 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
22983 (hexdump): Move this function to ...
22984
22985 * lib/hexdump.c: ... here.
22986
22987 * include/grub/hexdump.h: Renamed to ...
22988
22989 * include/grub/lib/hexdump.h: ... this.
22990
22991 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
22992
22993 * util/grub-editenv.c: Likewise.
22994
22995 * include/envblk.h: Renamed to ...
22996
22997 * include/lib/envblk.h: ... this.
22998
22999 * util/envblk.c: Renamed to ...
23000
23001 * lib/envblk.c: ... this.
23002
23003 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
23004 lib/hexdump.c.
23005 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
23006 (pkglib_MODULES): Add crc.mod.
23007 (hexdump_mod_SOURCES): Add lib/hexdump.c.
23008 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
23009 (crc_mod_SOURCES): New macro.
23010 (crc_mod_CFLAGS): Likewise.
23011 (crc_mod_LDFLAGS): Likewise.
23012
23013 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
23014
23015 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23016
23017 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23018
23019 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23020
23021 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23022
23023 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
23024
23025 * commands/help.c: Include <grub/term.h>.
23026 (TERM_WIDTH): Removed. Updated all users.
23027
23028 2008-07-27 Pavel Roskin <proski@gnu.org>
23029
23030 * util/getroot.c (find_root_device): Rephrase a comment to avoid
23031 spurious warnings about a comment within a comment.
23032
23033 2008-07-25 Robert Millan <rmh@aybabtu.com>
23034
23035 * util/getroot.c (find_root_device): Skip devices that match
23036 /dev/dm-[0-9]. This lets the real device be found for any type of
23037 abstraction (LVM, EVMS, RAID..).
23038 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
23039 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
23040 device is found first, find_root_device() will now skip it.
23041
23042 2008-07-24 Pavel Roskin <proski@gnu.org>
23043
23044 * include/grub/types.h: Use __builtin_bswap32() and
23045 __builtin_bswap64() with gcc 4.3 and newer.
23046
23047 2008-07-24 Christian Franke <franke@computer.org>
23048
23049 * util/i386/pc/grub-install.in: If `--debug' is specified,
23050 pass `--verbose' to grub-setup.
23051 Abort script if make_system_path_relative_to_its_root() fails.
23052
23053 2008-07-24 Bean <bean123ch@gmail.com>
23054
23055 * configure.ac: Fixed a bug caused by the previous cygwin patch,
23056 variable `target_platform' should be `platform'.
23057
23058 2008-07-24 Bean <bean123ch@gmail.com>
23059
23060 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
23061 (grub_png_init_fixed_block): New function.
23062 (grub_png_decode_image_data): Handle fixed huffman code compression.
23063
23064 2008-07-24 Bean <bean123ch@gmail.com>
23065
23066 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
23067 (grub_pe2elf_SOURCES): New macro.
23068 (CLEANFILES): Add grub-pe2elf.
23069
23070 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
23071 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
23072 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
23073 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
23074 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
23075 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
23076 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
23077 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
23078 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
23079 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
23080 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
23081 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
23082 (GRUB_PE32_DT_FUNCTION): Likewise.
23083 (GRUB_PE32_REL_I386_DIR32): Likewise.
23084 (GRUB_PE32_REL_I386_REL32): Likewise.
23085 (grub_pe32_symbol): New structure.
23086 (grub_pe32_reloc): Likewise.
23087
23088 * util/grub-pe2elf.c: New file.
23089
23090 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
23091 start symbol in non pc platform.
23092
23093 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
23094
23095 The following patches are from Christian Franke.
23096
23097 * include/grub/dl.h: Remove .previous, gas supports this only
23098 for ELF format.
23099
23100 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
23101 Remove .type, gas supports this only for ELF format.
23102
23103 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
23104 nullbytes in symbol table. This fixes an infinite loop if table is
23105 zero filled.
23106
23107 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
23108 TARGET_IMG_LDFLAGS and EXEEXT.
23109
23110 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
23111 TARGET_IMG_LDFLAGS_AC.
23112 (grub_CHECK_STACK_ARG_PROBE): New function.
23113
23114 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
23115
23116 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
23117
23118 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
23119 to set TARGET_IMG_LD* accordingly.
23120 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
23121 Add call to grub_CHECK_STACK_ARG_PROBE.
23122 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
23123
23124 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
23125
23126 * genmk.rb: Add EXEEXT to CLEANFILES.
23127
23128 2008-07-23 Robert Millan <rmh@aybabtu.com>
23129
23130 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
23131 define the codes for arrows and lines used for the menu).
23132 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
23133 as well.
23134
23135 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
23136 fonts, because the latter are too slow.
23137
23138 2008-07-21 Bean <bean123ch@gmail.com>
23139
23140 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
23141 a20. Run keyboard test last, as it will cause macbook to halt.
23142
23143 2008-07-18 Pavel Roskin <proski@gnu.org>
23144
23145 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
23146 load foreign architecture modules correctly anyway. Keep
23147 support for loading host architecture modules, whether we
23148 compile them or not.
23149
23150 2008-07-17 Pavel Roskin <proski@gnu.org>
23151
23152 * configure.ac: Use -m32 or -m64 regardless of whether we had to
23153 change target_cpu. The compiler default can mismatch target_cpu
23154 in any case.
23155
23156 * disk/efi/efidisk.c: Fix format warnings on x86_64.
23157 * kern/efi/efi.c: Likewise.
23158
23159 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
23160 target compiler is functional.
23161 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
23162 are set up.
23163
23164 * configure.ac: Default to efi platform for x86_64-apple. Allow
23165 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
23166 adjustments from the rest, only do them if target is not
23167 explicitly given. Merge other adjustments with the final sanity
23168 check. Remove an extraneous check for supported CPU. Be
23169 specific which CPU and which platform is not supported.
23170
23171 * configure.ac: Default to pc platform for x86_64.
23172
23173 2008-07-17 Robert Millan <rmh@aybabtu.com>
23174
23175 Partial LinuxBIOS -> Coreboot rename.
23176
23177 * conf/i386-linuxbios.rmk: Renamed to ...
23178 * conf/i386-coreboot.rmk: ... this.
23179 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
23180 * configure.ac: Accept "coreboot" as input platform (but maintain
23181 compatibility with "linuxbios").
23182 * include/grub/i386/linuxbios: Renamed to ...
23183 * include/grub/i386/coreboot: ... this.
23184
23185 2008-07-17 Bean <bean123ch@gmail.com>
23186
23187 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
23188 (appleldr_mod_SOURCE): New variable.
23189 (appleldr_mod_CFLAGS): Likewise.
23190 (appleldr_mod_LDFLAGS): Likewise.
23191 (pci_mod_SOURCES): Likewise.
23192 (pci_mod_CFLAGS): Likewise.
23193 (pci_mod_LDFLAGS): Likewise.
23194 (lspci_mod_SOURCES): Likewise.
23195 (lspci_mod_CFLAGS): Likewise.
23196 (lspci_mod_LDFLAGS): Likewise.
23197
23198 * conf/x86_64-efi.rmk: New file.
23199
23200 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
23201 macro.
23202 (grub_efidisk_write): Likewise.
23203
23204 * include/efi/api.h (efi_call_0): New macro.
23205 (efi_call_1): Likewise.
23206 (efi_call_2): Likewise.
23207 (efi_call_3): Likewise.
23208 (efi_call_4): Likewise.
23209 (efi_call_5): Likewise.
23210 (efi_call_6): Likewise.
23211
23212 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
23213 grub_rescue_cmd_chainloader.
23214
23215 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
23216 (grub_pe32_optional_header): Change some fields based on i386 or
23217 x86_64 platform.
23218 (GRUB_PE32_PE32_MAGIC): Likewise.
23219
23220 * include/grub/efi/uga_draw.h: New file.
23221
23222 * include/grub/elf.h (STN_ABS): New constant.
23223 (R_X86_64_NONE): Relocation constant for x86_64.
23224 (R_X86_64_64): Likewise.
23225 (R_X86_64_PC32): Likewise.
23226 (R_X86_64_GOT32): Likewise.
23227 (R_X86_64_PLT32): Likewise.
23228 (R_X86_64_COPY): Likewise.
23229 (R_X86_64_GLOB_DAT): Likewise.
23230 (R_X86_64_JUMP_SLOT): Likewise.
23231 (R_X86_64_RELATIVE): Likewise.
23232 (R_X86_64_GOTPCREL): Likewise.
23233 (R_X86_64_32): Likewise.
23234 (R_X86_64_32S): Likewise.
23235 (R_X86_64_16): Likewise.
23236 (R_X86_64_PC16): Likewise.
23237 (R_X86_64_8): Likewise.
23238 (R_X86_64_PC8): Likewise.
23239
23240 * include/grub/i386/efi/pci.h: New file.
23241
23242 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
23243 Change it value based on platform.
23244 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
23245 (GRUB_E820_RAM): Likewise.
23246 (GRUB_E820_RESERVED): Likewise.
23247 (GRUB_E820_ACPI): Likewise.
23248 (GRUB_E820_NVS): Likewise.
23249 (GRUB_E820_EXEC_CODE): Likewise.
23250 (GRUB_E820_MAX_ENTRY): Likewise.
23251 (grub_e820_mmap): New structure.
23252 (linux_kernel_header): Change the efi field according to different
23253 kernel version, also field from linux_kernel_header.
23254
23255 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
23256
23257 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
23258 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
23259 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
23260 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
23261 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
23262 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
23263 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
23264 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
23265 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
23266 (GRUB_PCI_ADDR_IO_MASK): Likewise.
23267
23268 * include/grub/x86_64/efi/kernel.h: New file.
23269
23270 * include/grub/x86_64/efi/loader.h: Likewise.
23271
23272 * include/grub/x86_64/efi/machine.h: Likewise.
23273
23274 * include/grub/x86_64/efi/pci.h: Likewise.
23275
23276 * include/grub/x86_64/efi/time.h: Likewise.
23277
23278 * include/grub/x86_64/linux.h: Likewise.
23279
23280 * include/grub/x86_64/setjmp.h: Likewise.
23281
23282 * include/grub/x86_64/time.h: Likewise.
23283
23284 * include/grub/x86_64/types.h: Likewise.
23285
23286 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
23287 GRUB_TARGET_SIZEOF_VOID_P.
23288
23289 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
23290 (grub_efi_locate_handle): Likewise.
23291 (grub_efi_open_protocol): Likewise.
23292 (grub_efi_set_text_mode): Likewise.
23293 (grub_efi_stall): Likewise.
23294 (grub_exit): Likewise.
23295 (grub_reboot): Likewise.
23296 (grub_halt): Likewise.
23297 (grub_efi_exit_boot_services): Likewise.
23298 (grub_get_rtc): Likewise.
23299
23300 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
23301 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
23302 (grub_efi_allocate_pages): Wrap efi calls.
23303 (grub_efi_free_pages): Wrap efi calls.
23304 (grub_efi_get_memory_map): Wrap efi calls.
23305
23306 * kern/x86_64/dl.c: New file.
23307
23308 * kern/x86_64/efi/callwrap.S: Likewise.
23309
23310 * kern/x86_64/efi/startup.S: Likewise.
23311
23312 * loader/efi/appleloader.c: Likewise.
23313
23314 * loader/efi/chainloader.c (cmdline): New variable.
23315 (grub_chainloader_unload): Wrap efi calls.
23316 (grub_chainloader_boot): Likewise.
23317 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
23318 command line.
23319
23320 * loader/efi/chainloader_normal.c (chainloader_command):
23321 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
23322 command line.
23323
23324 * loader/i386/efi/linux.c (allocate_pages): Change allocation
23325 method.
23326 (grub_e820_add_region): New function.
23327 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
23328 booting.
23329 (grub_find_video_card): New function.
23330 (grub_linux_setup_video): New function.
23331 (grub_rescue_cmd_linux): Probe for video information.
23332
23333 * normal/x86_64/setjmp.S: New file.
23334
23335 * term/efi/console.c (map_char): New function.
23336 (grub_console_putchar): Map unicode char.
23337 (grub_console_checkkey): Wrap efi calls.
23338 (grub_console_getkey): Likewise.
23339 (grub_console_getwh): Likewise.
23340 (grub_console_gotoxy): Likewise.
23341 (grub_console_cls): Likewise.
23342 (grub_console_setcolorstate): Likewise.
23343 (grub_console_setcursor): Likewise.
23344
23345 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
23346
23347 2008-07-16 Pavel Roskin <proski@gnu.org>
23348
23349 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
23350 format strings.
23351
23352 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
23353 pointer, not an integer. This fixes a warning and prevents
23354 precision loss on 64-bit systems.
23355 (relocate_addresses): Remove unneeded cast.
23356
23357 2008-07-15 Pavel Roskin <proski@gnu.org>
23358
23359 * kern/i386/ieee1275/init.c: Include grub/cache.h.
23360
23361 * term/ieee1275/ofconsole.c: Disable code unused on i386.
23362
23363 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
23364 Fix comparison between signed and unsigned.
23365
23366 * include/grub/i386/ieee1275/console.h: Declare
23367 grub_console_init() and grub_console_fini().
23368
23369 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
23370 It's empty and unused.
23371
23372 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
23373 beginning to avoid warnings with some compilers.
23374
23375 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
23376 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
23377
23378 2008-07-14 Pavel Roskin <proski@gnu.org>
23379
23380 * kern/env.c (grub_register_variable_hook): Don't copy empty
23381 string, it leaks memory. Pass "" to grub_env_set(), it should
23382 handle constant strings.
23383
23384 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
23385 * commands/cmp.c (grub_cmd_cmp): Likewise.
23386 * kern/dl.c (grub_dl_flush_cache): Likewise.
23387 (grub_dl_load_core): Likewise.
23388 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
23389 (grub_elf64_load_phdrs): Likewise.
23390
23391 2008-07-13 Pavel Roskin <proski@gnu.org>
23392
23393 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
23394 between signed and unsigned.
23395 (LzmaEnc_Finish): Fix warning about an unused parameter.
23396
23397 2008-07-13 Bean <bean123ch@gmail.com>
23398
23399 * Makefile.in (enable_lzo): New rule.
23400
23401 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
23402
23403 * configure.ac (ENABLE_LZO): New option --enable-lzo.
23404
23405 * boot/i386/pc/lnxboot.S: #include <config.h>.
23406
23407 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
23408 its value according to the compression algorithm used, lzo or lzma.
23409
23410 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
23411 compression algorithm according to configure macro.
23412
23413 * kern/i386/pc/startup.S (codestart): Likewise.
23414
23415 * kern/i386/pc/lzma_decode.S: New file.
23416
23417 * include/grub/lib/LzFind.h: Likewise.
23418
23419 * include/grub/lib/LzHash.h: Likewise.
23420
23421 * include/grub/lib/LzmaDec.h: Likewise.
23422
23423 * include/grub/lib/LzmaEnc.h: Likewise.
23424
23425 * include/grub/lib/LzmaTypes.h: Likewise.
23426
23427 * lib/LzFind.c: Likewise.
23428
23429 * lib/LzmaDec.c: Likewise.
23430
23431 * lib/LzmaEnc.c: Likewise.
23432
23433 2008-07-13 Bean <bean123ch@gmail.com>
23434
23435 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
23436 (grub_ext4_extent_header): New structure.
23437 (grub_ext4_extent): Likewise.
23438 (grub_ext4_extent_idx): Likewise.
23439 (grub_ext4_find_leaf): New function.
23440 (grub_ext2_read_block): Handle extents.
23441
23442 2008-07-12 Robert Millan <rmh@aybabtu.com>
23443
23444 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
23445
23446 2008-07-11 Robert Millan <rmh@aybabtu.com>
23447
23448 * util/grub.d/40_custom.in: New file. Example on how to add custom
23449 entries to /etc/grub.d.
23450 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
23451 40_custom (implicitly, by merging all the grub.d rules).
23452
23453 2008-07-11 Pavel Roskin <proski@gnu.org>
23454
23455 * commands/read.c (grub_getline): Fix invalid memory access.
23456 Don't add newline to the variable value.
23457
23458 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
23459 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
23460 (serial_hw_get_port): Check validity of the port number.
23461 (grub_cmd_serial): Check return value of serial_hw_get_port().
23462
23463 2008-07-07 Pavel Roskin <proski@gnu.org>
23464
23465 * boot/i386/pc/diskboot.S (notification_string): Replace
23466 "Loading kernel" with just "loading". This is shorter, less
23467 confusing and saves a few bytes for possible future changes.
23468
23469 2008-07-05 Pavel Roskin <proski@gnu.org>
23470
23471 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
23472 size for ATAPI devices, they are undefined. Output sector
23473 number in decimal form.
23474
23475 * disk/ata.c: Use named constants for status bits.
23476
23477 2008-07-04 Pavel Roskin <proski@gnu.org>
23478
23479 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
23480 grub_addr_t before casting it to the void pointer to fix a
23481 warning. Non-addressable regions are discarded earlier.
23482 (grub_arch_modules_addr): Cast _end to grub_addr_t.
23483 * kern/i386/linuxbios/table.c: Include grub/misc.h.
23484 (check_signature): Don't shadow table_header.
23485 (grub_linuxbios_table_iterate): Cast numeric constants to
23486 grub_linuxbios_table_header_t.
23487 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
23488 grub_stop().
23489
23490 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
23491 prevent warnings.
23492
23493 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
23494 pointer, which can cause warnings. Support 64-bit addresses.
23495
23496 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
23497 of sizeof(long). This fixes PowerPC image generation on x86_64.
23498
23499 2008-07-04 Robert Millan <rmh@aybabtu.com>
23500
23501 This fixes a performance issue when pc & gpt partmap iterators
23502 didn't abort iteration even after our hook found what it was
23503 looking for (often causing expensive probes of non-existent drives).
23504
23505 Some callers relied on previous buggy behaviour, since they would
23506 raise an error when their own hooks caused early abortion of its
23507 iteration.
23508
23509 * kern/device.c (grub_device_open): Improve error message.
23510 * disk/lvm.c (grub_lvm_open): Likewise.
23511 * disk/raid.c (grub_raid_open): Likewise.
23512
23513 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
23514 when hook requests it, independently of grub_errno.
23515 (pc_partition_map_probe): Do not fail when find_func() caused
23516 early abortion of pc_partition_map_iterate().
23517
23518 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
23519 when hook requests it, independently of grub_errno.
23520 (gpt_partition_map_probe): Do not fail when find_func() caused
23521 early abortion of gpt_partition_map_iterate().
23522
23523 * kern/partition.c (grub_partition_iterate): Abort parent iteration
23524 when hook requests it, independently of grub_errno. Do not fail when
23525 part_map_iterate_hook() caused early abortion of p->iterate().
23526
23527 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
23528 when grub_partition_iterate() returned with non-zero.
23529
23530 2008-07-03 Pavel Roskin <proski@gnu.org>
23531
23532 * disk/ata.c (grub_ata_pio_write): Check status before writing,
23533 like we do in grub_ata_pio_read().
23534 (grub_ata_readwrite): Always write individual sectors. Fix the
23535 sector count for the remainder.
23536 (grub_ata_write): Enable writing to ATA devices. Correctly
23537 report error for ATAPI devices.
23538
23539 2008-07-02 Pavel Roskin <proski@gnu.org>
23540
23541 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
23542 warning.
23543
23544 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
23545 for every read sector, we already increment it for the whole
23546 batch. This fixes reading more than 256 sectors at once.
23547
23548 * util/grub-editenv.c (cmd_info): Cast argument to long
23549 explicitly. ptrdiff_t reduces to int on i386.
23550
23551 * util/grub-editenv.c (main): Be specific which parameter is
23552 missing.
23553
23554 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
23555 (memdisk): Make memdisk_orig_addr a pointer.
23556
23557 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
23558 for file offsets, use grub_off_t instead. Fix printf format
23559 warnings.
23560
23561 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
23562 there. Real unexpected warnings should not drown in the noise
23563 about known problems.
23564
23565 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
23566 grub_disk_addr_t for memory addresses.
23567
23568 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
23569 explicitly to fix a warning.
23570
23571 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
23572
23573 * Makefile.in (MODULE_LDFLAGS): New variable.
23574 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
23575 the linker accepts --build-id=none.
23576 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
23577 MODULE_LDFLAGS.
23578 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
23579
23580 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
23581 those in Linux XFS code. Provide a way to access 64-bit parent
23582 inode.
23583 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
23584 the end of struct grub_xfs_dir_header.
23585
23586 2008-07-02 Bean <bean123ch@gmail.com>
23587
23588 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
23589 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
23590 and GRUB_IEEE1275_FLAG_NO_ANSI.
23591
23592 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
23593 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
23594 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
23595
23596 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
23597 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
23598
23599 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
23600 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
23601
23602 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
23603 esc sequence on non ANSI terminal.
23604 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
23605
23606 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
23607 beginning of file.
23608
23609 2008-07-02 Bean <bean123ch@gmail.com>
23610
23611 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
23612 (grub_editenv_SOURCES): New variable.
23613 (pkglib_MODULES): Add loadenv.mod.
23614 (loadenv_mod_SOURCES): New variable.
23615 (loadenv_mod_CFLAGS): Likewise.
23616 (loadenv_mod_LDFLAGS): Likewise.
23617
23618 * include/grub/envblk.h: New file.
23619
23620 * util/envblk.c: New file.
23621
23622 * util/grub-editenv.c: New file.
23623
23624 * commands/loadenv.c: New file.
23625
23626 2008-07-01 Pavel Roskin <proski@gnu.org>
23627
23628 * include/multiboot2.h (struct multiboot_tag_module): Use char,
23629 not unsigned char. This fixes warnings and is consistent with
23630 other tags.
23631
23632 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
23633
23634 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
23635
23636 * term/tparm.c (analyze): Always set *popcount.
23637
23638 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
23639 cast to fix a warning.
23640
23641 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
23642 cast to suppress a warning.
23643
23644 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
23645 grub_fshelp_read_file() expects.
23646
23647 * fs/fat.c: Fix UUID calculation on big-endian systems. We
23648 write uuid as a 32-bit value in CPU byte order, so declare and
23649 use it as such.
23650
23651 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
23652 long if the format specifier expects it.
23653 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
23654 * partmap/pc.c (pc_partition_map_iterate): Likewise.
23655 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
23656 long to fix a warning.
23657 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
23658 grub_dprintf() arguments to fix warnings.
23659
23660 2008-06-30 Pavel Roskin <proski@gnu.org>
23661
23662 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
23663 install_bsd_part immediately before core.img is embedded or
23664 modified on disk. This fixes core.img verification if core.img
23665 cannot be embedded.
23666
23667 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
23668 core_path to calculate the blocklist.
23669 Patch from Javier Martín <lordhabbit@gmail.com>
23670
23671 2008-06-29 Robert Millan <rmh@aybabtu.com>
23672
23673 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
23674 block to disk block.
23675 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
23676 Patch from Niels Böhm <bitbucket@arcor.de>
23677
23678 2008-06-29 Robert Millan <rmh@aybabtu.com>
23679
23680 * util/update-grub_lib.in (font_path): Search for fonts in
23681 /boot/grub first, which is more likely to be readable (we aren't
23682 deciding where fonts live, just looking for them).
23683
23684 2008-06-26 Pavel Roskin <proski@gnu.org>
23685
23686 * util/biosdisk.c (read_device_map): Don't leave dead map
23687 entries for devices failing stat() check.
23688
23689 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
23690 core_path_dev for the core.img path on the target device.
23691
23692 2008-06-26 Robert Millan <rmh@aybabtu.com>
23693
23694 * disk/fs_uuid.c: New file.
23695 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
23696 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
23697 (fs_uuid_mod_LDFLAGS): New variables.
23698 * include/grub/disk.h (grub_disk_dev_id): Add
23699 `GRUB_DISK_DEVICE_UUID_ID'.
23700 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
23701 implement iterate().
23702
23703 2008-06-26 Robert Millan <rmh@aybabtu.com>
23704
23705 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
23706 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
23707 Linux image includes no initrd.
23708
23709 2008-06-21 Javier Martín <lordhabbit@gmail.com>
23710
23711 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
23712 call to resolve the core image location that effectively appended the
23713 name twice.
23714
23715 2008-06-21 Robert Millan <rmh@aybabtu.com>
23716
23717 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
23718 call from here ...
23719
23720 * util/grub.d/10_hurd.in: ... to here ...
23721 * util/grub.d/10_linux.in: ... and here.
23722
23723 2008-06-19 Robert Millan <rmh@aybabtu.com>
23724
23725 * kern/main.c (grub_main): Export `prefix' variable immediately
23726 after it has been set by grub_machine_set_prefix().
23727
23728 2008-06-19 Robert Millan <rmh@aybabtu.com>
23729
23730 * commands/search.c (search_label, search_fs_uuid, search_file): Print
23731 search result when not saving to variable, not the other way around.
23732 When saving to variable, abort iteration as soon as a match is found.
23733
23734 2008-06-19 Robert Millan <rmh@aybabtu.com>
23735
23736 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
23737 check for partition that provides /boot/grub. Its logic is flawed,
23738 as it prevents prepare_grub_to_access_device() from being called
23739 multiple times.
23740
23741 2008-06-19 Robert Millan <rmh@aybabtu.com>
23742
23743 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
23744 "insmod" command directly when abstraction modules are needed,
23745 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
23746 since it had already been processed).
23747
23748 2008-06-19 Pavel Roskin <proski@gnu.org>
23749
23750 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
23751 changed. This is needed in case GRUB_LIBDIR changes.
23752 * conf/i386-ieee1275.rmk: Likewise.
23753 * conf/i386-linuxbios.rmk: Likewise.
23754 * conf/i386-pc.rmk: Likewise.
23755 * conf/powerpc-ieee1275.rmk: Likewise.
23756
23757 2008-06-18 Pavel Roskin <proski@gnu.org>
23758
23759 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
23760 kernel_elf_symlist.c to symlist.c for consistency with other
23761 architectures. Update all users.
23762 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
23763
23764 2008-06-18 Robert Millan <rmh@aybabtu.com>
23765
23766 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
23767 it in prefix.
23768
23769 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
23770 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
23771 a RAID device, run setup() for all members independently on whether
23772 LVM abstraction is being used.
23773 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
23774 If grub-mkimage has set `*install_dos_part == -2', don't override this
23775 value.
23776 Perform *install_dos_part adjustments independently on whether
23777 we're embedding or not.
23778 Clarify error message when image is too big for embedding.
23779 Remove duplicate *install_dos_part stanza.
23780
23781 2008-06-17 Robert Millan <rmh@aybabtu.com>
23782
23783 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
23784 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
23785 variables.
23786 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
23787 values in grub_ofconsole_normal_color and
23788 grub_ofconsole_highlight_color (they're not directly related to
23789 background and foreground).
23790 (grub_ofconsole_setcolorstate): Extract background and foreground
23791 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
23792
23793 2008-06-17 Robert Millan <rmh@aybabtu.com>
23794
23795 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
23796 /boot/grub for the check in last commit, not /boot (they could be
23797 different partitions).
23798
23799 2008-06-16 Robert Millan <rmh@aybabtu.com>
23800
23801 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
23802 asked to setup access for the same partition that provides /boot,
23803 don't bother using UUIDs since our root already has the value we
23804 want.
23805
23806 2008-06-16 Robert Millan <rmh@aybabtu.com>
23807
23808 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
23809 I2O devices.
23810 Patch from Sven Mueller <sven@debian.org>.
23811
23812 2008-06-16 Robert Millan <rmh@aybabtu.com>
23813
23814 * util/update-grub.in: Check for $EUID instead of $UID.
23815 Reported by Vincent Zweije.
23816
23817 2008-06-16 Bean <bean123ch@gmail.com>
23818
23819 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
23820 (grub_ext2_read_block): Likewise.
23821 (grub_ext2_read_inode): Likewise.
23822 (grub_ext2_mount): Likewise.
23823 (grub_ext2_close): Likewise.
23824 (grub_ext3_get_journal): Removed.
23825
23826 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
23827 (grub_reiserfs_read_symlink): Likewise.
23828 (grub_reiserfs_mount): Likewise.
23829 (grub_reiserfs_open): Likewise.
23830 (grub_reiserfs_read): Likewise.
23831 (grub_reiserfs_close): Likewise.
23832 (grub_reiserfs_get_journal): Removed.
23833
23834 * fs/fshelp.c (grub_fshelp_read): Removed.
23835 (grub_fshelp_map_block): Likewise.
23836
23837 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
23838 (grub_fshelp_journal): Likewise.
23839 (grub_fshelp_read): Likewise.
23840 (grub_fshelp_map_block): Likewise.
23841
23842 2008-06-16 Pavel Roskin <proski@gnu.org>
23843
23844 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
23845 floating point anymore.
23846 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
23847
23848 2008-06-15 Pavel Roskin <proski@gnu.org>
23849
23850 * commands/ls.c (grub_ls_list_files): Use integer calculations
23851 for human readable format, avoid floating point use.
23852 * kern/misc.c (grub_ftoa): Remove.
23853 (grub_vsprintf): Remove floating point support.
23854
23855 2008-06-15 Robert Millan <rmh@aybabtu.com>
23856
23857 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
23858 devices.
23859 Reported by Max Vozeler.
23860
23861 2008-06-15 Robert Millan <rmh@aybabtu.com>
23862
23863 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
23864 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
23865 skipped later.
23866 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
23867 the beginning of the prefix.
23868
23869 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
23870 It is assumed that if we have a memdisk, grub-mkimage has set
23871 grub_prefix to include the "(memdisk)" drive in it.
23872
23873 2008-06-15 Robert Millan <rmh@aybabtu.com>
23874
23875 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
23876 Initialize keyboard controller after registering the terminal, so that
23877 grub_printf() can be called from grub_keyboard_controller_init().
23878
23879 2008-06-15 Robert Millan <rmh@aybabtu.com>
23880
23881 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
23882 extent-btree which is written as big endian on disk.
23883 Reported by Alain Greppin <al@chilibi.org>.
23884
23885 2008-06-14 Robert Millan <rmh@aybabtu.com>
23886
23887 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
23888 * util/i386/pc/grub-install.in (modules): Likewise.
23889
23890 2008-06-13 Pavel Roskin <proski@gnu.org>
23891
23892 * commands/ls.c (grub_ls_list_files): Fix format warnings.
23893
23894 2008-06-13 Bean <bean123ch@gmail.com>
23895
23896 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
23897
23898 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
23899
23900 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
23901 to indicate sparse block.
23902
23903 2008-06-12 Pavel Roskin <proski@gnu.org>
23904
23905 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
23906 number, grub_fshelp_read() does it for us.
23907
23908 * fs/fshelp.c (grub_fshelp_read): New function. Implement
23909 linear disk read with journal translation.
23910 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
23911 * include/grub/fshelp.h: Declare grub_fshelp_read().
23912
23913 2008-06-09 Pavel Roskin <proski@gnu.org>
23914
23915 * fs/minix.c (grub_minix_mount): Handle error reading
23916 superblock.
23917
23918 2008-06-08 Robert Millan <rmh@aybabtu.com>
23919
23920 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
23921 don't append the RAID prefix afterwards.
23922 Reported by Clint Adams.
23923
23924 2008-06-08 Robert Millan <rmh@aybabtu.com>
23925
23926 Based on description from Pavel:
23927 * kern/disk.c (grub_disk_check_range): Rename to ...
23928 (grub_disk_adjust_range): ... this. Add a comment explaining the
23929 tasks performed by this function.
23930
23931 2008-06-08 Robert Millan <rmh@aybabtu.com>
23932
23933 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
23934 `num_serial' (for consistency with other variables).
23935 (struct grub_ntfs_data): Add `uuid' member.
23936 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
23937 (grub_ntfs_uuid): New function.
23938 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
23939
23940 2008-06-07 Pavel Roskin <proski@gnu.org>
23941
23942 * util/biosdisk.c (open_device): Revert last change to the
23943 function, it broke installation. The sector needs to be
23944 different dependent on which device is opened.
23945
23946 2008-06-06 Robert Millan <rmh@aybabtu.com>
23947
23948 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
23949 rest of GRUB, and breakage doesn't happen if its value were modified.
23950
23951 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
23952 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
23953 a constant (same value).
23954 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
23955 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
23956
23957 2008-06-06 Robert Millan <rmh@aybabtu.com>
23958
23959 * util/biosdisk.c (open_device): Do not modify sector offset when
23960 accessing a partition. kern/disk.c already handles this for us.
23961
23962 2008-06-06 Robert Millan <rmh@aybabtu.com>
23963
23964 * util/grub-emu.c (grub_machine_init): Move code in this function from
23965 here ...
23966 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
23967 segfault in case grub_printf() is called).
23968
23969 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
23970 grub_probe. Update all users not to explicitly add it again.
23971 (grub_device): New variable; contains corresponding device for grubdir.
23972 (fs_module, partmap_module, devabstraction_module): Pass
23973 `--device ${grub_device}' to grub_probe to avoid traversing /dev
23974 every time.
23975
23976 2008-06-05 Robert Millan <rmh@aybabtu.com>
23977
23978 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
23979 is found, print it (same layout as with labels).
23980
23981 2008-06-04 Robert Millan <rmh@aybabtu.com>
23982
23983 * util/biosdisk.c (get_drive): Rename to ...
23984 (find_grub_drive): ... this. Update all users.
23985
23986 (get_os_disk): Rename to ...
23987 (convert_system_partition_to_system_disk): ... this. Update all users.
23988
23989 (find_drive): Rename to ...
23990 (find_system_device): ... this. Update all users.
23991
23992 2008-06-04 Robert Millan <rmh@aybabtu.com>
23993
23994 * util/biosdisk.c (get_os_disk): Handle IDA devices.
23995 * util/grub-mkdevicemap.c (get_mmc_disk_name)
23996 (make_device_map): Likewise.
23997
23998 2008-06-01 Robert Millan <rmh@aybabtu.com>
23999
24000 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
24001 before dereferencing it.
24002
24003 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
24004 union with fat12/fat16-specific ones. Add some new fields, including
24005 `num_serial' for both versions.
24006 (struct grub_fat_data): Add `uuid' member.
24007 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
24008 names. Initialize `data->uuid' using `num_serial'.
24009 (grub_fat_uuid): New function.
24010 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
24011
24012 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
24013 (grub_reiserfs_uuid): New function.
24014 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
24015 member.
24016
24017 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
24018 (grub_xfs_uuid): New function.
24019 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
24020
24021 2008-06-01 Robert Millan <rmh@aybabtu.com>
24022
24023 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
24024 code that is backward compatible with pre-uuid search command.
24025
24026 2008-05-31 Robert Millan <rmh@aybabtu.com>
24027
24028 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
24029 floppies after everything else, to ensure floppy drive isn't accessed
24030 unnecessarily (patch from Bean).
24031
24032 2008-05-31 Robert Millan <rmh@aybabtu.com>
24033
24034 * commands/search.c (search_label, search_fs_uuid, search_file): Do
24035 not print device names when we were asked to set a variable.
24036
24037 2008-05-31 Robert Millan <rmh@aybabtu.com>
24038
24039 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
24040 using "cursor-on" and "cursor-off" commands (understood at least by
24041 the Open Firmware flavour on OLPC).
24042
24043 2008-05-31 Michael Gorven <michael@gorven.za.net>
24044
24045 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
24046 on and off sequences.
24047
24048 2008-05-31 Robert Millan <rmh@aybabtu.com>
24049
24050 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
24051 * util/update-grub.in: Likewise.
24052
24053 2008-05-30 Pavel Roskin <proski@gnu.org>
24054
24055 * util/biosdisk.c (linux_find_partition): Simplify logic and
24056 make the code more universal. Keep special processing for
24057 devfs, but use a simple rule for all other devices. If the
24058 device ends with a number, append 'p' and the partition number.
24059 Otherwise, append only the partition number.
24060
24061 2008-05-30 Robert Millan <rmh@aybabtu.com>
24062
24063 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
24064 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
24065 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
24066 the `root' parameter to Linux.
24067
24068 2008-05-30 Robert Millan <rmh@aybabtu.com>
24069
24070 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
24071 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
24072 --fs_uuid with --fs-uuid.
24073 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
24074 all filesystems support them).
24075
24076 2008-05-30 Robert Millan <rmh@aybabtu.com>
24077
24078 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
24079 grub_printf() flags, since we're printing in units of 2 bytes.
24080
24081 2008-05-30 Robert Millan <rmh@aybabtu.com>
24082
24083 * util/grub.d/00_header.in: Remove obsolete comment referencing
24084 convert_system_path_to_grub_path().
24085 * util/update-grub.in: Likewise.
24086 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
24087 (convert_system_path_to_grub_path): Add a warning message explaining
24088 that this function is deprecated. Rely on is_path_readable_by_grub()
24089 for the readability checks.
24090 (font_path): Use is_path_readable_by_grub() for the readability
24091 check rather than convert_system_path_to_grub_path().
24092
24093 2008-05-30 Robert Millan <rmh@aybabtu.com>
24094
24095 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
24096 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
24097 converting it first.
24098 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
24099 grub.cfg for access to font file, and afterwards call it again to set
24100 the root device.
24101
24102 2008-05-30 Robert Millan <rmh@aybabtu.com>
24103
24104 * commands/search.c (options): Add --fs_uuid option.
24105 (search_fs_uuid): New function.
24106 (grub_cmd_search): Fix --set argument passing.
24107 Use search_fs_uuid() when requested via --fs_uuid.
24108 (grub_search_init): Update help message.
24109 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
24110 and redeclare it as an array of 16-bit words.
24111 (grub_ext2_uuid): New function.
24112 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
24113 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
24114 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
24115 (GRUB_DEVICE_BOOT_UUID): New variables.
24116 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
24117 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
24118 whenever possible.
24119 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
24120 just assume `root' variable has the right value.
24121 * util/grub.d/10_linux.in: Likewise.
24122 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
24123 via PRINT_FS_UUID.
24124 (main): Recognise `-t fs_uuid' argument.
24125
24126 2008-05-30 Robert Millan <rmh@aybabtu.com>
24127
24128 * util/biosdisk.c (map): Redefine structure to hold information
24129 about GRUB drive name.
24130 (get_drive): Reimplement without assuming (and verifying) BIOS-like
24131 drive names.
24132 (call_hook): Remove.
24133 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
24134 member. Assume drive has partitions.
24135 (grub_util_biosdisk_open): Access device names via `.device' struct
24136 member.
24137 (open_device): Likewise.
24138 (find_drive): Likewise.
24139 (read_device_map): Adjust map[] usage to match the new struct
24140 definition. Don't check for duplicates (still possible, but not cheap
24141 anymore).
24142 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
24143 (make_device_name): Remove assumption of BIOS-like drive names.
24144
24145 2008-05-30 Pavel Roskin <proski@gnu.org>
24146
24147 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
24148 compiling execute.c doesn't need grub_script.tab.h anymore.
24149 (normal/command.c_DEPENDENCIES): Likewise.
24150 (normal/function.c_DEPENDENCIES): Likewise.
24151 * conf/i386-ieee1275.rmk: Likewise.
24152 * conf/i386-linuxbios.rmk: Likewise.
24153 * conf/i386-pc.rmk: Likewise.
24154 * conf/powerpc-ieee1275.rmk: Likewise.
24155 * conf/sparc64-ieee1275.rmk: Likewise.
24156
24157 2008-05-29 Pavel Roskin <proski@gnu.org>
24158
24159 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
24160 when scanning metadata for volume group name.
24161
24162 * include/grub/script.h: Don't include grub_script.tab.h. It's
24163 a generated file, which may only be included from the files with
24164 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
24165 use union YYSTYPE, as the later allows forward declaration.
24166 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
24167
24168 2008-05-29 Robert Millan <rmh@aybabtu.com>
24169
24170 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
24171 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
24172 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
24173 (grub_console_checkkey): Add grub_dprintf() call to report unknown
24174 scan codes.
24175
24176 2008-05-29 Robert Millan <rmh@aybabtu.com>
24177
24178 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
24179 control key combinations.
24180
24181 2008-05-29 Robert Millan <rmh@aybabtu.com>
24182
24183 * util/powerpc/ieee1275/grub-install.in: Move from here ...
24184 * util/ieee1275/grub-install.in: ... to here.
24185 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
24186 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
24187 (grub_install_SOURCES): Likewise.
24188
24189 2008-05-29 Robert Millan <rmh@aybabtu.com>
24190
24191 * fs/affs.c: Update copyright year.
24192 * fs/ext2.c: Likewise.
24193 * fs/fshelp.c: Likewise.
24194 * fs/hfsplus.c: Likewise.
24195 * fs/ntfs.c: Likewise.
24196 * fs/xfs.c: Likewise.
24197 * include/grub/fshelp.h: Likewise.
24198 * util/grub-mkdevicemap.c: Likewise.
24199
24200 2008-05-28 Robert Millan <rmh@aybabtu.com>
24201
24202 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
24203 might need to be fatfs to support some firmware implementations
24204 (e.g. OFW or EFI).
24205
24206 2008-05-28 Robert Millan <rmh@aybabtu.com>
24207
24208 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
24209 devices.
24210 * util/grub-mkdevicemap.c (get_mmc_disk_name)
24211 (make_device_map): Likewise.
24212
24213 2008-05-20 Bean <bean123ch@gmail.com>
24214
24215 * fs/fshelp.c (grub_fshelp_map_block): New function.
24216 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
24217 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
24218
24219 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
24220 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
24221 (grub_fshelp_journal): New structure.
24222 (grub_fshelp_map_block): New function prototype.
24223 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
24224 (grub_fshelp_map_block): Likewise.
24225
24226 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
24227 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
24228 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
24229 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
24230 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
24231 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
24232 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
24233 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
24234 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
24235 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
24236 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
24237 (grub_ext2_sblock): New members for journal support.
24238 (grub_ext3_journal_header): New structure.
24239 (grub_ext3_journal_revoke_header): Likewise.
24240 (grub_ext3_journal_block_tag): Likewise.
24241 (grub_ext3_journal_sblock): Likewise.
24242 (grub_fshelp_node): New members logfile and journal.
24243 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
24244 grub_fshelp_map_block to get real block number.
24245 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
24246 number.
24247 (grub_ext2_read_inode): Likewise.
24248 (grub_ext3_get_journal): New function.
24249 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
24250 (grub_ext2_close): Release memory used by journal.
24251
24252 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
24253 (REISERFS_MAGIC_DESC_BLOCK): New macro.
24254 (grub_reiserfs_transaction_header): Renamed to
24255 grub_reiserfs_description_block, replace field data with real_blocks.
24256 (grub_reiserfs_commit_block): New structure.
24257 (grub_reiserfs_data): New member journal.
24258 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
24259 number.
24260 (grub_reiserfs_read_symlink): Likewise.
24261 (grub_reiserfs_iterate_dir): Likewise.
24262 (grub_reiserfs_open): Likewise.
24263 (grub_reiserfs_read): Likewise.
24264 (grub_reiserfs_get_journal): New function.
24265 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
24266 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
24267 using grub_reiserfs_get_journal.
24268 (grub_reiserfs_close): Release memory used by journal.
24269
24270 * fs/affs.c (grub_affs_read_block): Change block type to
24271 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
24272
24273 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
24274
24275 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
24276
24277 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
24278
24279 * fs/udf.c (grub_udf_read_block): Change block type to
24280 grub_disk_addr_t. Use type cast to avoid warning.
24281
24282 * fs/xfs.c (grub_xfs_read_block): Likewise.
24283
24284 2008-05-16 Christian Franke <franke@computer.org>
24285
24286 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
24287 to ensure that break with ESC will always work.
24288 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
24289 Remove ESC from keyboard queue.
24290
24291 2008-05-16 Christian Franke <franke@computer.org>
24292
24293 * util/biosdisk.c: [__CYGWIN__] Add includes.
24294 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
24295 (get_os_disk): Move variable declarations to OS specific
24296 parts to avoid warning.
24297 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
24298 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
24299 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
24300 Cygwin.
24301 * util/getroot.c: [__CYGWIN__] Add includes.
24302 (strip_extra_slashes): Fix "/" case.
24303 [__CYGWIN__] (get_win32_path): New function.
24304 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
24305 [__CYGWIN__] (find_root_device): Disable.
24306 [__CYGWIN__] (get_bootsec_serial): New function.
24307 [__CYGWIN__] (find_cygwin_root_device): Likewise.
24308 [__linux__] (grub_guess_root_device): Add early returns to simplify
24309 structure.
24310 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
24311 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
24312 check for Linux only.
24313
24314 2008-05-15 Bean <bean123ch@gmail.com>
24315
24316 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
24317 keyboard hang problem in apple's intel mac.
24318
24319 2008-05-09 Robert Millan <rmh@aybabtu.com>
24320
24321 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
24322 devices.
24323 * util/grub-mkdevicemap.c (get_virtio_disk_name)
24324 (make_device_map): Likewise.
24325 Reported by Aurelien Jarno <aurel32@debian.org>
24326
24327 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
24328
24329 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
24330 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
24331 (make_device_map): Output entries for xvd type disks.
24332
24333 2008-05-07 Robert Millan <rmh@aybabtu.com>
24334
24335 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
24336 devices.
24337 * util/grub-mkdevicemap.c (get_cciss_disk_name)
24338 (make_device_map): Likewise.
24339 Reported by Roland Dreier <rdreier@cisco.com>
24340
24341 2008-05-07 Robert Millan <rmh@aybabtu.com>
24342
24343 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
24344 grub_strstr() call. Correct a few mistakes in failure path handling.
24345
24346 2008-05-06 Robert Millan <rmh@aybabtu.com>
24347
24348 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
24349 Do not print a trailing slash (therefore, the root directory is an
24350 empty string).
24351 (convert_system_path_to_grub_path): Do not remove trailing slash
24352 from make_system_path_relative_to_its_root() output.
24353
24354 * util/i386/pc/grub-install.in: Add trailing slash to output from
24355 make_system_path_relative_to_its_root().
24356
24357 2008-05-06 Robert Millan <rmh@aybabtu.com>
24358
24359 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
24360 ensures that output lines aren't intermangled with those sent to
24361 stderr (via grub_util_info()).
24362 * util/grub-probe.c (grub_refresh): Likewise.
24363 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
24364
24365 2008-05-05 Christian Franke <franke@computer.org>
24366
24367 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
24368 Add Cygwin device names.
24369 (get_ide_disk_name) [__CYGWIN__]: Likewise.
24370 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
24371 (check_device): Return error instead of success on empty name.
24372 (make_device_map): Move label inside linux specific code to
24373 prevent compiler warning.
24374
24375 2008-04-30 Robert Millan <rmh@aybabtu.com>
24376
24377 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
24378 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
24379 first boot option.
24380 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
24381
24382 2008-04-29 Robert Millan <rmh@aybabtu.com>
24383
24384 * docs/grub.cfg: New file (example GRUB configuration).
24385
24386 2008-04-26 Robert Millan <rmh@aybabtu.com>
24387
24388 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
24389 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
24390 and `disk/ieee1275/nand.c'.
24391
24392 2008-04-25 Bean <bean123ch@gmail.com>
24393
24394 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
24395 i386-linuxbios.
24396
24397 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
24398 change the buffer size to 4096 for cdrom device.
24399
24400 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
24401 and nand.mod.
24402 (_linux_mod_SOURCES): New variable.
24403 (_linux_mod_CFLAGS): Likewise.
24404 (_linux_mod_LDFLAGS): Likewise.
24405 (linux_mod_SOURCES): Likewise.
24406 (linux_mod_CFLAGS): Likewise.
24407 (linux_mod_LDFLAGS): Likewise.
24408 (nand_mod_SOURCES): Likewise.
24409 (nand_mod_CFLAGS): Likewise.
24410 (nand_mod_LDFLAGS): Likewise.
24411
24412 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
24413 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
24414 type property. (nand device in olpc don't have this property)
24415
24416 * include/grub/disk.h (grub_disk_dev_id): New macro
24417 GRUB_DISK_DEVICE_NAND_ID.
24418
24419 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
24420 function prototype.
24421 (grub_rescue_cmd_initrd): Likewise.
24422
24423 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
24424 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
24425 ofw_cif_handler and ofw_idt, adjust padding number.
24426
24427 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
24428 GRUB_MACHINE_IEEE1275 is defined.
24429
24430 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
24431 Use NESTED_FUNC_ATTR attribute on the hook parameter.
24432
24433 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
24434 on nested function heap_init.
24435 (grub_upper_mem): New variable for i386-ieee1275.
24436 (grub_get_extended_memory): New function for i386-ieee1275.
24437 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
24438
24439 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
24440 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
24441 property.
24442
24443 * loader/i386/ieee1275/linux.c: New file.
24444
24445 * loader/i386/ieee1275/linux_normal.c: New file.
24446
24447 * disk/ieee1275/nand.c: New file.
24448
24449 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
24450
24451 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
24452 value.
24453 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
24454
24455 2008-04-18 Robert Millan <rmh@aybabtu.com>
24456
24457 Restructures early code path on ieee1275 to unify grub_main() as
24458 the first C function that is executed in every platform.
24459
24460 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
24461 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
24462 cmain().
24463 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
24464 * kern/ieee1275/cmain.c (cmain): Rename to ...
24465 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
24466 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
24467 at the beginning.
24468
24469 2008-04-18 Robert Millan <rmh@aybabtu.com>
24470
24471 * util/update-grub.in: Fix syntax error when setting
24472 `GRUB_PRELOAD_MODULES'.
24473 Reported by Stephane Chazelas <stephane@artesyncp.com>
24474
24475 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
24476
24477 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
24478 section into account, newer toolchains generate unique build ids
24479 * configure.ac: remove the test for --build-id=none acceptance,
24480 we want build ids to be preserved
24481 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
24482 far from other sections don't cause the raw binary images grow
24483 size
24484
24485 2008-04-15 Robert Millan <rmh@aybabtu.com>
24486
24487 * disk/lvm.c: Update copyright year.
24488 * kern/misc.c: Likewise.
24489
24490 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
24491
24492 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
24493 there is no memory left for physical volume name.
24494
24495 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
24496
24497 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
24498 volume name mapping to support bigger than 9 character names properly.
24499
24500 2008-04-13 Robert Millan <rmh@aybabtu.com>
24501
24502 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
24503 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
24504
24505 2008-04-13 Christian Franke <franke@computer.org>
24506
24507 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
24508 to create a floppy emulation boot CD when non emulation mode
24509 does not work.
24510 Enable Joliet CD filesystem extension.
24511
24512 2008-04-13 Robert Millan <rmh@aybabtu.com>
24513
24514 * kern/misc.c (grub_strncat): Fix off-by-one error.
24515 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
24516
24517 * kern/env.c (grub_env_context_close): Clear current context, not
24518 previous one.
24519 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
24520
24521 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
24522
24523 2008-04-13 Robert Millan <rmh@aybabtu.com>
24524
24525 Improve robustness when handling LVM.
24526
24527 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
24528 (and leave `*p' unmodified).
24529 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
24530 through it.
24531 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
24532 iterating through it.
24533 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
24534 through it.
24535 (grub_lvm_scan_device): Check the return value (and fail gracefully
24536 when due) on each grub_lvm_getvalue() or grub_strstr() call.
24537 Don't assume `vg->pvs != NULL' when iterating through it.
24538
24539 2008-04-13 Robert Millan <rmh@aybabtu.com>
24540
24541 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
24542 * genmk.rb (partmap): New variable.
24543 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
24544 (#{partmap}): New target rule.
24545 * genpartmaplist.sh: New file.
24546 * Makefile.in (pkglib_DATA): Add partmap.lst.
24547 (partmap.lst): New target rule.
24548 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
24549 modules (including all partition maps), instead of preloading them.
24550
24551 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
24552
24553 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
24554 `linux-boot-prober' (if installed) to detect other operating
24555 systems which are installed on the computer and add them to
24556 the boot menu.
24557 * conf/common.rmk: Build and install 30_os-prober.
24558
24559 2008-04-12 Robert Millan <rmh@aybabtu.com>
24560
24561 * kern/powerpc/ieee1275/init.c: Move from here ...
24562 * kern/ieee1275/init.c: ... to here. Update all users.
24563
24564 * kern/powerpc/ieee1275/cmain.c: Move from here ...
24565 * kern/ieee1275/cmain.c: ... to here. Update all users.
24566
24567 * kern/powerpc/ieee1275/openfw.c: Move from here ...
24568 * kern/ieee1275/openfw.c: ... to here. Update all users.
24569
24570 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
24571 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
24572
24573 2008-04-10 Pavel Roskin <proski@gnu.org>
24574
24575 * configure.ac: Always use "_cv_" in cache variables for
24576 compatibility with Autoconf 2.62.
24577
24578 2008-04-07 Robert Millan <rmh@aybabtu.com>
24579
24580 Revert grub/machine/init.h addition by Pavel (since it breaks on
24581 i386-ieee1275 and others):
24582 * util/i386/pc/misc.c: Remove grub/machine/init.h.
24583 * util/powerpc/ieee1275/misc.c: Likewise.
24584
24585 2008-04-07 Robert Millan <rmh@aybabtu.com>
24586
24587 * util/grub-probe.c (probe): Improve error message.
24588
24589 2008-04-07 Robert Millan <rmh@aybabtu.com>
24590
24591 * util/biosdisk.c (read_device_map): Skip devices that don't exist
24592 (this prevents the presence of a bogus entry from ruining the whole
24593 thing).
24594
24595 2008-04-06 Pavel Roskin <proski@gnu.org>
24596
24597 * util/biosdisk.c: Include grub/util/biosdisk.h.
24598 * util/grub-fstest.c (execute_command): Make static.
24599 * util/grub-mkdevicemap.c (check_device): Likewise.
24600 * util/i386/pc/misc.c: Include grub/machine/init.h.
24601 * util/powerpc/ieee1275/misc.c: Likewise.
24602 * util/lvm.c: Include grub/util/lvm.h.
24603 * util/misc.c: Include grub/kernel.h, grub/misc.h and
24604 grub/cache.h.
24605 * util/raid.c: Include grub/util/raid.h.
24606 (grub_util_getdiskname): Make static.
24607
24608 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
24609 grub_hostfs_fini(), as they are called from grub_init_all() and
24610 grub_fini_all() respectively. This fixes an infinite loop in
24611 grub-fstest due to double registration of hostfs.
24612 Reported by Christian Franke <Christian.Franke@t-online.de>
24613
24614 2008-04-05 Pavel Roskin <proski@gnu.org>
24615
24616 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
24617 all 8 functions. Otherwise, probe function 0 only.
24618
24619 2008-04-04 Pavel Roskin <proski@gnu.org>
24620
24621 * commands/lspci.c (grub_lspci_iter): Print the bus number
24622 correctly.
24623
24624 * commands/lspci.c (grub_pci_classes): Fix typos.
24625 (grub_lspci_iter): Don't print func twice. Print vendor ID
24626 before device ID, as it's normally done.
24627
24628 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
24629 Fix signedness warnings.
24630 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
24631 Likewise.
24632 * util/ieee1275/get_disk_name.c: Include config.h so that
24633 _GNU_SOURCE is defined and getline() is declared. Mark an
24634 unused argument as such. Fix a signedness warning.
24635
24636 2008-04-02 Pavel Roskin <proski@gnu.org>
24637
24638 * genkernsyms.sh.in: Use more robust assignments for CC and
24639 srcdir. Quote srcdir.
24640 * gensymlist.sh.in: Likewise. Assert at the compile time that
24641 the symbol table is not empty.
24642
24643 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
24644 * fs/cpio.c (grub_cpio_read): Likewise.
24645
24646 2008-04-01 Pavel Roskin <proski@gnu.org>
24647
24648 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
24649 * disk/host.c (grub_host_open): Likewise.
24650 * disk/loopback.c (grub_loopback_open): Likewise.
24651 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
24652 disk->id as in disk/host.c, not a multi-character constant.
24653
24654 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
24655 later is obsolete, potentially dangerous and sets a bad example.
24656 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
24657 * util/misc.c (grub_util_get_image_size): Likewise.
24658
24659 * disk/loopback.c (options): Improve help for "--partitions".
24660
24661 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
24662 options to align them with the short options, e.g. "echo -e".
24663
24664 2008-03-31 Bean <bean123ch@gmail.com>
24665
24666 * video/reader/png.c (grub_png_data): New member is_16bit and
24667 image_data.
24668 (grub_png_decode_image_header): Detect 16 bit png image.
24669 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
24670 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
24671 (grub_video_reader_png): Release memory occupied by image_data.
24672
24673 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
24674 4096 bytes.
24675 (grub_nfs_mount): Skip the test for sector per cluster.
24676
24677 * include/grub/ntfs.h (MAX_SPC): Removed.
24678
24679 2008-03-31 Bean <bean123ch@gmail.com>
24680
24681 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
24682 (grub_probe_SOURCES): Add fs/afs.c.
24683 (grub_fstest_SOURCES): Likewise.
24684 (afs_mod_SOURCES): New variable.
24685 (afs_mod_CFLAGS): Likewise.
24686 (afs_mod_LDFLAGS): Likewise.
24687
24688 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
24689 (grub_emu_SOURCES): Likewise.
24690
24691 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24692
24693 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24694
24695 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
24696
24697 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24698
24699 * fs/afs.c: New file.
24700
24701 2008-03-30 Pavel Roskin <proski@gnu.org>
24702
24703 * disk/host.c: Include grub/misc.h to fix a warning.
24704 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
24705 warnings about implicit declarations.
24706
24707 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
24708 variable.
24709 * include/grub/i386/loader.h: Change declaration of
24710 grub_linux_boot() to match what grub_loader_set() expects.
24711 * util/getroot.c (grub_guess_root_device): Return const char* to
24712 fix a warning.
24713 * util/grub-probe.c (probe): Fix a warning about uninitialized
24714 abstraction_name variable.
24715 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
24716 second argument as unused to fix a warning.
24717
24718 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
24719 missing grub_error() call.
24720
24721 * util/update-grub_lib.in: Define datarootdir, since Autoconf
24722 2.60 and newer uses it to define datadir.
24723
24724 * commands/sleep.c: Fix warning about implicit declaration.
24725 * disk/memdisk.c: Likewise.
24726 * loader/aout.c: Likewise.
24727 * loader/i386/bsd_normal.c: Likewise.
24728 * util/grub-probe.c: Likewise.
24729
24730 * commands/i386/cpuid.c (has_longmode): Make static.
24731 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
24732 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
24733
24734 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
24735 GDT. This is more robust, as %ds can change.
24736 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
24737 calling real_to_prot().
24738 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
24739
24740 2008-03-28 Pavel Roskin <proski@gnu.org>
24741
24742 * kern/i386/pc/startup.S: Assert that uncompressed functions
24743 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
24744 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
24745 code, as they push parts of the code (error handlers) beyond
24746 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
24747 code as correctness and size.
24748
24749 2008-03-28 Pavel Roskin <proski@gnu.org>
24750
24751 * kern/i386/pc/startup.S
24752 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
24753 data block address to the real mode, keep offset minimal. This
24754 works around a bug in AWARD BIOS on old Athlon systems, which
24755 makes CD detection hang.
24756
24757 2008-03-26 Pavel Roskin <proski@gnu.org>
24758
24759 * normal/color.c (grub_parse_color_name_pair): Make `name' a
24760 const.
24761 * include/grub/normal.h: Add grub_parse_color_name_pair()
24762 declaration.
24763
24764 2008-03-24 Bean <bean123ch@gmail.com>
24765
24766 * disk/i386/pc/biosdisk.c (cd_start): Removed.
24767 (cd_count): Removed.
24768 (cd_drive): New variable.
24769 (grub_biosdisk_get_drive): Don't check for (cdN) device.
24770 (grub_biosdisk_call_hook): Likewise.
24771 (grub_biosdisk_iterate): Change cdrom detection method.
24772 (grub_biosdisk_open): Replace cd_start with cd_drive.
24773 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
24774 detect cdrom device.
24775
24776 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
24777 Removed.
24778 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
24779 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
24780 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
24781 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
24782 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
24783 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
24784 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
24785 (grub_biosdisk_cdrp): New structure.
24786 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
24787
24788 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
24789
24790 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
24791 device.
24792
24793 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
24794 New function.
24795
24796 2008-03-20 Robert Millan <rmh@aybabtu.com>
24797
24798 Remove 2 TiB limit in ata.mod.
24799 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
24800 (grub_ata_dumpinfo): Print sector count with 0x%llx.
24801 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
24802 grub_uint64_t instead of grub_uint32_t.
24803
24804 2008-03-05 Bean <bean123ch@gmail.com>
24805
24806 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
24807 (grub_multiboot): Set boot device.
24808
24809 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
24810
24811 2008-03-02 Bean <bean123ch@gmail.com>
24812
24813 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
24814 symlink_buffer.
24815
24816 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
24817
24818 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
24819 texinfo.tex.
24820
24821 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
24822 modified.
24823
24824 * docs/fdl.texi: New file.
24825
24826 * docs/mdate-sh: New file. Copied from gnulib.
24827 * docs/texinfo.tex: Likewise.
24828
24829 * config.guess: Updated from gnulib.
24830 * install-sh: Likewise.
24831
24832 2008-02-28 Robert Millan <rmh@aybabtu.com>
24833
24834 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
24835 (aout_mod_SOURCES): New variable.
24836 (aout_mod_CFLAGS): Likewise.
24837 (aout_mod_LDFLAGS): Likewise.
24838
24839 * conf/i386-ieee1275.rmk: Likewise.
24840
24841 2008-02-28 Robert Millan <rmh@aybabtu.com>
24842
24843 * util/update-grub.in: Reorganise terminal validity check. Accept
24844 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
24845 Based on suggestion by Franklin PIAT.
24846
24847 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
24848
24849 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
24850 function.
24851 * util/getroot.c (grub_util_check_block_device): New function that
24852 returns the given argument if it is a block device and returns NULL else.
24853 * util/grub-probe.c (argument_is_device): New variable.
24854 (probe): Promote device_name from a variable to an argument. Receive
24855 device_name from grub_util_check_block_device() if path is NULL and from
24856 grub_guess_root_device() else. Do not free() device_name anymore.
24857 (options): Introduce new parameter '-d, --device'.
24858 (main): Add description of the new parameter to the help screen.
24859 Rename path variable to argument. Set argument_is_device if the '-d'
24860 option is given. Pass argument to probe() depending on
24861 argument_is_device.
24862
24863 2008-02-24 Bean <bean123ch@gmail.com>
24864
24865 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
24866 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
24867 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
24868 (GRUB_ISO9660_VOLDESC_PART): Likewise.
24869 (GRUB_ISO9660_VOLDESC_END): Likewise.
24870 (grub_iso9660_primary_voldesc): New member escape.
24871 (grub_iso9660_data): New member joliet.
24872 (grub_iso9660_convert_string): New function.
24873 (grub_iso9660_mount): Detect joliet extension.
24874 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
24875 (grub_iso9660_iso9660_label): Likewise.
24876
24877 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
24878 (grub_setup_SOURCES): Add fs/udf.c.
24879 (grub_fstest_SOURCES): Likewise.
24880 (udf_mod_SOURCES): New variable.
24881 (udf_mod_CFLAGS): Likewise.
24882 (udf_mod_LDFLAGS): Likewise.
24883
24884 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
24885 (grub_emu_SOURCES): Likewise.
24886
24887 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24888
24889 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24890
24891 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
24892
24893 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24894
24895 * fs/udf.c: New file.
24896
24897 2008-02-24 Robert Millan <rmh@aybabtu.com>
24898
24899 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
24900 (normal/lexer.c_DEPENDENCIES): New variables.
24901 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
24902 (normal/lexer.c_DEPENDENCIES): Likewise.
24903 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
24904 (normal/lexer.c_DEPENDENCIES): Likewise.
24905 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
24906 (normal/lexer.c_DEPENDENCIES): Likewise.
24907 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
24908 (normal/lexer.c_DEPENDENCIES): Likewise.
24909 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
24910 (normal/lexer.c_DEPENDENCIES): Likewise.
24911
24912 2008-02-23 Robert Millan <rmh@aybabtu.com>
24913
24914 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
24915 since they were intended to be in hex. This didn't break previously
24916 because of a bug in gpt_partition_map_iterate() (see below).
24917
24918 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
24919 when checking the validity of GPT header.
24920 Remove `partno', since it always provides the same information as `i'.
24921
24922 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
24923
24924 * include/grub/efi/time.h: Fix a wrong comment.
24925
24926 2008-02-19 Pavel Roskin <proski@gnu.org>
24927
24928 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
24929 message.
24930
24931 2008-02-19 Bean <bean123ch@gmail.com>
24932
24933 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
24934 (aout_mod_SOURCES): New variable.
24935 (aout_mod_CFLAGS): Likewise.
24936 (aout_mod_LDFLAGS): Likewise.
24937 (_bsd_mod_SOURCES): New variable.
24938 (_bsd_mod_CFLAGS): Likewise.
24939 (_bsd_mod_LDFLAGS): Likewise.
24940 (bsd_mod_SOURCES): New variable.
24941 (bsd_mod_CFLAGS): Likewise.
24942 (bsd_mod_LDFLAGS): Likewise.
24943
24944 * include/grub/aout.h: New file.
24945
24946 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
24947
24948 * include/grub/i386/bsd.h: New file.
24949
24950 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
24951 to make it public.
24952
24953 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
24954 function is called, so that it's possible to change it inside the hook.
24955 (grub_elf64_load): Likewise.
24956 (grub_elf_file): Don't close the file if elf header is not found.
24957 (grub_elf_close): Close the file if grub_elf_file fails (The new
24958 grub_elf_file won't close it).
24959 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
24960 (grub_elf64_size): Likewise.
24961
24962 * kern/i386/loader.S (grub_unix_real_boot): New function.
24963
24964 * loader/aout.c: New file.
24965
24966 * loader/i386/bsd.c: New file.
24967
24968 * loader/i386/bsd_normal.c: New file.
24969
24970 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
24971
24972 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
24973 can test other formats.
24974
24975 2008-02-19 Robert Millan <rmh@aybabtu.com>
24976
24977 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
24978 (grub_gpt_partition_type_empty): Redefine with macro from
24979 `<grub/gpt_partition.h>'.
24980 (gpt_partition_map_iterate): Adjust partition type comparison.
24981
24982 Export `entry' as partmap-specific `part.data' struct.
24983 (grub_gpt_header, grub_gpt_partentry): Move from here ...
24984
24985 * include/grub/gpt_partition.h (grub_gpt_header)
24986 (grub_gpt_partentry): ... to here (new file).
24987
24988 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
24989
24990 (grub_gpt_partition_type_bios_boot): New const variable, defined
24991 with macro from `<grub/gpt_partition.h>'.
24992
24993 (setup): Replace `first_start' with `embed_region', which keeps
24994 track of the embed region (and is partmap-agnostic).
24995
24996 Replace find_first_partition_start() with find_usable_region(),
24997 which finds a usable region for embedding using partmap-specific
24998 knowledge (supports PC/MSDOS and GPT).
24999
25000 Fix all assumptions that the embed region start at sector 1, using
25001 `embed_region.start' from now on. Similarly, use `embed_region.end'
25002 rather than `first_start' to calculate available size.
25003
25004 In grub_util_info() message, replace "into after the MBR" with an
25005 indication of the specific sector our embed region starts at.
25006
25007 2008-02-19 Robert Millan <rmh@aybabtu.com>
25008
25009 * DISTLIST: Replace `commands/ieee1275/halt.c' and
25010 `commands/ieee1275/reboot.c' with `commands/halt.c' and
25011 `commands/reboot.c'.
25012 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
25013 (halt_mod_SOURCES): Likewise.
25014 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
25015 (halt_mod_SOURCES): Likewise.
25016
25017 2008-02-17 Christian Franke <franke@computer.org>
25018
25019 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
25020
25021 2008-02-17 Robert Millan <rmh@aybabtu.com>
25022
25023 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
25024 set `first_start' to 0 for non-PC/MSDOS partition maps.
25025
25026 2008-02-16 Robert Millan <rmh@aybabtu.com>
25027
25028 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
25029 do not assume partition map is PC/MSDOS before performing checks that
25030 are specific to that layout.
25031
25032 2008-02-13 Robert Millan <rmh@aybabtu.com>
25033
25034 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
25035 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
25036 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
25037
25038 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
25039
25040 * configure.ac: Only a cosmetic change on the handling of
25041 -fno-stack-protector.
25042
25043 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
25044
25045 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
25046 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
25047 reboot.c.
25048 (grub_install_SOURCES): Add halt.mod and reboot.mod.
25049 (halt_mod_SOURCES): New variable.
25050 (halt_mod_CFLAGS): Likewise.
25051 (halt_mod_LDFLAGS): Likewise.
25052 (reboot_mod_SOURCES): Likewise.
25053 (reboot_mod_CFLAGS): Likewise.
25054 (reboot_mod_LDFLAGS): Likewise.
25055
25056 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
25057 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
25058 reboot.c.
25059 (halt_mod_SOURCES): Likewise.
25060 (reboot_mod_SOURCES): Likewise.
25061
25062 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
25063 commands/i386/pc/reboot.c by commands/reboot.c.
25064 (reboot_mod_SOURCES): Likewise.
25065
25066 * commands/i386/pc/reboot.c: merge this file ...
25067
25068 * commands/ieee1275/reboot.c: ... and this file ...
25069
25070 * commands/reboot.c: ... to this file.
25071 Add some precompiler directive to include the correct header for
25072 each machine.
25073
25074 * commands/ieee1275/halt.c: move this file ...
25075
25076 * commands/halt.c: ... to here.
25077 Add some precompiler directive to include the correct header for
25078 each machine.
25079
25080 * include/grub/efi/efi.h (grub_reboot): New function declaration.
25081 (grub_halt): Likewise.
25082
25083 * kern/efi/efi.c (grub_reboot): New function.
25084 (grub_halt): Likewise.
25085
25086 2008-02-12 Robert Millan <rmh@aybabtu.com>
25087
25088 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
25089 /dev (like it is done for /dev/mapper). This doesn't provide support
25090 for EVMS, but at least it is now easy to identify the problem when it
25091 arises.
25092
25093 2008-02-11 Robert Millan <rmh@aybabtu.com>
25094
25095 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
25096 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
25097 comparing it with -1, not 0.
25098
25099 2008-02-10 Robert Millan <rmh@aybabtu.com>
25100
25101 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
25102 `disk/lvm.c'.
25103 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25104 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
25105
25106 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
25107 `disk/lvm.c' to the end of the list.
25108 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
25109 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25110
25111 2008-02-10 Robert Millan <rmh@aybabtu.com>
25112
25113 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
25114 grub_print_error() instead. This will let user know why we're entering
25115 rescue mode.
25116 Based on suggestions from Sam Morris.
25117
25118 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
25119
25120 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
25121 on remaining N args, instead of "--" arg N times.
25122
25123 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
25124
25125 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
25126 (fill_with_default_glyph): Changed to use unknown_glyph for fill
25127 pattern for unknown glyphs.
25128
25129 2008-02-09 Robert Millan <rmh@aybabtu.com>
25130
25131 * configure.ac: Probe for `help2man'.
25132 * Makefile.in (builddir): New variable.
25133 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
25134 or otherwise add a few flags/options to it.
25135 (install-local): For every executable utility or script that is
25136 installed, invoke $(HELP2MAN) to install a manpage based on --help
25137 output.
25138
25139 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
25140 that it doesn't prevent --help from working in build tree.
25141
25142 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
25143 with `bug-grub@gnu.org'.
25144 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
25145 * util/update-grub.in (usage): New function.
25146 Implement proper argument check, with support for --help and --version
25147 (as well as existing -y).
25148
25149 2008-02-09 Christian Franke <franke@computer.org>
25150
25151 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
25152 avoid overwriting previous output.
25153 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
25154
25155 2008-02-09 Robert Millan <rmh@aybabtu.com>
25156
25157 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
25158 drawing the menu.
25159
25160 2008-02-09 Robert Millan <rmh@aybabtu.com>
25161
25162 * commands/sleep.c: New file.
25163 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
25164 (sleep_mod_SOURCES): New variable.
25165 (sleep_mod_CFLAGS): Likewise.
25166 (sleep_mod_LDFLAGS): Likewise.
25167
25168 2008-02-09 Robert Millan <rmh@aybabtu.com>
25169
25170 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
25171 situations in which we can deduce the RAID size and the superblock
25172 doesn't match it.
25173
25174 2008-02-09 Robert Millan <rmh@aybabtu.com>
25175
25176 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
25177 and return a grub_diskmemberlist_t composed of LVM physical volumes.
25178 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
25179
25180 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
25181 and return a grub_diskmemberlist_t composed of physical array members.
25182 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
25183
25184 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
25185 prototype.
25186 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
25187 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
25188 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
25189
25190 * util/grub-probe.c (probe): Move partmap probing code from here ...
25191 (probe_partmap): ... to here.
25192 (probe): Use probe_partmap() once for the disk we're probing, and
25193 additionally, when such disk contains a memberlist() struct member,
25194 once for each disk that is contained in the structure returned by
25195 memberlist().
25196
25197 2008-02-09 Robert Millan <rmh@aybabtu.com>
25198
25199 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
25200 environment variable to 'all' in order to obtain debug output from
25201 non-util/ code.
25202 * util/i386/pc/grub-setup.c (main): Likewise.
25203
25204 2008-02-08 Robert Millan <rmh@aybabtu.com>
25205
25206 * disk/raid.c (grub_raid_scan_device): Check for
25207 `array->device[sb.this_disk.number]' rather than for
25208 `array->device[sb.this_disk.number]->name', since the latter is not
25209 guaranteed to be accessible.
25210
25211 2008-02-08 Robert Millan <rmh@aybabtu.com>
25212
25213 * disk/raid.c: Update copyright.
25214 * fs/cpio.c: Likewise.
25215 * include/grub/raid.h: Likewise.
25216 * loader/i386/pc/multiboot.c: Likewise.
25217 * util/hostfs.c: Likewise.
25218
25219 2008-02-08 Robert Millan <rmh@aybabtu.com>
25220
25221 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
25222 to a grub_disk_t array.
25223 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
25224 `device[x]'.
25225 (grub_raid_scan_device): Replace `device[x].name' accesses with
25226 `device[x]->name'. Simplify initialization of `array->device[x]'.
25227
25228 2008-02-08 Robert Millan <rmh@aybabtu.com>
25229
25230 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
25231 grub_dprintf() calls.
25232 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
25233 error message.
25234
25235 2008-02-07 Christian Franke <franke@computer.org>
25236
25237 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
25238 instead of fseek and ftell to support large files.
25239 (grub_hostfs_read): Likewise.
25240
25241 2008-02-07 Robert Millan <rmh@aybabtu.com>
25242
25243 Patch from Jeroen Dekkers.
25244 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
25245 failure, since successfully reading all array members might not be
25246 required.
25247
25248 2008-02-06 Robert Millan <rmh@aybabtu.com>
25249
25250 * util/grub-probe.c (probe): Simplify partmap probing (with the
25251 assumption that the first word up to the underscore equals to
25252 the module name).
25253
25254 2008-02-06 Christian Franke <franke@computer.org>
25255
25256 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
25257 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
25258 last block of a cpio or tar stream.
25259 Check for "TRAILER!!!" instead of any empty data
25260 block to detect last block of a cpio stream.
25261 (grub_cpio_dir): Fix constness of variable np.
25262 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
25263 cpio or tar trailer is detected. This fixes a crash
25264 on open of a non existing file.
25265
25266 2008-02-05 Bean <bean123ch@gmail.com>
25267
25268 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
25269 address of entry.
25270 (grub_multiboot_load_elf64): Likewise.
25271 (grub_multiboot): Initialize mbi structure.
25272
25273 * util/grub-fstest.c: Don't include unused header file script.h.
25274
25275 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
25276 of file.
25277 (grub_fstest_SOURCES): Likewise.
25278
25279 2008-02-05 Robert Millan <rmh@aybabtu.com>
25280
25281 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
25282 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
25283 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
25284 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
25285
25286 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
25287 (translation_table): Replace hardcoded values with macros
25288 provided by `<grub/term.h>'.
25289
25290 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
25291 (keyboard_map): Correct/add a few values, with macros provided
25292 by `<grub/term.h>'.
25293 (keyboard_map_shift): Zero values that don't differ from their
25294 `keyboard_map' equivalents.
25295 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
25296 Discard the second scan code that is always sent by Caps lock.
25297 Only use `keyboard_map_shift' when it provides a non-zero value,
25298 otherwise fallback to `keyboard_map'.
25299
25300 2008-02-04 Bean <bean123ch@gmail.com>
25301
25302 * Makefile.in (enable_grub_fstest): New variable.
25303
25304 * conf/common.rmk (grub_fstest_init.lst): New rule.
25305 (grub_fstest_init.h): Likewise.
25306 (grub_fstest_init.c): Likewise.
25307 (util/grub-fstest.c_DEPENDENCIES): New variable.
25308 (grub_fstest_SOURCES): Likewise.
25309
25310 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
25311
25312 * util/grub-fstest.c: New file.
25313
25314 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
25315
25316 Make grub-setup handle a separate root device.
25317
25318 * util/i386/pc/grub-setup.c (setup): Always open the root device,
25319 so that the root device can be compared with the destination
25320 device.
25321 When embedding the core image, if the root and destination devices
25322 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
25323 0xFF.
25324 When not embedding, set ROOT_DRIVE to 0xFF.
25325
25326 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
25327
25328 Add support for having a grub directory in a different drive. This
25329 is still only the data handling part.
25330
25331 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
25332 (codestart): Save %dh in GRUB_ROOT_DRIVE.
25333 (grub_root_drive): New variable.
25334
25335 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
25336 instead of GRUB_BOOT_DRIVE to construct a device name. Set
25337 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
25338 as it was.
25339
25340 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
25341
25342 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
25343 macro.
25344 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
25345
25346 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
25347 is bogus, because PXE booting does not specify any drive
25348 correctly.
25349
25350 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
25351 am not sure if this is really correct.
25352
25353 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
25354 is always identical to the boot drive when booting from a CD.
25355
25356 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
25357 longer.
25358 (root_drive): New variable.
25359 (real_start): Unconditionally set %dh to ROOT_DRIVE.
25360 (setup_sectors): Push %dx right after popping it, because %dh will
25361 be modified later.
25362 (copy_buffer): Restore %dx.
25363
25364 2008-02-03 Robert Millan <rmh@aybabtu.com>
25365
25366 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
25367 use `cdboot.img' for cdrom images.
25368
25369 2008-02-03 Robert Millan <rmh@aybabtu.com>
25370
25371 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
25372 only setup gfxterm when `font' command has succeeded.
25373
25374 2008-02-03 Robert Millan <rmh@aybabtu.com>
25375
25376 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
25377 (grub_rescue_cmd_multiboot_loader)
25378 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
25379
25380 2008-02-03 Pavel Roskin <proski@gnu.org>
25381
25382 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
25383 %edx and %esi from stack only after grub_gate_a20() is called.
25384 grub_gate_a20() clobbers %edx.
25385
25386 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
25387
25388 * configure.ac (AC_INIT): Bumped to 1.96.
25389
25390 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
25391 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
25392 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
25393 video/readers/png.c.
25394
25395 2008-02-03 Bean <bean123ch@gmail.com>
25396
25397 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
25398 (cdboot_img_SOURCES): New variable.
25399 (cdboot_img_ASFLAGS): New variable.
25400 (cdboot_img_LDFLAGS): New variable.
25401
25402 * boot/i386/pc/cdboot.S: New file.
25403
25404 * disk/i386/pc/biosdisk.c (cd_start): New variable.
25405 (cd_count): Likewise.
25406 (grub_biosdisk_get_drive): Add support for cd device.
25407 (grub_biosdisk_call_hook): Likewise.
25408 (grub_biosdisk_iterate): Likewise.
25409 (grub_biosdisk_open): Likewise.
25410 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
25411 (grub_biosdisk_rw): Support reading from cd device.
25412 (GRUB_MOD_INIT): Iterate cd devices.
25413
25414 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
25415 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
25416 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
25417
25418 * kern/i386/pc/init.c (make_install_device): Check for cd device.
25419
25420 2008-02-02 Robert Millan <rmh@aybabtu.com>
25421
25422 * commands/read.c: New file.
25423 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
25424 (read_mod_SOURCES): New variable.
25425 (read_mod_CFLAGS): Likewise.
25426 (read_mod_LDFLAGS): Likewise.
25427
25428 2008-02-02 Robert Millan <rmh@aybabtu.com>
25429
25430 * normal/main.c (grub_normal_execute): Check for `menu->size' when
25431 determining whether menu has to be displayed.
25432
25433 2008-02-02 Marco Gerards <marco@gnu.org>
25434
25435 * bus/pci.c: New file.
25436
25437 * include/grub/pci.h: Likewise.
25438
25439 * include/grub/i386/pc/pci.h: Likewise.
25440
25441 * commands/lspci.c: Likewise.
25442
25443 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
25444 `lspci.mod'.
25445 (pci_mod_SOURCES): New variable.
25446 (pci_mod_CFLAGS): Likewise.
25447 (pci_mod_LDFLAGS): Likewise.
25448 (lspci_mod_SOURCES): Likewise.
25449 (lspci_mod_CFLAGS): Likewise.
25450 (lspci_mod_LDFLAGS): Likewise.
25451
25452 2008-02-02 Bean <bean123ch@gmail.com>
25453
25454 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
25455 (grub_ufs_get_file_block): Fix indirect block calculation problem.
25456
25457 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
25458 (grub_xfs_btree_node): New structure.
25459 (grub_xfs_btree_root): New structure.
25460 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
25461 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
25462 (GRUB_XFS_EXTENT_BLOCK): Likewise.
25463 (GRUB_XFS_EXTENT_SIZE): Likewise.
25464 (grub_xfs_read_block): Support btree format type.
25465 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
25466 Use directory block as basic unit.
25467
25468 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
25469
25470 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
25471 __attribute__ ((__regparm__ (1))).
25472
25473 2008-02-01 Robert Millan <rmh@aybabtu.com>
25474
25475 Correct a mistake in previous commit.
25476
25477 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
25478 top.
25479 (normal/command.c_DEPENDENCIES): New variable.
25480
25481 2008-02-01 Robert Millan <rmh@aybabtu.com>
25482
25483 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
25484 top.
25485 (normal/command.c_DEPENDENCIES): New variable.
25486 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
25487 * conf/i386-ieee1275.rmk: Likewise.
25488 * conf/i386-linuxbios.rmk: Likewise.
25489 * conf/i386-pc.rmk: Likewise.
25490 * conf/sparc64-ieee1275.rmk: Likewise.
25491 * conf/powerpc-ieee1275.rmk: Likewise.
25492 (grub_emu_SOURCES): Add `fs/fshelp.c'.
25493
25494 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
25495
25496 2008-02-01 Robert Millan <rmh@aybabtu.com>
25497
25498 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
25499 call at beginning of function.
25500
25501 2008-01-31 Pavel Roskin <proski@gnu.org>
25502
25503 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
25504 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
25505 (grub_mkrescue_SOURCES): Likewise.
25506 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
25507
25508 2008-01-30 Robert Millan <rmh@aybabtu.com>
25509
25510 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
25511 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
25512 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
25513 (grub_probe_SOURCES): ... to here.
25514
25515 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
25516 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
25517 * conf/i386-ieee1275.rmk: Likewise.
25518 * conf/i386-linuxbios.rmk: Likewise.
25519 * conf/powerpc-ieee1275.rmk: Likewise.
25520
25521 2008-01-30 Tristan Gingold <gingold@free.fr>
25522
25523 * kern/rescue.c: Silently accept empty lines.
25524
25525 2008-01-29 Bean <bean123ch@gmail.com>
25526
25527 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
25528 (real_code_2): Code cleanup and change comment style.
25529 (move_memory): Avoid using 32-bit address mode.
25530
25531 2008-01-29 Bean <bean123ch@gmail.com>
25532
25533 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
25534 (png_mod_SOURCES): New variable.
25535 (png_mod_CFLAGS): Likewise.
25536 (png_mod_LDFLAGS): Likewise.
25537
25538 * video/readers/png.c: New file.
25539
25540 2008-01-28 Robert Millan <rmh@aybabtu.com>
25541
25542 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
25543 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
25544 `ifndef GRUB_MOD_GAP' hack.
25545 * util/elf/grub-mkimage.c (add_segments): Likewise.
25546
25547 2008-01-27 Robert Millan <rmh@aybabtu.com>
25548
25549 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
25550 `GRUB_MOD_GAP' for platforms in which it's not defined.
25551 * util/elf/grub-mkimage.c (add_segments): Likewise.
25552
25553 2008-01-27 Robert Millan <rmh@aybabtu.com>
25554
25555 Get grub-emu to build again (including parallel builds).
25556
25557 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
25558 Split into ...
25559 (util/grub-emu.c_DEPENDENCIES): ... this, ...
25560 (normal/execute.c_DEPENDENCIES): ... this, ...
25561 (grub-emu_DEPENDENCIES): ... and this.
25562
25563 * conf/i386-efi.rmk: Likewise.
25564 * conf/i386-linuxbios.rmk: Likewise.
25565 * conf/i386-ieee1275.rmk: Likewise.
25566 * conf/powerpc-ieee1275.rmk: Likewise.
25567 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
25568
25569 2008-01-27 Robert Millan <rmh@aybabtu.com>
25570
25571 * NEWS: Add a few items.
25572
25573 2008-01-27 Robert Millan <rmh@aybabtu.com>
25574
25575 Fix parallel builds with grub-emu. Based on earlier commit for
25576 grub-probe and grub-setup.
25577
25578 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
25579 (util/grub-emu.c_DEPENDENCIES): ... this.
25580 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
25581 (util/grub-emu.c_DEPENDENCIES): ... this.
25582 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
25583 (util/grub-emu.c_DEPENDENCIES): ... this.
25584 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
25585 (util/grub-emu.c_DEPENDENCIES): ... this.
25586 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
25587 (util/grub-emu.c_DEPENDENCIES): ... this.
25588
25589 2008-01-27 Pavel Roskin <proski@gnu.org>
25590
25591 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
25592 to create a gap between _end and the modules added to the image
25593 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
25594 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
25595 * util/elf/grub-mkimage.c (add_segments): Likewise.
25596
25597 2008-01-26 Pavel Roskin <proski@gnu.org>
25598
25599 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
25600 just return an error.
25601
25602 2008-01-26 Bean <bean123ch@gmail.com>
25603
25604 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
25605 (grub_reiserfs_get_item): Save offset of the next item.
25606 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
25607
25608 2008-01-25 Robert Millan <rmh@aybabtu.com>
25609
25610 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
25611 make all filesystem sources appear together (possibly fixing omissions
25612 while at it).
25613 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25614 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25615 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
25616 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25617
25618 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
25619 add `kern/file.c'.
25620 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
25621 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
25622 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
25623 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
25624
25625 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
25626 (probe): Add a sanity check to make sure of our ability to read
25627 requested files when probing for filesystem type.
25628
25629 * genmk.rb: Update copyright year (2007).
25630
25631 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
25632 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
25633 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
25634 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
25635 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
25636 : Remove function prototypes.
25637
25638 2008-01-25 Robert Millan <rmh@aybabtu.com>
25639
25640 Revert my previous commits (based on wrong assumption of how grub_errno
25641 works).
25642
25643 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
25644 * kern/file.c (grub_file_open): Likewise.
25645
25646 2008-01-24 Pavel Roskin <proski@gnu.org>
25647
25648 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
25649 that hang if GRUB tries to setup colors.
25650 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
25651 colors for firmwares that don't support it.
25652 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
25653 Recognize Open Hack'Ware, set flags to work around its
25654 limitations.
25655
25656 2008-01-24 Robert Millan <rmh@aybabtu.com>
25657
25658 * kern/file.c (grub_file_open): Do not account previous failures of
25659 unrelated functions when grub_errno is checked for.
25660 Reported by Oleg Strikov.
25661
25662 2008-01-24 Bean <bean123ch@gmail.com>
25663
25664 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
25665 (grub_ufs_sblock): New member volume name.
25666 (grub_ufs_find_file): Fix string copy bug.
25667 (grub_ufs_label): Implement this function properly.
25668
25669 * fs/hfs.c (grub_hfs_cnid_type): New enum.
25670 (grub_hfs_iterate_records): Use the correct file number for extents
25671 and catalog file. Fix problem in next index calculation.
25672 (grub_hfs_find_node): Replace recursive function call with loop.
25673 (grub_hfs_iterate_dir): Replace recursive function call with loop.
25674
25675 2008-01-23 Robert Millan <rmh@aybabtu.com>
25676
25677 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
25678 `<grub/symbol.h>' and `<grub/multiboot.h>'.
25679 (grub_multiboot2_real_boot): New function prototype.
25680
25681 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
25682 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
25683
25684 * kern/i386/ieee1275/init.c (grub_os_area_addr)
25685 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
25686
25687 2008-01-23 Robert Millan <rmh@aybabtu.com>
25688
25689 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
25690 #ifdef'ed out grub_printf().
25691
25692 2008-01-23 Robert Millan <rmh@aybabtu.com>
25693
25694 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
25695 grub_dprintf calls, since they make "debug=all" mode unusable.
25696 (grub_console_checkkey): Likewise.
25697
25698 2008-01-23 Robert Millan <rmh@aybabtu.com>
25699
25700 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
25701 `term/i386/pc/at_keyboard.c'.
25702 (pkglib_MODULES): Add `serial.mod'.
25703 (serial_mod_SOURCES): New variable.
25704 (serial_mod_CFLAGS): Likewise.
25705 (serial_mod_LDFLAGS): Likewise.
25706
25707 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
25708 `<grub/powerpc/ieee1275/console.h>'.
25709 (grub_keyboard_controller_init): New function prototype.
25710 (grub_console_checkkey): Likewise.
25711 (grub_console_getkey): Likewise.
25712
25713 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
25714 keyboard on i386.
25715
25716 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
25717 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
25718
25719 2008-01-23 Robert Millan <rmh@aybabtu.com>
25720
25721 * kern/i386/pc/init.c (make_install_device): When memdisk image is
25722 present, "(memdisk)/boot/grub" becomes the default prefix.
25723
25724 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
25725 a memdisk tarball with all the modules. Add --overlay=DIR option that
25726 allows users to overlay additional files into the image.
25727
25728 2008-01-23 Robert Millan <rmh@aybabtu.com>
25729
25730 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
25731 and `machine/memory.h'.
25732 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
25733 (_multiboot_mod_SOURCES): New variable.
25734 (_multiboot_mod_CFLAGS): Likewise.
25735 (_multiboot_mod_LDFLAGS): Likewise.
25736 (multiboot_mod_SOURCES): Likewise.
25737 (multiboot_mod_CFLAGS): Likewise.
25738 (multiboot_mod_LDFLAGS): Likewise.
25739
25740 * include/grub/i386/ieee1275/loader.h: New file.
25741
25742 * include/grub/i386/ieee1275/machine.h: Likewise.
25743
25744 * include/grub/i386/ieee1275/memory.h: Likewise.
25745
25746 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
25747 variable declaration.
25748 (grub_os_area_size): Likewise.
25749
25750 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
25751 (grub_lower_mem, grub_upper_mem): New variables.
25752 (grub_stop_floppy): New function (just to make
25753 grub_multiboot2_real_boot() happy).
25754
25755 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
25756 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
25757 (grub_stop): New function.
25758 Include `"../realmode.S"' and `"../loader.S"'.
25759
25760 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
25761 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
25762
25763 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
25764 rely on grub_multiboot2_real_boot() for final boot.
25765
25766 2008-01-22 Robert Millan <rmh@aybabtu.com>
25767
25768 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
25769 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
25770 device that doesn't look like an SD card.
25771 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
25772 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
25773 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
25774 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
25775 found.
25776
25777 2008-01-22 Robert Millan <rmh@aybabtu.com>
25778
25779 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
25780 avoid claiming over our own code.
25781
25782 2008-01-22 Bean <bean123ch@gmail.com>
25783
25784 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
25785 (jpeg_mod_SOURCES): New variable.
25786 (jpeg_mod_CFLAGS): Likewise.
25787 (jpeg_mod_LDFLAGS): Likewise.
25788
25789 * video/readers/jpeg.c : New file.
25790
25791 2008-01-22 Bean <bean123ch@gmail.com>
25792
25793 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
25794 there are no more items.
25795
25796 2008-01-21 Robert Millan <rmh@aybabtu.com>
25797
25798 * kern/mm.c (grub_mm_init_region): Improve debug message.
25799
25800 2008-01-21 Robert Millan <rmh@aybabtu.com>
25801
25802 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
25803 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
25804 address.
25805 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
25806 a C macro.
25807 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
25808 Indicates start of upper memory.
25809 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
25810 (generate_image): Abort when image size is big enough to corrupt
25811 upper memory.
25812
25813 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
25814 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
25815 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
25816 instead of hardcoding 0xA0000.
25817 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
25818 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
25819 instead of hardcoding 0xA0000.
25820
25821 2008-01-21 Robert Millan <rmh@aybabtu.com>
25822
25823 * disk/memdisk.c (memdisk_size): New variable.
25824 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
25825 `memdisk_size'.
25826 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
25827 image to dynamic memory.
25828 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
25829 `memdisk_size'. Free memdisk block.
25830
25831 2008-01-21 Robert Millan <rmh@aybabtu.com>
25832
25833 Fix detection of very small filesystems (like tar).
25834
25835 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
25836 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
25837 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
25838 a problem with this disk).
25839
25840 2008-01-21 Robert Millan <rmh@aybabtu.com>
25841
25842 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
25843 on grub_biosdisk_rw_standard() error.
25844
25845 2008-01-21 Robert Millan <rmh@aybabtu.com>
25846
25847 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
25848 recent changes.
25849 * kern/elf.c: Likewise.
25850 * kern/ieee1275/ieee1275.c: Likewise.
25851 * kern/powerpc/ieee1275/openfw.c: Likewise.
25852 * term/ieee1275/ofconsole.c: Likewise.
25853
25854 2008-01-21 Robert Millan <rmh@aybabtu.com>
25855
25856 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
25857
25858 * include/grub/kernel.h (grub_arch_memdisk_addr)
25859 (grub_arch_memdisk_size): Moved from here ...
25860
25861 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
25862 (grub_arch_memdisk_size): ... to here.
25863
25864 2008-01-21 Robert Millan <rmh@aybabtu.com>
25865
25866 Mostly based on bugfix from Bean.
25867
25868 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
25869 attribute with hook() parameter.
25870 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
25871 declaration.
25872 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
25873 attribute with hook() parameter.
25874 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
25875 declaration.
25876
25877 2008-01-21 Robert Millan <rmh@aybabtu.com>
25878
25879 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
25880 (pkglib_MODULES): Add `memdisk.mod'.
25881 (memdisk_mod_SOURCES): New variable.
25882 (memdisk_mod_CFLAGS): Likewise.
25883 (memdisk_mod_LDFLAGS): Likewise.
25884
25885 * disk/memdisk.c: New file.
25886
25887 * include/grub/disk.h (grub_disk_dev_id): Add
25888 `GRUB_DISK_DEVICE_MEMDISK_ID'.
25889
25890 * include/grub/i386/pc/kernel.h
25891 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
25892 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
25893 (grub_kernel_image_size): New variable declaration.
25894 (grub_total_module_size): Likewise.
25895 (grub_memdisk_image_size): Likewise.
25896
25897 * include/grub/i386/pc/memory.h
25898 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
25899
25900 * include/grub/kernel.h: Include `<grub/symbol.h>'.
25901 (grub_arch_memdisk_addr): New variable declaration.
25902 (grub_arch_memdisk_size): Likewise.
25903
25904 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
25905 (grub_arch_memdisk_size): Likewise.
25906
25907 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
25908 (codestart): Replace hardcoded `0x100000' with
25909 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
25910
25911 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
25912 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
25913 not NULL, append the contents of the file it refers to, at the end of
25914 the compressed kernel image. Initialize `grub_memdisk_image_size'
25915 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
25916 (options): Add "memdisk"|'m' option.
25917 (main): Parse --memdisk|-m option, and pass user-provided path as
25918 parameter to generate_image().
25919
25920 2008-01-20 Robert Millan <rmh@aybabtu.com>
25921
25922 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
25923 grub_dprintf() calls from here ...
25924 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
25925
25926 2008-01-20 Robert Millan <rmh@aybabtu.com>
25927
25928 Fix detection of "real mode" when /options/real-mode? doesn't exist.
25929
25930 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
25931 declaration.
25932 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
25933 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
25934 `GRUB_IEEE1275_FLAG_REAL_MODE'.
25935 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
25936 property).
25937 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
25938 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
25939
25940 2008-01-19 Robert Millan <rmh@aybabtu.com>
25941
25942 Get rid of confusing function (superseded by
25943 `grub_ieee1275_get_integer_property')
25944 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
25945 prototype.
25946 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
25947 function.
25948 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
25949 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
25950 in native endianness from grub_ieee1275_get_integer_property().
25951
25952 2008-01-19 Robert Millan <rmh@aybabtu.com>
25953
25954 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
25955 command after "shut-down", since implementations differ on which
25956 the command for halt is.
25957
25958 2008-01-19 Robert Millan <rmh@aybabtu.com>
25959
25960 * include/grub/i386/linuxbios/console.h: Add header protection.
25961 (grub_keyboard_controller_init): New function prototype.
25962 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
25963 (KEYBOARD_COMMAND_READ): Likewise.
25964 (KEYBOARD_COMMAND_WRITE): Likewise.
25965 (KEYBOARD_SCANCODE_SET1): Likewise.
25966 (grub_keyboard_controller_write): New function.
25967 (grub_keyboard_controller_read): Likewise.
25968 (grub_keyboard_controller_init): Likewise.
25969
25970 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
25971 (grub_console_init): On coreboot/LinuxBIOS, call
25972 grub_keyboard_controller_init().
25973
25974 2008-01-19 Robert Millan <rmh@aybabtu.com>
25975
25976 PowerPC changes provided by Pavel Roskin.
25977
25978 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
25979 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
25980 don't rely on cmain() doing it.
25981 * kern/i386/ieee1275/startup.S (_start): Store %eax in
25982 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
25983
25984 2008-01-16 Robert Millan <rmh@aybabtu.com>
25985
25986 * include/grub/i386/linuxbios/memory.h
25987 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
25988 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
25989 receive `table_header' as argument. Instead, probe for it in the
25990 known memory ranges where it can be present.
25991 (grub_available_iterate): Do not pass a fixed `table_header' address
25992 to grub_linuxbios_table_iterate().
25993
25994 2008-01-15 Robert Millan <rmh@aybabtu.com>
25995
25996 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
25997 * conf/i386-ieee1275.rmk: New file.
25998 * include/grub/i386/ieee1275/console.h: Likewise.
25999 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
26000 * include/grub/i386/ieee1275/kernel.h: Likewise.
26001 * include/grub/i386/ieee1275/time.h: Likewise.
26002 * kern/i386/ieee1275/init.c: Likewise.
26003 * kern/i386/ieee1275/startup.S: Likewise.
26004
26005 2008-01-15 Robert Millan <rmh@aybabtu.com>
26006
26007 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
26008 when pointers are 32-bit (but still do set it to one when they are
26009 64-bit).
26010
26011 2008-01-15 Robert Millan <rmh@aybabtu.com>
26012
26013 * include/grub/ieee1275/ieee1275.h
26014 (grub_ieee1275_get_integer_property): New function prototype.
26015
26016 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
26017 (grub_ieee1275_get_integer_property): New function. Wraps around
26018 grub_ieee1275_get_property() to handle endianness.
26019
26020 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
26021 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
26022 where appropriate.
26023 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
26024 (grub_map): Likewise.
26025 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
26026
26027 2008-01-15 Bean <bean123ch@gmail.com>
26028
26029 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
26030 (grub_script_execute_cmdline): Reset grub_errno.
26031
26032 * normal/main.c (read_config_file): Reset grub_errno.
26033
26034 * normal/parse.y (script_init): New.
26035 (script): Move function and menuentry here.
26036 (delimiter): New.
26037 (command): Add delimiter at the end of command.
26038 (commands): Adjust to match the new command.
26039 (commandblock): Remove grub_script_lexer_record_start.
26040 (menuentry): Add grub_script_lexer_record_start, use the new commands.
26041 (if): Use the new commands.
26042
26043 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
26044
26045 2008-01-15 Robert Millan <rmh@aybabtu.com>
26046
26047 * normal/menu.c (run_menu): Move timeout message from here ...
26048 (print_timeout): ... to here.
26049 (run_menu): Use print_timeout() once during initial draw to print
26050 the whole message, and again in every clock tick to update only
26051 the number of seconds.
26052
26053 2008-01-15 Robert Millan <rmh@aybabtu.com>
26054
26055 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
26056 actual size of `available' from grub_ieee1275_get_property(), and
26057 restrict parsing to that bound.
26058
26059 2008-01-15 Christian Franke <franke@computer.org>
26060
26061 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
26062 (argp_program_version): Remove variable.
26063 (argp_program_bug_address): Likewise.
26064 (options): Convert from struct argp_option to struct option.
26065 (struct arguments): Remove.
26066 (parse_opt): Remove.
26067 (usage): New function.
26068 (main): Replace struct args members by simple variables.
26069 Replace argp_parse() by getopt_long().
26070 Add switch to evaluate options.
26071 Add missing "(...)" around root_dev in prefix string.
26072
26073 2008-01-14 Robert Millan <rmh@aybabtu.com>
26074
26075 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
26076 for grub_ieee1275_exit(), in order to improve portability.
26077
26078 2008-01-14 Robert Millan <rmh@aybabtu.com>
26079
26080 * util/grub.d/10_linux.in (prefix): Define.
26081 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
26082
26083 2008-01-13 Pavel Roskin <proski@gnu.org>
26084
26085 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
26086 grub_errno if no errors have been detected.
26087
26088 2008-01-12 Robert Millan <rmh@aybabtu.com>
26089
26090 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
26091 (grub_util_get_dev_abstraction): New function prototype.
26092
26093 * util/getroot.c: Include `<grub/util/getroot.h>'
26094 (grub_util_get_grub_dev): Move detection of abstraction type to ...
26095 (grub_util_get_dev_abstraction): ... here (new function).
26096
26097 * util/grub-probe.c: Convert PRINT_* to an enum. Add
26098 `PRINT_ABSTRACTION'.
26099 (probe): Probe for abstraction type when requested.
26100 (main): Understand `--target=abstraction'.
26101
26102 * util/i386/efi/grub-install.in: Add abstraction module to core
26103 image when it is found to be necessary.
26104 * util/i386/pc/grub-install.in: Likewise.
26105 * util/powerpc/ieee1275/grub-install.in: Likewise.
26106
26107 * util/update-grub_lib.in (font_path): Return system path without
26108 converting to GRUB path.
26109 * util/update-grub.in: Convert system path returned by font_path()
26110 to a GRUB path. Use `grub-probe -t abstraction' to determine what
26111 abstraction module is needed for loading fonts (if any). Export
26112 that as `GRUB_PRELOAD_MODULES'.
26113 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
26114 insmod commands).
26115
26116 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
26117
26118 Remove some unused code from reiserfs.
26119
26120 * fs/reiserfs.c (struct grub_reiserfs_key)
26121 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
26122 (struct grub_reiserfs_node_body): Removed.
26123 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
26124 Likewise.
26125 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
26126 Likewise.
26127 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
26128 Likewise.
26129 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
26130 Likewise.
26131 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
26132 Likewise.
26133 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
26134 Likewise.
26135 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
26136 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
26137 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
26138
26139 2008-01-10 Robert Millan <rmh@aybabtu.com>
26140
26141 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
26142 Determines if a file is garbage left by packaging systems, etc.
26143 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
26144 for processing /etc/grub.d scripts.
26145 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
26146 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
26147 as a condition for processing Linux images.
26148
26149 2008-01-10 Pavel Roskin <proski@gnu.org>
26150
26151 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
26152 to compile reiserfs.c on PowerPC.
26153
26154 2008-01-10 Robert Millan <rmh@aybabtu.com>
26155
26156 * kern/device.c (grub_device_iterate): Do not abort device iteration
26157 when one of the devices cannot be opened.
26158 * kern/disk.c (grub_disk_open): Do not account previous failures of
26159 unrelated functions when grub_errno is checked for.
26160
26161 2008-01-08 Robert Millan <rmh@aybabtu.com>
26162
26163 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
26164 `! grub_linux_is_bzimage', change order of address comparison to make
26165 it more intuitive, and improve "too big zImage" error message.
26166
26167 2008-01-08 Robert Millan <rmh@aybabtu.com>
26168
26169 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
26170 `$(update-grub_DATA)'.
26171 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
26172 targets.
26173
26174 2008-01-07 Robert Millan <rmh@aybabtu.com>
26175
26176 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
26177 which instruction is modified by grub-setup during installation
26178 (since it wasn't obvious by only looking at this file).
26179
26180 2008-01-07 Robert Millan <rmh@aybabtu.com>
26181
26182 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
26183 listing actual TODO items.
26184
26185 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
26186
26187 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
26188 correctly.
26189 (grub_reiserfs_get_key_offset): Likewise.
26190 (grub_reiserfs_set_key_offset): Likewise.
26191 (grub_reiserfs_set_key_type): Likewise.
26192 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
26193
26194 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
26195 better to remove the bitfield version completely.
26196
26197 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
26198
26199 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
26200 allocated from the heap, due to the fshelp implementation.
26201 (grub_reiserfs_dir): Free NODE, due to the same reason.
26202
26203 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
26204
26205 Mostly from Vincent Pelletier:
26206
26207 * fs/reiserfs.c: New file.
26208
26209 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
26210 (reiserfs_mod_SOURCES): New variable.
26211 (reiserfs_mod_CFLAGS): Likewise.
26212 (reiserfs_mod_LDFLAGS): Likewise.
26213
26214 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
26215 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
26216 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
26217 normal/color.c.
26218
26219 2008-01-06 Robert Millan <rmh@aybabtu.com>
26220
26221 * normal/color.c: Remove `<grub/env.h>'.
26222
26223 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
26224
26225 * include/grub/normal.h: Include <grub/env.h>.
26226
26227 2008-01-05 Robert Millan <rmh@aybabtu.com>
26228
26229 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
26230 usage example with `(hd0,1)'.
26231 Reported by Samuel Thibault.
26232
26233 2008-01-05 Robert Millan <rmh@aybabtu.com>
26234
26235 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
26236 (grub_linux_boot_zimage): Rename to ...
26237 (grub_linux_boot): ... this.
26238 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
26239 (grub_linux_boot_zimage): Conditionalize zImage copy.
26240
26241 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
26242 (grub_linux_boot_bzimage): Remove prototype.
26243 (grub_linux_boot_zimage): Rename to ...
26244 (grub_linux_boot): ... this.
26245
26246 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
26247 (grub_linux_boot): Remove function.
26248
26249 2008-01-05 Robert Millan <rmh@aybabtu.com>
26250
26251 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
26252 (grub_env_write_color_highlight): Likewise.
26253 (grub_wait_after_message): Likewise.
26254
26255 * normal/color.c: New file.
26256
26257 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
26258 (normal_mod_DEPENDENCIES): Likewise.
26259
26260 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
26261 (normal_mod_DEPENDENCIES): Likewise.
26262
26263 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
26264 (normal_mod_DEPENDENCIES): Likewise.
26265
26266 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
26267 (normal_mod_DEPENDENCIES): Likewise.
26268
26269 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
26270 for waiting after a message is printed.
26271 * normal/main.c (read_config_file): Likewise.
26272 (grub_normal_init): Register grub_env_write_color_normal() and
26273 grub_env_write_color_highlight() hooks. Mark `color_normal' and
26274 `color_highlight' variables as global.
26275
26276 * normal/menu.c (grub_wait_after_message): New function.
26277 (grub_color_menu_normal): New variable. Replaces ...
26278 (GRUB_COLOR_MENU_NORMAL): ... this macro.
26279 (grub_color_menu_highlight): New variable. Replaces ...
26280 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
26281 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
26282 `GRUB_TERM_COLOR_STANDARD'.
26283 (print_message): Use `grub_setcolorstate' to reload colors. Rename
26284 `normal_code' and `highlight_code' to `old_color_normal' and
26285 `old_color_highlight', respectively.
26286 (grub_menu_init_page): Update colors when drawing the menu, based on
26287 `menu_color_normal' and `menu_color_highlight' variables.
26288 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
26289 a message is printed.
26290
26291 2008-01-05 Robert Millan <rmh@aybabtu.com>
26292
26293 * kern/env.c (grub_env_context_open): Propagate hooks for global
26294 variables to new context.
26295
26296 * kern/main.c (grub_set_root_dev): Export `root' variable.
26297
26298 2008-01-05 Robert Millan <rmh@aybabtu.com>
26299
26300 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
26301 discs unconditionally, since udev and others have options to provide
26302 them.
26303
26304 2008-01-05 Robert Millan <rmh@aybabtu.com>
26305
26306 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
26307
26308 2008-01-04 Christian Franke <franke@computer.org>
26309
26310 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
26311 of eisa_mmap.
26312
26313 2008-01-03 Pavel Roskin <proski@gnu.org>
26314
26315 * kern/i386/linuxbios/init.c: Put "void" to all function
26316 declarations with no arguments.
26317 * kern/powerpc/ieee1275/init.c: Likewise.
26318 * term/i386/pc/at_keyboard.c: Likewise.
26319 * term/i386/pc/vga_text.c: Likewise.
26320 * util/grub-mkdevicemap.c: Likewise.
26321
26322 2008-01-02 Robert Millan <rmh@aybabtu.com>
26323
26324 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
26325 message when loaded image is out of bounds.
26326 (grub_multiboot_load_elf64): Likewise.
26327
26328 2008-01-02 Pavel Roskin <proski@gnu.org>
26329
26330 * util/grub.d/10_linux.in: Try version without ".old" when
26331 looking for initrd. It's better to use initrd from the newer
26332 kernel of the same version than no initrd at all.
26333
26334 2008-01-01 Robert Millan <rmh@aybabtu.com>
26335
26336 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
26337
26338 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
26339
26340 * include/grub/video.h: Added grub_video_unmap_color and
26341 grub_video_get_active_render_target.
26342 (grub_video_adapter): Added unmap_color and get_active_render_target.
26343
26344 * video/video.c: Added grub_video_unmap_color and
26345 grub_video_get_active_render_target.
26346 (grub_video_get_info): Changed method to accept NULL pointer as an
26347 argument to allow detection of active video adapter.
26348
26349 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
26350 grub_video_vbe_unmap_color_int.
26351 Added grub_video_vbe_unmap_color and
26352 grub_video_vbe_get_active_render_target.
26353 (grub_video_vbe_adapter): Added unmap_color and
26354 get_active_render_target.
26355
26356 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
26357 with grub_video_vbe_unmap_color_int.
26358
26359 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
26360 (DEFAULT_NORMAL_COLOR): Likewise.
26361 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
26362 (DEFAULT_FG_COLOR): Removed.
26363 (DEFAULT_BG_COLOR): Likewise.
26364 (DEFAULT_CURSOR_COLOR): Changed value.
26365 (grub_virtual_screen): Added standard_color_setting,
26366 normal_color_setting, highlight_color_setting and term_color.
26367 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
26368 (bitmap_width): Added.
26369 (bitmap_height): Likewise.
26370 (bitmap): Likewise.
26371 (set_term_color): Likewise.
26372 (grub_virtual_screen_setup): Changed to use new terminal coloring
26373 settings.
26374 (grub_gfxterm_init): Added init for bitmap.
26375 (grub_gfxterm_fini): Added destroy for bitmap.
26376 (redraw_screen_rect): Updated to use background bitmap and new
26377 terminal coloring.
26378 (scroll_up): Added optimization for case when there is no bitmap.
26379 (grub_gfxterm_cls): Fixed to use correct background color.
26380 (grub_virtual_screen_setcolorstate): Changed to use new terminal
26381 coloring.
26382 (grub_virtual_screen_setcolor): Likewise.
26383 (grub_virtual_screen_getcolor): Added.
26384 (grub_gfxterm_background_image_cmd): Likewise.
26385 (grub_video_term): Added setcolor and getcolor.
26386 (MOD_INIT): Added registration of background_image command.
26387 (MOD_TERM): Added unregistration for background_image command.
26388
26389 2007-12-30 Pavel Roskin <proski@gnu.org>
26390
26391 * loader/multiboot_loader.c: Fix multiboot command
26392 unregistration. Fix all typos in the word "multiboot".
26393
26394 2007-12-29 Pavel Roskin <proski@gnu.org>
26395
26396 * util/grub.d/10_linux.in: Refactor search for initrd. Add
26397 support for initrd names used in Fedora.
26398
26399 2007-12-26 Bean <bean123ch@gmail.com>
26400
26401 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
26402 (cpio_mod_SOURCES): New variable.
26403 (cpio_mod_CFLAGS): Likewise.
26404 (cpio_mod_LDFLAGS): Likewise.
26405
26406 * fs/cpio.c: New file.
26407
26408 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
26409
26410 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26411
26412 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
26413
26414 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26415
26416 2007-12-25 Robert Millan <rmh@aybabtu.com>
26417
26418 * include/grub/term.h (struct grub_term): Add `getcolor' function.
26419 (grub_getcolor): New function.
26420
26421 * kern/term.c (grub_getcolor): New function.
26422 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
26423 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
26424 (print_entry): Set normal and highlight colors to
26425 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
26426 respectively, before printing and restore them to old
26427 values afterwards.
26428 (grub_menu_init_page): Likewise. Fill an additional colored space
26429 that would otherwise be left blank.
26430
26431 * term/efi/console.c (grub_console_getcolor): New function.
26432 (struct grub_console_term.getcolor): New variable.
26433 * term/i386/pc/console.c (grub_console_getcolor): New function.
26434 (struct grub_console_term.getcolor): New variable.
26435 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
26436 (struct grub_console_term.getcolor): New variable.
26437
26438 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
26439 (struct grub_console_term.setcolor): Remove variable.
26440 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
26441 (struct grub_console_term.setcolor): Remove variable.
26442 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
26443 (struct grub_console_term.setcolor): Remove variable.
26444 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
26445 (struct grub_console_term.setcolor): Remove variable.
26446
26447 2007-12-25 Robert Millan <rmh@aybabtu.com>
26448
26449 * configure.ac: Search for possible unifont.hex locations, and
26450 define UNIFONT_HEX if found.
26451
26452 * Makefile.in (UNIFONT_HEX): Define variable.
26453 (DATA): Rename to ...
26454 (PKGLIB): ... this. Update all users.
26455 (PKGDATA): New variable.
26456 (pkgdata_IMAGES): Rename to ...
26457 (pkglib_IMAGES): ... this. Update all users.
26458 (pkgdata_MODULES): Rename to ...
26459 (pkglib_MODULES): ... this. Update all users.
26460 (pkgdata_PROGRAMS): Rename to ...
26461 (pkglib_PROGRAMS): ... this. Update all users.
26462 (pkgdata_DATA): Rename to ...
26463 (pkglib_DATA): ... this. Update all users.
26464 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
26465 (unicode.pff, ascii.pff): New rules.
26466 (all-local): Add `$(PKGDATA)' dependency.
26467 (install-local): Process `$(PKGDATA)'.
26468
26469 * util/update-grub_lib.in (font_path): Search for *.pff files in
26470 a few more locations, including `${pkgdata}'.
26471
26472 2007-12-23 Robert Millan <rmh@aybabtu.com>
26473
26474 Patch from Bean <bean123ch@gmail.com>:
26475 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
26476 `size'.
26477
26478 2007-12-21 Bean <bean123ch@gmail.com>
26479
26480 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
26481 (ntfscomp_mod_SOURCES): New variable.
26482 (ntfscomp_mod_CFLAGS): Likewise.
26483 (ntfscomp_mod_LDFLAGS): Likewise.
26484
26485 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
26486 (grub_probe_SOURCES): Likewise.
26487 (grub_emu_SOURCES): Likewise.
26488
26489 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
26490 (grub_emu_SOURCES): Likewise.
26491
26492 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
26493 (grub_emu_SOURCES): Likewise.
26494
26495 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
26496 (grub_emu_SOURCES): Likewise.
26497
26498 * fs/ntfs.c (grub_ntfscomp_func): New variable.
26499 (read_run_list): Renamed to grub_ntfs_read_run_list.
26500 (decomp_nextvcn): Moved to ntfscomp.c.
26501 (decomp_getch): Likewise.
26502 (decomp_get16): Likewise.
26503 (decomp_block): Likewise.
26504 (read_block): Likewise.
26505 (read_data): Partially moved to ntfscomp.c.
26506 (fixup): Change unsigned to grub_uint16_t.
26507 (read_mft): Change unsigned long to grub_uint32_t.
26508 (read_attr): Likewise.
26509 (read_data): Likewise.
26510 (read_run_data): Likewise.
26511 (read_run_list): Likewise.
26512 (read_mft): Likewise.
26513
26514 * fs/ntfscomp.c: New file.
26515
26516 * include/grub/ntfs.h: New file.
26517
26518 2007-12-16 Robert Millan <rmh@aybabtu.com>
26519
26520 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
26521 IDE disk check, since Linux is known to support 20 IDE disks.
26522 Reported by Colin Watson.
26523
26524 2007-12-15 Bean <bean123ch@gmail.com>
26525
26526 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
26527 (lnxboot_img_SOURCES): New variable.
26528 (lnxboot_img_ASFLAGS): Likewise.
26529 (lnxboot_img_LDFLAGS): Likewise.
26530
26531 * boot/i386/pc/lnxboot.S: New file.
26532
26533 2007-11-24 Pavel Roskin <proski@gnu.org>
26534
26535 * configure.ac: Test if '--build-id=none' is supported by the
26536 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
26537 objcopy to generate incorrect binary files (binutils
26538 2.17.50.0.18-1 as shipped by Fedora 8).
26539 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
26540 linking, so that build ID doesn't break the test.
26541
26542 2007-11-24 Pavel Roskin <proski@gnu.org>
26543
26544 * include/grub/i386/time.h: use "void" in the argument list
26545 of grub_cpu_idle().
26546 * include/grub/powerpc/time.h: Likewise.
26547 * include/grub/sparc64/time.h: Likewise.
26548
26549 2007-11-18 Christian Franke <franke@computer.org>
26550
26551 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
26552 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
26553 This fixes the problem that function keys did not work in grub-emu.
26554
26555 2007-11-18 Christian Franke <franke@computer.org>
26556
26557 * disk/host.c (grub_host_open): Remove attribute unused from
26558 name parameter. Add check for "host". This fixes the problem
26559 that grub-emu does not find partitions.
26560
26561 2007-11-18 Christian Franke <franke@computer.org>
26562
26563 * util/hostfs.c (is_dir): New function.
26564 (grub_hostfs_dir): Handle missing dirent.d_type case.
26565 (grub_hostfs_read): Add missing fseek().
26566 (grub_hostfs_label): Clear label pointer. This fixes a crash
26567 of grub-emu on "ls (host)".
26568
26569 2007-11-18 Christian Franke <franke@computer.org>
26570
26571 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
26572 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
26573 to 64 bit boundary by default.
26574
26575 2007-11-18 Bean <bean123ch@gmail.com>
26576
26577 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
26578 (hexdump_mod_SOURCES): New variable.
26579 (hexdump_mod_CFLAGS): Likewise.
26580 (hexdump_mod_LDFLAGS): Likewise.
26581
26582 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
26583
26584 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
26585
26586 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
26587
26588 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
26589
26590 * include/grub/hexdump.h: New file.
26591
26592 * commands/hexdump.c: New file.
26593
26594 2007-11-10 Robert Millan <rmh@aybabtu.com>
26595
26596 * commands/i386/pc/play.c (beep_off): Switch order of arguments
26597 in grub_outb() calls.
26598 (beep_on): Likewise.
26599
26600 2007-11-10 Christian Franke <franke@computer.org>
26601
26602 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
26603 (grub_menu_run): Likewise.
26604
26605 2007-11-10 Robert Millan <rmh@aybabtu.com>
26606
26607 * include/grub/i386/efi/machine.h: New file.
26608 * include/grub/i386/linuxbios/machine.h: Likewise.
26609 * include/grub/i386/pc/machine.h: Likewise.
26610 * include/grub/powerpc/ieee1275/machine.h: Likewise.
26611 * include/grub/sparc64/ieee1275/machine.h: Likewise.
26612
26613 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
26614 (serial_hw_io_addr): New variable.
26615 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
26616 instead of `(unsigned short *) 0x400'.
26617
26618 2007-11-10 Bean <bean123ch@gmail.com>
26619
26620 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
26621
26622 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
26623
26624 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
26625 (vga_mod_SOURCES): Added.
26626 (vga_mod_CFLAGS): Likewise.
26627 (vga_mod_LDFLAGS): Likewise.
26628
26629 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
26630 grub_outb() calls.
26631 (set_map_mask): Likewise.
26632 (set_read_map): Likewise.
26633 (set_read_address): Likewise.
26634 (vga_font): Removed variable.
26635 (get_vga_glyph): Removed function.
26636 (invalidate_char): Likewise.
26637 (write_char): Changed to use grub_font_get_glyph() for font
26638 information.
26639 (grub_vga_putchar): Likewise.
26640 (grub_vga_getcharwidth): Likewise.
26641
26642 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
26643
26644 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
26645 flags.
26646 (pxeboot_img_LDFLAGS): Likewise.
26647 (diskboot_img_LDFLAGS): Likewise.
26648 (kernel_img_LDFLAGS): Likewise.
26649
26650 2007-11-06 Robert Millan <rmh@aybabtu.com>
26651
26652 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
26653 in grub_outb() calls.
26654 (serial_hw_init): Likewise.
26655
26656 2007-11-05 Robert Millan <rmh@aybabtu.com>
26657
26658 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
26659 spaces. Skip non-regular files.
26660
26661 2007-11-05 Robert Millan <rmh@aybabtu.com>
26662
26663 * kern/disk.c (grub_disk_firmware_fini)
26664 (grub_disk_firmware_is_tainted): New variables.
26665
26666 * include/grub/disk.h (grub_disk_firmware_fini)
26667 (grub_disk_firmware_is_tainted): Likewise.
26668
26669 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
26670 (grub_disk_biosdisk_fini): ... to here.
26671 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
26672 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
26673 is set. Register grub_disk_biosdisk_fini() in
26674 `grub_disk_firmware_fini'.
26675
26676 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
26677 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
26678 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
26679 to finish existing firmware disk interface.
26680
26681 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
26682 (ata_mod_SOURCES): New variable.
26683 (ata_mod_CFLAGS): Likewise.
26684 (ata_mod_LDFLAGS): Likewise.
26685
26686 2007-11-05 Robert Millan <rmh@aybabtu.com>
26687
26688 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
26689 (grub_ata_wait): Reimplement using grub_millisleep().
26690
26691 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
26692 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
26693
26694 2007-11-03 Marco Gerards <marco@gnu.org>
26695
26696 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
26697 (CRTC_ADDR_PORT): New macro.
26698 (CRTC_DATA_PORT): Likewise.
26699 (CRTC_CURSOR): Likewise.
26700 (CRTC_CURSOR_ADDR_HIGH): Likewise.
26701 (CRTC_CURSOR_ADDR_LOW): Likewise.
26702 (update_cursor): New function.
26703 (grub_console_real_putchar): Call `update_cursor'.
26704 (grub_console_gotoxy): Likewise.
26705 (grub_console_cls): Set the default color when clearing the
26706 screen.
26707 (grub_console_setcursor): Implemented.
26708
26709 2007-11-03 Marco Gerards <marco@gnu.org>
26710
26711 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
26712 become activate.
26713 (grub_ata_pio_write): Likewise.
26714
26715 (grub_atapi_identify): Wait after issuing an ATA command.
26716 (grub_atapi_packet): Likewise.
26717 (grub_ata_identify): Likewise.
26718 (grub_ata_readwrite): Likewise.
26719
26720 2007-11-03 Marco Gerards <marco@gnu.org>
26721
26722 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
26723 (grub_ata_pio_write): Likewise.
26724 (grub_ata_readwrite): Use `grub_error', instead of
26725 returning `grub_errno'.
26726
26727 2007-11-03 Marco Gerards <marco@gnu.org>
26728
26729 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
26730 grub_ata_pio_write once for every single sector, instead of for
26731 multiple sectors.
26732
26733 2007-10-31 Robert Millan <rmh@aybabtu.com>
26734
26735 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
26736
26737 * conf/i386-linuxbios.rmk: New file.
26738
26739 * kern/i386/pc/hardware.c: Likewise.
26740 * term/i386/pc/at_keyboard.c: Likewise.
26741 * term/i386/pc/vga_text.c: Likewise.
26742
26743 * include/grub/i386/linuxbios/boot.h: Likewise.
26744 * include/grub/i386/linuxbios/console.h: Likewise.
26745 * include/grub/i386/linuxbios/init.h: Likewise.
26746 * include/grub/i386/linuxbios/kernel.h: Likewise.
26747 * include/grub/i386/linuxbios/loader.h: Likewise.
26748 * include/grub/i386/linuxbios/memory.h: Likewise.
26749 * include/grub/i386/linuxbios/serial.h: Likewise.
26750 * include/grub/i386/linuxbios/time.h: Likewise.
26751
26752 * kern/i386/linuxbios/init.c: Likewise.
26753 * kern/i386/linuxbios/startup.S: Likewise.
26754 * kern/i386/linuxbios/table.c: Likewise.
26755
26756 2007-10-31 Marco Gerards <marco@gnu.org>
26757
26758 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
26759 (ata_mod_SOURCES): New variable.
26760 (ata_mod_CFLAGS): Likewise.
26761 (ata_mod_LDFLAGS): Likewise.
26762
26763 * disk/ata.c: New file.
26764
26765 * include/grub/disk.h (grub_disk_dev_id): Add
26766 `GRUB_DISK_DEV_ATA_ID'.
26767
26768 2007-10-31 Robert Millan <rmh@aybabtu.com>
26769
26770 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
26771 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
26772
26773 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
26774 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
26775
26776 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
26777 `<grub/types.h>'.
26778
26779 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
26780
26781 2007-10-27 Robert Millan <rmh@aybabtu.com>
26782
26783 * include/grub/types.h (ULONG_MAX): Define macro.
26784
26785 2007-10-22 Robert Millan <rmh@aybabtu.com>
26786
26787 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
26788 `"../realmode.S"'.
26789 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
26790
26791 2007-10-22 Robert Millan <rmh@aybabtu.com>
26792
26793 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
26794 (pkgdata_MODULES): Add `biosdisk.mod'.
26795 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
26796 variables.
26797
26798 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
26799 (grub_biosdisk_init): Replace with ...
26800 (GRUB_MOD_INIT(biosdisk)): ... this.
26801 (grub_biosdisk_fini): Replace with ...
26802 (GRUB_MOD_FINI(biosdisk)): ... this.
26803
26804 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
26805 (grub_machine_init): Remove call to grub_biosdisk_init().
26806 (grub_machine_fini): Remove call to grub_machine_fini().
26807
26808 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
26809
26810 2007-10-22 Robert Millan <rmh@aybabtu.com>
26811
26812 * include/grub/time.h: New file.
26813 * include/grub/i386/time.h: Likewise.
26814 * include/grub/powerpc/time.h: Likewise.
26815 * include/grub/sparc64/time.h: Likewise.
26816
26817 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
26818 instances to ...
26819 (KERNEL_MACHINE_TIME_HEADER): ... this.
26820 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
26821 instances to ...
26822 (KERNEL_MACHINE_TIME_HEADER): ... this.
26823 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
26824 instances to ...
26825 (KERNEL_MACHINE_TIME_HEADER): ... this.
26826
26827 * kern/i386/efi/init.c: Include `<grub/time.h>'.
26828 (grub_millisleep): New function.
26829 * kern/i386/pc/init.c: Include `<grub/time.h>'.
26830 (grub_millisleep): New function.
26831 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
26832 Remove `grub/machine/time.h' include.
26833 (grub_millisleep): New function.
26834 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
26835 Remove `grub/machine/time.h' include.
26836 (grub_millisleep): New function.
26837
26838 * include/grub/misc.h (grub_div_roundup): New function.
26839
26840 * kern/misc.c: Include `<grub/time.h>'.
26841 (grub_millisleep_generic): New function.
26842
26843 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
26844 Add `time.h'.
26845 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
26846 Add `time.h'.
26847 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
26848 `machine/time.h'. Add `time.h'.
26849 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
26850
26851 2007-10-21 Robert Millan <rmh@aybabtu.com>
26852
26853 * include/grub/misc.h (grub_max): New function.
26854
26855 2007-10-21 Robert Millan <rmh@aybabtu.com>
26856
26857 * util/misc.c (grub_util_info): Call fflush() before returning.
26858
26859 2007-10-20 Robert Millan <rmh@aybabtu.com>
26860
26861 * genmk.rb (Image): Copy `extra_flags' from here ...
26862 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
26863
26864 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
26865 to `argc' and `args' arguments.
26866
26867 2007-10-17 Robert Millan <rmh@aybabtu.com>
26868
26869 * kern/i386/loader.S: New file.
26870
26871 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
26872 * kern/i386/loader.S (grub_linux_prot_size)... to here.
26873 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
26874 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
26875 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
26876 * kern/i386/loader.S (grub_linux_real_addr)... to here.
26877 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
26878 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
26879 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
26880 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
26881 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
26882 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
26883 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
26884 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
26885
26886 * kern/i386/realmode.S: New file.
26887
26888 * kern/i386/pc/startup.S (protstack): Moved from here ...
26889 * kern/i386/realmode.S (protstack)... to here.
26890 * kern/i386/pc/startup.S (gdt): Moved from here ...
26891 * kern/i386/realmode.S (gdt)... to here.
26892 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
26893 * kern/i386/realmode.S (prot_to_real)... to here.
26894
26895 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
26896 `kern/i386/realmode.S'.
26897
26898 2007-10-17 Robert Millan <rmh@aybabtu.com>
26899
26900 * include/grub/i386/loader.h: New file.
26901
26902 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
26903 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
26904 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
26905 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
26906 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
26907 * include/grub/i386/loader.h (grub_linux_prot_size)
26908 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
26909 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
26910 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
26911 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
26912
26913 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
26914
26915 2007-10-15 Robert Millan <rmh@aybabtu.com>
26916
26917 * normal/misc.c (grub_normal_print_device_info): Do not probe for
26918 filesystem when dev->disk is unset.
26919 Do probe for filesystem even when dev->disk->has_partitions is set.
26920 In case a filesystem is found, always report it.
26921 In case it isn't, if dev->disk->has_partitions is set, report that
26922 a partition table was found instead of reporting that no filesystem
26923 could be identified.
26924
26925 2007-10-12 Robert Millan <rmh@aybabtu.com>
26926
26927 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
26928 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
26929
26930 * include/grub/types.h (grub_host_to_target16): New macro.
26931 (grub_host_to_target32): Likewise.
26932 (grub_host_to_target64): Likewise.
26933 (grub_target_to_host16): Likewise.
26934 (grub_target_to_host32): Likewise.
26935 (grub_target_to_host64): Likewise.
26936
26937 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
26938 Renamed from to ...
26939 (GRUB_MOD_ALIGN): ...this. Update all users.
26940
26941 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
26942 grub_host_to_target32.
26943 Replace grub_be_to_cpu32 with grub_target_to_host32.
26944 (load_modules): Likewise.
26945 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
26946 Replace grub_be_to_cpu32 with grub_target_to_host32.
26947 Replace grub_cpu_to_be16 with grub_host_to_target16.
26948 Replace grub_cpu_to_be32 grub_host_to_target32.
26949
26950 2007-10-12 Robert Millan <rmh@aybabtu.com>
26951
26952 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
26953 * util/elf/grub-mkimage.c: ... here.
26954
26955 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
26956 `util/powerpc/ieee1275/grub-mkimage.c'.
26957
26958 2007-10-07 Robert Millan <rmh@aybabtu.com>
26959
26960 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
26961 and make it easier to figure out.
26962 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
26963 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
26964 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
26965 leave us with less than HEAP_MIN_SIZE total heap.
26966 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
26967
26968 2007-10-03 Robert Millan <rmh@aybabtu.com>
26969
26970 * include/grub/i386/io.h: New file.
26971 * commands/i386/pc/play.c (inb): Removed.
26972 (outb): Removed.
26973 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
26974 with grub_outb().
26975 * term/i386/pc/serial.c (inb): Removed.
26976 (outb): Removed.
26977 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
26978 with grub_outb().
26979 * term/i386/pc/vga.c (inb): Removed.
26980 (outb): Removed.
26981 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
26982 with grub_outb().
26983
26984 2007-10-02 Robert Millan <rmh@aybabtu.com>
26985
26986 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
26987 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26988 Reported by Marcin Kurek.
26989
26990 2007-09-07 Robert Millan <rmh@aybabtu.com>
26991
26992 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
26993 SmartFirmware version updates (as released by Sven Luther), and avoid
26994 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
26995 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
26996 known broken.
26997
26998 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
26999
27000 From Hitoshi Ozeki:
27001 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
27002 when merging two regions.
27003
27004 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
27005
27006 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
27007 * normal/completion.c (grub_normal_do_completion): Likewise.
27008 Reported by Hitoshi Ozeki.
27009
27010 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
27011
27012 Do not use devices at boot in chainloading.
27013
27014 * loader/i386/pc/chainloader.c (boot_drive): New variable.
27015 (boot_part_addr): Likewise.
27016 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
27017 with BOOT_DRIVE and BOOT_PART_ADDR.
27018 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
27019 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
27020
27021 2007-08-29 Robert Millan <rmh@aybabtu.com>
27022
27023 Patch from Simon Peter <dn.tlp@gmx.net>:
27024 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
27025 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
27026 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
27027 util/i386/pc/grub-setup.c_DEPENDENCIES.
27028 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
27029 util/grub-probe.c_DEPENDENCIES.
27030 * conf/powerpc-ieee1275.rmk: Likewise.
27031
27032 2007-08-28 Robert Millan <rmh@aybabtu.com>
27033
27034 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
27035 to tell grub-mkdevicemap how to name devices.
27036 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
27037 feature).
27038
27039 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
27040 util/i386/get_disk_name.c.
27041 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
27042 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
27043 util/ieee1275/get_disk_name.c.
27044
27045 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
27046
27047 * DISTLIST: Add util/i386/get_disk_name.c and
27048 util/ieee1275/get_disk_name.c.
27049
27050 * util/grub-mkdevicemap.c: Replace device naming logic with
27051 grub_util_get_disk_name() calls.
27052
27053 2007-08-20 Robert Millan <rmh@aybabtu.com>
27054
27055 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
27056 (so that it works for both plural and singular quantities).
27057
27058 2007-08-05 Robert Millan <rmh@aybabtu.com>
27059
27060 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
27061 so that [xz] isn't taken into account when determining order.
27062
27063 2007-08-02 Marco Gerards <marco@gnu.org>
27064
27065 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
27066 `include/multiboot2.h', `include/grub/elfload.h',
27067 `include/multiboot.h', `include/grub/multiboot.h',
27068 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
27069 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
27070 `kern/elf.c', `loader/multiboot_loader.c',
27071 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
27072 `loader/i386/pc/multiboot2.c',
27073 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
27074 `util/i386/pc/grub-mkrescue.in'. Remove
27075 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
27076 `include/grub/i386/pc/util/biosdisk.h' and
27077 `include/grub/powerpc/ieee1275/multiboot.h'.
27078
27079 2007-08-02 Bean <bean123ch@gmail.com>
27080
27081 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
27082 (ntfs_mod_SOURCES): New variable.
27083 (ntfs_mod_CFLAGS): Likewise.
27084 (ntfs_mod_LDFLAGS): Likewise.
27085
27086 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
27087 (grub_probe_SOURCES): Likewise.
27088 (grub_emu_SOURCES): Likewise.
27089
27090 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
27091 (grub_emu_SOURCES): Likewise.
27092
27093 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
27094 (grub_emu_SOURCES): Likewise.
27095
27096 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
27097
27098 * fs/ntfs.c: New file.
27099
27100 2007-08-02 Bean <bean123ch@gmail.com>
27101
27102 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
27103
27104 * file.h (grub_file): Likewise.
27105
27106 * fshelp.h (grub_fshelp_read_file): Likewise.
27107
27108 * util/i386/pc/grub-setup.c (setup): Likewise.
27109 (save_first_sector): Likewise.
27110 (save_blocklists): Likewise.
27111
27112 * fs/affs.c (grub_affs_read_file): Likewise.
27113
27114 * fs/ext2.c (grub_ext2_read_file): Likewise.
27115
27116 * fs/fat.c (grub_fat_read_data): Likewise.
27117
27118 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
27119
27120 * fs/hfs.c (grub_hfs_read_file): Likewise.
27121
27122 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
27123
27124 * fs/jfs.c (grub_jfs_read_file): Likewise.
27125
27126 * fs/minix.c (grub_minix_read_file): Likewise.
27127
27128 * fs/sfs.c (grub_sfs_read_file): Likewise.
27129
27130 * fs/ufs.c (grub_ufs_read_file): Likewise.
27131
27132 * fs/xfs.c (grub_xfs_read_file): Likewise.
27133
27134 * command/blocklist.c (read_blocklist): Likewise.
27135 (print_blocklist): Likewise.
27136
27137 2007-08-02 Marco Gerards <marco@gnu.org>
27138
27139 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
27140 `util/hostfs.c'.
27141
27142 * disk/host.c: New file.
27143
27144 * util/hostfs.c: Likewise.
27145
27146 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
27147 return `GRUB_ERR_BAD_FS'.
27148 * fs/sfs.c (grub_sfs_mount): Likewise.
27149 * fs/xfs.c (grub_xfs_mount): Likewise.
27150
27151 * include/grub/disk.h (enum grub_disk_dev_id): Add
27152 `GRUB_DISK_DEVICE_HOST_ID'.
27153
27154 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
27155
27156 2007-07-24 Jerone Young <jerone@gmail.com>
27157
27158 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
27159 modules for compilation.
27160 * conf/powerpc-ieee1275.rmk: Likewise.
27161
27162 * include/multiboot.h: Move multiboot definitions to one file. Rename
27163 many definitions to not get grub specific.
27164 * include/multiboot2.h: Create header with multiboot 2 definitions.
27165 * include/grub/multiboot.h: Header for grub specific function
27166 prototypes and definitions.
27167 * include/grub/multiboot2.h: Likewise.
27168 * include/grub/multiboot_loader.h: Likewise.
27169 * include/grub/i386/pc/multiboot.h: Removed.
27170 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
27171
27172 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
27173 and 2 to allow for one multiboot and module commands.
27174 * loader/multiboot2.c: Add multiboot2 functionality.
27175 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
27176 and definition names.
27177 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
27178 2 functions.
27179 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
27180 ieee1275 specific multiboot2 code.
27181
27182 * kern/i386/pc/startup.S: Change headers and definition names for
27183 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
27184
27185 2007-07-22 Robert Millan <rmh@aybabtu.com>
27186
27187 * geninitheader.sh: Process file specified in first parameter rather
27188 than hardcoding grub_modules_init.lst.
27189 * geninit.sh: Likewise. Also, construct header name dynamically rather
27190 than hardcoding grub_modules_init.h.
27191
27192 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
27193 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
27194 grub_probe_init.[ch] and grub_setup_init.[ch].
27195
27196 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
27197 grub_modules_init.h with grub_emu_init.h.
27198 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
27199 grub_probe_init.[ch] files.
27200 * conf/i386-efi.rmk: Likewise.
27201 * conf/i386-pc.rmk: Likewise.
27202 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
27203 grub_setup_init.[ch] files.
27204
27205 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
27206 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
27207 to initialize modules rather than a list of hardcoded functions.
27208 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
27209 grub_init_all() to initialize modules rather than a list of hardcoded
27210 functions.
27211
27212 2007-07-22 Robert Millan <rmh@aybabtu.com>
27213
27214 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
27215 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
27216
27217 2007-07-22 Robert Millan <rmh@aybabtu.com>
27218
27219 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
27220 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
27221 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
27222 flag when running on SmartFirmware.
27223 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
27224 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
27225 was set.
27226
27227 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
27228 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
27229 rather than decreasing it.
27230
27231 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
27232 there's not enough space to do it, fail in the same way as when it
27233 can't be done because there are no partitions.
27234
27235 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
27236 when nvsetenv failed.
27237
27238 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
27239
27240 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
27241 because this rule is automatically generated.
27242 (grub-mkrescue): Removed for the same reason as above.
27243
27244 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
27245
27246 Migrate to GNU General Public License Version 3.
27247
27248 * COPYING: Replaced with the plain text version of GPLv3.
27249
27250 * config.guess: Updated from gnulib.
27251 * config.sub: Likewise.
27252
27253 * geninit.sh: Output a GPLv3 copyright notice.
27254 * geninitheader.sh: Likewise.
27255 * genmodsrc.sh: Likewise.
27256 * gensymlist.sh.in: Likewise.
27257
27258 * boot/i386/pc/boot.S: Upgraded to GPLv3.
27259 * boot/i386/pc/diskboot.S: Likewise.
27260 * boot/i386/pc/pxeboot.S: Likewise.
27261 * commands/blocklist.c: Likewise.
27262 * commands/boot.c: Likewise.
27263 * commands/cat.c: Likewise.
27264 * commands/cmp.c: Likewise.
27265 * commands/configfile.c: Likewise.
27266 * commands/echo.c: Likewise.
27267 * commands/help.c: Likewise.
27268 * commands/ls.c: Likewise.
27269 * commands/search.c: Likewise.
27270 * commands/terminal.c: Likewise.
27271 * commands/test.c: Likewise.
27272 * commands/videotest.c: Likewise.
27273 * commands/i386/cpuid.c: Likewise.
27274 * commands/i386/pc/halt.c: Likewise.
27275 * commands/i386/pc/play.c: Likewise.
27276 * commands/i386/pc/reboot.c: Likewise.
27277 * commands/i386/pc/vbeinfo.c: Likewise.
27278 * commands/i386/pc/vbetest.c: Likewise.
27279 * commands/ieee1275/halt.c: Likewise.
27280 * commands/ieee1275/reboot.c: Likewise.
27281 * commands/ieee1275/suspend.c: Likewise.
27282 * disk/loopback.c: Likewise.
27283 * disk/lvm.c: Likewise.
27284 * disk/raid.c: Likewise.
27285 * disk/efi/efidisk.c: Likewise.
27286 * disk/i386/pc/biosdisk.c: Likewise.
27287 * disk/ieee1275/ofdisk.c: Likewise.
27288 * font/manager.c: Likewise.
27289 * fs/affs.c: Likewise.
27290 * fs/ext2.c: Likewise.
27291 * fs/fat.c: Likewise.
27292 * fs/fshelp.c: Likewise.
27293 * fs/hfs.c: Likewise.
27294 * fs/hfsplus.c: Likewise.
27295 * fs/iso9660.c: Likewise.
27296 * fs/jfs.c: Likewise.
27297 * fs/minix.c: Likewise.
27298 * fs/sfs.c: Likewise.
27299 * fs/ufs.c: Likewise.
27300 * fs/xfs.c: Likewise.
27301 * hello/hello.c: Likewise.
27302 * include/grub/acorn_filecore.h: Likewise.
27303 * include/grub/arg.h: Likewise.
27304 * include/grub/bitmap.h: Likewise.
27305 * include/grub/boot.h: Likewise.
27306 * include/grub/cache.h: Likewise.
27307 * include/grub/device.h: Likewise.
27308 * include/grub/disk.h: Likewise.
27309 * include/grub/dl.h: Likewise.
27310 * include/grub/elfload.h: Likewise.
27311 * include/grub/env.h: Likewise.
27312 * include/grub/err.h: Likewise.
27313 * include/grub/file.h: Likewise.
27314 * include/grub/font.h: Likewise.
27315 * include/grub/fs.h: Likewise.
27316 * include/grub/fshelp.h: Likewise.
27317 * include/grub/gzio.h: Likewise.
27318 * include/grub/hfs.h: Likewise.
27319 * include/grub/kernel.h: Likewise.
27320 * include/grub/loader.h: Likewise.
27321 * include/grub/lvm.h: Likewise.
27322 * include/grub/misc.h: Likewise.
27323 * include/grub/mm.h: Likewise.
27324 * include/grub/net.h: Likewise.
27325 * include/grub/normal.h: Likewise.
27326 * include/grub/parser.h: Likewise.
27327 * include/grub/partition.h: Likewise.
27328 * include/grub/pc_partition.h: Likewise.
27329 * include/grub/raid.h: Likewise.
27330 * include/grub/rescue.h: Likewise.
27331 * include/grub/script.h: Likewise.
27332 * include/grub/setjmp.h: Likewise.
27333 * include/grub/symbol.h: Likewise.
27334 * include/grub/term.h: Likewise.
27335 * include/grub/terminfo.h: Likewise.
27336 * include/grub/tparm.h: Likewise.
27337 * include/grub/types.h: Likewise.
27338 * include/grub/video.h: Likewise.
27339 * include/grub/efi/api.h: Likewise.
27340 * include/grub/efi/chainloader.h: Likewise.
27341 * include/grub/efi/console.h: Likewise.
27342 * include/grub/efi/console_control.h: Likewise.
27343 * include/grub/efi/disk.h: Likewise.
27344 * include/grub/efi/efi.h: Likewise.
27345 * include/grub/efi/pe32.h: Likewise.
27346 * include/grub/efi/time.h: Likewise.
27347 * include/grub/i386/linux.h: Likewise.
27348 * include/grub/i386/setjmp.h: Likewise.
27349 * include/grub/i386/types.h: Likewise.
27350 * include/grub/i386/efi/kernel.h: Likewise.
27351 * include/grub/i386/efi/loader.h: Likewise.
27352 * include/grub/i386/efi/time.h: Likewise.
27353 * include/grub/i386/pc/biosdisk.h: Likewise.
27354 * include/grub/i386/pc/boot.h: Likewise.
27355 * include/grub/i386/pc/chainloader.h: Likewise.
27356 * include/grub/i386/pc/console.h: Likewise.
27357 * include/grub/i386/pc/init.h: Likewise.
27358 * include/grub/i386/pc/kernel.h: Likewise.
27359 * include/grub/i386/pc/loader.h: Likewise.
27360 * include/grub/i386/pc/memory.h: Likewise.
27361 * include/grub/i386/pc/multiboot.h: Likewise.
27362 * include/grub/i386/pc/serial.h: Likewise.
27363 * include/grub/i386/pc/time.h: Likewise.
27364 * include/grub/i386/pc/vbe.h: Likewise.
27365 * include/grub/i386/pc/vbeblit.h: Likewise.
27366 * include/grub/i386/pc/vbefill.h: Likewise.
27367 * include/grub/i386/pc/vbeutil.h: Likewise.
27368 * include/grub/i386/pc/vga.h: Likewise.
27369 * include/grub/ieee1275/ieee1275.h: Likewise.
27370 * include/grub/ieee1275/ofdisk.h: Likewise.
27371 * include/grub/powerpc/libgcc.h: Likewise.
27372 * include/grub/powerpc/setjmp.h: Likewise.
27373 * include/grub/powerpc/types.h: Likewise.
27374 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
27375 * include/grub/powerpc/ieee1275/console.h: Likewise.
27376 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
27377 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
27378 * include/grub/powerpc/ieee1275/loader.h: Likewise.
27379 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
27380 * include/grub/powerpc/ieee1275/time.h: Likewise.
27381 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
27382 * include/grub/sparc64/libgcc.h: Likewise.
27383 * include/grub/sparc64/setjmp.h: Likewise.
27384 * include/grub/sparc64/types.h: Likewise.
27385 * include/grub/sparc64/ieee1275/console.h: Likewise.
27386 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
27387 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
27388 * include/grub/sparc64/ieee1275/time.h: Likewise.
27389 * include/grub/util/biosdisk.h: Likewise.
27390 * include/grub/util/getroot.h: Likewise.
27391 * include/grub/util/lvm.h: Likewise.
27392 * include/grub/util/misc.h: Likewise.
27393 * include/grub/util/raid.h: Likewise.
27394 * include/grub/util/resolve.h: Likewise.
27395 * io/gzio.c: Likewise.
27396 * kern/device.c: Likewise.
27397 * kern/disk.c: Likewise.
27398 * kern/dl.c: Likewise.
27399 * kern/elf.c: Likewise.
27400 * kern/env.c: Likewise.
27401 * kern/err.c: Likewise.
27402 * kern/file.c: Likewise.
27403 * kern/fs.c: Likewise.
27404 * kern/loader.c: Likewise.
27405 * kern/main.c: Likewise.
27406 * kern/misc.c: Likewise.
27407 * kern/mm.c: Likewise.
27408 * kern/parser.c: Likewise.
27409 * kern/partition.c: Likewise.
27410 * kern/rescue.c: Likewise.
27411 * kern/term.c: Likewise.
27412 * kern/efi/efi.c: Likewise.
27413 * kern/efi/init.c: Likewise.
27414 * kern/efi/mm.c: Likewise.
27415 * kern/i386/dl.c: Likewise.
27416 * kern/i386/efi/init.c: Likewise.
27417 * kern/i386/efi/startup.S: Likewise.
27418 * kern/i386/pc/init.c: Likewise.
27419 * kern/i386/pc/lzo1x.S: Likewise.
27420 * kern/i386/pc/startup.S: Likewise.
27421 * kern/ieee1275/ieee1275.c: Likewise.
27422 * kern/powerpc/cache.S: Likewise.
27423 * kern/powerpc/dl.c: Likewise.
27424 * kern/powerpc/ieee1275/cmain.c: Likewise.
27425 * kern/powerpc/ieee1275/crt0.S: Likewise.
27426 * kern/powerpc/ieee1275/init.c: Likewise.
27427 * kern/powerpc/ieee1275/openfw.c: Likewise.
27428 * kern/sparc64/cache.S: Likewise.
27429 * kern/sparc64/dl.c: Likewise.
27430 * kern/sparc64/ieee1275/init.c: Likewise.
27431 * kern/sparc64/ieee1275/openfw.c: Likewise.
27432 * loader/efi/chainloader.c: Likewise.
27433 * loader/efi/chainloader_normal.c: Likewise.
27434 * loader/i386/efi/linux.c: Likewise.
27435 * loader/i386/efi/linux_normal.c: Likewise.
27436 * loader/i386/pc/chainloader.c: Likewise.
27437 * loader/i386/pc/chainloader_normal.c: Likewise.
27438 * loader/i386/pc/linux.c: Likewise.
27439 * loader/i386/pc/linux_normal.c: Likewise.
27440 * loader/i386/pc/multiboot.c: Likewise.
27441 * loader/i386/pc/multiboot_normal.c: Likewise.
27442 * loader/powerpc/ieee1275/linux.c: Likewise.
27443 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
27444 * normal/arg.c: Likewise.
27445 * normal/cmdline.c: Likewise.
27446 * normal/command.c: Likewise.
27447 * normal/completion.c: Likewise.
27448 * normal/execute.c: Likewise.
27449 * normal/function.c: Likewise.
27450 * normal/lexer.c: Likewise.
27451 * normal/main.c: Likewise.
27452 * normal/menu.c: Likewise.
27453 * normal/menu_entry.c: Likewise.
27454 * normal/misc.c: Likewise.
27455 * normal/parser.y: Likewise.
27456 * normal/script.c: Likewise.
27457 * normal/i386/setjmp.S: Likewise.
27458 * normal/powerpc/setjmp.S: Likewise.
27459 * normal/sparc64/setjmp.S: Likewise.
27460 * partmap/acorn.c: Likewise.
27461 * partmap/amiga.c: Likewise.
27462 * partmap/apple.c: Likewise.
27463 * partmap/gpt.c: Likewise.
27464 * partmap/pc.c: Likewise.
27465 * partmap/sun.c: Likewise.
27466 * term/gfxterm.c: Likewise.
27467 * term/terminfo.c: Likewise.
27468 * term/efi/console.c: Likewise.
27469 * term/i386/pc/console.c: Likewise.
27470 * term/i386/pc/serial.c: Likewise.
27471 * term/i386/pc/vesafb.c: Likewise.
27472 * term/i386/pc/vga.c: Likewise.
27473 * term/ieee1275/ofconsole.c: Likewise.
27474 * util/biosdisk.c: Likewise.
27475 * util/console.c: Likewise.
27476 * util/genmoddep.c: Likewise.
27477 * util/getroot.c: Likewise.
27478 * util/grub-emu.c: Likewise.
27479 * util/grub-mkdevicemap.c: Likewise.
27480 * util/grub-probe.c: Likewise.
27481 * util/lvm.c: Likewise.
27482 * util/misc.c: Likewise.
27483 * util/raid.c: Likewise.
27484 * util/resolve.c: Likewise.
27485 * util/update-grub.in: Likewise.
27486 * util/update-grub_lib.in: Likewise.
27487 * util/grub.d/00_header.in: Likewise.
27488 * util/grub.d/10_hurd.in: Likewise.
27489 * util/grub.d/10_linux.in: Likewise.
27490 * util/i386/efi/grub-install.in: Likewise.
27491 * util/i386/efi/grub-mkimage.c: Likewise.
27492 * util/i386/pc/grub-install.in: Likewise.
27493 * util/i386/pc/grub-mkimage.c: Likewise.
27494 * util/i386/pc/grub-mkrescue.in: Likewise.
27495 * util/i386/pc/grub-setup.c: Likewise.
27496 * util/i386/pc/misc.c: Likewise.
27497 * util/powerpc/ieee1275/grub-install.in: Likewise.
27498 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
27499 * util/powerpc/ieee1275/misc.c: Likewise.
27500 * video/bitmap.c: Likewise.
27501 * video/video.c: Likewise.
27502 * video/i386/pc/vbe.c: Likewise.
27503 * video/i386/pc/vbeblit.c: Likewise.
27504 * video/i386/pc/vbefill.c: Likewise.
27505 * video/i386/pc/vbeutil.c: Likewise.
27506 * video/readers/tga.c: Likewise.
27507
27508 2007-07-02 Robert Millan <rmh@aybabtu.com>
27509
27510 * conf/i386-efi.rmk: Replace obsolete reference to
27511 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
27512 with util/getroot.c.
27513 * conf/powerpc-ieee1275.rmk: Likewise.
27514 * conf/sparc64-ieee1275.rmk: Likewise.
27515
27516 * util/grub-emu.c (main): Fix unchecked pointer handling.
27517
27518 2007-07-02 Robert Millan <rmh@aybabtu.com>
27519
27520 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
27521 invocation to fail, in order to support partition-less media.
27522
27523 * util/i386/pc/grub-install.in: Likewise.
27524
27525 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
27526 which fs or partmap modules are needed (akin to its sister scripts).
27527
27528 Also use grub-probe to get rid of unportable /proc/mounts check.
27529
27530 Print the same informational message that the other scripts do, before
27531 exiting.
27532
27533 2007-06-23 Robert Millan <rmh@aybabtu.com>
27534
27535 * util/update-grub_lib.in (font_path): New function. Determine whether
27536 a font file can be found and, if so, echo the GRUB path to it.
27537
27538 * util/update-grub.in: Handle multiple terminals depending on user
27539 input, platform availability and font file presence. Propagate
27540 variables of our findings to /etc/grub.d/ children.
27541
27542 * util/grub.d/00_header.in: Handle multiple terminals, based on
27543 environment setup by update-grub.
27544
27545 2007-06-23 Robert Millan <rmh@aybabtu.com>
27546
27547 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
27548
27549 2007-06-21 Robert Millan <rmh@aybabtu.com>
27550
27551 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
27552 indicate end of data section in kernel image.
27553 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
27554 GRUB_KERNEL_MACHINE_DATA_END.
27555
27556 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
27557 space for it.
27558 * kern/i386/efi/startup.S: Likewise.
27559
27560 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
27561 during image generation. Implement --prefix option to override this
27562 patch.
27563 * util/i386/efi/grub-mkimage.c: Likewise.
27564
27565 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
27566 code to make path relative to its root into a separate function.
27567
27568 * util/i386/pc/grub-install.in: Use newly provided
27569 make_system_path_relative_to_its_root() to convert ${grubdir}, then
27570 pass the result to grub-install --prefix.
27571
27572 2007-06-13 Robert Millan <rmh@aybabtu.com>
27573
27574 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
27575 DEFAULT_DEVICE_MAP.
27576 * util/grub-emu.c: Use above definitions from misc.h instead of
27577 defining them.
27578 * util/grub-mkdevicemap.c: Likewise.
27579 * util/i386/pc/grub-setup.c: Likewise.
27580 * util/grub-probe.c: Likewise.
27581 (probe): Abort with grub_util_error() when either
27582 grub_guess_root_device or grub_util_get_grub_dev fails.
27583
27584 2007-06-12 Robert Millan <rmh@aybabtu.com>
27585
27586 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
27587 "pager" assignment.
27588 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
27589 "pcdata".
27590 * util/grub-probe.c (probe): Likewise for "drive_name".
27591
27592 2007-06-11 Robert Millan <rmh@aybabtu.com>
27593
27594 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
27595 not just the cdrom one.
27596
27597 2007-06-11 Robert Millan <rmh@aybabtu.com>
27598
27599 * util/i386/pc/grub-mkrescue.in: Add "set -e".
27600 Add --pkglibdir=DIR option to override pkglibdir.
27601 Mention --image-type=TYPE in help output.
27602 Fix --grub-mkimage (it was a no-op).
27603 Abort gracefully when no parameter is given.
27604
27605 2007-06-11 Robert Millan <rmh@aybabtu.com>
27606
27607 * util/i386/pc/grub-mkrescue.in: New file.
27608 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
27609 * Makefile.in: Handle bin_SCRIPTS.
27610
27611 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
27612
27613 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
27614 list of video modes.
27615
27616 2007-06-06 Robert Millan <rmh@aybabtu.com>
27617
27618 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
27619 file doesn't exist, or if it is in a filesystem grub can't read.
27620
27621 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
27622 not abort if GRUB_DRIVE could not be defined. Rearrange generated
27623 header comment to fit in 80 columns when the variables are resolved.
27624
27625 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
27626 could be identified by update-grub. Remove redundant check for
27627 unifont.pff existence (since convert_system_path_to_grub_path now
27628 handles that).
27629
27630 2007-06-04 Robert Millan <rmh@aybabtu.com>
27631
27632 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
27633
27634 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
27635
27636 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
27637
27638 2007-06-04 Robert Millan <rmh@aybabtu.com>
27639
27640 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
27641
27642 * include/grub/partition.h: Declare grub_apple_partition_map_init and
27643 grub_apple_partition_map_fini.
27644
27645 * util/biosdisk.c
27646 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
27647 to access >2 TiB disks).
27648
27649 Print disk->total_sectors with %llu instead of %lu, since this
27650 variable is always 64-bit (prevents wrong disk size from being displayed
27651 on either >2 TiB disk or big-endian CPU).
27652
27653 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
27654 into a generic case that supports all (sane) partition maps.
27655
27656 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
27657 breaks big-endian.
27658
27659 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
27660 and grub_apple_partition_map_fini() after that.
27661
27662 2007-06-01 Robert Millan <rmh@aybabtu.com>
27663
27664 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
27665
27666 * util/grub.d/00_header.in: Only enable gfxterm when
27667 convert_system_path_to_grub_path() succeeds.
27668
27669 2007-05-20 Robert Millan <rmh@aybabtu.com>
27670
27671 * util/update-grub_lib.in: New file.
27672 * DISTLIST: Add update-grub_lib.in.
27673 * conf/common.rmk: Generate update-grub_lib and install it in
27674 $(lib_DATA).
27675 * Makefile.in: Add install routine for $(lib_DATA).
27676
27677 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
27678 function provided by update-grub_lib to support arbitrary paths of
27679 unifont.pff.
27680 * util/update-grub.in: Use convert_system_path_to_grub_path() to
27681 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
27682
27683 2007-05-19 Robert Millan <rmh@aybabtu.com>
27684
27685 * commands/i386/cpuid.c: New module.
27686 * DISTLIST: Add it.
27687 * conf/i386-efi.rmk: Enable cpuid.mod.
27688 * conf/i386-pc.rmk: Likewise.
27689
27690 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
27691
27692 * kern/disk.c (grub_disk_read): Check return value of
27693 grub_realloc().
27694
27695 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
27696
27697 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
27698 arrays.
27699 * disk/raid.c (grub_raid_open): Likewise.
27700
27701 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
27702
27703 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
27704 stack instead of on the heap.
27705
27706 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
27707 before doing a read on it.
27708
27709 * configure.ac: Only use -fno-stack-protector for the target
27710 environment.
27711
27712 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
27713
27714 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
27715 __attribute_ ((unused)) to mode_type argument.
27716
27717 * util/getroot.c (grub_guess_root_device): Fix #endif.
27718
27719 * kern/misc.c (memcmp): Fix prototype.
27720
27721 * include/grub/partition.h [GRUB_UTIL]
27722 (grub_gpt_partition_map_init): Add prototype.
27723 (grub_gpt_partition_map_fini): Likewise.
27724
27725 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
27726 at the right place.
27727
27728 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
27729 (grub_fat_read_data): Likewise.
27730 (grub_fat_find_dir): Likewise.
27731
27732 * font/manager.c (find_glyph): Make table a const.
27733 (grub_font_get_glyph): Remove bitmap from if statement.
27734
27735 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
27736
27737 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
27738 code, first search for device in /dev/mapper, then in /dev.
27739 (grub_util_get_grub_dev): New function.
27740 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
27741 prototype.
27742 * util/grub-probe.c (probe): Remove check for RAID, call
27743 grub_util_get_grub_dev() instead of
27744 grub_util_biosdisk_get_grub_dev().
27745 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
27746 grub_util_biosdisk_get_grub_dev().
27747 * util/i386/pc/grub-setup.c (main): Likewise.
27748
27749 2007-05-16 Robert Millan <rmh@aybabtu.com>
27750
27751 * DISTLIST: Update for the latest changes.
27752 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
27753 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
27754 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
27755 grub/util/biosdisk.h.
27756 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
27757 grub/util/biosdisk.h.
27758
27759 2007-05-16 Robert Millan <rmh@aybabtu.com>
27760
27761 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
27762
27763 2007-05-16 Robert Millan <rmh@aybabtu.com>
27764
27765 * util/i386/efi/grub-install.in: New.
27766 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
27767 newly added grub-install.
27768 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
27769 include.
27770 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
27771 grub/util/biosdisk.h.
27772 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
27773 grub/util/biosdisk.h.
27774
27775 2007-05-16 Robert Millan <rmh@aybabtu.com>
27776
27777 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
27778 * include/grub/util/biosdisk.h: ... here.
27779 * util/i386/pc/biosdisk.c: Moved to ...
27780 * util/biosdisk.c: ... here.
27781 * util/i386/pc/getroot.c: Moved to ...
27782 * util/getroot.c: ... here.
27783 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
27784 * util/grub-mkdevicemap.c: ... here.
27785 * util/i386/pc/grub-probe.c: Moved to ...
27786 * util/grub-probe.c: ... here.
27787
27788 2007-05-15 Robert Millan <rmh@aybabtu.com>
27789
27790 * util/update-grub.in: Remove duplicated line in grub.cfg header
27791 message.
27792
27793 2007-05-13 Robert Millan <rmh@aybabtu.com>
27794
27795 * util/update-grub.in: Fix a few assumptions about the devices holding
27796 /, /boot and /boot/grub being the same.
27797 * util/grub.d/00_header.in: Likewise.
27798 * util/grub.d/10_hurd.in: Likewise.
27799 * util/grub.d/10_linux.in: Likewise.
27800
27801 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
27802 patterns. Use that to define the `.old' suffix as older than `'.
27803
27804 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
27805
27806 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
27807 the grub.cfg header message.
27808
27809 2007-05-11 Robert Millan <rmh@aybabtu.com>
27810
27811 * util/update-grub.in: Create device.map if it doesn't already exist,
27812 before attempting to run grub-probe.
27813 Check for grub-probe and grub-mkdevicemap with the same code
27814 grub-install is using.
27815 Remove test mode.
27816
27817 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
27818
27819 * Makefile.in: Add the datarootdir autoconf variable.
27820
27821 2007-05-09 Robert Millan <rmh@aybabtu.com>
27822
27823 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
27824 fail gracefully if dev->disk->partition == NULL.
27825
27826 2007-05-07 Robert Millan <rmh@aybabtu.com>
27827
27828 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
27829 determine partition map module.
27830 * util/i386/pc/grub-install.in: Use this feature to decide which
27831 partition module to load, instead of hardcoding pc and gpt.
27832
27833 2007-05-07 Robert Millan <rmh@aybabtu.com>
27834
27835 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
27836 source directory differs from build directory.
27837
27838 2007-05-05 Robert Millan <rmh@aybabtu.com>
27839
27840 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
27841 initialisation.
27842
27843 2007-05-05 Robert Millan <rmh@aybabtu.com>
27844
27845 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
27846
27847 2007-05-05 Robert Millan <rmh@aybabtu.com>
27848
27849 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
27850 command-line arguments via ${GRUB_CMDLINE_LINUX}.
27851
27852 2007-05-05 Robert Millan <rmh@aybabtu.com>
27853
27854 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
27855 (grub_probe_SOURCES): Likewise.
27856 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
27857 GPT and initialize dos_part and bsd_part accordingly.
27858 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
27859 install_bsd_part.
27860 (main): Activate gpt module for use during partition identification,
27861 and deactivate it afterwards.
27862 * util/i386/pc/grub-install.in: Add gpt module to core.img.
27863 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
27864 partition identification, and deactivate it afterwards.
27865
27866 2007-05-05 Robert Millan <rmh@aybabtu.com>
27867
27868 * term/i386/pc/console.c (grub_console_fini): Call
27869 grub_term_set_current() before grub_term_unregister().
27870
27871 2007-05-04 Robert Millan <rmh@aybabtu.com>
27872
27873 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
27874 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
27875 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
27876 and update-grub_DATA.
27877 * conf/common.rmk: Build and install update-grub components.
27878 * conf/common.mk: Regenerate.
27879 * util/update-grub.in: New. Core of update-grub.
27880 * util/grub.d/00_header.in: New. Generates grub.cfg header.
27881 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
27882 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
27883 * util/grub.d/README: New. Document grub.d directory layout.
27884
27885 2007-05-01 Robert Millan <rmh@aybabtu.com>
27886
27887 * util/grub-emu.c: Move initialization functions
27888 grub_util_biosdisk_init() and grub_init_all() before
27889 grub_util_biosdisk_get_grub_dev(), which relies on them.
27890
27891 2007-04-19 Robert Millan <rmh@aybabtu.com>
27892
27893 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
27894 it is used later.
27895
27896 2007-04-18 Jerone Young <jerone@gmail.com>
27897
27898 * kernel/elf.c: Add missing parenthesis for conditional statement
27899 stanza.
27900
27901 2007-04-10 Jerone Young <jerone@gmail.com>
27902
27903 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
27904 continue on and look for device node with real device name.
27905
27906 2007-04-10 Jerone Young <jerone@gmail.com>
27907
27908 * configure.ac: Add argument for autoconf to use transformation
27909 ability.
27910 * Makefile.in: Add autoconf package transformation code.
27911 * util/i386/pc/grub-install.in: Likewise.
27912 * util/powerpc/ieee1275/grub-install.in: Likewise.
27913
27914 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
27915
27916 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
27917 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
27918 (EXT2_REVISION): Likewise.
27919 (EXT2_INODE_SIZE): Likewise.
27920 (struct grub_ext2_block_group): Added a missing member
27921 "used_dirs".
27922 (grub_ext2_read_inode): Divide by the inode size in a superblock
27923 instead of 128 to obtain INODES_PER_BLOCK.
27924 Use the macro EXT2_INODE_SIZE instead of directly using
27925 SBLOCK->INODE_SIZE.
27926
27927 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
27928
27929 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
27930 superblock instead of the structure size to compute an
27931 offset. This fixes the problem that GRUB could not read a
27932 filesystem when inode size is different from 128-byte.
27933
27934 2007-03-05 Marco Gerards <marco@gnu.org>
27935
27936 * normal/main.c (read_config_file): When "menu" is not set, create
27937 an initial context.
27938
27939 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
27940
27941 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
27942 (HEAP_LIMIT): New macro.
27943 (grub_claim_heap): Claim memory up to `heaplimit'.
27944
27945 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
27946
27947 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
27948 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
27949 (_start): Likewise.
27950 (grub_arch_modules_addr): Return address after `_end'.
27951 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
27952 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
27953 (add_segments): Calculate `_end' from phdr size and location.
27954 (ALIGN_UP): Moved to ...
27955 * include/grub/misc.h: here.
27956 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
27957 New macro.
27958 (GRUB_IEEE1275_MODULE_BASE): Removed.
27959
27960 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
27961
27962 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
27963 loop boundary.
27964
27965 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
27966
27967 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
27968 All users updated.
27969 (grub_elf64_load_hook_t): Likewise.
27970 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
27971 debug output.
27972
27973 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
27974
27975 * kern/mm.c: Update copyright.
27976 (grub_mm_debug): Correct syntax error.
27977 (grub_mm_dump_free): New function.
27978 (grub_debug_free): Call `grub_free'.
27979 * include/grub/mm.h: Update copyright.
27980 (grub_mm_dump_free): Add declaration.
27981
27982 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
27983
27984 * include/grub/ieee1275/ieee1275.h: Update copyright.
27985 * kern/powerpc/ieee1275/init.c: Likewise.
27986 * kern/powerpc/ieee1275/openfw.c: Likewise.
27987
27988 * loader/powerpc/ieee1275/linux.c: Likewise.
27989 * include/grub/elfload.h: Likewise.
27990 * kern/elf.c: Likewise.
27991 (grub_elf32_load): Pass `base' and `size' parameters. Update all
27992 callers.
27993 (grub_elf64_load): Likewise.
27994 (grub_elf32_load_segment): Move to a nested function.
27995 (grub_elf64_load_segment): Likewise.
27996
27997 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
27998
27999 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
28000 prototype.
28001 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
28002 (grub_heap_len): Likewise.
28003 (HEAP_SIZE): New macro.
28004 (grub_claim_heap): New function.
28005 (grub_machine_init): Don't claim heap directly. Call
28006 `grub_claim_heap'.
28007 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
28008 (grub_available_iterate): New function.
28009
28010 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
28011
28012 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
28013 * configure.ac: Use it for testing the HOST and TARGET compilers.
28014
28015 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
28016
28017 * Makefile.in (enable_grub_emu): New variable.
28018 * configure.ac (--enable-grub-emu): New option.
28019 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
28020 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
28021 * conf/i386-pc.rmk: Likewise.
28022 * conf/powerpc-ieee1275.rmk: Likewise.
28023 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
28024
28025 2006-12-12 Marco Gerards <marco@gnu.org>
28026
28027 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
28028
28029 * kern/env.c (grub_env_unset): Don't free the member `value' when
28030 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
28031 pointer.
28032
28033 * normal/main.c (current_menu): Removed.
28034 (free_menu): Unset the `menu' environment variable.
28035 (grub_normal_menu_addentry): Make use of the environment variable
28036 `menu', instead of using the global `current_menu'. Allocate
28037 memory for the sourcecode of this entry.
28038 (read_config_file): New argument `nested', changed all callers.
28039 Only in the case of a new context, initialize a new menu. Set the
28040 `menu' environment variable.
28041 (grub_normal_execute): Don't set and unset the environment
28042 variable `menu' here anymore. Only free the menu when leaving the
28043 context.
28044
28045 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
28046 leak.
28047
28048 2006-12-11 Marco Gerards <marco@gnu.org>
28049
28050 * normal/menu_entry.c (run): Fix off by one bug so the last line
28051 is executed. Move the loader check to outside the loop.
28052
28053 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
28054
28055 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
28056
28057 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
28058
28059 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
28060 the number of sectors. Reported by Andrey Shuvikov
28061 <mr_hyro@yahoo.com>.
28062
28063 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
28064
28065 * kern/disk.c (grub_disk_read): When there is a read error, always
28066 try to read only the necessary data.
28067
28068 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
28069 disk/raid.c.
28070 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
28071 prototype.
28072 [GRUB_UTIL] (grub_raid_fini): Likewise.
28073 [GRUB_UTIL] (grub_lvm_init): Likewise.
28074 [GRUB_UTIL] (grub_lvm_fini): Likewise.
28075 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
28076 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
28077 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
28078 and grub_raid_fini().
28079
28080 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
28081
28082 * include/grub/types.h (__unused): Rename to UNUSED.
28083 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
28084 (grub_elf64_size): Likewise.
28085
28086 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
28087
28088 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
28089 grub_error_push and grub_error_pop in the error-handling path.
28090 (grub_elf32_load_segment): Only call grub_file_read with non-zero
28091 length.
28092
28093 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
28094
28095 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
28096 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28097 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28098 (kernel_elf_SOURCES): Likewise.
28099 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
28100 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
28101 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
28102 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
28103 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
28104 (elf_mod_SOURCES): New variable.
28105 (elf_mod_CFLAGS): Likewise.
28106 (elf_mod_LDFLAGS): Likewise.
28107 * include/grub/types.h (__unused): New macro.
28108 * include/grub/elfload.h: New file.
28109 * kern/elf.c: Likewise.
28110 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
28111 (ELF32_LOADMASK): New macro.
28112 (ELF64_LOADMASK): Likewise.
28113 (vmlinux): Removed.
28114 (grub_linux_load32): New function.
28115 (grub_linux_load64): Likewise.
28116 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
28117 Use grub_elf_t instead of grub_file_t.
28118
28119 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
28120
28121 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
28122 `catch_result' to struct set_color_args.
28123
28124 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
28125
28126 * normal/menu.c: Include grub/script.h.
28127 * normal/menu_entry.c: Likewise.
28128 * include/grub/normal.h: Do not include grub/script.h.
28129
28130 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
28131
28132 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
28133
28134 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
28135
28136 * kern/disk.c (grub_disk_open): Print debug messages when opening a
28137 disk.
28138 (grub_disk_close): Print debug messages when closing a disk.
28139 (grub_disk_read): Print debug messages when disk read fails.
28140 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
28141 filesystem type.
28142 * kern/partition.c: Include misc.h.
28143 (grub_partition_iterate): Print debug messages when detecting
28144 partition type.
28145
28146 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
28147
28148 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
28149 is negative.
28150 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
28151
28152 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
28153
28154 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
28155 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
28156
28157 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
28158
28159 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
28160 instead of sizeof(lv). Patch by Michael Guntsche.
28161
28162 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
28163
28164 * disk/lvm.c: Rename VGS to VG_LIST.
28165 (grub_lvm_iterate): Change VGS->LV to VG-LV.
28166 (grub_lvm_open): Likewise.
28167 Thanks to Michael Guntsche for finding this bug.
28168
28169 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
28170
28171 * configure.ac (AC_INIT): Bumped to 1.95.
28172
28173 2006-10-14 Robert Millan <rmh@aybabtu.com>
28174
28175 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
28176 with "/dev/.static/dev/md".
28177
28178 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
28179
28180 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
28181 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
28182 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
28183 DRIVE_NAME are always freed.
28184
28185 * util/i386/pc/biosdisk.c (make_device_name): Add one into
28186 DOS_PART, as a DOS partition is counted from one instead of zero
28187 now. Reported by Robert Millan.
28188
28189 2006-10-14 Robert Millan <rmh@aybabtu.com>
28190
28191 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
28192 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
28193 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
28194 string returned by grub_guess_root_device.
28195 * util/i386/pc/grub-setup.c: Likewise.
28196 * util/i386/pc/grub-probefs.c: Likewise.
28197
28198 * util/i386/pc/grub-probefs.c: Rename to ...
28199 * util/i386/pc/grub-probe.c: ... this.
28200 * DISTLIST: Remove grub-probefs, add grub-probe.
28201 * conf/i386-efi.rmk: Likewise.
28202 * conf/i386-pc.rmk: Likewise.
28203 * util/i386/pc/grub-install.in: Likewise.
28204
28205 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
28206 choose which information we want to print.
28207
28208 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
28209
28210 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
28211 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
28212 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
28213 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
28214 video/readers/tga.c and video/i386/pc/vbeutil.c.
28215
28216 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
28217
28218 Added support for RAID and LVM.
28219
28220 * disk/lvm.c: New file.
28221 * disk/raid.c: Likewise.
28222 * include/grub/lvm.h: Likewise.
28223 * include/grub/raid.h: Likewise.
28224 * include/grub/util/lvm.h: Likewise.
28225 * include/grub/util/raid.h: Likewise.
28226 * util/lvm.c: Likewise.
28227 * util/raid.c: Likewise.
28228
28229 * include/grub/disk.h (grub_disk_dev_id): Add
28230 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
28231 (grub_disk_get_size): New prototype.
28232 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
28233 returns a partition.
28234 (grub_disk_get_size): New function.
28235
28236 * kern/i386/pc/init.c (make_install_device): Copy the prefix
28237 verbatim if grub_install_dos_part is -2.
28238
28239 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
28240 and LVM devices.
28241
28242 * util/i386/pc/grub-setup.c (setup): New argument
28243 MUST_EMBED. Force embedding of GRUB when the argument is
28244 true. Close FILE before returning.
28245 (main): Add support for RAID and LVM.
28246
28247 * conf/common.rmk: Add RAID and LVM modules.
28248 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
28249 util/lvm.c.
28250 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
28251
28252 * kern/misc.c (grub_strstr): New function.
28253 * include/grub/misc.h (grub_strstr): New prototype.
28254
28255 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
28256
28257 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
28258
28259 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
28260
28261 * kern/misc.c (grub_strtoull): Guess the base only if not
28262 specified.
28263
28264 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
28265
28266 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
28267 PowerMac support.
28268
28269 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
28270
28271 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
28272
28273 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
28274 Remove `flags' argument. All callers changed.
28275 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
28276 (IEEE1275_IHANDLE_INVALID): New variable.
28277 (IEEE1275_CELL_INVALID): New variable.
28278 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
28279 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
28280 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
28281 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
28282 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
28283 codes from Open Firmware. All callers updated.
28284 (grub_ieee1275_next_property): Directly return Open Firmware return
28285 code.
28286 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
28287 Standardize error checking from `grub_ieee1275_get_property'.
28288 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
28289 `devalias' to `aliases'. Correct comments. Consolidate error paths.
28290
28291 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
28292
28293 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
28294 `instance_to_package_args' to `instance_to_path_args'.
28295
28296 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
28297 `grub_ieee1275_chosen'.
28298
28299 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
28300 `grub_ieee1275_interpret'.
28301
28302 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
28303
28304 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
28305
28306 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
28307
28308 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
28309 (__cmpdi): Likewise.
28310
28311 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
28312 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
28313 `grub_ssize_t'.
28314
28315 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
28316
28317 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
28318 to type `grub_ssize_t'.
28319 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
28320
28321 2006-09-22 Marco Gerards <marco@gnu.org>
28322
28323 * normal/script.c (grub_script_create_cmdmenu): Skip leading
28324 newlines.
28325
28326 2006-09-22 Marco Gerards <marco@gnu.org>
28327
28328 * commands/echo.c: New file.
28329
28330 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
28331
28332 * conf/common.rmk (echo_mod_SOURCES): New variable.
28333 (echo_mod_CFLAGS): Likewise.
28334 (echo_mod_LDFLAGS): Likewise.
28335
28336 2006-09-22 Marco Gerards <marco@gnu.org>
28337
28338 * normal/main.c (get_line): Malloc memory instead of using
28339 preallocated memory. Removed the arguments `cmdline' and
28340 `max_len'. Updated all callers.
28341
28342 2006-09-22 Marco Gerards <marco@gnu.org>
28343
28344 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
28345 (normal_mod_DEPENDENCIES): Likewise.
28346
28347 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
28348 (normal_mod_DEPENDENCIES): Likewise.
28349
28350 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
28351
28352 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
28353
28354 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
28355 programs.
28356 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
28357 (normal_mod_DEPENDENCIES): Likewise.
28358 * conf/i386-pc.mk: Regenerate.
28359 * conf/i386-efi.mk: Likewise
28360 * conf/common.mk: Likewise.
28361 * conf/powerpc-ieee1275.mk: Likewise.
28362 * conf/sparc64-ieee1275.mk: Likewise.
28363
28364 2006-09-22 Robert Millan <rmh@aybabtu.com>
28365
28366 Sync with i386 version.
28367 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
28368 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
28369
28370 2006-09-21 Robert Millan <rmh@aybabtu.com>
28371
28372 Import from GRUB Legacy (lib/device.c):
28373 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
28374 (init_device_map) [__linux__]: Add support for I2O devices.
28375
28376 2006-09-14 Marco Gerards <marco@gnu.org>
28377
28378 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
28379 `-melf_i386'.
28380
28381 2006-09-14 Robert Millan <rmh@aybabtu.com>
28382
28383 * util/i386/pc/grub-install.in: Skip menu.lst when removing
28384 /boot/grub/*.lst.
28385
28386 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
28387
28388 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
28389 before adding it to device.map.
28390
28391 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
28392
28393 * genmk.rb: Let GCC generate dependencies the first time it
28394 compiles a file; using the -MD option.
28395 * conf/common.mk: Regenerate.
28396 * conf/i386-pc.mk: Likewise.
28397 * conf/i386-efi.mk: Likewise.
28398 * conf/powerpc-ieee1275.mk: Likewise.
28399 * conf/sparc64-ieee1275.mk: Likewise.
28400
28401 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
28402
28403 Move the prototypes of grub_setjmp and grub_longjmp to
28404 cpu/setjmp.h, so that each architecture may specify different
28405 attributes.
28406
28407 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
28408 (grub_longjmp): Likewise.
28409 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
28410 (grub_longjmp): Likewise.
28411 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
28412 (grub_longjmp): Likewise.
28413
28414 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
28415 [!GRUB_UTIL] (grub_longjmp): Removed.
28416
28417 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
28418
28419 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
28420 "color!" method does not return any value.
28421
28422 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
28423
28424 * include/grub/bitmap.h: New file.
28425
28426 * include/grub/i386/pc/vbeutil.h: Likewise.
28427
28428 * video/bitmap.c: Likewise.
28429
28430 * video/readers/tga.c: Likewise.
28431
28432 * video/i386/pc/vbeutil.c: Likewise.
28433
28434 * commands/videotest.c: Code cleanup and updated to reflect to new
28435 video API.
28436
28437 * term/gfxterm.c: Likewise.
28438
28439 * video/video.c: Likewise.
28440
28441 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
28442 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
28443 (bitmap_mod_SOURCES): New entry.
28444 (bitmap_mod_CFLAGS): Likewise.
28445 (bitmap_mod_LDFLAGS): Likewise.
28446 (tga_mod_SOURCES): Likewise.
28447 (tga_mod_CFLAGS): Likewise.
28448 (tga_mod_LDFLAGS): Likewise.
28449
28450 * include/grub/video.h (grub_video_blit_operators): New enum type.
28451 (grub_video_render_target): Changed as forward declaration and moved
28452 actual definition to be video driver specific.
28453 (grub_video_adapter.blit_bitmap): Added blitting operator.
28454 (grub_video_adapter.blit_render_target): Likewise.
28455 (grub_video_blit_bitmap): Likewise.
28456 (grub_video_blit_render_target): Likewise.
28457
28458 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
28459 driver specific render target definition.
28460 (grub_video_vbe_map_rgba): Added driver internal helper.
28461 (grub_video_vbe_unmap_color): Updated to use
28462 grub_video_i386_vbeblit_info.
28463 (grub_video_vbe_get_video_ptr): Likewise.
28464
28465 * include/grub/i386/pc/vbeblit.h
28466 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
28467 grub_video_i386_vbeblit_info.
28468 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
28469 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
28470 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
28471 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
28472 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
28473 (grub_video_i386_vbeblit_index_index): Likewise.
28474 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
28475 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
28476 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
28477 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
28478 operator.
28479 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
28480 operator.
28481
28482 * video/i386/pc/vbeblit.c: Updated to reflect changes on
28483 include/grub/i386/pc/vbeblit.h.
28484
28485 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
28486 Updated to use grub_video_i386_vbeblit_info.
28487 (grub_video_i386_vbefill_R8G8B8): Likewise.
28488 (grub_video_i386_vbefill_index): Likewise.
28489 (grub_video_i386_vbefill): Added generic filler.
28490
28491 * video/i386/pc/vbefill.c: Updated to reflect changes on
28492 include/grub/i386/pc/vbefill.h.
28493
28494 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
28495 grub_video_i386_vbeblit_info.
28496 (grub_video_vbe_unmap_color): Likewise.
28497 (grub_video_vbe_blit_glyph): Likewise.
28498 (grub_video_vbe_scroll): Likewise.
28499 (grub_video_vbe_draw_pixel): Removed function.
28500 (grub_video_vbe_get_pixel): Likewise.
28501 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
28502 updated code to use it.
28503 (common_blitter): Added common blitter for render target and bitmap.
28504 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
28505 (grub_video_vbe_blit_render_target): Likewise.
28506
28507 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
28508
28509 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
28510 is in text mode if there is no console control protocol instance
28511 available.
28512
28513 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
28514
28515 * include/grub/video.h: Code cleanup.
28516
28517 * include/grub/i386/pc/vbe.h: Likewise.
28518
28519 * video/i386/pc/vbe.c: Likewise.
28520
28521 * video/i386/pc/vbeblit.c: Likewise.
28522
28523 * video/i386/pc/vbefill.c: Likewise.
28524
28525 * video/video.c: Likewise. Also added more comments.
28526
28527 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
28528
28529 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
28530 (struct grub_biosdisk_dap): Likewise.
28531
28532 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
28533 linkage settings for all functions.
28534
28535 2006-07-12 Marco Gerards <marco@gnu.org>
28536
28537 * configure.ac (--enable-mm-debug): Fix typo.
28538
28539 * genkernsyms.sh.in: Use proper quoting for `CC'.
28540
28541 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
28542
28543 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
28544 (normal_mod_ASFLAGS): Remove "-m32".
28545
28546 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
28547
28548 * util/misc.c: Include config.h.
28549 [!HAVE_MEMALIGN]: Do not include malloc.h.
28550 (grub_memalign): Use posix_memalign, if present. Then, use
28551 memalign, if present. Otherwise, emit an error.
28552
28553 * util/grub-emu.c: Do not include malloc.h.
28554
28555 * include/grub/util/misc.h: Include unistd.h. This is required for
28556 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
28557 D. Eades III <hde@foobar-qux.org>.
28558
28559 * configure.ac (AC_GNU_SOURCE): Added.
28560 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
28561 type.
28562
28563 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
28564
28565 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
28566 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
28567
28568 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
28569
28570 * include/grub/types.h (grub_host_addr_t): Rename to
28571 grub_target_addr_t.
28572 (grub_host_off_t): Rename to grub_target_off_t.
28573 (grub_host_size_t): Rename to grub_target_size_t.
28574 (grub_host_ssize_t): Rename to grub_target_ssize_t.
28575 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
28576
28577 * include/grub/kernel.h (struct grub_module_header): Change type
28578 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
28579 (grub_module_info): Likewise.
28580
28581 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
28582
28583 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
28584 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
28585 Velazquez <jesus.velazquez@gmail.com>.
28586
28587 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
28588
28589 Count partitions from 1 instead of 0 in the string representation
28590 of partitions. Still use 0-based internally.
28591
28592 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
28593 (sun_partition_map_iterate): Use grub_partition_t instead of
28594 struct grub_partition *. Cast DESC->START_CYLINDER to
28595 grub_uint64_t after converting the endian.
28596 (sun_partition_map_probe): Subtract 1 for PARTNUM.
28597 (sun_partition_map_get_name): Add 1 to P->INDEX.
28598
28599 * partmap/pc.c (grub_partition_parse): Subtract 1 for
28600 PCDATA->DOS_PART.
28601 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
28602
28603 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
28604 zero instead of one.
28605 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
28606 (gpt_partition_map_get_name): Add 1 into P->INDEX.
28607
28608 * partmap/apple.c (apple_partition_map_iterate): Change the type
28609 of POS to unsigned.
28610 (apple_partition_map_probe): Subtract 1 for PARTNUM.
28611 (apple_partition_map_get_name): Add 1 into P->INDEX.
28612
28613 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
28614 of POS to unsigned.
28615 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
28616 calculate the offset of a partition.
28617 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
28618 (amiga_partition_map_get_name): Add 1 into P->INDEX.
28619
28620 * partmap/acorn.c (acorn_partition_map_find): Change the type of
28621 SECTOR to grub_disk_addr_t.
28622 (acorn_partition_map_iterate): Likewise.
28623 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
28624 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
28625 top.
28626 (acorn_partition_map_get_name): Add 1 into P->INDEX.
28627
28628 * kern/i386/pc/init.c (make_install_device): Add 1 into
28629 GRUB_INSTALL_DOS_PART.
28630
28631 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
28632 conditional.
28633
28634 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
28635
28636 Clean up the code to support 64-bit addressing in disks and
28637 files. This change is not enough for filesystems yet.
28638
28639 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
28640 type of "start" to grub_uint64_t.
28641 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
28642 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
28643 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
28644 convert addresses.
28645
28646 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
28647 to grub_disk_addr_t.
28648
28649 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
28650 string.
28651
28652 * partmap/pc.c (pc_partition_map_iterate): Likewise.
28653
28654 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
28655 to char *.
28656
28657 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
28658
28659 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
28660
28661 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
28662
28663 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
28664 to grub_off_t, to detect an error from grub_file_seek.
28665 (grub_multiboot_load_elf32): Likewise.
28666
28667 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
28668 maximum unsigned long value when an overflow is detected.
28669 (grub_strtoull): New function.
28670 (grub_divmod64): Likewise.
28671 (grub_lltoa): use grub_divmod64.
28672
28673 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
28674 grub_disk_addr_t.
28675 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
28676 the pointer to next character. Use grub_strtoull instead of
28677 grub_strtoul.
28678 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
28679 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
28680 respectively.
28681
28682 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
28683 return value is signed.
28684 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
28685 test if OFFSET is less than zero, as OFFSET is unsigned now.
28686
28687 * kern/disk.c (struct grub_disk_cache): Change the type of
28688 "sector" to grub_disk_addr_t.
28689 (grub_disk_cache_get_index): Change the type of SECTOR to
28690 grub_disk_addr_t. Calculate the hash with SECTOR casted to
28691 unsigned after shifting.
28692 (grub_disk_cache_invalidate): Change the type of SECTOR to
28693 grub_disk_addr_t.
28694 (grub_disk_cache_unlock): Likewise.
28695 (grub_disk_cache_store): Likewise.
28696 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
28697 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
28698 grub_disk_addr_t and grub_uint64_t, respectively.
28699 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
28700 body, as the value of OFFSET is tweaked by
28701 grub_disk_check_range. Change the types of START_SECTOR, LEN and
28702 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
28703 respectively.
28704 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
28705 body, as the value of OFFSET is tweaked by
28706 grub_disk_check_range. Change the types of LEN and N to
28707 grub_size_t.
28708
28709 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
28710 and "saved_offset" to grub_off_t.
28711 (test_header): Cast BUF to char *.
28712 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
28713 to char *.
28714 (grub_gzio_read): Change the types of OFFSET and SIZE to
28715 grub_off_t and grub_size_t, respectively.
28716
28717 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
28718 Removed.
28719 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
28720 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
28721 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
28722 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
28723 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
28724
28725 * include/grub/types.h (grub_off_t): Unconditionally set to
28726 grub_uint64_t.
28727 (grub_disk_addr_t): Changed to grub_uint64_t.
28728
28729 * include/grub/partition.h (struct grub_partition): Change the
28730 types of "start", "len" and "offset" to grub_disk_addr_t,
28731 grub_uint64_t and grub_disk_addr_t, respectively.
28732 (grub_partition_get_start): Return grub_disk_addr_t.
28733 (grub_partition_get_len): Return grub_uint64_t.
28734
28735 * include/grub/misc.h (grub_strtoull): New prototype.
28736 (grub_divmod64): Likewise.
28737
28738 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
28739 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
28740 grub_off_t, respectively.
28741 All callers and references changed.
28742
28743 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
28744 grub_size_t in "read".
28745 All callers and references changed.
28746
28747 * include/grub/file.h (struct grub_file): Change the types of
28748 "offset" and "size" to grub_off_t and grub_off_t,
28749 respectively. Change the type of SECTOR to grub_disk_addr_t in
28750 "read_hook".
28751 (grub_file_read): Change the type of LEN to grub_size_t.
28752 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
28753 grub_off_t.
28754 (grub_file_size): Return grub_off_t.
28755 (grub_file_tell): Likewise.
28756 All callers and references changed.
28757
28758 * include/grub/disk.h (struct grub_disk_dev): Change the types of
28759 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
28760 "write".
28761 (struct grub_disk): Change the type of "total_sectors" to
28762 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
28763 "read_hook".
28764 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
28765 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
28766 (grub_disk_write): Likewise.
28767 All callers and references changed.
28768
28769 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
28770 char * for grub_strncmp to silence gcc.
28771 (grub_iso9660_mount): Likewise.
28772 (grub_iso9660_mount): Likewise.
28773 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
28774 return statement.
28775 (grub_iso9660_iterate_dir): Likewise.
28776 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
28777
28778 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
28779 LEN to grub_disk_addr_t and grub_size_t, respectively.
28780
28781 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
28782
28783 * fs/jfs.c (grub_jfs_read_file): Likewise.
28784
28785 * fs/minix.c (grub_jfs_read_file): Likewise.
28786
28787 * fs/sfs.c (grub_jfs_read_file): Likewise.
28788
28789 * fs/ufs.c (grub_jfs_read_file): Likewise.
28790
28791 * fs/xfs.c (grub_jfs_read_file): Likewise.
28792
28793 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
28794 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
28795 respectively.
28796
28797 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
28798 BLKNR to -1 instead of returning GRUB_ERRNO.
28799 (grub_ext2_read_file): Change the types of SECTOR and
28800 LEN to grub_disk_addr_t and grub_size_t, respectively.
28801
28802 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
28803 LEN to grub_disk_addr_t and grub_size_t, respectively.
28804
28805 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
28806 grub_file_read.
28807
28808 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
28809 string. Do not cast SECTOR explicitly.
28810
28811 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
28812 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
28813 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
28814 grub_disk_addr_t and grub_size_t, respectively. If the sector is
28815 over 2TB and LBA mode is not supported, raise an error.
28816 (get_safe_sectors): New function.
28817 (grub_biosdisk_read): Use get_safe_sectors.
28818 (grub_biosdisk_write): Likewise.
28819
28820 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
28821 (grub_efidisk_write): Likewise.
28822
28823 * disk/loopback.c (delete_loopback): Cosmetic changes.
28824 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
28825 correctly.
28826 (grub_loopback_open): Likewise.
28827 (grub_loopback_read): Likewise. Also, change the type of POS to
28828 grub_off_t, and fix the usage of grub_memset.
28829
28830 * commands/i386/pc/play.c: Include grub/machine/time.h.
28831
28832 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
28833 print FILE->SIZE.
28834
28835 * commands/configfile.c: Include grub/env.h.
28836
28837 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
28838 GRUB_ERRNO directly instead. Change the type of POS to
28839 grub_off_t. Follow the coding standard.
28840
28841 * commands/blocklist.c: Include grub/partition.h.
28842 (grub_cmd_blocklist): Return an error if the underlying device is
28843 not a disk. Take the starting sector of a partition into account,
28844 if a partition is used.
28845
28846 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
28847 a length field.
28848 (lba_mode): Support 64-bit addresses.
28849 (chs_mode): Likewise.
28850 (copy_buffer): Adapted to the new offsets of a length field and a
28851 segment field.
28852 (blocklist_default_start): Allocate 64-bit space.
28853
28854 * boot/i386/pc/boot.S (force_lba): Removed.
28855 (boot_drive): Moved to under KERNEL_SECTOR.
28856 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
28857 space.
28858 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
28859 is useless.
28860 (lba_mode): Refactored to support a 64-bit address. More size
28861 optimization.
28862 (setup_sectors): Likewise.
28863
28864 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
28865
28866 * DISTLIST: Added include/grub/i386/linux.h. Removed
28867 include/grub/i386/pc/linux.h
28868
28869 * configure.ac (AC_INIT): Bumped to 1.94.
28870
28871 * config.guess: Updated from gnulib.
28872 * config.sub: Likewise.
28873 * install-sh: Likewise.
28874 * mkinstalldirs: Likewise.
28875
28876 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
28877
28878 * conf/common.rmk (grub_modules_init.lst): Depended on
28879 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
28880 MODSRCFILES.
28881
28882 * genmk.rb (PModule::rule): Reverted the previous change.
28883
28884 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
28885
28886 * conf/common.rmk (grub_modules_init.lst): Depends on
28887 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
28888 that the target does not exist before producing.
28889 (grub_modules_init.h): Remove the target before generating.
28890 (grub_emu_init.c): Likewise.
28891
28892 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
28893
28894 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
28895
28896 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
28897 for the target-specific tests. Make sure that we also have the
28898 up-to-date target variables for those tests.
28899
28900 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
28901
28902 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
28903 (PModule::rule): Likewise.
28904
28905 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
28906
28907 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
28908 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
28909 target-specific flags should be prefixed.
28910 (PModule::rule): Likewise.
28911
28912 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
28913
28914 * configure.ac (CMP): Check if cmp is available explicitly.
28915
28916 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
28917
28918 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
28919 (target_cpu): New variable.
28920 (pkglibdir): Use target_cpu instead of host_cpu.
28921
28922 * util/i386/pc/grub-install.in (host_cpu): Removed.
28923 (target_cpu): New variable.
28924 (pkglibdir): Use target_cpu instead of host_cpu.
28925
28926 * util/genmoddep.c: Removed.
28927
28928 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
28929 instead of GRUB_HOST_SIZEOF_VOID_P.
28930 * kern/dl.c: Likewise.
28931
28932 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
28933 ...
28934 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
28935 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
28936 (GRUB_TARGET_SIZEOF_LONG): ... this.
28937 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
28938 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
28939 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
28940 to ...
28941 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
28942 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
28943 (GRUB_TARGET_SIZEOF_LONG): ... this.
28944 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
28945 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
28946 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
28947 to ...
28948 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
28949 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
28950 (GRUB_TARGET_SIZEOF_LONG): ... this.
28951 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
28952 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
28953
28954 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
28955 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
28956 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
28957 instead of GRUB_HOST_SIZEOF_LONG.
28958 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
28959 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
28960 GRUB_CPU_WORDS_BIGENDIAN.
28961 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
28962 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
28963 grub_host_ssize_t.
28964
28965 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
28966 (genmoddep_SOURCES): Likewise.
28967 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
28968 (genmoddep_SOURCES): Likewise.
28969 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
28970 (genmoddep_SOURCES): Likewise.
28971 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
28972 Likewise.
28973 (genmoddep_SOURCES): Likewise.
28974
28975 * genmoddep.awk: New file.
28976
28977 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
28978 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
28979 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
28980 (PModule::rule): Likewise.
28981 (Program::rule): Likewise.
28982 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
28983 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
28984 respectively.
28985
28986 * configure.ac: Rewritten intensively to use host and target
28987 instead of build and host, respectively.
28988
28989 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
28990 (host_cpu): Removed.
28991 (target_cpu): New variable.
28992 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
28993 (BUILD_CC): Removed.
28994 (BUILD_CFLAGS): Likewise.
28995 (BUILD_CPPFLAGS): Likewise.
28996 (TARGET_CC): New variable.
28997 (TARGET_CFLAGS): Likewise.
28998 (TARGET_CPPFLAGS): Likewise.
28999 (TARGET_LDFLAGS): Likewise.
29000 (AWK): Likewise.
29001 (include): Use target_cpu instead of host_cpu.
29002 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
29003
29004 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
29005
29006 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
29007
29008 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
29009 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
29010 field 'false' to 'exec_on_false'.
29011 (grub_script_create_cmdif): Renamed argument names to reflect above
29012 changes.
29013
29014 * normal/execute.c (grub_script_execute_cmdif): Likewise.
29015
29016 * normal/script.c (grub_script_create_cmdif): Likewise.
29017
29018 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
29019
29020 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
29021 top.
29022 (grub_hfsplus_btree_recptr): Likewise.
29023 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
29024 FILEBLOCK both to pass a block number and store next block
29025 number.
29026 (grub_hfsplus_read_block): Rewritten heavily to support an extent
29027 overflow file correctly. Specify errors appropriately, because
29028 fshelp expects that GRUB_ERRNO is set when fails. Reuse
29029 grub_hfsplus_btree_recptr to get the pointer to a found key.
29030 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
29031 is found.
29032
29033 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
29034 linux.mod.
29035 (_linux_mod_SOURCES): New variable.
29036 (_linux_mod_CFLAGS): Likewise.
29037 (_linux_mod_LDFLAGS): Likewise.
29038 (linux_mod_SOURCES): Likewise.
29039 (linux_mod_CFLAGS): Likewise.
29040 (linux_mod_LDFLAGS): Likewise.
29041
29042 * DISTLIST: Added loader/i386/efi/linux.c,
29043 loader/i386/efi/linux_normal.c and
29044 include/grub/i386/efi/loader.h.
29045
29046 * loader/i386/efi/linux.c: New file.
29047 * loader/i386/efi/linux_normal.c: Likewise.
29048 * include/grub/i386/efi/loader.h: Likewise.
29049
29050 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
29051
29052 * commands/blocklist.c: New file.
29053
29054 * DISTLIST: Added commands/blocklist.c.
29055
29056 * term/efi/console.c (grub_console_highlight_color): Use a lighter
29057 color for the background, and a darker color for the foreground.
29058 (grub_console_checkkey): Return READ_KEY.
29059 (grub_console_cls): Set the background to
29060 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
29061
29062 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
29063
29064 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
29065 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
29066
29067 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
29068 prototype.
29069
29070 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
29071 BG. The spec is wrong again.
29072
29073 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
29074 prototype.
29075 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
29076
29077 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
29078 commands/blocklist.c.
29079 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29080
29081 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
29082 (blocklist_mod_SOURCES): New variable.
29083 (blocklist_mod_CFLAGS): Likewise.
29084 (blocklist_mod_LDFLAGS): Likewise.
29085
29086 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
29087
29088 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
29089 duplication.
29090 (lba_mode): Use %eax more intensively to reduce the code size.
29091
29092 2006-05-20 Marco Gerards <marco@gnu.org>
29093
29094 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
29095
29096 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
29097 for `menuentry'.
29098 (script): Accept leading newlines.
29099 (newlines): New rule to describe 0 or more newlines.
29100 (commands): Accept `command' with trailing newline. Fixed the
29101 order in which arguments were passed to `grub_script_add_cmd'.
29102 Accept commands separated by newlines.
29103 (function): Changed to accept newlines.
29104 (menuentry) Rewritten.
29105
29106 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
29107 front of the list, instead of to the end.
29108
29109 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
29110
29111 * util/i386/pc/grub-install.in (bindir): New variable.
29112 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
29113 Shaver <lbgwjl@gmail.com>.
29114
29115 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
29116
29117 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
29118 grub/machine/linux.h
29119 * loader/i386/pc/linux.c: Likewise.
29120
29121 * include/grub/i386/pc/linux.h: Moved to ...
29122 * include/grub/i386/linux.h: ... here.
29123
29124 * include/grub/i386/linux.h (struct linux_kernel_params): New
29125 struct.
29126
29127 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
29128
29129 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
29130 checking.
29131 (grub_video_vbe_blit_glyph): Likewise.
29132 (grub_video_vbe_blit_bitmap): Likewise.
29133 (grub_video_vbe_blit_render_target): Likewise.
29134
29135 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
29136
29137 * configure.ac (--with-platform): Properly quote the square
29138 brackets.
29139
29140 2006-05-08 Marco Gerards <marco@gnu.org>
29141
29142 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
29143 this...
29144 (kernel_elf_HEADERS): ...to this. Updated all users.
29145 (grubof_symlist.c): Renamed from this...
29146 (kernel_elf_symlist.c): ...to this. Updated all users.
29147 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
29148 (grubof_SOURCES): Renamed from this...
29149 (kernel_elf_SOURCES): ...to this.
29150 (grubof_HEADERS): Renamed from this...
29151 (kernel_elf_HEADERS): ...to this.
29152 (grubof_CFLAGS): Renamed from this...
29153 (kernel_elf_CFLAGS): ...to this.
29154 (grubof_ASFLAGS): Renamed from this...
29155 (kernel_elf_ASFLAGS): ...to this.
29156 (grubof_LDFLAGS): Renamed from this...
29157 (kernel_elf_LDFLAGS): ...to this.
29158
29159 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
29160 this...
29161 (kernel_elf_HEADERS): ...to this. Updated all users.
29162 (grubof_symlist.c): Renamed from this...
29163 (kernel_elf_symlist.c): ...to this. Updated all users.
29164 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
29165 (grubof_SOURCES): Renamed from this...
29166 (kernel_elf_SOURCES): ...to this.
29167 (grubof_HEADERS): Renamed from this...
29168 (kernel_elf_HEADERS): ...to this.
29169 (grubof_CFLAGS): Renamed from this...
29170 (kernel_elf_CFLAGS): ...to this.
29171 (grubof_ASFLAGS): Renamed from this...
29172 (kernel_elf_ASFLAGS): ...to this.
29173 (grubof_LDFLAGS): Renamed from this...
29174 (kernel_elf_LDFLAGS): ...to this.
29175
29176 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
29177 `kernel.elf' instead of `grubof'.
29178
29179 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
29180
29181 Add --with-platform to configure. Use pkglibdir instead of
29182 pkgdatadir. This is reported by Roger Leigh.
29183
29184 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
29185 (host_vendor): Likewise.
29186 (host_os): Likewise.
29187 (pkgdatadir): Likewise.
29188 (platform): New variable.
29189 (pkglibdir): Likewise.
29190 Use PKGLIBDIR instead of PKGDATADIR.
29191
29192 * util/i386/pc/grub-install.in (datadir): Removed.
29193 (host_vendor): Likewise.
29194 (host_os): Likewise.
29195 (pkgdatadir): Likewise.
29196 (platform): New variable.
29197 (pkglibdir): Likewise.
29198 Use PKGLIBDIR instead of PKGDATADIR.
29199
29200 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
29201 instead of GRUB_DATADIR.
29202 (main): Likewise.
29203 * util/i386/pc/grub-mkimage.c (usage): Likewise.
29204 (main): Likewise.
29205 * util/i386/efi/grub-mkimage.c (usage): Likewise.
29206 (main): Likewise.
29207
29208 * configure.ac (--with-platform): New option.
29209 Use PLATFORM instead of HOST_VENDOR to specify a platform.
29210
29211 * Makefile.in: Include a makefile based on PLATFORM instead of
29212 HOST_VENDOR.
29213 (pkgdatadir): Not appended by the machine type.
29214 (pkglibdir): Appended by the machine type.
29215 (host_vendor): Removed.
29216 (platform): New variable.
29217 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
29218 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
29219 (uninstall): Likewise.
29220
29221 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
29222
29223 Use the environment context in the menu. Remove the commands
29224 "default" and "timeout", and use variables instead.
29225
29226 * normal/menu.c: Include grub/env.h.
29227 (print_entry): Cast TITLE to silence gcc.
29228 (get_timeout): New function.
29229 (set_timeout): Likewise.
29230 (get_entry_number): Likewise.
29231 (run_menu): Use a default entry, a fallback entry and a timeout
29232 in the environment variables "default", "fallback" and
29233 "timeout". Also, tweak the default entry if it is not within the
29234 current menu entries.
29235 (grub_menu_run): Use a fallback entry in the environment variable
29236 "fallback".
29237
29238 * normal/main.c (read_config_file): Do not initialize
29239 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
29240 NEWMENU->TIMEOUT.
29241 (grub_normal_execute): Use a data slot to store the menu.
29242
29243 * include/grub/normal.h (struct grub_menu): Removed default_entry,
29244 fallback_entry and timeout.
29245 (struct grub_menu_list): Removed.
29246 (grub_menu_list_t): Likewise.
29247 (struct grub_context): Likewise.
29248 (grub_context_t): Likewise.
29249 (grub_context_get): Likewise.
29250 (grub_context_get_current_menu): Likewise.
29251 (grub_context_push_menu): Likewise.
29252 (grub_context_pop_menu): Likewise.
29253 (grub_default_init): Likewise.
29254 (grub_default_fini): Likewise.
29255 (grub_timeout_init): Likewise.
29256 (grub_timeout_fini): Likewise.
29257
29258 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
29259 and timeout.mod.
29260 (normal_mod_SOURCES): Removed normal/context.c.
29261
29262 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
29263 commands/default.c, commands/timeout.c and normal/context.c.
29264 (normal_mod_SOURCES): Removed normal/context.c.
29265
29266 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
29267 commands/timeout.c and normal/context.c.
29268 (normal_mod_SOURCES): Removed normal/context.c.
29269
29270 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
29271 commands/default.c, commands/timeout.c and normal/context.c.
29272 (normal_mod_SOURCES): Removed normal/context.c.
29273
29274 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
29275 timeout.mod.
29276 (default_mod_SOURCES): Removed.
29277 (default_mod_CFLAGS): Likewise.
29278 (default_mod_LDFLAGS): Likewise.
29279 (timeout_mod_SOURCES): Removed.
29280 (timeout_mod_CFLAGS): Likewise.
29281 (timeout_mod_LDFLAGS): Likewise.
29282
29283 * DISTLIST: Removed commands/default.c, commands/timeout.c and
29284 normal/context.c.
29285
29286 * commands/default.c: Removed.
29287 * commands/timeout.c: Likewise.
29288 * normal/context.c: Likewise.
29289
29290 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
29291
29292 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
29293
29294 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
29295
29296 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
29297 "next" to "prev" for readability.
29298 (struct grub_env_sorted_var): New struct.
29299 (grub_env_context): Renamed to ...
29300 (initial_context): ... this.
29301 (grub_env_var_context): Renamed to ...
29302 (current_context): ... this.
29303 (grub_env_find): Look only at CURRENT_CONTEXT.
29304 (grub_env_context_open): Rewritten to copy exported variables from
29305 previous context.
29306 (grub_env_context_close): Rewritten according to the new
29307 scheme. Also, add an assertion to prevent the initial context from
29308 removed.
29309 (grub_env_insert): Removed the code for the sorted list.
29310 (grub_env_remove): Likewise.
29311 (grub_env_export): Simply mark the variable with
29312 GRUB_ENV_VAR_GLOBAL.
29313 (grub_env_set): A cosmetic change for naming consistency.
29314 (grub_env_get): Likewise.
29315 (grub_env_unset): Likewise.
29316 (grub_env_iterate): Rewritten to sort variables within this
29317 function.
29318 (grub_register_variable_hook): Fixed for naming consistency. Call
29319 grub_env_find again, only if NAME is not found at the first time.
29320 (mangle_data_slot_name): New function.
29321 (grub_env_set_data_slot): Likewise.
29322 (grub_env_get_data_slot): Likewise.
29323 (grub_env_unset_data_slot): Likewise.
29324
29325 * include/grub/env.h (grub_env_var_type): New enum.
29326 (GRUB_ENV_VAR_LOCAL): New constant.
29327 (GRUB_ENV_VAR_GLOBAL): Likewise.
29328 (GRUB_ENV_VAR_DATA): Likewise.
29329 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
29330 "type".
29331 (grub_env_set): Replace VAR with NAME for consistency.
29332 (grub_register_variable_hook): Likewise.
29333 (grub_env_export): Specify the name of the argument.
29334 (grub_env_set_data_slot): New prototype.
29335 (grub_env_get_data_slot): Likewise.
29336 (grub_env_unset_data_slot): Likewise.
29337
29338 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
29339
29340 Extend the loader so that GRUB can accept a loader which comes
29341 back to GRUB when a loaded image exits. Also, this change adds
29342 support for a chainloader on EFI.
29343
29344 * term/efi/console.c: Include grub/misc.h.
29345 (grub_console_checkkey): Display a scan code on the top for
29346 debugging. This will be removed once the EFI port gets stable.
29347 Correct the scan code mapping.
29348
29349 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
29350 allocate memory from larger regions, in order to reduce the number
29351 of allocated regions. Otherwise, the MacOSX loader panics.
29352 (filter_memory_map): Avoid less than 1MB for compatibility with
29353 other loaders.
29354 (add_memory_regions): Allocate from the tail of a region, if
29355 possible, to avoid allocating a region near to 1MB, for the MacOSX
29356 loader.
29357
29358 * kern/efi/init.c (grub_efi_set_prefix): Specify
29359 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
29360
29361 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
29362 argument IMAGE_HANDLE and specify it to get a loaded image.
29363 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
29364 grub_efi_get_loaded_image.
29365 (grub_efi_get_filename): Divide the length by the size of
29366 grub_efi_char16_t.
29367 (grub_efi_get_device_path): New function.
29368 (grub_efi_print_device_path): Print End Device Path nodes. Divide
29369 the length by the size of grub_efi_char16_t for a file path device
29370 path node.
29371
29372 * kern/loader.c (grub_loader_noreturn): New variable.
29373 (grub_loader_set): Accept a new argument NORETURN. Set
29374 GRUB_LOADER_NORETURN to NORETURN.
29375 All callers changed.
29376 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
29377 grub_machine_fini.
29378
29379 * include/grub/efi/efi.h (grub_efi_get_device_path): New
29380 prototype.
29381 (grub_efi_get_loaded_image): Take an argument to specify an image
29382 handle.
29383
29384 * include/grub/loader.h (grub_loader_set): Added one more argument
29385 NORETURN.
29386
29387 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
29388 instead of grub_efi_open_protocol.
29389 (grub_efidisk_get_device_name): Likewise.
29390 (grub_efidisk_close): Print a newline.
29391 (grub_efidisk_get_device_handle): Fixed to use
29392 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
29393 GRUB_EFI_DEVICE_PATH_TYPE.
29394
29395 * disk/efi/efidisk.c (device_path_guid): Moved to ...
29396 * kern/efi/efi.c (device_path_guid): ... here.
29397
29398 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
29399 chain.mod.
29400 (kernel_mod_HEADERS): Added efi/disk.h.
29401 (_chain_mod_SOURCES): New variable.
29402 (_chain_mod_CFLAGS): Likewise.
29403 (_chain_mod_LDFLAGS): Likewise.
29404 (chain_mod_SOURCES): Likewise.
29405 (chain_mod_CFLAGS): Likewise.
29406 (chain_mod_LDFLAGS): Likewise.
29407
29408 * DISTLIST: Added include/grub/efi/chainloader.h,
29409 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
29410
29411 * include/grub/efi/chainloader.h: New file.
29412 * loader/efi/chainloader.c: Likewise.
29413 * loader/efi/chainloader_normal.c: Likewise.
29414
29415 2006-04-30 Marco Gerards <marco@gnu.org>
29416
29417 * commands/configfile.c (grub_cmd_source): New function.
29418 (GRUB_MOD_INIT): Register the commands `source' and `.'.
29419 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
29420
29421 2006-04-30 Marco Gerards <marco@gnu.org>
29422
29423 * normal/execute.c (grub_script_execute_cmd): Change the return
29424 type to `grub_err_t'. Correctly return the error.
29425 (grub_script_execute_cmdline): In case a command line is not a
29426 command or a function, try to interpret it as an assignment.
29427
29428 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
29429
29430 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
29431 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
29432 skip a node whose name is obviously invalid as UTF-16,
29433 i.e. contains a NUL character. Stop the iteration when the last
29434 directory entry is found. Instead of using the return value of
29435 grub_hfsplus_btree_iterate_node, store the value in RET and use
29436 it, because the iterator can be stopped by the last directory
29437 entry.
29438
29439 2006-04-30 Marco Gerards <marco@gnu.org>
29440
29441 * include/grub/env.h (grub_env_export): New prototype. Reported
29442 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
29443
29444 2006-04-30 Marco Gerards <marco@gnu.org>
29445
29446 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
29447 size of the extents in a catalog file record.
29448
29449 2006-04-29 Marco Gerards <marco@gnu.org>
29450
29451 * commands/configfile.c (grub_cmd_configfile): Execute the
29452 configfile within its own context.
29453
29454 * include/grub/env.h (grub_env_context_open): New prototype.
29455 (grub_env_context_close): Likewise.
29456
29457 * kern/env.c (grub_env): Removed.
29458 (grub_env_sorted): Likewise.
29459 (grub_env_context): New variable.
29460 (grub_env_var_context): Likewise.
29461 (grub_env_find): Search both the active context and the global
29462 context.
29463 (grub_env_context_open): New function.
29464 (grub_env_context_close): Likewise.
29465 (grub_env_insert): Likewise.
29466 (grub_env_remove): Likewise.
29467 (grub_env_export): Likewise.
29468 (grub_env_set): Changed to use helper functions to avoid code
29469 duplication.
29470 (grub_env_iterate): Rewritten so both the current context and the
29471 global context are being used.
29472
29473 * normal/command.c (export_command): New function.
29474 (grub_command_init): Register the `export' function.
29475
29476 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
29477
29478 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
29479 explicitly to suppress gcc's warnings.
29480 * fs/fat.c (grub_fat_find_dir): Likewise.
29481 (grub_fat_label): Likewise.
29482 * fs/xfs.c (grub_xfs_read_inode): Likewise.
29483 (grub_xfs_mount): Likewise.
29484 (grub_xfs_label): Likewise.
29485 * fs/affs.c (grub_affs_mount): Likewise.
29486 (grub_affs_label): Likewise.
29487 (grub_affs_iterate_dir): Likewise.
29488 * fs/sfs.c (grub_sfs_mount): Likewise.
29489 (grub_sfs_iterate_dir): Likewise.
29490 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
29491 * fs/hfs.c (grub_hfs_mount): Likewise.
29492 (grub_hfs_cmp_catkeys): Likewise.
29493 (grub_hfs_find_dir): Likewise.
29494 (grub_hfs_dir): Likewise.
29495 (grub_hfs_label): Likewise.
29496 * fs/jfs.c (grub_jfs_mount): Likewise.
29497 (grub_jfs_opendir): Likewise.
29498 (grub_jfs_getent): Likewise.
29499 (grub_jfs_lookup_symlink): Likewise.
29500 (grub_jfs_label): Likewise.
29501 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
29502 (grub_hfsplus_iterate_dir): Likewise.
29503 (grub_hfsplus_btree_iterate_node): Made static.
29504
29505 * util/grub-emu.c (prefix): New variable.
29506 (grub_machine_set_prefix): New function.
29507 (main): Do not set the environment variable "prefix" here. Only
29508 set PREFIX, which is used later by grub_machine_set_prefix.
29509
29510 * include/grub/video.h: Do not include grub/symbol.h.
29511 (grub_video_register): Not exported. This symbol is not defined in
29512 the kernel.
29513 (grub_video_unregister): Likewise.
29514 (grub_video_iterate): Likewise.
29515 (grub_video_setup): Likewise.
29516 (grub_video_restore): Likewise.
29517 (grub_video_get_info): Likewise.
29518 (grub_video_get_blit_format): Likewise.
29519 (grub_video_set_palette): Likewise.
29520 (grub_video_get_palette): Likewise.
29521 (grub_video_set_viewport): Likewise.
29522 (grub_video_get_viewport): Likewise.
29523 (grub_video_map_color): Likewise.
29524 (grub_video_map_rgb): Likewise.
29525 (grub_video_map_rgba): Likewise.
29526 (grub_video_fill_rect): Likewise.
29527 (grub_video_blit_glyph): Likewise.
29528 (grub_video_blit_bitmap): Likewise.
29529 (grub_video_blit_render_target): Likewise.
29530 (grub_video_scroll): Likewise.
29531 (grub_video_swap_buffers): Likewise.
29532 (grub_video_create_render_target): Likewise.
29533 (grub_video_delete_render_target): Likewise.
29534 (grub_video_set_active_render_target): Likewise.
29535
29536 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
29537 Undefined.
29538 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
29539
29540 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
29541 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
29542 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
29543 instead of $(srcdir)/genkernsyms.sh.
29544
29545 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
29546 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
29547 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
29548 instead of $(srcdir)/genkernsyms.sh.
29549
29550 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
29551 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
29552 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
29553 instead of $(srcdir)/genkernsyms.sh.
29554
29555 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
29556 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
29557 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
29558 instead of $(srcdir)/genkernsyms.sh.
29559
29560 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
29561 genkernsyms.sh.
29562
29563 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
29564 genkernsyms.sh.
29565 (gensymlist.sh): New target.
29566 (genkernsyms.sh): Likewise.
29567
29568 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
29569 genkernsyms.sh.in and gensymlist.sh.in.
29570
29571 * genkernsyms.sh: Removed.
29572 * gensymlist.sh: Likewise.
29573
29574 * genkernsyms.sh.in: New file.
29575 * gensymlist.sh.in: Likewise.
29576
29577 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
29578
29579 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
29580 clobber "prefix", since we may have already set it manually.
29581
29582 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
29583
29584 * kern/misc.c (abort): New alias for grub_abort.
29585
29586 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
29587
29588 A new machine-specific function "grub_machine_set_prefix" is
29589 defined. This is called after loading modules, so that a prefix
29590 initialization can use modules. Also, this change adds an
29591 intensive debugging feature for the memory manager via the
29592 configure option "--enable-mm-debug".
29593
29594 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
29595 PART.LEN.
29596
29597 * kern/sparc64/ieee1275/init.c (abort): Removed.
29598 (grub_stop): Likewise.
29599 (grub_exit): New function.
29600 (grub_set_prefix): Renamed to ...
29601 (grub_machine_set_prefix): ... this.
29602 (grub_machine_init): Do not call grub_set_prefix.
29603
29604 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
29605 (grub_machine_set_prefix): ... this.
29606 (grub_machine_init): Do not call grub_set_prefix.
29607
29608 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
29609 (grub_machine_init): Do not set the prefix here.
29610
29611 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
29612
29613 * kern/efi/init.c: Include grub/mm.h.
29614 (grub_efi_set_prefix): New function.
29615
29616 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
29617 (grub_efi_get_filename): New function.
29618 (grub_print_device_path): Renamed to ...
29619 (grub_efi_print_device_path): ... this.
29620
29621 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
29622 [MM_DEBUG] (grub_realloc): Likewise.
29623 [MM_DEBUG] (grub_free): Likewise.
29624 [MM_DEBUG] (grub_memalign): Likewise.
29625 [MM_DEBUG] (grub_mm_debug): New variable.
29626 [MM_DEBUG] (grub_debug_malloc): New function.
29627 [MM_DEBUG] (grub_debug_free): New function.
29628 [MM_DEBUG] (grub_debug_realloc): New function.
29629 [MM_DEBUG] (grub_debug_memalign): New function.
29630
29631 * kern/misc.c (grub_abort): Print a newline to distinguish
29632 the message.
29633
29634 * kern/main.c (grub_main): Call grub_machine_set_prefix and
29635 grub_set_root_dev after loading modules. This is necessary when
29636 setting a prefix depends on modules.
29637
29638 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
29639 (grub_efi_print_device_path): ... this.
29640 (grub_efi_get_filename): New prototype.
29641 (grub_efi_set_prefix): Likewise.
29642
29643 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
29644 and grub/disk.h.
29645 (grub_efidisk_get_device_handle): New prototype.
29646 (grub_efidisk_get_device_name): Likewise.
29647
29648 * include/grub/mm.h: Include config.h.
29649 (MM_DEBUG): Removed.
29650 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
29651 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
29652 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
29653 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
29654 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
29655 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
29656 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
29657 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
29658 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
29659
29660 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
29661
29662 * disk/efi/efidisk.c: Include grub/partition.h.
29663 (iterate_child_devices): New function.
29664 (add_device): First, compare only last device path nodes, so that
29665 devices are sorted by the types.
29666 (grub_efidisk_get_device_handle): New function.
29667 (grub_efidisk_get_device_name): Likewise.
29668
29669 * configure.ac (--enable-mm-debug): New option to enable the
29670 memory manager debugging feature. This makes the binary much
29671 bigger, so is disabled by default.
29672
29673 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
29674
29675 Use grub_abort instead of grub_stop, and grub_exit must be
29676 define in each architecture now. Also, this change adds support
29677 for EFI disks.
29678
29679 * util/i386/pc/grub-probefs.c: Include grub/term.h.
29680 (grub_getkey): New function.
29681 (grub_term_get_current): Likewise.
29682
29683 * util/i386/pc/grub-setup.c: Include grub/term.h.
29684 (grub_getkey): New function.
29685 (grub_term_get_current): Likewise.
29686
29687 * util/misc.c (grub_stop): Renamed to ...
29688 (grub_exit): ... this.
29689
29690 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
29691 (grub_exit): ... this.
29692 (grub_machine_init): Use grub_abort instead of abort.
29693 (grub_stop): Removed.
29694
29695 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
29696 abort.
29697
29698 * kern/i386/pc/startup.S (grub_exit): New function.
29699 (cold_reboot): New label.
29700
29701 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
29702 (grub_efi_init): Call grub_efidisk_init.
29703 (grub_efi_fini): Call grub_efidisk_fini.
29704
29705 * kern/efi/efi.c: Include grub/mm.h.
29706 (grub_efi_console_control_guid): Renamed to ...
29707 (console_control_guid): ... this.
29708 (grub_efi_loaded_image_guid): Renamed to ...
29709 (loaded_image_guid): ... this.
29710 (grub_efi_locate_handle): New function.
29711 (grub_efi_open_protocol): Likewise.
29712 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
29713 GRUB_EFI_CONSOLE_CONTROL_GUID.
29714 (grub_efi_exit): Removed.
29715 (grub_stop): Likewise.
29716 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
29717 (grub_exit): New function.
29718 (grub_print_device_path): Likewise.
29719
29720 * kern/rescue.c (grub_rescue_cmd_exit): New function.
29721 (grub_enter_rescue_mode): Register "exit".
29722
29723 * kern/misc.c (grub_real_dprintf): A cosmetic change.
29724 (grub_abort): New function.
29725
29726 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
29727
29728 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
29729
29730 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
29731
29732 * include/grub/efi/efi.h (grub_efi_exit): Removed.
29733 (grub_print_device_path): New prototype.
29734 (grub_efi_locate_handle): Likewise.
29735 (grub_efi_open_protocol): Likewise.
29736
29737 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
29738 * disk/efi/efidisk.c: Likewise.
29739
29740 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
29741
29742 * include/grub/efi/console_control.h
29743 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
29744
29745 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
29746 last 8 bytes as an array.
29747 (GRUB_EFI_DISK_IO_GUID): New macro.
29748 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
29749 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
29750 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
29751 grub_uint8_t.
29752 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
29753 (struct grub_efi_device_path): Rename the member "sub_type" to
29754 "subtype".
29755 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
29756 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
29757 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
29758 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
29759 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
29760 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
29761 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
29762 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
29763 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
29764 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
29765 (struct grub_efi_pci_device_path): New structure.
29766 (grub_efi_pci_device_path_t): New type.
29767 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
29768 (struct grub_efi_pccard_device_path): New structure.
29769 (grub_efi_pccard_device_path_t): New type.
29770 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
29771 (struct grub_efi_memory_mapped_device_path): New structure.
29772 (grub_efi_memory_mapped_device_path_t): New type.
29773 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
29774 (struct grub_efi_vendor_device_path): New structure.
29775 (grub_efi_vendor_device_path_t): New type.
29776 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
29777 (struct grub_efi_controller_device_path): New structure.
29778 (grub_efi_controller_device_path_t): New type.
29779 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
29780 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
29781 (struct grub_efi_acpi_device_path): New structure.
29782 (grub_efi_acpi_device_path_t): New type.
29783 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
29784 (struct grub_efi_expanded_acpi_device_path): New structure.
29785 (grub_efi_expanded_acpi_device_path_t): New type.
29786 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
29787 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
29788 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
29789 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
29790 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
29791 (struct grub_efi_atapi_device_path): New structure.
29792 (grub_efi_atapi_device_path_t): New type.
29793 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
29794 (struct grub_efi_fibre_channel_device_path): New structure.
29795 (grub_efi_fibre_channel_device_path_t): New type.
29796 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
29797 (struct grub_efi_1394_device_path): New structure.
29798 (grub_efi_1394_device_path_t): New type.
29799 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
29800 (struct grub_efi_usb_device_path): New structure.
29801 (grub_efi_usb_device_path_t): New type.
29802 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
29803 (struct grub_efi_usb_class_device_path): New structure.
29804 (grub_efi_usb_class_device_path_t): New type.
29805 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
29806 (struct grub_efi_i2o_device_path): New structure.
29807 (grub_efi_i2o_device_path_t): New type.
29808 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
29809 (struct grub_efi_mac_address_device_path): New structure.
29810 (grub_efi_mac_address_device_path_t): New type.
29811 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
29812 (struct grub_efi_ipv4_device_path): New structure.
29813 (grub_efi_ipv4_device_path_t): New type.
29814 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
29815 (struct grub_efi_ipv6_device_path): New structure.
29816 (grub_efi_ipv6_device_path_t): New type.
29817 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
29818 (struct grub_efi_infiniband_device_path): New structure.
29819 (grub_efi_infiniband_device_path_t): New type.
29820 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
29821 (struct grub_efi_uart_device_path): New structure.
29822 (grub_efi_uart_device_path_t): New type.
29823 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
29824 (struct grub_efi_vendor_messaging_device_path): New structure.
29825 (grub_efi_vendor_messaging_device_path_t): New type.
29826 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
29827 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
29828 (struct grub_efi_hard_drive_device_path): New structure.
29829 (grub_efi_hard_drive_device_path_t): New type.
29830 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
29831 (struct grub_efi_cdrom_device_path): New structure.
29832 (grub_efi_cdrom_device_path_t): New type.
29833 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
29834 (struct grub_efi_vendor_media_device_path): New structure.
29835 (grub_efi_vendor_media_device_path_t): New type.
29836 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
29837 (struct grub_efi_file_path_device_path): New structure.
29838 (grub_efi_file_path_device_path_t): New type.
29839 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
29840 (struct grub_efi_protocol_device_path): New structure.
29841 (grub_efi_protocol_device_path_t): New type.
29842 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
29843 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
29844 (struct grub_efi_bios_device_path): New structure.
29845 (grub_efi_bios_device_path_t): New type.
29846 (struct grub_efi_disk_io): New structure.
29847 (grub_efi_disk_io_t): New type.
29848 (struct grub_efi_block_io_media): New structure.
29849 (grub_efi_block_io_media_t): New type.
29850 (struct grub_efi_block_io): New structure.
29851 (grub_efi_block_io_t): New type.
29852
29853 * include/grub/misc.h (grub_stop): Removed.
29854 (grub_exit): New prototype.
29855 (grub_abort): Likewise.
29856
29857 * include/grub/disk.h (enum grub_disk_dev_id): Added
29858 GRUB_DISK_DEVICE_EFIDISK_ID.
29859
29860 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
29861 disk/efi/efidisk.c.
29862 (kernel_syms.lst): Remove the target if an error occurs.
29863
29864 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
29865
29866 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
29867 as it was simply too buggy.
29868
29869 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
29870
29871 * kern/misc.c (grub_lltoa): New function.
29872 (grub_vsprintf): Added support for the long long suffix,
29873 i.e. "ll".
29874
29875 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
29876
29877 * Makefile.in (LDFLAGS): Add variable.
29878 (LD): Remove variable.
29879 * configure.ac: Add -m32 to LDFLAGS.
29880 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
29881 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
29882 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
29883 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
29884 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
29885 variables.
29886 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
29887 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
29888 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
29889
29890 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
29891
29892 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
29893 length for unknown glyph.
29894
29895 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
29896
29897 Add support for pre-loaded modules into the EFI port.
29898
29899 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
29900 completely. Accept one more argument DIR. The caller has changed.
29901
29902 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
29903
29904 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
29905 (grub_efi_loaded_image_guid): New variable.
29906 (grub_efi_get_loaded_image): New function.
29907 (grub_arch_modules_addr): Likewise.
29908
29909 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
29910 prototype.
29911
29912 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
29913 (struct grub_efi_loaded_image): New structure.
29914 (grub_efi_loaded_image_t): New type.
29915
29916 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
29917
29918 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
29919 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
29920 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
29921
29922 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
29923
29924 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
29925
29926 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
29927
29928 * DISTLIST: Added include/grub/efi/console.h,
29929 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
29930 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
29931
29932 * include/grub/efi/console.h: New file.
29933 * include/grub/efi/time.h: Likewise.
29934 * include/grub/i386/efi/kernel.h: Likewise.
29935 * kern/efi/init.c: Likewise.
29936 * kern/efi/mm.c: Likewise.
29937 * term/efi/console.c: Likewise.
29938
29939 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
29940 (grub_stop): Removed.
29941 (grub_get_rtc): Likewise.
29942 (grub_machine_init): Simply call grub_efi_init.
29943 (grub_machine_fini): Call grub_efi_fini.
29944
29945 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
29946 (grub_efi_output_string): Removed.
29947 (grub_efi_stall): New function.
29948 (grub_stop): Likewise.
29949 (grub_get_rtc): Likewise.
29950
29951 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
29952 (grub_efi_stall): New prototype.
29953 (grub_efi_allocate_pages): Likewise.
29954 (grub_efi_free_pages): Likewise.
29955 (grub_efi_get_memory_map): Likewise.
29956 (grub_efi_mm_init): Likewise.
29957 (grub_efi_mm_fini): Likewise.
29958 (grub_efi_init): Likewise.
29959 (grub_efi_fini): Likewise.
29960
29961 * include/grub/i386/efi/time.h: Do not include
29962 grub/symbol.h. Include grub/efi/time.h.
29963 (GRUB_TICKS_PER_SECOND): Removed.
29964 (grub_get_rtc): Likewise.
29965
29966 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
29967 Added padding. The EFI spec is buggy.
29968 (GRUB_EFI_BLACK): New macro.
29969 (GRUB_EFI_BLUE): Likewise.
29970 (GRUB_EFI_GREEN): Likewise.
29971 (GRUB_EFI_CYAN): Likewise.
29972 (GRUB_EFI_RED): Likewise.
29973 (GRUB_EFI_MAGENTA): Likewise.
29974 (GRUB_EFI_BROWN): Likewise.
29975 (GRUB_EFI_LIGHTGRAY): Likewise.
29976 (GRUB_EFI_BRIGHT): Likewise.
29977 (GRUB_EFI_DARKGRAY): Likewise.
29978 (GRUB_EFI_LIGHTBLUE): Likewise.
29979 (GRUB_EFI_LIGHTGREEN): Likewise.
29980 (GRUB_EFI_LIGHTCYAN): Likewise.
29981 (GRUB_EFI_LIGHTRED): Likewise.
29982 (GRUB_EFI_LIGHTMAGENTA): Likewise.
29983 (GRUB_EFI_YELLOW): Likewise.
29984 (GRUB_EFI_WHITE): Likewise.
29985 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
29986 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
29987 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
29988 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
29989 (GRUB_EFI_BACKGROUND_RED): Likewise.
29990 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
29991 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
29992 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
29993 (GRUB_EFI_TEXT_ATTR): Likewise.
29994
29995 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
29996 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
29997 (kernel_mod_HEADERS): Added efi/time.h.
29998
29999 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
30000
30001 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
30002 include/grub/efi/api.h, include/grub/efi/console_control.h,
30003 include/grub/efi/efi.h, include/grub/efi/pe32.h,
30004 include/grub/i386/efi/time.h, kern/efi/efi.c,
30005 kern/i386/efi/init.c, kern/i386/efi/startup.S,
30006 and util/i386/efi/grub-mkimage.c.
30007
30008 * Makefile.in (RMKFILES): Added i386-efi.rmk.
30009
30010 * genmk.rb (PModule#rule): Do not export symbols if
30011 #{prefix}_EXPORTS is set to "no".
30012
30013 * conf/i386-efi.mk: New file.
30014 * conf/i386-efi.rmk: Likewise.
30015 * include/grub/efi/api.h: Likewise.
30016 * include/grub/efi/console_control.h: Likewise.
30017 * include/grub/efi/efi.h: Likewise.
30018 * include/grub/efi/pe32.h: Likewise.
30019 * include/grub/i386/efi/time.h: Likewise.
30020 * kern/efi/efi.c: Likewise.
30021 * kern/i386/efi/init.c: Likewise.
30022 * kern/i386/efi/startup.S: Likewise.
30023 * util/i386/efi/grub-mkimage.c: Likewise.
30024
30025 2006-04-17 Marco Gerards <marco@gnu.org>
30026
30027 * include/grub/script.h: Include <grub/parser.h> and
30028 "grub_script.tab.h".
30029 (struct grub_lexer_param): New struct.
30030 (struct grub_parser_param): Likewise.
30031 (grub_script_create_arglist): Pass the state in an argument.
30032 (grub_script_add_arglist): Likewise.
30033 (grub_script_create_cmdline): Likewise.
30034 (grub_script_create_cmdblock): Likewise.
30035 (grub_script_create_cmdif): Likewise.
30036 (grub_script_create_cmdmenu): Likewise.
30037 (grub_script_add_cmd): Likewise.
30038 (grub_script_arg_add): Likewise.
30039 (grub_script_lexer_ref): Likewise.
30040 (grub_script_lexer_deref): Likewise.
30041 (grub_script_lexer_record_start): Likewise.
30042 (grub_script_lexer_record_stop): Likewise.
30043 (grub_script_mem_record): Likewise.
30044 (grub_script_mem_record_stop): Likewise.
30045 (grub_script_malloc): Likewise.
30046 (grub_script_yylex): Likewise.
30047 (grub_script_yyparse): Likewise.
30048 (grub_script_yyerror): Likewise.
30049 (grub_script_yylex): Likewise.
30050 (grub_script_lexer_init): Return the state.
30051
30052 * normal/lexer.c (grub_script_lexer_state): Removed variable.
30053 (grub_script_lexer_done): Likewise.
30054 (grub_script_lexer_getline): Likewise.
30055 (grub_script_lexer_refs): Likewise.
30056 (script): Likewise.
30057 (newscript): Likewise.
30058 (record): Likewise.
30059 (recording): Likewise.
30060 (recordpos): Likewise.
30061 (recordlen): Likewise.
30062 (grub_script_lexer_init): Return the state instead of setting
30063 global variables.
30064 (grub_script_lexer_ref): Use the newly added argument for state
30065 instead of globals.
30066 (grub_script_lexer_deref): Likewise.
30067 (grub_script_lexer_record_start): Likewise.
30068 (grub_script_lexer_record_stop): Likewise.
30069 (recordchar): Likewise.
30070 (nextchar): Likewise.
30071 (grub_script_yylex2): Likewise.
30072 (grub_script_yylex): Likewise.
30073 (grub_script_yyerror): Likewise.
30074
30075 * normal/parser.y (func_mem): Removed variable.
30076 (menu_entry): Likewise.
30077 (err): Likewise.
30078 (%lex-param): New parser option.
30079 (%parse-param): Likewise.
30080 (script): Always return the AST.
30081 (argument): Pass the state around.
30082 (arguments): Likewise.
30083 (grubcmd): Likewise.
30084 (commands): Likewise.
30085 (function): Likewise.
30086 (menuentry): Likewise.
30087 (if_statement): Likewise.
30088 (if): Likewise.
30089
30090 * normal/script.c (grub_script_memused): Removed variable.
30091 (grub_script_parsed): Likewise.
30092 (grub_script_malloc): Added a state argument. Use that instead of
30093 global variables.
30094 (grub_script_mem_record): Likewise.
30095 (grub_script_mem_record_stop): Likewise.
30096 (grub_script_arg_add): Likewise.
30097 (grub_script_add_arglist): Likewise.
30098 (grub_script_create_cmdline): Likewise.
30099 (grub_script_create_cmdif): Likewise.
30100 (grub_script_create_cmdmenu): Likewise.
30101 (grub_script_add_cmd): Likewise.
30102 (grub_script_parse): Setup the state before calling the parser.
30103
30104 2006-04-16 Marco Gerards <marco@gnu.org>
30105
30106 * normal/command.c (grub_command_init): Remove the title command.
30107
30108 * normal/lexer.c (grub_script_yylex): Renamed from this...
30109 (grub_script_yylex2): ... to this.
30110 (grub_script_yylex): New function. Temporary
30111 introduced to filter some tokens.
30112 (grub_script_yyerror): Print a newline.
30113
30114 * normal/main.c (read_config_file): Output information about the
30115 lines that contain errors. Wait for a key after all lines have
30116 been processed. Don't return an empty menu.
30117
30118 * normal/parser.y (func_mem): Don't initialize.
30119 (menu_entry): Likewise.
30120 (err): New variable.
30121 (script): Don't return anything when an error was encountered.
30122 (ws, returns): Removed rules.
30123 (argument): Disabled concatenated variable support.
30124 (arguments): Remove explicit separators.
30125 (grubcmd): Likewise.
30126 (function): Likewise.
30127 (menuentry): Likewise.
30128 (if): Likewise.
30129 (commands): Likewise. Add error handling.
30130
30131 * normal/script.c (grub_script_create_cmdline): If
30132 `grub_script_parsed' is 0, assume the parser encountered an error.
30133
30134 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
30135
30136 * configure.ac: Add support for EFI. Fix the typo
30137 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
30138
30139 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
30140
30141 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
30142 foreign multibyte characters should be shown correctly.
30143
30144 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
30145
30146 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
30147 calculation.
30148 (read_config_file): Made it to close file before returning.
30149
30150 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
30151
30152 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
30153 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
30154 video/i386/pc/vbefill.c.
30155
30156 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
30157 video/i386/pc/vbefill.c.
30158
30159 * include/grub/video.h (grub_video_blit_format): New enum.
30160 (grub_video_mode_info): Added new member blit_format.
30161 (grub_video_get_blit_format): New function prototype.
30162
30163 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
30164 function prototype.
30165 (grub_video_vbe_map_rgb): Likewise.
30166 (grub_video_vbe_unmap_color): Likewise.
30167
30168 * include/grub/i386/pc/vbeblit.h: New file.
30169
30170 * include/grub/i386/pc/vbefill.h: New file.
30171
30172 * video/video.c (grub_video_get_blit_format): New function.
30173 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
30174 (grub_video_vbe_map_rgb): Likewise.
30175 (grub_video_vbe_unmap_color): Likewise.
30176
30177 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
30178 optimized fills.
30179 (grub_video_vbe_blit_render_target): Changed to use more optimized
30180 blits.
30181 (grub_video_vbe_setup): Added detection for optimized settings.
30182 (grub_video_vbe_create_render_target): Likewise.
30183
30184 * video/i386/pc/vbeblit.c: New file.
30185
30186 * video/i386/pc/vbefill.c: New file.
30187
30188 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
30189
30190 * font/manager.c (grub_font_get_glyph): Removed font fixup from
30191 here...
30192
30193 * util/unifont2pff.rb: ... and moved it to here. Improved argument
30194 parsing to support both hex and dec ranges. If filename was missing
30195 show usage information.
30196
30197 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
30198
30199 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
30200 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
30201
30202 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
30203 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
30204 (video_mod_SOURCES): Added.
30205 (video_mod_CFLAGS): Likewise.
30206 (video_mod_LDFLAGS): Likewise.
30207 (gfxterm_mod_SOURCES): Likewise.
30208 (gfxterm_mod_CFLAGS): Likewise.
30209 (gfxterm_mod_LDFLAGS): Likewise.
30210 (videotest_mod_SOURCES): Likewise.
30211 (videotest_mod_CFLAGS): Likewise.
30212 (videotest_mod_LDFLAGS): Likewise.
30213 (vesafb_mod_SOURCES): Removed.
30214 (vesafb_mod_CFLAGS): Likewise.
30215 (vesafb_mod_LDFLAGS): Likewise.
30216 (vga_mod_SOURCES): Likewise.
30217 (vga_mod_CFLAGS): Likewise.
30218 (vga_mod_LDFLAGS): Likewise.
30219
30220 * commands/videotest.c: New file.
30221
30222 * font/manager.c (fill_with_default_glyph): Modified to use
30223 grub_font_glyph.
30224 (grub_font_get_glyph): Likewise.
30225 (fontmanager): Renamed from this...
30226 (font_manager): ... to this.
30227
30228 * include/grub/font.h (grub_font_glyph): Added new structure.
30229 (grub_font_get_glyph): Modified to use grub_font_glyph.
30230
30231 * include/grub/misc.h (grub_abs): Added as inline function.
30232
30233 * include/grub/video.h: New file.
30234
30235 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
30236 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
30237 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
30238 (grub_vbe_get_controller_info): Renamed from this...
30239 (grub_vbe_bios_get_controller_info): ... to this.
30240 (grub_vbe_get_mode_info): Renamed from this...
30241 (grub_vbe_bios_get_mode_info): ... to this.
30242 (grub_vbe_set_mode): Renamed from this...
30243 (grub_vbe_bios_set_mode): ... to this.
30244 (grub_vbe_get_mode): Renamed from this...
30245 (grub_vbe_bios_get_mode): ... to this.
30246 (grub_vbe_set_memory_window): Renamed from this...
30247 (grub_vbe_bios_set_memory_window): ... to this.
30248 (grub_vbe_get_memory_window): Renamed from this...
30249 (grub_vbe_bios_get_memory_window): ... to this.
30250 (grub_vbe_set_scanline_length): Renamed from this...
30251 (grub_vbe_set_scanline_length): ... to this.
30252 (grub_vbe_get_scanline_length): Renamed from this...
30253 (grub_vbe_bios_get_scanline_length): ... to this.
30254 (grub_vbe_set_display_start): Renamed from this...
30255 (grub_vbe_bios_set_display_start): ... to this.
30256 (grub_vbe_get_display_start): Renamed from this...
30257 (grub_vbe_bios_get_display_start): ... to this.
30258 (grub_vbe_set_palette_data): Renamed from this...
30259 (grub_vbe_bios_set_palette_data): ... to this.
30260 (grub_vbe_set_pixel_rgb): Removed.
30261 (grub_vbe_set_pixel_index): Likewise.
30262
30263 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
30264 from this...
30265 (grub_vbe_bios_get_controller_info): ... to this.
30266 (grub_vbe_get_mode_info): Renamed from this...
30267 (grub_vbe_bios_get_mode_info): ... to this.
30268 (grub_vbe_set_mode): Renamed from this...
30269 (grub_vbe_bios_set_mode): ... to this.
30270 (grub_vbe_get_mode): Renamed from this...
30271 (grub_vbe_bios_get_mode): ... to this.
30272 (grub_vbe_set_memory_window): Renamed from this...
30273 (grub_vbe_bios_set_memory_window): ... to this.
30274 (grub_vbe_get_memory_window): Renamed from this...
30275 (grub_vbe_bios_get_memory_window): ... to this.
30276 (grub_vbe_set_scanline_length): Renamed from this...
30277 (grub_vbe_set_scanline_length): ... to this.
30278 (grub_vbe_get_scanline_length): Renamed from this...
30279 (grub_vbe_bios_get_scanline_length): ... to this.
30280 (grub_vbe_set_display_start): Renamed from this...
30281 (grub_vbe_bios_set_display_start): ... to this.
30282 (grub_vbe_get_display_start): Renamed from this...
30283 (grub_vbe_bios_get_display_start): ... to this.
30284 (grub_vbe_set_palette_data): Renamed from this...
30285 (grub_vbe_bios_set_palette_data): ... to this.
30286 (grub_vbe_bios_get_controller_info): Fixed problem with registers
30287 getting corrupted after calling it. Added more pushes and pops.
30288 (grub_vbe_bios_set_mode): Likewise.
30289 (grub_vbe_bios_get_mode): Likewise.
30290 (grub_vbe_bios_get_memory_window): Likewise.
30291 (grub_vbe_bios_set_scanline_length): Likewise.
30292 (grub_vbe_bios_get_scanline_length): Likewise.
30293 (grub_vbe_bios_get_display_start): Likewise.
30294 (grub_vbe_bios_set_palette_data): Likewise.
30295
30296 * normal/cmdline.c (cl_set_pos): Refresh the screen.
30297 (cl_insert): Likewise.
30298 (cl_delete): Likewise.
30299
30300 * term/gfxterm.c: New file.
30301
30302 * term/i386/pc/vesafb.c: Removed file.
30303
30304 * video/video.c: New file.
30305
30306 * video/i386/pc/vbe.c (real2pm): Added new function.
30307 (grub_video_vbe_draw_pixel): Likewise.
30308 (grub_video_vbe_get_video_ptr): Likewise.
30309 (grub_video_vbe_get_pixel): Likewise
30310 (grub_video_vbe_init): Likewise.
30311 (grub_video_vbe_fini): Likewise.
30312 (grub_video_vbe_setup): Likewise.
30313 (grub_video_vbe_get_info): Likewise.
30314 (grub_video_vbe_set_palette): Likewise.
30315 (grub_video_vbe_get_palette): Likewise.
30316 (grub_video_vbe_set_viewport): Likewise.
30317 (grub_video_vbe_get_viewport): Likewise.
30318 (grub_video_vbe_map_color): Likewise.
30319 (grub_video_vbe_map_rgb): Likewise.
30320 (grub_video_vbe_map_rgba): Likewise.
30321 (grub_video_vbe_unmap_color): Likewise.
30322 (grub_video_vbe_fill_rect): Likewise.
30323 (grub_video_vbe_blit_glyph): Likewise.
30324 (grub_video_vbe_blit_bitmap): Likewise.
30325 (grub_video_vbe_blit_render_target): Likewise.
30326 (grub_video_vbe_scroll): Likewise.
30327 (grub_video_vbe_swap_buffers): Likewise.
30328 (grub_video_vbe_create_render_target): Likewise.
30329 (grub_video_vbe_delete_render_target): Likewise.
30330 (grub_video_vbe_set_active_render_target): Likewise.
30331 (grub_vbe_set_pixel_rgb): Remove function.
30332 (grub_vbe_set_pixel_index): Likewise.
30333 (index_color_mode): Remove static variable.
30334 (active_mode): Likewise.
30335 (framebuffer): Likewise.
30336 (bytes_per_scan_line): Likewise.
30337 (grub_video_vbe_adapter): Added new static variable.
30338 (framebuffer): Likewise.
30339 (render_target): Likewise.
30340 (initial_mode): Likewise.
30341 (mode_in_use): Likewise.
30342 (mode_list): Likewise.
30343
30344 2006-03-10 Marco Gerards <marco@gnu.org>
30345
30346 * configure.ac (AC_INIT): Bumped to 1.93.
30347
30348 * DISTLIST: Added `include/grub/hfs.h'.
30349
30350 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
30351
30352 * boot/i386/pc/boot.S (general_error): Before looping, try INT
30353 18H, which might help the BIOS falling back to next boot media.
30354
30355 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
30356
30357 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
30358 Poe Chen <poe.poechen@gmail.com>.
30359
30360 2006-01-17 Marco Gerards <marco@gnu.org>
30361
30362 * include/grub/normal.h: Include <grub/script.h>.
30363 (grub_command_list): Removed struct.
30364 (grub_command_list_t): Removed type.
30365 (grub_menu_entry): Remove members `num' and `command_list'. Add
30366 members `commands' and `sourcecode'.
30367 * include/grub/script.h: Add inclusion guards.
30368 (grub_script_cmd_menuentry): New struct.
30369 (grub_script_execute_menuentry): New prototype.
30370 (grub_script_lexer_record_start): Likewise.
30371 (grub_script_lexer_record_stop): Likewise.
30372 * normal/execute.c (grub_script_execute_menuentry): New function.
30373 * normal/lexer.c (record, recording, recordpos, recordlen): New
30374 variables.
30375 (grub_script_lexer_record_start): New function.
30376 (grub_script_lexer_record_stop): Likewise.
30377 (recordchar): Likewise.
30378 (nextchar): Likewise.
30379 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
30380 2048 as the buffer size. Add the tokens `menuentry' and `@'.
30381 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
30382 (current_menu): New variable.
30383 (free_menu): Mainly rewritten.
30384 (grub_normal_menu_addentry): New function.
30385 (read_config_file): Rewritten.
30386 * normal/menu.c (run_menu_entry): Mainly rewritten.
30387 * normal/menu_entry.c (make_screen): Rewritten the code to insert
30388 the menu entry.
30389 (run): Mainly rewritten.
30390 * normal/parser.y (menu_entry): New variable.
30391 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
30392 (menuentry): New rule.
30393 (command): Add `menuentry'.
30394 (if_statement): Allow additional returns before `fi'.
30395 * normal/script.c (grub_script_create_cmdmenu): New function.
30396
30397 2006-01-03 Marco Gerards <marco@gnu.org>
30398
30399 * INSTALL: GNU Bison is required.
30400 * configure.ac: Rewritten the test to detect Bison.
30401 * Makefile.in (YACC): New variable. Reported by Xun Sun
30402 <xun.sun.cn@gmail.com>.
30403
30404 2006-01-03 Marco Gerards <marco@gnu.org>
30405
30406 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
30407 the HFS+ filesystem to filesystem blocks.
30408 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
30409 GCC warning is silenced.
30410
30411 2006-01-03 Marco Gerards <marco@gnu.org>
30412
30413 * partmap/apple.c (apple_partition_map_iterate): Convert the data
30414 read from disk from big endian to host byte order.
30415
30416 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
30417
30418 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
30419 documentation.
30420 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
30421 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
30422 embedded HFS+ filesystem.
30423 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
30424 (grub_hfs_sblock): Move from here...
30425 * include/grub/hfs.h: To here... New file.
30426 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
30427 documentation.
30428 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
30429 New macros.
30430 (grub_hfsplus_volheader): Change type of member `magic' to
30431 `grub_uint16_t'.
30432 (grub_hfsplus_data): Add new member `embedded_offset'.
30433 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
30434 returned block.
30435 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
30436 Calculate the offset.
30437
30438 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
30439
30440 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
30441 Removed.
30442 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
30443
30444 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
30445
30446 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
30447 ENV->NAME is NULL after allocating ENV->VALUE.
30448
30449 2005-12-25 Marco Gerards <marco@gnu.org>
30450
30451 * kern/env.c (grub_env_set): Rewritten the error handling code.
30452
30453 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
30454
30455 * geninit.sh: Made more robust, and more portable.
30456
30457 2005-12-25 Marco Gerards <marco@gnu.org>
30458
30459 Add support for Apple HFS+ filesystems.
30460
30461 * fs/hfsplus.c: New file.
30462
30463 * DISTLIST: Added `fs/hfsplus.c'.
30464
30465 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
30466 (hfsplus_mod_SOURCES): New variable.
30467 (hfsplus_mod_CFLAGS): Likewise.
30468 (hfsplus_mod_LDFLAGS): Likewise.
30469 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
30470 (grub_setup_SOURCES): Likewise.
30471 (grub_mkdevicemap_SOURCES): Likewise.
30472 (grub_emu_SOURCES): Likewise.
30473 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30474
30475 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
30476
30477 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
30478
30479 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
30480
30481 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
30482 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
30483 include/grub/parser.h, include/grub/script.h, kern/parser.c,
30484 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
30485 normal/lexer.c, normal/parser.y, normal/script.c, and
30486 partmap/gpt.c.
30487 Removed kern/sparc64/cache.c.
30488
30489 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
30490 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
30491 grub_emu_init.c.
30492
30493 * configure.ac (AC_INIT): Bumped to 1.92.
30494
30495 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
30496
30497 * kern/err.c (grub_error_push): Added new function to support error
30498 stacks.
30499 (grub_error_pop): Likewise.
30500 (grub_error_stack_items): New local variable to support error stacks.
30501 (grub_error_stack_pos): Likewise.
30502 (grub_error_stack_assert): Likewise.
30503 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
30504 stack depth.
30505 (grub_print_error): Added support to print errors from error stack.
30506
30507 * include/grub/err.h (grub_error_push): Added function prototype.
30508 (grub_error_pop): Likewise.
30509
30510 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
30511
30512 * configure.ac: Accept `powerpc64' as host_cpu.
30513 (amd64): Rename to `biarch32'.
30514
30515 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
30516 non-cacheline-aligned addresses.
30517
30518 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
30519 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
30520 if `size' is non-zero.
30521
30522 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
30523
30524 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
30525 and `cd' to make sure the filename is not prefixed with a
30526 directory name.
30527 (pkgdata_MODULES): Add `gpt.mod'.
30528 (gpt_mod_SOURCES): New variable.
30529 (gpt_mod_CFLAGS): Likewise.
30530 (gpt_mod_LDFLAGS): Likewise.
30531
30532 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
30533
30534 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
30535 New macro.
30536
30537 * partmap/gpt.c: New file.
30538
30539 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
30540 GPT partition map is detected.
30541
30542 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
30543
30544 * commands/i386/pc/play.c: New file.
30545 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
30546 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
30547 macros.
30548
30549 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
30550
30551 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
30552 ((unused))' to silence gcc warning.
30553
30554 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
30555
30556 * configure.ac: Correct `AC_PROG_YACC' test.
30557
30558 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
30559
30560 * util/powerpc/ieee1275/grub-install.in: Run the mount point
30561 check before installing files.
30562
30563 2005-11-22 Mike Small <smallm@panix.com>
30564
30565 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
30566 number regex so multidigit numbers are recognized correctly.
30567
30568 2005-11-22 Mike Small <smallm@panix.com>
30569
30570 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
30571 debugging message before attempting to claim memory.
30572 (grub_rescue_cmd_initrd): Add a claim debugging message and try
30573 multiple addresses in case of failure.
30574
30575 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
30576
30577 * term/tparm.c (get_space): Remove empty `if' statement.
30578
30579 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
30580
30581 * kern/parser.c (check_varstate): Rename `state' to 's'.
30582
30583 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
30584
30585 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
30586 variable definitions to the beginning of each function. Sort stack
30587 variables by size.
30588 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
30589 `buf' argument to `char *'.
30590
30591 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
30592
30593 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
30594 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
30595 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
30596 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
30597 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
30598 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
30599 configfile.mod, search.mod, gzio.mod and test.mod.
30600 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
30601 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
30602 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
30603 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
30604 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
30605 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
30606 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
30607 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
30608 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
30609 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
30610 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
30611 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
30612 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
30613 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
30614 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
30615 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
30616 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
30617 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
30618 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
30619 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
30620 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
30621 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
30622 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
30623
30624 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
30625 `grep --include'.
30626 (pkgdata_MODULES): Add test.mod.
30627
30628 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
30629
30630 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
30631 appending to variables with "+=".
30632 (PModule): Use full pathname to generate *.lst filenames.
30633
30634 * Makefile.in: Fixed list rules moved from genmk.rb.
30635 (.DELETE_ON_ERROR): New special target.
30636 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
30637
30638 * conf/i386-pc.rmk: Include conf/common.mk.
30639 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
30640 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
30641 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
30642 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
30643 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
30644 configfile.mod, search.mod, gzio.mod and test.mod.
30645 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
30646 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
30647 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
30648 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
30649 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
30650 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
30651 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
30652 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
30653 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
30654 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
30655 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
30656 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
30657 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
30658 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
30659 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
30660 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
30661 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
30662 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
30663 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
30664 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
30665 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
30666 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
30667 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
30668 here...
30669 * conf/common.rmk: ... to here. New file.
30670
30671 * conf/common.mk: New file.
30672
30673 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
30674
30675 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
30676 (grub_script.tab.c): ... here.
30677
30678 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
30679 (grub_script.tab.c): ... here.
30680
30681 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
30682 (grub_script.tab.c): ... here.
30683
30684 * normal/command.c (grub_command_find): Fixed a memory leak of
30685 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
30686
30687 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
30688
30689 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
30690 "@" which marks the start of a comment on ARM.
30691 (VARIABLE): Likewise.
30692
30693 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
30694
30695 Add support for Linux/ADFS partition tables.
30696
30697 * partmap/acorn.c: New file.
30698
30699 * include/grub/acorn_filecore.h: Likewise.
30700
30701 * DISTLIST: Added `partmap/acorn.c' and
30702 `include/grub/acorn_filecore.h'.
30703
30704 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
30705 `partmap/acorn.c'.
30706 (pkgdata_MODULES): Add `acorn.mod'.
30707 (acorn_mod_SOURCES): New variable.
30708 (acorn_mod_CFLAGS): Likewise.
30709
30710 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
30711 `partmap/acorn.c'.
30712 (pkgdata_MODULES): Add `acorn.mod'.
30713 (acorn_mod_SOURCES): New variable.
30714 (acorn_mod_CFLAGS): Likewise.
30715
30716 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
30717 (pkgdata_MODULES): Add `acorn.mod'.
30718 (acorn_mod_SOURCES): New variable.
30719 (acorn_mod_CFLAGS): Likewise.
30720 (acorn_mod_LDFLAGS): Likewise.
30721
30722 * include/types.h (grub_disk_addr_t): New typedef.
30723
30724 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
30725
30726 * geninit.sh: New file.
30727
30728 * geninitheader.sh: Likewise.
30729
30730 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
30731 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
30732 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
30733 * commands/configfile.c (grub_configfile_init)
30734 (grub_configfile_fini): Likewise.
30735 * commands/default.c (grub_default_init, grub_default_fini):
30736 Likewise.
30737 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
30738 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
30739 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
30740 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
30741 Likewise.
30742 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
30743 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
30744 Likewise.
30745 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
30746 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
30747 Likewise.
30748 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
30749 Likewise.
30750 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
30751 Likewise.
30752 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
30753 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
30754 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
30755 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
30756 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
30757 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
30758 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
30759 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
30760 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
30761 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
30762 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
30763 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
30764 * partmap/amiga.c (grub_amiga_partition_map_init)
30765 (grub_amiga_partition_map_fini): Likewise.
30766 * partmap/apple.c (grub_apple_partition_map_init)
30767 (grub_apple_partition_map_fini): Likewise.
30768 * partmap/pc.c (grub_pc_partition_map_init)
30769 (grub_pc_partition_map_fini): Likewise.
30770 * partmap/sun.c (grub_sun_partition_map_init,
30771 grub_sun_partition_map_fini): Likewise.
30772 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
30773 Likewise.
30774
30775 * util/grub-emu.c: Include <grub_modules_init.h>.
30776 (main): Don't initialize and de-initialize any modules directly,
30777 use `grub_init_all' and `grub_fini_all' instead.
30778
30779 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
30780 `grub_vesafb_mod_init'.
30781 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
30782 all users.
30783 * term/i386/pc/vga.c (grub_vga_init): Renamed to
30784 `grub_vga_mod_init'. Updated all users.
30785 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
30786
30787 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
30788 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
30789 rules.
30790
30791 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
30792 Generate a function to initialize the module in utilities.
30793 Updated all callers.
30794 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
30795 initialize the module in utilities. Updated all callers.
30796
30797 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
30798
30799 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
30800 escape sequence and a literal ^L to clear the screen.
30801
30802 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
30803 when returning from Open Firmware.
30804
30805 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
30806
30807 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
30808 (grub_ofconsole_height): Likewise.
30809 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
30810 manually insert a '\n'.
30811 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
30812 `grub_ofconsole_height'. Return early if these are already set.
30813
30814 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
30815
30816 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
30817 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
30818 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
30819 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
30820 and `normal/script.c'.
30821 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
30822 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
30823 (test_mod_SOURCES): New variable.
30824 (test_mod_CFLAGS): Likewise.
30825 (test_mod_LDFLAGS): Likewise.
30826 (pkgdata_MODULES): Add `test.mod'.
30827 (grub_script.tab.c): New rule.
30828 (grub_script.tab.h): Likewise.
30829
30830 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
30831
30832 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
30833 `commands/test.c', `normal/execute.c', `normal/lexer.c',
30834 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
30835 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
30836 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
30837 (test_mod_SOURCES): New variable.
30838 (test_mod_CFLAGS): Likewise.
30839 (pkgdata_MODULES): Add `test.mod'.
30840 (grub_script.tab.c): New rule.
30841 (grub_script.tab.h): Likewise.
30842
30843 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
30844
30845 Add initial scripting support.
30846
30847 * commands/test.c: New file.
30848 * include/grub/script.h: Likewise.
30849 * normal/execute.c: Likewise.
30850 * normal/function.c: Likewise.
30851 * normal/lexer.c: Likewise.
30852 * normal/parser.y: Likewise.
30853 * normal/script.c: Likewise.
30854
30855 * configure.ac: Add `AC_PROG_YACC' test.
30856
30857 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
30858 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
30859 `normal/function.c' and `normal/script.c'.
30860 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
30861 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
30862 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
30863 variables.
30864 (pkgdata_MODULES): Add `test.mod'.
30865 (grub_script.tab.c): New rule.
30866 (grub_script.tab.h): Likewise.
30867
30868 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
30869
30870 * include/grub/normal.h (grub_test_init): New prototype.
30871 (grub_test_fini): Likewise.
30872
30873 * normal/command.c: Include <grub/script.h>.
30874 (grub_command_execute): Rewritten.
30875
30876 * util/grub-emu.c (main): Call `grub_test_init' and
30877 `grub_test_fini'.
30878
30879 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
30880
30881 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
30882 to 0.
30883 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
30884 there are no pending characters.
30885
30886 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
30887
30888 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
30889 `grub_strndup' to drop device arguments. Replace unnecessary
30890 `grub_strndup' with `grub_strdup'.
30891
30892 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
30893
30894 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
30895 `debug' environment variable has been set.
30896
30897 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
30898
30899 * Makefile.in (install-local): Use $(DATA).
30900 (uninstall): Likewise.
30901 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
30902 (sbin_UTILITIES): ... to here.
30903 (sbin_SCRIPTS): New variable.
30904 (grub_install_SOURCES): New variable.
30905 * util/powerpc/ieee1275/grub-install.in: New file.
30906 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
30907 variable.
30908 (add_segments): Call `grub_util_get_path'.
30909
30910 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
30911
30912 From Timothy Baldwin:
30913 * commands/ls.c (grub_ls_list_files): Close FILE with
30914 grub_file_close.
30915 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
30916
30917 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
30918
30919 * include/grub/parser.h: New file.
30920
30921 * kern/parser.c: Likewise.
30922
30923 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
30924 (grub_setup_SOURCES): Likewise.
30925 (grub_probefs_SOURCES): Likewise.
30926 (grub_emu_SOURCES): Likewise.
30927 (kernel_img_HEADERS): Add `parser.h'.
30928
30929 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
30930 (grub_emu_SOURCES): Add `kern/parser.c'.
30931 (grubof_SOURCES): Likewise.
30932
30933 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
30934 (grubof_SOURCES): Add `kern/parser.c'.
30935
30936 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
30937
30938 * kern/misc.c (grub_split_cmdline): Removed function.
30939
30940 * kern/rescue.c: Include <grub/parser.h>.
30941 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
30942 of `grub_split_cmdline'.
30943
30944 * normal/command.c: Include <grub/parser.h>.
30945 (grub_command_execute): Use `grub_parser_split_cmdline' instead
30946 of `grub_split_cmdline'.
30947
30948 * normal/completion.c: Include <grub/parser.h>.
30949 (cmdline_state): New variable.
30950 (iterate_dir): End the filename with a quote depending on the
30951 command line state.
30952 (get_state): new function.
30953 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
30954 split the arguments and determine the current argument. When the
30955 argument string is not quoted, escape all spaces.
30956
30957 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
30958
30959 * normal/sparc64/setjmp.S: New file.
30960
30961 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
30962
30963 * include/grub/sparc64/libgcc.h: New file.
30964 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
30965 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
30966 normal/sparc64/setjmp.c.
30967
30968 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
30969
30970 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
30971 * kern/sparc64/cache.S: New file.
30972 * kern/sparc64/cache.c: Removed.
30973 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
30974 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
30975 -mtune=ultrasparc.
30976 (COMMON_LDFLAGS): Add -melf64_sparc.
30977 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
30978 (grubof_SOURCES): Use cache.S instead of cache.c.
30979 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
30980 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
30981 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
30982 commented though.
30983 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
30984 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
30985 (linux_mod_CFLAGS): Commented out.
30986 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
30987 out because module isn't built.
30988 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
30989 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
30990 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
30991 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
30992 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
30993 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
30994 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
30995 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
30996 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
30997 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
30998 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
30999 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
31000 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
31001 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
31002
31003 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
31004
31005 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
31006 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
31007 longer, because HFS should not be used on PC.
31008
31009 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
31010
31011 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
31012 consistently within the loop.
31013
31014 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
31015
31016 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
31017 directory can not be read.
31018
31019 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
31020
31021 * configure.ac (AC_INIT): Increase the version number to 1.91.
31022
31023 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
31024 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
31025 term/i386/pc/serial.c.
31026
31027 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
31028
31029 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
31030 file size must be permitted.
31031
31032 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
31033 between %ah and %al.
31034
31035 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
31036
31037 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
31038 grub_uint64_t.
31039 Call the hook with a NUL-terminated filename.
31040 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
31041 grub_cpu_to_be32.
31042
31043 * kern/term.c (cursor_state): New variable.
31044 (grub_term_set_current): Reset the cursor state on a new
31045 terminal.
31046 (grub_setcursor): Rewritten to use CURSOR_STATE.
31047 (grub_getcursor): New function.
31048
31049 * include/grub/term.h (grub_getcursor): New prototype.
31050
31051 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
31052 integers on ARM. Reported by Timothy Baldwin
31053 <T.E.Baldwin99@members.leeds.ac.uk>.
31054
31055 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
31056
31057 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
31058 allocated.
31059 (grub_sfs_dir): Likewise.
31060
31061 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
31062
31063 Add support for the SFS filesystem.
31064
31065 * fs/sfs.c: New file.
31066
31067 * DISTLIST: Added `fs/sfs.c'.
31068
31069 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
31070 (grub_probefs_SOURCES): Likewise.
31071 (grub_emu_SOURCES): Likewise.
31072 (pkgdata_MODULES): Add `sfs.mod'.
31073 (sfs_mod_SOURCES): New variable.
31074 (sfs_mod_CFLAGS): Likewise.
31075 (sfs_mod_LDFLAGS): Likewise.
31076
31077 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
31078 (pkgdata_MODULES): Add `sfs.mod'.
31079 (sfs_mod_SOURCES): New variable.
31080 (sfs_mod_CFLAGS): Likewise.
31081
31082 * util/grub-emu.c (main): Call `grub_sfs_init' and
31083 `grub_sfs_fini'.
31084
31085 * include/grub/fs.h (grub_sfs_init): New prototype.
31086 (grub_sfs_fini): Likewise.
31087
31088 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
31089
31090 Add support for the AFFS filesystem.
31091
31092 * fs/affs.c: New file.
31093
31094 * DISTLIST: Added `fs/affs.c'.
31095
31096 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
31097 (grub_probefs_SOURCES): Likewise.
31098 (grub_emu_SOURCES): Likewise.
31099 (pkgdata_MODULES): Add `affs.mod'.
31100 (affs_mod_SOURCES): New variable.
31101 (affs_mod_CFLAGS): Likewise.
31102 (affs_mod_LDFLAGS): Likewise.
31103
31104 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
31105 (pkgdata_MODULES): Add `affs.mod'.
31106 (affs_mod_SOURCES): New variable.
31107 (affs_mod_CFLAGS): Likewise.
31108
31109 * util/grub-emu.c (main): Call `grub_affs_init' and
31110 `grub_affs_fini'.
31111
31112 * include/grub/fs.h (grub_affs_init): New prototype.
31113 (grub_affs_fini): Likewise.
31114
31115 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
31116
31117 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
31118
31119 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
31120
31121 * configure.ac: Accept `x86_64' as host_cpu. In that case add
31122 `-m32' to CFLAGS.
31123
31124 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
31125 linking.
31126
31127 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
31128 (COMMON_LDFLAGS): New variable.
31129 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
31130 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
31131 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
31132 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
31133 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
31134 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
31135 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
31136 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
31137 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
31138 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
31139 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
31140 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
31141 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
31142 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
31143 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
31144 variables.
31145 (normal_mod_ASFLAGS): Add `-m32'.
31146
31147 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
31148 (grub_host_size_t, grub_host_ssize_t): New types.
31149 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
31150 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
31151 `GRUB_HOST_SIZEOF_VOID_P'.
31152
31153 * include/grub/kernel.h (struct grub_module_header): Type of
31154 member offset changed to `grub_host_off_t'. Type of member size
31155 changed to `grub_host_size_t'.
31156 (struct grub_module_info): Type of member offset changed to
31157 `grub_host_off_t'. Type of member size changed to
31158 `grub_host_size_t'.
31159
31160 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
31161
31162 Make GRUB's kernel compliant to Multiboot Specification.
31163
31164 * kern/i386/pc/startup.S (multiboot_header): New label.
31165 (multiboot_entry): Likewise.
31166 (multiboot_trampoline): Likewise.
31167
31168 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
31169 Increased to 0x4A0.
31170
31171 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
31172 put parentheses after a question mark.
31173 [!GRUB_UTIL] (my_mod): New variable.
31174
31175 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
31176
31177 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
31178
31179 Adds support for the XFS filesystem. Btrees are not supported
31180 yet.
31181
31182 * fs/xfs.c: New file.
31183
31184 * DISTLIST: Added `fs/xfs.c'.
31185
31186 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
31187 (grub_probefs_SOURCES): Likewise.
31188 (grub_emu_SOURCES): Likewise.
31189 (pkgdata_MODULES): Add `xfs.mod'.
31190 (xfs_mod_SOURCES): New variable.
31191 (xfs_mod_CFLAGS): Likewise.
31192
31193 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
31194 (pkgdata_MODULES): Add `xfs.mod'.
31195 (xfs_mod_SOURCES): New variable.
31196 (xfs_mod_CFLAGS): Likewise.
31197
31198 * util/grub-emu.c (main): Call `grub_xfs_init' and
31199 `grub_xfs_fini'.
31200
31201 * include/grub/fs.h (grub_xfs_init): New prototype.
31202 (grub_xfs_fini): Likewise.
31203
31204
31205 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
31206
31207 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
31208 color modes, allow greater than 16 colors to be configured as
31209 a default palette.
31210
31211 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
31212
31213 * normal/completion.c (complete_arguments): Add the qualifier
31214 const into OPTIONS.
31215
31216 From Omniflux <omniflux+lists@omniflux.com>:
31217 * include/grub/terminfo.h: New file.
31218 * include/grub/tparm.h: Likewise.
31219 * include/grub/i386/pc/serial.h: Likewise.
31220 * term/terminfo.c: Likewise.
31221 * term/tparm.c: Likewise.
31222 * term/i386/pc/serial.c: Likewise.
31223 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
31224 serial.mod.
31225 (terminfo_mod_SOURCES): New variable.
31226 (terminfo_mod_CFLAGS): Likewise.
31227 (serial_mod_SOURCES): Likewise.
31228 (serial_mod_CFLAGS): Likewise.
31229
31230 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
31231
31232 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
31233 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
31234 and kern/powerpc/ieee1275/cmain.c, respectively.
31235
31236 * boot/powerpc/ieee1275/crt0.S: Moved to ...
31237 * kern/powerpc/ieee1275/crt0.S: ... here.
31238
31239 * boot/powerpc/ieee1275/cmain.c: Moved to ...
31240 * kern/powerpc/ieee1275/cmain.c: ... here.
31241
31242 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
31243 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
31244 instead of boot/powerpc/ieee1275/crt0.S and
31245 boot/powerpc/ieee1275/cmain.c, respectively.
31246
31247 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
31248 sectors. It was not used anyway.
31249
31250 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
31251
31252 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
31253 `unused parameter' warning.
31254
31255 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
31256
31257 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
31258 function.
31259 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
31260 getcharwidth.
31261
31262 2005-08-28 Marco Gerards <metgerards@student.han.nl>
31263
31264 * include/grub/normal.h (enum grub_completion_type): Added
31265 `GRUB_COMPLETION_TYPE_ARGUMENT'.
31266
31267 * normal/cmdline.c (print_completion): Handle
31268 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
31269 * normal/menu_entry.c (store_completion): Likewise.
31270
31271 * normal/completion.c (complete_arguments): New function.
31272 (grub_normal_do_completion): Call `complete_arguments' when the
31273 current words start with a dash.
31274
31275 2005-08-27 Marco Gerards <metgerards@student.han.nl>
31276
31277 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
31278 `gzio.mod' instead of `io.mod').
31279
31280 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
31281
31282 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
31283 (DISTDIRS): Added io and video.
31284 Rewrite the search routine to make an output consistently.
31285
31286 * DISTLIST: Added conf/sparc64-ieee1275.mk,
31287 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
31288 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
31289 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
31290 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
31291 util/powerpc/ieee1275/misc.c.
31292
31293 * include/grub/gzio.h: New file.
31294 * io/gzio.c: Likewise.
31295
31296 * kern/file.c (grub_file_close): Call grub_device_close only if
31297 FILE->DEVICE is not NULL.
31298
31299 * include/grub/mm.h [!NULL] (NULL): New macro.
31300
31301 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
31302
31303 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
31304 (pkgdata_MODULES): Added gzio.mod.
31305 (gzio_mod_SOURCES): New variable.
31306 (gzio_mod_CFLAGS): Likewise.
31307
31308 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
31309 (pkgdata_MODULES): Added gzio.mod.
31310 (gzio_mod_SOURCES): New variable.
31311 (gzio_mod_CFLAGS): Likewise.
31312
31313 * commands/cat.c: Include grub/gzio.h.
31314 (grub_cmd_cat): Use grub_gzfile_open instead of
31315 grub_file_open.
31316
31317 * commands/cmp.c: Include grub/gzio.h.
31318 (grub_cmd_cmp): Use grub_gzfile_open instead of
31319 grub_file_open.
31320
31321 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
31322 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
31323 grub_file_open.
31324 (grub_rescue_cmd_module): Likewise.
31325
31326 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
31327
31328 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
31329 kern/sparc64/ieee1275/init.c because it contains _start.
31330 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
31331
31332 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
31333
31334 * configure.ac: Add support for sparc64 host with ieee1275
31335 firmware.
31336 * configure: Generated from configure.ac.
31337 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
31338 instead of int.
31339 (grub_ofdisk_read): Likewise.
31340 (grub_ofdisk_open): Use %p to print pointer values, and cast the
31341 pointers as (void *) to remove a warning.
31342 (grub_ofdisk_close): Likewise.
31343 (grub_ofdisk_read): Likewise.
31344 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
31345 returns, so make it return void to remove a warning.
31346 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
31347 Corresponding prototype change.
31348 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
31349 values, and cast the pointers as (void *) to remove a warning.
31350 (grub_mm_dump): Likewise.
31351 * conf/sparc64-ieee1275.mk: New file.
31352 * conf/sparc64-ieee1275.rmk: Likewise.
31353 * include/grub/sparc64/setjmp.h: Likewise.
31354 * include/grub/sparc64/types.h: Likewise.
31355 * include/grub/sparc64/ieee1275/console.h: Likewise.
31356 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
31357 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
31358 * include/grub/sparc64/ieee1275/time.h: Likewise.
31359 * kern/sparc64/cache.c: Likewise.
31360 * kern/sparc64/dl.c: Likewise.
31361 * kern/sparc64/ieee1275/init.c: Likewise.
31362 * kern/sparc64/ieee1275/openfw.c: Likewise.
31363
31364 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
31365
31366 * util/console.c (grub_ncurses_putchar): If C is greater than
31367 0x7f, set C to a question mark.
31368 (grub_ncurses_getcharwidth): New function.
31369 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
31370 getcharwidth.
31371
31372 * normal/menu.c (print_entry): Made aware of Unicode. First,
31373 convert TITLE to UCS-4, and predict the cursor position by
31374 grub_getcharwidth.
31375
31376 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
31377 const to SRC.
31378 * kern/misc.c (grub_utf16_to_utf8): Likewise.
31379
31380 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
31381
31382 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
31383 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
31384 grub_strcat.
31385
31386 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
31387 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
31388 grub_strcpy and grub_strlen. Take it into account that a space
31389 character is inserted as a delimiter.
31390
31391 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
31392
31393 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
31394 invalid magic in the error.
31395
31396 * commands/search.c: New file.
31397
31398 * util/grub-emu.c (main): Call grub_search_init and
31399 grub_search_fini.
31400
31401 * kern/rescue.c (grub_rescue_print_disks): Removed.
31402 (grub_rescue_print_devices): New function.
31403 (grub_rescue_cmd_ls): Use grub_device_iterate with
31404 grub_rescue_print_devices instead of grub_disk_dev_iterate with
31405 grub_rescue_print_disks.
31406
31407 * kern/partition.c (grub_partition_iterate): Return the result of
31408 PARTMAP->ITERATE instead of GRUB_ERRNO.
31409
31410 * kern/device.c: Include grub/partition.h.
31411 (grub_device_iterate): New function.
31412
31413 * include/grub/partition.h (grub_partition_iterate): Return int
31414 instead of grub_err_t.
31415
31416 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
31417 prototype.
31418 [GRUB_UTIL] (grub_search_fini): Likewise.
31419
31420 * include/grub/device.h (grub_device_iterate): New prototype.
31421
31422 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
31423 commands/search.c.
31424 (pkgdata_MODULES): Added search.mod.
31425 (search_mod_SOURCES): New variable.
31426 (search_mod_CFLAGS): Likewise.
31427
31428 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
31429 (pkgdata_MODULES): Added search.mod.
31430 (search_mod_SOURCES): New variable.
31431 (search_mod_CFLAGS): Likewise.
31432
31433 * commands/ls.c (grub_ls_list_disks): Renamed to ...
31434 (grub_ls_list_devices): ... this, and use grub_device_iterate.
31435 All callers changed.
31436
31437 * DISTLIST: Added commands/search.c.
31438
31439 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
31440
31441 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
31442 conversion.
31443 (grub_getcharwidth): New function.
31444
31445 * kern/misc.c (grub_utf8_to_ucs4): New function.
31446
31447 * include/grub/term.h (struct grub_term): Added a new member
31448 "getcharwidth".
31449 (grub_getcharwidth): New prototype.
31450
31451 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
31452
31453 * term/i386/pc/console.c (map_char): New function. Segregated from
31454 grub_console_putchar.
31455 (grub_console_putchar): Use map_char.
31456 (grub_console_getcharwidth): New function.
31457 (grub_console_term): Specified grub_console_getcharwidth as
31458 getcharwidth.
31459
31460 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
31461 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
31462
31463 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
31464 GRUB_ERRNO.
31465 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
31466 on grub_strtoul completely.
31467 (write_char): Declare local variables in the beginning of the
31468 function.
31469 (grub_vesafb_getcharwidth): New function.
31470 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
31471 getcharwidth.
31472
31473 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
31474
31475 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
31476 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
31477 commands/i386/pc/vbetest.c.
31478
31479 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
31480 call grub_vbe_get_controller_info again, because the returned
31481 information is volatile.
31482 (grub_vbe_set_video_mode): Mostly rewritten.
31483 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
31484 grub_vbe_status_t correctly.
31485 (grub_vbe_get_video_mode_info): Likewise.
31486 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
31487 several if statements.
31488
31489 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
31490 * commands/i386/pc/vbeinfo.c: ... this.
31491
31492 * commands/i386/pc/vbe_test.c: Renamed to ...
31493 * commands/i386/pc/vbetest.c: ... this.
31494
31495 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
31496 ...
31497 (grub_cmd_vbeinfo): ... this. Save video modes before
31498 iterating. Skip a video mode, if it is not available, not enough
31499 information is given or it is monochrome. Show the memory
31500 model. Leave the interpretation of MODEVAR to grub_strtoul
31501 completely.
31502 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
31503 (GRUB_MOD_FINI): Likewise.
31504
31505 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
31506 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
31507 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
31508 duplicated grub_env_get. Leave the interpretation of MODEVAR to
31509 grub_strtoul completely.
31510 (real2pm): Removed.
31511 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
31512 (GRUB_MOD_FINI): Likewise.
31513
31514 * normal/misc.c: Include grub/mm.h.
31515
31516 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
31517 vbe_list_modes with vbetest.mod and vbeinfo.mod.
31518 (vbe_list_modes_mod_SOURCES): Removed.
31519 (vbe_list_modes_mod_CFLAGS): Likewise.
31520 (vbe_test_mod_SOURCES): Likewise.
31521 (vbe_test_mod_CFLAGS): Likewise.
31522 (vbeinfo_mod_SOURCES): New variable.
31523 (vbeinfo_mod_CFLAGS): Likewise.
31524 (vbetest_mod_SOURCES): Likewise.
31525 (vbetest_mod_CFLAGS): Likewise.
31526
31527 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
31528
31529 * normal/misc.c: New file.
31530
31531 * DISTLIST: Added normal/misc.c.
31532
31533 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
31534 DISK to HOOK. Call HOOK with DISK.
31535 * partmap/apple.c (apple_partition_map_iterate): Likewise.
31536 * partmap/pc.c (pc_partition_map_iterate): Likewise.
31537 * partmap/sun.c (sun_partition_map_iterate): Likewise.
31538
31539 * normal/menu_entry.c (struct screen): Added a new member
31540 "completion_shown".
31541 (completion_buffer): New global variable.
31542 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
31543 (store_completion): New function.
31544 (complete): Likewise.
31545 (clear_completions): Likewise.
31546 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
31547 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
31548 a tab, call complete.
31549
31550 * normal/completion.c (disk_dev): Removed.
31551 (print_simple_completion): Likewise.
31552 (print_partition_completion): Likewise.
31553 (print_func): New global variable.
31554 (add_completion): Do not take the arguments WHAT or PRINT any
31555 longer. Added a new argument TYPE. Instead of printing directly,
31556 call PRINT_FUNC if not NULL.
31557 All callers changed.
31558 (complete_device): Use a local variable DEV instead of
31559 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
31560 (grub_normal_do_completion): Take a new argument HOOK. Do not
31561 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
31562 empty string, return NULL instead.
31563 All callers changed.
31564
31565 * normal/cmdline.c (print_completion): New function.
31566
31567 * kern/partition.c (grub_partition_iterate): Add an argument DISK
31568 to HOOK.
31569 All callers changed.
31570
31571 * kern/disk.c (grub_print_partinfo): Removed.
31572
31573 * include/grub/partition.h (struct grub_partition_map): Add a new
31574 argument DISK into HOOK of ITERATE.
31575 (grub_partition_iterate): Add a new argument DISK to HOOK.
31576
31577 * include/grub/normal.h (enum grub_completion_type): New enum.
31578 (grub_completion_type_t): New type.
31579 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
31580 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
31581 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
31582 (GRUB_COMPLETION_TYPE_FILE): Likewise.
31583 (grub_normal_do_completion): Added a new argument HOOK.
31584 (grub_normal_print_device_info): New prototype.
31585
31586 * include/grub/disk.h (grub_print_partinfo): Removed.
31587
31588 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
31589 (normal_mod_SOURCES): Likewise.
31590 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31591 (normal_mod_SOURCES): Likewise.
31592
31593 * commands/ls.c (grub_ls_list_disks): Use
31594 grub_normal_print_device_info instead of grub_print_partinfo. Free
31595 PNAME.
31596 (grub_ls_list_files): Use grub_normal_print_device_info instead of
31597 duplicating the code.
31598
31599 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
31600
31601 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
31602 follow GCS more precisely.
31603 * commands/i386/pc/vbe_test.c: Likewise.
31604 * include/grub/i386/pc/vbe.h: Likewise.
31605 * term/i386/pc/vesafb.c: Likewise.
31606 * video/i386/pc/vbe.c: Likewise.
31607
31608 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
31609
31610 * DISTLIST: Added term/i386/pc/vesafb.c
31611 DISTLIST: Added video/i386/pc/vbe.c
31612 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
31613 DISTLIST: Added commands/i386/pc/vbe_test.c.
31614 * commands/i386/pc/vbe_list_modes.c: New file.
31615 * commands/i386/pc/vbe_test.c: Likewise.
31616 * term/i386/pc/vesafb.c: Likewise.
31617 * video/i386/pc/vbe.c: Likewise.
31618 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
31619 (grub_vbe_probe) Added prototype.
31620 (grub_vbe_set_video_mode) Likewise.
31621 (grub_vbe_get_video_mode) Likewise.
31622 (grub_vbe_get_video_mode_info) Likewise.
31623 (grub_vbe_set_pixel_rgb) Likewise.
31624 (grub_vbe_set_pixel_index) Likewise.
31625 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
31626 (pkgdata_MODULES): Added vesafb.mod.
31627 (pkgdata_MODULES): Added vbe_list_modes.mod.
31628 (pkgdata_MODULES): Added vbe_test.mod.
31629 (vbe_mod_SOURCES): Added.
31630 (vbe_mod_CFLAGS): Likewise.
31631 (vesafb_mod_SOURCES): Likewise.
31632 (vesafb_mod_CFLAGS): Likewise.
31633 (vbe_list_modes_mod_SOURCES): Likewise.
31634 (vbe_list_modes_mod_CFLAGS): Likewise.
31635 (vbe_test_mod_SOURCES): Likewise.
31636 (vbe_test_mod_CFLAGS): Likewise.
31637
31638 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
31639
31640 * normal/command.c (grub_command_execute): If INTERACTIVE is
31641 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
31642 CMDLINE. Disable the pager if INTERACTIVE is true.
31643 All callers are changed.
31644
31645 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
31646 before reading a config file.
31647 * normal/main.c (read_config_file): Even if a command is not
31648 found, register it if it is within an entry.
31649
31650 * util/grub-emu.c: Include sys/types.h and unistd.h.
31651 (options): Added --hold.
31652 (struct arguments): Added a new member "hold".
31653 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
31654 missing.
31655 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
31656 cleared by a debugger, if it is not zero.
31657
31658 * include/grub/normal.h (grub_command_execute): Add an argument
31659 INTERACTIVE.
31660
31661 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
31662
31663 * DISTLIST: Added include/grub/i386/pc/vbe.h.
31664
31665 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
31666
31667 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
31668 program with another one, because the old one didn't detect a bug
31669 in gcc-3.4. Always use regparm 2, because the new test is still
31670 not enough for gcc-4.0. Someone must investigate a simple test
31671 case which detects a bug in gcc-4.0.
31672
31673 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
31674
31675 * DISTLIST: Added normal/completion.c.
31676
31677 * normal/completion.c: New file.
31678
31679 * term/i386/pc/console.c (grub_console_getwh): New function.
31680 (grub_console_term): Assign grub_console_getwh to getwh.
31681
31682 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
31683 function is defined in normal/completion.c as
31684 grub_normal_do_completion.
31685 (grub_cmdline_get): Use grub_normal_do_completion instead of
31686 grub_tab_complete.
31687
31688 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
31689 returns non-zero, otherwise return 0.
31690 (grub_partition_iterate): First, probe the partition map. Then,
31691 call ITERATE only for this partition map.
31692
31693 * kern/misc.c (grub_strncmp): Rewritten.
31694
31695 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
31696 returns non-zero. Otherwise return 0.
31697
31698 * include/grub/partition.h (grub_partition_map_iterate): Return
31699 int instead of void.
31700
31701 * include/grub/normal.h (grub_normal_do_completion): New prototype.
31702
31703 * include/grub/misc.h (grub_strncmp): Change the type of N to
31704 grub_size_t.
31705
31706 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
31707 of void.
31708
31709 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
31710 unsigned explicitly before comparing it with I.
31711
31712 * kern/main.c (grub_env_write_root): Add the attribute unused into
31713 VAR.
31714
31715 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
31716 normal/completion.c.
31717 (normal_mod_SOURCES): Likewise.
31718 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31719 (normal_mod_SOURCES): Likewise.
31720
31721 * normal/command.c (grub_iterate_commands): If ITERATE returns
31722 non-zero, return one immediately.
31723
31724 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
31725
31726 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
31727 * kern/i386/pc/startup.S: Updated Global Descriptor table's
31728 descriptions.
31729 (grub_vbe_get_controller_info): New function.
31730 (grub_vbe_get_mode_info): Likewise.
31731 (grub_vbe_set_mode): Likewise.
31732 (grub_vbe_get_mode): Likewise.
31733 (grub_vbe_set_memory_window): Likewise.
31734 (grub_vbe_get_memory_window): Likewise.
31735 (grub_vbe_set_scanline_length): Likewise.
31736 (grub_vbe_get_scanline_length): Likewise.
31737 (grub_vbe_set_display_start): Likewise.
31738 (grub_vbe_get_display_start): Likewise.
31739 (grub_vbe_set_palette_data): Likewise.
31740 * include/grub/i386/pc/vbe.h: New file.
31741
31742 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
31743
31744 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
31745 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
31746 * DISTLIST: Likewise.
31747 * kern/ieee1275/of.c: Moved to ...
31748 * kern/ieee1275/ieee1275.c: ... here.
31749
31750 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
31751
31752 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
31753 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
31754 Pass 0 as `end' parameter to grub_strtoul().
31755
31756 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
31757
31758 * include/grub/powerpc/ieee1275/console.h: Do not include
31759 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
31760 ifdef.
31761 (grub_console_cur_color): Remove i386-specific prototype.
31762 (grub_console_real_putchar): Likewise.
31763 (grub_console_checkkey): Likewise.
31764 (grub_console_getkey): Likewise.
31765 (grub_console_getxy): Likewise.
31766 (grub_console_gotoxy): Likewise.
31767 (grub_console_cls): Likewise.
31768 (grub_console_setcursor): Likewise.
31769 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
31770 Include <grub/machine/console.h>.
31771 * term/ieee1275/ofconsole.c: Likewise.
31772
31773 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
31774
31775 * Makefile.in (LIBLZO): New variable.
31776
31777 * configure.ac: Check for LZO version 2.
31778
31779 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
31780 lzo/lzo1x.h instead of lzo1x.h.
31781
31782 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
31783 of -llzo.
31784
31785 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
31786 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
31787
31788 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
31789 copying the data from PARTITION to P.
31790
31791 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
31792
31793 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
31794 negative, unload the module.
31795
31796 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
31797 map is "pc_partition_map" but not "pc".
31798 (usage): Fix the description. The options are --boot-image and
31799 --core-image but not --boot-file or --core-file.
31800 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
31801 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
31802 DEFAULT_DIRECTORY.
31803
31804 * util/i386/pc/grub-install.in: Do not specify --boot-file or
31805 --core-file. Specify INSTALL_DEVICE as an argument.
31806
31807 * util/console.c: Include config.h.
31808 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
31809 [HAVE_NCURSES_H]: Include ncurses.h.
31810 [HAVE_CURSES_H]: Include curses.h.
31811 [!A_NORMAL] (A_NORMAL): Defined as zero.
31812 [!A_STANDOUT] (A_STANDOUT): Likewise.
31813
31814 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
31815 -lncurses.
31816 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
31817
31818 * configure.ac: Check for curses libraries and headers.
31819
31820 * Makefile.in (LIBCURSES): New variable.
31821
31822 * genmk.rb (Script::rule): Set the executable bits.
31823
31824 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
31825 name of the PC partition map is "pc_partition_map" but not "pc".
31826
31827 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
31828
31829 * util/i386/pc/grub-install.in (grub_probefs): New variable.
31830 (modules): Likewise.
31831 (usage): Added descriptions for --modules and --grub-probefs.
31832 Handle --modules and --grub-probefs. Save the arguments in MODULES
31833 and GRUB_PROBEFS, respectively.
31834 Auto-detect a filesystem module against GRUBDIR. If the result is
31835 empty and modules are not specified explicitly, abort the
31836 installation. Add the result to MODULES.
31837
31838 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
31839 disk/powerpc/ieee1275/ofdisk.c,
31840 include/grub/powerpc/ieee1275/init.h and
31841 term/powerpc/ieee1275/ofconsole.c.
31842 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
31843 term/ieee1275/ofconsole.c.
31844
31845 * include/grub/powerpc/ieee1275/console.h: Resurrected.
31846
31847 * COPYING: Upgraded to the latest version. Only the address of the
31848 FSF office has changed.
31849
31850 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
31851
31852 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
31853 kern/ieee1275.c with kern/ieee1275/of.c.
31854
31855 * kern/ieee1275.c: Moved to ...
31856 * kern/ieee1275/of.c: ... here.
31857
31858 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
31859
31860 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
31861 readability.
31862
31863 * config.guess: Updated to the latest version from gnulib.
31864 * config.sub: Likewise.
31865 * install.sh: Likewise.
31866 * mkinstalldirs: Likewise.
31867
31868 * include/grub/console.h: Removed. This file is arch-specific. Do
31869 not put this in include/grub.
31870
31871 * include/grub/i386/pc/console.h: Resurrected.
31872
31873 * util/console.c: Include grub/machine/console.h instead of
31874 grub/console.h.
31875 * util/grub-emu.c: Likewise.
31876
31877 2005-08-04 Marco Gerards <metgerards@student.han.nl>
31878
31879 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
31880 hardcoded value.
31881
31882 From Vincent Pelletier <subdino2004@yahoo.fr>
31883 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
31884 Redefined to use grub_getwh.
31885 (grub_term): New member named getwh.
31886 (grub_getwh): New prototype.
31887 * kern/term.c (grub_getwh): New function.
31888 * term/i386/pc/console.c (grub_console_getwh): New function.
31889 (grub_console_term): New member `getwh'.
31890 * term/i386/pc/vga.c (grub_vga_getwh): New function.
31891 (grub_vga_term): New member `getwh'.
31892 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
31893 grub_ssize_t.
31894 (grub_ofconsole_getw): New function.
31895 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
31896 (grub_ofconsole_term): New field named getwh and new initial
31897 value.
31898
31899 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
31900
31901 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
31902 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
31903 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
31904 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
31905 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
31906 of <grub/machine/ieee1275.h>.
31907 * commands/ieee1275/reboot.c: Likewise.
31908 * boot/powerpc/ieee1275/ieee1275.c: Move ...
31909 * kern/ieee1275.c: ... to here. All users updated. Change all
31910 parameter structs to use new type `grub_ieee1275_cell_t'.
31911 * term/powerpc/ieee1275/ofconsole.c: Move ...
31912 * term/ieee1275/ofconsole.c: ... to here. All users updated.
31913 * disk/powerpc/ieee1275/ofdisk.c: Move ...
31914 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
31915 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
31916 to return int.
31917 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
31918 Remove unused prototypes. All users updated.
31919 * include/grub/powerpc/ieee1275/console.h: Removed.
31920 * include/grub/powerpc/ieee1275/ieee1275.h: Define
31921 `grub_ieee1275_cell_t'.
31922 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
31923 Cast comparisons with -1 to the correct type.
31924 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
31925 type to match `grub_ieee1275_entry_fn'.
31926
31927 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
31928
31929 * DISTLIST: Added util/i386/pc/grub-probefs.c.
31930
31931 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
31932 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
31933 partmap/sun.c.
31934 (grub_probefs_SOURCES): New variable.
31935
31936 * util/i386/pc/grub-probefs.c: New file.
31937
31938 * util/i386/pc/grub-setup.c (main): Call
31939 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
31940 grub_hfs_init and grub_jfs_init to initialize the system. Call
31941 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
31942 grub_pc_partition_map_fini to finish the system.
31943
31944 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
31945
31946 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
31947 function.
31948 (grub_multiboot_load_elf32): Likewise.
31949 (grub_multiboot_is_elf64): Likewise.
31950 (grub_multiboot_load_elf64): Likewise.
31951 (grub_multiboot_load_elf): Likewise.
31952 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
31953 an ELF32 or ELF64 file.
31954 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
31955
31956 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
31957 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
31958 NULL before calling FS->LABEL.
31959 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
31960 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
31961 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
31962 before calling FS->LABEL.
31963
31964 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
31965
31966 * util/i386/pc/grub-install.in (datadir): New variable.
31967 (libdir): Removed.
31968 (pkgdatadir): New variable.
31969 (pkglibdir): Removed.
31970
31971 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
31972
31973 * DISTLIST: Added util/i386/pc/grub-install.in.
31974
31975 * util/i386/pc/grub-install.in: New file.
31976
31977 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
31978 (grub_install_SOURCES): Likewise.
31979
31980 * genmk.rb: Added support for scripts.
31981 (Script): New class.
31982 (scripts): New variable.
31983
31984 * Makefile.in (install-local): Install sbin_SCRIPTS by
31985 INSTALL_SCRIPT.
31986 (uninstall): Remove sbin_SCRIPTS.
31987
31988 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
31989 device, try to get a GRUB device by
31990 grub_util_biosdisk_get_grub_dev.
31991 Free DEST_DEV.
31992
31993 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
31994 description for --device-map.
31995
31996 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
31997
31998 Change the semantics of variable hooks. They now return strings
31999 instead of error values.
32000
32001 * util/i386/pc/grub-setup.c: Include grub/env.h.
32002 (setup): Use grub_device_set_root instead of grub_env_set.
32003
32004 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
32005 grub_env_get instead of grub_device_set_root and
32006 grub_device_get_root, respectively.
32007
32008 * kern/main.c (grub_env_write_root): New function.
32009 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
32010 grub_env_set instead of grub_device_set_root.
32011
32012 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
32013 many variables.
32014 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
32015 rather than calling ENV->WRITE_HOOK afterwards.
32016 (grub_env_get): Return the result of ENV->READ_HOOK rather than
32017 passing a pointer of a pointer.
32018 (grub_register_variable_hook): Change the types of "read_hook" and
32019 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
32020 respectively.
32021 Allocate the default empty string on the heap, because this string
32022 may be freed later.
32023
32024 * kern/device.c: Include grub/env.h.
32025 (grub_device_set_root): Removed.
32026 (grub_device_get_root): Likewise.
32027 (grub_device_open): Use grub_env_get instead of
32028 grub_device_get_root.
32029
32030 * include/grub/env.h (grub_env_read_hook_t): New type.
32031 (grub_env_write_hook_t): Likewise.
32032 (grub_env_var): Change the types of "read_hook" and "write_hook"
32033 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
32034 (grub_register_variable_hook): Likewise.
32035
32036 * include/grub/device.h (grub_device_set_root): Removed.
32037 (grub_device_set_root): Likewise.
32038
32039 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
32040 make sure that DIRNAME terminates with '/', so that
32041 grub_fat_find_dir will fail if PATH is not a directory.
32042
32043 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
32044 from DIRNAME.
32045 Use the qualifier auto for print_files and print_files_long.
32046 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
32047 as a regular file.
32048 Put a newline only if there is no error.
32049 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
32050 used.
32051
32052 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
32053
32054 * kern/partition.c (grub_partition_probe): Initialize PART to
32055 NULL. Otherwise, when no partition map is registered, this returns
32056 a garbage.
32057
32058 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
32059
32060 * partmap/apple.c (apple_partition_map_iterate): Check if POS
32061 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
32062 valid.
32063
32064 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
32065
32066 * commands/ls.c (grub_ls_list_disks): Print the filesystem
32067 information on each device, if it does not have partitions. Print
32068 "Device" instead of "Disk", because this function is not specific
32069 to disk devices.
32070
32071 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
32072 static to ensure that it is put on the memory rather than a
32073 register.
32074
32075 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
32076
32077 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
32078 (grub_cat_init): Likewise.
32079 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
32080 (options): Likewise.
32081 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32082 (grub_configfile_init): Likewise.
32083 * font/manager.c (GRUB_MOD_INIT): Likewise.
32084 * commands/help.c (GRUB_MOD_INIT): Likewise.
32085 (grub_help_init): Likewise.
32086 * normal/command.c (grub_command_init): Likewise.
32087 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
32088 * disk/loopback.c (grub_loop_init): Likewise.
32089 (GRUB_MOD_INIT): Likewise.
32090 * commands/ls.c (grub_ls_init): Likewise.
32091 (GRUB_MOD_INIT): Likewise.
32092 (options): Likewise.
32093 * commands/boot.c (grub_boot_init): Likewise.
32094 (GRUB_MOD_INIT): Likewise.
32095 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
32096 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
32097 (GRUB_MOD_INIT): Likewise.
32098 * commands/cmp.c (grub_cmp_init): Likewise.
32099 (GRUB_MOD_INIT): Likewise.
32100
32101 * normal/arg.c: Use <> instead of "" to include header files.
32102 (SHORT_ARG_HELP): New macro.
32103 (SHORT_ARG_USAGE): Likewise.
32104 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
32105 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
32106 descriptions.
32107 (find_short): Check if C is 'h' or 'u' explicitly.
32108 (grub_arg_show_help): Use space characters instead of tabs. Treat
32109 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
32110 are shown with --help and --usage only if they are not used for
32111 the command itself.
32112 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
32113 'h' and 'u'.
32114
32115 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
32116 const into "longarg". Change the type of "shortarg" to int.
32117
32118 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
32119
32120 * boot/i386/pc/boot.S (boot_drive_check): New label.
32121
32122 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
32123 macro.
32124
32125 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
32126 which do not pass a boot drive correctly. Copied from GRUB Legacy.
32127
32128 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
32129
32130 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
32131 When turning off Gate A20, skip the check and return immediately,
32132 because this is not fatal usually.
32133
32134 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
32135
32136 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
32137 be 0x7C00 instead of 0x8000.
32138
32139 * boot/i386/pc/pxeboot.S: Rewritten.
32140
32141 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
32142 EXT_C.
32143 (gate_a20_check_state): Read a byte from 0x108000. Invert the
32144 result.
32145
32146 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
32147
32148 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
32149 robustness. This routine now supports a BIOS call and System
32150 Control Port A to modify the gate A20.
32151
32152 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
32153 Increased to 0x440.
32154
32155 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
32156
32157 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
32158 device path and resulting ihandle.
32159 (grub_ofdisk_close): dprintf the ihandle being closed.
32160 (grub_ofdisk_read): dprintf function parameters.
32161 * kern/mm.c (grub_mm_init_region): Likewise.
32162 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
32163 (grub_linux_boot): dprintf the Linux entry point, initrd address and
32164 size, and boot arguments.
32165 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
32166 before loading into memory.
32167 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
32168 before loading into memory.
32169
32170 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
32171
32172 * kern/mm.c: Added much documentation.
32173 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
32174 8, set to 5 instead of 8.
32175
32176 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
32177
32178 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
32179
32180 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
32181 (grub_mkdevicemap_SOURCES): New variable.
32182
32183 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
32184 lib/device.c of GRUB Legacy.
32185
32186 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
32187
32188 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
32189 instead of PATH is NULL.
32190
32191 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
32192
32193 * commands/cmp.c (BUFFER_SIZE): New macro.
32194 (grub_cmd_cmp): Close the right file at the right time. Compare
32195 only data just read. Don't report files of different size as
32196 identical. Dynamically allocate buffers. Move variable
32197 declarations at the beginning of function.
32198
32199 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
32200
32201 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
32202 reverse.
32203
32204 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
32205
32206 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
32207 when backspace is pressed at beginning of line.
32208
32209 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
32210
32211 * DISTLIST: Added genfslist.sh.
32212
32213 * normal/main.c (fs_module_list): New variable.
32214 (autoload_fs_module): New function.
32215 (read_fs_list): Likewise.
32216 (grub_normal_execute): Call read_fs_list.
32217
32218 * kern/fs.c (grub_fs_autoload_hook): New variable.
32219 (grub_fs_probe): Added support for auto-loading.
32220
32221 * include/grub/normal.h (struct grub_fs_module_list): New struct.
32222 (grub_fs_module_list_t): New type.
32223
32224 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
32225 (grub_fs_autoload_hook): New prototype.
32226
32227 * genfslist.sh: New file.
32228
32229 * genmk.rb: Added a rule to generate a filesystem list.
32230
32231 2005-06-30 Marco Gerards <metgerards@student.han.nl>
32232
32233 * configure.ac: Fix the test for cross-compiling.
32234
32235 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
32236 define GRUB_UTIL anymore.
32237
32238 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
32239 so this function works on other systems than just big endian.
32240 (load_modules): Likewise.
32241 (add_segments): Likewise.
32242
32243 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
32244
32245 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
32246 contains `l' modifier, get a long from va_arg().
32247
32248 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
32249
32250 * kern/mm.c (grub_free): If the next free block which is being
32251 merged is the first free block, set the first block to the block
32252 being freed.
32253 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
32254
32255 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
32256
32257 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
32258 `grub_ieee1275_chosen'.
32259
32260 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
32261
32262 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
32263 (grub_ieee1275_chosen): New variable.
32264 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
32265 `chosen'.
32266 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
32267 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
32268 Rename first argument to `phandle' for consistency.
32269 (grub_ieee1275_get_property_length): Likewise.
32270 (grub_ieee1275_next_property): Likewise. Change type of first argument
32271 to grub_ieee1275_phandle_t.
32272 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
32273 Move export next to declaration.
32274 (grub_ieee1275_chosen): New variable.
32275 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
32276 Correct cosmetic typo.
32277 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
32278 `grub_ieee1275_chosen'.
32279 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
32280 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
32281 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
32282 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
32283 `grub_ieee1275_chosen'.
32284
32285 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
32286
32287 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
32288 /chosen/bootargs.
32289 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
32290 /chosen/bootargs as "variable=value" pairs.
32291
32292 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
32293
32294 * include/grub/misc.h (grub_dprintf): New macro.
32295 (grub_real_dprintf): New prototype.
32296 (grub_strword): Likewise.
32297 (grub_iswordseparator): Likewise.
32298 * kern/misc.c (grub_real_dprintf): New function.
32299 (grub_strword): Likewise.
32300 (grub_iswordseparator): Likewise.
32301
32302 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
32303
32304 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
32305 (roundup): Remove macro.
32306 (grub_ieee1275_flags): Make static.
32307 (grub_ieee1275_realmode): Remove.
32308 (grub_ieee1275_test_flag): New function.
32309 (grub_ieee1275_set_flag): Likewise.
32310 (find_options): Rename to `grub_ieee1275_find_options'; update
32311 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
32312 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
32313 (cmain): New prototype.
32314 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
32315 `grub_ieee1275_flags' directly.
32316 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
32317 machine/biosdisk.h.
32318 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
32319 Don't include grub/machine/init.h.
32320 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
32321 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
32322 Remove prototype.
32323 (grub_ieee1275_realmode): Likewise.
32324 (grub_ieee1275_flag): New enum.
32325 (grub_ieee1275_test_flag): New prototype.
32326 (grub_ieee1275_set_flag): New prototype.
32327 * include/grub/powerpc/ieee1275/init.h: Remove file.
32328 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
32329 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
32330 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
32331 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
32332 comment.
32333 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
32334 `grub_ieee1275_test_flag'.
32335 (grub_ieee1275_encode_devname): Likewise.
32336
32337 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
32338
32339 * include/grub/powerpc/ieee1275/ieee1275.h
32340 (grub_ieee1275_encode_devname): New prototype.
32341 (grub_ieee1275_get_filename): Likewise.
32342 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
32343 function.
32344 (grub_set_prefix): Likewise.
32345 (grub_machine_init): Call grub_set_prefix.
32346 * kern/powerpc/ieee1275/openfw.c: Fix typos.
32347 (grub_parse_type): New enum.
32348 (grub_ieee1275_get_devargs): New function.
32349 (grub_ieee1275_get_devname): Likewise.
32350 (grub_ieee1275_parse_args): Likewise.
32351 (grub_ieee1275_get_filename): Likewise.
32352 (grub_ieee1275_encode_devname): Likewise.
32353
32354 2005-03-30 Marco Gerards <metgerards@student.han.nl>
32355
32356 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
32357 `grub_loader_unset'.
32358
32359 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
32360
32361 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
32362 instead of grub_ieee1275_interpret.
32363 (grub_halt_init): New function.
32364 (grub_halt_fini): Likewise.
32365 (GRUB_MOD_INIT): Correct message grammar.
32366 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
32367 instead of grub_ieee1275_interpret.
32368 (grub_reboot_init): New function.
32369 (grub_reboot_fini): Likewise.
32370 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
32371 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
32372 util/i386/pc/misc.c with commands/ieee1275/halt.c,
32373 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
32374 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
32375 function.
32376 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
32377 Add prototype.
32378 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
32379 prototype.
32380 (grub_halt): Likewise.
32381 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
32382 (cmain): Remove __attribute__((unused)).
32383 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
32384 (grub_heap_len): Likewise.
32385 (grub_machine_fini): New function.
32386 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
32387 (grub_halt): Likewise.
32388 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
32389 function.
32390 * util/powerpc/ieee1275/misc.c: New file.
32391
32392 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
32393
32394 * DISTLIST: New file.
32395 * gendistlist.sh: Likewise.
32396
32397 * Makefile.in (COMMON_DISTFILES): Removed.
32398 (BOOT_DISTFILES): Likewise.
32399 (CONF_DISTFILES): Likewise.
32400 (DISK_DISTFILES): Likewise.
32401 (FS_DISTFILES): Likewise.
32402 (INCLUDE_DISTFILES): Likewise.
32403 (KERN_DISTFILES): Likewise.
32404 (LOADER_DISTFILES): Likewise.
32405 (TERM_DISTFILES): Likewise.
32406 (UTIL_DISTFILES): Likewise.
32407 (DISTFILES): Likewise.
32408 (uninstall): Uninstall files in $(pkgdata_DATA).
32409 (DISTLIST): New target.
32410 (distdir): Use the contents of the file DISTLIST to get a list of
32411 distributed files.
32412
32413 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
32414
32415 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
32416 descriptor. This is ported from GRUB Legacy.
32417
32418 * gencmdlist.sh: Added an extra semicolon to make it work with
32419 old sed versions. Reported by Robert Bihlmeyer
32420 <robbe@orcus.priv.at>.
32421
32422 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
32423
32424 Automatic loading of commands is supported.
32425
32426 * normal/main.c (read_command_list): New function.
32427 (grub_normal_execute): Call read_command_list.
32428
32429 * normal/command.c (grub_register_command): Return zero or CMD.
32430 Allocate CMD->NAME from the heap.
32431 Initialize CMD->MODULE_NAME to zero.
32432 Find the same name as well. If the same command is found and it is
32433 a dummy command, overwrite members. If it is not a dummy command,
32434 return zero.
32435 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
32436 (grub_command_find): If a dummy command is found, load a module
32437 and retry to find a command only once.
32438
32439 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
32440 make sure that each command is loaded.
32441
32442 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
32443 macro.
32444 (struct grub_command): Remove const from the member `name'.
32445 Add a new member `module_name'.
32446 (grub_register_command): Return grub_command_t.
32447
32448 * commands/help.c (grub_cmd_help): Call grub_command_find to make
32449 sure that each command is loaded.
32450
32451 * genmk.rb (PModule::rule): Specify a module name without the
32452 suffix ".mod" to gencmdlist.sh.
32453
32454 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
32455
32456 * gencmdlist.sh: New file.
32457
32458 * genmk.rb (PModule::rule): Generate a rule for a command list.
32459 Clean command.lst.
32460 Generate command.lst from $(COMMANDFILES).
32461
32462 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
32463 (DATA): Added $(pkgdata_DATA).
32464 (install-local): Install files in $(pkgdata_DATA).
32465
32466 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
32467
32468 * term/i386/pc/vga.c (debug_command): Removed.
32469 (GRUB_MOD_INIT): Do not register the command "debug".
32470
32471 From Hollis Blanchard:
32472 * commands/configfile.c: New file.
32473 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
32474 commands/configfile.c.
32475 (pkgdata_MODULES): Added configfile.mod.
32476 (configfile_mod_SOURCES): New variable.
32477 (configfile_mod_CFLAGS): Likewise.
32478 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
32479 commands/configfile.c.
32480 (pkgdata_MODULES): Added configfile.mod.
32481 (configfile_mod_SOURCES): New variable.
32482 (configfile_mod_CFLAGS): Likewise.
32483 * util/grub-emu.c (main): Call grub_configfile_init and
32484 grub_configfile_fini.
32485 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
32486 prototype.
32487 [GRUB_UTIL] (grub_configfile_fini): Likewise.
32488
32489 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
32490
32491 * normal/arg.c (grub_arg_show_help): Do not show the bug report
32492 address.
32493
32494 * commands/help.c (grub_cmd_help): Do not print newlines after
32495 the last command in print_command_help.
32496
32497 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
32498
32499 * commands/default.h: New file.
32500 * commands/timeout.h: Likewise.
32501 * normal/context.c: Likewise.
32502
32503 * util/misc.c: Do not include sys/times.h.
32504 Include sys/time.h and grub/machine/time.h.
32505 (grub_get_rtc): Rewritten with gettimeofday.
32506
32507 * util/grub-emu.c (main): Call grub_default_init and
32508 grub_timeout_init before grub_normal_init, and call
32509 grub_timeout_fini and grub_default_fini after grub_main.
32510
32511 * util/console.c (grub_ncurses_checkkey): Return the read
32512 character or -1.
32513
32514 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
32515 timeouts.
32516
32517 * normal/main.c (read_config_file): Push MENU. If this fails,
32518 print an error and wait for a user input.
32519 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
32520 If a menu is empty or an error occurs, pop MENU.
32521 (grub_normal_execute): Pop and free MENU after grub_menu_run
32522 returns.
32523
32524 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
32525
32526 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
32527 include time.h.
32528 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
32529 without GRUB_UTIL.
32530 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
32531 time.h.
32532 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
32533 without GRUB_UTIL.
32534
32535 * include/grub/normal.h (struct grub_menu_list): New struct.
32536 (grub_menu_list_t): New type.
32537 (struct grub_context): New struct.
32538 (grub_context_t): New type.
32539 (grub_register_command): Got rid of EXPORT_FUNC.
32540 (grub_unregister_command): Likewise.
32541 (grub_context_get): New prototype.
32542 (grub_context_get_current_menu): Likewise.
32543 (grub_context_push_menu): Likewise.
32544 (grub_context_pop_menu): Likewise.
32545 [GRUB_UTIL] (grub_default_init): Likewise.
32546 [GRUB_UTIL] (grub_default_fini): Likewise.
32547 [GRUB_UTIL] (grub_timeout_init): Likewise.
32548 [GRUB_UTIL] (grub_timeout_fini): Likewise.
32549
32550 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
32551 commands/timeout.c and normal/context.c.
32552 (pkgdata_MODULES): Added default.mod and timeout.mod.
32553 (normal_mod_SOURCES): Added normal/context.c.
32554 (default_mod_SOURCES): New variable.
32555 (default_mod_CFLAGS): Likewise.
32556 (timeout_mod_SOURCES): Likewise.
32557 (timeout_mod_CFLAGS): Likewise.
32558 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
32559 conf/i386-pc.rmk.
32560 (pkgdata_MODULES): Added default.mod and timeout.mod.
32561 (normal_mod_SOURCES): Added normal/context.c.
32562 (default_mod_SOURCES): New variable.
32563 (default_mod_CFLAGS): Likewise.
32564 (timeout_mod_SOURCES): Likewise.
32565 (timeout_mod_CFLAGS): Likewise.
32566
32567 * Makefile.in (all-local): Added $(MKFILES).
32568
32569 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
32570
32571 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
32572 (grub_emu_SOURCES): Likewise.
32573 (pkgdata_MODULES): Add `sun.mod'.
32574 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
32575 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
32576 `partmap/sun.c'.
32577 (pkgdata_MODULES): Add `sun.mod'.
32578 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
32579 * include/grub/partition.h (grub_sun_partition_map_init): New
32580 prototype.
32581 (grub_sun_partition_map_fini): Likewise.
32582 * partmap/sun.c: New file.
32583 * util/grub-emu.c (main): Initialize and de-initialize the sun
32584 partitionmap support.
32585
32586 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
32587
32588 This implements an Emacs-like menu entry editor.
32589
32590 * normal/menu_entry.c: New file.
32591
32592 * util/console.c (grub_ncurses_putchar): Translate some Unicode
32593 characters to ASCII.
32594 (saved_char): New variable.
32595 (grub_ncurses_checkkey): Rewritten completely.
32596 (grub_ncurses_getkey): Likewise.
32597 (grub_ncurses_init): Call raw instead of cbreak.
32598
32599 * normal/menu.c (print_entry): Do not put a space.
32600 (init_page): Renamed to ...
32601 (grub_menu_init_page): ... this. All callers changed.
32602 (edit_menu_entry): Removed.
32603 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
32604
32605 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
32606
32607 * kern/misc.c (grub_vprintf): Call grub_refresh.
32608
32609 * normal/menu.c (DISP_LEFT): Renamed to ...
32610 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
32611 * normal/menu.c (DISP_UP): Renamed to ...
32612 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
32613 * normal/menu.c (DISP_RIGHT): Renamed to ...
32614 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
32615 * normal/menu.c (DISP_DOWN): Renamed to ...
32616 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
32617 * normal/menu.c (DISP_HLINE): Renamed to ...
32618 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
32619 * normal/menu.c (DISP_VLINE): Renamed to ...
32620 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
32621 * normal/menu.c (DISP_UL): Renamed to ...
32622 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
32623 * normal/menu.c (DISP_UR): Renamed to ...
32624 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
32625 * normal/menu.c (DISP_LL): Renamed to ...
32626 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
32627 * normal/menu.c (DISP_LR): Renamed to ...
32628 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
32629 * normal/menu.c (TERM_WIDTH): Renamed to ...
32630 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
32631 * normal/menu.c (TERM_HEIGHT): Renamed to ...
32632 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
32633 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
32634 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
32635 * normal/menu.c (TERM_MARGIN): Renamed to ...
32636 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
32637 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
32638 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
32639 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
32640 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
32641 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
32642 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
32643 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
32644 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
32645 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
32646 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
32647 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
32648 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
32649 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
32650 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
32651 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
32652 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
32653 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
32654 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
32655 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
32656 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
32657 All callers changed.
32658
32659 * include/grub/normal.h: New prototype.
32660
32661 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
32662 normal/menu_entry.c.
32663 (normal_mod_SOURCES): Likewise.
32664 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32665 (normal_mod_SOURCES): Likewise.
32666
32667 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
32668
32669 * include/grub/normal.h (grub_halt_init): New prototype.
32670 (grub_halt_fini): Likewise.
32671 (grub_reboot_init): Likewise.
32672 (grub_reboot_fini): Likewise.
32673
32674 * util/grub-emu.c: Include signal.h.
32675 (main_env): New global variable.
32676 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
32677 catch C-c.
32678 (grub_machine_fini): New function.
32679 (main): Call grub_halt_init and grub_reboot_init before
32680 grub_main, and grub_reboot_fini and grub_halt_fini after it.
32681 Call setjmp with MAIN_ENV to go back afterwards.
32682 Call grub_machine_fini right before return.
32683
32684 * include/grub/util/misc.h: Include setjmp.h.
32685 (main_env): New prototype.
32686
32687 * include/grub/kernel.h (grub_machine_fini): New prototype.
32688 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
32689 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
32690
32691 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
32692 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
32693 * term/i386/pc/console.c (grub_console_fini): Likewise.
32694
32695 * util/i386/pc/misc.c: New file.
32696
32697 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
32698 util/i386/pc/misc.c, commands/i386/pc/halt.c and
32699 commands/i386/pc/reboot.c.
32700
32701 2005-02-14 Guillem Jover <guillem@hadrons.org>
32702
32703 * include/grub/dl.h (grub_dl_check_header): New prototype.
32704 (grub_arch_dl_check_header): Change return type to grub_err_t,
32705 remove size parameter and export function. Update all callers.
32706 * kern/dl.c (grub_dl_check_header): New function.
32707 (grub_dl_load_core): Use `grub_dl_check_header' instead of
32708 `grub_arch_dl_check_header'. Check ELF type. Check if sections
32709 are inside the core.
32710 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
32711 independent ELF header checks.
32712 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
32713 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
32714 `grub_dl_check_header' instead of explicit checks. Check for the
32715 ELF type.
32716 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
32717 `grub_dl_check_header' instead of explicit checks. Remove arch
32718 specific ELF header checks.
32719
32720 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
32721 argument SIZE.
32722
32723 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
32724
32725 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
32726 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
32727
32728 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
32729
32730 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
32731 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
32732 (part_map_iterate): Clear `grub_errno' and return 0 if
32733 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
32734 * partmap/amiga.c (amiga_partition_map_iterate): Return
32735 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
32736 * partmap/apple.c (apple_partition_map_iterate): Likewise.
32737
32738 2005-02-01 Guillem Jover <guillem@hadrons.org>
32739
32740 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
32741 help info.
32742
32743 2005-01-31 Marco Gerards <metgerards@student.han.nl>
32744
32745 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
32746 Removed prototype.
32747 (grub_rescue_cmd_linux): New prototype.
32748 (grub_rescue_cmd_initrd): Likewise.
32749 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
32750 `bi_rec'.
32751 (grub_linux_release_mem): Release the memory for the initrd.
32752 (grub_load_linux): Renamed from this...
32753 (grub_rescue_cmd_linux): ...To this. Changed all callers.
32754 Changed `entry' not to be static. Loop over memory regions to
32755 find another one when the default fails.
32756 (grub_rescue_cmd_initrd): New function.
32757 (grub_linux_init): Remove function.
32758 (grub_linux_fini): Likewise.
32759 (GRUB_MOD_INIT): Register `initrd'.
32760 (GRUB_MOD_FINI): Unregister `initrd'.
32761 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
32762 Function removed.
32763 (grub_linux_normal_fini): Likewise.
32764 (GRUB_MOD_INIT): Register `initrd'.
32765 (GRUB_MOD_FINI): Unregister `initrd'.
32766
32767 2005-01-31 Marco Gerards <metgerards@student.han.nl>
32768
32769 * commands/help.c: New file.
32770 * normal/arg.c (show_help): Renamed to...
32771 (grub_arg_show_help): ... this.
32772 * commands/i386/pc/halt.c: New file.
32773 * commands/i386/pc/reboot.c: Likewise.
32774 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
32775 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
32776 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
32777 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
32778 variables.
32779 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
32780 `commands/help.c'.
32781 (pkgdata_MODULES): Add `help.mod'.
32782 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
32783 * grub/i386/pc/init.h (grub_reboot): New prototype.
32784 (grub_halt): Likewise.
32785 * include/grub/normal.h (grub_arg_show_help): New prototype.
32786 (grub_help_init): Likewise.
32787 (grub_help_fini): Likewise.
32788 * util/grub-emu.c (main): Initialize and deinitialize the help
32789 command.
32790
32791 * normal/cmdline.c (grub_cmdline_get): Doc fix.
32792
32793 * normal/command.c (grub_command_init): Fixed the description of
32794 the `set' and `unset' commands.
32795
32796 2005-01-31 Marco Gerards <metgerards@student.han.nl>
32797
32798 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
32799 function.
32800 * commands/ieee1275/halt.c: New file.
32801 * commands/ieee1275/reboot.c: Likewise.
32802 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
32803 `__attribute__ ((unused))'. Some GCS related fixed.
32804 (grub_suspend_init) [GRUB_UTIL]: Function removed.
32805 (grub_suspend_fini): Likewise.
32806 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
32807 and `halt.mod'.
32808 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
32809 (halt_mod_CFLAGS): New variables.
32810 * include/grub/powerpc/ieee1275/ieee1275.h
32811 (grub_ieee1275_interpret): New prototype.
32812
32813 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
32814
32815 * include/grub/misc.h (memmove): New prototype.
32816 (memcpy): Likewise.
32817
32818 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
32819
32820 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
32821 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
32822
32823 2005-01-22 Marco Gerards <metgerards@student.han.nl>
32824
32825 * kern/misc.c (grub_strndup): Function rewritten.
32826
32827 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
32828
32829 * normal/menu.c (TERM_WIDTH): Macro redefined.
32830 (TERM_TOP_BORDER_Y): Likewise.
32831 (draw_border): Replaced while-loop by a for-loop. Make the number
32832 of lines consistent with the number of lines displayed in
32833 print_entries. Added a margin below the rectangle.
32834 (print_entry): Make the entry fit in the rectangle.
32835 (print_entries): Display the scroll arrows next to the right
32836 border.
32837
32838 2005-01-21 Marco Gerards <metgerards@student.han.nl>
32839
32840 * fs/minix.c (grub_minix_find_file): Reserve more space for
32841 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
32842 `grub_strncpy' to copy `path' into it.
32843
32844 2005-01-21 Marco Gerards <metgerards@student.han.nl>
32845
32846 Add the loopback device, a device via which files can be accessed
32847 as devices.
32848
32849 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
32850 (pkgdata_MODULES): Add loopback.mod.
32851 (loopback_mod_SOURCES): New variable.
32852 (loopback_mod_CFLAGS): Likewise.
32853 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
32854 `disk/loopback.c'.
32855 (pkgdata_MODULES): Add loopback.mod.
32856 (loopback_mod_SOURCES): New variable.
32857 (loopback_mod_CFLAGS): Likewise.
32858 * disk/loopback.c: new file.
32859 * include/grub/normal.h (grub_loop_init): New prototype.
32860 (grub_loop_fini): New prototype.
32861 * util/grub-emu.c (main): Initialize and de-initialize loopback
32862 support.
32863 * include/grub/disk.h (grub_disk_dev_id): Add
32864 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
32865
32866 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
32867
32868 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
32869 function.
32870 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
32871 (suspend_mod_SOURCES): New variable.
32872 (suspend_mod_CFLAGS): Likewise.
32873 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
32874 New prototype.
32875 * commands/ieee1275/suspend.c: New file.
32876
32877 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32878
32879 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
32880 ((unused))' to `__attribute__ ((used))'.
32881 (GRUB_MOD_FINI): Likewise.
32882 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
32883 * genmk.rb (PModule): Assign space to common symbols when linking
32884 modules.
32885
32886 2005-01-20 Marco Gerards <metgerards@student.han.nl>
32887
32888 * include/grub/mm.h (grub_mm_init_region): Change the type of the
32889 `unsigned' arguments to `grub_size_t'.
32890 (grub_malloc): Likewise.
32891 (grub_realloc): Likewise.
32892 (grub_memalign): Likewise.
32893 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
32894 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
32895 * util/misc.c (grub_malloc): Likewise.
32896 (grub_realloc): Likewise.
32897 * kern/mm.c (get_header_from_pointer): Change the casts to
32898 `unsigned' into a cast to `grub_size_t'.
32899
32900 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
32901 point to `currnode' when `currnode' is changed.
32902
32903 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
32904 Schottelius <nico-linux@schottelius.org>.
32905
32906 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
32907
32908 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
32909 (note_path): Remove variable.
32910 (GRUB_IEEE1275_NOTE_NAME): New macro.
32911 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
32912 (grub_ieee1275_note_hdr): New structure.
32913 (grub_ieee1275_note_desc): Likewise.
32914 (grub_ieee1275_note): Likewise.
32915 (load_note): Remove `dir' argument. All callers updated. Remove
32916 `note_img' and `path'. Do not load a file from `note_path'.
32917 Initialize a struct grub_ieee1275_note and write that to `out'.
32918 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
32919
32920 2005-01-05 Marco Gerards <metgerards@student.han.nl>
32921
32922 * util/misc.c (grub_util_read_image): Revert last change. It
32923 called `grub_util_read_at', which seeks from the beginning of the
32924 file.
32925
32926 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
32927
32928 * TODO: Add note about endianness in grub-mkimage.
32929 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
32930 section.
32931 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
32932 (grub_mkimage_SOURCES): New target.
32933 * include/grub/kernel.h (grub_start_addr): Remove variable.
32934 (grub_end_addr): Likewise.
32935 (grub_total_module_size): Likewise.
32936 (grub_kernel_image_size): Likewise.
32937 (GRUB_MODULE_MAGIC): New constant.
32938 (grub_module_info): New structure.
32939 (grub_arch_modules_addr): New prototype.
32940 (grub_get_end_addr): Remove prototype.
32941 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
32942 * include/grub/powerpc/ieee1275/kernel.h: New file.
32943 * include/grub/util/misc.h (grub_util_get_fp_size): New
32944 prototype.
32945 (grub_util_read_at): Likewise.
32946 (grub_util_write_image_at): Likewise.
32947 * kern/main.c (grub_get_end_addr): Remove function.
32948 (grub_load_modules): Call grub_arch_modules_addr instead of using
32949 grub_end_addr. Look for a grub_module_info struct in memory. Use
32950 the grub_module_info fields instead of calling grub_get_end_addr
32951 as loop conditions. Move grub_add_unused_region code here.
32952 (grub_add_unused_region): Remove function.
32953 * kern/i386/pc/init.c: Include grub/cache.h.
32954 (grub_machine_init): Remove call to grub_get_end_addr. Remove
32955 one call to add_mem_region.
32956 (grub_arch_modules_addr): New function.
32957 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
32958 (grub_total_module_size): Likewise.
32959 Include grub/machine/kernel.h.
32960 (grub_arch_modules_addr): New function.
32961 * util/grub-emu.c (grub_end_addr): Remove variable.
32962 (grub_total_module_size): Likewise.
32963 (grub_arch_modules_addr): New function.
32964 * util/misc.c: Include unistd.h.
32965 (grub_util_get_fp_size): New function.
32966 (grub_util_read_at): Likewise.
32967 (grub_util_write_image_at): Likewise.
32968 (grub_util_read_image): Call grub_util_read_at.
32969 (grub_util_write_image): Call grub_util_write_image_at.
32970 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
32971 additional memory in kernel_img for a struct grub_module_info.
32972 Fill in that grub_module_info.
32973 * util/powerpc/ieee1275/grub-mkimage.c: New file.
32974
32975 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
32976
32977 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
32978 New function.
32979 * include/grub/powerpc/ieee1275/ieee1275.h
32980 (grub_ieee1275_milliseconds): New prototype.
32981 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
32982 Change to 1000.
32983 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
32984 grub_ieee1275_milliseconds.
32985
32986 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
32987
32988 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
32989 variable.
32990 (find_options): New function.
32991 (cmain): Call find_options.
32992 * include/grub/powerpc/ieee1275/ieee1275.h
32993 (grub_ieee1275_realmode): New extern variable.
32994 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
32995 grub_map if grub_ieee1275_realmode is false.
32996
32997 2004-12-29 Marco Gerards <metgerards@student.han.nl>
32998
32999 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
33000 lines are inserted and make it work like readline. Reported by
33001 Vincent Pelletier <subdino2004@yahoo.fr>.
33002
33003 2004-12-28 Marco Gerards <metgerards@student.han.nl>
33004
33005 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
33006
33007 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
33008 `kern/powerpc/cache.S'.
33009
33010 2004-12-27 Marco Gerards <metgerards@student.han.nl>
33011
33012 * genmk.rb: Handle the `Program' class in the main loop. Written
33013 by Johan Rydberg <jrydberg@gnu.org>.
33014 (Program): New class.
33015 (programs): New variable.
33016 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
33017 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
33018 instead of "grub/kernel.h". Include <grub/machine/init.h>.
33019 (help_arch): Function removed.
33020 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
33021 `powerpc/libgcc.h' and `loader.h'.
33022 (pkgdata_PROGRAMS): New variable.
33023 (sbin_UTILITIES): Variable removed.
33024 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
33025 (grubof_SOURCES): Variable re-defined so it only includes the
33026 core functionality.
33027 (grubof_CFLAGS): Remove `-DGRUBOF'.
33028 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
33029 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
33030 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
33031 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
33032 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
33033 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
33034 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
33035 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
33036 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
33037 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
33038 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
33039 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
33040 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
33041 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
33042 (pc_mod_CFLAGS): New variables.
33043 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
33044 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
33045 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
33046 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
33047 Moved from here...
33048 * include/grub/i386/pc/init.h (grub_os_area_addr)
33049 (rub_os_area_size): ... to here.
33050 * include/grub/powerpc/ieee1275/ieee1275.h
33051 (grub_ieee1275_entry_fn): Export symbol.
33052 * include/grub/powerpc/ieee1275/init.h: New file.
33053 * include/grub/powerpc/libgcc.h: Likewise.
33054 * include/grub/cache.h: Likewise.
33055 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
33056 <hollis@penguinppc.org>.
33057 * kern/dl.c: Include <grub/cache.h>.
33058 (grub_dl_flush_cache): New function.
33059 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
33060 for this module.
33061 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
33062 (grub_console_init): Removed prototypes.
33063 (grub_machine_init): Don't initialize the modules anymore.
33064 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
33065 static.
33066 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
33067 Macro undef removed.
33068 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
33069 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
33070 relocation `R_PPC_REL32'. Return an error when the relocation is
33071 unknown.
33072 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
33073 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
33074 * util/misc.c (grub_arch_sync_caches): Likewise.
33075
33076 2004-12-19 Marco Gerards <metgerards@student.han.nl>
33077
33078 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
33079 `symlist.c', add `grubof_symlist.c'.
33080 (symlist.c): Variable removed.
33081 (grubof_HEADERS): Variable added.
33082 (grubof_symlist.c): New target.
33083 (kernel_syms.lst): Use `grubof_HEADERS' instead of
33084 `kernel_img_HEADERS'.
33085 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
33086 * kern/powerpc/dl.c: New file.
33087 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
33088 Function removed.
33089 (grub_arch_dl_relocate_symbols): Likewise.
33090 (grub_register_exported_symbols): Likewise.
33091
33092 2004-12-13 Marco Gerards <metgerards@student.han.nl>
33093
33094 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
33095 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
33096 to fail instead. Reported by Vincent Pelletier
33097 <subdino2004@yahoo.fr>.
33098
33099 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
33100 it is not allocated. Reported by Vincent Pelletier
33101 <subdino2004@yahoo.fr>.
33102
33103 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
33104 output so the output looks better.
33105
33106 2004-12-04 Marco Gerards <metgerards@student.han.nl>
33107
33108 Modulize the partition map support and add support for the amiga
33109 partition map.
33110
33111 * commands/ls.c: Include <grub/partition.h> instead of
33112 <grub/machine/partition.h>.
33113 * kern/disk.c: Likewise.
33114 * kern/rescue.c: Likewise.
33115 * loader/i386/pc/chainloader.c: Likewise.
33116 * normal/cmdline.c: Likewise.
33117 * kern/powerpc/ieee1275/init.c: Likewise.
33118 (grub_machine_init): Call `grub_pc_partition_map_init',
33119 `grub_amiga_partition_map_init' and
33120 `grub_apple_partition_map_init'.
33121 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
33122 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
33123 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
33124 `partition.h' and `pc_partition.h'.
33125 (grub_setup_SOURCES): Remove
33126 `disk/i386/pc/partition.c'. Add `kern/partition.c',
33127 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
33128 (grub_emu_SOURCES): Likewise.
33129 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
33130 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
33131 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
33132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
33133 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
33134 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
33135 (grubof_SOURCES): Likewise.
33136 * disk/i386/pc/partition.c: File removed.
33137 * disk/powerpc/ieee1275/partition.c: Likewise.
33138 * include/grub/powerpc/ieee1275/partition.h: Likewise.
33139 * include/grub/i386/pc/partition.h: Likewise.
33140 * kern/partition.c: New file.
33141 * partmap/amiga.c: Likewise.
33142 * partmap/apple.c: Likewise.
33143 * partmap/pc.c: Likewise.
33144 * include/grub/partition.h: Likewise..
33145 * include/grub/pc_partition.h: Likewise.
33146 * util/grub-emu.c: Include <grub/partition.h> instead of
33147 <grub/machine/partition.h>.
33148 (main): Call `grub_pc_partition_map_init',
33149 `grub_amiga_partition_map_init' and
33150 `grub_apple_partition_map_init' and deinitialize afterwards.
33151 * util/i386/pc/biosdisk.c: Include `#include
33152 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
33153 `<grub/machine/partition.h>'.
33154 * util/i386/pc/grub-setup.c: Likewise.
33155 * util/i386/pc/biosdisk.c: Likewise.
33156 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
33157 partition information in case of a PC partition.
33158 * util/i386/pc/grub-setup.c: Include `#include
33159 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
33160 `<grub/machine/partition.h>'.
33161 (setup): Only access the PC specific partition information in case
33162 of a PC partition.
33163
33164 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
33165
33166 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
33167 (grub_longjmp): Likewise.
33168 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
33169 20.
33170 * normal/powerpc/setjmp.S: New file.
33171 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
33172 `normal/powerpc/setjmp.S'.
33173 (grubof_CFLAGS): Add `-DGRUBOF'.
33174 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
33175 [GRUB_UTIL && !GRUBOF].
33176
33177 2004-11-16 Marco Gerards <metgerards@student.han.nl>
33178
33179 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
33180 property named `name'. Correctly handle the error returned by
33181 `grub_ieee1275_finddevice' if a device can not be opened.
33182
33183 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
33184
33185 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
33186 `actual' for negativity.
33187 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
33188 kern/fshelp.c.
33189
33190 2004-11-01 Marco Gerards <metgerards@student.han.nl>
33191
33192 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
33193 (PAGE_OFFSET): New macro.
33194 (CRTC_ADDR_PORT): Likewise.
33195 (CRTC_DATA_PORT): Likewise.
33196 (START_ADDR_HIGH_REGISTER): Likewise.
33197 (START_ADDR_LOW_REGISTER): Likewise.
33198 (GRAPHICS_ADDR_PORT): Likewise.
33199 (GRAPHICS_DATA_PORT): Likewise.
33200 (READ_MAP_REGISTER): Likewise.
33201 (INPUT_STATUS1_REGISTER): Likewise.
33202 (INPUT_STATUS1_VERTR_BIT): Likewise.
33203 (page): New variable.
33204 (wait_vretrace): New function.
33205 (set_read_map): Likewise.
33206 (set_start_address): Likewise.
33207 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
33208 the right page.
33209 (check_vga_mem): Take the page into account.
33210 (write_char): Likewise.
33211 (write_cursor): Likewise.
33212 (scroll_up): Likewise. Copy the page to the page that is not
33213 shown and switch between both pages.
33214 (grub_vga_putchar): Fix off by one error.
33215 (grub_vga_cls): Wait for the vertical retrace. Take the page into
33216 account.
33217
33218 2004-11-01 Marco Gerards <metgerards@student.han.nl>
33219
33220 Add support for iso9660 (including rockridge).
33221
33222 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
33223 (iso9660_mod_SOURCES): New variable.
33224 (iso9660_mod_CFLAGS): Likewise.
33225 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
33226 * include/grub/fs.h (grub_iso9660_init): New prototype.
33227 * util/grub-emu.c (main): Call `grub_iso9660_init'.
33228 * fs/iso9660.c: New file.
33229
33230 * include/grub/misc.h (grub_strncat): New prototype.
33231 * kern/misc.c (grub_strncat): New function.
33232
33233 * fs/hfs.c (grub_hfs_mount): Translate the error
33234 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
33235 * fs/jfs.c (grub_jfs_mount): Likewise.
33236 * fs/ufs.c (grub_ufs_mount): Likewise.
33237
33238 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
33239
33240 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
33241 which initialized BAT registers.
33242 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
33243 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
33244 Move from here...
33245 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
33246 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
33247 ... to here.
33248 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
33249 (grub_mapclaim): Likewise.
33250 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
33251 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
33252 hand.
33253
33254 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
33255
33256 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
33257 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
33258 -ffreestanding and -msoft-float.
33259
33260 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
33261
33262 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
33263 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
33264 set in grub_ieee1275_flags.
33265
33266 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
33267
33268 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
33269 prototype.
33270 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
33271 grub_console_init first.
33272 Change the memory range used for grub_ieee1275_claim and
33273 grub_mm_init_region.
33274 Print an error message if the claim fails.
33275 Include <grub/misc.h>.
33276
33277 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
33278
33279 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
33280 Call grub_children_iterate for device nodes of type `scsi',
33281 `ide', or `ata'.
33282 (grub_ofdisk_open): Remove manual device alias resolution.
33283 Fix memory leak when device cannot be opened.
33284 * include/grub/powerpc/ieee1275/ieee1275.h
33285 (grub_children_iterate): New prototype.
33286 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
33287 New function.
33288 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
33289 Return -1 if args.size was -1.
33290
33291 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
33292
33293 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
33294 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
33295 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
33296 Open Firmware's memory for it; claim memory from _start to _end.
33297 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
33298 (_end): New extern.
33299 (_start): Zero BSS from __bss_start to _end.
33300 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
33301 New extern.
33302 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
33303
33304 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
33305
33306 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
33307 -1 if args.base was -1.
33308
33309 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
33310
33311 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
33312 escape sequence instead of a literal ^L. Also call
33313 grub_ofconsole_gotoxy.
33314
33315 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
33316
33317 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
33318 void * arguments to grub_addr_t. All callers updated. Also make
33319 the `result' argument optional.
33320 (grub_ieee1275_release): change void * arguments to grub_addr_t.
33321 All callers updated.
33322
33323 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
33324
33325 * commands/ls.c (grub_ls_list_files): Use the string following the
33326 initial ')', if present, as the filesystem path.
33327 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
33328
33329 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
33330
33331 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
33332
33333 Make the source code of the menu interface more readable.
33334
33335 * normal/menu.c: Include grub/mm.h.
33336 (TERM_WIDTH): New macro.
33337 (TERM_HEIGHT): Likewise.
33338 (TERM_INFO_HEIGHT): Likewise.
33339 (TERM_MARGIN): Likewise.
33340 (TERM_SCROLL_WIDTH): Likewise.
33341 (TERM_TOP_BORDER_Y): Likewise.
33342 (TERM_LEFT_BORDER_X): Likewise.
33343 (TERM_BORDER_WIDTH): Likewise.
33344 (TERM_MESSAGE_HEIGHT): Likewise.
33345 (TERM_BORDER_HEIGHT): Likewise.
33346 (TERM_NUM_ENTRIES): Likewise.
33347 (TERM_FIRST_ENTRY_Y): Likewise.
33348 (TERM_ENTRY_WIDTH): Likewise.
33349 (TERM_CURSOR_X): Likewise.
33350 (draw_border): Use macros instead of magic numbers.
33351 (print_entry): Likewise.
33352 (print_entries): Likewise.
33353 (run_menu): Likewise. Also, handle the key 'e'.
33354 (run_menu_entry): Ignore empty command lines.
33355 (print_message): Added a new argument EDIT. If EDIT is true,
33356 print a different message.
33357 (init_page): Likewise.
33358 (edit_menu_entry): New function. Not implemented yet.
33359
33360 2004-09-17 Marco Gerards <metgerards@student.han.nl>
33361
33362 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
33363 can be loaded from normal mode.
33364
33365 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
33366 `multiboot.mod'.
33367 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
33368 (multiboot_mod_CFLAGS): New variables.
33369 * loader/i386/pc/linux_normal.c: New file.
33370 * loader/i386/pc/multiboot_normal.c: Likewise.
33371
33372 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
33373 attribute `unused'.
33374
33375 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
33376 `fdiro' to read the mode information from instead of `diro'.
33377
33378 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
33379 looking up a symlink.
33380
33381 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
33382 macro.
33383 * normal/command.c (grub_command_execute): Don't parse the
33384 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
33385 flags of the command.
33386
33387 * normal/menu.c (grub_menu_run): Fix typo.
33388
33389 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
33390
33391 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
33392
33393 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
33394 `y + 1' instead of `y - 1'.
33395
33396 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
33397
33398 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
33399
33400 From Hollis Blanchard <hollis@penguinppc.org>:
33401 * kern/misc.c (memmove): New alias for grub_memmove.
33402 (memcmp): New alias for grub_memcmp.
33403 (memset): New alias for grub_memset.
33404 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
33405 Change "int handle" to "grub_ieee1275_phandle_t handle".
33406 * include/grub/powerpc/ieee1275/ieee1275.h
33407 (grub_ieee1275_get_property): Likewise.
33408
33409 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
33410
33411 Added normal mode command `chainloader' as module chain.mod, which
33412 depends on normal.mod and _chain.mod.
33413
33414 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
33415 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
33416 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
33417 Deleted prototype.
33418 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
33419 but arguments parsing moved to ...
33420 (grub_chainloader_cmd): ... here. New function.
33421 * include/grub/i386/pc/chainloader.h: New file.
33422 * loader/i386/pc/chainloader_normal.c: Likewise.
33423
33424 2004-09-11 Marco Gerards <metgerards@student.han.nl>
33425
33426 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
33427 (grub_mkimage_LDFLAGS): Likewise.
33428 (grub_emu_SOURCES): Likewise.
33429 (kernel_img_HEADERS): Added fshelp.h.
33430 * fs/ext2.c: Include <grub/fshelp.h>.
33431 (FILETYPE_REG): New macro.
33432 (FILETYPE_INO_REG): Likewise.
33433 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
33434 Changed all users.
33435 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
33436 all users.
33437 (grub_fshelp_node): New struct.
33438 (grub_ext2_data): Added member `diropen'. Changed member `inode'
33439 to a pointer.
33440 (grub_ext2_get_file_block): Removed function.
33441 (grub_ext2_read_block): New function.
33442 (grub_ext2_read_file): Replaced parameter `data' by `node'.
33443 This function was written.
33444 (grub_ext2_mount): Read the root inode. Create a diropen struct.
33445 (grub_ext2_find_file): Removed function.
33446 (grub_ext2_read_symlink): New function.
33447 (grub_ext2_iterate_dir): Likewise.
33448 (grub_ext2_open): Rewritten.
33449 (grub_ext2_dir): Rewritten.
33450 * include/grub/fshelp.h: New file.
33451 * fs/fshelp.c: Likewise.
33452
33453 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
33454
33455 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
33456 (print_message): Add a missing newline.
33457 (run_menu): Added timeout support.
33458 (run_menu_entry): New local function.
33459 (grub_menu_run): Added support for booting.
33460
33461 * kern/loader.c (grub_loader_is_loaded): New function.
33462
33463 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
33464 (grub_get_rtc): Exported.
33465
33466 * include/grub/i386/pc/time.h: Include grub/symbol.h.
33467 (grub_get_rtc): Exported.
33468
33469 * include/grub/normal.h (struct grub_command_list): Remove
33470 constant from the member `command'.
33471
33472 * include/grub/loader.h (grub_loader_is_loaded): Declared.
33473
33474 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
33475
33476 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
33477
33478 2004-08-28 Marco Gerards <metgerards@student.han.nl>
33479
33480 Add support for the JFS filesystem.
33481
33482 * fs/jfs.c: New file.
33483 * include/grub/fs.h (grub_jfs_init): New prototype.
33484 (grub_jfs_fini): New prototype.
33485 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
33486 (grub_emu_SOURCES): Likewise.
33487 (pkgdata_MODULES): Add jfs.mod.
33488 (jfs_mod_SOURCES): New variable.
33489 (jfs_mod_CFLAGS): Likewise.
33490 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
33491 (grubof_SOURCES): Likewise.
33492 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
33493
33494 * fs/fat.c (grub_fat_find_dir): Convert the filename little
33495 endian to the host endian.
33496 (grub_fat_utf16_to_utf8): Move function from there...
33497 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
33498 the endianness of the source string anymore.
33499 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
33500
33501 2004-08-24 Marco Gerards <metgerards@student.han.nl>
33502
33503 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
33504 (grub_boot_fini) [GRUB_UTIL]: Likewise.
33505 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
33506 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
33507
33508 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
33509 (grub_hfs_iterate_dir): Make the function static. Add prototypes
33510 for `node_found' and `it_dir'.
33511 (grub_hfs_dir): Add prototype for `dir_hook'.
33512
33513 * fs/minix.c (grub_minix_get_file_block): Add prototype for
33514 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
33515 and `indir32' to silence a gcc warning.
33516
33517 * include/grub/fs.h (grub_hfs_init): New prototype.
33518 (grub_hfs_fini): Likewise.
33519
33520
33521 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
33522
33523 Each disk device has its own id now. This is useful to make use
33524 of multiple disk devices.
33525
33526 * include/grub/disk.h (grub_disk_dev_id): New enum.
33527 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
33528 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
33529
33530 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
33531 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
33532
33533 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
33534 GRUB_DISK_DEVICE_OFDISK_ID as an id.
33535
33536 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
33537 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
33538
33539 * include/grub/disk.h (struct grub_disk_dev): Added a new member
33540 "id" which is used by the cache manager.
33541
33542 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
33543 of just "GRUB".
33544
33545 2004-08-18 Marco Gerards <metgerards@student.han.nl>
33546
33547 * fs/hfs.c: New file.
33548 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
33549 (grub_emu_SOURCES): Likewise.
33550 (pkgdata_MODULES): Add hfs.mod.
33551 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
33552 (grubof_SOURCES): Likewise.
33553 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
33554
33555 * include/grub/misc.h (grub_strncasecmp): Add prototype.
33556 * kern/misc.c (grub_strncasecmp): Add function.
33557
33558 2004-08-14 Marco Gerards <metgerards@student.han.nl>
33559
33560 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
33561 with parentheses.
33562
33563 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
33564 (grub_ext2_dir): In case the directory entry type is unknown, read
33565 it from the inode.
33566
33567 2004-08-02 Peter Bruin <pjbruin@dds.nl>
33568
33569 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
33570 grub_load_linux instead of grub_rescue_cmd_linux as second
33571 argument of grub_rescue_register_command.
33572
33573 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
33574
33575 2004-07-27 Marco Gerards <metgerards@student.han.nl>
33576
33577 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
33578 function.
33579 * commands/boot.c: Remove the check for `GRUB_UTIL'.
33580 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
33581 `loader/powerpc/ieee1275/linux.c',
33582 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
33583 * include/grub/powerpc/ieee1275/ieee1275.h
33584 (grub_ieee1275_release): New prototype.
33585 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
33586 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
33587 normal, boot, linux and linux_normal.
33588 * loader/powerpc/ieee1275/linux.c: New file.
33589 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33590
33591 2004-07-12 Marco Gerards <metgerards@student.han.nl>
33592
33593 * normal/arg.c (grub_arg_parse): Correct error handling after
33594 reallocating the argumentlist (check if `argl' is not null instead
33595 of checking if `args' is not null).
33596 * kern/mm.c (grub_realloc): Return the same pointer when using the
33597 same region, instead of returning the header address.
33598
33599 2004-07-11 Marco Gerards <metgerards@student.han.nl>
33600
33601 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
33602 one block instead of two when looking for the initial partition.
33603 (grub_partition_probe): Initialize the local variable `p' with 0.
33604 Use base 10 for the grub_strtoul call.
33605 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
33606 need for one local variable.
33607 (grub_strtoul): Don't add the new value to `num', instead of that
33608 just assign it.
33609
33610 2004-07-11 Marco Gerards <metgerards@student.han.nl>
33611
33612 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
33613 (pxeboot_img_SOURCES): New variable.
33614 (pxeboot_img_ASFLAGS): Likewise.
33615 (pxeboot_img_LDFLAGS): Likewise.
33616 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
33617 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
33618 <lode_leroy@hotmail.com>.
33619
33620 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
33621
33622 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
33623 there was no input.
33624
33625 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
33626
33627 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
33628 the history buffer logic.
33629
33630 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
33631
33632 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
33633 (FILETYPE_INO_SYMLINK): New macros.
33634 (grub_ext2_find_file): Check if the node is a directory using the
33635 inode stat information instead of using the filetype in the
33636 dirent. Exclude the first character of an absolute symlink.
33637 (grub_ext2_dir): Mask out the filetype part of the mode member of
33638 the inode.
33639
33640 2004-05-24 Marco Gerards <metgerards@student.han.nl>
33641
33642 Add support for UFS version 1 and 2. Add support for the minix
33643 filesystem version 1 and 2, both the variants with 14 and 30 long
33644 filenames.
33645
33646 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
33647 fs/minix.c.
33648 (grub_emu_SOURCES): Likewise.
33649 (pkgdata_MODULES): Add ufs.mod and minix.mod.
33650 (ufs_mod_SOURCES): New variable.
33651 (ufs_mod_CFLAGS): Likewise.
33652 (minix_mod_SOURCES): Likewise.
33653 (minix_mod_CFLAGS): Likewise.
33654 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
33655 fs/minix.c.
33656 (grubof_SOURCES): Likewise.
33657 * fs/ufs.c: New file.
33658 * fs/minix.c: New file.
33659 * include/grub/fs.h (grub_ufs_init): New prototype.
33660 (grub_ufs_fini): Likewise.
33661 (grub_minix_init): Likewise.
33662 (grub_minix_fini): Likewise.
33663 * util/grub-emu.c (main): Initialize and deinitialize UFS and
33664 minix fs.
33665
33666 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
33667
33668 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
33669 commands/ls.c, commands/terminal.c, commands/boot.c,
33670 commands/cmp.c and commands/cat.c.
33671 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
33672
33673 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
33674 "env.h"
33675
33676 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
33677
33678 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
33679 and grub_, respectively. Because the conversion is trivial and
33680 mechanical, I omit the details here. Please refer to the CVS
33681 if you need more information.
33682
33683 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
33684
33685 * include/pupa: Renamed to ...
33686 * include/grub: ... this.
33687 * util/i386/pc/pupa-mkimage.c: Renamed to ...
33688 * util/i386/pc/grub-mkimage.c: ... this.
33689 * util/i386/pc/pupa-setup.c: Renamed to ...
33690 * util/i386/pc/grub-setup.c: ... this.
33691 * util/pupa-emu.c: Renamed to ...
33692 * util/grub-emu.c: ... this.
33693
33694 2004-03-29 Marco Gerards <metgerards@student.han.nl>
33695
33696 Add support for the newworld apple macintosh (PPC). This has been
33697 tested on the powerbook 2000 only. It only adds support for
33698 generic ieee1275 functions, console and disk support. This should
33699 be easy to port to other architectures with support for Open
33700 Firmware.
33701
33702 * configure.ac: Accept the powerpc as host_cpu. In the case of
33703 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
33704 specific tests are only executed while building for the i386.
33705 Inverse test for crosscompile.
33706 * genmk.rb (Utility): Allow assembler files.
33707 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
33708 * conf/powerpc-ieee1275.rmk: New file.
33709 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
33710 * disk/powerpc/ieee1275/partition.c: Likewise.
33711 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
33712 * include/pupa/powerpc/ieee1275/console.h: Likewise.
33713 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
33714 * include/pupa/powerpc/ieee1275/time.h: Likewise.
33715 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
33716 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
33717 * include/pupa/powerpc/ieee1275/loader.h
33718 * include/pupa/powerpc/setjmp.h: Likewise.
33719 * include/pupa/powerpc/types.h: Likewise.
33720 * kern/powerpc/ieee1275/init.c: Likewise.
33721 * kern/powerpc/ieee1275/openfw.c: Likewise.
33722 * term/powerpc/ieee1275/ofconsole.c: Likewise.
33723
33724 These files were written by Johan Rydberg
33725 (jrydberg@night.trouble.net) and I only modified them slightly.
33726
33727 * boot/powerpc/ieee1275/cmain.c: New file.
33728 * boot/powerpc/ieee1275/crt0.S: Likewise.
33729 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
33730 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
33731
33732 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
33733
33734 * Makefile.in: Update copyright.
33735 * genmodsrc.sh: Likewise.
33736 * gensymlist.sh: Likewise.
33737 * term/i386/pc/vga.c: Indent correctly.
33738
33739 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
33740 bugreporting address.
33741 * util/i386/pc/pupa-setup.c (usage): Likewise,
33742 (main): Call pupa_ext2_init and pupa_ext2_fini.
33743
33744 * fs/fat.c (log2): Renamed to ...
33745 (fat_log2): ... this.
33746 All callers changed.
33747 * kern/misc.c (memcpy): Alias to pupa_memmove.
33748 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
33749 lvalue cast.
33750 * util/console.c (pupa_ncurses_fini): Return 0.
33751
33752 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
33753 Move fail label here.
33754 [__GNU__]: Don't warn when using stat.
33755 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
33756 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
33757 long int. Use strtol instead of strtoul.
33758
33759 2004-03-14 Marco Gerards <metgerards@student.han.nl>
33760
33761 * commands/boot.c: New file.
33762 * commands/cat.c: Likewise.
33763 * commands/cmp.c: Likewise.
33764 * commands/ls.c: Likewise.
33765 * commands/terminal.c: Likewise.
33766 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
33767 (pupa_register_command): Changed interface to match the new
33768 argument parser.
33769 (pupa_command_execute): Changed (almost rewritten) so it uses
33770 pupa_split_command. Added support for setting variables using the
33771 syntax `foo=bar'.
33772 (rescue_command): Changed to work with the new argument parser.
33773 (terminal_command): Moved from here to commands/terminal.c.
33774 (set_command): New function.
33775 (unset_command): New function.
33776 (insmod_command): New function.
33777 (rmmod_command): New function.
33778 (lsmod_command): New function.
33779 (pupa_command_init): Don't initialize the command terminal
33780 anymore. Initialize the commands set, unset, insmod, rmmod and
33781 lsmod.
33782 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
33783 (kernel_img_HEADERS): Add arg.h and env.h.
33784 (pupa_mkimage_LDFLAGS): Add kern/env.c.
33785 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
33786 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
33787 normal/arg.c.
33788 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
33789 terminal.mod.
33790 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
33791 (boot_mod_SOURCES): New variable.
33792 (terminal_mod_SOURCES): Likewise.
33793 (ls_mod_SOURCES): Likewise.
33794 (cmp_mod_SOURCES): Likewise.
33795 (cat_mod_SOURCES): Likewise.
33796
33797 * normal/arg.c: New file.
33798 * kern/env.c: Likewise.
33799 * include/pupa/arg.h: Likewise.
33800 * include/pupa/env.h: Likewise.
33801 * font/manager.c (font_command): Changed to match argument parsing
33802 interface changes.
33803 (PUPA_MOD_INIT): Likewise.
33804 * hello/hello.c (pupa_cmd_hello): Likewise.
33805 (PUPA_MOD_INIT): Likewise.
33806 * include/pupa/disk.h: Include <pupa/device.h>.
33807 (pupa_print_partinfo): New prototype.
33808 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
33809 (pupa_dl_get_prefix): Likewise.
33810 * include/pupa/misc.h: Include <pupa/err.h>.
33811 (pupa_isgraph): New prototype.
33812 (pupa_isdigit): Likewise.
33813 (pupa_split_cmdline): Likewise.
33814 * include/pupa/normal.h: Include <pupa/arg.h>.
33815 (pupa_command): Changed the prototype of the member `func' to
33816 match the argument parsing interface. Added member `options'.
33817 (pupa_register_command): Updated to match function.
33818 (pupa_arg_parse): New prototype.
33819 (pupa_hello_init) [PUPA_UTIL]: New prototype.
33820 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
33821 (pupa_ls_init) [PUPA_UTIL]: Likewise.
33822 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
33823 (pupa_cat_init) [PUPA_UTIL]: Likewise.
33824 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
33825 (pupa_boot_init) [PUPA_UTIL]: Likewise.
33826 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
33827 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
33828 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
33829 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
33830 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
33831 * kern/disk.c: Include <pupa/file.h>.
33832 (pupa_print_partinfo): New function.
33833 * kern/dl.c: Include <pupa/env.h>.
33834 (pupa_dl_dir): Variable removed.
33835 (pupa_dl_load): Use the environment variable `prefix' instead of
33836 the variable pupa_dl_dir.
33837 (pupa_dl_set_prefix): Function removed.
33838 (pupa_dl_get_prefix): Likewise.
33839 * kern/i386/pc/init.c: Include <pupa/env.h>.
33840 (pupa_machine_init): Use the environment variable `prefix' instead of
33841 using pupa_dl_set_prefix to set the prefix.
33842 * kern/main.c: Include <pupa/env.h>.
33843 (pupa_set_root_dev): Use the environment variable `prefix' instead of
33844 using pupa_dl_get_prefix to get the prefix.
33845 * kern/misc.c: Include <pupa/env.h>.
33846 (pupa_isdigit): New function.
33847 (pupa_isgraph): Likewise.
33848 (pupa_ftoa): Likewise.
33849 (pupa_vsprintf): Added support for printing values of the type
33850 `double'. Make it possible to format variable output when using
33851 formatting like `%1.2%f'.
33852 (pupa_split_cmdline): New function.
33853 * kern/rescue.c: Include <pupa/env.h>.
33854 (next_word): Removed function.
33855 (pupa_rescue_cmd_prefix): Likewise.
33856 (pupa_rescue_cmd_set): New function.
33857 (pupa_rescue_cmd_unset): New function.
33858 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
33859 split the command line instead of splitting it here. Added
33860 support for setting variables using the syntax `foo=bar'. Don't
33861 initialize the prefix command anymore. Initialized the set and
33862 unset commands.
33863 * normal/cmdline.c: Include <pupa/env.h>.
33864 (pupa_tab_complete): Added prototypes for print_simple_completion,
33865 print_partition_completion, add_completion, iterate_commands,
33866 iterate_dev, iterate_part and iterate_dir. Moved code to print
33867 partition information from here to kern/disk.c.
33868 (pupa_cmdline_run): Don't check if the function exists anymore.
33869 * normal/main.c: Include <pupa/env.h>.
33870 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
33871 instead of using pupa_dl_get_prefix to get the prefix.
33872 * term/i386/pc/vga.c: Include <pupa/arg.h>.
33873 (check_vga_mem): Cast pointers to `void *' to silence a gcc
33874 warning.
33875 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
33876 (pupa_vga_setcolor): Declare unused variables with `__attribute__
33877 ((unused))' to silence a gcc warning.
33878 (pupa_vga_setcolor): Likewise.
33879 (debug_command): Changed to match argument parsing
33880 interface changes.
33881 * util/pupa-emu.c: Include <pupa/env.h>.
33882 (options): Added 0's for unused fields to silence a gcc warning.
33883 (argp): Likewise.
33884 (main): Use the environment variable `prefix' instead of using
33885 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
33886 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
33887 and terminal.
33888
33889 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
33890 * util/misc.c: Include <malloc.h>.
33891 (pupa_malloc): Rewritten so errors are correctly reported.
33892 (pupa_realloc): Likewise.
33893 (pupa_memalign): Likewise.
33894 (pupa_mm_init_region): Declare unused variables with
33895 `__attribute__ ((unused))' to silence a gcc warning.
33896 * normal/i386/setjmp.S: Remove tab at the end of the file to
33897 silence a gcc warning.
33898 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
33899 variables with `__attribute__ ((unused))' to silence a gcc
33900 warning.
33901 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
33902 local variable i unsigned to silence a gcc warning.
33903
33904 * kern/term.c: Include <pupa/misc.h>.
33905 (pupa_more_lines): New variable.
33906 (pupa_more): Likewise.
33907 (pupa_putcode): When the pager is active pause at the end of every
33908 screen.
33909 (pupa_set_more): New function.
33910 * include/pupa/term.h (pupa_set_more): New prototype.
33911
33912
33913 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
33914
33915 Now this project is GRUB 2 rather than PUPA. The location of
33916 the CVS repository was moved to GRUB's.
33917
33918 * configure.ac: Use bug-grub as the reporting address.
33919 Use GRUB instead of PUPA.
33920 Change the version number to 1.90.
33921
33922 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
33923
33924 * genkernsyms.sh: Updated copyright information.
33925 * genmk.rb: Likewise.
33926 * genmodsrc.sh: Likewise.
33927 * gensymlist.sh: Likewise.
33928 * boot/i386/pc/boot.S: Likewise.
33929 * boot/i386/pc/diskboot.S: Likewise.
33930 * disk/i386/pc/biosdisk.c: Likewise.
33931 * disk/i386/pc/partition.c: Likewise.
33932 * font/manager.c: Likewise.
33933 * fs/ext2.c: Likewise.
33934 * fs/fat.c: Likewise.
33935 * include/pupa/boot.h: Likewise.
33936 * include/pupa/device.h: Likewise.
33937 * include/pupa/disk.h: Likewise.
33938 * include/pupa/dl.h: Likewise.
33939 * include/pupa/elf.h: Likewise.
33940 * include/pupa/err.h: Likewise.
33941 * include/pupa/file.h: Likewise.
33942 * include/pupa/font.h: Likewise.
33943 * include/pupa/fs.h: Likewise.
33944 * include/pupa/kernel.h: Likewise.
33945 * include/pupa/loader.h: Likewise.
33946 * include/pupa/misc.h: Likewise.
33947 * include/pupa/mm.h: Likewise.
33948 * include/pupa/net.h: Likewise.
33949 * include/pupa/normal.h: Likewise.
33950 * include/pupa/rescue.h: Likewise.
33951 * include/pupa/setjmp.h: Likewise.
33952 * include/pupa/symbol.h: Likewise.
33953 * include/pupa/term.h: Likewise.
33954 * include/pupa/types.h: Likewise.
33955 * include/pupa/i386/setjmp.h: Likewise.
33956 * include/pupa/i386/types.h: Likewise.
33957 * include/pupa/i386/pc/biosdisk.h: Likewise.
33958 * include/pupa/i386/pc/boot.h: Likewise.
33959 * include/pupa/i386/pc/console.h: Likewise.
33960 * include/pupa/i386/pc/init.h: Likewise.
33961 * include/pupa/i386/pc/kernel.h: Likewise.
33962 * include/pupa/i386/pc/linux.h: Likewise.
33963 * include/pupa/i386/pc/loader.h: Likewise.
33964 * include/pupa/i386/pc/memory.h: Likewise.
33965 * include/pupa/i386/pc/multiboot.h: Likewise.
33966 * include/pupa/i386/pc/partition.h: Likewise.
33967 * include/pupa/i386/pc/time.h: Likewise.
33968 * include/pupa/i386/pc/vga.h: Likewise.
33969 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
33970 * include/pupa/util/getroot.h: Likewise.
33971 * include/pupa/util/misc.h: Likewise.
33972 * include/pupa/util/resolve.h: Likewise.
33973 * kern/device.c: Likewise.
33974 * kern/disk.c: Likewise.
33975 * kern/dl.c: Likewise.
33976 * kern/err.c: Likewise.
33977 * kern/file.c: Likewise.
33978 * kern/fs.c: Likewise.
33979 * kern/loader.c: Likewise.
33980 * kern/main.c: Likewise.
33981 * kern/misc.c: Likewise.
33982 * kern/mm.c: Likewise.
33983 * kern/rescue.c: Likewise.
33984 * kern/term.c: Likewise.
33985 * kern/i386/dl.c: Likewise.
33986 * kern/i386/pc/init.c: Likewise.
33987 * kern/i386/pc/lzo1x.S: Likewise.
33988 * kern/i386/pc/startup.S: Likewise.
33989 * loader/i386/pc/chainloader.c: Likewise.
33990 * loader/i386/pc/linux.c: Likewise.
33991 * loader/i386/pc/multiboot.c: Likewise.
33992 * normal/cmdline.c: Likewise.
33993 * normal/command.c: Likewise.
33994 * normal/main.c: Likewise.
33995 * normal/menu.c: Likewise.
33996 * normal/i386/setjmp.S: Likewise.
33997 * term/i386/pc/console.c: Likewise.
33998 * term/i386/pc/vga.c: Likewise.
33999 * util/console.c: Likewise.
34000 * util/genmoddep.c: Likewise.
34001 * util/misc.c: Likewise.
34002 * util/pupa-emu.c: Likewise.
34003 * util/resolve.c: Likewise.
34004 * util/unifont2pff.rb: Likewise.
34005 * util/i386/pc/biosdisk.c: Likewise.
34006 * util/i386/pc/getroot.c: Likewise.
34007 * util/i386/pc/pupa-mkimage.c: Likewise.
34008 * util/i386/pc/pupa-setup.c: Likewise.
34009
34010 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
34011
34012 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
34013 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
34014 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
34015 reading and reset it after reading.
34016 (pupa_ext2_close): Return PUPA_ERR_NONE.
34017
34018 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
34019 Correct value.
34020 (struct linux_kernel_header): Add kernel_version and
34021 initrd_addr_max.
34022 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
34023 pupa_file_read succeeds.
34024 (pupa_rescue_cmd_initrd): Implement.
34025
34026 2003-12-03 Marco Gerards <metgerards@student.han.nl>
34027
34028 * fs/ext2.c (pupa_ext2_label): New function.
34029 (pupa_ext2_fs): Added label.
34030 * fs/fat.c (pupa_fat_label): New function.
34031 (pupa_fat_fs): Added label.
34032 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
34033
34034 * kern/misc.c (pupa_strndup): New function.
34035 * include/pupa/misc.h (pupa_strndup): New prototype.
34036
34037 * include/pupa/normal.h: Include <pupa/err.h>.
34038 (pupa_set_history): New prototype.
34039 (pupa_iterate_commands): New prototype.
34040 * normal/cmdline.c: Include <pupa/machine/partition.h>,
34041 <pupa/disk.h>, <pupa/file.h>.
34042 (hist_size): New variable.
34043 (hist_lines): Likewise.
34044 (hist_end): Likewise.
34045 (hist_used): Likewise.
34046 (pupa_set_history): New function.
34047 (pupa_history_get): Likewise.
34048 (pupa_history_add): Likewise.
34049 (pupa_history_replace): Likewise.
34050 (pupa_tab_complete): Likewise.
34051 (pupa_cmdline_run): Added tab completion and history buffer. Tab
34052 completion shows partitionnames while completing partitions, this
34053 feature was suggested by Jeff Bailey.
34054 * normal/command.c (pupa_iterate_commands): New function.
34055 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
34056 (pupa_normal_init): Initialize history buffer.
34057 (PUPA_MOD_INIT): Likewise.
34058 (pupa_normal_fini): Free the history buffer.
34059 (PUPA_MOD_FINI): Likewise.
34060
34061 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
34062 key.
34063
34064 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
34065 * configure.ac [i386]: Check for regparam bug.
34066 (NESTED_FUNC_ATTR) [! i386]: Defined.
34067
34068 2003-11-17 Marco Gerards <metgerards@student.han.nl>
34069
34070 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
34071 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
34072 (pupa_emu_SOURCES): New variable.
34073 (pupa_emu_LDFLAGS): Likewise.
34074 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
34075 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
34076 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
34077 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
34078 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
34079 (pupa_jmp_buf): New typedef.
34080 (pupa_setjmp) [PUPA_UTIL]: New macro.
34081 (pupa_longjmp) [PUPA_UTIL]: Likewise.
34082 * include/pupa/term.h (struct pupa_term): New member `refresh'.
34083 (pupa_refresh): New prototype.
34084 * include/pupa/util/getroot.h: New file.
34085 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
34086 it.
34087 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
34088 (pupa_rescue_cmd_cat): Likewise.
34089 (pupa_rescue_cmd_ls): Likewise.
34090 (pupa_rescue_cmd_testload): Likewise.
34091 (pupa_rescue_cmd_lsmod): Likewise.
34092 * normal/cmdline.c (pupa_cmdline_get): Likewise.
34093 * normal/menu.c (run_menu): Likewise.
34094 * kern/term.c (pupa_cls): Likewise.
34095 (pupa_refresh): New function.
34096 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
34097 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
34098 * util/console.c: New file.
34099
34100 * util/i386/pc/getroot.c: New file.
34101 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
34102 (pupa_putchar): New function.
34103 (pupa_refresh): Likewise.
34104 (xgetcwd): Function moved to ...
34105 (strip_extra_slashes): Likewise.
34106 (get_prefix): Likewise.
34107 * util/i386/pc/getroot.c: ... here.
34108 (find_root_device): Function moved and renamed to...
34109 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
34110 Changed all callers.
34111 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
34112 and renamed to...
34113 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
34114 Changed all callers.
34115 * util/misc.c (pupa_memalign): New function.
34116 (pupa_mm_init_region): Likewise.
34117 (pupa_register_exported_symbols): Likewise.
34118 (pupa_putchar): Function removed.
34119 * util/pupa-emu.c: New file.
34120
34121 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
34122
34123 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
34124 (_multiboot_mod_SOURCES): New variable.
34125 (_multiboot_mod_CFLAGS): Likewise.
34126 * loader/i386/pc/multiboot.c: New file.
34127 * include/pupa/i386/pc/multiboot.h: Likewise.
34128 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
34129 (pupa_multiboot_real_boot): New function.
34130 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
34131 (pupa_multiboot_real_boot): New prototype.
34132 (pupa_rescue_cmd_multiboot): Likewise
34133 (pupa_rescue_cmd_module): Likewise.
34134
34135 * kern/loader.c (pupa_loader_set): Continue when
34136 pupa_loader_unload_func() fails.
34137 (pupa_loader_unset): New function.
34138 * include/pupa/loader.h (pupa_loader_unset): New prototype.
34139
34140 * kern/misc.c (pupa_stpcpy): New function.
34141 * include/pupa/misc.h (pupa_stpcpy): New prototype.
34142
34143 2003-11-12 Marco Gerards <metgerards@student.han.nl>
34144
34145 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
34146 for available extensions.
34147
34148 * include/pupa/i386/pc/time.h: New file.
34149 * kern/disk.c: Include <pupa/machine/time.h>.
34150 (PUPA_CACHE_TIMEOUT): New macro.
34151 (pupa_last_time): New variable.
34152 (pupa_disk_open): Flush the cache when there was a timeout.
34153 (pupa_disk_close): Reset the timer.
34154 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
34155 pupa_currticks.
34156 * util/misc.c: Include <sys/times.h>
34157 (pupa_get_rtc): New function.
34158
34159 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
34160
34161 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
34162 as blocks.
34163 (pupa_ext2_get_file_block): Use blocks member.
34164
34165 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
34166 first block. Return -1 instead of pupa_errno on error.
34167
34168 2003-10-27 Marco Gerards <metgerards@student.han.nl>
34169
34170 * README: In the pupa-mkimage example use _chain instead of chain
34171 and ext2 instead of fat.
34172 * TODO: Replace ext2fs with jfs as an example. Add an item for
34173 adding journal playback for ext2fs.
34174 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
34175 (pkgdata_MODULES): Added ext2.mod.
34176 (ext2_mod_SOURCES): New variable.
34177 (ext2_mod_CFLAGS): Likewise.
34178 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
34179 * include/pupa/misc.h (pupa_strncpy): New prototype.
34180 (pupa_strcat): Likewise.
34181 (pupa_strncmp): Likewise.
34182 * kern/misc.c (pupa_strcat): Enable function.
34183 (pupa_strncpy): New function.
34184 (pupa_strncmp): Likewise.
34185 * fs/ext2.c: New file.
34186
34187 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
34188 when the read failed before retrying.
34189 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
34190 (_FILE_OFFSET_BITS): Likewise.
34191 * configure.ac: Added AC_SYS_LARGEFILE.
34192
34193 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
34194
34195 * genmk.rb (PModule#rule): Make sure to get only symbol names
34196 from the output of nm.
34197 Reported by Robert Millan <rmh.grub@aybabtu.com>.
34198
34199 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
34200
34201 I forgot to check in these changes for a long time. This adds
34202 incomplete support for VGA console, and this is still very
34203 buggy. Also, a lot of consideration is required for I18N,
34204 UNICODE, and VGA font issues. Therefore, assume that this is
34205 such that "better than nothing".
34206
34207 * font/manager.c: New file.
34208 * include/pupa/font.h: Likewise.
34209 * include/pupa/i386/pc/vga.h: Likewise.
34210 * term/i386/pc/vga.c: Likewise.
34211 * util/unifont2pff.rb: Likewise.
34212
34213 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
34214 (pkgdata_MODULES): Added vga.mod and font.mod.
34215 (vga_mod_SOURCES): New variables.
34216 (vga_mod_CFLAGS): Likewise.
34217 (font_mod_SOURCES): Likewise.
34218 (font_mod_CFLAGS): Likewise.
34219
34220 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
34221
34222 * include/pupa/term.h: Include pupa/err.h.
34223 (struct pupa_term): Added init and fini.
34224 Changed the argument of putchar to pupa_uint32_t.
34225
34226 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
34227 (pupa_console_real_putchar): New prototype.
34228 (pupa_console_putchar): Removed.
34229 (pupa_console_checkkey): Exported.
34230 (pupa_console_getkey): Likewise.
34231
34232 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
34233 characters.
34234
34235 * kern/term.c (pupa_term_set_current): Rewritten.
34236 (pupa_putchar): Likewise.
34237 (pupa_putcode): New function.
34238
34239 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
34240 (pupa_console_real_putchar): ... this.
34241 (pupa_vga_set_mode): New function.
34242 (pupa_vga_get_font): Likewise.
34243
34244 * normal/command.c: Include pupa/term.h.
34245 (terminal_command): New function.
34246 (pupa_command_init): Register the command "terminal".
34247
34248 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
34249 (DISP_UP): Likewise.
34250 (DISP_RIGHT): Likewise.
34251 (DISP_DOWN): Likewise.
34252 (DISP_HLINE): Likewise.
34253 (DISP_VLINE): Likewise.
34254 (DISP_UL): Likewise.
34255 (DISP_UR): Likewise.
34256 (DISP_LL): Likewise.
34257 (DISP_LR): Likewise.
34258
34259 * term/i386/pc/console.c (pupa_console_putchar): New function.
34260
34261 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
34262
34263 * util/resolve.c (pupa_util_resolve_dependencies): BUG
34264 FIX. Reverse the path_list.
34265
34266 * include/pupa/normal.h: Export pupa_register_command and
34267 pupa_unregister_command.
34268
34269 * hello/hello.c (pupa_cmd_hello): New module.
34270 * conf/i386-pc.rmk: Added hello.mod.
34271
34272 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
34273
34274 * kern/i386/pc/lzo1x.S: New file.
34275
34276 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
34277 (compress_kernel): New variable.
34278 (generate_image): Heavily modified to support compressing a
34279 large part of the core image.
34280
34281 * util/misc.c (pupa_util_read_image): Fix a file descriptor
34282 leak.
34283 (pupa_util_load_image): New function.
34284
34285 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
34286 (pupa_compressed_size): New variable.
34287 (codestart): Enable Gate A20 here.
34288 Decompress the compressed part of the core image.
34289 Rearrange the code to put functions and variables which are
34290 required for initialization in the non-compressed part.
34291 Include lzo1x.S.
34292
34293 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
34294 here.
34295
34296 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
34297
34298 * include/pupa/i386/pc/kernel.h
34299 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
34300 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
34301 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
34302 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
34303 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
34304
34305 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
34306
34307 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
34308 (Utility#rule): Likewise.
34309
34310 * configure.ac: Check if LZO is available.
34311
34312 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
34313
34314 * include/pupa/normal.h: New file.
34315 * include/pupa/setjmp.h: Likewise.
34316 * include/pupa/i386/setjmp.h: Likewise.
34317 * normal/cmdline.c: Likewise.
34318 * normal/command.c: Likewise.
34319 * normal/main.c: Likewise.
34320 * normal/menu.c: Likewise.
34321 * normal/i386/setjmp.S: Likewise.
34322
34323 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
34324 (pupa_rescue_cmd_initrd): Likewise.
34325
34326 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
34327 Likewise.
34328
34329 * kern/i386/pc/startup.S (translation_table): New variable.
34330 (translate_keycode): New function.
34331 (pupa_console_getkey): Call translate_keycode.
34332
34333 * kern/rescue.c (attempt_normal_mode): New function.
34334 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
34335 it failed, print a message.
34336
34337 * kern/mm.c (pupa_real_malloc): Print more information when a
34338 free magic is broken.
34339 (pupa_free): If the first free header is not free actually, set
34340 it to P.
34341
34342 * kern/main.c (pupa_load_normal_mode): Just load the module
34343 "normal".
34344 (pupa_main): Don't print the message
34345 "Entering into rescue mode..." here.
34346
34347 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
34348 Declared.
34349 (pupa_rescue_cmd_initrd): Likewise.
34350 (pupa_rescue_cmd_initrd): Likewise.
34351
34352 * include/pupa/symbol.h (FUNCTION): Specify the type.
34353 (VARIABLE): Likewise.
34354
34355 * include/pupa/err.h (pupa_err_t): Added
34356 PUPA_ERR_UNKNOWN_COMMAND.
34357
34358 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
34359 (pupa_dl_get_prefix): Likewise.
34360
34361 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
34362 Added _chain.mod and _linux.mod instead of chain.mod and
34363 linux.mod.
34364 (chain_mod_SOURCES): Renamed to ...
34365 (_chain_mod_SOURCES): ... this.
34366 (chain_mod_CFLAGS): Renamed to ...
34367 (_chain_mod_CFLAGS): ... this.
34368 (linux_mod_SOURCES): Renamed to ...
34369 (_linux_mod_SOURCES): ... this.
34370 (linux_mod_CFLAGS): Renamed to ...
34371 (_linux_mod_CFLAGS): ... this.
34372 (normal_mod_SOURCES): New variable.
34373 (normal_mod_CFLAGS): Likewise.
34374 (normal_mod_ASFLAGS): Likewise.
34375
34376 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
34377
34378 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
34379 possible.
34380
34381 * kern/dl.c (pupa_dl_ref): Refer depending modules
34382 recursively.
34383 (pupa_dl_unref): Unrefer depending modules recursively.
34384 Don't call pupa_dl_unload implicitly, because PUPA can crash if
34385 a module is unloaded before one depending on that module is
34386 unloaded.
34387 (pupa_dl_unload): Unload depending modules explicitly,
34388 if possible.
34389
34390 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
34391
34392 * include/pupa/i386/pc/linux.h: New file.
34393 * loader/i386/pc/linux.c: Likewise.
34394
34395 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
34396 Removed.
34397 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
34398 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
34399 of PUPA_CHAINLOADER_BOOT_SECTOR.
34400
34401 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
34402 (pupa_linux_prot_size): New variable.
34403 (pupa_linux_tmp_addr): Likewise.
34404 (pupa_linux_real_addr): Likewise.
34405 (pupa_linux_boot_zimage): New function.
34406 (pupa_linux_boot_bzimage): Likewise.
34407
34408 * kern/i386/pc/init.c (struct mem_region): New structure.
34409 (MAX_REGIONS): New macro.
34410 (mem_regions): New variable.
34411 (num_regions): Likewise.
34412 (pupa_os_area_addr): Likewise.
34413 (pupa_os_area_size): Likewise.
34414 (pupa_lower_mem): Likewise.
34415 (pupa_upper_mem): Likewise.
34416 (add_mem_region): New function.
34417 (compact_mem_regions): Likewise.
34418 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
34419 the size of the conventional memory and that of so-called upper
34420 memory (before the first memory hole).
34421 Instead of adding each found region to free memory, use
34422 add_mem_region and add them after removing overlaps.
34423 Also, add only 1/4 of the upper memory to free memory. The rest
34424 is used for loading OS images. Maybe this is ad hoc, but this
34425 makes it much easier to relocate OS images when booting.
34426
34427 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
34428 (pupa_enter_rescue_mode): Don't register initrd and module.
34429
34430 * kern/mm.c: Include pupa/dl.h.
34431
34432 * kern/main.c: Include pupa/file.h and pupa/device.h.
34433
34434 * kern/loader.c (pupa_loader_load_module_func): Removed.
34435 (pupa_loader_load_module): Likewise.
34436
34437 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
34438 ``.o''.
34439
34440 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
34441 (pupa_linux_tmp_addr): Likewise.
34442 (pupa_linux_real_addr): Likewise.
34443 (pupa_linux_boot_zimage): Likewise.
34444 (pupa_linux_boot_bzimage): Likewise.
34445
34446 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
34447 (pupa_upper_mem): Likewise.
34448 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
34449 module is too dangerous.
34450
34451 * include/pupa/loader.h (pupa_os_area_addr): Declared.
34452 (pupa_os_area_size): Likewise.
34453 (pupa_loader_set): Remove the first argument. Loader doesn't
34454 manage modules or initrd any longer.
34455 (pupa_loader_load_module): Removed.
34456
34457 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
34458 (linux_mod_SOURCES): New variable.
34459 (linux_mod_CFLAGS): Likewise.
34460
34461 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
34462
34463 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
34464 the length of a blocklist correctly.
34465
34466 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
34467 Use ioctl only if the OS file is a block device.
34468 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
34469 not very useful for normal files.
34470
34471 * kern/main.c (pupa_set_root_dev): New function.
34472 (pupa_load_normal_mode): Likewise.
34473 (pupa_main): Call those above.
34474
34475 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
34476 pupa_uint16_t.
34477
34478 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
34479
34480 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
34481
34482 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
34483 (setup): Configure the installed partition information and the
34484 dl prefix.
34485
34486 * loader/i386/pc/chainloader.c (my_mod): New variable.
34487 (pupa_chainloader_unload): New function.
34488 (pupa_rescue_cmd_chainloader): Refer itself.
34489 (PUPA_MOD_INIT): Save its own module in MY_MOD.
34490
34491 * kern/i386/pc/startup.S (install_partition): Removed.
34492 (version_string): Likewise.
34493 (config_file): Likewise.
34494 (pupa_install_dos_part): New variable.
34495 (pupa_install_bsd_part): Likewise.
34496 (pupa_prefix): Likewise.
34497 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
34498
34499 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
34500 and pupa/misc.h.
34501 (make_install_device): New function.
34502 (pupa_machine_init): Set the dl prefix.
34503
34504 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
34505 (buf): Renamed to ...
34506 (linebuf): ... this.
34507 (pupa_rescue_cmd_prefix): New function.
34508 (pupa_rescue_cmd_insmod): Likewise.
34509 (pupa_rescue_cmd_rmmod): Likewise.
34510 (pupa_rescue_cmd_lsmod): Likewise.
34511 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
34512 rmmod and lsmod.
34513
34514 * kern/mm.c (pupa_memalign): If failed even after invalidating
34515 disk caches, unload unneeded modules and retry.
34516
34517 * kern/misc.c (pupa_memmove): New function.
34518 (pupa_memcpy): Removed.
34519 (pupa_strcpy): New function.
34520 (pupa_itoa): Made static.
34521
34522 * kern/dl.c (pupa_dl_iterate): New function.
34523 (pupa_dl_ref): Likewise.
34524 (pupa_dl_unref): Likewise.
34525 (pupa_dl_unload): Return if succeeded or not.
34526 (pupa_dl_unload_unneeded): New function.
34527 (pupa_dl_unload_all): Likewise.
34528 (pupa_dl_init): Renamed to ...
34529 (pupa_dl_set_prefix): ... this.
34530 (pupa_dl_get_prefix): New function.
34531
34532 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
34533 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
34534 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
34535 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
34536 (pupa_install_dos_part): Declared.
34537 (pupa_install_bsd_part): Likewise.
34538 (pupa_prefix): Likewise.
34539 (pupa_boot_drive): Likewise.
34540
34541 * include/pupa/types.h: Fix a typo.
34542
34543 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
34544 pupa_memmove.
34545 (pupa_memmove): Declared.
34546 (pupa_strcpy): Likewise.
34547
34548 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
34549 pupa_mod_init takes one argument, its own module.
34550 (pupa_dl_unload_unneeded): Declared.
34551 (pupa_dl_unload_all): Likewise.
34552 (pupa_dl_ref): Likewise.
34553 (pupa_dl_unref): Likewise.
34554 (pupa_dl_iterate): Likewise.
34555 (pupa_dl_init): Renamed to ...
34556 (pupa_dl_set_prefix): ... this.
34557 (pupa_dl_get_prefix): Declared.
34558
34559 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
34560 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
34561 unloaded.
34562 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
34563 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
34564
34565 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
34566 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
34567
34568 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
34569
34570 * util/i386/pc/pupa-setup.c (setup): Define the internal
34571 function find_first_partition_start at the top level, because GCC
34572 3.0.x cannot compile internal functions in deeper scopes
34573 correctly.
34574 (find_root_device): Use lstat instead of stat.
34575 Don't follow symbolic links.
34576 Fix the path-constructing code.
34577
34578 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
34579 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
34580 by a BLKGETSIZE ioctl first, because block devices don't fill
34581 the member st_mode of the structure stat on Linux.
34582 [__linux__] (linux_find_partition): Use a temporary buffer
34583 REAL_DEV for the working space. Copy it to DEV before returning.
34584 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
34585 buffer cache consistent.
34586 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
34587 strncmp. The previous value was merely wrong.
34588 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
34589
34590 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
34591 FAT size is 12. The previous value was merely wrong.
34592
34593 * kern/main.c (pupa_main): Don't split the starting message from
34594 newlines.
34595
34596 * kern/term.c (pupa_putchar): Put CR after LF instead of before
34597 LF, because BIOS goes crazy about character attributes in this
34598 case.
34599
34600 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
34601
34602 * include/i386/pc/util/biosdisk.h: New file.
34603 * util/i386/pc/biosdisk.c: Likewise.
34604 * util/i386/pc/pupa-setup.c: Likewise.
34605
34606 * Makefile.in (INCLUDE_DISTFILES): Added
34607 include/pupa/i386/pc/util/biosdisk.h.
34608 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
34609 directory util/i386/pc.
34610 (install-local): Added a rule for sbin_UTILITIES.
34611 (uninstall): Likewise.
34612
34613 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
34614
34615 * util/misc.c (xrealloc): New function.
34616 (pupa_malloc): Likewise.
34617 (pupa_free): Likewise.
34618 (pupa_realloc): Likewise.
34619 (pupa_stop): Likewise.
34620 (pupa_putchar): Likewise.
34621
34622 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
34623
34624 * include/pupa/util/misc.h (xrealloc): Declared.
34625
34626 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
34627 macro.
34628 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
34629 (PUPA_BOOT_MACHINE_BPB_END): ... this.
34630
34631 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
34632 [PUPA_UTIL] (pupa_fat_fini): Likewise.
34633
34634 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
34635 way should be implemented.
34636 [PUPA_UTIL] (pupa_fat_fini): Likewise.
34637
34638 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
34639 the size of NAME for safety.
34640 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
34641 0x88.
34642
34643 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
34644 (pupa_setup_SOURCES): Likewise.
34645
34646 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
34647
34648 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
34649
34650 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
34651 bunch of pushl's from pusha, because this destroys the return
34652 value.
34653
34654 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
34655
34656 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
34657 This means that any missing prototypes could be fatal. Also, you
34658 must take care when writing assembly code. See the comments at
34659 the beginning of startup.S, for more details.
34660
34661 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
34662 compilation mechanism.
34663 (pupa_chainloader_real_boot): Likewise.
34664 (pupa_biosdisk_rw_int13_extensions): Likewise.
34665 (pupa_biosdisk_rw_standard): Likewise.
34666 (pupa_biosdisk_check_int13_extensions): Likewise.
34667 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
34668 (pupa_biosdisk_get_diskinfo_standard): Likewise.
34669 (pupa_get_memsize): Likewise.
34670 (pupa_get_mmap_entry): Likewise.
34671 (pupa_console_putchar): Likewise.
34672 (pupa_console_setcursor): Likewise.
34673 (pupa_getrtsecs): Use pushl instead of push.
34674
34675 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
34676 memory instead of the stack for a mmap entry, because some
34677 BIOSes may ignore the maximum size and overflow.
34678
34679 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
34680
34681 * genmk.rb (PModule#rule): Compile automatically generated
34682 sources with module-specific CFLAGS as well as other sources.
34683
34684 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
34685
34686 * configure.ac: Check ld.
34687 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
34688 respectively, before checking endianness and sizes.
34689
34690 * Makefile.in (LD): New variable.
34691
34692 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
34693
34694 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
34695
34696 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
34697
34698 * Changelog: New file.
34699