]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* util/ieee1275/ofpath.c (check_sas): Close fd.
[grub2.git] / ChangeLog
CommitLineData
fe12fd5b
VS
12011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * util/ieee1275/ofpath.c (check_sas): Close fd.
4 (main): Free of_path.
5 Reported by: David Volgyes <dvolgyes>.
6
03147f46
VS
72011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8
9 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
10 Reported by: David Volgyes <dvolgyes>.
11
cad3237f
VS
122011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13
14 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
15 file after stat.
16 Reported by: David Volgyes <dvolgyes>.
17
13548d26
VS
182011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19
20 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
21
22 Reported by: David Volgyes <dvolgyes>.
23
e061a1b5
VS
242011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
25
26 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
27 Prevent memory leak.
28
1abe47dc
VS
292011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
30
31 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
32 (main): Close file.
e061a1b5 33 Reported by: David Volgyes <dvolgyes>.
1abe47dc 34
fbc62666
VS
352011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
36
37 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
38 to continue if allocation is failed.
39
40 Reported by: David Volgyes <dvolgyes>.
41
e98c83e9
DV
422011-06-23 David Volgyes <dvolgyes>
43
44 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
45 dereference.
46
a199a8cd
VS
472011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
48
49 Fix spurious warning.
50
51 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
52 (acorn_partition_map_find): Use .bin member.
53
e2d1dba0
VS
542011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
55
56 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
57 /dev/root as a valid device.
58
8a5d6919
JM
592011-06-23 Jim Meyering <meyering@redhat.com>
60
e2d1dba0
VS
61 Avoid NULL deref in grub_device_open.
62
8a5d6919
JM
63 * grub-core/kern/device.c (grub_device_open): Don't dereference
64 a NULL pointer upon failed grub_env_get.
65
f7db6f4a
VS
662011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
67
68 Support non-512B sectors and agglomerate reads.
69
70 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
71 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
72 (disk_io_guid): Removed.
73 (make_devices): Locate solely by BlockIO.
74 (grub_efidisk_open): Fill log_sector_size and total_sectors.
75 (grub_efidisk_read): Use read_blocks.
76 (grub_efidisk_write): Use write_blocks.
77 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
78 log_sector_size.
79 (get_safe_sectors): Handle non-512B sectors.
80 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
81 sectors.
82 (grub_biosdisk_write): Handle non-512B sectors.
83 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
84 (grub_scsi_read): Remove special non-512B block handling (now handled
85 one level up).
86 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
87 and do sanity checks.
88 (grub_disk_adjust_range): Handle non-512B sectors.
89 (transform_sector): New function.
90 (grub_disk_read_small): Likewise.
91 (grub_disk_read): Rewritten.
92 (grub_disk_write): Handle non-512B sectors.
93 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
94 log_sector_size.
95 (open_device): Use log_sector_size.
96 (grub_util_biosdisk_read): Likewise.
97 (grub_util_biosdisk_write): Likewise.
98 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
99 non-512B sectors.
100 (pc_partition_map_embed): Likewise.
101 * include/grub/disk.h (grub_disk): New field log_sector_size.
102 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
103 (GRUB_DISK_CACHE_BITS): Increased to 6.
104 * util/grub-fstest.c (fstest): New command testload.
105 (argp_parser): Likewise.
106
881ac815
RM
1072011-06-16 Robert Millan <rmh@gnu.org>
108
109 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
110 `ata' driver on kernel of FreeBSD 9.
111
112 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
113 (get_ataraid_disk_name): New functions.
114 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
115 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
116 get_ataraid_disk_name() and get_ada_disk_name().
117
1e9aef7d
CW
1182011-06-13 Colin Watson <cjwatson@ubuntu.com>
119
120 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
121 input format.
122
351c7c8a
CW
1232011-05-29 Colin Watson <cjwatson@ubuntu.com>
124
125 * docs/grub.texi (Obtaining and Building GRUB): Substitute
126 `ftp.gnu.org' for `alpha.gnu.org'.
127
6b4e6430
CW
1282011-05-27 Colin Watson <cjwatson@ubuntu.com>
129
130 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
131 partitions under /dev/disk/by-id/.
132
c64db050
CW
1332011-05-27 Colin Watson <cjwatson@ubuntu.com>
134
135 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
136 after ten consecutive open failures. Scanning all the way up to
137 10000 is excessive and can cause serious performance problems in
138 some configurations.
139 Fixes Ubuntu bug #787461.
140
245f4aba
VS
1412011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
142
143 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
144 opening new one.
145
f767c929
VS
1462011-05-21 Colin Watson <cjwatson@ubuntu.com>
1472011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
148
149 Don't stat devices unless we have to.
150
151 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
152 dir == /dev/mapper.
153 (grub_guess_root_device): Use already known os_dev if possible.
154 * grub-core/kern/emu/hostdisk.c
155 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
156 if device is known to be a dm one.
157
f35fa3a6
CW
1582011-05-20 Colin Watson <cjwatson@ubuntu.com>
159
160 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
161 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
162 Reported by: Pawel Tecza.
163
9a79fcf2
VS
1642011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
165
166 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
167 (lsefisystab): Likewise.
168 (lssal): Likewise.
169 (lsefimmap): Likewise.
170 (hdparm): Enable on qemu-mips.
171 (setjmp): Add ia64 nodist.
172 (serial): Simplify tags.
173
63e3eea9
CW
1742011-05-18 Colin Watson <cjwatson@ubuntu.com>
175
176 * Makefile.util.def (grub-ofpathname): Install manual page.
177
09728256
CW
1782011-05-18 Colin Watson <cjwatson@ubuntu.com>
179
180 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
181
8b63a142
CW
1822011-05-18 Colin Watson <cjwatson@ubuntu.com>
183
184 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
185
e775d8ed
VS
1862011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
187
188 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
189 into dprintf.
190
bf947d36
VS
1912011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
192
193 Use full 64-bit division.
194
195 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
196 (grub_divmod64): ... this.
197 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
198 version.
199
b84f26c5
CW
2002011-05-18 Colin Watson <cjwatson@ubuntu.com>
201
202 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
203 `source'.
204
5626056f
CW
2052011-05-18 Colin Watson <cjwatson@ubuntu.com>
206
207 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
208 to avoid accidents when debugging with 'sh -x'.
209 * grub-core/gensyminfo.sh.in: Likewise.
210 * tests/example_scripted_test.in: Likewise.
211 * tests/grub_cmd_regexp.in: Likewise.
212 * tests/grub_script_blanklines.in: Likewise.
213 * tests/grub_script_dollar.in: Likewise.
214 * tests/grub_script_expansion.in: Likewise.
215 * tests/grub_script_final_semicolon.in: Likewise.
216 * tests/partmap_test.in: Likewise.
217 * tests/util/grub-shell-tester.in: Likewise.
218 * tests/util/grub-shell.in: Likewise.
219
e2965f4a
CW
2202011-05-18 Colin Watson <cjwatson@ubuntu.com>
221
222 Move gfxmenu color handling to video, so that gfxterm can use it
223 too.
224
225 * grub-core/gfxmenu/named_colors.c: Move to ...
226 * grub-core/video/colors.c: ... here. Rename
227 grub_gui_get_named_color to grub_video_get_named_color.
228 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
229 * grub-core/video/colors.c (my_isxdigit): ... here.
230 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
231 Move to ...
232 * grub-core/video/colors.c (parse_hex_color_component): ... here.
233 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
234 to ...
235 * grub-core/video/colors.c (grub_video_parse_color): ... here.
236
237 * include/grub/gui.h (grub_gui_color_t): Move to ...
238 * include/grub/video.h (grub_video_rgba_color_t): ... here.
239 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
240 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
241 * include/grub/gui.h (grub_gui_map_color): Move to ...
242 * include/grub/video.h (grub_video_map_rgba_color): ... here.
243 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
244 to ...
245 * include/grub/video.h (grub_video_get_named_color): ... here.
246 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
247 * include/grub/video.h (grub_video_parse_color): ... here.
248
249 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
250 video/colors.c.
251 (gfxmenu): Remove gfxmenu/named_colors.c.
252 (video) [videomodules]: Add video/colors.c.
253
254 Add a background_color command.
255
256 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
257 function.
258 (GRUB_MOD_INIT): Register background_color command.
259 (GRUB_MOD_FINI): Unregister background_color command.
260 (redraw_screen_rect): Allow blend/replace of text layer to be
261 controlled independently from whether there is a background bitmap.
262 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
263 changing bitmap.
264
1e4b4390
VS
2652011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
266
26618ff0
VS
267 Patch BPB in ntldr and chainloader --bpb.
268
1e4b4390
VS
269 * grub-core/fs/fat.c: Include grub/fat.h.
270 (grub_fat_bpb): Moved to ...
271 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
272 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
273 grub/ntfs.h.
274 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
275 Moved from here...
276 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
277 here.
278 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
279 New function.
280 (grub_chainloader_cmd): Patch BPB if --bpb is given.
281 (GRUB_MOD_INIT): Show --bpb.
282 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
283 * grub-core/normal/main.c (features): New variable.
284 (GRUB_MOD_INIT): Set feature_* variables.
285 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
286 proto.
287 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
288
cf02731e
VS
2892011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
290
291 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
292 for cleanness.
293
e3a1073f
VS
2942011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
295
296 FreeDOS direct loading support.
297
298 * docs/grub.texi (Supported OS): Add FreeDOS.
299 * grub-core/Makefile.core.def (freedos): New module.
300 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
301 variable.
302 (grub_relocator16_boot): Handle %ebx.
303 * grub-core/lib/i386/relocator16.S: Likewise.
304 * grub-core/loader/i386/pc/freedos.c: New file.
305
05caa461
VS
3062011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
307
308 Long Linux command line support.
309
310 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
311 (maximal_cmdline_size): New variable.
312 (allocate_pages): Use maximal_cmdline_size.
313 (grub_cmd_linux): Set and use maximal_cmdline_size.
314 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
315 (allocate_pages): Use maximal_cmdline_size.
316 (grub_cmd_linux): Set and use maximal_cmdline_size.
317 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
318 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
319 and cmdline_size.
320
a2491e23
VS
3212011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3222011-05-18 Colin Watson <cjwatson@ubuntu.com>
323
324 Improve devmapper support
325
326 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
327 (grub_util_is_lvm): New function.
328 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
329 than lvm if not dmraid.
330 Handle mapped md nodes.
331 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
332 (grub_util_device_is_mapped): ... this. Make always available. All users
333 updated.
334 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
335 (convert_system_partition_to_system_disk): Handle lvm, mpath and
336 dmraid nodes.
337 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
338
6ad6223e
VS
3392011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
340
341 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
342
343 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
344 * grub-core/modinfo.sh.in: New file.
345 * grub-core/Makefile.core.def (modinfo.sh): New script.
346 * util/grub-mknetdir.in: Use modinfo.sh.
347 * util/grub-mkrescue.in: Likewise.
348
543a8f6e
VS
3492011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
350
351 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
352 Fix potential usage of Elf32 instead of Elf64 when compiling on
353 32-bit architecture. Add endianness macros while on it.
354
4959e111
VS
3552011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
356
357 Use mipsel- rather than mips- in directories involving mipsel ports to
358 allow both endiannesses coexist.
359
360 * configure.ac: proparate target_cpu=mipsel rather than resetting to
361 mips. All conditions adjusted.
362 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
363 variable.
364 * util/grub-install.in: Adjust conditions to take renaming into account.
365 * util/grub-mkimage.c (image_targets): Likewise. New target
366 mips-qemu_mips-elf for bigendian mips.
367
35341bbc
VS
3682011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
369
370 Avoid unnecessary copying on MIPS.
371
372 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
373 early if src == dest.
374 * util/grub-mkimage.c (generate_image): Arange for src == dest if
375 compression is none.
376
b772baed
VS
3772011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
378
379 Reduce memory footprint on SGI by putting modules before the kernel
380 as opposed to after.
381
382 * grub-core/Makefile.core.def (kernel): Increase linking address.
383 (none_decompress): Likewise.
384 (xz_decompress): Likewise.
385 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
386 address.
387 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
388 layout change.
389 (grub_arch_modules_addr): New function.
390 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
391 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
392 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
393 here.
394 * grub-core/kern/mips/startup.S (total_size): Rename to ...
395 (grub_total_modules_size): ... this. Make global.
396 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
397 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
398 New definition.
399 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
400 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
401 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
402 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
403 * util/grub-mkimage.c (image_target_desc): New flag
404 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
405 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
406 (generate_image): Handle images with modules before kernel.
407
566a1917
VS
4082011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
409
410 Prevent potential loss of memory map by overwrite on qemu-mips.
411
412 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
413 Save ram size in $s4.
414 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
415 All users changed to grub_arch_memsize.
416 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
417 Loongson.
418 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
419 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
420 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
421 external variable.
422
5d420cd9
CW
4232011-05-17 Colin Watson <cjwatson@ubuntu.com>
424
425 * .bzrignore: Remove grub-dumpbios.
426
d064b830
CW
4272011-05-17 Colin Watson <cjwatson@ubuntu.com>
428
429 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
430 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
431 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
432 existing options which append).
433 * docs/grub.texi (Simple configuration): Document new options.
434 Reported by: Ian Jackson. Fixes Debian bug #617538.
435
3ca2b466
CW
4362011-05-17 Colin Watson <cjwatson@ubuntu.com>
437
438 * util/grub-fstest.c (cmd_cat): New function.
439 (fstest): Handle CMD_CAT.
440 (options): Add cat.
441 (argp_parser): Handle cat.
442
24c9143a
CW
4432011-05-17 Colin Watson <cjwatson@ubuntu.com>
444
445 * Makefile.util.def (grub-bin2h): Don't install.
446 * docs/man/grub-bin2h.h2m: Remove.
447
90f7ac19
VS
4482011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
449
450 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
451 place.
452
8d4a5178
VS
4532011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
454
455 Reenable qemu-mips port.
456
457 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
458 Fix small arc bug while on it.
459 * gentpl.py: Handle qemu_mips.
460 * grub-core/Makefile.am: Likewise.
461 * grub-core/Makefile.core.def: Likewise.
462 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
463 inappropriate includes.
464 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
465 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
466 * grub-core/kern/main.c (grub_modules_get_end)
467 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
468 * grub-core/kern/mips/qemu-mips: Moved to ..
469 * grub-core/kern/mips/qemu_mips: ... this.
470 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
471 (grub_machine_init): Call terminfo_init and serial_init.
472 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
473 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
474 New variable.
475 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
476 parameter passing.
477 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
478 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
479 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
480 * include/grub/mips/qemu_mips/cmos.h: New file.
481 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
482 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
483 Removed.
484 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
485 Use correct mips-style address.
486 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
487 (GRUB_TICKS_PER_SECOND): Removed.
488 (grub_get_rtc): Likewise.
489 (grub_cpu_idle): Likewise.
490 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
491 New definition.
492 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
493 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
494 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
495 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
496 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
497 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
498 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
499 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
500
400b9371
VS
5012011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
502
503 SGI ARCS port.
504
505 * Makefile.util.def (libgrubmods.a): Add dvh.c.
506 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
507 platforms.
508 * configure.ac: New target mips-arc.
509 * gentpl.py: Likewise.
510 * grub-core/Makefile.am: Likewise.
511 * grub-core/Makefile.core.def: Likewise.
512 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
513 (none_decompress): Likewise.
514 (lsdev): New module.
515 (datetime): Use lib/arc/datetime.c on ARC.
516 (part_dvh): New module.
517 * grub-core/commands/arc/lsdev.c: New file.
518 * grub-core/disk/arc/arcdisk.c: Likewise.
519 * grub-core/kern/mips/arc/init.c: Likewise.
520 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
521 aligned addresses.
522 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
523 support.
524 (grub_arch_dl_relocate_symbols): Likewise.
525 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
526 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
527 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
528 platforms.
529 * grub-core/lib/arc/datetime.c: New file.
530 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
531 pci.h on non-loongson.
532 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
533 (grub_linux_boot): Set unused registers to 0.
534 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
535 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
536 * grub-core/mmap/mips/uppermem.c: ...here.
537 * grub-core/partmap/dvh.c: New file.
538 * grub-core/term/arc/console.c: Likewise.
539 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
540 (grub_terminfo_set_current): Add terminal "arc".
541 (grub_terminfo_readkey): Support ARC sequences.
542 * include/grub/arc/arc.h: New file.
543 * include/grub/arc/console.h: Likewise.
544 * include/grub/disk.h (grub_disk_dev_id): Add
545 GRUB_DISK_DEVICE_ARCDISK_ID.
546 * include/grub/mips/arc/kernel.h: New file.
547 * include/grub/mips/arc/memory.h: Likewise.
548 * include/grub/mips/arc/time.h: Likewise.
549 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
550 * include/grub/mips/kernel.h (grub_halt): ... here.
551 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
552 here...
553 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
554 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
555 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
556 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
557 proto.
558 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
559 from here ...
560 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
561 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
562 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
563 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
564 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
565 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
566 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
567 (grub_phys_addr_t): Moved from here ...
568 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
569 (grub_vtop): Moved from here ...
570 * include/grub/mips/memory.h (grub_vtop): ... here.
571 (grub_map_memory): Moved from here ...
572 * include/grub/mips/memory.h (grub_map_memory): ... here.
573 (grub_unmap_memory): Moved from here ...
574 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
575 (grub_machine_mmap_iterate): Moved from here ...
576 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
577 (grub_mmap_get_lower): Moved from here ...
578 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
579 (grub_mmap_get_upper): Moved from here ...
580 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
581 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
582 here ...
583 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
584 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
585 here ...
586 * include/grub/mips/time.h (grub_get_rtc): ... here.
587 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
588 here ...
589 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
590 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
591 here ...
592 * include/grub/mips/time.h (grub_cpu_idle): ... here.
593 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
594 definition.
595 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
596 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
597 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
598 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
599 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
600 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
601 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
602 (GRUB_MACHINE_LINK_ADDR): Likewise.
603 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
604 to 6.
605 * util/grub-install.in: Run dvhtool on ARC.
606 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 607 (generate_image): Handle ECOFF output for mips-arc.
400b9371 608
c8ecc840
VS
6092011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
610
611 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
612 blocks.
613
153a4b55
VS
6142011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
615
616 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
617 after enabling port.
618
ff44d107
VS
6192011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
620
621 Skip incorrect USB devices.
622
623 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
624 configcnt == 0.
625 * include/grub/usb.h (grub_usb_err_t): New enum value
626 GRUB_USB_ERR_BADDEVICE.
627
638dbe4f
VS
6282011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
629
630 Fuloong video init support.
631
632 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
633 well.
634 (grub_vga_read_arx): New function.
635 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
636 definition.
637 (framebuffer): New members io, mmioptr and mmiobase.
638 (read_sis_cmd): New function.
639 (write_sis_cmd): Likewise.
640 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
641 rather than 640x400.
642 * grub-core/video/sis315_init.c: New file.
643
c3fc520c
VS
6442011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
645
646 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
647 non-loongson.
648 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
649 to grub_dl_register_symbol.
650
67b1e5c9
VS
6512011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
652
653 Fix compilation errors.
654
655 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
656 potentially unused.
657 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
658 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
659 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
660 to loongson machines.
661
b756f75f
VS
6622011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
663
664 Several FS mtime support.
665
666 * grub-core/fs/affs.c (grub_affs_time): New struct.
667 (grub_affs_file): New field mtime.
668 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
669 type. Removed 'size'. New field 'di'. All users updated.
670 (grub_affs_mount): Simplify checsum checking.
671 (grub_affs_iterate_dir): New helper grub_affs_create_node.
672 (grub_affs_dir): Handle mtime.
673 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
674 (grub_cpio_dir): Likewise.
675 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
676 (grub_hfs_filerec): New field mtime.
677 (grub_hfs_dir): Handle mtime.
678 (grub_hfs_mtime): New function.
679 (grub_hfs_fs): Register grub_hfs_mtime.
680 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
681 (grub_iso9660_dir): New field mtime.
682 (grub_fshelp_node): New field dirent.
683 (iso9660_to_unixtime): New function.
684 (iso9660_to_unixtime2): Likewise.
685 (grub_iso9660_read_symlink): Use node->dirent.
686 (grub_iso9660_iterate_dir): Likewise.
687 (grub_iso9660_dir): Set mtime.
688 (grub_iso9660_mtime): New function.
689 (grub_iso9660_fs): Register grub_iso9660_mtime.
690 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
691 (grub_jfs_inode): New fields atime, ctime and mtime.
692 (grub_jfs_dir): Set mtime.
693 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
694 * grub-core/fs/ntfs.c (list_file): Set mtime.
695 (grub_ntfs_dir): Likewise.
696 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
697 (grub_reiserfs_iterate_dir): Set mtime.
698 (grub_reiserfs_dir): Likewise.
699 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
700 (grub_fshelp_node): Likewise.
701 (grub_sfs_iterate_dir): Set mtime.
702 (grub_sfs_dir): Likewise.
703 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
704 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
705 (grub_xfs_inode): New fields atime, mtime, ctime.
706 (grub_xfs_dir): Set mtime.
707 * include/grub/datetime.h (grub_datetime2unixtime): New function.
708 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
709 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
710
711 Support UDF symlinks.
712
713 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
714 (grub_ufs_read_symlink): New function. All users updated.
715
716 Check amiga partmap checksum.
717
718 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
719 (grub_amiga_partition): Likewise.
720 (amiga_partition_map_checksum): New function.
721 (amiga_partition_map_iterate): Check checksum.
722
5470225d
VS
7232011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
724
725 ROMFS support.
726
727 * Makefile.util.def (libgrubmods.a): Add romfs.
728 * grub-core/Makefile.core.def (romfs): New module.
729 * grub-core/fs/romfs.c: New file.
730
d4680a35
VS
7312011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
732
733 Squashfs v4 support.
734
735 * Makefile.util.def (libgrubmods.a): Add squash4.
736 * grub-core/Makefile.core.def (squash4): New module.
737 * grub-core/fs/squash4.c: New file.
738 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
739 disk_input_start, disk_input.
740 (get_byte): Handle disk_input.
741 (grub_zlib_disk_read): New function.
742 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
743
bcb18e74
FZ
7442011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7452011-05-15 Feiran Zheng <famcool@gmail.com>
746
747 * Makefile.util.def (libgrubmods.a): Add minix3.
748 * grub-core/Makefile.core.def (minix3): New module.
749 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
750 (GRUB_MINIX_BSIZE): Removed.
751 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
752 (grub_minix_ino_t): New type.
753 (grub_minix_le_to_cpu_ino): New macro.
754 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
755 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
756 (grub_minix_data): New field block_size.
757 (grub_minix_read_file): Handle 64-bit correctly.
758 * grub-core/fs/minix3.c: New file.
759
32297d5f
TG
7602011-05-15 Tristan Gingold <gingold@free.fr>
7612011-05-15 Robert Millan <rmh.grub@aybabtu.com>
7622011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
763
764 IA64 support.
765
766 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
767 * configure.ac: Add ia64-efi target.
768 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
769 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
770 * gentpl.py: Add ia64_efi platform.
771 Rename x86_efi to efi and Add ia64-efi. All users updated.
772 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
773 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
774 Remove kern/generic/rtc_get_time_ms.c on EFI.
775 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
776 kern/ia64/dl_helper.c on ia64-efi.
777 Add kern/emu/cache.c on emu.
778 (linux): Use on loader/ia64/efi/linux.c on ia64.
779 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
780 whether symbol is a function.
781 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
782 (grub_symbol): New field 'isfunc'.
783 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
784 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
785 (grub_dl_load_segments): Place all sections into the same region.
786 [__ia64__]: Create trampolines and got.
787 [GRUB_MACHINE_EMU]: Call mprotect.
788 (grub_dl_resolve_symbols): Resolve symbol type as well.
789 [__ia64__]: Create function descriptors.
790 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
791 (grub_rtc_get_time_ms): ... this. Expressions simplified.
792 (grub_get_rtc): New function.
793 * grub-core/kern/emu/cache.c [__ia64__]: New file.
794 * grub-core/kern/emu/cache.S: Renamed to ...
795 * grub-core/kern/emu/cache_s.S: ... this.
796 [__ia64__]: Add a nop.
797 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
798 [__ia64__]: New function.
799 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
800 * grub-core/kern/ia64/dl.c: New file.
801 * grub-core/kern/ia64/dl_helper.c: Likewise.
802 * grub-core/kern/ia64/efi/init.c: New file.
803 * grub-core/kern/ia64/efi/startup.S: Likewise.
804 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
805 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
806 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
807 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
808 * grub-core/loader/ia64/efi/linux.c: New file.
809 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
810 (GRUB_MOD_DEP): Likewise.
811 (grub_dl) [__ia64__]: New fields got and tramp.
812 (grub_dl): New field 'base'.
813 (grub_dl_register_symbol): New argument isfunc. All users updated.
814 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
815 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
816 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
817 (grub_ia64_dl_get_tramp_got_size): New proto.
818 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
819 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
820 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
821 * include/grub/efi/api.h: Skip call wrappers on ia64.
822 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
823 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
824 * include/grub/elf.h (ELF_ST_INFO): New definition.
825 * include/grub/ia64/efi/kernel.h: New file.
826 * include/grub/ia64/efi/memory.h: Likewise.
827 * include/grub/ia64/efi/time.h: Likewise.
828 * include/grub/ia64/kernel.h: Likewise.
829 * include/grub/ia64/setjmp.h: Likewise (from glibc).
830 * include/grub/ia64/time.h: New file.
831 * include/grub/ia64/types.h: Likewise.
832 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
833 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
834 New protos.
835 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
836 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
837 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
838 * util/grub-mkimage.c (image_target_desc): New field pe_target.
839 All users updated.
840 (EFI64_HEADER_SIZE): New definition. All users updated.
841 (image_targets): Add ia64-efi.
842 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
843 jumpers_addr. All users updated.
844 Create function descriptors.
845 (count_funcs): New function.
846 (unaligned_uint32): New struct.
847 (MASK20): New definition.
848 (MASK19): Likewise.
849 (MASKF21): Likewise.
850 (add_value_to_slot_20b): New function.
851 (add_value_to_slot_21_real): Likewise.
852 (add_value_to_slot_21): Likewise.
853 (ia64_kernel_trampoline): New struct.
854 (nopm): New variable.
855 (jump): Likewise.
856 (make_trampoline): New function.
857 (relocate_addresses): Handle ia64.
858 (make_reloc_section): Likewise.
859 (load_image): Likewise.
860
983b414d
VS
8612011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
862
863 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
864 warning. Move variables before code while on it.
865
5d063cdc
VS
8662011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
867
868 Fuloong support.
869
870 * configure.ac: Rename yeeloong platform to loongson. All users updated.
871 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
872 * grub-core/boot/mips/loongson/fuloong.S: New file.
873 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
874 Explicitly init CS5536.
875 [FULOONG]: Don't use serial until CS5536 is available.
876 Set GPIO based on dumps.
877 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
878 [FULOONG]: Handle GPIO and memory controller differences.
879 Parse machine type in $a2.
880 * grub-core/boot/mips/startup_raw.S: Determine and save the
881 architecture.
882 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
883 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
884 init on architecture type.
885 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
886 SIS315E. Don't init at_keyboard on fuloong.
887 (grub_halt): Support Fuloong.
888 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
889 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
890 (loongson_machtypes): New array.
891 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
892 type.
893 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
894 config. All users updated. Handle CS5536 serial.
895 * grub-core/term/serial.c (grub_serial_register): Conditionalise
896 default port on machine type. Register serial as inactive.
897 * grub-core/video/sis315pro.c: New file.
898 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
899 definition.
900 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
901 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
902 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
903 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
904 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
905 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
906 to ...
907 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
908 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
909 definition.
910 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
911 (grub_arch_machine): New extern var.
912 * include/grub/mips/loongson/serial.h
913 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
914 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
915 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
916 (GRUB_MACHINE_SERIAL_PORT0): ... this.
917 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
918 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
919 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
920 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
921 * include/grub/term.h (grub_term_register_input_inactive): New inline
922 function.
923 (grub_term_register_output_inactive): Likewise.
924 * include/grub/video.h (grub_video_driver_id): New value
925 GRUB_VIDEO_DRIVER_SIS315PRO.
926 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
927 New field "names". All users updated.
928 New field value IMAGE_FULOONG_FLASH.
929 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
930
6ada82d1
JU
9312011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
932
933 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
934 and add some clarification.
935
90c571a4
VS
9362011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
937
938 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
939 platforms if kernel is compressed.
940
de04eecf
VS
9412011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
942
943 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
944 unused modules since currently referrence counter isn't reliable and
945 there isn't much memory to recover there anyway.
946
57688121
VS
9472011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
948
949 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
950 rather than resetting it to allow modules to reference themselves
951 in init.
952
3d2c7e35
VS
9532011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
954
955 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
956 counter on dependencies since grub_dl_unref already handles this.
957
b25db218
VS
9582011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
959
960 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
961 on error if not already done.
962
25a45338
VS
9632011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
964
965 Fix few potential memory misusage.
966
967 * grub-core/font/font.c (load_font_index): Don't free char_index to
968 avoid double free.
b25db218
VS
969 (grub_font_load): Zero-fill font at alloc for safety.
970 Close file on error.
971 (free_font): Free bmp_idx.
25a45338 972
0cac83df
VS
9732011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
974
975 * docs/grub.texi (Installation): Fix several outdated claims.
976
2217a143
VS
9772011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
978
979 Handle module_license on windows.
980
981 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
982 sections shifted.
983 (insert_string): Make argument const char * instead of char *.
984 (write_section_data): Handle long section names.
985 Handle module_license.
986
d4de6b01
VS
9872011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
988
989 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
990 handle class-free menuentries.
991 (grub_normal_add_menu_entry): Add a check to be sure.
992
4c2a3b43
VS
9932011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
994
995 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
996 PgUp and PgDown.
997
85c6210f
VS
9982011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
999
1000 * configure.ac: Bump version to 1.99.
1001
36084912
VS
10022011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1003
1004 Give ATA device a bit more time on first try in order to allow disks
1005 to spin up.
1006
1007 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
1008 if dev->present is 1. Reset dev->present on failure.
1009 (grub_ata_device_initialize): Set dev->present to 1.
1010 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
1011 (grub_ata_device): New member 'present'.
1012
bda0e219
VS
10132011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1014
1015 * util/grub-mkimage.c (generate_image): Update hash.
1016
19e1c41b
VS
10172011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1018
1019 Flush caches on DMA memory.
1020
1021 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
1022 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
1023 (grub_dma_free): Likewise.
1024 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
1025
91bbcc0c
VS
10262011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1027
1028 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
1029 to avoid asm treating ld and sd as macros.
1030
60ddfad3
VS
10312011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1032
1033 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
1034 decompressor.
1035
a298aa04
VS
10362011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1037
1038 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
1039 grub_decompress_core since later would fail if grub_decompress_core
1040 is too far.
1041
9b44feca
VS
10422011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
1043
1044 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
1045 R_MIPS_JALR since it's used by newer compiler.
1046
56dbe7b4
VS
10472011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1048
1049 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
1050
52856af2
VS
10512011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1052
1053 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
1054 file_path to 0 for surety.
1055 (grub_chainloader_boot): Set exit_data to NULL.
1056 Unset the loader once done.
1057 (grub_cmd_chainloader): Fix confusing error message if file is empty.
1058
9c9bfc6d
VS
10592011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1060
1061 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
1062 unknown key into a dprintf.
1063
dd94a3df
VS
10642011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1065
1066 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
1067 on first non-existant partition.
1068
fa68d99c
VS
10692011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1070
1071 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
1072 openning fails.
1073 Reported by: Mark Korenberg.
1074
157effb7
VS
10752011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1076
1077 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
1078 overflow.
1079
ea75312f
VS
10802011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
1081
1082 * util/grub-mkimage.c (main): Explicitely flush and sync the output
1083 before closing to ensure that it will be readable by grub-setup.
1084
072b5d31
VS
10852011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1086
1087 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
1088 (devpath_1): Use MAKE_PIWG_PATH.
1089 (devpath_2): Likewise.
1090 (devpath_3): Likewise.
1091 (devpath_4): Likewise.
1092 (devpath_5): Likewise.
1093 (devpath_6): Likewise.
1094
1095 The appleldr.mod was checked that to be binary identical to previous
1096 version.
1097
7fae0051
Z
10982011-05-05 Zach <mikezackles>
1099
1100 Support 2010 Macbooks.
1101
1102 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
1103 (devs): Add devpath_6.
1104
7c515bee
VS
11052011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1106
1107 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
1108 /dev/random. /dev/urandom is good enough for our purposes (salting).
1109
ed660bd8
VS
11102011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1111
1112 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
1113
ee5614b7
VS
11142011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1115
1116 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
1117 hexadecimal.
1118
664889a6
VS
11192011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1120
1121 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
1122 and not 0 on failure.
1123
bd405bbc
CW
11242011-05-03 Colin Watson <cjwatson@ubuntu.com>
1125
1126 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
1127 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
1128 disk; otherwise grub_fs_probe will not fall back to the next
1129 filesystem.
1130 (grub_pxefs_open): Likewise, for consistency.
1131 Reported and tested by: Ezekiel Grave.
1132
4ebff753
CW
11332011-05-03 Colin Watson <cjwatson@ubuntu.com>
1134
1135 * tests/partmap_test.in: Don't hardcode path to parted.
1136 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
1137
8f942553
CW
11382011-05-01 Colin Watson <cjwatson@ubuntu.com>
1139
1140 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
1141 of `ls' to find out which devices are available.
1142
3c62402d
VS
11432011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1144
1145 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
1146 than source address for efi mmap buffer.
1147
723f63f2
VS
11482011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1149
1150 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
1151 wrong action on non-detecting the magic.
1152
68797f92
VS
11532011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1154
1155 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
1156 already supplied by another part of the module (fixes compilation on
1157 FreeBSD).
1158
6be8715d
VS
11592011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1160
1161 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
1162 match the one used by mdadm.
1163
e91dba5b
CW
11642011-04-21 Colin Watson <cjwatson@ubuntu.com>
1165
1166 * po/README: Add instructions for creating po/LINGUAS.
1167
c85140b3
CW
11682011-04-21 Colin Watson <cjwatson@ubuntu.com>
1169
1170 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
1171 #551428.
1172
1173 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
1174 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
1175 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
1176 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
1177 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
1178 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
1179 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
1180 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
1181 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
1182 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
1183 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
1184 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
1185 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
1186 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
1187 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
1188 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
1189 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
1190 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
1191 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
1192 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
1193 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
1194 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
1195
92051871
CW
11962011-04-21 Colin Watson <cjwatson@ubuntu.com>
1197
1198 * grub-core/kern/emu/getroot.c
1199 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
1200 test that was incorrectly reintroduced in r3214.
1201 Reported by: Ian Dall. Fixes Savannah bug #33133.
1202
b13f79a4
CW
12032011-04-21 Colin Watson <cjwatson@ubuntu.com>
1204
1205 Fix stack pointer handling in 16-bit relocator.
1206
1207 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
1208 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
1209 Fixes Ubuntu bug #683904.
1210
9b710a88
VS
12112011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1212
1213 * configure.ac: Bump version to 1.99~rc2.
1214
d97e7b59
VS
12152011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1216
1217 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
1218 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
1219 * grub-core/lib/x86_64/setjmp.S: Likewise.
1220 * grub-core/lib/mips/setjmp.S: Likewise.
1221 * grub-core/lib/powerpc/setjmp.S: Likewise.
1222 * grub-core/lib/sparc64/setjmp.S: Likewise.
1223
0624551c
VS
12242011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1225
1226 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
1227 * grub-core/lib/efi/datetime.c: Likewise.
1228
e8f28d4c
VS
12292011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1230
1231 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
1232 New function.
1233 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
1234 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
1235 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
1236
bba79a15
VS
12372011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1238
1239 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
1240 bitmap.
1241 (grub_gfxterm_term_init): Likewise.
1242
abc474ef
VS
12432011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1244
1245 Take into account the decorations the computing menu entry width.
1246
1247 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
1248 (grub_gfxmenu_create_box): Register get_border_width.
1249 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
1250 if available.
1251 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
1252 get_border_width.
1253
e74b3947
EP
12542011-04-18 Endres Puschner <code@e7p.de>
1255
1256 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
1257 Don't skip first class.
1258
34faa595
VS
12592011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1260
1261 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
1262 chunks.
1263 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
1264
93a777e3
VS
12652011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1266
1267 Complete 64-bit division support.
1268
1269 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
1270 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
1271 * include/grub/misc.h (grub_divmod64): Rename to ...
1272 (grub_divmod64_full): ... this.
1273 (grub_divmod64): New inline function.
1274
a5102d94
VS
12752011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1276
1277 * util/grub-mkimage.c (generate_image): Add forgotten comma.
1278
f3fb7b36
VS
12792011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
1280
1281 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
1282 performing the necessary test.
1283
9ac718b0
VS
12842011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1285
1286 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
1287 (kfreebsd.elf): Likewise.
1288 (pc-chainloader.elf): Likewise.
1289 (ntldr.elf): Likewise.
1290
50d2cc5a
VS
12912011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1292
1293 Identify RAID by its UUID rather than (guessed) name.
1294
1295 * grub-core/disk/raid.c (ascii2hex): New function.
1296 (grub_raid_open): Accept mduuid/%s specification.
1297 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
1298 (get_mdadm_uuid): ... this.
1299 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
1300
e03f7bea
VS
13012011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
1302
1303 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
1304 to negative size.
1305
e74c3112
CW
13062011-04-13 Colin Watson <cjwatson@ubuntu.com>
1307
1308 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
1309 btrfs subvolume.
1310 * util/grub.d/20_linux_xen.in: Likewise.
1311
78fa584f
CW
13122011-04-13 Colin Watson <cjwatson@ubuntu.com>
1313
1314 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
1315 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
1316
1317 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
1318 Build a list of relevant visible mounts using the mnt_id and
1319 parent_mnt_id fields, and then scan that list at the end.
1320
9d5f8162
CW
13212011-04-12 Colin Watson <cjwatson@ubuntu.com>
1322
1323 * docs/grub.texi (normal): New section.
1324 (normal_exit): New section.
1325 (Embedded configuration): Add reference to normal.
1326 (GRUB only offers a rescue shell): Likewise.
1327 * docs/grub-dev.texi (Error Handling): Fix typo.
1328
09a9d66f
CW
13292011-04-12 Colin Watson <cjwatson@ubuntu.com>
1330
1331 * NEWS: Drop obsolete entry about probe-only btrfs support.
1332
0c676933
CW
13332011-04-12 Colin Watson <cjwatson@ubuntu.com>
1334
1335 * util/import_gcry.py: Fix typo.
1336
ec9f5e0d
VS
13372011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1338
1339 * NEWS: Add btrfs support.
1340
fe6b2cba
VS
13412011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13422011-04-11 Colin Watson <cjwatson@ubuntu.com>
1343
1344 BtrFS support. Written by me (Vladimir) with important bugfixes and
1345 even more important testing by Colin.
1346
1347 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
1348 * grub-core/Makefile.core.def (btrfs): Add crc.c.
1349 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
1350 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
1351 mem_input_off and mem_input. All users updated to accept in-RAM input.
1352 (gzio_seek): New function.
1353 (test_zlib_header): Likewise.
1354 (grub_gzio_read): Likewise.
1355 (grub_zlib_decompress): Likewise.
1356 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
1357 Accept partial and non-virtual mounts.
1358 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
1359 avoid receiving /dev/dm-X as device.
1360 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
1361 Handle bind and partial mounts.
1362 * grub-core/lib/crc.c: New file.
1363 * include/grub/deflate.h: Likewise.
1364 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
1365 proto.
1366 * include/grub/lib/crc.h: New file.
1367
e745cf0c
VS
13682011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1369
1370 Implement automatic module license checking according to new GNU
1371 guidelines.
1372
1373 * grub-core/kern/dl.c (grub_dl_check_license): New function.
1374 (grub_dl_load_core): Use grub_dl_check_license.
1375 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
1376 (GRUB_MOD_LICENSE): Likewise.
1377 (GRUB_MOD_DUAL_LICENSE): Likewise.
1378 All modules updated.
1379
2a9bc016
CW
13802011-04-11 Colin Watson <cjwatson@ubuntu.com>
1381
1382 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
1383 reserved_first_sector to 1. btrfs reserves plenty of space for boot
1384 loaders.
1385 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
1386
8a3bc88e
VS
13872011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1388
1389 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
1390
af869a4a
VS
13912011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1392
1393 * util/grub-fstest.c (read_file): Report GRUB error if file opening
1394 failed.
1395
9ee8d94f
VS
13962011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1397
1398 * grub-core/kern/file.c (grub_file_open): Don't take into account the
1399 parenthesis in the middle of the filename.
1400
b01abe3e
VS
14012011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1402
1403 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
1404 rather than trying to put initrd way too high.
1405 Reported by: Ryan Lortie <desrt@desrt.ca>
1406
335bda1e
VS
14072011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1408
1409 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
1410 improperly removed string.
1411
5ca1a64d
VS
14122011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1413
1414 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
1415 is_disk.
1416 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
1417 (open_device) Likewise.
1418 (grub_util_biosdisk_close): Likewise.
d8ce9995 1419 Reported by: Mark Korenberg.
5ca1a64d 1420
cbac5b1e
AK
14212011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
1422
1423 * util/grub-mkconfig_lib.in: Add missing quotes.
1424
088cdb65
CW
14252011-04-10 Colin Watson <cjwatson@ubuntu.com>
1426
1427 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
1428 is NULL.
1429
8b8a81fa
VS
14302011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1431
1432 Dynamically count the number of lines for the lower banner.
1433
1434 * grub-core/normal/menu_entry.c (per_term_screen): New member
1435 num_entries.
1436 (print_down): Use num_entries.
1437 (update_screen): Likewise.
1438 (grub_menu_entry_run): Set num_entries.
1439 * grub-core/normal/menu_text.c (menu_viewer_data): New member
1440 num_entries.
1441 (grub_print_message_indented): Move real part to ...
1442 (grub_print_message_indented_real): ... here. Additional argument
1443 dry_run.
1444 (draw_border): Additional argument num_entries.
1445 (print_message): Additional argument dry_run.
1446 (print_entries): Receive menu viewer data.
1447 (grub_menu_init_page): New argment num_entries.
1448 (menu_text_set_chosen_entry): Use num_entries.
1449 (grub_menu_try_text): Likewise.
1450 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
1451 All users updated.
1452 (grub_ucs4_count_lines): New function.
1453 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
1454 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
1455 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
1456 (grub_term_border_height): Likewise.
1457 (grub_term_num_entries): Likewise.
1458
277f955b
VS
14592011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
1462 Remove now unused string.
1463
536ce85a
CW
14642011-04-09 Colin Watson <cjwatson@ubuntu.com>
1465
1466 * docs/grub-dev.texi (Finding your way around): Update for 1.99
1467 build system.
1468 (Getting started): GRUB is developed in Bazaar now, not Subversion.
1469
1470 (Comment): Fix typo.
1471 (Getting started): General copy-editing.
1472 (Typical Development Experience): Likewise.
1473 (Error Handling): Likewise.
1474 (Video API): Likewise.
1475
2cf09e32
CW
14762011-04-09 Colin Watson <cjwatson@ubuntu.com>
1477
1478 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
1479 throughout.
1480
1ec652f4
VS
14812011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1482
1483 * util/grub-mkimage.c (main): Handle special naming of yeeloong
1484 directory.
1485
2c583728
CW
14862011-04-08 Colin Watson <cjwatson@ubuntu.com>
1487
1488 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
1489 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
1490 "development".
1491
d7a565e9
VS
14922011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1493
1494 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
1495 grub_strcpy since the lines aren't necessarily 0-terminated.
1496
7c2e4909
VS
14972011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1498
1499 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
1500 root on legacy.
1501
34c09785
VS
15022011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1503
1504 * grub-core/commands/probe.c (options): Argument to set isn't optional.
1505 (GRUB_MOD_INIT): DEVICE isn't optional.
1506
6a6f8058
VS
15072011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1508
1509 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
1510 word on new line if it's too long anyway. Fixes a hang.
1511
2e335e90
VS
15122011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1513
1514 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
1515 const.
1516 * util/grub-setup.c (main): Reuse md device name if available.
1517 * util/raid.c (grub_util_raid_getmembers): Receive device name and
1518 not GRUB name as argument.
1519 Based on patch by: Florian Wagner <fwagner>.
1520
10a7a867
VS
15212011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1522
1523 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
1524 Place mbi on low memory for better compatibility.
1525
7a3d6cd9
VS
15262011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1527
1528 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
1529
18dd6b47
VS
15302011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15312011-04-08 Colin Watson <cjwatson@ubuntu.com>
1532
1533 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 1534 * conf/Makefile.common: Likewise.
18dd6b47 1535
3c0e3f14
VS
15362011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1537
f7148863
VS
1538 * grub-core/normal/menu.c: Add missing include.
1539
15402011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1541
1542 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 1543
6d1fa41f
MZ
15442011-04-08 Martin Zuther <mzuther@mzuther.de>
1545
1546 * util/grub-mkconfig.in: Ignore emacsen backup.
1547
478182a8
VS
15482011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1549
1550 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
1551 on open.
1552 (grub_util_biosdisk_close): Likewise.
1553
72a89a54
VS
15542011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1555
1556 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
1557 const attribute and use grub_isdigit.
1558
b5ebecfa
A
15592011-04-06 Andrey <dev_null@ukr.net>
1560
1561 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
1562 gcc warning.
1563
7755f66e
VS
15642011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1565
1566 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
1567 useful grub_dprintf's.
1568
461121ff
VS
15692011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1570
1571 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
1572
2a961775
VS
15732011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1574
1575 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
1576
adf594cc
VS
15772011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1578
1579 Output errors if theme loading failed.
1580
1581 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
1582 grub_gfxterm_fullscreen on error paths to ...
1583 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
1584 theme loading error.
1585
665900a3
VS
15862011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1587
1588 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
1589 space for older compilers.
1590 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
1591
a562b479
VS
15922011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
1593
1594 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
1595 and report them as not RAID members since they are useless for GRUB.
1596 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
1597
850e9373
VS
15982011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1599
1600 Increase LVM implementation robustness in order not to crash on
1601 configurations like pvmove. Previously code assumed that in some places
1602 only lvs or only pvs are used whereas it seems that they are used
1603 interchangeably.
1604
1605 * grub-core/disk/lvm.c (read_node): New function.
1606 (read_lv): Use read_node.
1607 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
1608 Match volumes only at the end when all lvs are found. Take both
1609 pvs (first) and lvs (second) into account.
1610 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
1611 mirror_* into node_*. All users updated.
1612 (grub_lvm_stripe): Merge this ...
1613 (grub_lvm_mirror): ... and this ...
1614 (grub_lvm_node): ... into this. All users updated.
1615
6f332153
VS
16162011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1617
1618 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
1619 of function to allow further scanning for LVMs.
1620
829ea451
VS
16212011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1622
1623 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
1624 on failed seek as it breaks open fd reusage.
1625
09ceb9a5
VS
16262011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1627
1628 * util/grub-install.in: Add a recommendation to use --recheck before
1629 reporting bugs.
1630
67e11623
VS
16312011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1632
1633 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
1634 are obtained.
1635
caee5efd
VS
16362011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
1637
1638 GRUB developper manual based on existing Internals section and
1639 contributions by the various authors with active copyright assignment.
1640
1641 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
1642 * docs/font_char_metrics.png: New file.
1643 * docs/font_char_metrics.txt: Likewise.
1644 * docs/grub-dev.texi: Likewise.
1645 * docs/grub.texi (Internals): Move from here ...
1646 * docs/grub-dev.texi: ... here.
1647
2cccc747
CW
16482011-04-01 Colin Watson <cjwatson@ubuntu.com>
1649
1650 Store the loopback device as data on loopback grub_disk structures,
1651 rather than the file it points to. This fixes use of freed memory
1652 if an existing loopback device is replaced.
1653
1654 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
1655 disk->data, not dev->file.
1656 (grub_loopback_read): Adjust file assignment to match.
1657 Fixes Ubuntu bug #742967.
1658
186ae367
CW
16592011-04-01 Colin Watson <cjwatson@ubuntu.com>
1660
1661 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
1662 when replacing an existing device.
1663
cfed2ad0
VS
16642011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
1665
1666 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
1667 memory corruptions.
1668
1669 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
1670 unsigned.
1671 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
1672 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
1673 (grub_jfs_read_inode): Likewise.
1674 (grub_jfs_opendir): Likewise. Remove now useless casts.
1675 (grub_jfs_getent): Likewise.
1676 Make ino a grub_uint32_t rather than int.
1677 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
1678 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
1679 division and module with bit operations.
1680 (grub_jfs_find_file): Make ino a grub_uint32_t.
1681 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
1682
05d2ed32
CW
16832011-04-01 Colin Watson <cjwatson@ubuntu.com>
1684
1685 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
1686 warning. (This was in fact always initialised before use, but GCC
1687 wasn't smart enough to prove that.)
1688 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
1689
91dc6073
VS
16902011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
1691
1692 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
1693 stack alignment.
1694 (efi_wrap_1): Likewise.
1695 (efi_wrap_2): Likewise.
1696 (efi_wrap_3): Likewise.
1697 (efi_wrap_4): Likewise.
1698 (efi_wrap_5): Likewise.
1699 (efi_wrap_6): Likewise.
1700 (efi_wrap_10): Likewise.
1701 Based on information by: Red Hat/Peter Jones.
1702
a8afc1d1
CW
17032011-03-31 Colin Watson <cjwatson@ubuntu.com>
1704
1705 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
1706 set-but-not-used variable.
1707
a826cc7d
CW
17082011-03-31 Colin Watson <cjwatson@ubuntu.com>
1709
1710 * docs/grub.texi (Simple configuration): Be more explicit about
1711 GRUB_DEFAULT, and add an example.
1712 Reported by: Leslie Rhorer.
1713
875b67ba
CW
17142011-03-30 Colin Watson <cjwatson@ubuntu.com>
1715
1716 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
1717 shell".
1718
fd7cd914
AS
17192011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
1720
1721 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
1722 * util/grub.d/20_linux_xen.in: Likewise.
1723
090b1b6a
VS
17242011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1725
1726 * util/grub.d/10_linux.in: Try alternative config filenames where
1727 we parse config file.
1728 * util/grub.d/20_linux_xen.in: Likewise.
1729
baad885c
AS
17302011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
1731
1732 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
1733 * util/grub.d/20_linux_xen.in: Likewise.
1734
241e41f5
VS
17352011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1736
1737 * grub-core/disk/raid.c (insert_array): Add few potentially
1738 useful grub_util_info.
1739 (grub_raid_register): Likewise.
1740
56445fb2
VS
17412011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1742
1743 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
1744 Preserve partition number in mdadm code path.
1745
c871b1c6
VS
17462011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1747
1748 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
1749 few potentially useful grub_util_info.
1750
5e631b4f
CW
17512011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1752
1753 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
1754
2d5d0333
CW
17552011-03-30 Colin Watson <cjwatson@ubuntu.com>
1756
1757 * docs/grub.texi (default): Use @example rather than nested
1758 itemized lists to avoid breaking gendocs.
1759
3d7ed04e
CW
17602011-03-30 Colin Watson <cjwatson@ubuntu.com>
1761
1762 * docs/grub.texi (Future): Update.
1763
abf04200 17642011-03-30 Colin Watson <cjwatson@ubuntu.com>
1765
1766 * docs/grub.texi (Environment): New chapter.
1767 (Changes from GRUB Legacy): Link to "Environment block" section for
1768 details of limitations.
1769 (Simple configuration): Likewise. Link to documentation of gfxmode
1770 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
1771 respectively.
1772 (Shell-like scripting): Note that normal variables are stored in the
1773 environment.
1774 (gettext): Link to documentation of lang and locale_dir.
1775 (list_env): New section.
1776 (load_env): New section.
1777 (save_env): New section.
1778
1779 (Reporting bugs): Fix typo.
1780
e1ad0edd
VS
17812011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1782
1783 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
1784 the example.
1785
5d803174
VS
17862011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
1787
1788 * grub-core/term/at_keyboard.c (set_scancodes)
1789 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
1790
2a2da1d0
CW
17912011-03-30 Colin Watson <cjwatson@ubuntu.com>
1792
1793 * docs/grub.texi (Menu-specific commands): Remove some semantics
1794 that were true in GRUB Legacy but not in GRUB 2.
1795 (submenu): New section.
1796 (false): New section.
1797 (read): New section.
1798 (true): New section.
1799
a7527639
CW
18002011-03-30 Colin Watson <cjwatson@ubuntu.com>
1801
1802 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
1803
18042011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
1805
1806 * docs/grub.texi (Simple configuration): Explain some of the
1807 current limitations of grub-mkconfig.
8a748df2 1808 Reported by: Leslie Rhorer.
e30af029 1809
fc858482
VS
18102011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1811
1812 Old macs search for boot.efi rather than for bootia32.efi.
1813
1814 * util/grub-install.in: Copy bootia32.efi to boot.efi.
1815 * util/grub-mkrescue.in: Likewise.
1816 Suggested by: Peter Jones.
1817
e1eb511d
VS
18182011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1819
1820 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
1821
70e75364
VS
18222011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1823
1824 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
1825 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
1826 (grub_lvm_mirror): New struct.
1827 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
1828 (grub_lvm_iterate): Iterate only visible volumes.
1829 (grub_lvm_read): Factor out to ..
1830 (read_lv): ... this. Support mirrors.
1831 (grub_lvm_read): New wrapper function.
1832 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
1833 stripped or mirrored.
1834
fc18f6a3
VS
18352011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1836
1837 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
1838
5c650f4c
CW
18392011-03-29 Colin Watson <cjwatson@ubuntu.com>
1840
1841 * docs/grub.texi (loopback): New section.
1842
61d7156b
CW
18432011-03-29 Colin Watson <cjwatson@ubuntu.com>
1844
1845 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
1846 removed -p option.
1847
994b8264
CW
18482011-03-29 Colin Watson <cjwatson@ubuntu.com>
1849
1850 * docs/grub.texi (BIOS installation): New section, partly based on
1851 previous text in other sections.
1852 (Installing GRUB using grub-install): Replace BIOS discussion with a
1853 cross-reference.
1854 (Images): Likewise.
1855
9e4d19e0
VS
18562011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1857
1858 * grub-core/kern/emu/hostdisk.c (find_partition_start)
1859 [HAVE_DIOCGDINFO]: Add safety checks.
1860
a307c0b2
VS
18612011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1862
1863 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
1864 per default compiled in kernel and prior to 8.0 isn't shipped at all.
1865
b4db4f39
CW
18662011-03-29 Colin Watson <cjwatson@ubuntu.com>
1867
1868 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
1869 real_sb->size is zero (e.g. RAID-0), get the disk size from
1870 real_sb->data_size instead.
1871 Fixes Ubuntu bug #743136.
1872
35e5f84c
VS
18732011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1874
1875 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
1876 printf clauses for printing size and start.
1877
d2e29d81
VS
18782011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1879
1880 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
1881 Reported and tested by: Timothy Nikkel.
1882
ed5587af
VS
18832011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1884
1885 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
1886 (dirty_region_add_real): ... this.
1887 (dirty_region_add): Don't discard margin refresh when performing
1888 scheduled repaint.
1889
a1dc717c
VS
18902011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
1891
1892 * grub-core/lib/relocator.c (allocate_regstart)
1893 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
1894 terminals are capabple of malloc-free operation.
1895 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
1896 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
1897
9f3677d3
VS
18982011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
1899
1900 * util/grub-setup.c: Copy the partition table zone if floppy support
1901 is disabled, even if no partition table is found.
1902
1903 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
1904 during POST if an invalid partition table is contained in the PBR
1905 of the active partition when GRUB is installed to a partition.
1906
24148725
CW
19072011-03-28 Colin Watson <cjwatson@debian.org>
1908
1909 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
1910 comment.
1911
f329eda7
CW
19122011-03-28 Colin Watson <cjwatson@debian.org>
1913
1914 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
1915 to be specific about what kind of RAID device we're scanning for.
1916
c482ad98
SG
19172011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
1918
1919 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
1920 return freed string.
1921
5ee04984
VS
19222011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1923
1924 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
1925
f4727da9
VS
19262011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1927
1928 Use libgeom on FreeBSD to detect partitions.
1929
1930 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
1931 (grub-mkrelpath): Likewise.
1932 (grub-script-check): Likewise.
1933 (grub-editenv): Likewise.
1934 (grub-mkpasswd-pbkdf2): Likewise.
1935 (grub-fstest): Likewise.
1936 (grub-mkfont): Likewise.
1937 (grub-mkdevicemap): Likewise.
1938 (grub-probe): Likewise.
1939 (grub-setup): Likewise.
1940 (grub-ofpathname): Likewise.
1941 (grub-mklayout): Likewise.
1942 (example_unit_test): Likewise.
1943 (grub-menulst2cfg): Likewise.
1944 * grub-core/Makefile.core.def (grub-emu): Likewise.
1945 (grub-emu-lite): Likewise.
1946 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
1947 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
1948 define HAVE_DIOCGDINFO.
1949 (follow_geom_up) [FreeBSD]: New function.
1950 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
1951 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
1952 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
1953 unconditionally of HAVE_DIOCGDINFO.
1954
82fe6c75
VS
19552011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1956
1957 Fix FreeBSD compilation problem.
1958
1959 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
1960 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
1961
4c6c9431
CW
19622011-03-24 Colin Watson <cjwatson@ubuntu.com>
1963
1964 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
1965 Switch back to page zero before loading a kernel, since some kernel
1966 drivers expect that.
1967 Thanks to: Felix Kuehling.
1968
c7064d94
VS
19692011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1970
1971 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
1972 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
1973 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
1974
3f71cded
VS
19752011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1976
1977 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
1978 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
1979
ef6de21a
VS
19802011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1981
1982 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
1983 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
1984 malloc is disabled.
1985
8bc66a2c
VS
19862011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1987
1988 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
1989 for modules headers when counting the needed allocation size.
1990
5657722c
VS
19912011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1992
1993 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
1994 if no ASCII character is found to prevent crash.
1995
41a85f55
AK
19962011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
1997
1998 * grub-core/video/bitmap.c (match_extension): Ignore case.
1999
59e1e5f1
VS
20002011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2001
2002 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
2003
bd4d051a
VS
20042011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2005
2006 * grub-core/script/parser.y: Declare "time" as valid argument.
2007
bae7fcc1
PJ
20082011-03-23 Peter Jones <pjones@redhat.com>
2009
2010 Fix incorrect assert failure reporting.
2011
2012 * grub-core/tests/example_functional_test.c (example_test): Add
2013 a failure comment.
2014 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
2015 (failure_start): ...this. Check that malloc succeeded.
2016 Don't call xvasprintf. Return failure struct.
2017 (failure_append_vtext): New function.
2018 (failure_append_text): Likewise.
2019 (add_failure): Likewise.
2020 (grub_test_assert_helper): Likewise.
2021 * include/grub/test.h (grub_test_assert_helper): New declaration.
2022 (grub_test_assert): Macro rewritten.
2023
537dc9be
VS
20242011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2025
2026 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
2027
fa3e01bf
VS
20282011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2029
2030 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
2031
b1d28404
VS
20322011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2033
2034 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
2035 into GRUB-style one.
2036
2e3e2e09
VS
20372011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2038
2039 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
2040 error and not grub_errno.
2041 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
2042
ed57e557
VS
20432011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2044
2045 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
2046 GRUB_USB_SPEED_NONE in case of failure and not the error code.
2047
d1611f01
VS
20482011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2049
2050 * grub-core/efiemu/i386/pc/cfgtables.c
2051 (grub_machine_efiemu_init_tables): Make declaration a prototype.
2052 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
2053 (grub_xnu_unlock): Likewise.
2054 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
2055
7d4e39d6
VS
20562011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2057
2058 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
2059 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
2060 * grub-core/commands/hashsum.c (aliases): Likewise.
2061 * grub-core/commands/setpci.c (pci_registers): Likewise.
2062 * grub-core/disk/usbms.c (attach_hook): Likewise.
2063 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
2064 (zio_checksum_table): Likewise.
2065 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
2066 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
2067 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
2068 * grub-core/lib/relocator.c (leftovers): Likewise.
2069 (extra_blocks): Likewise.
2070 * grub-core/loader/i386/bsd.c (relocator): Likewise.
2071 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
2072 (modules_last): Likewise.
2073 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
2074 (devices): Likewise.
2075 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
2076 (modules_last): Likewise.
2077 * grub-core/normal/auth.c (users): Likewise.
2078 * grub-core/normal/context.c (initial_menu): Likewise.
2079 (current_menu): Likewise.
2080 * grub-core/normal/crypto.c (crypto_specs): Likewise.
2081 * grub-core/term/serial.c (grub_serial_ports): Likewise.
2082 (grub_serial_terminfo_input_template): Likewise.
2083 (grub_serial_terminfo_output_template): Likewise.
2084 (grub_serial_terminfo_input): Likewise.
2085 (grub_serial_terminfo_output): Likewise.
2086 (registered): Likewise.
2087 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
2088
40fc4659
VS
20892011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2090
2091 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
2092 grub_video_mode_type_t.
2093 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
2094 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
2095 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
2096
2da48d28
VS
20972011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2098
2099 * util/grub-install.in: Correct the x86-64 name as x86_64.
2100
9b43bf39
CW
21012011-03-11 Colin Watson <cjwatson@ubuntu.com>
2102
2103 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
2104 initial chunk read from the kernel always includes GRUB's multiboot
2105 header, which is now outside the first sector.
2106
be1a7ce0
CW
21072011-03-09 Colin Watson <cjwatson@ubuntu.com>
2108
2109 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
2110 cached mmap_size, so that this works correctly when called multiple
2111 times.
2112 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
2113
83a3c48d
CW
21142011-03-09 Colin Watson <cjwatson@ubuntu.com>
2115
2116 * docs/grub.texi (Simple configuration): Tidy up formatting.
2117
57d75699
SJ
21182011-03-07 Szymon Janc <szymon@janc.net.pl>
2119
2120 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
2121 Set-but-not-used variable removed.
2122
028501a0
VS
21232011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
2124
2125 Workaround yet another IEEE1275 bug.
2126
2127 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2128 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
2129 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
2130 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
2131 is set.
2132 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2133 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
2134
d998657d
VS
21352011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
2136
2137 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
2138 error.
2139
fee7cdd4
CW
21402011-02-11 Colin Watson <cjwatson@ubuntu.com>
2141
2142 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
2143 empty, since in that case we can only generate either nothing or a
2144 syntactically invalid configuration file.
2145 Reported by: Michal Suchanek. Fixes Debian bug #612898.
2146
97286eb5
CW
21472011-02-09 Colin Watson <cjwatson@ubuntu.com>
2148
2149 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
2150 (Making a GRUB bootable CD-ROM): Likewise.
2151 (Invoking grub-mkrescue): New section.
2152 Reported by: Yann Dirson. Fixes Debian bug #612585.
2153
22b28eb3
CW
21542011-02-09 Colin Watson <cjwatson@ubuntu.com>
2155
2156 * util/grub-install.in: Remove unnecessary brackets from tr
2157 arguments.
2158 * util/grub.d/10_hurd.in: Likewise.
2159 * util/grub.d/10_kfreebsd.in: Likewise.
2160 * util/grub.d/10_linux.in: Likewise.
2161 * util/grub.d/20_linux_xen.in: Likewise.
2162 Reported by: Jamie Heilman. Fixes Debian bug #612564.
2163
7e735e43
CW
21642011-02-08 Colin Watson <cjwatson@ubuntu.com>
2165
2166 * include/grub/file.h (not_easly_seekable): Rename to ...
2167 (not_easily_seekable): ... this. Update all users.
2168
800f1881
CW
21692011-01-28 Colin Watson <cjwatson@ubuntu.com>
2170
2171 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
2172 grub-mkrescue.
2173
3281d3d6
VS
21742011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
2175
2176 * util/grub-mkimage.c (generate_image): Refuse to create the images
2177 bigger than the actual flash (512K) in Loongson machines. 512K is also
2178 the biggest chip supported by them.
2179
3533413c
VS
21802011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2181
2182 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
2183
73ae4f4f
VS
21842011-01-22 Anthony DeRobertis <anthony@derobert.net>
2185
2186 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
2187 super_offset field.
2188
37f4f608
VS
21892011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2190
2191 * util/grub-install.in: Ignore install device on platforms
2192 where it doesn't make sense. Always use UUIDs except on pc, efi and
2193 sparc64.
2194 Reported by: Daniel Kahn Gillmor.
2195
03a4ccb5
VS
21962011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2197
2198 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
2199
ffc8f4d8
VS
22002011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2201
2202 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
2203 (iterate_real): Don't rely on partition being non-NULL.
2204
80f23be7
VS
22052011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2206
2207 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
2208 supported platforms. Put a compile time assert for this rather than
2209 generate a warning with 32-bit shift.
2210
5d4f4dd5
VS
22112011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2212
2213 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
2214 logical expression more readable.
2215
e489601a
VS
22162011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
2217
2218 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
2219 even if some elements have a name.
2220 Reported by: Alexander GQ Gerasiov.
2221
96e0a6ea
CW
22222011-01-22 Colin Watson <cjwatson@ubuntu.com>
2223
2224 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
2225 path unreadable if `grub-probe -t abstraction' fails, for example if
2226 memberlist fails on an LVM volume group.
2227 Reported by: Darius Jahandarie.
2228
81431e2b
CW
22292011-01-22 Colin Watson <cjwatson@ubuntu.com>
2230
2231 * docs/grub.texi (Simple configuration): Document
2232 GRUB_PRELOAD_MODULES.
2233
5e79d66a
CW
22342011-01-17 Colin Watson <cjwatson@ubuntu.com>
2235
2236 * .bzrignore: Remove nonexistent grub-pbkdf2.
2237
646ada34
VS
22382011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2239
2240 * configure.ac: Bump version to 1.99~rc1.
2241
04360337
VS
22422011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
2243
2244 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
2245 for safety.
2246
46c9db88
VS
22472011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
2248
2249 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
2250 module.
2251
22522011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
2253
2254 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
2255
4fbf1852
VS
22562011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2257
2258 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
2259 diskdevid.
2260
f1632d4d
VS
22612011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2262
2263 Fix compilation on cygwin.
2264
2265 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
2266 -R .drectve on cygwin.
2267 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
2268 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
2269 (COND_CYGWIN): New condition.
2270 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
2271 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
2272 not @TARGET_OBJ2ELF@.
2273 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
2274 type to determine whether aux is to be used.
2275
0b5e127b
VS
22762011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2277
2278 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
2279 realpath'ed device string.
2280 Handle floppy (somewhat).
2281 Issue error in unknown case rather than garbage.
2282 Reported by: Axel Beckert.
2283
173b71e9
VS
22842011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2285
2286 * util/grub.d/00_header.in (load_video): Handle the case when no video
2287 drivers available.
2288 Thanks to: Axel Beckert.
2289
f8f479db
VS
22902011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2291
2292 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
2293 variable. Fixes problem on big endian platforms.
2294
8fc0a245
VS
22952011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2296
2297 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
2298 It doesn't work well there.
2299
b8494fbe
VS
23002011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2301
2302 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
2303 warning.
2304 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
2305 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
2306 counter.
2307
b44a558c
VS
23082011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2309
2310 Use alias->path rather than buggy "canon".
2311
2312 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
2313 (ofdisk_hash_add): New argument curcan. All users updated.
2314
51fa856c
CW
23152011-01-11 Colin Watson <cjwatson@ubuntu.com>
2316
2317 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
2318
9da068a5
VS
23192011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2320
2321 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
2322 loadmask before doing any calculations. Use correct type for offset.
2323 (grub_linux_load64): Likewise.
2324
86205c94
CW
23252011-01-11 Colin Watson <cjwatson@ubuntu.com>
2326
2327 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
2328 with NULL.
2329 (console_grub_equivalences_unshift): Likewise.
2330 Reported by: Daniel Dehennin.
2331
4531a206
VS
23322011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2333
2334 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
2335 (set_env_limn_ro): Likewise.
2336 (GRUB_MOD_INIT): Likewise.
2337 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
2338 ARRAY_SIZE while on it.
2339 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
2340 * grub-core/normal/context.c (grub_env_export): Move from here ...
2341 * grub-core/kern/env.c (grub_env_export): ... here.
2342 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
2343 prefix.
2344 * grub-core/kern/main.c (grub_main): Export root and prefix.
2345 * include/grub/env.h (grub_env_export): Export.
2346 Reported by: Seth Goldberg.
2347
45146057
VS
23482011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2349
2350 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
2351 Take into account space used by ELF sections and multiboot palette.
2352 Reported by: Grégoire Sutre.
2353
f093110b
VS
23542011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2355
2356 * BUGS: New file.
2357
3395fe52
VS
23582011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2359
2360 Pass more appropriate video id to Linux.
2361
2362 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
2363 grub_video_get_driver_id and variable gfxpayloadforcelfb to
2364 fill have_vga.
2365 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
2366 shift params->lfb_size.
2367 * include/grub/i386/linux.h: Make an enume out of have_vga values.
2368
c2fa6cbb
VS
23692011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2370
2371 * util/grub-menulst2cfg.c: Add missing include of misc.h.
2372
b3ff6ff0
VS
23732011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2374
2375 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
2376 separator and pass bootpath/devid even if only one of them is available.
2377 Reported by: Seth Goldberg.
2378
ae67942e
VS
23792011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2380
2381 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
2382 implementations bug on them.
2383
2384 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
2385 memory.
2386 (filter_memory_map): Likewise.
2387
d570097a
VS
23882011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2389
2390 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
2391 Reported by: nebuchadnezzar.
2392
a508e776
VS
23932011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2394
2395 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
2396 Reported by: nebuchadnezzar.
2397
dcb883b1
VS
23982011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2399
2400 Submenu default support.
2401
2402 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
2403 auto_boot. All users updated.
2404 Declared static.
2405 Handle chosen and default with submenus.
2406 (grub_menu_execute_with_fallback): Declared static.
2407 Don't notify failure if autobooted. Upper level does it.
2408 (menuentry_eq): New function.
2409 (get_entry_number): Use menuentry_eq.
2410 (show_menu): New parameter "autobooted". All users updated.
2411 (grub_show_menu): Likewise.
2412 * include/grub/normal.h (grub_show_menu): Likewise.
2413 * include/grub/menu.h (grub_menu_execute_entry): Removed.
2414 (grub_menu_execute_with_fallback): Likewise.
2415
6fef99b4
VS
24162011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2417
2418 * util/grub-mklayout.c (usage): Update help text.
2419
47a77af5
VS
24202011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2421
2422 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
2423
ce6bb3ee
VS
24242011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2425
2426 * util/grub-menulst2cfg.c (main): Trim the line.
2427
db87be2a
VS
24282011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2429
2430 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
2431 (grub_machine_init): Don't check amount of low memory as reportedly
2432 INT 12h can be broken and if low memory is too low we wouldn't have
2433 gotten into grub_machine_init anyway.
2434
c49849cc
VS
24352011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2436
2437 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
2438 (grub_machine_mmap_iterate): Take low memory into account
2439
b1969b30
VS
24402011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2441
2442 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
2443 badfs.
2444 Reported by: TiCPU.
2445
cf0eaf13
VS
24462011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2447
2448 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
2449 members errors.
2450
1f060f39
GS
24512011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
2452
2453 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
2454 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
2455
a21e5672
GS
24562011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
2457
2458 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
2459 openbsd and netbsd types being in part_bsd module.
2460
c88172fa
VS
24612011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2462
2463 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
2464 (_FILE_OFFSET_BITS): Likewise.
2465 Reported by: Seth Goldberg.
2466
53798c4b
GS
24672011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
2468
2469 * configure.ac: Check for libdevmapper header.
2470
e7121b69
VS
24712011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2472
2473 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
2474 avoid aliasing.
2475 (fzap_lookup): Likewise.
2476 (dnode_get): Likewise.
2477 (make_mdn): Likewise.
2478 (zfs_mount): Likewise.
2479 (fzap_iterate): Use temporary pointer to avoid aliasing.
2480 (grub_zfs_read): Likewise.
2481 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
2482 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
2483 pointers to avoid aliasing.
2484 (grub_cmd_xnu_kernel64): Likewise.
2485 (grub_xnu_load_driver): Likewise.
2486
fc836af9
VS
24872011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2488
2489 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
2490 aliasing warning.
2491 (grub_cmd_terminal_output): Likewise.
2492 Reported and tested by: Grégoire Sutre.
2493
f9f37648
VS
24942011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2495
2496 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
2497 warning.
2498 Reported and tested by: Grégoire Sutre.
2499
ec1dfd63
VS
25002011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2501
2502 * configure.ac: Do CPU substitution even if it's specified explicitly.
2503 Reported and tested by: Alain Greppin.
2504
9462775a
VS
25052011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2506
2507 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
2508 Reported and tested by: Alain Greppin.
2509
0fd48e35
VS
25102011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2511
2512 Satisfy some bison versions need for inttypes.h.
2513
2514 * grub-core/lib/posix_wrap/inttypes.h: New file.
2515 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
2516 (int16_t): Likewise.
2517 (int32_t): Likewise.
2518 (int64_t): Likewise.
2519 Reported and tested by: Alain Greppin.
2520
43f1bc83
VS
25212011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
2522
2523 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
2524 Silence spurious warning.
2525 Reported and tested by: Alain Greppin.
2526
64d1f041
SJ
25272011-01-07 Szymon Janc <szymon@janc.net.pl>
2528
2529 * docs/grub.texi (Support automatic decompression): Update with xz
2530 decompression support.
2531
25953e10
SJ
25322011-01-07 Szymon Janc <szymon@janc.net.pl>
2533
2534 Improve loaders' kernel command line handling.
2535
2536 * grub-core/lib/cmdline.c: New file.
2537 * include/grub/lib/cmdline.h: Likewise.
2538 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
2539 grub_create_loader_cmdline to create kernel command line.
2540 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
2541 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
2542 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
2543 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
2544 (linux): Add lib/cmdline.c on common.
2545
e72d259f
VS
25462011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2547
2548 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
2549 inopos might be unaligned.
2550
c0cf26da
VS
25512011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2552
2553 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
2554 endian transformations.
2555 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
2556 Based on report by: Doug Nazar.
2557
0ca09e6c
DN
25582011-01-07 Doug Nazar <nazard.michi@gmail.com>
2559
2560 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
2561 array->members[i].start_sector.
2562 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
2563
014b6806
VS
25642011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2565
2566 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
2567 Reported and tested by: Grégoire Sutre.
2568
415502c2
CW
25692011-01-06 Colin Watson <cjwatson@ubuntu.com>
2570
2571 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
2572 avoid causing test failures by clearing the screen.
2573
71b6a2b7
CW
25742011-01-06 Colin Watson <cjwatson@ubuntu.com>
2575
2576 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
2577 Fix prefix check to handle the case where dir ends with a slash
2578 (most significantly, "/" itself).
2579 Reported by: Michael Vogt.
2580
b3f8d28a
VS
25812011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2582
2583 Run terminfo_cls on initing terminfo output to clear the screen and
2584 move the cursor to (0,0).
2585
2586 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
2587 Call grub_terminfo_output_init.
2588 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
2589 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
2590 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
2591
4c3e4f37
VS
25922011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2593
2594 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
2595 only when needed.
2596
488f71f1
VS
25972011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2598
2599 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
2600 CTRL.
2601
18a38098
VS
26022011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2603
2604 The E820 type 5 is BADRAM, not EXEC_CODE.
2605
2606 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
2607 (GRUB_E820_BADRAM): New define.
2608 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
2609 into reserved. Propagate BADRAM.
2610 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
2611 (GRUB_E820_BADRAM): New define.
2612
9eae2084
VS
26132011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2614
2615 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
2616 Ignore the memory post-4G.
2617 (grub_relocator_firmware_alloc_region): Additional debug statement.
2618
ebc71d28
VS
26192011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2620
2621 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
2622 names.
2623 Reported by: David Pravec.
2624
446fa400
VS
26252011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2626
2627 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
2628 BIOSes.
2629
a0159f37
VS
26302011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2631
2632 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
2633 Prevent overflow.
2634 (grub_reed_solomon_recover): Likewise.
2635
e5146ca1
VS
26362011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
2637
2638 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
2639
26402011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
2641
2642 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
2643 variable.
2644
5b1bdf12
CW
26452011-01-04 Colin Watson <cjwatson@ubuntu.com>
2646
2647 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
2648 descriptions of extract_legacy_entries_source and
2649 extract_legacy_entries_configfile.
2650 Reported by: Seung Soo, Ha.
2651
99d925aa
CW
26522011-01-03 Colin Watson <cjwatson@ubuntu.com>
2653
2654 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
2655 on devices that do not implement function 0.
2656
4af0504b
DV
26572011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
2658
2659 * grub-core/fs/hfsplus.c: Make parent unsigned.
2660 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
2661 overflows.
2662 (grub_hfsplus_cmp_extkey): Likewise
2663
469ee10a
VS
26642011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2665
2666 * util/grub-install.in: Correctly use bootloader_id and not
2667 GRUB_DISTRIBUTOR on efibootmgr line.
2668
323a8e9c
VS
26692011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2670
2671 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
2672
1b394975
IC
26732010-12-31 Ian Campbell <ijc@hellion.org.uk>
2674
2675 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
2676 Xen and reorder menu item wording to make it clearer that this entry
2677 will launch Xen. Print separate messages when loading Xen and
2678 Linux.
2679
275bff5f
VS
26802010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
2681
2682 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
2683 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
2684 loop in case of incorrect amiga partmap.
2685
307806cb
VS
26862010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
2687
2688 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
2689 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
2690 Reported by:EHeM.
2691
b12b923e
VS
26922010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
2693
2694 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
2695 spurious warning.
2696 Reported by: crocket
2697
14b48a19
VS
26982010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2699
2700 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
2701 Preload EFIemu.
2702 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
2703
693db2df
VS
27042010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2705
2706 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
2707 is loaded
2708 (grub_cmd_xnu_kextdir): Likewise.
2709 (grub_cmd_xnu_splash): Likewise.
2710
c7638645
VS
27112010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2712
2713 Avoid using Reed-Solomon with 0 redundancy.
2714
2715 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
2716 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
2717 or 0 redundancy.
2718 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
2719 (grub_reed_solomon_recover): Likewise.
2720
25dd4780
VS
27212010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
2722
2723 Don't use disk subsystem in freebsd_boot.
2724
2725 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
2726 (freebsd_biosdev): Likewise.
2727 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
2728 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
2729
0b2db943
VS
27302010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
2731
2732 Handling of files of unknown size is currently limited. They can't be
2733 used e.g. for initrd or modules. Moreover gzip handling of not
2734 easily seekable files is buggy. Disable unknown file size for now. May
2735 be inefficient but works.
2736
2737 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
2738 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
2739
5c408d0f
MP
27402010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
2741
2742 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
2743 floppy probe.
2744
190a011a
JD
27452010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
2746
2747 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
2748
022d01b8
SL
27492010-12-25 Shea Levy <shlevy>
2750
2751 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
2752
c4855fdc
VS
27532010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2754
2755 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
2756 Windows Server 2008.
2757 Reported by: Devin Giddings.
2758
0354b867
VS
27592010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
2760
2761 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
2762 writing an error message because of async power management.
2763 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
2764 (grub_reboot): Likewise.
2765
ab66c69f
JU
27662010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
2767
2768 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
2769 keep unit tests from failing when they shouldn't.
2770
1426ef35
CW
27712010-12-21 Colin Watson <cjwatson@ubuntu.com>
2772
2773 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
2774 previous patch increased the size of the RS code by 20 bytes (at
2775 least with gcc-4.4), so increase this by 20 bytes to match.
2776 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
2777
20641b6b
CW
27782010-12-21 Colin Watson <cjwatson@ubuntu.com>
2779
2780 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
2781 scratch area. Make sure to initialise chosen in standalone mode as
2782 well as non-standalone.
2783 Reported by: Robert Hooker and Andy Whitcroft.
2784 Tested by: Andy Whitcroft.
2785
d060ad60
CW
27862010-12-21 Colin Watson <cjwatson@ubuntu.com>
2787
2788 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
2789 constructing a new unescaped string and passing it to grub_xputs in
2790 one go, rather than passing characters to grub_printf one at a time.
2791
b889cfad
CW
27922010-12-21 Colin Watson <cjwatson@ubuntu.com>
2793
2794 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
2795 initialising utf16.
2796
4e01b6c8
CW
27972010-12-21 Colin Watson <cjwatson@ubuntu.com>
2798
2799 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
2800 comment. Add an extra layer of quotation, requiring the output of
2801 this function to be used in a printf format string.
2802 (gettext_printf): New function.
2803 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
2804 Extract translatable strings from here-documents and use a temporary
2805 variable instead, so that xgettext can find them.
2806 * util/grub.d/10_kfreebsd.in: Likewise.
2807 * util/grub.d/10_linux.in: Likewise.
2808 * util/grub.d/20_linux_xen.in: Likewise.
2809
2810 * po/grub.d.sed: New file.
2811 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
2812 arguments. Set c-format flags on all strings extracted from
2813 util/grub.d/ (xgettext refuses to include these itself for strings
2814 it extracted from a shell file, but these really are c-format).
2815
5318fe98
VS
28162010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
2817
2818 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
2819 Avoid next pointing to nowhere.
2820
6c85b743
VS
28212010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
2822
2823 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
2824 rather than assuming than rootblock is exactly in the middle.
2825 (grub_affs_label): Likewise.
2826
a2a08a35
VS
28272010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
2828
2829 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
2830 reserved_first_sector to 0.
2831 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
2832 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
2833 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
2834
7059d1ec
VS
28352010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
2836
2837 Fix handling of UTF-16 UDF labels.
2838
2839 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
2840 (read_string): .. here.
2841 (grub_udf_label): Use read_string.
2842
30aff4cb
BC
28432010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
2844
2845 * grub-core/normal/menu_entry.c (run): Execute commands from menu
2846 editor under argument scope.
2847 Reported by: Jordan Uggla
2848
5cf86f4b
VS
28492010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
2850
2851 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
2852
32570200
CW
28532010-12-18 Colin Watson <cjwatson@ubuntu.com>
2854
2855 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
2856 line, and other keys scroll an entire page (previous handling was
2857 for \r and \n to scroll a page and other keys to scroll two lines).
2858
e1dffcf2
VS
28592010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
2860
2861 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
2862 Set ptrdest to correct get_physical_target_address rather than
2863 incorrect get_virtual_current_address.
2864
b04298cf 28652010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
2866
2867 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
2868 correct cat to grub_uint8_t * rather than grub_uint32_t *.
2869
5367ecd3
CW
28702010-12-10 Colin Watson <cjwatson@ubuntu.com>
2871
2872 * .bzrignore: Ignore grub-core/rs_decoder.S.
2873
1fb430f8
CW
28742010-12-10 Colin Watson <cjwatson@ubuntu.com>
2875
2876 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
2877 .mo/.mo.gz opening sequence to ...
2878 (grub_mofile_open_lang): ... here.
2879 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
2880 * util/grub.d/00_header.in (grub_lang): Include country part of
2881 locale.
2882 Reported by: Mario Limonciello.
2883
a94a6671
RM
28842010-12-09 Robert Millan <rmh@gnu.org>
2885
2886 * NEWS: Document addition of ZFS support.
2887
24b7938b
CW
28882010-12-04 Colin Watson <cjwatson@ubuntu.com>
2889
2890 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
2891 rather than `/ 2', as the latter requires -Wa,--divide which would
2892 require bumping our minimum binutils version.
2893
bddc3ef6
BC
28942010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
2895
2896 * util/grub-script-check.c (main): Print script line number on
2897 error.
2898
bf78d5b2
RM
28992010-12-01 Robert Millan <rmh@gnu.org>
2900
2901 * grub-core/fs/zfs/zfs.c: New file.
2902 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
2903 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
2904 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
2905 * grub-core/fs/zfs/zfsinfo.c: Likewise.
2906
2907 * include/grub/zfs/dmu.h: Likewise.
2908 * include/grub/zfs/dmu_objset.h: Likewise.
2909 * include/grub/zfs/dnode.h: Likewise.
2910 * include/grub/zfs/dsl_dataset.h: Likewise.
2911 * include/grub/zfs/dsl_dir.h: Likewise.
2912 * include/grub/zfs/sa_impl.h: Likewise.
2913 * include/grub/zfs/spa.h: Likewise.
2914 * include/grub/zfs/uberblock_impl.h: Likewise.
2915 * include/grub/zfs/vdev_impl.h: Likewise.
2916 * include/grub/zfs/zap_impl.h: Likewise.
2917 * include/grub/zfs/zap_leaf.h: Likewise.
2918 * include/grub/zfs/zfs.h: Likewise.
2919 * include/grub/zfs/zfs_acl.h: Likewise.
2920 * include/grub/zfs/zfs_znode.h: Likewise.
2921 * include/grub/zfs/zil.h: Likewise.
2922 * include/grub/zfs/zio.h: Likewise.
2923 * include/grub/zfs/zio_checksum.h: Likewise.
2924
2925 * Makefile.util.def: Build ZFS into libgrubmods.
2926 * grub-core/Makefile.core.def: Build zfs.mod.
2927
3f0f3831
SJ
29282010-11-30 Szymon Janc <szymon@janc.net.pl>
2929
2930 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
2931 variable.
2932 * grub-core/commands/wildcard.c (match_files): Likewise.
2933
3a4253b2
RM
29342010-11-30 Robert Millan <rmh@gnu.org>
2935
2936 * grub-core/loader/i386/bsd.c
2937 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
2938 whether kernel is loaded using grub_loader_is_loaded(), rather
2939 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
2940 certain error conditions.
2941
8c317b27
RM
29422010-11-30 Robert Millan <rmh@gnu.org>
2943
c5c9cd3e
RM
2944 * grub-core/commands/echo.c: Include `<grub/term.h>'.
2945 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 2946
49d3ab46
VS
29472010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2948
2949 Avoid using tricks for initialising endian variables.
2950
2951 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
2952 Make const.
2953 (GRUB_MOD_INIT): Don't byte-swap.
2954 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
2955 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
2956 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
2957 (grub_swap_bytes32_compile_time): Likewise.
2958 (grub_cpu_to_le32_compile_time): Likewise.
2959 (grub_cpu_to_le16_compile_time): Likewise.
2960
f420a804
VS
29612010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2962
2963 * util/grub-setup.c (setup): Stop recommending --force. People who
2964 understand the dangers of blocklists are able to find this option
2965 anyway and the ones who don't shouldn't use it anyway.
2966
4e7db17b
RM
29672010-11-26 Robert Millan <rmh@gnu.org>
2968
2969 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
2970 Update all users.
2971
9be57a0d
CW
29722010-11-26 Colin Watson <cjwatson@ubuntu.com>
2973
2974 Fix LVM-on-RAID probing.
2975
2976 * util/grub-probe.c (probe): Remember which disk was detected as
2977 RAID (perhaps an LVM physical volume). Use that disk's raidname
2978 rather than that of the top-level disk.
2979
2c7859b3 29802010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 2981
d7647bb6
BC
2982 Fix cmdline argument quotes for setparams command of menuentry
2983 definitions.
7e623b0d
BC
2984
2985 * grub-core/commands/menuentry.c (setparams_prefix): Use single
2986 quotes for arguments.
f866fe80 2987 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 2988 grub_strchrsub function instead.
f866fe80 2989
7955bea0 2990 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 2991
74f72a64
CW
29922010-11-24 Colin Watson <cjwatson@ubuntu.com>
2993
2994 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
2995 effort by skipping "." and ".." entries up-front.
2996 Suggested by: Michael Lazarev.
2997
5a407278
CW
29982010-11-24 Colin Watson <cjwatson@ubuntu.com>
2999
3000 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
3001 ldflags to ldadd, to fix link line ordering.
3002 (none_decompress): Likewise.
3003
3030d8ec
CW
30042010-11-24 Colin Watson <cjwatson@ubuntu.com>
3005
3006 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
3007 platforms.
3008 (grub-emu-lite): Remove kern/emu/cache.S.
3009
b7fbac12
CW
30102010-11-23 Colin Watson <cjwatson@ubuntu.com>
3011
3012 * util/deviceiter.c (compare_devices): If the by-id link for a
3013 device couldn't be resolved, fall back to sorting by the by-id link
3014 rather than segfaulting.
3015 Reported and tested by: Daniel Mierswa.
3016
5225f328
CW
30172010-11-23 Colin Watson <cjwatson@ubuntu.com>
3018
3019 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
3020 ldflags, to fix link line ordering.
3021
038b3ce8
CW
30222010-11-23 Colin Watson <cjwatson@ubuntu.com>
3023
3024 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
3025 linkers are picky about this.
3026
bf16e98e
CW
30272010-11-23 Colin Watson <cjwatson@ubuntu.com>
3028
3029 * grub-core/Makefile.am (command.lst): Adjust sed expression
3030 ordering so that extended and priority commands aren't treated as
3031 ordinary commands.
3032
7242bab6
CW
30332010-11-23 Colin Watson <cjwatson@ubuntu.com>
3034
3035 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
3036 Remove byte-swapping function calls, which are not valid in
3037 structure initialisers.
3038 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
3039 non-const.
3040 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
3041 grub_gpt_partition_type_bios_boot.
3042
14e8b279
CW
30432010-11-22 Colin Watson <cjwatson@ubuntu.com>
3044
3045 Fix test program build on GNU/kFreeBSD.
3046
3047 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
3048 $(LIBNVPAIR)' library dependencies.
3049
e6f63338 30502010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
3051
3052 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
3053
cf8ffc38
CW
30542010-11-22 Colin Watson <cjwatson@ubuntu.com>
3055
3056 * util/grub-install.in: Remove excessive quoting that broke
3057 installations to RAID devices.
3058
7f8b0fd7
VS
30592010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
3060
3061 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
3062 bootloader version instead of 0.
3063
dfd240b1
VS
30642010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
3065
3066 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
3067 warning.
3068
7b61e609
VS
30692010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
3070
3071 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
3072 retrieve the metadat sector if size isn't known.
3073 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
3074
9dfe92d0
RM
30752010-11-18 Robert Millan <rmh@gnu.org>
3076
3077 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
3078 with grub_memcmp().
3079
41cc919e
VS
30802010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
3081
3082 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
3083 arrow.
3084 Reported by: Jordan Uggla.
3085
1afcc914
VS
30862010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3087
3088 Make better UTF compliant.
3089
3090 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
3091 sequences as incorrect.
3092 (grub_is_valid_utf8): Likewise.
3093 (grub_utf8_to_ucs4): Likewise.
3094 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
3095 (grub_ucs4_to_utf8_alloc): Likewise.
3096 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
3097
f1808884
VS
30982010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
3099
3100 Make legacy_source behave like source.
3101
3102 * grub-core/commands/legacycfg.c (legacy_file): Don't call
3103 grub_show_menu.
3104 (grub_cmd_legacy_source): Call grub_show_menu if needed.
3105
24ec575b
CW
31062010-11-16 Colin Watson <cjwatson@debian.org>
3107
3108 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
3109 (-Wunused implies -Wunused-parameter, but not vice versa).
3110
72b7c7aa
CW
31112010-11-16 Colin Watson <cjwatson@ubuntu.com>
3112
3113 * configure.ac: Make error messages less confusing by testing for
3114 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
3115 accepted, but produces a diagnostic if something else is wrong).
3116
e98937aa
VS
31172010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
3118
3119 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
3120 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
3121 (now unused).
3122 (grub_keyboard_controller_init)
3123 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
3124 read the initial state since controller isn't inited yet.
3125
f6bbabc3
VS
31262010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
3127
3128 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
3129 allocate_regbeg may need to create new chunk header.
3130
22e7dbb2
VS
31312010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3132
3133 Fix quoting in legacy parser.
3134
3135 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
3136 single quotes.
3137 (grub_legacy_parse): Likewise.
3138 Reported by: Jordan Uggla.
3139 Tested by: Jordan Uggla.
3140
03f80960
VS
31412010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3142
3143 Don't add -lgcc on i386 and x86_64.
3144
3145 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
3146 * conf/Makefile.common (LDADD_KERNEL): Likewise.
3147 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
3148
779dc15b
VS
31492010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3150
3151 * configure.ac: Add -Wno-trampolines when supported.
3152
d20a3b37
MV
31532010-11-14 Modestas Vainius <modax@debian.org>
3154
3155 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
3156 fakeraid.
3157
e5360933
GC
31582010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
3159
3160 Add generic logical block size support for UDF.
3161
3162 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
3163 (GRUB_UDF_BLKSZ): Removed.
3164 (struct grub_udf_data): New field "lbshift" to hold the logical block
3165 size of the file system in log2 format. All users updated.
3166 (sblocklist): Change type to unsigned.
3167 (grub_udf_mount): Change type of "sblklist" to unsigned.
3168 Move AVDP search before VRS recognition, because the latter requires
3169 knowledge of the logical block size, which is detected during the
3170 former.
3171 Detect and validate logical block size during AVDP search, adding
3172 support for block sizes 512, 1024 and 4096.
3173 Make VRS recognition independent of block size.
3174
cb0229c5
GC
31752010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
3176
3177 Properly handle deleted files on UDF.
3178
3179 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
3180 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
3181 set.
3182
406858a8
GC
31832010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
3184
3185 Support reading files larger than 2 GiB.
3186
3187 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
3188 "offset" to grub_off_t.
3189 (grub_udf_read_file): Likewise for parameter "pos".
3190
130da6a7
VS
31912010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3192
3193 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
3194 unavailable.
3195 (Simple configuration): Refer to Changes from GRUB Legacy about
3196 save_env availability.
3197
65e93f6b
VS
31982010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3199
3200 * util/grub-install.in: Ignore empty partition table detection
3201 instead of trying to include part_ module.
3202
1fd08bf1
VS
32032010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3204
3205 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
3206 LVM on RAID support.
3207
de1a024f
VS
32082010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
3209
3210 Properly define WORDS_BIGENDIAN in wrapped environments.
3211
3212 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
3213 definition.
3214 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
3215
3216 Reported by: Manoel Rebelo Abranches.
3217 Tested by: Manoel Rebelo Abranches.
3218
bc5dd0b9
VS
32192010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3220
3221 * util/grub-mkconfig.in: Fix quoting.
3222
58c184be
VS
32232010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3224
3225 Support big ext2 files.
3226
3227 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
3228 (grub_ext2_read_block): Support triple indirect blocks.
3229 (grub_ext2_read_file): Use 64-bit types and read size_high.
3230 (grub_ext2_open): Read size_high.
3231 Reported by: Ximin Luo.
3232 Tested by: Manoel Rebelo Abranches.
3233
5f0c02b3
VS
32342010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3235
3236 * util/grub-install.in: Handle filenames containing spaces.
3237 Reported by: Jordan Uggla.
3238 Tested by: Jordan Uggla.
3239
4417aae6
VS
32402010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3241
3242 * util/grub-mkconfig.in (grub_script_check): New variable.
3243 Use grub_script_check instead of grub-script-check.
3244 Reported by: Barry Jackson.
3245
7625a68e
VS
32462010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3247
3248 * docs/grub.texi (menu): Correct the order.
3249 Reported by: D. Hugh Redelmeier.
3250
10001ac5
VS
32512010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3252
3253 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
3254 jump.
3255
9c4cf53b
MRA
32562010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
3257
10001ac5
VS
3258 * include/grub/elfload.h (grub_elf32_size): New parameter.
3259 All users updated.
9c4cf53b
MRA
3260 Return maximum segments alignment.
3261 (grub_elf64_size): Likewise.
3262 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
3263 Return maximum segments alignment.
3264 (grub_elf64_size): Likewise.
3265 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
3266 (grub_linux_claimmap_iterate): New function. Uses the
3267 "available" property in the "memory" node for memory allocation
3268 for kernel in the PowerPC loader.
9c4cf53b
MRA
3269 (grub_linux_load32): Correctly find linux entry point offset.
3270 (grub_linux_load64): Likewise.
3271
d2bf06bf
RM
32722010-11-07 Robert Millan <rmh@gnu.org>
3273
3274 On mips-yeeloong, build with -march=loongson2f when this flag is
3275 available (GCC >= 4.4).
3276 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
3277 `-march=mips3'.
3278 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
3279 or otherwise add -march=mips3.
3280
898c99a2
BC
32812010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
3282
87220a68
BC
3283 Suppress shell expansion on echo '*' and echo "*" like cases.
3284 Reported by: Jordan Uggla.
898c99a2
BC
3285
3286 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
3287 string arguments before shell expansion.
3288 * tests/grub_cmd_echo.in: New testcases.
3289
4f9b406a
RM
32902010-11-07 Robert Millan <rmh@gnu.org>
3291
3292 * conf/mips-qemu-mips.rmk: Remove stale file from previous
3293 transition.
3294
80c6d25e
VS
32952010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3296
3297 * grub-core/kern/emu/hostdisk.c
3298 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
3299
4a1a0153
VS
33002010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3301
3302 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
3303 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
3304 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
3305
34706ddc
VS
33062010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3307
3308 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
3309
6972dea9
VS
33102010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3311
3312 * util/grub-install.in: Replace useless recomendation to pass
3313 --modules with a recomendation to report a bug.
3314
9c693bd6
VS
33152010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
3316
3317 Properly register serial terminfo.
3318 Reported by: Jordan Uggla
3319
3320 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
3321 const.
3322 (grub_serial_terminfo_output_template): Likewise.
3323 (grub_cmd_serial): Register "serial" with terminfo.
3324 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
3325 grub_serial_terminfo_output.
3326
6c9e4c0c
RM
33272010-11-05 Robert Millan <rmh@gnu.org>
3328
3329 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
3330 needed).
3331
b9b3839f
RM
33322010-11-05 Robert Millan <rmh@gnu.org>
3333
3334 On Yeeloong, pass machine type information to Linux.
3335
3336 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
3337 (LOONGSON_MACHTYPE): New macro, set to
3338 "machtype=lemote-yeeloong-2f-8.9inches".
3339 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
3340 additional argument to Linux.
3341
1a3aaff4
RM
33422010-11-04 Robert Millan <rmh@gnu.org>
3343
3344 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
3345 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
3346 (its SATA disks are detected as slaveless IDE master drives on
3347 kFreeBSD).
3348 Reported by Carsten Aulbert.
3349
a75f4f62
CW
33502010-11-02 Colin Watson <cjwatson@ubuntu.com>
3351
3352 * util/bin2h.c (main): Fix spelling error in generated output.
3353
33b4b0c6
GS
33542010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
3355
3356 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
3357
2b36fbf4
VS
33582010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3359
3360 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
3361 vga= option is supplied.
3362
74aaf558
VS
33632010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3364
3365 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
3366 * util/grub.d/10_kfreebsd.in: Likewise.
3367 * util/grub.d/10_linux.in: Likewise.
3368 * util/grub.d/20_linux_xen.in: Likewise.
3369
6428dec3
VS
33702010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3371
3372 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
3373 argument as an argument to no-argument option.
3374
f8729d98
VS
33752010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3376
3377 * util/grub.d/10_linux.in: Add missing load_video with explicit
3378 GRUB_GFXPAYLOAD_LINUX.
3379
89d68fa6
VS
33802010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3381
3382 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
3383
3a1197cd
VS
33842010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3385
3386 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
3387 elements with invlid index.
3388 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
3389 * grub-core/disk/raid.c (insert_array): Automatically reallocate
3390 members.
3391 * include/grub/raid.h (grub_raid_member): New struct.
3392 (grub_raid_array): Transform devices and start_sector into usage of
3393 grub_raid_member. All users updated
3394 (allocated_devs): New member.
3395
71574288
VS
33962010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3397
3398 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
3399 is modified
3400
8d40ec65
BC
34012010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
3402
3403 NetBSD build fix for getline function conflict from gnulib.
3404
3405 * Makefile.util.def (libgrubkern.a): New library for grub kernel
3406 components that depend on gnulib headers.
3407 (libgrubmods.a): Renamed from earlier libgrub.a.
3408 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
3409
95b9257e
VS
34102010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3411
3412 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
3413 install rather than creating a broken install.
3414
26c53dc6
VS
34152010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3416
3417 * util/grub-setup.c (argp): Remove misleading example of installing to
3418 a partition.
3419
4171b3c5
VS
34202010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3421
3422 * util/grub-setup.c (setup): Clarify the error message.
3423
18568d18
VS
34242010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3425
3426 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
3427
4f6a2e21
VS
34282010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3429
3430 * grub-core/kern/emu/misc.c
3431 (grub_make_system_path_relative_to_its_root)
3432 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
3433
34342010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
3435
3436 * grub-core/kern/emu/misc.c
3437 (grub_make_system_path_relative_to_its_root): Revert r2882.
3438
e138c458
VS
34392010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3440
3441 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
3442 useless field head. All users updated.
3443 (free_subchunk): Correct handling of IN_REGION subchunk.
3444
0cbcdf0e
CW
34452010-10-22 Colin Watson <cjwatson@ubuntu.com>
3446
3447 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
3448 (Supported kernels): Likewise.
3449
b65ea155
GS
34502010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
3451
3452 Make mktemp invocations portable.
3453
3454 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
3455 exit if mktemp fails.
3456 * tests/grub_script_blockarg.in: Likewise.
3457 * tests/partmap_test.in: Likewise.
3458 * tests/util/grub-shell-tester.in: Likewise.
3459 * tests/util/grub-shell.in: Likewise.
3460 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3461 * Makefile.am: Likewise, and chain shell commands with `&&'
3462 instead of ';'.
3463 * util/grub-mkrescue.in: Use the same explicit template as above, and
3464 exit if mktemp fails.
3465
05f43cdd
BC
34662010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
3467
3468 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
3469 Linux kernel, reported by Dennis Schridde.
3470
800e6a9b
SJ
34712010-10-17 Szymon Janc <szymon@janc.net.pl>
3472
3473 * grub-core/normal/auth.c (grub_auth_check_authentication):
3474 Set-but-not-used variable removed.
3475
d82df574
VS
34762010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3477
3478 * docs/grub.texi (GNU/Linux): Document APM unavailability with
3479 32-bit linux protocol.
3480
7bced458
VS
34812010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3482
3483 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
3484 cursor shape for sanity.
3485
5b027690
VS
34862010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3487
3488 * docs/grub.texi (Installation): Document buggy BIOS install.
3489
ba5f65cf
VS
34902010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3491
3492 * docs/grub.texi (Installation): Indent.
3493
fdf2ec9c
VS
34942010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3495
3496 * util/grub-setup.c (setup): New parameter allow_floppy.
3497 (arguments): New member allow_floppy.
3498 (argp_parser): Handle --allow-floppy.
3499 (main): Pass allow_floppy.
3500 * util/grub-install.in: New option --allow-floppy passed though to
3501 grub-setup.
3502
861dfd4c
VS
35032010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3504
3505 * util/grub-install.in: Handle partitionless disks.
3506
f77a8c24
VS
35072010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
3508
3509 * util/grub-setup.c (setup): Don't clean blocklists before readability
3510 verfification.
3511
27d9ee32
VS
35122010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3513
3514 * docs/grub.texi (Installation): Document embedding zone. Remove
3515 obsolete grub-install example.
3516
6bdda8f8
SJ
35172010-10-16 Szymon Janc <szymon@janc.net.pl>
3518
3519 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
3520 Set-but-not-used variable ifdef'ed.
3521 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
3522 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
3523 variable removed.
3524 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
3525 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
3526 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
3527 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
3528 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
3529 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
3530 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
3531 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
3532 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
3533 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
3534 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
3535 Likewise.
3536
e19b016b
VS
35372010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3538
3539 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
3540 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
3541 enum value.
3542
6c8d3002
VS
35432010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3544
3545 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
3546 synonym to _S5_. Needed for some DSDTs.
3547
c32b51c9
VS
35482010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3549
3550 Userspace ACPI parser debugging.
3551
3552 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
3553 headers and add relevant defines. Don't include standard headers.
3554 (main) [GRUB_DSDT_TEST]: New function.
3555 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
3556 Don't declare functions.
3557
fbfbeb39
VS
35582010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3559
3560 Remove dead grub_efi_mm_fini.
3561
3562 * grub-core/kern/efi/mm.c (allocated_page): Removed.
3563 (ALLOCATED_PAGES_SIZE): Likewise.
3564 (MAX_ALLOCATED_PAGES): Likewise.
3565 (allocated_pages): Likewise.
3566 (grub_efi_allocate_pages): Don't record allocated pages.
3567 (grub_efi_free_pages): Likewise.
3568 (grub_efi_mm_init): Likewise.
3569 (grub_efi_mm_fini): Removed.
3570
65f7ed7c
VS
35712010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3572
3573 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
3574 (grub_efi_mm_init): Take into account the memory map size increase.
3575
24977b44
VS
35762010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3577
3578 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
3579 (serial_hw_put): Wait based on real time rather than port reads. Don't
3580 roken ports.
3581 * include/grub/serial.h (grub_serial_port): New field broken.
3582
1eb01cd2
RM
35832010-10-16 Robert Millan <rmh@gnu.org>
3584
3585 * grub-core/kern/emu/misc.c
3586 (grub_make_system_path_relative_to_its_root): Fix premature return
3587 when processing non-root ZFS filesystems.
5f8b440b 3588 Reported by Sergio Talens-Oliag.
1eb01cd2 3589
2d5fed60
RM
35902010-10-15 Robert Millan <rmh@gnu.org>
3591
3592 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
3593 guarantee compressed ones are processed first.
3594
d0f4c1ea
VS
35952010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3596
3597 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
3598 grub_efiemu_autocore.
3599
d87c681f
VS
36002010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3601
3602 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
3603 rather than 0x1b.
3604 (grub_console_getkey): Use correct jae opcode rather than ja.
3605
219b3564
RM
36062010-10-12 Robert Millan <rmh@gnu.org>
3607
3608 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
3609 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
3610 variable. All references updated.
3611
3612 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
3613
20c6bb7e
VS
36142010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
3615
3616 Correctly distinguish mdraid flavours.
3617
3618 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
3619 (insert_array): New argument raid.
3620 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
3621 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
3622 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
3623
74baff84
VS
36242010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
3625
3626 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
3627 handling of special keys.
3628
3ef068df 36292010-10-02 Aleš Nesrsta <starous@volny.cz>
3630
c7980ad9
VS
3631 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
3632 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 3633
a9455194 36342010-10-02 Aleš Nesrsta <starous@volny.cz>
3635
c7980ad9
VS
3636 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
3637 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
3638 users updated.
a9455194 3639 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 3640 Use right endpoint when querying descriptor.
a9455194 3641
441cfe65
VS
36422010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
3643
3644 Clear out 0x80 color bit on EFI.
3645 Tested by: decoder
3646 Reported by: decoder and meta tech.
3647
3648 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
3649 (grub_console_setcolorstate): Clear out 0x80 bit.
3650 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
3651 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
3652 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
3653
bf26bcc4
VS
36542010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
3655
3656 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
3657 Set to "auto".
3658
6e3c515d
VS
36592010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3660
3661 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
3662 mo_file after freeing.
3663
e6d983ba
VS
36642010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
3667
74ccb5b5
VS
36682010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3669
3670 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
3671 flags.
3672
17821956
VS
36732010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3674
3675 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
3676 usage.
3677
ee74fa48
VS
36782010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
3679
3680 Put terminfo into core on ieee1275 and yeeloong (needed for console).
3681
3682 * gentpl.py: New groups terminfoinkernel and terminfomodule.
3683 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
3684 and terminfo.h when needed.
3685 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
3686 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
3687 (terminfo): Enable only on terminfokernel.
3688 (extcmd): Likewise.
3689 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
3690 * include/grub/lib/arg.h: Likewise.
3691 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
3692 incorrect usage of ->.
3693
aa438e68
VS
36942010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
3697 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
3698
57994012
VS
36992010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3700
3701 Fix coreboot compilation.
3702
3703 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
3704 Take VBE info into account even if only text is supported.
3705 (fill_vbe_info): Take into account the case when only VGA text
3706 is supported.
3707 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
3708 on coreboot, multiboot and qemu.
3709
2a406611
VS
37102010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3711
3712 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
3713 debug messages.
3714 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
3715
d33613fc
VS
37162010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3717
3718 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
3719 parameters.
3720
44a1b432
VS
37212010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3722
3723 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
3724 if they were BSD-style.
3725
edde54e6
VS
37262010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3727
3728 * grub-core/boot/i386/pc/lnxboot.S: Replace
3729 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
3730 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
3731
b65830fa
VS
37322010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
3733
3734 Write embedding zone using Reed-Solomon.
3735
3736 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
3737 * grub-core/Makefile.am (rs_decoder.S): New target.
3738 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
3739 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
3740 (multiboot): Move to RS part.
3741 (post_reed_solomon): New label.
3742 (grub_boot_drive): Move to non-RS part since it's modified in memory
3743 on boot.
3744 Include rs_decoder.S.
3745 * grub-core/lib/reed_solomon.c: New file.
3746 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
3747 New definition.
3748 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
3749 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
3750 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
3751 * include/grub/partition.h (grub_partition_map): Change prototype of
3752 embed to allow returning additional sectors.
3753 * include/grub/reed_solomon.h: New file.
3754 * util/grub-setup.c (setup): Handle Reed-Solomon.
3755
0b4b227f
CW
37562010-09-28 Colin Watson <cjwatson@ubuntu.com>
3757
3758 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
3759 i386 and x86-64 definedness tests.
3760
f772623b
YB
37612010-09-27 Yves Blusseau <blusseau@zetam.org>
3762
3763 Fix generation of kernel_syms.lst
3764
3765 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
3766 ASM_PREFIX
3767
8e57a6ca
RM
37682010-09-26 Robert Millan <rmh@gnu.org>
3769
3770 Support degraded ZFS arrays in "grub-probe -t device" resolution.
3771
3772 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
3773 the pool is an array of devices, iterate through it and return the
3774 first device that passes a stat() test (instead of blindly returning
3775 the first one).
3776
f9130836
RM
37772010-09-26 Robert Millan <rmh@gnu.org>
3778
3779 Build fixes for GNU/kFreeBSD.
3780
3781 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
3782 to programs that require ZFS conversion.
3783 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
3784 kernels that don't have FLOPPY_MAJOR.
3785
96510faf
BC
37862010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
3787
3788 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
3789
449333eb
BC
37902010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
3791
3792 Fix grub-emu build.
3793
3794 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
3795 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
3796 mdraid09 and mdraid1x.
3797
e1fd1939
CW
37982010-09-24 Colin Watson <cjwatson@ubuntu.com>
3799
3800 Re-enable grub-extras.
3801
3802 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
3803 avoid confusing Automake. Run autogen only twice, once for the top
3804 level and once for grub-core. Add Makefile.util.def and
3805 Makefile.core.def from extra modules to the appropriate autogen
3806 invocations. If Makefile.common exists in an extra module, include
3807 it in both Makefile.util.am and grub-core/Makefile.core.am;
3808 similarly, include any Makefile.util.common file in Makefile.util.am
3809 and any Makefile.core.common file in grub-core/Makefile.core.am.
3810 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
3811 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
3812 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
3813 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
3814
3815 * gentpl.py (gvar_add): Turn GVARS into a set.
3816 (global_variable_initializers): Sort global variables on output.
3817 (vars_init): New function.
3818 (first_time): Likewise.
3819 (library): Ensure that non-global variable initialisations are
3820 emitted before the first time we emit code for a library block.
3821 Append to variables rather than setting them. Only emit
3822 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
3823 each conditional path.
3824 (program): installdir() emits an Autogen macro, so must be passed to
3825 var_add rather than gvar_add.
3826 (data): Likewise.
3827 (script): Likewise.
3828 (rules): New function, centralising handling for different target
3829 types. Set up Guile association lists for first_time and vars_init,
3830 and send most output to a diversion so that variable initialisations
3831 can be emitted first.
3832 (module_rules): Use new rules function.
3833 (kernel_rules): Likewise.
3834 (image_rules): Likewise.
3835 (library_rules): Likewise.
3836 (program_rules): Likewise.
3837 (script_rules): Likewise.
3838 (data_rules): Likewise.
3839
3840 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
3841
3842 * .bzrignore: Add contrib and grub-core/contrib. Remove
3843 grub-core/Makefile.gcry.am.
3844
1d12cf29
YB
38452010-09-24 Yves Blusseau <blusseau@zetam.org>
3846
3847 * grub-core/lib/LzFind.c: Add missing include.
3848 * grub-core/lib/LzmaEnc.c: Likewise.
3849 * grub-core/script/lexer.c: Likewise.
3850 * grub-core/script/yylex.l: Likewise.
3851 * util/grub-macho2img.c: Likewise.
3852 * util/grub-menulst2cfg.c: Likewise.
3853 * util/grub-mklayout.c: Likewise.
3854 * util/grub-mkpasswd-pbkdf2.c
3855 * util/grub-mkrelpath.c: Likewise.
3856 * util/resolve.c: Likewise.
3857
dd363028
BC
38582010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
3859
3860 * Makefile.util.def (example_unit_test): Add
3861 grub-core/gnulib/libgnu.a.
3862
f5a109e2
GS
38632010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
3864
3865 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
3866
6d0fa83c
VS
38672010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3868
3869 Support xz compression on yeeloong.
3870
3871 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
3872 * configure.ac: Check for LZMA.
3873 * grub-core/Makefile.core.def (xz_decompress): New target.
3874 (none_decompress): Likewise.
3875 * grub-core/boot/decompressor/minilib.c: New file.
3876 * grub-core/boot/decompressor/none.c: Likewise.
3877 * grub-core/boot/decompressor/xz.c: Likewise.
3878 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
3879 * grub-core/kern/mips/cache_flush.S: Likewise.
3880 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
3881 * grub-core/kern/mips/startup.S: Move first stage to ...
3882 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
3883 nomacro.
3884 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
3885 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
3886 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
3887 Allocate statically.
3888 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
3889 Allocate statically or use scratch. Don't check CRC32.
3890 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
3891 Allocate statically. Don't check CRC32.
3892 * include/grub/decompressor.h: New file.
3893 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
3894 Removed.
3895 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
3896 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
3897 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
3898 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
3899 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
3900 * util/grub-mkimage.c (grub_compression_t): New type.
3901 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
3902 (image_target_desc): New field default_compression.
3903 (image_targets): Adjust yeeloong targets.
3904 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
3905 (compress_kernel): New parameter comp.
3906 (generate_image): Likewise. Handle new compression case.
3907 (options): New option --compression
3908 (help): Likewise.
3909 (main): Handle new option.
3910
1b655af6
GS
39112010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
3912
3913 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
3914
8f03f0b5
CW
39152010-09-22 Colin Watson <cjwatson@ubuntu.com>
3916
3917 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
3918 typo in __i386__ conditional.
3919
7835dfd3
VS
39202010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
3921
3922 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
3923 include.
3924
e255597e
VS
39252010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
3926
6d0fa83c 3927 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
3928
3929 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
3930 new tags as supported.
3931 (acpiv2_size): New function.
3932 (grub_multiboot_get_mbi_size): Take new tags into account.
3933 (grub_multiboot_make_mbi): Add new tags.
3934 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 3935
6cc14051 39362010-09-21 Aleš Nesrsta <starous@volny.cz>
3937
3938 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
3939 Added missing configuration of USB device.
3940
df7769d8
CW
39412010-09-21 Colin Watson <cjwatson@ubuntu.com>
3942
3943 * grub-core/normal/menu_entry.c (run): Make sure we always return
3944 a value.
3945
b031012d
CW
39462010-09-21 Colin Watson <cjwatson@ubuntu.com>
3947
3948 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
3949 NumberOfPages is UINT64 according to the UEFI specification, not
3950 UINTN. Fix printf format.
3951
174de8f3
CW
39522010-09-21 Colin Watson <cjwatson@ubuntu.com>
3953
3954 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
3955 `err' to grub_usb_err_t.
3956 Reported and tested by: KESHAV P.R.
3957
d7dbe923
CW
39582010-09-21 Colin Watson <cjwatson@ubuntu.com>
3959
3960 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
3961 tpart non-const, so that we can assign to it. (Since this is a
3962 typedef, the constness refers to the pointer rather than what it
3963 points to.)
3964
8d5e2af3
CW
39652010-09-21 Colin Watson <cjwatson@ubuntu.com>
3966
3967 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
3968 $(top_srcdir)/grub-core/gnulib as well as
3969 $(top_builddir)/grub-core/gnulib.
3970 Reported by: KESHAV P.R.
3971
5c527783
CW
39722010-09-21 Colin Watson <cjwatson@ubuntu.com>
3973
3974 * util/grub-install.in: Fix the bootloader ID option to be
3975 consistently --bootloader-id, not --bootloader_id.
3976 Reported by: KESHAV P.R.
3977
d309a16e
CW
39782010-09-21 Colin Watson <cjwatson@ubuntu.com>
3979
3980 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
3981 check hash checksum." consistently translatable.
3982
b830cd16
YB
39832010-09-21 Yves Blusseau <blusseau@zetam.org>
3984
3985 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
3986 $(top_builddir).
3987
c4fe27a8
CW
39882010-09-21 Colin Watson <cjwatson@ubuntu.com>
3989
3990 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
3991 (GRUB_MOD_INIT): Register sha1sum command.
3992 (GRUB_MOD_FINI): Unregister sha1sum command.
3993
a4c1d277
YB
39942010-09-21 Yves Blusseau <blusseau@zetam.org>
3995
3996 Keep boot and grub directory names in sync with utils scripts
3997
3998 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
3999 * config.h.in: Add previous macros.
4000 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
4001 * util/grub-install.in: Use $bootdir and $grubdir variables.
4002
4eff79d2
CW
40032010-09-21 Colin Watson <cjwatson@ubuntu.com>
4004
4005 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
4006 convert partition names to disk names if the new `convert' parameter
4007 is set.
4008 (grub_util_biosdisk_get_grub_dev): If opening the disk device
4009 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
4010 disk in its own right. This can happen with Xen disk images.
4011
934d7e44
YB
40122010-09-21 Yves Blusseau <blusseau@zetam.org>
4013
4014 * util/grub-editenv.c: Update strings to avoid warnings when generating
4015 grub.pot file.
4016 * util/grub-setup.c: Likewise.
934d7e44 4017
df3367cc
VS
40182010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
4019
4020 * configure.ac: Change version to 1.99~beta0.
4021
77a94e98
VS
40222010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
4023
4024 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
4025 Add BADRAM.
4026 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
4027 Likewise.
4028 * include/multiboot.h: Resynced with specification.
4029 * include/multiboot2.h: Likewise.
4030
269004c1
CW
40312010-09-21 Colin Watson <cjwatson@ubuntu.com>
4032
4033 Fix po directory handling.
4034
4035 * configure.ac: Create po/Makefile.in rather than po/Makefile.
4036 * grub-core/gnulib/Makefile.am: Import gettext module.
4037 * m4/gnulib-cache.m4: Likewise.
4038 * m4/gnulib-comp.m4: Likewise.
4039 * m4/gettext.m4: New file, from gnulib.
4040 * m4/glibc2.m4: Likewise.
4041 * m4/iconv.m4: Likewise.
4042 * m4/intdiv0.m4: Likewise.
4043 * m4/intl.m4: Likewise.
4044 * m4/intldir.m4: Likewise.
4045 * m4/intlmacosx.m4: Likewise.
4046 * m4/intmax.m4: Likewise.
4047 * m4/inttypes-pri.m4: Likewise.
4048 * m4/lcmessage.m4: Likewise.
4049 * m4/lib-ld.m4: Likewise.
4050 * m4/lib-link.m4: Likewise.
4051 * m4/lib-prefix.m4: Likewise.
4052 * m4/lock.m4: Likewise.
4053 * m4/nls.m4: Likewise.
4054 * m4/po.m4: Likewise.
4055 * m4/printf-posix.m4: Likewise.
4056 * m4/progtest.m4: Likewise.
4057 * m4/threadlib.m4: Likewise.
4058 * m4/uintmax_t.m4: Likewise.
4059 * m4/visibility.m4: Likewise.
4060 * po/Makefile.am: Remove.
4061 * po/Makefile.in.in: New file, from gettext.
4062 ($(DOMAIN).pot-update): Support POTFILES-shell.
4063 * po/Makevars: New file.
4064 * po/POTFILES-shell: Rename to ...
4065 * po/POTFILES-shell.in: ... this. Update.
4066 * po/POTFILES: Rename to ...
4067 * po/POTFILES.in: ... this. Update.
4068 * po/Rules-quot: New file, from gettext.
4069 * po/boldquot.sed: Likewise.
4070 * po/en@boldquot.header: Likewise.
4071 * po/en@quot.header: Likewise.
4072 * po/insert-header.sin: Likewise.
4073 * po/quot.sed: Likewise.
4074 * po/remove-potcdate.sin: Likewise.
4075
3e0fa5d0
VS
40762010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4077
4078 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
4079
ade9bd66
VS
40802010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4081
4082 * util/grub.d/20_linux_xen.in: Use submenus.
4083
fc55cc4c
VS
40842010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4085
4086 Support submenus.
4087
4088 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
4089 parameter submenu. All users updated.
4090 * grub-core/normal/main.c (free_menu): Rename to ...
4091 (grub_normal_free_menu): ... this. Made global.
4092 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
4093 if requested.
4094 * grub-core/normal/menu_entry.c (screen): New field submenu.
4095 (make_screen): Set submenu.
4096 (run): Open new context if requested.
4097 * include/grub/menu.h (grub_menu_entry): New field submenu.
4098 * include/grub/normal.h (grub_normal_free_menu): New proto.
4099
600cedf7
VS
41002010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4101
4102 Menu entries extractor.
4103
4104 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
4105 variants.
4106 (GRUB_MOD_INIT): Register new variants.
4107 (GRUB_MOD_FINI): Unregister new variants.
4108 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
4109 into grub_cmd_legacy_source.
4110 (grub_cmd_legacy_source): Implement extractor variants.
4111 (GRUB_MOD_INIT): Register new variants.
4112 (GRUB_MOD_FINI): Unregister new variants.
4113 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
4114 as an extractor.
4115 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
4116 search as an extractor.
4117 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
4118 test as an extractor.
4119 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
4120 as an extractor.
4121 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
4122 (grub_env_new_context): New function.
4123 (grub_env_context_open): Likewise.
4124 (grub_env_extractor_open): Likewise.
4125 (grub_env_extractor_close): Likewise.
4126 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
4127 grub_extractor_level.
4128 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
4129 * include/grub/env.h (grub_env_extractor_open): New proto.
4130 (grub_env_extractor_close): Likewise.
4131 * include/grub/normal.h (grub_extractor_level): New external variable.
4132
7bda3a87
VS
41332010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4134
4135 Make cutmem accept a region specification.
4136 Suggested by: Samuel Thibault
4137
4138 * grub-core/mmap/mmap.c (parsemem): New function.
4139 (grub_cmd_cutmem): Handle new arguments.
4140
2ea57f88
VS
41412010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4142
4143 New command cutmem.
4144
4145 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
4146 (GRUB_MOD_INIT): Register new command.
4147 (GRUB_MOD_FINI): Unregister new command.
4148
74342e31
VS
41492010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4150
4151 Support some annoying BSD and Minix subpartitions.
4152
4153 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
4154 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4155 Properly handle concatenation.
4156 * grub-core/kern/device.c (grub_device_iterate): Likewise.
4157 * grub-core/normal/completion.c (iterate_partition): Likewise.
4158 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
4159 contain partition. All users updated.
4160 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
4161 struct.
4162 (grub_openbsdlabel_partition_map): Likewise.
4163 (bsdlabel_partition_map_iterate): Rename to ..
4164 (iterate_real): ... this. New arguments sector, freebsd and pmap.
4165 (bsdlabel_partition_map_iterate): New function.
4166 (netopenbsdlabel_partition_map_iterate): Likewise.
4167 (netbsdlabel_partition_map_iterate): Likewise.
4168 (openbsdlabel_partition_map_iterate): Likewise.
4169 (GRUB_MOD_INIT): Register new partmaps.
4170 (GRUB_MOD_FINI): Unregister new partmaps.
4171 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
4172 (grub_partition_msdos_iterate): ... this. All users updated.
4173 Don't support embedding other than in a minix partition.
4174 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
4175 proto.
4176 * include/grub/partition.h (grub_partition): New field msdostype.
4177 * util/grub-install.in: Handle openbsd and netbsd types being in
4178 part_bsd module.
4179
1e8d555b
VS
41802010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4181
4182 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
4183
4184 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
4185 * grub-core/Makefile.core.def (mdraid): Renamed to ...
4186 (mdraid09): ... this.
4187 (mdraid1x): New module.
4188 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
4189 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
4190
899d8af4
VS
41912010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4192
4193 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
4194 vsprintf.
4195
40901acd
CW
41962010-09-20 Colin Watson <cjwatson@ubuntu.com>
4197
4198 * grub-core/commands/efi/lsefimmap.c: Correct header.
4199 * NEWS: Update.
4200
dfe3b247
CW
42012010-09-20 Colin Watson <cjwatson@ubuntu.com>
4202
4203 * util/grub-editenv.c (argp_parser): Don't pass translated strings
4204 as printf format strings; the translations might contain '%' which
4205 could cause a crash.
4206 (main): Likewise.
4207 * util/grub-fstest.c (argp_parser): Likewise.
4208 * util/grub-setup.c (argp_parser): Likewise.
4209 (main): Likewise.
4210
3286a4b4
VS
42112010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4212
4213 Use argp in grub-fstest.
4214
4215 * util/grub-fstest.c: Don't include getopt.h.
4216 Include argp.h.
4217 (root): New variable.
4218 (args_count): Likewise.
4219 (nparm): Likewise.
4220 (num_disks): Likewise.
4221 (images): Likewise.
4222 (cmd): Likewise.
4223 (debug_str): Likewise.
4224 (args): Likewise.
4225 (options): Transformed to argp.
4226 (usage): Removed.
4227 (main): Split argument parsing into ...
4228 (argp_parser): ... this. Changed to argp format.
4229 (argp): New variable.
4230 (main): Use argp_parse.
4231
3dccbe4b
TG
42322010-09-20 Tristan Gingold <gingold@free.fr>
42332010-09-20 Robert Millan <rmh.grub@aybabtu.com>
42342010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4235
4236 * grub-core/commands/efi/lsefimmap.c: New file.
4237 * grub-core/Makefile.core.def (lsefimmap): New module.
4238 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
4239
38c259a7
VS
42402010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4241
4242 Pause the execution (10s max) if any errors are displayed so the user
4243 has a chance to see them.
4244
4245 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
4246 (grub_print_error): Increment grub_err_printed_errors.
4247 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
4248 execution if any errors were displayed.
4249 (show_menu): Remove old code for pause.
4250 * grub-core/normal/menu_entry.c (run): Likewise.
4251 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
4252 users updated.
4253 (grub_normal_get_char_counter): Likewise.
4254 * include/grub/err.h (grub_err_printed_errors): New external variable.
4255 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
4256
f218b09c
VS
42572010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4258
4259 Support multiboot VBE info.
4260
4261 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
4262 Take VBE info into account.
4263 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
4264 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
4265 Call fill_vbe_info when appropriate.
4266 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
4267 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
4268 as supported.
4269 (grub_multiboot_get_mbi_size): Take new tags into account.
4270 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
4271 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
4272 Call fill_vbe_tag when appropriate.
4273 (grub_multiboot_make_mbi): Properly align tags.
4274 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
4275 function.
4276 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
4277 proto.
4278 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
4279
a9cc5438
VS
42802010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4281
4282 Suport manual terminal geometry specification.
4283
4284 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
4285 Save state in grub_ofconsole_terminfo_output.
4286 (grub_ofconsole_term): Use grub_terminfo_getwh.
4287 (grub_ofconsole_getwh): Removed.
4288 * grub-core/term/serial.c (grub_serial_getwh): Removed.
4289 (grub_serial_term): Use grub_terminfo_getwh.
4290 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
4291 (options): New struct.
4292 (OPTION_*): New enum.
4293 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
4294 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
4295 width and height.
4296 (grub_terminfo_getwh): New proto.
4297 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
4298
1a8fed20
VS
42992010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4300
4301 Handle legacy "terminal" command.
4302
4303 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
4304 and FLAG_TERMINAL.
4305 (legacy_commands): Add terminal and title.
4306 (grub_legacy_parse): Handle terminal. Simplify title handling.
4307
41e9c57d
VS
43082010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4309
4310 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
4311 parameters overflow.
4312
61c874c5
CW
43132010-09-20 Colin Watson <cjwatson@ubuntu.com>
4314
4315 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
4316 widthspec.h.
4317
4318 * docs/grub.texi (Shell-like scripting): Document `!'.
4319 (Network): Simplify using new i386-pc-pxe format. Mention
4320 grub-mknetdir.
4321
4322 * NEWS: Update.
4323
943682b4
CW
43242010-09-20 Colin Watson <cjwatson@ubuntu.com>
4325
4326 * Makefile.am (SUBDIRS): Restore "."; it's important to force
4327 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
4328 when needed.
4329
6d3d698d
CW
43302010-09-20 Colin Watson <cjwatson@ubuntu.com>
4331
4332 * grub-core/commands/efi/lsefisystab.c: Correct header.
4333 * grub-core/commands/efi/lssal.c: Likewise.
4334 * grub-core/commands/testload.c: Likewise.
4335
c982589f
CW
43362010-09-20 Colin Watson <cjwatson@ubuntu.com>
4337
4338 * util/grub-mkrescue.in: Add explicit root argument to --set to
4339 prevent the UUID being interpreted as an argument to --set (matches
4340 previous change to prepare_grub_to_access_device).
4341
a63c31b6
CW
43422010-09-20 Colin Watson <cjwatson@ubuntu.com>
4343
4344 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
4345 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
4346 the verbosity of later #ifs.
4347 (find_partition_start): Define this function on FreeBSD too.
4348 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
4349 function.
4350 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
4351 on FreeBSD.
4352
6439b8ee
YB
43532010-09-20 Yves Blusseau <blusseau@zetam.org>
4354
4355 * util/grub-editenv.c: Use argp instead of getopt.
4356
c5930ec8
YB
43572010-09-20 Yves Blusseau <blusseau@zetam.org>
4358
4359 * util/grub-setup.c: Use argp instead of getopt.
4360
15c69261
YB
43612010-09-20 Yves Blusseau <blusseau@zetam.org>
4362
4363 Use gnulib-tool to create gnulib source files.
4364
4365 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
4366 grub-core/gnulib directories
4367 * .bzignore: Add **/.deps and autogenerated gnulib files
4368 * configure.ac: Assign auxiliary directory to build-aux, add invocation
4369 of gnulib macros, add grub-core/gnulib/Makefile
4370 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
4371 include m4 directory to aclocal.
4372 * Makefile.util.def: Remove direct compilation of gnulib source files
4373 and use the new grub-core/gnulib/libgnu.a.
4374 * build-aux/config.rpath: move config.rpath from top directory to
4375 build-aux
4376 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
4377 in gnulib headers
4378 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
4379 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
4380 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
4381 header.
4382 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
4383 string.
4384
e511c9f5
YB
43852010-09-20 Yves Blusseau <blusseau@zetam.org>
4386
4387 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
4388 grub-core/genmod.sh and grub-core/gensyminfo.sh
4389
c2dede05
BC
43902010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
4391
4392 Add a test for echo command options.
4393
4394 * tests/grub_cmd_echo.in: New test.
4395 * Makefile.util.def: Rules for new test.
4396
c55f5018
SJ
43972010-09-20 Szymon Janc <szymon@janc.net.pl>
4398
4399 Remove crc.mod and move crc command to hashsum.mod.
4400 Remove lib/crc.c - users updated to use gcrypt implementation.
4401
4402 * grub-core/commands/crc.c: Removed.
4403 * grub-core/Makefile.core.def (crc): Module removed.
4404 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
4405 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
4406 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
4407 * grub-core/lib/crc.c: Removed.
4408 * include/grub/lib/crc.h: Removed.
4409 * Makefile.util.def (crc): Remove lib/crc.c
4410 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
4411 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
4412 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
4413 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
4414 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
4415 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
4416
e0337366
VS
44172010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
4418
4419 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
4420
742f9232
VS
44212010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4422
4423 Split config.h for util and core.
4424
4425 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
4426 (ADDR32): Likewise.
4427 (DATA32): Likewise.
4428 (BSS_START_SYMBOL): Likewise.
4429 (END_SYMBOL): Likewise.
4430 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
4431 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
4432 * config.h.in: New file.
4433 * configure.ac: Use config-util.h as config define file.
4434 Rename MACHINE into GRUB_MACHINE. All users updated.
4435 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
4436 updated.
4437 (NESTED_FUNC_ATTR): Likewise.
4438 Substitue new variables.
4439 (COND_HAVE_ASM_USCORE): New conditional.
4440 * grub-core/Makefile.am (ASM_PREFIX): New variable.
4441 (kernel_syms.lst): Use ASM_PREFIX.
4442 * grub-core/kern/emu/console.c: Include config-util.h.
4443 * grub-core/kern/emu/misc.c: Likewise.
4444 * grub-core/kern/emu/mm.c: Likewise.
4445 * include/grub/emu/misc.h: Likewise.
4446 * include/grub/libgcc.h: Likewise.
4447
39feb0e8
VS
44482010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4449
4450 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
4451 constants usage.
4452 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
4453 Fix GRUB_TERM_KEY_* constants usage.
4454 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
4455
9af6dac3
VS
44562010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
4459 print pointer.
4460 * grub-core/bus/usb/uhci.c: Remove empty define.
4461 (grub_uhci_check_transfer): Add missing cast.
4462 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
4463 print pointer.
4464 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
4465 PRIuGRUB_SIZE.
4466 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
4467
d6d94820
VS
44682010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4469
4470 * grub-core/Makefile.core.def (legacycfg): Add
4471 lib/i386/pc/vesa_modes_table.c on emu.
4472
3572f2b6
BC
44732010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
4474
4475 Reduce number of temporary files generated by build system.
4476
4477 * grub-core/gencmdlist.sh: Removed.
4478 * grub-core/genfslist.sh: Removed.
4479 * grub-core/genhandlerlist.sh: Removed.
4480 * grub-core/genmodsrc.sh: Removed.
4481 * grub-core/genpartmaplist.sh: Removed.
4482 * grub-core/genparttoollist.sh: Removed.
4483 * grub-core/gentermiinallist.sh: Removed.
4484 * grub-core/genvideolist.sh: Removed.
4485
4486 * grub-core/genmod.sh.in: New file.
4487 * grub-core/gensyminfo.sh.in: New file.
4488
4489 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
4490 * conf/Makefile.extra-dist: Update with new files.
4491 * gentpl.py: Remove rules related to unnecessary temporary files.
4492 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
4493 and und-* files.
4494 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
4495 genmod.sh scripts.
4496 * grub-core/bus/usb/uhci.c: Remove empty #define.
4497 * grub-core/genmoddep.awk: Updated with new syminfo format.
4498 * util/bash-completion.d/Makefile.am: Add config.log to
4499 CLEANFILES.
4500
c836b030
YB
45012010-09-19 Yves Blusseau <blusseau@zetam.org>
4502
4503 * Makefile.util.def: Add forgotten $(LIBINTL) library.
4504
2f4e8053
BC
45052010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
4506
4507 * util/grub-mkconfig.in: Check the config script for syntax errors
4508 before saving.
4509
75831c34
CW
45102010-09-19 Colin Watson <cjwatson@ubuntu.com>
45112010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4512
4513 * Makefile.util.def (grub-install): Use util/grub-install.in on all
4514 platforms.
4515 * util/grub-install.in: Add EFI and IEEE1275 support.
4516 * util/i386/efi/grub-install.in: Removed.
4517 * util/ieee1275/grub-install.in: Likewise.
4518
eaf41b25
VS
45192010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
4520
4521 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
4522 (grub_cmd_cmosclean): Likewise.
4523 (GRUB_MOD_INIT): Register command cmosclean.
4524 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
4525 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
4526
1a9130dd
CPE
45272010-09-18 Carles Pina i Estany <carles@pina.cat>
45282010-09-18 Aleš Nesrsta <starous@volny.cz>
45292010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4530
4531 Add keyboard layouts support.
4532
4533 * Makefile.util.def (grub-mklayout): New file.
4534 (grub-kbdcomp): New script.
4535 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
4536 Add keyboard_layouts.h.
4537 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
4538 commands/boot.c on yeeloong.
4539 (keylayouts): New module.
4540 * grub-core/bus/usb/ohci.c
4541 * grub-core/bus/usb/uhci.c
4542 * grub-core/bus/usb/usbhub.c (rescan): New variable.
4543 (grub_usb_add_hub): Poll interrupt pipe for device handling.
4544 (attach_root_port): Likewise.
4545 (poll_nonroot_hub): Likewise.
4546 (grub_usb_poll_devices): Likewise.
4547 (detach_device): Close transfer.
4548 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
4549 function.
4550 (grub_usb_bulk_setup_readwrite): Likewise.
4551 (grub_usb_bulk_finish_readwrite): Likewise.
4552 * grub-core/commands/keylayouts.c: New file.
4553 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
4554 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
4555 aliases.
4556 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
4557 support scancode 2.
4558 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
4559 * include/grub/keyboard_layouts.h: New file.
4560 * util/grub-mklayout.c: New file.
4561 * util/grub-kbdcomp.in: Likewise.
4562
a1d84a5e
VS
45632010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4564
4565 Unify memory types.
4566
4567 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
4568 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
4569 types.
4570 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
4571 (grub_upper_mem): Likewise.
4572 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
4573 * include/grub/memory.h (grub_memory_type_t): New enum.
4574 All users updated.
4575
9696382e
VS
45762010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4577
4578 * grub-core/Makefile.core.def (lsapm): New module.
4579 * grub-core/commands/i386/pc/lsapm.c: New file.
4580 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
4581 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
4582 Likewise.
4583 * include/grub/i386/pc/apm.h: New file.
4584 * include/multiboot.h (multiboot_apm_info): New struct.
4585
45862010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
4587
4588 GRUB-legacy configuration file support.
4589
4590 * Makefile.util.def (grub-menulst2cfg): New util.
4591 * docs/man/grub-menulst2cfg.h2m: New file.
4592 * grub-core/Makefile.core.def (legacycfg): New module.
4593 * grub-core/commands/legacycfg.c: New file.
4594 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
4595 (grub_normal_add_menu_entry): ... this.
4596 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
4597 (grub_normal_set_password): ...this.
4598 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
4599 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
4600 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
4601 * grub-core/lib/legacy_parse.c: New file.
4602 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
4603 * include/grub/i386/pc/vesa_modes_table.h: New file.
4604 * include/grub/legacy_parse.h: Likewise.
4605 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
4606 * util/grub-menulst2cfg.c: New file.
4607
bf8d1338
CW
46082010-09-17 Colin Watson <cjwatson@ubuntu.com>
4609
4610 * grub-core/kern/emu/hostdisk.c
4611 (convert_system_partition_to_system_disk): Initialise node.
4612
9c0bad2e
CW
46132010-09-17 Colin Watson <cjwatson@ubuntu.com>
4614
4615 * grub-core/kern/emu/hostdisk.c
4616 (convert_system_partition_to_system_disk): Fix devmapper memory pool
4617 leak.
4618 Reported and based on patch by: Modestas Vainius.
4619
a939d135
CW
46202010-09-17 Colin Watson <cjwatson@ubuntu.com>
4621
4622 Fix DM-RAID probing with recent versions of device-mapper udev
4623 rules.
4624
4625 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
4626 canonicalise device paths under /dev/mapper/.
4627 (convert_system_partition_to_system_disk): Compare the
4628 uncanonicalised path to /dev/mapper/ rather than the canonicalised
4629 path, since device nodes under /dev/mapper/ are often symlinks.
4630
0f7ee3c9
YB
46312010-09-17 Yves Blusseau <blusseau@zetam.org>
4632
4633 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
4634
10854d0d
YB
46352010-09-16 Yves Blusseau <blusseau@zetam.org>
4636
4637 * configure.ac: Avoid some annoying error messages if freetype-config
4638 program is not found.
4639
108538d8
CW
46402010-09-16 Colin Watson <cjwatson@ubuntu.com>
4641
4642 Support RAID on virtio devices, and others.
4643
4644 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
4645 Rename to ...
4646 [__MINGW32__] (grub_find_device): ... this.
4647 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
4648 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
4649 reasonable default if dir is NULL.
4650 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
4651 ...
4652 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
4653 (grub_guess_root_device): Update callers.
4654 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
4655
4656 * util/raid.c (grub_util_getdiskname): Remove.
4657 (grub_util_raid_getmembers): Use grub_find_device rather than
4658 grub_util_getdiskname.
4659
e5bfc130
CW
46602010-09-16 Colin Watson <cjwatson@ubuntu.com>
4661
4662 * docs/grub.texi (serial): Remove obsolete comment about GRUB
4663 needing to be compiled with serial support.
4664 (ls): Indicate that multiple files are accepted.
4665 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
4666 indicate that multiple files are accepted.
4667
be458ae2
CW
46682010-09-16 Colin Watson <cjwatson@ubuntu.com>
4669
4670 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
4671 libgrub_a_init.c, and util/bash-completion.d/grub.
4672
cb731b5e
VS
46732010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4674
4675 * util/grub-setup.c (setup): Fix incorrect container semantics.
4676
35139e8a
VS
46772010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4678
4679 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
4680 misusage.
4681 Reported by: J. Nick Terry
4682
e50fca4a
VS
46832010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4684
4685 Move embedding routines to partmap sources files.
4686
4687 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
4688 [GRUB_UTIL]: New variable.
4689 (gpt_partition_map_iterate): Set part.parent.
4690 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
4691 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
4692 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
4693 New function.
4694 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
4695 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
4696 (grub_partition_map) [GRUB_UTIL]: New field embed.
4697 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
4698 (setup): Use ->embed.
4699
f00478b7
VS
47002010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4701
4702 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
4703 function.
4704 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
4705 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
4706
2b94e3ff
YB
47072010-09-15 Yves Blusseau <blusseau@zetam.org>
4708
4709 Add function to get completions from usage.
4710
4711 * util/bash-completion.d/grub-completion.bash.in: Add function to get
4712 completions from usage. Use LC_ALL=C to get options properly.
4713
2e04a006
VS
47142010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4715
4716 * grub-core/gnulib/basename-lgpl.c: Imported.
4717 * grub-core/gnulib/basename.c: Likewise.
4718 * grub-core/gnulib/dirname-lgpl.c: Likewise.
4719 * grub-core/gnulib/dirname.c: Likewise.
4720 * grub-core/gnulib/dirname.h: Likewise.
4721 * grub-core/gnulib/stripslash.c: Likewise.
4722
5dcdf93a
VS
47232010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
4724
4725 * grub-core/gnulib/error.c: Resynced.
4726 * grub-core/gnulib/getopt.c: Likewise.
4727 * grub-core/gnulib/getopt_int.h: Likewise.
4728 * grub-core/gnulib/regex.h: Likewise.
4729 * grub-core/gnulib/regex_internal.c: Likewise.
4730 * grub-core/gnulib/regex_internal.h: Likewise.
4731
014f47b7
SJ
47322010-09-15 Szymon Janc <szymon@janc.net.pl>
4733
4734 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
4735 CRC calculations and validity checks.
4736 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
4737 calculations.
4738
dd521a4a
SJ
47392010-09-15 Szymon Janc <szymon@janc.net.pl>
4740
4741 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
4742
79c4eeb9
VS
47432010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4744
4745 Fix incorrect echo options handling.
4746 Reported by: Yves Blusseau.
4747
4748 * include/grub/command.h (grub_command_flags_t): New flags
4749 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
4750 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
4751 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
4752
ed80f7d5
VS
47532010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4754
4755 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
4756 users updated.
4757 (GRUB_COMMAND_FLAG_MENU): Likewise.
4758 (GRUB_COMMAND_FLAG_BOTH): Likewise.
4759 (GRUB_COMMAND_FLAG_TITLE): Removed.
4760 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
4761 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
4762 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
4763 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
4764 (grub_command_flags_t): New enum. All users updated.
4765
5fe7620a
SG
47662010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
4767
4768 Fix solaris compilation.
4769
4770 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
4771 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
4772 (grub-emu-list): Likewise.
4773
545b752f
VS
47742010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4775
4776 Remove deprecated root command.
4777
4778 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
4779 updated.
4780
6c1a338c
VS
47812010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4782
4783 * util/i386/pc/grub-setup.c: Merge this ...
4784 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
4785 * util/grub-setup.c: ... into this.
4786 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
4787 New struct.
4788
47892010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4790
4791 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
4792 possible.
4793
d2ea4551
VS
47942010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4795
4796 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
4797 allocate p.
4798
3c3b5040
VS
47992010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4800
4801 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
4802 explicit root argument to set to prevent UUID to be interpreted as
4803 argument to set.
4804
b71c3fae
VS
48052010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4806
4807 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
4808
275433e6
VS
48092010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4810
4811 Don't export grub_gate_a20.
4812
4813 * grub-core/kern/i386/pc/init.c: Remove leftovers.
4814 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
4815 to ...
4816 (grub_gate_a20): ... this. All users updated.
4817 * include/grub/i386/pc/init.h: Removed. All users updated.
4818
a5dbb1f1
VS
48192010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4820
4821 Create euro.pf2 which supports most European languages.
4822
4823 * Makefile.am (grubdata_DATA): Add euro.pf2.
4824 (euro.pf2): New target.
4825 (CLEANFILES): Add euro.pf2.
4826
62a747cb
VS
48272010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
4828
4829 * configure.ac: Disable emu-usb by default to prevent inadvertent
4830 device takeover.
4831
608e43b1
VS
48322010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4833
4834 Disable usbserial on grub-emu since our libusb code isn't good enough
4835 yet.
4836
4837 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
4838 (usbserial_pl2303): Likewise.
4839 (usbserial_ftdi): Likewise.
4840
94564f81
VS
48412010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4842
4843 * include/grub/disk.h (grub_disk): Remove has_partitions.
4844 All users updated.
4845 * disk/loopback.c (grub_loopback): Remove has_partitions.
4846 All users updated.
4847 (options): Remove partitions. All users updated.
4848 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
4849 * util/i386/pc/grub-setup.c (setup): copy partition table only when
4850 actual partition table is found.
4851
3352800b
VS
48522010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4853
4854 Remove readability checks (too many false negatives).
4855
4856 * util/grub-install.in: Remove readability checks.
4857 * util/grub-mkconfig.in: Likewise.
4858 * util/grub.d/10_hurd.in: Likewise.
4859 * util/grub.d/10_kfreebsd.in: Likewise.
4860 * util/grub.d/10_linux.in: Likewise.
4861 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
4862 way.
4863
2419f17a
VS
48642010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4865
4866 Enable acpi shutdown on all ACPI platforms.
4867
4868 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
4869 on coreboo, multiboot and EFI.
4870 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
4871 (grub_acpi_halt): Likewise.
4872 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
4873 (grub_cmd_halt): Don't call grub_acpi_halt directly.
4874 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
4875 * grub-core/lib/i386/halt.c (grub_halt)
4876 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
4877
0575c7c3
VS
48782010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4879
4880 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
4881 context.
4882
54ac3cd1
VS
48832010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4884
4885 * grub-core/video/efi_gop.c: Fix over-80-chars line.
4886 * grub-core/video/efi_uga.c: Likewise.
4887
b2a30ac5
VS
48882010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4889
4890 Filter devaliases and never open same device twice.
4891
4892 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
4893 (last_ihandle): Likewise.
4894 (ofdisk_hash_ent): New member shortest.
4895 (ofdisk_hash_add): Add canonical path too.
4896 (scan): New function.
4897 (grub_ofdisk_iterate): Iterate over hashed entries.
4898 (compute_dev_path): Don't add :0.
4899 (grub_ofdisk_open): Don't really open the disk.
4900 (grub_ofdisk_close): Avoid closing unrelated disk.
4901 (grub_ofdisk_read): Implement reopen logic.
4902 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
4903 New function.
4904 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
4905 New proto.
4906
fb53b340
VS
49072010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4908
4909 Fix sparc64.
4910
4911 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
4912 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
4913 right address. Add sparc64_ieee1275_ldflags.
4914 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
4915 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
4916 to grub_host_to_target_addr
4917 (load_image): Likewise.
4918
f452b040
VS
49192010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4920
4921 * grub-core/normal/completion.c (complete_file): Handle device
4922 containing slash.
4923 Fix based on patch by Doug Nazar.
4924
9b5b2541
VS
49252010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4926
4927 grub-mknetdir script.
4928
4929 * Makefile.util.def (grub-mknetdir): New module.
4930 * tests/util/grub-shell.in: Support boot=net
4931 * util/grub-mknetdir.in: New file.
4932
9d2be652
VS
49332010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4934
4935 videoinfo on non-vbe.
4936
4937 * grub-core/Makefile.core.def (vbeinfo): Removed.
4938 (vbetest): Removed.
4939 (videoinfo): New module.
4940 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
4941 * grub-core/commands/i386/pc/vbetest.c: Removed.
4942 * grub-core/commands/videoinfo.c: New file.
4943 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
4944 specification.
4945 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
4946 as vbetest.
4947 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
4948 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
4949 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
4950 mode_number. New parameter mode. All users updated.
4951 (grub_video_gop_iterate): New function.
4952 (grub_video_efi_gop): New member iterate.
4953 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
4954 (grub_vbe_set_video_mode): Remove setting useless fields.
4955 (vbe2videoinfo): New function.
4956 (grub_video_vbe_iterate): Likewise.
4957 (grub_video_vbe_setup): Use vbe2videoinfo.
4958 (grub_video_vbe_print_adapter_specific_info): New function.
4959 (grub_video_vbe_adapter): New fields iterate and
4960 print_adapter_specific_info.
4961 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
4962 All users updated.
4963 (grub_video_mode_info): New field mode_number.
4964 (grub_video_adapter): New fields iterate and
4965 print_adapter_specific_info.
4966
179503f5
TG
49672010-09-13 Tristan Gingold <gingold@free.fr>
49682010-09-13 Robert Millan <rmh.grub@aybabtu.com>
49692010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4970
4971 * grub-core/commands/efi/lsefisystab.c: New file.
4972 * grub-core/commands/efi/lssal.c: Likewise.
4973 * grub-core/Makefile.core.def (lsacpi): New module.
4974 (lsefisystab): Likewise.
4975 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
4976 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
4977 (grub_efi_sal_system_table): New struct.
4978 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
4979 (grub_efi_sal_system_table_memory_descriptor): Likewise.
4980 (grub_efi_sal_system_table_platform_features): Likewise.
4981 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
4982 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
4983 (grub_efi_sal_system_table_ap_wakeup): Likewise.
4984 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
4985
cf9827de
VS
49862010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
4987
4988 Support explicit user claim that a device is BIOS-visible.
4989
4990 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
4991 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
4992 * grub-core/kern/emu/hostdisk.c
4993 (convert_system_partition_to_system_disk): Support mdX.
4994 (find_system_device): New parameter add. All users updated.
4995 (grub_util_biosdisk_is_present): New function.
4996 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
4997 proto.
4998
53f0eb1f
VS
49992010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
5000
5001 Search hints support.
5002
5003 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
5004 All users updated.
5005
b23ffd70
YB
50062010-09-13 Yves Blusseau <blusseau@zetam.org>
5007
5008 Bash completion script for util commands
5009
5010 * Makefile.am: Add util/bash-completion.d directory
5011 * configure.ac: Likewise.
5012 * util/bash-completion.d/Makefile.am: New file.
5013 * util/bash-completion.d/grub-completion.bash.in: Likewise.
5014
d547dc28
VS
50152010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5016
5017 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
5018 (print_backlog): set backlog_ucs4 and backlog_glyphs.
5019 Reported by: Yves Blusseau.
5020
2fc8ccb9
VS
50212010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5022
5023 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
5024 partition size and offset.
5025
d8a84076
VS
50262010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5027
5028 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
5029
84fb3b3d
VS
50302010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5031
5032 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
5033
768ec2e2
VS
50342010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5035
5036 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
5037 (grub_xvasprintf): Likewise.
5038
4870900f
VS
50392010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5040
5041 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
5042
faca6bec
VS
50432010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5044
5045 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
5046 args ending with NULL.
5047
50482010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
5049
5050 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
5051 pointer.
5052
3c70f225
SJ
50532010-09-11 Szymon Janc <szymon@janc.net.pl>
5054
5055 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
5056
4df7996d
VS
50572010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5058
5059 Shutdown using ACPI.
5060
5061 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
5062 * grub-core/commands/acpihalt.c: New file.
5063 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
5064 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
5065 (grub_acpi_halt): New proto.
5066 (GRUB_ACPI_SLP_EN): New const.
5067 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
5068 (GRUB_ACPI_OPCODE_*): New enum.
5069 (GRUB_ACPI_EXTOPCODE_*): Likewise.
5070
126b4c32
TG
50712010-09-11 Tristan Gingold <gingold@free.fr>
50722010-09-11 Robert Millan <rmh.grub@aybabtu.com>
50732010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5074
5075 * commands/lsacpi.c: New file.
5076 * grub-core/Makefile.core.def (lsacpi): New module.
5077 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
5078 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
5079 (grub_acpi_madt_entry_header): New struct.
5080 (grub_acpi_madt): Likewise.
5081 (grub_acpi_madt_entry_interrupt_override): Likewise.
5082 (grub_acpi_madt_entry_sapic): Likewise.
5083 (grub_acpi_madt_entry_lsapic): Likewise.
5084 (grub_acpi_madt_entry_platform_int_source): Likewise.
5085 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
5086 (PRIuGRUB_UINT32_T): Likewise.
5087 (PRIxGRUB_UINT64_T): Likewise.
5088
1aa4fe88
VS
50892010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5090
5091 Implement loading palette on ieee1275_fb.
5092
5093 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
5094 (have_setcolors): Likewise.
5095 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
5096 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
5097 (grub_video_ieee1275_set_palette): Implement.
5098
25761e13
VS
50992010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
51002010-09-11 Colin Watson <cjwatson@ubuntu.com>
5101
5102 * util/grub-install.in (grub_partition): New variable.
5103 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
5104 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
5105 Fixes a bug reported by Yves Blusseau.
5106
050abaea
VS
51072010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5108
5109 Fix emu on mipsel.
5110
5111 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
5112 =grub_cpu_flush_cache on all mips and not only yeeloong.
5113 * configure.ac (COND_mips): New conditional.
5114 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
5115 platforms.
5116 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
5117 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
5118 [GRUB_LINKER_HAVE_INIT]: New function.
5119 (grub_emu_post_init): Likewise.
5120 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
5121 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
5122 * include/grub/cache.h (_mips): Include mips/cache.h.
5123 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
5124 LVM and RAID prototypes.
5125 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
5126 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
5127 function.
5128
5ed7d816
CW
51292010-09-10 Colin Watson <cjwatson@ubuntu.com>
5130
5131 * util/grub-install.in: Don't try to verify core.img until after
5132 running grub-mkimage to create it.
5133
90367e04
RM
51342010-09-10 Robert Millan <rmh@gnu.org>
5135
5136 * util/grub.d/10_hurd.in: Add misc readability checks.
5137 * util/grub.d/10_kfreebsd.in: Likewise.
5138 * util/grub.d/10_linux.in: Likewise.
5139
c452fa66
CW
51402010-09-10 Colin Watson <cjwatson@ubuntu.com>
5141
5142 * util/grub-install.in: ${imgext} won't be defined here until the
5143 install branch is merged. For the meantime, only verify core.img on
5144 i386-pc and sparc64-ieee1275 platforms.
5145
c38fe9f4
RM
51462010-09-10 Robert Millan <rmh@gnu.org>
5147
5148 Solaris support in grub_find_zpool_from_dir(). Thanks
5149 Seth Goldberg for referring to getextmntent() facility.
5150
5151 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
5152 `sys/mkdev.h'.
5153 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
5154 `<sys/mnttab.h>'.
5155 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
5156 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
5157 method for finding zpool name.
5158
905f7773
CW
51592010-09-10 Colin Watson <cjwatson@ubuntu.com>
5160
5161 grub-fstest needs the host and hostfs modules while other utilities
5162 actively require those modules to be absent, so grub-fstest needs
5163 its own initialisation and finalisation code.
5164
5165 * Makefile.am (grub_fstest.pp): New target.
5166 (grub_fstest_init.lst): Likewise.
5167 (grub_fstest_init.c): Likewise.
5168 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
5169
fb90b546
RM
51702010-09-10 Robert Millan <rmh@gnu.org>
5171
5172 * configure.ac: Check for `struct statfs.f_fstypename' and
5173 `struct statfs.f_mntfromname'.
5174
5175 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
5176 kFreeBSD-specific code.
5177
66d4bea5
RM
51782010-09-10 Robert Millan <rmh@gnu.org>
5179
5180 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
5181 on ZFS. Now non-main filesystems are supported as / too.
5182
b6a690ee
CW
51832010-09-09 Colin Watson <cjwatson@ubuntu.com>
5184
5185 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
5186 and grub-core/disk/host.c to ...
5187 (grub-fstest): ... here. Having the host disk implementation
5188 present confuses grub-probe and other utility programs.
5189
5190 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
5191 when writing to a file, not when writing to stdout.
5192
8901b00c 51932010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
5194
5195 * tests/partmap_test.in: New test for partitions.
5196 * Makefile.util.def: Rules for new test.
5197
7bf45fdd
RM
51982010-09-09 Robert Millan <rmh@gnu.org>
5199
5200 * util/grub-probe.c (probe): Fix a pair of unhandled error
5201 conditions.
5202
4dfbc574
RM
52032010-09-09 Robert Millan <rmh@gnu.org>
5204
5205 Basic Btrfs support (detection and UUID).
5206
5207 * grub-core/fs/btrfs.c: New file.
5208 * Makefile.util.def (library): Register btrfs.c.
5209 * grub-core/Makefile.core.def: Likewise.
5210
6b8e78ae
RM
52112010-09-08 Robert Millan <rmh@gnu.org>
5212
5213 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
5214 with (optional) parameters to specify device and relative path.
5215 * util/grub-install.in: Use is_path_readable_by_grub() to
5216 verify readability of a few critical files.
5217 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
5218 verify readability of grub.cfg.new.
5219
27f21a8b
VS
52202010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
5221
5222 Split minix.mod into minix.mod and minix2.mod.
5223
5224 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
5225 * grub-core/Makefile.core.def (minix2): New module.
5226 * grub-core/fs/minix.c: Use definitions instead of runtime version
5227 checking.
5228 * grub-core/fs/minix2.c: New file.
5229
c0e53ea5
YB
52302010-09-08 Yves Blusseau <blusseau@zetam.org>
5231
5232 Add new --boot-directory option to replace --root-directory
5233
5234 * util/grub-install.in: Add new --boot-directory option
5235 * util/grub-reboot.in: Likewise.
5236 * util/grub-set-default.in: Likewise.
5237
b9fe6ea2
YB
52382010-09-08 Yves Blusseau <blusseau@zetam.org>
5239
5240 * util/grub-mkconfig.in: Use new variable.
5241
d87aedff
YB
52422010-09-08 Yves Blusseau <blusseau@zetam.org>
5243
5244 * configure.ac: Define some useful variables.
5245
e55e8495
VS
52462010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
5247
5248 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5249 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
5250 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
5251 Use terminfo and don't use cursor-on/cursor-off unless it's known
5252 to work.
5253 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
5254 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
5255
6fa6d675
CW
52562010-09-08 Colin Watson <cjwatson@ubuntu.com>
5257
5258 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
5259 starts with "(,", fill the drive containing the loaded image in
5260 between those two characters, but expect that a full partition
5261 specification including partition map names will follow.
5262
92f2aef0
RM
52632010-09-08 Robert Millan <rmh@gnu.org>
5264
5265 * configure.ac: Remove `--enable-grub-fstest' option.
5266 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
5267
5268 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
5269 `grub-fstest' instead of `grub-probe' for readability verification.
5270 * util/grub-probe.c (probe): Remove readability verification kludge.
5271
99fd620d
RM
52722010-09-08 Robert Millan <rmh@gnu.org>
5273
5274 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
5275 initializing `GRUB_FS'.
5276
058e30ac 52772010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
5278
5279 Not command (!) support to GRUB script.
5280
5281 * tests/grub_script_not.in: New test.
5282 * Makefile.util.def: Rules for new test.
5283
5284 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
5285 ! command as a special case.
5286 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
5287
b61d05ed 52882010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
5289
058e30ac 5290 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
5291 grub_free.
b61d05ed 5292
4d69c786 52932010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
5294
5295 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
5296
aa3119c4 52972010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
5298
5299 * docs/grub.texi (Shell-like scripting): Documentation for break,
5300 continue, shift and return commands.
5301
db0f7e3d
VS
53022010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
5303
5304 Rename CD-ROM to cd on BIOS.
5305
5306 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
5307 "cd".
5308 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
5309
88b87c93
VS
53102010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5311
5312 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
5313 * util/grub-probe.c (main): Likewise.
5314 * util/i386/pc/grub-setup.c (main): Likewise.
5315 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
5316 Reported and debugged by: alexxy
5317
294f324d
VS
53182010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5319
5320 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
5321 diagnostic info.
5322
d7ee3441
JS
53232010-09-05 Jo Shields <directhex@apebox.org>
5324
5325 * util/grub.d/30_os-prober.in: Add missing classes.
5326
d7e06c1f
VS
53272010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5328
5329 * docs/grub.texi (Theme file format): Document new position format.
5330
fc157e53
VS
53312010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5332
5333 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
5334 a table. Use @code instead of @verbatim.
5335
506e9a1c
CB
53362010-09-05 Colin D Bennett <colin@gibibit.com>
5337
5338 Gfxmenu documentation.
5339
5340 * docs/grub.texi (Theme file format): New chapter.
5341
f0aff67c
SJ
53422010-09-05 Szymon Janc <szymon@janc.net.pl>
5343
5344 * grub-core/Makefile.core.def (xzio): New module.
5345 * grub-core/io/xzio.c: New file.
5346 * grub-core/lib/xzembed/xz.h: New file (from xembed).
5347 * grub-core/lib/xzembed/xz_config.h: Likewise.
5348 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
5349 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
5350 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
5351 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
5352 * grub-core/lib/xzembed/xz_private.h: Likewise.
5353 * grub-core/lib/xzembed/xz_stream.h: Likewise.
5354 * include/grub/file.h (grub_file_filter_id): New compression filter
5355 GRUB_FILE_FILTER_XZIO.
5356
82a85062
VS
53572010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5358
5359 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
5360 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
5361 size.
5362
3579415d
VS
53632010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5364
5365 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
5366 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
5367
5124ae6d
VS
53682010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5369
5370 Uncompressed checksum support.
5371
5372 * grub-core/commands/hashsum.c (options): Add option --uncompress.
5373 (check_list): New parameter uncompress.
5374 (grub_cmd_hashsum): Handle --uncompress.
5375
9aadb3d1
VS
53762010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5377
5378 Reintroduce testload.
5379
5380 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
5381 from here ...
5382 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
5383 (GRUB_MOD_INIT): New function.
5384 (GRUB_MOD_FINI): Likewise.
5385 * grub-core/Makefile.core.def (testload): New module.
5386
a17792c3
SJ
53872010-09-05 Szymon Janc <szymon@janc.net.pl>
5388
5389 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
5390 (uint8_t): New type.
5391 (uint16_t): Likewise.
5392 (uint32_t): Likewise.
5393 (uint64_t): Likewise.
5394
b81e40a3
SJ
53952010-09-05 Szymon Janc <szymon@janc.net.pl>
5396
5397 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
5398
fc2ef117
VS
53992010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5400
5401 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
5402 Made static.
5403 (grub_gzfile_open): Removed. All users updated.
5404 (GRUB_MOD_INIT): New function.
5405 (GRUB_MOD_FINI): Likewise.
5406 * grub-core/kern/file.c (grub_file_filters_all): New variable.
5407 (grub_file_filters_enabled): Likewise.
5408 (grub_file_open): Handle filters.
5409 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
5410 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
5411 * include/grub/file.h (grub_file_filter_id_t): New type.
5412 (grub_file_filter_t): Likewise.
5413 (grub_file_filters_all): New extern variable.
5414 (grub_file_filters_enabled): Likewise.
5415 (grub_file_filter_register): New inline function.
5416 (grub_file_filter_unregister): Likewise.
5417 (grub_file_filter_disable): Likewise.
5418 (grub_file_filter_disable_compression): Likewise.
5419 * include/grub/gzio.h: Removed.
5420
35ee15e0
BC
54212010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5422
5423 Filename expansion support for wildcards in GRUB script.
5424
5425 * tests/grub_script_expansion.in: New test.
5426 * Makefile.util.def: Rule for new test.
5427
5428 * grub-core/commands/wildcard.c: New file, implements filename
5429 expansion support for GRUB script.
5430 * grub-core/Makefile.core.def: Rule update for regexp.mod.
5431 * grub-core/script/argv.c: Cosmetic changes.
5432 * grub-core/script/execute.c (grub_script_arglist_to_argv):
5433 Refactored to perform wildcard expansion on arguments.
5434 * include/grub/script_sh.h (grub_script_wildcard_translator): New
5435 struct.
5436
5437 * tests/util/grub-shell.in: Fix quoting for read input.
5438
5f0c4aca
BC
54392010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5440
5441 Support for updating environment variables with matched substrings
5442 of regexp.
5443
5444 * tests/grub_cmd_regexp.in: New test.
5445 * Makefile.util.def: Rule for new test.
5446
5447 * grub-core/commands/regexp.c: New option -s to update environment
5448 variables with regexp matches.
5449
3759a35f
SJ
54502010-09-04 Szymon Janc <szymon@janc.net.pl>
5451
5452 * include/grub/file.h (grub_file): New member not_easly_seekable.
5453 (grub_file_seekable): New inline function.
5454 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
5455 easily seekable.
5456 (grub_gzio_open): Set not_easly_seekable.
5457 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
5458 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
5459
ed8c6dec
BC
54602010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5461
5462 Support for options to appear multiple times on cmdline.
5463
5464 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
5465 * grub-core/commands/extcmd.c: Support for repeatable option.
5466 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
5467 repeatable option support.
5468
5469 Refactor menuentry into a regular command.
5470
5471 * grub-core/commands/menuentry.c: New file, menuentry command
5472 implementation.
5473 * grub-core/Makefile.core.def: Rule update for normal.mod.
5474 * grub-core/normal/main.c: Moved menuentry creation to
5475 grub-core/commands/menuentry.c.
5476 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
5477 (grub_menu_execute_entry_real): Removed.
5478 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
5479 function.
5480 (grub_script_execute_menuentry): Removed.
5481 * grub-core/script/parser.y (menuentry): Removed.
5482 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
5483 * grub-core/script/yylex.l (menuentry): Removed.
5484 * include/grub/menu.h (grub_menu_init): New prototype.
5485 (grub_menu_fini): New prototype.
5486 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
5487 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
5488 (grub_script_execute_sourcecode): New prototype.
5489
dacd0cf0
BC
54902010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5491
5492 "return" command for GRUB script functions.
5493
5494 * tests/grub_script_return.in: New test.
5495 * Makefile.util.def: Rules for new test.
5496
5497 * grub-core/script/execute.c (grub_script_return): New function.
5498 * grub-core/script/main.c: Register/unregister return commaond.
5499 * include/grub/script_sh.h (grub_script_return): New prototype.
5500
52e72f9d
BC
55012010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5502
5503 "setparams" command to update positional parameters.
5504
5505 * tests/grub_script_setparams.in: New test.
5506 * Makefile.util.def: Rules for new test.
5507
5508 * grub-core/script/argv.c (grub_script_argv_make): New function.
5509 * grub-core/script/execute.c (replace_scope): New function.
5510 (grub_script_setparams): New function.
5511 * grub-core/script/lexer.c: Remove unused variables.
5512 * grub-core/script/main.c: Register/unregister setparams command.
5513 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
5514 (grub_script_setparams): New prototype.
5515
25b60c91
BC
55162010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5517
5518 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
5519 grub_free order.
5520
37e7bf68
BC
55212010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5522
5523 Support for passing block of commands as an argument to extcmds.
5524
5525 * Makefile.util.def: Rules for new test.
5526 * tests/grub_script_blockarg.in: New test.
5527 * grub-core/tests/test_blockarg.c: New file, block argument
5528 command used in the test.
5529
5530 * include/grub/extcmd.h (grub_extcmd_context): New struct.
5531 (grub_register_extcmd_prio): New function prototype.
5532 (grub_extcmd_dispatcher): New function prototype.
5533 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
5534 type.
5535 * include/grub/script_sh.h (struct grub_script): New members
5536 `children', `next_siblings' and `refcnt' for block arguments and
5537 reference counting.
5538 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
5539 (grub_script_arg): New member `script' for block argument.
5540 (grub_script_argv): New member `script' for block argument.
5541 (grub_parser_param): New member `scripts' for block argument.
5542 (grub_script_mem_free): New extern function prototype.
5543 (grub_script_ref): New function prototype.
5544 (grub_script_unref): New function prototype.
5545
5546 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
5547 extcmd form to support block arguments.
5548 * grub-core/script/argv.c: Block arguments support.
5549 * grub-core/script/execute.c: Likewise.
5550 * grub-core/script/lexer.c: Likewise.
5551 * grub-core/script/main.c: Likewise.
5552 * grub-core/script/script.c: Likewise.
5553 * grub-core/script/parser.y: Likewise. New `block' and `block0'
5554 non-terminals.
5555
5556 * grub-core/commands/acpi.c: Update extcmd implementations with
5557 grub_extcmd_context_t.
5558 * grub-core/commands/cat.c: Likewise.
5559 * grub-core/commands/echo.c: Likewise.
5560 * grub-core/commands/extcmd.c: Likewise.
5561 * grub-core/commands/hashsum.c: Likewise.
5562 * grub-core/commands/hdparm.c: Likewise.
5563 * grub-core/commands/help.c: Likewise.
5564 * grub-core/commands/hexdump.c: Likewise.
5565 * grub-core/commands/i386/cpuid.c: Likewise.
5566 * grub-core/commands/i386/pc/drivemap.c: Likewise.
5567 * grub-core/commands/i386/pc/halt.c: Likewise.
5568 * grub-core/commands/i386/pc/sendkey.c: Likewise.
5569 * grub-core/commands/iorw.c: Likewise.
5570 * grub-core/commands/keystatus.c: Likewise.
5571 * grub-core/commands/loadenv.c: Likewise.
5572 * grub-core/commands/ls.c: Likewise.
5573 * grub-core/commands/lspci.c: Likewise.
5574 * grub-core/commands/memrw.c: Likewise.
5575 * grub-core/commands/probe.c: Likewise.
5576 * grub-core/commands/search_wrap.c: Likewise.
5577 * grub-core/commands/setpci.c: Likewise.
5578 * grub-core/commands/sleep.c: Likewise.
5579 * grub-core/disk/loopback.c: Likewise.
5580 * grub-core/hello/hello.c: Likewise.
5581 * grub-core/loader/i386/bsd.c: Likewise.
5582 * grub-core/loader/xnu.c: Likewise.
5583 * grub-core/term/gfxterm.c: Likewise.
5584 * grub-core/term/serial.c: Likewise.
5585 * grub-core/tests/lib/functional_test.c: Likewise.
5586
888d1500
BC
55872010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
5588
5589 Multi-line quoted strings support.
5590
5591 * grub-core/script/lexer.c (append_newline): Removed.
5592 (grub_script_lexer_yywrap): Refactored.
5593 (grub_script_lexer_init): Refactored.
5594 * grub-core/script/yylex.l (yywrap): New function.
5595 (grub_lexer_resplit): New function.
5596 (grub_lexer_unput): New function.
5597 * include/grub/script_sh.h (grub_lexer_param): New members, unput
5598 and resplit.
5599 * tests/grub_script_echo1.in: Added few more testcases.
5600
dda060dd
VS
56012010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
5602
5603 * grub-core/kern/misc.c: Don't add abort alias in utils.
5604 Reported by: echoline.
5605
6556eba9
BC
56062010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
5607
5608 Add missing files into "make dist" tarball for other platforms.
5609
5610 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
5611 * conf/Makefile.common (dist_noinst_DATA): New variable.
5612 * conf/Makefile.extra-dist: Added missing make dist files.
5613 * grub-core/Makefile.core.def: Likewise.
5614
c8e7bf5f
VS
56152010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
5616
5617 Compress grub_prefix.
5618
5619 * grub-core/boot/i386/pc/lnxboot.S: Use
5620 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
5621 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
5622 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
5623 GRUB_MACHINE_PREFIX_END. All users updated.
5624 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
5625 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
5626 + 0x40.
5627 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
5628 * util/grub-mkimage.c (image_target_desc): Change data_end to
5629 prefix_end. All users updated.
5630
a7c00cdb
VS
56312010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
5632
5633 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
5634 value.
5635 (grub_openbsd_boot): Likewise.
5636 (grub_netbsd_boot): Likewise.
5637 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
5638 (grub_xnu_boot): Likewise.
5639
9f915872
VS
56402010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5641
5642 * configure.ac: Clean LIBS variable after tests.
5643
efa1bee7
CW
56442010-09-02 Colin Watson <cjwatson@ubuntu.com>
5645
5646 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
5647
61d720e5
VS
56482010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5649
5650 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
5651 echo if libdevmapper will be used.
5652
ef8e0ec8
IT
56532010-09-02 Ian Turner <Ian.Turner@deshaw.com>
5654
5655 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
5656 constant for the same file.
5657
03e261d8
VS
56582010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5659
5660 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
5661
c2a4eba6
CW
56622010-09-02 Colin Watson <cjwatson@ubuntu.com>
5663
5664 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
5665 grub-core/*.pp.
5666
9056cbf3
CW
56672010-09-02 Colin Watson <cjwatson@ubuntu.com>
5668
5669 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
5670 required by the boot protocol.
5671
5672 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
5673 ebp and edi members.
5674 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
5675 state.ebp and state.edi.
5676 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
5677 %ebp and %edi according to grub_relocator32_ebp and
5678 grub_relocator32_edi respectively.
5679 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
5680 and state.edi.
5681
529cc99a
VS
56822010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5683
5684 Add i386-pc-pxe image target.
5685
5686 * util/grub-mkimage.c (image_target_desc): New enum value
5687 IMAGE_I386_PC_PXE.
5688 (image_targets): New target i386-pc-pxe.
5689 (generate_image): Handle i386-pc-pxe image.
5690
9a093920
VS
56912010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
5692
5693 Fix grub_pxe_scan.
5694
5695 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
5696 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
5697 All users updated.
5698 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
5699 (grub_pxe_pxenv): Correct type.
5700
f9cefc4e
CW
57012010-09-01 Colin Watson <cjwatson@ubuntu.com>
5702
5703 * NEWS: Document most of the important changes since 1.98.
5704
4066f57f
CW
57052010-09-01 Colin Watson <cjwatson@ubuntu.com>
5706
5707 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
5708 generated manual page) a little.
5709
da2891f9
CW
57102010-09-01 Colin Watson <cjwatson@ubuntu.com>
5711
5712 * docs/grub.texi: Add myself as an author.
5713
ad717fae
VS
57142010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
5715
5716 * Makefile.util.def (libgrub.a): Add missing sunpc.
5717 Reported by: Seth Goldberg.
5718
eefe8abd
VS
57192010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5720
5721 Interrupt wrapping and code simplifications.
5722
9494ef9a
VS
5723 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
5724 x86_noieee1275 which are functionaly equivalent in this case.
5725 (grub-install): Make source on each platform explicit. Enable on
5726 all noemu.
5727 * gentpl.py (x86_efi_pc): Removed group.
5728 (x86_noefi): Likewise.
5729 (i386_noefi): Likewise.
5730 (x86_noieee1275): Likewise.
5731 (i386_noieee1275): Likewise.
5732 (i386_noefi_noieee1275): Likewise.
5733 (i386_pc_qemu_coreboot): Likewise.
5734 (i386_coreboot_multiboot): Likewise.
5735 (i386_pc_coreboot_multiboot_qemu): Likewise.
5736 (x86_noefi_mips): Likewise.
5737 (noieee1275): Likewise.
5738 (ieee1275_mips): Likewise.
5739 (noemu_noieee1275): Likewise.
5740 (cmos): New group.
5741 (usb): Likewise.
5742 (videoinkernel): Likewise.
5743 (videomodules): Likewise.
eefe8abd 5744 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
5745 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
5746 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
5747 include/grub/loader.h, include/grub/msdos_partition.h,
5748 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
5749 include/grub/machine/console.h, include/grub/machine/vga.h,
5750 include/grub/machine/vbe.h, include/grub/machine/init.h,
5751 include/grub/machine/kernel.h, include/grub/cpu/time.h,
5752 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 5753 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
5754 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
5755 * grub-core/Makefile.core.def (kernel): Explicit the source for
5756 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
5757 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
5758 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
5759 Use videoinkernel tag.
5760 (usb): Enable on all usb.
5761 (usbserial_common): Likewise.
5762 (usbserial_pl2303): Likewise.
5763 (usbserial_ftdi): Likewise.
5764 (uhci): Enable on all x86.
5765 (ohci): Enable on all pci.
5766 (cmostest): Enable on all CMOS.
5767 (acpi): Include commands/acpi.c on all platforms.
5768 (halt): Add relevant lib/*/halt.c.
5769 (hdparm): Enable on all pci.
5770 (lspci): Likewise.
5771 (usbtest): Enable on all usb.
5772 (ata): Enable on all pci.
5773 (ata_pthru): Likewise.
5774 (usbms): Enable on all usb.
5775 (usb_keyboard): Likewise.
5776 (font): Use tag videomodules.
5777 (bufio): Likewise.
5778 (datetime): Use tag cmos. Enable on all noemu.
5779 (mmap): Use tags common and x86.
5780 (gfxterm): Use tag videomodules.
5781 (bitmap): Likewise.
5782 (bitmap_scale): Likewise.
5783 (video_fb): Likewise.
5784 (video): Likewise.
5785 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
5786 adjust padding accordingly. All users updated.
5787 (grub_ohci_transaction): Fix bad format specification.
5788 (GRUB_MOD_INIT): Add asserts for struct size.
5789 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
5790 (grub_alloc_td): Likewise.
5791 (grub_free_queue): Likewise.
5792 (grub_uhci_transfer): Likewise.
5793 (grub_uhci_transaction): Fix bad format specification.
5794 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
5795 (grub_usb_bulk_readwrite): Likewise.
5796 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
5797 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
5798 Made static.
5799 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
5800 Made static.
5801 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
5802 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
5803 Transformed into C.
5804 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
5805 Moved from here ...
5806 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
5807 ... here. Transformed into C. Made static.
5808 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
5809 Moved from here ...
5810 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
5811 ... here. Transformed into C. Made static.
5812 * grub-core/kern/i386/pc/startup.S
5813 (grub_biosdisk_check_int13_extensions): Moved from here ...
5814 * grub-core/disk/i386/pc/biosdisk.c
5815 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
5816 Made static.
5817 * grub-core/kern/i386/pc/startup.S
5818 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
5819 * grub-core/disk/i386/pc/biosdisk.c
5820 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
5821 Transformed into C. Made static.
5822 * grub-core/kern/i386/pc/startup.S
5823 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
5824 * grub-core/disk/i386/pc/biosdisk.c
5825 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
5826 Transformed into C. Made static.
5827 * grub-core/kern/i386/pc/startup.S
5828 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
5829 * grub-core/disk/i386/pc/biosdisk.c
5830 (grub_biosdisk_get_diskinfo_standard): ... here.
5831 Transformed into C. Made static.
5832 * grub-core/kern/i386/pc/startup.S
5833 (grub_biosdisk_get_num_floppies): Moved from here ...
5834 * grub-core/disk/i386/pc/biosdisk.c
5835 (grub_biosdisk_get_num_floppies): ... here.
5836 Transformed into C. Made static.
5837 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
5838 New function.
5839 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
5840 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
5841 Transformed into C. Made static.
5842 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
5843 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
5844 Transformed into C. Made static.
5845 * grub-core/kern/i386/ieee1275/init.c: Removed.
5846 * grub-core/kern/i386/misc.S: Likewise.
5847 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
5848 Splitted from here ...
5849 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
5850 Transformed into C. Made static. All users updated.
5851 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
5852 Transformed into C. Made static. All users updated.
5853 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
5854 Moved from here...
5855 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
5856 Transformed into C. Made static. All users updated.
5857 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
5858 Moved from here...
5859 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
5860 Transformed into C. Made static. All users updated.
5861 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
5862 Removed (replaced by C version).
5863 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
5864 Moved from here...
5865 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
5866 Transformed into C. Made static.
5867 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
5868 Moved from here...
5869 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
5870 ... here. Transformed into C.
5871 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
5872 Moved from here...
5873 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
5874 ... here. Transformed into C.
5875 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
5876 Moved from here...
5877 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
5878 ... here. Transformed into C. Made static.
5879 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
5880 Moved from here...
5881 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
5882 ... here. Transformed into C.
21ed554b
VS
5883 * grub-core/kern/i386/pc/startup.S
5884 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
5885 * grub-core/video/i386/pc/vbe.c
5886 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
5887 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
5888 Moved from here...
5889 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
5890 ... here. Transformed into C.
5891 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
5892 Moved from here...
5893 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
5894 ... here. Transformed into C.
5895 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
5896 Moved from here...
5897 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
5898 ... here. Transformed into C.
5899 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
5900 Moved from here...
5901 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
5902 ... here. Transformed into C.
5903 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
5904 Moved from here...
5905 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
5906 ... here. Transformed into C. Made static.
5907 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
5908 Moved from here...
5909 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
5910 ... here. Transformed into C. Made static.
5911 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
5912 Moved from here...
5913 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
5914 ... here. Transformed into C. Made static.
5915 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
5916 pxe_rm_entry as third argument.
5917 (grub_bios_interrupt): New function.
5918 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
5919 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
5920 of calling grub_stop.
5921 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
5922 * grub-core/lib/efi/halt.c (grub_halt): ...here.
5923 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
5924 * grub-core/lib/emu/halt.c (grub_halt): ... here.
5925 * grub-core/lib/i386/halt.c: Moved from here ...
5926 * grub-core/lib/i386/halt.c: ... here.
5927 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
5928 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
5929 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
5930 grub_stop_floppy.
5931 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
5932 * include/grub/i386/coreboot/init.h: Removed.
5933 * include/grub/i386/multiboot/init.h: Likewise.
5934 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
5935 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
5936 * include/grub/i386/pc/int.h: New file.
5937 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
5938 (grub_pxe_scan): Removed.
5939 (grub_pxe_call): Update prototype.
5940 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
5941 prototypes.
5942 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
5943 * include/grub/i386/qemu/init.h: Removed.
5944 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
5945 noreturn.
5946 (grub_halt): Likewise.
5947 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
5948 (grub_reboot): Likewise.
5949 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
5950 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
5951 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
5952
215dd471
RM
59532010-08-30 Robert Millan <rmh@gnu.org>
5954
5955 * NEWS: Document addition of ZFS support in `grub-install' and
5956 `grub-mkconfig'.
5957
ebd65b82
BC
59582010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
5959
5960 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
5961 dprintf output.
5962
11721d19
VS
59632010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5964
5965 Remove leftover embedding of font objects.
5966
5967 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
5968 * util/grub-install.in (font): Removed.
5969 * util/grub-mkimage.c (generate_image): Remove font support. All users
5970 updated.
5971
37837d4e
VS
59722010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5973
5974 Remove leftover embedding of font objects.
5975
5976 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
5977 * util/grub-install.in (font): Removed.
5978 * util/grub-mkimage.c (generate_image): Remove font support. All users
5979 updated.
5980
b4c1aae0
VS
59812010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5982
5983 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 5984 Reported by: Ian Turner
b4c1aae0 5985
8920a08d
VS
59862010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5987
5988 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
5989 timeout to avoid indefinite boot stalling.
5990
f21db033
VS
59912010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5992
5993 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
5994 (grub_env_write_color_highlight): Likewise.
5995
9a9de209
VS
59962010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
5997
5998 * grub-core/normal/term.c (print_more): Return to normal and not
5999 to standard state after printing "---MORE---".
6000
3dca01d7
VS
60012010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
6002
6003 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
6004 Mask out the bit 0x80 since it has other meaning that specifiing color.
6005
0b986c40
VS
60062010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6007
6008 New relocator. Allows for more kernel support and more straightforward
6009 loader writing.
6010
6011 * Makefile.am (BOOTTARGET): New variable.
6012 (QEMU32): Likewise.
6013 (linux.init.x86_64): New target.
6014 (linux.init.i386): Likewise.
6015 (multiboot.elf): Likewise.
6016 (kfreebsd.elf): Likewise.
6017 (kfreebsd.aout): Likewise.
6018 (pc-chainloader.elf): Likewise.
6019 (pc-chainloader.bin): Likewise.
6020 (ntldr.elf): Likewise.
6021 (ntldr.bin): Likewise.
6022 (multiboot2.elf): Likewise.
6023 (kfreebsd.init.x86_64): Likewise.
6024 (kfreebsd.init.i386): Likewise.
6025 (knetbsd.init.i386): Likewise.
6026 (kopenbsd.init.i386): Likewise.
6027 (knetbsd.init.x86_64): Likewise.
6028 (kopenbsd.init.x86_64): Likewise.
6029 (linux-initramfs.i386): Likewise.
6030 (linux-initramfs.x86_64): Likewise.
6031 (kfreebsd-mfsroot.i386.img): Likewise.
6032 (knetbsd.image.i386): Likewise.
6033 (kopenbsd.image.i386): Likewise.
6034 (kopenbsd.image.x86_64): Likewise.
6035 (knetbsd.miniroot-image.i386.img): Likewise.
6036 (kfreebsd-mfsroot.x86_64.img): Likewise.
6037 (knetbsd.image.x86_64): Likewise.
6038 (knetbsd.miniroot-image.x86_64.img): Likewise.
6039 (kfreebsd-mfsroot.i386.gz): Likewise.
6040 (bootcheck-kfreebsd-i386): Likewise.
6041 (kfreebsd-mfsroot.x86_64.gz): Likewise.
6042 (bootcheck-kfreebsd-x86_64): Likewise.
6043 (knetbsd.miniroot-image.i386.gz): Likewise.
6044 (bootcheck-knetbsd-i386): Likewise.
6045 (bootcheck-kopenbsd-i386): Likewise.
6046 (bootcheck-kopenbsd-x86_64): Likewise.
6047 (knetbsd.miniroot-image.x86_64.gz): Likewise.
6048 (bootcheck-knetbsd-x86_64): Likewise.
6049 (bootcheck-linux-i386): Likewise.
6050 (bootcheck-linux-x86_64): Likewise.
6051 (bootcheck-linux16-i386): Likewise.
6052 (bootcheck-linux16-x86_64): Likewise.
6053 (bootcheck-multiboot): Likewise.
6054 (bootcheck-multiboot2): Likewise.
6055 (bootcheck-kfreebsd-aout): Likewise.
6056 (bootcheck-pc-chainloader): Likewise.
6057 (bootcheck-ntldr): Likewise.
6058 (CLEANFILES): Add new targets.
6059 (BOOTCHECKS): New variable.
6060 (.PHONY): Add bootchecks.
6061 (SUCCESSFUL_BOOT_STRING): New variable.
6062 (BOOTCHECK_TIMEOUT): Likewise.
6063 (bootcheck): New target
6064 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
6065 * configure.ac: Correct efiemu excuse.
6066 * docs/grub.texi (Supported kernels): New chapter.
6067 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
6068 include/grub/mm_private.h. Simplify inclusion of
6069 include/grub/boot.h, include/grub/loader.h
6070 and include/grub/msdos_partition.h
6071 (KERNEL_HEADER_FILES) [i386_coreboot]:
6072 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
6073 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
6074 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
6075 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
6076 include/grub/machine/loader.h.
6077 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
6078 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
6079 extra_dist.
6080 (pci.mod): Enable on i386-multiboot.
6081 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
6082 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
6083 i386-qemu.
6084 (relocator.mod): Rewritten.
6085 (aout.mod): Enable on all x86.
6086 (bsd.mod): Likewise.
6087 (ntldr.mod): New module.
6088 (linux.mod): Use loader/i386/linux.c on all x86.
6089 (xnu.mod): Enable on all x86.
6090 (vga_text.mod): disable on EFI and QEMU.
6091 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
6092 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
6093 * grub-core/efiemu/loadcore.c: Likewise.
6094 * grub-core/efiemu/main.c: Likewise.
6095 (grub_efiemu_exit_boot_services): Removed.
6096 (grub_efiemu_finish_boot_services): Likewise.
6097 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
6098 function.
6099 * grub-core/efiemu/i386/nocfgtables.c: New file.
6100 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
6101 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
6102 (grub_efi_finish_boot_services): Moved from here ...
6103 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
6104 Fille finish memory map and related data.
6105 (finish_mmap_buf): New variable.
6106 (grub_efi_uintn_t finish_mmap_size): Likewise.
6107 (grub_efi_uintn_t finish_key): Likewise.
6108 (grub_efi_uintn_t finish_desc_size): Likewise.
6109 (grub_efi_uint32_t finish_desc_version): Likewise.
6110 (grub_efi_is_finished): Likewise.
6111 (grub_efi_get_memory_map): Use saved memory map if EFI is already
6112 finished.
6113 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
6114 (grub_elf64_phdr_iterate): Likewise.
6115 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
6116 (grub_os_area_size): Likewise.
6117 (grub_machine_init): Don't reserve os area.
6118 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
6119 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
6120 * grub-core/kern/i386/loader.S: Removed.
6121 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
6122 (grub_os_area_size): Likewise.
6123 (grub_machine_init): Don't reserve os area.
6124 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
6125 Don't call grub_dl_unload_all.
6126 Don't include loader.S.
6127 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
6128 Declare the memory after _end as available.
6129 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 6130 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 6131 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
6132 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
6133 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
6134 * include/grub/mm_private.h (grub_mm_header): ... here.
6135 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
6136 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
6137 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
6138 (grub_mm_region): ..here. Removed addr. Added pre_size.
6139 All users updated.
6140 * grub-core/kern/mm.c (base): Renamed to ...
6141 (grub_mm_base): ... this. Made global.
6142 (grub_real_malloc): Alloc from end of region.
6143 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
6144 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
6145 * grub-core/kern/powerpc/cache_flush.S: ... here.
6146 * grub-core/lib/efi/relocator.c: New file.
6147 * grub-core/lib/i386/relocator.c: Rewritten.
6148 * grub-core/lib/i386/relocator16.S: New file.
6149 * grub-core/lib/i386/relocator32.S: Likewise.
6150 * grub-core/lib/i386/relocator64.S: Likewise.
6151 * grub-core/lib/i386/relocator_asm.S: Rewritten.
6152 * grub-core/lib/i386/relocator_common.S: New file.
6153 * grub-core/lib/ieee1275/relocator.c: Likewise.
6154 * grub-core/lib/mips/relocator.c: Rewritten.
6155 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
6156 stylistic adjustments.
6157 * grub-core/lib/powerpc/relocator.c: New file.
6158 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
6159 * grub-core/lib/relocator.c: Rewritten.
6160 * grub-core/lib/x86_64/relocator_asm.S: New file.
6161 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
6162 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
6163 (bsd_tag): New struct.
6164 (tags): New variable.
6165 (tags_last): Likewise.
6166 (netbsd_module): New struct.
6167 (netbsd_mods): New variable.
6168 (netbsd_mods_last): Likewise.
6169 (openbsd_opts): New parameter "serial".
6170 (OPENBSD_SERIAL_ARG): New definition.
6171 (netbsd_opts): New parameter "serial".
6172 (NETBSD_SERIAL_ARG): New definition.
6173 (grub_freebsd_add_meta): Reorganised into ...
6174 (grub_bsd_add_meta): ...this. All users updated.
6175 (grub_freebsd_add_mmap): Reorganised into ...
6176 (generate_e820_mmap): ...this...
6177 (grub_bsd_add_mmap): ...and this. All users updated.
6178 (grub_freebsd_list_modules): Use tags.
6179 (grub_netbsd_add_meta_module): New function.
6180 (grub_netbsd_list_modules): Likewise.
6181 (grub_freebsd_boot): Use relocator and finish EFI.
6182 (grub_openbsd_boot): Likewise.
6183 (grub_netbsd_setup_video): New function.
6184 (grub_netbsd_add_modules): Likewise.
6185 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
6186 and finish EFI.
6187 (grub_bsd_unload): Unload tags.
6188 (grub_bsd_load_aout): Use relocator.
6189 (grub_bsd_elf32_size_hook): New function.
6190 (grub_bsd_elf32_hook): Use relocator.
6191 (grub_bsd_elf64_size_hook): New function.
6192 (grub_bsd_elf64_hook): Use relocator.
6193 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
6194 (grub_bsd_load): Zero-out openbsd_ramdisk.
6195 (grub_bsd_load): Use relocator.
6196 (grub_cmd_openbsd): Support serial.
6197 (grub_cmd_netbsd): Support modules.
6198 (grub_cmd_freebsd_module): Use relocator.
6199 (grub_netbsd_module_load): New function.
6200 (grub_cmd_netbsd_module): Likewise.
6201 (grub_cmd_openbsd_ramdisk): Likewise.
6202 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
6203 kopenbsd_ramdisk.
6204 (GRUB_MOD_FINI): Unregister new commands.
6205 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
6206 (grub_freebsd_load_elfmodule_obj): Use relocator.
6207 (grub_freebsd_load_elfmodule): Likewise.
6208 (grub_freebsd_load_elf_meta): Likewise.
6209 (grub_netbsd_load_elf_meta): New function.
6210 (grub_openbsd_find_ramdisk): Likewise.
6211 * grub-core/loader/i386/bsd_helper.S: Removed.
6212 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
6213 * grub-core/loader/i386/bsd_trampoline.S: Removed.
6214 * grub-core/loader/i386/efi/linux.c: Likewise.
6215 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
6216 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
6217 (DEFAULT_VIDEO_MODE): Likewise.
6218 (real_mode_target): New variable.
6219 (prot_mode_target): Likewise.
6220 (initrd_mem_target): Likewise.
6221 (relocator): Likewise.
6222 (efi_mmap_buf): Likewise.
6223 (efi_mmap_size): Likewise.
6224 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
6225 (free_pages): Use relocator.
6226 (allocate_pages): Account for efi_mmap and use relocator. Return error.
6227 (grub_linux_setup_video): Return error.
6228 (grub_linux_trampoline_start): Removed.
6229 (grub_linux_trampoline_end): Likewise.
6230 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
6231 andd video parameters depending on firmware.
6232 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
6233 [GRUB_MACHINE_EFI]: Pass EFI parameters.
6234 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
6235 (grub_cmd_initrd): Use relocator.
6236 * grub-core/loader/i386/linux_trampoline.S: Removed.
6237 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
6238 (elf_sec_entsize): Likewise.
6239 (elf_sec_shstrndx): Likewise.
6240 (elf_sections): Likewise.
6241 (grub_multiboot_load): Use relocator.
6242 (grub_multiboot_get_mbi_size): Account for sections.
6243 (grub_multiboot_make_mbi): Use relocator and support sections.
6244 (grub_multiboot_add_elfsyms): New function.
6245 (grub_multiboot_free_mbi): Free sections.
6246 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
6247 (grub_linux_real_target): Likewise.
6248 (grub_linux_real_chunk): Likewise.
6249 (grub_linux16_prot_size): Likewise.
6250 (grub_linux16_boot): Use relocator.
6251 (grub_linux_unload): Unload relocator.
6252 (grub_cmd_linux): Use relocator.
6253 (grub_cmd_initrd): Likewise.
6254 * grub-core/loader/i386/pc/ntldr.c: New file.
6255 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
6256 Don't try to guess CPU frequency.
6257 (grub_xnu_set_video): Stretch bitmap.
6258 (grub_xnu_boot): Use relocator.
6259 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
6260 (grub_linux_unload): Free relocator.
6261 (grub_linux_load32): Use relocator.
6262 (grub_linux_load64): Likewise.
6263 (grub_cmd_initrd): Likewise.
6264 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
6265 (grub_multiboot_unload): Unload relocator.
6266 (grub_cmd_multiboot): Use relocator.
6267 (grub_cmd_module): Likewise.
6268 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
6269 Use relocator and support sections.
6270 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
6271 (elf_sec_entsize): Likewise.
6272 (elf_sec_shstrndx): Likewise.
6273 (elf_sections): Likewise.
6274 (grub_multiboot_load): Use relocator.
6275 (grub_multiboot_get_mbi_size): Account for sections.
6276 (grub_multiboot_make_mbi): Use relocator and support sections.
6277 (grub_multiboot_add_elfsyms): New function.
6278 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
6279 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
6280 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
6281 Prototype changed. All users updated.
6282 (grub_xnu_align_heap): Simplified.
6283 (grub_xnu_writetree_toheap): Likewise.
6284 (grub_xnu_unload): Unload relocator.
6285 (grub_cmd_xnu_kernel): Use relocator.
6286 (grub_cmd_xnu_kernel64): Likewise.
6287 (grub_xnu_register_memory): Simplified.
6288 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
6289 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
6290 EFI is finished.
6291 (grub_console_checkkey): Likewise.
6292 (grub_console_getkey): Likewise.
6293 (grub_console_getwh): Likewise.
6294 (grub_console_getxy): Likewise.
6295 (grub_console_gotoxy): Likewise.
6296 (grub_console_cls): Likewise.
6297 (grub_console_setcolorstate): Likewise.
6298 (grub_console_setcursor): Likewise.
6299 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
6300 * grub-core/tests/boot/kbsd.init-i386.S: New file.
6301 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
6302 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
6303 * grub-core/tests/boot/kernel-8086.S: Likewise.
6304 * grub-core/tests/boot/kernel-i386.S: Likewise.
6305 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
6306 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
6307 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
6308 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
6309 * grub-core/tests/boot/knetbsd.cfg: Likewise.
6310 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
6311 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
6312 * grub-core/tests/boot/linux.cfg: Likewise.
6313 * grub-core/tests/boot/linux.init-i386.S: Likewise.
6314 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
6315 * grub-core/tests/boot/linux16.cfg: Likewise.
6316 * grub-core/tests/boot/multiboot.cfg: Likewise.
6317 * grub-core/tests/boot/multiboot2.cfg: Likewise.
6318 * grub-core/tests/boot/ntldr.cfg: Likewise.
6319 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
6320 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
6321 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
6322 New definition.
6323 * include/grub/dl.h (grub_dl_unload_all): Removed.
6324 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
6325 (grub_efi_finish_boot_services): Change prototype.
6326 (grub_efi_is_finished): New variable.
6327 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
6328 Changed prototype.
6329 (grub_efiemu_finish_boot_services): Removed.
6330 (grub_machine_efiemu_init_tables): New prototype.
6331 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
6332 (grub_elf64_phdr_iterate): Likewise.
6333 * include/grub/i386/bsd.h: Include relocator.h.
6334 (freebsd_tag_header): New struct.
6335 (grub_openbsd_bios_mmap): Removed.
6336 (grub_unix_real_boot): Removed.
6337 (grub_freebsd_load_elfmodule32): Changed prototype.
6338 (grub_freebsd_load_elfmodule_obj64): Likewise.
6339 (grub_freebsd_load_elf_meta32): Likewise.
6340 (grub_freebsd_load_elf_meta64): Likewise.
6341 (grub_freebsd_add_meta): Removed.
6342 (grub_netbsd_load_elf_meta32): New prototype.
6343 (grub_netbsd_load_elf_meta64): Likewise.
6344 (grub_bsd_add_meta): Likewise.
6345 (grub_openbsd_ramdisk_descriptor): New struct.
6346 (grub_openbsd_find_ramdisk32): New prototype.
6347 (grub_openbsd_find_ramdisk64): Likewise.
6348 * include/grub/i386/coreboot/loader.h: Removed.
6349 * include/grub/i386/efi/loader.h: Likewise.
6350 * include/grub/i386/ieee1275/loader.h: Likewise.
6351 * include/grub/i386/linux.h (linux_kernel_header): Change void *
6352 to grub_uint32_t.
6353 * include/grub/i386/loader.h: Removed.
6354 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
6355 value.
6356 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
6357 (grub_phys_addr_t): New type.
6358 (grub_vtop): New inline function.
6359 (grub_map_memory): Likewise.
6360 (grub_unmap_memory): Likewise.
6361 * include/grub/i386/multiboot/loader.h: Removed.
6362 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
6363 (NETBSD_BTINFO_CONSOLE): New definition.
6364 (NETBSD_BTINFO_SYMTAB): Likewise.
6365 (NETBSD_BTINFO_MODULES): Likewise.
6366 (NETBSD_BTINFO_FRAMEBUF): Likewise.
6367 (grub_netbsd_bootinfo): New struct.
6368 (grub_netbsd_btinfo_common): Use explicit bitsize.
6369 (grub_netbsd_btinfo_mmap_entry): Removed.
6370 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
6371 (grub_netbsd_btinfo_bootdisk): New struct.
6372 (grub_netbsd_btinfo_symtab): Likewise.
6373 (grub_netbsd_btinfo_serial): Likewise.
6374 (grub_netbsd_btinfo_modules): Likewise.
6375 (grub_netbsd_btinfo_framebuf): Likewise.
6376 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
6377 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
6378 Likewise.
6379 (grub_openbsd_bootargs): Use explicit bitsize.
6380 (grub_openbsd_bootarg_console): New struct.
6381 (GRUB_OPENBSD_COM_MAJOR): New definition.
6382 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
6383 * include/grub/i386/pc/efiemu.h: Removed.
6384 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
6385 * include/grub/i386/qemu/loader.h: Removed.
6386 * include/grub/i386/relocator.h: Rewritten.
6387 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
6388 * include/grub/mips/memory.h: New file.
6389 * include/grub/mips/multiboot.h: Rewritten.
6390 * include/grub/mips/relocator.h: Rewritten.
6391 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
6392 (grub_vtop): New function.
6393 (grub_map_memory): Likewise.
6394 (grub_unmap_memory): Likewise.
6395 * include/grub/misc.h (ALIGN_DOWN): New definition.
6396 * include/grub/mm.h (grub_mm_check_real): New proto.
6397 (GRUB_MM_CHECK): New definition.
6398 * include/grub/mm_private.h: New file.
6399 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
6400 (grub_multiboot_get_mbi_size): Removed.
6401 (grub_multiboot_make_mbi): Change prottype.
6402 (grub_multiboot_set_accepts_video): New proto.
6403 (grub_multiboot_add_elfsyms): Likewise.
6404 (grub_multiboot_payload_eip): New variable.
6405 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
6406 New prototype.
6407 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
6408 New definition.
6409 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
6410 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
6411 * include/grub/powerpc/ieee1275/loader.h: Removed.
6412 * include/grub/powerpc/memory.h: New file.
6413 * include/grub/powerpc/relocator.h: Likewise.
6414 * include/grub/relocator.h: Likewise.
6415 * include/grub/relocator_private.h: Likewise.
6416 * include/grub/sparc64/ieee1275/loader.h: Removed.
6417 * include/grub/x86_64/memory.h: New file.
6418 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
6419 (grub_xnu_heap_malloc): Likewise.
6420 (grub_xnu_heap_real_start): Removed.
6421 (grub_xnu_heap_start): Likewise.
6422 (grub_xnu_relocator): New variable.
6423 (grub_xnu_heap_target_start): Likewise.
6424 * tests/util/grub-shell.in: Support non-pc.
6425 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 6426
5303b85d
VS
64272010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6428
6429 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
6430 on malloc error.
6431 (grub_bidi_logical_to_visual): Check that malloc succeded.
6432 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
6433 puts.
6434 (grub_xputs_normal): Likewise.
6435
d768d159
VS
64362010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6437
6438 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
6439 extra_dist.
6440
64412010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6442
6443 * grub-core/efiemu/runtime/efiemu.sh: Removed.
6444
5bf84df4
VS
64452010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6446
6447 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
6448
3626810e
VS
64492010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
6450
6451 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
6452 dprintf.
6453
a7363f53
BC
64542010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
6455
6456 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
6457
902f75f6
VS
64582010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6459
6460 * grub-core/normal/term.c (print_more): Fix a memory leak.
6461 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
6462 (grub_xputs_normal): Likewise.
6463
3c707967
VS
64642010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6465
6466 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
6467 the begining of the string
6468
2053cc07
VS
64692010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6470
6471 * grub-core/script/script.c (grub_script_parse): Free parsed on
6472 failure.
6473
46422ebf
VS
64742010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6475
6476 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
6477 on failure.
6478
9e0fa3f6
VS
64792010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6480
6481 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
6482 return.
6483
3393cf16
VS
64842010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6485
6486 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
6487 (scroll_up): Fix a memory leak.
6488
b17540cb
VS
64892010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
6490
6491 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
6492 errors.
6493
67140446
VS
64942010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
6495
6496 Handle USB pendrives exposed as floppies.
6497
6498 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
6499 floppy.
6500 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
6501 Check for partitions on all devices.
6502
e35e46fc
VS
65032010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
6504
6505 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
6506 (readkey): Likewise.
6507
d24c6190
BC
65082010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
6509
6510 Multiple variable names support to "export" command.
6511
6512 * normal/context.c (grub_cmd_export): "export" command supports
6513 multiple variable names.
6514
04ddcc6a
ST
65152010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
6516
6517 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
6518 --target=drive output to Mach device name.
6519
0c8b61d8
BC
65202010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
6521
6522 New Automake based build system for GRUB.
6523
6524 * ABOUT-NLS: New file.
6525 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
6526 in Makefile.util.def file.
6527 * Makefile.util.def: New file. Autogen build definitions file for
6528 GRUB host utils.
6529 * conf/Makefile.common: New file. Common variables for GRUB host
6530 utils and target modules.
6531 * conf/Makefile.extra-dist: New file. Extra files for make dist.
6532 * docs/Makefile.am: New file. Automake file for docs.
6533 * gentpl.py: New file. Python script to generate Autogen
6534 template.
6535 * grub-core/Makefile.am: New file. GRUB target modules' rules
6536 that doesn't fit in Makefile.core.def file.
6537 * grub-core/Makefile.core.def: New file. Autogen build
6538 definitions file for GRUB target modules.
6539 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
6540 specific setjmp.S file.
6541 * po/Makefile.am: New file.
6542
6543 * .bzrignore: New ignores.
6544 * INSTALL: New requirements, without Ruby.
6545 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
6546 * autogen.sh: Updated to invoke autogen as necessary.
6547 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
6548 and defines for Automake conditionals.
6549 * geninit.sh: Refactoring.
6550
6551 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
6552 necessary.
6553 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
6554 New prototype.
6555
6556 * include/grub/test.h: Fix functional test modules' naming.
6557 * grub-core/tests/example_functional_test.c: Fix test module name.
6558
6559 * util/misc.c: Hosted versions' of grub functions for libgrub.a
6560 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
6561 * util/grub-editenv.c: Likewise.
6562 * util/grub-fstest.c: Likewise.
6563 * util/grub-mkdevicemap.c: Likewise.
6564 * util/grub-mkfont.c: Likewise.
6565 * util/grub-mkimage.c: Likewise.
6566 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6567 * util/grub-probe.c: Likewise.
6568 * util/grub-script-check.c: Likewise.
6569 * util/i386/pc/grub-setup.c: Likewise.
6570 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6571
6572 * tests/util/grub-shell.in: Fix override directory path.
6573 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
6574 * util/import_gcry.py: Create Makefile.gcry.def file instead.
6575
6576 * util/lvm.c: Update #includes.
6577 * util/raid.c: Likewise.
6578 * util/resolve.c: Likewise.
6579 * grub-core/bus/emu/pci.c: Likewise.
6580 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
6581 * grub-core/lib/posix_wrap/string.h: Likewise.
6582 * grub-core/kern/emu/main.c: Likewise.
6583
6584 * grub-core/gensymlist.sh: New file. Script for generating kernel
6585 symbols file.
6586 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
6587
6588 * grub-core/gentrigtables.c: Fix unused variable warnings.
6589
6590 * Makefile.in: Removed.
6591 * conf/any-emu.rmk: Removed.
6592 * conf/common.rmk: Removed.
6593 * conf/i386-coreboot.rmk: Removed.
6594 * conf/i386-efi.rmk: Removed.
6595 * conf/i386-ieee1275.rmk: Removed.
6596 * conf/i386-multiboot.rmk: Removed.
6597 * conf/i386-pc.rmk: Removed.
6598 * conf/i386-qemu.rmk: Removed.
6599 * conf/i386.rmk: Removed.
6600 * conf/mips-yeeloong.rmk: Removed.
6601 * conf/mips.rmk: Removed.
6602 * conf/powerpc-ieee1275.rmk: Removed.
6603 * conf/sparc64-ieee1275.rmk: Removed.
6604 * conf/tests.rmk: Removed.
6605 * conf/x86-efi.rmk: Removed.
6606 * conf/x86_64-efi.rmk: Removed.
6607 * gendistlist.sh: Removed.
6608 * geninitheader.sh: Removed.
6609 * genkernsyms.sh.in: Removed.
6610 * genmk.rb: Removed.
6611 * gensymlist.sh.in: Removed.
6612 * mkinstalldirs: Removed.
6613 * boot: Moved ...
6614 * grub-core/boot: ... to here.
6615 * bus: Moved ...
6616 * grub-core/bus: ... to here.
6617 * commands: Moved ...
6618 * grub-core/commands: ... to here.
6619 * disk: Moved ...
6620 * grub-core/disk: ... to here.
6621 * efiemu: Moved ...
6622 * grub-core/efiemu: ... to here.
6623 * font: Moved ...
6624 * grub-core/font: ... to here.
6625 * fs: Moved ...
6626 * grub-core/fs: ... to here.
6627 * gencmdlist.sh: Moved ...
6628 * grub-core/gencmdlist.sh: ... to here.
6629 * genemuinit.sh: Moved ...
6630 * grub-core/genemuinit.sh: ... to here.
6631 * genemuinitheader.sh: Moved ...
6632 * grub-core/genemuinitheader.sh: ... to here.
6633 * genfslist.sh: Moved ...
6634 * grub-core/genfslist.sh: ... to here.
6635 * genhandlerlist.sh: Moved ...
6636 * grub-core/genhandlerlist.sh: ... to here.
6637 * genmoddep.awk: Moved ...
6638 * grub-core/genmoddep.awk: ... to here.
6639 * genmodsrc.sh: Moved ...
6640 * grub-core/genmodsrc.sh: ... to here.
6641 * genpartmaplist.sh: Moved ...
6642 * grub-core/genpartmaplist.sh: ... to here.
6643 * genparttoollist.sh: Moved ...
6644 * grub-core/genparttoollist.sh: ... to here.
6645 * genterminallist.sh: Moved ...
6646 * grub-core/genterminallist.sh: ... to here.
6647 * gentrigtables.c: Moved ...
6648 * grub-core/gentrigtables.c: ... to here.
6649 * genvideolist.sh: Moved ...
6650 * grub-core/genvideolist.sh: ... to here.
6651 * gettext: Moved ...
6652 * grub-core/gettext: ... to here.
6653 * gfxmenu: Moved ...
6654 * grub-core/gfxmenu: ... to here.
6655 * gnulib: Moved ...
6656 * grub-core/gnulib: ... to here.
6657 * hello: Moved ...
6658 * grub-core/hello: ... to here.
6659 * hook: Moved ...
6660 * grub-core/hook: ... to here.
6661 * io: Moved ...
6662 * grub-core/io: ... to here.
6663 * kern: Moved ...
6664 * grub-core/kern: ... to here.
6665 * lib: Moved ...
6666 * grub-core/lib: ... to here.
6667 * loader: Moved ...
6668 * grub-core/loader: ... to here.
6669 * mmap: Moved ...
6670 * grub-core/mmap: ... to here.
6671 * normal: Moved ...
6672 * grub-core/normal: ... to here.
6673 * partmap: Moved ...
6674 * grub-core/partmap: ... to here.
6675 * parttool: Moved ...
6676 * grub-core/parttool: ... to here.
6677 * script: Moved ...
6678 * grub-core/script: ... to here.
6679 * term: Moved ...
6680 * grub-core/term: ... to here
6681 * tests/example_functional_test.c: Moved ...
6682 * grub-core/tests/example_functional_test.c: ... to here.
6683 * tests/lib/functional_test.c: Moved ...
6684 * grub-core/tests/lib/functional_test.c: ... to here.
6685 * tests/lib/test.c: Moved ...
6686 * grub-core/tests/lib/test.c: ... to here.
6687 * video: Moved ...
6688 * grub-core/video: ... to here.
6689
645586e6
BC
66902010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
6691
6692 Replace --enable-grub-emu-modules with grub-emu-lite.
6693
6694 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
6695 cache.S.
6696
6697 * include/grub/emu/misc.h (grub_emu_init): New prototype.
6698 * kern/emu/full.c: New file. For grub-emu specific initialization.
6699 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
6700 * kern/emu/main.c: Call initialization function grub_emu_init.
6701
6702 * Makefile.in: Include grub-emu-lite in install.
6703 * commands/parttool.c: Use grub_no_autoload to differentiate
6704 between grub-emu and grub-emu-lite.
6705 * include/grub/misc.h: New variable grub_no_autoload.
6706
6707 * conf/any-emu.rmk: New rules for grub-emu-lite.
6708 * configure.ac: Remove --enable-grub-emu-modules.
6709 * genmk.rb: Cleanup unnecessary rules.
6710 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
6711
6712 * normal/main.c: Don't load list files on grub-emu-lite.
6713 * util/misc.c (grub_arch_sync_caches): Removed.
6714
f86a4030
CW
67152010-08-23 Colin Watson <cjwatson@ubuntu.com>
6716
6717 * kern/mips/startup.S (grub_prefix): Update comment to refer to
6718 grub-mkimage rather than grub-mkelfimage.
6719 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
6720
06776944
VS
67212010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
6722
6723 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
6724 a key after CapsLock or NumLock. It's just a qemu bug.
6725
df262419
VS
67262010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
6727
6728 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
6729 needed by libusb wrapper.
6730
b40ea81b
ST
67312010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
6732
6733 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
6734
dee50575
VS
67352010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
6736
6737 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
6738 --nounzip is passed.
6739
fb1d7b79
VS
67402010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
6741
6742 USB hotunplugging and USB serial support.
6743
6744 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
6745 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
6746 (grub_uhci_transfer): Respect timeout and set *actual.
6747 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
6748 non-standard length.
6749 (grub_usb_device_attach): Autoload modules.
6750 (GRUB_MOD_INIT): Set grub_term_poll_usb.
6751 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
6752 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
6753 users updated.
6754 (grub_usb_add_hub): Fill nports and children.
6755 (attach_root_port): Receive hub instead of controller.
6756 All users updated. Fill hub->devices.
6757 (grub_usb_root_hub): Allocate hub->devices.
6758 (detach_device): New function.
6759 (poll_nonroot_hub): Fill children and detach devices.
6760 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
6761 actual arguments. All users updated.
6762 (grub_usb_bulk_read_extended): New function.
6763 * bus/usb/serial/common.c: New file.
6764 * bus/usb/serial/ftdi.c: Likewise.
6765 * bus/usb/serial/pl2303.c: Likewise.
6766 * commands/terminal.c (handle_command): Support wildcard.
6767 * commands/usbtest.c: Output "Unknown" instead of empty string.
6768 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
6769 (usbserial_common_mod_SOURCES): New variable.
6770 (usbserial_common_mod_CFLAGS): Likewise.
6771 (usbserial_common_mod_LDFLAGS): Likewise.
6772 (pkglib_MODULES): Add usbserial_pl2303.mod.
6773 (usbserial_pl2303_mod_SOURCES): New variable.
6774 (usbserial_pl2303_mod_CFLAGS): Likewise.
6775 (usbserial_pl2303_mod_LDFLAGS): Likewise.
6776 (pkglib_MODULES): Add usbserial_ftdi.mod.
6777 (usbserial_ftdi_mod_SOURCES): New variable.
6778 (usbserial_ftdi_mod_CFLAGS): Likewise.
6779 (usbserial_ftdi_mod_LDFLAGS): Likewise.
6780 (pkglib_MODULES): Add serial.mod.
6781 (serial_mod_SOURCES): New variable.
6782 (serial_mod_CFLAGS): Likewise.
6783 (serial_mod_LDFLAGS): Likewise.
6784 * conf/i386-pc.rmk: Likewise.
6785 * conf/mips-yeeloong.rmk: Likewise.
6786 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
6787 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
6788 * disk/usbms.c (first_available_slot): New variable.
6789 (grub_usbms_attach): Don't reuse free slots due to potential cache
6790 problems.
6791 * include/grub/serial.h: Moved to ..
6792 * include/grub/ns8250.h: ...this.
6793 * include/grub/serial.h: New file.
6794 * include/grub/term.h (grub_term_poll_usb): New variable.
6795 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
6796 readkey. All users updated.
6797 (grub_terminfo_output_state): Pass term to put.
6798 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
6799 (grub_usb_controller_dev): Add timeout and actual arguments to
6800 transfer. All users updated.
6801 (grub_usb_interface): New field detach_data.
6802 (grub_usb_device): New fields children and nports.
6803 (grub_usb_ep_type_t): New type.
6804 (grub_usb_get_ep_type): New function.
6805 (grub_usb_bulk_read_extended): Likewise.
6806 * include/grub/usbdesc.h (grub_usb_desc): New type.
6807 * include/grub/usbserial.h: New file.
6808 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
6809 * kern/term.c (grub_term_poll_usb): New variable.
6810 (grub_getkey): Call grub_term_poll_usb if set.
6811 (grub_checkkey): Likewise.
6812 (grub_getkeystatus): Likewise.
6813 * term/serial.c: Moved controller-specific parts to ...
6814 * term/ns8250.c: ... here.
6815 * term/serial.c: Mostly rewritten.
6816 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
6817 according to spec.
6818
21a313de
RM
68192010-08-20 Robert Millan <rmh@gnu.org>
6820
6821 Make kFreeBSD code more generic to support ext2fs as root, ufs as
6822 a separate module and maybe other interesting combinations.
6823
6824 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
6825 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
6826 (kfreebsd_entry): Add generic filesystem module load routine.
6827 Map GRUB `ext2' to kFreeBSD `ext2fs'.
6828
63c734a6
CW
68292010-08-20 Colin Watson <cjwatson@ubuntu.com>
6830
6831 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
6832 "numcenter" (I misunderstood the purpose of this entry).
6833 * docs/grub.texi (sendkey): Likewise.
6834
c4d16542
CW
68352010-08-20 Colin Watson <cjwatson@ubuntu.com>
6836
6837 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
6838 status flag options; simply omitting the option is equivalent and
6839 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
6840 (keysym_table): Rename "num5numlock" to "numlock".
6841 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
6842 can uniformly say that only the last of multiple `sendkey'
6843 invocations has any effect.
6844 * docs/grub.texi (sendkey): New section.
6845
93541d66
CW
68462010-08-19 Colin Watson <cjwatson@ubuntu.com>
6847
6848 * commands/i386/pc/sendkey.c (options): Fix three typos.
6849
b4ece5e1
VS
68502010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
6851
6852 Implement sendkey support.
6853
6854 * commands/i386/pc/sendkey.c: New file.
6855 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
6856 (sendkey_mod_SOURCES): New variable.
6857 (sendkey_mod_CFLAGS): Likewise.
6858 (sendkey_mod_LDFLAGS): Likewise.
6859
51f1f5af
CW
68602010-08-18 Colin Watson <cjwatson@ubuntu.com>
6861
6862 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
6863 fix warnings from Autoconf.
6864
9da94e05
CW
68652010-08-18 Colin Watson <cjwatson@ubuntu.com>
6866
6867 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
6868 to avoid false positives with some assemblers that output things
6869 like "someprefix_func" as part of their output.
6870
729a0f2e
RM
68712010-08-15 Robert Millan <rmh@gnu.org>
6872
6873 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
6874 errors.
6875 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
6876 grub_get_libzfs_handle() errors.
6877
f3710e08
RM
68782010-08-14 Robert Millan <rmh@gnu.org>
6879
6880 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
6881 filesystem is not ZFS.
6882
7a3c13de
BC
68832010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6884
6885 Fix for misspelled color names defaulting to black/black (bug
6886 reported by Doug Nazar)
6887
6888 * include/grub/normal.h (grub_parse_color_name_pair): Add return
6889 status to prototype.
6890 * normal/color.c (grub_parse_color_name_pair): Return failure
6891 status.
6892 (grub_env_write_color_normal): Ignore bad color names.
6893 (grub_env_write_color_highlight): Likewise.
6894 * normal/main.c (GRUB_MOD_INIT): Set default color names.
6895
ab8ba50d
BC
68962010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6897
6898 "shift" command support to GRUB script.
6899
6900 * include/grub/script_sh.h (grub_script_shift): New prototype.
6901 * script/execute.c (grub_script_shift): New function.
6902 * script/main.c (grub_script_init): Register shift command.
6903 (grub_script_fini): Unregister shift command.
6904 * util/grub-script-check.c (grub_script_cmd_shift): New function.
6905
6906 * tests/grub_script_shift.in: New testcase.
6907 * conf/tests.rmk: Rules for new testcase.
6908
4d61999e
BC
69092010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6910
6911 "continue" command support to GRUB script.
6912
6913 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
6914 (grub_script_break): Continue support.
6915 * script/main.c (grub_script_init): Register continue command.
6916 (grub_script_fini): Unregister continue command.
6917
6918 * tests/grub_script_continue.in: New testcase.
6919 * conf/tests.rmk: Rules for new testcase.
6920
4df51e00
BC
69212010-08-12 BVK Chaitanya <bvk@dbook>
6922
6923 "break" command support to GRUB script.
6924
6925 * conf/common.rmk: Rule updates to grub-script-check.
6926 * include/grub/misc.h (grub_min): New function.
6927 * include/grub/script_sh.h (grub_script_init): New prototype.
6928 (grub_script_fini): New prototype.
6929 (grub_script_break): New prototype.
6930 * script/main.c (grub_script_init): New function.
6931 (grub_script_fini): New function.
6932 * script/execute.c (grub_script_break): New function.
6933 * normal/main.c: Calls to grub_script_{init,fini}.
6934 * util/grub-script-check.c (grub_script_break): New function.
6935
6936 * tests/grub_script_break.in: New testcase.
6937 * conf/tests.rmk: Rules for new test case.
6938
f12c8420
BC
69392010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6940
6941 Function parameters support to GRUB script.
6942
6943 * script/yylex.l (VARIABLE): Regular expression update.
6944 * script/function.c (grub_script_function_call): Moved ...
6945 * script/execute.c (grub_script_function_call): ... to here.
6946 (grub_script_execute_arglist_to_argv): Removed.
6947 (grub_script_arglist_to_argv): New function.
6948 * script/argv.c: New file.
6949 (grub_script_argv_free): New function.
6950 (grub_script_argv_next): Likewise.
6951 (grub_script_argv_append): Likewise.
6952 (grub_script_argv_split_append): Likewise.
6953 * include/grub/script_sh.h (grub_script_argv): New struct.
6954 (grub_script_argv_free): New function.
6955 (grub_script_argv_next): Likewise.
6956 (grub_script_argv_append): Likewise.
6957 (grub_script_argv_split_append): Likewise.
6958
6959 * conf/common.rmk (normal.mod): New source script/argv.c.
6960
6961 * tests/grub_script_echo1.in: More tests.
6962 * tests/grub_script_vars1.in: Likewise.
6963 * tests/grub_script_functions.in: New test case.
6964 * conf/tests.rmk: Rules for new testcase.
6965
8022b748
BC
69662010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
6967
6968 Remove grub_script_cmdblock struct.
6969
6970 * include/grub/script_sh.h: Remove grub_script_cmdblock.
6971 * script/parser.y: Likewise.
6972 * script/execute.c: Rename cmdblock suffix to cmdlist.
6973 * script/script.c: Likewise.
6974 * util/grub-script-check.c: Likewise.
6975
79a6ba61
YB
69762010-08-11 Yves Blusseau <blusseau@zetam.org>
6977
6978 * .bzrignore: add grub-macho2img
6979
d04b9414
VS
69802010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
6981
6982 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
6983
f947ab49
VS
69842010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
6985
6986 Remove the dump of sm712 initialisation sequence.
6987
6988 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
6989 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
6990 (GRUB_VGA_IO_MISC_WRITE): Likewise.
6991 (GRUB_VGA_CR_*): Added many registers.
6992 (GRUB_VGA_SR_*): Likewise.
6993 (GRUB_VGA_GR_*): Likewise.
6994 (grub_vga_write_arx): New function.
6995 (grub_video_hw_config): New struct.
6996 (grub_vga_set_geometry): New function.
6997 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
6998 GRUB_PCI_CLASS_SUBCLASS_VGA.
6999 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
7000 * video/sm712.c (grub_sm712_write_reg): New function
7001 (grub_sm712_read_reg): Likewise.
7002 (grub_sm712_sr_write): Likewise.
7003 (grub_sm712_gr_write): Likewise.
7004 (grub_sm712_cr_write): Likewise.
7005 (grub_sm712_write_arx): Likewise.
7006 (grub_sm712_cr_shadow_write): Likewise.
7007 (grub_sm712_write_dda_lookup): Likewise.
7008 (grub_video_sm712_setup): Initialise the video rather then
7009 blindly replay the dump.
7010 (main) [TEST]: Add a routine to be able to compile as standalone for
7011 tests.
7012 * video/sm712_init.c (sm712_init): Removed.
7013 (sm712_sr_seq1): New array.
7014 (sm712_sr_seq2): Likewise.
7015
f0206638
VS
70162010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
7017
7018 * include/grub/vga.h: Add missing grub/pci.h include.
7019
2764da3b
YB
70202010-08-10 Yves Blusseau <blusseau@zetam.org>
7021
7022 * util/grub-macho2img.c (main): fix typo
7023
cf0c775e
VS
70242010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
7025
7026 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
7027 (grub_vga_gr_read): Likewise.
7028 (grub_vga_cr_write): Likewise.
7029 (grub_vga_cr_read): Likewise.
7030 (grub_vga_sr_write): Likewise.
7031 (grub_vga_sr_read): Likewise.
7032 (grub_vga_palette_read): Likewise.
7033 (grub_vga_palette_write): Likewise.
7034 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
7035 (grub_sm712_sr_read): New function.
7036 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
7037 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
7038
07f360e9
RM
70392010-08-09 Robert Millan <rmh@gnu.org>
7040
7041 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
7042 out unused variables on non-ZFS build.
7043
346c2072
RM
70442010-08-08 Robert Millan <rmh@gnu.org>
7045
7046 Fix path generation for sub-filesystems in ZFS.
7047
7048 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
7049 missing slash.
7050
71175420
RM
70512010-08-08 Robert Millan <rmh@gnu.org>
7052
7053 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
7054
0d8286f3
RM
70552010-08-08 Robert Millan <rmh@gnu.org>
7056
7057 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
7058 exist, issue a proper error message (rely on `ls' for translated
7059 strings).
7060
55dd2924
RM
70612010-08-08 Robert Millan <rmh@gnu.org>
7062
7063 Fix grub-probe invocation.
7064
7065 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
7066
d3dd9e80
RM
70672010-08-04 Robert Millan <rmh@gnu.org>
7068
7069 * configure.ac: Remove checks for getfsstat() and getmntany().
7070 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
7071 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
7072 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
7073 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
7074 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
7075 function.
7076 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
7077 via find_mount_point_from_dir() and getfsstat() / getmntany().
7078
0de22aa9
RM
70792010-08-04 Robert Millan <rmh@gnu.org>
7080
7081 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
7082 (grub_find_zpool_from_mount_point): Merge into ...
7083 (grub_find_zpool_from_dir): ... this.
7084 * kern/emu/misc.c: Likewise.
7085
7086 * kern/emu/misc.c
7087 (grub_make_system_path_relative_to_its_root): Replace
7088 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
7089 with grub_find_zpool_from_dir().
7090 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
7091
62858144
RM
70922010-08-04 Robert Millan <rmh@gnu.org>
7093
7094 Support OpenSolaris in ZFS device resolution.
7095
7096 * configure.ac: Check for getmntany().
7097 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
7098 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
7099 support.
7100
9dd6fd50
RM
71012010-08-03 Robert Millan <rmh@gnu.org>
7102
7103 Fix grub-emu build.
7104
7105 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
7106 * include/grub/emu/misc.h: ... here.
7107
7108 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
7109 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
7110
7111 * util/misc.c: Remove `<grub/util/libzfs.h>'.
7112 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
7113 (grub_get_libzfs_handle): Move to ...
7114 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
7115 (grub_get_libzfs_handle): ... here.
7116
c9f7ff97
BC
71172010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
7118
7119 * script/execute.c (grub_script_execute_cmdline): Check for NULL
7120 as command name case.
7121
a870a783
CW
71222010-08-02 Colin Watson <cjwatson@ubuntu.com>
7123
7124 * disk/raid.c (insert_array): Select unique numbers for named arrays
7125 as well, for use as keys in the disk cache.
7126
c7db243b
RM
71272010-08-01 Robert Millan <rmh@gnu.org>
7128
7129 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
7130 kFreeBSD device name, except on ZFS where the filesystem label is
7131 used.
7132 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
7133 `/boot/zfs/zpool.cache'.
7134 Set mountfrom kernel variable using ${kfreebsd_device}.
7135
f7abdefb
RM
71362010-08-01 Robert Millan <rmh@gnu.org>
7137
7138 Make it even harder to use uninitialized `libzfs_handle' (and
7139 make the interface a bit simpler).
7140
7141 * include/grub/util/misc.h (grub_util_init_libzfs)
7142 (libzfs_handle): Remove.
7143 (grub_get_libzfs_handle): New prototype.
7144
7145 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
7146 attribute.
7147 (grub_util_init_libzfs): Remove.
7148 (grub_get_libzfs_handle): New function.
7149
7150 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
7151 grub_get_libzfs_handle() to obtain a libzfs handle instead of
7152 accessing `libzfs_handle' directly.
7153
c882acc0
RM
71542010-08-01 Robert Millan <rmh@gnu.org>
7155
7156 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
7157 (grub_find_zpool_from_mount_point): New function prototypes.
7158
7159 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
7160 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
7161
7162 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
7163 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
7164 `static' attribute.
7165
7166 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
7167 finding zpool from mount point into ...
7168 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
7169
7170 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
7171 requested path is part of a ZFS pool, use
7172 grub_find_zpool_from_mount_point() to detect its filesystem name,
7173 and generate a path with `/fsname@path' syntax.
7174
8bfe31d8
CW
71752010-08-01 Colin Watson <cjwatson@ubuntu.com>
7176
7177 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
7178 (void) rather than () so that this is a proper prototype.
7179
553df63d
VS
71802010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
7181
7182 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
7183
8687cf07
VS
71842010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
7185
7186 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
7187 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
7188
ea9be8ea
CW
71892010-08-01 Colin Watson <cjwatson@ubuntu.com>
7190
7191 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
7192
6eea041a
CW
71932010-08-01 Colin Watson <cjwatson@ubuntu.com>
7194
7195 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
7196
2cfb45df
CW
71972010-08-01 Colin Watson <cjwatson@ubuntu.com>
7198
7199 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
7200 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
7201 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
7202 disable gfxpayload.
7203 (Shell-like scripting): Add real content.
7204 (Serial terminal): Suggest `terminal_input serial; terminal_output
7205 serial' rather than putting the two commands on separate lines,
7206 since console input will be inoperative after the first command.
7207 (menuentry): Document --class, --users, and --hotkey options.
7208 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
7209 Vladimir Serbinenko).
7210
7decd202
VS
72112010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
72122010-08-01 Colin Watson <cjwatson@ubuntu.com>
7213
7214 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
7215
c882acc0
RM
72162010-08-01 Robert Millan <rmh@gnu.org>
7217
7218 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
7219 (grub_find_zpool_from_mount_point): New function prototypes.
7220
7221 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
7222 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
7223
7224 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
7225 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
7226 `static' attribute.
7227
7228 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
7229 finding zpool from mount point into ...
7230 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
7231
7232 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
7233 requested path is part of a ZFS pool, use
7234 grub_find_zpool_from_mount_point() to detect its filesystem name,
7235 and generate a path with `/fsname@path' syntax.
7236
deb0caa3
RM
72372010-08-01 Robert Millan <rmh@gnu.org>
7238
7239 Prevent accidental use of uninitialized libzfs_handle.
7240
7241 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
7242 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
7243 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
7244
ce04ef47
CW
72452010-08-01 Colin Watson <cjwatson@ubuntu.com>
7246
7247 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
7248 util/grub.d/10_linux.in). Fixes Debian bug #591093.
7249
ebf53056
RM
72502010-08-01 Robert Millan <rmh@gnu.org>
7251
7252 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 7253
3710bb6b
RM
72542010-07-31 Robert Millan <rmh@gnu.org>
7255
7256 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
7257
8072efeb
RM
72582010-07-31 Robert Millan <rmh@gnu.org>
7259
7260 * kern/emu/misc.c: Add missing license header.
7261
3169f4c7
RM
72622010-07-31 Robert Millan <rmh@gnu.org>
7263
7264 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
7265
7266 * include/grub/util/libnvpair.h: Include `<config.h>'.
7267 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
7268 declaring libnvpair prototypes ourselves.
7269 * include/grub/util/libzfs.h: Include `<config.h>'.
7270 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
7271 declaring libzfs prototypes ourselves.
7272
7273 (libzfs_handle): Moved to ...
7274 * include/grub/util/misc.h (libzfs_handle): ... here.
7275 Include `<grub/util/libzfs.h>'.
7276
c9a00aee
RM
72772010-07-30 Robert Millan <rmh@gnu.org>
7278
7279 * include/grub/emu/misc.h: Add missing license header.
7280
a184f9c8
RM
72812010-07-30 Robert Millan <rmh@gnu.org>
7282
7283 Enable `grub-probe -t device' resolution on ZFS.
7284
7285 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
7286 * include/grub/util/libnvpair.h: New file.
7287 * include/grub/util/libzfs.h: New file.
7288
7289 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
7290 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
7291 `<grub/util/libnvpair.h>'.
7292 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
7293
7294 (find_mount_point_from_dir): New static function.
7295 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
7296 function.
7297 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
7298 find_root_device_from_libzfs() before ressorting to find_root_device().
7299
7300 * include/grub/util/misc.h (grub_util_init_libzfs): New function
7301 prototype.
7302 * util/misc.c: Include `<grub/util/libzfs.h>'.
7303 (grub_util_init_libzfs): New function.
7304 [HAVE_LIBZFS] (libzfs_handle): New global variable.
7305 [HAVE_LIBZFS] (fini_libzfs): New static function.
7306 (grub_util_init_libzfs): New function.
7307 * util/grub-probe.c (main): Call grub_util_init_libzfs().
7308
f7790cdd
RM
73092010-07-30 Robert Millan <rmh@gnu.org>
7310
7311 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
7312 (xmalloc, xrealloc, xstrdup, xasprintf): Add
7313 `warn_unused_result' attribute.
7314 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
7315 (grub_xasprintf, grub_xvasprintf): Likewise.
7316 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
7317
0806b63c
RM
73182010-07-29 Robert Millan <rmh@gnu.org>
7319
7320 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
7321 (probe): Handle `PRINT_FS_LABEL'.
7322 (main): Handle `-t fs_label'.
7323
9f841f5c
RM
73242010-07-29 Robert Millan <rmh@gnu.org>
7325
7326 * configure.ac: Remove grub-mkisofs checks.
7327
46371121
VS
73282010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
7329
7330 * util/ieee1275/grub-install.in: Don't use empty grub_device.
7331 Reported by: Lennart Sorensen.
7332
73332010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7334
7335 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
7336 prior to terminal_input/terminal_output separation. It's been over 1.5
7337 years and those versions weren't widely deployed.
7338
a9600892
CW
73392010-07-22 Colin Watson <cjwatson@ubuntu.com>
7340
7341 * disk/raid.c (insert_array): Don't count named arrays when looking
7342 for unused array numbers.
697e053c 7343 Reported and tested by: Michael Guntsche.
a9600892 7344
c03507df
CW
73452010-07-20 Colin Watson <cjwatson@ubuntu.com>
7346
7347 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
7348 implementation of this so that grub-emu links again, with a note
7349 that this should support hotplugging in the future.
7350
b26f1c11
CW
73512010-07-20 Colin Watson <cjwatson@ubuntu.com>
7352
7353 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
7354
efc9d7f1
CW
73552010-07-20 Colin Watson <cjwatson@ubuntu.com>
7356
7357 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
7358 handle on failure.
7359 (grub_loopback_close): Remove empty function.
7360 (grub_loopback_dev): Remove close method.
7361
dd8ff5c9
CW
73622010-07-20 Colin Watson <cjwatson@ubuntu.com>
7363
7364 Disable EFI cursor when the EFI console becomes inactive.
7365
7366 * term/efi/console.c (grub_efi_console_init): New function.
7367 (grub_efi_console_fini): New function.
7368 (grub_console_term_output): Register init and fini methods.
7369
5e3bec67
VS
73702010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7371
7372 * tests/util/grub-shell-tester.in: Remove bashism and declare as
7373 sh script.
7374
afaec079
VS
73752010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7376
7377 * disk/loopback.c (grub_loopback): Replace filename with file.
7378 (delete_loopback): Handle new semantics.
7379 (grub_cmd_loopback): Likewise.
7380 (grub_loopback_iterate): Likewise.
7381 (grub_loopback_close): Likewise.
7382
a6a11f3c
VS
73832010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7384
7385 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
7386 with -p "".
7387 Reported by: Tito Keitel.
7388
64a638b0
VS
73892010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7390
7391 * docs/grub.texi (Naming convention): Document new naming convention.
7392
ab8ba957
VS
73932010-07-20 Vadim Solomin <vadic052@gmail.com>
73942010-07-20 Colin Watson <cjwatson@ubuntu.com>
7395
7396 Generate device.map in something closer to the old ordering.
7397
7398 * util/deviceiter.c (struct device): New declaration.
7399 (compare_file_names): Rename to ...
7400 (compare_devices): ... this. Sort by kernel name in preference to
7401 the stable by-id name, but keep the latter as a fallback comparison.
7402 Update header comment.
7403 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
7404 of `struct device' rather than of plain file names.
7405
a29d6a4b
TF
74062010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
7407
7408 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
7409 on i386.
7410
39d824e8
VS
74112010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
7412
7413 * commands/acpi.c (setup_common_tables): Use sizeof instead of
7414 hardcoding size.
7415 (setv1table): Likewise.
7416
f058276b
FZ
74172010-07-20 Colin Watson <cjwatson@ubuntu.com>
7418
7419 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
7420 removing the homehost if present.
7421 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
7422 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
7423 removing the homehost if present.
7424 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
7425 if possible.
7426 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
7427
7428 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
7429 parameter. Set its pointer target to 0.
7430 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
7431 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
7432 `data_offset' value from the superblock for 1.x metadata.
7433 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
7434 data on the device.
7435 (insert_array): Record the start sector of data on the device.
7436 (grub_raid_register): Pass start_sector parameters to
7437 grub_raid_list->detect and insert_array.
7438 * include/grub/raid.h (struct grub_raid_array): Add start_sector
7439 member.
7440 (struct grub_raid): Add start_sector parameter to `detect'.
7441
7442 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
7443 __attribute__ ((packed)), leaving a comment.
7444 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
7445 (grub_mdraid_detect_09): ... here and ...
7446 (grub_mdraid_detect_1x): ... here.
7447
74482010-07-20 Peter Henn <peter.henn@web.de>
7449
7450 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
7451 chunk size and disk size, which are already given as sector counts
7452 as distinct from the 0.90 units. Fetch the correct device number
7453 from the role table instead of using the table index.
7454
74552010-07-20 Felix Zielcke <fzielcke@z-51.de>
7456
7457 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
7458 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
7459 (WriteMostly1): New macro.
7460 Set array->name to NULL for metadata format 0.90. Add support for
7461 metadata 1.x. Fix some comments.
7462 * disk/raid.c (): Add support for name based RAID arrays. Fix a
7463 few comments.
7464 * util/getroot.c (grub_util_get_grub_dev): Add support for
7465 /dev/md/name style devices.
7466
4b761da9
CW
74672010-07-20 Colin Watson <cjwatson@ubuntu.com>
7468
7469 * .bzrignore: Ignore 20_linux_xen.
7470
5771289a
CW
74712010-07-17 Colin Watson <cjwatson@ubuntu.com>
7472
7473 * util/import_unicode.py: Remove unnecessary imports.
7474
5dab68df
AN
74752010-07-17 Aleš Nesrsta <starous@volny.cz>
7476
7477 Hotplugging and USB hub support.
7478
7479 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
7480 (grub_ohci): Likewise.
7481 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
7482 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
7483 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
7484 (GRUB_OHCI_CTRL_EDS): Likewise.
7485 (GRUB_OHCI_BULK_EDS): Likewise.
7486 (GRUB_OHCI_TDS): Likewise.
7487 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
7488 (grub_ohci_ed_phys2virt): New function.
7489 (grub_ohci_virt_to_phys): Likewise.
7490 (grub_ohci_td_phys2virt): Likewise.
7491 (grub_ohci_td_virt2phys): Likewise.
7492 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
7493 attachment.
7494 (grub_ohci_find_ed): New function.
7495 (grub_ohci_alloc_td): Likewise.
7496 (grub_ohci_free_td): Likewise.
7497 (grub_ohci_free_tds): Likewise.
7498 (grub_ohci_transfer): Use previously allocated memory.
7499 (grub_ohci_portstatus): Reset status changed bit.
7500 (grub_ohci_detect_dev): Supply status changed.
7501 (grub_ohci_fini_hw): Free memory.
7502 (grub_ohci_restore_hw): Reallocate memory.
7503 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
7504 Reset status change.
7505 (grub_uhci_detect_dev): Supply status_change.
7506 * bus/usb/usb.c (attach_hooks): New var.
7507 (grub_usb_device_attach): New function.
7508 (grub_usb_register_attach_hook_class): Likewise.
7509 (grub_usb_unregister_attach_hook_class): Likewise.
7510 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
7511 (grub_usb_add_hub): Reset connection changed bit.
7512 (attach_root_port): New function.
7513 (grub_usb_root_hub): Likewise.
7514 (poll_nonroot_hub): Likewise.
7515 (grub_usb_poll_devices): Likewise.
7516 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
7517 * disk/usbms.c (grub_usbms_open): Use device hooks.
7518 (grub_usbms_iterate) :Poll devices.
7519 (grub_usbms_finddevs): Split into ...
7520 (grub_usbms_attach): ... this ...
7521 (grub_usbms_attach): ... and this.
7522 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
7523 in detect_dev.
7524 (grub_usb_interface): New fields attached and detach_hook.
7525 (grub_usb_attach_hook_class): New type.
7526 (grub_usb_attach_desc): New struct.
7527 (grub_usb_register_attach_hook_class): New function.
7528 (grub_usb_unregister_attach_hook_class): Likewise.
7529 (grub_usb_poll_devices): Likewise.
7530 (grub_usb_device_attach): Likewise.
7531 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
7532 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
7533
3222efaf
VS
75342010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
7535
7536 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
7537 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
7538 delta determination style. Works with most NetBSD partitions too.
7539
139b714a
VS
75402010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
7541
7542 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
7543 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
7544
986aad56
VS
75452010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
7546
7547 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
7548
99be513c
AB
75492010-07-14 Anton Blanchard <anton@samba.org>
7550
7551 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
7552 ET_DYN files.
7553
18075f62
GS
75542010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
7555
7556 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
7557
8d9a5b15
GS
75582010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
7559
7560 * kern/partition.c (grub_partition_check_containment): New function to
7561 check that a partition is physically contained in a parent. Since
7562 offsets are relative (and non-negative), this reduces to checking that
7563 the partition ends before its parent.
7564 (grub_partition_map_probe): Discard out-of-range sub-partitions.
7565 (grub_partition_iterate): Likewise.
7566 * include/grub/partition.h (grub_partition_map): Slightly more detailed
7567 comments.
7568 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
7569 partitions that start before their parent, and add debug printfs.
7570
19563c25
CW
75712010-07-13 Colin Watson <cjwatson@ubuntu.com>
7572
7573 * Makefile.in (.SUFFIX): Spell correctly, as ...
7574 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
7575 bare module name without `.mod', e.g. `test') tried to invoke a
7576 Modula-2 compiler.
7577
1a1f1e67
CW
75782010-07-13 Colin Watson <cjwatson@ubuntu.com>
7579
7580 * README: Point to the Info manual.
7581
811b0dca
JS
75822010-07-13 Jiro SEKIBA <jir@unicus.jp>
7583
7584 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
7585 2nd superblock position from partition size.
7586
e4f4eafc
CW
75872010-07-10 Colin Watson <cjwatson@ubuntu.com>
7588
7589 * Makefile.in (MAINTAINER_CLEANFILES): Remove
7590 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
7591 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
7592 outputs.
7593
4274c30f
VS
75942010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7595
7596 Restructure SCSI .id handling.
7597 Reported and tested by: Aleš Nesrsta.
7598
7599 * disk/ata.c (grub_atapi_close): Removed. All users updated.
7600 (grub_atapi_dev): Changed .name to "ata". New field .id.
7601 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
7602 (grub_usbms_dev): New field .id.
7603 * disk/scsi.c (grub_scsi_iterate): Generate name.
7604 (grub_scsi_open): Parse name.
7605 * include/grub/scsi.h (grub_make_scsi_id): New function.
7606 (grub_scsi_dev): Change iterate and open to number instead of naming
7607 busses. All users updated.
7608 (grub_scsi): Remove name. Add .bus.
7609
5bc24388
VS
76102010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7611
7612 * commands/help.c (grub_cmd_help): Fix a typo.
7613
249975ba
VS
76142010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7615
7616 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
7617 Reported and tested by: Colin Watson.
7618
3eaac1a1
VS
76192010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
7620
7621 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
7622 in this context.
7623
becce1b1
VS
76242010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
7625
7626 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
7627
f7bf0918
CW
76282010-07-07 Colin Watson <cjwatson@ubuntu.com>
7629
7630 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
7631 indentation.
7632
0b0f9620
CW
76332010-07-06 Colin Watson <cjwatson@ubuntu.com>
7634
7635 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
7636 and disk/raid6_recover.c.
7637 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
7638 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
7639
1e545469
CW
76402010-07-06 Colin Watson <cjwatson@ubuntu.com>
7641
7642 * term/gfxterm.c (repaint_schedulded): Rename to ...
7643 (repaint_scheduled): ... this. Update all callers.
7644 (repaint_was_schedulded): Rename to ...
7645 (repaint_was_scheduled): ... this. Update all callers.
7646
5357687a
CW
76472010-07-06 Colin Watson <cjwatson@ubuntu.com>
7648
7649 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
7650 which we expect to be handled by upper layers.
7651
29d7e783
BC
76522010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
7653
7654 * bus/usb/usbhub.c: #include time.h header.
7655
37582066
CW
76562010-07-06 Colin Watson <cjwatson@ubuntu.com>
7657
7658 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
7659 entry_name also for entries without stat blocks (e.g. ".."); fixes
7660 corruption of the first entry in a directory.
7661
c8c06953
CW
76622010-07-06 Colin Watson <cjwatson@ubuntu.com>
7663
7664 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
7665 after setting gfxterm as the active terminal. GRUB_BACKGROUND
7666 doesn't work otherwise.
7667
e75056f1
CW
76682010-07-05 Colin Watson <cjwatson@ubuntu.com>
7669
7670 * docs/grub.texi (Features): Update list of supported file systems.
7671 (GNU/Linux): Update for GRUB 2.
7672 (Serial terminal): Remove mention of --disable-serial, which was a
7673 GRUB Legacy configure option. Update instructions to use
7674 `terminal_input' and `terminal_output' rather than `terminal'.
7675 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
7676 configuration' and `Installing GRUB using grub-install'.
7677 (Menu entry editor): Update for GRUB 2.
7678 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
7679 Document new -a, -u, and -v options.
7680 (initrd): New section.
7681 (initrd16): New section.
7682 (linux): New section.
7683 (linux16): New section.
7684 (search): The `var' argument to `--set' is optional.
7685 (GRUB only offers a rescue shell): Go into a little more detail on
7686 drive ordering.
7687
5cf69151
CW
76882010-07-05 Colin Watson <cjwatson@ubuntu.com>
7689
7690 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
7691
e3f90044
CW
76922010-07-05 Colin Watson <cjwatson@ubuntu.com>
7693
7694 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
7695 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
7696
38d8f4f3
CW
76972010-07-05 Colin Watson <cjwatson@ubuntu.com>
7698
7699 * util/i386/pc/grub-setup.c (setup): Rename prefix to
7700 install_prefix, in line with install_dos_part and install_bsd_part.
7701 Add new prefix variable, which is copied to install_prefix after
7702 comparing core.img in memory with the one read from disk in the
7703 no-embedding case, and use that rather than overwriting
7704 install_prefix immediately when installing to a partition.
7705 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
7706 Bicakci.
7707
57ebd41e
GS
77082010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
7709
7710 * configure.ac: Avoid == in test command, it's not portable.
7711 * util/grub.d/30_os-prober.in: Likewise.
7712
cb7f64b2
CW
77132010-07-04 Colin Watson <cjwatson@ubuntu.com>
7714
7715 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
7716
6b654bb0
GS
77172010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
7718
7719 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
7720 multiple (top-level) partmaps.
7721
72a2026d
VS
77222010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7723
7724 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 7725 Reported by: Tino Keitel.
72a2026d 7726
df3eb88f
VS
77272010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
7728
7729 Bidi and diacritics support.
7730
7731 * Makefile.in (widthspec.bin): New target.
7732 (widthspec.h): Likewise.
7733 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
7734 * autogen.sh: Generate unidata.c.
7735 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
7736 * commands/ls.c (grub_ls_list_devices): Likewise.
7737 (grub_ls_list_files): Likewise.
7738 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
7739 (grub_mini_cmd_lsmod): Likewise.
7740 * commands/read.c: Likewise.
7741 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
7742 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
7743 * lib/arg.c (grub_arg_show_help): Likewise.
7744 * lib/crypto.c (grub_password_get): Likewise.
7745 * normal/auth.c (grub_username_get): Likewise.
7746 * normal/misc.c (grub_normal_print_device_info): Likewise.
7747 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
7748 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
7749 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
7750 (normal/charset.c_DEPENDENCIES): New variable.
7751 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
7752 (pkglib_MODULES): Remove charset.mod.
7753 (charset_mod_SOURCES): Removed.
7754 (charset_mod_CFLAGS): Likewise.
7755 (charset_mod_LDFLAGS): Likewise.
7756 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
7757 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
7758 and term/tparm.c.
7759 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
7760 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
7761 (kernel_img_HEADERS): Add terminfo.h.
7762 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
7763 Fill ->font. Reverse ascii bitmaps.
7764 (grub_font_get_xheight): New function.
7765 * font/font.c (grub_font_get_string_width): Moved from here ...
7766 * gfxmenu/font.c (grub_font_get_string_width): ... here.
7767 * font/font.c (grub_font_draw_string): Moved from here ...
7768 * gfxmenu/font.c (grub_font_draw_string): ... here.
7769 * font/font.c (grub_font_dup_glyph): New function.
7770 (grub_font_blit_glyph): Likewise.
7771 (grub_font_blit_glyph_mirror): Likewise.
7772 (blit_comb): Likewise.
7773 (grub_font_construct_dry_run): Likewise.
7774 (grub_font_get_constructed_device_width): Likewise.
7775 (grub_font_construct_glyph): Likewise.
7776 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
7777 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
7778 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
7779 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
7780 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
7781 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
7782 (grub_font_get_xheight): New proto.
7783 (grub_font_get_constructed_device_width): Likewise.
7784 (grub_font_construct_glyph): Likewise.
7785 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
7786 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
7787 * include/grub/font.h (grub_font_draw_string): Moved from here ...
7788 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
7789 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
7790 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
7791 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
7792 (grub_console_getcharwidth): Likewise.
7793 * include/grub/misc.h (grub_xputs): New proto.
7794 (grub_puts): Inlined.
7795 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
7796 (grub_normal_get_line_counter): Removed.
7797 (grub_install_newline_hook): Likewise.
7798 (grub_normal_get_char_counter): New proto.
7799 (grub_normal_reset_more): Likewise.
7800 (grub_xputs_normal): Likewise.
7801 * include/grub/powerpc/ieee1275/console.h: Removed.
7802 * include/grub/sparc64/ieee1275/console.h: Likewise.
7803 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
7804 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
7805 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
7806 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
7807 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
7808 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
7809 (grub_term_input): Pass reference to self. All users updated.
7810 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
7811 Pass reference to self. New fields normal_color, highlight_color and
7812 data. All users updated.
7813 (grub_putchar): Removed.
7814 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
7815 (grub_unicode_estimate_width): New function.
7816 (grub_term_getcharwidth): Add defaults.
7817 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
7818 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
7819 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
7820 (grub_cls): Remove EXPORT_FUNC.
7821 (grub_setcolorstate): Inline.
7822 (grub_newline_hook): Removed.
7823 * include/grub/terminfo.h: Rewritten. All users updated.
7824 * include/grub/unicode.h: New file.
7825 * include/grub/video.h (grub_video_signed_rect): New type.
7826 * kern/emu/console.c (grub_console_highlight_color): Removed.
7827 (grub_console_normal_color): Likewise.
7828 (grub_console_standard_color): Made static.
7829 (grub_ncurses_putchar): Remove mapping.
7830 (grub_ncurses_getcharwidth): Removed.
7831 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
7832 (grub_ncurses_setcolor): Removed.
7833 (grub_ncurses_getcolor): Likewise.
7834 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
7835 (grub_console_putchar): ... this.
7836 (grub_console_putchar): Handle argument difference.
7837 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
7838 console_init_early and console_init_lately.
7839 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
7840 * kern/misc.c (grub_puts): Removed.
7841 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
7842 (grub_vsnprintf_real): Remove str = NULL support.
7843 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
7844 * normal/charset.c (grub_utf8_to_ucs4): ... here.
7845 * kern/term.c (grub_putcode): Renamed to ...
7846 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
7847 (grub_putchar): Removed.
7848 (grub_xputs_dumb): New function.
7849 (grub_xputs): New variable.
7850 * lib/charset.c: Move from here ...
7851 * normal/charset.c: ... to here.
7852 (grub_ucs4_to_utf8): New function.
7853 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
7854 (join_types): New variable.
7855 (unpack_join): New function.
7856 (bidi_types): New variable.
7857 (unpack_bidi): New function.
7858 (get_bidi_type): Likewise.
7859 (get_join_type): Likewise.
7860 (is_mirrored): Likewise.
7861 (grub_unicode_get_comb_type): Likewise.
7862 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
7863 (is_type_after): Likewise.
7864 (grub_unicode_aglomerate_comb): Likewise.
7865 (bidi_line_wrap): Likewise.
7866 (grub_bidi_line_logical_to_visual): Likewise.
7867 (grub_bidi_logical_to_visual): Likewise.
7868 (grub_unicode_mirror_code): Likewise.
7869 (grub_unicode_shape_code): Likewise.
7870 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
7871 Don't use grub_putchar.
7872 * normal/main.c (grub_normal_init_page): Use grub_putcode.
7873 (grub_normal_reader_init): Likewise.
7874 (grub_xputs_saved): New variable.
7875 (GRUB_MOD_INIT): Set grub_xputs.
7876 (GRUB_MOD_FINI): Restore grub_xputs.
7877 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
7878 (menu_init): Avoid printing gfxmenu error.
7879 (show_menu): Use grub_normal_get_char_counter.
7880 * normal/menu_entry.c (update_screen): Fix out-of-array.
7881 (complete): Avoid NULL dereferencing.
7882 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
7883 * normal/menu_text.c (print_spaces): Removed.
7884 (grub_print_ucs4): Likewise.
7885 (grub_print_message_indented): Use grub_print_ucs4.
7886 (print_message): Use grub_putcode.
7887 (print_entry): Hanlde diacritics.
7888 * normal/term.c (term_state): New type.
7889 (grub_more_lines): Removed.
7890 (term_states): New variable.
7891 (grub_normal_line_counter): Renamed to ..
7892 (grub_normal_char_counter): ...this. All users updated.
7893 (grub_normal_get_line_counter): Renamed to ...
7894 (grub_normal_get_char_counter): ... this.
7895 (grub_normal_reset_more): New function.
7896 (process_newline): Removed.
7897 (print_more): New function.
7898 (grub_install_newline_hook): Removed.
7899 (map_code): New function.
7900 (grub_puts_terminal): Use grub_print_ucs4.
7901 (putglyph): New function.
7902 (putcode_real): Likewise.
7903 (grub_putcode): Use putcode_real.
7904 (get_maxwidth): New function.
7905 (get_startwidth): Likewise.
7906 (print_ucs4_terminal): Likewise.
7907 (find_term_state): Likewise.
7908 (put_glyphs_terminal): Likewise.
7909 (print_backlog): Likewise.
7910 (print_ucs4_real): Likewise.
7911 (grub_print_ucs4): Likewise.
7912 (grub_xputs_normal): Likewise.
7913 * term/efi/console.c (grub_console_putchar): Output diacritics.
7914 (grub_console_getcharwidth): Removed.
7915 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
7916 * term/gfxterm.c (clear_char): Free chars.
7917 (scroll_up): Avoid leaking memory.
7918 (grub_gfxterm_putchar): Support diacritics.
7919 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
7920 * term/i386/pc/console.c (grub_console_term_output): Declare as
7921 GRUB_TERM_CODE_TYPE_VGA.
7922 * term/i386/pc/vga.c (grub_vga_term): Declare as
7923 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
7924 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
7925 GRUB_TERM_CODE_TYPE_VGA.
7926 * term/i386/vga_common.c (map_char): Removed.
7927 (grub_console_putchar): Likewise.
7928 (grub_console_getcharwidth): Likewise.
7929 * term/ieee1275/ofconsole.c: Simplify using terminfo.
7930 (colors): Reordered to match terminfo.
7931 (grub_ofconsole_normal_color): Removed.
7932 (grub_ofconsole_writeesc): Likewise.
7933 (grub_ofconsole_highlight_color): Likewise.
7934 (grub_ofconsole_getcharwidth): Likewise.
7935 (grub_ofconsole_setcolorstate): Likewise.
7936 (grub_ofconsole_setcolor): Likewise.
7937 (grub_ofconsole_getcolor): Likewise.
7938 (grub_ofconsole_readkey): Renamed to ...
7939 (readkey): ... this. Remove escape sequence handling. Return -1 on no
7940 key.
7941 (grub_ofconsole_checkkey): Removed.
7942 (grub_ofconsole_getkey): Likewise.
7943 (grub_ofconsole_getxy): Likewise.
7944 (grub_ofconsole_gotoxy): Likewise.
7945 (grub_ofconsole_cls): Likewise.
7946 (grub_ofconsole_refresh): Likewise.
7947 (grub_ofconsole_terminfo_input): New struct.
7948 (grub_ofconsole_terminfo_output): Likewise.
7949 (grub_ofconsole_term_input): Use terminfo.
7950 (grub_ofconsole_term_output): Likewise.
7951 (grub_console_init): Split into ...
7952 (grub_console_init_early): ...this and ...
7953 (grub_console_init_lately): ...this. Use terminfo.
7954 (grub_ofconsole_putchar): Renamed to ...
7955 (put): ... this. Remove mapping.
7956 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
7957 * term/serial.c: Simplify using terminfo.
7958 (xpos): Removed.
7959 (ypos): Likewise.
7960 (keep_track): Likewise.
7961 (registered): Likewise.
7962 (input_buf): Likewise.
7963 (npending): Likewise.
7964 (serial_translate_key_sequence): Likewise.
7965 (fill_input_buf): Likewise.
7966 (grub_serial_checkkey): Likewise.
7967 (grub_serial_getkey): Likewise.
7968 (grub_serial_getxy): Likewise.
7969 (grub_serial_gotoxy): Likewise.
7970 (grub_serial_putchar): Likewise.
7971 (grub_serial_cls): Likewise.
7972 (grub_serial_setcolorstate): Likewise.
7973 (grub_serial_setcursor): Likewise.
7974 (serial_hw_init): Use serial_hw_fetch.
7975 (grub_serial_terminfo_input): New variable.
7976 (grub_serial_terminfo_output): Likewise.
7977 (grub_serial_term_input): Use terminfo.
7978 (grub_serial_term_output): Likewise.
7979 * term/terminfo.c (putstr): Use put.
7980 (grub_terminfo_all_free): New function
7981 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
7982 (grub_terminfo_output_register): New function.
7983 (grub_terminfo_output_unregister): Likewise.
7984 (grub_terminfo_getxy): Likewise.
7985 (grub_terminfo_readkey): Likewise.
7986 (grub_terminfo_checkkey): Likewise.
7987 (grub_terminfo_getkey): Likewise.
7988 (grub_terminfo_input_init): Likewise.
7989 (print_terminfo): Likewise.
7990 (grub_cmd_terminfo): Handle encoding.
7991 (grub_terminfo_gotoxy): Track position.
7992 (grub_terminfo_cls): Likewise.
7993 (grub_terminfo_putchar): Likewise.
7994 (grub_terminfo_setcolorstate): Handle colors
7995 (grub_terminfo_cursor_on): This ...
7996 (grub_terminfo_cursor_off): ... and this merged into ...
7997 (grub_terminfo_setcursor): ... this.
7998 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
7999 * unicode/ArabicShaping.txt: New file (imported from Unicode).
8000 * unicode/BidiMirroring.txt: Likewise.
8001 * unicode/UnicodeData.txt: Likewise.
8002 * unicode/COPYING: Likewise.
8003 * util/grub-editenv.c (grub_putchar): Removed.
8004 (grub_xputs_real): New function.
8005 (grub_xputs): New variable.
8006 * util/grub-fstest.c (grub_putchar): Removed.
8007 (grub_xputs_real): New function.
8008 (grub_xputs): New variable.
8009 * util/grub-mkdevicemap.c (grub_putchar): Removed.
8010 (grub_xputs_real): New function.
8011 (grub_xputs): New variable.
8012 * util/grub-probe.c (grub_putchar): Removed.
8013 (grub_xputs_real): New function.
8014 (grub_xputs): New variable.
8015 * util/grub-script-check.c (grub_putchar): Removed.
8016 (grub_xputs_real): New function.
8017 (grub_xputs): New variable.
8018 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
8019 (grub_xputs_real): New function.
8020 (grub_xputs): New variable.
8021 * util/import_unicode.py: New file.
8022 * util/grub-mkfont.c (ft_errmsgs): New array.
8023 (grub_glyph_info): Make bitmap a pointer.
8024 (file_formats): New type WIDTH_SPEC.
8025 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
8026 (options): Add width-spec.
8027 (help): Likewise.
8028 (add_char): Renamed to ...
8029 (add_glyph): ... this.
8030 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
8031 (glyph_replace): New type.
8032 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
8033 (add_char): New function.
8034 (add_subst): Likewise.
8035 (process_cursive): Likewise.
8036 (add_font): Handle GSUB.
8037 (write_font_width_spec): New function.
8038 (main): Sort glyphs.
8039 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
8040 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
8041 * kern/term.c (grub_cls): Moved from here...
8042 * normal/term.c (grub_cls): ... here.
8043
50f0bcda
CW
80442010-07-02 Colin Watson <cjwatson@ubuntu.com>
8045
8046 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
8047 suitable for using within the format argument of printf when
8048 converting grub_size_t.
8049 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
8050 "x" to convert grub_size_t arguments.
8051
40372103
VS
80522010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8053
8054 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
8055 too long captions.
8056 (list_get_minimal_size): Take selection box into account.
8057
942a10c7
VS
80582010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8059
8060 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
8061 NULL font.
8062
2bdb2892
CW
80632010-07-02 Colin Watson <cjwatson@ubuntu.com>
8064
8065 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
8066 devices when iterating over /dev/disk/by-id; they will be handled
8067 later if appropriate, which they aren't always (e.g. LVM).
8068
e03ed6c1
CW
80692010-07-02 Colin Watson <cjwatson@ubuntu.com>
8070
8071 * include/grub/misc.h (grub_reboot): Declare as noreturn.
8072 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
8073 fails.
8074 (grub_halt): Likewise.
8075 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
8076 reset-all fails.
8077 (grub_halt): Don't return, even if all of shut-down, power-off, and
8078 poweroff fail.
8079
47695765
CW
80802010-07-02 Colin Watson <cjwatson@ubuntu.com>
8081
8082 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
8083 arguments, not three.
8084
507736c8
CW
80852010-07-02 Colin Watson <cjwatson@ubuntu.com>
8086
8087 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
8088 * util/grub.d/10_linux.in: Use it to check for LVM, so that
8089 LVM-on-RAID is handled correctly.
8090
e3c8cd37
CW
80912010-07-02 Colin Watson <cjwatson@ubuntu.com>
8092
8093 * docs/grub.texi (Changes from GRUB Legacy): New section.
8094 (Future): Fix typo.
8095
8d4a2fec
CW
80962010-07-02 Colin Watson <cjwatson@ubuntu.com>
8097
8098 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
8099 grub.d/README accidentally ends up executable for one reason or
8100 another. Ignore it.
8101
1c4827be
VS
81022010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8103
8104 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
8105 (gpt_partition_map_iterate): Support non-512B sectors.
8106
d9a0c941
VS
81072010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8108
8109 * kern/efi/init.c (grub_efi_init): Disable watchdog.
8110 Tested by: Seth Goldberg.
8111
48f27e87
VS
81122010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8113
8114 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
8115 Properly align mbi.
8116 Reported by: Seth Goldberg.
8117
b0c4f956
VS
81182010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
8119
8120 * util/grub-mkrescue.in: Avoid module duplication.
8121
105a2e8c
SF
81222010-07-01 Sean Finney <seanius@seanius.net>
8123
8124 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
8125
5944958c
SF
81262010-07-01 Sean Finney <seanius@seanius.net>
8127
8128 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
8129
81302010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
8131
8132 * disk/lvm.c (grub_lvm_checkvalue): New function.
8133 (grub_lvm_check_flag): Likewise.
8134
b79889ba
RM
81352010-07-01 Robert Millan <rmh@gnu.org>
8136
8137 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
8138 Support 'p' as partition separator on kernel of FreeBSD (used
8139 with GPT labels).
8140 (grub_util_biosdisk_get_grub_dev): Likewise.
8141
ec1d04f1
VS
81422010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
8143
8144 Yeeloong firmware port.
8145
8146 * boot/mips/yeeloong/fwstart.S: New file.
8147 * bus/cs5536.c (gpiodump): New const.
8148 (set_io_space): New function.
8149 (set_iod): Likewise.
8150 (set_p2d): Likewise.
8151 (grub_cs5536_init_geode): Likewise.
8152 * commands/mips/yeeloong/lsspd.c: New file.
8153 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
8154 (serial_mod_SOURCES): New variable.
8155 (serial_mod_CFLAGS): Likewise.
8156 (serial_mod_LDFLAGS): Likewise.
8157 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
8158 term/terminfo.c and term/tparm.c.
8159 (pkglib_IMAGES): Add fwstart.img.
8160 (fwstart_img_SOURCES): New variable.
8161 (fwstart_img_CFLAGS): Likewise.
8162 (fwstart_img_ASFLAGS): Likewise.
8163 (fwstart_img_LDFLAGS): Likewise.
8164 (fwstart_img_FORMAT): Likewise.
8165 (pkglib_MODULES): Add lsspd.mod.
8166 (lsspd_mod_SOURCES): New variable.
8167 (lsspd_mod_CFLAGS): Likewise.
8168 (lsspd_mod_LDFLAGS): Likewise.
8169 (pkglib_MODULES): Add halt.mod.
8170 (halt_mod_SOURCES): New variable.
8171 (halt_mod_CFLAGS): Likewise.
8172 (halt_mod_LDFLAGS): Likewise.
8173 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
8174 (serial_mod_SOURCES): Removed.
8175 (serial_mod_CFLAGS): Likewise.
8176 (serial_mod_LDFLAGS): Likewise.
8177 * disk/ata.c (check_device): New function.
8178 (grub_ata_device_initialize): Use check_device.
8179 (grub_ata_iterate): Recheck devices.
8180 (grub_ata_open): Likewise.
8181 (grub_atapi_iterate): Likewise.
8182 (grub_atapi_open): Likewise.
8183 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
8184 (GRUB_ATA_CH1_PORT1): Likewise.
8185 (GRUB_ATA_CH0_PORT2): Likewise.
8186 (GRUB_ATA_CH1_PORT2): Likewise.
8187 * include/grub/mips/loongson.h: New file.
8188 * include/grub/mips/yeeloong/ec.h: Likewise.
8189 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
8190 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
8191 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
8192 * include/grub/misc.h (grub_halt): Declare as noreturn.
8193 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
8194 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
8195 (UART_ENABLE_FIFO_TRIGGER1): New definition.
8196 (UART_ENABLE_DTRRTS): Likewise.
8197 (UART_ENABLE_MODEM): Removed.
8198 (UART_ENABLE_OUT2): New const.
8199 * include/grub/term.h (grub_term_register_input_active): New function.
8200 (grub_term_register_output_active): Likewise.
8201 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
8202 argument.
8203 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
8204 (init_pci): New function.
8205 (grub_machine_init): Execute platform init when firmware. Init serial.
8206 (grub_halt): Implement.
8207 (grub_exit): Likewise.
8208 (grub_reboot): Likewise.
8209 * term/serial.c (serial_hw_init): Update macros.
8210 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
8211 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
8212 (image_targets): New target mipsel-yeeloong-flash.
8213 (generate_image): Support IMAGE_YEELOONG_FLASH.
8214 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
8215 (grub_video_sm712_setup): Init card.
8216 (grub_video_sm712_set_palette): Removed.
8217 * video/sm712_init.c: New file.
8218
ff4a70d2
CW
82192010-06-30 Colin Watson <cjwatson@ubuntu.com>
8220
8221 * Makefile.in (install-local): Temporarily prepend $(builddir) to
8222 PATH when running help2man and then run it on the unadorned
8223 executable names, rather than passing $(builddir)/* paths to
8224 help2man. This avoids the build directory ending up in generated
8225 manual pages.
8226
1246efeb
CW
82272010-06-29 Colin Watson <cjwatson@ubuntu.com>
8228
8229 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
8230 to avoid accidents when debugging with 'sh -x'.
8231 * util/grub-mkrescue.in: Likewise.
8232 * util/grub.d/00_header.in: Likewise.
8233 * util/grub.d/10_hurd.in: Likewise.
8234 * util/grub.d/10_kfreebsd.in: Likewise.
8235 * util/grub.d/10_linux.in: Likewise.
8236 * util/grub.d/10_netbsd.in: Likewise.
8237 * util/grub.d/10_windows.in: Likewise.
8238 * util/grub.d/20_linux_xen.in: Likewise.
8239 * util/grub.d/30_os-prober.in: Likewise.
8240 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8241
1ba9b889
CW
82422010-06-29 Colin Watson <cjwatson@ubuntu.com>
8243
8244 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
8245 last character in the buffer.
8246 Reported by: Vladimir Serbinenko.
8247
dccaf99d
RM
82482010-06-29 Robert Millan <rmh@gnu.org>
8249
8250 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
8251 (Command-line and menu entry commands): Document `badram' command.
8252
d500ed12
RM
82532010-06-28 Robert Millan <rmh@gnu.org>
8254
8255 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
8256 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
8257 command using ${GRUB_BADRAM} as parameter.
8258
20bc84a6
CW
82592010-06-28 Colin Watson <cjwatson@ubuntu.com>
8260
8261 * docs/grub.texi (Device map): New section.
8262 (Themes): New section (stub).
8263 * Makefile.in (docs/grub.info): The info documentation now builds
8264 without errors. Make sure it stays that way.
8265
4045dee1
VS
82662010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8267
8268 Use normal parser for menu entries.
8269 Reported by: Thomas Frauendorfer
8270
8271 * include/grub/parser.h (grub_parser_execute): Don't export.
8272 * normal/menu.c (grub_menu_execute_entry_real): New function.
8273 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
8274
bca58c7b
CW
82752010-06-28 Colin Watson <cjwatson@ubuntu.com>
8276
8277 * docs/grub.texi (Embedded configuration): New section (replacing
8278 old "Preset Menu" stub).
8279 (Images): New section.
8280 (configfile): Note that any menu entries defined in `file' are shown
8281 immediately.
8282
dec53e63
JT
82832010-06-28 Josh Triplett <josh@joshtriplett.org>
8284
8285 * mmap/i386/pc/mmap_helper.S: Set CF on return.
8286
c06e40f7
CW
82872010-06-28 Colin Watson <cjwatson@ubuntu.com>
8288
8289 * util/grub-install.in: Add --debug-image= option.
8290
cb88052b
CW
82912010-06-28 Colin Watson <cjwatson@ubuntu.com>
8292
8293 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
8294 possible on Linux.
8295
8296 * util/deviceiter.c (check_device): Rename to ...
8297 (check_device_readable_unique): ... this. Update all callers.
8298 Maintain and check a list of which devices (by canonicalized name)
8299 have already been seen.
8300 (clear_seen_devices): New function.
8301 (compare_file_names) [__linux__]: New function.
8302 (grub_util_iterate_devices): Clear the list of seen devices on exit
8303 and (just in case) on entry.
8304 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
8305 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
8306 seen-devices list, superseded by general code in check_device.
8307
bbe34652
CW
83082010-06-28 Colin Watson <cjwatson@ubuntu.com>
8309
8310 * commands/cat.c (options): New variable.
8311 (grub_cmd_cat): Parse options. If the --dos option is given, print
8312 DOS-style "\r\n" line endings as simple newlines (Debian bug
8313 #586358).
8314 (GRUB_MOD_INIT): Use extcmd.
8315 (GRUB_MOD_FINI): Likewise.
8316 * docs/grub.texi (cat): Document --dos.
8317
412e09f3
VS
83182010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8319
8320 XEN with Linux grub-mkconfig support.
8321
8322 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
8323 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
8324 GRUB_CMDLINE_XEN_DEFAULT.
8325 * util/grub.d/20_linux_xen.in: New file.
8326
53f3ef38 83272010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
8328
8329 Initialise VGA video on qemu ourselves.
8330
8331 * boot/i386/qemu/boot.S: Don't call 0xc000.
8332 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
8333 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
8334 (kernel_img_HEADERS): Add pci.h.
8335 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
8336 * configure.ac: Force unifont on qemu and yeeloong.
8337 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
8338 (grub_vga_palette_write): Use correct register.
8339 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
8340 Call grub_qemu_init_cirrus.
8341 * kern/i386/qemu/init.c: New file.
8342 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
8343
8344 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
8345
c75be4fb
PR
83462010-06-26 Pavel Roskin <proski@gnu.org>
8347
8348 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
8349 13.
8350
d8034603
CW
83512010-06-26 Colin Watson <cjwatson@ubuntu.com>
8352
8353 * docs/grub.texi (Simple configuration): Explain that
8354 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
8355 set to `true' to disable their respective recovery entries, not
8356 merely set.
8357
3fa06487
CW
83582010-06-26 Colin Watson <cjwatson@ubuntu.com>
8359
8360 Make the `source' command slightly faster.
8361
8362 * normal/main.c (grub_normal_execute): Don't re-read list files when
8363 nested.
8364
e9b29642
CW
83652010-06-23 Colin Watson <cjwatson@ubuntu.com>
8366
8367 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
8368 field position and mask size to red fields from mode_info, not
8369 green.
8370 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
8371 Remove redundant tag->common.framebuffer_type assignment.
8372 Reported by: Seth Goldberg.
8373
e726542f
CW
83742010-06-23 Colin Watson <cjwatson@ubuntu.com>
8375
8376 Sync up other versions of the Linux loader with Robert Millan's
8377 change of 2010-01-09, "Make loader output a bit more user-friendly".
8378
8379 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
8380 grub_dprintf().
8381 (grub_cmd_linux): Likewise.
8382 (grub_cmd_initrd): Likewise.
8383 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
8384 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
8385
d6e98a17
CW
83862010-06-21 Colin Watson <cjwatson@ubuntu.com>
8387
8388 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
8389 larger than MEMORY_MAP_SIZE.
8390
14d3f08e
BC
83912010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
8392
8393 Fix parallel build.
8394
8395 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
8396 dependency.
8397 * script/parser.y: #include grub_script.tab.h header.
8398
4f9613a3
VS
83992010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8400
8401 Support >3GiB and <16MiB RAM in i386-qemu.
8402
8403 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
8404 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
8405 (grub_lower_mem): Removed.
8406 (grub_upper_mem): Likewise.
8407 (mem_size): Made static.
8408 (above_4g): New variable.
8409 (grub_machine_mmap_init): Detect small mem_size and above_4g.
8410 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
8411 support.
8412
05e51879
VS
84132010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8414
8415 Cirrus 5446 and Bochs video cards support.
8416
8417 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
8418 video_bochs.mod
8419 (video_cirrus_mod_SOURCES): New variable.
8420 (video_cirrus_mod_CFLAGS): Likewise.
8421 (video_cirrus_mod_LDFLAGS): Likewise.
8422 (video_bochs_mod_SOURCES): Likewise.
8423 (video_bochs_mod_CFLAGS): Likewise.
8424 (video_bochs_mod_LDFLAGS): Likewise.
8425 * include/grub/vga.h: New file.
8426 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
8427 (grub_video_fb_set_page_t): New type.
8428 (grub_video_fb_setup): New prototype.
8429 (grub_video_fb_swap_buffers): Likewise.
8430 (grub_video_fb_get_info_and_fini): Likewise.
8431 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
8432 (CRTC_DATA_PORT): Likewise.
8433 (CRTC_CURSOR): Likewise.
8434 (CRTC_CURSOR_ADDR_HIGH): Likewise.
8435 (CRTC_CURSOR_ADDR_LOW): Likewise.
8436 (CRTC_CURSOR_DISABLE): Likewise.
8437 (update_cursor): Use grub_vga_cr_write.
8438 (grub_vga_text_setcursor): Likewise.
8439 * video/bochs.c: New file.
8440 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
8441 (palette): Likewise.
8442 (palette_size): Likewise.
8443 (framebuffer): New variable.
8444 (grub_video_fb_init): Use 'framebuffer'.
8445 (grub_video_fb_fini): Likewise.
8446 (grub_video_fb_get_info): Likewise.
8447 (grub_video_fb_get_palette): Likewise.
8448 (grub_video_fb_set_palette): Likewise.
8449 (grub_video_fb_set_viewport): Likewise.
8450 (grub_video_fb_get_viewport): Likewise.
8451 (grub_video_fb_map_color): Likewise.
8452 (grub_video_fb_map_rgb): Likewise.
8453 (grub_video_fb_map_rgba): Likewise.
8454 (grub_video_fb_unmap_color): Likewise.
8455 (grub_video_fb_unmap_color_int): Likewise.
8456 (grub_video_fb_fill_rect): Likewise.
8457 (grub_video_fb_blit_bitmap): Likewise.
8458 (grub_video_fb_blit_render_target): Likewise.
8459 (grub_video_fb_scroll): Likewise.
8460 (grub_video_fb_create_render_target): Likewise.
8461 (grub_video_fb_doublebuf_blit_init): Likewise.
8462 (grub_video_fb_set_active_render_target): Handle doublebuffering.
8463 (doublebuf_pageflipping_update_screen): New function.
8464 (doublebuf_pageflipping_init): Likewise.
8465 (grub_video_fb_setup): Likewise.
8466 (grub_video_fb_swap_buffers): Likewise.
8467 (grub_video_fb_get_info_and_fini): Likewise.
8468 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
8469 All users updated.
8470 (doublebuf_pageflipping_commit): Restructured into ...
8471 (doublebuf_pageflipping_set_page): ... this.
8472 (doublebuf_pageflipping_update_screen): Removed.
8473 (doublebuf_pageflipping_init): Likewise.
8474 (double_buffering_init): Likewise.
8475 (grub_video_vbe_setup): Use grub_video_fb_setup.
8476 (grub_video_vbe_swap_buffers): Removed.
8477 (grub_video_vbe_set_active_render_target): Likewise.
8478 (grub_video_vbe_get_active_render_target): Likewise.
8479 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
8480 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
8481 grub_video_fb_set_active_render_target and
8482 grub_video_fb_get_active_render_target.
8483 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
8484 (SEQUENCER_DATA_PORT): Likewise.
8485 (MAP_MASK_REGISTER): Likewise.
8486 (CRTC_ADDR_PORT): Likewise.
8487 (CRTC_DATA_PORT): Likewise.
8488 (START_ADDR_HIGH_REGISTER): Likewise.
8489 (START_ADDR_LOW_REGISTER): Likewise.
8490 (GRAPHICS_ADDR_PORT): Likewise.
8491 (GRAPHICS_DATA_PORT): Likewise.
8492 (READ_MAP_REGISTER): Likewise.
8493 (INPUT_STATUS1_REGISTER): Likewise.
8494 (INPUT_STATUS1_VERTR_BIT): Likewise.
8495 (get_map_mask): Use grub_vga_sr_read.
8496 (set_map_mask): Use grub_vga_sr_write.
8497 (set_read_map): Use grub_vga_gr_write.
8498 (set_start_address): Use grub_vga_cr_write.
8499 * video/sm712.c (framebuffer): Remove leftover fields.
8500
4321c64a
CW
85012010-06-20 Colin Watson <cjwatson@ubuntu.com>
8502
8503 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
8504 setting GRUB_VIDEO_BACKEND. Make it available as a user override
8505 instead. Replace the gfxterm backend check with a check that
8506 ${GRUB_PREFIX}/video.lst is non-empty.
8507 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
8508 again.
8509 (load_video): New generated function. Call it before loading
8510 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
8511 * util/grub.d/10_linux.in (linux_entry): Call load_video.
8512 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
8513 * docs/grub.texi (Simple configuration): Document
8514 GRUB_VIDEO_BACKEND.
8515
85162010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8517
8518 Use video functions in linux and xnu loaders.
8519
8520 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
8521 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
8522 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
8523 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
8524 loader/i386/pc/linux.c.
8525 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
8526 (find_line_len): Removed.
8527 (find_framebuf): Likewise.
8528 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
8529 * loader/i386/efi/xnu.c: Removed.
8530 * loader/i386/pc/xnu.c: Moved from here...
8531 * loader/i386/xnu.c: ...here.
8532
8533 Enable priorities in video drivers.
8534
8535 * include/grub/video.h (grub_video_adapter_prio_t): New type.
8536 (grub_video_adapter): New field prio.
8537 (grub_video_register): Respect prio when inserting.
8538 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
8539 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
8540 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
8541 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
8542 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
8543 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
8544 * video/sm712.c (grub_video_sm712_adapter): Likewise.
8545
8546 Fix SDL driver ID.
8547
8548 * include/grub/video.h (grub_video_driver_id_t): New value
8549 GRUB_VIDEO_DRIVER_SDL.
8550 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
8551
7d24e434
CW
85522010-06-17 Colin Watson <cjwatson@ubuntu.com>
8553
8554 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
8555 argument to printf.
8556 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
8557
c88a83f6
CW
85582010-06-17 Colin Watson <cjwatson@ubuntu.com>
8559
8560 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
8561 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
8562
094dfb69
CW
85632010-06-17 Colin Watson <cjwatson@ubuntu.com>
8564
8565 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
8566 directly, and recommend grub-install instead.
8567 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
8568
2164da6b
CW
85692010-06-17 Colin Watson <cjwatson@ubuntu.com>
8570
8571 Fix i386-pc prefix handling with nested partitions (Debian bug
8572 #585068). Note that the case where the core image is booted using
8573 multiboot and relocated from its original location still requires
8574 more work.
8575
8576 * kern/i386/pc/init.c (make_install_device): If the prefix starts
8577 with "(,", fill the boot drive in between those two characters, but
8578 expect that a full partition specification including partition map
8579 names will follow.
8580 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
8581 specified, write a prefix without the drive name but including a
8582 full partition specification.
8583
044e2e60
CW
85842010-06-16 Colin Watson <cjwatson@ubuntu.com>
8585
8586 * util/grub-mkconfig.in: Ignore non-option arguments, for
8587 compatibility with older versions (before 2010-06-12) which did the
8588 same. In particular, this makes it easier to ship an update-grub
8589 wrapper which is compatible with that used with GRUB Legacy (Debian
8590 bug #586056).
8591
5591324f
GS
85922010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
8593
8594 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
8595 for manual page generation.
8596
662e24d5
GS
85972010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
8598
8599 * po/POTFILES: Remove leftover commands/handler.c.
8600
8d70754e
CW
86012010-06-14 Colin Watson <cjwatson@ubuntu.com>
8602
8603 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
8604 left this script non-functional.
8605
41160e2e
CW
86062010-06-14 Colin Watson <cjwatson@ubuntu.com>
8607
8608 * docs/man/grub-emu.h2m: New file.
8609
b5309cc1
CW
86102010-06-13 Colin Watson <cjwatson@ubuntu.com>
8611
8612 * docs/grub.texi (Commands): Document reduced command set in rescue
8613 mode.
8614 (cpuid): New section.
8615
fcb2d090
GS
86162010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
8617
8618 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
8619 new partition naming style.
8620 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
8621
96e5c556
BC
86222010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
8623
8624 Add "-o grub.iso" like cmdline options support.
8625
8626 * util/grub-install.in: Improve cmdline option parsing.
8627 * util/grub-mkconfig.in: Likewise.
8628 * util/grub-mkrescue.in: Likewise.
8629 * util/grub-reboot.in: Likewise.
8630 * util/grub-set-default.in: Likewise.
8631 * util/i386/efi/grub-install.in: Likewise.
8632 * util/ieee1275/grub-install.in: Likewise.
8633 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8634
c16be99b
CW
86352010-06-12 Colin Watson <cjwatson@ubuntu.com>
8636
8637 * .bzrignore: Ignore 41_custom.
8638
ce08a9fb
TS
86392010-06-12 Thomas Schmitt <scdbackup@gmx.net>
8640
8641 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
8642
7beac90c
CW
86432010-06-12 Colin Watson <cjwatson@ubuntu.com>
8644
8645 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
8646 prototype declarations.
8647
8648 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
8649 generating fs, partmap, and video lists.
8650 * include/grub/fs.h (grub_fs_register): Omit prototype if
8651 GRUB_LST_GENERATOR is defined.
8652 * include/grub/partition.h (grub_partition_map_register): Likewise.
8653 * include/grub/video.h (grub_video_register): Likewise.
8654
1c8f0f8d
JM
86552010-06-12 Javier Martín <lordhabbit@gmail.com>
8656
8657 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
8658
a6085973
TS
86592010-06-12 Thomas Schmitt <scdbackup@gmx.net>
8660
8661 * util/grub-mkrescue.in: Support --xorriso argument.
8662
25c56d29
VS
86632010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
8664
8665 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
8666 Suggested by: Thomas Schmitt.
8667
e03e4b24
VS
86682010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
8669
8670 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
8671 Suggested by: Thomas Schmitt.
8672
57711df6
VS
86732010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
8674
8675 custom.cfg support.
8676
8677 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
8678 * util/grub.d/41_custom.in: New file.
8679
ee62c427
CW
86802010-06-12 Colin Watson <cjwatson@ubuntu.com>
8681
8682 * util/grub-mkrescue.in (make_image): Remove sh module, which has
8683 been merged back into normal.
8684
283af07a
CW
86852010-06-11 Colin Watson <cjwatson@ubuntu.com>
8686
8687 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
8688 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
8689
56a0d956
CW
86902010-06-11 Colin Watson <cjwatson@ubuntu.com>
8691
8692 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
8693 when generating manual pages.
8694 * docs/man/grub-bin2h.h2m: New file.
8695 * docs/man/grub-editenv.h2m: New file.
8696 * docs/man/grub-fstest.h2m: New file.
8697 * docs/man/grub-install.h2m: New file.
8698 * docs/man/grub-macho2img.h2m: New file.
8699 * docs/man/grub-mkconfig.h2m: New file.
8700 * docs/man/grub-mkdevicemap.h2m: New file.
8701 * docs/man/grub-mkfont.h2m: New file.
8702 * docs/man/grub-mkimage.h2m: New file.
8703 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
8704 * docs/man/grub-mkrelpath.h2m: New file.
8705 * docs/man/grub-mkrescue.h2m: New file.
8706 * docs/man/grub-ofpathname.h2m: New file.
8707 * docs/man/grub-pe2elf.h2m: New file.
8708 * docs/man/grub-probe.h2m: New file.
8709 * docs/man/grub-reboot.h2m: New file.
8710 * docs/man/grub-script-check.h2m: New file.
8711 * docs/man/grub-set-default.h2m: New file.
8712 * docs/man/grub-setup.h2m: New file.
8713
3a37e322
VS
87142010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
8715
8716 Use FOR_* macros instead of *_iterate whenever possible.
8717
8718 * commands/handler.c: Removed.
8719 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
8720 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
8721 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8722 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
8723 (grub_probe_SOURCES): Remove kern/parser.c.
8724 (util/grub-script-check.c_DEPENDENCIES): Removed.
8725 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
8726 and grub_script_check_init.c.
8727 (grub_script_check_init.lst): Removed.
8728 (grub_script_check_init.h): Likewise.
8729 (grub_script_check_init.c): Likewise.
8730 (pkglib_MODULES): Remove handler.mod and sh.mod.
8731 (handler_mod_SOURCES): Removed.
8732 (handler_mod_CFLAGS): Likewise.
8733 (handler_mod_LDFLAGS): Likewise.
8734 (normal_mod_SOURCES): Remove normal/handler.c.
8735 Add script/main.c, script/script.c, script/execute.c,
8736 script/function.c, script/lexer.c, grub_script.tab.c
8737 and grub_script.yy.c.
8738 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8739 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
8740 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
8741 (grub_setup_SOURCES): Remove kern/parser.c.
8742 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8743 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
8744 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
8745 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
8746 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
8747 (grub_setup_SOURCES): Remove kern/parser.c.
8748 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
8749 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
8750 * include/grub/command.h (grub_command_iterate): Removed.
8751 (FOR_COMMANDS): New macro.
8752 * include/grub/dl.h (grub_dl): New member next.
8753 (grub_dl_iterate): Removed.
8754 (grub_dl_head): New variable declaration.
8755 (FOR_DL_MODULES): New macro.
8756 * include/grub/fs.h: Include list.h.
8757 (grub_fs): Make next first element.
8758 (grub_fs_list): New variable declaration.
8759 (grub_fs_register): Make inline.
8760 (grub_fs_unregister): Likewise.
8761 (grub_fs_iterate): Removed.
8762 (FOR_FILESYSTEMS): New macro.
8763 * include/grub/handler.h: Removed.
8764 * include/grub/list.h (grub_list_hook_t): Removed.
8765 (grub_list_test_t): Likewise.
8766 (grub_list_pop): Likewise.
8767 (grub_list_iterate): Likewise.
8768 (grub_list_insert): Likewise.
8769 (FOR_LIST_ELEMENTS): New macro.
8770 * include/grub/parser.h (grub_parser_class): Removed.
8771 (grub_parser_register): Likewise.
8772 (grub_parser_unregister): Likewise.
8773 (grub_parser_get_current): Likewise.
8774 (grub_parser_set_current): Likewise.
8775 (grub_register_rescue_parser): Likewise.
8776 (grub_rescue_parse_line): New function.
8777 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
8778 * include/grub/script_sh.h (grub_script_function_list): New variable
8779 declaration.
8780 (FOR_SCRIPT_FUNCTIONS): New macro.
8781 (grub_script_function_iterate): Removed.
8782 (grub_normal_parse_line): New prototype.
8783 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
8784 (FOR_DISABLED_TERM_INPUTS): Likewise.
8785 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
8786 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
8787 * include/grub/video.h (grub_video_adapter): Move 'next' to first
8788 element.
8789 (grub_video_register): Inline.
8790 (grub_video_unregister): Likewise.
8791 (grub_video_adapter_list): New variable declaration.
8792 (grub_video_iterate): Removed.
8793 (FOR_VIDEO_ADAPTERS): New macro.
8794 * kern/dl.c (grub_dl_list): Removed. All users updated.
8795 (grub_dl_iterate): Removed.
8796 * kern/fs.c (grub_fs_list): Make global.
8797 (grub_fs_register): Removed.
8798 (grub_fs_unregister): Likewise.
8799 (grub_fs_iterate): Likewise.
8800 * kern/handler.c: Removed.
8801 * kern/list.c (grub_list_pop): Removed.
8802 (grub_list_iterate): Likewise.
8803 (grub_list_insert): Likewise.
8804 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
8805 (grub_prio_list_insert): Don't use grub_list_insert.
8806 * kern/main.c (grub_register_rescue_parser): Don't call
8807 grub_register_rescue_parser.
8808 * kern/parser.c (grub_parser_class): Removed.
8809 (grub_parser_execute): Use grub_rescue_parse_line.
8810 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
8811 (grub_rescue_parser): Removed.
8812 (grub_register_rescue_parser): Likewise.
8813 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
8814 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
8815 (grub_auth_check_authentication): Likewise.
8816 * normal/completion.c (iterate_command): Removed.
8817 (grub_normal_do_completion): Use FOR_COMMANDS.
8818 * normal/handler.c: Removed.
8819 * normal/main.c (read_config_file): Remove parser changing.
8820 (grub_normal_execute): Don't call read_handler_list.
8821 (grub_normal_read_line_real): Statically allocate prompt.
8822 (grub_cmdline_run): Use grub_normal_parse_line.
8823 (GRUB_MOD_FINI): Don't call free_handler_list.
8824 * normal/menu_entry.c (run): Likewise.
8825 * script/function.c (grub_script_function_list): Make global.
8826 (grub_script_function_iterate): Removed.
8827 * script/main.c (grub_normal_parse_line): Make global.
8828 (grub_sh_parser): Removed.
8829 (GRUB_MOD_INIT): Likewise.
8830 (GRUB_MOD_FINI): Likewise.
8831 * tests/lib/functional_test.c (grub_functional_test): Use
8832 FOR_LIST_ELEMENTS.
8833 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
8834 (grub_test_run): Use FOR_LIST_ELEMENTS.
8835 * tests/lib/unit_test.c (main): Likewise.
8836 * util/deviceiter.c (grub_util_iterate_devices): Don't use
8837 grub_list_pop.
8838 * util/grub-fstest.c (grub_term_input_class): Removed.
8839 (grub_term_output_class): Likewise.
8840 * util/grub-probe.c: Likewise.
8841 * util/i386/pc/grub-setup.c: Likewise.
8842 * util/sparc64/ieee1275/grub-setup.c: Likewise.
8843 * util/grub-script-check.c (main): Don't call grub_init_all and
8844 grub_fini_all.
8845 * video/video.c (grub_video_adapter_list): Make global.
8846 (grub_video_register): Removed.
8847 (grub_video_unregister): Likewise.
8848 (grub_video_iterate): Likewise.
8849
6289c3a7
VS
88502010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
8851
8852 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
8853 reported by Henrique Ferreiro.
8854
91460247
RM
88552010-06-09 Robert Millan <rmh@gnu.org>
8856
8857 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
8858 ones, when both are available.
8859
0ea7c4f9
GS
88602010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
8861
8862 Make --version uniform and avoid hard-coded program name.
8863
8864 * util/grub-mkimage.c (main): Use `program_name' instead of
8865 hard-coded string.
8866 * util/i386/pc/grub-setup.c (main): Likewise.
8867 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
8868 * util/grub-install.in: Save the basename of $0 in $self, and use the
8869 latter in informational messages. Use the same format for --version
8870 as the binary programs.
8871 * util/grub-mkconfig.in: Likewise.
8872 * util/grub-mkrescue.in: Likewise.
8873 * util/grub-reboot.in: Likewise.
8874 * util/grub-set-default.in: Likewise.
8875 * util/i386/efi/grub-install.in: Likewise.
8876 * util/ieee1275/grub-install.in: Likewise.
8877 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8878
e8a6f3b6
GS
88792010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
8880
8881 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
8882 embedding area. Use <= instead of == when checking for non-emptiness.
8883
f4d095d7
GS
88842010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
8885
8886 * configure.ac: Add `.' to the directories searched for unifont.
8887
50e532ca
CW
88882010-06-08 Colin Watson <cjwatson@ubuntu.com>
8889
8890 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
8891 grub_script.yy.h.
8892
d39f3dec
CW
88932010-06-08 Colin Watson <cjwatson@ubuntu.com>
8894
8895 * docs/grub.texi (History): Expand to cover GRUB 2.
8896 (Serial terminal): Refer to `terminal_input' and `terminal_output'
8897 commands, not `terminal'.
8898 (serial): Likewise.
8899 (terminal_input): New section.
8900 (terminal_output): New section.
8901 (uppermem): New section (stub).
8902 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
8903
6ef0ddb4
CW
89042010-06-08 Colin Watson <cjwatson@ubuntu.com>
8905
8906 * docs/grub.texi (Security): Menu entries are unrestricted by
8907 default, not restricted to superusers as I had previously thought.
8908 Reword to account for this.
8909
e0f4c438
CW
89102010-06-07 Colin Watson <cjwatson@ubuntu.com>
8911
8912 * kern/emu/misc.c (device_mapper_null_log): New function.
8913 (grub_device_mapper_supported): New function.
8914 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
8915 prototype.
8916 * kern/emu/hostdisk.c (find_partition_start): Check whether
8917 device-mapper is supported before trying to use it.
8918 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
8919
da908200
CW
89202010-06-07 Colin Watson <cjwatson@ubuntu.com>
8921
8922 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
8923 (File name syntax): Likewise.
8924 (help): --all is no longer supported in GRUB 2. Be more precise
8925 about pattern matching.
8926
fb55c3ac
CW
89272010-06-07 Colin Watson <cjwatson@ubuntu.com>
8928
8929 * normal/completion.c (grub_normal_do_completion): When completing
8930 arguments to "set" and the current word contains an equals sign,
8931 skip to after the equals sign before starting completion.
8932
258c2573
CW
89332010-06-07 Colin Watson <cjwatson@ubuntu.com>
8934
8935 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
8936
ee75515e
CW
89372010-06-07 Colin Watson <cjwatson@ubuntu.com>
8938
8939 * docs/grub.texi (Network): New section.
8940 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
8941 `(nd)' as in GRUB Legacy.
8942 (pxe_unload): New section.
8943
a6a700aa
CW
89442010-06-07 Colin Watson <cjwatson@ubuntu.com>
8945
8946 * docs/grub.texi (Troubleshooting): `echo' is not usually available
8947 in the rescue shell, so recommend using `set' instead. Thanks,
8948 Jordan Uggla.
8949
4003dd38
CW
89502010-06-07 Colin Watson <cjwatson@ubuntu.com>
8951
8952 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
8953 (password): New section.
8954 (password_pbkdf2): New section.
8955 (search): New section.
8956 (Security): New section.
8957 (Troubleshooting): New section, currently very incomplete.
8958 (Invoking grub-mkpasswd-pbkdf2): New section.
8959 (Internals): New section, currently very incomplete.
8960
e1cbcc40
CW
89612010-06-07 Colin Watson <cjwatson@ubuntu.com>
8962
8963 * util/grub.d/00_header.in: Add some more quoting (of
8964 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
8965 work again.
8966 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
8967
db8fa1ad
CW
89682010-06-07 Colin Watson <cjwatson@ubuntu.com>
8969
8970 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
8971 to `count', fixing variable shadowing that broke the -c option.
8972
89732010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
8974
8975 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
8976 in case they contain spaces.
8977
f28a9212
CW
89782010-06-04 Colin Watson <cjwatson@ubuntu.com>
8979
8980 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
8981 "part_" to partmap module names, in line with grub-install.
8982 Reported by: Jindřich Makovička (Debian bug #584426).
8983
9cdfe32f
CW
89842010-06-04 Colin Watson <cjwatson@ubuntu.com>
8985
8986 * util/grub-mkimage.c: Make target-related error messages slightly
8987 more helpful; -O talks about "format". Explicitly point to the use
8988 of -O if no target is specified.
8989 Reported by: Didier Raboud (Debian bug #584415).
8990
795b593a
CW
89912010-06-03 Colin Watson <cjwatson@ubuntu.com>
8992
8993 * INSTALL: Document several build requirements for optional features
8994 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
8995
9d9b5833
GS
89962010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
8997
8998 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
8999 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
9000 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
9001
0819fec8
CW
90022010-06-02 Colin Watson <cjwatson@ubuntu.com>
9003
9004 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
9005 Thanks to Jordan Uggla for spotting this.
9006
49396b4f
VS
90072010-06-02 Aleš Nesrsta <starous@volny.cz>
9008
9009 Finally make USB usable.
9010
9011 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
9012 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
9013 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
9014 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
9015 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
9016 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
9017 (GRUB_OHCI_FSMPS): Likewise.
9018 (GRUB_OHCI_PERIODIC_START): Likewise.
9019 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
9020 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
9021 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
9022 (GRUB_OHCI_SET_PORT_RESET): Likewise.
9023 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
9024 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
9025 (grub_ohci_transaction): Likewise.
9026 (grub_ohci_transfer): Improve condition detection algorithms.
9027 Handle toggle property. Program the transactions correctly.
9028 Improve error handling. Various important fixups.
9029 (grub_ohci_portstatus): Put register writes in right order.
9030 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
9031 (grub_uhci_transfer): Don't show "failed" message on success.
9032 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
9033 array.
9034 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
9035 determine its size.
9036 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
9037 before initialization is completed. Use IN direction for empty
9038 transfers. Use last_trans and compute toggle.
9039 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
9040 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
9041 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
9042 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
9043 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
9044 (grub_usb_device): Increase toggle to 256.
9045 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
9046 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
9047 GRUB_USBMS_SUBCLASS_SFF8070.
9048 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
9049 (grub_scsi_inquiry): New member page and alloc_length.
9050 (grub_scsi_request_sense): New structure.
9051 (grub_scsi_request_sense_data): Likewise.
9052 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
9053 control.
9054 * disk/scsi.c (grub_scsi_request_sense): New function.
9055 (grub_scsi_test_unit_ready): Likewise.
9056 (grub_scsi_inquiry): Fill new fields.
9057 (grub_scsi_read_capacity): Likewise.
9058 (grub_scsi_read10): Add request sense at the end.
9059 (grub_scsi_read12): Likewise.
9060 (grub_scsi_write10): Likewise.
9061 (grub_scsi_write12): Likewise.
9062 (grub_scsi_open): Add Test Unit Ready.
9063 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
9064 Support additional subclasses. Con't clear halt yet. Activate the
9065 proper config. Calculate LUNs correctly.
9066 (grub_usbms_transfer): Various important fixups.
9067
90682010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9069
9070 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
9071 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
9072 (grub_ohci_fini_hw): New function.
9073 (grub_ohci_restore_hw): Likewise.
9074 (GRUB_MOD_INIT(ohci)): Register preboot hook.
9075 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
9076 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
9077
90782010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9079
9080 Dedicated DMA allocations.
9081
9082 * bus/pci.c (grub_memalign_dma32): New function
9083 (grub_dma_free): Likewise.
9084 (grub_dma_get_virt): Likewise.
9085 (grub_dma_get_phys): Likewise.
9086 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
9087 (grub_ohci_pci_iter): Use dma32_alloc.
9088 (grub_ohci_transfer): Likewise.
9089 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
9090 (grub_usb_bulk_readwrite): Likewise.
9091 * include/grub/pci.h: Add declarations.
9092
90932010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9094
9095 CS5536 support.
9096
9097 * bus/cs5536.c: New file.
9098 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
9099 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
9100 (cs5536_mod_SOURCES): New variable.
9101 (cs5536_mod_CFLAGS): Likewise.
9102 (cs5536_mod_LDFLAGS): Likewise.
9103 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
9104 machine/pci.h.
9105 (kernel_img_SOURCES): Add bus/cs5536.c.
9106 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
9107 usb_keyboard.mod.
9108 (usb_mod_SOURCES): New variable.
9109 (usb_mod_CFLAGS): New variable.
9110 (usb_mod_LDFLAGS): New variable.
9111 (usbtest_mod_SOURCES): New variable.
9112 (usbtest_mod_CFLAGS): New variable.
9113 (usbtest_mod_LDFLAGS): New variable.
9114 (ohci_mod_SOURCES): New variable.
9115 (ohci_mod_CFLAGS): New variable.
9116 (ohci_mod_LDFLAGS): New variable.
9117 (usbms_mod_SOURCES): New variable.
9118 (usbms_mod_CFLAGS): New variable.
9119 (usbms_mod_LDFLAGS): New variable.
9120 (usb_keyboard_mod_SOURCES): New variable.
9121 (usb_keyboard_mod_CFLAGS): New variable.
9122 (usb_keyboard_mod_LDFLAGS): New variable.
9123 * include/grub/smbus.h: New file.
9124 * include/grub/cs5536.h: New file.
9125
0b35b2a9
CW
91262010-06-02 Colin Watson <cjwatson@ubuntu.com>
9127
9128 * util/grub.d/00_header.in: Add safety check to make sure that
9129 ${locale_dir} exists before trying to probe it.
9130
ca0afd5b
CW
91312010-06-02 Colin Watson <cjwatson@ubuntu.com>
9132
9133 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
9134 per the GNU Coding Standards; this is now too obscure to be worth
9135 documenting.
9136 (QNX): Likewise.
9137 (chainloader): Remove cross-reference to `SCO UnixWare'.
9138
1c41aa78
CW
91392010-06-02 Colin Watson <cjwatson@ubuntu.com>
9140
9141 * docs/grub.texi (Chain-loading): New section.
9142 (DOS/Windows): New section, borrowed from GRUB Legacy with details
9143 adjusted for GRUB 2.
9144 (SCO UnixWare): Likewise.
9145 (QNX): Likewise.
9146 (chainloader): Add reference to `Block list syntax'.
9147 (drivemap): New section.
9148 (parttool): New section.
9149
bb8ea0f5
CW
91502010-06-02 Colin Watson <cjwatson@ubuntu.com>
9151
9152 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
9153 the grub shell'.
9154 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
9155 (Installing GRUB using grub-install): Remove reference to the grub
9156 shell; mention `grub-mkimage' and `grub-setup' instead.
9157 (Invoking grub-install): Likewise.
9158 (Interface): Add reference to `Menu entry editor'.
9159 (serial): Remove `--device' option.
9160
288dd6ed
CW
91612010-06-02 Colin Watson <cjwatson@ubuntu.com>
9162
9163 * docs/grub.texi (Configuration): New section, documenting
9164 configuration file generation using grub-mkconfig. I've left a slot
9165 for documenting the full shell scripting format but have not yet
9166 started on writing that up.
9167 (Invoking grub-mkconfig): New section.
9168
34c9f0e9
CW
91692010-06-02 Colin Watson <cjwatson@ubuntu.com>
9170
9171 * docs/grub.texi (direntry): Remove grub-terminfo reference.
9172 (GNU GRUB manual): Likewise.
9173 (General commands): Update description of `terminfo' for GRUB 2.
9174
9121567e
CW
91752010-06-02 Colin Watson <cjwatson@ubuntu.com>
9176
9177 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
9178 (GRUB_MOD_INIT): Fix capitalisation.
9179 * docs/grub.texi (Command-line and menu entry commands): Document
9180 gettext and gptsync commands.
9181
ab631611
CW
91822010-06-02 Colin Watson <cjwatson@ubuntu.com>
9183
9184 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
9185 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
9186
bde4a9ac
CW
91872010-06-01 Colin Watson <cjwatson@ubuntu.com>
9188
9189 Add btrfs probing support, currently only in the single-device case.
9190
9191 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
9192 function.
9193 (grub_guess_root_device): Call find_root_device_from_mountinfo
9194 before looking in /dev.
9195
b1d17e10
VS
91962010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9197
9198 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
9199 GRUB_DISK_SIZE_UNKNOWN.
9200 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
9201
dfbfe004
JS
92022010-05-31 Jiro SEKIBA <jir@unicus.jp>
9203
9204 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
9205 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
9206 corrupted or not synced properly.
9207
c2ffc8e9
VS
92082010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9209
9210 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
9211 Reported by: Seth Goldberg.
9212
56293166
VS
92132010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9214
9215 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
9216 addition of dest.
9217 Reported by: Seth Goldberg.
9218
7620e7de
VS
92192010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9220
9221 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
9222 Reported by: Seth Goldberg.
9223
c837af3f
VS
92242010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9225
9226 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
9227 64-bit address as signed on MIPS.
9228
c7c75cf4
CW
92292010-05-28 Colin Watson <cjwatson@ubuntu.com>
9230
9231 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
9232 to the empty string.
9233
fa4b8490
BC
92342010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
9235
9236 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
9237
9238 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
9239 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
9240 * kern/misc.c (__enable_execute_stack): Disable on
9241 GRUB_MACHINE_EMU.
9242
a33075b9
CW
92432010-05-28 Colin Watson <cjwatson@ubuntu.com>
9244
9245 Make grub-probe work with symbolic links under /dev/mapper as well
9246 as with real block devices. The Linux world seems to be (at best)
9247 in transition here, and GRUB shouldn't get caught in the middle.
9248
9249 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
9250 /dev/mapper.
9251
d8708134
CW
92522010-05-27 Colin Watson <cjwatson@ubuntu.com>
9253
9254 * util/grub-script-check.c (main): Ensure defined behaviour on empty
9255 input files (in which case exit zero).
9256
db2102a0
CW
92572010-05-27 Colin Watson <cjwatson@ubuntu.com>
9258
9259 * kern/emu/misc.c (canonicalize_file_name): realpath can still
9260 return NULL for various reasons even if it has a maximum-length
9261 buffer: for example, there might be a symlink loop, or the path
9262 might exceed PATH_MAX. If this happens, return NULL.
9263
5fdba519
RM
92642010-05-27 Robert Millan <rmh@gnu.org>
9265
9266 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
9267 partmap module to handle cross-partmap setups.
9268 Reported by Orestes Mas. Gràcies!
9269
d1d368e4
CW
92702010-05-27 Colin Watson <cjwatson@ubuntu.com>
9271
9272 * util/grub-mkrescue.in: Initialise override_dir rather than
9273 assuming that it's unset or empty in the environment.
9274
95ac3c73
GS
92752010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
9276
9277 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
9278 variable index into p_index to suppress a warning with -Wshadow.
9279
7d8c0213
BC
92802010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
9281
9282 * INSTALL: Added flex >= 2.5.35 requirement.
9283
db4d5813
VS
92842010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9285
9286 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
9287
f24f4300
VS
92882010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9289
9290 cmostest support.
9291
9292 * commands/i386/cmostest.c: New file.
9293 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
9294 (cmostest_mod_SOURCES): New variable.
9295 (cmostest_mod_CFLAGS): Likewise.
9296 (cmostest_mod_LDFLAGS): Likewise.
9297 * conf/i386-pc.rmk: Likewise.
9298 * docs/grub.texi (Vendor power-on keys): New section.
9299 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
9300 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
9301 and GRUB_BUTTON_CMOS_ADDRESS.
9302 * util/grub.d/00_header.in: Handle powering-on by separate button.
9303
ad603f61
VS
93042010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9305
9306 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
9307 Removed drawing_scrollbar argument. All users updated
9308 Fixes #29792.
9309 Reported by Jo Shields
9310
3ecb080a
VS
93112010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9312
9313 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
9314 buffer since gfxterm handles double repaint.
9315
5f2316c1
VS
93162010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9317
9318 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
9319 * term/gfxterm.c (real_scroll): Likewise.
9320
9a25f885
VS
93212010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9322
9323 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
9324 before calling BIOS.
9325
39fbb79a
VS
93262010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9327
9328 * include/grub/i18n.h: Always enable grub_gettext.
9329
228cfa97
VS
93302010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9331
9332 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
9333 partition naming style.
9334
21717c8f
CW
93352010-05-21 Colin Watson <cjwatson@ubuntu.com>
9336
9337 * util/grub-mkconfig.in: Fix handling of -o so that it works when
9338 not the first option.
9339
c0f48e65
CW
93402010-05-20 Colin Watson <cjwatson@ubuntu.com>
9341
9342 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
9343
96779aec
CW
93442010-05-20 Colin Watson <cjwatson@ubuntu.com>
9345
9346 * util/misc.c: Move inclusion of <limits.h> to ...
9347 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
9348
fa9d256e
GS
93492010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
9350
9351 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
9352 Fix merge error in NetBSD code.
9353 (find_partition_start) [__NetBSD__]: Likewise.
9354
123b7a85
BC
93552010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
9356
9357 Fix grub-mkrescue usage unit testing.
9358
9359 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
9360
74276c0d
CF
93612010-05-18 Christian Franke <franke@computer.org>
9362
9363 * util/grub.d/10_windows.in: Use path names instead of
9364 drive letters to prevent warning from Cygwin 1.7.
9365 Add drivemap command to menuentry if needed.
9366
c4f7b523
ST
93672010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
9368
9369 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
9370 gnumach and gnumach.gz.
9371
95b97950
VS
93722010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9373
9374 * include/grub/i18n.h (gettext): Inline instead of using #define.
9375 (grub_gettext): Likewise.
9376 (_): Likewise.
9377
01b8d2d7
VS
93782010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9379
9380 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
9381 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
9382 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
9383 (main): Add a slash after pkglibdirroot.
9384
654e1d1e
VS
93852010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9386
9387 * util/grub-install.in: Add missing "in" keyword.
9388
26966aeb
VS
93892010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9390
9391 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
9392 Reported by: Seth Goldberg.
9393
75006747
VS
93942010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9395
9396 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
9397
74cbf5bd
CW
93982010-05-18 Colin Watson <cjwatson@ubuntu.com>
9399
9400 * configure.ac: Check for Linux device-mapper support.
9401
9402 * util/hostdisk.c (device_is_mapped): New function.
9403 (find_partition_start): New function, partly broken out from
9404 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
9405 device-mapper support added.
9406 (linux_find_partition): Use find_partition_start.
9407 (convert_system_partition_to_system_disk): Add `st' argument.
9408 Support Linux /dev/mapper/* devices if device-mapper support is
9409 available; only DM-RAID devices are understood at present.
9410 (find_system_device): Add `st' argument. Pass it to
9411 convert_system_partition_to_system_disk.
9412 (grub_util_biosdisk_get_grub_dev): Pass stat result to
9413 find_system_device and convert_system_partition_to_system_disk. Use
9414 find_partition_start.
9415
9416 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
9417 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
9418 * util/deviceiter.c [__linux__]: Define MINOR.
9419 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
9420 * util/mkdevicemap.c (grub_putchar): New function.
9421 (grub_getkey): New function.
9422 (grub_refresh): New function.
9423 (main): Set debug=all if -v -v is used.
9424
355b51e9
CW
94252010-05-18 Colin Watson <cjwatson@ubuntu.com>
9426
9427 Fix build with non-GNU libcs.
9428
9429 * util/misc.c (canonicalize_file_name): Move to ...
9430 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
9431 grub_make_system_path_relative_to_its_root.
9432
7fb5c25f
CW
94332010-05-18 Colin Watson <cjwatson@ubuntu.com>
9434
9435 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
9436 we handle finding grub-mkimage. Default to finding grub-mkimage in
9437 ${bindir} with program_transform_name applied, and provide a
9438 --grub-mkimage option to override this.
9439
1d3293d6
VS
94402010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9441
9442 Remove grub-mkisofs.
9443
9444 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
9445 (grub_mkisofs_SOURCES): Removed.
9446 (grub_mkisofs_CFLAGS): Removed.
9447 * util/mkisofs/defaults.h: Removed.
9448 * util/mkisofs/eltorito.c: Likewise.
9449 * util/mkisofs/exclude.h: Likewise.
9450 * util/mkisofs/hash.c: Likewise.
9451 * util/mkisofs/include/: Likewise.
9452 * util/mkisofs/include/fctldefs.h: Likewise.
9453 * util/mkisofs/include/mconfig.h: Likewise.
9454 * util/mkisofs/include/prototyp.h: Likewise.
9455 * util/mkisofs/include/statdefs.h: Likewise.
9456 * util/mkisofs/iso9660.h: Likewise.
9457 * util/mkisofs/joliet.c: Likewise.
9458 * util/mkisofs/match.c: Likewise.
9459 * util/mkisofs/match.h: Likewise.
9460 * util/mkisofs/mkisofs.c: Likewise.
9461 * util/mkisofs/mkisofs.h: Likewise.
9462 * util/mkisofs/msdos_partition.h: Likewise.
9463 * util/mkisofs/multi.c: Likewise.
9464 * util/mkisofs/name.c: Likewise.
9465 * util/mkisofs/rock.c: Likewise.
9466 * util/mkisofs/tree.c: Likewise.
9467 * util/mkisofs/write.c: Likewise.
9468
5dde9afe
VS
94692010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9470
9471 Unify grub-mkimage accross platforms.
9472
9473 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
9474 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
9475 (grub_mkelfimage_SOURCES): Removed.
9476 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
9477 (util/grub-mkimage.c_DEPENDENCIES): .. this.
9478 (bin_UTILITIES): Add grub-mkimage.
9479 (grub_mkimage_SOURCES): New variable.
9480 (kernel_img_HEADERS): Remove machine/kernel.h.
9481 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
9482 (pkglib_PROGRAMS): Add kernel.img.
9483 (kernel_img_HEADERS): Add machine/kernel.h.
9484 (kernel_img_FORMAT): Removed.
9485 (bin_UTILITIES): Remove grub-mkimage.
9486 (grub_mkimage_SOURCES): Removed.
9487 (grub_mkimage_CFLAGS): Likewise.
9488 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9489 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
9490 (pkglib_PROGRAMS): Add kernel.img.
9491 (bin_UTILITIES): Remove grub-mkimage.
9492 (grub_mkimage_SOURCES): Removed.
9493 (grub_mkimage_CFLAGS): Likewise.
9494 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9495 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
9496 (pkglib_PROGRAMS): Add kernel.img.
9497 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
9498 (pkglib_PROGRAMS): Add kernel.img.
9499 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
9500 (grub_mkimage_SOURCES): Removed.
9501 (grub_mkimage_CFLAGS): Likewise.
9502 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9503 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
9504 (pkglib_PROGRAMS): Add kernel.img.
9505 (bin_UTILITIES): Remove grub-mkimage.
9506 (grub_mkimage_SOURCES): Removed.
9507 (grub_mkimage_CFLAGS): Likewise.
9508 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9509 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
9510 (grub_mkimage_SOURCES): Removed.
9511 (grub_mkimage_CFLAGS): Likewise.
9512 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
9513 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
9514 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
9515 (grub_pe32_optional_header): ... this.
9516 (grub_pe64_optional_header): ... and this. All users updated.
9517 (GRUB_PE32_PE32_MAGIC): Split into ..
9518 (GRUB_PE32_PE32_MAGIC): .. this.
9519 (GRUB_PE32_PE64_MAGIC): .. and this.
9520 (GRUB_PE32_SIGNATURE_SIZE): New definition.
9521 * include/grub/elf.h (PT_GNU_STACK): New definition.
9522 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
9523 * include/grub/i386/efi/kernel.h: Likewise.
9524 * include/grub/i386/kernel.h: Likewise.
9525 * include/grub/i386/pc/kernel.h: Likewise.
9526 * include/grub/i386/qemu/boot.h: Likewise.
9527 * include/grub/mips/kernel.h: Likewise.
9528 * include/grub/mips/qemu-mips/kernel.h: Likewise.
9529 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
9530 * include/grub/powerpc/kernel.h: Likewise.
9531 * include/grub/sparc64/ieee1275/boot.h: Likewise.
9532 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
9533 * include/grub/sparc64/kernel.h: Likewise.
9534 * include/grub/x86_64/efi/kernel.h: Likewise.
9535 * include/grub/x86_64/kernel.h: Likewise.
9536 * include/grub/offsets.h: New file.
9537 * include/grub/kernel.h (grub_module_info): Split into ...
9538 (grub_module_info32): ... this.
9539 (grub_module_info64): ... and this.
9540 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
9541 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
9542 (grub_boot_blocklist): Moved from here ...
9543 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
9544 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
9545 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
9546 * include/grub/types.h (grub_target_to_host16): Removed.
9547 (grub_target_to_host32): Likewise.
9548 (grub_target_to_host64): Likewise.
9549 (grub_host_to_target16): Likewise.
9550 (grub_host_to_target32): Likewise.
9551 (grub_host_to_target64): Likewise.
9552 (grub_host_to_target_addr): Likewise.
9553
9554 Support grub-mkrescue for efi, coreboot and qemu.
9555
9556 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
9557 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
9558 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
9559 * util/grub-mkrawimage.c: Moved from here ...
9560 * util/grub-mkimage.c: ... here. All users updated.
9561 (ALIGN_ADDR): Use image_target.
9562 (TARGET_NO_FIELD): New const.
9563 (image_target_desc): New type.
9564 (image_targets): New array.
9565 (grub_target_to_host64): Use image_target.
9566 (grub_target_to_host32): Likewise.
9567 (grub_target_to_host16): Likewise.
9568 (grub_host_to_target64): Likewise.
9569 (grub_host_to_target32): Likewise.
9570 (grub_host_to_target16): Likewise.
9571 (grub_host_to_target_addr): Likewise.
9572 (generate_image): Handle multiimage.
9573 (main): Require -O parameter. All users updated.
9574 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
9575 util/efi/grub-mkimage.c
9576 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
9577 New option --rom-directory.
9578 Use xorriso.
9579 * util/i386/efi/grub-mkimage.c: Removed.
9580 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
9581 (grub_target_to_host32): Likewise.
9582 (grub_target_to_host64): Likewise.
9583 (grub_host_to_target16): Likewise.
9584 (grub_host_to_target32): Likewise.
9585 (grub_host_to_target64): Likewise.
9586 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
9587 (grub_target_to_host32): Likewise.
9588 (grub_target_to_host64): Likewise.
9589 (grub_host_to_target16): Likewise.
9590 (grub_host_to_target32): Likewise.
9591 (grub_host_to_target64): Likewise.
9592
f4fc97d0
BC
95932010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
9594
9595 Source tree is reorganized for emu build.
9596
9597 * include/grub/util/console.h: Move from here...
9598 * include/grub/emu/console.h: ...to here.
9599 * include/grub/util/getroot.h: Move from here...
9600 * include/grub/emu/getroot.h: ...to here.
9601 * include/grub/util/hostdisk.h: Move from here...
9602 * include/grub/emu/hostdisk.h: ...to here.
9603 * util/console.c: Move from here...
9604 * kern/emu/console.c: ...to here.
9605 * util/getroot.c: Move from here...
9606 * kern/emu/getroot.c: ...to here.
9607 * util/grub-emu.c: Move from here...
9608 * kern/emu/main.c: ...to here.
9609 * util/hostdisk.c: Move from here...
9610 * kern/emu/hostdisk.c: ...to here.
9611 * util/hostfs.c: Move from here...
9612 * kern/emu/hostfs.c: ...to here.
9613 * util/mm.c: Move from here...
9614 * kern/emu/mm.c: ...to here.
9615 * util/pci.c: Move from here...
9616 * bus/emu/pci.c: ...to here.
9617 * util/sdl.c: Move from here...
9618 * video/emu/sdl.c: ...to here.
9619 * util/time.c: Move from here...
9620 * kern/emu/time.c: ...to here.
9621 * util/usb.c: Move from here...
9622 * bus/usb/emu/usb.c: ...to here.
9623
9624 * include/grub/emu/misc.h: New header for grub-emu functions.
9625 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
9626
9627 * conf/any-emu.rmk: Rule updates for above renames.
9628 * conf/common.rmk: Likewise.
9629 * conf/i386-pc.rmk: Likewise.
9630 * conf/i386-qemu.rmk: Likewise.
9631 * conf/mips.rmk: Likewise.
9632 * conf/sparc64-ieee1275.rmk: Likewise.
9633 * conf/x86-efi.rmk: Likewise.
9634
9635 * disk/lvm.h: #include updates for above renames.
9636 * util/grub-mkrelpath.c: Likewise.
9637 * util/grub-probe.c: Likewise.
9638 * util/i386/pc/grub-setup.c: Likewise.
9639 * util/sparc64/ieee1275/grub-setup.c: Likewise.
9640 * kern/emu/console.c: Likewise.
9641 * kern/emu/getroot.c: Likewise.
9642 * kern/emu/hostdisk.c: Likewise.
9643 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
9644
9645 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
9646 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
9647 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
9648 * util/misc.c: Remove grub-emu functions.
9649
cced9145
VS
96502010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
9651
9652 Fix gfxmenu crash.
9653 Reported by: Thorsten Grützmacher.
9654
9655 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
9656 timeout hook.
9657 (circprog_set_property): Register and unregister timeout hook.
9658 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
9659 (label_destroy): Free template. and unregister hook.
9660 (label_set_state): New function.
9661 (label_set_property): Handle templates and hooks.
9662 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
9663 timeout hook.
9664 (progress_bar_set_property): Register and unregister timeout hook.
9665 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
9666 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
9667 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
9668 (update_timeout_visit): Removed.
9669 (update_timeouts): New function.
9670 (redraw_timeouts): Likewise.
9671 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
9672 (grub_gfxmenu_clear_timeout): Likewise.
9673 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
9674 (grub_gfxmenu_timeout_notify): Likewise.
9675 (grub_gfxmenu_timeout_notifications): New external variable.
9676 (grub_gfxmenu_timeout_register): New function.
9677 (grub_gfxmenu_timeout_unregister): Likewise.
9678
c6e5caab
VS
96792010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
9680
9681 Transform (broken) vga terminal into (working) vga video driver.
9682
9683 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
9684 video/i386/pc/vga.c.
9685 * include/grub/video.h (grub_video_driver_id):
9686 Add GRUB_VIDEO_DRIVER_VGA.
9687 * term/i386/pc/vga.c: Renamed to ...
9688 * video/i386/pc/vga.c: ...this
9689 (DEBUG_VGA): Removed.
9690 (CHAR_WIDTH): Likewise.
9691 (CHAR_HEIGHT): Likewise.
9692 (TEXT_WIDTH): Likewise.
9693 (TEXT_HEIGHT): Likewise.
9694 (DEFAULT_FG_COLOR): Likewise.
9695 (DEFAULT_BG_COLOR): Likewise.
9696 (colored_char): Likewise.
9697 (xpos): Likewise.
9698 (ypos): Likewise.
9699 (cursor_state): Likewise.
9700 (fg_color): Likewise.
9701 (bg_color): Likewise.
9702 (text_buf): Likewise.
9703 (page): Likewise.
9704 (font): Likewise.
9705 (framebuffer): New variable.
9706 (set_read_map): Disabled.
9707 (setup): New variable.
9708 (is_target): Likewise.
9709 (grub_vga_mod_init): Likewise.
9710 (grub_vga_mod_fini): Likewise.
9711 (check_vga_mem): Likewise.
9712 (write_char): Likewise.
9713 (write_cursor): Likewise.
9714 (scroll_up): Likewise.
9715 (grub_vga_putchar): Likewise.
9716 (grub_vga_getcharwidth): Likewise.
9717 (grub_vga_getwh): Likewise.
9718 (grub_vga_getxy): Likewise.
9719 (grub_vga_gotoxy): Likewise.
9720 (grub_vga_cls): Likewise.
9721 (grub_vga_setcolorstate): Likewise.
9722 (grub_vga_setcursor): Likewise.
9723 (grub_video_vga_init): New function.
9724 (grub_video_vga_setup): Likewise.
9725 (grub_video_vga_fini): Likewise.
9726 (update_target): Likewise.
9727 (grub_video_vga_blit_bitmap): Likewise.
9728 (grub_video_vga_blit_render_target): Likewise.
9729 (grub_video_vga_set_active_render_target): Likewise.
9730 (grub_video_vga_get_active_render_target): Likewise.
9731 (grub_video_vga_swap_buffers): Likewise.
9732 (grub_video_vga_set_palette): Likewise.
9733 (grub_video_vga_get_info_and_fini): Likewise.
9734 (grub_vga_term): Removed.
9735 (grub_video_vga_adapter): New variable.
9736 (GRUB_MOD_INIT): Register a video driver instead of terminal.
9737 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
9738
2bf61a98
VS
97392010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9740
9741 * video/readers/jpeg.c: Indented.
9742
09ddcd11
VS
97432010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9744
9745 Various jpeg cleanups.
9746
9747 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
9748 (grub_jpeg_decode_quan_table): Use sizeof.
9749 (grub_jpeg_decode_du): Use ARRAY_SIZE.
9750
e5507505
PH
97512010-05-05 Peter Hurley <No e-mail available> (tiny change)
9752
9753 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
9754 tables. Ignore non-last ac bit.
9755 (grub_jpeg_decode_quan_table): Likewise.
9756
7e720a9b
VS
97572010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9758
9759 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
9760 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
9761 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9762 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
9763 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
9764 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
9765
a7fc080b
VS
97662010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9767
9768 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
9769 error.
9770
2bf6012d
VS
97712010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
9772
9773 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
9774
265d68cd
VS
97752010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9776
9777 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
9778 condition.
9779
97802010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
9781
9782 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
9783 part.
9784
265d68cd 97852010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
9786
9787 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
9788 pointers.
9789
265d68cd 97902010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
9791
9792 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
9793
d1b61374
CF
97942010-05-01 Christian Franke <franke@computer.org>
9795
9796 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
9797 Remove broken Cygwin path conversion.
9798 * util/misc.c: [__CYGWIN__] Add include and define.
9799 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
9800 for Cygwin 1.7.
9801 (make_system_path_relative_to_its_root): Simplify loop, replace early
9802 return by break.
9803 [__CYGWIN__] Add conversion to win32 path.
9804 Include "/" case in trailing slash removal.
9805
3558c6e9
VS
98062010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9807
9808 * kern/main.c (grub_load_config): Fix copy-pasted comment.
9809 Reported by: Seth Goldberg
9810
f5f3ff93
VS
98112010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9812
9813 * commands/help.c (grub_cmd_help): Fix a typo.
9814 Reported by: Seth Goldberg
9815
d8b5cd40
VS
98162010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9817
9818 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
9819 name and add N_.
9820 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
9821 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
9822 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
9823 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
9824 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
9825 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
9826 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
9827 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
9828 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
9829 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
9830 * normal/context.c (GRUB_MOD_INIT): Likewise.
9831 * normal/main.c (GRUB_MOD_INIT): Likewise.
9832 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
9833 * term/serial.c (GRUB_MOD_INIT): Likewise.
9834 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
9835
88c14915
VS
98362010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9837
9838 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
9839 extra == 0.
9840
165134bc
VS
98412010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9842
9843 * commands/iorw.c: New file.
9844 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
9845 (iorw_mod_SOURCES): New variable.
9846 (iorw_mod_CFLAGS): Likewise.
9847 (iorw_mod_LDFLAGS): Likewise.
9848
c5ac9b32
VS
98492010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9850
9851 Hotkey support
9852
9853 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
9854 * normal/main.c (hotkey_aliases): New variable.
9855 (grub_normal_add_menu_entry): Parse "--hotkey".
9856 * normal/menu_text.c (run_menu): Handle hotkeys.
9857
ce60689c
VS
98582010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9859
9860 * kern/i386/coreboot/init.c (grub_machine_init): Call
9861 grub_machine_mmap_init on qemu.
9862
0359d006
VS
98632010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9864
9865 * boot/i386/qemu/boot.S: Add a missing .code16.
9866
7819a456
VS
98672010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9868
9869 Use LBIO on coreboot.
9870
9871 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
9872 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
9873 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
9874 New declaration.
9875 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
9876 grub_machine_mmap_init on coreboot.
9877 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
9878 GRUB_LINUXBIOS_MEMBER_LINK.
9879 (grub_machine_mmap_iterate): Fix declaration.
9880 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
9881
7210dca9
VS
98822010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9883
9884 Split coreboot and multiboot ports.
9885
9886 * conf/i386-multiboot.rmk: New file.
9887 * configure.ac: Add multiboot port.
9888 * include/grub/i386/multiboot/boot.h: New file.
9889 * include/grub/i386/multiboot/console.h: Likewise.
9890 * include/grub/i386/multiboot/init.h: Likewise.
9891 * include/grub/i386/multiboot/kernel.h: Likewise.
9892 * include/grub/i386/multiboot/loader.h: Likewise.
9893 * include/grub/i386/multiboot/memory.h: Likewise.
9894 * include/grub/i386/multiboot/serial.h: Likewise.
9895 * include/grub/i386/multiboot/time.h: Likewise.
9896 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
9897 * loader/multiboot.c: Likewise.
9898 * loader/multiboot_mbi2.c: Likewise.
9899 * util/grub-mkrescue.in: Generate multiboot rescue.
9900
6f8aaf68
VS
99012010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9902
3080f7a7
VS
9903 * kern/parser.c (grub_parser_execute): Cope with read-only config.
9904
99052010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
9906
9907 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
9908
9909 * commands/terminal.c (abstract_terminal): New struct.
9910 (handle_command): New function. Based on grub_cmd_terminal_input.
9911 (grub_cmd_terminal_input): Use handle_command.
9912 (grub_cmd_terminal_output): Use handle_command.
9913
a8ebb841
BC
99142010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
9915
9916 Fix comment handling.
9917
9918 * tests/grub_script_comments.in: New testcase.
9919 * conf/tests.rmk: Rules for new testcase.
9920 * script/yylex.l: Updated flex rules.
9921
bb06ba08
ST
99222010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
9923
9924 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
9925 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
9926 if argc is 1.
bb06ba08 9927
cc9d2425
VS
99282010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
9929
9930 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
9931 autogen issues.
9932
460d8402
CF
99332010-04-26 Christian Franke <franke@computer.org>
9934
9935 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
9936 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
9937 (grub_get_prefix): Remove function.
9938 * util/grub-emu.c (main): Replace grub_get_prefix () call by
9939 make_system_path_relative_to_its_root ().
9940 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
9941
553c01f9
CF
99422010-04-24 Christian Franke <franke@computer.org>
9943
9944 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
9945 (kernel_img_LDFLAGS): Remove -static-libgcc.
9946
2aec1692
CF
99472010-04-24 Christian Franke <franke@computer.org>
9948
9949 * configure.ac: Do not CHECK_BSS_START_SYMBOL
9950 and CHECK_END_SYMBOL if grub-emu is built.
9951 Unset TARGET_OBJ2ELF if grub-emu is built
9952 without module support.
9953
f67dc308
JS
99542010-04-24 Jiro SEKIBA <jir@unicus.jp>
9955
9956 Nilfs2 support.
9957
9958 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
9959 (grub_fstest_SOURCES): Likewise.
9960 (pkglib_MODULES): Add nilfs2.mod.
9961 (nilfs2_mod_SOURCES): New variable.
9962 (nilfs2_mod_CFLAGS): Likewise.
9963 (nilfs2_mod_LDFLAGS): Likewise.
9964 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
9965 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
9966 * fs/nilfs2.c: New file.
9967
4ba8d354
VS
99682010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
9969
9970 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
9971 is not supported.
9972
0d2c20c6
GS
99732010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
9974
9975 Add grub-mkconfig support for NetBSD.
9976
9977 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
9978 * util/grub-mkconfig.in: export new NetBSD specific variables.
9979 * po/POTFILES-shell: added 10_netbsd.in.
9980 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
9981
bc4a2d83
BC
99822010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
9983
9984 Fix emu build with grub-emu-pci and grub-emu-modules.
9985
9986 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
9987 functions.
9988 * include/grub/libpciaccess.h: New file.
9989 * conf/any-emu.rmk: Update kernel headers for emu build.
9990
f48c87aa
VS
99912010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
9992
9993 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
9994
18959385
VS
99952010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
9996
9997 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
9998
0037de3f
VS
99992010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10000
10001 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
10002 Retrieve chosen/bootpath if bootpath isn't hardcoded.
10003 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
10004 util/ieee1275/ofpath.c.
10005 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
10006 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
10007 * include/grub/sparc64/ieee1275/boot.h
10008 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
10009 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
10010 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
10011 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
10012 const char *.
10013 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
10014 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
10015 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
10016 install.
10017
38e55e90
GS
100182010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
10019
10020 * util/grub-mkconfig.in: Corrected two == equality tests.
10021 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
10022 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
10023 expect a number appended to it.
10024 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
10025 expects a number appended to it.
10026
a9e6ff28
VS
100272010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10028
10029 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
10030
0b830b8f
VS
100312010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10032
10033 * util/hostdisk.c (make_device_name): Change to new partition naming.
10034
0973daeb
VS
100352010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10036
10037 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
10038
460d8402 100392010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
10040
10041 * Makefile.in: Add missing localedir setting.
10042
0b456309
CW
100432010-04-14 Colin Watson <cjwatson@ubuntu.com>
10044
10045 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
10046 mistake in r2156. Noticed by Anthony Fok.
10047
10048 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
10049 @localedir@.
10050 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
10051
08f46d62
BC
100522010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
10053
10054 Fix a spurious, uninitialized variable warning.
10055
10056 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
10057 Initialize variable, shdr.
10058 (grub_freebsd_load_elfmodule): Likewise.
10059 (grub_freebsd_load_elf_meta): Likewise.
10060
8c4a72d4
BC
100612010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
10062
10063 Fix for escaped dollar in double quoted strings.
10064
10065 * script/yylex.l: Updated flex rules.
10066 * conf/tests.rmk: Rule for new testcase.
10067 * tests/grub_script_dollar.in: New testcase.
10068
ce44826e
CPE
100692010-04-13 Carles Pina i Estany <carles@pina.cat>
100702010-04-13 Colin Watson <cjwatson@ubuntu.com>
10071
10072 Enclose all translated strings in grub.cfg in single quotes, and
10073 escape them appropriately (Ubuntu bug #552921).
10074
10075 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
10076 * util/grub.d/10_hurd.in: Use it.
10077 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
10078 * util/grub.d/10_linux.in (linux_entry): Likewise.
10079
4b0cd8f8
VS
100802010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10081
10082 Fix cygwin compilation.
10083
10084 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
10085 * include/grub/misc.h (__register_frame_info)
10086 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
10087 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
10088 * kern/misc.c (__register_frame_info)
10089 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
10090 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
10091
01fcf061
VS
100922010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10093
10094 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
10095
5d04b11e
VS
100962010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10097
10098 Unify libgcc processing.
10099
10100 * Makefile.in (kernel_img_LDFLAGS): New variable.
10101 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
10102 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
10103 overwriting.
10104 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
10105 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
10106 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
10107 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
10108 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
10109 overwriting. Remove -lgcc and -static-libgcc
10110 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
10111 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
10112 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
10113 (kernel_img_LDFLAGS): Append instead of overwriting.
10114 Remove -lgcc and -static-libgcc
10115 * conf/sparc64-ieee1275.rmk: Likewise.
10116 * include/grub/powerpc/libgcc.h: Move to ...
10117 * include/grub/libgcc.h: .. this.
10118 * include/grub/libgcc.h: Don't export most of the function on x86.
10119 (__bswapsi2): New export.
10120 (__bswapdi2): Likewise.
10121 * include/grub/mips/libgcc.h: Removed.
10122 * include/grub/sparc64/libgcc.h: Likewise.
10123
b7f3ac29
VS
101242010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10125
10126 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
10127 disk_info_msg (conflicts with gettexting into languages with cases).
10128
2c7031b1
GS
101292010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
10130
10131 Add grub-probe support for NetBSD.
10132
10133 * util/getroot.c (find_root_device): Convert block device to
10134 character device on NetBSD.
10135 * util/probe.c (probe): Require character device on NetBSD.
10136 * util/hostdisk.c: NetBSD specific headers.
10137 (configure_device_driver): new function to tune device driver
10138 parameters (currently only for NetBSD floppy driver).
10139 (grub_util_biosdisk_open): NetBSD specific code (get disk size
10140 via disklabel ioctl).
10141 (open_device): call configure_device_driver on NetBSD.
10142 (convert_system_partition_to_system_disk): NetBSD specific code.
10143 (device_is_wholedisk): Likewise.
10144 (grub_util_biosdisk_get_grub_dev): Likewise.
10145 (make_device_name): Fixed a typo in bsd_part_str.
10146 * configure.ac: check for opendisk() and getrawpartition() on
10147 NetBSD and set LIBUTIL.
10148 * Makefile.in: add LIBUTIL to LIBS.
10149
f516290c
BC
101502010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
10151
10152 Documentation fix.
10153
10154 * util/grub-script-check.c: Better help message.
10155
d8dcc0df
BC
101562010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
10157
10158 Fix FreeBSD build.
10159
10160 * configure.ac: Flex version check.
10161 * conf/common.rmk: Add -Wno-error to sh.mod.
10162 * script/yylex.l: Remove all #pragma.
10163
6734334a
VS
101642010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10165
10166 * include/grub/util/misc.h (canonicalise_file_name): Add missing
10167 prototype.
10168 Reported by: Seth Goldberg.
10169
daea6abd
VS
101702010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10171
10172 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
10173 Rename "module" to "module2".
10174 Reported by: Seth Goldberg.
10175
f2fd9d2b
VS
101762010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10177
10178 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
10179 EXPORT_FUNC.
10180 Reported by: Seth Goldberg.
10181
be124579
VS
101822010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10183
10184 * lib/posix_wrap/locale.h: Add missing file.
10185 Reported by: Seth Goldberg.
10186
ef5da797
VS
101872010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
10188
10189 grub-emu module load support.
10190
10191 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
10192 NO_DYNAMIC_MODULES switched to this.
10193 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
10194 (CFLAGS): Likewise.
10195 * conf/any-emu.rmk: Generate symlist.
10196 (kernel_img_HEADERS): Add util/datetime.h.
10197 (kernel_img_HEADERS) [sdl]: Add sdl.h.
10198 (kernel_img_HEADERS) [libusb]: Add libusb.h.
10199 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
10200 kern/$(target_cpu)/cache.S.
10201 * configure.ac (grub-emu-modules): New option.
10202 * genmk.rb: Handle multiple source lists.
10203 * include/grub/sdl.h: New file.
10204 * include/grub/libusb.h: Likewise.
10205 * util/grub-emu.c (main): Hanle (host) root.
10206 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
10207 GRUB_ERR_UNKNOWN_DEVICE.
10208 * util/misc.c: Move mm functions to ...
10209 * util/mm.c: ... here. All users updated.
10210
47822096
VS
102112010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10212
10213 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
10214 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
10215 missing files.
10216 (maintainer-clean): Remove libgcrypt-grub.
10217
5d7e7445
VS
102182010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10219
10220 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
10221
25f4e252
EC
102222010-04-09 EFI Coder <eficoder@hotmail.com>
10223
10224 * normal/menu_text.c (print_message): Clean up the message and show
10225 the Fn information when on EFI
10226 * term/efi/console.c (grub_console_checkkey): Add F4 support.
10227
027de555
VS
102282010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10229
10230 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
10231 All users updated.
10232 * normal/crypto.c (read_crypto_list): Likewise.
10233 * normal/dyncmd.c (read_command_list): Likewise.
10234 * normal/term.c (read_terminal_list): Likewise.
10235 * normal/main.c (read_lists): Use explicit prefix.
10236 (read_lists_hook): Use read_lists.
10237 (grub_normal_execute): Likewise.
10238
47779711
VS
102392010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10240
10241 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
10242 Reported by: Thomas Schmitt.
10243 Add -no-emul-boot to grub-mkisofs parameters.
10244
1118c32e
VS
102452010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10246
10247 * font/font.c: Indented.
10248
7d652447
BC
102492010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
10250
10251 Elif support to GRUB script (by Deepak Vankadaru).
10252
10253 * tests/grub_script_if.in: New testcase.
10254 * conf/tests.rmk: Rule for new testcase.
10255 * script/parser.y: Grammar rules for elif.
10256
34bb22df
BC
102572010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
10258
10259 While and until loops support to GRUB script.
10260
10261 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
10262 (grub_script_create_cmdwhile): New function prototype.
10263 (grub_script_execute_cmdwhile): New function prototype.
10264 * script/execute.c (grub_script_execute_cmdwhile): New function.
10265 * script/parser.y (command): New commands.
10266 (whilecmd): New grammar rule.
10267 (untilcmd): New grammar rule.
10268 * script/script.c (grub_script_create_cmdwhile): New function.
10269 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
10270 function.
10271
10272 * tests/grub_script_while1.in: New testcase.
10273 * conf/tests.rmk: Rule for new testcase.
10274
e215d8e0
VS
102752010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10276
10277 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
10278 as *.jpg.
10279
d7c43ba1
MV
102802010-04-09 Mario Vazquez <mariovazq@gmail.com>
10281
10282 GRUB_BACKGROUND support.
10283
10284 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
10285 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
10286
d64795c0
VS
102872010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10288
10289 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 10290 Idea by: Mario Vazquez
d64795c0
VS
10291
10292 * util/grub.d/00_header.in: Load pf2 and image modules.
10293
f267f83a
VS
102942010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10295
10296 grub-mkconfig multiple terminal support.
10297
10298 * util/grub-mkconfig.in: Handle multiple terminals correctly.
10299 * util/grub.d/00_header.in: Likewise.
10300
b7841ceb
VS
103012010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
10302
10303 * Makefile.in: Specify files explicitly instead of using $< and $@ since
10304 we use cd $(srcdir).
10305
df60998c
CW
103062010-04-08 Colin Watson <cjwatson@ubuntu.com>
10307
10308 * util/grub.d/10_linux.in: Only use the first word of
10309 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
10310 spaces in GRUB_DISTRIBUTOR.
10311 * util/grub.d/10_kfreebsd.in: Likewise.
10312 * util/grub.d/10_hurd.in: Likewise.
10313
fa09c82e
BC
103142010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
10315
14e18ae3 10316 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
10317
10318 * tests/util/grub-shell.in: Remove -serial stdio option.
10319
daf892b3
BC
103202010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
10321
10322 POSIX header file wrappers.
10323
10324 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
10325 equivalents.
10326 * lib/posix_wrap/ctype.h: Likewise.
10327 * lib/posix_wrap/errno.h: Likewise.
10328 * lib/posix_wrap/langinfo.h: Likewise.
10329 * lib/posix_wrap/limits.h: Likewise.
10330 * lib/posix_wrap/localcharset.h: Likewise.
10331 * lib/posix_wrap/stdint.h: Likewise.
10332 * lib/posix_wrap/stdio.h: Likewise.
10333 * lib/posix_wrap/stdlib.h: Likewise.
10334 * lib/posix_wrap/string.h: Likewise.
10335 * lib/posix_wrap/sys/types.h: Likewise.
10336 * lib/posix_wrap/unistd.h: Likewise.
10337 * lib/posix_wrap/wchar.h: Likewise.
10338 * lib/posix_wrap/wctype.h: Likewise.
10339 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
10340 (grub_script.yy.h): Likewise.
10341 * script/yylex.l: Remove POSIX emulation #defines.
10342 * Makefile.in (POSIX_CFLAGS): New variable.
10343 (GNULIB_UTIL_CFLAGS): Likewise.
10344
10345 Regexp support.
10346
10347 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
10348 (regexp_mod_SOURCES): New variable.
10349 (regexp_mod_CFLAGS): Likewise.
10350 (regexp_mod_LDFLAGS): Likewise.
10351 * commands/regexp.c: New file.
10352 * gnulib/regcomp.c: New file. Imported from gnulib.
10353 * gnulib/regex.c: Likewise.
10354 * gnulib/regex_internal.c: Likewise.
10355 * gnulib/regex_internal.h: Likewise.
10356 * gnulib/regexec.c: Likewise.
10357 * gnulib/regex.h: Likewise.
10358
974ac4f7
VS
103592010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10360
10361 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
10362 unsupported video mode types.
10363
2622c3ff
VS
103642010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10365
10366 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
10367
064cb524
VS
103682010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
10369
10370 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
10371 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
10372
a8c3b552
VS
103732010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10374
10375 Remove unused grub_vga_get_font.
10376
10377 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
10378 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
10379
187bbe3d
GS
103802010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10381
10382 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
10383 * include/grub/misc.h: Likewise.
10384
b9396631
GS
103852010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10386
10387 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
10388 for which failure is fatal.
10389
50479feb
GS
103902010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10391
10392 * util/grub-install.in: Use mkdir -p to create grub directory.
10393 * util/i386/efi/grub-install.in: Likewise.
10394 * util/ieee1275/grub-install.in: Likewise.
10395
b1654fdf
GS
103962010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10397
10398 * Makefile.in (LEX): new variable.
10399
bd5a6415
GS
104002010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10401
10402 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
10403 `=' and added double quotes on operands of this equality test.
10404
3db3a82b
VS
104052010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
10406
10407 * Makefile.in (uninstall): Remove a leftover debug echo.
10408 Reported by: Grégoire Sutre
10409
38023412
VS
104102010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
10411
10412 MIPS multiboot2 support.
10413
10414 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
10415 (multiboot2_mod_SOURCES): New variable.
10416 (multiboot2_mod_CFLAGS): Likewise.
10417 (multiboot2_mod_LDFLAGS): Likewise.
10418 (multiboot2_mod_ASFLAGS): Likewise.
10419 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
10420 definition.
10421 (MULTIBOOT_ENTRY_REGISTER): Likewise.
10422 (MULTIBOOT_MBI_REGISTER): Likewise.
10423 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
10424 (MULTIBOOT_ELF32_MACHINE): Likewise.
10425 (MULTIBOOT_ELF64_MACHINE): Likewise.
10426 * include/grub/mips/multiboot.h: New file.
10427 * include/grub/video.h (grub_video_driver_id): New type
10428 GRUB_VIDEO_DRIVER_SM712.
10429 (grub_video_get_info_and_fini): Export.
10430 (grub_video_get_palette): Likewise.
10431 (grub_video_get_driver_id): Likewise.
10432 * include/multiboot2.h: Resynced with spec.
10433 * loader/i386/multiboot.c: Moved from here ...
10434 * loader/multiboot.c: ... here. All users updated.
10435 (grub_multiboot_boot): Use platform-specific macros.
10436 * loader/i386/multiboot_elfxx.c: Moved from here ...
10437 * loader/multiboot_elfxx.c: ... here. All users updated.
10438 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
10439 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
10440 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
10441
47674667
VS
104422010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
10443
10444 Import gnulib argp module.
10445
10446 * gnulib/argp-ba.c: New file.
10447 * gnulib/argp-eexst.c: Likewise.
10448 * gnulib/argp-fmtstream.c: Likewise.
10449 * gnulib/argp-fmtstream.h: Likewise.
10450 * gnulib/argp-fs-xinl.c: Likewise.
10451 * gnulib/argp-help.c: Likewise.
10452 * gnulib/argp-namefrob.h: Likewise.
10453 * gnulib/argp-parse.c: Likewise.
10454 * gnulib/argp-pin.c: Likewise.
10455 * gnulib/argp-pv.c: Likewise.
10456 * gnulib/argp-pvh.c: Likewise.
10457 * gnulib/argp-version-etc.c: Likewise.
10458 * gnulib/argp-version-etc.h: Likewise.
10459 * gnulib/argp-xinl.c: Likewise.
10460 * gnulib/argp.h: Likewise.
10461
495442ed
VS
104622010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10463
10464 * kern/device.c (grub_device_iterate): Clear errors after failed
10465 opening device.
10466
f9fd65df
VS
104672010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10468
10469 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
10470 returned by firmware.
10471
af09641e
VS
104722010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
10473
10474 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
10475 compilation on coreboot and qemu
10476
016883a5
VS
104772010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10478
10479 * include/multiboot2.h: Resync with spec.
10480
f97e1f7d
VS
104812010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10482
10483 Multiboot2 tag support
10484
10485 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
10486 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
10487 Remove loader/multiboot_loader.c.
10488 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
10489 (grub_multiboot2_real_boot): Likewise.
10490 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
10491 (grub_get_multiboot_mmap_count): New proto.
10492 (grub_fill_multiboot_mmap): Likewise.
10493 (grub_multiboot_set_video_mode): Likewise.
10494 (grub_multiboot_set_console): Likewise.
10495 (grub_multiboot_load): Likewise.
10496 (grub_multiboot_load_elf): Likewise.
10497 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
10498 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
10499 * include/multiboot.h: Resynced with specification.
10500 * include/multiboot2.h: Resynced with specification.
10501 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
10502 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
10503 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
10504 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
10505 users updated.
10506 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
10507 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
10508 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
10509 Removed.
10510 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
10511 Moved from here...
10512 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
10513 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
10514 Moved from here...
10515 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
10516 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
10517 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
10518 All users updated.
10519 * loader/i386/multiboot_mbi2.c: New file.
10520
3506b90b
VS
105212010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10522
10523 Resync with gnulib.
10524
10525 * Makefile.in (GNULIB_CFLAGS): New variable.
10526 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
10527 (grub_script_check_CFLAGS): New variable.
10528 * gnulib/alloca.h: Resync with gnulib.
10529 * gnulib/error.c: Likewise.
10530 * gnulib/error.h: Likewise.
10531 * gnulib/fnmatch.c: Likewise.
10532 * gnulib/fnmatch_loop.c: Likewise.
10533 * gnulib/getdelim.c: Likewise.
10534 * gnulib/getline.c: Likewise.
10535 * gnulib/getopt.c: Likewise.
10536 * gnulib/getopt1.c: Likewise.
10537 * gnulib/getopt_int.h: Likewise.
10538 * gnulib/gettext.h: Likewise.
10539 * gnulib/progname.c: Likewise.
10540 * gnulib/progname.h: Likewise.
10541
394a3120
GS
105422010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
10543
10544 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
10545 which is the case with --disabled-nls.
10546
10547 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
10548 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
10549 * util/misc.c: Likewise.
10550 * util/mkisofs/mkisofs.c: Likewise.
10551 * util/mkisofs/mkisofs.h: Likewise.
10552
969d1c78
VS
105532010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10554
10555 Simplify Apple CC support.
10556
10557 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
10558 Add 0 byte at the end not to have a symbol with empty target.
10559 * mmap/i386/pc/mmap_helper.S: Likewise.
10560 * genmk.rb: Ignore errors 2030 and 2050.
10561 * kern/i386/pc/startup.S: Use LOCAL when possible.
10562
8d2977bb
BC
105632010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
10564
10565 Testcase and the fix for final semicolon on cmdline.
10566
10567 * tests/grub_script_final_semicolon.in: New testcase.
10568 * conf/tests.rmk: Rules for the new testcase.
10569 * script/parser.y: Grammar fix.
10570
a7bd6915
BC
105712010-03-26 BVK Chaitanya <bvk@localhost>
10572
10573 Blank lines testcase for GRUB script.
10574
10575 * tests/grub_script_blanklines.in: New testcase.
10576 * conf/tests.rmk: Rules for the new testcase.
10577
e4ff6628
VS
105782010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10579
10580 Don't use __FILE__.
10581
10582 * genmk.rb: Add -DGRUB_FILE to all C targets.
10583 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
10584 * include/grub/list.h: Likewise.
10585 * include/grub/misc.h: Likewise.
10586 * include/grub/mm.h: Likewise.
10587 * include/grub/test.h: Likewise.
10588 * kern/mm.c: Likewise.
10589 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
10590
6a5cf6b6
VS
105912010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10592
10593 Sunpc partitions support.
10594
10595 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
10596 (grub_fstest_SOURCES): Likewise.
10597 (pkglib_MODULES): Add part_sunpc.mod.
10598 (part_sunpc_mod_SOURCES): New variable.
10599 (part_sunpc_mod_CFLAGS): Likewise.
10600 (part_sunpc_mod_LDFLAGS): Likewise.
10601 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
10602 * partmap/sunpc.c: New file.
10603
746d9045
BC
106042010-03-26 BVK Chaitanya <bvk@localhost>
10605
10606 For loop support to GRUB script.
10607
10608 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
10609 (grub_script_create_cmdfor): New function prototype.
10610 (grub_script_execute_cmdfor): New function prototype.
10611 * script/execute.c (grub_script_execute_cmdfor): New function.
10612 * script/parser.y (command): New for command.
10613 (forcmd): New grammar rule.
10614 * script/script.c (grub_script_create_cmdfor): New function.
10615 * util/grub-script-check.c (grub_script_execute_cmdfor): New
10616 function.
10617 * tests/grub_script_for1.in: New testcase.
10618 * conf/tests.rmk: Rules for new testcase.
10619
18486b18
VS
106202010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
10621
10622 Nested partitions
10623
10624 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
10625 'partition' is NULL, grub_partition_get_start already does that.
10626 * commands/loadenv.c (check_blocklists): Likewise.
10627 (write_blocklists): Likewise.
10628 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
10629 (grub_fstest_SOURCES): Likewise.
10630 (pkglib_MODULES): Add part_bsd.mod.
10631 (part_bsd_mod_SOURCES): New variable.
10632 (part_bsd_mod_CFLAGS): Likewise.
10633 (part_bsd_mod_LDFLAGS): Likewise.
10634 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
10635 (grub_emu_SOURCES): Likewise.
10636 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
10637 * include/grub/bsdlabel.h: New file.
10638 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
10639 'get_name'.
10640 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
10641 (grub_partition_map_list): New variable.
10642 (grub_partition_map_register): Inline.
10643 (grub_partition_map_unregister): Likewise.
10644 (FOR_PARTITION_MAPS): New macro.
10645 (grub_partition_map_iterate): Removed.
10646 (grub_partition_get_start): Handle nested partitions.
10647 * include/grub/msdos_partition.h: Remove bsd-related entries.
10648 (grub_pc_partition): Remove.
10649 * kern/disk.c (grub_disk_close): Free partition data.
10650 (grub_disk_adjust_range): Handle nested partitions.
10651 * kern/partition.c (grub_partition_map_probe): New function.
10652 (grub_partition_probe): Parse name to number, handle subpartitions.
10653 (get_partmap): New function.
10654 (grub_partition_iterate): Handle subpartitions.
10655 (grub_partition_get_name): Likewise.
10656 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
10657 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
10658 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
10659 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
10660 Set 'number'.
10661 (acorn_partition_map_probe): Remove.
10662 (acorn_partition_map_get_name): Likewise.
10663 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
10664 Set 'number'.
10665 Set 'index' to 0 since there can be only one partition entry per sector.
10666 (amiga_partition_map_probe): Remove.
10667 (amiga_partition_map_get_name): Likewise.
10668 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
10669 Set 'number'.
10670 Set 'offset' and 'index' to real positions of partitions.
10671 (apple_partition_map_probe): Remove.
10672 (apple_partition_map_get_name): Likewise.
10673 * partmap/bsdlabel.c: New file.
10674 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
10675 Set 'number'.
10676 Allocate 'data' so it can be correctly freed.
10677 Set 'index' to offset inside sector.
10678 (gpt_partition_map_probe): Remove.
10679 (gpt_partition_map_get_name): Likewise.
10680 * partmap/msdos.c (grub_partition_parse): Remove.
10681 (pc_partition_map_iterate): Don't force raw access.
10682 Set 'number'.
10683 Make 'ext_offset' a local variable.
10684 (pc_partition_map_probe): Remove.
10685 (pc_partition_map_get_name): Remove.
10686 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
10687 Set 'number'.
10688 (sun_partition_map_probe): Remove.
10689 (sun_partition_map_get_name): Likewise.
10690 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
10691 (grub_pcpart_type): Likewise.
10692 * util/hostdisk.c (open_device): Handle new numbering scheme.
10693 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
10694 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
10695 * util/grub-probe.c (probe_partmap): Handle nested paritions.
10696 * util/grub-install.in: Insert all subpartition modules.
10697 * util/ieee1275/grub-install.in: Likewise.
10698
a3940f88
AG
106992010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
10700
10701 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
10702 grammar.
10703
21b99926 107042010-03-24 Colin Watson <cjwatson@ubuntu.com>
10705
10706 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
10707
bed1d352
CW
107082010-03-21 Colin Watson <cjwatson@ubuntu.com>
10709
10710 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
10711 match where 'make install' puts them.
10712 * util/i386/efi/grub-install.in: Likewise.
10713
c9f58427
CW
107142010-03-19 Colin Watson <cjwatson@ubuntu.com>
10715
10716 * .bzrignore: Add gentrigtables, grub-script-check,
10717 grub_script_check_init.c, grub_script_check_init.h, and
10718 trigtables.c.
10719
f84afb27
VS
107202010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
10721
10722 * kern/parser.c: Indented.
10723
ed0e3d30
VS
107242010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
10725
10726 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
10727
0ea81d98
VS
107282010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
10729
10730 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
10731 alpha_mask_size == 0 case.
10732
0cdc2a09
BC
107332010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
10734
10735 GRUB shell lexer and parser improvements.
10736
10737 * conf/any-emu.rmk: Build rule updates.
10738 * conf/common.rmk: Likewise.
10739 * conf/i386-coreboot.rmk: Likewise.
10740 * conf/i386-efi.rmk: Likewise.
10741 * conf/i386-ieee1275.rmk: Likewise.
10742 * conf/i386-pc.rmk: Likewise.
10743 * conf/powerpc-ieee1275.rmk: Likewise.
10744 * conf/x86_64-efi.rmk: Likewise.
10745
10746 * configure.ac: Configure check for flex.
10747
10748 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
10749 types.
10750 (grub_lexer_param): Struct member updates.
10751 (grub_parser_param): Likewise.
10752 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
10753 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
10754 (grub_script_lexer_init): Prototype update.
10755 (grub_script_lexer_record_start): Likewise.
10756 (grub_script_lexer_record_stop): Likewise.
10757 (grub_script_lexer_yywrap): New function prototype.
10758 (grub_script_lexer_fini): Likewise.
10759 (grub_script_execute_argument_to_string): Removed by...
10760 (grub_script_execute_argument_to_argv): ...better version.
10761
10762 * script/execute.c (ROUND_UPTO): New macro.
10763 (grub_script_execute_cmdline): Out of memory fixes.
10764 (grub_script_execute_menuentry): Likewise.
10765 (grub_script_execute_argument_to_string): Removed. Update all
10766 users by...
10767 (grub_script_execute_argument_to_argv): ...better version.
10768 * script/function.c (grub_script_function_create): Use
10769 grub_script_execute_argument_to_argv instead of
10770 grub_script_execute_argument_to_string.
10771
10772 * script/lexer.c (check_varstate): Removed.
10773 (check_textstate): Removed.
10774 (grub_script_lexer_record_start): Likewise.
10775 (grub_script_lexer_record_stop): Likewise.
10776 (recordchar): Replaced with...
10777 (grub_script_lexer_record): ...new function.
10778 (nextchar): Removed.
10779 (grub_script_lexer_init): Rewritten.
10780 (grub_script_yylex): Rewritten.
10781 (append_newline): New function.
10782 (grub_script_lexer_yywrap): New function.
10783 (grub_script_lexer_fini): New function.
10784 (grub_script_yyerror): Sets error flag.
10785
10786 * script/yylex.l: New file.
10787 (grub_lexer_yyfree): Wrapper for flex yyffre.
10788 (grub_lexer_yyalloc): Likewise.
10789 (grub_lexer_yyrealloc): Likewise.
10790 * script/parser.y: Refactored.
10791
10792 * script/script.c (grub_script_arg_add): Out of memory fixes.
10793 (grub_script_add_arglist): Likewise.
10794 (grub_script_create_cmdline): Likewise.
10795 (grub_script_create_cmdmenu): Likewise.
10796 (grub_script_add_cmd): Likewise.
10797 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
10798 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
10799 unnecessary code.
10800
10801 * tests/grub_script_echo1.in: New testcase.
10802 * tests/grub_script_vars1.in: New testcase.
10803 * tests/grub_script_echo_keywords.in: New testcase.
10804
1d63a066
VS
108052010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
10806
10807 Remove some redundancy in build system.
10808
10809 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
10810 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
10811 (TARGET_LDFLAGS): Add -nostdlib.
10812 (TARGET_IMG_LDFLAGS): Likewise.
10813 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
10814 anything since mmap isn't available.
10815 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
10816 Add util/time.c.
10817 (pkglib_MODULES): Remove reboot.mod.
10818 (reboot_mod_SOURCES): Removed.
10819 (reboot_mod_CFLAGS): Likewise.
10820 (reboot_mod_LDFLAGS): Likewise.
10821 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
10822 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
10823 (DEFSYMFILES): Add kernel_syms.lst.
10824 (kernel_img_HEADERS): Add common headers.
10825 (symlist.c): New target.
10826 (kernel_syms.lst): Likewise.
10827 (pkglib_MODULES): Add memdisk.mod.
10828 (memdisk_mod_SOURCES): New variable.
10829 (memdisk_mod_CFLAGS): Likewise.
10830 (memdisk_mod_LDFLAGS): Likewise.
10831 (pkglib_MODULES): Add reboot.mod.
10832 (reboot_mod_SOURCES): New variable.
10833 (reboot_mod_CFLAGS): Likewise.
10834 (reboot_mod_LDFLAGS): Likewise.
10835 (pkglib_MODULES): Add date.mod.
10836 (date_mod_SOURCES): New variable.
10837 (date_mod_CFLAGS): Likewise.
10838 (date_mod_LDFLAGS): Likewise.
10839 (pkglib_MODULES): Add datehook.mod.
10840 (datehook_mod_SOURCES): New variable.
10841 (datehook_mod_CFLAGS): Likewise.
10842 (datehook_mod_LDFLAGS): Likewise.
10843 (pkglib_MODULES): Add lsmmap.mod.
10844 (lsmmap_mod_SOURCES): New variable.
10845 (lsmmap_mod_CFLAGS): Likewise.
10846 (lsmmap_mod_LDFLAGS): Likewise.
10847 (pkglib_MODULES): Add boot.mod.
10848 (boot_mod_SOURCES): New variable.
10849 (boot_mod_CFLAGS): Likewise.
10850 (boot_mod_LDFLAGS): Likewise.
10851 * conf/i386-coreboot.rmk: Removed redundant parts.
10852 * conf/i386-ieee1275.rmk: Likewise.
10853 * conf/i386-pc.rmk: Likewise.
10854 * conf/mips-yeeloong.rmk: Likewise.
10855 * conf/mips.rmk: Likewise.
10856 * conf/powerpc-ieee1275.rmk: Likewise.
10857 * conf/sparc64-ieee1275.rmk: Likewise.
10858 * conf/x86_64-efi.rmk: Likewise.
10859 * conf/i386-coreboot.rmk: Moved qemu parts ..
10860 * conf/i386-qemu.rmk: ... here
10861 * conf/i386-efi.rmk: Moved common parts to...
10862 * conf/x86-efi.rmk: ... here.
10863 * conf/i386.rmk: Added modules common to all x86 variants.
10864 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
10865 * disk/memdisk.c: Remove grub/machine/kernel.h.
10866 * gensymlist.sh.in: Include symbol.h.
10867 * hook/datehook.c: Correct module name.
10868 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
10869 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
10870 * include/grub/i386/efi/serial.h: New file.
10871 * include/grub/x86_64/efi/serial.h: Likewise.
10872 * util/time.c: Likewise.
10873 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
10874
463ac55f
CK
108752010-03-14 Colin King <colin.king@ubuntu.com>
108762010-03-14 Colin Watson <cjwatson@ubuntu.com>
10877
10878 Shrink the pre-partition-table part of boot.img by eight bytes.
10879
10880 * boot/i386/pc/boot.S (ERR): New macro.
10881 (chs_mode): Use ERR.
10882 (geometry_error): Likewise.
10883 (hd_probe_error): Remove. This is only used once, so we wrwite
10884 it inline instead.
10885 (read_error): Instead of printing read_error_string, just set up
10886 %si and fall through to ...
10887 (error_message): ... this new function, also used by ERR.
10888
08e46ede
CW
108892010-03-14 Colin Watson <cjwatson@ubuntu.com>
10890
10891 Speed up consecutive hostdisk operations on the same device.
10892
10893 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
10894 (grub_util_biosdisk_open): Initialise disk->data.
10895 (struct linux_partition_cache): New structure.
10896 (linux_find_partition): Cache partition start positions; these are
10897 expensive to compute on every read and write.
10898 (open_device): Cache open file descriptor in disk->data, so that we
10899 don't have to reopen it and flush the buffer cache for consecutive
10900 operations on the same device.
10901 (grub_util_biosdisk_close): New function.
10902 (grub_util_biosdisk_dev): Set `close' member.
10903
10904 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
10905 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
10906 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
10907 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
10908 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
10909
4a6d2d06
VS
109102010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
10911
10912 Compile parts of grub-emu as modules.
10913
10914 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
10915 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
10916 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
10917 (all-local): Add $(GRUB_EMU).
10918 (install-local): Install $(GRUB_EMU).
10919 (uninstall): Uninstall $(GRUB_EMU).
10920 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
10921 * kern/dl.c: Likewise.
10922 * commands/sleep.c: Not include machine/time.h.
10923 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
10924 (COMMON_CFLAGS): Likewise.
10925 (sbin_UTILITIES): Remove grub-emu.
10926 (grub_emu_SOURCES): Removed.
10927 (kernel_img_RELOCATABLE): New variable.
10928 (pkglib_PROGRAMS): Add kernel.img.
10929 (kernel_img_SOURCES): New variable
10930 (kernel_img_CFLAGS): Likewise.
10931 (kernel_img_LDFLAGS): Likewise.
10932 (TARGET_NO_STRIP): Likewise.
10933 (TARGET_NO_DYNAMIC_MODULES): Likewise.
10934 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
10935 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
10936 (grub-emu): New target.
10937 (GRUB_EMU): New variable.
10938 * configure.ac: Whitelist -emu as possible x86_64 architecture.
10939 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
10940 * loader/xnu.c: Likewise.
10941 * include/grub/pci.h: Likewise.
10942 * genemuinit.sh: New file.
10943 * genemuinitheader.sh: Likewise.
10944 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
10945 Support TARGET_NO_DYNAMIC_MODULES.
10946 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
10947 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
10948 * disk/loopback.c: Likewise.
10949 * font/font_cmd.c: Likewise.
10950 * partmap/acorn.c: Likewise.
10951 * partmap/amiga.c: Likewise.
10952 * partmap/apple.c: Likewise.
10953 * partmap/gpt.c: Likewise.
10954 * partmap/msdos.c: Likewise.
10955 * partmap/sun.c: Likewise.
10956 * parttool/msdospart.c: Likewise.
10957 * term/gfxterm.c: Likewise.
10958 * video/bitmap.c: Likewise.
10959 * video/readers/jpeg.c: Likewise.
10960 * video/readers/png.c: Likewise.
10961 * video/readers/tga.c: Likewise.
10962 * video/video.c: Likewise.
10963 * util/grub-emu.c (read_command_list): Removed.
10964 (main): Don't call util_init_nls.
10965 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
10966 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
10967
91fdd2ed
VS
109682010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
10969
10970 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
10971 date.mod, datehook.mod.
10972 (datetime_mod_SOURCES): New variable.
10973 (datetime_mod_CFLAGS): Likewise.
10974 (datetime_mod_LDFLAGS): Likewise.
10975 (date_mod_SOURCES): Likewise.
10976 (date_mod_CFLAGS): Likewise.
10977 (date_mod_LDFLAGS): Likewise.
10978 (datehook_mod_SOURCES): Likewise.
10979 (datehook_mod_CFLAGS): Likewise.
10980 (datehook_mod_LDFLAGS): Likewise.
10981 * conf/sparc64-ieee1275.rmk: Likewise.
10982 * lib/ieee1275/datetime.c: New file.
10983
873ccae6
VS
109842010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
10985
10986 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
10987 (ieee1275_fb_mod_SOURCES): New variable.
10988 (ieee1275_fb_mod_CFLAGS): Likewise.
10989 (ieee1275_fb_mod_LDFLAGS): Likewise.
10990 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
10991 New proto.
10992 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
10993 (HEAP_MAX_ADDR): Likewise.
10994 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
10995 type.
10996 Correct stop condition.
10997 (grub_ieee1275_devices_iterate): New function.
10998 * video/ieee1275.c: New file.
10999
601c97c0
VS
110002010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
11001
11002 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
11003
11004 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
11005 as scratch.
11006 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
11007 SCRATCH_PAD_DISKBOOT as scratch.
11008 (bootit): Pass Openfirmware pointer in %o4.
11009 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
11010 of 0x200000.
11011 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
11012 with util/grub-mkrawimage.c.
11013 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
11014 * include/grub/aout.h (AOUT_MID_SUN): New definition.
11015 (grub_aout_get_type) [GRUB_UTIL]: Removed.
11016 (grub_aout_load) [GRUB_UTIL]: Likewise.
11017 * include/grub/kernel.h (grub_modules_get_end): New proto.
11018 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
11019 (SCRATCH_PAD_BOOT): New definition.
11020 (SCRATCH_PAD_DISKBOOT): Likewise.
11021 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
11022 * include/grub/sparc64/ieee1275/ieee1275.h
11023 (grub_ieee1275_original_stack): New variable
11024 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
11025 New definition
11026 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
11027 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
11028 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
11029 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
11030 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
11031 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
11032 (grub_platform_image_format_t): New type.
11033 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
11034 * kern/main.c (grub_modules_get_end)
11035 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
11036 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
11037 (codestart): Switch stacks.
11038 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
11039 variable.
11040 (grub_heap_init): Use grub_modules_get_end.
11041 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
11042 stack.
11043 * util/grub-mkrawimage.c (generate_image): Support sparc64.
11044 (main): Likewise.
11045 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
11046
d68b491e
TG
110472010-03-14 Thorsten Glaser <tg@mirbsd.org>
11048
11049 * util/grub-mkrescue.in: Base ISO UUID on UTC.
11050
4e02ed50
MK
110512010-03-08 Matt Kraai <kraai@ftbfs.org>
11052
11053 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
11054 bug #559005).
11055
1f15fc1e
VS
110562010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11057
11058 * genmoddep.awk: Output all missing symbols and not only first.
11059
fce5d8ff
VS
110602010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11061
11062 * NEWS: Put the date of 1.98 release.
11063
d1e8a02f
VS
110642010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11065
11066 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
11067 ft2build.h.
11068
696fd607
VS
110692010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11070
11071 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
11072 completition in the middle of string.
11073
33e2e6f3
VS
110742010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11075
11076 * util/grub-mkrescue.in: Use mktemp with explicit template.
11077
b1f6d291
VS
110782010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11079
11080 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
11081
2ac227c7
VS
110822010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11083
11084 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
11085 right pointer.
11086
8f9a632b
VS
110872010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11088
11089 Fix FreeBSD compilation.
11090
11091 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
11092 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
11093
60b03859
VS
110942010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11095
11096 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
11097
48a5a769
VS
110982010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11099
11100 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
11101
3ab4bd77
VS
111022010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11103
11104 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
11105
d116e0d8
RM
111062010-03-04 Robert Millan <rmh.grub@aybabtu.com>
11107
11108 Support relative image path in theme file.
11109
11110 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
11111 (image_set_property): Handle theme_dir and relative path.
11112
c7ef54aa
VS
111132010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11114
11115 * configure.ac: Alias amd64 to x86_64.
11116
fcee14ed
VS
111172010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11118
11119 * NEWS: mention multiboot on EFI.
11120
d0780363
VS
111212010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11122
11123 * kern/main.c (grub_load_modules): Handle errors from init functions of
11124 embeded modules.
11125
41168ea4
VS
111262010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11127
11128 * normal/autofs.c (autoload_fs_module): Handle errors.
11129
b54d93ac
VS
111302010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11131
11132 Disable linux.mod on qemu-mips since it's not functional and leads
11133 to compilation failure.
11134
11135 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
11136 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
11137 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
11138 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
11139 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
11140 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
11141 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
11142 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
11143 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
11144 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
11145 Reported by: BVK Chaitanya
11146
fc8345da
JU
111472010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
11148
11149 * INSTALL: Add gettext as a dependency and add qemu to a new section
11150 "Prerequisites for make-check".
11151
4760f979
CF
111522010-03-04 Christian Franke <franke@computer.org>
11153
11154 * util/grub-pe2elf.c: Add missing include "progname.h".
11155
f209b5b2
VS
111562010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11157
11158 * normal/crypto.c (read_crypto_list): Fix a typo.
11159 Reported by: Seth Goldberg.
11160
b4b7be98
VS
111612010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11162
11163 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 11164 Reported by: Seth Goldberg.
b4b7be98 11165
c0ee0385
VS
111662010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11167
11168 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
11169 ascii.bitmaps.
11170
a8efbf64
VS
111712010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11172
11173 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 11174 Reported by: Seth Goldberg.
a8efbf64 11175
08dcd913
VS
111762010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11177
11178 * util/i386/efi/grub-install.in: Copy gettext files.
11179
c4d0b332
VS
111802010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11181
11182 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
11183
c6f2fe52
VS
111842010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11185
11186 Wait for user entry basing on presence of output rather than on errors.
11187
11188 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
11189 (grub_install_newline_hook): Likewise.
11190 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
11191 * normal/menu.c (show_menu): Check line_counter to determine presence
11192 of output.
11193 * normal/term.c (grub_normal_line_counter): New variable.
11194 (grub_normal_get_line_counter): New function.
11195 (grub_install_newline_hook): Likewise.
11196
5382b1e4
VS
111972010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11198
11199 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
11200
5519963b
VS
112012010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
11202
11203 * configure.ac: Update version to 1.98.
11204
72b28631
VS
112052010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
11206
11207 * util/grub.d/10_linux.in (linux_entry): Don't default to
11208 gfxpayload=keep if Linux doesn't support video handover.
11209
c140a180
VS
112102010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
11211
11212 Don't compile video modules on yeeloong since video subsystem is part
11213 of kernel.
11214
11215 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
11216 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
11217 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
11218 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
11219 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
11220 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
11221 * include/grub/bitmap_scale.h: Likewise.
11222 * include/grub/bufio.h: Likewise.
11223 * include/grub/font.h: Likewise.
11224 * include/grub/gfxterm.h: Likewise.
11225 * include/grub/video.h: Likewise.
11226 * include/grub/vbe.h: Don't include video_fb.h.
11227 * video/i386/pc/vbe.c: Include video_fb.h.
11228 * commands/i386/pc/vbetest.c: Include video.h.
11229
a0ca21c2
CW
112302010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
11231
11232 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
11233 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
11234 default entry if GRUB_SAVEDEFAULT=true. This allows using
11235 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
11236 saving a new default on every boot.
11237
4a8a763c
VS
112382010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11239
11240 * normal/crypto.c (read_crypto_list): Fix a memory leak.
11241 * normal/term.c (read_terminal_list): Likewise.
11242 * normal/main.c (grub_normal_init_page): Likewise.
11243 (grub_normal_read_line_real): Likewise.
11244
607ffde2
VS
112452010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
11246
11247 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
11248 memory leak.
11249 Reported by: Seth Goldberg.
11250
2b8fa975
CW
112512010-02-24 Joey Korkames <joey+lists@kidfixit.com>
11252
11253 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
11254 duplicate declaration of `start'.
11255
618307dd
VS
112562010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
11257
11258 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
11259 filename.
11260 Reported by: Georgy Buranov
11261
7dd05b96 112622010-02-20 Carles Pina i Estany <carles@pina.cat>
11263
11264 * util/grub-mkrawimage.c (usage): Change string formatting to
11265 improve gettext.
11266
d1484a42
MRA
112672010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
11268
11269 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
11270 backspace keys.
11271
42b1d186
VS
112722010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
11273
11274 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
11275 Reported by: Michael Suchanek.
11276
112772010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
11278
11279 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
11280 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
11281
d9f31a41
VS
112822010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
11283
11284 Remove any reference to non-free fonts.
11285
11286 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
11287 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
11288 uses non-free components.
11289 * font/font.c (grub_font_get_name): Remove example name.
11290 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
11291 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
11292 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
11293 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
11294
2793c71e
GB
112952010-02-16 Georgy Buranov <gburanov@gmail.com>
11296
11297 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
11298
402e3779
VS
112992010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
11300
11301 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
11302 Double divisor.
11303 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
11304 features.
11305 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
11306
0dd1e0dd
VS
113072010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
11308
11309 * gensymlist.sh.in: Use TARGET_CC instead of CC.
11310
6fa7cfce
ST
113112010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11312
11313 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
11314 * docs/grub.texi (Command-line and menu entry commands): Document play
11315 command.
11316
37c8483b
ST
113172010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11318
11319 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
11320 parse arguments as inline tempo and notes. Move code for playing notes
11321 to...
11322 (play): ... new function.
11323
14da0fb7
ST
113242010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11325
11326 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
11327 grub_uint16_t instead of short.
11328 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
11329 disk from little endian to cpu endianness.
11330
04459e70
ST
113312010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
11332
11333 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
11334 GRUB_TICKS_PER_SECOND instead of 120.
11335
a0876943
VS
113362010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11337
11338 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
11339 escape sequence after \e.
11340
e29f95dc
VS
113412010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11342
11343 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
11344 non-ASCII characters.
11345
d27859b2
VS
113462010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11347
11348 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
11349 set root in single quotes to prevent \, from being unescaped.
11350
bc028f2f
VS
113512010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11352
11353 Prevent unknown commands from stopping menuentry execution.
11354
11355 * script/execute.c (grub_script_execute_cmdline): Print error after
11356 unknown command.
11357
095f5f82
VS
113582010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
11359
11360 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
11361 Reported by: Pavel Pisa.
11362
8c717950
VS
113632010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11364
11365 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
11366
904935c3
VS
113672010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11368
11369 Merge grub_ieee1275_map_physical into grub_map and rename to
11370 grub_ieee1275_map
11371
11372 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
11373 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
11374 Remove.
11375 * kern/ieee1275/openfw.c (grub_map): Rename to ...
11376 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
11377 necessary.
11378 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
11379
5b59a4e3
VS
113802010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11381
11382 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
11383 opening and not after.
11384
69e137e8
VS
113852010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11386
11387 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
11388 constants.
11389
2c0fcc36
VS
113902010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11391
11392 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
11393 (alloc_phys): Use ALIGN_UP instead of align_addr.
11394
8c6052ce
VS
113952010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11396
11397 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
11398
17cec782
VS
113992010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11400
11401 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
11402
e0128bbd
VS
114032010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11404
11405 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
11406 verbose dprintf.
11407
ca62070b
VS
114082010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11409
11410 Fix over-4GiB seek on sparc64.
11411
11412 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
11413 Replace pos_i and pos_lo with pos. All users updated.
11414 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
11415 New constant.
11416 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
11417 Likewise.
11418 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
11419 and pos_lo.
11420
bdca2607
VS
114212010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11422
11423 * util/grub-mkrawimage.c (main): Call set_program_name.
11424
da278c4d
VS
114252010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11426
11427 Properly align 64-bit targets.
11428
11429 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
11430 (generate_image): Use ALIGN_ADDR.
11431
b274d734
VS
114322010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11433
11434 Properly create cross-endian images.
11435
11436 * include/grub/types.h (grub_host_to_target_addr): New macro
11437 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
11438
82da2062
VS
114392010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
11440
11441 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
11442
7cae4377
VS
114432010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11444
11445 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
11446
11447 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
11448 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
11449 (grub_linux_boot): Divide by 64K when on VESA.
11450
65a533e7
VS
114512010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11452
11453 Support GRUB_GFXPAYLOAD_LINUX.
11454
11455 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
11456 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
11457
dd01d397
VS
114582010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
11459
11460 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
11461 to show messages instead of discarding them.
11462 Process errors after executing command and not before. Keep old method
11463 too as precaution.
11464
660960d6
VS
114652010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
11466
11467 * configure.ac: Check for ft2build.h.
11468
62509f04
VS
114692010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11470
11471 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
11472
473df63d
VS
114732010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11474
11475 * genkernsyms.sh.in: Use TARGET_CC.
11476
c98d2a13
CW
114772010-02-07 Colin Watson <cjwatson@ubuntu.com>
11478
11479 * NEWS: Update.
11480
6e14234c
VS
114812010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11482
11483 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
11484 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
11485 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 11486
b255e9cf
YB
114872010-02-07 Yves Blusseau <blusseau@zetam.org>
11488
6e14234c 11489 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 11490
98e6959d
VS
114912010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11492
11493 Fix warnings in grub-emu when compiling with maximum warning options.
11494
11495 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
11496 (grub_arch_modules_addr): Return 0 and not NULL.
11497 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 11498 (xstrdup): Use newstr instead of dup.
f88d801b
VS
11499 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
11500 of disk to dsk to avoid shadowing.
74e4934e
VS
11501 (find_free_slot): Fix prototype.
11502 * util/getroot.c (grub_util_is_dmraid): Make static.
11503 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
11504 Add missing prototype.
11505 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 11506
74e31b5c
VS
115072010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11508
11509 * loader/i386/linux.c (grub_linux_setup_video): Handle error
11510 appropriately.
11511
6b2ad14b
VS
115122010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11513
11514 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
11515 code out.
11516
8f891adc
VS
115172010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11518
11519 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
11520 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
11521 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
11522 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
11523 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
11524 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
11525
74b45184
VS
115262010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11527
11528 * include/grub/err.h (grub_err_printf): Don't export.
11529
a4bced77
VS
115302010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11531
11532 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
11533
007d0695
VS
115342010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
11535
11536 * include/grub/i18n.h (grub_gettext_dummy): Removed.
11537 * kern/misc.c (grub_gettext_dummy): Make static.
11538
b6c0d9c2
VS
115392010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11540
11541 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
11542 by non-valid ones.
11543 * kern/term.c (grub_putchar): Likewise.
11544
f51a90d0
VS
115452010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11546
11547 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
11548 buggy hook call and memory leak.
11549
6846cec5
VS
115502010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11551
11552 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
11553
468d69fe
VS
115542010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11555
11556 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
11557
51906b8c
VS
115582010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11559
11560 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
11561 modevar.
11562 Return grub_errno on allocation error.
11563
09706ce5
VS
115642010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11565
11566 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
11567
911df80c
YB
115682010-02-06 Yves Blusseau <blusseau@zetam.org>
11569
11570 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
11571 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
11572
3746a6bc
VS
115732010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11574
11575 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
11576 non-pxe disk.
11577 (grub_pxefs_open): Likewise.
11578
09706ce5
VS
115792010-02-06 Robert Millan <rmh.grub@aybabtu.com>
11580
11581 * util/grub.d/10_hurd.in: Add --class information to menuentries.
11582 * util/grub.d/10_kfreebsd.in: Likewise.
11583 * util/grub.d/10_linux.in: Likewise.
11584
7cc192d9
VS
115852010-02-06 Colin D Bennett <colin@gibibit.com>
11586
11587 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
11588 (gfxmenu_mod_SOURCES): New variable.
11589 (gfxmenu_mod_CFLAGS): Likewise.
11590 (gfxmenu_mod_LDFLAGS): Likewise.
11591 * include/grub/term.h (grub_term_set_current_output): Declare
11592 argument as const.
11593 * docs/gfxmenu-theme-example.txt: New file.
11594 * gfxmenu/gfxmenu.c: Likewise.
11595 * gfxmenu/gui_box.c: Likewise.
11596 * gfxmenu/gui_canvas.c: Likewise.
11597 * gfxmenu/gui_circular_progress.c: Likewise.
11598 * gfxmenu/gui_image.c: Likewise.
11599 * gfxmenu/gui_label.c: Likewise.
11600 * gfxmenu/gui_list.c: Likewise.
11601 * gfxmenu/gui_progress_bar.c: Likewise.
11602 * gfxmenu/gui_string_util.c: Likewise.
11603 * gfxmenu/gui_util.c: Likewise.
11604 * gfxmenu/icon_manager.c: Likewise.
11605 * gfxmenu/model.c: Likewise.
11606 * gfxmenu/named_colors.c: Likewise.
11607 * gfxmenu/theme_loader.c: Likewise.
11608 * gfxmenu/view.c: Likewise.
11609 * gfxmenu/widget-box.c: Likewise.
11610 * include/grub/gfxmenu_model.h: Likewise.
11611 * include/grub/gfxmenu_view.h: Likewise.
11612 * include/grub/gfxwidgets.h: Likewise.
11613 * include/grub/gui.h: Likewise.
11614 * include/grub/gui_string_util.h: Likewise.
11615 * include/grub/icon_manager.h: Likewise.
11616
116172010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11618
11619 Agglomerate scrolling in gfxterm.
11620
11621 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
11622 (grub_virtual_screen_setup): Initialise 'total_screen'.
11623 (write_char): Split to ...
11624 (paint_char): ... this ...
11625 (write_char): ... and this.
11626 (paint_char): Handle delayed scrolling.
11627 (draw_cursor): Likewise.
11628 (scroll_up): Split to ...
11629 (real_scroll): ... this ...
11630 (scroll_up): ... and this.
11631 (real_scroll): Handle multi-line scroll and draw below-the-bottom
11632 characters.
11633 (grub_gfxterm_refresh): Call real_scroll.
11634
116352010-02-06 Colin D Bennett <colin@gibibit.com>
11636
11637 * include/grub/misc.h (grub_iscntrl): New inline function.
11638 (grub_isalnum): Likewise.
11639 (grub_strtol): Likewise.
11640
116412010-02-06 Colin D Bennett <colin@gibibit.com>
11642
11643 * normal/menu_text.c (get_entry_number): Move from here ...
11644 * normal/menu.c (get_entry_number): ... moved here.
11645 * include/grub/menu.h (grub_menu_get_default_entry_index):
11646 New prototype.
11647 * normal/menu.c (grub_menu_get_default_entry_index): New function.
11648 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
11649 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
11650 (grub_menu_viewer_should_return): Likewise.
11651 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
11652 * normal/menu_text.c (run_menu): Enable menu switching.
11653 * normal/menu_viewer.c (should_return): New variable.
11654 (menu_viewer_changed): Likewise.
11655 (grub_menu_viewer_show_menu): Handle menu viewer changes.
11656 (grub_menu_viewer_should_return): New function.
11657 (menuviewer_write_hook): Likewise.
11658 (grub_menu_viewer_init): Likewise.
11659
116602010-02-06 Colin D Bennet <colin@gibibit.com>
116612010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11662
11663 Support for gfxterm in a window.
11664
11665 * include/grub/gfxterm.h: New file.
11666 * include/grub/video.h (struct grub_video_rect): New declaration.
11667 (grub_video_rect_t): Likewise.
11668 * term/gfxterm.c (struct grub_gfxterm_window): New type.
11669 (refcount): New variable.
11670 (render_target): Likewise.
11671 (window): Likewise.
11672 (repaint_callback): Likewise.
11673 (grub_virtual_screen_setup): Use 'render_target'.
11674 (init_window): New function.
11675 (grub_gfxterm_init_window): Likewise.
11676 (grub_gfxterm_init): Check reference counter.
11677 Use init_window.
11678 (destroy_window): New function.
11679 (grub_gfxterm_destroy_window): Likewise.
11680 (grub_gfxterm_fini): Check reference counter.
11681 Use destroy_window.
11682 (redraw_screen_rect): Restore viewport.
11683 Use 'render_target' and 'window'.
11684 Call 'repaint_callback'.
11685 (write_char): Use 'render_target'.
11686 (draw_cursor): Likewise.
11687 (scroll_up): Restore viewport.
11688 Use 'render_target' and 'window'.
11689 Call 'repaint_callback'.
11690 (grub_gfxterm_cls): Likewise.
11691 (grub_gfxterm_refresh): Use 'window'.
11692 (grub_gfxterm_set_repaint_callback): New function.
11693 (grub_gfxterm_background_image_cmd): Use 'window'.
11694 (grub_gfxterm_get_term): New function.
11695 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
11696
116972010-02-06 Colin D Bennett <colin@gibibit.com>
11698
11699 Bitmap scaling support.
11700
11701 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
11702 (bitmap_scale_mod_SOURCES): New variable.
11703 (bitmap_scale_mod_CFLAGS): Likewise.
11704 (bitmap_scale_mod_LDFLAGS): Likewise.
11705 * include/grub/bitmap_scale.h: New file.
11706 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
11707 (background_image_cmd_options): New variable.
11708 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
11709 (cmd): Rename and change type to ...
11710 (background_image_cmd_handle): ... this. All users updated.
11711 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
11712 * video/bitmap_scale.c: New file.
11713
117142010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11715
11716 SDL support.
11717
11718 * Makefile.in (LIBSDL): New variable.
11719 (enable_grub_emu_sdl): Likewise.
11720 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
11721 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
11722 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
11723 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
11724 * util/sdl.c: New file.
11725
117262010-02-06 Colin D Bennett <colin@gibibit.com>
117272010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11728
11729 Double buffering support.
11730
11731 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
11732 * include/grub/video.h: Update comment.
11733 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
11734 New type.
11735 (grub_video_fb_doublebuf_blit_init): New prototype.
11736 * term/gfxterm.c (scroll_up): Support double buffering.
11737 (grub_gfxterm_refresh): Likewise.
11738 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
11739 (grub_video_fb_doublebuf_blit_init): Likewise.
11740 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
11741 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
11742 'displayed_page', 'render_page' and 'update_screen'.
11743 (grub_video_vbe_fini): Free offscreen buffer.
11744 (doublebuf_pageflipping_commit): New function.
11745 (doublebuf_pageflipping_update_screen): Likewise.
11746 (doublebuf_pageflipping_init): Likewise.
11747 (double_buffering_init): Likewise.
11748 (grub_video_vbe_setup): Enable doublebuffering.
11749 (grub_video_vbe_swap_buffers): Implement.
11750 (grub_video_vbe_set_active_render_target): Handle double buffering.
11751 (grub_video_vbe_get_active_render_target): Likewise.
11752 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
11753 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
11754 (grub_video_vbe_enable_double_buffering): Likewise.
11755 (grub_video_vbe_swap_buffers): Use update_screen.
11756 (grub_video_set_mode): Use double buffering.
11757
117582010-02-06 Robert Millan <rmh.grub@aybabtu.com>
11759
11760 * maintainance/gentrigtables.py: Remove.
11761 * lib/trig.c: Likewise.
11762
11763 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
11764
11765 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
11766 `trigtables.c'.
11767 (trigtables.c): New rule.
11768 (gentrigtables): Likewise.
11769 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
11770
117712010-02-06 Robert Millan <rmh.grub@aybabtu.com>
11772
11773 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
11774 integer constants.
11775
117762010-02-06 Colin D Bennet <colin@gibibit.com>
11777
11778 Trigonometry support.
11779
11780 * include/grub/trig.h: New file.
11781 * lib/trig.c: Likewise.
11782 * maintainance/gentrigtables.py: Likewise.
11783 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
11784 (trig_mod_SOURCES): New variable.
11785 (trig_mod_CFLAGS): Likewise.
11786 (trig_mod_LDFLAGS): Likewise.
11787
5562834e
VS
117882010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11789
11790 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
11791 disk devices.
11792
4f8528fc
VS
117932010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
11794
11795 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
11796 error.
11797
2b4068e9
VS
117982010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11799
11800 * util/hostdisk.c (open_device): Don't use partition device when reading
11801 before the partition.
11802 (grub_util_biosdisk_read): Don't read from partition and before the
11803 partition in single operation.
11804 (grub_util_biosdisk_write): Don't write to partition and before the
11805 partition in single operation.
11806
399f6e4d
TL
118072010-02-03 Torsten Landschoff <torsten@debian.org>
11808
11809 * kern/disk.c (grub_disk_read): Fix offset computation when reading
11810 last sectors.
11811
996649b0
VS
118122010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11813
11814 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
11815 CDROM reads.
11816 (grub_biosdisk_write): Refuse to write to CDROM.
11817
3b205d4d
VS
118182010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11819
11820 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
11821
61e89d9d
VS
118222010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11823
11824 * font/font.c (find_glyph): Check that bmp_idx is available before
11825 using it.
11826 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
11827 with (font == NULL).
11828
bf7fcba2
CS
118292010-01-28 Christian Schmitt <chris@ilovelinux.de>
11830
11831 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
11832
f45d2663
BC
118332010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
11834
11835 * include/grub/script_sh.h (sourcecode): Add const qualifier.
11836 * util/grub-script-check.c (getline): Fix empty lines case.
11837
ec1444e6
RM
118382010-01-28 Robert Millan <rmh.grub@aybabtu.com>
11839
11840 * Makefile.in (check): Exit with fail status when one of the tests
11841 fails.
11842 * tests/example_functional_test.c (example_test): Fix reversed assert.
11843 * tests/example_unit_test.c (example_test): Likewise.
11844
2e1cb9bb
CW
118452010-01-28 Colin Watson <cjwatson@ubuntu.com>
11846
11847 * util/grub.d/10_linux.in: This script does not use any of the
11848 contents of gettext.sh, only the external command `gettext', so stop
11849 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
11850 the same prefix as GRUB.)
11851 * util/grub.d/10_kfreebsd.in: Likewise.
11852
63533ab0
VS
118532010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11854
11855 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
11856 of the line.
11857
989e1f93
VS
118582010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11859
11860 * kern/disk.c (grub_disk_read): Fix offset computation when reading
11861 last sectors.
11862
e709ebe2
VS
118632010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11864
11865 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
11866 having a 4KiB and not 32KiB buffer size.
11867
27dea7ed
RM
118682010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11869
11870 * util/hostfs.c: Include `<errno.h>'.
11871 (grub_hostfs_read): Handle errors from fseeko() and fread().
11872
67667b9c
RM
118732010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11874
11875 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
11876 loop when using read hooks on files whose size isn't sector-aligned.
11877
c294d9d8
RM
118782010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11879
11880 Remove unused parameter.
11881
11882 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
11883 (grub_iso9660_open): Remove initialization of `data->length'.
11884
af75a9f1
RM
118852010-01-27 Robert Millan <rmh.grub@aybabtu.com>
11886
11887 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
11888 memleak conditions.
11889
254e2ce5 118902010-01-27 Carles Pina i Estany <carles@pina.cat>
11891
11892 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
11893 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
11894
b510928c 118952010-01-26 Carles Pina i Estany <carles@pina.cat>
11896
11897 * util/bin2h.c (usage): Fix warning (space after backslash).
11898
aa2f9dd2 118992010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 11900
11901 * font/font.c: Include `grub/fontformat.h.
11902 Remove font file format constants.
11903 (grub_font_load): Use the new macros.
11904 * include/grub/fontformat.h: New file.
11905 * util/grub-mkfont.c: Include `grub/fontformat.c'.
11906 (write_font_pf2): Use the new macros.
11907
94e7e712
RM
119082010-01-26 Robert Millan <rmh.grub@aybabtu.com>
11909
11910 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
11911 does.
11912
3973a59a
RM
119132010-01-26 Robert Millan <rmh.grub@aybabtu.com>
11914
11915 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
11916
11917 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
11918 (_start): Macroify `0x7F'.
11919
11920 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
11921 (make_install_device): Use "(pxe)" as fallback prefix when booting
11922 via PXE.
11923
42e0cba3
GS
119242010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
11925
11926 * configure.ac: Reset LIBS after check for libgcc symbols.
11927
847effd8
CW
119282010-01-25 Colin Watson <cjwatson@ubuntu.com>
11929
11930 * util/hostdisk.c (open_device): Add trailing newline to debug
11931 message.
11932
ea4a7e35
GS
119332010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
11934
11935 * configure.ac: Check for `limits.h'.
11936 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
11937
67951a53
RM
119382010-01-24 Robert Millan <rmh.grub@aybabtu.com>
11939
11940 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
11941 capitalize error strings.
11942
c273d4ce
ST
119432010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
11944
11945 * util/grub.d/10_hurd.in: Add a recovery mode.
11946
69be5b74
VS
119472010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
11948
11949 * configure.ac: Check for libgcc symbols with -nostdlib.
11950
fc9e5810
BC
119512010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
11952
11953 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
11954
4b358c0a
VS
119552010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
11956
11957 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
11958 stack since heap may be unavailable at that point.
11959 (grub_ofconsole_gotoxy): Likewise.
11960
454fcd1c
VS
119612010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
11962
11963 * configure.ac: Check for _restgpr_14_x.
11964 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
11965 and _savegpr_* prototypes.
11966
566863ca
RM
119672010-01-22 Robert Millan <rmh.grub@aybabtu.com>
11968
11969 Use generic grub_reboot() for i386-efi.
11970
11971 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
11972 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
11973 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
11974
bf86e59a
VS
119752010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
11976
11977 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
11978 presence of "prefix" variable as it breaks when normal.mod is
11979 embedded.
11980
d645e0f8
VS
119812010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
11982
11983 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
11984 stack since heap is unavailable at that point.
11985
f9ab2e25
VS
119862010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
11987
11988 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
11989 (grub_freebsd_bootinfo): Rewritten.
11990 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
11991
01fc7054
VS
119922010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
11993
11994 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
11995
caab4fd6
RM
119962010-01-21 Robert Millan <rmh.grub@aybabtu.com>
11997
11998 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
11999 domain now.
12000
67eb1427
FZ
120012010-01-20 Felix Zielcke <fzielcke@z-51.de>
12002
12003 * util/misc.c (make_system_path_relative_to_its_root): Change the work
12004 around for handling "/" to the correct fix. Fix a memory leak. Use
12005 xstrdup instead of strdup.
12006
a9ed4ff3
VS
120072010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12008
12009 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
12010
120112010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
12012
12013 Optimise glyph lookup by Basic Multilingual Plane lookup array.
12014
12015 * font/font.c (struct grub_font): New member 'bmp_idx'.
12016 (font_init): Initialise 'bmp_idx'.
12017 (load_font_index): Fill 'bmp_idx'.
12018 (find_glyph): Make inline. Use bmp_idx for BMP characters.
12019
48209f4f
VS
120202010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12021
12022 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
12023 unnecessary calls.
12024
9f0a4bb7
VS
120252010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12026
12027 Move context handling out of the kernel.
12028
12029 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
12030 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
12031 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
12032 * conf/i386-efi.rmk: Likewise.
12033 * conf/i386-ieee1275.rmk: Likewise.
12034 * conf/i386-pc.rmk: Likewise.
12035 * conf/powerpc-ieee1275.rmk: Likewise.
12036 * conf/sparc64-ieee1275.rmk: Likewise.
12037 * conf/x86_64-efi.rmk: Likewise.
12038 * include/grub/env.h: Include grub/menu.h.
12039 (grub_env_var_type): Removed.
12040 (grub_env_var): Replaced field 'type' with 'global'.
12041 (grub_env_find): New prototype.
12042 (grub_env_context_open): Remove EXPORT_FUNC.
12043 (grub_env_context_close): Likewise.
12044 (grub_env_export): Likewise.
12045 (grub_env_set_data_slot): Removed.
12046 (grub_env_get_data_slot): Likewise.
12047 (grub_env_unset_data_slot): Likewise.
12048 (grub_env_unset_menu): New prototype.
12049 (grub_env_set_menu): Likewise.
12050 (grub_env_get_menu): Likewise.
12051 * include/grub/env_private.h: New file.
12052 * include/grub/normal.h (grub_context_init): New prototype.
12053 (grub_context_fini): Likewise.
12054 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
12055 * normal/context.c (grub_cmd_export): ... to here.
12056 * kern/env.c: Include env_private.h.
12057 (HASHSZ): Moved to include/grub/env_private.h.
12058 (grub_env_context): Likewise.
12059 (grub_env_sorted_var): Likewise.
12060 (current_context): Renamed from this ...
12061 (grub_current_context): ...to this. 'static' removed. All users updated.
12062 (grub_env_find): Removed 'static'.
12063 (grub_env_context_open): Moved to normal/context.c.
12064 (grub_env_context_close): Likewise.
12065 (grub_env_export): Likewise.
12066 (mangle_data_slot_name): Removed.
12067 (grub_env_set_data_slot): Likewise.
12068 (grub_env_get_data_slot): Likewise.
12069 (grub_env_unset_data_slot): Likewise.
12070 * kern/main.c (grub_set_root_dev): Don't export root.
12071 It will be done later.
12072 (grub_main): Don't export prefix.
12073 It will be done later.
12074 * normal/context.c: New file.
12075 * normal/main.c (free_menu): Use grub_env_unset_menu.
12076 (grub_normal_add_menu_entry): Use grub_env_get_menu.
12077 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
12078 (GRUB_MOD_INIT(normal)): Call grub_context_init.
12079 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
12080
8dd35b8c
VS
120812010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12082
12083 setpci support.
12084
12085 * commands/setpci.c: New file.
12086 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
12087 (setpci_mod_SOURCES): New variable.
12088 (setpci_mod_CFLAGS): Likewise.
12089 (setpci_mod_LDFLAGS): Likewise.
12090
449193d5
VS
120912010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12092
12093 Byte-addressable PCI configuration space.
12094
12095 * bus/pci.c (grub_pci_make_address): Use byte address instead of
12096 dword address.
12097 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
12098 GRUB_PCI_REG_CACHELINE.
12099 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
12100 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
12101 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
12102 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
12103 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
12104 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
12105 grub_pci_make_address.
12106 (lock_rom_area): Likewise.
12107 * commands/lspci.c (grub_lspci_iter): Use macroses
12108 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
12109 of grub_pci_make_address.
12110 * disk/ata.c (grub_ata_pciinit): Likewise.
12111 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
12112 (GRUB_PCI_REG_VENDOR): Likewise.
12113 (GRUB_PCI_REG_DEVICE): Likewise.
12114 (GRUB_PCI_REG_COMMAND): Likewise.
12115 (GRUB_PCI_REG_STATUS): Likewise.
12116 (GRUB_PCI_REG_REVISION): Likewise.
12117 (GRUB_PCI_REG_CLASS): Likewise.
12118 (GRUB_PCI_REG_CACHELINE): Likewise.
12119 (GRUB_PCI_REG_LAT_TIMER): Likewise.
12120 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
12121 (GRUB_PCI_REG_BIST): Likewise.
12122 (GRUB_PCI_REG_ADDRESSES): Likewise.
12123 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12124 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12125 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12126 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12127 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12128 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
12129 (GRUB_PCI_REG_CIS_POINTER): Likewise.
12130 (GRUB_PCI_REG_SUBVENDOR): Likewise.
12131 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
12132 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
12133 (GRUB_PCI_REG_CAP_POINTER): Likewise.
12134 (GRUB_PCI_REG_IRQ_LINE): Likewise.
12135 (GRUB_PCI_REG_IRQ_PIN): Likewise.
12136 (GRUB_PCI_REG_MIN_GNT): Likewise.
12137 (GRUB_PCI_REG_MAX_LAT): Likewise.
12138 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
12139 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
12140 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 12141 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
12142 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
12143 space.
12144
96d73208
RM
121452010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12146
12147 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
12148 can be reliably determined to be supported.
12149
d4484482
RM
121502010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12151
12152 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
12153 that VESA is supported.
12154 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
12155 supported.
12156
00308ecf
VS
121572010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12158
12159 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
12160
f66924a4
RM
121612010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12162
12163 * util/misc.c (make_system_path_relative_to_its_root): Work around
12164 special-casing of "/", as previous incarnation of this routine did.
12165
cbca0ada
VS
121662010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12167
12168 Fix any-emu compilation.
12169
12170 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
12171 * grub_bin2h_SOURCES: New variable.
12172
34a66d99
RM
121732010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12174
12175 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
12176
94fabf58
RM
121772010-01-20 Robert Millan <rmh.grub@aybabtu.com>
12178
12179 * util/grub.d/00_header.in: Fix handling of locale_dir.
12180
02cf98ca
VS
121812010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12182
12183 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
12184 as possible unifont location (Gentoo).
12185 Reported by: Alexander Brüning
12186
327dbcd7
VS
121872010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12188
12189 Don't try to generate lists for kernel.img.
12190
12191 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
12192 (pkglib_MODULES): Remove kernel.img.
12193 (kernel_img_EXPORTS): Removed.
12194 (kernel_img_RELOCATABLE): New variable.
12195 * conf/x86_64-efi.rmk: Likewise.
12196 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
12197
ca467290
VS
121982010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12199
12200 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
12201 grub_xasprintf or grub_snprintf.
12202 (grub_vsprintf): Likewise.
12203 (grub_snprintf): New proto.
12204 (grub_vsnprintf): Likewise.
12205 (grub_xasprintf): Likewise.
12206 (grub_xvasprintf): Likewise.
12207 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
12208 (grub_sprintf): Removed.
12209 (grub_vsnprintf): New function.
12210 (grub_snprintf): Likewise.
12211 (grub_xvasprintf): Likewise.
12212 (grub_xasprintf): Likewise.
12213 (grub_vsprintf): Renamed to ...
12214 (grub_vsnprintf_real): ...this. New argument max_len.
12215
aca655fd
BC
122162010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
12217
12218 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
12219 fix grub-script-check warning.
12220
7ee92c32
VS
122212010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12222
12223 * include/grub/font.h (grub_font_load): Fix prototype.
12224
f80927ca
VS
122252010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12226
12227 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
12228
119c50ea
VS
122292010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12230
12231 * include/grub/x86_64/at_keyboard.h: New file.
12232
47d5f3c1
VS
122332010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12234
12235 * loader/mips/linux.c: Include missing grub/i18n.h.
12236
55ff5266
RM
122372009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12238
12239 * normal/menu.c (notify_execution_failure): Clarify error message.
12240
c893cc87
RM
122412009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12242
12243 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
12244 return value (and revert all return statements). Update users.
12245
917dd370
CW
122462010-01-20 Dan Merillat <debian@dan.merillat.org>
12247
12248 * kern/device.c (grub_device_iterate): Allocate new part_ent
12249 structure based on sizeof (*p) rather than sizeof (p->next), to
12250 account for structure padding.
12251
12252 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
12253 disk is NULL, which might happen for LVM physical volumes with no
12254 LVM signature.
12255
d4a4ee57
RM
122562009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12257
12258 * loader/mips/linux.c (grub_cmd_initrd)
12259 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
12260
122612009-12-20 Robert Millan <rmh.grub@aybabtu.com>
12262
12263 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
12264 (grub_video_video_init, grub_video_bitmap_init)
12265 (grub_font_manager_init, grub_term_gfxterm_init)
12266 (grub_at_keyboard_init): New extern declarations.
12267 (grub_machine_init): Initialize gfxterm and at_keyboard.
12268
12269 * kern/main.c (grub_main): Revert grub_printf delay kludge.
12270
12271 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
12272 `gfxterm.mod' into core image.
12273
12274 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
12275 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12276 (kernel_img_FORMAT): Copy to ...
12277
12278 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
12279 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12280 (kernel_img_FORMAT): ... here, and ...
12281
12282 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
12283 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
12284 (kernel_img_FORMAT): ... here.
12285
12286 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
12287 and input (at_keyboard) terminals in kernel.
12288 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
12289
12290 (pkglib_MODULES): Remove `pci.mod'.
12291 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
12292 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
12293 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
12294 (at_keyboard_mod_LDFLAGS): Remove variables.
12295
122962010-01-11 Felix Zielcke <fzielcke@z-51.de>
12297
12298 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
12299
123002009-12-10 Robert Millan <rmh.grub@aybabtu.com>
12301
12302 * include/grub/mips/libgcc.h: Only export symbols for functions
12303 that libgcc provides.
12304
123052009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
12306
12307 MIPS support.
12308
12309 * bus/bonito.c: New file.
12310 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
12311 GRUB_PCI_NUM_DEVICES.
12312 * term/i386/pc/serial.c: Move to ...
12313 * term/serial.c: ... here. All users updated.
12314 * util/i386/pc/grub-mkimage.c: Move to ...
12315 * util/grub-mkrawimage.c: ... here. All users updated.
12316 * term/i386/pc/at_keyboard.c: Move to ...
12317 * term/at_keyboard.c: ... here. All users updated.
12318 * conf/mips-qemu-mips.rmk: New file.
12319 * conf/mips-yeeloong.rmk: Likewise.
12320 * conf/mips.rmk: Likewise.
12321 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
12322 mipsel-qemu-mips.
12323 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
12324 to port addresses.
12325 (grub_ata_pciinit): Support CS5536.
12326 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
12327 * font/font_cmd.c (loadfont_command): Open file before passing it to
12328 grub_font_load.
12329 (pseudo_file_read): New function.
12330 (pseudo_file_close): Likewise.
12331 (pseudo_fs): New structure.
12332 (load_font_module): New function.
12333 (GRUB_MOD_INIT(font_manager)): Load embedded font.
12334 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
12335 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
12336 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
12337 * include/grub/i386/at_keyboard.h: Split into ...
12338 * include/grub/at_keyboard.h: ... this ...
12339 * include/grub/i386/at_keyboard.h: ... and this.
12340 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
12341 New prototype.
12342 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
12343 updated.
12344 (grub_elf64_size): Likewise.
12345 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
12346 filename.
12347 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
12348 * include/grub/i386/coreboot/serial.h: Rewritten.
12349 * include/grub/i386/ieee1275/serial.h: Include
12350 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
12351 * include/grub/i386/pc/serial.h: Moved from here ...
12352 * include/grub/serial.h: ... to here. All users updated.
12353 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
12354 (GRUB_PCI_NUM_BUS): Likewise.
12355 (GRUB_PCI_NUM_DEVICES): Likewise.
12356 (grub_pci_device_map_range): Add missing volatile keyword.
12357 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
12358 * include/grub/mips/at_keyboard.h: New file.
12359 * include/grub/mips/cache.h: Likewise.
12360 * include/grub/mips/io.h: Likewise.
12361 * include/grub/mips/kernel.h: Likewise.
12362 * include/grub/mips/libgcc.h: Likewise.
12363 * include/grub/mips/pci.h: Likewise.
12364 * include/grub/mips/qemu-mips/boot.h: Likewise.
12365 * include/grub/mips/qemu-mips/kernel.h: Likewise.
12366 * include/grub/mips/qemu-mips/loader.h: Likewise.
12367 * include/grub/mips/qemu-mips/memory.h: Likewise.
12368 * include/grub/mips/qemu-mips/serial.h: Likewise.
12369 * include/grub/mips/qemu-mips/time.h: Likewise.
12370 * include/grub/mips/relocator.h: Likewise.
12371 * include/grub/mips/time.h: Likewise.
12372 * include/grub/mips/types.h: Likewise.
12373 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
12374 * include/grub/mips/yeeloong/boot.h: Likewise.
12375 * include/grub/mips/yeeloong/kernel.h: Likewise.
12376 * include/grub/mips/yeeloong/loader.h: Likewise.
12377 * include/grub/mips/yeeloong/memory.h: Likewise.
12378 * include/grub/mips/yeeloong/pci.h: Likewise.
12379 * include/grub/mips/yeeloong/serial.h: Likewise.
12380 * include/grub/mips/yeeloong/time.h: Likewise.
12381 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
12382 * kern/elf.c (grub_elf32_size): New parameter. All users
12383 updated.
12384 (grub_elf64_size): Likewise.
12385 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
12386 Load modules before saying "Welcome to GRUB!".
12387 Call grub_refresh after saying "Welcome to GRUB!".
12388 * kern/mips/cache.S: New file.
12389 * kern/mips/cache_flush.S: Likewise.
12390 * kern/mips/dl.c: Likewise.
12391 * kern/mips/init.c: Likewise.
12392 * kern/mips/qemu-mips/init.c: Likewise.
12393 * kern/mips/startup.S: Likewise.
12394 * kern/mips/yeeloong/init.c: Likewise.
12395 * kern/term.c (grub_putcode): Handle NULL terminal.
12396 (grub_getcharwidth): Likewise.
12397 (grub_getkey): Likewise.
12398 (grub_checkkey): Likewise.
12399 (grub_getkeystatus): Likewise.
12400 (grub_getxy): Likewise.
12401 (grub_getwh): Likewise.
12402 (grub_gotoxy): Likewise.
12403 (grub_cls): Likewise.
12404 (grub_setcolorstate): Likewise.
12405 (grub_setcolor): Likewise.
12406 (grub_getcolor): Likewise.
12407 (grub_refresh): Likewise.
12408 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
12409 (write_jump): Add hatch nop.
12410 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
12411 * lib/mips/setjmp.S: New file.
12412 * loader/mips/linux.c: Likewise.
12413 * term/i386/pc/at_keyboard.c: Move from here ...
12414 * term/at_keyboard.c: ... to here.
12415 * term/i386/pc/serial.c: Moved from here ...
12416 * term/serial.c: ... to here. All users updated.
12417 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
12418 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
12419 (serial_translate_key_sequence): Avoid deadlock.
12420 (grub_serial_getkey): Handle backspace.
12421 (grub_serial_putchar): Fix newline handling.
12422 * util/i386/pc/grub-mkimage.c: Move from here ...
12423 * util/grub-mkrawimage.c: ... to here. All users updated.
12424 (generate_image): New parameters 'font_path' and 'format'.
12425 Support embedding font.
12426 Use grub_host_to_target* instead of grub_cpu_to_le*.
12427 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
12428 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
12429 (options): New option "--font".
12430 (usage): Likewise.
12431 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
12432 (main): Handle "--font".
12433 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
12434 (grub_virtual_screen_setup): Set bg_color_display.
12435 (redraw_screen_rect): Use bg_color_display instead of incorrect
12436 bg_color.
12437 (grub_gfxterm_cls): Likewise.
12438 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
12439 Support embedding config file.
12440 (add_segments): Likewise.
12441 (options): New option "--config".
12442 (main): Handle "--config".
12443 * video/sm712.c: New file.
12444
25c2b5b3
RM
124452010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12446
12447 Fix parallel builds.
12448
12449 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
12450 font.c depend on ascii.h).
12451
124522010-01-12 Carles Pina i Estany <carles@pina.cat>
12453
12454 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
12455
124562010-01-11 Carles Pina i Estany <carles@pina.cat>
12457
12458 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
12459 By default: disabled.
12460 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
12461 parameter.
12462
124632010-01-10 Carles Pina i Estany <carles@pina.cat>
12464
12465 * font/font.c: Update copyright years.
12466 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
12467
124682010-01-10 Carles Pina i Estany <carles@pina.cat>
12469
12470 * font/font.c: Include `ascii.h'.
12471 (ASCII_BITMAP_SIZE): New macro.
12472 (ascii_font_glyph): Define.
12473 (ascii_glyph_lookup): New function.
12474 (grub_font_get_string_width): Change comment. If glyph not found, use
12475 ascii_glyph_lookup.
12476 (grub_font_get_glyph_with_fallback): If glyph not available returns
12477 ascii_glyph_lookup.
12478 * util/grub-mkfont.c (file_formats): New enum.
12479 (options): Add `ascii-bitmaps' new option.
12480 (usage): Add `asii-bitmaps' new option.
12481 (write_font_ascii_bitmap): New function.
12482 (write_font): Rename to ...
12483 (write_font_p2): ... this. Remove print_glyphs call.
12484 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
12485 used. Call print_glyphs.
12486 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
12487
124882010-01-14 Robert Millan <rmh.grub@aybabtu.com>
12489
12490 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
12491 (grub_bin2h_SOURCES): New variable.
12492 * util/bin2h.c: New file.
12493
915fc1b8
VS
124942010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12495
12496 * include/multiboot.h: Resynced with spec.
12497 * include/multiboot2.h: Likewise.
12498 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
12499 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
12500
9444b678
RM
125012010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12502
12503 * include/grub/term.h (grub_term_register_input,
12504 grub_term_register_output): Check return of terminal init()
12505 routines, and abort if errors are raised.
12506
12507 * commands/terminal.c: Update copyright year.
12508
cba98e8d
RM
125092010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12510
12511 * commands/terminal.c (grub_cmd_terminal_input)
12512 (grub_cmd_terminal_output): Check return of terminal init()
12513 routines, and abort if errors are raised.
12514
6f7db5d6
VS
125152010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
12516
12517 * include/grub/i386/bsd.h: Fix include pathes.
12518
262bff8d
VS
125192010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
12520
12521 Add missing *BSD copyright headers.
12522
12523 * include/grub/aout.h: Add BSD licence.
12524 * include/grub/i386/bsd.h: Parts under different licences moved to ...
12525 * include/grub/i386/freebsd_linker.h: ... here,
12526 * include/grub/i386/freebsd_reboot.h: ... here,
12527 * include/grub/i386/netbsd_bootinfo.h: ... here,
12528 * include/grub/i386/netbsd_reboot.h: ... here,
12529 * include/grub/i386/openbsd_bootarg.h: ... here,
12530 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
12531 licence to each file.
12532
b2cab848
RM
125332010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12534
12535 * acinclude.m4: Remove `nop' assembly instruction; it's not
12536 implemented by all architectures.
12537
2cb6be4b
RM
125382010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12539
12540 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
12541 ELILO. This is no longer necessary.
12542
a2eaee15
BC
125432010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
12544
12545 Added new tool, grub-scrit-check to verify grub.cfg syntax.
12546
12547 * util/grub-script-check.c: grub-script-check tool.
12548 * conf/common.rmk: Make rules for grub-script-check.
12549
88d17012
RM
125502010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12551
12552 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
12553 spotting it back in 2008. Shame on me for forgetting he did.
12554
12555 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
12556
8040619d
RM
125572010-01-18 Robert Millan <rmh.grub@aybabtu.com>
12558
12559 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
12560 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
12561 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
12562 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
12563 (GRUB_VIDEO_TYPE_EFI): Rename to ...
12564 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
12565
a0c2a0f6
RM
125662010-01-17 Robert Millan <rmh.grub@aybabtu.com>
12567
12568 * include/grub/test.h: Add license header.
12569 * tests/example_functional_test.c: Likewise.
12570 * tests/example_unit_test.c: Likewise.
12571 * tests/lib/functional_test.c: Likewise.
12572 * tests/lib/test.c: Likewise.
12573 * tests/lib/unit_test.c: Likewise.
12574
b0b13907
VS
125752010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
12576
12577 Use flag-based instead of hook-based video mode selection and "auto"
12578 keyword.
12579
12580 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
12581 (grub_video_set_mode): Changed prototype. All users updated.
12582 (grub_video_check_mode_flag): New inline function.
12583 * video/video.c (parse_modespec): New function.
12584 (grub_video_set_mode): Parse flags and keywords.
12585
ea379330 125862010-01-17 Carles Pina i Estany <carles@pina.cat>
12587
12588 * util/misc.c (grub_util_info): Fix the order of the parameters in a
12589 fprintf call.
12590
e15c215e
FZ
125912010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
12592
12593 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
12594
409ae1c9 125952010-01-16 Carles Pina i Estany <carles@pina.cat>
12596
12597 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
12598 string.
12599 * util/grub-emu.c (usage): Likewise.
12600 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
12601 * util/i386/efi/grub-mkimage.c (usage): Likewise.
12602 * util/i386/pc/grub-mkimage.c (usage): Likewise.
12603 * util/i386/pc/grub-setup.c (usage): Likewise.
12604
70a14d3d 126052010-01-16 Carles Pina i Estany <carles@pina.cat>
12606
12607 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
12608 the message.
12609 (grub_util_info): Likewise.
12610 (grub_util_error): Likewise.
12611 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
12612 and/or new lines in `grub_util_warna', `grub_util_info',
12613 `grub_util_error' calls.
12614 * util/getroot.c: Likewise.
12615 * util/grub-editenv.c: Likewise.
12616 * util/grub-emu.c: Likewise.
12617 * util/grub-fstest.c: Likewise.
12618 * util/grub-mkdevicemap.c: Likewise.
12619 * util/grub-mkfont.c: Likewise.
12620 * util/grub-mkpasswd-pbkdf2.c: Likewise.
12621 * util/grub-mkrelpath.c: Likewise.
12622 * util/grub-pe2elf.c: Likewise.
12623 * util/grub-probe.c: Likewise.
12624 * util/hostdisk.c: Likewise.
12625 * util/i386/efi/grub-mkimage.c: Likewise.
12626 * util/i386/pc/grub-mkimage.c: Likewise.
12627 * util/i386/pc/grub-setup.c: Likewise.
12628 * util/ieee1275/ofpath.c: Likewise.
12629 * util/mkisofs/eltorito.c: Likewise.
12630 * util/mkisofs/rock.c: Likewise.
12631 * util/mkisofs/write.c: Likewise.
12632 * util/raid.c: Likewise.
12633 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
12634 * util/sparc64/ieee1275/grub-setup.c: Likewise.
12635
a0b766fc
VS
126362010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12637
12638 Enable multiboot on non-pc.
12639
12640 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
12641 multiboot.mod and multiboot2.mod to ...
12642 * conf/i386.rmk (pkglib_MODULES): ... here.
12643 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
12644 Moved to ...
12645 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
12646 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
12647 Moved to ...
12648 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
12649 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
12650 Moved to ...
12651 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
12652 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
12653 Moved to ...
12654 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
12655 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
12656 relocator.mod.
12657 (ata_mod_SOURCES): Removed.
12658 (ata_mod_CFLAGS): Likewise.
12659 (ata_mod_LDFLAGS): Likewise.
12660 (relocator_mod_SOURCES): Removed.
12661 (relocator_mod_CFLAGS): Likewise.
12662 (relocator_mod_ASFLAGS): Likewise.
12663 (relocator_mod_LDFLAGS): Likewise.
12664 Include i386.mk.
12665 * include/grub/x86_64/multiboot.h: New file.
12666 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
12667 Terminate EFI.
12668
884ade56
VS
126692010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12670
12671 Video multiboot support.
12672
12673 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
12674 New prototype.
12675 * include/multiboot.h: Resynced with multiboot specification.
12676 * include/multiboot2.h: Likewise.
12677 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
12678 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
12679 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
12680 (HAS_VGA_TEXT): Likewise.
12681 (accepts_video): New variable.
12682 (grub_multiboot_set_accepts_video): New function.
12683 (grub_multiboot_get_mbi_size): Account for video structures.
12684 (set_video_mode): New function.
12685 (retrieve_video_parameters): Likewise.
12686 (grub_multiboot_make_mbi): Fill video fields.
12687
0d90e8a6
VS
126882010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
12689
12690 Video driver ids.
12691
12692 * include/grub/video.h (grub_video_driver_id): New type.
12693 (grub_video_adapter): New member 'id'. All users updated.
12694 (grub_video_get_driver_id): New proto.
12695 * video/video.c (grub_video_get_driver_id): New function.
12696
5c71db1b 126972010-01-14 Carles Pina i Estany <carles@pina.cat>
12698
12699 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
12700 `var=val'.
12701
cca15b52 127022010-01-14 Carles Pina i Estany <carles@pina.cat>
12703
12704 * normal/cmdline.c (print_completion): Gettextizze.
12705
c586fbb2 127062001-01-14 Carles Pina i Estany <carles@pina.cat>
12707
12708 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
12709
ba2f6848 127102010-01-14 Carles Pina i Estany <carles@pina.cat>
12711
12712 * gettext/gettext.c (grub_gettext_translate): Push and pop
12713 grub_errno.
12714 (grub_gettext_delete_list): Change comment style.
12715 * kern/err.c (grub_error): Gettextizze.
12716 (grub_fatal): Gettextizze.
12717
0a46429a
RM
127182010-01-14 Robert Millan <rmh.grub@aybabtu.com>
12719
12720 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
12721 (grub_linux16_real_boot): ... this.
12722 * kern/i386/loader.S: Likewise.
12723 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
12724 (grub_linux16_boot): New function. Switches to text mode and calls
12725 grub_linux16_real_boot().
12726
12727 * loader/i386/bsd.c: Include `<grub/video.h>'.
12728 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
12729 text mode before calling grub_unix_real_boot().
12730
12731 * loader/i386/multiboot.c: Include `<grub/video.h>'.
12732 (grub_multiboot_boot): Switch to text mode before calling
12733 grub_relocator32_boot().
12734
12735 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
12736 (grub_chainloader_boot): Switch to text mode before calling
12737 grub_chainloader_real_boot().
12738
d6f93a66
RM
127392010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
127402010-01-05 Colin Watson <cjwatson@ubuntu.com>
12741
12742 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
12743 non-empty value.
12744
127452010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
127462010-01-05 Colin Watson <cjwatson@ubuntu.com>
12747
12748 * util/grub.d/00_header.in: Define a "savedefault" function for use
12749 in menu entries.
12750 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
12751
127522010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
127532010-01-05 Colin Watson <cjwatson@ubuntu.com>
12754
12755 * util/grub-mkconfig_lib.in (save_default_entry): Only set
12756 saved_entry if boot_once is unset.
12757 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
12758 previous saved entry (i.e. grub-reboot).
12759
127602009-12-08 Colin Watson <cjwatson@ubuntu.com>
12761
12762 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
12763
127642009-12-08 Colin Watson <cjwatson@ubuntu.com>
12765
12766 * util/grub.d/00_header.in: Use `set var=val' rather than plain
12767 `var=val'.
12768 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
12769
127702009-12-08 Colin Watson <cjwatson@ubuntu.com>
12771
12772 * util/grub-reboot.in: Fix --version output.
12773 * util/grub-set-default.in: Likewise.
12774
127752009-12-08 Colin Watson <cjwatson@ubuntu.com>
12776
12777 * util/grub.d/00_header.in: Silently ignore zero-sized environment
12778 blocks.
12779
127802009-12-08 Colin Watson <cjwatson@ubuntu.com>
12781
12782 * util/grub.d/00_header.in: Quote the value assigned to `default',
12783 in case it contains spaces.
12784
127852009-12-08 Colin Watson <cjwatson@ubuntu.com>
12786
12787 * util/grub.d/30_os-prober.in: Fix merge error that moved a
12788 `save_default_entry' call from the macosx case to the linux case.
12789
127902009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
127912009-10-25 Colin Watson <cjwatson@ubuntu.com>
12792
12793 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
12794 in `chosen' environment variable.
12795 * normal/menu_text.c (get_entry_number): Check if the variable
12796 matches the title of a menu entry.
12797 (run_menu): Pass menu to get_entry_number.
12798
12799 * util/grub-reboot.in: New file.
12800 * util/grub-set-default.in: New file.
12801 * conf/common.rmk (grub-reboot): New utility.
12802 (grub-set-default): New utility.
12803
12804 * util/grub-mkconfig_lib.in (save_default_entry): New function.
12805 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
12806 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
12807 move it to `saved_entry' for the next boot. Load environment on
12808 initialisation.
12809 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
12810 * util/grub.d/10_hurd.in: Likewise.
12811 * util/grub.d/10_linux.in (linux_entry): Likewise.
12812 * util/grub.d/10_windows.in: Likewise.
12813 * util/grub.d/30_os-prober.in: Likewise.
12814
12815 * util/grub-install.in: Create environment block.
12816 * util/i386/efi/grub-install.in: Likewise.
12817 * util/ieee1275/grub-install.in: Likewise.
12818 * util/sparc64/ieee1275/grub-install.in: Likewise.
12819
0934d184
BC
128202010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
12821
12822 Unit testing framework for GRUB.
12823
12824 * Makefile.in: Test framework build rules for 'make check'.
12825 * conf/tests.rmk: Build rules for individual tests and framework.
12826
12827 * include/grub/test.h: Header file for whitebox tests.
12828 * tests/lib/functional_test.c: Framework support for whitebox
12829 functional tests.
12830 * tests/lib/test.c: Common whitebox testing code for unit and
12831 functional tests.
12832 * tests/lib/unit_test.c: Framework support for whitebox unit
12833 tests.
12834
12835 * tests/util/grub-shell-tester.in: Support utility for grub-script
12836 tests.
12837 * tests/util/grub-shell.in: Utility to execute grub-script
12838 commands in a Qemu instance.
12839
12840 * tests/example_functional_test.c: Example whitebox functional
12841 test.
12842 * tests/example_grub_script_test.in: Example grub-script test.
12843 * tests/example_scripted_test.in: Example scripted test.
12844 * tests/example_unit_test.c: Example whitebox unit test.
12845
9c4ffeeb
VS
128462010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
12847
12848 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
12849 Add loader/i386/multiboot_mbi.c.
12850 (multiboot2_mod_SOURCES): Likewise.
12851 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
12852 (multiboot2_mod_SOURCES): Likewise.
12853 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
12854 (grub_multiboot_make_mbi): Likewise.
12855 (grub_multiboot_free_mbi): Likewise.
12856 (grub_multiboot_init_mbi): Likewise.
12857 (grub_multiboot_add_module): Likewise.
12858 (grub_multiboot_set_bootdev): Likewise.
12859 * loader/i386/multiboot.c (mbi): Removed.
12860 (mbi_dest): Likewise.
12861 (alloc_mbi): New variable.
12862 (grub_multiboot_payload_size): Removed. All users updated.
12863 (grub_multiboot_pure_size): New variable.
12864 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
12865 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
12866 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
12867 (grub_fill_multiboot_mmap): Likewise.
12868 (grub_multiboot_get_bootdev): Likewise.
12869 (grub_multiboot): Use multiboot_mbi functions.
12870 * loader/i386/multiboot_mbi.c: New file.
12871
17383dfe
VS
128722010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12873
12874 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
12875 it would result in module crash.
12876
c1f28820
VS
128772010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12878
12879 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
12880 (grub_ofconsole_getwh): Split to ...
12881 (grub_ofconsole_getwh): ... this.
12882 (grub_ofconsole_dimensions): ...and this.
12883 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
12884
58655a16
RM
128852010-01-13 Robert Millan <rmh.grub@aybabtu.com>
12886
12887 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
12888
10891398
VS
128892010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12890
12891 * loader/i386/pc/multiboot2.c: Removed stalled file.
12892
0b8a223c
VS
128932010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12894
12895 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
12896 Reported by: Grégoire Sutre
12897
92ab12b0
RM
128982010-01-11 Robert Millan <rmh.grub@aybabtu.com>
12899
12900 * util/misc.c (canonicalize_file_name): New function.
12901 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
12902 instead of realpath().
12903
a788afb6
CW
129042010-01-11 Colin Watson <cjwatson@ubuntu.com>
12905
12906 * util/grub-install.in (usage): Clarify meaning of --root-directory,
12907 and make it clearer that it's optional. Based on confusion
12908 witnessed on IRC.
12909
ffa8e3d2
VS
129102010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12911
12912 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
12913 in premature implicit newline.
12914
e9060a9d
VS
129152010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
12916
12917 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
12918 which resulted in garbled command line at the end of screen.
12919
f0d0c0b7
RM
129202010-01-10 Robert Millan <rmh.grub@aybabtu.com>
12921
12922 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
12923 initialization with similar approach as with other Linux loaders.
12924
0e60bae7
RM
129252010-01-10 Robert Millan <rmh.grub@aybabtu.com>
12926
12927 Fix i386-ieee1275 build.
12928
12929 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
12930 and grub_term_height() for video_{width,height} initialization.
12931
129322010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
12933
12934 Fix grub-emu build.
12935
12936 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
12937
cdb3f378
RM
129382010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
129392010-01-09 Robert Millan <rmh.grub@aybabtu.com>
12940
12941 Support for multiple terminals.
12942
12943 * Makefile.in (pkglib_DATA): terminal.lst.
12944 (terminal.lst): New target.
12945 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
12946 (GRUB_MOD_INIT(handler)): Likewise.
12947 (GRUB_MOD_FINI(handler)): Likewise.
12948 * commands/help.c (grub_cmd_help): Handle multiple terminals.
12949 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
12950 * commands/sleep.c (do_print): Use grub_term_restore_pos.
12951 (grub_cmd_sleep): Use grub_term_save_pos.
12952 * commands/terminal.c: New file.
12953 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
12954 commands/terminal.c and lib/charset.c.
12955 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
12956 (pkglib_MODULES): Add terminal.mod.
12957 (terminal_mod_SOURCES): New variable.
12958 (terminal_mod_CFLAGS): Likewise.
12959 (terminal_mod_LDFLAGS): Likewise.
12960 * genhandlerlist.sh: Don't handle terminals.
12961 * genmk.rb: Generate terminal-*.lst.
12962 * genterminallist.sh: New file.
12963 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
12964 (grub_is_valid_utf8): Likewise.
12965 (grub_utf8_to_ucs4_alloc): Likewise.
12966 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
12967 (grub_menu_register_viewer): Changed argument.
12968 (grub_menu_try_text): New proto.
12969 (grub_gfxmenu_try_hook): New declaration.
12970 * include/grub/normal.h (grub_normal_exit_level): New declaration.
12971 (grub_menu_init_page): Additional argument term.
12972 (grub_normal_init_page): Likewise.
12973 (grub_cmdline_get): Arguments simplified.
12974 (grub_utf8_to_ucs4_alloc): Removed.
12975 (grub_print_ucs4): Additional argument term.
12976 (grub_getstringwidth): Likewise.
12977 (grub_print_message_indented): Likewise.
12978 (grub_menu_text_register_instances): New proto.
12979 (grub_show_menu): Likewise.
12980 (read_terminal_list): Likewise.
12981 (grub_set_more): Likewise.
12982 * include/grub/parser.h: Include handler.h.
12983 * include/grub/reader.h: Rewritten.
12984 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
12985 (GRUB_TERM_WIDTH): Changed to function.
12986 (GRUB_TERM_HEIGHT): Likewise.
12987 (GRUB_TERM_BORDER_WIDTH): Likewise.
12988 (GRUB_TERM_BORDER_HEIGHT): Likewise.
12989 (GRUB_TERM_NUM_ENTRIES): Likewise.
12990 (GRUB_TERM_ENTRY_WIDTH): Likewise.
12991 (GRUB_TERM_CURSOR_X): Likewise.
12992 (grub_term_input_class): Likewise.
12993 (grub_term_output_class): Likewise.
12994 (grub_term_outputs_disabled): New declaration.
12995 (grub_term_inputs_disabled): Likewise.
12996 (grub_term_outputs): Likewise.
12997 (grub_term_inputs): Likewise.
12998 (grub_term_register_input): Rewritten.
12999 (grub_term_register_output): Likewise.
13000 (grub_term_unregister_input): Likewise.
13001 (grub_term_unregister_output): Likewise.
13002 (FOR_ACTIVE_TERM_INPUTS): New macro.
13003 (FOR_DISABLED_TERM_INPUTS): Likewise.
13004 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
13005 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
13006 * include/grub/terminfo.h: Add oterm argument to all protypes.
13007 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
13008 Use grub_rescue_run.
13009 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
13010 All users updated.
13011 * kern/reader.c: Removed. All users updated.
13012 * kern/rescue_reader.c (grub_rescue_init): Removed.
13013 (grub_rescue_reader): Likewise.
13014 (grub_register_rescue_reader): Likewise.
13015 (grub_rescue_run): New function based on kern/reader.c.
13016 * kern/term.c: Adapted for multiterm.
13017 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
13018 (grub_is_valid_utf8): Likewise.
13019 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
13020 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
13021 right terminal.
13022 * loader/i386/linux.c (grub_linux_boot): Likewise.
13023 * normal/auth.c (grub_username_get): New function.
13024 (grub_auth_check_authentication): Use grub_username_get.
13025 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
13026 * normal/color.c: Adapt for multiterm.
13027 * normal/main.c (read_config_file): Don't use grub_reader_loop.
13028 (grub_normal_init_page): Additional argument term.
13029 (read_lists): Call read_terminal_lists.
13030 (grub_enter_normal_mode): Call grub_cmdline_run.
13031 Handle grub_normal_exit_level.
13032 (grub_cmd_normal): Make reentrant.
13033 (grub_cmd_normal_exit): New function.
13034 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
13035 * normal/menu.c: Adapt for multiterm.
13036 * normal/menu_entry.c: Likewise.
13037 * normal/menu_text.c: Likewise.
13038 * normal/menu_viewer.c: Removed. All users updated.
13039 * normal/term.c: New file.
13040 * util/console.c: Change order of includes to workaround a bug in
13041 ncurses headers.
13042 * term/terminfo.c: New argument oterm on all exported functions.
13043 All users updated.
13044 * util/grub-editenv.c (grub_term_input_class): Removed.
13045 (grub_term_output_class): Likewise.
13046
1a064917
RM
130472010-01-09 Robert Millan <rmh.grub@aybabtu.com>
13048
13049 Make loader output a bit more user-friendly.
13050
13051 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
13052 is being loaded. Likewise for the Hurd.
13053
13054 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
13055 that kernel of FreeBSD ${version} is being loaded.
13056
13057 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
13058 grub_dprintf().
13059 (grub_cmd_initrd): Likewise.
13060 * util/grub.d/10_linux.in (linux_entry): Print message indicating
13061 that Linux ${version} is being loaded. Likewise for initrd.
13062
5ce0a83a 130632010-01-09 Carles Pina i Estany <carles@pina.cat>
13064
13065 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
13066
809bbfeb 130672010-01-08 Carles Pina i Estany <carles@pina.cat>
13068
13069 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
13070 (GRUB_MOD_INIT): Gettextizze.
13071 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
13072 (GRUB_MOD_INIT): Gettextizze.
13073 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
13074 (grub_cmd_linux): Capitalise Linux.
13075 (GRUB_MOD_INIT): Gettextizze.
13076 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
13077 (grub_cmd_linux): Capitalise Linux.
13078 (GRUB_MOD_INIT): Gettextizze.
13079 * loader/i386/linux.c: Include `<grub/i18n.h>'.
13080 (grub_cmd_linux): Capitalise Linux.
13081 (GRUB_MOD_INIT): Gettextizze.
13082 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
13083 (GRUB_MOD_INIT): Gettextizze.
13084 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
13085 (grub_cmd_linux): Capitalise Linux.
13086 (GRUB_MOD_INIT): Gettextizze.
13087 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
13088 (grub_cpu_xnu_init): Gettextizze.
13089 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
13090 (GRUB_MOD_INIT): Gettextizze.
13091 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
13092 (GRUB_MOD_INIT): Gettextizze.
13093 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
13094 (grub_linux_load64): Capitalise Linux.
13095 (GRUB_MOD_INIT): Gettextizze.
13096 * loader/xnu.c: Include `<grub/i18n.h>'.
13097 (GRUB_MOD_INIT): Gettextizze.
13098 * po/POTFILES: Add `loader/efi/appleloader.c',
13099 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
13100 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
13101 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
13102 `loader/i386/xnu.c', `loader/multiboot_loader.c',
13103 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
13104 and `loader/xnu.c'.
13105
b394b2ca
RM
131062010-01-08 Robert Millan <rmh.grub@aybabtu.com>
13107
13108 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
13109
131102010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
13111
13112 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
13113 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
13114 * util/mkisofs/mkisofs.c (main): Readjust --version output.
13115
bc8b32b3
RM
131162010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13117
13118 Reset Multiboot 2 support. New loader implements the draft in
13119 /branches/multiboot2 and shares as much code as possible with the
13120 production Multiboot 1 implementation.
13121
13122 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
13123 * loader/multiboot2.c: Likewise.
13124 * loader/i386/multiboot_helper.S: Likewise.
13125 * include/multiboot2.h: Replace with latest version from the draft
13126 in /branches/multiboot2.
13127
13128 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
13129 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
13130 and `loader/multiboot2.c'.
13131 (pkglib_MODULES): Add `multiboot2.mod'.
13132 (multiboot2_mod_SOURCES): New variable.
13133 (multiboot2_mod_LDFLAGS): Likewise.
13134 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
13135
13136 * conf/i386-pc.rmk: Likewise.
13137
13138 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
13139 (multiboot_mod_SOURCES): Remove variable.
13140 (multiboot_mod_LDFLAGS): Likewise.
13141 (multiboot_mod_CFLAGS): Likewise.
13142
13143 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
13144 `<multiboot2.h>' instead of `<multiboot.h>'.
13145 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
13146 (MULTIBOOT_HEADER_MAGIC): New macros.
13147
13148 * loader/multiboot_loader.c (module_version_status): Remove variable.
13149 (find_multi_boot2_header): Remove function.
13150 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
13151 logic. Always check for the Multiboot version we're compiling for.
13152 (grub_cmd_module_loader): Likewise.
13153 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
13154 command instead of `multiboot'.
13155
5d2c52b8
RM
131562010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13157
13158 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
13159 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
13160 all users.
13161
53108d92
RM
131622010-01-07 Robert Millan <rmh.grub@aybabtu.com>
131632010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13164
13165 Fix breakage introduced with previous commit.
13166
13167 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
13168 commands.
13169 * normal/handler.c (read_handler_list): Revert part of previous commit
13170 affecting this file.
13171 * normal/main.c (read_lists): Move read_handler_list() call back to ...
13172 (grub_normal_execute): ... here.
13173
e2e936b2
RM
131742010-01-07 Robert Millan <rmh.grub@aybabtu.com>
13175
13176 Merge prefix-redefinition-fix branch.
13177
13178 * normal/autofs.c (read_fs_list): Make function capable of being
13179 run multiple times, gracefuly replacing the previous data
13180 structures.
13181 * normal/dyncmd.c (read_command_list): Likewise.
13182 * normal/handler.c (read_handler_list): Likewise.
13183 * normal/main.c (read_lists): New function. Calls all the
13184 list reading functions.
13185 (grub_normal_execute): Use read_lists() instead of calling all
13186 list reading functions explicitly. Register read_lists() as a
13187 variable hook attached to ${prefix}.
13188
607a3701
VS
131892010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
13190
13191 Merge crypto branch.
13192
13193 * Makefile.in (pkglib_DATA): Add crypto.lst.
13194 (crypto.lst): New target.
13195 * commands/hashsum.c: New file.
13196 * commands/password.c (check_password): Use grub_crypto_memcmp.
13197 * commands/password_pbkdf2.c: New file.
13198 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
13199 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
13200 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
13201 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
13202 -I$(srcdir)/lib/libgcrypt_wrap.
13203 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
13204 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
13205 password_pbkdf2.mod.
13206 (crypto_mod_SOURCES): New variable.
13207 (crypto_mod_CFLAGS): Likewise.
13208 (crypto_mod_LDFLAGS): Likewise.
13209 (hashsum_mod_SOURCES): New variable.
13210 (hashsum_mod_CFLAGS): Likewise.
13211 (hashsum_mod_LDFLAGS): Likewise.
13212 (pbkdf2_mod_SOURCES): New variable.
13213 (pbkdf2_mod_CFLAGS): Likewise.
13214 (pbkdf2_mod_LDFLAGS): Likewise.
13215 (password_pbkdf2_mod_SOURCES): New variable.
13216 (password_pbkdf2_mod_CFLAGS): Likewise.
13217 (password_pbkdf2_mod_LDFLAGS): Likewise.
13218 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
13219 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
13220 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
13221 Include conf/gcry.rmk.
13222 * include/grub/auth.h: Rewritten.
13223 * include/grub/crypto.h: New file.
13224 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
13225 * include/grub/normal.h (read_crypto_list): New prototype.
13226 * lib/crypto.c: New file.
13227 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
13228 * lib/pbkdf2.c: Likewise.
13229 * normal/auth.c (grub_auth_strcmp): Removed.
13230 (grub_iswordseparator): Likewise.
13231 (grub_auth_strword): Likewise.
13232 (is_authenticated): Use grub_strword.
13233 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
13234 and grub_strword. Pass entered password to authentication callback.
13235 * normal/crypto.c: New file.
13236 * normal/main.c: Call read_crypto_list.
13237 * util/grub-mkpasswd-pbkdf2.c: New file.
13238 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
13239
42841caa
VS
132402010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
13241
13242 Fix descent and ascent calculation.
13243
13244 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
13245 (options): New option "asce".
13246 (usage): Likewise.
13247 (add_char): Ignore invalid glyphs for descent calculation.
13248 Calculate ascent from actual content.
13249 (print_glyphs): Use 'asce'.
13250 (write_font): Likewise. Allow ascent override.
13251 (main): Handle "asce" option.
13252
e7730de7 132532010-01-06 Carles Pina i Estany <carles@pina.cat>
13254
13255 * kern/err.c: Include `<grub/i18n.h>'.
13256 (grub_print_error): Add full stop. Gettextizze.
13257 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
13258 (grub_bsd_load_elf): Capitalise ELF.
13259 (grub_cmd_freebsd_loadenv): Add `s' in error string.
13260 (grub_cmd_freebsd_module): Likewise.
13261 (grub_cmd_freebsd_module_elf): Likewise.
13262 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
13263
40e3a41f 132642010-01-06 Carles Pina i Estany <carles@pina.cat>
13265
13266 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
13267 * commands/search_file.c (HELP_MESSAGE): New macro.
13268 * commands/search_label.c (HELP_MESSAGE): Likewise.
13269 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
13270 * po/POTFILES: Add `commands/search_file.c',
13271 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
13272 `commands/search.c'.
13273
83507e68
RM
132742010-01-05 Robert Millan <rmh.grub@aybabtu.com>
13275
13276 * config.rpath: Update from Gnulib.
13277
465c787b
YB
132782010-01-05 Yves Blusseau <blusseau@zetam.org>
13279
13280 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
13281
6581dd3a
YB
132822010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
13283
13284 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
13285
3bff18c5
CW
132862010-01-05 Colin Watson <cjwatson@ubuntu.com>
13287
13288 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
13289 arguments to fread so that we get a return value in bytes, rather
13290 than something that will normally be rounded down to 0.
13291 Adjust error handling to avoid producing garbage when size_t is not
13292 the same size as long long.
13293
a1368118
CW
132942010-01-05 Colin Watson <cjwatson@ubuntu.com>
13295
13296 * util/mkisofs/write.c (padblock_write): Check return value of
13297 fread.
13298
7c302978
RM
132992010-01-05 Robert Millan <rmh.grub@aybabtu.com>
13300
13301 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
13302 floppy images now.
13303
13304 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
13305
e33ace06
RM
133062010-01-04 Robert Millan <rmh.grub@aybabtu.com>
13307
13308 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
13309 instead of manual alignment.
13310 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
13311 verbose). Avoid attempts to read past end of the device
13312 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
13313 but GRUB_DISK_CACHE_SIZE may exceed that).
13314
4b856776
RM
133152010-01-04 Robert Millan <rmh.grub@aybabtu.com>
13316
13317 * commands/crc.c (grub_cmd_crc): Abort on read errors.
13318 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
13319 it to upper layer.
13320
52c2d97f
VS
133212010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13322
13323 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
13324 New constant.
13325 (grub_efi_piwg_device_path): New structure
13326 (grub_efi_piwg_device_path_t): New type.
13327 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
13328 (devpath_1): Transform to a structure. All users updated.
13329 (devpath_2): Likewise.
13330 (devpath_3): Likewise.
13331 (devpath_4): Likewise.
13332 (devpath_5): Likewise.
13333
98ff6a54
VS
133342010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
13335
13336 * loader/efi/appleloader.c: Restored. Update all users.
13337
3a73dcb6
RM
133382010-01-03 Robert Millan <rmh.grub@aybabtu.com>
13339
13340 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
13341
13342 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
13343 (struct boot_blocklist): Move from here ...
13344 * include/grub/i386/pc/boot.h [ASM_FILE]
13345 (struct grub_boot_blocklist): ... to here. Update all users.
13346 (setup): Only initialize `start' member of `first_block'
13347 structure. Add assert() calls to verify the other members.
13348
13349 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
13350 (generate_image): Fix broken blocklist length initialization.
13351 Add assert() call to verify blocklist `segment' field.
13352
ab0eeb0c
RM
133532010-01-03 Robert Millan <rmh.grub@aybabtu.com>
13354
13355 * loader/efi/appleloader.c: Remove. Update all users.
13356
58bc8bd5
RM
133572010-01-03 Robert Millan <rmh.grub@aybabtu.com>
13358
13359 * boot/i386/pc/boot.S: Update copyright year.
13360 * boot/i386/pc/cdboot.S: Likewise.
13361 * boot/i386/pc/diskboot.S: Likewise.
13362 * boot/i386/pc/lnxboot.S: Likewise.
13363 * boot/i386/pc/pxeboot.S: Likewise.
13364 * bus/pci.c: Likewise.
13365 * commands/cmp.c: Likewise.
13366 * commands/help.c: Likewise.
13367 * commands/hexdump.c: Likewise.
13368 * commands/i386/pc/halt.c: Likewise.
13369 * commands/i386/pc/play.c: Likewise.
13370 * commands/i386/pc/vbeinfo.c: Likewise.
13371 * commands/ls.c: Likewise.
13372 * commands/test.c: Likewise.
13373 * disk/dmraid_nvidia.c: Likewise.
13374 * disk/i386/pc/biosdisk.c: Likewise.
13375 * disk/ieee1275/nand.c: Likewise.
13376 * disk/ieee1275/ofdisk.c: Likewise.
13377 * disk/lvm.c: Likewise.
13378 * disk/raid.c: Likewise.
13379 * disk/raid6_recover.c: Likewise.
13380 * disk/scsi.c: Likewise.
13381 * fs/affs.c: Likewise.
13382 * fs/cpio.c: Likewise.
13383 * fs/ext2.c: Likewise.
13384 * fs/hfs.c: Likewise.
13385 * fs/iso9660.c: Likewise.
13386 * fs/ntfs.c: Likewise.
13387 * fs/sfs.c: Likewise.
13388 * fs/udf.c: Likewise.
13389 * fs/ufs.c: Likewise.
13390 * fs/xfs.c: Likewise.
13391 * gencmdlist.sh: Likewise.
13392 * genmk.rb: Likewise.
13393 * include/grub/disk.h: Likewise.
13394 * include/grub/efi/api.h: Likewise.
13395 * include/grub/efi/efi.h: Likewise.
13396 * include/grub/efi/pe32.h: Likewise.
13397 * include/grub/elf.h: Likewise.
13398 * include/grub/fs.h: Likewise.
13399 * include/grub/i386/at_keyboard.h: Likewise.
13400 * include/grub/i386/pc/memory.h: Likewise.
13401 * include/grub/i386/pc/vbe.h: Likewise.
13402 * include/grub/i386/pci.h: Likewise.
13403 * include/grub/i386/tsc.h: Likewise.
13404 * include/grub/ieee1275/ieee1275.h: Likewise.
13405 * include/grub/ntfs.h: Likewise.
13406 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
13407 * include/grub/sparc64/libgcc.h: Likewise.
13408 * include/grub/symbol.h: Likewise.
13409 * include/grub/types.h: Likewise.
13410 * include/multiboot2.h: Likewise.
13411 * io/gzio.c: Likewise.
13412 * kern/device.c: Likewise.
13413 * kern/disk.c: Likewise.
13414 * kern/efi/efi.c: Likewise.
13415 * kern/efi/mm.c: Likewise.
13416 * kern/elf.c: Likewise.
13417 * kern/file.c: Likewise.
13418 * kern/i386/dl.c: Likewise.
13419 * kern/i386/pc/init.c: Likewise.
13420 * kern/i386/pc/startup.S: Likewise.
13421 * kern/ieee1275/ieee1275.c: Likewise.
13422 * kern/ieee1275/init.c: Likewise.
13423 * kern/main.c: Likewise.
13424 * kern/mm.c: Likewise.
13425 * kern/powerpc/dl.c: Likewise.
13426 * kern/sparc64/dl.c: Likewise.
13427 * kern/x86_64/dl.c: Likewise.
13428 * lib/hexdump.c: Likewise.
13429 * loader/efi/appleloader.c: Likewise.
13430 * loader/i386/ieee1275/linux.c: Likewise.
13431 * loader/i386/pc/chainloader.c: Likewise.
13432 * loader/i386/pc/linux.c: Likewise.
13433 * loader/i386/pc/multiboot2.c: Likewise.
13434 * loader/ieee1275/multiboot2.c: Likewise.
13435 * loader/multiboot2.c: Likewise.
13436 * loader/multiboot_loader.c: Likewise.
13437 * loader/powerpc/ieee1275/linux.c: Likewise.
13438 * normal/completion.c: Likewise.
13439 * normal/menu_entry.c: Likewise.
13440 * partmap/apple.c: Likewise.
13441 * util/grub.d/10_hurd.in: Likewise.
13442 * util/hostfs.c: Likewise.
13443 * video/readers/png.c: Likewise.
13444
e2d70b5c
CW
134452010-01-03 Colin Watson <cjwatson@ubuntu.com>
13446
13447 * include/grub/misc.h (GNUC_PREREQ): New macro.
13448 (ATTRIBUTE_ERROR): New macro.
13449 * include/grub/list.h (grub_bad_type_cast_real): Use
13450 ATTRIBUTE_ERROR.
13451
a173283f 134522010-01-03 Carles Pina i Estany <carles@pina.cat>
13453
13454 * normal/menu_text.c (print_message): Change messages.
13455
7fa7ff74 134562010-01-03 Carles Pina i Estany <carles@pina.cat>
13457
13458 * normal/menu_entry.c (store_completion): Gettextizze.
13459
136d24f6 134602010-01-03 Carles Pina i Estany <carles@pina.cat>
13461
13462 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
13463
f936862e 134642010-01-03 Carles Pina i Estany <carles@pina.cat>
13465
13466 * po/POTFILES: Sort correctly.
13467
29c44ad1 134682010-01-03 Carles Pina i Estany <carles@pina.cat>
13469
13470 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
13471 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
13472 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
13473 full stop.
13474 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
13475 summary. Gettextizze the strings.
13476 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
13477 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
13478 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
13479 full stop.
13480 (GRUB_MOD_INIT): Remove command name from summary.
13481 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
13482 summary.
13483 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
13484 * term/i386/pc/serial.c (options): Add full stops.
13485 (GRUB_MOD_INIT): Remove command name from the summary.
13486
77a79592 134872010-01-03 Carles Pina i Estany <carles@pina.cat>
13488
13489 * commands/acpi.c: Gettextizze help strings and/or options. Include
13490 `grub/i18n.h' if needed.
13491 * commands/blocklist.c: Likewise.
13492 * commands/boot.c: Likewise.
13493 * commands/cat.c: Likewise.
13494 * commands/cmp.c: Likewise.
13495 * commands/configfile.c: Likewise.
13496 * commands/crc.c: Likewise.
13497 * commands/date.c: Likewise.
13498 * commands/echo.c: Likewise.
13499 * commands/efi/fixvideo.c: Likewise.
13500 * commands/efi/loadbios.c: Likewise.
13501 * commands/gptsync.c: Likewise.
13502 * commands/halt.c: Likewise.
13503 * commands/handler.c: Likewise.
13504 * commands/hdparm.c: Likewise.
13505 * commands/hexdump.c: Likewise.
13506 * commands/i386/cpuid.c: Likewise.
13507 * commands/i386/pc/drivemap.c: Likewise.
13508 * commands/i386/pc/halt.c: Likewise.
13509 * commands/i386/pc/pxecmd.c: Likewise.
13510 * commands/i386/pc/vbeinfo.c: Likewise.
13511 * commands/i386/pc/vbetest.c: Likewise.
13512 * commands/ieee1275/suspend.c: Likewise.
13513 * commands/keystatus.c: Likewise.
13514 * commands/loadenv.c: Likewise.
13515 * commands/ls.c: Likewise.
13516 * commands/lsmmap.c: Likewise.
13517 * commands/lspci.c: Likewise.
13518 * commands/memrw.c: Likewise.
13519 * commands/minicmd.c: Likewise.
13520 * commands/parttool.c: Likewise.
13521 * commands/password.c: Likewise.
13522 * commands/probe.c: Likewise.
13523 * commands/read.c: Likewise.
13524 * commands/reboot.c: Likewise.
13525 * commands/search.c: Likewise.
13526 * commands/sleep.c: Likewise.
13527 * commands/test.c: Likewise.
13528 * commands/true.c: Likewise.
13529 * commands/usbtest.c: Likewise.
13530 * commands/videotest.c: Likewise.
13531 * commands/xnu_uuid.c: Likewise.
13532 * disk/loopback.c: Likewise.
13533 * hello/hello.c: Likewise.
13534 * loader/i386/bsd.c: Likewise.
13535 * term/i386/pc/serial.c: Likewise.
13536 * po/POTFILES: Add new files.
13537
da8d5c53
CW
135382010-01-02 Colin Watson <cjwatson@ubuntu.com>
13539
13540 * term/i386/pc/at_keyboard.c
13541 (keyboard_controller_wait_untill_ready): Rename to ...
13542 (keyboard_controller_wait_until_ready): ... this. Update all users.
13543
33937904 135442010-01-01 Carles Pina i Estany <carles@pina.cat>
13545
13546 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
13547 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
13548 string using string width.
13549 * normal/menu_text.c (grub_print_message_indented): Use
13550 grub_print_spaces and not print_spaces.
13551 (print_timeout): Likewise.
13552 (print_spaces): Move to...
13553 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
13554
3fd3b8d8
RM
135552010-01-01 Robert Millan <rmh.grub@aybabtu.com>
13556
13557 Import from Gnulib.
13558
13559 * gnulib/getdelim.c: New file.
13560 * gnulib/getline.c: Likewise.
13561
33433555
VS
135622009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
13563
13564 * include/grub/list.h (grub_assert_fail): Removed.
13565 (grub_bad_type_cast_real): New function.
13566 (grub_bad_type_cast): New macro.
13567 (GRUB_AS_LIST): Use grub_bad_type_cast.
13568 (GRUB_AS_LIST_P): Likewise.
e44721e8 13569 (GRUB_AS_NAMED_LIST): Likewise.
33433555 13570 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 13571 (GRUB_AS_PRIO_LIST): Likewise.
33433555 13572 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 13573 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 13574
f5a51306
VS
135752009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
13576
13577 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
13578 Fix syntax error.
13579
90d1e879
RM
135802009-12-29 Robert Millan <rmh.grub@aybabtu.com>
13581
13582 * configure.ac: Check for TARGET_CFLAGS initialization before we
13583 initialize it ourselves (sigh).
13584 Move a few modifications to TARGET_CFLAGS to be unconditional
13585 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
13586 eh_frame)
13587
13588 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
13589 * term/i386/pc/at_keyboard.c
13590 (keyboard_controller_wait_untill_ready): Likewise.
13591 (keyboard_controller_led): Rename `led_status' paramter to avoid
13592 name conflict.
13593
465b5a81 135942009-12-28 Carles Pina i Estany <carles@pina.cat>
13595
13596 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
13597 quotes.
13598
c181849b
VS
135992009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13600
13601 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
13602
9c8739a4
VS
136032009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13604
13605 * normal/menu_text.c (grub_print_message_indented): Prevent
13606 past-the-end-of-array dereference.
13607
3e74249c
VS
136082009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
13609
13610 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
13611 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
13612
64fd18ed 136132009-12-27 Carles Pina i Estany <carles@pina.cat>
13614
13615 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
13616 * normal/main.c (grub_normal_read_line): Remove a space from the
13617 default prompt.
13618
714af9b9 136192009-12-27 Carles Pina i Estany <carles@pina.cat>
13620
13621 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
13622 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13623 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
13624 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
13625 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13626 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13627 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
13628
82f3e412 136292009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 13630
13631 * video/readers/jpeg.c (cmd): Declare.
13632 (grub_cmd_jpegtest): Use `grub_command_t' type.
13633 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
13634 Assign to `cmd'.
13635 (GRUB_MOD_FINI): Use `cmd' to unregister.
13636 * video/readers/png.c (cmd): Declare.
13637 (grub_cmd_pngtest): Use `grub_command_t' type.
13638 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
13639 Assign to `cmd'.
13640 (GRUB_MOD_FINI): Use `cmd' to unregister.
13641 * video/readers/tga.c (cmd): Declare.
13642 (grub_cmd_tgatest): Use `grub_command_t' type.
13643 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
13644 Assign to `cmd'.
13645 (GRUB_MOD_FINI): Use `cmd' to unregister.
13646
82f3e412 136472009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 13648
13649 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
13650 stops.
13651 * kern/corecmd.c (grub_register_core_commands): Likewise.
13652 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
13653 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
13654 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
13655 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13656 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
13657 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
13658 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
13659 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
13660 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13661 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
13662 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
13663 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
13664 * normal/handler.c (insert_handler): Likewise.
13665 * normal/main.c (GRUB_MOD_INIT): Likewise.
13666 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
13667
fdcdbb66 136682009-12-26 Carles Pina i Estany <carles@pina.cat>
13669
13670 * commands/help.c (grub_cmd_help): Print the command name before the
13671 summary.
13672 (GRUB_MOD_INIT): Remove command name from the summary.
13673 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 13674 string as summary.
fdcdbb66 13675 * lib/arg.c (find_long): Print the command name before the summary.
13676 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
13677 summary.
13678 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
13679 * commands/cat.c (GRUB_MOD_INIT): Likewise.
13680 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
13681 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
13682 * commands/crc.c (GRUB_MOD_INIT): Likewise.
13683 * commands/date.c (GRUB_MOD_INIT): Likewise.
13684 * commands/echo.c (GRUB_MOD_INIT): Likewise.
13685 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
13686 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
13687 * commands/handler.c (GRUB_MOD_INIT): Likewise.
13688 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
13689 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
13690 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
13691 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
13692 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
13693 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
13694 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
13695 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
13696 * commands/ls.c (GRUB_MOD_INIT): Likewise.
13697 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
13698 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
13699 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
13700 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
13701 * commands/password.c (GRUB_MOD_INIT): Likewise.
13702 * commands/probe.c (GRUB_MOD_INIT): Likewise.
13703 * commands/read.c (GRUB_MOD_INIT): Likewise.
13704 * commands/search.c (GRUB_MOD_INIT): Likewise.
13705 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
13706 * commands/test.c (GRUB_MOD_INIT): Likewise.
13707 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
13708 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
13709 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
13710 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
13711 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
13712 * lib/arg.c (GRUB_MOD_INIT): Likewise.
13713 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
13714 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
13715 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
13716 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
13717 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
13718 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
13719 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
13720 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
13721
9c288be2
VS
137222009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13723
13724 Use search command for preliminar UUID search.
13725
13726 * commands/search.c: Split into ...
13727 * commands/search_wrap.c: ...this
13728 * commands/search.c: ...and this.
13729 * commands/search_file.c: New file.
13730 * commands/search_label.c: New file.
13731 * commands/search_uuid.c: New file.
13732 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
13733 Add commands/search_wrap.c, commands/search_file.c,
13734 commands/search_label.c and commands/search_uuid.c.
13735 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
13736 (search_mod_SOURCES): Set to commands/search_wrap.c.
13737 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
13738 search_label.mod.
13739 (search_fs_file_mod_SOURCES): New variable.
13740 (search_fs_file_mod_CFLAGS): Likewise.
13741 (search_fs_file_mod_LDFLAGS): Likewise.
13742 (search_label_mod_SOURCES): Likewise.
13743 (search_label_mod_CFLAGS): Likewise.
13744 (search_label_mod_LDFLAGS): Likewise.
13745 (search_fs_uuid_mod_SOURCES): New variable.
13746 (search_fs_uuid_mod_CFLAGS): Likewise.
13747 (search_fs_uuid_mod_LDFLAGS): Likewise.
13748 (fs_file_mod_SOURCES): Removed.
13749 (fs_file_mod_CFLAGS): Likewise.
13750 (fs_file_mod_LDFLAGS): Likewise.
13751 (fs_uuid_mod_SOURCES): Removed.
13752 (fs_uuid_mod_CFLAGS): Likewise.
13753 (fs_uuid_mod_LDFLAGS): Likewise.
13754 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
13755 Set to util/grub-install.in.
13756 * disk/fs_file.c: Removed.
13757 * disk/fs_uuid.c: Likewise.
13758 * include/grub/search.h: New file.
13759 * util/grub-install.in: Handle sparc64.
13760 Create and use load.cfg.
13761 * util/sparc64/ieee1275/grub-install.in: Removed.
13762
db943399
VS
137632009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13764
13765 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
13766 Ignore return status if CF is cleared.
13767 (grub_biosdisk_get_diskinfo_standard): Likewise.
13768
3fdae612
RM
137692009-12-25 Robert Millan <rmh.grub@aybabtu.com>
13770
13771 * term/i386/pc/at_keyboard.c
13772 (keyboard_controller_wait_untill_ready): New function.
13773 (grub_keyboard_controller_write, grub_keyboard_controller_read)
13774 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
13775 for keyboard polling, rather than duplicate the same loop. This
13776 saves a few bytes in code size.
13777
7ebaa2b4
VS
137782009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
13779
13780 Support for (pxe[:server[:gateway]]) syntax and
13781 use environment variable for PXE.
13782
13783 * commands/i386/pc/pxecmd.c (options): Removed.
13784 (print_ip): Removed.
13785 (grub_cmd_pxe): Removed
13786 (grub_cmd_pxe_unload): New function.
13787 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
13788 (grub_pxe_your_ip): Made static.
13789 (grub_pxe_default_server_ip): Likewise.
13790 (grub_pxe_default_gateway_ip): Likewise.
13791 (grub_pxe_blksize): Likewise.
13792 (parse_ip): New function.
13793 (grub_pxe_open): Support server and gateway specification.
13794 (grub_pxe_close): Free disk->data.
13795 (grub_pxefs_open): Use disk->data.
13796 (grub_pxefs_read): Likewise.
13797 (grub_env_write_readonly): New function.
13798 (set_mac_env): Likewise.
13799 (set_env_limn_ro): Likewise.
13800 (parse_dhcp_vendor): Likewise.
13801 (grub_pxe_detect): Set the environment variables.
13802 (set_ip_env): New function.
13803 (write_ip_env): Likewise.
13804 (grub_env_write_pxe_default_server): Likewise.
13805 (grub_env_write_pxe_default_gateway): Likewise.
13806 (grub_env_write_pxe_blocksize): Likewise.
13807 (GRUB_MOD_INIT(pxe)): Set environment variables.
13808 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
13809 (grub_pxe_mac_addr_t): ... this. All users updated.
13810 (grub_pxe_your_ip): Removed.
13811 (grub_pxe_server_ip): Likewise.
13812 (grub_pxe_gateway_ip): Likewise.
13813 (grub_pxe_blksize): Likewise.
13814
ec5f98ab 138152009-12-25 Carles Pina i Estany <carles@pina.cat>
13816
13817 * commands/help.c: Include `<grub/i18n.h>'.
13818 (grub_cmd_help): Gettextizze.
13819 (GRUB_MOD_INIT): Likewise.
13820 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
13821 (GRUB_MOD_INIT): Gettextizze.
13822 * commands/search.c: Include `<grub/i18n.h>'.
13823 (options): Gettextizze.
13824 (GRUB_MOD_INIT): Gettextizze.
13825 * lib/arg.c: Include `<grub/i18n.h>'.
13826 (help_options): Gettextizze.
13827 (find_long): Likewise.
13828 (grub_arg_show_help): Likewise.
13829 * normal/dyncmd.c: Include `<grub/i18n.h>'.
13830 (read_command_list): Gettextizze.
13831 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 13832 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 13833
22815526
RM
138342009-12-25 Robert Millan <rmh.grub@aybabtu.com>
13835
13836 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
13837 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
13838 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
13839 (led_status): New variable.
13840 (keyboard_controller_led): New function.
13841 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
13842 update led status for caps lock, num lock and scroll lock.
13843
0ad46fd7
FZ
138442009-12-25 Felix Zielcke <fzielcke@z-51.de>
13845
13846 * util/hostdisk.c (open_device): Fix a comment.
13847
d0e158c2
RM
138482009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13849
13850 * util/grub-install.in (host_os): New variable.
13851 * util/i386/efi/grub-install.in (host_os): Likewise.
13852
401c0ad6
RM
138532009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13854
13855 * util/mkisofs/write.c (padblock_write): Abort when given an
13856 excedingly large embed image, instead of silently truncating it.
13857
d14d3370
RM
138582009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13859
13860 * include/multiboot.h: Indentation fixes.
13861
eeed10b4
RM
138622009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13863
13864 * include/multiboot.h (struct multiboot_aout_symbol_table)
13865 (struct multiboot_elf_section_header_table): New structure
13866 declarations (stolen from GRUB Legacy).
13867 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
13868 table information.
13869
13870 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
13871 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
13872 type aliases.
13873
681c70ab
RM
138742009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13875
13876 * include/multiboot.h: Make comments src2texi-friendly.
13877
e4d47d8d
RM
138782009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13879
13880 For consistency with [multiboot]/docs/boot.S.
13881
13882 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
13883 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
13884 (MULTIBOOT_MAGIC2): Rename from this ...
13885 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
13886
a0b70bda
RM
138872009-12-24 Robert Millan <rmh.grub@aybabtu.com>
13888
13889 * include/multiboot.h: Remove `<grub/types.h>'.
13890 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
13891 types. Update all users.
13892
61ba42be 138932009-12-25 Carles Pina i Estany <carles@pina.cat>
13894
13895 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
13896 `couldn't' and `can not' by `cannot'.
13897 * commands/i386/pc/drivemap.c: Likewise.
13898 * disk/ata.c: Likewise.
13899 * disk/ieee1275/nand.c: Likewise.
13900 * fs/affs.c: Likewise.
13901 * fs/fat.c: Likewise.
13902 * fs/hfs.c: Likewise.
13903 * fs/hfsplus.c: Likewise.
13904 * fs/iso9660.c: Likewise.
13905 * fs/jfs.c: Likewise.
13906 * fs/minix.c: Likewise.
13907 * fs/reiserfs.c: Likewise.
13908 * fs/sfs.c: Likewise.
13909 * fs/udf.c: Likewise.
13910 * fs/ufs.c: Likewise.
13911 * fs/xfs.c: Likewise.
13912 * loader/powerpc/ieee1275/linux.c: Likewise.
13913 * loader/sparc64/ieee1275/linux.c: Likewise.
13914 * util/grub-probe.c: Likewise.
13915 * util/misc.c: Likewise.
13916
7fd0baee 139172009-12-24 Carles Pina i Estany <carles@pina.cat>
13918
13919 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
13920 grub_errno calls.
13921 * commands/acpi.c: Likewise.
13922 * commands/blocklist.c: Likewise.
13923 * commands/efi/loadbios.c: Likewise.
13924 * commands/i386/pc/drivemap.c: Likewise.
13925 * commands/loadenv.c: Likewise.
13926 * commands/memrw.c: Likewise.
13927 * commands/password.c: Likewise.
13928 * commands/videotest.c: Likewise.
13929 * disk/ata.c: Likewise.
13930 * disk/ata_pthru.c: Likewise.
13931 * disk/dmraid_nvidia.c: Likewise.
13932 * disk/ieee1275/nand.c: Likewise.
13933 * disk/ieee1275/ofdisk.c: Likewise.
13934 * disk/loopback.c: Likewise.
13935 * disk/lvm.c: Likewise.
13936 * disk/mdraid_linux.c: Likewise.
13937 * disk/raid.c: Likewise.
13938 * disk/raid6_recover.c: Likewise.
13939 * disk/scsi.c: Likewise.
13940 * efiemu/main.c: Likewise.
13941 * efiemu/mm.c: Likewise.
13942 * efiemu/pnvram.c: Likewise.
13943 * efiemu/symbols.c: Likewise.
13944 * font/font.c: Likewise.
13945 * fs/cpio.c: Likewise.
13946 * fs/hfsplus.c: Likewise.
13947 * fs/iso9660.c: Likewise.
13948 * fs/jfs.c: Likewise.
13949 * fs/minix.c: Likewise.
13950 * fs/ntfs.c: Likewise.
13951 * fs/ntfscomp.c: Likewise.
13952 * fs/reiserfs.c: Likewise.
13953 * fs/ufs.c: Likewise.
13954 * fs/xfs.c: Likewise.
13955 * gettext/gettext.c: Likewise.
13956 * include/grub/auth.h: Likewise.
13957 * kern/elf.c: Likewise.
13958 * kern/file.c: Likewise.
13959 * kern/ieee1275/init.c: Likewise.
13960 * kern/ieee1275/mmap.c: Likewise.
13961 * kern/ieee1275/openfw.c: Likewise.
13962 * kern/powerpc/dl.c: Likewise.
13963 * kern/sparc64/dl.c: Likewise.
13964 * lib/arg.c: Likewise.
13965 * loader/i386/bsd.c: Likewise.
13966 * loader/i386/bsdXX.c: Likewise.
13967 * loader/i386/efi/linux.c: Likewise.
13968 * loader/i386/efi/xnu.c: Likewise.
13969 * loader/i386/ieee1275/linux.c: Likewise.
13970 * loader/i386/linux.c: Likewise.
13971 * loader/i386/multiboot.c: Likewise.
13972 * loader/i386/pc/linux.c: Likewise.
13973 * loader/i386/pc/multiboot2.c: Likewise.
13974 * loader/i386/xnu.c: Likewise.
13975 * loader/ieee1275/multiboot2.c: Likewise.
13976 * loader/macho.c: Likewise.
13977 * loader/machoXX.c: Likewise.
13978 * loader/multiboot2.c: Likewise.
13979 * loader/multiboot_loader.c: Likewise.
13980 * loader/powerpc/ieee1275/linux.c: Likewise.
13981 * loader/sparc64/ieee1275/linux.c: Likewise.
13982 * loader/xnu.c: Likewise.
13983 * loader/xnu_resume.c: Likewise.
13984 * mmap/i386/pc/mmap.c: Likewise.
13985 * normal/menu_viewer.c: Likewise.
13986 * partmap/acorn.c: Likewise.
13987 * partmap/amiga.c: Likewise.
13988 * partmap/apple.c: Likewise.
13989 * script/lexer.c: Likewise.
13990 * term/gfxterm.c: Likewise.
13991 * term/i386/pc/serial.c: Likewise.
13992 * term/i386/pc/vga.c: Likewise.
13993 * term/ieee1275/ofconsole.c: Likewise.
13994 * term/terminfo.c: Likewise.
13995 * video/bitmap.c: Likewise.
13996 * video/efi_gop.c: Likewise.
13997 * video/efi_uga.c: Likewise.
13998 * video/fb/video_fb.c: Likewise.
13999 * video/i386/pc/vbe.c: Likewise.
14000 * video/readers/tga.c: Likewise.
14001 * video/video.c: Likewise.
14002
0ad46fd7 140032009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
14004
14005 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
14006 * commands/lspci.c: Likewise.
14007 * commands/probe.c: Likewise.
14008 * commands/xnu_uuid.c: Likewise.
14009 * conf/i386-coreboot.rmk: Likewise.
14010 * conf/i386-efi.rmk: Likewise.
14011 * conf/i386-ieee1275.rmk: Likewise.
14012 * conf/i386-pc.rmk: Likewise.
14013 * conf/powerpc-ieee1275.rmk: Likewise.
14014 * conf/sparc64-ieee1275.rmk: Likewise.
14015 * conf/x86_64-efi.rmk: Likewise.
14016 * fs/i386/pc/pxe.c: Likewise.
14017 * gettext/gettext.c: Likewise.
14018 * include/grub/efi/graphics_output.h: Likewise.
14019 * include/grub/i386/pc/memory.h: Likewise.
14020 * kern/env.c: Likewise.
14021 * kern/i386/qemu/startup.S: Likewise.
14022 * lib/i386/pc/biosnum.c: Likewise.
14023 * lib/i386/relocator.c: Likewise.
14024 * lib/i386/relocator_asm.S: Likewise.
14025 * lib/relocator.c: Likewise.
14026 * loader/i386/bsd.c: Likewise.
14027 * loader/i386/multiboot.c: Likewise.
14028 * loader/i386/pc/chainloader.c: Likewise.
14029 * loader/i386/xnu.c: Likewise.
14030 * loader/xnu.c: Likewise.
14031 * normal/main.c: Likewise.
14032 * normal/menu_text.c: Likewise.
14033 * util/getroot.c: Likewise.
14034 * util/grub-mkconfig_lib.in: Likewise.
14035 * util/grub.d/00_header.in: Likewise.
14036 * util/i386/pc/grub-mkimage.c: Likewise.
14037 * util/mkisofs/eltorito.c: Likewise.
14038 * util/mkisofs/exclude.h: Likewise.
14039 * util/mkisofs/hash.c: Likewise.
14040 * util/mkisofs/iso9660.h: Likewise.
14041 * util/mkisofs/joliet.c: Likewise.
14042 * util/mkisofs/mkisofs.c: Likewise.
14043 * util/mkisofs/mkisofs.h: Likewise.
14044 * util/mkisofs/multi.c: Likewise.
14045 * util/mkisofs/name.c: Likewise.
14046 * util/mkisofs/rock.c: Likewise.
14047 * util/mkisofs/tree.c: Likewise.
14048 * util/mkisofs/write.c: Likewise.
14049 * video/efi_gop.c: Likewise.
14050
009ec743
VS
140512009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
14052
14053 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
14054 size counting.
14055
0ad46fd7 140562009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
14057
14058 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
14059 * genmk.rb (class SCRIPT): Modify the target file instead of source.
14060
d3d30ea0
VS
140612009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14062
14063 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
14064 (GRUB_MOD_INIT(memrw)): Update help line.
14065
a34f5c70
VS
140662009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14067
14068 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
14069 Use grub_extcmd_t. All users updated.
14070 (options): New variable.
14071 (grub_cmd_read): Restructure for readability. Support "-v" option.
14072 (grub_cmd_write): Restructure for readability.
14073
0ad46fd7 140742009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
14075
14076 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
14077
0ad46fd7 140782009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
14079
14080 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
14081 with the actual contents of the correspondending make variable.
14082 * util/grub-mkrescue.in (pkglib_DATA): New variable.
14083 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
14084 specifying `*.lst' and `efiemu??.o'
14085
0ad46fd7 140862009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
14087
14088 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
14089 after function name.
14090 Noticed by Rene Engelhard <rene@debian.org>.
14091
dc77a799
VS
140922009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14093
14094 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
14095 (options): New variable.
14096 (iospace): Likewise.
14097 (grub_lspci_iter): List IO spaces if "-i" was given.
14098 (grub_cmd_lspci): Parse options.
14099 (GRUB_MOD_INIT(lspci)): Use extcmd.
14100 (GRUB_MOD_FINI(lspci)): Likewise.
14101
0ad46fd7 141022009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
14103
14104 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
14105 `function' keyword.
14106 Patch by Tony Mancill <tmancill@debian.org>.
14107
b5d5993b
VS
141082009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
14109
14110 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
14111 (grub_uhci_portstatus): Likewise.
14112 (grub_uhci_portstatus): Add necessary delay.
11d18281 14113 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 14114
941903f2 141152009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 14116
941903f2 14117 * commands/acpi.c (options): Fix capitalizations and/or full stops.
14118 (GRUB_MOD_INIT): Likewise.
14119 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 14120 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
14121 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 14122 * commands/efi/loadbios.c (enable_rom_area): Likewise.
14123 (enable_rom_area): Likewise.
14124 (GRUB_MOD_INIT): Likewise.
14125 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
14126 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
14127 * commands/handler.c (GRUB_MOD_INIT): Likewise.
14128 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
14129 * commands/hexdump.c (options): Likewise.
14130 * commands/i386/cpuid.c (options): Likewise.
14131 (GRUB_MOD_INIT): Likewise.
14132 * commands/i386/pc/drivemap.c (options): Likewise.
14133 (GRUB_MOD_INIT): Likewise.
14134 * commands/i386/pc/halt (options): Likewise.
14135 (GRUB_MOD_INIT): Likewise.
14136 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
14137 * commands/i386/pc/pxecmd.c (options): Likewise.
14138 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
14139 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
14140 * commands/keystatus.c (options): Likewise.
14141 (GRUB_MOD_INIT): Likewise.
14142 * commands/loadenv.c (options): Likewise.
14143 * commands/ls.c (options): Likewise.
14144 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
14145 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
14146 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
14147 * commands/parttool.c (helpmsg): Likewise.
14148 * commands/probe.c (options): Likewise.
14149 * commands/read.c (GRUB_MOD_INIT): Likewise.
14150 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
14151 * commands/search.c (options): Likewise.
14152 * commands/sleep.c (options): Likewise.
14153 * commands/test.c (GRUB_MOD_INIT): Likewise.
14154 * commands/true.c (GRUB_MOD_INIT): Likewise.
14155 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
14156 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
14157 * lib/arg.c (help_options): Likewise.
e9bbb4e7 14158 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
14159 `$(XGETTEXT)'.
98a50553 14160 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 14161
0ad46fd7 141622009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 14163
ef3c2c3a 14164 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
14165 instead of specifying them explicit.
14166
7922f68b
RM
141672009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14168
14169 * NEWS: Add grub-probe support for GNU/Hurd.
14170
537ce47f
RM
141712009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14172
14173 * NEWS: gettext was added after 1.97.
14174
9b214e3a
RM
141752009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14176
14177 * util/mkisofs/msdos_partition.h: New file (based on
14178 include/grub/msdos_partition.h).
14179 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
14180 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
14181 (ld_options, main): Recognize --protective-msdos-label.
14182 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
14183 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
14184 (padblock_write): If `use_protective_msdos_label' is set, patch a
14185 protective DOS-style label in the output image.
14186
14187 * util/grub-mkrescue.in: Use --protective-msdos-label.
14188
e9309813
RM
141892009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14190
14191 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
14192 boot.
14193
0ae56929
RM
141942009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14195
14196 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
14197 variables.
14198 (ld_options, main): Recognize `--embedded-boot'.
14199 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
14200 declarations.
14201 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
14202 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
14203 (padblock_write): Likewise. Rewrite to support embedded boot image.
14204
14205 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
14206 for BIOS-based disk boot instead of only ElTorito.
14207
b15937b1
RM
142082009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14209
14210 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
14211 build (not needed for bootstrap).
14212
52cc3ce0
RM
142132009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14214
14215 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
14216 from i386-pc build (not needed for bootstrap).
14217 Rewrite a pair of strings.
14218
36f5ff04
RM
142192009-12-21 Robert Millan <rmh.grub@aybabtu.com>
14220
14221 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
14222
973c6c85 142232009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
14224
14225 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
14226
05d21547
AB
142272009-12-21 Andreas Born <futur.andy@googlemail.com>
14228
14229 * kern/env.c (grub_env_context_open): Mark exported variable for
14230 reexport.
14231
0175d51f
AB
142322009-12-21 Andreas Born <futur.andy@googlemail.com>
14233
14234 * kern/env.c (grub_env_export): Create nonexistent variables before
14235 exporting.
14236
7f39d92f 142372009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 14238
7f39d92f 14239 * include/grub/auth.h: Include `<grub/i18n.h>'.
14240 (GRUB_GET_PASSWORD): Gettextizze string.
14241 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
14242 menu_text.c.
14243 (grub_utf8_to_ucs4_alloc): Fix indentation.
14244 (grub_print_ucs4): Likewise.
14245 (grub_getstringwidth): Likewise.
14246 (print_message_indented): New declaration.
14247 * normal/auth.c: Include `<grub/i18n.h>'.
14248 (grub_auth_check_authentication): Gettexttize string.
14249 * normal/cmdline.c: Include `<grub/i18n.h>'.
14250 (grub_cmdline_get): Gettextizze.
14251 * normal/color.c: Include `<grub/i18n.h>'.
14252 (grub_parse_color_name_pair): Gettexttize strings.
14253 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
14254 string (use `print_message_indented').
14255 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
14256 `include/grub/normal.h'.
14257 (print_message_indented): Renamed to ...
14258 (grub_print_message_indented): ... this. Remove `static' qualifer (now
14259 used in normal/main.c).
14260 (print_message): Use `grub_print_message_indented' instead of
14261 `print_message_indented'.
14262 (print_timeout): Likewise.
14263 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
14264 (grub_normal_print_device_info): Gettexttize strings.
14265 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
14266
3041d898
VS
142672009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14268
14269 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
14270 of arguments. Return number of tokens and not arguments. All users
14271 updated.
14272
de15bf8e
VS
142732009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14274
14275 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
14276 non-MSDOS paritions.
14277
e0a6ca52
VS
142782009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14279
14280 * include/grub/types.h (UNUSED): Removed since it conflicts with
14281 NetBSD headers. All users changed to direct __attribute__ ((unused)).
14282 Reported by Grégoire Sutre.
14283
b99518d1 142842009-12-19 Carles Pina i Estany <carles@pina.cat>
14285
14286 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
14287 (grub_print_ucs4_alloc): Likewise.
14288 (grub_getstringwidth): Likewise.
14289 * normal/main.c (grub_normal_init_page): Gettextize version string.
14290 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
14291 (getstringwidth): Renamed to ...
14292 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
14293 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
14294 (grub_print_ucs4): Remove `static' qualifer (now used in
14295 normal/main.c).
14296 * po/POTFILES: Add normal/main.c.
14297
bfd5e52b 142982009-12-19 Carles Pina i Estany <carles@pina.cat>
14299
14300 * normal/menu_text.c (STANDARD_MARGIN): New macro.
14301 (print_message_indented): Add `margin_left' and `margin_right'
14302 parameters.
14303 (print_message): Update `print_message_indented' calls. Adds '\n' to the
14304 strings.
14305 (print_timeout): Use `print_message_indented' to print the message.
14306 Deletes `second_stage' parameter.
14307 (run_menu): Update `print_timeout' calls.
14308
5a1ad2b9
VS
143092009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14310
14311 Fix console palette on OpenFirmware.
14312
14313 * term/ieee1275/ofconsole.c (MAX): Removed.
14314 (colors): Redone based on VGA palette.
14315 (grub_ofconsole_setcolor): Discard brightness bit since only 8
14316 colors are supported.
14317 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
14318
b045f00a
VS
143192009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14320
14321 Fix potential EfiEmu double prepare.
14322
14323 * efiemu/main.c (prepared): New variable
14324 (grub_efiemu_unload): Set prepare to '0'.
14325 (grub_efiemu_prepare): Return if already prepared. Set prepared.
14326
14327 set_virtual_address_map support.
14328
14329 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
14330 prototype.
14331 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
14332 prototype.
14333 (grub_efiemu_crc32): Likewise.
14334 (grub_efiemu_crc64): Likewise.
14335 (grub_efiemu_set_virtual_address_map): Likewise.
14336 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
14337 New definition.
14338 (grub_autoefi_set_virtual_address_map): Likewise.
14339 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
14340 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
14341 Restructure flow to accomodate it.
14342 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
14343 (grub_efiemu_crc): Recompute CRC32.
14344 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
14345 (efiemu_ptv_relocated): ... this. Made global. All users updated.
14346 * efiemu/symbols.c (relocated_handle): New variable.
14347 (grub_efiemu_free_syms): Free relocated_handle.
14348 (grub_efiemu_alloc_syms): Allocate relocated_handle.
14349 (grub_efiemu_write_sym_markers): New function.
14350 (grub_efiemu_set_virtual_address_map): Likewise.
14351
14352 Newer XNU parameters.
14353
14354 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
14355 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
14356 (grub_xnu_fill_devicetree): New prototype.
14357 (grub_xnu_heap_real_start): New variable.
14358 * loader/xnu.c (get_name_ptr): New function.
14359 (grub_xnu_load_driver): Fill namelen and name.
14360
14361 64-bit xnu support.
14362
14363 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
14364 and 'loader/macho64.c'.
14365 * conf/i386-pc.rmk: Likewise.
14366 * conf/x86_64-efi.rmk: Likewise.
14367 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
14368 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
14369 * include/grub/macho.h (grub_macho_segment64): New structure.
14370 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
14371 (grub_macho_size32): ... to this.
14372 (grub_macho32_get_entry_point): Renamed from ...
14373 (grub_macho_get_entry_point32): ... to this.
14374 (grub_macho_contains_macho64): New prototype.
14375 (grub_macho_size64): Likewise.
14376 (grub_macho_get_entry_point64): Likewise.
14377 (grub_macho32_load): Renamed from ...
14378 (grub_macho_load32): ... to this.
14379 (grub_macho32_filesize): Renamed from ...
14380 (grub_macho_filesize32): ... to this.
14381 (grub_macho32_readfile): Renamed from ...
14382 (grub_macho_readfile32): ... to this.
14383 (grub_macho_filesize64): New prototype.
14384 (grub_macho_readfile64): Likewise.
14385 (grub_macho_parse32): Likewise.
14386 (grub_macho_parse64): Likewise.
14387 * loader/macho.c: Split into ...
14388 * loader/machoXX.c: ... and this. Replace 32 with XX.
14389 * loader/macho32.c: New file.
14390 * loader/macho64.c: Likewise.
14391 * loader/xnu.c (grub_xnu_is_64bit): New variable.
14392 (grub_cmd_xnu_kernel): Make 32-bit only.
14393 (grub_cmd_xnu_kernel64): New function.
14394 (grub_xnu_load_driver): Support Mach-O 64.
14395 (grub_cmd_xnu_mkext): Likewise.
14396 * util/grub.d/30_os-prober.in (osx_entry): New function.
14397 Generate entries for 64-bit boot too.
14398
14399 Eliminate ad-hoc tree format in XNU and EfiEmu.
14400
14401 * efiemu/main.c (grub_efiemu_prepare): Update comment.
14402 * efiemu/pnvram.c: Rewritten to use environment variables.
14403 All users updated.
14404
14405 Inline utf16_to_utf8.
14406
14407 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
14408 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
14409 All users updated.
14410 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
14411
14412 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
14413 * commands/usbtest.c (grub_usb_get_string): ... move here.
14414 (usb_print_str): Fix error handling.
14415 * include/grub/usb.h (grub_usb_get_string): Remove.
14416
14417 UTF-8 to UTF-16 transformation.
14418
14419 * conf/common.rmk (pkglib_MODULES): Add charset.mod
14420 (charset_mod_SOURCES): New variable.
14421 (charset_mod_CFLAGS): Likewise.
14422 (charset_mod_LDFLAGS): Likewise.
14423 * include/grub/utf.h: New file.
14424 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
14425
14426 Support for device properties.
14427
14428 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
14429 (grub_xnu_devprop_device_header): Likewise.
14430 (grub_xnu_devprop_device_descriptor): Likewise.
14431 (grub_xnu_devprop_add_device): New prototype.
14432 (grub_xnu_devprop_remove_device): Likewise.
14433 (grub_xnu_devprop_remove_property): Likewise.
14434 (grub_xnu_devprop_add_property_utf8): Likewise.
14435 (grub_xnu_devprop_add_property_utf16): Likewise.
14436 (grub_cpu_xnu_init): Likewise.
14437 (grub_cpu_xnu_fini): Likewise.
14438 (grub_cpu_xnu_unload): Likewise.
14439 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
14440 (property_descriptor): Likewise.
14441 (devices): New variable.
14442 (grub_xnu_devprop_remove_property): New function.
14443 (grub_xnu_devprop_add_device): Likewise.
14444 (grub_xnu_devprop_remove_device): Likewise.
14445 (grub_xnu_devprop_add_property): Likewise.
14446 (grub_xnu_devprop_add_property_utf8): Likewise.
14447 (grub_xnu_devprop_add_property_utf16): Likewise.
14448 (hextoval): Likewise.
14449 (grub_cpu_xnu_fill_devprop): Likewise.
14450 (grub_cmd_devprop_load): Likewise.
14451 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
14452 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
14453 (cmd_devprop_load): New variable.
14454 (grub_cpu_xnu_init): New function.
14455 (grub_cpu_xnu_fini): Likewise.
14456 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
14457 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
14458 (grub_cmd_xnu_devtree): Likewise.
14459 (hextoval): New function.
14460 (unescape): Likewise.
14461 (grub_xnu_fill_devicetree): Likewise.
14462
14463 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
14464 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
14465
0945f181
VS
144662009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14467
14468 Workaround for broken ATI VBE.
14469
14470 * video/i386/pc/vbe.c (last_set_mode): New variable.
14471 (grub_vbe_set_video_mode): Set 'last_set_mode'.
14472 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
14473 (grub_video_vbe_setup): Don't check for reserved flag.
14474
0ad46fd7 144752009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
14476
14477 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
14478 the `find' command.
14479
c179ebe4
VS
144802009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
14481
14482 UUID support for HFS.
14483
14484 * fs/hfs.c (grub_hfs_uuid): New function.
14485 (grub_hfs_fs): New value .uuid.
14486 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
14487
0ad46fd7 144882009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
14489
14490 Fix a segfault with parsing unknown long options.
14491
14492 * util/grub-mkrelpath.c (options): Zero terminate it.
14493
c4a3e41a
CPE
144942009-12-13 Carles Pina i Estany <carles@pina.cat>
14495
14496 * include/grub/misc.h (grub_puts): New declaration.
14497 (grub_puts_): Likewise.
a22008a6 14498 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
14499 (grub_puts_): Likewise.
14500
2e8a7602
RM
145012009-12-13 Robert Millan <rmh.grub@aybabtu.com>
14502
14503 * util/grub-probe.c (probe): Improve error message.
14504
b50b77b9
RM
145052009-12-13 Robert Millan <rmh.grub@aybabtu.com>
14506
14507 * loader/i386/multiboot_elfxx.c
14508 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
14509 initialization.
14510
145112009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14512
14513 Relocator framework
14514
14515 * loader/i386/xnu_helper.S: Removed. All users updated.
14516 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
14517 (relocator_mod_SOURCES): New variable.
14518 (relocator_mod_CFLAGS): Likewise.
14519 (relocator_mod_LDFLAGS): Likewise.
14520 (relocator_mod_ASFLAGS): Likewise.
14521 * conf/x86_64.rmk: Likewise.
14522 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
14523 (grub_multiboot_payload_entry_offset): Likewise.
14524 (grub_multiboot_forward_relocator): Likewise.
14525 (grub_multiboot_forward_relocator_end): Likewise.
14526 (grub_multiboot_backward_relocator): Likewise.
14527 (grub_multiboot_backward_relocator_end): Likewise.
14528 (grub_multiboot_payload_eip): New variable.
14529 (grub_multiboot_payload_orig): Likewise.
14530 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
14531 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
14532 * include/grub/i386/memory.h
14533 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
14534 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
14535 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
14536 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
14537 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
14538 * include/grub/i386/relocator.h: New file.
14539 * include/grub/x86_64/relocator.h: Likewise.
14540 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
14541 (XNU_RELOCATOR): New macro.
14542 (grub_xnu_launcher_start): Remove.
14543 (grub_xnu_launcher_end): Likewise.
14544 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
14545 (grub_xnu_heap_real_start): Remove.
14546 (grub_xnu_heap_start): Change to void *. All users updated.
14547 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
14548 * lib/i386/relocator.c: New file.
14549 * lib/i386/relocator_asm.S: Likewise.
14550 * lib/i386/relocator_backward.S: Likewise.
14551 * lib/mips/relocator.c: Likewise.
14552 * lib/mips/relocator_asm.S: Likewise.
14553 * lib/relocator.c: Likewise.
14554 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
14555 (entry): Removed.
14556 (playground): Likewise.
14557 (grub_multiboot_payload_orig): New variable.
14558 (grub_multiboot_payload_dest): Likewise.
14559 (grub_multiboot_payload_size): Likewise.
14560 (grub_multiboot_payload_eip): Likewise.
14561 (grub_multiboot_payload_esp): Likewise.
14562 (grub_multiboot_boot): Use grub_relocator32_boot.
14563 (grub_multiboot_unload): Free relocators.
14564 (grub_multiboot): Setup stack. Use relocators.
14565 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
14566 (grub_multiboot_load_elfXX): Use relocators.
14567 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
14568 (grub_multiboot_payload_size): Likewise.
14569 (grub_multiboot_payload_dest): Likewise.
14570 (grub_multiboot_payload_entry_offset): Likewise.
14571 (grub_multiboot_forward_relocator): Likewise.
14572 (grub_multiboot_backward_relocator): Likewise.
14573 (grub_multiboot_real_boot): Likewise.
14574 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
14575 (grub_xnu_entry_point): Likewise.
14576 (grub_xnu_arg1): Likewise.
14577 (grub_xnu_stack): Likewise.
14578 (grub_xnu_launch): Removed.
14579 (grub_xnu_boot_resume): New function.
14580 (grub_xnu_boot): Use relocators.
14581 * loader/i386/xnu_helper.S: Removed.
14582 * loader/xnu.c (grub_xnu_heap_start): New variable.
14583 (grub_xnu_heap_size): Likewise.
14584 (grub_xnu_heap_malloc): Use relocators.
14585 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
14586
29eb90c6
VS
145872009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
14588
14589 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
14590 anything.
14591
31027430
CPE
145922009-12-13 Carles Pina i Estany <carles@pina.cat>
14593
14594 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
14595 GRUB_ERR_NONE before calling grub_env_set.
14596
dc0c71d9
RM
145972009-12-12 Robert Millan <rmh@aybabtu.com>
14598
14599 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
14600 * genmk.rb (video): New variable.
14601 (CLEANFILES, VIDEOFILES): Add #{video}.
14602 (#{video}): New target rule.
14603 * genvideolist.sh: New file.
14604 * Makefile.in (pkglib_DATA): Add video.lst.
14605 (video.lst): New target rule.
14606 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
14607 `video.lst'.
14608 * util/grub.d/30_os-prober.in: Replace `vbe' with
14609 ${GRUB_VIDEO_BACKEND}.
14610
2a4bfcf0
RM
146112009-12-11 Robert Millan <rmh.grub@aybabtu.com>
14612
14613 * THANKS: Add David Miller.
14614
2a3aa4d5
RM
146152009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
14616
14617 libpciaccess support.
14618
14619 * Makefile.in (LIBPCIACCESS): New variable.
14620 (enable_grub_emu_pci): Likewise.
14621 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
14622 util/pci.c and commands/lspci.c.
14623 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
14624 * configure.ac (grub-emu-pci): New option.
14625 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
14626 (grub_pci_device_unmap_range): Likewise.
14627 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
14628 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
14629 (grub_pci_address_t) [!GRUB_UTIL]: New type.
14630 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
14631 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
14632 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
14633 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
14634 * include/grub/pciutils.h: New file.
14635 * util/pci.c: Likewise.
14636
0ad46fd7 146372009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
14638
14639 * util/misc.c: Don't include <errno.h> twice.
14640
0ad46fd7 146412009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
14642
14643 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
14644 name in an error message.
14645 (grub_biosdisk_rw): Likewise.
14646
2e59983c
VS
146472009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14648
14649 Eliminate NTFS 4Gib barrier.
14650
14651 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
14652 (read_run_data): Likewise.
14653 (grub_ntfs_read_run_list): Likewise.
14654 (grub_ntfs_read_block): Likewise.
14655 (grub_ntfs_iterate_dir): Likewise.
14656 (read_mft): Likewise.
14657 (read_data): Likewise.
14658 Use COM_LOG_LEN.
14659 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
14660 to avoid 64-bit division
14661 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
14662 (grub_ntfs_rlst): Use grub_disk_addr_t.
14663
71ee178a
VS
146642009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14665
14666 Eliminate grub-fstest 4Gib barrier.
14667
14668 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
14669 (read_file): Fix error reporting.
14670
2520d4b8
VS
146712009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14672
14673 Eliminate hexdump 4Gib barrier.
14674
14675 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
14676 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
14677
e1f27065
VS
146782009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
14679
14680 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
14681 Fixes amarsh bug.
14682
1a0f7f45
RM
146832009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
14684
14685 Remove miscellaneous files in distclean target.
14686
14687 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
14688
c631d9fb
CW
146892009-12-09 Colin Watson <cjwatson@ubuntu.com>
14690
14691 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
14692 if they're already set. This resolves the conflict between my
14693 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
14694 fixing the --grub-probe option again.
14695 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
14696 change on 2009-10-06, so that we now once again source
14697 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
14698
7c7b6106
RM
146992009-12-08 Robert Millan <rmh.grub@aybabtu.com>
14700
14701 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
14702 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
14703 `util/devicemap.c'.
14704
e3069ec1
CPE
147052009-12-08 Carles Pina i Estany <carles@pina.cat>
14706
14707 * include/grub/misc.h (grub_printf_): New declaration.
14708 * kern/misc.c (grub_printf_): New definition.
14709 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
14710 instead of `grub_printf' and `_'.
14711 * normal/menu_entry.c (store_completion): Likewise.
14712 (run): Likewise.
14713 (grub_menu_entry_run): Likewise.
14714 * normal/menu_text.c (grub_wait_after_message): Likewise.
14715 (notify_booting): Likewise.
14716 (notify_fallback): Likewise.
14717 (notify_execution_failure): Likewise.
14718
d6ceebf1
CW
147192009-12-07 Colin Watson <cjwatson@ubuntu.com>
14720
14721 * configure.ac: Check for vasprintf.
14722 * util/misc.c (asprintf): Move allocation from here ...
14723 (vasprintf): ... to here. New function.
14724 (xasprintf): New function.
14725 * include/grub/util/misc.h (vasprintf, xasprintf): Add
14726 prototypes.
14727 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
14728 * util/grub-mkfont.c (write_font): Likewise.
14729 * util/grub-probe.c (probe): Likewise.
14730 * util/hostdisk.c (make_device_name): Likewise.
14731
de6daa8b
DM
147322009-12-06 David S. Miller <davem@sunset.davemloft.net>
14733
14734 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
14735 anything even prefixed with 'cdrom' as a cdrom.
14736
0ad46fd7 147372009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
14738
14739 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
14740 mount points.
14741
98d3dc02
CPE
147422009-12-05 Carles Pina i Estany <carles@pina.cat>
14743
14744 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
14745 grub_gettext_msg_list.
14746 (grub_gettext_gettranslation_from_position): Return const char *
14747 and not char *.
a2c1332b 14748 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
14749 returns from the list if existing there.
14750 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
14751 (grub_gettext_delete_list): Delete the list.
14752 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
14753 lang environment variable is changed.
14754 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
14755
b283f108
VS
147562009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
14757
14758 Rename kernel.mod to kernel.img.
14759
14760 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
14761 (kernel_mod_EXPORTS): Rename to ...
14762 (kernel_img_EXPORTS): ... this.
14763 (kernel_mod_SOURCES): Rename to ...
14764 (kernel_img_SOURCES): ... this.
14765 (kernel_mod_HEADERS): Rename to ...
14766 (kernel_img_HEADERS): ... this. All users updated.
14767 (kernel_mod_CFLAGS): Rename to ...
14768 (kernel_img_CFLAGS): ... this.
14769 (kernel_mod_ASFLAGS): Rename to ...
14770 (kernel_img_ASFLAGS): ... this.
14771 (kernel_mod_LDFLAGS): Rename to ...
14772 (kernel_img_LDFLAGS): ... this.
14773 * conf/x86_64-efi.rmk: Likewise.
14774 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
14775 (read_kernel_image): ... this. All users updated.
14776 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
14777
69055f8a
CPE
147782009-12-05 Carles Pina i Estany <carles@pina.cat>
14779
14780 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
14781 (print_spaces): New function.
14782 (grub_print_ucs4): New function.
14783 (getstringwidth): New function.
14784 (print_message_indented): New function.
14785 (print_message): Gettexttize strings using print_message_indented.
14786 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
14787 width.
14788 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 14789 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
14790 Gettextize.
14791 * normal/menu_entry.c (store_completion): Cleanup the gettextized
14792 string.
14793 (run): Likewise.
14794 (grub_menu_entry_run): Likewise.
14795 * PO/POTFILES: Add normal/menu_entry.c.
14796
f616f51c
VS
147972009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
14798
14799 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
14800
57bbe3be
CPE
148012009-12-05 Carles Pina i Estany <carles@pina.cat>
14802
14803 * util/grub-install.in: Install gettext .mo files.
14804 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
14805
013d67a1
CPE
148062009-12-05 Carles Pina i Estany <carles@pina.cat>
14807
14808 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
14809 grub_dprintf.
14810
fb954db0
RM
148112009-12-05 Robert Millan <rmh.grub@aybabtu.com>
14812
14813 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
14814 non-firmware-dependant one in realmode.S takes precedence.
14815
6b8474f8
RM
148162009-12-04 Robert Millan <rmh.grub@aybabtu.com>
14817
14818 * commands/halt.c: Replace misc arch-specific headers with
14819 `<grub/misc.h>'.
14820 * commands/reboot.c: Likewise.
14821 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
14822 `<grub/misc.h>'.
14823 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
14824 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
14825 (kernel_img_SOURCES): ... to here.
14826
14827 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
14828 * include/grub/i386/pc/init.h: Likewise.
14829 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
14830 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
14831
14832 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
14833
14834 * include/grub/i386/halt.h: Remove.
14835 * include/grub/i386/reboot.h: Likewise.
14836
14837 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
14838
4b2e6ca2
DM
148392009-12-03 David S. Miller <davem@sunset.davemloft.net>
14840
14841 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
14842 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
14843 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
14844 "progname.h"
14845 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
14846 * util/sparc64/ieee1275/grub-setup.c: Likewise.
14847 (usage): Add missing comma in printf.
14848
5239348f
RM
148492009-12-02 Robert Millan <rmh.grub@aybabtu.com>
14850
14851 Use the same reboot approach on i386 coreboot and qemu as we do on
14852 BIOS.
14853
14854 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
14855 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
14856 * kern/i386/reboot.c: Remove.
14857 * include/grub/i386/reboot.h (grub_reboot): Export function.
14858 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
14859 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
14860 0xf000:0xfff0 instead of 0xffff:0x0000.
14861 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
14862 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
14863
ef34cbd4
RM
148642009-11-30 Robert Millan <rmh.grub@aybabtu.com>
14865
14866 Fix $srcdir != $objdir build.
14867
14868 * Makefile.in (po/%.po): Rewrite as ...
14869 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
14870
dc9837ea
ST
148712009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
14872
14873 Fix GNU/Hurd grub-install crash.
14874 * util/grub-probe.c (probe): Try to access `path' only when it is not
14875 NULL.
14876
2f857f98
VS
148772009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
14878
14879 Correct module naming.
14880
14881 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
14882 (GRUB_MOD_INIT(efi_uga)): ... to this
14883 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
14884 (GRUB_MOD_FINI(efi_uga)): ... to this
14885 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
14886 (GRUB_MOD_INIT(efi_gop)): ... to this
14887 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
14888 (GRUB_MOD_FINI(efi_gop)): ... to this
14889
c5448046
RM
148902009-11-28 Robert Millan <rmh.grub@aybabtu.com>
14891
14892 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
14893 translatable.
14894 (usage): Translate `arg' strings using gettext().
14895 Thanks to Jordi Mallach for the suggestion.
14896
c85184ad
VS
148972009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
14898
14899 GOP support. Based on patch from Bean
14900 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
14901
14902 * video/efi_gop.c: New file.
14903 * include/grub/efi/graphics_output.h: Likewise.
14904 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
14905 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
14906 variables.
14907 * conf/x86_64-efi.rmk: Likewise.
14908
8a4c48d8
VS
149092009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
14910
14911 Rename efi_fb to efi_uga.
14912
14913 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
14914 'efi_uga.mod'.
14915 (efi_fb_mod_SOURCES): Rename this ...
14916 (efi_uga_mod_SOURCES): ... to this.
14917 (efi_fb_mod_CFLAGS): Rename this ...
14918 (efi_uga_mod_CFLAGS): ... to this.
14919 (efi_fb_mod_LDFLAGS): Rename this ...
14920 (efi_uga_mod_LDFLAGS): ... to this.
14921 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
14922 'efi_uga.mod'.
14923 (efi_fb_mod_SOURCES): Rename this ...
14924 (efi_uga_mod_SOURCES): ... to this.
14925 (efi_fb_mod_CFLAGS): Rename this ...
14926 (efi_uga_mod_CFLAGS): ... to this.
14927 (efi_fb_mod_LDFLAGS): Rename this ...
14928 (efi_uga_mod_LDFLAGS): ... to this.
14929 * video/efi_fb.c: Move this ...
14930 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
14931
fb6c1a7b
RM
149322009-11-27 Robert Millan <rmh.grub@aybabtu.com>
14933
14934 * po/README: New file. Explain our PO file workflow.
14935
3bc7896c
RM
149362009-11-27 Robert Millan <rmh.grub@aybabtu.com>
14937
14938 * po/ChangeLog: Remove. Move relevant entries back to ...
14939 * ChangeLog: ... here.
14940 * po/ca.po: Remove (now handled by TLP).
14941 * po/id.po: Likewise.
14942 * po/zh_CN.po: Likewise.
14943 * Makefile.in (LINGUAS): Initialize in a way that supports
14944 empty set.
14945
9ed4841d
RM
149462009-11-27 Robert Millan <rmh.grub@aybabtu.com>
14947
14948 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
14949 reliing on po/LINGUAS.
14950 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
14951 (po/%.po): ... this.
14952
0ad46fd7 149532009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
14954
14955 * util/i386/efi/grub-mkimage.c: Include "progname.h".
14956 (main): Use `program_name' instead of nonexistent `progname'.
14957
e30dd392
FZ
149582009-11-26 Felix Zielcke <fzielcke@z-51.de>
14959
14960 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
14961 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
14962
7656de4f
RM
149632009-11-26 Robert Millan <rmh.grub@aybabtu.com>
14964
14965 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
14966 commit.
14967 * conf/i386-efi.rmk: Likewise.
14968 * conf/i386-ieee1275.rmk: Likewise.
14969 * conf/powerpc-ieee1275.rmk: Likewise.
14970 * conf/sparc64-ieee1275.rmk: Likewise.
14971 * conf/x86_64-efi.rmk: Likewise.
14972
db77c4d4
FZ
149732009-11-26 Felix Zielcke <fzielcke@z-51.de>
14974
14975 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
14976
a755bb04
FZ
149772009-11-26 Felix Zielcke <fzielcke@z-51.de>
14978
14979 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
14980
8a4c07fd
RM
149812009-11-26 Robert Millan <rmh.grub@aybabtu.com>
14982
14983 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
14984 (grub_mkdevicemap_SOURCES): New variable.
14985 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
14986 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
14987 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
14988 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
14989 (grub_mkdevicemap_SOURCES): Remove.
14990 * conf/i386-efi.rmk: Likewise.
14991 * conf/i386-ieee1275.rmk: Likewise.
14992 * conf/i386-pc.rmk: Likewise.
14993 * conf/powerpc-ieee1275.rmk: Likewise.
14994 * conf/sparc64-ieee1275.rmk: Likewise.
14995 * conf/x86_64-efi.rmk: Likewise.
14996 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
14997 (usage): Fix strings to use `program_name'.
14998 (main): Initialize gettext.
14999 * util/grub-editenv.c: Likewise.
15000 * util/grub-emu.c: Likewise.
15001 * util/grub-fstest.c: Likewise.
15002 * util/grub-mkdevicemap.c: Likewise.
15003 * util/grub-mkfont.c: Likewise.
15004 * util/grub-mkrelpath.c: Likewise.
15005 * util/grub-pe2elf.c: Likewise.
15006 * util/grub-probe.c: Likewise.
15007 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
15008 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
15009 * util/sparc64/ieee1275/grub-setup.c: Likewise.
15010
15011 * util/misc.c: Include `"progname.h"'.
15012 (progname): Remove variable.
15013 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
15014
6f61ed55
FZ
150152009-11-25 Felix Zielcke <fzielcke@z-51.de>
15016
15017 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
15018 printf and print a newline after the menuentry header line.
15019 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
15020
f022876b
FZ
150212009-11-25 Felix Zielcke <fzielcke@z-51.de>
15022
15023 autoconf >= 2.60 support $(localedir).
15024
15025 * INSTALL: Note that autoconf 2.60 is required.
15026 * configure.ac (AC_PREREQ): Bump to 2.60.
15027 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
15028 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
15029
6717926e
YB
150302009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
15031
15032 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
15033 aclocal is run.
15034
08806a54
RM
150352009-11-25 Robert Millan <rmh.grub@aybabtu.com>
15036
15037 * normal/main.c (grub_normal_read_line): Fix off-by-one
15038 buffer overflow.
15039
13b33fba
RM
150402009-11-25 Robert Millan <rmh.grub@aybabtu.com>
15041
15042 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
15043 "parser.grub" in grub_command_execute() call.
15044
4a8572e9
CPE
150452009-11-24 Carles Pina i Estany <carles@pina.cat>
15046
15047 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
15048 * conf/i386-efi.rmk: Likewise.
15049 * conf/i386-ieee1275.rmk: Likewise.
15050 * conf/i386-pc.rmk: Likewise.
15051 * conf/powerpc-ieee1275.rmk: Likewise.
15052 * conf/sparc64-ieee1275.rmk: Likewise.
15053 * conf/x86_64-efi.rmk: Likewise.
15054 * gettext/gettex.c: Include <grub/i18n.h>.
15055 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
15056 here ...
15057 * include/grub/i18n.h: ... to here
15058 * include/grub/i18n.h: ... to here.
15059 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 15060 (grub_gettext_dummy): Move above user.
4a8572e9 15061
bee48093
FZ
150622009-11-24 Felix Zielcke <fzielcke@z-51.de>
15063
15064 * util/Makefile.in (install-local): Convert a `for' into a normal
15065 shell expansion.
15066
a031e91c
RM
150672009-11-24 Robert Millan <rmh.grub@aybabtu.com>
15068
15069 * autogen.sh: Add automake call.
15070 * config.guess: Remove.
15071 * config.sub: Likewise.
15072 * install-sh: Likewise.
15073
26bec39d
FZ
150742009-11-24 Felix Zielcke <fzielcke@z-51.de>
15075
15076 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
15077
8e2532fd
FZ
150782009-11-24 Felix Zielcke <fzielcke@z-51.de>
15079
15080 * util/Makefile.in (install-local): Convert a make `$(foreach)'
15081 function to a normal shell `for'.
15082
fefa1b7d
FZ
150832009-11-24 Felix Zielcke <fzielcke@z-51.de>
15084
15085 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
15086
4501250b
FZ
150872009-11-24 Felix Zielcke <fzielcke@z-51.de>
15088
15089 * util/grub-mkrelpath.c: New file.
15090 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
15091 (grub_mkrelpath_SOURCES): New variable.
15092 * include/grub/util/misc.h: New function prototype.
15093 * util/misc.c (make_system_path_relative_to_its_root): New function.
15094
15095 * util/grub-mkconfig_lib.in (bindir): New variable.
15096 (grub_mkrelpath): Likewise.
15097 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
15098
15099 * util/probe.c (probe): Make the file path relative to its root.
15100 Change a info message to use the GRUB path. Enable again the
15101 check if we can read the file with GRUB facilities.
15102
15103 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
15104 to its root.
15105
11d9778b
FZ
151062009-11-24 Felix Zielcke <fzielcke@z-51.de>
15107
15108 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
15109 platform.
15110
4465287d
FZ
151112009-11-24 Felix Zielcke <fzielcke@z-51.de>
15112
15113 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
15114 strncmp().
15115
62b47f22
FZ
151162009-11-24 Felix Zielcke <fzielcke@z-51.de>
15117
15118 * util/getroot.c (grub_util_is_dmraid): New function.
15119 (grub_util_get_dev_abstraction): Treat dmraid and multipath
15120 devices as normal ones, not as LVM.
15121
1eafb9b9 151222009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
15123
15124 * conf/common.rmk: Add grub-gettext_lib target and updates
15125 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
15126 LDFLAGS.
15127 * gettext/gettext.c: New file. (Reads mo files).
15128 * include/grub/file.h (grub_file_pread): New prototype.
15129 * include/grub/i18n.h (_): New prototype.
15130 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
15131 prototypes.
15132 * kern/misc.c (grub_gettext_dummy): New function.
15133 * normal/menu_text.c: Include <grub/i18n.h>.
15134 * normal/menu_text.c (print_timeout): Gettexttize string.
15135 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
15136 * po/POTFILES: Add `normal/menu_text.c'.
15137 * po/ca.po: Add new translations.
c3ea6bd4
CPE
15138 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
15139 gettext module and defines locale_dir and lang in grub.cfg.
15140 * NEWS: Add gettext support.
15141
0fdb2568
RM
151422009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15143
15144 * util/hostdisk.c: Include `<grub/i18n.h>'.
15145 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
15146 (make_device_name): Rewrite using asprintf.
15147 (convert_system_partition_to_system_disk): Replace 0 with NULL.
15148 (find_system_device): If a device is not found, generate one just
15149 by reusing the OS path name.
15150 (read_device_map): Make it permissible for device.map not to exist.
15151
f515aa62
RM
151522009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15153
15154 * script/sh/execute.c: Move from here ...
15155 * script/execute.c: ... to here. Update all users.
15156 * script/sh/function.c: Move from here ...
15157 * script/function.c: ... to here. Update all users.
15158 * script/sh/lexer.c: Move from here ...
15159 * script/lexer.c: ... to here. Update all users.
15160 * script/sh/main.c: Move from here ...
15161 * script/main.c: ... to here. Update all users.
15162 * script/sh/parser.y: Move from here ...
15163 * script/parser.y: ... to here. Update all users.
15164 * script/sh/script.c: Move from here ...
15165 * script/script.c: ... to here. Update all users.
15166
f84b481b
RM
151672009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15168
15169 * configure.ac: Detect all `emu' platforms. Define
15170 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
15171 --enable-grub-emu logic. Disable include/grub/machine
15172 symlink on `emu' platforms.
15173
15174 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
15175 * gensymlist.sh.in: Likewise.
15176
15177 * include/grub/i386/coreboot/machine.h: Remove file.
15178 * include/grub/i386/efi/machine.h: Likewise.
15179 * include/grub/i386/ieee1275/machine.h: Likewise.
15180 * include/grub/i386/pc/machine.h: Likewise.
15181 * include/grub/i386/qemu/machine.h: Likewise.
15182 * include/grub/powerpc/ieee1275/machine.h: Likewise.
15183 * include/grub/sparc64/ieee1275/machine.h: Likewise.
15184 * include/grub/x86_64/efi/machine.h: Likewise.
15185
15186 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
15187 * commands/halt.c: Likewise.
15188 * commands/reboot.c: Likewise.
15189 * include/grub/autoefi.h: Likewise.
15190 * include/grub/i386/at_keyboard.h: Likewise.
15191 * include/grub/i386/kernel.h: Likewise.
15192 * include/grub/i386/loader.h: Likewise.
15193 * include/grub/i386/pc/memory.h: Likewise.
15194 * kern/dl.c: Likewise.
15195 * kern/i386/coreboot/init.c: Likewise.
15196 * loader/i386/bsd.c: Likewise.
15197 * loader/i386/linux.c: Likewise.
15198 * loader/multiboot_loader.c: Likewise.
15199 * term/i386/pc/serial.c: Likewise.
15200 * term/usb_keyboard.c: Likewise.
15201
15202 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
15203 `<grub/machine/machine.h>'
15204 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
15205 * util/misc.c: Remove `<grub/machine/machine.h>' and
15206 `<grub/machine/time.h>'.
15207
15208 * Makefile.in (enable_grub_emu): Remove variable.
15209 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
15210
15211 * conf/any-emu.rmk: New file.
15212 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
15213 (grub_emu_init.c): Move from here ...
15214 * conf/any-emu.rmk: ... to here.
15215
15216 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
15217 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
15218 * conf/any-emu.rmk: ... to here.
15219
4efeab03
RM
152202009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15221
15222 * include/grub/parser.h (grub_parser_register): Document need
15223 of `name' parameter.
15224 * normal/main.c (grub_normal_read_line): Simplify prompt string.
15225 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
15226 "sh" to "grub".
15227
ea1dd8bf
RM
152282009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15229
15230 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
15231 `$(XGETTEXT)'.
15232 * include/grub/i18n.h (N_): New macro.
15233 * util/mkisofs/mkisofs.h: Likewise.
15234 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
15235 around N_().
15236 (usage): Use gettext() to translate help strings when printing them.
15237
0c140626
RM
152382009-11-23 Robert Millan <rmh.grub@aybabtu.com>
15239
15240 Based on patch from Bean
15241 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
15242
15243 * video/efi_fb.c: New file.
15244 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
15245 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
15246 variables.
15247 * conf/x86_64-efi.rmk: Likewise.
15248
87d58298
RM
152492009-11-22 Robert Millan <rmh.grub@aybabtu.com>
15250
15251 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
15252 * util/i386/pc/grub-setup.c: Likewise.
15253
994cc3a3
ST
152542009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15255
15256 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
15257 <hurd/fs.h>
15258 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
15259 file_get_storage_info to implement grub_guess_root_device.
15260
26a61d6a
FZ
152612009-11-21 Felix Zielcke <fzielcke@z-51.de>
15262
15263 * Makefile.in (target): Use make's builtin $(shell) function
15264 instead of calling directly $(SHELL) to create the locale directories,
15265 inside the $(foreach) function.
15266
74ff1dd5
FZ
152672009-11-21 Felix Zielcke <fzielcke@z-51.de>
15268
15269 * util/grub-mkrescue.in: Print an error and usage if output option
15270 has not been given.
15271
0b787d0e
FZ
152722009-11-21 Felix Zielcke <fzielcke@z-51.de>
15273
15274 Patch from Loïc Minier <loic.minier@ubuntu.com>.
15275 * util/grub.d/30_os-prober.in: Cope with Linux entries where
15276 root and /boot are on different devices.
15277
1164b270
RM
152782009-11-21 Robert Millan <rmh.grub@aybabtu.com>
15279
15280 Fix build for srcdir != objdir.
15281
15282 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
15283 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
15284 $(srcdir).
15285 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
15286 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
15287 reference for input.
15288
13774a2f
RM
152892009-11-21 Robert Millan <rmh.grub@aybabtu.com>
15290
15291 * util/grub-mkrescue.in: Use source directory direcly (without copiing
15292 or hardlinking it). Remove -J option, Joliet is not compatible with
15293 multiple source directories.
15294
efda854e
RM
152952009-11-21 Carles Pina i Estany <carles@pina.cat>
152962009-11-21 Robert Millan <rmh.grub@aybabtu.com>
15297
15298 * util/grub-mkrescue.in: Recognize `--override-directory' option.
15299 (process_input_dir): New function. Process an arbitrary input
15300 directory.
15301 Misc adjustments to support both "override mode" and system-wide mode.
15302
6c09890c
FZ
153032009-11-20 Felix Zielcke <fzielcke@z-51.de>
15304
15305 * configure.ac (UNIFONT_BDF): Rename to ...
15306 (FONT_SOURCE): ... this. Update all users.
15307
a797824f
FZ
153082009-11-20 Felix Zielcke <fzielcke@z-51.de>
15309
15310 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
15311 to the list of unifont files to look for.
15312
cd4f42b0
RM
153132009-11-19 Robert Millan <rmh.grub@aybabtu.com>
15314
15315 Patch from Joe Auricchio <jauricchio@gmail.com>
15316 * commands/minicmd.c (grub_mini_cmd_clear): New function.
15317 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
15318 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
15319
393c783d
FZ
153202009-11-19 Felix Zielcke <fzielcke@z-51.de>
15321
15322 * Makefile.in (install-local): Add a missing backslash.
15323
b2f1e327
FZ
153242009-11-19 Felix Zielcke <fzielcke@z-51.de>
15325
15326 * include/grub/x86_64/io.h: New file.
15327
f577f7a0
RM
153282009-11-19 Robert Millan <rmh.grub@aybabtu.com>
15329
15330 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
15331 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
15332 Include `"progname.h"'.
15333 (main): Initialize gettext.
15334 * util/i386/pc/grub-setup.c: Gettexttize.
15335 * util/i386/pc/grub-mkimage.c: Likewise.
15336
15337 * Makefile.in (po/*.po): Redefine as ...
15338 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
15339
3bc7896c
RM
15340 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
15341
c37943b6
RM
153422009-11-19 Robert Millan <rmh.grub@aybabtu.com>
15343
15344 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
15345 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
15346 (program_name): Remove.
15347 (main): Initialize gettext support.
6323f705
RM
15348 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
15349 Include `<libintl.h>'.
15350 (_): New macro.
c37943b6
RM
15351
15352 * util/mkisofs/eltorito.c: Gettexttize.
15353 * util/mkisofs/joliet.c: Likewise.
15354 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
15355 * util/mkisofs/multi.c: Likewise.
15356 * util/mkisofs/rock.c: Likewise.
15357 * util/mkisofs/tree.c: Likewise.
15358 * util/mkisofs/write.c: Likewise.
15359
3bc7896c
RM
15360 * po/POTFILES: Update with new files.
15361
5ce77c6e
RM
153622009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15363
15364 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
15365 * util/mkisofs/iso9660.h: Likewise.
15366 * util/mkisofs/joliet.c: Likewise.
15367 * util/mkisofs/mkisofs.c: Likewise.
15368 * util/mkisofs/mkisofs.h: Likewise.
15369 * util/mkisofs/rock.c: Likewise.
15370 * util/mkisofs/tree.c: Likewise.
15371 * util/mkisofs/write.c: Likewise.
15372
15373 * util/mkisofs/eltorito.c (rcsid): Remove.
15374 * util/mkisofs/hash.c: Likewise.
15375 * util/mkisofs/joliet.c: Likewise.
15376 * util/mkisofs/name.c: Likewise.
15377 * util/mkisofs/rock.c: Likewise.
15378 * util/mkisofs/tree.c: Likewise.
15379 * util/mkisofs/write.c: Likewise.
15380
1dabbc77
RM
153812009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15382
15383 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
15384 instead of static allocation.
15385 * util/mkisofs/match.h: Likewise.
15386
633877cb
RM
153872009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15388
3bc7896c
RM
15389 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
15390 and `util/grub.d/10_linux.in'.
633877cb
RM
15391 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
15392 translatable Shell files.
15393
af1c0c85
RM
153942009-11-18 Robert Millan <rmh.grub@aybabtu.com>
15395
15396 * Makefile.in ($(srcdir)/aclocal.m4): New target.
15397
769ae37b
RM
153982009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15399
15400 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 15401 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
15402 * util/grub.d/10_kfreebsd.in (bindir): New variable.
15403 Add gettext initialization.
15404 (kfreebsd_entry): Make menuentry output translatable.
15405
154062009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15407
15408 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
15409 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
15410 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
15411 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
15412 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 15413 * po/LINGUAS: New file.
769ae37b
RM
15414
154152009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15416
15417 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
15418 other things).
15419 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
15420 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
15421 bindtextdomain() calls for gettext initialization.
15422
154232009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15424
15425 * gnulib/progname.c: New file (imported from Gnulib).
15426 * gnulib/progname.h: Likewise.
15427 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
15428 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
15429 (usage): Replace `progname' with `program_name'.
15430 (main): Use set_program_name() for program name initialization.
15431
154322009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15433
15434 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
15435 from here ...
15436 * Makefile.in (CPPFLAGS): ... to here.
15437
154382009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15439
15440 * aclocal.m4: Move from here ...
15441 * acinclude.m4: ... to here.
15442 * autogen.sh: Add call to `aclocal'.
15443 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
15444
154452009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15446
15447 * Makefile.in (CLEANFILES): Add `po/*.mo'.
15448 (LINGUAS): New variable.
15449 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
15450 (install-local): Install MO files.
15451 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
15452 * include/grub/i18n.h: New file.
3bc7896c
RM
15453 * po/POTFILES: New file.
15454 * po/ca.po: New file.
769ae37b
RM
15455 * util/grub.d/10_linux.in (bindir): New variable.
15456 Add gettext initialization.
15457 (linux_entry): Make menuentry output translatable.
15458 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
15459 (usage): Make --help output translatable.
15460 (main): Initialize gettext.
15461
02c0a6ad
RM
154622009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15463
15464 * import_gcry.py: New file (written by Vladimir with minor
15465 adjustments).
15466 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
15467 ciphers.
15468 * INSTALL: Document that Python is required for bootstrap.
15469
154702009-11-17 Robert Millan <rmh.grub@aybabtu.com>
15471
15472 Import ciphers from libgcrypt 1.4.4.
15473
15474 * lib/libgcrypt/cipher/ChangeLog
15475 * lib/libgcrypt/cipher/ac.c
15476 * lib/libgcrypt/cipher/arcfour.c
15477 * lib/libgcrypt/cipher/bithelp.h
15478 * lib/libgcrypt/cipher/blowfish.c
15479 * lib/libgcrypt/cipher/camellia-glue.c
15480 * lib/libgcrypt/cipher/camellia.c
15481 * lib/libgcrypt/cipher/camellia.h
15482 * lib/libgcrypt/cipher/cast5.c
15483 * lib/libgcrypt/cipher/cipher.c
15484 * lib/libgcrypt/cipher/crc.c
15485 * lib/libgcrypt/cipher/des.c
15486 * lib/libgcrypt/cipher/dsa.c
15487 * lib/libgcrypt/cipher/ecc.c
15488 * lib/libgcrypt/cipher/elgamal.c
15489 * lib/libgcrypt/cipher/hash-common.c
15490 * lib/libgcrypt/cipher/hash-common.h
15491 * lib/libgcrypt/cipher/hmac-tests.c
15492 * lib/libgcrypt/cipher/md.c
15493 * lib/libgcrypt/cipher/md4.c
15494 * lib/libgcrypt/cipher/md5.c
15495 * lib/libgcrypt/cipher/primegen.c
15496 * lib/libgcrypt/cipher/pubkey.c
15497 * lib/libgcrypt/cipher/rfc2268.c
15498 * lib/libgcrypt/cipher/rijndael-tables.h
15499 * lib/libgcrypt/cipher/rijndael.c
15500 * lib/libgcrypt/cipher/rmd.h
15501 * lib/libgcrypt/cipher/rmd160.c
15502 * lib/libgcrypt/cipher/rsa.c
15503 * lib/libgcrypt/cipher/seed.c
15504 * lib/libgcrypt/cipher/serpent.c
15505 * lib/libgcrypt/cipher/sha1.c
15506 * lib/libgcrypt/cipher/sha256.c
15507 * lib/libgcrypt/cipher/sha512.c
15508 * lib/libgcrypt/cipher/tiger.c
15509 * lib/libgcrypt/cipher/twofish.c
15510 * lib/libgcrypt/cipher/whirlpool.c
15511
af2f93ac
RM
155122009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15513
15514 Fix build for systems without error().
15515
15516 * gnulib/error.c: New file (imported from Gnulib).
15517 * gnulib/error.h: Likewise.
15518 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
15519 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
15520 (this variable is now used by error()).
15521
73fb3dd5
FZ
155222009-11-16 Felix Zielcke <fzielcke@z-51.de>
15523
814f5e96
FZ
15524 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
15525 instead of relying that char is signed.
73fb3dd5 15526
a691ca33
VS
155272009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15528
15529 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
15530 blocksize different from specified.
15531 (grub_pxefs_read): Likewise.
15532
2af8f0f4
FZ
155332009-11-16 Felix Zielcke <fzielcke@z-51.de>
15534
15535 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
15536
15537 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
15538 (grub_ata_readwrite): Likewise. Update 2 format strings.
15539 (grub_atapi_read): Likewise.
15540
15541 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
15542 * conf/i386.rmk (pkglib_MODULES): ... to here ...
15543 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
15544 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
15545 (ata_mod_LDFLAGS): Move from here ...
15546 * conf/i386.rmk: ... to here ...
15547 * conf/x86_64-efi.rmk: ... and here.
15548 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
15549 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
15550
83bdecaf
RM
155512009-11-16 Robert Millan <rmh.grub@aybabtu.com>
15552
15553 Relicense multiboot.h, with RMS' blessing.
15554
15555 * include/multiboot.h: Change to X11 license.
15556
fd6fd3d7
RM
155572009-11-15 Robert Millan <rmh.grub@aybabtu.com>
15558
15559 Support --version in grub-mkisofs.
15560
15561 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
15562 (OPTION_VERSION): New macro.
15563 (ld_options): Recognize --version.
15564 (usage): Move `program_name' from here ...
15565 (program_name): ... to here. Add `static' qualifier.
15566 (main): Recognize `OPTION_VERSION'.
15567
16a88c49
FZ
155682009-11-15 Felix Zielcke <fzielcke@z-51.de>
15569
15570 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
15571 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
15572
a4158476
RM
155732009-11-14 Robert Millan <rmh.grub@aybabtu.com>
15574
15575 Fix help2man generation for mkisofs.
15576
15577 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
15578 (usage): Send output to stdout (rather than stderr).
15579
fc2208b0
RM
155802009-11-14 Robert Millan <rmh.grub@aybabtu.com>
15581
15582 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
15583 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
15584 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
15585 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
15586 (bin_SCRIPTS): Add `grub-mkfloppy'.
15587 (grub_mkfloppy_SOURCES): New variable.
15588
15589 * util/grub-mkrescue.in: New file.
15590 * util/i386/pc/grub-mkfloppy.in: New file.
15591
15592 * util/i386/coreboot/grub-mkrescue.in: Remove.
15593 * util/i386/pc/grub-mkrescue.in: Remove.
15594
8d0edf4a
RM
155952009-11-13 Robert Millan <rmh.grub@aybabtu.com>
15596
15597 * include/grub/multiboot.h (struct grub_multiboot_header): Move
15598 from here ...
15599 * include/multiboot.h (struct multiboot_header): ... to here. Update
15600 all users.
15601 * include/grub/multiboot.h (struct grub_multiboot_info): Move
15602 from here ...
15603 * include/multiboot.h (struct multiboot_info): ... to here. Update
15604 all users.
15605 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
15606 from here ...
15607 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
15608 Update all users.
15609 * include/grub/multiboot.h (struct grub_mod_list): Move
15610 from here ...
15611 * include/multiboot.h (struct multiboot_mod_list): ... to here.
15612 Update all users.
15613
a73f5969
RM
156142009-11-13 Robert Millan <rmh.grub@aybabtu.com>
15615
15616 * include/multiboot2.h (multiboot_word): Rename from this ...
15617 (multiboot2_word): ... to this. Update all users.
15618 (multiboot_header): Rename from this ...
15619 (multiboot2_header): ... to this. Update all users.
15620 (multiboot_tag_header): Rename from this ...
15621 (multiboot2_tag_header): ... to this. Update all users.
15622 (multiboot_tag_start): Rename from this ...
15623 (multiboot2_tag_start): ... to this. Update all users.
15624 (multiboot_tag_name): Rename from this ...
15625 (multiboot2_tag_name): ... to this. Update all users.
15626 (multiboot_tag_module): Rename from this ...
15627 (multiboot2_tag_module): ... to this. Update all users.
15628 (multiboot_tag_memory): Rename from this ...
15629 (multiboot2_tag_memory): ... to this. Update all users.
15630 (multiboot_tag_unused): Rename from this ...
15631 (multiboot2_tag_unused): ... to this. Update all users.
15632 (multiboot_tag_end): Rename from this ...
15633 (multiboot2_tag_end): ... to this. Update all users.
15634
1c8927f0
RM
156352009-11-13 Robert Millan <rmh.grub@aybabtu.com>
15636
15637 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
15638 this platform we should support Multiboot1 first.
15639
15640 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
15641 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
15642 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
15643
6e1e0d89
RM
156442009-11-12 Robert Millan <rmh.grub@aybabtu.com>
15645
15646 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
15647 of write calls (converting them to fwrite() if they aren't already).
15648 (get_torito_desc): Likewise.
15649 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
15650
7f2b34d8
RM
156512009-11-12 Robert Millan <rmh.grub@aybabtu.com>
15652
15653 * util/i386/pc/grub-install.in: Move from here ...
15654 * util/grub-install.in: ... to here. Update all users.
15655
c0ef3311
CW
156562009-11-11 Colin Watson <cjwatson@ubuntu.com>
15657
15658 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
15659
e1f240ff
RM
156602009-11-11 Robert Millan <rmh.grub@aybabtu.com>
15661
15662 Support for El Torito without floppy emulation.
15663
15664 * util/mkisofs/eltorito.c: Include `<errno.h>'.
15665 (init_boot_catalog): Improve error handling.
15666 (get_torito_desc): Don't use floppy emulation unless requested by
15667 user. Patch boot information table when requested via
15668 `-boot-info-table'.
15669 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
15670 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
15671 (use_boot_info_table): New variables.
15672 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
15673 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
15674 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
15675 `--eltorito-emul-floppy'.
15676 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
15677 and `OPTION_ELTORITO_EMUL_FLOPPY'.
15678 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
15679 (use_boot_info_table, get_731): New prototypes.
15680 * util/mkisofs/write.c (get_731): New function.
15681
af7d4de5
FZ
156822009-11-11 Felix Zielcke <fzielcke@z-51.de>
15683
15684 Fix the generation of the man page.
15685
15686 * util/pc/i386/grub-install.in: Source
15687 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
15688
2c55dbc0
RM
156892009-11-11 Robert Millan <rmh.grub@aybabtu.com>
15690
15691 Large file support for grub-mkisofs.
15692
15693 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
15694 * util/mkisofs/mkisofs.c (next_extent, last_extent)
15695 (session_start): Upgrade type to `uint64_t'. Update all users.
15696 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
15697 (struct directory_entry): Upgrade type of `starting_block' and
15698 `size' to `uint64_t'. Update all users.
15699 (struct deferred): Remove unused structure.
15700 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
15701 Update all users.
15702 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
15703 file is larger than `UINT32_MAX'.
15704 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
15705 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
15706 return value.
15707 (struct deferred_write): Upgrade type of `extent' and `size' to
15708 `uint64_t'. Update all users.
15709 (last_extent_written): Upgrade type to `uint64_t'. Update all
15710 users.
15711 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
15712 Update all users. Upgrade type of `remain' to `int64_t' and
15713 `use' to `size_t'. Use error() to handle fread() errors.
15714 (write_files): Rely on write_one_file() rather than calling
15715 xfwrite() directly.
15716
6a9cead5
FZ
157172009-11-09 Felix Zielcke <fzielcke@z-51.de>
15718
15719 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
15720
4825d790
RM
157212009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15722
15723 * util/mkisofs/fnmatch.c: Remove.
15724 * util/mkisofs/getopt1.c: Likewise.
15725 * util/mkisofs/getopt.c: Likewise.
15726 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
15727 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
15728 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
15729 `gnulib/getopt1.c' and `gnulib/getopt.c'.
15730 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
15731
15732 * configure.ac: Detect `mingw32msvc' host_os.
15733 Check for lstat(), getuid() and getgid().
15734
15735 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
15736 instances of `u_char' with `uint8_t'.
15737
15738 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
15739 [!HAVE_GETUID] (getuid): New function (stub).
15740 [!HAVE_GETGID] (getgid): Likewise.
15741 [!HAVE_LSTAT] (lstat): Likewise.
15742 [!S_IROTH] (S_IROTH): New macro (dummy).
15743 [!S_IRGRP] (S_IRGRP): Likewise.
15744
84b860d8
RM
157452009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15746
15747 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
15748 conditional expression).
15749
66e9b712
RM
157502009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15751
15752 Import from Gnulib.
15753
15754 * gnulib/fnmatch.c: New file.
15755 * gnulib/fnmatch.h: Likewise.
15756 * gnulib/fnmatch_loop.c: Likewise.
15757 * gnulib/getopt.c: Likewise.
15758 * gnulib/getopt.h: Likewise.
15759 * gnulib/getopt1.c: Likewise.
15760 * gnulib/getopt_int.h: Likewise.
15761 * gnulib/gettext.h: Likewise.
15762
34f4a5b0
RM
157632009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15764
15765 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
15766 * normal/handler.c (read_handler_list): Likewise.
15767
ac451143
RM
157682009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15769
15770 Misc cleanup.
15771
15772 * kern/command.c (grub_register_command_prio): Use
15773 grub_zalloc() instead of explicitly zeroing data.
15774 * kern/list.c: Include `<grub/mm.h>'.
15775 (grub_named_list_find): Replace `0' with `NULL'.
15776 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
15777 (fs_module_list): Change type to `grub_named_list_t'. Update all
15778 users.
15779 * normal/dyncmd.c (read_command_list): Add space between function
15780 call and parenthesis.
15781 * normal/handler.c (read_handler_list): Likewise.
15782
4089b167
RM
157832009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15784
15785 * normal/auth.c (punishment_delay): Moved from here ...
15786 (grub_auth_strcmp): ... to here (inside function).
15787
325f5037
RM
157882009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15789
15790 * include/grub/list.h (struct grub_named_list): Remove `const'
15791 qualifier from `name'.
15792 (struct grub_prio_list): Likewise.
15793
7aea29a3
RM
157942009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15795
15796 * normal/auth.c: Include `<grub/time.h>'.
15797 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
15798
3fd6f044
RM
157992009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15800
15801 * normal/auth.c (punishment_delay): New variable.
15802 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
15803 (grub_auth_check_authentication): Punish failed login attempts with
15804 an incremental (2^N) delay.
15805
a4cd68e4
RM
158062009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15807
15808 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
15809 path with $(srcdir).
15810
7ad12f43
VS
158112009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15812
15813 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
15814
c1129f03
RM
158152009-11-09 Robert Millan <rmh.grub@aybabtu.com>
15816
15817 * util/i386/coreboot/grub-mkrescue.in: New file.
15818 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
15819 variables.
15820
15821 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
15822 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
15823 * configure.ac: Add header and function checks to satisfy grub-mkisofs
15824 requirements.
15825 * util/mkisofs/defaults.h: New file.
15826 * util/mkisofs/eltorito.c: Likewise.
15827 * util/mkisofs/exclude.h: Likewise.
15828 * util/mkisofs/fnmatch.c: Likewise.
15829 * util/mkisofs/getopt.c: Likewise.
15830 * util/mkisofs/getopt1.c: Likewise.
15831 * util/mkisofs/hash.c: Likewise.
15832 * util/mkisofs/include/fctldefs.h: Likewise.
15833 * util/mkisofs/include/mconfig.h: Likewise.
15834 * util/mkisofs/include/prototyp.h: Likewise.
15835 * util/mkisofs/include/statdefs.h: Likewise.
15836 * util/mkisofs/iso9660.h: Likewise.
15837 * util/mkisofs/joliet.c: Likewise.
15838 * util/mkisofs/match.c: Likewise.
15839 * util/mkisofs/match.h: Likewise.
15840 * util/mkisofs/mkisofs.c: Likewise.
15841 * util/mkisofs/mkisofs.h: Likewise.
15842 * util/mkisofs/multi.c: Likewise.
15843 * util/mkisofs/name.c: Likewise.
15844 * util/mkisofs/rock.c: Likewise.
15845 * util/mkisofs/tree.c: Likewise.
15846 * util/mkisofs/write.c: Likewise.
15847
ec8bb77d
VS
158482009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
15849
15850 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
15851 being insecure.
15852
3716b12c
RM
158532009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15854
15855 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
15856 `grub-mkimage' (and use $0 when possible).
15857
b97b7b91
RM
158582009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15859
15860 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
15861 error message for excessively large memory map.
15862
04114812
RM
158632009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15864
15865 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
15866 executable bit.
15867
e4eb2373
RM
158682009-11-08 Robert Millan <rmh.grub@aybabtu.com>
15869
15870 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
15871 message for coreboot users.
15872
c926e1d5 158732009-11-07 Robert Millan <rmh.grub@aybabtu.com>
15874
15875 Fix build with GNU gold.
15876
15877 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
15878 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
15879 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
15880 link addresses.
15881 * aclocal.m4: Likewise.
15882
86e5b1db 158832009-11-04 Felix Zielcke <fzielcke@z-51.de>
15884
15885 * configure.ac (AC_PREREQ): Bump to 2.59d.
15886 * INSTALL: Make it more clear when Autoconf and Ruby are
15887 needed and when to run `./autogen.sh'.
15888
246cd78f 158892009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15890
15891 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
15892 OSes.
15893
4f9dfb37 158942009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15895
15896 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
15897
b82bd5e1 158982009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15899
15900 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
15901 giving it to GNU Mach.
15902
ff1a9bca 159032009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15904
15905 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
15906 GNU partition number to get internal GRUB partition number.
15907
61697d9c 159082009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15909
15910 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
15911 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
15912
a50569e1 159132009-11-01 Robert Millan <rmh.grub@aybabtu.com>
15914
15915 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
15916 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
15917 case.
15918
5b153867 159192009-11-01 Felix Zielcke <fzielcke@z-51.de>
15920
15921 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
15922
d9e2cd70 159232009-10-30 Robert Millan <rmh.grub@aybabtu.com>
15924
15925 Fix build problem.
15926
15927 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
15928 `-isystem=$(srcdir)/include'.
15929
805111a4 159302009-10-30 Robert Millan <rmh.grub@aybabtu.com>
15931
15932 * util/i386/pc/grub-install.in: Remove hint that device.map should be
15933 checked (grub-install doesn't currently rely on it).
15934
fa6e945f 159352009-10-29 Robert Millan <rmh.grub@aybabtu.com>
15936
15937 Revert SVN r2660.
15938
15939 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
15940 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
15941 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
15942 * conf/i386-ieee1275.rmk: Likewise.
15943 * conf/i386-pc.rmk: Likewise.
15944 * conf/powerpc-ieee1275.rmk: Likewise.
15945 * conf/sparc64-ieee1275.rmk: Likewise.
15946 * conf/x86_64-efi.rmk: Likewise.
15947
cee15086 159482009-10-28 Robert Millan <rmh.grub@aybabtu.com>
15949
15950 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
15951
95b9239e 159522009-10-28 Robert Millan <rmh.grub@aybabtu.com>
15953
15954 * include/grub/misc.h: Stop checking for APPLE_CC.
15955
2ed19dfd 159562009-10-28 Robert Millan <rmh.grub@aybabtu.com>
15957
15958 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
15959 doesn't cause an infinite call loop.
15960
fdcdde19 159612009-10-28 Felix Zielcke <fzielcke@z-51.de>
15962
15963 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
15964 strings.
15965
cefabfe1 159662009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15967
15968 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
15969 variable.
15970 * Makefile.in: Likewise.
15971
ed96ab6d 159722009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15973
15974 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
15975
0579b753 159762009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15977
15978 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
15979
478df409 159802009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15981
15982 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
15983
083d1679 159842009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15985
15986 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
15987 from here ...
15988 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
15989
5947ae32 159902009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15991
15992 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
15993 in $(MAKEINFO) invocation. This makes it clear in output that
15994 errors are being ignored.
15995
94180ff6 159962009-10-26 Robert Millan <rmh.grub@aybabtu.com>
15997
15998 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
15999 from here ...
16000 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
16001 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
16002 * conf/i386-ieee1275.rmk: Likewise.
16003 * conf/i386-pc.rmk: Likewise.
16004 * conf/powerpc-ieee1275.rmk: Likewise.
16005 * conf/sparc64-ieee1275.rmk: Likewise.
16006 * conf/x86_64-efi.rmk: Likewise.
16007
9031b03a 160082009-10-26 Colin Watson <cjwatson@ubuntu.com>
16009
16010 * util/grub-editenv.c (main): If only a command is given, use
16011 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
16012 (usage): FILENAME is now optional and has a default.
16013
e4f6809b 160142009-10-26 Colin Watson <cjwatson@ubuntu.com>
16015
16016 Improve grub-mkconfig performance when there are several menu
16017 entries on a single filesystem.
16018
16019 * util/grub.d/10_linux.in (linux_entry): Cache the output of
16020 prepare_grub_to_access_device.
16021 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
16022 * util/grub.d/30_os-prober.in: Likewise.
16023
67937d4d 160242009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16025
16026 * util/grub.d/10_freebsd.in: Remove.
16027 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
16028 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
16029
ee3756cc 160302009-10-26 Robert Millan <rmh.grub@aybabtu.com>
16031
5c35048e 16032 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 16033
4dea1c6f 160342009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16035
16036 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
16037 grub_util_error() call.
16038
042484d7 160392009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16040
16041 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
16042 `reserved_first_sector' member.
16043 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
16044 `reserved_first_sector' to 1.
16045 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
16046 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
16047 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
16048 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
16049 filesystems which begin at first sector.
16050 (options): New option --skip-fs-probe.
16051 (main): Handle --skip-fs-probe and pass it to setup().
16052
d64448a7 160532009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16054
16055 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
16056 (memset): Fix function prototype.
16057
508d42ec 160582009-10-25 Robert Millan <rmh.grub@aybabtu.com>
160592009-10-25 Vasily Averin <vvs@parallels.com>
16060
16061 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
16062 `dirent.direntlen == 0'.
16063
b240e30c 160642009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16065
16066 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
16067 `cpio'.
16068 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
16069
346e7fbe 160702009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16071
16072 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
16073 `__trampoline_setup' and `__ucmpdi2'.
16074 * include/grub/powerpc/libgcc.h: Only export symbols for functions
16075 that libgcc provides.
16076
cdb308b0 160772009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16078
16079 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
16080 * include/grub/sparc64/libgcc.h (memset): Likewise.
16081 * include/grub/misc.h (memset, memcmp): New function prototypes.
16082
fb26abc2 160832009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16084
16085 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
16086 `cpio'.
16087 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
16088
f6693890 160892009-10-25 Robert Millan <rmh.grub@aybabtu.com>
16090
16091 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
16092 * docs/grub.cfg: Compensate for recent change in multiboot
16093 loader (since 2009-08-14 it won't pass filename to payload).
16094 * util/grub.d/10_hurd.in: Likewise.
16095
0933cdc0 160962009-10-21 Felix Zielcke <fzielcke@z-51.de>
16097
16098 * config.guess: Update to latest version from config git
16099 repository.
16100 * config.sub: Likewise.
16101
3b2fe8c2 161022009-10-20 Robert Millan <rmh.grub@aybabtu.com>
16103
16104 Fix build on sparc64.
16105
16106 * configure.ac: Perform checks for libgcc symbols before
16107 adding `-nostdlib' to LDFLAGS.
16108
46695a62 161092009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16110
16111 Let user specify OpenBSD root device.
16112
16113 * loader/i386/bsd.c (openbsd_root): New variable.
16114 (openbsd_opts): New option 'root'.
16115 (OPENBSD_ROOT_ARG): New macro.
16116 (grub_openbsd_boot): Use 'openbsd_root'.
16117 (grub_cmd_openbsd): Fill 'openbsd_root'.
16118
d2b6b7fc 161192009-10-16 Robert Millan <rmh.grub@aybabtu.com>
16120
16121 * NEWS: Misc adjustments.
16122
421bd7ac 161232009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16124
16125 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
16126
f1d29d87 161272009-10-16 Robert Millan <rmh.grub@aybabtu.com>
16128
16129 * configure.ac: Bump version to 1.97.
16130
6f3cd880 161312009-10-16 Colin Watson <cjwatson@ubuntu.com>
16132
16133 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
16134 -mno-3dnow on x86 architectures. Some toolchains enable these
16135 features by default, but they rely on registers that aren't enabled
16136 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
16137
035f7122 161382009-10-15 Robert Millan <rmh.grub@aybabtu.com>
16139
16140 Make entry text a bit more readable.
16141
16142 * util/grub.d/10_linux.in: Add `with' before `Linux'.
16143
44998e58 161442009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16145
16146 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
16147
cd2851b3 161482009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16149
16150 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
16151 operations.
16152
c6f3b249 161532009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16154
16155 * configure.ac: Add missing dollar.
16156
6b5886ba 161572009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
16158
16159 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
16160
16161 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
16162 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
16163 exports.
16164 * include/grub/sparc64/libgcc.h: Likewise. Use
16165 preprocessor conditionals.
16166
e9d66f6d 161672009-10-14 Robert Millan <rmh.grub@aybabtu.com>
16168
16169 * conf/common.rmk (grub-dumpbios): Remove rule.
16170 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
16171 * util/grub-dumpbios.in: Remove file.
16172
9155bc17 161732009-10-14 Robert Millan <rmh.grub@aybabtu.com>
16174
16175 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
16176 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
16177
16178 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
16179 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
16180 users.
16181
16182 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
16183 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
16184 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
16185 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
16186 users.
16187
bf7f7a18 161882009-10-12 Robert Millan <rmh.grub@aybabtu.com>
16189
16190 * term/tparm.c: Switch to GPLv3.
16191
86564c26 161922009-10-09 Robert Millan <rmh.grub@aybabtu.com>
16193
16194 * include/grub/i386/cpuid.h: Add header protection.
16195
5c936493 161962009-10-09 Robert Millan <rmh.grub@aybabtu.com>
16197
16198 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
16199
16200 * include/grub/i386/cpuid.h: New file.
16201 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
16202 (has_longmode): Rename to ...
16203 (grub_cpuid_has_longmode): ... this. Update all users. Remove
16204 `static' attribute.
16205 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
16206 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
16207 on a CPU that doesn't implement AMD64 instruction set.
16208
186e7cf2 162092009-10-06 Colin Watson <cjwatson@ubuntu.com>
16210
16211 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
16212 that version.texi is rebuilt on version number changes.
16213
83b65c4a 162142009-10-06 Colin Watson <cjwatson@ubuntu.com>
16215
16216 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
16217 Fixes bug #27602.
16218
d244281c 162192009-10-06 Colin Watson <cjwatson@ubuntu.com>
16220
16221 * util/i386/pc/grub-install.in: Source
16222 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
16223 that the --grub-probe option will work.
16224 * util/sparc64/ieee1275/grub-install.in: Likewise.
16225
da25306d 162262009-10-05 Robert Millan <rmh.grub@aybabtu.com>
16227
16228 * configure.ac: Bump version to 1.97~beta4.
16229
e8ee83c0 162302009-10-03 Robert Millan <rmh.grub@aybabtu.com>
16231
16232 Resync grub-mkdevicemap in x86_64-efi.
16233
16234 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
16235 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
16236 `util/devicemap.c'.
16237
50dcabcf 162382009-10-01 Colin Watson <cjwatson@ubuntu.com>
16239
16240 * util/grub-editenv.c (create_envblk_file): Write new block with a
16241 .new suffix and then rename it into place, to ensure atomic
16242 creation.
16243
0e51c3a7 162442009-09-28 Robert Millan <rmh.grub@aybabtu.com>
16245
16246 Do not automatically install headers.
16247
16248 * Makefile.in (include_DATA): Remove. Update all users.
16249
31299a95 162502009-09-26 Robert Millan <rmh.grub@aybabtu.com>
16251
16252 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
16253 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
16254
16255 * util/osdetect.lua: Remove.
16256 * script/lua/lauxlib.c: Likewise.
16257 * script/lua/ldebug.c: Likewise.
16258 * script/lua/grub_main.c: Likewise.
16259 * script/lua/lauxlib.h: Likewise.
16260 * script/lua/ldebug.h: Likewise.
16261 * script/lua/ltablib.c: Likewise.
16262 * script/lua/liolib.c: Likewise.
16263 * script/lua/lstrlib.c: Likewise.
16264 * script/lua/lualib.h: Likewise.
16265 * script/lua/ldo.c: Likewise.
16266 * script/lua/ldump.c: Likewise.
16267 * script/lua/ldo.h: Likewise.
16268 * script/lua/loslib.c: Likewise.
16269 * script/lua/lundump.c: Likewise.
16270 * script/lua/grub_lib.c: Likewise.
16271 * script/lua/ldblib.c: Likewise.
16272 * script/lua/lundump.h: Likewise.
16273 * script/lua/lmem.c: Likewise.
16274 * script/lua/grub_lib.h: Likewise.
16275 * script/lua/lmathlib.c: Likewise.
16276 * script/lua/lstate.c: Likewise.
16277 * script/lua/ltm.c: Likewise.
16278 * script/lua/lvm.c: Likewise.
16279 * script/lua/lmem.h: Likewise.
16280 * script/lua/lstate.h: Likewise.
16281 * script/lua/ltm.h: Likewise.
16282 * script/lua/ltable.c: Likewise.
16283 * script/lua/lvm.h: Likewise.
16284 * script/lua/llex.c: Likewise.
16285 * script/lua/lgc.c: Likewise.
16286 * script/lua/grub_lua.h: Likewise.
16287 * script/lua/loadlib.c: Likewise.
16288 * script/lua/lfunc.c: Likewise.
16289 * script/lua/lopcodes.c: Likewise.
16290 * script/lua/lparser.c: Likewise.
16291 * script/lua/ltable.h: Likewise.
16292 * script/lua/llex.h: Likewise.
16293 * script/lua/lgc.h: Likewise.
16294 * script/lua/lfunc.h: Likewise.
16295 * script/lua/lbaselib.c: Likewise.
16296 * script/lua/lopcodes.h: Likewise.
16297 * script/lua/lparser.h: Likewise.
16298 * script/lua/lzio.c: Likewise.
16299 * script/lua/linit.c: Likewise.
16300 * script/lua/lobject.c: Likewise.
16301 * script/lua/llimits.h: Likewise.
16302 * script/lua/lstring.c: Likewise.
16303 * script/lua/lzio.h: Likewise.
16304 * script/lua/lapi.c: Likewise.
16305 * script/lua/lcode.c: Likewise.
16306 * script/lua/lua.h: Likewise.
16307 * script/lua/lobject.h: Likewise.
16308 * script/lua/lstring.h: Likewise.
16309 * script/lua/lapi.h: Likewise.
16310 * script/lua/lcode.h: Likewise.
16311 * script/lua/luaconf.h: Likewise.
16312
cb8a2c38 163132009-09-26 Colin Watson <cjwatson@ubuntu.com>
16314
16315 * docs/grub.texi (Command-line and menu entry commands): Document
16316 date and echo commands.
16317
6b9b6276 163182009-09-24 Pavel Roskin <proski@gnu.org>
16319
16320 * include/grub/kernel.h (struct grub_module_header): Remove
16321 `grub_module_header_types'. Make `type' unsigned. Make `size'
16322 32-bit on all platforms.
16323 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
16324 8-bit field. Use grub_host_to_target32() for `size'.
16325 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
16326 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
16327 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
16328
4e5a02a7 163292009-09-24 Robert Millan <rmh.grub@aybabtu.com>
16330
16331 Fix "lost keypress" bug in at_keyboard.
16332
16333 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
16334 Checks for readyness of input buffer (without flushing it).
16335 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
16336 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
16337
c6dcedf6 163382009-09-24 Robert Millan <rmh.grub@aybabtu.com>
16339
16340 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
16341 size check within GRUB_MACHINE_PCBIOS section.
16342
74c958b1 163432009-09-24 Robert Millan <rmh.grub@aybabtu.com>
16344
16345 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
16346 return value.
16347 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
16348 KEYBOARD_ISREADY check.
16349 (grub_at_keyboard_checkkey): Rename to ...
16350 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
16351 Remove gratuitous cast.
16352
ff420223 163532009-09-23 Colin Watson <cjwatson@ubuntu.com>
16354
16355 * configure.ac: Call AC_PROG_MKDIR_P.
16356 * Makefile.in (docs/stamp-vti): Create docs directory. Create
16357 version.texi in $(builddir) rather than $(srcdir).
16358 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
16359 to makeinfo's @include search path.
16360
d96875df 163612009-09-23 Felix Zielcke <fzielcke@z-51.de>
16362
16363 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
16364
9b3f8365 163652009-09-23 Felix Zielcke <fzielcke@z-51.de>
16366
16367 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
16368 for `*.dpkg-new'.
16369
c44c90db 163702009-09-21 Colin Watson <cjwatson@ubuntu.com>
16371
16372 Build info documentation. Some code borrowed from Automake.
16373
16374 * configure.ac: Check for makeinfo.
16375 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
16376 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
16377 docs/version.texi.
16378 (MOSTLYCLEANFILES): Add vti.tmp.
16379 (docs/version.texi, docs/stamp-vti): Update automatically.
16380 (docs/grub.info): Build info documentation. Use --force and ignore
16381 errors for now.
16382 (all-local): Add $(INFOS).
16383 (install-local): Install info files.
16384 (uninstall): Uninstall info files.
16385 * docs/version.texi: Remove from revision control. This file is
16386 automatically generated on build now.
16387 * gendistlist.sh: Add `*.info'.
16388
e0b37bb5 163892009-09-21 Felix Zielcke <fzielcke@z-51.de>
16390
16391 * kern/term.c: Fix indentation.
16392
5a78865b 163932009-09-21 Felix Zielcke <fzielcke@z-51.de>
16394
16395 * util/hostdisk.c: Fix a comment.
16396
dace7e8a 163972009-09-20 Robert Millan <rmh.grub@aybabtu.com>
16398
16399 Fix regression introduced in r2539.
16400
16401 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
16402 to 0xA1.
16403
a83d079b 164042009-09-19 Colin Watson <cjwatson@ubuntu.com>
16405
16406 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 16407 os-prober. Under normal operation, it does not print anything to
16408 stderr; if it does, we need to debug it, and throwing away stderr
16409 makes that excessively difficult.
a83d079b 16410
be94a509 164112009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
16412
16413 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
16414
63f745e8 164152009-09-16 Robert Millan <rmh.grub@aybabtu.com>
16416
16417 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
16418 AC_LANG_PROGRAM from autoconf.
16419 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
16420 prototypes (fixes warning).
16421
16422 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
16423 `--disable-werror' was used.
16424
bbb2a70f 164252009-09-16 Robert Millan <rmh.grub@aybabtu.com>
16426
16427 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
16428 uninitialized `lastaddr'.
16429
77c24f1d 164302009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16431
0f0b8c87 16432 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 16433
07197f23 164342009-09-14 Colin Watson <cjwatson@ubuntu.com>
16435
16436 * commands/test.c (get_fileinfo): Return immediately if
16437 grub_fs_probe fails.
16438
dabf1798 164392009-09-14 José Martínez <xosemp@gmail.com>
16440
16441 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
16442
d52109a7 164432009-09-14 Colin Watson <cjwatson@ubuntu.com>
16444
16445 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
16446 output.
16447
56532179 164482009-09-13 Robert Millan <rmh.grub@aybabtu.com>
16449
16450 * configure.ac: Remove --enable-grub-pe2elf. Only build
16451 grub-pe2elf when needed by the build system itself.
16452 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
16453
8ef070f5 164542009-09-12 Robert Millan <rmh.grub@aybabtu.com>
16455
16456 * configure.ac: Bump version to 1.97~beta3.
16457 * docs/version.texi: Likewise.
16458
61229557 164592009-09-12 Robert Millan <rmh.grub@aybabtu.com>
16460
16461 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
16462 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
16463 from here ...
16464 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
16465 (grub_linux_setup_video): ... to here (with some adjustments).
16466
5c9f8d84 164672009-09-12 Robert Millan <rmh.grub@aybabtu.com>
16468
16469 Fix memory corruption issue (spotted by Colin Watson).
16470
16471 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
16472 causing returned size to be stored in an incorrect memory location.
16473 Fix use of uninitialized value when storing the returned size.
16474
e8f5d6e9 164752009-09-12 Yves Blusseau <blusseau@zetam.org>
16476
16477 Change clean rules to properly remove files
16478
16479 * genmk.rb: add new clean rules
16480 * Makefile.in (clean): add the new targets
16481 (mostlyclean): likewise
16482
cda2a409 164832009-09-11 Colin Watson <cjwatson@ubuntu.com>
16484
16485 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
16486 to grub_uint64_t.
16487 * fs/ntfs.c (init_file): Understand 64-bit sizes for
16488 non-resident files.
16489
86695375 164902009-09-11 Colin Watson <cjwatson@ubuntu.com>
16491
16492 * configure.ac: Don't look for help2man when cross-compiling. Fixes
16493 part of bug #27349.
16494
8aa1541a 164952009-09-10 Felix Zielcke <fzielcke@z-51.de>
16496
16497 * util/grub-mkconfig.in: Make the created config mode 400 and
16498 print a warning if it fails.
16499
48d9bb0a 165002009-09-10 Robert Millan <rmh.grub@aybabtu.com>
16501
16502 * util/grub.d/40_custom.in: Ask user to type custom entries below
16503 comment, rather than below 'exec tail' line.
16504
3b0521be 165052009-09-10 Colin Watson <cjwatson@ubuntu.com>
16506
16507 * util/grub.d/40_custom.in: Make sure that the explanatory text is
16508 visible in grub.cfg.
16509
50051d55 165102009-09-10 Colin Watson <cjwatson@ubuntu.com>
16511
16512 * util/grub.d/40_custom.in: Make it a little clearer how to use this
16513 file.
16514
c0d34387 165152009-09-10 Felix Zielcke <fzielcke@z-51.de>
16516
16517 * docs/grub.cfg: Add an example menu entry for memtest86+.
16518
80a608f3 165192009-09-09 Felix Zielcke <fzielcke@z-51.de>
16520
a2094832 16521 * config.guess: Update to latest version from config git.
80a608f3 16522 * config.sub: Likewise.
16523
99423078 165242009-09-08 Colin Watson <cjwatson@ubuntu.com>
16525
16526 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
16527 unknown-command case. Fixes bug #27320.
16528
44454e4c 165292009-09-08 Felix Zielcke <fzielcke@z-51.de>
16530
16531 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
16532 `help' if the command exists.
16533
e30d87ad 165342009-09-06 Robert Millan <rmh.grub@aybabtu.com>
16535
16536 * INSTALL: Require GCC 4.1.3 or later.
16537
9a86f1ec 165382009-09-06 Yves Blusseau <blusseau@zetam.org>
16539
16540 * Makefile.in (RMKFILES): add i386-qemu.rmk
16541 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
16542 $(srcdir)/stamp-h.in
16543
7f26d466 165442009-09-05 Robert Millan <rmh.grub@aybabtu.com>
16545
16546 * util/grub-probe.c (probe): Comment out buggy codepath, which
16547 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
16548 should be re-enabled after 1.97.
16549
3a613259 165502009-09-05 Felix Zielcke <fzielcke@z-51.de>
16551
16552 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
16553 find searches for.
16554
197f76c7 165552009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
16556
16557 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
16558 unnecessary calls to grub_error.
16559
70ba68ce 165602009-09-04 Colin Watson <cjwatson@ubuntu.com>
16561
16562 * NEWS: Mention `keystatus' and Unicode fonts.
16563
4ff0d7a4 165642009-09-04 Robert Millan <rmh.grub@aybabtu.com>
16565
16566 * configure.ac: Bump version to 1.97~beta2.
16567 * docs/version.texi: Likewise.
16568
77c55a87 165692009-09-03 Colin Watson <cjwatson@ubuntu.com>
16570
16571 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
16572 containing unwind information in some cases where it previously did
16573 not. Use -fno-dwarf2-cfi-asm if available to restore the old
16574 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
16575 discussion.
16576
f79572cd 165772009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
16578
16579 Embedding loadenv module into grub-emu
16580
16581 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
16582 commands/loadenv.c
16583 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
16584 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
16585 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
16586 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
16587 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
16588 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
16589
93a81088 165902009-09-03 Magnus Granberg <zorry@ume.nu>
16591
16592 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
16593 include -fPIE in the default specs.
16594 * configure.ac: Check if pie_possible is yes and add -fno-PIE
16595 to TARGET_CFLAGS.
16596
160034b2 165972009-09-03 Felix Zielcke <fzielcke@z-51.de>
16598
16599 * INSTALL: Note that GNU Bison 2.3 or later is required.
16600
087c07c4 166012009-09-03 Colin Watson <cjwatson@ubuntu.com>
16602
16603 * kern/i386/pc/startup.S: Fix typo.
16604
cbf978c0 166052009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
16606
16607 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
16608 according to GCS.
16609
166102009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 16611
16612 * docs/grub.texi (Naming convention): Describe one-based partition
16613 numbering.
16614 (Device syntax): Likewise.
16615 (File name syntax): Likewise.
16616 (Block list syntax): Likewise.
16617 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
16618 menu.lst.
16619 (File name syntax): Likewise.
16620 (Command-line and menu entry commands): Document acpi, blocklist,
16621 crc, export, insmod, keystatus, ls, set, and unset commands.
16622
f3e8cdfd 166232009-09-02 Colin Watson <cjwatson@ubuntu.com>
16624
16625 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
16626 to avoid implying that only one of --shift, --ctrl, or --alt may be
16627 used.
16628
c0bc232b 166292009-09-02 Colin Watson <cjwatson@ubuntu.com>
16630
16631 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
16632 rather than comparing against S_IFREG, which will almost never work.
16633
aa0f752d 166342009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
16635
16636 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
16637 (write_blocklists): Likewise.
16638
ecb3166a 166392009-09-01 Colin Watson <cjwatson@ubuntu.com>
16640
16641 * script/lua/grub_lua.h (fputs): Supply a format string as the first
16642 argument to grub_printf.
16643
c403a125 166442009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 16645
16646 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 16647 non GNU test.
31aba781 16648
b5e7312c 166492009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16650
16651 * kern/file.c (grub_file_read): Spelling fix
16652
fe00f472 166532009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
16654
16655 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
16656 loading of headers in some cases.
16657
cc55302e 166582009-08-30 Robert Millan <rmh.grub@aybabtu.com>
16659
16660 * configure.ac: Bump version to 1.97~beta1.
16661 * docs/version.texi: Likewise.
16662
5c90cdd2 166632009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 16664
16665 * include/grub/i386/xnu.h: Add license header.
16666 include grub/err.h explicitly.
16667
c90edae4 166682009-08-29 Robert Millan <rmh.grub@aybabtu.com>
16669
16670 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
16671 to `ufs' in the vfs.root.mountfrom kernel parameter.
16672
d8888b5c 166732009-08-29 Robert Millan <rmh.grub@aybabtu.com>
16674
16675 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
16676
16677 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
16678 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
16679
16680 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
16681 `ARRAY_SIZE' macro.
16682
6f07b921 166832009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16684
16685 * kern/file.c (grub_file_read): Check offset.
16686 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
16687 * fs/jfs.c (grub_jfs_read_file): Likewise.
16688 * fs/ntfs.c (grub_ntfs_read): Likewise.
16689 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
16690 * fs/minix.c (grub_minix_read_file): Correct offset check.
16691 * fs/ufs.c (grub_ufs_read_file): Likewise.
16692
b4f34077 166932009-08-28 Colin Watson <cjwatson@ubuntu.com>
16694
16695 * term/i386/pc/console.c (bios_data_area): Cast
16696 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
16697
e7c69859 166982009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16699
16700 1-bit optimised blitters.
16701
16702 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
16703 prototype.
16704 (grub_video_fbblit_replace_24bit_1bit): Likewise.
16705 (grub_video_fbblit_replace_16bit_1bit): Likewise.
16706 (grub_video_fbblit_replace_8bit_1bit): Likewise.
16707 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
16708 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
16709 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
16710 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
16711 function.
16712 (grub_video_fbblit_replace_24bit_1bit): Likewise.
16713 (grub_video_fbblit_replace_16bit_1bit): Likewise.
16714 (grub_video_fbblit_replace_8bit_1bit): Likewise.
16715 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
16716 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
16717 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
16718 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
16719 when possible.
16720 * video/video.c (grub_video_get_blit_format): Return
16721 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
16722
a57da43f 167232009-08-28 Colin Watson <cjwatson@ubuntu.com>
16724
16725 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
16726 the first argument to grub_printf.
16727
4cbe67e5 167282009-08-28 Colin Watson <cjwatson@ubuntu.com>
167292009-08-28 Robert Millan <rmh.grub@aybabtu.com>
16730
16731 Add `getkeystatus' terminal method. Add a new `keystatus' command
16732 to query it.
16733
16734 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
16735 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
16736 modifier key bitmasks.
16737 (struct grub_term_input): Add `getkeystatus' member.
16738 (grub_getkeystatus): Add prototype.
16739 * kern/term.c (grub_getkeystatus): New function.
16740
16741 * include/grub/i386/pc/memory.h
16742 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
16743 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
16744 Data Area layout.
16745 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
16746 (grub_console_term_input): Set `getkeystatus' member.
16747 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
16748 constants.
16749 (grub_usb_keyboard_getreport): Likewise.
16750 (grub_usb_keyboard_checkkey): Likewise.
16751 (grub_usb_keyboard_getkeystatus): New function.
16752 (grub_usb_keyboard_term): Set `getkeystatus' member.
16753
16754 * commands/keystatus.c: New file.
16755 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
16756 (keystatus_mod_SOURCES): New variable.
16757 (keystatus_mod_CFLAGS): Likewise.
16758 (keystatus_mod_LDFLAGS): Likewise.
16759 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
16760 commands/keystatus.c.
16761 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16762 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16763 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16764 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16765 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16766 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 16767
6e2a9085 167682009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
16769
16770 Split befs.mod and afs.mod into *_be.mod and *.mod
16771
16772 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
16773 (grub_fstest_SOURCES): Likewise.
16774 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
16775 (afs_be_mod_SOURCES): New variable.
16776 (afs_be_mod_CFLAGS): Likewise.
16777 (afs_be_mod_LDFLAGS): Likewise.
16778 (befs_be_mod_SOURCES): Likewise.
16779 (befs_be_mod_CFLAGS): Likewise.
16780 (befs_be_mod_LDFLAGS): Likewise.
16781 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
16782 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16783 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16784 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
16785 (grub_emu_SOURCES): Likewise.
16786 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16787 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16788 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16789 * fs/afs_be.c: New file.
16790 * fs/befs_be.c: New file.
16791 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
16792 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
16793 (U16): Replaced with ...
16794 (grub_afs_to_cpu16): ...this. All users updated.
16795 (U32): Replaced with ...
16796 (grub_afs_to_cpu32): ...this. All users updated.
16797 (U64): Replaced with ...
16798 (grub_afs_to_cpu64): ...this. All users updated.
16799 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
16800 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 16801 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 16802 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
16803 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
16804 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
16805 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
16806 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
16807 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
16808 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
16809 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
16810
32a71655 168112009-08-26 Bean <bean123ch@gmail.com>
16812
16813 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
16814 64-bit number.
16815 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
16816 (grub_xfs_inode_block): Change return type to grub_uint64_t.
16817 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
16818
552bf6c5 168192009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16820
16821 NetBSD memory map support.
16822
16823 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
16824 (grub_netbsd_btinfo_mmap_header): New structure.
16825 (grub_netbsd_btinfo_mmap_entry): Likewise.
16826 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
16827
1ae2078c 168282009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16829
16830 Enable bsd.mod on coreboot.
16831
16832 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
16833 (bsd_mod_SOURCES): New variable.
16834 (bsd_mod_CFLAGS): Likewise.
16835 (bsd_mod_LDFLAGS): Likewise.
16836 (bsd_mod_ASFLAGS): Likewise.
16837 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
16838 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
16839
beefc598 168402009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16841
16842 Cleanup NetBSD root support.
16843
16844 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
16845 grub_bsd_get_device.
16846 Fix typo.
16847
3b76e68b 168482009-08-25 Felix Zielcke <fzielcke@z-51.de>
16849
16850 * util/grub.d/00_header.in: Move check for the video backend of
16851 gfxterm from here ...
16852 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
16853 a suitable video backend.
16854
aea664ea 168552009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16856
16857 Fix breakage in grub-setup.
16858
16859 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
16860 "msdos_partition_map".
16861
ff747d50 168622009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16863
16864 Fix breakage in normal/auth.c.
16865
16866 * normal/auth.c (grub_iswordseparator): New function.
16867
e7e1f93f 168682009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
16869
16870 Authentication support.
16871
16872 * commands/password.c: New file.
16873 * conf/common.rmk (pkglib_MODULES): Add password.mod.
16874 (password_mod_SOURCES): New variable.
16875 (password_mod_CFLAGS): Likewise.
16876 (password_mod_LDFLAGS): Likewise.
16877 (normal_mod_SOURCES): Add normal/auth.c.
16878 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
16879 normal/auth.c.
16880 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16881 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16882 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16883 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16884 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16885 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
16886 * include/grub/auth.h: New file.
16887 * include/grub/err.h (grub_err_t): New enum value
16888 GRUB_ERR_ACCESS_DENIED.
16889 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
16890 'users'.
16891 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
16892 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
16893 users updated.
16894 * normal/auth.c: New file.
16895 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
16896 (grub_cmdline_run): Don't allow to go to command line without
16897 authentication.
16898 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
16899 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
16900 menuentry without superuser rights.
16901 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
16902 user isn't a superuser.
16903
70f1161d 169042009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16905
16906 Save space by inlining misc.c functions.
16907
16908 * kern/misc.c (grub_iswordseparator): Made static.
16909 * kern/misc.c (grub_strcat): Moved from here ...
16910 * include/grub/misc.h (grub_strcat): ... here. Inlined.
16911 * kern/misc.c (grub_strncat): Moved from here ...
16912 * include/grub/misc.h (grub_strncat): ... here. Inlined.
16913 * kern/misc.c (grub_strcasecmp): Moved from here ...
16914 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
16915 * kern/misc.c (grub_strncasecmp): Moved from here ...
16916 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
16917 * kern/misc.c (grub_isalpha): Moved from here ...
16918 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
16919 * kern/misc.c (grub_isdigit): Moved from here ...
16920 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
16921 * kern/misc.c (grub_isgraph): Moved from here ...
16922 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
16923 * kern/misc.c (grub_tolower): Moved from here ...
16924 * include/grub/misc.h (grub_tolower): ... here. Inlined.
16925
48e40bff 169262009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16927
16928 * script/sh/function.c (grub_script_function_find): Cut error message
16929 not to flood terminal.
16930 * script/sh/lexer.c (grub_script_yylex): Remove command line length
16931 limit.
16932 * script/sh/script.c (grub_script_arg_add): Duplicate string.
16933
c385bfc3 169342009-08-24 Colin Watson <cjwatson@ubuntu.com>
16935
16936 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
16937 `report' grub_uint8_t *.
16938 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
16939 Use a 50-millisecond timeout rather than just repeating
16940 grub_usb_keyboard_getreport 50 times.
16941 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
16942
2d21e3e8 169432009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16944
16945 Rename *_partition_map to part_*
16946
16947 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
16948 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
16949 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
16950 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
16951 All users updated.
16952 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
16953 All users updated.
16954 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
16955 * util/grub-probe.c (probe_partmap): Don't transform partition name
16956 to get module name.
16957
dd103c4e 169582009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16959
16960 Fix OpenBSD and NetBSD support.
16961
16962 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
16963 memory address conflict.
16964 (OPENBSD_MMAP_ACPI): New definition.
16965 (OPENBSD_MMAP_NVS): Likewise.
16966 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
16967 and OPENBSD_MMAP_NVS.
16968 Add memory map terminator
16969 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 16970 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 16971
16c84d74 169722009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16973
16974 Let user specify NetBSD root device.
16975
16976 * loader/i386/bsd.c (netbsd_root): New variable.
16977 (netbsd_opts): New option 'root'.
16978 (NETBSD_ROOT_ARG): New macro.
16979 (grub_netbsd_boot): Use 'netbsd_root'.
16980 (grub_bsd_unload): Free 'netbsd_root'.
16981 (grub_cmd_netbsd): Fill 'netbsd_root'.
16982
adb29902 169832009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16984
16985 Support for 64-bit NetBSD.
16986
16987 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
16988 point when booting non-FreeBSD.
16989
f5ae9f74 169902009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
16991
16992 Support --no-smp and --no-acpi for NetBSD.
16993
16994 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
16995 (NETBSD_AB_NOACPI): Likewise.
16996 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
16997 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
16998
de74f136 169992009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17000
17001 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
17002 errors.
17003 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
17004 errors. Call grub_error when needed.
17005
e9a925da 170062009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17007
17008 * commands/search.c (search_fs): Try searching without autoload first.
17009 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
17010 filesystem module explicitly for faster booting.
17011
5174302b 170122009-08-23 Colin Watson <cjwatson@ubuntu.com>
17013
17014 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
17015
c8c80635 170162009-08-23 Colin Watson <cjwatson@ubuntu.com>
17017
17018 * util/grub.d/30_os-prober.in: Disable os-prober if
17019 `GRUB_DISABLE_OS_PROBER' was set to true.
17020
71acf5e5 170212009-08-23 Robert Millan <rmh.grub@aybabtu.com>
17022
17023 * partmap/pc.c: Rename to ...
17024 * partmap/msdos.c: ... this. Update all users.
17025 (grub_pc_partition_map): Rename to ...
17026 (grub_msdos_partition_map): ... this. Update all users.
17027
17028 * parttool/pcpart.c: Rename to ...
17029 * parttool/msdospart.c: ... this. Update all users.
17030
17031 * include/grub/pc_partition.h: Rename to ...
17032 * include/grub/msdos_partition.h: ... this. Update all users.
17033 (grub_pc_partition_bsd_entry): Rename to ...
17034 (grub_msdos_partition_bsd_entry): ... this. Update all users.
17035 (grub_pc_partition_disk_label): Rename to ...
17036 (grub_msdos_partition_disk_label): ... this. Update all users.
17037 (grub_pc_partition_entry): Rename to ...
17038 (grub_msdos_partition_entry): ... this. Update all users.
17039 (grub_pc_partition_mbr): Rename to ...
17040 (grub_msdos_partition_mbr): ... this. Update all users.
17041 (grub_pc_partition): Rename to ...
17042 (grub_msdos_partition): ... this. Update all users.
17043 (grub_pc_partition_is_empty): Rename to ...
17044 (grub_msdos_partition_is_empty): ... this. Update all users.
17045 (grub_pc_partition_is_extended): Rename to ...
17046 (grub_msdos_partition_is_extended): ... this. Update all users.
17047 (grub_pc_partition_is_bsd): Rename to ...
17048 (grub_msdos_partition_is_bsd): ... this. Update all users.
17049
17050 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
17051 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
17052 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
17053 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
17054 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
17055 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
17056 (gpt_mod_LDFLAGS): Rename to ...
17057 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
17058 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
17059 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
17060 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
17061 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
17062 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
17063 (part_gpt_mod_LDFLAGS): ... this.
17064 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
17065 `pcpart.mod' to `msdospart.mod'.
17066 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
17067 to ...
17068 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
17069 (msdospart_mod_LDFLAGS): ... this.
17070
c11fded5 170712009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17072
17073 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
17074 (openbsd_opts): Likewise.
17075 (netbsd_opts): Likewise.
17076 (freebsd_flags): Added 0 terminator.
17077 (openbsd_flags): Likewise.
17078 (netbsd_flags): Likewise.
17079 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
17080 (grub_cmd_freebsd): Transformed into extended command.
17081 (grub_cmd_openbsd): Likewise.
17082 (grub_cmd_netbsd): Likewise.
17083 (cmd_freebsd): Changed type to grub_extcmd_t.
17084 (cmd_openbsd): Likewise.
17085 (cmd_netbsd): Likewise.
17086 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
17087 grub_cmd_openbsd as extended commands.
17088 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
17089 cmd_netbsd and cmd_openbsd
17090
11d1c769 170912009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
17092
17093 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
17094
7a9094e5 170952009-08-21 Pavel Roskin <proski@gnu.org>
17096
5496c37e 17097 * Makefile.in (install-local): When checking if a file is in the
17098 build directory, use "test -e" to detect symlinks.
17099
7a9094e5 17100 * Makefile.in (install-local): Remove all files in
17101 $(DESTDIR)$(pkglibdir) before installing new files there.
17102
e53cea11 171032009-08-18 Felix Zielcke <fzielcke@z-51.de>
17104
17105 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
17106 grub-mkelfimage.
17107
9aced544 171082009-08-18 Felix Zielcke <fzielcke@z-51.de>
17109
17110 * util/grub-mkconfig.in: Don't use gfxterm by default if not
17111 explicitly specified by the user.
17112
b7da6bab 171132009-08-18 Pavel Roskin <proski@gnu.org>
17114
17115 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
17116 grub_uint8_t pointer for data.
17117 * include/grub/fbutil.h (struct grub_video_fbblit_info):
17118 Likewise.
17119 * video/fb/fbutil.c: Remove unnecessary casts.
17120
19f1b335 171212009-08-17 Michal Suchanek <hramrach@centrum.cz>
17122
17123 VBE cleanup.
17124
17125 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
17126 (grub_vbe_set_video_mode): Save active mode info
17127 only after setting the mode.
17128 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
17129 second argument.
17130
2f467aa9 171312009-08-17 Michal Suchanek <hramrach@centrum.cz>
17132
17133 Rename variables for clarity.
17134
17135 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
17136 (active_vbe_mode_info): ... this. All users updated.
17137 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
17138 All users updated.
17139 (initial_mode): Rename to ...
17140 (initial_vbe_mode): ... this. All users updated.
17141 (mode_in_use): Rename to ..
17142 (vbe_mode_in_use): ... this. All users updated.
17143 (mode_list): Rename to ..
17144 (vbe_mode_list): ... this. All users updated.
17145 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
17146 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
17147 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
17148 'mode_list_size' to 'vbe_mode_list_size'.
17149 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
17150 'best_mode_info' to 'best_vbe_mode_info' and
17151 'best_mode' to 'best_vbe_mode'
17152
6025fcd7 171532009-08-17 Michal Suchanek <hramrach@centrum.cz>
17154
17155 Remove duplicate grub_video_fb_get_video_ptr.
17156
17157 * include/grub/fbutil.h (get_data_ptr): Rename to ...
17158 (grub_video_fb_get_video_ptr): ... this.
17159 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
17160 * video/fb/fbutil.c: Add comment about addressing.
17161 (get_data_ptr): Rename to ...
17162 (grub_video_fb_get_video_ptr): ... this. All users updated.
17163 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
17164
cc8c6faf 171652009-08-17 Robert Millan <rmh.grub@aybabtu.com>
17166
17167 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
17168 grub_dprintf() that was just added.
17169
08aa61f0 171702009-08-17 Robert Millan <rmh.grub@aybabtu.com>
17171
17172 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
17173 (DEFAULT_VIDEO_MODE): Remove macros.
17174 (grub_linux_boot): Remove assumption that Linux has FB support,
17175 and use "text" as default video mode.
17176
7cef4f75 171772009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
17178
17179 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
17180 grub_dprintf.
17181 * fs/fat.c (grub_fat_read_data): Likewise.
17182
e1f39873 171832009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17184
17185 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
17186 payload.
17187 (grub_module): Likewise.
17188
c166d79e 171892009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17190
17191 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
17192 mbi->cmdline but free playground.
17193
c60cee8e 171942009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17195
17196 Handle group offset on UFS1.
17197
17198 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
17199 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
17200
c0d8b5d4 172012009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17202
17203 Split ufs.mod into ufs1.mod and ufs2.mod.
17204
17205 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
17206 (grub_fstest_SOURCES): Likewise.
17207 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
17208 (ufs_mod_SOURCES): Remove.
17209 (ufs_mod_CFLAGS): Likewise.
17210 (ufs_mod_LDFLAGS): Likewise.
17211 (ufs1_mod_SOURCES): New variable.
17212 (ufs1_mod_CFLAGS): Likewise.
17213 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 17214 (ufs2_mod_SOURCES): New variable.
17215 (ufs2_mod_CFLAGS): Likewise.
17216 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 17217 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
17218 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
17219 Likewise.
17220 (grub_emu_SOURCES): Likewise.
17221 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17222 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17223 (grub_setup_SOURCES): Likewise.
17224 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17225 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
17226 (grub_setup_SOURCES): Likewise.
17227 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
17228 Likewise.
17229 * fs/ufs2.c: New file.
17230 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
17231
d3539132 172322009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
17233
17234 Framebuffer split.
17235
17236 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
17237 subsystem at the end.
17238 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
17239 (video_fb_mod_SOURCES): New variable.
17240 (video_fb_mod_CFLAGS): Likewise.
17241 (video_fb_mod_LDFLAGS): Likewise.
17242 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
17243 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
17244 * video/i386/pc/vbeblit.c: Moved from here ...
17245 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
17246 * video/i386/pc/vbefill.c: Moved from here ...
17247 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
17248 * video/i386/pc/vbeutil.c: Moved from here ...
17249 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
17250 * include/grub/i386/pc/vbeblit.h: Moved from here ...
17251 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
17252 * include/grub/i386/pc/vbefill.h: Moved from here ...
17253 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
17254 * include/grub/i386/pc/vbeutil.h: Moved from here ...
17255 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
17256 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
17257 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
17258 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
17259 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
17260 (grub_video_adapter): Added 'get_info_and_fini'.
17261 (grub_video_get_info_and_fini): New prototype.
17262 (grub_video_set_mode): make modestring const char *.
17263 * loader/i386/linux.c (grub_linux_setup_video): Use
17264 grub_video_get_info_and_fini.
17265 (grub_linux_boot): Move modesetting just before booting.
17266 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
17267 grub_video_get_info_and_fini.
17268 * video/i386/pc/vbe.c: Moved framebuffer part ...
17269 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
17270 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
17271 grub_video_fbstd_colors and grub_video_fb_set_palette.
17272 (grub_video_vbe_init): Clear 'framebuffer' variable and use
17273 grub_video_fb_init.
17274 (grub_video_vbe_fini): Use grub_video_fb_fini.
17275 (grub_video_vbe_setup): Use framebuffer.render_target instead of
17276 render_target and use grub_video_fb_set_active_render_target and
17277 grub_video_fb_set_palette.
17278 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
17279 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
17280 (grub_video_vbe_adapter): Use framebuffer.
17281 * video/video.c (grub_video_get_info_and_fini): New function.
17282 (grub_video_set_mode): Make modestring const char *.
17283 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
17284 values are already initialised.
17285
d404ee56 172862009-08-14 Pavel Roskin <proski@gnu.org>
17287
17288 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
17289 ABS and APPLE_CC.
17290 * boot/i386/pc/diskboot.S: Likewise.
17291 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
17292 sectors allow compilation on MacOSX.
17293 * conf/i386-pc.rmk: Enable unconditional compilation of
17294 lnxboot.img.
17295
9a10df16 172962009-08-13 Colin Watson <cjwatson@ubuntu.com>
17297
17298 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
17299 * util/grub.d/00_header.in: Enter interruptible sleep if
17300 GRUB_HIDDEN_TIMEOUT is set.
17301
be3c9ca7 173022009-08-13 Yves Blusseau <blusseau@zetam.org>
17303
17304 * include/grub/symbol.h: Add the LOCAL macro.
17305 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
17306 starting with "L_".
17307
1f9e557e 173082009-08-13 Pavel Roskin <proski@gnu.org>
17309
9ca62843 17310 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
17311 any modern compilers we support.
17312
1f9e557e 17313 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
17314 Use local labels starting with "L_" so that Apple assembler
17315 knows they are local.
17316
81623db6 173172009-08-10 Robert Millan <rmh.grub@aybabtu.com>
17318
17319 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
17320 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
17321 (bsd_kernel_types): ... this enum.
17322
17323 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
17324 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
17325 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
17326
17327 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
17328 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
17329 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
17330 messages.
17331
f5d35e7a 173322009-08-08 Robert Millan <rmh.grub@aybabtu.com>
17333
17334 * util/grub-dumpdevtree: Moved from here ...
17335 * util/i386/efi/grub-dumpdevtree: ... to here.
17336 (hexify): New function. Converts a string to its hex version.
17337 Generate hex versions of "efi" and "device-properties" by calling
17338 hexify() on the ASCII strings rather than by hardcoding numbers.
17339
d1e1d527 173402009-08-08 Robert Millan <rmh.grub@aybabtu.com>
17341
17342 * fs/jfs.c: Update copyright year.
17343
1ebbe064 173442009-08-08 Felix Zielcke <fzielcke@z-51.de>
17345
17346 * util/grub.d/00_header.in: Fix a comment.
17347 * util/grub.d/10_linux.in: Likewise.
17348 * util/grub.d/10_windows.in: Likewise.
17349 * util/grub.d/10_hurd.in: Likewise.
17350
a78c8d24 173512009-08-08 Felix Zielcke <fzielcke@z-51.de>
17352
17353 * util/grub-mkconfig.in: Allow the user to specify the used font
17354 with GRUB_FONT.
17355
29a6b9e8 173562009-08-08 Pavel Roskin <proski@gnu.org>
17357
b5f16cc4 17358 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
17359 available, xfs.mod needs it now.
17360
2f5cb827 17361 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
17362 the "g" modifier in sed when the intention is to strip something
17363 once. This fixes comparison of kernels with multiple dashes.
17364
29a6b9e8 17365 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
17366 on it. Add missing space before closing bracket. Fix
17367 misleading formatting.
17368
892a3d98 173692009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17370
17371 * docs/grub.texi: Major overhaul. Remove all sections that are
17372 specific to GRUB Legacy, or mostly composed of Legacy-specific
17373 information.
17374
ed94253f 173752009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17376
17377 * docs/version.texi: New file. Provides version information for
17378 grub.texi.
17379
126d6628 173802009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17381
17382 * docs/grub.texi: Update CVS information to SVN.
17383 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
17384
998b5aa9 173852009-08-07 Felix Zielcke <fzielcke@z-51.de>
17386
17387 * util/grub-mkconfig.in: Remove a wrong `fi'.
17388
818e094a 173892009-08-07 Felix Zielcke <fzielcke@z-51.de>
17390
17391 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
17392 (grub_jfs_uuid): New function.
17393 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
17394
b969c52f 173952009-08-07 Felix Zielcke <fzielcke@z-51.de>
17396
17397 * util/grub-mkconfig_lib.in (font_path): Move the functionality
17398 of it to ...
17399 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
17400 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
17401
7a4894cc 174022009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17403
17404 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
17405 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
17406 Update all users.
17407
17408 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
17409 not just "vmlinu[zx]".
17410 Moved from here ...
17411 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
17412 all users.
17413
17414 * util/grub.d/10_linux.in (find_latest): Moved from here ...
17415 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
17416 all users.
17417
4e2171f8 174182009-08-07 Robert Millan <rmh.grub@aybabtu.com>
17419
17420 * util/grub.d/10_freebsd.in: Use an absolute device path for
17421 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
17422
6dcfcb32 174232009-08-06 Felix Zielcke <fzielcke@z-51.de>
17424
17425 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
17426 handling of multiple abstraction modules.
17427
f56a8756 174282009-08-04 Robert Millan <rmh.grub@aybabtu.com>
17429
17430 Fix a bug resulting in black screen when loading Linux using a
17431 packed video mode.
17432
17433 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
17434 function.
17435
17436 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
17437 (grub_vbe_bios_getset_dac_palette_width): New function.
17438 (grub_vbe_bios_get_dac_palette_width)
17439 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
17440 grub_vbe_bios_getset_dac_palette_width()).
17441
17442 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
17443 check for return status.
17444 (grub_vbe_get_video_mode_info): When getting information for a packed
17445 mode (<= 8 bpp), obtain DAC palette width using
17446 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
17447 {red,green,blue}_mark_size.
17448
222671b2 174492009-08-04 Felix Zielcke <fzielcke@z-51.de>
17450
ecb1a6d9 17451 * commands/search.c (options): Fix help output to match actual code.
222671b2 17452
f84114f5 174532009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
17454
17455 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
17456 of homegrown code.
17457
bd288a20 174582009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 17459
17460 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
17461 on XFS or ReiserFS.
17462
8aab5e25 174632009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
17464
17465 Support Apple partition map with sector size different from 512 bytes.
17466
17467 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
17468 (apple_partition_map_iterate): Respect 'aheader.blocksize'
17469 and 'apart.partmap_size'.
17470
6ad6258a 174712009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
174722009-08-01 Robert Millan <rmh.grub@aybabtu.com>
17473
17474 Fix cpuid command.
17475
17476 * commands/i386/cpuid.c (options): New variable.
17477 (grub_cmd_cpuid): Return real error.
17478 (GRUB_MOD_INIT(cpuid)): Declare options.
17479
67459bc6 174802009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
17481
17482 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
17483 valid.
17484
fbc6ab54 174852009-07-31 Bean <bean123ch@gmail.com>
17486
17487 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
17488 log2_inode.
17489 (grub_fshelp_node): Move inode field to the end.
17490 (grub_xfs_data): Remove inode field.
17491 (grub_xfs_inode_block): Calculate inode size using sblock.
17492 (grub_xfs_inode_offset): Likewise.
17493 (grub_xfs_read_inode): Calculate inode size using sblock.
17494 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
17495 (grub_xfs_iterate_dir): Calculate inode size using sblock.
17496 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
17497 to match inode size.
17498 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
17499 not accessible when data is null.
17500 (grub_xfs_open): Likewise.
17501
f45d6cfc 175022009-07-31 Bean <bean123ch@gmail.com>
17503
17504 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
17505 Don't change pv->disk if it's already set.
17506
17507 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
17508 (grub_raid_register): ... here.
17509 (grub_raid_rescan): Removed.
17510
17511 * include/grub/raid.h (grub_raid_rescan): Removed.
17512
17513 * util/grub-fstest.c: Remove include file <grub/raid.h>.
17514 (fstest): Replace grub_raid_rescan with module fini function followed
17515 by init function.
17516
17517 * util/grub-probe.c: Add include file <grub/raid.h>.
17518 (probe_raid_level): New function.
17519 (probe): Detect abstraction by walking the disk device, support two
17520 level of abstraction (LVM on RAID) when detecting partition map.
17521
24443b5a 175222009-07-31 Pavel Roskin <proski@gnu.org>
17523
17524 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
17525 to grub_zalloc(), it was erroneous.
17526 Reported by Bean <bean123ch@gmail.com>
17527
a275d9e7 175282009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
17529
17530 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 17531 embedding zone, not only the first one.
a275d9e7 17532
56c5a47f 175332009-07-29 Joe Auricchio <jauricchio@gmail.com>
17534
17535 * term/gfxterm.c (clear_char): New function.
17536 (grub_virtual_screen_setup): Use clear_char.
17537 (scroll_up): Likewise.
17538 (grub_virtual_screen_cls): Likewise.
17539
67bb323a 175402009-07-29 Felix Zielcke <fzielcke@z-51.de>
17541
17542 * util/deviceiter.c (get_acceleraid_disk_name): New static
17543 function.
17544 (grub_util_iterate_devices): Handle Accelraid devices.
17545 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
17546
388a7c75 175472009-07-28 Robert Millan <rmh.grub@aybabtu.com>
17548
17549 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
17550 separator for the suggested gfxpayload string (';' collides with the
17551 parser and needs escaping).
17552
3bb7abcf 175532009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
17554
17555 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
17556 Clear direction flag before jumping to OS.
17557 (grub_multiboot2_real_boot): Likewise.
17558
2ddd36d7 175592009-07-28 Felix Zielcke <fzielcke@z-51.de>
17560
17561 * util/i386/pc/grub-install: Fix parsing of --disk-module
17562 option.
17563
c521b62b 175642009-07-28 Felix Zielcke <fzielcke@z-51.de>
17565
17566 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
17567 when embedding.
17568
880e0a0c 175692009-07-26 Felix Zielcke <fzielcke@z-51.de>
17570
17571 * util/grub-mkconfig.in (package_version): New variable.
17572 Use it do display the version.
17573
2366e356 175742009-07-25 Felix Zielcke <fzielcke@z-51.de>
17575
17576 * kern/file.c (grub_file_open): Revert to previous check with
17577 grub_errno.
17578
7ad8c80e 175792009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17580
17581 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
17582 from help line. It's out of sync with code.
17583
72b9658b 175842009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17585
17586 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
17587 entries on failed boot.
17588
77435277 175892009-07-25 Felix Zielcke <fzielcke@z-51.de>
17590
17591 * kern/file.c (grub_file_open): Fix an error check.
17592
fcaa8b21 175932009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
17594
35d16c74 17595 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
17596 partition map couldn't be identified.
fcaa8b21 17597
48904cd1 175982009-07-23 Pavel Roskin <proski@gnu.org>
17599
ef3c317f 17600 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
17601 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
17602 case of little endian words becomes just an optimization.
17603 Respect const modifier.
ad8ea1f4 17604 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 17605
48904cd1 17606 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
17607 to avoid loss of upper bits if align is unsigned and shorter
17608 than addr.
17609
260c9a89 176102009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
17611
17612 UUID support for UFS
17613
17614 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
17615 (grub_ufs_uuid): New function.
17616 (grub_ufs_fs): add .uuid
17617
f76ce889 176182009-07-21 Pavel Roskin <proski@gnu.org>
17619
17620 * kern/dl.c (grub_dl_check_header): Make static.
17621
6a6cbcaf 176222009-07-21 Felix Zielcke <fzielcke@z-51.de>
17623
17624 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
17625 add drivemap for Vista. It breaks Windows 7.
17626
cffcddb2 176272009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
17628
17629 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
17630 128 bytes
17631
1ef44b80 176322009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17633
17634 Add BFS support
17635
17636 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
17637 (grub_fstest_SOURCES): Likewise.
17638 (pkglib_MODULES): Add befs.mod.
17639 (befs_mod_SOURCES): New variable.
17640 (befs_mod_CFLAGS): Likewise.
17641 (befs_mod_LDFLAGS): Likewise.
17642 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
17643 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
17644 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17645 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
17646 (grub_setup_SOURCES): Likewise.
17647 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17648 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17649 (grub_setup_SOURCES): Likewise.
17650 * fs/befs.c: New file.
17651 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
17652 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
17653 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
17654 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
17655 (B_KEY_INDEX_ALIGN): New declaration.
17656 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
17657 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
17658 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
17659 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
17660 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
17661 (grub_afs_mount) [MODE_BFS]: Likewise.
17662 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
17663 (grub_afs_fs): Use GRUB_AFS_FSNAME
17664 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
17665 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
17666 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
17667 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
17668
4f253044 176692009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
17670
17671 * util/getroot.c (find_root_device): Add support for MacOSX.
17672 * util/hostdisk.c: Likewise.
17673
57a55913 176742009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17675
17676 * font/font.c (find_glyph): Check whether a font is present to avoid
17677 segmentation fault.
75421ca9 17678
176792009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 17680
17681 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
17682
e98cd0c2 176832009-07-20 Pavel Roskin <proski@gnu.org>
17684
17685 * configure.ac: Trim excessively wordy excuses.
17686
1d2d169a 176872009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17688
17689 Add symlink, mtime and label support to AtheFS.
17690
17691 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
17692 (grub_afs_iterate_dir): Handle symlinks.
17693 (grub_afs_open): Use grub_afs_read_symlink.
17694 (grub_afs_dir): Likewise.
17695 Pass mtime.
17696 (grub_afs_label): New function.
17697 (grub_afs_fs): Add grub_afs_label.
17698 (grub_afs_read_symlink): New function.
17699
186f3189 177002009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
17701
17702 Fix AtheFS support.
17703
17704 * fs/afs.c: Fix comments style.
17705 (grub_afs_blockrun): Declare as packed.
17706 (grub_afs_datastream): Likewise.
17707 (grub_afs_bnode): Likewise.
17708 (grub_afs_btree): Likewise.
17709 (grub_afs_sblock): Likewise.
17710 Declare `name' as char.
17711 (grub_afs_inode): Declare as packed.
17712 Change void *vnode to grub_uint32_t unused.
17713 (grub_afs_iterate_dir): Check that key_size is positive.
17714 (grub_afs_mount): Don't read superblock twice.
75421ca9 17715 (grub_afs_dir): Don't free node in case of error,
186f3189 17716 grub_fshelp_find_file already handles this.
17717 (grub_afs_open): Likewise.
17718
5680109e 177192009-07-19 Pavel Roskin <proski@gnu.org>
17720
17721 * Makefile.in: Remove LIBLZO and enable_lzo.
17722 * conf/i386-pc.rmk: Remove lzo support.
17723 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
17724 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
17725 support.
17726 * kern/i386/pc/lzo1x.S: Remove.
17727 * kern/i386/pc/startup.S: Remove lzo support.
17728 * util/i386/pc/grub-mkimage.c: Likewise.
17729
ac70fa32 177302009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
17731
17732 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
17733 * fs/xfs.c (grub_xfs_dir): Likewise.
17734 * fs/afs.c (grub_afs_dir): Likewise.
17735 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
17736 (grub_iso9660_open): Likewise.
17737 * fs/jfs.c (grub_jfs_open): Likewise.
17738 * fs/ext2.c (grub_ext2_dir): Likewise.
17739 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
17740 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 17741
eab58da2 177422009-07-16 Pavel Roskin <proski@gnu.org>
17743
d2838156 17744 * configure.ac: Never add "-c" to CFLAGS.
17745
55c70904 17746 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
17747
43e6200c 17748 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
17749 grub_cv_cc_efiemu should be used.
17750
ce7a733d 17751 * configure.ac: Typo fixes.
17752
eab58da2 17753 * kern/mm.c (grub_zalloc): New function.
17754 (grub_debug_zalloc): Likewise.
17755 * include/grub/mm.h: Declare grub_zalloc() and
17756 grub_debug_zalloc().
17757 * util/misc.c (grub_zalloc): New function.
17758 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
17759 instead of grub_malloc(), remove unneeded initializations.
17760 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
17761 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
17762 * commands/parttool.c (grub_cmd_parttool): Likewise.
17763 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
17764 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
17765 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
17766 * disk/usbms.c (grub_usbms_finddevs): Likewise.
17767 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
17768 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
17769 (grub_cmd_efiemu_pnvram): Likewise.
17770 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
17771 * fs/iso9660.c (grub_iso9660_mount): Likewise.
17772 (grub_iso9660_iterate_dir): Likewise.
17773 * fs/jfs.c (grub_jfs_opendir): Likewise.
17774 * fs/ntfs.c (list_file): Likewise.
17775 (grub_ntfs_mount): Likewise.
17776 * kern/disk.c (grub_disk_open): Likewise.
17777 * kern/dl.c (grub_dl_load_core): Likewise.
17778 * kern/elf.c (grub_elf_file): Likewise.
17779 * kern/env.c (grub_env_context_open): Likewise.
17780 (grub_env_set): Likewise.
17781 (grub_env_set_data_slot): Likewise.
17782 * kern/file.c (grub_file_open): Likewise.
17783 * kern/fs.c (grub_fs_blocklist_open): Likewise.
17784 * loader/i386/multiboot.c (grub_module): Likewise.
17785 * loader/xnu.c (grub_xnu_create_key): Likewise.
17786 (grub_xnu_create_value): Likewise.
17787 * normal/main.c (grub_normal_add_menu_entry): Likewise.
17788 (read_config_file): Likewise.
17789 * normal/menu_entry.c (make_screen): Likewise.
17790 * partmap/sun.c (sun_partition_map_iterate): Likewise.
17791 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
17792 * script/sh/script.c (grub_script_parse): Likewise.
17793 * video/bitmap.c (grub_video_bitmap_create): Likewise.
17794 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
17795 * video/readers/png.c (grub_png_output_byte): Likewise.
17796 (grub_video_reader_png): Likewise.
17797
830afef7 177982009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 17799
17800 Enable all targets that can be built by default
17801
830afef7 17802 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 17803 grub-mkfont and grub-fstest if they can be built
17804
ee293aee 178052009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17806
17807 Fix hang and segmentation fault in grub-emu-usb
17808
17809 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
17810 * util/usb.c (grub_libusb_devices): likewise
17811 (grub_libusb_init): rename to ...
17812 (GRUB_MOD_INIT (libusb)):...this
17813 (grub_libusb_fini): rename to ..
17814 (GRUB_MOD_FINI (libusb)):...this
17815 * disk/usbms.c (grub_usbms_transfer): fix retry logic
17816 * include/grub/disk.h (grub_raid_init): removed, it's useless
17817 (grub_raid_fini): likewise
17818 (grub_lvm_init): likewise
17819 (grub_lvm_fini): likewise
17820 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
17821 by grub_init_all
17822
94414221 178232009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17824
17825 Fix libusb
17826
17827 * Makefile.in (LIBUSB): new macro
17828 * genmk.rb (Utility/print_tail): new method
17829 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
17830 (top level): call util.print_tail at the end.
17831
59ade63d 178322009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17833
17834 Make FreeBSD accept zpool.cache
17835
17836 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
17837 type is /boot/zfs/zpool.cache
17838
a58da8c7 178392009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
17840
17841 Fix 64-bit efiemu
17842
17843 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
17844 correct wrong typedef
17845 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
17846
20591577 178472009-07-15 Pavel Roskin <proski@gnu.org>
17848
560ca572 17849 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
17850 * kern/disk.c (struct grub_disk_cache): Likewise.
17851
e8e8e4fd 17852 * commands/probe.c (options): Typo fix.
17853
fde24e10 17854 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
17855 Increase to 0x5a to accommodate FAT32. Adjust other offsets
17856 accordingly.
17857 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
17858
379c54c1 17859 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
17860 the end of "Error" to make the message more readable.
17861
7bd8f5bf 17862 * boot/i386/pc/boot.S (kernel_segment): Remove.
17863 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
17864 for destination.
17865
40b132c5 17866 * boot/i386/pc/boot.S (boot_version): Remove.
17867 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17868 Remove.
17869
20591577 17870 * include/grub/i386/pc/boot.h: Sort all offsets.
17871 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
17872 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
17873 * boot/i386/pc/boot.S: Assert location of every offset listed in
17874 include/grub/i386/pc/boot.h.
17875
2df32b2c 178762009-07-13 Pavel Roskin <proski@gnu.org>
17877
44b5d879 17878 * include/grub/i386/coreboot/machine.h: Rename
17879 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
17880 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
17881 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
17882
17dc3751 17883 * kern/dl.c: Force native word size to suppress warnings when
17884 compiling grub-emu.
17885
2df32b2c 17886 * kern/device.c (grub_device_iterate): Change struct part_ent to
17887 hold the name, not a pointer to it. Use one grub_malloc() per
17888 partition, not two. Free partition_name if grub_malloc() fails.
17889 Set ents to NULL only before grub_partition_iterate() is called.
17890
75c59f59 178912009-07-11 Bean <bean123ch@gmail.com>
17892
17893 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
17894 childname.
17895
0ae1bf88 178962009-07-10 Bean <bean123ch@gmail.com>
178972009-07-10 Robert Millan <rmh.grub@aybabtu.com>
17898
17899 * kern/ieee1275/openfw.c (grub_children_iterate)
17900 (grub_devalias_iterate): Fix size evaluation for property or path
17901 strings, which was broken since r2132.
17902
8279cade 179032009-07-07 Pavel Roskin <proski@gnu.org>
17904
7d8a52d3 17905 * commands/search.c (search_file): Merge into ...
17906 (search_fs): ... this. Accept search type as argument.
17907 (grub_cmd_search): Pass search type to search_fs().
17908
25f9a05a 17909 * include/grub/util/console.h: New file.
17910 * util/console.c: Use it instead of grub/machine/console.h.
17911 * util/grub-emu.c: Likewise.
17912
8279cade 17913 * lib/arg.c (find_long_option): Remove.
17914 (find_long): Add `len' argument, make `s' const char *.
17915 (grub_arg_parse): Parse long options in place, not in a
17916 temporary buffer.
17917
4a11b60f 179182009-07-06 Pavel Roskin <proski@gnu.org>
17919
99f68041 17920 * commands/search.c (search_fs): Fix potential NULL pointer
17921 dereference.
17922
4a11b60f 17923 * commands/search.c (search_fs): Replace QUID macro with quid_fn
17924 function pointer.
17925
e110f4de 179262009-07-06 Daniel Mierswa <impulze@impulze.org>
17927
17928 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
17929 comparison.
17930
46eeb6a2 179312009-07-05 Pavel Roskin <proski@gnu.org>
17932
bab74958 17933 * include/grub/i386/linux.h (struct linux_kernel_params):
17934 Restore padding3, it's still needed.
17935
46eeb6a2 17936 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
17937 FreeBSD.
17938 * util/osdetect.lua: Likewise.
17939
b4a1dc79 179402009-07-05 Bean <bean123ch@gmail.com>
17941
17942 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
17943
17944 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
17945 (grub_lua_getenv): Likewise.
17946 (grub_lua_setenv): Likewise.
17947 (save_errno): New function.
17948 (push_result): Likewise.
17949 (grub_lua_enum_device): Likewise.
17950 (grub_lua_enum_file): Likewise.
17951 (grub_lua_file_open): Likewise.
17952 (grub_lua_file_close): Likewise.
17953 (grub_lua_file_seek): Likewise.
17954 (grub_lua_file_read): Likewise.
17955 (grub_lua_file_getline): Likewise.
17956 (grub_lua_file_getsize): Likewise.
17957 (grub_lua_file_getpos): Likewise.
17958 (grub_lua_file_eof): Likewise.
17959 (grub_lua_file_exist): Likewise.
17960 (grub_lua_add_menu): Likewise.
17961
17962 * script/lua/grub_lua.h (isupper): New inline function.
17963 (islower): Likewise.
17964 (ispunct): Likewise.
17965 (isxdigit): Likewise.
17966 (strcspn): Change to normal function.
17967 (strpbkr): New function declaration.
17968 (memchr): Likewise.
17969
17970 * script/lua/grub_main.c (scan_str): New function.
17971 (strcspn): Likewise.
17972 (strpbrk): Likewise.
17973 (memchr): Likewise.
17974
17975 * script/lua/linit.c (lualibs): Enable the string library.
17976
17977 * util/osdetect.lua: New file.
17978
2da92295 179792009-07-04 Robert Millan <rmh.grub@aybabtu.com>
17980
17981 * include/grub/i386/linux.h (struct linux_kernel_params): Add
17982 `capabilities' member.
17983
b2582ec9 179842009-07-02 Pavel Roskin <proski@gnu.org>
17985
17986 * genparttoollist.sh: Add missing newline at the end.
17987
32622956 179882009-07-01 Pavel Roskin <proski@gnu.org>
17989
87a7339e 17990 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
17991
d23af54e 17992 * util/hostdisk.c (open_device): Remove `const' from
17993 `sysctl_size', as sysctlbyname() can change it (in this case it
17994 doesn't actually happen).
17995
c94b18a9 17996 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
17997 using signed long int constants.
17998
c6cd3ef0 17999 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
18000 constant to avoid a warning on FreeBSD.
18001
0df63420 18002 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
18003 where it's needed.
18004
999577f1 18005 * Makefile.in: Install include/grub/machine symlink.
18006
6f41557f 18007 * Makefile.in: When installing symlinks, use "cp -fR", which
18008 works on FreeBSD and MacOSX.
18009 From Yves Blusseau <cl7m42e02@sneakemail.com>
18010
c8d22988 18011 * kern/dl.c (grub_dl_resolve_symbol): Make static.
18012 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
18013
1b96e952 18014 * util/misc.c: Move grub_reboot() and grub_halt() ...
18015 * util/grub-emu.c: ... here. Make main_env static.
18016 * include/grub/util/misc.h: Remove main_env.
18017
2ef0084d 18018 * kern/mm.c: Use correct format to print size_t.
18019
32622956 18020 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
18021 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
18022 * kern/powerpc/dl.c: Likewise.
18023 * kern/sparc64/dl.c: Likewise.
18024 * kern/x86_64/dl.c: Likewise.
18025
3f7f0cd0 180262009-07-01 Robert Millan <rmh.grub@aybabtu.com>
18027
18028 Fix grub-emu build on sparc64-ieee1275.
18029
75421ca9 18030 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 18031 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
18032
211d06b5 180332009-07-01 Robert Millan <rmh.grub@aybabtu.com>
18034
18035 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
18036 (grub_reboot, grub_halt): New functions.
18037
18038 * util/i386/pc/misc.c: Delete. Update all users.
18039 * util/sparc64/ieee1275/misc.c: Likewise.
18040 * util/powerpc/ieee1275/misc.c: Likewise.
18041
aaf53e3c 180422009-07-01 Robert Millan <rmh.grub@aybabtu.com>
18043
18044 * conf/i386.rmk (setjmp_mod_SOURCES)
18045 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
18046 * conf/common.rmk (setjmp_mod_SOURCES)
18047 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
18048 to use $(target_cpu).
18049 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
18050 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
18051 * conf/powerpc-ieee1275.rmk: Likewise.
18052 * conf/sparc64-ieee1275.rmk: Likewise.
18053
18054 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
18055 $(target_cpu) for kern/$(target_cpu)/dl.c.
18056 * conf/i386-efi.rmk: Likewise.
18057 * conf/i386-ieee1275.rmk: Likewise.
18058 * conf/x86_64-efi.rmk: Likewise.
18059 * conf/i386-coreboot.rmk: Likewise.
18060 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
18061 $(target_cpu) for kern/$(target_cpu)/dl.c and for
18062 kern/$(target_cpu)/cache.S.
18063 * conf/sparc64-ieee1275.rmk: Likewise.
18064
a337130b 180652009-07-01 Robert Millan <rmh.grub@aybabtu.com>
18066
18067 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
18068 type to `grub_uint8_t', and adjust `padding9' accordingly.
18069
c6fe4d53 180702009-06-29 Robert Millan <rmh.grub@aybabtu.com>
18071
b09db61d 18072 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
18073
c6fe4d53 18074 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
18075 assembly in final jump, using register constraints.
18076
b09db61d 18077 (grub_linux_boot): For text mode, initialize `have_vga' using
18078 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
18079
18080 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
18081 right before the final jump.
18082
18083 Set `video_mode' to 0x3.
18084
18085 Document initialization of `video_page', `video_mode' and
18086 `video_ega_bx'.
18087
28333ad0 180882009-06-29 Robert Millan <rmh.grub@aybabtu.com>
18089
18090 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
18091 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 18092 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 18093
02164e1b 180942009-06-29 Robert Millan <rmh.grub@aybabtu.com>
18095
18096 Fix build on Debian / sparc.
18097
18098 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
18099
18b6c557 181002009-06-28 Pavel Roskin <proski@gnu.org>
18101
85f2aab6 18102 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
18103 fix a warning.
18104
18b6c557 18105 * util/grub.d/10_linux.in: Match SUSE style initrd names.
18106
ad760f81 181072009-06-27 Robert Millan <rmh.grub@aybabtu.com>
18108
18109 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
18110 `err'.
18111
87a4623b 181122009-06-27 Robert Millan <rmh.grub@aybabtu.com>
18113
18114 Revert r2338.
18115
18116 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
18117 file can't be opened. grub_file_open() is already supposed to set
75421ca9 18118 grub_errno / grub_errmsg appropriately.
87a4623b 18119 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18120
8231fb77 181212009-06-27 Pavel Roskin <proski@gnu.org>
181222009-06-27 Robert Millan <rmh.grub@aybabtu.com>
18123
18124 * include/grub/dl.h: Include grub/elf.h.
18125 (struct grub_dl): Add symtab field.
18126 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
18127 GRUB_MODULES_MACHINE_READONLY.
18128 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
18129 of the header for read-only modules.
18130 (grub_dl_unload): Free mod->symtab for read-only modules.
18131 * kern/i386/dl.c: Use mod->symtab.
18132 * kern/powerpc/dl.c: Likewise.
18133 * kern/sparc64/dl.c: Likewise.
18134 * kern/x86_64/dl.c: Likewise.
18135
18136 * conf/i386-qemu.rmk: New file.
18137 * kern/i386/qemu/startup.S: Likewise.
18138 * kern/i386/qemu/mmap.c: Likewise.
18139 * boot/i386/qemu/boot.S: Likewise.
18140 * include/grub/i386/qemu/time.h: Likewise.
18141 * include/grub/i386/qemu/serial.h: Likewise.
18142 * include/grub/i386/qemu/kernel.h: Likewise.
18143 * include/grub/i386/qemu/console.h: Likewise.
18144 * include/grub/i386/qemu/boot.h: Likewise.
18145 * include/grub/i386/qemu/init.h: Likewise.
18146 * include/grub/i386/qemu/machine.h: Likewise.
18147 * include/grub/i386/qemu/loader.h: Likewise.
18148 * include/grub/i386/qemu/memory.h: Likewise.
18149
18150 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
18151 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
18152 [qemu] (pkglib_IMAGES): Add `boot.img'.
18153 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
18154 [qemu] (boot_img_FORMAT): New variables.
18155 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
18156 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
18157 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
18158 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
18159 [qemu] (kernel_img_FORMAT): New variables.
18160
18161 * configure.ac: Recognise `i386-qemu'.
18162
18163 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
18164 (for no compression).
18165 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
18166 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
18167 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
18168 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
18169 ifdefs).
18170
97fe384e 181712009-06-27 Pavel Roskin <proski@gnu.org>
18172
18173 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
18174 read.
18175 * efiemu/prepare32.c: Likewise.
18176 * efiemu/prepare64.c: Likewise.
18177
c402ab17 181782009-06-26 Pavel Roskin <proski@gnu.org>
18179
18180 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
18181 * include/grub/elf.h: Define symbols without "32" or "64" based
18182 on GRUB_TARGET_WORDSIZE.
18183 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
18184 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
18185 ELF definitions.
18186 * efiemu/loadcore64.c: Likewise.
18187 * loader/i386/bsd32.c: Likewise.
18188 * loader/i386/bsd64.c: Likewise.
18189 * kern/dl.c: Remove own ELF definitions.
18190 * util/i386/efi/grub-mkimage.c: Likewise.
18191
9bbdfd4d 181922009-06-23 Robert Millan <rmh.grub@aybabtu.com>
18193
18194 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
18195 segment 0x0 unconditionally, because the reference generated by
18196 GAS is an absolute address.
18197
a42ce6e9 181982009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18199
18200 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
18201 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
18202
c952cf92 182032009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18204
18205 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
18206 indexes. Check for -f explicitly.
cc3752ad 18207 (search_file): Improve error message.
18208 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 18209
132a0a59 182102009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18211
18212 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
18213 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
18214
387a140c 182152009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18216
18217 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
18218 * conf/i386-ieee1275.rmk: Likewise.
18219 * conf/i386-coreboot.rmk: Likewise.
18220
18221 * kern/i386/pc/startup.S (grub_stop): Remove function.
18222 * kern/i386/ieee1275/startup.S: Likewise.
18223 * kern/i386/coreboot/startup.S: Likewise.
18224 * kern/i386/misc.S (grub_stop): New function.
18225
41da9665 182262009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18227
18228 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
18229 * kern/i386/realmode.S (real_to_prot): ... to here.
18230
bf337234 182312009-06-22 Robert Millan <rmh.grub@aybabtu.com>
18232
18233 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
18234 with `kernel.img'.
18235 (kernel_elf_SOURCES): Rename to ...
18236 (kernel_img_SOURCES): ... this.
18237 (kernel_elf_HEADERS): Rename to ...
18238 (kernel_img_HEADERS): ... this. Update all users.
18239 (kernel_elf_ASFLAGS): Rename to ...
18240 (kernel_img_ASFLAGS): ... this.
18241 (kernel_elf_CFLAGS): Rename to ...
18242 (kernel_img_CFLAGS): ... this.
18243 (kernel_elf_LDFLAGS): Rename to ...
18244 (kernel_img_LDFLAGS): ... this.
18245 * conf/i386-coreboot.rmk: Likewise.
18246 * conf/powerpc-ieee1275.rmk: Likewise.
18247
18248 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
18249 with "kernel.img".
18250
f52196ff 182512009-06-21 Pavel Roskin <proski@gnu.org>
18252
c3cee413 18253 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
18254 to match nested functions.
18255 * loader/sparc64/ieee1275/linux.c: Likewise.
18256
f52196ff 18257 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
18258
58750afc 182592009-06-21 Robert Millan <rmh.grub@aybabtu.com>
18260
18261 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
18262 all i386 platforms.
18263
15355c7d 182642009-06-21 Robert Millan <rmh.grub@aybabtu.com>
18265
18266 Fix asm file handling on ELF, and remove workarounds.
18267
18268 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 18269 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 18270 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
18271 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
18272
3f3ec72b 182732009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
18274
18275 Load BSD ELF modules
18276
18277 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
18278 and loader/i386/bsd64.c
18279 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
18280 (FREEBSD_MODTYPE_ELF_MODULE): New definition
18281 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
18282 (grub_freebsd_load_elfmodule32): New declaration
18283 (grub_freebsd_load_elfmoduleobj64): Likewise
18284 (grub_freebsd_load_elf_meta32): Likewise
18285 (grub_freebsd_load_elf_meta64): Likewise
18286 (grub_freebsd_add_meta): Likewise
18287 (grub_freebsd_add_meta_module): Likewise
18288 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
18289 (grub_freebsd_add_meta_module): Likewise and move module-specific
18290 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
18291 (grub_cmd_freebsd): Add elf-kernel specific parts
18292 based on grub_freebsd_add_meta_module
18293 (grub_cmd_freebsd_module): Add type parsing moved from
18294 grub_freebsd_add_meta_module
18295 (grub_cmd_freebsd_module_elf): New function
18296 (cmd_freebsd_module_elf): New variable
18297 (GRUB_MOD_INIT): Register freebsd_module_elf
18298 * loader/i386/bsd32.c: New file
18299 * loader/i386/bsd64.c: Likewise
18300 * loader/i386/bsdXX.c: Likewise
18301 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
18302 (grub_elf64_load): Likewise
18303 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
18304 All users updated
18305 (grub_elf64_load_hook_t): Likewise
18306
0db15301 183072009-06-21 Colin Watson <cjwatson@ubuntu.com>
18308
18309 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
18310 variable.
18311 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
18312 don't write a menu entry for recovery mode.
18313
546796c1 183142009-06-20 Robert Millan <rmh.grub@aybabtu.com>
18315
18316 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
18317 after it's no longer needed.
18318
cd7310d5 183192009-06-20 Robert Millan <rmh.grub@aybabtu.com>
18320
18321 * include/grub/i386/loader.h (grub_linux_prot_size)
18322 (grub_linux_tmp_addr, grub_linux_real_addr)
18323 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
18324 GRUB_MACHINE_PCBIOS.
18325 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
18326 common grub_util_info() call to ...
18327 (generate_image): ... here.
18328 Fix use of uninitialized memory, comparison of signed with
18329 unsigned integers and memory leak.
18330 Remove bogus module address message.
18331
ab32d3b5 183322009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
18333
18334 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
18335 grub_raid_register
18336 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
18337
024ef597 183382009-06-19 Pavel Roskin <proski@gnu.org>
18339
18340 * configure.ac: Remove stray AC_MSG_CHECKING.
18341
3ac72b51 183422009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
18343
18344 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 18345
e14cd814 183462009-06-18 Pavel Roskin <proski@gnu.org>
18347
18348 * conf/common.rmk: Add fs_file.mod.
18349 * disk/fs_file.c: New file.
18350 * include/grub/disk.h (enum grub_disk_dev_id): Add
18351 GRUB_DISK_DEVICE_FILE_ID.
18352
26586d98 183532009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
18354
18355 Fix build with Apple's toolchain. Part 2
18356
18357 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
18358 a fake start
18359
26de2bcd 183602009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
18361
18362 Fix build with Apple's toolchain. Part 1
18363
18364 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
18365 for long calls
18366 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 18367 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 18368 Apple's toolchain
18369
09b3490b 183702009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
18371
18372 Fix warnings
18373
18374 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
18375 (decomp_block): initialize ch
18376 use grub_memcpy instead of memcpy
18377
c22a006a 183782009-06-17 Pavel Roskin <proski@gnu.org>
18379
d3638678 18380 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
18381 version, use declarations needed to use vga_text as the startup
18382 console.
18383
c22a006a 18384 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
18385 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
18386 the kernel.
18387 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
18388 and grub_at_keyboard_fini(), it's done on module load and
18389 unload.
18390
05b129e0 183912009-06-17 Felix Zielcke <fzielcke@z-51.de>
18392
18393 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
18394 file can't be found.
18395 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18396
cf24ed9e 183972009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
18398
18399 Fix newline handling
18400
18401 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 18402 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 18403 (grub_script_yylex): don't segfault on unterminated script
18404 newline terminates command and variable
18405
74aa8e4b 184062009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
18407
18408 avoid double grub_adjust_range call. Bug reported by David Simner
18409
18410 * kern/disk.c (grub_disk_write): change to raw disk access before
18411 calling disk_read
18412
1bd265f3 184132009-06-17 Colin Watson <cjwatson@ubuntu.com>
18414
18415 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
18416 spaces, for the benefit of help2man.
18417 * util/i386/efi/grub-mkimage.c (usage): Likewise.
18418
a2d08c06 184192009-06-16 Pavel Roskin <proski@gnu.org>
18420
18421 * kern/i386/halt.c: Include grub/machine/init.h.
18422 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
18423
b97bcb19 184242009-06-16 Felix Zielcke <fzielcke@z-51.de>
18425
18426 * util/grub.d/30_os-prober.in: Use ${root} in the generated
18427 drivemap menuentry.
18428
0644f96c 184292009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
18430
18431 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
18432 `echo' command.
18433
3ef17a2e 184342009-06-16 Pavel Roskin <proski@gnu.org>
18435
18436 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
18437 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
18438 save %dx, we only need %dl and we never change it.
18439 * boot/i386/pc/cdboot.S: Don't set the root drive.
18440 * boot/i386/pc/pxeboot.S: Likewise.
18441 * include/grub/i386/pc/boot.h: Remove
18442 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
18443 GRUB_BOOT_MACHINE_DRIVE_CHECK.
18444 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
18445 * kern/i386/pc/init.c (make_install_device): Remove references
18446 to grub_root_drive.
18447 * kern/i386/pc/startup.S: Likewise.
18448 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
18449
693fe637 184502009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
18451
18452 xnu_uuid command
18453
18454 * commands/xnu_uuid.c: new file
18455 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
18456 (xnu_uuid_mod_SOURCES): new variable
18457 (xnu_uuid_mod_CFLAGS): likewise
18458 (xnu_uuid_mod_LDFLAGS): likewise
18459 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
18460 * conf/i386-ieee1275.rmk: likewise
18461 * conf/i386-pc.rmk: likewise
18462 * conf/powerpc-ieee1275.rmk: likewise
18463 * conf/sparc64-ieee1275.rmk: likewise
18464 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
18465
c9da87d0 184662009-06-16 Pavel Roskin <proski@gnu.org>
18467
18468 * configure.ac: Avoid '==' in test command, it's not portable.
18469
9c6f4596 184702009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
18471
18472 Probe command
18473
18474 * commands/probe.c: new file
18475 * conf/common.rmk (pkglib_MODULES): add probe.mod
18476 (probe_mod_SOURCES): new variable
18477 (probe_mod_CFLAGS): likewise
18478 (probe_mod_LDFLAGS): likewise
18479 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
18480 * conf/i386-ieee1275.rmk: likewise
18481 * conf/i386-pc.rmk: likewise
18482 * conf/powerpc-ieee1275.rmk: likewise
18483 * conf/sparc64-ieee1275.rmk: likewise
18484
70b7f9fd 184852009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
18486
18487 Fix handling of string like \"hello\" and "a
18488 b"
18489
18490 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
18491 (grub_script_yylex): fix parsing of quoting, escaping and newline
18492
71c79a6b 184932009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
18494
dd74360c 18495 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 18496 handling
dd74360c 18497
0644f96c 184982009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 18499
18500 * util/grub-mkconfig.in: Fix parsing of --output option.
18501
e40893c3 185022009-06-12 Pavel Roskin <proski@gnu.org>
18503
18504 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
18505 genmk.rb don't need to be generated or installed.
18506
3a1acfe2 185072009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
18508
18509 * commands/i386/pc/drivemap_int13h.S: add more comments
18510
3a4575d4 185112009-06-11 Pavel Roskin <proski@gnu.org>
18512
0658e928 18513 * Makefile.in (uninstall): Uninstall manuals.
18514
ca0388f0 18515 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
18516 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
18517 and update-grub_lib in two places.
18518 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
18519
e3b27c39 18520 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
18521 a compiler warning.
18522
3a4575d4 18523 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
18524 `entry_lo' to fix variable shadowing.
18525
af1f4f55 185262009-06-11 Christian Franke <franke@computer.org>
18527
18528 * kern/misc.c (__enable_execute_stack): Add missing return type
18529 to prevent gcc warning.
18530
5225e649 185312009-06-11 Felix Zielcke <fzielcke@z-51.de>
18532
18533 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
18534
7d83bd47 185352009-06-11 Pavel Roskin <proski@gnu.org>
18536
c1cb63ba 18537 * Makefile.in: Don't rely on any scripts being executable.
18538 Always use $(SHELL) to run shell scripts.
18539
7d83bd47 18540 * configure.ac: Always define ___main if using -nostdlib. This
18541 fixes tests on Cygwin.
18542
948f48e7 185432009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
18544
18545 UDF fix
18546
7d83bd47 18547 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 18548 is in bytes and not in blocks
7d83bd47 18549
8ada9bc1 185502009-06-11 Pavel Roskin <proski@gnu.org>
18551
18552 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
18553 warning.
18554
25ad2323 185552009-06-11 Felix Zielcke <fzielcke@z-51.de>
18556
18557 * util/grub.d/30_os-prober.in: Fix a comment. Source
18558 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
18559 to set the root device. Place drivemap command in the generated
18560 chain entry.
18561
e65acb0c 185622009-06-11 Pavel Roskin <proski@gnu.org>
18563
18564 * configure.ac: Remove host_m32. Issues with 64-bit utilities
18565 have long been resolved.
18566
f285fe2d 185672009-06-11 Colin Watson <cjwatson@ubuntu.com>
18568
bd47b0b5 18569 * util/grub.d/10_linux.in: Capitalise "Linux".
18570
f285fe2d 18571 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
18572
a0c62e4e 185732009-06-11 Pavel Roskin <proski@gnu.org>
18574
b6783cb2 18575 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
18576 fix a gcc warning and ensure that the function won't ever exit.
18577
dde032e8 18578 * kern/i386/ieee1275/init.c: Add missing prototype for
18579 grub_stop_floppy().
18580
22cd079d 18581 * loader/ieee1275/multiboot2.c [__i386__]: Include
18582 grub/cpu/multiboot.h.
18583
a0c62e4e 18584 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
18585 casts to short - they are not portable and cause warnings. Fix
18586 use of uninitialized values in input_buf. Use ARRAY_SIZE.
18587
63963d17 185882009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
18589
18590 Drivemap fixes
18591
18592 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
18593 new function
18594 (grub_get_root_biosnumber_saved): new variable
18595 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
18596 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 18597 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 18598 %dx after the call if necessary
18599 * conf/common.rmk (pkglib_MODULES): remove boot.mod
18600 (boot_mod_SOURCES): remove
18601 (boot_mod_CFLAGS): remove
18602 (boot_mod_LDFLAGS): remove
18603 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
18604 (boot_mod_SOURCES): new variable
18605 (boot_mod_CFLAGS): likewise
18606 (boot_mod_LDFLAGS): likewise
18607 * conf/i386-efi.rmk: likewise
18608 * conf/i386-ieee1275.rmk: likewise
18609 * conf/i386-pc.rmk: likewise
18610 * conf/powerpc-ieee1275.rmk: likewise
18611 * conf/sparc64-ieee1275.rmk: likewise
18612 * conf/x86_64-efi.rmk: likewise
18613 * include/grub/i386/pc/biosnum.h: new file
18614 * lib/i386/pc/biosnum.c: likewise
18615 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
18616 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
18617 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 18618
33abf7ae 186192009-06-10 Pavel Roskin <proski@gnu.org>
18620
5ac35b35 18621 * io/gzio.c (test_header): Don't reuse one buffer for all data.
18622 Use separate variables. Read only the file size at the end, but
18623 not the checksum that we don't use.
18624
5c5215d5 18625 * kern/file.c (grub_file_read): Use void pointer for the buffer.
18626 Adjust all callers.
18627
27d5fef7 18628 * kern/ieee1275/openfw.c: Remove libc includes.
18629 * kern/ieee1275/cmain.c: Likewise.
18630 * include/grub/ieee1275/ieee1275.h: Likewise.
18631
33abf7ae 18632 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
18633 compiler warnings.
18634
19d50c2b 186352009-06-10 Felix Zielcke <fzielcke@z-51.de>
18636
18637 * Makefile.in: Remove all trailing whitespace.
18638 * conf/i386-pc.rmk: Likewise.
18639 * conf/powerpc-ieee1275.rmk: Likewise.
18640 * conf/sparc64-ieee1275.rmk: Likewise.
18641 * docs/grub.texi: Likewise.
18642 * docs/texinfo.tex: Likewise.
18643 * disk/fs_uuid.c: Likewise.
18644 * disk/lvm.c: Likewise.
18645 * disk/scsi.c: Likewise.
18646 * disk/ata.c: Likewise.
18647 * disk/ieee1275/ofdisk.c: Likewise.
18648 * disk/i386/pc/biosdisk.c: Likewise.
18649 * disk/host.c: Likewise.
18650 * disk/raid.c: Likewise.
18651 * disk/efi/efidisk.c: Likewise.
18652 * disk/usbms.c: Likewise.
18653 * disk/memdisk.c: Likewise.
18654 * disk/loopback.c: Likewise.
18655 * kern/powerpc/dl.c: Likewise.
18656 * kern/device.c: Likewise.
18657 * kern/dl.c: Likewise.
18658 * kern/sparc64/dl.c: Likewise.
18659 * kern/ieee1275/ieee1275.c: Likewise.
18660 * kern/term.c: Likewise.
18661 * kern/fs.c: Likewise.
18662 * kern/i386/dl.c: Likewise.
18663 * kern/i386/pc/startup.S: Likewise.
18664 * kern/i386/pc/init.c: Likewise.
18665 * kern/i386/pc/mmap.c: Likewise.
18666 * kern/i386/pc/lzo1x.S: Likewise.
18667 * kern/i386/ieee1275/init.c: Likewise.
18668 * kern/i386/realmode.S: Likewise.
18669 * kern/i386/tsc.c: Likewise.
18670 * kern/partition.c: Likewise.
18671 * kern/corecmd.c: Likewise.
18672 * kern/file.c: Likewise.
18673 * kern/efi/efi.c: Likewise.
18674 * kern/efi/init.c: Likewise.
18675 * kern/efi/mm.c: Likewise.
18676 * kern/main.c: Likewise.
18677 * kern/err.c: Likewise.
18678 * kern/env.c: Likewise.
18679 * kern/disk.c: Likewise.
18680 * kern/generic/millisleep.c: Likewise.
18681 * kern/generic/rtc_get_time_ms.c: Likewise.
18682 * kern/misc.c: Likewise.
18683 * kern/parser.c: Likewise.
18684 * genmk.rb: Likewise.
18685 * configure.ac: Likewise.
18686 * boot/i386/pc/diskboot.S: Likewise.
18687 * boot/i386/pc/pxeboot.S: Likewise.
18688 * boot/i386/pc/boot.S: Likewise.
18689 * boot/i386/pc/lnxboot.S: Likewise.
18690 * boot/i386/pc/cdboot.S: Likewise.
18691 * parttool/pcpart.c: Likewise.
18692 * video/readers/tga.c: Likewise.
18693 * video/video.c: Likewise.
18694 * video/bitmap.c: Likewise.
18695 * lib/envblk.c: Likewise.
18696 * lib/i386/setjmp.S: Likewise.
18697 * fs/xfs.c: Likewise.
18698 * fs/afs.c: Likewise.
18699 * fs/fat.c: Likewise.
18700 * fs/ntfs.c: Likewise.
18701 * fs/udf.c: Likewise.
18702 * fs/affs.c: Likewise.
18703 * fs/iso9660.c: Likewise.
18704 * fs/hfs.c: Likewise.
18705 * fs/fshelp.c: Likewise.
18706 * fs/ext2.c: Likewise.
18707 * fs/jfs.c: Likewise.
18708 * fs/reiserfs.c: Likewise.
18709 * fs/hfsplus.c: Likewise.
18710 * fs/minix.c: Likewise.
18711 * fs/cpio.c: Likewise.
18712 * fs/sfs.c: Likewise.
18713 * fs/ufs.c: Likewise.
18714 * efiemu/prepare.c: Likewise.
18715 * efiemu/loadcore_common.c: Likewise.
18716 * efiemu/runtime/efiemu.sh: Likewise.
18717 * efiemu/runtime/efiemu.S: Likewise.
18718 * efiemu/runtime/efiemu.c: Likewise.
18719 * efiemu/pnvram.c: Likewise.
18720 * efiemu/main.c: Likewise.
18721 * efiemu/i386/pc/cfgtables.c: Likewise.
18722 * efiemu/i386/loadcore64.c: Likewise.
18723 * efiemu/i386/loadcore32.c: Likewise.
18724 * efiemu/loadcore.c: Likewise.
18725 * efiemu/symbols.c: Likewise.
18726 * efiemu/mm.c: Likewise.
18727 * include/grub/autoefi.h: Likewise.
18728 * include/grub/datetime.h: Likewise.
18729 * include/grub/term.h: Likewise.
18730 * include/grub/hfs.h: Likewise.
18731 * include/grub/lvm.h: Likewise.
18732 * include/grub/i386/tsc.h: Likewise.
18733 * include/grub/i386/linux.h: Likewise.
18734 * include/grub/i386/xnu.h: Likewise.
18735 * include/grub/i386/efiemu.h: Likewise.
18736 * include/grub/i386/pc/biosdisk.h: Likewise.
18737 * include/grub/i386/pc/memory.h: Likewise.
18738 * include/grub/i386/pc/vbe.h: Likewise.
18739 * include/grub/parttool.h: Likewise.
18740 * include/grub/video.h: Likewise.
18741 * include/grub/memory.h: Likewise.
18742 * include/grub/fs.h: Likewise.
18743 * include/grub/partition.h: Likewise.
18744 * include/grub/xnu.h: Likewise.
18745 * include/grub/efi/api.h: Likewise.
18746 * include/grub/efi/pe32.h: Likewise.
18747 * include/grub/efi/memory.h: Likewise.
18748 * include/grub/multiboot.h: Likewise.
18749 * include/grub/usbdesc.h: Likewise.
18750 * include/grub/multiboot2.h: Likewise.
18751 * include/grub/acpi.h: Likewise.
18752 * include/grub/efiemu/efiemu.h: Likewise.
18753 * include/grub/disk.h: Likewise.
18754 * include/grub/ieee1275/ieee1275.h: Likewise.
18755 * include/grub/net.h: Likewise.
18756 * include/grub/machoload.h: Likewise.
18757 * include/grub/macho.h: Likewise.
18758 * include/multiboot.h: Likewise.
18759 * genmoddep.awk: Likewise.
18760 * normal/main.c: Likewise.
18761 * normal/menu_entry.c: Likewise.
18762 * normal/menu_viewer.c: Likewise.
18763 * normal/completion.c: Likewise.
18764 * normal/cmdline.c: Likewise.
18765 * normal/misc.c: Likewise.
18766 * normal/datetime.c: Likewise.
18767 * bus/usb/usbtrans.c: Likewise.
18768 * bus/usb/ohci.c: Likewise.
18769 * bus/usb/uhci.c: Likewise.
18770 * bus/usb/usb.c: Likewise.
18771 * mmap/efi/mmap.c: Likewise.
18772 * mmap/i386/pc/mmap_helper.S: Likewise.
18773 * mmap/i386/pc/mmap.c: Likewise.
18774 * mmap/i386/mmap.c: Likewise.
18775 * mmap/i386/uppermem.c: Likewise.
18776 * mmap/mmap.c: Likewise.
18777 * commands/acpi.c: Likewise.
18778 * commands/echo.c: Likewise.
18779 * commands/blocklist.c: Likewise.
18780 * commands/loadenv.c: Likewise.
18781 * commands/usbtest.c: Likewise.
18782 * commands/boot.c: Likewise.
18783 * commands/parttool.c: Likewise.
18784 * commands/search.c: Likewise.
18785 * commands/cat.c: Likewise.
18786 * commands/i386/pc/play.c: Likewise.
18787 * commands/i386/pc/drivemap.c: Likewise.
18788 * commands/i386/pc/vbeinfo.c: Likewise.
18789 * commands/i386/pc/acpi.c: Likewise.
18790 * commands/i386/pc/vbetest.c: Likewise.
18791 * commands/ls.c: Likewise.
18792 * commands/cmp.c: Likewise.
18793 * commands/test.c: Likewise.
18794 * commands/efi/acpi.c: Likewise.
18795 * commands/gptsync.c: Likewise.
18796 * commands/help.c: Likewise.
18797 * partmap/amiga.c: Likewise.
18798 * partmap/apple.c: Likewise.
18799 * partmap/acorn.c: Likewise.
18800 * partmap/pc.c: Likewise.
18801 * partmap/sun.c: Likewise.
18802 * partmap/gpt.c: Likewise.
18803 * script/sh/lexer.c: Likewise.
18804 * script/sh/function.c: Likewise.
18805 * font/font.c: Likewise.
18806 * font/font_cmd.c: Likewise.
18807 * loader/powerpc/ieee1275/linux.c: Likewise.
18808 * loader/efi/chainloader.c: Likewise.
18809 * loader/multiboot_loader.c: Likewise.
18810 * loader/macho.c: Likewise.
18811 * loader/i386/multiboot.c: Likewise.
18812 * loader/i386/linux.c: Likewise.
18813 * loader/i386/pc/linux.c: Likewise.
18814 * loader/i386/pc/multiboot2.c: Likewise.
18815 * loader/i386/pc/chainloader.c: Likewise.
18816 * loader/i386/pc/xnu.c: Likewise.
18817 * loader/i386/bsd_trampoline.S: Likewise.
18818 * loader/i386/efi/linux.c: Likewise.
18819 * loader/i386/multiboot_elfxx.c: Likewise.
18820 * loader/i386/bsd_helper.S: Likewise.
18821 * loader/i386/bsd.c: Likewise.
18822 * loader/i386/linux_trampoline.S: Likewise.
18823 * loader/i386/xnu_helper.S: Likewise.
18824 * loader/i386/xnu.c: Likewise.
18825 * loader/i386/bsd_pagetable.c: Likewise.
18826 * loader/i386/multiboot_helper.S: Likewise.
18827 * loader/xnu.c: Likewise.
18828 * loader/xnu_resume.c: Likewise.
18829 * io/gzio.c: Likewise.
18830 * term/efi/console.c: Likewise.
18831 * term/terminfo.c: Likewise.
18832 * term/ieee1275/ofconsole.c: Likewise.
18833 * term/i386/pc/serial.c: Likewise.
18834 * term/i386/pc/vesafb.c: Likewise.
18835 * term/i386/pc/vga.c: Likewise.
18836 * term/usb_keyboard.c: Likewise.
18837 * term/gfxterm.c: Likewise.
18838 * aclocal.m4: Likewise.
18839 * util/lvm.c: Likewise.
18840 * util/grub.d/30_os-prober.in: Likewise.
18841 * util/grub.d/10_hurd.in: Likewise.
18842 * util/console.c: Likewise.
18843 * util/grub-macho2img.c: Likewise.
18844 * util/grub-probe.c: Likewise.
18845 * util/hostfs.c: Likewise.
18846 * util/i386/pc/grub-mkimage.c: Likewise.
18847 * util/i386/pc/grub-setup.c: Likewise.
18848 * util/i386/efi/grub-mkimage.c: Likewise.
18849 * util/grub-mkconfig.in: Likewise.
18850 * util/raid.c: Likewise.
18851 * util/resolve.c: Likewise.
18852 * util/grub-mkdevicemap.c: Likewise.
18853 * util/grub-emu.c: Likewise.
18854 * util/getroot.c: Likewise.
18855 * util/hostdisk.c: Likewise.
18856 * util/usb.c: Likewise.
18857 * util/grub-editenv.c: Likewise.
18858 * util/misc.c: Likewise.
18859
d2d49665 188602009-06-10 Felix Zielcke <fzielcke@z-51.de>
18861
18862 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
18863 `genparttoollist.sh'.
18864 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
18865 Add `*.sh' to the list find searches for and change `mdate.sh'
18866 to `mdate-sh'.
18867
fe052e37 188682009-06-10 Pavel Roskin <proski@gnu.org>
18869
2763ac18 18870 * include/grub/multiboot2.h: Provide compatibility defines for
18871 multiboot2.h.
18872 * include/multiboot2.h: Include stdint.h only if needed, using
18873 angle brackets.
18874 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
18875 grub/multiboot2.h.
18876 * loader/ieee1275/multiboot2.c: Likewise.
18877 * loader/multiboot2.c: Likewise.
18878 * loader/multiboot_loader.c: Likewise.
18879
437e6adc 18880 * configure.ac: Use -nostdlib when probing for the target. It
18881 should not be required to have libc for the target.
18882
06a6836c 18883 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
18884 they fail without libc headers for the target.
18885 * include/grub/powerpc/libgcc.h: Use weak attribute for all
18886 exports.
18887 * include/grub/sparc64/libgcc.h: Likewise. Don't use
18888 preprocessor conditionals.
18889
fe052e37 18890 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
18891 build system doesn't need to be aware of the tar.c internals.
18892
afd22553 188932009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 18894
afd22553 18895 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 18896
6b787c4f 188972009-06-09 Robert Millan <rmh.grub@aybabtu.com>
18898
18899 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
18900 disk limit to 26 for IDE, Virtio, Xen and SCSI.
18901
189022009-06-09 Felix Zielcke <fzielcke@z-51.de>
18903
18904 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 18905 aren't available if ata.mod gets used.
6b787c4f 18906
473d1e45 189072009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 18908
473d1e45 18909 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 18910 initialising controller.
473d1e45 18911 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 18912
255a27d4 189132009-06-08 Felix Zielcke <fzielcke@z-51.de>
18914
18915 * util/i386/pc/grub-install.in: Add a parameter --disk-module
18916 to choose between ata and biosdisk module on i386-pc.
18917
473d1e45 189182009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 18919
d55842d8 18920 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
18921 Subclass and Programming Interface fields in terms of the 3 byte
18922 Class Code register.
18923 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
18924
fa5db0b1 18925 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
18926 interface is OHCI. Add grub_dprintf for symmetry with
18927 bus/usb/uhci.c.
18928 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
18929 interface is UHCI. Add interf variable for programming
18930 interface. Print interface with class/subclass.
18931
c0947beb 18932 * bus/usb/ohci.c: Set interf with correct field.
18933
69da8877 18934 * bus/usb/uhci.c: Remove unneeded doubled lines.
18935 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
18936 Remove whitespace inside comment.
18937
9e172e30 189382009-06-08 Robert Millan <rmh.grub@aybabtu.com>
18939
18940 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
18941 as fallback an equivalent option without depth.
18942
de65ee2b 189432009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
18944
18945 Not fail if unable to retrieve C/H/S on LBA disks
18946
473d1e45 18947 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 18948 if unable to retrieve C/H/S on LBA disks
18949
b57ea2c9 189502009-06-08 Pavel Roskin <proski@gnu.org>
18951
18952 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
18953 about aliasing.
18954
af361263 189552009-06-08 Felix Zielcke <fzielcke@z-51.de>
18956
18957 * Makefile.in (uninstall): Remove all $lib_DATA files.
18958
4c9ec6b3 189592009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
18960
18961 Bugfix: install on partitionless device
18962
18963 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
18964 is a whole disk
18965
e76fc924 189662009-06-08 Felix Zielcke <fzielcke@z-51.de>
18967
18968 * Makefile.in (uninstall): Remove all $include_DATA files.
18969
ba5a0d05 189702009-06-08 Felix Zielcke <fzielcke@z-51.de>
18971
18972 * commands/true.c: New file. Implement the true and false commands.
18973 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
18974 (true_mod_SOURCES): New variable.
18975 (true_mod_CFLAGS): Likewise.
18976 (true_mod_LDFLAGS): Likewise.
18977
c8048e32 189782009-06-05 Colin D Bennett <colin@gibibit.com>
18979
18980 Optimized font character lookup using binary search instead of linear
18981 search. Fonts now are required to have the character index ordered by
18982 code point.
18983
18984 * font/font.c (load_font_index): Verify that fonts have ordered
18985 character indices.
18986 (find_glyph): Use binary search instead of linear search to find a
18987 character in a font.
18988
408305be 189892009-06-05 Michael Scherer <misc@mandriva.org>
18990
18991 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
18992 uses case sensitive btree.
18993 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
18994 only for case insensitive filesystems.
18995
8ee1e0d9 189962009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
18997
18998 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
18999 * conf/common.rmk (search_mod_CFLAGS): likewise
19000
a9966eb1 190012009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19002
473d1e45 19003 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 19004 compensate a compiler bug
19005
9e7100fb 190062009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19007
473d1e45 19008 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 19009 instead of '\b'
473d1e45 19010
ede21d71 190112009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19012
19013 Definitions for creating asm symbols with Apple's CC
19014
19015 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
19016 [APPLE_CC] (VARIABLE): likewise
19017
9dbf7653 190182009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19019
19020 Disable lnxboot.img when compiled
19021 with Apple's CC
19022
19023 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
19024 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
19025 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
19026 [! APPLE_CC] (CODE_LENG): skip
19027 [! APPLE_CC] (setup_sects): likewise
19028 [! APPLE_CC]: skip filling
473d1e45 19029
e93cdc3d 190302009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19031
19032 Address in trampolines based on 32-bit registers when compiled
19033 with Apple's CC
19034
473d1e45 19035 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 19036 for addresses
19037 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
19038
6c688477 190392009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19040
19041 Avoid aliases when compiling with Apple's CC for PCBIOS machine
19042
19043 * kern/misc.c [APPLE_CC] (memcpy): new function
19044 [APPLE_CC] (memmove): likewise
19045 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 19046 (memcpy): define alias conditionally on !APPLE_CC
6c688477 19047 (memset): likewise
19048 (abort): likewise
19049 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
19050 APPLE_CC are defined
19051 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
19052 (grub_assert_fail): make prototype conditional
19053
e37ffc5c 190542009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19055
19056 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
19057
473d1e45 19058 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
19059 grub-macho2img
e37ffc5c 19060 (CLEANFILES): add grub-macho2img
19061 (grub_macho2img_SOURCES): new variable
19062 * kern/i386/pc/startup.S (bss_start): new variable
19063 (bss_end): likewise
19064 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
19065 * util/grub-macho2img.c: new file
19066
cf00df31 190672009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19068
19069 Use objconv when compiling with Apple's CC
19070
19071 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
19072 (efiemu64.o): likewise
19073 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
19074 when compiling with Apple's CC
19075 (efiemu64_s.o): likewise
19076 * configure.ac: check for objconv when compiling with Apple's CC
19077 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 19078
d119a20c 190792009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19080
19081 Define segment as well as section when compiling with
19082 Apple's CC
19083
19084 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
19085 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
19086 (efiemu_convert_pointer): likewise
19087 (efiemu_set_virtual_address_map): likewise
19088 (efiemu_convert_pointer): likewise
19089 (efiemu_getcrc32): likewise
19090 (init_crc32_table): likewise
19091 (reflect): likewise
19092 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
19093 (GRUB_MOD_DEP): likewise
473d1e45 19094
c8600122 190952009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19096
19097 Allow a compilation without -mcmodel=large
19098
19099 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
19100 when compiled without -mcmodel=large
473d1e45 19101 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 19102 without -mcmodel=large
473d1e45 19103 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 19104 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 19105
e8df1d4e 191062009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19107
19108 Remove nested functions in efiemu core
19109
19110 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 19111
cc6c3ac1 191122009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19113
19114 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
19115
19116 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
19117 temporary storage
473d1e45 19118 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
19119 using Apple's CC
cc6c3ac1 19120 (grub_cpu_is_tsc_supported): likewise
19121 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 19122
3e325901 191232009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19124
19125 Absolute addressing through constant with Apple's cc
19126
19127 * kern/i386/pc/startup.S: Define necessary constants
19128 and address through it when using ABS with Apple's CC
19129 * boot/i386/pc/diskboot.S: likewise
19130 * boot/i386/pc/boot.S: likewise
19131 * boot/i386/pc/lnxboot.S: likewise
19132 * boot/i386/pc/cdboot.S: likewise
19133 * mmap/i386/pc/mmap_helper.S: likewise
19134 * commands/i386/pc/drivemap_int13h.S: likewise
19135
2b167a72 191362009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19137
19138 Check if compiler is apple cc
19139
19140 * Makefile.in (ASFLAGS): new variable
19141 (TARGET_ASFLAGS): likewise
19142 (TARGET_MODULE_FORMAT): likewise
19143 (TARGET_APPLE_CC): likewise
19144 (OBJCONV): likewise
19145 (TARGET_IMG_CFLAGS): likewise
19146 (TARGET_CPPFLAGS): add includedir
19147 * configure.ac: call grub_apple_cc and grub_apple_target_cc
19148 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
19149 Check for linker script only if compiler isn't Apple's CC
19150 (TARGET_MODULE_FORMAT): set
19151 (TARGET_APPLE_CC): likewise
19152 (TARGET_ASFLAGS): likewise
19153 (ASFLAGS): likewise
19154 Check for objcopy only if compiler isn't Apple's CC
19155 Check for BSS symbol only if compiler isn't Apple's CC
19156 * genmk.rb: adapt nm options if we use Apple's utils
19157 * aclocal.m4 (grub_apple_cc): new test
19158 (grub_apple_target_cc): likewise
473d1e45 19159
fb14123e 191602009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19161
19162 Simplify sed expressions and improve awk
19163
19164 * Makefile.in (install-local): simplify sed expression
19165 * gencmdlist.sh: likewise
19166 * genmoddep.awk: avoid adding module as a dependency of itself
19167
5b889789 191682009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19169
19170 Add missing start symbols
19171
19172 * boot/i386/pc/boot.S: add start
fb14123e 19173 * boot/i386/pc/pxeboot.S: likewise
473d1e45 19174
fd2bf2e3 191752009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19176
19177 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 19178
19179 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 19180 (relocate_addresses): consider both r_addend and value at offset
19181 (make_mods_section): zerofill modinfo and header
19182 (convert_elf): write prefix here
473d1e45 19183
5389763d 191842009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19185
19186 Use .asciz instead of .string
19187
19188 * i386/pc/diskboot.S: use .asciz instead of .string
19189 * i386/pc/boot.S: likewise
19190 * include/grub/dl.h (GRUB_MOD_DEP): likewise
19191 (GRUB_MOD_NAME): likewise
473d1e45 19192
3eb5ed4e 191932009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19194
19195 gfxpayload support
19196
19197 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
19198 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
19199 (grub_video_setup): remove
19200 (grub_video_set_mode): new prototype
19201 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
19202 (vid_mode): remove
19203 (linux_vesafb_res): compile only on PCBIOS
19204 (grub_linux_boot): support gfxpayload
19205 * loader/i386/pc/xnu.c (video_hook): new function
19206 (grub_xnu_set_video): support gfxpayload
19207 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
19208 (DEFAULT_VIDEO_HEIGHT): likewise
19209 (DEFAULT_VIDEO_FLAGS): likewise
19210 (DEFAULT_VIDEO_MODE): new definition
19211 (video_hook): new function
19212 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 19213 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 19214 loading xnu
19215 * video/video.c (grub_video_setup): removed
473d1e45 19216 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 19217 grub_video_setup
19218
4b0e1143 192192009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19220
19221 Avoid calling biosdisk in drivemap
19222
19223 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
19224 (revparse_biosdisk): likewise
19225 (list_mappings): derive name from id directly
19226 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 19227
fda6cb98 192282009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
19229
19230 Script fixes
19231
19232 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
19233 (grub_lexer_param): add tokenonhold
19234 (grub_script_create_cmdline): remove cmdline. All callers updated
19235 (grub_script_function_create): make functionname
19236 grub_script_arg. All callers updated
19237 (grub_script_execute_argument_to_string): new prototype
19238 * kern/parser.c (state_transitions): reorder
19239 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 19240 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 19241 make global
19242 (grub_script_execute_cmdline): use new format
19243 * script/sh/function.c (grub_script_function_create): make functionname
19244 grub_script_arg. All callers updated
473d1e45 19245 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 19246 (grub_script_yylex): remove
19247 (grub_script_yylex2): renamed to ...
19248 (grub_script_yylex): ...renamed
19249 parse the expressions like a${b}c
19250 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
19251 (GRUB_PARSER_TOKEN_VAR): remove
19252 (GRUB_PARSER_TOKEN_NAME): likewise
19253 ("if"): declare as typeless
19254 ("while"): likewise
19255 ("function"): likewise
19256 ("else"): likewise
19257 ("then"): likewise
19258 ("fi"): likewise
19259 (text): remove
19260 (argument): likewise
19261 (script): accept empty scripts and make exit on error
19262 (arguments): use GRUB_PARSER_TOKEN_ARG
19263 (function): likewise
19264 (command): move error handling to script
19265 (menuentry): move grub_script_lexer_ref before
473d1e45 19266 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 19267 argument. All callers updated
19268
f4448a07 192692009-06-04 Robert Millan <rmh.grub@aybabtu.com>
19270
19271 Prevent GRUB from probing floppies during boot.
19272
19273 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
19274 * commands/search.c (options): Add --no-floppy.
19275 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
19276 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
19277 --no-floppy when searching for UUIDs.
19278
2bf5885a 192792009-06-04 Robert Millan <rmh.grub@aybabtu.com>
19280
19281 Simplify the code duplication in commands/search.c.
19282
19283 * commands/search.c (search_label, search_fs_uuid): Merge into ...
19284 (search_fs): ... this. Update all users.
19285
f6fd460a 192862009-06-03 Felix Zielcke <fzielcke@z-51.de>
19287
19288 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
19289
cbb3c83e 192902009-05-28 Pavel Roskin <proski@gnu.org>
19291
57788cfd 19292 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
19293 Remove the original symlink explicitly.
19294
cbb3c83e 19295 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
19296 just one slash. That's how grub_fshelp_find_file() does it.
19297
cd0d5e30 192982009-05-26 Pavel Roskin <proski@gnu.org>
19299
f0f8bbe2 19300 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
19301 to `str'.
19302
cd0d5e30 19303 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
19304 possibly unused.
19305
8c2cab51 193062009-05-25 Christian Franke <franke@computer.org>
19307
19308 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
19309 register.
19310 (grub_atapi_identify): Add wait after drive select.
19311 (grub_ata_identify): Do more strict status register check before
19312 calling grub_atapi_identify (). Suppress error message if status
19313 register is 0x00 after command failure. Add status register
19314 check after PIO read to avoid bogus identify due to stuck DRQ.
19315 Thanks to Pavel Roskin for testing.
19316 (grub_device_initialize): Remove unsafe status register check.
19317 Thanks to 'phcoder' for problem report and patch.
19318 Prevent sign extension in debug message.
19319
230c0ad6 193202009-05-23 Colin D Bennett <colin@gibibit.com>
19321
19322 Cleaned up `include/grub/normal.h'. Grouped prototypes by
19323 definition file, and functions defined in `normal/menu.c' have had
19324 their prototypes moved to `include/grub/menu.h' for consistency.
19325
19326 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
19327 from normal.h.
19328 (grub_menu_get_entry): Likewise.
19329 (grub_menu_get_timeout): Likewise.
19330 (grub_menu_set_timeout): Likewise.
19331 (grub_menu_execute_entry): Likewise.
19332 (grub_menu_execute_with_fallback): Likewise.
19333 (grub_menu_entry_run): Likewise.
19334
19335 * include/grub/normal.h: Re-ordered and grouped function
19336 prototypes by file that the function is defined in.
19337 (grub_menu_execute_callback): Removed; moved to menu.h.
19338 (grub_menu_get_entry): Likewise.
19339 (grub_menu_get_timeout): Likewise.
19340 (grub_menu_set_timeout): Likewise.
19341 (grub_menu_execute_entry): Likewise.
19342 (grub_menu_execute_with_fallback): Likewise.
19343 (grub_menu_entry_run): Likewise.
19344 (grub_menu_addentry): Renamed from this ...
19345 (grub_normal_add_menu_entry): ... to this.
19346
19347 * normal/main.c (grub_menu_addentry): Renamed from this ...
19348 (grub_normal_add_menu_entry): ... to this.
19349
19350 * script/sh/execute.c (grub_script_execute_menuentry): Update
19351 reference to renamed grub_menu_addentry function.
19352
861f03a5 193532009-05-23 Felix Zielcke <fzielcke@z-51.de>
19354
19355 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
19356
96b1619a 193572009-05-22 Pavel Roskin <proski@gnu.org>
19358
bf6a5fb2 19359 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
19360 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
19361 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
19362 compiling for the i386 targets, but not for the utilities.
19363
96b1619a 19364 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
19365 to grub_uint8_t.
19366 (grub_root_drive): Likewise.
19367 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
19368 remove alignment.
19369 (grub_root_drive): Change size to byte.
19370 (grub_start_addr): Remove.
19371 (grub_end_addr): Likewise.
19372 (grub_apm_bios_info): Likewise.
19373
b729776b 193742009-05-21 Felix Zielcke <fzielcke@z-51.de>
19375
19376 * normal/i386: Remove.
19377 * normal/powerpc: Likewise.
19378 * normal/sparc64: Likewise.
19379 * normal/x86_64: Likewise.
19380
0a15ce80 193812009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19382
19383 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 19384 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 19385 * loader/i386/xnu_helper.S: Likewise
d6da58e6 19386
33db9015 193872009-05-18 Colin D Bennett <colin@gibibit.com>
19388
d6da58e6 19389 Display error messages when parsing a Lua statement fails.
19390 Previously, executing a syntactically invalid statement like
19391 ")foo" or "bar;" would silently fail.
33db9015 19392
19393 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 19394 (grub_lua_parse_line): Improved reporting of Lua parser and
19395 execution errors.
33db9015 19396
46422c89 193972009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19398
19399 Remove -Werror which causes build to fail on some systems
19400
19401 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
19402 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
19403 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 19404
22f53a96 194052009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19406
19407 trampoline for linux on 64-bit platform
19408
18f547ad 19409 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
19410 loader/i386/efi/linux_trampoline.S
19411 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 19412 declaration
d6da58e6 19413 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
19414 here
22f53a96 19415 * loader/i386/linux_trampoline.S: moved here
d6da58e6 19416 * loader/i386/efi/linux.c (allocate_pages): reserve space for
19417 trampoline
22f53a96 19418 (jumpvector): removed
19419 (grub_linux_trampoline_start): new declaration
19420 (grub_linux_trampoline_end): likewise
19421 (grub_linux_boot): use trampoline when on 64-bit platform
19422 * loader/i386/linux.c: likewise
19423
cb5a0f40 194242009-05-16 Pavel Roskin <proski@gnu.org>
19425
19426 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
19427 const to avoid a warning.
19428 (grub_lua_setenv): Likewise.
19429 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
19430 lmsg to fix a warning.
19431
334f2c28 194322009-05-16 Felix Zielcke <fzielcke@z-51.de>
19433
19434 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 19435 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
19436 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
19437 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
19438 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
19439 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
19440 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
19441 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 19442
59e5d3ec 194432009-05-16 Felix Zielcke <fzielcke@z-51.de>
19444
19445 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
19446
9d87a1ba 194472009-05-16 Bean <bean123ch@gmail.com>
19448
19449 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
19450 (lua_mod_SOURCES): New variable.
19451 (lua_mod_CFLAGS): Likewise.
19452 (lua_mod_LDFLAGS): Likewise.
19453
19454 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
19455 (setjmp_mod_SOURCES): New variable.
19456 (setjmp_mod_CFLAGS): Likewise.
19457 (setjmp_LDFLAGS): Likewise.
19458
19459 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
19460 (setjmp_mod_SOURCES): New variable.
19461 (setjmp_mod_CFLAGS): Likewise.
19462 (setjmp_LDFLAGS): Likewise.
19463
19464 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
19465 (setjmp_mod_SOURCES): New variable.
19466 (setjmp_mod_CFLAGS): Likewise.
19467 (setjmp_LDFLAGS): Likewise.
19468
19469 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
19470 (setjmp_mod_SOURCES): New variable.
19471 (setjmp_mod_CFLAGS): Likewise.
19472 (setjmp_LDFLAGS): Likewise.
19473
19474 * normal/i386/setjmp.S: Moved from here ...
19475 * lib/i386/setjmp.S: ... Moved here
19476 * normal/x86_64/setjmp.S: Moved from here ...
19477 * lib/x86_64/setjmp.S: ... Moved here
19478 * normal/powerpc/setjmp.S: Moved from here ...
19479 * lib/powerpc/setjmp.S: ... Moved here
19480 * normal/sparc64/setjmp.S: Moved from here ...
19481 * lib/sparc64/setjmp.S: ... Moved here
19482
19483 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
19484 returns_twice in mingw.
19485
19486 * script/lua/grub_lib.c: New file.
19487 * script/lua/grub_lib.h: Likewise.
19488 * script/lua/grub_lua.h: Likewise.
19489 * script/lua/grub_main.c: Likewise.
19490 * script/lua/lapi.c: Likewise.
19491 * script/lua/lapi.h: Likewise.
19492 * script/lua/lauxlib.c: Likewise.
19493 * script/lua/lauxlib.h: Likewise.
19494 * script/lua/lbaselib.c: Likewise.
19495 * script/lua/lcode.c: Likewise.
19496 * script/lua/lcode.h: Likewise.
19497 * script/lua/ldblib.c: Likewise.
19498 * script/lua/ldebug.c: Likewise.
19499 * script/lua/ldebug.h: Likewise.
19500 * script/lua/ldo.c: Likewise.
19501 * script/lua/ldo.h: Likewise.
19502 * script/lua/ldump.c: Likewise.
19503 * script/lua/lfunc.c: Likewise.
19504 * script/lua/lfunc.h: Likewise.
19505 * script/lua/lgc.c: Likewise.
19506 * script/lua/lgc.h: Likewise.
19507 * script/lua/linit.c: Likewise.
19508 * script/lua/liolib.c: Likewise.
19509 * script/lua/llex.c: Likewise.
19510 * script/lua/llex.h: Likewise.
19511 * script/lua/llimits.h: Likewise.
19512 * script/lua/lmathlib.c: Likewise.
19513 * script/lua/lmem.c: Likewise.
19514 * script/lua/lmem.h: Likewise.
19515 * script/lua/loadlib.c: Likewise.
19516 * script/lua/lobject.c: Likewise.
19517 * script/lua/lobject.h: Likewise.
19518 * script/lua/lopcodes.c: Likewise.
19519 * script/lua/lopcodes.h: Likewise.
19520 * script/lua/loslib.c: Likewise.
19521 * script/lua/lparser.c: Likewise.
19522 * script/lua/lparser.h: Likewise.
19523 * script/lua/lstate.c: Likewise.
19524 * script/lua/lstate.h: Likewise.
19525 * script/lua/lstring.c: Likewise.
19526 * script/lua/lstring.h: Likewise.
19527 * script/lua/lstrlib.c: Likewise.
19528 * script/lua/ltable.c: Likewise.
19529 * script/lua/ltable.h: Likewise.
19530 * script/lua/ltablib.c: Likewise.
19531 * script/lua/ltm.c: Likewise.
19532 * script/lua/ltm.h: Likewise.
19533 * script/lua/lua.h: Likewise.
19534 * script/lua/luaconf.h: Likewise.
19535 * script/lua/lualib.h: Likewise.
19536 * script/lua/lundump.c: Likewise.
19537 * script/lua/lundump.h: Likewise.
19538 * script/lua/lvm.c: Likewise.
19539 * script/lua/lvm.h: Likewise.
19540 * script/lua/lzio.c: Likewise.
19541 * script/lua/lzio.h: Likewise.
19542
5e898c9d 195432009-05-16 Bean <bean123ch@gmail.com>
19544
19545 * include/grub/kernel.h (grub_module_header_types): Add type
19546 OBJ_TYPE_CONFIG.
19547
19548 * kern/main.c (grub_load_config): New function.
19549 (grub_main): Call grub_load_config to read boot config.
19550
19551 * grub-mkimage (generate_image): New parameter config_path.
19552 (options): New option --config.
19553 (main): Parse --config option, and pass it to generate_image.
19554
cf353a47 195552009-05-14 Christian Franke <franke@computer.org>
19556
19557 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
19558 This fixes build on Cygwin.
19559
3834887f 195602009-05-14 Pavel Roskin <proski@gnu.org>
19561
19562 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
19563 jump. This saves two bytes, so the typical case of 2 swapped
19564 drives would fit 32 bytes.
19565
8090fc01 195662009-05-13 Pavel Roskin <proski@gnu.org>
19567
ac963883 19568 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
19569 grub_uint32_t to avoid a warning.
19570
8090fc01 19571 * loader/i386/linux.c (allocate_pages): When assigning
19572 real_mode_mem, cast through grub_size_t to fix a warning. The
19573 code already makes sure that the value would fit a pointer.
19574 (grub_linux_setup_video): Cast render_target->data to
19575 grub_size_t to fix a warning.
19576
18f547ad 195772009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 19578
19579 * commands/i386/pc/drivemap.c: New file - implement drivemap
19580 command.
19581 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
19582 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
19583
6f6a8b28 195842009-05-13 Pavel Roskin <proski@gnu.org>
19585
19586 * util/i386/pc/grub-setup.c (setup): Remove unused variable
19587 embedding_area_exists.
19588
15fbf4c4 195892009-05-13 Robert Millan <rmh.grub@aybabtu.com>
19590
19591 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
19592 it easier to understand / work with.
59978c8a 19593 Improve warning messages for cases where there's no embedding area,
19594 or when it is too small (or core.img too large).
15fbf4c4 19595
238e871f 195962009-05-13 Pavel Roskin <proski@gnu.org>
19597
0ab3a9a4 19598 * loader/i386/pc/multiboot2.c: Add necessary includes for
19599 grub_multiboot2_real_boot().
19600
a2c8c5f8 19601 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
19602 PX record is always little-endian. We only need the lower 2
19603 bytes of the mode.
19604
faec96af 19605 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
19606 facilitate code reuse.
19607 (grub_cpio_mount): Use "struct head", not a char buffer. This
19608 fixes a warning reported by gcc 4.4.
19609
238e871f 19610 * kernel/disk.c (grub_disk_read): Use void pointer for the
19611 buffer.
19612 (grub_disk_write): Use const void pointer for the buffer.
19613 Adjust all callers. Remove unnecessary casts.
19614
901d2f0c 196152009-05-10 Robert Millan <rmh.grub@aybabtu.com>
19616
19617 * util/i386/pc/grub-install.in: Update copyright year.
19618
18f547ad 196192009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 19620
19621 gptsync
19622
19623 * commands/gptsync.c: new file
19624 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
19625 (gptsync_mod_SOURCES): new variable
19626 (gptsync_mod_CFLAGS): likewise
19627 (gptsync_mod_LDFLAGS): likewise
18f547ad 19628 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 19629 new definition
19630 (GRUB_PC_PARTITION_TYPE_HFS): likewise
19631 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
19632 * conf/i386-ieee1275.rmk: likewise
19633 * conf/i386-pc.rmk: likewise
19634 * conf/powerpc-ieee1275.rmk: likewise
19635
b4ba690a 196362009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19637
19638 Fixed grub-emu
19639
19640 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
19641 (grub_dl_ref): likewise
19642
317e1a44 196432009-05-08 Robert Millan <rmh.grub@aybabtu.com>
19644
19645 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
19646 split in two functions (one for msdos and one for gpt).
19647
041b8094 196482009-05-08 Pavel Roskin <proski@gnu.org>
19649
752473c2 19650 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
19651 not modified.
19652
041b8094 19653 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
19654 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
19655 Initialize them with -1. Add sanity check for bad1. Eliminate
19656 nerr variable.
19657
172800ce 196582009-05-08 David S. Miller <davem@davemloft.net>
19659
19660 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
19661
29aa5e81 196622009-05-06 Robert Millan <rmh.grub@aybabtu.com>
19663
19664 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 19665 existence.
29aa5e81 19666
96613b62 196672009-05-05 Felix Zielcke <fzielcke@z-51.de>
19668
19669 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 19670 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 19671
eef73c8a 196722009-05-05 David S. Miller <davem@davemloft.net>
19673
19674 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
19675
119494b5 196762009-05-05 Pavel Roskin <proski@gnu.org>
19677
19678 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
19679 of grub_dl_ref() and grub_dl_unref().
19680 * commands/parttool.c: Remove preprocessor conditionals around
19681 grub_dl_ref() and grub_dl_unref().
19682 * fs/affs.c: Likewise.
19683 * fs/afs.c: Likewise.
19684 * fs/cpio.c: Likewise.
19685 * fs/ext2.c: Likewise.
19686 * fs/fat.c: Likewise.
19687 * fs/hfs.c: Likewise.
19688 * fs/hfsplus.c: Likewise.
19689 * fs/iso9660.c: Likewise.
19690 * fs/jfs.c: Likewise.
19691 * fs/minix.c: Likewise.
19692 * fs/ntfs.c: Likewise.
19693 * fs/reiserfs.c: Likewise.
19694 * fs/sfs.c: Likewise.
19695 * fs/udf.c: Likewise.
19696 * fs/ufs.c: Likewise.
19697 * fs/xfs.c: Likewise.
19698 * include/grub/dl.h: Likewise.
19699 * loader/xnu.c: Likewise.
19700
de5fd76e 197012009-05-04 Pavel Roskin <proski@gnu.org>
19702
19703 * commands/acpi.c: Remove unused variable my_mod.
19704 * partmap/amiga.c: Likewise.
19705 * partmap/apple.c: Likewise.
19706 * partmap/gpt.c: Likewise.
19707 * partmap/pc.c: Likewise.
19708 * partmap/sun.c: Likewise.
19709 * term/gfxterm.c: Likewise.
19710 * term/i386/pc/vesafb.c: Likewise.
19711 * term/i386/pc/vga.c: Likewise.
19712
983598ad 197132009-05-04 David S. Miller <davem@davemloft.net>
19714
19715 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
19716 pointer args to grub_ieee1275_get_property().
19717
8aadec43 19718 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
19719
9554b15e 19720 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
19721 devices, and do not traverse down under controller nodes.
19722
67e23c90 19723 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
19724 (grub_ofdisk_open): Use it to un-escape "," characters.
19725 * kern/disk.c (find_part_sep): New.
19726 (grub_disk_open): Use it to find the first non-escaped ','
19727 character in the disk name.
19728 * util/ieee1275/devicemap.c (escape_of_path): New.
19729 (grub_util_emit_devicemap_entry): Use it.
19730 * util/sparc64/ieee1275/grub-install.in: Update script to
19731 strip partition specifiers properly by not triggering on
19732 '\' escaped ',' characters.
19733
74bfdd2f 197342009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19735
19736 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
19737 to 0x300.
19738 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
19739 resolutions.
19740 (linux_vesafb_modes): Add a lot of additional modes to the list (based
19741 on documentation from Wikipedia).
19742
4241d2b1 197432009-05-04 Pavel Roskin <proski@gnu.org>
19744
19745 * disk/ata.c: Spelling fixes.
19746 * disk/raid.c: Likewise.
19747 * disk/usbms.c: Likewise.
19748 * disk/dmraid_nvidia.c: Likewise.
19749 * kern/ieee1275/openfw.c: Likewise.
19750 * kern/ieee1275/init.c: Likewise.
19751 * kern/ieee1275/cmain.c: Likewise.
19752 * boot/i386/pc/cdboot.S: Likewise.
19753 * video/readers/png.c: Likewise.
19754 * video/i386/pc/vbe.c: Likewise.
19755 * fs/udf.c: Likewise.
19756 * fs/hfs.c: Likewise.
19757 * fs/reiserfs.c: Likewise.
19758 * efiemu/runtime/efiemu.c: Likewise.
19759 * efiemu/main.c: Likewise.
19760 * efiemu/mm.c: Likewise.
19761 * include/grub/elf.h: Likewise.
19762 * include/grub/xnu.h: Likewise.
19763 * include/grub/usbdesc.h: Likewise.
19764 * include/grub/usb.h: Likewise.
19765 * include/grub/script_sh.h: Likewise.
19766 * include/grub/lib/LzmaEnc.h: Likewise.
19767 * include/grub/efiemu/efiemu.h: Likewise.
19768 * include/grub/command.h: Likewise.
19769 * normal/menu.c: Likewise.
19770 * normal/main.c: Likewise.
19771 * normal/datetime.c: Likewise.
19772 * bus/usb/uhci.c: Likewise.
19773 * mmap/i386/uppermem.c: Likewise.
19774 * mmap/mmap.c: Likewise.
19775 * commands/acpi.c: Likewise.
19776 * commands/test.c: Likewise.
19777 * partmap/apple.c: Likewise.
19778 * font/font.c: Likewise.
19779 * loader/sparc64/ieee1275/linux.c: Likewise.
19780 * loader/macho.c: Likewise.
19781 * loader/i386/bsd_trampoline.S: Likewise.
19782 * loader/i386/bsd.c: Likewise.
19783 * loader/xnu.c: Likewise.
19784 * term/i386/pc/vesafb.c: Likewise.
19785 * term/usb_keyboard.c: Likewise.
19786 * util/resolve.c: Likewise.
19787 * util/getroot.c: Likewise.
19788
0cfc0083 197892009-05-04 Felix Zielcke <fzielcke@z-51.de>
19790
19791 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
19792
7c1d00cd 197932009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19794
19795 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
19796 build error.
19797
b01f0548 197982009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19799
19800 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
19801 parameter only available on BIOS.
19802
ecc3eb22 198032009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
19804
19805 Removed wrong semicolon in declaration
19806
19807 * grub/misc.h (grub_dprintf): remove semicolon
19808
112972a9 198092009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19810
19811 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
19812 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
19813 is done by grub_cmd_linux() now).
19814 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
19815 restore video to text mode.
19816 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
19817 indicates lack of "vga=" parameter. "vga=0" is mapped to
19818 `GRUB_LINUX_VID_MODE_NORMAL'.
19819
afd5c115 198202009-05-04 Felix Zielcke <fzielcke@z-51.de>
19821
19822 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
19823 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
19824 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 19825 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 19826 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
19827 `grub_script.tab.c'.
19828
19829 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19830 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19831 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19832 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
19833 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19834
faa517ce 19835 * Makefile.in: Remove duplicated 2008 in Copyright line.
19836
ae0c0bdc 198372009-05-04 Robert Millan <rmh.grub@aybabtu.com>
19838
473d1e45 19839 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 19840 unconditionally.
19841 * include/grub/util/misc.h (grub_util_warn): New declaration.
19842
19843 * util/i386/pc/grub-install.in: Understand --force and pass it down
19844 to grub-setup.
19845
19846 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
19847 down to setup().
19848 (setup): Improve error messages and add warnings when requested to
19849 install in odd layouts. Refuse to install using blocklists unless
19850 --force was set.
19851
18f547ad 198522009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 19853
19854 * disk/raid.c (grub_raid_scan_device): Improve debug message.
19855
6d260daa 198562009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
19857
19858 Updated copyright year
19859
19860 * fs/hfsplus.c: updated copyright year
18f547ad 19861
69f853f8 198622009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
19863
19864 HFS+ UUID
19865
18f547ad 19866 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 19867 in the space previously used by unused3
19868 (grub_hfsplus_uuid): new function
19869 (grub_hfsplus_fs): added uuid field
19870
4c402e73 198712009-05-03 Pavel Roskin <proski@gnu.org>
19872
19873 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
19874 suppress warnings. It's no longer needed.
19875 * disk/host.c: Likewise.
19876 * disk/ata_pthru.c: Likewise.
19877 * disk/loopback.c: Likewise.
19878 * hook/datehook.c: Likewise.
19879 * parttool/pcpart.c: Likewise.
19880 * fs/i386/pc/pxe.c: Likewise.
19881 * fs/ntfscomp.c: Likewise.
19882 * efiemu/main.c: Likewise.
19883 * mmap/mmap.c: Likewise.
19884 * commands/crc.c: Likewise.
19885 * commands/hexdump.c: Likewise.
19886 * commands/hdparm.c: Likewise.
19887 * commands/acpi.c: Likewise.
19888 * commands/echo.c: Likewise.
19889 * commands/minicmd.c: Likewise.
19890 * commands/blocklist.c: Likewise.
19891 * commands/memrw.c: Likewise.
19892 * commands/loadenv.c: Likewise.
19893 * commands/usbtest.c: Likewise.
19894 * commands/lsmmap.c: Likewise.
19895 * commands/boot.c: Likewise.
19896 * commands/parttool.c: Likewise.
19897 * commands/configfile.c: Likewise.
19898 * commands/search.c: Likewise.
19899 * commands/ieee1275/suspend.c: Likewise.
19900 * commands/cat.c: Likewise.
19901 * commands/i386/pc/pxecmd.c: Likewise.
19902 * commands/i386/pc/play.c: Likewise.
19903 * commands/i386/pc/halt.c: Likewise.
19904 * commands/i386/pc/vbeinfo.c: Likewise.
19905 * commands/i386/pc/vbetest.c: Likewise.
19906 * commands/lspci.c: Likewise.
19907 * commands/date.c: Likewise.
19908 * commands/handler.c: Likewise.
19909 * commands/ls.c: Likewise.
19910 * commands/test.c: Likewise.
19911 * commands/cmp.c: Likewise.
19912 * commands/efi/loadbios.c: Likewise.
19913 * commands/efi/fixvideo.c: Likewise.
19914 * commands/halt.c: Likewise.
19915 * commands/help.c: Likewise.
19916 * commands/reboot.c: Likewise.
19917 * hello/hello.c: Likewise.
19918 * script/sh/main.c: Likewise.
19919 * loader/xnu.c: Likewise.
19920 * term/terminfo.c: Likewise.
19921 * term/i386/pc/serial.c: Likewise.
19922 * term/usb_keyboard.c: Likewise.
19923
515b5079 199242009-05-03 David S. Miller <davem@davemloft.net>
19925
19926 * normal/menu.c: Include grub/parser.h
19927
dfc31a22 199282009-05-03 Pavel Roskin <proski@gnu.org>
19929
2fee74f1 19930 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
19931 not char*.
19932 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
19933 Suggested by Javier Martín <lordhabbit@gmail.com>
19934
dfc31a22 19935 * util/i386/pc/grub-mkrescue.in: Allow for the case when
19936 efiemu??.o doesn't exist.
19937 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
19938 copying.
19939
18f547ad 199402009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 19941
19942 FreeBSD 64-bit support
19943
18f547ad 19944 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 19945 and loader/i386/bsd_trampoline.S
19946 (bsd_mod_ASFLAGS): new variable
19947 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
19948 (FREEBSD_MODTYPE_KERNEL64): likewise
19949 (grub_bsd64_trampoline_start): likewise
19950 (grub_bsd64_trampoline_end): likewise
19951 (grub_bsd64_trampoline_selfjump): likewise
19952 (grub_bsd64_trampoline_gdt): likewise
19953 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
19954 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
19955 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
19956 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 19957 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 19958 of "attrib" member
19959 * loader/i386/bsd_pagetable.c: new file
19960 * loader/i386/bsd_trampoline.S: likewise
19961 * loader/i386/bsd.c (ALIGN_QWORD): new macro
19962 (ALIGN_VAR): likewise
19963 (entry_hi): new variable
19964 (kern_end_mdofs): likewise
19965 (is_64bit): likewise
19966 (grub_freebsd_add_meta): use ALIGN_VAR
19967 (grub_e820_mmap): new declaration
19968 (grub_freebsd_add_mmap): new function
19969 (grub_freebsd_add_meta_module): support 64 bit kernels
19970 (grub_freebsd_list_modules): use ALIGN_VAR
19971 (gdt_descriptor): new declaration
19972 (grub_freebsd_boot): support 64 bit kernels
19973 (grub_bsd_elf64_hook): new function
19974 (grub_bsd_load_elf): support elf64
19975
038c5720 199762009-05-03 Bean <bean123ch@gmail.com>
19977
19978 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
19979 after we get the result of if statement.
19980
fc45fb58 199812009-05-03 Bean <bean123ch@gmail.com>
19982
19983 * Makefile.in (enable_efiemu): New variable.
19984
19985 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
19986 set.
19987 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
19988 path.
19989 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
19990 path, add -mno-red-zone option.
19991 (efiemu64_s.o): Likewise.
19992 (efiemu64.o): Use macro $^ for source file.
19993
19994 * configure.ac (--enable-efiemu): New option.
19995
bbee0f2b 199962009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
19997
19998 xnu support
19999
20000 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
20001 (pkglib_MODULES): add xnu.mod
20002 (xnu_mod_SOURCES): new variable
20003 (xnu_mod_CFLAGS): likewise
20004 (xnu_mod_LDFLAGS): likewise
20005 (xnu_mod_ASFLAGS): likewise
20006 * conf/i386-pc.rmk: likewise
20007 * conf/x86_64-efi.rmk: likewise
7dd4a573 20008 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 20009 new declaration
20010 * include/grub/i386/macho.h: new file
20011 * include/grub/i386/xnu.h: likewise
20012 * include/grub/macho.h: likewise
20013 * include/grub/machoload.h: likewise
20014 * include/grub/x86_64/macho.h: likewise
20015 * include/grub/x86_64/xnu.h: likewise
20016 * include/grub/xnu.h: likewise
20017 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
20018 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
20019 * loader/i386/efi/xnu.c: new file
20020 * loader/i386/pc/xnu.c: likewise
20021 * loader/i386/xnu.c: likewise
20022 * loader/i386/xnu_helper.S: likewise
20023 * loader/macho.c: likewise
20024 * loader/xnu.c: likewise
20025 * loader/xnu_resume.c: likewise
20026 * util/grub-dumpdevtree: likewise
20027 * include/grub/i386/pit.h: include grub/err.h
20028 (grub_pit_wait): export
20029 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 20030
5caf964d 200312009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
20032
20033 Efiemu
7dd4a573 20034
5caf964d 20035 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 20036 _linux_efi, linux_efi.
20037 new files in grub-emu
5caf964d 20038 new targets efiemu32.o and efiemu64.o
20039 * loader/linux_normal_efiemu.c: likewise
20040 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 20041 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 20042 files to copy
20043 * include/grub/autoefi.h: new file
7dd4a573 20044 * include/grub/i386/efiemu.h: likewise
5caf964d 20045 * include/grub/i386/pc/efiemu.h: likewise
20046 * include/grub/efi/api.h: add LL suffix when necessary
20047 new definitions relating to tables
20048 * include/grub/efiemu/efiemu.h: new file
20049 * include/grub/efiemu/runtime.h: likewise
20050 * efiemu/prepare.c: likewise
20051 * efiemu/loadcore_common.c: likewise
20052 * efiemu/loadcore64.c: likewise
20053 * efiemu/runtime/efiemu.sh: likewise
20054 * efiemu/runtime/efiemu.S: likewise
20055 * efiemu/runtime/efiemu.c: likewise
20056 * efiemu/runtime/config.h: likewise
20057 * efiemu/prepare32.c: likewise
20058 * efiemu/main.c: likewise
20059 * efiemu/modules/pnvram.c: likewise
20060 * efiemu/modules/i386: likewise
20061 * efiemu/modules/i386/pc: likewise
20062 * efiemu/modules/acpi.c: likewise
20063 * efiemu/i386/pc/cfgtables.c: likewise
20064 * efiemu/i386/loadcore64.c: likewise
20065 * efiemu/i386/loadcore32.c: likewise
20066 * efiemu/prepare64.c: likewise
20067 * efiemu/loadcore.c: likewise
20068 * efiemu/symbols.c: likewise
20069 * efiemu/mm.c: likewise
20070 * efiemu/loadcore32.c: likewise
7dd4a573 20071
200722009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 20073
20074 ACPI spoofing
20075
20076 * commands/acpi.c: new file
20077 * commands/i386/pc/acpi.c: likewise
20078 * commands/efi/acpi.c: likewise
20079 * include/grub/acpi.h: likewise
20080 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
20081 (acpi_mod_SOURCES): new variable
20082 (acpi_mod_CFLAGS): likewise
20083 (acpi_mod_LDFLAGS): likewise
20084 * conf/i386-efi.rmk: likewise
20085 * conf/x86_64-efi.rmk: likewise
20086
7dd4a573 200872009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 20088
20089 Missing part from mmap patch
20090
20091 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
20092 (grub_mmap_unregister)
20093 (grub_mmap_free_and_unregister): use grub_mmap_register
20094
7dd4a573 200952009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 20096
20097 Mmap services
20098
20099 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
20100 * loader/i386/linux.c (find_mmap_size): likewise
20101 (allocate_pages): likewise
20102 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
20103 (grub_fill_multiboot_mmap): likewise
20104 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
20105 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
20106 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
20107 (OPENBSD_MMAP_RESERVED): likewise
20108 * include/grub/i386/pc/memory.h: include grub/memory.h
20109 (grub_lower_mem): removed
20110 (grub_upper_mem): likewise
20111 (GRUB_MACHINE_MEMORY_ACPI): new definition
20112 (GRUB_MACHINE_MEMORY_NVS): likewise
20113 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
20114 (GRUB_MACHINE_MEMORY_HOLE): likewise
20115 (grub_machine_mmap_register): likewise
20116 (grub_machine_mmap_unregister): likewise
20117 (grub_machine_get_upper): likewise
20118 (grub_machine_get_lower): likewise
20119 (grub_machine_get_post64): likewise
20120 * include/grub/i386/efi/memory.h: new file
20121 * include/grub/x86_64/efi/memory.h: likewise
20122 * include/grub/efi/memory.h: likewise
20123 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
20124 (mmap_mod_SOURCES): new variable
20125 (mmap_mod_LDFLAGS): likewise
20126 (mmap_mod_ASFLAGS): likewise
20127 * conf/i386-coreboot.rmk: likewise
20128 * conf/i386-ieee1275.rmk: likewise
20129 * conf/i386-efi.rmk: likewise
20130 * conf/x86_64-efi.rmk: likewise
20131 * include/grub/types.h (UINT_TO_PTR): new macro
20132 (PTR_TO_UINT32): likewise
20133 (PTR_TO_UINT64): likewise
20134 * include/grub/memory.h: new file
20135 * mmap/i386/pc/mmap.c: likewise
20136 * mmap/i386/pc/mmap_helper.S: likewise
20137 * mmap/i386/uppermem.c: likewise
20138 * mmap/mmap.c: likewise
20139 * mmap/efi/mmap.c: likewise
7dd4a573 20140 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 20141 grub_upper_mem
20142 * kern/i386/pc/init.c (grub_lower_mem): removed variable
20143 (grub_upper_mem): likewise
20144 (grub_machine_init): don't use grub_upper_mem,
20145 make grub_lower_mem local
20146 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
20147 grub_mmap_iterate and grub_mmap_get_upper
20148 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
20149
d558e6b5 201502009-05-02 Bean <bean123ch@gmail.com>
20151
20152 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
20153 script/sh/parser.y.
20154 (pkglib_MODULES): Add normal.mod and sh.mod.
20155 (normal_SOURCES): New variable.
20156 (normal_mod_CFLAGS): Likewise.
20157 (normal_mod_LDFLAGS): Likewise.
20158 (sh_mod_SOURCES): Likewise.
20159 (sh_mod_CFLAGS): Likewise.
20160 (sh_mod_LDFLAGS): Likewise.
20161
20162 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
20163 script/sh/lexer.c_DEPENDENCIES.
20164 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
20165 kern/rescue_reader.c and kern/rescue_parser.c.
20166 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
20167 (grub_emu_SOURCES): Change source files.
20168 (pkglib_MODULES): Remove normal.mod.
20169 (normal_SOURCES): Removed.
20170 (normal_mod_CFLAGS): Likewise.
20171 (normal_mod_LDFLAGS): Likewise.
20172 * conf/i386-coreboot.rmk: Likewise.
20173 * conf/i386-efi.rmk: Likewise.
20174 * conf/i386-ieee1276.rmk: Likewise.
20175 * conf/powerpc-ieee1275.rmk: Likewise.
20176 * conf/sparc64-ieee1275.rmk: Likewise.
20177 * conf/x86_64-efi.rmk: Likewise.
20178
20179 * include/grub/command.h (grub_command_execute): New inline function.
20180
20181 * include/grub/menu.h (grub_menu_entry): Removed commands field.
20182
20183 * include/grub/normal.h: Remove <grub/setjmp.h>.
20184 (grub_fs_module_list): Moved to normal/autofs.c.
20185 (grub_exit_env): Removed.
20186 (grub_command_execute): Likewise.
20187 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
20188 parameter script.
20189 (read_command_list): New function declaration.
20190 (read_fs_list): Likewise.
20191
20192 * include/parser.h: Include <grub/reader.h>.
20193 (grub_parser_split_cmdline): Change type of getline parameter.
20194 (grub_parser): New structure.
20195 (grub_parser_class): New variable.
20196 (grub_parser_execute): New function declaration.
20197 (grub_register_rescue_parser): Likewise.
20198 (grub_parser_register): New inline function.
20199 (grub_parser_unregister): Likewise.
20200 (grub_parser_get_current): Likewise.
20201 (grub_parser_set_current): Likewise.
20202
20203 * include/grub/reader.h: New file.
20204 * kern/reader.c: Likewise.
20205 * kern/rescue_parser.c: Likewise.
20206 * kern/rescue_reader.c: Likewise.
20207 * normal/autofs.c: Likewise.
20208 * normal/dyncmd.c: Likewise.
20209
20210 * include/grub/rescue.h: Removed.
20211 * normal/command.h: Likewise.
20212
20213 * include/grub/script.h: Moved to ...
20214 * include/grub/script_sh.h: ... Moved here.
20215 * normal/execute.c: Moved to ...
20216 * script/sh/execute.c: ... Moved here.
20217 * normal/function.c: Moved to ...
20218 * script/sh/function.c: ... Moved here.
20219 * normal/lexer.c: Moved to ...
20220 * script/sh/lexer.c: ... Moved here.
20221 * normal/parser.y: Moved to ...
20222 * script/sh/parser.y: ... Moved here.
20223 * normal/script.c: Moved to ...
20224 * script/sh/script.c: ... Moved here.
20225
20226 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
20227 <grub/reader.h>.
20228 (grub_exit_env): Removed.
20229 (fs_module_list): Moved to normal/autofs.c.
20230 (grub_file_getline): Don't handle comment here.
20231 (free_menu): Skip removed field entry->commands.
20232 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
20233 script parameter.
20234 (read_config_file): Removed nested parameter, change getline function.
20235 (grub_enter_normal_mode): Removed.
20236 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
20237 (read_command_list): Likewise.
20238 (autoload_fs_module): Moved to normal/autofs.c.
20239 (read_fs_list): Likewise.
20240 (reader_nested): New variable.
20241 (grub_normal_execute): Run parser.sh to switch to sh parser.
20242 (grub_cmd_rescue): Removed.
20243 (cmd_normal): Removed.
20244 (grub_cmd_normal): Unregister itself at the beginning. Don't register
20245 rescue command.
20246 (grub_cmdline_run): New function.
20247 (grub_normal_reader_init): Likewise.
20248 (grub_normal_read_line): Likewise.
20249 (grub_env_write_pager): Likewise.
20250 (cmdline): New variable.
20251 (grub_normal_reader): Likewise.
20252 (GRUB_MOD_INIT): Register normal reader and set as current, register
20253 pager hook, register normal command with grub_register_command_prio,
20254 so that it won't show up in command.lst.
20255 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
20256 grub_fs_autoload_hook.
20257
20258 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
20259 (grub_menu_execute_entry): Replace grub_script_execute with
20260 grub_parser_execute, change parameter to grub_command_execute.
20261
20262 * normal/menu_text.c: Remove <grub/script.h>.
20263
20264 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
20265 and <grub/parser.h>.
20266 (run): Change editor_getline to use new parser interface. Change
20267 parameter to grub_command_execute.
20268
20269 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
20270 <grub/reader.h> and <grub/parser.h>.
20271 (grub_load_normal_mode): Execute normal command.
20272 (grub_main): Call grub_register_core_commands,
20273 grub_register_rescue_parser and grub_register_rescue_reader, use
20274 grub_reader_loop to enter input loop.
20275
7dd4a573 20276 * kern/parser.c (grub_parser_split_cmdline): Change type of
20277 getline parameter.
d558e6b5 20278 (grub_parser_class): New variable.
20279 (grub_parser_execute): New function.
20280
20281 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
20282 * loader/multiboot2.c: Likewise.
20283 * loader/sparc64/ieee1275/linux.c: Likewise.
20284
20285 * util/grub-emu.c (read_command_list): New dummy function.
20286
18db813d 202872009-05-02 Robert Millan <rmh.grub@aybabtu.com>
20288
20289 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
20290 count to 16 for CCISS and IDA.
20291
6c67de15 202922009-05-02 Robert Millan <rmh.grub@aybabtu.com>
20293
20294 * normal/menu_text.c (grub_wait_after_message): Print a newline
20295 after waiting for user input.
20296
20297 * loader/i386/linux.c: Include `<grub/normal.h>'.
20298 (grub_cmd_linux): Improve the error message about `ask' mode, by
20299 waiting for user input so it's not missed (we can do this, since
20300 user requested interaction).
20301
d9dc87b0 203022009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
20303
20304 Added missing lst to grub-mkrescue
20305
20306 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
20307 and ${input_dir}/parttool.lst
20308
ac8a2baa 203092009-04-30 David S. Miller <davem@davemloft.net>
20310
ad22a610 20311 * util/hostdisk.c (device_is_wholedisk): New function.
20312 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
20313 zero only if device_is_wholedisk() returns true.
20314
6966215d 20315 * util/hostdisk.c (convert_system_partition_to_system_disk):
20316 Handle virtual disk devices named /dev/vdiskX as found on sparc
20317 and powerpc.
20318
ac8a2baa 20319 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
20320 lettered partition specifier is found, convert to numbered.
20321
979b4fb4 203222009-04-29 David S. Miller <davem@davemloft.net>
20323
e2bf39b2 20324 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
20325 * include/grub/sparc64/ieee1275/memory.h: Likewise.
20326
3c64e104 20327 * normal/command.c: Add missing newline at end of file.
20328
979b4fb4 20329 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
20330 warnings.
20331 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
20332 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
20333 grub_ofdisk_read): Likewise, and deal similarly with the fact that
20334 ihandles have a 32-bit type but need to be stored in a "void *".
20335
136d9f82 203362009-04-28 Pavel Roskin <proski@gnu.org>
20337
9459c306 20338 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
20339 not disk. Adjust all dependencies.
2e08a26a 20340 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 20341 grub_disk_close().
20342
136d9f82 20343 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
20344 parent's partition, don't copy it by reference, as it gets freed
20345 on close.
20346
7dd4a573 203472009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 20348
20349 Preboot hooks support
20350
20351 * commands/boot.c (struct grub_preboot_t): new declaration
20352 (preboots_head): new variable
20353 (preboots_tail): likewise
20354 (grub_loader_register_preboot_hook): new function
20355 (grub_loader_unregister_preboot_hook): likewise
20356 (grub_loader_set): launch preboot hooks
20357 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
20358 (grub_loader_register_preboot_hook): new declaration
20359 (grub_loader_unregister_preboot_hook): likewise
20360
5af922b5 203612009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
20362
20363 Warning fix
20364
7dd4a573 20365 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 20366 calling grub_dprintf
20367
a5562c30 203682009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
20369
20370 Bug and warning fixes
20371
7dd4a573 20372 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 20373 declaration
20374 * commands/test.c (test_parse): fixed bug with file tests and corrected
20375 declaration of find_file
20376
4006f85c 203772009-04-26 Pavel Roskin <proski@gnu.org>
20378
20379 * Makefile.in: Don't install empty manual pages if help2man is
20380 missing. Use help2man option for output, not shell redirection.
20381
5c77c3de 203822009-04-26 David S. Miller <davem@davemloft.net>
20383
20384 * util/grub-mkdevicemap.c (make_device_map): Add missing
20385 NESTED_FUNC_ATTR to process_device().
20386
033b10a8 203872009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20388
20389 Test command
20390
20391 * commands/test.c: rewritten to use bash-like test
20392
e4343593 203932009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20394
20395 Parttool autoloading and improvements
20396
7dd4a573 20397 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 20398 (parttool.lst): new target
20399 * genmk.rb: generate parttool-*
20400 (CLEANFILES): add #{parttool}
20401 (PARTTOOLFILES): new variable
20402 * genparttoollist.sh: new file
7dd4a573 20403 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 20404 (grub_pcpart_type): likewise
20405 * commands/parttool.c (helpmsg): new variable
20406 (grub_cmd_parttool): output help if not enough arguments are supplied
20407 autoload modules
20408 (GRUB_MOD_INIT(parttool)): use helpmsg
20409
0d312500 204102009-04-24 David S. Miller <davem@davemloft.net>
20411
7dd4a573 20412 Avoiding opening same device multiple times in device iterator.
0d312500 20413
20414 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 20415 and use it to build a list of partitions in iterate_disk() and
0d312500 20416 iterate_partition().
20417
ac20caff 20418 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
20419 on disk->data.
20420
0dcf7495 20421 * disk/ieee1275/nand.c (grub_nand_iterate): Return
20422 grub_devalias_iterate() result instead of unconditional 0.
20423 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
20424 Also, capture hook return value, either directly or via
20425 grub_children_iterate(), and propagate to caller.
20426 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
20427 grub_children_iterate): Return value is now 'int' instead of
20428 'grub_err_t'.
20429 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
20430 like a proper iterator, stopping when hooks return non-zero.
20431 (grub_devalias_iterate): Likewise.
20432
c8c08833 204332009-04-23 David S. Miller <davem@davemloft.net>
20434
20435 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
20436
f01005a8 204372009-04-22 David S. Miller <davem@davemloft.net>
20438
20439 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
20440 is larger than address_cells, use that value for address_cells too.
20441
4e8269da 20442 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
20443 IEEE1275_MAX_PATH_LEN): Define.
20444 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
20445 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
20446 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
20447 'devtype'. Explicitly NULL terminate devalias expansion.
20448
a1447506 20449 * util/sparc64/ieee1275/misc.c: New file.
20450 * util/sparc64/ieee1275/grub-setup.c: New file.
20451 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
20452 * util/sparc64/ieee1275/grub-mkimage.c: New file.
20453 * util/sparc64/ieee1275/grub-install.in: New file.
20454 * util/ieee1275/ofpath.c: New file.
20455 * util/ieee1275/devicemap.c: New file.
20456 * util/devicemap.c: New file.
20457 * util/deviceiter.c: New file.
20458 * kern/sparc64/ieee1275/init.c: New file.
20459 * include/grub/util/ofpath.h: New file.
20460 * include/grub/util/deviceiter.h: New file.
20461 * util/grub-mkdevicemap.c: Include deviceiter.h.
20462 Implement using grub_util_emit_devicemap_entry and
20463 grub_util_iterate_devices.
20464 * conf/i386-corebook.rmk: Build util/deviceiter.c and
20465 util/devicemap.c into grub-mkdevicemap
20466 * conf/i386-efi.rmk: Likewise.
20467 * conf/i386-ieee1275.rmk: Likewise.
20468 * conf/i386-pc.rmk: Likewise.
20469 * conf/powerpc-ieee1275.rmk: Likewise.
20470 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
20471 images and installation utilities. Build kernel as image
20472 instead of as elf binary. Use common rules as much as possible.
20473
7dd4a573 204742009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 20475
20476 Correct GPT definition
20477
7dd4a573 20478 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 20479 of "attrib" member
20480
c6c5219f 204812009-04-19 Felix Zielcke <fzielcke@z-51.de>
20482
20483 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
20484
0552ff9f 204852009-04-19 David S. Miller <davem@davemloft.net>
20486
20487 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
20488 (grub_rescue_cmd_linux): Rename to...
20489 (grub_cmd_linux): and fix prototype.
20490 (grub_rescue_cmd_initrd): Rename to...
20491 (grub_cmd_initrd): and fix prototype.
20492 (cmd_linux, cmd_initrd): New.
20493 (GRUB_MOD_INIT(linux)): Use grub_register_command().
20494 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
20495
d1a282fc 204962009-04-17 Pavel Roskin <proski@gnu.org>
20497
07c5039f 20498 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
20499 format.
20500 (grub_ohci_transfer): Likewise.
20501
b012002d 20502 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
20503
1bc09c35 20504 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
20505 return without a value. Fix inconsistent indentation.
20506
e0ff9126 20507 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
20508 match struct grub_fs.
20509
d1a282fc 20510 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
20511 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
20512 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
20513 * commands/lspci.c (grub_lspci_iter): Likewise.
20514
a96df3f2 205152009-04-16 Bean <bean123ch@gmail.com>
20516
20517 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
20518 value.
20519
41bb0fe9 205202009-04-15 Pavel Roskin <proski@gnu.org>
20521
20522 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
20523 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
20524 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
20525 definitions.
20526
596c6970 205272009-04-15 Felix Zielcke <fzielcke@z-51.de>
20528
20529 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 20530 that no multiple data or metadata areas are supported and `Unknown
596c6970 20531 metadata header'.
20532
7dd4a573 205332009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 20534
20535 Move loader out of the kernel
20536
20537 * kern/loader.c: moved to ...
20538 * commands/boot.c: ... moved here
20539 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
20540 * commands/boot.c (grub_cmd_boot): moved here. All users updated
20541 * include/grub/kernel.h (grub_machine_fini): export
20542 * include/grub/loader.h (grub_loader_is_loaded): update declaration
20543 (grub_loader_set): likewise
20544 (grub_loader_unset): likewise
20545 (grub_loader_boot): likewise
20546 * conf/common.rmk: new module boot.mod
20547 (pkglib_MODULES): add boot.mod
20548 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
20549 (grub_emu_SOURCES): likewise
20550 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
20551 (grub_emu_SOURCES): likewise
20552 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
20553 (grub_emu_SOURCES): likewise
20554 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
20555 (grub_emu_SOURCES): likewise
20556 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
20557 (grub_emu_SOURCES): likewise
7dd4a573 20558 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
20559 (grub_emu_SOURCES): likewise
0d5d5653 20560 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 20561 (grub_emu_SOURCES): likewise
0d5d5653 20562
7dd4a573 205632009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 20564
20565 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 20566
5999d619 20567 * kern/misc.c (grub_itoa): Removed function
20568 (grub_ltoa): likewise
20569 (grub_vsprintf): use grub_lltoa
20570
7dd4a573 205712009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 20572
20573 Restore grub-emu
20574
20575 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
20576 * conf/i386-coreboot.rmk: likewise
20577 * conf/i386-ieee1275.rmk: likewise
20578 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 20579
20318222 205802009-04-15 Felix Zielcke <fzielcke@z-51.de>
20581
20582 * INSTALL: Add that `./autogen.sh' needs to be run before
20583 `./configure.'.
20584
d05f0df3 205852009-04-14 Bean <bean123ch@gmail.com>
20586
20587 * Makefile.in (pkglib_DATA): Add handler.lst.
20588 (handler.lst): New rule.
20589
20590 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
20591 * conf/i386-coreboot.rmk: Likewise.
20592 * conf/i386-ieee1275.rmk: Likewise.
20593 * conf/i386-efi.rmk: Likewise.
20594 * conf/x86_64-efi.rmk: Likewise.
20595 * conf/powerpc-ieee1275.rmk: Likewise.
20596 * conf/sparc64-ieee1275.rmk: Likewise.
20597
20598 * genhandlerlist.sh: New file.
20599
20600 * genmk.rb: Add rules to generate handler.lst.
20601
20602 * include/grub/normal.h (grub_file_getline): New function definition.
20603 (read_handler_list): Likewise.
20604 (free_handler_list): Likewise.
20605
20606 * include/grub/term.h (grub_term_register_input): Add name parameter
20607 for auto generation of handler.lst.
20608 (grub_term_register_output): Likewise.
20609
20610 * normal/handler.c: New file.
20611
20612 * normal/main.c (get_line): Renamed to grub_file_getline.
20613 (read_config_file): Use the newly renamed grub_file_getline.
20614 (read_command_list): Likewise.
20615 (read_fs_list): Likewise.
20616 (grub_normal_execute): Call read_handler_list to parse handler.lst.
20617 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
20618
20619 * term/efi/console.c (grub_console_init): Add name parameter for auto
20620 generation of handler.lst.
20621 * term/gfxterm.c: Likewise.
20622 * term/i386/pc/at_keyboard.c: Likewise.
20623 * term/i386/pc/console.c: Likewise.
20624 * term/i386/pc/serial.c: Likewise.
20625 * term/i386/pc/vesafb.c: Likewise.
20626 * term/i386/pc/vga.c: Likewise.
20627 * term/i386/pc/vga_text.c: Likewise.
20628 * term/ieee1275/ofconsole.c: Likewise.
20629 * term/usb_keyboard.c: Likewise.
20630
33c846be 206312009-04-14 Bean <bean123ch@gmail.com>
20632
20633 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
20634 properly with null character.
20635
4484e01e 206362009-04-14 Felix Zielcke <fzielcke@z-51.de>
20637
20638 * configure: Remove.
20639 * config.h.in: Likewise.
f93d668e 20640 * stamp-h.in: Likewise.
4484e01e 20641 * DISTLIST: Likewise.
20642 * conf/common.mk: Likewise.
20643 * conf/i386-coreboot.mk: Likewise.
20644 * conf/i386-efi.mk: Likewise.
20645 * conf/i386-ieee1275.mk: Likewise.
20646 * conf/i386.mk: Likewise.
20647 * conf/i386-pc.mk: Likewise.
20648 * conf/powerpc-ieee1275.mk: Likewise.
20649 * conf/sparc64-ieee1275.mk: Likewise.
20650 * conf/x86_64-efi.mk: Likewise.
20651
20652 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
20653 develop on GRUB.
20654
7dd4a573 206552009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 20656 David S. Miller <davem@davemloft.net>
20657
20658 * util/hostdisk.c (make_device_name): Fix buffer length
20659 calculations.
20660
e25b5a8c 206612009-04-14 Felix Zielcke <fzielcke@z-51.de>
20662
20663 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
20664 <sys/param.h> and <sys/sysctl.h>.
20665 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
20666 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
20667 opening the device and reset them afterwards.
20668
1f1f580c 206692009-04-13 Pavel Roskin <proski@gnu.org>
20670
20671 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
20672 Reported by John Stanley <jpsinthemix@verizon.net>
20673
7ebc2d6b 206742009-04-13 Robert Millan <rmh@aybabtu.com>
20675
20676 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 20677 that name for menuentries when appropriate.
7ebc2d6b 20678
d8ba3667 206792009-04-13 Felix Zielcke <fzielcke@z-51.de>
20680
20681 * util/grub.d/10_freebsd.in: Add a missing `fi'.
20682
cba416eb 206832009-04-13 Robert Millan <rmh@aybabtu.com>
20684
20685 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
20686 to Linux, simply abort telling the user it's no longer supported.
20687
a547a745 206882009-04-13 Felix Zielcke <fzielcke@z-51.de>
20689
20690 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 20691 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 20692 `freebsd_loadenv' only when devices.hints exist.
20693
232a769c 206942009-04-13 Pavel Roskin <proski@gnu.org>
20695
20696 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
20697
c3012039 206982009-04-13 Felix Zielcke <fzielcke@z-51.de>
20699
20700 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
20701 partition number.
20702 (grub_drive): Likewise.
20703
234022fe 207042009-04-13 David S. Miller <davem@davemloft.net>
20705
20706 * kern/sparc64/ieee1275/ieee1275.c: New file.
20707 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
20708 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
20709 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
20710 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
20711 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
20712 grub_ieee1275_alloc_physmem): Declare new exported functions.
20713
d8e1836c 20714 * include/grub/sparc64/ieee1275/loader.h: New file.
20715 * include/grub/sparc64/ieee1275/memory.h: Likewise.
20716 * include/grub/sparc64/kernel.h: Likewise.
20717 * loader/sparc64/ieee1275/linux.c: Likewise.
20718
96bd81ec 20719 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
20720 (grub_fstest_SOURCES): Likewise.
20721
6a4737e5 20722 * util/hostdisk.c (make_device_name): Do not make any assumptions
20723 about the length of drive names.
20724
1d7a72fd 20725 * kern/dl.c (grub_dl_load_file): Close file immediately when
20726 we are done using it.
20727
56bc2471 207282009-04-12 David S. Miller <davem@davemloft.net>
20729
20730 * kern/misc.c (grub_ltoa): Fix cast when handling negative
20731 values. Noticed by Pavel Roskin.
20732
df38d0bb 20733 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
20734 target compiler.
7dd4a573 20735
e382e93a 20736 * genmk.rb: Add more flexible image type specification, also
20737 pass --strip-unneeded to objcopy.
20738 * conf/i386-pc.rmk: Use *_FORMAT.
20739 * conf/i386-pc.mk: Rebuilt.
20740
f5dbbca9 20741 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
20742 (OFDISK_HASH_SZ): Define.
20743 (ofdisk_hash): New hash table.
20744 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
20745 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
20746 instead of device phandle which is not unique.
20747
91c88b12 20748 * kern/sparc64/ieee1275/init.c: Delete, replace with...
20749 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
20750 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
20751 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
20752 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
20753 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
20754 GRUB_KERNEL_MACHINE_DATA_END): Define.
20755 (grub_kernel_image_size, grub_total_module_size): Declare.
20756
5b5d4aa5 207572009-04-12 Pavel Roskin <proski@gnu.org>
20758
7dd4a573 20759 * configure.ac: Change the logic when we check for target tools.
20760 Do it when the target is specified and it's different from the
20761 specified value of the host.
5b5d4aa5 20762
c91e1793 207632009-04-11 Felix Zielcke <fzielcke@z-51.de>
20764
20765 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
20766 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
20767 GNU/kFreeBSD. Check if a device is a character device. Use
20768 DIOCGMEDIASIZE to get the size.
20769 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
20770 support for GNU/kFreeBSD.
20771 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
20772 is a character device instead of a block device. Add support for
20773 FreeBSD device names.
20774
20775 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
20776 is a character device instead of a block device.
20777
20778 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
20779 is a character device instead of a block device.
20780
b1ac8644 207812009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
20782
20783 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
20784 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
20785 FreeBSD. Check if a device is a character device. Use
20786 DIOCGMEDIASIZE to get the size.
20787 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
20788 support for FreeBSD.
20789 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
20790 is a character device instead of a block device. Add support for
20791 FreeBSD device names.
20792
20793 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
20794 a character device instead of a block device.
20795 (grub_util_check_char_device): New function.
20796
20797 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
20798 a character device instead of a block device.
20799
20800 * include/grub/util/getroot.h (grub_util_check_char_device): New
20801 prototype.
20802
a3f7515a 208032009-04-11 David S. Miller <davem@davemloft.net>
20804
20805 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
20806 static libgcc.
20807 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
20808 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
20809 function, if present.
20810 (__bswapdi2): Likewise.
20811
0d44993d 20812 * include/grub/sparc64/ieee1275/boot.h: New file.
20813 * boot/sparc64/ieee1275/boot.S: Likewise.
20814 * boot/sparc64/ieee1275/diskboot.S: Likewise.
20815
ed3d2bc2 20816 * kern/misc.c (grub_ltoa): New function.
20817 (grub_vsprintf): Use it to format 'long' integers.
20818
d3bfb59c 208192009-04-10 David S. Miller <davem@davemloft.net>
20820
20821 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
20822 slots are of type grub_ieee1275_cell_t.
20823 (grub_nand_read): Likewise.
20824 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
20825 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
20826 macros are used to compare values in arg/ret block of the call.
20827 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
20828 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
20829 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
20830 grub_ieee1275_instance_to_path, grub_ieee1275_write,
20831 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
20832 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
20833 grub_ieee1275_close, grub_ieee1275_set_property,
20834 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
20835 grub_ieee1275_cell_t.
20836 * kern/ieee1275/openfw.c (grub_map): Likewise.
20837 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
20838 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
20839
450e2238 20840 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
20841 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
20842 (grub_devalias_iterate): Likewise.
20843
7dd4a573 208442009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 20845
20846 UFS improvements
20847
20848 * fs/ufs.c (INODE_NBLOCKS): new definition
20849 (struct grub_ufs_dirent): added fields for non-BSD dirents
20850 (grub_ufs_get_file_block): fixed double indirect handling
20851 (grub_ufs_lookup_symlink): use more robust way to determine whether
20852 symlink is inline
20853 (grub_ufs_find_file): support for non-BSD dirents
20854 (grub_ufs_dir): support for non-BSD dirents
20855
e7e6862a 208562009-04-10 Bean <bean123ch@gnail.com>
20857
20858 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
20859 attribute, otherwise the size would be wrong for i386 platform.
20860
20861 * include/grub/pci.h (grub_pci_read_word): New inline function.
20862 (grub_pci_read_byte): Likewise.
20863 (grub_pci_write): Likewise.
20864 (grub_pci_write_word): Likewise.
20865 (grub_pci_write_byte): Likewise.
20866
20867 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
20868
20869 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
20870 (find_framebuf): Scan pci to locate the frame buffer address.
20871
20872 * commands/efi/fixvideo.c: New file.
20873
20874 * commands/efi/loadbios.c: Likewise.
20875
20876 * commands/memrw.c: Likewise.
20877
20878 * util/grub-dumpbios.in: Likewise.
20879
20880 * conf/common.rmk (grub-dumpbios): New utility.
20881 (pkglib_MODULES): New module memrw.mod.
20882 (memrw_mod_SOURCE): New macro.
20883 (memrw_mod_CFLAGS): Likewise.
20884 (memrw_mod_LDFLAGS): Likewise.
20885
7dd4a573 20886 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 20887 fixvideo.mod.
20888 (loadbios_mod_SOURCE): New macro.
20889 (loadbios_mod_CFLAGS): Likewise.
20890 (loadbios_mod_LDFLAGS): Likewise.
20891 (fixvideo_mod_SOURCE): Likewise.
20892 (fixvideo_mod_CFLAGS): Likewise.
20893 (fixvideo_mod_LDFLAGS): Likewise.
20894
7dd4a573 20895 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 20896 fixvideo.mod.
20897 (loadbios_mod_SOURCE): New macro.
20898 (loadbios_mod_CFLAGS): Likewise.
20899 (loadbios_mod_LDFLAGS): Likewise.
20900 (fixvideo_mod_SOURCE): Likewise.
20901 (fixvideo_mod_CFLAGS): Likewise.
20902 (fixvideo_mod_LDFLAGS): Likewise.
20903
af63ada2 209042009-04-08 Felix Zielcke <fzielcke@z-51.de>
20905
20906 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
20907
c2cdde70 209082009-04-07 David S. Miller <davem@davemloft.net>
20909
20910 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
20911 support for R_SPARC_OLO10 relocations. Fix compile warning for
20912 R_SPARC_WDISP30 case.
ea3f72cf 20913 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 20914
761319cf 209152009-04-06 Pavel Roskin <proski@gnu.org>
20916
1007d1f5 20917 * include/grub/misc.h (ARRAY_SIZE): New macro.
20918 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
20919 New macro.
20920 * loader/i386/linux.c (allocate_pages): Use free_pages().
20921 (grub_linux_unload): Don't use free_pages().
20922 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
20923 wrong index. Treat all other modes as text modes.
20924 (grub_cmd_linux): Initialize vid_mode unconditionally to
20925 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
20926
761319cf 20927 * commands/help.c (print_command_help): Use cmd->prio, not
20928 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
20929
ea761d40 209302009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 20931
ea761d40 20932 Parttool
20933
20934 * parttool/pcpart.c: new file
20935 * commands/parttool.c: likewise
20936 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
20937 (parttool_mod_SOURCES): new variable
20938 (parttool_mod_CFLAGS): likewise
20939 (parttool_mod_LDFLAGS): likewise
20940 (pcpart_mod_SOURCES): likewise
20941 (pcpart_mod_CFLAGS): likewise
20942 (pcpart_mod_LDFLAGS): likewise
7dd4a573 20943 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 20944 and parttool/pcpart.c
20945 * conf/i386-efi.rmk: likewise
20946 * conf/i386-ieee1275.rmk: likewise
20947 * conf/i386-pc.rmk: likewise
20948 * conf/powerpc-ieee1275.rmk: likewise
20949 * conf/sparc64-ieee1275.rmk: likewise
20950 * conf/x86_64-ieee1275.rmk: likewise
20951
05aaebfb 209522009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
20953
20954 Support for mtime and further expandability of dir command
20955
20956 * include/grub/lib/datetime.h: moved to ...
7dd4a573 20957 * include/grub/datetime.h: ... moved here and added
05aaebfb 20958 declaration of grub_unixtime2datetime. All users updated
7dd4a573 20959 * include/grub/fs.h: new syntax for dir and mtime functions in
20960 struct grub_fs
05aaebfb 20961 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
20962 and GRUB_FSHELP_FLAGS_MASK
20963 * commands/ls.c (grub_ls_list_files): Write mtime in long format
20964 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
20965 (grub_ext2_mtime): new function
20966 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
20967 (grub_hfsplus_mtime): new function
20968 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
20969 (GRUB_UFS_ATTR_FILE): likewise
20970 (GRUB_UFS_ATTR_LNK): likewise
20971 (struct grub_ufs_sblock): new fields mtime
20972 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
20973 all users updated
20974 (grub_ufs_dir): mtime support
20975 (grub_ufs_mtime): new function
20976 * fs/affs.c (grub_affs_dir): use new dir syntax
20977 * fs/afs.c (grub_afs_dir): likewise
20978 * fs/cpio.c (grub_cpio_dir): likewise
20979 * fs/fat.c (grub_fat_find_dir): likewise
20980 * fs/hfs.c (grub_hfs_dir): likewise
20981 * fs/iso9660.c (grub_iso9660_dir): likewise
20982 * fs/jfs.c (grub_jfs_dir): likewise
20983 * fs/minix.c (grub_minix_dir): likewise
20984 * fs/ntfs.c (grub_ntfs_dir): likewise
20985 * fs/reiserfs.c (grub_reiserfs_dir): likewise
20986 * fs/sfs.c (grub_sfs_dir): likewise
20987 * fs/xfs.c (grub_xfs_dir): likewise
20988 * util/hostfs.c (grub_hostfs_dir): likewise
20989 * lib/datetime.c: moved to ...
20990 * normal/datetime.c: ... moved here
20991 (grub_unixtime2datetime): new function
20992 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 20993 * normal/completion.c (iterate_dir): use new dir syntax
20994 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 20995 last modification time of a volume
7dd4a573 20996 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 20997 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 20998 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 20999 (normal_mod_SOURCES): likewise
21000 (datetime_mod_SOURCES): Removed lib/datetime.c
21001 * conf/i386-efi.rmk: likewise
7dd4a573 21002 * conf/i386-ieee1275.rmk: likewise
05aaebfb 21003 * conf/i386-pc.rmk: likewise
21004 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 21005 * conf/sparc64-ieee1275.rmk: likewise
21006 * conf/x86_64-efi.rmk: likewise
05aaebfb 21007
8a7e1a14 210082009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21009
21010 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 21011
21012 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 21013 on grub_fat_find_dir
21014 (grub_fat_find_dir): use grub_fat_iterate_dir
21015 (grub_fat_label): likewise
21016
04186a9c 210172009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
21018
7dd4a573 21019 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 21020 and command.h
21021 remove extraneous kernel_elf_HEADERS
21022
da4c0bb6 210232009-04-04 Bean <bean123ch@gnail.com>
21024
21025 * include/grub/util/misc.h: Add dummy function fsync for mingw.
21026
21027 * util/misc.c: Likewise.
21028
54ad9555 210292009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
21030
21031 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
21032 instead of grub_printf.
21033
7a6bf9f2 210342009-04-03 Robert Millan <rmh@aybabtu.com>
21035
21036 * loader/i386/linux.c (grub_linux_setup_video): Fill
21037 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
21038 values from `mode info' structure instead of hardcoded
21039 values.
21040
3fcc2083 210412009-04-01 Pavel Roskin <proski@gnu.org>
21042
21043 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
21044 unused now.
21045 * genmk.rb: Likewise.
21046 * configure.ac: Likewise.
21047
5ec9740b 210482009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
21049
21050 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
21051 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
21052
5270cec8 210532009-04-01 David S. Miller <davem@davemloft.net>
21054
21055 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 21056 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 21057 (grub_setjmp): Mark with 'returns_twice' attribute.
21058 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
21059 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
21060 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
21061
9c3dd854 210622009-04-01 Robert Millan <rmh@aybabtu.com>
21063
21064 Reapply fix from 2008-07-28 which was accidentally reverted; also
21065 perform the same fix to a similar check in same function.
21066
21067 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
21068 with the same number are found, just use issue a warning with
21069 grub_dprintf(), as this error has been reported to be non-fatal.
21070
0d818b7e 210712009-03-31 Pavel Roskin <proski@gnu.org>
21072
21073 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
21074 for cross-compilation.
21075
95646d92 210762009-03-30 Robert Millan <rmh@aybabtu.com>
21077
21078 Fix i386-ieee1275 build.
21079
21080 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
21081 Remove declaration.
21082
6a003ed1 210832009-03-30 Pavel Roskin <proski@gnu.org>
21084
21085 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
21086 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
21087 zero-terminated, rely only on the strlen value. Fix comparison
21088 of strings differing in length.
21089
92f33540 210902009-03-30 Robert Millan <rmh@aybabtu.com>
21091
21092 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
21093 checking for abi version. Improve error messages on BIOS to notify
21094 user about `linux16' command.
21095
a8c48fd5 210962009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21097
f968172e 21098 Leak fixes
a8c48fd5 21099
f968172e 21100 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
21101 in case of collision
21102 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 21103
9c323f09 211042009-03-29 Robert Millan <rmh@aybabtu.com>
21105
21106 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
21107 set `vid_mode' accordingly.
21108 (grub_linux_boot): Process `vid_mode' and set video mode.
21109
ae68f423 211102009-03-29 Robert Millan <rmh@aybabtu.com>
21111
21112 * util/grub.d/10_linux.in (linux_entry): New function.
21113 Factorize generation of Linux boot entries.
21114
5709cfc4 211152009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
21116
21117 Make the format of Environment Block plain text. The boot loader
21118 part is not tested well yet.
7dd4a573 21119
5709cfc4 21120 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
21121 (buffer): Removed.
21122 (envblk): Likewise.
21123 (usage): Remove "info" and "clear". Add "unset". Update the
21124 description of "set", as this does not delete variables any
21125 longer.
21126 (create_envblk_file): Complete rewrite.
21127 (open_envblk_file): Likewise.
21128 (cmd_info): Removed.
21129 (cmd_list): Likewise.
21130 (cmd_set): Likewise.
21131 (cmd_clear): Likewise.
21132 (list_variables): New function.
21133 (write_envblk): Likewise.
21134 (set_variables): Likewise.
21135 (unset_variables): Likewise.
21136 (main): Complete rewrite.
21137
21138 * commands/loadenv.c (buffer): Removed.
21139 (envblk): Likewise.
21140 (open_envblk_file): New function.
21141 (read_envblk_file): Complete rewrite.
21142 (grub_cmd_load_env): Likewise.
21143 (grub_cmd_list_env): Likewise.
21144 (struct blocklist): New struct.
21145 (free_blocklists): New function.
21146 (check_blocklists): Likewise.
21147 (write_blocklists): Likewise.
21148 (grub_cmd_save_env): Complete rewrite.
21149
21150 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
21151 a plain text signature.
21152 (GRUB_ENVBLK_MAXLEN): Removed.
21153 (struct grub_envblk): Complete rewrite.
21154 (grub_envblk_find): Removed.
21155 (grub_envblk_insert): Likewise.
21156 (grub_envblk_open): New prototype.
21157 (grub_envblk_set): Likewise.
21158 (grub_envblk_delete): Put const to VALUE.
21159 (grub_envblk_iterate): Put const to NAME and VALUE.
21160 (grub_envblk_close): New prototype.
21161 (grub_envblk_buffer): New inline function.
21162 (grub_envblk_size): Likewise.
21163
21164 * lib/envblk.c: Include grub/mm.h.
21165 (grub_env_find): Removed.
21166 (grub_envblk_open): New function.
21167 (grub_envblk_close): Likewise.
21168 (escaped_value_len): Likewise.
21169 (find_next_line): Likewise.
21170 (grub_envblk_insert): Removed.
21171 (grub_envblk_set): New function.
21172 (grub_envblk_delete): Complete rewrite.
21173 (grub_envblk_iterate): Likewise.
21174
a9368fd3 211752009-03-28 Robert Millan <rmh@aybabtu.com>
21176
21177 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
21178 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
21179 variables. Use 16-bit loader.
21180 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
21181 loader.
21182 * kern/i386/loader.S (grub_linux_boot): Rename to ...
21183 (grub_linux16_boot): ... this. Update all users.
21184 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
21185 (grub_linux_boot): ... this. Update all users.
21186
21187 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
21188 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
21189 commands to `linux16' and `initrd16'.
21190 (GRUB_MOD_FINI(linux)): Rename to ...
21191 (GRUB_MOD_FINI(linux16)): ... this.
21192
e4dd5a7e 211932009-03-24 Pavel Roskin <proski@gnu.org>
21194
21195 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
21196 not just for compilation.
21197
c04d6e05 211982009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
21199
21200 Move multiboot helper out of kernel
21201
21202 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
21203 `loader/i386/multiboot_helper.S'.
21204 * conf/i386-coreboot.rmk: Likewise
21205 * conf/i386-ieee1275.rmk: Likewise
21206
21207 * kern/i386/loader.S: Move multiboot helpers from here...
21208 * loader/i386/multiboot_helper.S: ...moved here
21209 * include/grub/i386/loader.h: Move declarations of multiboot
21210 helpers from here...
21211 * include/grub/i386/multiboot.h: ...moved here
21212 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
21213
42a5b3fc 212142009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
21215
21216 * kern/env.c (grub_env_context_open): Added an argument to specify
21217 whether a new context inherits exported variables from current
21218 one. This is useful when making a sandbox to interpret a config
21219 file.
21220 All callers updated.
21221
21222 * include/grub/env.h (grub_env_context_open): Updated the prototype.
21223
b28bbc4e 212242009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
21225
21226 * kern/env.c (grub_env_context_close): Fix memory leaks.
21227
f04f02e4 212282009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
21229
21230 * normal/main.c (grub_normal_execute): Added an argument
21231 BATCH to specify if an interactive interface should be provided
21232 after reading a config file.
21233 All callers updated.
21234 (read_command_list): Prevent being executed twice.
21235 (read_fs_list): Likewise.
21236
42a5b3fc 21237 * include/grub/normal.h (grub_normal_execute): Updated the
21238 prototype.
f04f02e4 21239
41473ac2 212402009-03-22 Pavel Roskin <proski@gno.org>
21241
fbc00b0c 21242 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
21243 _start.
21244 * kern/i386/pc/startup.S: Likewise.
21245 * kern/i386/efi/startup.S: Likewise.
21246 * kern/i386/ieee1275/startup.S: Likewise.
21247 * kern/i386/coreboot/startup.S: Likewise.
21248 * kern/x86_64/efi/startup.S: Likewise.
21249
41473ac2 21250 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
21251 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
21252 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
21253
2274cc8f 212542009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
21255
21256 Bugfixes in multiboot for bugs uncovered by solaris kernel.
21257
21258 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
21259 limit detection.
21260 Use vaddr of correct segment for entry_point.
21261
b1b797cb 212622009-03-21 Bean <bean123ch@gmail.com>
21263
21264 * commands/blocklist.c: Add include file <grub/command.h>, remove
21265 <grub/normal.h> and <grub/arg.h>.
21266 (grub_cmd_blocklist): Use the new command interface.
21267 (GRUB_MOD_INIT): Likewise.
21268 (GRUB_MOD_FINI): Likewise.
21269 * commands/boot.c: Likewise.
21270 * commands/cat.c: Likewise.
21271 * commands/cmp.c: Likewise.
21272 * commands/configfile.c: Likewise.
21273 * commands/crc.c: Likewise.
21274 * commands/echo.c: Likewise.
21275 * commands/halt.c: Likewise.
21276 * commands/handler.c: Likewise.
21277 * commands/hdparm.c: Likewise.
21278 * commands/help.c: Likewise.
21279 * commands/hexdump.c: Likewise.
21280 * commands/loadenv.c: Likewise.
21281 * commands/ls.c: Likewise.
21282 * commands/lsmmap.c: Likewise.
21283 * commands/lspci.c: Likewise.
21284 * commands/loadenv.c: Likewise.
21285 * commands/read.c: Likewise.
21286 * commands/reboot.c: Likewise.
21287 * commands/search.c: Likewise.
21288 * commands/sleep.c: Likewise.
21289 * commands/test.c: Likewise.
21290 * commands/usbtest.c: Likewise.
21291 * commands/videotest.c: Likewise.
21292 * commands/i386/cpuid.c: Likewise.
21293 * commands/i386/pc/halt.c: Likewise.
21294 * commands/i386/pc/play.c: Likewise.
21295 * commands/i386/pc/pxecmd.c: Likewise.
21296 * commands/i386/pc/vbeinfo.c: Likewise.
21297 * commands/i386/pc/vbetest.c: Likewise.
21298 * commands/ieee1275/suspend.c: Likewise.
21299 * disk/loopback.c: Likewise.
21300 * font/font_cmd.c: Likewise.
21301 * hello/hello.c: Likewise.
21302 * loader/efi/appleloader.c: Likewise.
21303 * loader/efi/chainloader.c: Likewise.
21304 * loader/i386/bsd.c: Likewise.
21305 * loader/i386/efi/linux.c: Likewise.
21306 * loader/i386/ieee1275/linux.c: Likewise.
21307 * loader/i386/linux.c: Likewise.
21308 * loader/i386/pc/chainloader.c: Likewise.
21309 * loader/i386/pc/linux.c: Likewise.
21310 * loader/powerpc/ieee1275/linux.c: Likewise.
21311 * loader/multiboot_loader.c: Likewise.
21312 * term/gfxterm.c: Likewise.
21313 * term/i386/pc/serial.c: Likewise.
21314 * term/terminfo.c: Likewise.
21315
21316 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
21317 * term/i386/pc/vga.c: Likewise.
21318 * video/readers/jpeg.c: Likewise.
21319 * video/readers/png.c: Likewise.
21320 * video/readers/tga.c: Likewise.
21321
21322 * util/grub-fstest (cmd_loopback): Removed.
21323 (cmd_blocklist): Likewise.
21324 (cmd_ls): Likewise.
21325 (grub_register_command): Likewise.
21326 (grub_unregister_command): Likewise.
21327 (execute_command): Use grub_command_find to locate command and execute
21328 it.
21329
21330 * include/grub/efi/chainloader.h: Removed.
21331 * loader/efi/chainloader_normal.c: Likewise.
21332 * loader/i386/bsd_normal.c: Likewise.
21333 * loader/i386/pc/chainloader_normal.c: Likewise.
21334 * loader/i386/pc/multiboot_normal.c: Likewise.
21335 * loader/linux_normal.c: Likewise.
21336 * loader/multiboot_loader_normal.c: Likewise.
21337 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
21338
21339 * gencmdlist.sh: Scan new registration command grub_register_extcmd
21340 and grub_register_command_p1.
21341
21342 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
21343 kern/command.c, lib/arg.c and commands/extcmd.c.
21344 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
21345 (minicmd_mod_SOURCES): New variable.
21346 (minicmd_mod_CFLAGS): Likewise.
21347 (minicmd_mod_LDFLAGS): Likewise.
21348 (extcmd_mod_SOURCES): Likewise.
21349 (extcmd_mod_CFLAGS): Likewise.
21350 (extcmd_mod_LDFLAGS): Likewise.
21351 (boot_mod_SOURCES): Removed.
21352 (boot_mod_CFLAGS): Likewise.
21353 (boot_mod_LDFLAGS): Likewise.
21354
21355 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
21356 kern/corecmd.c.
21357 (kernel_img_HEADERS): Add command.h.
21358 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
21359 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
21360 and lib/arg.c.
21361 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
21362 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
21363 remove the corresponding normal mode command.
21364 (normal_mod_SOURCES): Remove normal/arg.c.
21365 * conf/i386-coreboot.rmk: Likewise.
21366 * conf/i386-efi.rmk: Likewise.
21367 * conf/i386-ieee1275.rmk: Likewise.
21368 * conf/powerpc-ieee1275.rmk: Likewise.
21369 * conf/x86_64-efi.rmk: Likewise.
21370
21371 * include/grub/arg.h: Move from here ...
21372 * include/grub/lib/arg.h: ... to here.
21373
21374 * normal/arg.c: Move from here ...
21375 * lib/arg.c: ... to here.
21376
21377 * commands/extcmd.c: New file.
21378 * commands/minicmd.c: Likewise.
21379 * include/grub/command.h: Likewise.
21380 * include/grub/extcmd.h: Likewise.
21381 * kern/command.c: Likewise.
21382 * kern/corecmd.c: Likewise.
21383
21384 * kern/list.c (grub_list_iterate): Return int instead of void.
21385 (grub_list_insert): New function.
21386 (grub_prio_list_insert): Likewise.
21387
21388 * kern/rescue.c (grub_rescue_command): Removed.
21389 (grub_rescue_command_list): Likewise.
21390 (grub_rescue_register_command): Likewise.
21391 (grub_rescue_unregister_command): Likewise.
21392 (grub_rescue_cmd_boot): Move to minicmd.c
21393 (grub_rescue_cmd_help): Likewise.
21394 (grub_rescue_cmd_info): Likewise.
21395 (grub_rescue_cmd_boot): Likewise.
21396 (grub_rescue_cmd_testload): Likewise.
21397 (grub_rescue_cmd_dump): Likewise.
21398 (grub_rescue_cmd_rmmod): Likewise.
21399 (grub_rescue_cmd_lsmod): Likewise.
21400 (grub_rescue_cmd_exit): Likewise.
21401 (grub_rescue_print_devices): Moved to corecmd.c.
21402 (grub_rescue_print_files): Likewise.
21403 (grub_rescue_cmd_ls): Likewise.
21404 (grub_rescue_cmd_insmod): Likewise.
21405 (grub_rescue_cmd_set): Likewise.
21406 (grub_rescue_cmd_unset): Likewise.
7d074e3c 21407 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 21408 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 21409 commands, remove grub_rescue_register_command calls.
b1b797cb 21410
7d074e3c 21411 * normal/command.c (grub_register_command): Removed.
b1b797cb 21412 (grub_unregister_command): Likewise.
21413 (grub_command_find): Likewise.
21414 (grub_iterate_commands): Likewise.
21415 (rescue_command): Likewise.
21416 (export_command): Moved to corecmd.c.
21417 (set_command): Removed.
21418 (unset_command): Likewise.
21419 (insmod_command): Likewise.
21420 (rmmod_command): Likewise.
21421 (lsmod_command): Likewise.
21422 (grub_command_init): Likewise.
21423
21424 * normal/completion.c (iterate_command): Use cmd->prio to check for
21425 active command.
21426 (complete_arguments): Use grub_extcmd_t structure to find options.
21427 (grub_normal_do_completion): Change function grub_iterate_commands to
21428 grub_command_iterate.
21429
21430 * normal/execute.c (grub_script_execute_cmd): No need to parse
21431 argument here.
21432
21433 * normal/main.c (grub_dyncmd_dispatcher): New function.
21434 (read_command_list): Register unload commands as dyncmd.
21435 (grub_cmd_normal): Use new command interface, register rescue,
21436 unregister normal at entry, register normal, unregister rescue at exit.
21437
21438 * include/grub/list.h (grub_list_test_t): New type.
21439 (grub_list_iterate): Return int instead of void.
21440 (grub_list_insert): New function.
21441 (GRUB_AS_NAMED_LIST_P): New macro.
21442 (GRUB_AS_PRIO_LIST): Likewise.
21443 (GRUB_AS_PRIO_LIST_P): Likewise.
21444 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
21445 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
21446 (grub_prio_list): New structure.
21447 (grub_prio_list_insert): New function.
21448 (grub_prio_list_remove): New inline function.
21449
21450 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
21451 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
21452 (GRUB_COMMAND_FLAG_MENU): Likewise.
21453 (GRUB_COMMAND_FLAG_BOTH): Likewise.
21454 (GRUB_COMMAND_FLAG_TITLE): Likewise.
21455 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
21456 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
21457 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
21458 (grub_command): Likewise.
21459 (grub_register_command): Likewise.
21460 (grub_command_find): Likewise.
21461 (grub_iterate_commands): Likewise.
21462 (grub_command_init): Likewise.
21463 (grub_arg_parse): Likewise.
21464 (grub_arg_show_help): Likewise.
21465
21466 * include/grub/rescue.h (grub_rescue_register_command): Removed.
21467 (grub_rescue_unregister_command): Likewise.
21468
21469 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
21470 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
21471 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
21472
21473 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
21474 grub_rescue_cmd_initrd.
21475 * include/grub/i386/loader.h: Likewise.
21476 * include/grub/x86_64/loader.h: Likewise.
21477
21478 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
21479
1f4147aa 214802009-03-21 Bean <bean123ch@gmail.com>
21481
21482 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
21483 instead of stat in mingw environment.
21484
21485 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
21486
21487 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
21488
21489 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
21490 AC_CONFIG_LINKS.
21491
2156d5ba 214922009-03-21 Bean <bean123ch@gmail.com>
21493
21494 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
21495 out of range error.
21496
177b82ca 214972009-03-18 Michel Dänzer <michel@daenzer.net>
21498
21499 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
21500 checking inode flags for EXT4_EXTENTS_FLAG.
21501
14aad807 215022009-03-18 Robert Millan <rmh@aybabtu.com>
21503
21504 * loader/i386/linux.c: Include `<grub/video.h>' and
21505 `<grub/i386/pc/vbe.h>'..
21506 (grub_linux_setup_video): New function. Loosely based on the EFI one.
21507 (grub_linux32_boot): Attempt to configure video settings with
21508 grub_linux_setup_video().
21509 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
21510 to avoid grub_console_fini() which would step out of graphical mode
21511 unconditionally.
21512
8cf83a27 215132009-03-14 Robert Millan <rmh@aybabtu.com>
21514
21515 Fix build on powerpc.
21516 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
21517
40164e75 215182009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
21519
21520 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
21521 background image command.
21522
c58bc32a 215232009-03-12 Colin D Bennett <colin@gibibit.com>
21524
21525 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
21526 (grub_gfxterm_putchar): Extract pairs of identical calls to
21527 draw_cursor out of conditional blocks.
21528
5415144a 215292009-03-11 Pavel Roskin <proski@gnu.org>
21530
21531 * fs/hfs.c (grub_hfs_strncasecmp): New function.
21532 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
21533
6394042e 215342009-03-11 Robert Millan <rmh@aybabtu.com>
21535
21536 * loader/i386/multiboot_elfxx.c
21537 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
21538
b7b50e5f 215392009-03-11 Felix Zielcke <fzielcke@z-51.de>
21540
21541 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
21542 `kern/handler.c'.
21543
1ca7fc96 215442009-03-11 Robert Millan <rmh@aybabtu.com>
21545
21546 * loader/i386/multiboot.c (code_size): New variable.
21547 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 21548 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 21549 4-byte alignment to MBI and others by increasing
7d074e3c 21550 `boot_loader_name_length' appropriately.
1ca7fc96 21551
21552 * loader/i386/multiboot_elfxx.c
21553 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
21554
a83ea1d2 215552009-03-09 Felix Zielcke <fzielcke@z-51.de>
21556
21557 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
21558 `fs/ext2.c'.
21559
aa9f3bff 215602009-03-08 Robert Millan <rmh@aybabtu.com>
21561
21562 Make loader/i386/linux.c usable on i386-pc again.
21563
21564 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
21565 memory to heap.
21566 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
21567 `#error' stanza.
21568
d8b3b60e 215692009-03-07 Bean <bean123ch@gmail.com>
21570
21571 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
21572 allocation.
21573
b362c9e9 215742009-03-06 Robert Millan <rmh@aybabtu.com>
21575
21576 Fix display issue on terminals with screen size other than 80x25
21577 (e.g. gfxterm with resolution higher than 640x480).
21578
21579 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 21580 position relative to the center of the terminal instead of relying
b362c9e9 21581 on a hardcoded offset.
21582
9304eef1 215832009-03-04 Robert Millan <rmh@aybabtu.com>
21584
21585 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
21586 installed.
21587
21588 * Makefile.in (host_kernel): New variable.
21589 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
21590 scripts instead of just the windows one.
21591 * configure.ac: Initialize and AC_SUBST `host_kernel'.
21592
eabc95fb 215932009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 21594
21595 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
21596 `kern/handler.c'.
21597 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21598 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21599 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
21600 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21601 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21602 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21603
ceb1223c 216042009-03-04 Felix Zielcke <fzielcke@z-51.de>
21605
21606 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
21607 or if there's no space for the disk label and print the partition number on a
21608 invalid magic.
21609
4910684a 216102009-03-04 Felix Zielcke <fzielcke@z-51.de>
21611
21612 * util/misc.c: Include <time.h>.
21613 (grub_millisleep): New function.
21614
7e9ca17a 216152009-03-04 Bean <bean123ch@gmail.com>
21616
21617 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
21618 another option -mno-red-zone.
21619
21620 * commands/handler.c: Change module description.
21621
21622 * kern/handler.c: Add missing space at the end of description line.
21623
21624 * kern/list.c: Likewise.
21625
f501677c 216262009-03-03 Robert Millan <rmh@aybabtu.com>
21627
21628 Move more components to the relocation area, and fix mbi pointer
21629 handling to use the destination rather than the origin (thanks to
21630 Vladimir Serbinenko for spotting).
21631
21632 * loader/i386/multiboot.c (mbi_dest): New variable.
21633 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
21634 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
21635 relocation area.
21636
9902d047 216372009-03-01 Bean <bean123ch@gmail.com>
21638
50fb7002 21639 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 21640 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
21641 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
21642 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
21643
21644 * loader/i386/efi/linux.c (acpi_guid): New variable.
21645 (acpi_guid): Likewise.
21646 (EBDA_SEG_ADDR): New constant.
21647 (LOW_MEM_ADDR): Likewise.
21648 (FAKE_EBDA_SEG): Likewise.
21649 (fake_bios_data): New function.
21650 (grub_linux_boot): Call fake_bios_data.
21651
71b9f361 216522009-03-01 Bean <bean123ch@gmail.com>
21653
21654 * commands/terminal.c: Removed.
21655
21656 * commands/handler.c: New file.
21657
21658 * include/grub/list.h: Likewise.
21659
21660 * include/grub/handler.h: Likewise.
21661
21662 * kern/list.c: Likewise.
21663
21664 * kern/handler.c: Likewise.
21665
21666 * kern/term.h: Include header file <grub/handler.h>.
21667 (grub_term_input): Move next field to the beginning.
21668 (grub_term_output): Likewise.
21669 (grub_term_input_class): New variable.
21670 (grub_term_output_class): Likewise.
21671 (grub_term_register_input): Changed to inline function.
21672 (grub_term_register_output): Likewise.
21673 (grub_term_unregister_input): Likewise.
21674 (grub_term_unregister_output): Likewise.
21675 (grub_term_set_current_input): Likewise.
21676 (grub_term_set_current_output): Likewise.
21677 (grub_term_get_current_input): Likewise.
21678 (grub_term_get_current_output): Likewise.
21679 (grub_term_iterate_input): Removed.
21680 (grub_term_iterate_output): Likewise.
21681
21682 * kern/term.c (grub_term_list_input): Removed.
21683 (grub_term_list_output): Likewise.
21684 (grub_term_input_class): New variable.
21685 (grub_term_output_class): Likewise.
50fb7002 21686 (grub_cur_term_input): Change variable as macro.
71b9f361 21687 (grub_cur_term_output): Likewise.
21688 (grub_term_register_input): Removed.
21689 (grub_term_register_output): Likewise.
21690 (grub_term_unregister_input): Likewise.
21691 (grub_term_unregister_output): Likewise.
21692 (grub_term_set_current_input): Likewise.
21693 (grub_term_set_current_output): Likewise.
21694 (grub_term_iterate_input): Likewise.
21695 (grub_term_iterate_output): Likewise.
21696 (grub_term_get_current_input): Likewise.
21697 (grub_term_get_current_output): Likewise.
21698
21699 * util/grub-editenv.c: Include header file <grub/handler.h>.
21700 (grub_term_get_current_input): Removed.
21701 (grub_term_get_current_output): Likewise.
21702 (grub_term_input_class): New variable.
50fb7002 21703 (grub_term_output_class): Likewise.
71b9f361 21704
21705 * util/grub-fstest.c (grub_term_get_current_input): Removed.
21706 (grub_term_get_current_output): Likewise.
21707 (grub_term_input_class): New variable.
50fb7002 21708 (grub_term_output_class): Likewise.
71b9f361 21709
21710 * util/grub-probe.c (grub_term_get_current_input): Removed.
21711 (grub_term_get_current_output): Likewise.
21712 (grub_term_input_class): New variable.
50fb7002 21713 (grub_term_output_class): Likewise.
71b9f361 21714
21715 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
21716 (grub_term_get_current_output): Likewise.
21717 (grub_term_input_class): New variable.
50fb7002 21718 (grub_term_output_class): Likewise.
71b9f361 21719
21720 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
21721 (terminal_mod_SOURCES): Likewise.
21722 (terminal_mod_CFLAGS): Likewise.
21723 (terminal_mod_LDFLAGS): Likewise.
21724
21725 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
21726 handler.c.
21727 (kernel_img_SOURCES): Add list.c and handler.c.
21728 (kernel_img_HEADERS): Add list.h and handler.h.
21729
21730 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
21731 handler.c.
21732 (kernel_mod_SOURCES): Add list.c and handler.c.
21733 (kernel_mod_HEADERS): Add list.h and handler.h.
21734
21735 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
21736 handler.c.
21737 (kernel_elf_SOURCES): Add list.c and handler.c.
21738 (kernel_elf_HEADERS): Add list.h and handler.h.
21739
21740 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
21741 handler.c.
21742 (kernel_elf_SOURCES): Add list.c and handler.c.
21743 (kernel_elf_HEADERS): Add list.h and handler.h.
21744
21745 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
21746 handler.c.
21747 (kernel_mod_SOURCES): Add list.c and handler.c.
21748 (kernel_mod_HEADERS): Add list.h and handler.h.
21749
21750 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
21751 handler.c.
21752 (kernel_elf_SOURCES): Add list.c and handler.c.
21753 (kernel_elf_HEADERS): Add list.h and handler.h.
21754
8a31787f 217552009-02-27 Robert Millan <rmh@aybabtu.com>
21756
21757 Factorize elf32 / elf64 code in Multiboot loader. This will
21758 prevent it from getting out of sync again.
21759
21760 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
21761 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
21762 grub_multiboot_load_elf64): Move from here ...
21763 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
21764 grub_multiboot_load_elf): ... to here (new file).
21765
51cd3dfc 217662009-02-27 Robert Millan <rmh@aybabtu.com>
21767
21768 * util/grub.d/10_linux.in: Rename "single-user mode" to
21769 "recovery mode".
21770
6e8c9c3a 217712009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
21772
21773 Don't leak in SCSI code.
21774 * disk/scsi.c (grub_scsi_close): free `scsi'.
21775
4b6bf4f9 217762009-02-27 Robert Millan <rmh@aybabtu.com>
21777
21778 * loader/i386/pc/multiboot.c: Move from here ...
21779 * loader/i386/multiboot.c: ... to here. Update all users.
21780
b9413424 217812009-02-27 Robert Millan <rmh@aybabtu.com>
21782
21783 Patch from Alexandre Bique <bique.alexandre@gmail.com>
21784 * util/i386/pc/grub-setup.c (setup): Fix directory path.
21785
50fb7002 217862009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 21787
21788 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
21789 b-tree.
21790
8cc50345 217912009-02-27 Robert Millan <rmh@aybabtu.com>
21792
21793 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
21794 `0x' qualifier as 0 when base is specified as parameter).
21795
6e09b8b7 217962009-02-24 Bean <bean123ch@gmail.com>
21797
21798 * configure.ac: Check for -mcmodel=large in x86_64 target.
21799
21800 * include/grub/efi/api.h (efi_call_10): New macro.
21801 (efi_wrap_10): New function.
21802
21803 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
21804 (GRUB_PE32_REL_BASED_HIGH): Likewise.
21805 (GRUB_PE32_REL_BASED_LOW): Likewise.
21806 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
21807 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
21808 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
21809 (GRUB_PE32_REL_BASED_SECTION): Likewise.
21810 (GRUB_PE32_REL_BASED_REL): Likewise.
21811 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
21812 (GRUB_PE32_REL_BASED_DIR64): Likewise.
21813 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
21814
21815 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
21816 issue.
21817
21818 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
21819 (efi_wrap_10): New function.
21820
21821 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
21822
21823 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
21824 MB/MBP model (NV chipset).
21825 (devdata_devs): Add devpath_5 to the list.
21826
21827 * load/i386/efi/linux.c (video_base): Remove variable.
21828 (RGB_MASK): New macro.
21829 (RGB_MAGIC): Likewise.
21830 (LINE_MIN): Likewise.
21831 (LINE_MAX): Likewise.
21832 (FBTEST_STEP): Likewise.
21833 (FBTEST_COUNT): Likewise.
21834 (fb_list): New variable.
21835 (grub_find_video_card): Remove function.
21836 (find_framebuf): New function.
21837 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
21838 line length.
21839
21840 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
21841 problem for x86_64.
21842
74b21bee 218432009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
21844
21845 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
21846
21847 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
21848 coding tool name.
21849
a455f472 218502009-02-22 Robert Millan <rmh@aybabtu.com>
21851
21852 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
21853 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
21854 in our relocation, instead of using it directly from heap. Also
21855 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
21856
6374daf3 218572009-02-21 Robert Millan <rmh@aybabtu.com>
21858
21859 Implement USB keyboard support (based on patch by Marco Gerards)
21860
21861 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
21862 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
21863 (usb_keyboard_mod_LDFLAGS): New variables.
21864
21865 * term/usb_keyboard.c: New file.
21866
8fa4ea70 218672009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
21868
21869 Corrected wrong declaration
21870
21871 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
21872
353976ac 218732009-02-14 Christian Franke <franke@computer.org>
21874
21875 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
21876 (grub_lspci_iter): Print class code and programming interface byte.
21877
6aa1169b 218782009-02-14 Christian Franke <franke@computer.org>
21879
21880 * gendistlist.sh: Ignore `.svn' directories.
21881
265372ca 218822009-02-14 Felix Zielcke <fzielcke@z-51.de>
21883
21884 * fs/fat.c: Add 2009 to Copyright line.
21885
9ff516f3 218862009-02-14 Christian Franke <franke@computer.org>
21887
21888 * commands/hdparm.c: New file. Provides `hdparm' command
21889 which sends ATA commands via grub_disk_ata_pass_through ().
21890
21891 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
21892
21893 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
21894 and <grub/cpu/io.h> to include/grub/ata.h.
21895 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
21896 (GRUB_CDROM_SECTOR_SIZE): Remove.
21897 (GRUB_ATA_*): Move to include/grub/ata.h.
21898 (GRUB_ATAPI_*): Likewise.
21899 (enum grub_ata_commands): Likewise.
21900 (enum grub_ata_timeout_milliseconds): Likewise.
21901 (struct grub_ata_device): Likewise.
21902 (grub_ata_regset): Likewise.
21903 (grub_ata_regget): Likewise.
21904 (grub_ata_regset2): Likewise.
21905 (grub_ata_regget2): Likewise.
21906 (grub_ata_check_ready): Likewise.
21907 (grub_ata_wait_not_busy): Remove static, exported in
21908 include/grub/ata.h.
21909 (grub_ata_wait_drq): Likewise.
21910 (grub_ata_pio_read): Likewise.
21911
21912 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
21913 function for hdparm.mod.
21914
21915 * include/grub/ata.h: New file, contains declarations from
21916 disk/ata.c.
21917 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
21918
21919 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
21920 (grub_disk_ata_pass_through): New exported variable.
21921
21922 * kern/disk.c (grub_disk_ata_pass_through): New variable.
21923
772e23da 219242009-02-13 Colin D Bennett <colin@gibibit.com>
21925
21926 Support multiple fallback entries, and provide an API to support
21927 executing default+fallback menu entries. Renamed the `terminal' menu
21928 viewer to `text'.
21929
21930 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
21931 variable declaration.
21932 (grub_menu_execute_callback): New structure declaration.
21933 (grub_menu_execute_callback_t): New typedef.
21934 (grub_menu_execute_with_fallback): New function declaration.
21935 (grub_menu_get_entry): Likewise.
21936 (grub_menu_get_timeout): Likewise.
21937 (grub_menu_set_timeout): Likewise.
21938
21939 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
21940
21941 * normal/menu.c (grub_wait_after_message): Moved to
21942 `normal/menu_text.c'.
21943 (draw_border): Likewise.
21944 (print_message): Likewise.
21945 (print_entry): Likewise.
21946 (print_entries): Likewise.
21947 (grub_menu_init_page): Likewise.
21948 (get_entry_number): Likewise.
21949 (print_timeout): Likewise.
21950 (run_menu): Likewise.
21951 (grub_menu_execute_entry): Likewise.
21952 (show_text_menu): Likewise.
21953 (get_and_remove_first_entry_number): New function.
21954 (grub_menu_execute_with_fallback): Likewise.
21955 (get_entry): Renamed to ...
21956 (grub_menu_get_entry): .. this and made it global.
21957 (get_timeout): Renamed to ...
21958 (grub_menu_get_timeout): ... this and made it global.
21959 (set_timeout): Renamed to ...
21960 (grub_menu_set_timeout): ... this and made it global.
21961 (grub_normal_terminal_menu_viewer): Renamed to ...
21962 (grub_normal_text_menu_viewer): ... this.
21963
21964 * normal/menu_text.c: New file. Extracted text-menu-specific code
21965 from normal/menu.c.
21966
21967 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
21968 (normal_mod_SOURCES): Likewise.
21969
21970 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21971 (normal_mod_SOURCES): Likewise.
21972
21973 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21974 (normal_mod_SOURCES): Likewise.
21975
21976 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
21977 (normal_mod_SOURCES): Likewise.
21978
21979 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21980 (normal_mod_SOURCES): Likewise.
21981
21982 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21983 (normal_mod_SOURCES): Likewise.
21984
21985 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21986 (normal_mod_SOURCES): Likewise.
21987
16ac430e 219882009-02-11 Robert Millan <rmh@aybabtu.com>
21989
21990 * util/grub.d/00_header.in: Update old reference to `font' command.
21991
06ff20fc 219922009-02-10 Felix Zielcke <fzielcke@z-51.de>
21993
21994 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
21995
21996 Based on patch from Javier Martín.
21997
96da9407 219982009-02-09 Felix Zielcke <fzielcke@z-51.de>
21999
22000 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 22001 to avoid false positives with FAT.
96da9407 22002 (grub_fstest_SOURCES): Likewise.
22003 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22004 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22005 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22006 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
22007 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22008 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22009
6dca6fe4 220102009-02-09 Felix Zielcke <fzielcke@z-51.de>
22011
06ff20fc 22012 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 22013 bpb.version_specific.fat12_or_fat16.fstype and
22014 bpb.version_specific.fat32.fstype.
22015
2550c62f 220162009-02-08 Robert Millan <rmh@aybabtu.com>
22017
be110b30 22018 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 22019
56978920 220202009-02-08 Robert Millan <rmh@aybabtu.com>
22021
22022 * Makefile.in (host_os, host_cpu): New variables.
22023 (target_os): Remove. Update all users.
22024
d64399b5 220252009-02-08 Marco Gerards <marco@gnu.org>
22026
22027 * Makefile.in (enable_grub_emu_usb): New variable.
22028 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
22029 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
22030 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
22031 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
22032 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
22033 `usbtest.mod' and `usbms.mod'.
22034 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
22035 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
22036 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
22037 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
22038 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
22039 variables.
22040
22041 * disk/usbms.c: New file.
22042
22043 * include/grub/usb.h: Likewise.
22044
22045 * include/grub/usbtrans.h: Likewise.
22046
22047 * include/grub/usbdesc.h: Likewise.
22048
22049 * bus/usb/usbtrans.c: Likewise.
22050
22051 * bus/usb/ohci.c: Likewise.
22052
22053 * bus/usb/uhci.c: Likewise.
22054
22055 * bus/usb/usbhub.c: Likewise.
22056
22057 * bus/usb/usb.c: Likewise.
22058
22059 * commands/usbtest.c: Likewise.
22060
22061 * util/usb.c: Likewise.
50fb7002 22062
d64399b5 22063 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
22064
22065 * configure.ac: Test for libusb presence.
50fb7002 22066
d64399b5 22067 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
22068
2b40d6bb 220692009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
22070
22071 * kern/mm.c: Add more comments.
22072
73a4ce81 220732009-02-08 Robert Millan <rmh@aybabtu.com>
22074
22075 Patch from Javier Martín.
22076 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
22077 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
22078
f821ce59 220792009-02-08 Robert Millan <rmh@aybabtu.com>
22080
22081 * fs/cpio.c: Split tar functionality to ...
22082 * fs/tar.c: ... here (new file). Update all users.
22083
aebfc4b0 220842009-02-07 Robert Millan <rmh@aybabtu.com>
22085
22086 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
22087 backward-incompatible features.
22088
22089 Based on patch from Javier Martín, with some adjustments.
22090
50fb7002 220912009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 22092
22093 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
22094
0bb5115e 220952009-02-07 Robert Millan <rmh@aybabtu.com>
22096
22097 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
22098 position of `disk/lvm.c' to ensure grub_init_all() always picks it
22099 after the RAID stuff.
22100
38a0f8e7 221012009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
22102
50fb7002 22103 Fixes problem when running vbetest command as reported by
38a0f8e7 22104 Vladimir Serbinenko <phcoder@gmail.com>.
22105
22106 * (grub_vbe_set_video_mode): Fixed problem with text modes.
22107
3143cc1c 221082009-02-04 Felix Zielcke <fzielcke@z-51.de>
22109
22110 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
22111 /dev/md/NpN style mdraid devices.
22112
9cba6fce 221132009-02-03 Felix Zielcke <fzielcke@z-51.de>
22114
22115 * util/unifont2pff.rb: Remove.
22116
e507a2c1 221172009-02-03 Felix Zielcke <fzielcke@z-51.de>
22118
22119 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
22120 `#'.
22121
d2c2b4cd 221222009-02-03 Felix Zielcke <fzielcke@z-51.de>
22123
22124 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
22125 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22126 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22127 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
22128 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22129 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22130 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22131
b4315fb0 221322009-02-02 Christian Franke <franke@computer.org>
22133
22134 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
22135
de3aa260 221362009-02-01 Felix Zielcke <fzielcke@z-51.de>
22137
7c3ff286 22138 * INSTALL: Note that we now require at least autoconf 2.59 and
22139 that LZO is optional.
de3aa260 22140
825a182b 221412009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
22142
22143 Base on patch on bug #24154 created by Tomas Tintera
22144 <trosos@seznam.cz>.
22145
22146 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
22147
a69ef770 221482009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
22149
7c3ff286 22150 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 22151 <bero@arklinux.org>.
22152
22153 * normal/parser.y (script_init): Add missing semicolon.
22154
6fa42fa6 221552009-01-31 Colin D Bennett <colin@gibibit.com>
22156
7c3ff286 22157 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 22158 (free_menu_entry_classes): Added.
22159 (grub_normal_menu_addentry): Added class property handling.
22160 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
22161 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
22162
22163 * normal/menu_viewer.c: New file.
22164
22165 * normal/menu.c (run_menu_entry): Renamed to ...
22166 (grub_menu_execute_entry): ... this and made it as global.
22167 (grub_menu_run): Renamed to ...
22168 (show_text_menu): ... this and made it local.
22169 (show_text_menu): Adapt to new function names.
22170 (grub_normal_terminal_menu_viewer): New global variable.
22171
22172 * include/grub/menu.h: New file.
22173
22174 * include/grub/menu_viewer.h: New file.
22175
22176 * include/grub/normal.h: Added include to grub/menu.h.
22177 (grub_menu_entry): Moved to include/grub/menu.h.
22178 (grub_menu_entry_t): Likewise.
22179 (grub_menu): Likewise.
22180 (grub_menu_t): Likewise.
22181 (grub_normal_terminal_menu_viewer): Added.
22182 (grub_menu_execute_entry): Likewise.
22183 (grub_menu_run): Removed.
22184
22185 * DISTLIST: Added include/grub/menu.h.
22186 Added include/grub/menu_viewer.h.
22187 Added normal/menu_viewer.c.
22188
221892009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
22190
22191 * normal/execute.c (grub_script_execute_menuentry): Changed to use
22192 arglist for menutitle arguments.
22193
22194 * normal/main.c (grub_normal_menu_addentry): Likewise.
22195
22196 * normal/parser.y (menuentry): Likewise.
22197
22198 * normal/script.c (grub_script_create_cmdmenu): Likewise.
22199
22200 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
22201 (grub_script_create_cmdmenu): Likewise.
22202
22203 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
22204
22205 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
22206 changes.
22207
22208 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
22209
22210 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
22211
22212 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
22213
22214 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
22215
22216 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
22217
22218 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
22219
56192c23 222202009-01-30 Christian Franke <franke@computer.org>
22221
22222 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
22223 in option help text.
22224
d72521b3 222252009-01-27 Pavel Roskin <proski@gnu.org>
22226
22227 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
22228
994b5e84 222292009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
22230
22231 * commands/lsmmap.c: Add include to grub/machine/memory.h.
22232
22233 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
22234
22235 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
22236 unregister function.
22237
6a7eab2c 222382009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
22239
22240 * disk/scsi.c (grub_scsi_read): Fix sign problem.
22241
22242 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
22243
22244 * util/grub-mkfont.c (usage): Fix typo.
22245
22246 * util/elf/grub-mkimage.c (load_modules): Fix warning.
22247
1806b56e 222482009-01-26 Daniel Mierswa <impulze@impulze.org>
22249
3fb18f09 22250 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
22251
336e1fb9 22252 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
22253
1806b56e 22254 * kern/misc.c (grub_strcasecmp): New function.
22255 (grub_strcasecmp): Use grub_size_t instead of int for length.
22256 Fix return value.
22257 * include/grub/misc.h: Update function prototypes.
22258
580b2a0f 222592009-01-26 Robert Millan <rmh@aybabtu.com>
22260
22261 * configure.ac: Fix cross-compilation check.
ef257b36 22262
d31c24f1 222632009-01-22 Christian Franke <franke@computer.org>
22264
22265 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
22266 (precision) digit string. Allow `.format2' without `format1' (width).
22267 Limit input chars for `%s' output to `format2' if specified. This is
22268 compatible with standard printf ().
22269
3138b44c 222702009-01-22 Christian Franke <franke@computer.org>
22271
22272 * disk/ata.c (grub_ata_wait_status): Replace by ...
22273 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
22274 other status bits may be invalid while BSY is asserted.
22275 (grub_ata_check_ready): New function.
22276 (grub_ata_cmd): Removed.
22277 (grub_ata_wait_drq): New function.
22278 (grub_ata_strncpy): Remove inline.
22279 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
22280 and error check now done by grub_ata_wait_drq ().
22281 (grub_ata_pio_write): Likewise.
22282 (grub_atapi_identify): Set DEV before check for !BSY. Use
22283 grub_ata_wait_drq () to wait for data.
22284 (grub_ata_device_initialize): Add status register check to
22285 detect missing SATA slave devices. Add debug messages.
22286 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
22287 (grub_atapi_packet): Set DEV before check for !BSY. Replace
22288 transfer loop by grub_ata_pio_write ().
22289 (grub_ata_identify): Set DEV before check for !BSY. Use
22290 grub_ata_wait_drq () to wait for data.
ef257b36 22291 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 22292 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
22293 read/write in one loop. Fix invalid command on write. Fix incomplete
22294 command on (size % batch) == 0. Add missing error check after write of
22295 last block. Add debug messages.
22296 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
22297
59a64ef6 222982009-01-19 Christian Franke <franke@computer.org>
22299
22300 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
22301 (GRUB_ATAPI_IREASON_*): Likewise.
22302 (grub_ata_pio_write): Fix timeout error return.
22303 (grub_atapi_identify): Add grub_ata_wait () after cmd.
22304 (grub_atapi_wait_drq): New function.
22305 (grub_atapi_packet): New parameter `size'.
22306 Use grub_atapi_wait_drq () and direct write instead of
22307 grub_ata_pio_write ().
22308 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
22309 reads the number of bytes requested by the device for each DRQ
22310 assertion.
22311 (grub_atapi_write): Remove old implementation, return not
22312 implemented instead.
22313
1cfe20b3 223142009-01-19 Christian Franke <franke@computer.org>
22315
22316 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
22317 of 512 to calculate data size.
22318 (grub_scsi_read12): Likewise.
22319 (grub_scsi_write10): Likewise.
22320 (grub_scsi_write12): Likewise.
22321 (grub_scsi_read): Adjust size according to blocksize.
22322 Add checks for invalid blocksize and unaligned transfer.
22323
bee5fe5d 223242009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
22325
22326 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
22327
ef257b36 22328 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 22329 width glyphs.
22330
3e643f8c 223312009-01-19 Robert Millan <rmh@aybabtu.com>
22332
22333 * config.guess: Update to latest version from config git.
22334 * config.sub: Likewise.
22335
4fa80998 223362009-01-17 Felix Zielcke <fzielcke@z-51.de>
22337
22338 * Makefile.in: Change font compilation to use new grub-mkfont instead
22339 of java version.
22340
22341 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
22342 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
22343 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
22344 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
22345 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
22346 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
22347 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
22348 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
22349 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
22350
7086085b 223512009-01-16 Christian Franke <franke@computer.org>
22352
22353 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
22354 (enum grub_ata_timeout_milliseconds): New enum.
22355 (grub_ata_wait_status): Add parameter milliseconds.
22356 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
22357 recovery from timed-out commands.
22358 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
22359 return grub_errno instead of REG_ERROR.
22360 (grub_ata_pio_write): Add parameter milliseconds.
22361 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
22362 Pass milliseconds to grub_ata_wait_status () and
22363 grub_ata_pio_read ().
22364 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
22365 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
22366 grub_ata_wait_status (). Fix IDENTIFY timeout check.
22367 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
22368 It is not suitable for device detection, because DEV bit is ignored,
22369 the command may run too long, and not all devices set the signature
22370 properly.
22371 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
22372 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
22373 Fix device selection, DEV bit must be set first to address the registers
22374 of the correct device.
22375 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
22376 grub_ata_pio_read/write ().
22377 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
22378 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
22379
4a412913 223802009-01-13 Carles Pina i Estany <carles@pina.cat>
22381
22382 * util/grub-editenv.c (main): Use fseeko(), not fseek().
22383
7795c55e 223842009-01-13 Bean <bean123ch@gmail.com>
d913988c 22385
22386 * util/grub-mkfont.c (write_font): forget to remove some debug code.
22387
7795c55e 223882009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 22389
22390 * Makefile.in: (enable_grub_mkfont): New variable.
22391 (freetype_cflags): Likewise.
22392 (freetype_libs): Likewise.
22393
22394 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
22395 (grub_mkfont_SOURCES): New variable.
22396 (grub_mkfont_CFLAGS): Likewise.
22397 (grub_mkfont_LDFLAGS): Likewise.
22398
22399 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
22400 library if `--enable-grub-mkfont' is requested.
22401 (enable_grub_mkfont): New variable.
22402 (freetype_cflags): Likewise.
22403 (freetype_libs): Likewise.
22404
22405 * util/grub-mkfont.c: New file.
22406
093af1fe 224072009-01-12 Christian Franke <franke@computer.org>
22408
22409 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
22410 mode check. Fix setting of compat_use[].
22411
f36cc108 224122009-01-10 Robert Millan <rmh@aybabtu.com>
22413
22414 Update a few copyright years which we forgot to do in 2008 (only for
22415 files whose changes made in 2008 were copyright-significant)
22416
22417 * Makefile.in: Add 2008 to Copyright line.
22418 * disk/ieee1275/ofdisk.c: Likewise.
22419 * disk/efi/efidisk.c: Likewise.
22420 * kern/dl.c: Likewise.
22421 * kern/sparc64/ieee1275/init.c: Likewise.
22422 * kern/mm.c: Likewise.
22423 * kern/efi/mm.c: Likewise.
22424 * boot/i386/pc/boot.S: Likewise.
22425 * genfslist.sh: Likewise.
22426 * fs/iso9660.c: Likewise.
22427 * fs/hfs.c: Likewise.
22428 * fs/jfs.c: Likewise.
22429 * fs/minix.c: Likewise.
22430 * fs/ufs.c: Likewise.
22431 * gensymlist.sh.in: Likewise.
22432 * genkernsyms.sh.in: Likewise.
22433 * include/grub/misc.h: Likewise.
22434 * include/grub/types.h: Likewise.
22435 * include/grub/symbol.h: Likewise.
22436 * include/grub/elf.h: Likewise.
22437 * include/grub/kernel.h: Likewise.
22438 * include/grub/disk.h: Likewise.
22439 * include/grub/dl.h: Likewise.
22440 * include/grub/i386/linux.h: Likewise.
22441 * include/grub/i386/pc/biosdisk.h: Likewise.
22442 * include/grub/efi/api.h: Likewise.
22443 * include/grub/efi/pe32.h: Likewise.
22444 * include/grub/util/misc.h: Likewise.
22445 * normal/execute.c: Likewise.
22446 * normal/arg.c: Likewise.
22447 * normal/completion.c: Likewise.
22448 * normal/lexer.c: Likewise.
22449 * normal/parser.y: Likewise.
22450 * normal/misc.c: Likewise.
22451 * commands/i386/pc/vbeinfo.c: Likewise.
22452 * commands/hexdump.c: Likewise.
22453 * commands/terminal.c: Likewise.
22454 * commands/ls.c: Likewise.
22455 * commands/help.c: Likewise.
22456 * partmap/pc.c: Likewise.
22457 * loader/efi/chainloader.c: Likewise.
22458 * loader/multiboot_loader.c: Likewise.
22459 * loader/i386/pc/multiboot2.c: Likewise.
22460 * term/efi/console.c: Likewise.
22461 * term/i386/pc/serial.c: Likewise.
22462 * util/lvm.c: Likewise.
22463 * util/console.c: Likewise.
22464 * util/i386/efi/grub-mkimage.c: Likewise.
22465 * util/raid.c: Likewise.
22466
7f02114b 224672009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
22468
22469 * commands/videotest.c: Removed include to grub/machine/memory.h.
22470
22471 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
22472 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
22473 (video_mod_SOURCES): Removed.
22474 (video_mod_CFLAGS): Likewise.
22475 (video_mod_LDFLAGS): Likewise.
22476 (gfxterm_mod_SOURCES): Likewise.
22477 (gfxterm_mod_CFLAGS): Likewise.
22478 (gfxterm_mod_LDFLAGS): Likewise.
22479 (videotest_mod_SOURCES): Likewise.
22480 (videotest_mod_CFLAGS): Likewise.
22481 (videotest_mod_LDFLAGS): Likewise.
22482 (bitmap_mod_SOURCES): Likewise.
22483 (bitmap_mod_CFLAGS): Likewise.
22484 (bitmap_mod_LDFLAGS): Likewise.
22485 (tga_mod_SOURCES): Likewise.
22486 (tga_mod_CFLAGS): Likewise.
22487 (tga_mod_LDFLAGS): Likewise.
22488 (jpeg_mod_SOURCES): Likewise.
22489 (jpeg_mod_CFLAGS): Likewise.
22490 (jpeg_mod_LDFLAGS): Likewise.
22491 (png_mod_SOURCES): Likewise.
22492 (png_mod_CFLAGS): Likewise.
22493 (png_mod_LDFLAGS): Likewise.
22494
22495 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
22496 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
22497 (video_mod_SOURCES): Added.
22498 (video_mod_CFLAGS): Likewise.
22499 (video_mod_LDFLAGS): Likewise.
22500 (videotest_mod_SOURCES): Likewise.
22501 (videotest_mod_CFLAGS): Likewise.
22502 (videotest_mod_LDFLAGS): Likewise.
22503 (bitmap_mod_SOURCES): Likewise.
22504 (bitmap_mod_CFLAGS): Likewise.
22505 (bitmap_mod_LDFLAGS): Likewise.
22506 (tga_mod_SOURCES): Likewise.
22507 (tga_mod_CFLAGS): Likewise.
22508 (tga_mod_LDFLAGS): Likewise.
22509 (jpeg_mod_SOURCES): Likewise.
22510 (jpeg_mod_CFLAGS): Likewise.
22511 (jpeg_mod_LDFLAGS): Likewise.
22512 (png_mod_SOURCES): Likewise.
22513 (png_mod_CFLAGS): Likewise.
22514 (png_mod_LDFLAGS): Likewise.
22515 (gfxterm_mod_SOURCES): Likewise.
22516 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 22517 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 22518
22519 * term/gfxterm.c: Removed include to grub/machine/memory.h,
22520 grub/machine/console.h.
22521
644fff97 225222009-01-04 Jerone Young <jerone@gmail.com>
22523
22524 Make on screen instructions clearer
22525
22526 Based on patch created by Jidanni <jidanni@jidanni.org>
22527
22528 * normal/menu.c: print clearer instructions on the screen
22529
1e901a75 225302009-01-02 Colin D Bennett <colin@gibibit.com>
22531
22532 New font engine.
34c44600 22533
1e901a75 22534 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
22535 build system and fixed gfxterm.c to work with different sized fonts.
22536
22537 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 22538
1e901a75 22539 * configure: Re-generated.
34c44600 22540
1e901a75 22541 * DISTLIST: Removed font/manager.c.
22542 Added font/font.c.
22543 Added font/font_cmd.c.
34c44600 22544
1e901a75 22545 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
22546 compilation.
34c44600 22547
1e901a75 22548 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 22549
22550 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 22551
22552 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 22553
1e901a75 22554 * normal/menu.c: Likewise.
34c44600 22555
1e901a75 22556 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
22557 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 22558
1e901a75 22559 * include/grub/font.h: Replaced with new file.
34c44600 22560
1e901a75 22561 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
22562 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
22563 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
22564 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
22565 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 22566 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 22567 fg_red, fg_green, fg_blue, fg_alpha.
22568 (grub_video_adapter): Removed blit_glyph.
34c44600 22569 (grub_video_blit_glyph): Removed.
22570
1e901a75 22571 * font/manager.c: Removed file.
34c44600 22572
22573 * font/font.c: New file.
22574
1e901a75 22575 * font/font_cmd.c: Likewise.
34c44600 22576
1e901a75 22577 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 22578
1e901a75 22579 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
22580 (grub_video_vbe_map_rgba): Likewise.
22581 (grub_video_vbe_unmap_color_int): Likewise.
22582 (grub_video_vbe_blit_glyph): Removed.
22583 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 22584
1e901a75 22585 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
22586 (get_pixel): Likewise.
34c44600 22587 (set_pixel): Likewise.
22588
1e901a75 22589 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 22590
1e901a75 22591 * term/gfxterm.c: Adapted to new font engine.
34c44600 22592
1e901a75 22593 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 22594
1e901a75 22595 * term/i386/pc/vga.c: Likewise.
34c44600 22596
1e901a75 22597 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 22598
1e901a75 22599 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 22600
1e901a75 22601 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 22602
1e901a75 22603 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 22604
1e901a75 22605 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 22606
1e901a75 22607 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 22608
1e901a75 22609 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 22610
1e901a75 22611 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 22612
1e901a75 22613 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
22614
22615 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 22616
1e901a75 22617 * util/grub-mkconfig_lib.in: Changed font extension.
22618
278922e8 226192008-12-28 Felix Zielcke <fzielcke@z-51.de>
22620
22621 * util/getroot.c (grub_util_get_grub_dev): Add support for
22622 /dev/md/dNNpNN style partitionable mdraid devices.
22623
3ced05cf 226242008-12-12 Alex Smith <alex@alex-smith.me.uk>
22625
22626 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
22627 at a time limit of the PXE TFTP API correctly.
22628 (grub_pxefs_close): Likewise.
22629
7fd0ee30 226302008-11-29 Robert Millan <rmh@aybabtu.com>
22631
34c44600 22632 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 22633 grub_ata_device_initialize() calls.
22634
34c44600 226352008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 22636
22637 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
22638 iteration failed.
22639 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
22640
89313780 226412008-11-28 Robert Millan <rmh@aybabtu.com>
22642
22643 Fix build on powerpc-ieee1275. Based on patch created by
22644 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
22645 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
22646 `kern/ieee1275/mmap.c'.
22647 * include/grub/powerpc/ieee1275/memory.h: New file.
22648
15257703 22649 Provide grub-install on coreboot.
22650 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
22651 (grub_install_SOURCES): New variable.
22652 * util/i386/pc/grub-install.in: Add a few condition checks to make it
22653 usable on coreboot.
22654
9fc5388a 226552008-11-25 Felix Zielcke <fzielcke@z-51.de>
22656
22657 * util/grub-fstest.c (grub_term_get_current_input): Change return type
22658 to `grub_term_input_t'.
22659 (grub_term_get_current_output): Change return type to
22660 `grub_term_output_t'.
22661
bc3a2f31 226622008-11-22 Robert Millan <rmh@aybabtu.com>
22663
34c44600 22664 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 22665 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
22666 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
22667 grub_vga_text_cls().
22668
80fc88f2 22669 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 22670 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 22671
cbf36fd3 22672 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
22673 to 0x200000 (avoids trouble with some OFW implementations, and matches
22674 with the one in Yaboot).
22675 Reported by Manoel Abranches
22676
73e8e268 226772008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 22678
22679 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
22680 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
22681
73e8e268 22682 * util/grub-mkconfig_lib.in (grub_warn): New function.
22683 (convert_system_path_to_grub_path): Use grub_warn() when issuing
22684 warnings, to obtain consistent formatting.
22685 * util/grub.d/00_header.in: Likewise.
22686 * util/update-grub_lib.in: Likewise.
22687
e94045a1 22688 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 22689 Move comment text to `#error' stanza.
e94045a1 22690
79d29fd7 22691 Harmonize ieee1275's grub_available_iterate() with the generic
22692 grub_machine_mmap_iterate() interface (fixes a recently-introduced
22693 build problem on i386-ieee1275):
22694 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
22695 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
22696 parameter `type'. Update all users of this function.
22697 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
22698 `kern/ieee1275/mmap.c'.
22699 * kern/ieee1275/init.c
22700 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
22701 with ...
22702 (grub_machine_mmap_iterate): ... this.
22703 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
22704 return type to `grub_err_t'. Update all implementations of this
22705 function prototype.
22706 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
22707 Likewise.
22708
60d6b16e 22709 Add `lsmmap' command (lists firmware-provided memory map):
22710 * commands/lsmmap.c: New file.
22711 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
22712 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
22713 variables.
22714 * conf/powerpc-ieee1275.rmk: Likewise.
22715 * conf/i386-coreboot.rmk: Likewise.
22716 * conf/i386-ieee1275.rmk: Likewise.
22717
ebaaf49b 227182008-11-19 Robert Millan <rmh@aybabtu.com>
22719
22720 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 22721 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
22722 constraints to initrd allocation (based on code from
22723 loader/i386/pc/linux.c). Without them, initrd was allocated too high
22724 for Linux to find it.
ebaaf49b 22725
dfab719f 227262008-11-14 Robert Millan <rmh@aybabtu.com>
22727
22728 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
22729 order to cope with duplicate slashes.
22730
10fc3eb9 227312008-11-14 Robert Millan <rmh@aybabtu.com>
22732
22733 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
22734 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
22735 don't want to mess with lower memory, because it is used in the Linux
22736 loader.
22737
22738 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 22739 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 22740 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
22741 is in our heap (probably as a result of it being corrupted during
2f2a3442 22742 decompression). Add #error instance with comment to explain why this
22743 loader isn't currently usable on PC/BIOS.
10fc3eb9 22744
e2e07847 227452008-11-14 Robert Millan <rmh@aybabtu.com>
22746
22747 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 22748 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 22749
fe8e8d69 227502008-11-12 Robert Millan <rmh@aybabtu.com>
22751
22752 Make loader/i386/linux.c buildable on i386-pc (although disabled).
22753
22754 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
22755 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
22756 from here ...
22757 * include/grub/i386/pc/memory.h: ... to here.
22758
976b07d0 227592008-11-12 Robert Millan <rmh@aybabtu.com>
22760
22761 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
22762 split).
22763
22764 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
22765 (grub_console_cur_color, grub_console_real_putchar)
22766 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
22767 (grub_console_setcolorstate, grub_console_setcolor)
22768 (grub_console_getcolor): Move from here ...
22769 * include/grub/i386/vga_common.h: ... to here (new file).
22770
22771 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
22772 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
22773 `<grub/i386/io.h>'.
22774 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
22775 `<grub/i386/vga_common.h>'.
22776
76679cd3 227772008-11-12 Robert Millan <rmh@aybabtu.com>
22778
22779 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
22780 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
22781 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
22782 variables.
22783 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
22784 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
22785
22786 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
22787 grub_console_init() with call to grub_vga_text_init().
22788 (grub_machine_fini): Replace call to
22789 grub_console_fini() with call to grub_vga_text_fini() and
22790 grub_at_keyboard_fini().
22791
22792 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
22793 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
22794 (grub_console_setcolorstate, grub_console_setcolor)
22795 (grub_console_getcolor): New function prototypes.
22796
22797 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
22798 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
22799 (grub_vga_text_setcursor): Static-ize.
22800 (grub_vga_text_term): New structure.
22801 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
22802
22803 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
22804 (grub_console_cur_color, grub_console_standard_color)
22805 (grub_console_normal_color, grub_console_highlight_color)
22806 (map_char, grub_console_putchar, grub_console_getcharwidth)
22807 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
22808 (grub_console_getcolor): Move from here ...
22809 * term/i386/vga_common.c: ... to here (same function names).
22810
95b841d3 228112008-11-12 Robert Millan <rmh@aybabtu.com>
22812
22813 Use newly-added Multiboot support in coreboot.
22814
22815 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
22816 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
22817
22818 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
22819 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
22820 (codestart): Store the MBI in `startup_multiboot_info' when we're
22821 being loaded using Multiboot.
22822
22823 * kern/i386/coreboot/init.c (grub_machine_init): Move
22824 grub_at_keyboard_init() call to beginning of function (useful for
22825 debugging). Call grub_machine_mmap_init() before attempting to use
22826 grub_machine_mmap_iterate().
22827 (grub_lower_mem, grub_upper_mem): Move from here ...
22828 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
22829 here (new file).
22830
22831 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
22832 function prototype.
22833
761ca975 228342008-11-12 Robert Millan <rmh@aybabtu.com>
22835
22836 Fix a regression introduced by the at_keyboard.mod split. Because
22837 some terminals are default on some platforms and non-default on
22838 others, the first terminal being registered determines which is
22839 going to be default.
22840
22841 * kern/term.c (grub_term_register_input): If this is the first
22842 terminal being registered, set it as the current one.
22843 (grub_term_register_output): Likewise.
22844
22845 * term/efi/console.c (grub_console_init): Do not call
22846 grub_term_set_current_output() or grub_term_set_current_input().
22847 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
22848 * term/i386/pc/console.c (grub_console_init): Likewise.
22849 (grub_console_fini): Do not call grub_term_set_current_input()
22850 (but leave grub_term_set_current_output() to restore text mode).
22851
6c529df7 228522008-11-10 Robert Millan <rmh@aybabtu.com>
22853
22854 * util/grub.d/00_header.in: Add backward compatibility check for
22855 versions of terminal.mod that don't understand `terminal_input' or
22856 `terminal_output'.
22857
132e4113 228582008-11-09 Robert Millan <rmh@aybabtu.com>
22859
22860 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
22861 `terminal_input' / `terminal_output', not `terminal'.
22862
ac293d50 228632008-11-08 Robert Millan <rmh@aybabtu.com>
22864
22865 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 22866 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 22867
0025933a 228682008-11-08 Robert Millan <rmh@aybabtu.com>
22869
22870 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 22871 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 22872 members. Update all users.
22873 * util/console.c (grub_ncurses_term): Split in ...
22874 (grub_ncurses_term_input): ... this, and ...
22875 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 22876 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 22877
37c86336 228782008-11-08 Robert Millan <rmh@aybabtu.com>
22879
22880 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
22881 (PKGDATA): Add $(pkgdata_SRCDIR).
22882 (pkglib_BUILDDIR): New variable.
22883 (pkgdata_SRCDIR): New variable.
22884 (build_env.mk): New target.
22885 (include_DATA): New variable.
22886 (install-local): Install $(include_DATA) files in $(includedir).
22887
b6c15a2d 228882008-11-07 Pavel Roskin <proski@gnu.org>
22889
d99d46f1 22890 * gendistlist.sh: Use C locale for sorting to ensure consistent
22891 output on all systems.
22892
b6c15a2d 22893 * util/grub.d/00_header.in: Remove incorrect space before
22894 "serial".
22895
c32ee8c9 228962008-11-07 Robert Millan <rmh@aybabtu.com>
22897
22898 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
22899 per specification.
22900 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
22901 * loader/multiboot_loader.c (find_multi_boot2_header): New function
22902 (based on find_multi_boot1_header).
22903 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
22904 using find_multi_boot2_header(), and abort if neither Multiboot or
22905 Multiboot headers were found.
22906
651c29b7 229072008-11-07 Robert Millan <rmh@aybabtu.com>
22908
22909 Modularize at_keyboard.mod:
22910
22911 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
22912 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
22913 (at_keyboard_mod_LDFLAGS): New variables.
22914
22915 Actual terminal split:
22916
22917 * include/grub/term.h (struct grub_term): Split in ...
22918 (struct grub_term_input): ... this, and ...
22919 (struct grub_term_output): ... this. Update all users.
22920 (grub_term_set_current): Split in ...
22921 (grub_term_set_current_input): ... this, and ...
22922 (grub_term_set_current_output): ... this.
22923 (grub_term_get_current): Split in ...
22924 (grub_term_get_current_input): ... this, and ...
22925 (grub_term_get_current_output): ... this.
22926 (grub_term_register): Split in ...
22927 (grub_term_register_input): ... this, and ...
22928 (grub_term_register_output): ... this.
22929 (grub_term_unregister): Split in ...
22930 (grub_term_unregister_input): ... this, and ...
22931 (grub_term_unregister_output): ... this.
22932 (grub_term_iterate): Split in ...
22933 (grub_term_iterate_input): ... this, and ...
22934 (grub_term_iterate_output): ... this.
22935
22936 * kern/term.c (grub_term_list): Split in ...
22937 (grub_term_list_input): ... this, and ...
22938 (grub_term_list_output): ... this. Update all users.
22939 (grub_cur_term): Split in ...
22940 (grub_cur_term_input): ... this, and ...
22941 (grub_cur_term_output): ... this. Update all users.
22942 (grub_term_set_current): Split in ...
22943 (grub_term_set_current_input): ... this, and ...
22944 (grub_term_set_current_output): ... this.
22945 (grub_term_get_current): Split in ...
22946 (grub_term_get_current_input): ... this, and ...
22947 (grub_term_get_current_output): ... this.
22948 (grub_term_register): Split in ...
22949 (grub_term_register_input): ... this, and ...
22950 (grub_term_register_output): ... this.
22951 (grub_term_unregister): Split in ...
22952 (grub_term_unregister_input): ... this, and ...
22953 (grub_term_unregister_output): ... this.
22954 (grub_term_iterate): Split in ...
22955 (grub_term_iterate_input): ... this, and ...
22956 (grub_term_iterate_output): ... this.
22957
22958 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
22959 a check for input and one for output (and only attempt to get keys
22960 from user when input works).
22961
22962 * util/grub-probe.c (grub_term_get_current): Split in ...
22963 (grub_term_get_current_input): ... this, and ...
22964 (grub_term_get_current_output): ... this.
22965 * util/grub-fstest.c: Likewise.
22966 * util/i386/pc/grub-setup.c: Likewise.
22967 * util/grub-editenv.c: Likewise.
22968
22969 Portability adjustments:
22970
22971 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
22972 `term/i386/pc/at_keyboard.c'.
22973 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
22974 grub_keyboard_controller_init() (now handled by terminal .init).
22975 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
22976 grub_at_keyboard_init().
22977 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
22978 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
22979 at_keyboard.mod via input terminal interface).
22980 * include/grub/i386/coreboot/console.h: Convert into a stub for
22981 `<grub/i386/pc/console.h>'.
22982
22983 Migrate full terminals to new API:
22984
22985 * term/efi/console.c (grub_console_term): Split into ...
22986 (grub_console_term_input): ... this, and ...
22987 (grub_console_term_output): ... this. Update all users.
22988 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
22989 (grub_ofconsole_init): Split into ...
22990 (grub_ofconsole_init_input): ... this, and ...
22991 (grub_ofconsole_init_output): ... this.
22992 (grub_ofconsole_term): Split into ...
22993 (grub_ofconsole_term_input): ... this, and ...
22994 (grub_ofconsole_term_output): ... this. Update all users.
22995 * term/i386/pc/serial.c (grub_serial_term): Split into ...
22996 (grub_serial_term_input): ... this, and ...
22997 (grub_serial_term_output): ... this. Update all users.
22998 * term/i386/pc/console.c (grub_console_term): Split into ...
22999 (grub_console_term_input): ... this, and ...
23000 (grub_console_term_output): ... this. Update all users.
23001 (grub_console_term_input): Only enable it on PC/BIOS platform.
23002 (grub_console_init): Remove grub_keyboard_controller_init() call.
23003
23004 Migrate input terminals to new API:
23005
23006 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
23007 `i386' and `i386/pc' to enable build on x86_64 (this driver is
23008 i386-specific anyway).
23009 (grub_console_checkkey): Rename to ...
23010 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
23011 users.
23012 (grub_keyboard_controller_orig): New variable.
23013 (grub_console_getkey): Rename to ...
23014 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
23015 users.
23016 (grub_keyboard_controller_init): Static-ize. Save original
23017 controller value so that it can be restored ...
23018 (grub_keyboard_controller_fini): ... here (new function).
23019 (grub_at_keyboard_term): New structure.
23020 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
23021 functions.
23022
23023 Migrate output terminals to new API:
23024
23025 * term/i386/pc/vga.c (grub_vga_term): Change type to
23026 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
23027 members. Update all users.
23028 * term/gfxterm.c (grub_video_term): Change type to
23029 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
23030 members. Update all users.
23031 * include/grub/i386/pc/console.h (grub_console_checkkey)
23032 (grub_console_getkey): Do not export (no longer needed by gfxterm,
23033 etc).
23034
23035 Migrate `terminal' command and userland tools to new API:
23036
23037 * commands/terminal.c (grub_cmd_terminal): Split into ...
23038 (grub_cmd_terminal_input): ... this, and ...
23039 (grub_cmd_terminal_output): ... this.
23040 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
23041 `terminal_input' and `terminal_output'.
23042 * util/grub.d/00_header.in: Adjust `terminal' calls to new
23043 `terminal_input' / `terminal_output' API.
23044 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
23045 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
23046 provided ${GRUB_TERMINAL}, convert it).
23047
96e5d876 230482008-11-04 Robert Millan <rmh@aybabtu.com>
23049
23050 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
23051 for FreeBSD.
23052 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
23053
556f3775 230542008-11-03 Bean <bean123ch@gmail.com>
23055
23056 * kern/elf.c (grub_elf32_load): Revert to previous code.
23057 (grub_elf64_load): Likewise.
23058
23059 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
23060
926b9823 230612008-11-01 Robert Millan <rmh@aybabtu.com>
23062
23063 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
23064 (TARGET_CPPFLAGS): Likewise.
23065 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
23066
1432e958 230672008-11-01 Carles Pina i Estany <carles@pina.cat>
23068
23069 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
23070
dba3f844 230712008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 23072
23073 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
23074 addition of objects until the code is not going to be able to fail.
23075
dba3f844 230762008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 23077
23078 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
23079 (add a missing NULL check, and correct them by moving the pointer
23080 operations after the actual check).
23081
7ab28c21 230822008-10-29 Robert Millan <rmh@aybabtu.com>
23083
23084 * util/i386/pc/grub-install.in: Handle empty string as output from
23085 make_system_path_relative_to_its_root().
23086
1b7748eb 230872008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
23088
23089 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
23090 circular metadata worst case scenario. If the metadata is circular
23091 then copy the wrap in place.
23092 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
23093 project lib/format_text/layout.h
23094 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
23095
c9618ab2 230962008-10-03 Felix Zielcke <fzielcke@z-51.de>
23097
7a36edca 23098 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 23099
bf981c62 231002008-10-03 Felix Zielcke <fzielcke@z-51.de>
23101
23102 * util/update-grub_lib.in: Mention filename in warning message.
23103
6d994591 231042008-09-29 Felix Zielcke <fzielcke@z-51.de>
23105
23106 * NEWS: Update for rename of update-grub to grub-mkconfig.
23107
18ade780 231082008-09-29 Felix Zielcke <fzielcke@z-51.de>
23109
23110 * util/update-grub_lib.in: Copy to ...
23111 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 23112 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 23113 * util/update-grub.in: Rename to ...
23114 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
23115 option. Add `--output' option to allow users to specify the generated
23116 configuration file. Default to stdout.
23117 (update_grub_dir): Rename to ...
23118 (grub_mkconfig_dir): ... this.
23119 (grub_cfg): Default to an empty string.
23120 * conf/common.rmk (update-grub): Rename to ...
23121 (grub-mkconfig): ... this.
23122 (update-grub_lib): Copy to ...
23123 (grub-mkconfig_lib): ... this.
23124 (update-grub_SCRIPTS): Copy to ...
23125 (grub-mkconfig_SCRIPTS): ... this. Update all users.
23126 (update-grub_DATA): Rename to ...
23127 (grub-mkconfig_DATA): ... this.
23128
556ce6ac 231292008-09-28 Robert Millan <rmh@aybabtu.com>
23130
23131 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
23132 to `modified'. Add the real `created' field.
23133 (grub_iso9660_uuid): Use `modified' rather than `created' for
23134 constructing the UUID.
23135
231362008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 23137
23138 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
23139 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
23140
92274e85 231412008-09-28 Bean <bean123ch@gmail.com>
23142
23143 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
23144 Thanks to Christian Franke for finding this bug.
23145
add6f17a 231462008-09-25 Robert Millan <rmh@aybabtu.com>
23147
23148 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
23149 instances of grub_util_get_disk_name() (see previous commit).
23150
d2a367b8 231512008-09-25 Robert Millan <rmh@aybabtu.com>
23152
23153 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
23154 `util/i386/get_disk_name.c'.
23155 * conf/i386-efi.rmk: Likewise.
23156 * conf/x86_64-efi.rmk: Likewise.
23157 * conf/i386-coreboot.rmk: Likewise.
23158 * conf/i386-ieee1275.rmk: Likewise.
23159 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
23160 `util/ieee1275/get_disk_name.c'.
23161 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
23162 * util/ieee1275/get_disk_name.c: Remove file.
23163 * util/i386/get_disk_name.c: Remove file.
23164 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
23165 "hd%d" for device.map entries, rather than using
23166 grub_util_get_disk_name().
23167
81a06771 231682008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 23169
23170 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
23171 warning.
23172 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
23173
5a004279 231742008-09-24 Carles Pina i Estany <carles@pina.cat>
23175
23176 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
23177 Changed to 0x5100.
23178 (GRUB_TERM_PPAGE): Changed to 0x4900.
23179
397093d3 231802008-09-24 Robert Millan <rmh@aybabtu.com>
23181
23182 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
23183 macros (they were i386-pc specific).
23184 * include/grub/sparc64/ieee1275/console.h: Likewise.
23185 * include/grub/efi/console.h: Likewise.
23186
a91b6c7c 231872008-09-22 Bean <bean123ch@gmail.com>
23188
23189 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
23190 resident and in attribute list.
23191
23192 * include/grub/ntfs.h (BMP_LEN): Removed.
23193
c40fd116 231942008-09-22 Bean <bean123ch@gmail.com>
23195
81a06771 23196 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 23197 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
23198
23199 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
23200 error occurs, as grub_disk_open will call grub_disk_close, which will
23201 call p->close (scsi).
23202
81a06771 232032008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 23204
23205 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
23206 (AC_PREREQ): Bumped to 2.59.
23207 (AC_TRY_COMPILE): Replace obsolete macro with ...
23208 (AC_COMPILE_IFELSE): ... this.
23209 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
23210 (AC_LINK_IFELSE): ... this.
23211
5dc43410 232122008-09-21 Felix Zielcke <fzielcke@z-51.de>
23213
23214 * autogen.sh: Add a call to `gendistlist.sh'.
23215
9035dce4 232162008-09-19 Christian Franke <franke@computer.org>
23217
23218 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
23219 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
23220 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
23221 Export __enable_execute_stack() to modules.
23222 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
23223 New function.
23224
7fd75377 232252008-09-09 Felix Zielcke <fzielcke@z-51.de>
23226
040030b3 23227 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
23228 Sort the list.
23229
232302008-09-09 Felix Zielcke <fzielcke@z-51.de>
23231
23232 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 23233 #include <grub/util/hostdisk.h>.
23234
89d5ffcf 232352008-09-08 Robert Millan <rmh@aybabtu.com>
23236
23237 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
23238 segments when their filesz is zero (grub_file_read() interprets
81a06771 23239 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 23240 Use `lowest_segment' rather than 0 for calculating the current
23241 segment load address.
23242
40da438f 232432008-09-08 Robert Millan <rmh@aybabtu.com>
23244
23245 * util/hostdisk.c (open_device): Replace a grub_util_info() call
23246 with grub_dprintf("hostdisk", ...), as it was so verbose that it
23247 clobbered useful information.
23248
ddbf5556 232492008-09-08 Robert Millan <rmh@aybabtu.com>
23250
23251 * include/grub/util/biosdisk.h: Move to ...
23252 * include/grub/util/hostdisk.h: ... here. Update all users.
23253 * util/biosdisk.c: Move to ...
23254 * util/hostdisk.c: ... here. Update all users.
23255
783d0f48 232562008-09-07 Robert Millan <rmh@aybabtu.com>
23257
23258 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
23259 variables.
23260 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
23261 and length can be stored directly in the `mbi->mmap_addr' and
23262 `mbi->mmap_length' struct fields.
23263
548e2ea5 232642008-09-07 Robert Millan <rmh@aybabtu.com>
23265
23266 * conf/i386.rmk: New file. Provides declaration for building
23267 `cpuid.mod'.
23268 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
23269 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
23270 variables.
23271 Include `conf/i386.mk'.
23272 * conf/i386-efi.rmk: Likewise.
23273 * conf/x86_64-efi.rmk: Likewise.
23274 * conf/i386-coreboot.rmk: Likewise.
23275 * conf/i386-ieee1275.rmk: Likewise.
23276
0ea85a37 232772008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
23278
23279 Based on patch created by Colin D Bennett <colin@gibibit.com>.
23280 Adds optimization support for BGR based modes.
23281
23282 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
23283 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
23284 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
23285 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
23286 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
23287 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
23288 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
23289 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
23290 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
23291 (grub_video_i386_vbeblit_index_index): Likewise.
23292 (grub_video_i386_vbeblit_replace_directN): Added.
23293 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
23294 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
23295 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
23296 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
23297 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
23298 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 23299 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 23300 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
23301 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
23302 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
23303 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
23304 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
23305 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
23306
23307 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
23308 (grub_video_i386_vbefill_R8G8B8): Likewise.
23309 (grub_video_i386_vbefill_index): Likewise.
23310 (grub_video_i386_vbefill_direct32): Added.
23311 (grub_video_i386_vbefill_direct24): Likewise.
23312 (grub_video_i386_vbefill_direct16): Likewise.
23313 (grub_video_i386_vbefill_direct8): Likewise.
23314
81a06771 23315 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 23316 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
23317 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
23318 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
23319 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
23320 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 23321
0ea85a37 23322 * video/video.c (grub_video_get_blit_format): Updated to use new
23323 blit formats. Added handling for 16 bit color modes.
81a06771 23324
23325 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 23326 fillers.
23327 (common_blitter): Updated to use new blitters.
23328
23329 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
23330 Removed.
23331 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
23332 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
23333 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
23334 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
23335 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
23336 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
23337 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
23338 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
23339 (grub_video_i386_vbeblit_index_index): Likewise.
23340 (grub_video_i386_vbeblit_replace_directN): Added.
23341 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
23342 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
23343 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
23344 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
23345 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
23346 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
23347 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
23348 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
23349 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
23350 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
23351 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
23352 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
23353 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 23354
0ea85a37 23355 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
23356 (grub_video_i386_vbefill_R8G8B8): Likewise.
23357 (grub_video_i386_vbefill_index): Likewise.
23358 (grub_video_i386_vbefill_direct32): Added.
23359 (grub_video_i386_vbefill_direct24): Likewise.
23360 (grub_video_i386_vbefill_direct16): Likewise.
23361 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 23362
0ea85a37 23363 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
23364 types.
81a06771 23365
0ea85a37 23366 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
23367 types.
81a06771 23368
0ea85a37 23369 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
23370 blitter types.
81a06771 23371
0ea85a37 23372 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
23373 types.
23374
e8a83df6 233752008-09-06 Felix Zielcke <fzielcke@z-51.de>
23376
23377 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
23378 RAID level 1.
23379
6bcd8ee5 233802008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 23381
6bcd8ee5 23382 * fs/iso9660.c (grub_iso9660_date): New structure.
23383 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
23384 (grub_iso9660_uuid): New function.
c375ae58 23385
59261157 233862008-09-05 Bean <bean123ch@gmail.com>
23387
23388 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
23389
23390 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
23391 insensitive bit for names in Win32 and Win32 & DOS namespace.
23392
23393 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
23394
23395 * include/grub/types.h (LONG_MAX): Likewise.
23396
58b6645a 233972008-09-04 Felix Zielcke <fzielcke@z-51.de>
23398
4ee55921 23399 * util/getroot.c: Include <config.h>.
23400 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
23401 add support for /dev/md/N devices and handle LVM double dash escaping.
23402
234032008-09-04 Felix Zielcke <fzielcke@z-51.de>
23404
23405 * config.guess: Update to latest version from config git.
23406 * config.sub: Likewise.
58b6645a 23407
9124f65d 234082008-09-03 Robert Millan <rmh@aybabtu.com>
23409
23410 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
23411 `disk->total_sectors'.
23412
81a06771 234132008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 23414
23415 * include/grub/normal.h: Fixed incorrect comment for
23416 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
23417
81a06771 234182008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 23419
23420 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
23421 values with defines.
23422
23423 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
23424 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
23425 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
23426 (GRUB_VBE_MODEATTR_COLOR): Likewise.
23427 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
23428 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
23429 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
23430 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
23431 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
23432 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
23433 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
23434 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
23435 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
23436 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
23437 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
23438 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
23439 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
23440 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
23441 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
23442
93d5cbf8 234432008-08-31 Robert Millan <rmh@aybabtu.com>
23444
23445 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
23446 declaration.
23447 (grub_multiboot): Fix a few warnings.
23448
21751d50 234492008-08-31 Robert Millan <rmh@aybabtu.com>
23450
23451 * loader/i386/pc/multiboot.c: Update comment not to say that
23452 boot_device support is unimplemented.
23453
e27a75c5 234542008-08-31 Robert Millan <rmh@aybabtu.com>
23455
23456 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
23457 or memory map support are unimplemented.
23458
81a06771 234592008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 23460
23461 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
23462
81a06771 234632008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 23464
23465 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
23466 total video memory in 'vbeinfo' output; show color format details for
23467 each video mode.
23468
7c5d8d95 234692008-08-30 Pavel Roskin <proski@gnu.org>
23470
23471 * util/genmoddep.c: Remove for real this time.
23472 * DISTLIST: Remove util/genmoddep.c.
23473
4cebd25a 234742008-08-30 Robert Millan <rmh@aybabtu.com>
23475
23476 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
23477 as required by Multiboot spec (it was already 4-byte aligned, but
23478 only by chance).
23479
b497a269 234802008-08-29 Pavel Roskin <proski@gnu.org>
23481
e3925185 23482 * kern/powerpc/ieee1275/crt0.S: Rename to ...
23483 * kern/powerpc/ieee1275/startup.S: ... this.
23484 * conf/powerpc-ieee1275.rmk: Adjust for the above.
23485 * DISTLIST: Likewise.
23486
b497a269 23487 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
23488 grub/cpu/kernel.h. Add start label for consistency with other
23489 platforms. Add grub_prefix immediately after start. Add jump
23490 to the code after grub_prefix.
23491 * include/grub/powerpc/kernel.h: Provide valid values for
23492 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
23493
6e5a42fe 234942008-08-29 Bean <bean123ch@gmail.com>
23495
23496 * configure.ac: Change host_os to cygwin for mingw.
23497 (asprintf): New check for function.
23498
23499 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
23500 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
23501
23502 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 23503 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 23504 sync, sleep and grub_util_get_disk_size for mingw.
23505
23506 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
23507 to get size in mingw.
23508 (open_device): Use flag O_BINARY if it's defined.
23509 (find_root_device): Add dummy code for mingw.
23510
23511 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
23512 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
23513 (get_scsi_disk_name): Return 0 for mingw.
23514
23515 * util/hostfs.c: #include <grub/util/misc.h>.
23516 (grub_hostfs_open): Use "rb" flag to open file, use
23517 grub_util_get_disk_size to get disk size for mingw.
23518
23519 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
23520 (asprintf): New function if HAVE_ASPRINTF is not set.
23521 (sync): New function for mingw.
23522 (sleep): Likewise.
23523 (grub_util_get_disk_size): Likewise.
23524
ab3f2673 235252008-08-28 Pavel Roskin <proski@gnu.org>
23526
23527 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
23528 kern/time.c.
23529
1c282483 235302008-08-28 Robert Millan <rmh@aybabtu.com>
23531
23532 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
23533
678e849c 235342008-08-28 Robert Millan <rmh@aybabtu.com>
23535
23536 Change find_grub_drive() syntax so it doesn't prevent it from
23537 detecting NULL names as errors.
23538
23539 * util/biosdisk.c (find_grub_drive): Move free slot search code
23540 from here ...
23541 (find_free_slot): ... to here.
23542 (read_device_map): Use find_free_slot() to search for free slots.
23543
965c75ca 235442008-08-27 Marco Gerards <marco@gnu.org>
23545
23546 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
23547 (scsi_mod_SOURCES): New variable.
23548 (scsi_mod_CFLAGS): Likewise
23549 (scsi_mod_LDFLAGS): Likewise.
23550
23551 * disk/scsi.c: New file.
23552
23553 * include/grub/scsi.h: Likewise.
23554
23555 * include/grub/scsicmd.h: Likewise.
23556
23557 * disk/ata.c: Include <grub/scsi.h>.
23558 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
23559 instead.
23560 (grub_ata_iterate): Skip ATAPI devices.
23561 (grub_ata_open): Only handle ATAPI devices.
23562 (struct grub_atapi_read): Removed.
23563 (grub_atapi_readsector): Likewise.
23564 (grub_ata_read): No longer handle ATAPI devices.
23565 (grub_ata_write): Likewise.
23566 (grub_atapi_iterate): New function.
23567 (grub_atapi_read): Likewise.
23568 (grub_atapi_write): Likewise.
23569 (grub_atapi_open): Likewise.
23570 (grub_atapi_close): Likewise.
23571 (grub_atapi_dev): New variable.
23572 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
23573 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
23574
23575 * include/grub/disk.h (enum grub_disk_dev_id): Add
23576 `GRUB_DISK_DEVICE_SCSI_ID'.
23577
c07ae501 235782008-08-26 Robert Millan <rmh@aybabtu.com>
23579
23580 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
23581 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
23582 descriptive.
23583
5ed20adc 235842008-08-23 Bean <bean123ch@gmail.com>
23585
23586 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
23587 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
23588 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
23589 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
23590 dm_nv.mod.
23591 (raid5rec_mod_SOURCES): New macro.
23592 (raid5rec_mod_CFLAGS): Likewise.
23593 (raid5rec_mod_LDFLAGS): Likewise.
23594 (raid6rec_mod_SOURCES): Likewise.
23595 (raid6rec_mod_CFLAGS): Likewise.
23596 (raid6rec_mod_LDFLAGS): Likewise.
23597 (mdraid_mod_SOURCES): Likewise.
23598 (mdraid_mod_CFLAGS): Likewise.
23599 (mdraid_mod_LDFLAGS): Likewise.
23600 (dm_nv_mod_SOURCES): Likewise.
23601 (dm_nv_mod_CFLAGS): Likewise.
23602 (dm_nv_mod_LDFLAGS): Likewise.
23603
23604 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
23605 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
23606 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
23607
23608 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
23609 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
23610
23611 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23612
23613 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23614
23615 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23616
23617 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23618
23619 * disk/raid5_recover.c: New file.
23620
23621 * disk/raid6_recover.c: Likewise.
23622
23623 * disk/mdraid_linux.c: Likewise.
23624
23625 * disk/dmraid_nvidia.c: Likewise.
23626
23627 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
23628 ULONG_MAX.
23629
23630 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
23631 calculate the size of raid device.
23632 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
23633 different layout of raid5.
23634 (grub_raid_scan_device): Remove code specific to mdraid.
23635 (grub_raid_list): New variable.
23636 (free_array): New function.
23637 (grub_raid_register): Likewise.
23638 (grub_raid_unregister): Likewise.
23639 (grub_raid_rescan): Likewise.
23640 (GRUB_MOD_INIT): Don't iterate device here.
23641 (GRUB_MOD_FINI): Use free_array to release resource.
23642
23643 * include/grub/raid.h: Remove macro and structure specific to mdraid.
23644 (grub_raid5_recover_func_t): New function variable type.
23645 (grub_raid6_recover_func_t): Likewise.
23646 (grub_raid5_recover_func): New variable.
23647 (grub_raid6_recover_func): Likewise.
23648 (grub_raid_register): New function.
23649 (grub_raid_unregister): Likewise.
23650 (grub_raid_rescan): Likewise.
23651 (grub_raid_block_xor): Likewise.
23652
23653 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
23654 (CMD_CRC): New macro.
23655 (part): Removed.
23656 (read_file): Handle device as well as file.
23657 (cmd_crc): New function.
23658 (fstest): Handle multiple disks.
23659 (options): Remove part, raw and long, add root and diskcount.
23660 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 23661 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 23662 add handling for the new options, support multiple disks.
23663
23664 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
23665
29c18915 236662008-08-23 Bean <bean123ch@gmail.com>
23667
23668 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
23669
23670 * genfslist.sh: Ignore kernel.mod.
23671
23672 * genpartmaplist.sh: Likewise.
23673
8415f261 236742008-08-23 Robert Millan <rmh@aybabtu.com>
23675
23676 * util/getroot.c (find_root_device): Skip anything that starts with
23677 a dot, not just directories. This avoids things like /dev/.tmp.md0.
23678
d5a7dc5b 236792008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 23680
d5a7dc5b 23681 * util/update-grub.in (GRUB_GFXMODE): Export variable.
23682 * util/grub.d/00_header.in: Allow the administrator to change default
23683 gfxmode via ${GRUB_GFXMODE}.
23684
380cfbb4 236852008-08-21 Felix Zielcke <fzielcke@z-51.de>
23686
23687 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
23688
c9baafe7 236892008-08-21 Robert Millan <rmh@aybabtu.com>
23690
23691 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
23692 loader.
23693 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
23694 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
23695
e290bef2 236962008-08-20 Carles Pina i Estany <carles@pina.cat>
23697
23698 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
23699 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
23700
f9dbfc96 237012008-08-19 Robert Millan <rmh@aybabtu.com>
23702
23703 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
23704 (struct grub_virtual_screen): Remove `cursor_color'.
23705 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
23706 initialization.
23707 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
23708
dd6bd6ab 237092008-08-18 Robert Millan <rmh@aybabtu.com>
23710
23711 Unify (identical) linux_normal.c files.
23712 * loader/i386/efi/linux_normal.c: Move from here ...
23713 * loader/linux_normal.c: ... to here. Update all users.
23714 * loader/i386/pc/linux_normal.c: Delete. Update all users.
23715 * loader/i386/ieee1275/linux_normal.c: Likewise.
23716
7f42f83e 237172008-08-18 Robert Millan <rmh@aybabtu.com>
23718
23719 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
23720 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
23721 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
23722 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
23723 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
23724 New macros.
23725 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
23726 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
23727 (GRUB_LINUX_CL_END_OFFSET): ... to here.
23728 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
23729 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
23730 (GRUB_EFI_CL_END_OFFSET): Rename to ...
23731 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
23732 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
23733 Initialize `params->video_cursor_x' and `params->video_cursor_y'
23734 portably using grub_getxy().
23735 Replace `-EFI' with `-bzImage' in boot message.
23736
38487ddb 237372008-08-17 Robert Millan <rmh@aybabtu.com>
23738
23739 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
23740
deceb3ec 237412008-08-17 Robert Millan <rmh@aybabtu.com>
23742
23743 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
23744
23745 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
23746 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
23747 (grub_machine_mmap_iterate): New function declaration.
23748 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
23749 structure.
23750 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
23751 macros.
23752
23753 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
23754 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
23755 Move e820 parsing from here ...
23756 * kern/i386/pc/mmap.c: New file.
23757 (grub_machine_mmap_iterate): ... to here.
23758
23759 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
23760 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
23761 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
23762 (grub_available_iterate): Redeclare to return `void', and redeclare
23763 its hook to use grub_uint64_t as addr and size parameters, and rename
23764 to ...
23765 (grub_machine_mmap_iterate): ... this. Update all users.
23766
23767 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
23768 to make it more readable. Rename to ...
23769 (grub_machine_mmap_iterate): ... this.
23770
23771 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
23772 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
23773 (grub_multiboot): Allocate an extra region after the payload, and fill
23774 it with a Multiboot memory map. Adjust a.out loader to calculate size
23775 with the extra space.
23776 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
23777 with the extra space.
23778
f8aa0f43 237792008-08-17 Carles Pina i Estany <carles@pina.cat>
23780
9807deb9 23781 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 23782
605f5bb6 237832008-08-17 Felix Zielcke <fzielcke@z-51.de>
23784
23785 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
23786 mdate-sh to the list `find' searches for.
23787 * DISTLIST: Regenerated.
23788
210db6c6 237892008-08-16 Felix Zielcke <fzielcke@z-51.de>
23790
23791 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
23792 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 23793 genmoddep.awk, gensymlist.sh.in.
23794 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 23795 * DISTLIST: Regenerated.
48cdbfd4 23796 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 23797
1082b929 237982008-08-16 Robert Millan <rmh@aybabtu.com>
23799
23800 * disk/raid.c (grub_raid_init): Handle/report errors set by
23801 grub_device_iterate().
23802 * disk/lvm.c (grub_lvm_init): Likewise.
23803
42ce5170 238042008-08-15 Bean <bean123ch@gmail.com>
23805
23806 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23807 and datehook.mod.
23808 (datetime_mod_SOURCES): New macro.
23809 (datetime_mod_CFLAGS): Likewise.
23810 (datetime_mod_LDFLAGS): Likewise.
23811 (date_mod_SOURCES): Likewise.
23812 (date_mod_CFLAGS): Likewise.
23813 (date_mod_LDFLAGS): Likewise.
23814 (datehook_mod_SOURCES): Likewise.
23815 (datehook_mod_CFLAGS): Likewise.
23816 (datehook_mod_LDFLAGS): Likewise.
23817
23818 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23819 and datehook.mod.
23820 (datetime_mod_SOURCES): New macro.
23821 (datetime_mod_CFLAGS): Likewise.
23822 (datetime_mod_LDFLAGS): Likewise.
23823 (date_mod_SOURCES): Likewise.
23824 (date_mod_CFLAGS): Likewise.
23825 (date_mod_LDFLAGS): Likewise.
23826 (datehook_mod_SOURCES): Likewise.
23827 (datehook_mod_CFLAGS): Likewise.
23828 (datehook_mod_LDFLAGS): Likewise.
23829
23830 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23831 and datehook.mod.
23832 (datetime_mod_SOURCES): New macro.
23833 (datetime_mod_CFLAGS): Likewise.
23834 (datetime_mod_LDFLAGS): Likewise.
23835 (date_mod_SOURCES): Likewise.
23836 (date_mod_CFLAGS): Likewise.
23837 (date_mod_LDFLAGS): Likewise.
23838 (datehook_mod_SOURCES): Likewise.
23839 (datehook_mod_CFLAGS): Likewise.
23840 (datehook_mod_LDFLAGS): Likewise.
23841
23842 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23843 and datehook.mod.
23844 (datetime_mod_SOURCES): New macro.
23845 (datetime_mod_CFLAGS): Likewise.
23846 (datetime_mod_LDFLAGS): Likewise.
23847 (date_mod_SOURCES): Likewise.
23848 (date_mod_CFLAGS): Likewise.
23849 (date_mod_LDFLAGS): Likewise.
23850 (datehook_mod_SOURCES): Likewise.
23851 (datehook_mod_CFLAGS): Likewise.
23852 (datehook_mod_LDFLAGS): Likewise.
23853
23854 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
23855 and datehook.mod.
23856 (datetime_mod_SOURCES): New macro.
23857 (datetime_mod_CFLAGS): Likewise.
23858 (datetime_mod_LDFLAGS): Likewise.
23859 (date_mod_SOURCES): Likewise.
23860 (date_mod_CFLAGS): Likewise.
23861 (date_mod_LDFLAGS): Likewise.
23862 (datehook_mod_SOURCES): Likewise.
23863 (datehook_mod_CFLAGS): Likewise.
23864 (datehook_mod_LDFLAGS): Likewise.
23865
23866 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
23867
23868 * commands/date.c: New file.
23869
23870 * hook/datehook.c: Likewise.
23871
23872 * include/grub/lib/datetime.h: Likewise.
23873
23874 * include/grub/i386/cmos.h: Likewise.
23875
23876 * lib/datetime.c: Likewise.
23877
23878 * lib/i386/datetime.c: Likewise.
23879
23880 * lib/efi/datetime.c: Likewise.
23881
0e9242da 238822008-08-14 Robert Millan <rmh@aybabtu.com>
23883
23884 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
23885 (grub_mkelfimage_SOURCES): New variable.
23886 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
23887
23888 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
23889 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
23890 * conf/powerpc-ieee1275.rmk: Likewise.
23891 * conf/i386-ieee1275.rmk: Likewise.
23892
23893 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
23894 * kern/i386/coreboot/init.c: Likewise.
23895
23896 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
23897 with `<grub/cpu/kernel.h>'.
23898 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
23899 to ...
23900 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
23901 * kern/i386/coreboot/startup.S: Likewise.
23902
23903 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
23904 (GRUB_MOD_GAP): Remove.
23905 * include/grub/powerpc/kernel.h: New file.
23906 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
23907 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
23908 * include/grub/i386/kernel.h: New file.
23909 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
23910 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
23911 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
23912
23913 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
23914 `grub-mkelfimage'.
23915 Use --directory when invoking grub_mkimage.
23916
23917 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
23918 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
23919 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
23920 and GRUB_KERNEL_CPU_PREFIX.
23921
b86408f8 239222008-08-14 Felix Zielcke <fzielcke@z-51.de>
23923
d5e619ca 23924 * include/grub/err.h (grub_err_printf): New function prototype.
23925 * util/misc.c (grub_err_printf): New function.
23926 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
23927 grub_printf.
23928 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 23929
7161f0e0 239302008-08-13 Robert Millan <rmh@aybabtu.com>
23931
23932 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
23933
a1967522 239342008-08-13 Robert Millan <rmh@aybabtu.com>
23935
23936 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
23937 boot entry.
23938
371458b5 239392008-08-12 Robert Millan <rmh@aybabtu.com>
23940
23941 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
23942 of the relocation code from here ...
23943 (grub_multiboot): ... to here.
23944 (forward_relocator, backward_relocator): Move from here ...
23945 * kern/i386/loader.S (grub_multiboot_forward_relocator)
23946 (grub_multiboot_backward_relocator): ... to here.
23947 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
23948 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
23949 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
23950 (grub_multiboot_forward_relocator_end)
23951 (grub_multiboot_backward_relocator)
23952 (grub_multiboot_backward_relocator_end): New variables.
23953
05f9452b 239542008-08-12 Bean <bean123ch@gmail.com>
23955
23956 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
23957
20024ab0 239582008-08-11 Robert Millan <rmh@aybabtu.com>
23959
23960 * kern/i386/linuxbios/startup.S: Move from here ...
23961 * kern/i386/coreboot/startup.S: ... to here.
23962
23963 * kern/i386/linuxbios/init.c: Move from here ...
23964 * kern/i386/coreboot/init.c: ... to here.
23965
23966 * kern/i386/linuxbios/table.c: Move from here ...
23967 * kern/i386/coreboot/mmap.c: ... to here.
23968
23969 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
23970
e352e9cd 239712008-08-11 Robert Millan <rmh@aybabtu.com>
23972
23973 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
23974 errors. Leave it to the upper layer to handle them.
23975
2d05bc6a 239762008-08-09 Christian Franke <franke@computer.org>
23977
23978 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
23979 * conf/common.rmk: Install `grub-pe2elf' only if requested.
23980 Install `grub.d/10_windows' only on Cygwin.
23981 * configure.ac: Add subst of `target_os'.
23982 Check `target_os' also before setting TARGET_OBJ2ELF.
23983 Add `--enable-grub-pe2elf'.
23984
042bd419 239852008-08-08 Robert Millan <rmh@aybabtu.com>
23986
23987 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
23988 (grub_last_time): Change type to grub_uint64_t.
23989 (grub_disk_open): Migrate code from to using grub_get_time_ms().
23990 (grub_disk_close): Likewise.
23991
23992 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
23993 (run_menu): Migrate code from to using grub_get_time_ms().
23994
23995 * util/misc.c (grub_get_time_ms): New function.
23996
7f280db5 239972008-08-08 Marco Gerards <marco@gnu.org>
23998
23999 * disk/ata.c (grub_ata_regget): Change return type to
24000 `grub_uint8_t'.
24001 (grub_ata_regget2): Likewise.
24002 (grub_ata_wait_status): New function.
24003 (grub_ata_wait_busy): Removed function, updated all users to use
24004 `grub_ata_wait_status'.
24005 (grub_ata_wait_drq): Likewise.
24006 (grub_ata_cmd): New function.
24007 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
24008 error handling.
24009 (grub_ata_pio_write): Add error handling.
24010 (grub_atapi_identify): Likewise.
24011 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
24012 handling.
24013 (grub_ata_identify): Use `grub_ata_cmd' and improve error
24014 handling. Actually use the detected registers. Reorder the
24015 detection logic such that it is easier to read.
24016 (grub_ata_pciinit): Do not assign the same ID to each controller.
24017 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
24018 handling.
24019 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
24020
24021 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
24022
1fbc5e66 240232008-08-08 Marco Gerards <marco@gnu.org>
24024
24025 * NEWS: Update.
24026
819ce6c0 240272008-08-07 Bean <bean123ch@gmail.com>
24028
24029 * include/grub/x86_64/pci.h: New file.
24030
5c41d44d 240312008-08-07 Christian Franke <franke@computer.org>
24032
24033 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
24034 (TIMER2_GATE): Likewise.
24035 (grub_pit_wait): Add enable/disable of the timer2 gate
24036 bit of port 0x61. This fixes a possible infinite loop.
24037
5ebc275d 240382008-08-07 Bean <bean123ch@gmail.com>
24039
24040 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
24041 kern/i386/tsc.c and kern/i386/pit.c.
24042
24043 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
24044 x86_64 platform.
24045
24046 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
24047 <grub/i386/tsc.h>.
24048
24049 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
24050
e383b3d0 240512008-08-07 Bean <bean123ch@gmail.com>
24052
24053 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
24054
24055 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
24056
24057 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
24058 multiple inclusion. Add #include <grub/types.h>.
24059
1cbb58ac 240602008-08-06 Christian Franke <franke@computer.org>
24061
24062 * conf/common.rmk: Build and install `10_windows'.
24063 * util/grub.d/10_windows.in: New script.
24064
337f5a1e 240652008-08-06 Pavel Roskin <proski@gnu.org>
24066
24067 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
24068
057bc4ac 240692008-08-06 Robert Millan <rmh@aybabtu.com>
24070
24071 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
24072 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
24073
2b99f123 240742008-08-06 Bean <bean123ch@gmail.com>
24075
24076 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
24077 (grub_pxefs_fs_int): Remove dummy definition.
24078 (grub_pxefs_open): Use data->block_size to store the current block
24079 size setting.
24080 (grub_pxefs_read): Use block size stored in data->block_size. As the
24081 value of grub_pxe_blksize can be changed after the file is opened.
24082
9f0234cb 240832008-08-06 Bean <bean123ch@gmail.com>
24084
24085 * fs/i386/pc/pxe.c (curr_file): new variable.
24086 (grub_pxefs_open): Simply the handling of pxe file system. Don't
24087 require the dummy internal file system anymore.
24088 (grub_pxefs_read): Removed.
24089 (grub_pxefs_close): Likewise.
24090 (grub_pxefs_fs_int): Likewise.
24091 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
24092 connection when we switch file.
24093 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
24094
a55d42e0 240952008-08-06 Robert Millan <rmh@aybabtu.com>
24096
24097 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
24098 `halt.mod'.
24099 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
24100 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
24101
24102 * kern/i386/halt.c: New file.
24103 * kern/i386/reboot.c: Likewise.
24104 * include/grub/i386/reboot.h: Likewise.
24105 * include/grub/i386/halt.h: Likewise.
24106
24107 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
24108 Include `<grub/cpu/halt.h>'.
24109 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
24110 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
24111
24112 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
24113 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
24114 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
24115 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
24116 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
24117 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
24118 from here ...
24119 * include/grub/i386/at_keyboard.h: ... to here.
24120
24371d26 241212008-08-05 Robert Millan <rmh@aybabtu.com>
24122
24123 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
24124 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
24125 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
24126 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
24127 `kern/generic/millisleep.c'.
24128
24129 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
24130 instead of grub_get_rtc().
24131 (grub_tsc_init): Initialize `tsc_boot_time'.
24132
24133 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
24134 (grub_machine_init): Use grub_tsc_init() rather than
24135 installing an RTC-based handler via grub_install_get_time_ms().
24136
24137 * kern/i386/pit.c: New file.
24138 * include/grub/i386/pit.h: Likewise.
24139
9e7007b3 241402008-08-05 Bean <bean123ch@gmail.com>
24141
24142 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
24143
24144 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
24145 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
24146 (pxe_mod_SOURCES): New macro.
24147 (pxe_mod_CFLAGS): Likewise.
24148 (pxe_mod_LDFLAGS): Likewise.
24149 (pxecmd_mod_SOURCES): Likewise.
24150 (pxecmd_mod_CFLAGS): Likewise.
24151 (pxecmd_mod_LDFLAGS): Likewise.
24152
24153 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
24154 (grub_pxe_call): Likewise.
24155
24156 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
24157
24158 * commands/i386/pc/pxecmd.c: New file.
24159
9f0234cb 24160 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 24161
24162 * include/grub/i386/pc/pxe.h: Likewise.
24163
6977d49f 241642008-08-05 Bean <bean123ch@gmail.com>
24165
24166 * util/console.c (grub_console_cur_color): New variable.
24167 (grub_console_standard_color): Likewise.
24168 (grub_console_normal_color): Likewise.
24169 (grub_console_highlight_color): Likewise.
24170 (color_map): Likewise.
24171 (use_color): Likewise.
24172 (NUM_COLORS): New macro.
24173 (grub_ncurses_setcolorstate): Handle color properly.
24174 (grub_ncurses_setcolor): Don't change color here, just remember the
24175 settings, color will be set in grub_ncurses_setcolorstate.
24176 (grub_ncurses_getcolor): New function.
24177 (grub_ncurses_init): Initialize color pairs.
24178 (grub_ncurses_term): New member grub_ncurses_getcolor.
24179
9c2ff3ee 241802008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 24181
9c2ff3ee 24182 High resolution timer support. Implemented for x86 CPUs using TSC.
24183 Extracted generic grub_millisleep() so it's linked in only as needed.
24184 This requires a Pentium compatible CPU; if the RDTSC instruction is
24185 not supported, then it falls back on the generic grub_get_time_ms()
24186 implementation that uses the machine's RTC.
24187
24188 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
24189 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
24190 `kern/generic/millisleep.c'.
24191
24192 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
24193 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
24194
24195 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
24196 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
24197
24198 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
24199
24200 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
24201 `kern/generic/millisleep.c'.
24202
24203 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
24204
24205 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
24206
24207 * kern/generic/rtc_get_time_ms.c: New file.
24208
24209 * kern/generic/millisleep.c: New file.
337f5a1e 24210
9c2ff3ee 24211 * kern/misc.c: Don't include
24212 <kern/time.h> anymore.
24213 (grub_millisleep_generic): Removed.
24214
24215 * commands/sleep.c (grub_interruptible_millisleep): Uses
24216 grub_get_time_ms() instead of grub_get_rtc().
24217
24218 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
24219 function.
24220 (grub_cpu_is_cpuid_supported): New inline function.
24221 (grub_cpu_is_tsc_supported): New inline function.
24222 (grub_tsc_init): New function prototype.
24223 (grub_tsc_get_time_ms): New function prototype.
24224
24225 * kern/i386/tsc.c (grub_get_time_ms): New file.
24226
24227 * include/grub/time.h: Include <grub/types.h.
24228 (grub_millisleep_generic): Removed.
24229 (grub_get_time_ms): New prototype.
24230 (grub_install_get_time_ms): New prototype.
24231 (grub_rtc_get_time_ms): New prototype.
24232
24233 * kern/time.c (grub_get_time_ms): New function.
24234 (grub_install_get_time_ms): New function.
24235
24236 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
24237 <grub/time.h> anymore.
24238 (grub_millisleep): Removed.
24239 (grub_machine_init): Call grub_tsc_init.
24240
24241 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
24242 get_time_ms() implementation.
24243
24244 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
24245 (ieee1275_get_time_ms): New function.
24246 (grub_machine_init): Install get_time_ms() implementation.
24247
24248 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
24249 (grub_machine_init): Call grub_tsc_init().
24250 (grub_millisleep): Removed.
bf06a93f 24251
9c2ff3ee 24252 * kern/ieee1275/init.c (grub_millisleep): Removed.
24253 (grub_machine_init): Install ieee1275_get_time_ms()
24254 implementation.
24255 (ieee1275_get_time_ms): New function.
24256 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
24257 real work.
24258
9ec92aaf 242592008-08-05 Marco Gerards <marco@gnu.org>
24260
24261 * disk/ata.c: Include <grub/pci.h>.
24262 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
24263 (grub_ata_initialize): Rewritten.
24264 (grub_ata_device_initialize): New function.
24265
8d23f507 242662008-08-04 Pavel Roskin <proski@gnu.org>
24267
24268 * kern/main.c: Include grub/mm.h.
24269
5e15ee3d 242702008-08-04 Robert Millan <rmh@aybabtu.com>
24271
24272 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
24273 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
24274 corruption problem).
24275
a9053f8f 242762008-08-04 Robert Millan <rmh@aybabtu.com>
24277
24278 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
24279 warnings introduced in my last commit.
24280
dd19c7d7 242812008-08-03 Robert Millan <rmh@aybabtu.com>
24282
24283 Make PCI available on all i386 architectures.
24284
24285 * include/grub/i386/pc/pci.h: Move from here ...
24286 * include/grub/i386/pci.h: ... to here.
24287
24288 * include/grub/i386/pc/pci.h: Remove.
24289 * include/grub/i386/efi/pci.h: Remove.
24290 * include/grub/x86_64/efi/pci.h: Remove.
24291
24292 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
24293 `<grub/cpu/pci.h>'.
24294
24295 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
24296 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
24297 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
24298
24299 * conf/i386-ieee1275.rmk: Likewise.
24300
e14a6184 243012008-08-03 Robert Millan <rmh@aybabtu.com>
24302
24303 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
24304 (grub_console_setcursor): Make it possible to set cursor off.
24305
52768e37 243062008-08-03 Robert Millan <rmh@aybabtu.com>
24307
24308 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
24309 of modules instead of assuming which platform provides what.
24310 * util/update-grub.in: Likewise.
24311
2d52f57f 243122008-08-03 Robert Millan <rmh@aybabtu.com>
24313
24314 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
24315 instead of `grub_install_dos_part' to determine whether a drive needs
24316 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 24317 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 24318
2a5cd121 243192008-08-02 Robert Millan <rmh@aybabtu.com>
24320
24321 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
24322
93808428 243232008-08-02 Robert Millan <rmh@aybabtu.com>
24324
24325 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
24326 of informational grub_dprintf() calls.
24327
3bd0a12a 243282008-08-02 Robert Millan <rmh@aybabtu.com>
24329
24330 * disk/memdisk.c (memdisk_size): Don't initialize.
24331 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
24332
24333 * include/grub/i386/pc/kernel.h
24334 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
24335 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
24336 (grub_memdisk_image_size, grub_arch_memdisk_addr)
24337 (grub_arch_memdisk_size): Remove.
24338
24339 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
24340 field (was only used to transfer a constant). Add `type' field to
24341 support multiple module types.
24342 (grub_module_iterate): New function.
24343
24344 * kern/device.c (grub_device_open): Do not hide error messages
24345 when grub_disk_open() fails. Use grub_print_error() instead.
24346
24347 * kern/i386/pc/init.c (grub_arch_modules_addr)
24348 (grub_arch_memdisk_size): Remove functions.
24349 (grub_arch_modules_addr): Return the module address in high memory
24350 (now that it isn't copied anymore).
24351
24352 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
24353 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
24354 decompression routine (grub_total_module_size already includes that
24355 now). Don't copy modules back to low memory.
24356
24357 * kern/main.c: Include `<grub/mm.h>'.
24358 (grub_load_modules): Split out (and use) ...
24359 (grub_module_iterate): ... this function, which iterates through
24360 module objects and runs a hook.
24361 Comment out grub_mm_init_region() call, as it would cause non-ELF
24362 modules to be overwritten.
24363
24364 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
24365 the memdisk image in its own region, make it part of the module list.
24366 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
24367 (main): Parse --memdisk|-m option, and pass user-provided path as
24368 parameter to generate_image().
24369 (add_segments): Pass `memdisk_path' down to load_modules().
24370 (load_modules): Embed memdisk image in module section when requested.
24371 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
24372 `header.type' instead of `header.offset'.
24373
24374 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
24375 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
24376 (memdisk_mod_LDFLAGS): New variables.
24377 * conf/i386-coreboot.rmk: Likewise.
24378 * conf/i386-ieee1275.rmk: Likewise.
24379
a927cc73 243802008-08-02 Robert Millan <rmh@aybabtu.com>
24381
24382 * loader/i386/pc/multiboot.c (playground, forward_relocator)
24383 (backward_relocator): New variables. Used to allocate and relocate
24384 the payload, respectively.
24385 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 24386 address, install the appropriate relocator code in each bound of
a927cc73 24387 the payload, and set the entry point such that
24388 grub_multiboot_real_boot() will jump to one of them.
24389
24390 * kern/i386/loader.S (grub_multiboot_payload_size)
24391 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
24392 (grub_multiboot_payload_entry_offset): New variables.
24393 (grub_multiboot_real_boot): Set cpu context to what the relocator
24394 expects, and jump to the relocator instead of the payload.
24395
24396 * include/grub/i386/loader.h (grub_multiboot_payload_size)
24397 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
24398 (grub_multiboot_payload_entry_offset): Export.
24399
b15d8a0c 244002008-08-01 Bean <bean123ch@gmail.com>
24401
24402 * normal/menu_entry.c (editor_getline): Don't return the original
24403 string as result, as it will be released by lexer once it has done
24404 using it.
24405
cdfb3d22 244062008-08-01 Robert Millan <rmh@aybabtu.com>
24407
24408 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
24409 within menuentries, not before them.
24410 util/grub.d/10_hurd.in: Likewise.
24411
9175e93d 244122008-08-01 Bean <bean123ch@gmail.com>
24413
24414 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
24415 (bufio_mod_SOURCES): New macro.
24416 (bufio_mod_CFLAGS): Likewise.
24417 (bufio_mod_LDFLAGS): Likewise.
24418
24419 * include/grub/bufio.h: New file.
24420
24421 * io/bufio.c: Likewise.
24422
24423 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
24424 (grub_video_reader_png): Use grub_buffile_open to open file.
24425
24426 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
24427 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
24428
24429 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
24430 (grub_video_reader_tga): Use grub_buffile_open to open file.
24431
24432 * font/manager.c: Include <grub/bufio.h>.
24433 (add_font): Use grub_buffile_open to open file.
24434
3d8383e7 244352008-07-31 Robert Millan <rmh@aybabtu.com>
24436
24437 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
24438 ELF segments, use a macro for arbitrarily accessing any of them instead
24439 of preparing a pointer that allows access to one at a time.
24440 (grub_multiboot_load_elf64): Likewise.
24441
16e641b6 244422008-07-31 Bean <bean123ch@gmail.com>
24443
24444 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
24445 GRUB_KERNEL_MACHINE_DATA_END.
24446
59198b72 244472008-07-30 Robert Millan <rmh@aybabtu.com>
24448
24449 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
24450 Increase from 0x50 to 0x60.
24451 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
24452 use UUIDs to identify the root drive for them. If that's not
24453 possible, abort.
24454 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
24455 check, for cross-disk installs.
24456
ae88bca3 244572008-07-30 Robert Millan <rmh@aybabtu.com>
24458
24459 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
24460 is non-empty, use it to set the `prefix' environment variable instead
24461 of the usual approach.
24462 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
24463 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
24464 environment variable instead of dummy make_install_device().
24465
24466 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
24467 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 24468 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 24469
24470 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
24471 New variable reference.
24472 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
24473 New macro. Defines offset of `grub_prefix' within startup.S (relative
24474 to `start').
24475 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
24476 section within startup.S (relative to `start').
24477 * include/grub/i386/coreboot/kernel.h: Likewise.
24478
24479 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
24480 Overwrite grub_prefix with its contents, at the beginning of the
24481 first segment.
24482 (main): Understand -p|--prefix.
24483
14f41dd1 244842008-07-30 Robert Millan <rmh@aybabtu.com>
24485
24486 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
24487
4ca049a3 244882008-07-30 Robert Millan <rmh@aybabtu.com>
24489
24490 * term/i386/pc/vga_text.c (grub_console_cls): Use
24491 grub_console_gotoxy() to go back to beginning of the screen.
24492 Found by Patrick Georgi <patrick.georgi@coresystems.de>
24493
2921d337 244942008-07-29 Christian Franke <franke@computer.org>
24495
24496 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
24497 Add conversion of emulated mount points on Cygwin.
24498
b609876d 244992008-07-29 Christian Franke <franke@computer.org>
24500
24501 * util/update-grub.in: Add a check for admin
24502 group on Cygwin.
24503 Remove old `grub.cfg.new' before creation.
24504 Add `-f' to `mv' to handle the different filesystem
24505 semantics of Windows.
24506
e93e4679 245072008-07-29 Bean <bean123ch@gmail.com>
24508
24509 * normal/main.c (get_line): Fix buffer overflow bug.
24510
41694fd0 245112008-07-28 Robert Millan <rmh@aybabtu.com>
24512
24513 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
24514 (struct grub_apple_header): New struct. Describes the layout of
24515 the partmap header.
24516 (apple_partition_map_iterate): Check the header magic as well as the
24517 partition magic (which was already being checked).
24518
cfd0b4e6 245192008-07-28 Pavel Roskin <proski@gnu.org>
24520
24521 * genmk.rb: Add a warning to the beginning of the output that
24522 it's a generated file and should not be edited.
24523
93cce016 245242008-07-28 Robert Millan <rmh@aybabtu.com>
24525
24526 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
24527 with the same number are found, just use issue a warning with
24528 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 24529
cd1df915 245302008-07-27 Robert Millan <rmh@aybabtu.com>
24531
24532 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
24533 information.
24534
b70a8427 245352008-07-27 Bean <bean123ch@gmail.com>
24536
24537 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
24538 (grub_fat_find_dir): Ignore case when comparing filename.
24539
8f5e379f 245402008-07-27 Bean <bean123ch@gmail.com>
24541
24542 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
24543 smallino, as it's more descriptive, and i8count can be confused with
24544 the other field count.
24545 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
24546 inode type.
24547
a85cd5a0 245482008-07-27 Bean <bean123ch@gmail.com>
24549
24550 * commands/crc.c: New file.
24551
24552 * lib/crc.c: Likewise.
24553
24554 * include/grub/lib/crc.h: Likewise.
24555
24556 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
24557
24558 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
24559 (hexdump): Move this function to ...
24560
24561 * lib/hexdump.c: ... here.
24562
24563 * include/grub/hexdump.h: Renamed to ...
24564
24565 * include/grub/lib/hexdump.h: ... this.
24566
24567 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
24568
24569 * util/grub-editenv.c: Likewise.
24570
24571 * include/envblk.h: Renamed to ...
24572
24573 * include/lib/envblk.h: ... this.
24574
24575 * util/envblk.c: Renamed to ...
24576
24577 * lib/envblk.c: ... this.
24578
24579 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
24580 lib/hexdump.c.
24581 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
24582 (pkglib_MODULES): Add crc.mod.
24583 (hexdump_mod_SOURCES): Add lib/hexdump.c.
24584 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
24585 (crc_mod_SOURCES): New macro.
24586 (crc_mod_CFLAGS): Likewise.
24587 (crc_mod_LDFLAGS): Likewise.
24588
24589 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
24590
24591 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24592
24593 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24594
24595 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24596
24597 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24598
c298def0 245992008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 24600
24601 * commands/help.c: Include <grub/term.h>.
24602 (TERM_WIDTH): Removed. Updated all users.
24603
cc349fb3 246042008-07-27 Pavel Roskin <proski@gnu.org>
24605
24606 * util/getroot.c (find_root_device): Rephrase a comment to avoid
24607 spurious warnings about a comment within a comment.
24608
9051607e 246092008-07-25 Robert Millan <rmh@aybabtu.com>
24610
24611 * util/getroot.c (find_root_device): Skip devices that match
24612 /dev/dm-[0-9]. This lets the real device be found for any type of
24613 abstraction (LVM, EVMS, RAID..).
24614 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
24615 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
24616 device is found first, find_root_device() will now skip it.
24617
01453bfc 246182008-07-24 Pavel Roskin <proski@gnu.org>
24619
24620 * include/grub/types.h: Use __builtin_bswap32() and
24621 __builtin_bswap64() with gcc 4.3 and newer.
24622
6af9849f 246232008-07-24 Christian Franke <franke@computer.org>
24624
3a0fa256 24625 * util/i386/pc/grub-install.in: If `--debug' is specified,
24626 pass `--verbose' to grub-setup.
24627 Abort script if make_system_path_relative_to_its_root() fails.
24628
7810e747 246292008-07-24 Bean <bean123ch@gmail.com>
24630
24631 * configure.ac: Fixed a bug caused by the previous cygwin patch,
24632 variable `target_platform' should be `platform'.
24633
42290e17 246342008-07-24 Bean <bean123ch@gmail.com>
24635
51cc5193 24636 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 24637 (grub_png_init_fixed_block): New function.
24638 (grub_png_decode_image_data): Handle fixed huffman code compression.
24639
2a8a80e4 246402008-07-24 Bean <bean123ch@gmail.com>
24641
24642 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
24643 (grub_pe2elf_SOURCES): New macro.
24644 (CLEANFILES): Add grub-pe2elf.
24645
24646 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
24647 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
24648 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
24649 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
24650 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
24651 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
24652 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
24653 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
24654 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
24655 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
24656 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
24657 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
24658 (GRUB_PE32_DT_FUNCTION): Likewise.
24659 (GRUB_PE32_REL_I386_DIR32): Likewise.
24660 (GRUB_PE32_REL_I386_REL32): Likewise.
24661 (grub_pe32_symbol): New structure.
24662 (grub_pe32_reloc): Likewise.
24663
24664 * util/grub-pe2elf.c: New file.
24665
24666 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
24667 start symbol in non pc platform.
24668
24669 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
24670
24671 The following patches are from Christian Franke.
24672
24673 * include/grub/dl.h: Remove .previous, gas supports this only
24674 for ELF format.
24675
24676 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
24677 Remove .type, gas supports this only for ELF format.
24678
24679 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
24680 nullbytes in symbol table. This fixes an infinite loop if table is
24681 zero filled.
24682
24683 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
24684 TARGET_IMG_LDFLAGS and EXEEXT.
24685
24686 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
24687 TARGET_IMG_LDFLAGS_AC.
24688 (grub_CHECK_STACK_ARG_PROBE): New function.
24689
24690 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
24691
24692 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
24693
24694 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
24695 to set TARGET_IMG_LD* accordingly.
24696 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
24697 Add call to grub_CHECK_STACK_ARG_PROBE.
24698 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
24699
24700 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
24701
24702 * genmk.rb: Add EXEEXT to CLEANFILES.
24703
12ccdb75 247042008-07-23 Robert Millan <rmh@aybabtu.com>
24705
24706 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
24707 define the codes for arrows and lines used for the menu).
24708 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
24709 as well.
24710
24711 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
24712 fonts, because the latter are too slow.
24713
18eeaf04 247142008-07-21 Bean <bean123ch@gmail.com>
24715
24716 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
24717 a20. Run keyboard test last, as it will cause macbook to halt.
24718
b095e2ad 247192008-07-18 Pavel Roskin <proski@gnu.org>
24720
24721 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
24722 load foreign architecture modules correctly anyway. Keep
24723 support for loading host architecture modules, whether we
24724 compile them or not.
24725
737feb35 247262008-07-17 Pavel Roskin <proski@gnu.org>
24727
3f4ce737 24728 * configure.ac: Use -m32 or -m64 regardless of whether we had to
24729 change target_cpu. The compiler default can mismatch target_cpu
24730 in any case.
24731
4ad2d049 24732 * disk/efi/efidisk.c: Fix format warnings on x86_64.
24733 * kern/efi/efi.c: Likewise.
24734
f6130a12 24735 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
24736 target compiler is functional.
24737 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
24738 are set up.
24739
58393a2d 24740 * configure.ac: Default to efi platform for x86_64-apple. Allow
24741 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
24742 adjustments from the rest, only do them if target is not
24743 explicitly given. Merge other adjustments with the final sanity
24744 check. Remove an extraneous check for supported CPU. Be
24745 specific which CPU and which platform is not supported.
24746
737feb35 24747 * configure.ac: Default to pc platform for x86_64.
24748
546f966a 247492008-07-17 Robert Millan <rmh@aybabtu.com>
24750
24751 Partial LinuxBIOS -> Coreboot rename.
24752
24753 * conf/i386-linuxbios.rmk: Renamed to ...
24754 * conf/i386-coreboot.rmk: ... this.
24755 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
24756 * configure.ac: Accept "coreboot" as input platform (but maintain
24757 compatibility with "linuxbios").
24758 * include/grub/i386/linuxbios: Renamed to ...
24759 * include/grub/i386/coreboot: ... this.
24760
20011694 247612008-07-17 Bean <bean123ch@gmail.com>
24762
24763 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 24764 (appleldr_mod_SOURCE): New variable.
20011694 24765 (appleldr_mod_CFLAGS): Likewise.
24766 (appleldr_mod_LDFLAGS): Likewise.
24767 (pci_mod_SOURCES): Likewise.
24768 (pci_mod_CFLAGS): Likewise.
24769 (pci_mod_LDFLAGS): Likewise.
24770 (lspci_mod_SOURCES): Likewise.
24771 (lspci_mod_CFLAGS): Likewise.
24772 (lspci_mod_LDFLAGS): Likewise.
24773
24774 * conf/x86_64-efi.rmk: New file.
24775
24776 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
24777 macro.
24778 (grub_efidisk_write): Likewise.
24779
24780 * include/efi/api.h (efi_call_0): New macro.
24781 (efi_call_1): Likewise.
24782 (efi_call_2): Likewise.
24783 (efi_call_3): Likewise.
24784 (efi_call_4): Likewise.
24785 (efi_call_5): Likewise.
24786 (efi_call_6): Likewise.
24787
24788 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
24789 grub_rescue_cmd_chainloader.
24790
24791 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
24792 (grub_pe32_optional_header): Change some fields based on i386 or
24793 x86_64 platform.
24794 (GRUB_PE32_PE32_MAGIC): Likewise.
24795
24796 * include/grub/efi/uga_draw.h: New file.
24797
24798 * include/grub/elf.h (STN_ABS): New constant.
24799 (R_X86_64_NONE): Relocation constant for x86_64.
24800 (R_X86_64_64): Likewise.
24801 (R_X86_64_PC32): Likewise.
24802 (R_X86_64_GOT32): Likewise.
24803 (R_X86_64_PLT32): Likewise.
24804 (R_X86_64_COPY): Likewise.
24805 (R_X86_64_GLOB_DAT): Likewise.
24806 (R_X86_64_JUMP_SLOT): Likewise.
24807 (R_X86_64_RELATIVE): Likewise.
24808 (R_X86_64_GOTPCREL): Likewise.
24809 (R_X86_64_32): Likewise.
24810 (R_X86_64_32S): Likewise.
24811 (R_X86_64_16): Likewise.
24812 (R_X86_64_PC16): Likewise.
24813 (R_X86_64_8): Likewise.
24814 (R_X86_64_PC8): Likewise.
24815
24816 * include/grub/i386/efi/pci.h: New file.
24817
24818 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
24819 Change it value based on platform.
24820 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
24821 (GRUB_E820_RAM): Likewise.
24822 (GRUB_E820_RESERVED): Likewise.
24823 (GRUB_E820_ACPI): Likewise.
24824 (GRUB_E820_NVS): Likewise.
24825 (GRUB_E820_EXEC_CODE): Likewise.
24826 (GRUB_E820_MAX_ENTRY): Likewise.
24827 (grub_e820_mmap): New structure.
24828 (linux_kernel_header): Change the efi field according to different
24829 kernel version, also field from linux_kernel_header.
24830
24831 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
24832
24833 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
24834 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
24835 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
24836 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
24837 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
24838 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
24839 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
24840 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
24841 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
24842 (GRUB_PCI_ADDR_IO_MASK): Likewise.
24843
24844 * include/grub/x86_64/efi/kernel.h: New file.
24845
24846 * include/grub/x86_64/efi/loader.h: Likewise.
24847
24848 * include/grub/x86_64/efi/machine.h: Likewise.
24849
24850 * include/grub/x86_64/efi/pci.h: Likewise.
24851
24852 * include/grub/x86_64/efi/time.h: Likewise.
24853
24854 * include/grub/x86_64/linux.h: Likewise.
24855
24856 * include/grub/x86_64/setjmp.h: Likewise.
24857
24858 * include/grub/x86_64/time.h: Likewise.
24859
24860 * include/grub/x86_64/types.h: Likewise.
24861
24862 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
24863 GRUB_TARGET_SIZEOF_VOID_P.
24864
24865 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
24866 (grub_efi_locate_handle): Likewise.
24867 (grub_efi_open_protocol): Likewise.
24868 (grub_efi_set_text_mode): Likewise.
24869 (grub_efi_stall): Likewise.
24870 (grub_exit): Likewise.
24871 (grub_reboot): Likewise.
24872 (grub_halt): Likewise.
24873 (grub_efi_exit_boot_services): Likewise.
24874 (grub_get_rtc): Likewise.
24875
24876 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
24877 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
24878 (grub_efi_allocate_pages): Wrap efi calls.
24879 (grub_efi_free_pages): Wrap efi calls.
24880 (grub_efi_get_memory_map): Wrap efi calls.
24881
24882 * kern/x86_64/dl.c: New file.
24883
24884 * kern/x86_64/efi/callwrap.S: Likewise.
24885
24886 * kern/x86_64/efi/startup.S: Likewise.
24887
24888 * loader/efi/appleloader.c: Likewise.
24889
24890 * loader/efi/chainloader.c (cmdline): New variable.
24891 (grub_chainloader_unload): Wrap efi calls.
24892 (grub_chainloader_boot): Likewise.
24893 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
24894 command line.
24895
24896 * loader/efi/chainloader_normal.c (chainloader_command):
24897 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
24898 command line.
24899
24900 * loader/i386/efi/linux.c (allocate_pages): Change allocation
24901 method.
24902 (grub_e820_add_region): New function.
24903 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
24904 booting.
24905 (grub_find_video_card): New function.
24906 (grub_linux_setup_video): New function.
24907 (grub_rescue_cmd_linux): Probe for video information.
24908
24909 * normal/x86_64/setjmp.S: New file.
24910
24911 * term/efi/console.c (map_char): New function.
24912 (grub_console_putchar): Map unicode char.
24913 (grub_console_checkkey): Wrap efi calls.
24914 (grub_console_getkey): Likewise.
24915 (grub_console_getwh): Likewise.
24916 (grub_console_gotoxy): Likewise.
24917 (grub_console_cls): Likewise.
24918 (grub_console_setcolorstate): Likewise.
24919 (grub_console_setcursor): Likewise.
24920
24921 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
24922
59652a20 249232008-07-16 Pavel Roskin <proski@gnu.org>
24924
ef294055 24925 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
24926 format strings.
24927
59652a20 24928 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
24929 pointer, not an integer. This fixes a warning and prevents
24930 precision loss on 64-bit systems.
24931 (relocate_addresses): Remove unneeded cast.
24932
afc3b5d7 249332008-07-15 Pavel Roskin <proski@gnu.org>
24934
506b2b3e 24935 * kern/i386/ieee1275/init.c: Include grub/cache.h.
24936
62ead89c 24937 * term/ieee1275/ofconsole.c: Disable code unused on i386.
24938
c4cd51d7 24939 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
24940 Fix comparison between signed and unsigned.
24941
0d3d8f28 24942 * include/grub/i386/ieee1275/console.h: Declare
24943 grub_console_init() and grub_console_fini().
24944
8804b286 24945 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
24946 It's empty and unused.
24947
ee01cf35 24948 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
24949 beginning to avoid warnings with some compilers.
24950
afc3b5d7 24951 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
24952 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
24953
e4e8eaa5 249542008-07-14 Pavel Roskin <proski@gnu.org>
24955
407aceb4 24956 * kern/env.c (grub_register_variable_hook): Don't copy empty
24957 string, it leaks memory. Pass "" to grub_env_set(), it should
24958 handle constant strings.
24959
e4e8eaa5 24960 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
24961 * commands/cmp.c (grub_cmd_cmp): Likewise.
24962 * kern/dl.c (grub_dl_flush_cache): Likewise.
24963 (grub_dl_load_core): Likewise.
24964 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
24965 (grub_elf64_load_phdrs): Likewise.
24966
d4e2dad3 249672008-07-13 Pavel Roskin <proski@gnu.org>
24968
24969 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
24970 between signed and unsigned.
24971 (LzmaEnc_Finish): Fix warning about an unused parameter.
24972
aa24b516 249732008-07-13 Bean <bean123ch@gmail.com>
24974
24975 * Makefile.in (enable_lzo): New rule.
24976
24977 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
24978
24979 * configure.ac (ENABLE_LZO): New option --enable-lzo.
24980
24981 * boot/i386/pc/lnxboot.S: #include <config.h>.
24982
24983 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 24984 its value according to the compression algorithm used, lzo or lzma.
aa24b516 24985
24986 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
24987 compression algorithm according to configure macro.
24988
24989 * kern/i386/pc/startup.S (codestart): Likewise.
24990
24991 * kern/i386/pc/lzma_decode.S: New file.
24992
24993 * include/grub/lib/LzFind.h: Likewise.
24994
24995 * include/grub/lib/LzHash.h: Likewise.
24996
24997 * include/grub/lib/LzmaDec.h: Likewise.
24998
24999 * include/grub/lib/LzmaEnc.h: Likewise.
25000
25001 * include/grub/lib/LzmaTypes.h: Likewise.
25002
25003 * lib/LzFind.c: Likewise.
25004
25005 * lib/LzmaDec.c: Likewise.
25006
25007 * lib/LzmaEnc.c: Likewise.
25008
4ae821ac 250092008-07-13 Bean <bean123ch@gmail.com>
25010
25011 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
25012 (grub_ext4_extent_header): New structure.
25013 (grub_ext4_extent): Likewise.
25014 (grub_ext4_extent_idx): Likewise.
25015 (grub_ext4_find_leaf): New function.
25016 (grub_ext2_read_block): Handle extents.
25017
9a745147 250182008-07-12 Robert Millan <rmh@aybabtu.com>
25019
25020 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
25021
d49a4cf6 250222008-07-11 Robert Millan <rmh@aybabtu.com>
25023
25024 * util/grub.d/40_custom.in: New file. Example on how to add custom
25025 entries to /etc/grub.d.
25026 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
25027 40_custom (implicitly, by merging all the grub.d rules).
25028
947414b4 250292008-07-11 Pavel Roskin <proski@gnu.org>
25030
0059cf6f 25031 * commands/read.c (grub_getline): Fix invalid memory access.
25032 Don't add newline to the variable value.
25033
947414b4 25034 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
25035 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
25036 (serial_hw_get_port): Check validity of the port number.
25037 (grub_cmd_serial): Check return value of serial_hw_get_port().
25038
62a02d00 250392008-07-07 Pavel Roskin <proski@gnu.org>
25040
25041 * boot/i386/pc/diskboot.S (notification_string): Replace
25042 "Loading kernel" with just "loading". This is shorter, less
25043 confusing and saves a few bytes for possible future changes.
25044
3e5581b0 250452008-07-05 Pavel Roskin <proski@gnu.org>
25046
ea387a48 25047 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
25048 size for ATAPI devices, they are undefined. Output sector
25049 number in decimal form.
25050
3e5581b0 25051 * disk/ata.c: Use named constants for status bits.
25052
fdecb8fd 250532008-07-04 Pavel Roskin <proski@gnu.org>
25054
bcd35b90 25055 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
25056 grub_addr_t before casting it to the void pointer to fix a
25057 warning. Non-addressable regions are discarded earlier.
25058 (grub_arch_modules_addr): Cast _end to grub_addr_t.
25059 * kern/i386/linuxbios/table.c: Include grub/misc.h.
25060 (check_signature): Don't shadow table_header.
25061 (grub_linuxbios_table_iterate): Cast numeric constants to
25062 grub_linuxbios_table_header_t.
25063 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
25064 grub_stop().
25065
af58ab3d 25066 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
25067 prevent warnings.
25068
1759aa57 25069 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
25070 pointer, which can cause warnings. Support 64-bit addresses.
25071
fdecb8fd 25072 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
25073 of sizeof(long). This fixes PowerPC image generation on x86_64.
25074
8516d2a8 250752008-07-04 Robert Millan <rmh@aybabtu.com>
25076
25077 This fixes a performance issue when pc & gpt partmap iterators
25078 didn't abort iteration even after our hook found what it was
fe987087 25079 looking for (often causing expensive probes of non-existent drives).
8516d2a8 25080
25081 Some callers relied on previous buggy behaviour, since they would
34c44600 25082 raise an error when their own hooks caused early abortion of its
8516d2a8 25083 iteration.
25084
25085 * kern/device.c (grub_device_open): Improve error message.
25086 * disk/lvm.c (grub_lvm_open): Likewise.
25087 * disk/raid.c (grub_raid_open): Likewise.
25088
25089 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
25090 when hook requests it, independently of grub_errno.
25091 (pc_partition_map_probe): Do not fail when find_func() caused
25092 early abortion of pc_partition_map_iterate().
25093
25094 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
25095 when hook requests it, independently of grub_errno.
25096 (gpt_partition_map_probe): Do not fail when find_func() caused
25097 early abortion of gpt_partition_map_iterate().
25098
25099 * kern/partition.c (grub_partition_iterate): Abort parent iteration
25100 when hook requests it, independently of grub_errno. Do not fail when
25101 part_map_iterate_hook() caused early abortion of p->iterate().
25102
25103 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
25104 when grub_partition_iterate() returned with non-zero.
25105
277d0de9 251062008-07-03 Pavel Roskin <proski@gnu.org>
25107
25108 * disk/ata.c (grub_ata_pio_write): Check status before writing,
25109 like we do in grub_ata_pio_read().
25110 (grub_ata_readwrite): Always write individual sectors. Fix the
25111 sector count for the remainder.
25112 (grub_ata_write): Enable writing to ATA devices. Correctly
25113 report error for ATAPI devices.
25114
d4c9b428 251152008-07-02 Pavel Roskin <proski@gnu.org>
25116
e43fc690 25117 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
25118 warning.
25119
f707af42 25120 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
25121 for every read sector, we already increment it for the whole
25122 batch. This fixes reading more than 256 sectors at once.
25123
11e16b15 25124 * util/grub-editenv.c (cmd_info): Cast argument to long
25125 explicitly. ptrdiff_t reduces to int on i386.
25126
cbabfdd4 25127 * util/grub-editenv.c (main): Be specific which parameter is
25128 missing.
25129
b8fbce0a 25130 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
25131 (memdisk): Make memdisk_orig_addr a pointer.
25132
c9c8e606 25133 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
25134 for file offsets, use grub_off_t instead. Fix printf format
25135 warnings.
25136
ca62e598 25137 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
25138 there. Real unexpected warnings should not drown in the noise
25139 about known problems.
25140
ce8d1766 25141 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
25142 grub_disk_addr_t for memory addresses.
25143
00c7a56a 25144 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
25145 explicitly to fix a warning.
25146
08d3ef09 25147 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
25148
cb71ba20 25149 * Makefile.in (MODULE_LDFLAGS): New variable.
25150 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
25151 the linker accepts --build-id=none.
25152 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
25153 MODULE_LDFLAGS.
25154 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
25155
d4c9b428 25156 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
25157 those in Linux XFS code. Provide a way to access 64-bit parent
25158 inode.
25159 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
25160 the end of struct grub_xfs_dir_header.
25161
d4156eee 251622008-07-02 Bean <bean123ch@gmail.com>
25163
25164 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
25165 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
25166 and GRUB_IEEE1275_FLAG_NO_ANSI.
25167
25168 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
25169 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
25170 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
25171
25172 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
25173 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
25174
25175 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
25176 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
25177
25178 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
25179 esc sequence on non ANSI terminal.
25180 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
25181
25182 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
25183 beginning of file.
25184
2270f77b 251852008-07-02 Bean <bean123ch@gmail.com>
25186
25187 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
25188 (grub_editenv_SOURCES): New variable.
25189 (pkglib_MODULES): Add loadenv.mod.
25190 (loadenv_mod_SOURCES): New variable.
25191 (loadenv_mod_CFLAGS): Likewise.
25192 (loadenv_mod_LDFLAGS): Likewise.
25193
25194 * include/grub/envblk.h: New file.
25195
25196 * util/envblk.c: New file.
25197
25198 * util/grub-editenv.c: New file.
25199
25200 * commands/loadenv.c: New file.
25201
0e9e51ec 252022008-07-01 Pavel Roskin <proski@gnu.org>
25203
d89b7634 25204 * include/multiboot2.h (struct multiboot_tag_module): Use char,
25205 not unsigned char. This fixes warnings and is consistent with
25206 other tags.
25207
bf1835b1 25208 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
25209
8222a04b 25210 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
25211
6a42d99d 25212 * term/tparm.c (analyze): Always set *popcount.
25213
10b159d1 25214 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
25215 cast to fix a warning.
25216
b8789f6c 25217 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
25218 cast to suppress a warning.
25219
29d7e38a 25220 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
25221 grub_fshelp_read_file() expects.
25222
f341f669 25223 * fs/fat.c: Fix UUID calculation on big-endian systems. We
25224 write uuid as a 32-bit value in CPU byte order, so declare and
25225 use it as such.
25226
0e9e51ec 25227 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
25228 long if the format specifier expects it.
25229 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
25230 * partmap/pc.c (pc_partition_map_iterate): Likewise.
25231 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
25232 long to fix a warning.
25233 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
25234 grub_dprintf() arguments to fix warnings.
25235
3aefa857 252362008-06-30 Pavel Roskin <proski@gnu.org>
25237
56c7668b 25238 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
25239 install_bsd_part immediately before core.img is embedded or
25240 modified on disk. This fixes core.img verification if core.img
25241 cannot be embedded.
25242
3aefa857 25243 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
25244 core_path to calculate the blocklist.
25245 Patch from Javier Martín <lordhabbit@gmail.com>
25246
5444088d 252472008-06-29 Robert Millan <rmh@aybabtu.com>
25248
25249 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
25250 block to disk block.
25251 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
25252 Patch from Niels Böhm <bitbucket@arcor.de>
25253
674835c8 252542008-06-29 Robert Millan <rmh@aybabtu.com>
25255
25256 * util/update-grub_lib.in (font_path): Search for fonts in
25257 /boot/grub first, which is more likely to be readable (we aren't
25258 deciding where fonts live, just looking for them).
25259
f527dbc8 252602008-06-26 Pavel Roskin <proski@gnu.org>
25261
6c2d8df6 25262 * util/biosdisk.c (read_device_map): Don't leave dead map
25263 entries for devices failing stat() check.
25264
f527dbc8 25265 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
25266 core_path_dev for the core.img path on the target device.
25267
aebe3d13 252682008-06-26 Robert Millan <rmh@aybabtu.com>
25269
25270 * disk/fs_uuid.c: New file.
25271 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
25272 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
25273 (fs_uuid_mod_LDFLAGS): New variables.
25274 * include/grub/disk.h (grub_disk_dev_id): Add
25275 `GRUB_DISK_DEVICE_UUID_ID'.
25276 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
25277 implement iterate().
25278
37aaf354 252792008-06-26 Robert Millan <rmh@aybabtu.com>
25280
25281 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
25282 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
25283 Linux image includes no initrd.
25284
25ff262a 252852008-06-21 Javier Martín <lordhabbit@gmail.com>
25286
25287 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
25288 call to resolve the core image location that effectively appended the
25289 name twice.
25290
76a2bd44 252912008-06-21 Robert Millan <rmh@aybabtu.com>
25292
25293 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
25294 call from here ...
25295
25296 * util/grub.d/10_hurd.in: ... to here ...
25297 * util/grub.d/10_linux.in: ... and here.
25298
650e1c79 252992008-06-19 Robert Millan <rmh@aybabtu.com>
25300
fe987087 25301 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 25302 after it has been set by grub_machine_set_prefix().
25303
6ce63911 253042008-06-19 Robert Millan <rmh@aybabtu.com>
25305
25306 * commands/search.c (search_label, search_fs_uuid, search_file): Print
25307 search result when not saving to variable, not the other way around.
25308 When saving to variable, abort iteration as soon as a match is found.
25309
73940cec 253102008-06-19 Robert Millan <rmh@aybabtu.com>
25311
25312 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
25313 check for partition that provides /boot/grub. Its logic is flawed,
25314 as it prevents prepare_grub_to_access_device() from being called
25315 multiple times.
25316
3c62a39d 253172008-06-19 Robert Millan <rmh@aybabtu.com>
25318
25319 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
25320 "insmod" command directly when abstraction modules are needed,
fe987087 25321 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 25322 since it had already been processed).
25323
47395a42 253242008-06-19 Pavel Roskin <proski@gnu.org>
25325
25326 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
25327 changed. This is needed in case GRUB_LIBDIR changes.
25328 * conf/i386-ieee1275.rmk: Likewise.
25329 * conf/i386-linuxbios.rmk: Likewise.
25330 * conf/i386-pc.rmk: Likewise.
25331 * conf/powerpc-ieee1275.rmk: Likewise.
25332
a145ac2d 253332008-06-18 Pavel Roskin <proski@gnu.org>
25334
25335 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
25336 kernel_elf_symlist.c to symlist.c for consistency with other
25337 architectures. Update all users.
25338 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
25339
7847c51e 253402008-06-18 Robert Millan <rmh@aybabtu.com>
25341
25342 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
25343 it in prefix.
25344
25345 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
25346 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
25347 a RAID device, run setup() for all members independently on whether
25348 LVM abstraction is being used.
25349 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
25350 If grub-mkimage has set `*install_dos_part == -2', don't override this
25351 value.
25352 Perform *install_dos_part adjustments independently on whether
25353 we're embedding or not.
25354 Clarify error message when image is too big for embedding.
25355 Remove duplicate *install_dos_part stanza.
25356
b23e5644 253572008-06-17 Robert Millan <rmh@aybabtu.com>
25358
25359 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
25360 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
25361 variables.
25362 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
25363 values in grub_ofconsole_normal_color and
25364 grub_ofconsole_highlight_color (they're not directly related to
25365 background and foreground).
25366 (grub_ofconsole_setcolorstate): Extract background and foreground
25367 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
25368
0aac2f79 253692008-06-17 Robert Millan <rmh@aybabtu.com>
25370
25371 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
25372 /boot/grub for the check in last commit, not /boot (they could be
25373 different partitions).
25374
3cca7ef3 253752008-06-16 Robert Millan <rmh@aybabtu.com>
25376
25377 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
25378 asked to setup access for the same partition that provides /boot,
25379 don't bother using UUIDs since our root already has the value we
25380 want.
25381
347396d8 253822008-06-16 Robert Millan <rmh@aybabtu.com>
25383
25384 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
25385 I2O devices.
25386 Patch from Sven Mueller <sven@debian.org>.
25387
991477f8 253882008-06-16 Robert Millan <rmh@aybabtu.com>
25389
25390 * util/update-grub.in: Check for $EUID instead of $UID.
25391 Reported by Vincent Zweije.
25392
d31a32a1 253932008-06-16 Bean <bean123ch@gmail.com>
25394
fe987087 25395 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 25396 (grub_ext2_read_block): Likewise.
25397 (grub_ext2_read_inode): Likewise.
25398 (grub_ext2_mount): Likewise.
25399 (grub_ext2_close): Likewise.
25400 (grub_ext3_get_journal): Removed.
25401
fe987087 25402 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 25403 (grub_reiserfs_read_symlink): Likewise.
25404 (grub_reiserfs_mount): Likewise.
25405 (grub_reiserfs_open): Likewise.
25406 (grub_reiserfs_read): Likewise.
25407 (grub_reiserfs_close): Likewise.
25408 (grub_reiserfs_get_journal): Removed.
25409
25410 * fs/fshelp.c (grub_fshelp_read): Removed.
25411 (grub_fshelp_map_block): Likewise.
25412
25413 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
25414 (grub_fshelp_journal): Likewise.
25415 (grub_fshelp_read): Likewise.
25416 (grub_fshelp_map_block): Likewise.
25417
3540a760 254182008-06-16 Pavel Roskin <proski@gnu.org>
25419
25420 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
25421 floating point anymore.
25422 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
25423
95614c84 254242008-06-15 Pavel Roskin <proski@gnu.org>
25425
25426 * commands/ls.c (grub_ls_list_files): Use integer calculations
25427 for human readable format, avoid floating point use.
25428 * kern/misc.c (grub_ftoa): Remove.
25429 (grub_vsprintf): Remove floating point support.
25430
50465dd6 254312008-06-15 Robert Millan <rmh@aybabtu.com>
25432
fe6b695a 25433 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 25434 devices.
25435 Reported by Max Vozeler.
25436
a9207284 254372008-06-15 Robert Millan <rmh@aybabtu.com>
25438
25439 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
25440 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
25441 skipped later.
25442 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
25443 the beginning of the prefix.
25444
25445 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
25446 It is assumed that if we have a memdisk, grub-mkimage has set
25447 grub_prefix to include the "(memdisk)" drive in it.
25448
a7cbd45a 254492008-06-15 Robert Millan <rmh@aybabtu.com>
25450
25451 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
25452 Initialize keyboard controller after registering the terminal, so that
25453 grub_printf() can be called from grub_keyboard_controller_init().
25454
21cf716a 254552008-06-15 Robert Millan <rmh@aybabtu.com>
25456
25457 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
25458 extent-btree which is written as big endian on disk.
25459 Reported by Alain Greppin <al@chilibi.org>.
25460
23a64d8e 254612008-06-14 Robert Millan <rmh@aybabtu.com>
25462
25463 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
25464 * util/i386/pc/grub-install.in (modules): Likewise.
25465
d687651c 254662008-06-13 Pavel Roskin <proski@gnu.org>
25467
25468 * commands/ls.c (grub_ls_list_files): Fix format warnings.
25469
dfe9ddd4 254702008-06-13 Bean <bean123ch@gmail.com>
25471
25472 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
25473
25474 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
25475
25476 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
25477 to indicate sparse block.
25478
16ae7781 254792008-06-12 Pavel Roskin <proski@gnu.org>
25480
e6d1a308 25481 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
25482 number, grub_fshelp_read() does it for us.
25483
16ae7781 25484 * fs/fshelp.c (grub_fshelp_read): New function. Implement
25485 linear disk read with journal translation.
25486 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
25487 * include/grub/fshelp.h: Declare grub_fshelp_read().
25488
40fd3a2b 254892008-06-09 Pavel Roskin <proski@gnu.org>
25490
25491 * fs/minix.c (grub_minix_mount): Handle error reading
25492 superblock.
25493
f5679726 254942008-06-08 Robert Millan <rmh@aybabtu.com>
25495
25496 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
25497 don't append the RAID prefix afterwards.
25498 Reported by Clint Adams.
25499
ce525529 255002008-06-08 Robert Millan <rmh@aybabtu.com>
25501
25502 Based on description from Pavel:
25503 * kern/disk.c (grub_disk_check_range): Rename to ...
25504 (grub_disk_adjust_range): ... this. Add a comment explaining the
25505 tasks performed by this function.
25506
ad4936a0 255072008-06-08 Robert Millan <rmh@aybabtu.com>
25508
25509 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
25510 `num_serial' (for consistency with other variables).
25511 (struct grub_ntfs_data): Add `uuid' member.
25512 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
25513 (grub_ntfs_uuid): New function.
25514 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
25515
dc20b0f9 255162008-06-07 Pavel Roskin <proski@gnu.org>
25517
25518 * util/biosdisk.c (open_device): Revert last change to the
25519 function, it broke installation. The sector needs to be
25520 different dependent on which device is opened.
25521
c5e3cfba 255222008-06-06 Robert Millan <rmh@aybabtu.com>
25523
25524 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
25525 rest of GRUB, and breakage doesn't happen if its value were modified.
25526
25527 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25528 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
25529 a constant (same value).
25530 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
25531 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
25532
26a1f8c4 255332008-06-06 Robert Millan <rmh@aybabtu.com>
25534
25535 * util/biosdisk.c (open_device): Do not modify sector offset when
25536 accessing a partition. kern/disk.c already handles this for us.
25537
25d6b327 255382008-06-06 Robert Millan <rmh@aybabtu.com>
25539
25540 * util/grub-emu.c (grub_machine_init): Move code in this function from
25541 here ...
25542 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
25543 segfault in case grub_printf() is called).
25544
25545 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
25546 grub_probe. Update all users not to explicitly add it again.
25547 (grub_device): New variable; contains corresponding device for grubdir.
25548 (fs_module, partmap_module, devabstraction_module): Pass
25549 `--device ${grub_device}' to grub_probe to avoid traversing /dev
25550 every time.
25551
9ece62fb 255522008-06-05 Robert Millan <rmh@aybabtu.com>
25553
25554 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
25555 is found, print it (same layout as with labels).
25556
1ad36d37 255572008-06-04 Robert Millan <rmh@aybabtu.com>
25558
25559 * util/biosdisk.c (get_drive): Rename to ...
25560 (find_grub_drive): ... this. Update all users.
25561
25562 (get_os_disk): Rename to ...
25563 (convert_system_partition_to_system_disk): ... this. Update all users.
25564
25565 (find_drive): Rename to ...
25566 (find_system_device): ... this. Update all users.
25567
e6a30859 255682008-06-04 Robert Millan <rmh@aybabtu.com>
25569
25570 * util/biosdisk.c (get_os_disk): Handle IDA devices.
25571 * util/grub-mkdevicemap.c (get_mmc_disk_name)
25572 (make_device_map): Likewise.
25573
00c108a4 255742008-06-01 Robert Millan <rmh@aybabtu.com>
25575
25576 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
25577 before dereferencing it.
25578
25579 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
25580 union with fat12/fat16-specific ones. Add some new fields, including
25581 `num_serial' for both versions.
25582 (struct grub_fat_data): Add `uuid' member.
25583 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
25584 names. Initialize `data->uuid' using `num_serial'.
25585 (grub_fat_uuid): New function.
25586 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
25587
25588 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
25589 (grub_reiserfs_uuid): New function.
25590 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
25591 member.
25592
25593 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
25594 (grub_xfs_uuid): New function.
25595 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
25596
1385c5bb 255972008-06-01 Robert Millan <rmh@aybabtu.com>
25598
25599 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
25600 code that is backward compatible with pre-uuid search command.
25601
c682dfd7 256022008-05-31 Robert Millan <rmh@aybabtu.com>
25603
25604 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
25605 floppies after everything else, to ensure floppy drive isn't accessed
25606 unnecessarily (patch from Bean).
25607
b7db5d47 256082008-05-31 Robert Millan <rmh@aybabtu.com>
25609
25610 * commands/search.c (search_label, search_fs_uuid, search_file): Do
25611 not print device names when we were asked to set a variable.
25612
6e037aa9 256132008-05-31 Robert Millan <rmh@aybabtu.com>
25614
25615 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
25616 using "cursor-on" and "cursor-off" commands (understood at least by
25617 the Open Firmware flavour on OLPC).
25618
41305bc8 256192008-05-31 Michael Gorven <michael@gorven.za.net>
25620
25621 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
25622 on and off sequences.
25623
69ba137e 256242008-05-31 Robert Millan <rmh@aybabtu.com>
25625
25626 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
25627 * util/update-grub.in: Likewise.
25628
520ae21b 256292008-05-30 Pavel Roskin <proski@gnu.org>
25630
25631 * util/biosdisk.c (linux_find_partition): Simplify logic and
25632 make the code more universal. Keep special processing for
25633 devfs, but use a simple rule for all other devices. If the
25634 device ends with a number, append 'p' and the partition number.
25635 Otherwise, append only the partition number.
25636
5786569b 256372008-05-30 Robert Millan <rmh@aybabtu.com>
25638
25639 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
25640 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
25641 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
25642 the `root' parameter to Linux.
25643
51500452 256442008-05-30 Robert Millan <rmh@aybabtu.com>
25645
25646 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
25647 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
25648 --fs_uuid with --fs-uuid.
25649 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
25650 all filesystems support them).
25651
811d3878 256522008-05-30 Robert Millan <rmh@aybabtu.com>
25653
25654 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 25655 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 25656
cab63c95 256572008-05-30 Robert Millan <rmh@aybabtu.com>
25658
25659 * util/grub.d/00_header.in: Remove obsolete comment referencing
25660 convert_system_path_to_grub_path().
25661 * util/update-grub.in: Likewise.
25662 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
25663 (convert_system_path_to_grub_path): Add a warning message explaining
25664 that this function is deprecated. Rely on is_path_readable_by_grub()
25665 for the readability checks.
25666 (font_path): Use is_path_readable_by_grub() for the readability
25667 check rather than convert_system_path_to_grub_path().
25668
972e2f7a 256692008-05-30 Robert Millan <rmh@aybabtu.com>
25670
25671 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
25672 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
25673 converting it first.
25674 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
25675 grub.cfg for access to font file, and afterwards call it again to set
25676 the root device.
25677
62191274 256782008-05-30 Robert Millan <rmh@aybabtu.com>
25679
25680 * commands/search.c (options): Add --fs_uuid option.
25681 (search_fs_uuid): New function.
25682 (grub_cmd_search): Fix --set argument passing.
25683 Use search_fs_uuid() when requested via --fs_uuid.
25684 (grub_search_init): Update help message.
25685 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
25686 and redeclare it as an array of 16-bit words.
25687 (grub_ext2_uuid): New function.
25688 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
25689 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
25690 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
25691 (GRUB_DEVICE_BOOT_UUID): New variables.
25692 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
25693 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
25694 whenever possible.
25695 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
25696 just assume `root' variable has the right value.
25697 * util/grub.d/10_linux.in: Likewise.
25698 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
25699 via PRINT_FS_UUID.
25700 (main): Recognise `-t fs_uuid' argument.
25701
01b73ec8 257022008-05-30 Robert Millan <rmh@aybabtu.com>
25703
25704 * util/biosdisk.c (map): Redefine structure to hold information
25705 about GRUB drive name.
fe6b695a 25706 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 25707 drive names.
25708 (call_hook): Remove.
25709 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
25710 member. Assume drive has partitions.
25711 (grub_util_biosdisk_open): Access device names via `.device' struct
25712 member.
25713 (open_device): Likewise.
25714 (find_drive): Likewise.
25715 (read_device_map): Adjust map[] usage to match the new struct
25716 definition. Don't check for duplicates (still possible, but not cheap
25717 anymore).
25718 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
25719 (make_device_name): Remove assumption of BIOS-like drive names.
25720
22f16596 257212008-05-30 Pavel Roskin <proski@gnu.org>
25722
25723 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
25724 compiling execute.c doesn't need grub_script.tab.h anymore.
25725 (normal/command.c_DEPENDENCIES): Likewise.
25726 (normal/function.c_DEPENDENCIES): Likewise.
25727 * conf/i386-ieee1275.rmk: Likewise.
25728 * conf/i386-linuxbios.rmk: Likewise.
25729 * conf/i386-pc.rmk: Likewise.
25730 * conf/powerpc-ieee1275.rmk: Likewise.
25731 * conf/sparc64-ieee1275.rmk: Likewise.
25732
528ad8f2 257332008-05-29 Pavel Roskin <proski@gnu.org>
25734
d1dff95d 25735 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
25736 when scanning metadata for volume group name.
25737
528ad8f2 25738 * include/grub/script.h: Don't include grub_script.tab.h. It's
25739 a generated file, which may only be included from the files with
25740 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
25741 use union YYSTYPE, as the later allows forward declaration.
25742 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
25743
47248e08 257442008-05-29 Robert Millan <rmh@aybabtu.com>
25745
25746 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
25747 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
25748 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
25749 (grub_console_checkkey): Add grub_dprintf() call to report unknown
25750 scan codes.
25751
ee632529 257522008-05-29 Robert Millan <rmh@aybabtu.com>
25753
25754 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
25755 control key combinations.
25756
eee96e08 257572008-05-29 Robert Millan <rmh@aybabtu.com>
25758
25759 * util/powerpc/ieee1275/grub-install.in: Move from here ...
25760 * util/ieee1275/grub-install.in: ... to here.
25761 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
25762 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
25763 (grub_install_SOURCES): Likewise.
25764
da9a6a94 257652008-05-29 Robert Millan <rmh@aybabtu.com>
25766
25767 * fs/affs.c: Update copyright year.
25768 * fs/ext2.c: Likewise.
25769 * fs/fshelp.c: Likewise.
25770 * fs/hfsplus.c: Likewise.
25771 * fs/ntfs.c: Likewise.
25772 * fs/xfs.c: Likewise.
25773 * include/grub/fshelp.h: Likewise.
25774 * util/grub-mkdevicemap.c: Likewise.
25775
12e65f3a 257762008-05-28 Robert Millan <rmh@aybabtu.com>
25777
25778 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
25779 might need to be fatfs to support some firmware implementations
25780 (e.g. OFW or EFI).
25781
23023641 257822008-05-28 Robert Millan <rmh@aybabtu.com>
25783
25784 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
25785 devices.
25786 * util/grub-mkdevicemap.c (get_mmc_disk_name)
25787 (make_device_map): Likewise.
25788
887d2619 257892008-05-20 Bean <bean123ch@gmail.com>
25790
25791 * fs/fshelp.c (grub_fshelp_map_block): New function.
25792 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
25793 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
25794
25795 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
25796 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
25797 (grub_fshelp_journal): New structure.
25798 (grub_fshelp_map_block): New function prototype.
25799 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
25800 (grub_fshelp_map_block): Likewise.
25801
25802 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
25803 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
25804 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
25805 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
25806 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
25807 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
25808 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
25809 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
25810 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
25811 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
25812 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
25813 (grub_ext2_sblock): New members for journal support.
25814 (grub_ext3_journal_header): New structure.
25815 (grub_ext3_journal_revoke_header): Likewise.
25816 (grub_ext3_journal_block_tag): Likewise.
25817 (grub_ext3_journal_sblock): Likewise.
25818 (grub_fshelp_node): New members logfile and journal.
25819 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
25820 grub_fshelp_map_block to get real block number.
25821 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
25822 number.
25823 (grub_ext2_read_inode): Likewise.
25824 (grub_ext3_get_journal): New function.
25825 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
25826 (grub_ext2_close): Release memory used by journal.
25827
25828 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
25829 (REISERFS_MAGIC_DESC_BLOCK): New macro.
25830 (grub_reiserfs_transaction_header): Renamed to
25831 grub_reiserfs_description_block, replace field data with real_blocks.
25832 (grub_reiserfs_commit_block): New structure.
25833 (grub_reiserfs_data): New member journal.
25834 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
25835 number.
25836 (grub_reiserfs_read_symlink): Likewise.
25837 (grub_reiserfs_iterate_dir): Likewise.
25838 (grub_reiserfs_open): Likewise.
25839 (grub_reiserfs_read): Likewise.
25840 (grub_reiserfs_get_journal): New function.
25841 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
25842 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
25843 using grub_reiserfs_get_journal.
25844 (grub_reiserfs_close): Release memory used by journal.
25845
25846 * fs/affs.c (grub_affs_read_block): Change block type to
25847 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
25848
25849 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
25850
25851 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
25852
25853 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
25854
25855 * fs/udf.c (grub_udf_read_block): Change block type to
25856 grub_disk_addr_t. Use type cast to avoid warning.
25857
25858 * fs/xfs.c (grub_xfs_read_block): Likewise.
25859
b7c6bed5 258602008-05-16 Christian Franke <franke@computer.org>
25861
25862 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
25863 to ensure that break with ESC will always work.
25864 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
25865 Remove ESC from keyboard queue.
25866
eedf167f 258672008-05-16 Christian Franke <franke@computer.org>
25868
25869 * util/biosdisk.c: [__CYGWIN__] Add includes.
25870 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
25871 (get_os_disk): Move variable declarations to OS specific
25872 parts to avoid warning.
25873 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
25874 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
25875 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
25876 Cygwin.
25877 * util/getroot.c: [__CYGWIN__] Add includes.
25878 (strip_extra_slashes): Fix "/" case.
25879 [__CYGWIN__] (get_win32_path): New function.
25880 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
25881 [__CYGWIN__] (find_root_device): Disable.
25882 [__CYGWIN__] (get_bootsec_serial): New function.
25883 [__CYGWIN__] (find_cygwin_root_device): Likewise.
25884 [__linux__] (grub_guess_root_device): Add early returns to simplify
25885 structure.
25886 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
25887 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
25888 check for Linux only.
25889
a079699e 258902008-05-15 Bean <bean123ch@gmail.com>
25891
25892 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
25893 keyboard hang problem in apple's intel mac.
25894
1cf4059a 258952008-05-09 Robert Millan <rmh@aybabtu.com>
25896
25897 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
25898 devices.
25899 * util/grub-mkdevicemap.c (get_virtio_disk_name)
25900 (make_device_map): Likewise.
25901 Reported by Aurelien Jarno <aurel32@debian.org>
25902
ed759390 259032008-05-07 Ian Campbell <ijc@hellion.org.uk>
25904
25905 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
25906 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
25907 (make_device_map): Output entries for xvd type disks.
25908
b56c4eaa 259092008-05-07 Robert Millan <rmh@aybabtu.com>
25910
25911 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
25912 devices.
25913 * util/grub-mkdevicemap.c (get_cciss_disk_name)
25914 (make_device_map): Likewise.
25915 Reported by Roland Dreier <rdreier@cisco.com>
25916
7f8866ed 259172008-05-07 Robert Millan <rmh@aybabtu.com>
25918
25919 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
25920 grub_strstr() call. Correct a few mistakes in failure path handling.
25921
b0346e0f 259222008-05-06 Robert Millan <rmh@aybabtu.com>
25923
25924 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
25925 Do not print a trailing slash (therefore, the root directory is an
25926 empty string).
25927 (convert_system_path_to_grub_path): Do not remove trailing slash
25928 from make_system_path_relative_to_its_root() output.
25929
25930 * util/i386/pc/grub-install.in: Add trailing slash to output from
25931 make_system_path_relative_to_its_root().
25932
6cf12cbd 259332008-05-06 Robert Millan <rmh@aybabtu.com>
25934
25935 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
25936 ensures that output lines aren't intermangled with those sent to
25937 stderr (via grub_util_info()).
25938 * util/grub-probe.c (grub_refresh): Likewise.
25939 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
25940
0fbb3117 259412008-05-05 Christian Franke <franke@computer.org>
25942
25943 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
25944 Add Cygwin device names.
25945 (get_ide_disk_name) [__CYGWIN__]: Likewise.
25946 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
25947 (check_device): Return error instead of success on empty name.
25948 (make_device_map): Move label inside linux specific code to
25949 prevent compiler warning.
25950
8124cdb7 259512008-04-30 Robert Millan <rmh@aybabtu.com>
25952
25953 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
25954 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
25955 first boot option.
25956 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
25957
094c01d0 259582008-04-29 Robert Millan <rmh@aybabtu.com>
25959
25960 * docs/grub.cfg: New file (example GRUB configuration).
25961
f4b1fc02 259622008-04-26 Robert Millan <rmh@aybabtu.com>
25963
329ce2a5 25964 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
25965 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
25966 and `disk/ieee1275/nand.c'.
f4b1fc02 25967
25f16ec1 259682008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 25969
25f16ec1 25970 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
25971 i386-linuxbios.
25972
25973 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
25974 change the buffer size to 4096 for cdrom device.
25975
25976 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
25977 and nand.mod.
25978 (_linux_mod_SOURCES): New variable.
25979 (_linux_mod_CFLAGS): Likewise.
25980 (_linux_mod_LDFLAGS): Likewise.
25981 (linux_mod_SOURCES): Likewise.
25982 (linux_mod_CFLAGS): Likewise.
25983 (linux_mod_LDFLAGS): Likewise.
25984 (nand_mod_SOURCES): Likewise.
25985 (nand_mod_CFLAGS): Likewise.
25986 (nand_mod_LDFLAGS): Likewise.
25987
25988 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
25989 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
25990 type property. (nand device in olpc don't have this property)
25991
25992 * include/grub/disk.h (grub_disk_dev_id): New macro
25993 GRUB_DISK_DEVICE_NAND_ID.
25994
25995 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
25996 function prototype.
25997 (grub_rescue_cmd_initrd): Likewise.
25998
25999 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
26000 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
26001 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 26002
25f16ec1 26003 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
26004 GRUB_MACHINE_IEEE1275 is defined.
26005
26006 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
26007 Use NESTED_FUNC_ATTR attribute on the hook parameter.
26008
26009 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
26010 on nested function heap_init.
26011 (grub_upper_mem): New variable for i386-ieee1275.
26012 (grub_get_extended_memory): New function for i386-ieee1275.
26013 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
26014
26015 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
26016 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
26017 property.
f19dbdb7 26018
25f16ec1 26019 * loader/i386/ieee1275/linux.c: New file.
26020
26021 * loader/i386/ieee1275/linux_normal.c: New file.
26022
26023 * disk/ieee1275/nand.c: New file.
26024
e89d61e9 260252008-04-18 Thomas Schwinge <tschwinge@gnu.org>
26026
26027 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
26028 value.
26029 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
26030
602566f6 260312008-04-18 Robert Millan <rmh@aybabtu.com>
26032
26033 Restructures early code path on ieee1275 to unify grub_main() as
26034 the first C function that is executed in every platform.
26035
26036 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
26037 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
26038 cmain().
26039 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
26040 * kern/ieee1275/cmain.c (cmain): Rename to ...
26041 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
26042 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
26043 at the beginning.
26044
57490c2b 260452008-04-18 Robert Millan <rmh@aybabtu.com>
26046
26047 * util/update-grub.in: Fix syntax error when setting
26048 `GRUB_PRELOAD_MODULES'.
26049 Reported by Stephane Chazelas <stephane@artesyncp.com>
26050
1977517d 260512008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
26052
26053 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
26054 section into account, newer toolchains generate unique build ids
26055 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 26056 we want build ids to be preserved
1977517d 26057 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
26058 far from other sections don't cause the raw binary images grow
26059 size
26060
bfb1f1a2 260612008-04-15 Robert Millan <rmh@aybabtu.com>
26062
26063 * disk/lvm.c: Update copyright year.
26064 * kern/misc.c: Likewise.
26065
01979850 260662008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
26067
26068 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 26069 there is no memory left for physical volume name.
01979850 26070
0a1150e2 260712008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
26072
26073 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
26074 volume name mapping to support bigger than 9 character names properly.
26075
82ead3fe 260762008-04-13 Robert Millan <rmh@aybabtu.com>
26077
26078 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
26079 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
26080
e54a72f5 260812008-04-13 Christian Franke <franke@computer.org>
26082
26083 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
26084 to create a floppy emulation boot CD when non emulation mode
26085 does not work.
26086 Enable Joliet CD filesystem extension.
26087
9fe86034 260882008-04-13 Robert Millan <rmh@aybabtu.com>
26089
26090 * kern/misc.c (grub_strncat): Fix off-by-one error.
26091 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
26092
26093 * kern/env.c (grub_env_context_close): Clear current context, not
26094 previous one.
26095 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
26096
26097 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
26098
7ceeee39 260992008-04-13 Robert Millan <rmh@aybabtu.com>
26100
26101 Improve robustness when handling LVM.
26102
26103 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 26104 (and leave `*p' unmodified).
7ceeee39 26105 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
26106 through it.
26107 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
26108 iterating through it.
26109 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
26110 through it.
fe6b695a 26111 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 26112 when due) on each grub_lvm_getvalue() or grub_strstr() call.
26113 Don't assume `vg->pvs != NULL' when iterating through it.
26114
58cd3d85 261152008-04-13 Robert Millan <rmh@aybabtu.com>
26116
26117 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
26118 * genmk.rb (partmap): New variable.
26119 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
26120 (#{partmap}): New target rule.
26121 * genpartmaplist.sh: New file.
26122 * Makefile.in (pkglib_DATA): Add partmap.lst.
26123 (partmap.lst): New target rule.
26124 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
26125 modules (including all partition maps), instead of preloading them.
26126
78b51059 261272007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
26128
26129 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
26130 `linux-boot-prober' (if installed) to detect other operating
26131 systems which are installed on the computer and add them to
26132 the boot menu.
26133 * conf/common.rmk: Build and install 30_os-prober.
26134
a91627b4 261352008-04-12 Robert Millan <rmh@aybabtu.com>
26136
26137 * kern/powerpc/ieee1275/init.c: Move from here ...
26138 * kern/ieee1275/init.c: ... to here. Update all users.
26139
26140 * kern/powerpc/ieee1275/cmain.c: Move from here ...
26141 * kern/ieee1275/cmain.c: ... to here. Update all users.
26142
26143 * kern/powerpc/ieee1275/openfw.c: Move from here ...
26144 * kern/ieee1275/openfw.c: ... to here. Update all users.
26145
26146 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
26147 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
26148
322562ea 261492008-04-10 Pavel Roskin <proski@gnu.org>
26150
26151 * configure.ac: Always use "_cv_" in cache variables for
26152 compatibility with Autoconf 2.62.
26153
a02a73c5 261542008-04-07 Robert Millan <rmh@aybabtu.com>
26155
26156 Revert grub/machine/init.h addition by Pavel (since it breaks on
26157 i386-ieee1275 and others):
26158 * util/i386/pc/misc.c: Remove grub/machine/init.h.
26159 * util/powerpc/ieee1275/misc.c: Likewise.
26160
25c024b1 261612008-04-07 Robert Millan <rmh@aybabtu.com>
26162
26163 * util/grub-probe.c (probe): Improve error message.
26164
3cbd2f98 261652008-04-07 Robert Millan <rmh@aybabtu.com>
26166
26167 * util/biosdisk.c (read_device_map): Skip devices that don't exist
26168 (this prevents the presence of a bogus entry from ruining the whole
26169 thing).
26170
87a297bf 261712008-04-06 Pavel Roskin <proski@gnu.org>
26172
36747a62 26173 * util/biosdisk.c: Include grub/util/biosdisk.h.
26174 * util/grub-fstest.c (execute_command): Make static.
26175 * util/grub-mkdevicemap.c (check_device): Likewise.
26176 * util/i386/pc/misc.c: Include grub/machine/init.h.
26177 * util/powerpc/ieee1275/misc.c: Likewise.
26178 * util/lvm.c: Include grub/util/lvm.h.
26179 * util/misc.c: Include grub/kernel.h, grub/misc.h and
26180 grub/cache.h.
26181 * util/raid.c: Include grub/util/raid.h.
26182 (grub_util_getdiskname): Make static.
26183
87a297bf 26184 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
26185 grub_hostfs_fini(), as they are called from grub_init_all() and
26186 grub_fini_all() respectively. This fixes an infinite loop in
26187 grub-fstest due to double registration of hostfs.
26188 Reported by Christian Franke <Christian.Franke@t-online.de>
26189
f6ce7629 261902008-04-05 Pavel Roskin <proski@gnu.org>
26191
26192 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
26193 all 8 functions. Otherwise, probe function 0 only.
26194
070e49e4 261952008-04-04 Pavel Roskin <proski@gnu.org>
26196
8b088a4c 26197 * commands/lspci.c (grub_lspci_iter): Print the bus number
26198 correctly.
26199
4f657021 26200 * commands/lspci.c (grub_pci_classes): Fix typos.
26201 (grub_lspci_iter): Don't print func twice. Print vendor ID
26202 before device ID, as it's normally done.
26203
070e49e4 26204 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
26205 Fix signedness warnings.
26206 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
26207 Likewise.
26208 * util/ieee1275/get_disk_name.c: Include config.h so that
26209 _GNU_SOURCE is defined and getline() is declared. Mark an
26210 unused argument as such. Fix a signedness warning.
26211
ba7328dc 262122008-04-02 Pavel Roskin <proski@gnu.org>
26213
26887f22 26214 * genkernsyms.sh.in: Use more robust assignments for CC and
26215 srcdir. Quote srcdir.
26216 * gensymlist.sh.in: Likewise. Assert at the compile time that
26217 the symbol table is not empty.
26218
ba7328dc 26219 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
26220 * fs/cpio.c (grub_cpio_read): Likewise.
26221
0f582c6b 262222008-04-01 Pavel Roskin <proski@gnu.org>
26223
4b6e1995 26224 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
26225 * disk/host.c (grub_host_open): Likewise.
26226 * disk/loopback.c (grub_loopback_open): Likewise.
26227 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
26228 disk->id as in disk/host.c, not a multi-character constant.
26229
828a2768 26230 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
26231 later is obsolete, potentially dangerous and sets a bad example.
26232 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
26233 * util/misc.c (grub_util_get_image_size): Likewise.
26234
2bb4fb47 26235 * disk/loopback.c (options): Improve help for "--partitions".
26236
0f582c6b 26237 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
26238 options to align them with the short options, e.g. "echo -e".
26239
a33224e0 262402008-03-31 Bean <bean123ch@gmail.com>
26241
26242 * video/reader/png.c (grub_png_data): New member is_16bit and
26243 image_data.
26244 (grub_png_decode_image_header): Detect 16 bit png image.
26245 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
26246 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
26247 (grub_video_reader_png): Release memory occupied by image_data.
26248
26249 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
26250 4096 bytes.
26251 (grub_nfs_mount): Skip the test for sector per cluster.
26252
26253 * include/grub/ntfs.h (MAX_SPC): Removed.
26254
86cb4f54 262552008-03-31 Bean <bean123ch@gmail.com>
26256
26257 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
26258 (grub_probe_SOURCES): Add fs/afs.c.
26259 (grub_fstest_SOURCES): Likewise.
26260 (afs_mod_SOURCES): New variable.
26261 (afs_mod_CFLAGS): Likewise.
26262 (afs_mod_LDFLAGS): Likewise.
26263
26264 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
26265 (grub_emu_SOURCES): Likewise.
26266
26267 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26268
26269 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26270
26271 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
26272
26273 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26274
26275 * fs/afs.c: New file.
26276
17c74c21 262772008-03-30 Pavel Roskin <proski@gnu.org>
26278
4cb68e89 26279 * disk/host.c: Include grub/misc.h to fix a warning.
26280 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
26281 warnings about implicit declarations.
26282
8790bb04 26283 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
26284 variable.
26285 * include/grub/i386/loader.h: Change declaration of
26286 grub_linux_boot() to match what grub_loader_set() expects.
26287 * util/getroot.c (grub_guess_root_device): Return const char* to
26288 fix a warning.
26289 * util/grub-probe.c (probe): Fix a warning about uninitialized
26290 abstraction_name variable.
26291 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
26292 second argument as unused to fix a warning.
26293
9a3f3296 26294 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
26295 missing grub_error() call.
26296
0ecef90d 26297 * util/update-grub_lib.in: Define datarootdir, since Autoconf
26298 2.60 and newer uses it to define datadir.
26299
0bf6d401 26300 * commands/sleep.c: Fix warning about implicit declaration.
26301 * disk/memdisk.c: Likewise.
26302 * loader/aout.c: Likewise.
26303 * loader/i386/bsd_normal.c: Likewise.
26304 * util/grub-probe.c: Likewise.
26305
7cdacf97 26306 * commands/i386/cpuid.c (has_longmode): Make static.
26307 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
26308 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
26309
17c74c21 26310 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
26311 GDT. This is more robust, as %ds can change.
26312 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
26313 calling real_to_prot().
26314 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
26315
80a3e68b 263162008-03-28 Pavel Roskin <proski@gnu.org>
26317
26318 * kern/i386/pc/startup.S: Assert that uncompressed functions
26319 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
26320 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
26321 code, as they push parts of the code (error handlers) beyond
26322 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
26323 code as correctness and size.
26324
77bcd272 263252008-03-28 Pavel Roskin <proski@gnu.org>
26326
26327 * kern/i386/pc/startup.S
26328 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
26329 data block address to the real mode, keep offset minimal. This
26330 works around a bug in AWARD BIOS on old Athlon systems, which
26331 makes CD detection hang.
26332
c5dfd43b 263332008-03-26 Pavel Roskin <proski@gnu.org>
26334
26335 * normal/color.c (grub_parse_color_name_pair): Make `name' a
26336 const.
26337 * include/grub/normal.h: Add grub_parse_color_name_pair()
26338 declaration.
26339
bf962df2 263402008-03-24 Bean <bean123ch@gmail.com>
26341
26342 * disk/i386/pc/biosdisk.c (cd_start): Removed.
26343 (cd_count): Removed.
26344 (cd_drive): New variable.
26345 (grub_biosdisk_get_drive): Don't check for (cdN) device.
26346 (grub_biosdisk_call_hook): Likewise.
26347 (grub_biosdisk_iterate): Change cdrom detection method.
26348 (grub_biosdisk_open): Replace cd_start with cd_drive.
26349 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
26350 detect cdrom device.
26351
26352 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
26353 Removed.
26354 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
26355 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
26356 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
26357 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
26358 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
26359 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
26360 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
26361 (grub_biosdisk_cdrp): New structure.
26362 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
26363
26364 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
26365
26366 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
26367 device.
26368
26369 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
26370 New function.
26371
68e7fc7a 263722008-03-20 Robert Millan <rmh@aybabtu.com>
26373
26374 Remove 2 TiB limit in ata.mod.
26375 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
26376 (grub_ata_dumpinfo): Print sector count with 0x%llx.
26377 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
26378 grub_uint64_t instead of grub_uint32_t.
26379
38ad2cf5 263802008-03-05 Bean <bean123ch@gmail.com>
26381
26382 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
26383 (grub_multiboot): Set boot device.
26384
26385 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
26386
2b89344e 263872008-03-02 Bean <bean123ch@gmail.com>
26388
26389 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
26390 symlink_buffer.
26391
87a95d1f 263922008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
26393
26394 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
26395 texinfo.tex.
26396
26397 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
26398 modified.
26399
26400 * docs/fdl.texi: New file.
f19dbdb7 26401
87a95d1f 26402 * docs/mdate-sh: New file. Copied from gnulib.
26403 * docs/texinfo.tex: Likewise.
26404
26405 * config.guess: Updated from gnulib.
26406 * install-sh: Likewise.
26407
7dc15d8e 264082008-02-28 Robert Millan <rmh@aybabtu.com>
26409
26410 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
26411 (aout_mod_SOURCES): New variable.
26412 (aout_mod_CFLAGS): Likewise.
26413 (aout_mod_LDFLAGS): Likewise.
26414
26415 * conf/i386-ieee1275.rmk: Likewise.
26416
b00ab696 264172008-02-28 Robert Millan <rmh@aybabtu.com>
26418
26419 * util/update-grub.in: Reorganise terminal validity check. Accept
26420 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
26421 Based on suggestion by Franklin PIAT.
26422
79ca2d78 264232008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
26424
26425 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
26426 function.
26427 * util/getroot.c (grub_util_check_block_device): New function that
26428 returns the given argument if it is a block device and returns NULL else.
26429 * util/grub-probe.c (argument_is_device): New variable.
26430 (probe): Promote device_name from a variable to an argument. Receive
26431 device_name from grub_util_check_block_device() if path is NULL and from
26432 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 26433 (options): Introduce new parameter '-d, --device'.
79ca2d78 26434 (main): Add description of the new parameter to the help screen.
26435 Rename path variable to argument. Set argument_is_device if the '-d'
26436 option is given. Pass argument to probe() depending on
26437 argument_is_device.
26438
0d16e571 264392008-02-24 Bean <bean123ch@gmail.com>
26440
26441 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
26442 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
26443 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
26444 (GRUB_ISO9660_VOLDESC_PART): Likewise.
26445 (GRUB_ISO9660_VOLDESC_END): Likewise.
26446 (grub_iso9660_primary_voldesc): New member escape.
26447 (grub_iso9660_data): New member joliet.
26448 (grub_iso9660_convert_string): New function.
26449 (grub_iso9660_mount): Detect joliet extension.
26450 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
26451 (grub_iso9660_iso9660_label): Likewise.
26452
26453 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
26454 (grub_setup_SOURCES): Add fs/udf.c.
26455 (grub_fstest_SOURCES): Likewise.
26456 (udf_mod_SOURCES): New variable.
26457 (udf_mod_CFLAGS): Likewise.
26458 (udf_mod_LDFLAGS): Likewise.
26459
26460 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
26461 (grub_emu_SOURCES): Likewise.
26462
26463 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26464
26465 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26466
26467 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
26468
26469 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26470
26471 * fs/udf.c: New file.
26472
8a594a17 264732008-02-24 Robert Millan <rmh@aybabtu.com>
26474
26475 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
26476 (normal/lexer.c_DEPENDENCIES): New variables.
26477 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
26478 (normal/lexer.c_DEPENDENCIES): Likewise.
26479 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
26480 (normal/lexer.c_DEPENDENCIES): Likewise.
26481 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
26482 (normal/lexer.c_DEPENDENCIES): Likewise.
26483 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
26484 (normal/lexer.c_DEPENDENCIES): Likewise.
26485 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
26486 (normal/lexer.c_DEPENDENCIES): Likewise.
26487
2dc33c03 264882008-02-23 Robert Millan <rmh@aybabtu.com>
26489
26490 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
26491 since they were intended to be in hex. This didn't break previously
26492 because of a bug in gpt_partition_map_iterate() (see below).
26493
26494 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
26495 when checking the validity of GPT header.
26496 Remove `partno', since it always provides the same information as `i'.
26497
f6f4cfb0 264982008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
26499
26500 * include/grub/efi/time.h: Fix a wrong comment.
26501
79ff665f 265022008-02-19 Pavel Roskin <proski@gnu.org>
26503
26504 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
26505 message.
26506
d38e24c2 265072008-02-19 Bean <bean123ch@gmail.com>
26508
26509 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
26510 (aout_mod_SOURCES): New variable.
26511 (aout_mod_CFLAGS): Likewise.
26512 (aout_mod_LDFLAGS): Likewise.
26513 (_bsd_mod_SOURCES): New variable.
26514 (_bsd_mod_CFLAGS): Likewise.
26515 (_bsd_mod_LDFLAGS): Likewise.
26516 (bsd_mod_SOURCES): New variable.
26517 (bsd_mod_CFLAGS): Likewise.
26518 (bsd_mod_LDFLAGS): Likewise.
26519
26520 * include/grub/aout.h: New file.
26521
26522 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
26523
26524 * include/grub/i386/bsd.h: New file.
26525
26526 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
26527 to make it public.
26528
26529 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
26530 function is called, so that it's possible to change it inside the hook.
26531 (grub_elf64_load): Likewise.
26532 (grub_elf_file): Don't close the file if elf header is not found.
26533 (grub_elf_close): Close the file if grub_elf_file fails (The new
26534 grub_elf_file won't close it).
26535 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
26536 (grub_elf64_size): Likewise.
26537
26538 * kern/i386/loader.S (grub_unix_real_boot): New function.
26539
26540 * loader/aout.c: New file.
26541
26542 * loader/i386/bsd.c: New file.
26543
26544 * loader/i386/bsd_normal.c: New file.
26545
26546 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
26547
26548 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 26549 can test other formats.
d38e24c2 26550
b93bdb0f 265512008-02-19 Robert Millan <rmh@aybabtu.com>
26552
26553 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
26554 (grub_gpt_partition_type_empty): Redefine with macro from
26555 `<grub/gpt_partition.h>'.
26556 (gpt_partition_map_iterate): Adjust partition type comparison.
26557
26558 Export `entry' as partmap-specific `part.data' struct.
26559 (grub_gpt_header, grub_gpt_partentry): Move from here ...
26560
26561 * include/grub/gpt_partition.h (grub_gpt_header)
26562 (grub_gpt_partentry): ... to here (new file).
26563
26564 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
26565
26566 (grub_gpt_partition_type_bios_boot): New const variable, defined
26567 with macro from `<grub/gpt_partition.h>'.
26568
26569 (setup): Replace `first_start' with `embed_region', which keeps
26570 track of the embed region (and is partmap-agnostic).
26571
26572 Replace find_first_partition_start() with find_usable_region(),
26573 which finds a usable region for embedding using partmap-specific
26574 knowledge (supports PC/MSDOS and GPT).
26575
26576 Fix all assumptions that the embed region start at sector 1, using
26577 `embed_region.start' from now on. Similarly, use `embed_region.end'
26578 rather than `first_start' to calculate available size.
26579
26580 In grub_util_info() message, replace "into after the MBR" with an
26581 indication of the specific sector our embed region starts at.
26582
66cb40f6 265832008-02-19 Robert Millan <rmh@aybabtu.com>
26584
26585 * DISTLIST: Replace `commands/ieee1275/halt.c' and
26586 `commands/ieee1275/reboot.c' with `commands/halt.c' and
26587 `commands/reboot.c'.
26588 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
26589 (halt_mod_SOURCES): Likewise.
26590 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
26591 (halt_mod_SOURCES): Likewise.
26592
b7202015 265932008-02-17 Christian Franke <franke@computer.org>
26594
26595 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
26596
32b0fc49 265972008-02-17 Robert Millan <rmh@aybabtu.com>
26598
26599 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
26600 set `first_start' to 0 for non-PC/MSDOS partition maps.
26601
aca63502 266022008-02-16 Robert Millan <rmh@aybabtu.com>
26603
26604 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
26605 do not assume partition map is PC/MSDOS before performing checks that
26606 are specific to that layout.
26607
0de8be86 266082008-02-13 Robert Millan <rmh@aybabtu.com>
26609
26610 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
26611 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
26612 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
26613
c3db8364 266142008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
26615
26616 * configure.ac: Only a cosmetic change on the handling of
26617 -fno-stack-protector.
26618
f714229e 266192008-02-12 Alexandre Boeglin <alex@boeglin.org>
26620
c3db8364 26621 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
26622 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
26623 reboot.c.
f714229e 26624 (grub_install_SOURCES): Add halt.mod and reboot.mod.
26625 (halt_mod_SOURCES): New variable.
26626 (halt_mod_CFLAGS): Likewise.
26627 (halt_mod_LDFLAGS): Likewise.
26628 (reboot_mod_SOURCES): Likewise.
26629 (reboot_mod_CFLAGS): Likewise.
26630 (reboot_mod_LDFLAGS): Likewise.
26631
c3db8364 26632 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
26633 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
26634 reboot.c.
f714229e 26635 (halt_mod_SOURCES): Likewise.
26636 (reboot_mod_SOURCES): Likewise.
26637
c3db8364 26638 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
26639 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 26640 (reboot_mod_SOURCES): Likewise.
26641
26642 * commands/i386/pc/reboot.c: merge this file ...
26643
26644 * commands/ieee1275/reboot.c: ... and this file ...
26645
26646 * commands/reboot.c: ... to this file.
c3db8364 26647 Add some precompiler directive to include the correct header for
26648 each machine.
f714229e 26649
26650 * commands/ieee1275/halt.c: move this file ...
26651
26652 * commands/halt.c: ... to here.
c3db8364 26653 Add some precompiler directive to include the correct header for
26654 each machine.
f714229e 26655
26656 * include/grub/efi/efi.h (grub_reboot): New function declaration.
26657 (grub_halt): Likewise.
26658
26659 * kern/efi/efi.c (grub_reboot): New function.
26660 (grub_halt): Likewise.
26661
c74493e0 266622008-02-12 Robert Millan <rmh@aybabtu.com>
26663
26664 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
26665 /dev (like it is done for /dev/mapper). This doesn't provide support
26666 for EVMS, but at least it is now easy to identify the problem when it
26667 arises.
26668
d0db4b04 266692008-02-11 Robert Millan <rmh@aybabtu.com>
26670
26671 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
26672 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
26673 comparing it with -1, not 0.
26674
bf748642 266752008-02-10 Robert Millan <rmh@aybabtu.com>
26676
26677 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
26678 `disk/lvm.c'.
26679 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26680 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26681
26682 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
26683 `disk/lvm.c' to the end of the list.
26684 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
26685 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
26686
b5db202a 266872008-02-10 Robert Millan <rmh@aybabtu.com>
26688
26689 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
26690 grub_print_error() instead. This will let user know why we're entering
26691 rescue mode.
26692 Based on suggestions from Sam Morris.
26693
83abee31 266942008-02-10 Alexandre Boeglin <alex@boeglin.org>
26695
26696 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
26697 on remaining N args, instead of "--" arg N times.
26698
78d5a08b 266992008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
26700
26701 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
26702 (fill_with_default_glyph): Changed to use unknown_glyph for fill
26703 pattern for unknown glyphs.
26704
68807e5f 267052008-02-09 Robert Millan <rmh@aybabtu.com>
26706
26707 * configure.ac: Probe for `help2man'.
26708 * Makefile.in (builddir): New variable.
26709 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
26710 or otherwise add a few flags/options to it.
26711 (install-local): For every executable utility or script that is
26712 installed, invoke $(HELP2MAN) to install a manpage based on --help
26713 output.
26714
26715 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
26716 that it doesn't prevent --help from working in build tree.
26717
26718 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
26719 with `bug-grub@gnu.org'.
26720 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
26721 * util/update-grub.in (usage): New function.
26722 Implement proper argument check, with support for --help and --version
26723 (as well as existing -y).
26724
267252008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 26726
26727 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
26728 avoid overwriting previous output.
26729 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
26730
c1962162 267312008-02-09 Robert Millan <rmh@aybabtu.com>
26732
26733 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
26734 drawing the menu.
26735
3dac2e3f 267362008-02-09 Robert Millan <rmh@aybabtu.com>
26737
26738 * commands/sleep.c: New file.
26739 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
26740 (sleep_mod_SOURCES): New variable.
26741 (sleep_mod_CFLAGS): Likewise.
26742 (sleep_mod_LDFLAGS): Likewise.
26743
7a634e08 267442008-02-09 Robert Millan <rmh@aybabtu.com>
26745
26746 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
26747 situations in which we can deduce the RAID size and the superblock
26748 doesn't match it.
26749
b92f0c18 267502008-02-09 Robert Millan <rmh@aybabtu.com>
26751
26752 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
26753 and return a grub_diskmemberlist_t composed of LVM physical volumes.
26754 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
26755
26756 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
26757 and return a grub_diskmemberlist_t composed of physical array members.
26758 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
26759
26760 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
26761 prototype.
26762 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
26763 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
26764 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
26765
26766 * util/grub-probe.c (probe): Move partmap probing code from here ...
26767 (probe_partmap): ... to here.
26768 (probe): Use probe_partmap() once for the disk we're probing, and
26769 additionally, when such disk contains a memberlist() struct member,
26770 once for each disk that is contained in the structure returned by
26771 memberlist().
26772
91a4bf68 267732008-02-09 Robert Millan <rmh@aybabtu.com>
26774
26775 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
26776 environment variable to 'all' in order to obtain debug output from
26777 non-util/ code.
26778 * util/i386/pc/grub-setup.c (main): Likewise.
26779
a96f9caa 267802008-02-08 Robert Millan <rmh@aybabtu.com>
26781
26782 * disk/raid.c (grub_raid_scan_device): Check for
26783 `array->device[sb.this_disk.number]' rather than for
26784 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 26785 guaranteed to be accessible.
a96f9caa 26786
b37a9222 267872008-02-08 Robert Millan <rmh@aybabtu.com>
26788
26789 * disk/raid.c: Update copyright.
26790 * fs/cpio.c: Likewise.
26791 * include/grub/raid.h: Likewise.
26792 * loader/i386/pc/multiboot.c: Likewise.
26793 * util/hostfs.c: Likewise.
26794
5626aee1 267952008-02-08 Robert Millan <rmh@aybabtu.com>
26796
26797 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
26798 to a grub_disk_t array.
26799 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
26800 `device[x]'.
26801 (grub_raid_scan_device): Replace `device[x].name' accesses with
26802 `device[x]->name'. Simplify initialization of `array->device[x]'.
26803
554f0187 268042008-02-08 Robert Millan <rmh@aybabtu.com>
26805
26806 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
26807 grub_dprintf() calls.
26808 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
26809 error message.
26810
1ec8425d 268112008-02-07 Christian Franke <franke@computer.org>
26812
26813 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
26814 instead of fseek and ftell to support large files.
26815 (grub_hostfs_read): Likewise.
26816
f2156fda 268172008-02-07 Robert Millan <rmh@aybabtu.com>
26818
26819 Patch from Jeroen Dekkers.
26820 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 26821 failure, since successfully reading all array members might not be
f2156fda 26822 required.
26823
9216e0e7 268242008-02-06 Robert Millan <rmh@aybabtu.com>
26825
26826 * util/grub-probe.c (probe): Simplify partmap probing (with the
26827 assumption that the first word up to the underscore equals to
26828 the module name).
26829
b0dfd29a 268302008-02-06 Christian Franke <franke@computer.org>
26831
26832 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
26833 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
26834 last block of a cpio or tar stream.
26835 Check for "TRAILER!!!" instead of any empty data
26836 block to detect last block of a cpio stream.
26837 (grub_cpio_dir): Fix constness of variable np.
26838 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
26839 cpio or tar trailer is detected. This fixes a crash
26840 on open of a non existing file.
26841
c32865bf 268422008-02-05 Bean <bean123ch@gmail.com>
26843
26844 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
26845 address of entry.
26846 (grub_multiboot_load_elf64): Likewise.
26847 (grub_multiboot): Initialize mbi structure.
26848
26849 * util/grub-fstest.c: Don't include unused header file script.h.
26850
fe6b695a 26851 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 26852 of file.
26853 (grub_fstest_SOURCES): Likewise.
26854
409480b7 268552008-02-05 Robert Millan <rmh@aybabtu.com>
26856
26857 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
26858 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
26859 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
26860 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
26861
26862 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
26863 (translation_table): Replace hardcoded values with macros
26864 provided by `<grub/term.h>'.
26865
26866 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
26867 (keyboard_map): Correct/add a few values, with macros provided
26868 by `<grub/term.h>'.
26869 (keyboard_map_shift): Zero values that don't differ from their
26870 `keyboard_map' equivalents.
26871 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
26872 Discard the second scan code that is always sent by Caps lock.
26873 Only use `keyboard_map_shift' when it provides a non-zero value,
26874 otherwise fallback to `keyboard_map'.
26875
99fadbaa 268762008-02-04 Bean <bean123ch@gmail.com>
26877
26878 * Makefile.in (enable_grub_fstest): New variable.
26879
26880 * conf/common.rmk (grub_fstest_init.lst): New rule.
26881 (grub_fstest_init.h): Likewise.
26882 (grub_fstest_init.c): Likewise.
26883 (util/grub-fstest.c_DEPENDENCIES): New variable.
26884 (grub_fstest_SOURCES): Likewise.
26885
26886 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
26887
26888 * util/grub-fstest.c: New file.
26889
bf567c50 268902008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
26891
26892 Make grub-setup handle a separate root device.
f19dbdb7 26893
bf567c50 26894 * util/i386/pc/grub-setup.c (setup): Always open the root device,
26895 so that the root device can be compared with the destination
26896 device.
26897 When embedding the core image, if the root and destination devices
26898 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
26899 0xFF.
26900 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 26901
9be6b98b 269022008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
26903
26904 Add support for having a grub directory in a different drive. This
26905 is still only the data handling part.
f19dbdb7 26906
9be6b98b 26907 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
26908 (codestart): Save %dh in GRUB_ROOT_DRIVE.
26909 (grub_root_drive): New variable.
26910
26911 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
26912 instead of GRUB_BOOT_DRIVE to construct a device name. Set
26913 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
26914 as it was.
26915
26916 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
26917
26918 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
26919 macro.
26920 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
26921
26922 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
26923 is bogus, because PXE booting does not specify any drive
26924 correctly.
26925
26926 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
26927 am not sure if this is really correct.
26928
26929 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
26930 is always identical to the boot drive when booting from a CD.
26931
26932 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
26933 longer.
26934 (root_drive): New variable.
26935 (real_start): Unconditionally set %dh to ROOT_DRIVE.
26936 (setup_sectors): Push %dx right after popping it, because %dh will
26937 be modified later.
26938 (copy_buffer): Restore %dx.
26939
e0ca0677 269402008-02-03 Robert Millan <rmh@aybabtu.com>
26941
26942 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
26943 use `cdboot.img' for cdrom images.
26944
3b3f6629 269452008-02-03 Robert Millan <rmh@aybabtu.com>
26946
26947 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
26948 only setup gfxterm when `font' command has succeeded.
26949
d42b3672 269502008-02-03 Robert Millan <rmh@aybabtu.com>
26951
26952 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
26953 (grub_rescue_cmd_multiboot_loader)
26954 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
26955
fa370ea6 269562008-02-03 Pavel Roskin <proski@gnu.org>
26957
e0c5dacb 26958 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 26959 %edx and %esi from stack only after grub_gate_a20() is called.
26960 grub_gate_a20() clobbers %edx.
26961
f2a76e1d 269622008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
26963
26964 * configure.ac (AC_INIT): Bumped to 1.96.
26965
26966 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
26967 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
26968 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
26969 video/readers/png.c.
26970
90fd32d1 269712008-02-03 Bean <bean123ch@gmail.com>
9be665dd 26972
26973 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
26974 (cdboot_img_SOURCES): New variable.
26975 (cdboot_img_ASFLAGS): New variable.
26976 (cdboot_img_LDFLAGS): New variable.
26977
26978 * boot/i386/pc/cdboot.S: New file.
26979
26980 * disk/i386/pc/biosdisk.c (cd_start): New variable.
26981 (cd_count): Likewise.
26982 (grub_biosdisk_get_drive): Add support for cd device.
26983 (grub_biosdisk_call_hook): Likewise.
26984 (grub_biosdisk_iterate): Likewise.
26985 (grub_biosdisk_open): Likewise.
26986 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
26987 (grub_biosdisk_rw): Support reading from cd device.
26988 (GRUB_MOD_INIT): Iterate cd devices.
26989
26990 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
26991 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
26992 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
26993
26994 * kern/i386/pc/init.c (make_install_device): Check for cd device.
26995
4020aa53 269962008-02-02 Robert Millan <rmh@aybabtu.com>
26997
26998 * commands/read.c: New file.
26999 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
27000 (read_mod_SOURCES): New variable.
27001 (read_mod_CFLAGS): Likewise.
27002 (read_mod_LDFLAGS): Likewise.
27003
e03a1132 270042008-02-02 Robert Millan <rmh@aybabtu.com>
27005
27006 * normal/main.c (grub_normal_execute): Check for `menu->size' when
27007 determining whether menu has to be displayed.
27008
58c69220 270092008-02-02 Marco Gerards <marco@gnu.org>
27010
27011 * bus/pci.c: New file.
27012
27013 * include/grub/pci.h: Likewise.
27014
27015 * include/grub/i386/pc/pci.h: Likewise.
27016
27017 * commands/lspci.c: Likewise.
27018
27019 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
27020 `lspci.mod'.
27021 (pci_mod_SOURCES): New variable.
27022 (pci_mod_CFLAGS): Likewise.
27023 (pci_mod_LDFLAGS): Likewise.
27024 (lspci_mod_SOURCES): Likewise.
27025 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 27026 (lspci_mod_LDFLAGS): Likewise.
58c69220 27027
c004e1b4 270282008-02-02 Bean <bean123ch@gmail.com>
27029
27030 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
27031 (grub_ufs_get_file_block): Fix indirect block calculation problem.
27032
27033 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
27034 (grub_xfs_btree_node): New structure.
27035 (grub_xfs_btree_root): New structure.
27036 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
27037 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
27038 (GRUB_XFS_EXTENT_BLOCK): Likewise.
27039 (GRUB_XFS_EXTENT_SIZE): Likewise.
27040 (grub_xfs_read_block): Support btree format type.
27041 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
27042 Use directory block as basic unit.
27043
27044 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
27045
27046 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
27047 __attribute__ ((__regparm__ (1))).
27048
f95562bf 270492008-02-01 Robert Millan <rmh@aybabtu.com>
27050
27051 Correct a mistake in previous commit.
27052
27053 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
27054 top.
27055 (normal/command.c_DEPENDENCIES): New variable.
27056
7d31f41f 270572008-02-01 Robert Millan <rmh@aybabtu.com>
27058
27059 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
27060 top.
27061 (normal/command.c_DEPENDENCIES): New variable.
27062 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
27063 * conf/i386-ieee1275.rmk: Likewise.
27064 * conf/i386-linuxbios.rmk: Likewise.
27065 * conf/i386-pc.rmk: Likewise.
27066 * conf/sparc64-ieee1275.rmk: Likewise.
27067 * conf/powerpc-ieee1275.rmk: Likewise.
27068 (grub_emu_SOURCES): Add `fs/fshelp.c'.
27069
27070 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
27071
60b6be74 270722008-02-01 Robert Millan <rmh@aybabtu.com>
27073
27074 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
27075 call at beginning of function.
27076
078522ab 270772008-01-31 Pavel Roskin <proski@gnu.org>
27078
27079 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 27080 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
27081 (grub_mkrescue_SOURCES): Likewise.
078522ab 27082 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
27083
ccaa8a5f 270842008-01-30 Robert Millan <rmh@aybabtu.com>
27085
27086 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
27087 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
27088 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
27089 (grub_probe_SOURCES): ... to here.
27090
27091 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
27092 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
27093 * conf/i386-ieee1275.rmk: Likewise.
27094 * conf/i386-linuxbios.rmk: Likewise.
27095 * conf/powerpc-ieee1275.rmk: Likewise.
27096
ae5a9cd7 270972008-01-30 Tristan Gingold <gingold@free.fr>
27098
27099 * kern/rescue.c: Silently accept empty lines.
27100
70bc2ef2 271012008-01-29 Bean <bean123ch@gmail.com>
27102
27103 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
27104 (real_code_2): Code cleanup and change comment style.
27105 (move_memory): Avoid using 32-bit address mode.
27106
6a4d50ea 271072008-01-29 Bean <bean123ch@gmail.com>
27108
27109 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
27110 (png_mod_SOURCES): New variable.
27111 (png_mod_CFLAGS): Likewise.
27112 (png_mod_LDFLAGS): Likewise.
27113
27114 * video/readers/png.c: New file.
27115
11cc30ac 271162008-01-28 Robert Millan <rmh@aybabtu.com>
27117
27118 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
27119 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
27120 `ifndef GRUB_MOD_GAP' hack.
27121 * util/elf/grub-mkimage.c (add_segments): Likewise.
27122
3abc589f 271232008-01-27 Robert Millan <rmh@aybabtu.com>
27124
27125 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
27126 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 27127 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 27128
e1907778 271292008-01-27 Robert Millan <rmh@aybabtu.com>
27130
27131 Get grub-emu to build again (including parallel builds).
27132
27133 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
27134 Split into ...
27135 (util/grub-emu.c_DEPENDENCIES): ... this, ...
27136 (normal/execute.c_DEPENDENCIES): ... this, ...
27137 (grub-emu_DEPENDENCIES): ... and this.
27138
27139 * conf/i386-efi.rmk: Likewise.
27140 * conf/i386-linuxbios.rmk: Likewise.
27141 * conf/i386-ieee1275.rmk: Likewise.
27142 * conf/powerpc-ieee1275.rmk: Likewise.
27143 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
27144
2216b101 271452008-01-27 Robert Millan <rmh@aybabtu.com>
27146
27147 * NEWS: Add a few items.
27148
f75172d9 271492008-01-27 Robert Millan <rmh@aybabtu.com>
27150
27151 Fix parallel builds with grub-emu. Based on earlier commit for
27152 grub-probe and grub-setup.
27153
27154 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27155 (util/grub-emu.c_DEPENDENCIES): ... this.
27156 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27157 (util/grub-emu.c_DEPENDENCIES): ... this.
27158 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27159 (util/grub-emu.c_DEPENDENCIES): ... this.
27160 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27161 (util/grub-emu.c_DEPENDENCIES): ... this.
27162 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
27163 (util/grub-emu.c_DEPENDENCIES): ... this.
27164
3f51de77 271652008-01-27 Pavel Roskin <proski@gnu.org>
27166
27167 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
27168 to create a gap between _end and the modules added to the image
27169 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
27170 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
27171 * util/elf/grub-mkimage.c (add_segments): Likewise.
27172
2033f53e 271732008-01-26 Pavel Roskin <proski@gnu.org>
27174
27175 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
27176 just return an error.
27177
22da1f6f 271782008-01-26 Bean <bean123ch@gmail.com>
27179
27180 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
27181 (grub_reiserfs_get_item): Save offset of the next item.
27182 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
27183
2a9525e6 271842008-01-25 Robert Millan <rmh@aybabtu.com>
27185
27186 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
27187 make all filesystem sources appear together (possibly fixing omissions
27188 while at it).
27189 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27190 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27191 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
27192 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27193
27194 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
27195 add `kern/file.c'.
27196 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
27197 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
27198 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
27199 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
27200
27201 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
27202 (probe): Add a sanity check to make sure of our ability to read
27203 requested files when probing for filesystem type.
27204
27205 * genmk.rb: Update copyright year (2007).
27206
27207 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
27208 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
27209 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
27210 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
27211 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
27212 : Remove function prototypes.
27213
b95f71b5 272142008-01-25 Robert Millan <rmh@aybabtu.com>
27215
27216 Revert my previous commits (based on wrong assumption of how grub_errno
27217 works).
27218
fe6b695a 27219 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 27220 * kern/file.c (grub_file_open): Likewise.
27221
d08bbb49 272222008-01-24 Pavel Roskin <proski@gnu.org>
27223
27224 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
27225 that hang if GRUB tries to setup colors.
27226 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
27227 colors for firmwares that don't support it.
27228 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
27229 Recognize Open Hack'Ware, set flags to work around its
27230 limitations.
27231
605e36ed 272322008-01-24 Robert Millan <rmh@aybabtu.com>
27233
27234 * kern/file.c (grub_file_open): Do not account previous failures of
27235 unrelated functions when grub_errno is checked for.
27236 Reported by Oleg Strikov.
27237
bac332a1 272382008-01-24 Bean <bean123ch@gmail.com>
27239
27240 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
27241 (grub_ufs_sblock): New member volume name.
27242 (grub_ufs_find_file): Fix string copy bug.
27243 (grub_ufs_label): Implement this function properly.
27244
27245 * fs/hfs.c (grub_hfs_cnid_type): New enum.
27246 (grub_hfs_iterate_records): Use the correct file number for extents
27247 and catalog file. Fix problem in next index calculation.
27248 (grub_hfs_find_node): Replace recursive function call with loop.
27249 (grub_hfs_iterate_dir): Replace recursive function call with loop.
27250
15c80c09 272512008-01-23 Robert Millan <rmh@aybabtu.com>
27252
27253 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
27254 `<grub/symbol.h>' and `<grub/multiboot.h>'.
27255 (grub_multiboot2_real_boot): New function prototype.
27256
27257 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
27258 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
27259
27260 * kern/i386/ieee1275/init.c (grub_os_area_addr)
27261 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
27262
305338fd 272632008-01-23 Robert Millan <rmh@aybabtu.com>
27264
27265 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
27266 #ifdef'ed out grub_printf().
27267
3ea52685 272682008-01-23 Robert Millan <rmh@aybabtu.com>
27269
27270 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
27271 grub_dprintf calls, since they make "debug=all" mode unusable.
27272 (grub_console_checkkey): Likewise.
27273
5882ae4b 272742008-01-23 Robert Millan <rmh@aybabtu.com>
27275
27276 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
27277 `term/i386/pc/at_keyboard.c'.
27278 (pkglib_MODULES): Add `serial.mod'.
27279 (serial_mod_SOURCES): New variable.
27280 (serial_mod_CFLAGS): Likewise.
27281 (serial_mod_LDFLAGS): Likewise.
27282
27283 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
27284 `<grub/powerpc/ieee1275/console.h>'.
27285 (grub_keyboard_controller_init): New function prototype.
27286 (grub_console_checkkey): Likewise.
27287 (grub_console_getkey): Likewise.
27288
27289 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
27290 keyboard on i386.
27291
27292 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
27293 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
27294
06ab5303 272952008-01-23 Robert Millan <rmh@aybabtu.com>
27296
27297 * kern/i386/pc/init.c (make_install_device): When memdisk image is
27298 present, "(memdisk)/boot/grub" becomes the default prefix.
27299
27300 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
27301 a memdisk tarball with all the modules. Add --overlay=DIR option that
27302 allows users to overlay additional files into the image.
27303
dbb475a4 273042008-01-23 Robert Millan <rmh@aybabtu.com>
27305
27306 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
27307 and `machine/memory.h'.
27308 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
27309 (_multiboot_mod_SOURCES): New variable.
27310 (_multiboot_mod_CFLAGS): Likewise.
27311 (_multiboot_mod_LDFLAGS): Likewise.
27312 (multiboot_mod_SOURCES): Likewise.
27313 (multiboot_mod_CFLAGS): Likewise.
27314 (multiboot_mod_LDFLAGS): Likewise.
27315
27316 * include/grub/i386/ieee1275/loader.h: New file.
27317
27318 * include/grub/i386/ieee1275/machine.h: Likewise.
27319
27320 * include/grub/i386/ieee1275/memory.h: Likewise.
27321
27322 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
27323 variable declaration.
27324 (grub_os_area_size): Likewise.
27325
27326 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
27327 (grub_lower_mem, grub_upper_mem): New variables.
27328 (grub_stop_floppy): New function (just to make
27329 grub_multiboot2_real_boot() happy).
27330
27331 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
27332 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
27333 (grub_stop): New function.
27334 Include `"../realmode.S"' and `"../loader.S"'.
27335
27336 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
27337 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
27338
27339 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
27340 rely on grub_multiboot2_real_boot() for final boot.
27341
25638629 273422008-01-22 Robert Millan <rmh@aybabtu.com>
27343
27344 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
27345 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
27346 device that doesn't look like an SD card.
27347 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
27348 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
27349 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
27350 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
27351 found.
27352
9dad816d 273532008-01-22 Robert Millan <rmh@aybabtu.com>
27354
27355 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
27356 avoid claiming over our own code.
27357
34842f2d 273582008-01-22 Bean <bean123ch@gmail.com>
27359
27360 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
27361 (jpeg_mod_SOURCES): New variable.
27362 (jpeg_mod_CFLAGS): Likewise.
27363 (jpeg_mod_LDFLAGS): Likewise.
27364
27365 * video/readers/jpeg.c : New file.
27366
44023a28 273672008-01-22 Bean <bean123ch@gmail.com>
27368
27369 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
27370 there are no more items.
27371
bc2d8ac6 273722008-01-21 Robert Millan <rmh@aybabtu.com>
27373
27374 * kern/mm.c (grub_mm_init_region): Improve debug message.
27375
261bd4bc 273762008-01-21 Robert Millan <rmh@aybabtu.com>
27377
27378 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
27379 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
27380 address.
27381 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
27382 a C macro.
27383 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
27384 Indicates start of upper memory.
27385 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
27386 (generate_image): Abort when image size is big enough to corrupt
27387 upper memory.
27388
27389 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
27390 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
27391 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
27392 instead of hardcoding 0xA0000.
27393 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
27394 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
27395 instead of hardcoding 0xA0000.
27396
f970b55e 273972008-01-21 Robert Millan <rmh@aybabtu.com>
27398
27399 * disk/memdisk.c (memdisk_size): New variable.
27400 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
27401 `memdisk_size'.
27402 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
27403 image to dynamic memory.
27404 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
27405 `memdisk_size'. Free memdisk block.
27406
1a8b0526 274072008-01-21 Robert Millan <rmh@aybabtu.com>
27408
27409 Fix detection of very small filesystems (like tar).
27410
27411 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
27412 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
27413 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
27414 a problem with this disk).
27415
6e9b4aab 274162008-01-21 Robert Millan <rmh@aybabtu.com>
27417
27418 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
27419 on grub_biosdisk_rw_standard() error.
27420
0d8837b2 274212008-01-21 Robert Millan <rmh@aybabtu.com>
27422
27423 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
27424 recent changes.
27425 * kern/elf.c: Likewise.
27426 * kern/ieee1275/ieee1275.c: Likewise.
27427 * kern/powerpc/ieee1275/openfw.c: Likewise.
27428 * term/ieee1275/ofconsole.c: Likewise.
27429
ffd36e34 274302008-01-21 Robert Millan <rmh@aybabtu.com>
27431
27432 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
27433
3f0093d0 27434 * include/grub/kernel.h (grub_arch_memdisk_addr)
27435 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 27436
3f0093d0 27437 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
27438 (grub_arch_memdisk_size): ... to here.
ffd36e34 27439
6c391b21 274402008-01-21 Robert Millan <rmh@aybabtu.com>
27441
27442 Mostly based on bugfix from Bean.
27443
27444 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
27445 attribute with hook() parameter.
27446 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
27447 declaration.
27448 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
27449 attribute with hook() parameter.
27450 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
27451 declaration.
27452
55a581dc 274532008-01-21 Robert Millan <rmh@aybabtu.com>
27454
27455 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
27456 (pkglib_MODULES): Add `memdisk.mod'.
27457 (memdisk_mod_SOURCES): New variable.
27458 (memdisk_mod_CFLAGS): Likewise.
27459 (memdisk_mod_LDFLAGS): Likewise.
27460
27461 * disk/memdisk.c: New file.
27462
27463 * include/grub/disk.h (grub_disk_dev_id): Add
27464 `GRUB_DISK_DEVICE_MEMDISK_ID'.
27465
27466 * include/grub/i386/pc/kernel.h
27467 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
27468 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
27469 (grub_kernel_image_size): New variable declaration.
27470 (grub_total_module_size): Likewise.
27471 (grub_memdisk_image_size): Likewise.
27472
27473 * include/grub/i386/pc/memory.h
27474 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
27475
27476 * include/grub/kernel.h: Include `<grub/symbol.h>'.
27477 (grub_arch_memdisk_addr): New variable declaration.
27478 (grub_arch_memdisk_size): Likewise.
27479
27480 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
27481 (grub_arch_memdisk_size): Likewise.
27482
27483 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
27484 (codestart): Replace hardcoded `0x100000' with
27485 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
27486
27487 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
27488 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
27489 not NULL, append the contents of the file it refers to, at the end of
27490 the compressed kernel image. Initialize `grub_memdisk_image_size'
27491 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
27492 (options): Add "memdisk"|'m' option.
27493 (main): Parse --memdisk|-m option, and pass user-provided path as
27494 parameter to generate_image().
27495
3d7f54c9 274962008-01-20 Robert Millan <rmh@aybabtu.com>
27497
27498 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
27499 grub_dprintf() calls from here ...
27500 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
27501
0bf74728 275022008-01-20 Robert Millan <rmh@aybabtu.com>
27503
27504 Fix detection of "real mode" when /options/real-mode? doesn't exist.
27505
27506 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
27507 declaration.
27508 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
27509 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
27510 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 27511 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 27512 property).
27513 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
27514 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
27515
33bf70a7 275162008-01-19 Robert Millan <rmh@aybabtu.com>
27517
fe6b695a 27518 Get rid of confusing function (superseded by
33bf70a7 27519 `grub_ieee1275_get_integer_property')
27520 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
27521 prototype.
27522 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
27523 function.
27524 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
27525 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 27526 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 27527
e2da7d26 275282008-01-19 Robert Millan <rmh@aybabtu.com>
27529
27530 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
27531 command after "shut-down", since implementations differ on which
27532 the command for halt is.
27533
59f1fd8d 275342008-01-19 Robert Millan <rmh@aybabtu.com>
27535
27536 * include/grub/i386/linuxbios/console.h: Add header protection.
27537 (grub_keyboard_controller_init): New function prototype.
27538 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
27539 (KEYBOARD_COMMAND_READ): Likewise.
27540 (KEYBOARD_COMMAND_WRITE): Likewise.
27541 (KEYBOARD_SCANCODE_SET1): Likewise.
27542 (grub_keyboard_controller_write): New function.
27543 (grub_keyboard_controller_read): Likewise.
27544 (grub_keyboard_controller_init): Likewise.
27545
27546 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
27547 (grub_console_init): On coreboot/LinuxBIOS, call
27548 grub_keyboard_controller_init().
27549
5f5a7c15 275502008-01-19 Robert Millan <rmh@aybabtu.com>
27551
27552 PowerPC changes provided by Pavel Roskin.
27553
27554 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
27555 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
27556 don't rely on cmain() doing it.
27557 * kern/i386/ieee1275/startup.S (_start): Store %eax in
27558 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
27559
1210e168 275602008-01-16 Robert Millan <rmh@aybabtu.com>
27561
27562 * include/grub/i386/linuxbios/memory.h
27563 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
27564 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
27565 receive `table_header' as argument. Instead, probe for it in the
27566 known memory ranges where it can be present.
27567 (grub_available_iterate): Do not pass a fixed `table_header' address
27568 to grub_linuxbios_table_iterate().
27569
3d04eab8 275702008-01-15 Robert Millan <rmh@aybabtu.com>
27571
27572 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
27573 * conf/i386-ieee1275.rmk: New file.
27574 * include/grub/i386/ieee1275/console.h: Likewise.
27575 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
27576 * include/grub/i386/ieee1275/kernel.h: Likewise.
27577 * include/grub/i386/ieee1275/time.h: Likewise.
27578 * kern/i386/ieee1275/init.c: Likewise.
27579 * kern/i386/ieee1275/startup.S: Likewise.
27580
d1bc1b73 275812008-01-15 Robert Millan <rmh@aybabtu.com>
27582
27583 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
27584 when pointers are 32-bit (but still do set it to one when they are
27585 64-bit).
27586
66a65807 275872008-01-15 Robert Millan <rmh@aybabtu.com>
27588
27589 * include/grub/ieee1275/ieee1275.h
27590 (grub_ieee1275_get_integer_property): New function prototype.
27591
27592 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
27593 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 27594 grub_ieee1275_get_property() to handle endianness.
66a65807 27595
27596 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
27597 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 27598 where appropriate.
66a65807 27599 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
27600 (grub_map): Likewise.
27601 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
27602
a83ccafd 276032008-01-15 Bean <bean123ch@gmail.com>
27604
27605 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
27606 (grub_script_execute_cmdline): Reset grub_errno.
27607
27608 * normal/main.c (read_config_file): Reset grub_errno.
27609
27610 * normal/parse.y (script_init): New.
27611 (script): Move function and menuentry here.
27612 (delimiter): New.
27613 (command): Add delimiter at the end of command.
27614 (commands): Adjust to match the new command.
27615 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 27616 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 27617 (if): Use the new commands.
27618
27619 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
27620
df6ecfc6 276212008-01-15 Robert Millan <rmh@aybabtu.com>
27622
27623 * normal/menu.c (run_menu): Move timeout message from here ...
27624 (print_timeout): ... to here.
27625 (run_menu): Use print_timeout() once during initial draw to print
27626 the whole message, and again in every clock tick to update only
27627 the number of seconds.
27628
87ae25eb 276292008-01-15 Robert Millan <rmh@aybabtu.com>
27630
27631 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
27632 actual size of `available' from grub_ieee1275_get_property(), and
27633 restrict parsing to that bound.
27634
47bf09a4 276352008-01-15 Christian Franke <franke@computer.org>
27636
27637 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
27638 (argp_program_version): Remove variable.
27639 (argp_program_bug_address): Likewise.
27640 (options): Convert from struct argp_option to struct option.
27641 (struct arguments): Remove.
27642 (parse_opt): Remove.
27643 (usage): New function.
27644 (main): Replace struct args members by simple variables.
27645 Replace argp_parse() by getopt_long().
27646 Add switch to evaluate options.
27647 Add missing "(...)" around root_dev in prefix string.
27648
c86f1469 276492008-01-14 Robert Millan <rmh@aybabtu.com>
27650
27651 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
27652 for grub_ieee1275_exit(), in order to improve portability.
27653
e622c559 276542008-01-14 Robert Millan <rmh@aybabtu.com>
27655
27656 * util/grub.d/10_linux.in (prefix): Define.
27657 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
27658
44cb1ec8 276592008-01-13 Pavel Roskin <proski@gnu.org>
27660
27661 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
27662 grub_errno if no errors have been detected.
27663
1eb8c802 276642008-01-12 Robert Millan <rmh@aybabtu.com>
27665
27666 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
27667 (grub_util_get_dev_abstraction): New function prototype.
27668
27669 * util/getroot.c: Include `<grub/util/getroot.h>'
27670 (grub_util_get_grub_dev): Move detection of abstraction type to ...
27671 (grub_util_get_dev_abstraction): ... here (new function).
27672
27673 * util/grub-probe.c: Convert PRINT_* to an enum. Add
27674 `PRINT_ABSTRACTION'.
27675 (probe): Probe for abstraction type when requested.
27676 (main): Understand `--target=abstraction'.
27677
27678 * util/i386/efi/grub-install.in: Add abstraction module to core
27679 image when it is found to be necessary.
27680 * util/i386/pc/grub-install.in: Likewise.
27681 * util/powerpc/ieee1275/grub-install.in: Likewise.
27682
27683 * util/update-grub_lib.in (font_path): Return system path without
27684 converting to GRUB path.
27685 * util/update-grub.in: Convert system path returned by font_path()
27686 to a GRUB path. Use `grub-probe -t abstraction' to determine what
27687 abstraction module is needed for loading fonts (if any). Export
27688 that as `GRUB_PRELOAD_MODULES'.
27689 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
27690 insmod commands).
27691
52bd3de9 276922008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
27693
27694 Remove some unused code from reiserfs.
f19dbdb7 27695
52bd3de9 27696 * fs/reiserfs.c (struct grub_reiserfs_key)
27697 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
27698 (struct grub_reiserfs_node_body): Removed.
27699 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
27700 Likewise.
27701 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
27702 Likewise.
27703 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
27704 Likewise.
27705 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
27706 Likewise.
27707 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
27708 Likewise.
27709 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
27710 Likewise.
27711 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
27712 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
27713 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
27714
2f80039d 277152008-01-10 Robert Millan <rmh@aybabtu.com>
27716
27717 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
27718 Determines if a file is garbage left by packaging systems, etc.
27719 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
27720 for processing /etc/grub.d scripts.
27721 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
27722 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
27723 as a condition for processing Linux images.
27724
87888032 277252008-01-10 Pavel Roskin <proski@gnu.org>
27726
27727 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
27728 to compile reiserfs.c on PowerPC.
27729
7e54fced 277302008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 27731
27732 * kern/device.c (grub_device_iterate): Do not abort device iteration
27733 when one of the devices cannot be opened.
27734 * kern/disk.c (grub_disk_open): Do not account previous failures of
27735 unrelated functions when grub_errno is checked for.
27736
5aa541e6 277372008-01-08 Robert Millan <rmh@aybabtu.com>
27738
27739 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
27740 `! grub_linux_is_bzimage', change order of address comparison to make
27741 it more intuitive, and improve "too big zImage" error message.
27742
7076340d 277432008-01-08 Robert Millan <rmh@aybabtu.com>
27744
27745 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
27746 `$(update-grub_DATA)'.
27747 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
27748 targets.
27749
9ca70333 277502008-01-07 Robert Millan <rmh@aybabtu.com>
27751
27752 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
27753 which instruction is modified by grub-setup during installation
27754 (since it wasn't obvious by only looking at this file).
27755
38ccf575 277562008-01-07 Robert Millan <rmh@aybabtu.com>
27757
27758 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
27759 listing actual TODO items.
27760
f5db4291 277612008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27762
868967cf 27763 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
27764 correctly.
27765 (grub_reiserfs_get_key_offset): Likewise.
27766 (grub_reiserfs_set_key_offset): Likewise.
27767 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 27768 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 27769
27770 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
27771 better to remove the bitfield version completely.
f19dbdb7 27772
868967cf 277732008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 27774
f5db4291 27775 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
27776 allocated from the heap, due to the fshelp implementation.
27777 (grub_reiserfs_dir): Free NODE, due to the same reason.
27778
492e6d9d 277792008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
27780
27781 Mostly from Vincent Pelletier:
f19dbdb7 27782
492e6d9d 27783 * fs/reiserfs.c: New file.
f19dbdb7 27784
492e6d9d 27785 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
27786 (reiserfs_mod_SOURCES): New variable.
27787 (reiserfs_mod_CFLAGS): Likewise.
27788 (reiserfs_mod_LDFLAGS): Likewise.
27789
27790 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
27791 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
27792 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
27793 normal/color.c.
27794
9ce3e7c1 277952008-01-06 Robert Millan <rmh@aybabtu.com>
27796
27797 * normal/color.c: Remove `<grub/env.h>'.
27798
f3b58148 277992008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
27800
27801 * include/grub/normal.h: Include <grub/env.h>.
27802
7ac3bcfa 278032008-01-05 Robert Millan <rmh@aybabtu.com>
27804
27805 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
27806 usage example with `(hd0,1)'.
fb358190 27807 Reported by Samuel Thibault.
7ac3bcfa 27808
c8ee99d7 278092008-01-05 Robert Millan <rmh@aybabtu.com>
27810
27811 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
27812 (grub_linux_boot_zimage): Rename to ...
27813 (grub_linux_boot): ... this.
27814 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
27815 (grub_linux_boot_zimage): Conditionalize zImage copy.
27816
27817 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
27818 (grub_linux_boot_bzimage): Remove prototype.
27819 (grub_linux_boot_zimage): Rename to ...
27820 (grub_linux_boot): ... this.
27821
27822 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
27823 (grub_linux_boot): Remove function.
27824
0ece25b1 278252008-01-05 Robert Millan <rmh@aybabtu.com>
27826
27827 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
27828 (grub_env_write_color_highlight): Likewise.
27829 (grub_wait_after_message): Likewise.
27830
27831 * normal/color.c: New file.
27832
27833 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27834 (normal_mod_DEPENDENCIES): Likewise.
27835
27836 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27837 (normal_mod_DEPENDENCIES): Likewise.
27838
27839 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27840 (normal_mod_DEPENDENCIES): Likewise.
27841
27842 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
27843 (normal_mod_DEPENDENCIES): Likewise.
27844
27845 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
27846 for waiting after a message is printed.
27847 * normal/main.c (read_config_file): Likewise.
27848 (grub_normal_init): Register grub_env_write_color_normal() and
27849 grub_env_write_color_highlight() hooks. Mark `color_normal' and
27850 `color_highlight' variables as global.
27851
27852 * normal/menu.c (grub_wait_after_message): New function.
27853 (grub_color_menu_normal): New variable. Replaces ...
27854 (GRUB_COLOR_MENU_NORMAL): ... this macro.
27855 (grub_color_menu_highlight): New variable. Replaces ...
27856 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
27857 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
27858 `GRUB_TERM_COLOR_STANDARD'.
27859 (print_message): Use `grub_setcolorstate' to reload colors. Rename
27860 `normal_code' and `highlight_code' to `old_color_normal' and
27861 `old_color_highlight', respectively.
27862 (grub_menu_init_page): Update colors when drawing the menu, based on
27863 `menu_color_normal' and `menu_color_highlight' variables.
27864 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
27865 a message is printed.
27866
182dd4e5 278672008-01-05 Robert Millan <rmh@aybabtu.com>
27868
27869 * kern/env.c (grub_env_context_open): Propagate hooks for global
27870 variables to new context.
27871
27872 * kern/main.c (grub_set_root_dev): Export `root' variable.
27873
ddf8f6ad 278742008-01-05 Robert Millan <rmh@aybabtu.com>
27875
27876 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 27877 discs unconditionally, since udev and others have options to provide
ddf8f6ad 27878 them.
27879
d8b43d9b 278802008-01-05 Robert Millan <rmh@aybabtu.com>
27881
27882 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
27883
2bff2de3 278842008-01-04 Christian Franke <franke@computer.org>
27885
27886 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
27887 of eisa_mmap.
27888
97eab917 278892008-01-03 Pavel Roskin <proski@gnu.org>
27890
27891 * kern/i386/linuxbios/init.c: Put "void" to all function
27892 declarations with no arguments.
27893 * kern/powerpc/ieee1275/init.c: Likewise.
27894 * term/i386/pc/at_keyboard.c: Likewise.
27895 * term/i386/pc/vga_text.c: Likewise.
27896 * util/grub-mkdevicemap.c: Likewise.
27897
b9416d00 278982008-01-02 Robert Millan <rmh@aybabtu.com>
27899
27900 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
27901 message when loaded image is out of bounds.
27902 (grub_multiboot_load_elf64): Likewise.
27903
92695df9 279042008-01-02 Pavel Roskin <proski@gnu.org>
27905
27906 * util/grub.d/10_linux.in: Try version without ".old" when
27907 looking for initrd. It's better to use initrd from the newer
27908 kernel of the same version than no initrd at all.
27909
d98d9cad 279102008-01-01 Robert Millan <rmh@aybabtu.com>
27911
27912 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
27913
dbfdce36 279142008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
27915
f19dbdb7 27916 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 27917 grub_video_get_active_render_target.
27918 (grub_video_adapter): Added unmap_color and get_active_render_target.
27919
f19dbdb7 27920 * video/video.c: Added grub_video_unmap_color and
dbfdce36 27921 grub_video_get_active_render_target.
27922 (grub_video_get_info): Changed method to accept NULL pointer as an
27923 argument to allow detection of active video adapter.
27924
27925 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
27926 grub_video_vbe_unmap_color_int.
27927 Added grub_video_vbe_unmap_color and
27928 grub_video_vbe_get_active_render_target.
27929 (grub_video_vbe_adapter): Added unmap_color and
27930 get_active_render_target.
27931
f19dbdb7 27932 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 27933 with grub_video_vbe_unmap_color_int.
27934
27935 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
27936 (DEFAULT_NORMAL_COLOR): Likewise.
27937 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
27938 (DEFAULT_FG_COLOR): Removed.
27939 (DEFAULT_BG_COLOR): Likewise.
27940 (DEFAULT_CURSOR_COLOR): Changed value.
27941 (grub_virtual_screen): Added standard_color_setting,
27942 normal_color_setting, highlight_color_setting and term_color.
27943 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
27944 (bitmap_width): Added.
27945 (bitmap_height): Likewise.
27946 (bitmap): Likewise.
27947 (set_term_color): Likewise.
27948 (grub_virtual_screen_setup): Changed to use new terminal coloring
27949 settings.
27950 (grub_gfxterm_init): Added init for bitmap.
27951 (grub_gfxterm_fini): Added destroy for bitmap.
27952 (redraw_screen_rect): Updated to use background bitmap and new
27953 terminal coloring.
27954 (scroll_up): Added optimization for case when there is no bitmap.
27955 (grub_gfxterm_cls): Fixed to use correct background color.
27956 (grub_virtual_screen_setcolorstate): Changed to use new terminal
27957 coloring.
27958 (grub_virtual_screen_setcolor): Likewise.
27959 (grub_virtual_screen_getcolor): Added.
27960 (grub_gfxterm_background_image_cmd): Likewise.
27961 (grub_video_term): Added setcolor and getcolor.
27962 (MOD_INIT): Added registration of background_image command.
27963 (MOD_TERM): Added unregistration for background_image command.
27964
c3c20931 279652007-12-30 Pavel Roskin <proski@gnu.org>
27966
27967 * loader/multiboot_loader.c: Fix multiboot command
27968 unregistration. Fix all typos in the word "multiboot".
27969
df266716 279702007-12-29 Pavel Roskin <proski@gnu.org>
94239199 27971
27972 * util/grub.d/10_linux.in: Refactor search for initrd. Add
27973 support for initrd names used in Fedora.
27974
fc6e896c 279752007-12-26 Bean <bean123ch@gmail.com>
27976
27977 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
27978 (cpio_mod_SOURCES): New variable.
27979 (cpio_mod_CFLAGS): Likewise.
27980 (cpio_mod_LDFLAGS): Likewise.
27981
27982 * fs/cpio.c: New file.
27983
27984 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
27985
27986 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
27987
27988 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
27989
27990 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27991
533110ad 279922007-12-25 Robert Millan <rmh@aybabtu.com>
27993
27994 * include/grub/term.h (struct grub_term): Add `getcolor' function.
27995 (grub_getcolor): New function.
27996
27997 * kern/term.c (grub_getcolor): New function.
27998 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
27999 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
28000 (print_entry): Set normal and highlight colors to
28001 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
28002 respectively, before printing and restore them to old
28003 values afterwards.
28004 (grub_menu_init_page): Likewise. Fill an additional colored space
28005 that would otherwise be left blank.
28006
28007 * term/efi/console.c (grub_console_getcolor): New function.
28008 (struct grub_console_term.getcolor): New variable.
28009 * term/i386/pc/console.c (grub_console_getcolor): New function.
28010 (struct grub_console_term.getcolor): New variable.
28011 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
28012 (struct grub_console_term.getcolor): New variable.
28013
28014 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
28015 (struct grub_console_term.setcolor): Remove variable.
28016 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
28017 (struct grub_console_term.setcolor): Remove variable.
28018 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
28019 (struct grub_console_term.setcolor): Remove variable.
28020 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
28021 (struct grub_console_term.setcolor): Remove variable.
28022
4931827f 280232007-12-25 Robert Millan <rmh@aybabtu.com>
28024
28025 * configure.ac: Search for possible unifont.hex locations, and
28026 define UNIFONT_HEX if found.
28027
28028 * Makefile.in (UNIFONT_HEX): Define variable.
28029 (DATA): Rename to ...
28030 (PKGLIB): ... this. Update all users.
28031 (PKGDATA): New variable.
28032 (pkgdata_IMAGES): Rename to ...
28033 (pkglib_IMAGES): ... this. Update all users.
28034 (pkgdata_MODULES): Rename to ...
28035 (pkglib_MODULES): ... this. Update all users.
28036 (pkgdata_PROGRAMS): Rename to ...
28037 (pkglib_PROGRAMS): ... this. Update all users.
28038 (pkgdata_DATA): Rename to ...
28039 (pkglib_DATA): ... this. Update all users.
28040 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
28041 (unicode.pff, ascii.pff): New rules.
28042 (all-local): Add `$(PKGDATA)' dependency.
28043 (install-local): Process `$(PKGDATA)'.
28044
28045 * util/update-grub_lib.in (font_path): Search for *.pff files in
28046 a few more locations, including `${pkgdata}'.
28047
57e57e31 280482007-12-23 Robert Millan <rmh@aybabtu.com>
28049
28050 Patch from Bean <bean123ch@gmail.com>:
28051 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
28052 `size'.
28053
4bc72aa9 280542007-12-21 Bean <bean123ch@gmail.com>
28055
28056 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
28057 (ntfscomp_mod_SOURCES): New variable.
28058 (ntfscomp_mod_CFLAGS): Likewise.
28059 (ntfscomp_mod_LDFLAGS): Likewise.
28060
28061 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
28062 (grub_probe_SOURCES): Likewise.
28063 (grub_emu_SOURCES): Likewise.
28064
28065 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
28066 (grub_emu_SOURCES): Likewise.
28067
28068 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
28069 (grub_emu_SOURCES): Likewise.
28070
28071 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
28072 (grub_emu_SOURCES): Likewise.
28073
28074 * fs/ntfs.c (grub_ntfscomp_func): New variable.
28075 (read_run_list): Renamed to grub_ntfs_read_run_list.
28076 (decomp_nextvcn): Moved to ntfscomp.c.
28077 (decomp_getch): Likewise.
28078 (decomp_get16): Likewise.
28079 (decomp_block): Likewise.
28080 (read_block): Likewise.
28081 (read_data): Partially moved to ntfscomp.c.
28082 (fixup): Change unsigned to grub_uint16_t.
28083 (read_mft): Change unsigned long to grub_uint32_t.
28084 (read_attr): Likewise.
28085 (read_data): Likewise.
28086 (read_run_data): Likewise.
28087 (read_run_list): Likewise.
28088 (read_mft): Likewise.
28089
28090 * fs/ntfscomp.c: New file.
28091
28092 * include/grub/ntfs.h: New file.
28093
af680a87 280942007-12-16 Robert Millan <rmh@aybabtu.com>
28095
28096 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
28097 IDE disk check, since Linux is known to support 20 IDE disks.
28098 Reported by Colin Watson.
28099
84be7599 281002007-12-15 Bean <bean123ch@gmail.com>
28101
28102 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
28103 (lnxboot_img_SOURCES): New variable.
28104 (lnxboot_img_ASFLAGS): Likewise.
28105 (lnxboot_img_LDFLAGS): Likewise.
28106
28107 * boot/i386/pc/lnxboot.S: New file.
28108
6af9db01 281092007-11-24 Pavel Roskin <proski@gnu.org>
28110
28111 * configure.ac: Test if '--build-id=none' is supported by the
28112 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
28113 objcopy to generate incorrect binary files (binutils
28114 2.17.50.0.18-1 as shipped by Fedora 8).
28115 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
28116 linking, so that build ID doesn't break the test.
28117
7361cfe6 281182007-11-24 Pavel Roskin <proski@gnu.org>
28119
28120 * include/grub/i386/time.h: use "void" in the argument list
28121 of grub_cpu_idle().
28122 * include/grub/powerpc/time.h: Likewise.
28123 * include/grub/sparc64/time.h: Likewise.
28124
1593e10c 281252007-11-18 Christian Franke <franke@computer.org>
28126
28127 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
28128 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
28129 This fixes the problem that function keys did not work in grub-emu.
28130
3b8db1a8 281312007-11-18 Christian Franke <franke@computer.org>
28132
28133 * disk/host.c (grub_host_open): Remove attribute unused from
28134 name parameter. Add check for "host". This fixes the problem
28135 that grub-emu does not find partitions.
28136
2e29408d 281372007-11-18 Christian Franke <franke@computer.org>
28138
28139 * util/hostfs.c (is_dir): New function.
28140 (grub_hostfs_dir): Handle missing dirent.d_type case.
28141 (grub_hostfs_read): Add missing fseek().
28142 (grub_hostfs_label): Clear label pointer. This fixes a crash
28143 of grub-emu on "ls (host)".
28144
398cd047 281452007-11-18 Christian Franke <franke@computer.org>
28146
28147 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
28148 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
28149 to 64 bit boundary by default.
28150
c405c391 281512007-11-18 Bean <bean123ch@gmail.com>
28152
28153 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
28154 (hexdump_mod_SOURCES): New variable.
28155 (hexdump_mod_CFLAGS): Likewise.
28156 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 28157
c405c391 28158 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28159
28160 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28161
28162 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28163
28164 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
28165
28166 * include/grub/hexdump.h: New file.
28167
28168 * commands/hexdump.c: New file.
28169
5cced7fd 281702007-11-10 Robert Millan <rmh@aybabtu.com>
28171
28172 * commands/i386/pc/play.c (beep_off): Switch order of arguments
28173 in grub_outb() calls.
28174 (beep_on): Likewise.
28175
8b714eb0 281762007-11-10 Christian Franke <franke@computer.org>
28177
28178 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
28179 (grub_menu_run): Likewise.
28180
ce0f1839 281812007-11-10 Robert Millan <rmh@aybabtu.com>
28182
28183 * include/grub/i386/efi/machine.h: New file.
28184 * include/grub/i386/linuxbios/machine.h: Likewise.
28185 * include/grub/i386/pc/machine.h: Likewise.
28186 * include/grub/powerpc/ieee1275/machine.h: Likewise.
28187 * include/grub/sparc64/ieee1275/machine.h: Likewise.
28188
28189 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
28190 (serial_hw_io_addr): New variable.
28191 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
28192 instead of `(unsigned short *) 0x400'.
28193
270c237d 281942007-11-10 Bean <bean123ch@gmail.com>
28195
28196 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
28197
a87783bf 281982007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
28199
28200 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
28201 (vga_mod_SOURCES): Added.
28202 (vga_mod_CFLAGS): Likewise.
28203 (vga_mod_LDFLAGS): Likewise.
28204
28205 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
28206 grub_outb() calls.
28207 (set_map_mask): Likewise.
28208 (set_read_map): Likewise.
28209 (set_read_address): Likewise.
28210 (vga_font): Removed variable.
28211 (get_vga_glyph): Removed function.
28212 (invalidate_char): Likewise.
28213 (write_char): Changed to use grub_font_get_glyph() for font
28214 information.
28215 (grub_vga_putchar): Likewise.
28216 (grub_vga_getcharwidth): Likewise.
28217
6433b448 282182007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
28219
28220 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
28221 flags.
28222 (pxeboot_img_LDFLAGS): Likewise.
28223 (diskboot_img_LDFLAGS): Likewise.
28224 (kernel_img_LDFLAGS): Likewise.
28225
49178511 282262007-11-06 Robert Millan <rmh@aybabtu.com>
28227
28228 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
28229 in grub_outb() calls.
28230 (serial_hw_init): Likewise.
28231
53b052de 282322007-11-05 Robert Millan <rmh@aybabtu.com>
28233
28234 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
28235 spaces. Skip non-regular files.
28236
5ab33bba 282372007-11-05 Robert Millan <rmh@aybabtu.com>
28238
28239 * kern/disk.c (grub_disk_firmware_fini)
28240 (grub_disk_firmware_is_tainted): New variables.
28241
28242 * include/grub/disk.h (grub_disk_firmware_fini)
28243 (grub_disk_firmware_is_tainted): Likewise.
28244
28245 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
28246 (grub_disk_biosdisk_fini): ... to here.
28247 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
28248 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
28249 is set. Register grub_disk_biosdisk_fini() in
28250 `grub_disk_firmware_fini'.
28251
28252 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
28253 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
28254 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
28255 to finish existing firmware disk interface.
28256
28257 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
28258 (ata_mod_SOURCES): New variable.
28259 (ata_mod_CFLAGS): Likewise.
28260 (ata_mod_LDFLAGS): Likewise.
28261
0149ab7c 282622007-11-05 Robert Millan <rmh@aybabtu.com>
28263
28264 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
28265 (grub_ata_wait): Reimplement using grub_millisleep().
28266
28267 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
28268 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
28269
be7ac41e 282702007-11-03 Marco Gerards <marco@gnu.org>
28271
28272 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
28273 (CRTC_ADDR_PORT): New macro.
28274 (CRTC_DATA_PORT): Likewise.
28275 (CRTC_CURSOR): Likewise.
28276 (CRTC_CURSOR_ADDR_HIGH): Likewise.
28277 (CRTC_CURSOR_ADDR_LOW): Likewise.
28278 (update_cursor): New function.
28279 (grub_console_real_putchar): Call `update_cursor'.
28280 (grub_console_gotoxy): Likewise.
28281 (grub_console_cls): Set the default color when clearing the
28282 screen.
28283 (grub_console_setcursor): Implemented.
28284
bb06ab2e 282852007-11-03 Marco Gerards <marco@gnu.org>
28286
28287 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
28288 become activate.
28289 (grub_ata_pio_write): Likewise.
28290
28291 (grub_atapi_identify): Wait after issuing an ATA command.
28292 (grub_atapi_packet): Likewise.
28293 (grub_ata_identify): Likewise.
28294 (grub_ata_readwrite): Likewise.
28295
cf8f780b 282962007-11-03 Marco Gerards <marco@gnu.org>
28297
28298 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
28299 (grub_ata_pio_write): Likewise.
28300 (grub_ata_readwrite): Use `grub_error', instead of
28301 returning `grub_errno'.
28302
ed649e54 283032007-11-03 Marco Gerards <marco@gnu.org>
28304
28305 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
28306 grub_ata_pio_write once for every single sector, instead of for
28307 multiple sectors.
28308
ca25d8f0 283092007-10-31 Robert Millan <rmh@aybabtu.com>
28310
28311 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
28312
28313 * conf/i386-linuxbios.rmk: New file.
28314
28315 * kern/i386/pc/hardware.c: Likewise.
28316 * term/i386/pc/at_keyboard.c: Likewise.
28317 * term/i386/pc/vga_text.c: Likewise.
28318
28319 * include/grub/i386/linuxbios/boot.h: Likewise.
28320 * include/grub/i386/linuxbios/console.h: Likewise.
28321 * include/grub/i386/linuxbios/init.h: Likewise.
28322 * include/grub/i386/linuxbios/kernel.h: Likewise.
28323 * include/grub/i386/linuxbios/loader.h: Likewise.
28324 * include/grub/i386/linuxbios/memory.h: Likewise.
28325 * include/grub/i386/linuxbios/serial.h: Likewise.
28326 * include/grub/i386/linuxbios/time.h: Likewise.
28327
28328 * kern/i386/linuxbios/init.c: Likewise.
28329 * kern/i386/linuxbios/startup.S: Likewise.
28330 * kern/i386/linuxbios/table.c: Likewise.
28331
e911ecc1 283322007-10-31 Marco Gerards <marco@gnu.org>
28333
28334 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
28335 (ata_mod_SOURCES): New variable.
28336 (ata_mod_CFLAGS): Likewise.
28337 (ata_mod_LDFLAGS): Likewise.
28338
28339 * disk/ata.c: New file.
28340
28341 * include/grub/disk.h (grub_disk_dev_id): Add
28342 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 28343
7f66d0e0 283442007-10-31 Robert Millan <rmh@aybabtu.com>
28345
28346 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
28347 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
28348
28349 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
28350 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
28351
28352 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
28353 `<grub/types.h>'.
28354
28355 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
28356
5cd7dd46 283572007-10-27 Robert Millan <rmh@aybabtu.com>
28358
3236ca65 28359 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 28360
2ebfc90f 283612007-10-22 Robert Millan <rmh@aybabtu.com>
28362
28363 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
28364 `"../realmode.S"'.
28365 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
28366
73fcb0f3 283672007-10-22 Robert Millan <rmh@aybabtu.com>
28368
28369 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
28370 (pkgdata_MODULES): Add `biosdisk.mod'.
28371 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
28372 variables.
28373
28374 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
28375 (grub_biosdisk_init): Replace with ...
28376 (GRUB_MOD_INIT(biosdisk)): ... this.
28377 (grub_biosdisk_fini): Replace with ...
28378 (GRUB_MOD_FINI(biosdisk)): ... this.
28379
28380 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
28381 (grub_machine_init): Remove call to grub_biosdisk_init().
28382 (grub_machine_fini): Remove call to grub_machine_fini().
28383
28384 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
28385
3381d274 283862007-10-22 Robert Millan <rmh@aybabtu.com>
28387
28388 * include/grub/time.h: New file.
28389 * include/grub/i386/time.h: Likewise.
28390 * include/grub/powerpc/time.h: Likewise.
28391 * include/grub/sparc64/time.h: Likewise.
28392
28393 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
28394 instances to ...
28395 (KERNEL_MACHINE_TIME_HEADER): ... this.
28396 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
28397 instances to ...
28398 (KERNEL_MACHINE_TIME_HEADER): ... this.
28399 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
28400 instances to ...
28401 (KERNEL_MACHINE_TIME_HEADER): ... this.
28402
28403 * kern/i386/efi/init.c: Include `<grub/time.h>'.
28404 (grub_millisleep): New function.
28405 * kern/i386/pc/init.c: Include `<grub/time.h>'.
28406 (grub_millisleep): New function.
28407 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
28408 Remove `grub/machine/time.h' include.
28409 (grub_millisleep): New function.
28410 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
28411 Remove `grub/machine/time.h' include.
28412 (grub_millisleep): New function.
28413
28414 * include/grub/misc.h (grub_div_roundup): New function.
28415
28416 * kern/misc.c: Include `<grub/time.h>'.
28417 (grub_millisleep_generic): New function.
28418
28419 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
28420 Add `time.h'.
28421 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
28422 Add `time.h'.
28423 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
28424 `machine/time.h'. Add `time.h'.
28425 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
28426
a39a0312 284272007-10-21 Robert Millan <rmh@aybabtu.com>
28428
28429 * include/grub/misc.h (grub_max): New function.
28430
2aad70e2 284312007-10-21 Robert Millan <rmh@aybabtu.com>
28432
28433 * util/misc.c (grub_util_info): Call fflush() before returning.
28434
54b71c4b 284352007-10-20 Robert Millan <rmh@aybabtu.com>
28436
28437 * genmk.rb (Image): Copy `extra_flags' from here ...
28438 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
28439
28440 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
28441 to `argc' and `args' arguments.
28442
a979f513 284432007-10-17 Robert Millan <rmh@aybabtu.com>
28444
28445 * kern/i386/loader.S: New file.
28446
28447 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
28448 * kern/i386/loader.S (grub_linux_prot_size)... to here.
28449 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
28450 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
28451 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
28452 * kern/i386/loader.S (grub_linux_real_addr)... to here.
28453 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
28454 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
28455 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
28456 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
28457 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
28458 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
28459 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
28460 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
28461
28462 * kern/i386/realmode.S: New file.
28463
28464 * kern/i386/pc/startup.S (protstack): Moved from here ...
28465 * kern/i386/realmode.S (protstack)... to here.
28466 * kern/i386/pc/startup.S (gdt): Moved from here ...
28467 * kern/i386/realmode.S (gdt)... to here.
28468 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
28469 * kern/i386/realmode.S (prot_to_real)... to here.
28470
28471 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
28472 `kern/i386/realmode.S'.
28473
825fc8fd 284742007-10-17 Robert Millan <rmh@aybabtu.com>
28475
28476 * include/grub/i386/loader.h: New file.
28477
28478 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
28479 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
28480 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
28481 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
28482 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
28483 * include/grub/i386/loader.h (grub_linux_prot_size)
28484 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
28485 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
28486 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
28487 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
28488
28489 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
28490
e179b2f4 284912007-10-15 Robert Millan <rmh@aybabtu.com>
28492
28493 * normal/misc.c (grub_normal_print_device_info): Do not probe for
28494 filesystem when dev->disk is unset.
28495 Do probe for filesystem even when dev->disk->has_partitions is set.
28496 In case a filesystem is found, always report it.
28497 In case it isn't, if dev->disk->has_partitions is set, report that
28498 a partition table was found instead of reporting that no filesystem
28499 could be identified.
28500
5db82af6 285012007-10-12 Robert Millan <rmh@aybabtu.com>
28502
28503 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
28504 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
28505
68f6ac74 28506 * include/grub/types.h (grub_host_to_target16): New macro.
28507 (grub_host_to_target32): Likewise.
28508 (grub_host_to_target64): Likewise.
28509 (grub_target_to_host16): Likewise.
28510 (grub_target_to_host32): Likewise.
28511 (grub_target_to_host64): Likewise.
5db82af6 28512
28513 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
28514 Renamed from to ...
28515 (GRUB_MOD_ALIGN): ...this. Update all users.
28516
68f6ac74 28517 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
28518 grub_host_to_target32.
28519 Replace grub_be_to_cpu32 with grub_target_to_host32.
28520 (load_modules): Likewise.
28521 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
28522 Replace grub_be_to_cpu32 with grub_target_to_host32.
28523 Replace grub_cpu_to_be16 with grub_host_to_target16.
28524 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 28525
3cf497cc 285262007-10-12 Robert Millan <rmh@aybabtu.com>
28527
28528 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
28529 * util/elf/grub-mkimage.c: ... here.
28530
28531 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
28532 `util/powerpc/ieee1275/grub-mkimage.c'.
28533
c8cc3692 285342007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 28535
c8cc3692 28536 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
28537 and make it easier to figure out.
28538 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
28539 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
28540 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
28541 leave us with less than HEAP_MIN_SIZE total heap.
28542 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 28543
5c58b791 285442007-10-03 Robert Millan <rmh@aybabtu.com>
28545
28546 * include/grub/i386/io.h: New file.
28547 * commands/i386/pc/play.c (inb): Removed.
28548 (outb): Removed.
28549 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
28550 with grub_outb().
afcd2ef8 28551 * term/i386/pc/serial.c (inb): Removed.
28552 (outb): Removed.
28553 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
28554 with grub_outb().
28555 * term/i386/pc/vga.c (inb): Removed.
28556 (outb): Removed.
28557 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
28558 with grub_outb().
5c58b791 28559
1a477ed6 285602007-10-02 Robert Millan <rmh@aybabtu.com>
28561
28562 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
28563 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28564 Reported by Marcin Kurek.
28565
6b5d80fa 285662007-09-07 Robert Millan <rmh@aybabtu.com>
28567
28568 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
28569 SmartFirmware version updates (as released by Sven Luther), and avoid
28570 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
28571 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
28572 known broken.
28573
5618afbf 285742007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
28575
28576 From Hitoshi Ozeki:
28577 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
28578 when merging two regions.
28579
6139dcd9 285802007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
28581
508e39ee 28582 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
28583 * normal/completion.c (grub_normal_do_completion): Likewise.
28584 Reported by Hitoshi Ozeki.
28585
285862007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 28587
6139dcd9 28588 Do not use devices at boot in chainloading.
f19dbdb7 28589
6139dcd9 28590 * loader/i386/pc/chainloader.c (boot_drive): New variable.
28591 (boot_part_addr): Likewise.
28592 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
28593 with BOOT_DRIVE and BOOT_PART_ADDR.
28594 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
28595 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
28596
38da6516 285972007-08-29 Robert Millan <rmh@aybabtu.com>
28598
28599 Patch from Simon Peter <dn.tlp@gmx.net>:
28600 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
28601 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
28602 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
28603 util/i386/pc/grub-setup.c_DEPENDENCIES.
28604 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
28605 util/grub-probe.c_DEPENDENCIES.
28606 * conf/powerpc-ieee1275.rmk: Likewise.
28607
29d0928c 286082007-08-28 Robert Millan <rmh@aybabtu.com>
28609
28610 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
28611 to tell grub-mkdevicemap how to name devices.
28612 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
28613 feature).
28614
28615 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
28616 util/i386/get_disk_name.c.
28617 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
28618 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
28619 util/ieee1275/get_disk_name.c.
28620
28621 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
28622
28623 * DISTLIST: Add util/i386/get_disk_name.c and
28624 util/ieee1275/get_disk_name.c.
28625
28626 * util/grub-mkdevicemap.c: Replace device naming logic with
28627 grub_util_get_disk_name() calls.
28628
5a0d3cca 286292007-08-20 Robert Millan <rmh@aybabtu.com>
28630
28631 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
28632 (so that it works for both plural and singular quantities).
28633
8b72db2f 286342007-08-05 Robert Millan <rmh@aybabtu.com>
28635
28636 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
28637 so that [xz] isn't taken into account when determining order.
28638
352466bf 286392007-08-02 Marco Gerards <marco@gnu.org>
28640
28641 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
28642 `include/multiboot2.h', `include/grub/elfload.h',
28643 `include/multiboot.h', `include/grub/multiboot.h',
28644 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
28645 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
28646 `kern/elf.c', `loader/multiboot_loader.c',
28647 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
28648 `loader/i386/pc/multiboot2.c',
28649 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
28650 `util/i386/pc/grub-mkrescue.in'. Remove
28651 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
28652 `include/grub/i386/pc/util/biosdisk.h' and
28653 `include/grub/powerpc/ieee1275/multiboot.h'.
28654
8f096014 286552007-08-02 Bean <bean123ch@gmail.com>
28656
28657 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
28658 (ntfs_mod_SOURCES): New variable.
28659 (ntfs_mod_CFLAGS): Likewise.
28660 (ntfs_mod_LDFLAGS): Likewise.
28661
28662 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
28663 (grub_probe_SOURCES): Likewise.
28664 (grub_emu_SOURCES): Likewise.
28665
28666 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
28667 (grub_emu_SOURCES): Likewise.
28668
28669 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
28670 (grub_emu_SOURCES): Likewise.
f19dbdb7 28671
8f096014 28672 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
28673
28674 * fs/ntfs.c: New file.
28675
9959f7db 286762007-08-02 Bean <bean123ch@gmail.com>
28677
28678 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
28679
28680 * file.h (grub_file): Likewise.
28681
28682 * fshelp.h (grub_fshelp_read_file): Likewise.
28683
28684 * util/i386/pc/grub-setup.c (setup): Likewise.
28685 (save_first_sector): Likewise.
28686 (save_blocklists): Likewise.
f19dbdb7 28687
9959f7db 28688 * fs/affs.c (grub_affs_read_file): Likewise.
28689
28690 * fs/ext2.c (grub_ext2_read_file): Likewise.
28691
28692 * fs/fat.c (grub_fat_read_data): Likewise.
28693
28694 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
28695
28696 * fs/hfs.c (grub_hfs_read_file): Likewise.
28697
28698 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
28699
28700 * fs/jfs.c (grub_jfs_read_file): Likewise.
28701
28702 * fs/minix.c (grub_minix_read_file): Likewise.
28703
28704 * fs/sfs.c (grub_sfs_read_file): Likewise.
28705
28706 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 28707
9959f7db 28708 * fs/xfs.c (grub_xfs_read_file): Likewise.
28709
28710 * command/blocklist.c (read_blocklist): Likewise.
28711 (print_blocklist): Likewise.
28712
0a203f83 287132007-08-02 Marco Gerards <marco@gnu.org>
28714
28715 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
28716 `util/hostfs.c'.
28717
28718 * disk/host.c: New file.
28719
28720 * util/hostfs.c: Likewise.
28721
28722 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
28723 return `GRUB_ERR_BAD_FS'.
28724 * fs/sfs.c (grub_sfs_mount): Likewise.
28725 * fs/xfs.c (grub_xfs_mount): Likewise.
28726
28727 * include/grub/disk.h (enum grub_disk_dev_id): Add
28728 `GRUB_DISK_DEVICE_HOST_ID'.
28729
28730 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
28731
e5dfe777 287322007-07-24 Jerone Young <jerone@gmail.com>
28733
f19dbdb7 28734 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 28735 modules for compilation.
28736 * conf/powerpc-ieee1275.rmk: Likewise.
28737
28738 * include/multiboot.h: Move multiboot definitions to one file. Rename
28739 many definitions to not get grub specific.
28740 * include/multiboot2.h: Create header with multiboot 2 definitions.
28741 * include/grub/multiboot.h: Header for grub specific function
28742 prototypes and definitions.
28743 * include/grub/multiboot2.h: Likewise.
28744 * include/grub/multiboot_loader.h: Likewise.
28745 * include/grub/i386/pc/multiboot.h: Removed.
28746 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
28747
28748 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
28749 and 2 to allow for one multiboot and module commands.
28750 * loader/multiboot2.c: Add multiboot2 functionality.
28751 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
28752 and definition names.
28753 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
28754 2 functions.
28755 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
28756 ieee1275 specific multiboot2 code.
28757
28758 * kern/i386/pc/startup.S: Change headers and definition names for
28759 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
28760
daf0f0ba 287612007-07-22 Robert Millan <rmh@aybabtu.com>
28762
28763 * geninitheader.sh: Process file specified in first parameter rather
28764 than hardcoding grub_modules_init.lst.
fe6b695a 28765 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 28766 than hardcoding grub_modules_init.h.
28767
28768 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
28769 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
28770 grub_probe_init.[ch] and grub_setup_init.[ch].
28771
28772 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
28773 grub_modules_init.h with grub_emu_init.h.
28774 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
28775 grub_probe_init.[ch] files.
28776 * conf/i386-efi.rmk: Likewise.
28777 * conf/i386-pc.rmk: Likewise.
28778 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
28779 grub_setup_init.[ch] files.
28780
28781 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
28782 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
28783 to initialize modules rather than a list of hardcoded functions.
28784 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
28785 grub_init_all() to initialize modules rather than a list of hardcoded
28786 functions.
28787
54cdc1cc 287882007-07-22 Robert Millan <rmh@aybabtu.com>
28789
28790 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28791 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
28792
ad0686cc 287932007-07-22 Robert Millan <rmh@aybabtu.com>
28794
28795 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
28796 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
28797 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
28798 flag when running on SmartFirmware.
28799 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
28800 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
28801 was set.
28802
28803 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
28804 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
28805 rather than decreasing it.
28806
28807 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
28808 there's not enough space to do it, fail in the same way as when it
28809 can't be done because there are no partitions.
28810
28811 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
28812 when nvsetenv failed.
28813
969c02ec 288142007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
28815
28816 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
28817 because this rule is automatically generated.
28818 (grub-mkrescue): Removed for the same reason as above.
28819
5a79f472 288202007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
28821
28822 Migrate to GNU General Public License Version 3.
f19dbdb7 28823
5a79f472 28824 * COPYING: Replaced with the plain text version of GPLv3.
28825
28826 * config.guess: Updated from gnulib.
28827 * config.sub: Likewise.
28828
28829 * geninit.sh: Output a GPLv3 copyright notice.
28830 * geninitheader.sh: Likewise.
28831 * genmodsrc.sh: Likewise.
28832 * gensymlist.sh.in: Likewise.
28833
28834 * boot/i386/pc/boot.S: Upgraded to GPLv3.
28835 * boot/i386/pc/diskboot.S: Likewise.
28836 * boot/i386/pc/pxeboot.S: Likewise.
28837 * commands/blocklist.c: Likewise.
28838 * commands/boot.c: Likewise.
28839 * commands/cat.c: Likewise.
28840 * commands/cmp.c: Likewise.
28841 * commands/configfile.c: Likewise.
28842 * commands/echo.c: Likewise.
28843 * commands/help.c: Likewise.
28844 * commands/ls.c: Likewise.
28845 * commands/search.c: Likewise.
28846 * commands/terminal.c: Likewise.
28847 * commands/test.c: Likewise.
28848 * commands/videotest.c: Likewise.
28849 * commands/i386/cpuid.c: Likewise.
28850 * commands/i386/pc/halt.c: Likewise.
28851 * commands/i386/pc/play.c: Likewise.
28852 * commands/i386/pc/reboot.c: Likewise.
28853 * commands/i386/pc/vbeinfo.c: Likewise.
28854 * commands/i386/pc/vbetest.c: Likewise.
28855 * commands/ieee1275/halt.c: Likewise.
28856 * commands/ieee1275/reboot.c: Likewise.
28857 * commands/ieee1275/suspend.c: Likewise.
28858 * disk/loopback.c: Likewise.
28859 * disk/lvm.c: Likewise.
28860 * disk/raid.c: Likewise.
28861 * disk/efi/efidisk.c: Likewise.
28862 * disk/i386/pc/biosdisk.c: Likewise.
28863 * disk/ieee1275/ofdisk.c: Likewise.
28864 * font/manager.c: Likewise.
28865 * fs/affs.c: Likewise.
28866 * fs/ext2.c: Likewise.
28867 * fs/fat.c: Likewise.
28868 * fs/fshelp.c: Likewise.
28869 * fs/hfs.c: Likewise.
28870 * fs/hfsplus.c: Likewise.
28871 * fs/iso9660.c: Likewise.
28872 * fs/jfs.c: Likewise.
28873 * fs/minix.c: Likewise.
28874 * fs/sfs.c: Likewise.
28875 * fs/ufs.c: Likewise.
28876 * fs/xfs.c: Likewise.
28877 * hello/hello.c: Likewise.
28878 * include/grub/acorn_filecore.h: Likewise.
28879 * include/grub/arg.h: Likewise.
28880 * include/grub/bitmap.h: Likewise.
28881 * include/grub/boot.h: Likewise.
28882 * include/grub/cache.h: Likewise.
28883 * include/grub/device.h: Likewise.
28884 * include/grub/disk.h: Likewise.
28885 * include/grub/dl.h: Likewise.
28886 * include/grub/elfload.h: Likewise.
28887 * include/grub/env.h: Likewise.
28888 * include/grub/err.h: Likewise.
28889 * include/grub/file.h: Likewise.
28890 * include/grub/font.h: Likewise.
28891 * include/grub/fs.h: Likewise.
28892 * include/grub/fshelp.h: Likewise.
28893 * include/grub/gzio.h: Likewise.
28894 * include/grub/hfs.h: Likewise.
28895 * include/grub/kernel.h: Likewise.
28896 * include/grub/loader.h: Likewise.
28897 * include/grub/lvm.h: Likewise.
28898 * include/grub/misc.h: Likewise.
28899 * include/grub/mm.h: Likewise.
28900 * include/grub/net.h: Likewise.
28901 * include/grub/normal.h: Likewise.
28902 * include/grub/parser.h: Likewise.
28903 * include/grub/partition.h: Likewise.
28904 * include/grub/pc_partition.h: Likewise.
28905 * include/grub/raid.h: Likewise.
28906 * include/grub/rescue.h: Likewise.
28907 * include/grub/script.h: Likewise.
28908 * include/grub/setjmp.h: Likewise.
28909 * include/grub/symbol.h: Likewise.
28910 * include/grub/term.h: Likewise.
28911 * include/grub/terminfo.h: Likewise.
28912 * include/grub/tparm.h: Likewise.
28913 * include/grub/types.h: Likewise.
28914 * include/grub/video.h: Likewise.
28915 * include/grub/efi/api.h: Likewise.
28916 * include/grub/efi/chainloader.h: Likewise.
28917 * include/grub/efi/console.h: Likewise.
28918 * include/grub/efi/console_control.h: Likewise.
28919 * include/grub/efi/disk.h: Likewise.
28920 * include/grub/efi/efi.h: Likewise.
28921 * include/grub/efi/pe32.h: Likewise.
28922 * include/grub/efi/time.h: Likewise.
28923 * include/grub/i386/linux.h: Likewise.
28924 * include/grub/i386/setjmp.h: Likewise.
28925 * include/grub/i386/types.h: Likewise.
28926 * include/grub/i386/efi/kernel.h: Likewise.
28927 * include/grub/i386/efi/loader.h: Likewise.
28928 * include/grub/i386/efi/time.h: Likewise.
28929 * include/grub/i386/pc/biosdisk.h: Likewise.
28930 * include/grub/i386/pc/boot.h: Likewise.
28931 * include/grub/i386/pc/chainloader.h: Likewise.
28932 * include/grub/i386/pc/console.h: Likewise.
28933 * include/grub/i386/pc/init.h: Likewise.
28934 * include/grub/i386/pc/kernel.h: Likewise.
28935 * include/grub/i386/pc/loader.h: Likewise.
28936 * include/grub/i386/pc/memory.h: Likewise.
28937 * include/grub/i386/pc/multiboot.h: Likewise.
28938 * include/grub/i386/pc/serial.h: Likewise.
28939 * include/grub/i386/pc/time.h: Likewise.
28940 * include/grub/i386/pc/vbe.h: Likewise.
28941 * include/grub/i386/pc/vbeblit.h: Likewise.
28942 * include/grub/i386/pc/vbefill.h: Likewise.
28943 * include/grub/i386/pc/vbeutil.h: Likewise.
28944 * include/grub/i386/pc/vga.h: Likewise.
28945 * include/grub/ieee1275/ieee1275.h: Likewise.
28946 * include/grub/ieee1275/ofdisk.h: Likewise.
28947 * include/grub/powerpc/libgcc.h: Likewise.
28948 * include/grub/powerpc/setjmp.h: Likewise.
28949 * include/grub/powerpc/types.h: Likewise.
28950 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
28951 * include/grub/powerpc/ieee1275/console.h: Likewise.
28952 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
28953 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28954 * include/grub/powerpc/ieee1275/loader.h: Likewise.
28955 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
28956 * include/grub/powerpc/ieee1275/time.h: Likewise.
28957 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
28958 * include/grub/sparc64/libgcc.h: Likewise.
28959 * include/grub/sparc64/setjmp.h: Likewise.
28960 * include/grub/sparc64/types.h: Likewise.
28961 * include/grub/sparc64/ieee1275/console.h: Likewise.
28962 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
28963 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28964 * include/grub/sparc64/ieee1275/time.h: Likewise.
28965 * include/grub/util/biosdisk.h: Likewise.
28966 * include/grub/util/getroot.h: Likewise.
28967 * include/grub/util/lvm.h: Likewise.
28968 * include/grub/util/misc.h: Likewise.
28969 * include/grub/util/raid.h: Likewise.
28970 * include/grub/util/resolve.h: Likewise.
28971 * io/gzio.c: Likewise.
28972 * kern/device.c: Likewise.
28973 * kern/disk.c: Likewise.
28974 * kern/dl.c: Likewise.
28975 * kern/elf.c: Likewise.
28976 * kern/env.c: Likewise.
28977 * kern/err.c: Likewise.
28978 * kern/file.c: Likewise.
28979 * kern/fs.c: Likewise.
28980 * kern/loader.c: Likewise.
28981 * kern/main.c: Likewise.
28982 * kern/misc.c: Likewise.
28983 * kern/mm.c: Likewise.
28984 * kern/parser.c: Likewise.
28985 * kern/partition.c: Likewise.
28986 * kern/rescue.c: Likewise.
28987 * kern/term.c: Likewise.
28988 * kern/efi/efi.c: Likewise.
28989 * kern/efi/init.c: Likewise.
28990 * kern/efi/mm.c: Likewise.
28991 * kern/i386/dl.c: Likewise.
28992 * kern/i386/efi/init.c: Likewise.
28993 * kern/i386/efi/startup.S: Likewise.
28994 * kern/i386/pc/init.c: Likewise.
28995 * kern/i386/pc/lzo1x.S: Likewise.
28996 * kern/i386/pc/startup.S: Likewise.
28997 * kern/ieee1275/ieee1275.c: Likewise.
28998 * kern/powerpc/cache.S: Likewise.
28999 * kern/powerpc/dl.c: Likewise.
29000 * kern/powerpc/ieee1275/cmain.c: Likewise.
29001 * kern/powerpc/ieee1275/crt0.S: Likewise.
29002 * kern/powerpc/ieee1275/init.c: Likewise.
29003 * kern/powerpc/ieee1275/openfw.c: Likewise.
29004 * kern/sparc64/cache.S: Likewise.
29005 * kern/sparc64/dl.c: Likewise.
29006 * kern/sparc64/ieee1275/init.c: Likewise.
29007 * kern/sparc64/ieee1275/openfw.c: Likewise.
29008 * loader/efi/chainloader.c: Likewise.
29009 * loader/efi/chainloader_normal.c: Likewise.
29010 * loader/i386/efi/linux.c: Likewise.
29011 * loader/i386/efi/linux_normal.c: Likewise.
29012 * loader/i386/pc/chainloader.c: Likewise.
29013 * loader/i386/pc/chainloader_normal.c: Likewise.
29014 * loader/i386/pc/linux.c: Likewise.
29015 * loader/i386/pc/linux_normal.c: Likewise.
29016 * loader/i386/pc/multiboot.c: Likewise.
29017 * loader/i386/pc/multiboot_normal.c: Likewise.
29018 * loader/powerpc/ieee1275/linux.c: Likewise.
29019 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
29020 * normal/arg.c: Likewise.
29021 * normal/cmdline.c: Likewise.
29022 * normal/command.c: Likewise.
29023 * normal/completion.c: Likewise.
29024 * normal/execute.c: Likewise.
29025 * normal/function.c: Likewise.
29026 * normal/lexer.c: Likewise.
29027 * normal/main.c: Likewise.
29028 * normal/menu.c: Likewise.
29029 * normal/menu_entry.c: Likewise.
29030 * normal/misc.c: Likewise.
29031 * normal/parser.y: Likewise.
29032 * normal/script.c: Likewise.
29033 * normal/i386/setjmp.S: Likewise.
29034 * normal/powerpc/setjmp.S: Likewise.
29035 * normal/sparc64/setjmp.S: Likewise.
29036 * partmap/acorn.c: Likewise.
29037 * partmap/amiga.c: Likewise.
29038 * partmap/apple.c: Likewise.
29039 * partmap/gpt.c: Likewise.
29040 * partmap/pc.c: Likewise.
29041 * partmap/sun.c: Likewise.
29042 * term/gfxterm.c: Likewise.
29043 * term/terminfo.c: Likewise.
29044 * term/efi/console.c: Likewise.
29045 * term/i386/pc/console.c: Likewise.
29046 * term/i386/pc/serial.c: Likewise.
29047 * term/i386/pc/vesafb.c: Likewise.
29048 * term/i386/pc/vga.c: Likewise.
29049 * term/ieee1275/ofconsole.c: Likewise.
29050 * util/biosdisk.c: Likewise.
29051 * util/console.c: Likewise.
29052 * util/genmoddep.c: Likewise.
29053 * util/getroot.c: Likewise.
29054 * util/grub-emu.c: Likewise.
29055 * util/grub-mkdevicemap.c: Likewise.
29056 * util/grub-probe.c: Likewise.
29057 * util/lvm.c: Likewise.
29058 * util/misc.c: Likewise.
29059 * util/raid.c: Likewise.
29060 * util/resolve.c: Likewise.
29061 * util/update-grub.in: Likewise.
29062 * util/update-grub_lib.in: Likewise.
29063 * util/grub.d/00_header.in: Likewise.
29064 * util/grub.d/10_hurd.in: Likewise.
29065 * util/grub.d/10_linux.in: Likewise.
29066 * util/i386/efi/grub-install.in: Likewise.
29067 * util/i386/efi/grub-mkimage.c: Likewise.
29068 * util/i386/pc/grub-install.in: Likewise.
29069 * util/i386/pc/grub-mkimage.c: Likewise.
29070 * util/i386/pc/grub-mkrescue.in: Likewise.
29071 * util/i386/pc/grub-setup.c: Likewise.
29072 * util/i386/pc/misc.c: Likewise.
29073 * util/powerpc/ieee1275/grub-install.in: Likewise.
29074 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
29075 * util/powerpc/ieee1275/misc.c: Likewise.
29076 * video/bitmap.c: Likewise.
29077 * video/video.c: Likewise.
29078 * video/i386/pc/vbe.c: Likewise.
29079 * video/i386/pc/vbeblit.c: Likewise.
29080 * video/i386/pc/vbefill.c: Likewise.
29081 * video/i386/pc/vbeutil.c: Likewise.
29082 * video/readers/tga.c: Likewise.
29083
3572d015 290842007-07-02 Robert Millan <rmh@aybabtu.com>
29085
29086 * conf/i386-efi.rmk: Replace obsolete reference to
29087 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
29088 with util/getroot.c.
29089 * conf/powerpc-ieee1275.rmk: Likewise.
29090 * conf/sparc64-ieee1275.rmk: Likewise.
29091
29092 * util/grub-emu.c (main): Fix unchecked pointer handling.
29093
2c2a681b 290942007-07-02 Robert Millan <rmh@aybabtu.com>
29095
29096 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
29097 invocation to fail, in order to support partition-less media.
29098
29099 * util/i386/pc/grub-install.in: Likewise.
29100
29101 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
29102 which fs or partmap modules are needed (akin to its sister scripts).
29103
29104 Also use grub-probe to get rid of unportable /proc/mounts check.
29105
29106 Print the same informational message that the other scripts do, before
fe6b695a 29107 exiting.
2c2a681b 29108
6193defe 291092007-06-23 Robert Millan <rmh@aybabtu.com>
29110
fe6b695a 29111 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 29112 a font file can be found and, if so, echo the GRUB path to it.
29113
29114 * util/update-grub.in: Handle multiple terminals depending on user
29115 input, platform availability and font file presence. Propagate
29116 variables of our findings to /etc/grub.d/ children.
29117
29118 * util/grub.d/00_header.in: Handle multiple terminals, based on
29119 environment setup by update-grub.
29120
eface1dc 291212007-06-23 Robert Millan <rmh@aybabtu.com>
29122
ba50d28f 29123 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 29124
bf697e28 291252007-06-21 Robert Millan <rmh@aybabtu.com>
29126
29127 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
29128 indicate end of data section in kernel image.
29129 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
29130 GRUB_KERNEL_MACHINE_DATA_END.
29131
29132 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
29133 space for it.
29134 * kern/i386/efi/startup.S: Likewise.
29135
29136 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
29137 during image generation. Implement --prefix option to override this
29138 patch.
29139 * util/i386/efi/grub-mkimage.c: Likewise.
29140
29141 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
29142 code to make path relative to its root into a separate function.
29143
29144 * util/i386/pc/grub-install.in: Use newly provided
29145 make_system_path_relative_to_its_root() to convert ${grubdir}, then
29146 pass the result to grub-install --prefix.
29147
baa574b4 291482007-06-13 Robert Millan <rmh@aybabtu.com>
29149
29150 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
29151 DEFAULT_DEVICE_MAP.
29152 * util/grub-emu.c: Use above definitions from misc.h instead of
29153 defining them.
29154 * util/grub-mkdevicemap.c: Likewise.
29155 * util/i386/pc/grub-setup.c: Likewise.
29156 * util/grub-probe.c: Likewise.
29157 (probe): Abort with grub_util_error() when either
29158 grub_guess_root_device or grub_util_get_grub_dev fails.
29159
0215dcbf 291602007-06-12 Robert Millan <rmh@aybabtu.com>
29161
29162 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
29163 "pager" assignment.
29164 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
29165 "pcdata".
29166 * util/grub-probe.c (probe): Likewise for "drive_name".
29167
8af2ab7b 291682007-06-11 Robert Millan <rmh@aybabtu.com>
29169
29170 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
29171 not just the cdrom one.
29172
59d31694 291732007-06-11 Robert Millan <rmh@aybabtu.com>
29174
29175 * util/i386/pc/grub-mkrescue.in: Add "set -e".
29176 Add --pkglibdir=DIR option to override pkglibdir.
29177 Mention --image-type=TYPE in help output.
29178 Fix --grub-mkimage (it was a no-op).
fe6b695a 29179 Abort gracefully when no parameter is given.
59d31694 29180
7ee367e4 291812007-06-11 Robert Millan <rmh@aybabtu.com>
29182
29183 * util/i386/pc/grub-mkrescue.in: New file.
29184 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
29185 * Makefile.in: Handle bin_SCRIPTS.
29186
29b0ed46 291872007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
29188
29189 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
29190 list of video modes.
29191
c0f90770 291922007-06-06 Robert Millan <rmh@aybabtu.com>
29193
29194 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
29195 file doesn't exist, or if it is in a filesystem grub can't read.
29196
29197 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
29198 not abort if GRUB_DRIVE could not be defined. Rearrange generated
29199 header comment to fit in 80 columns when the variables are resolved.
29200
29201 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
29202 could be identified by update-grub. Remove redundant check for
fe6b695a 29203 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 29204 handles that).
29205
fb36dc26 292062007-06-04 Robert Millan <rmh@aybabtu.com>
29207
29208 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
29209
29210 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
29211
29212 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
29213
0c68c93e 292142007-06-04 Robert Millan <rmh@aybabtu.com>
29215
29216 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
29217
29218 * include/grub/partition.h: Declare grub_apple_partition_map_init and
29219 grub_apple_partition_map_fini.
29220
29221 * util/biosdisk.c
29222 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
29223 to access >2 TiB disks).
29224
29225 Print disk->total_sectors with %llu instead of %lu, since this
29226 variable is always 64-bit (prevents wrong disk size from being displayed
29227 on either >2 TiB disk or big-endian CPU).
29228
29229 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
29230 into a generic case that supports all (sane) partition maps.
29231
29232 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
29233 breaks big-endian.
29234
29235 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
29236 and grub_apple_partition_map_fini() after that.
29237
0f23eb74 292382007-06-01 Robert Millan <rmh@aybabtu.com>
29239
29240 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
29241
29242 * util/grub.d/00_header.in: Only enable gfxterm when
29243 convert_system_path_to_grub_path() succeeds.
29244
42c71976 292452007-05-20 Robert Millan <rmh@aybabtu.com>
29246
29247 * util/update-grub_lib.in: New file.
29248 * DISTLIST: Add update-grub_lib.in.
29249 * conf/common.rmk: Generate update-grub_lib and install it in
29250 $(lib_DATA).
29251 * Makefile.in: Add install routine for $(lib_DATA).
29252
29253 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
29254 function provided by update-grub_lib to support arbitrary paths of
29255 unifont.pff.
29256 * util/update-grub.in: Use convert_system_path_to_grub_path() to
29257 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
29258
5beb2291 292592007-05-19 Robert Millan <rmh@aybabtu.com>
29260
29261 * commands/i386/cpuid.c: New module.
29262 * DISTLIST: Add it.
29263 * conf/i386-efi.rmk: Enable cpuid.mod.
29264 * conf/i386-pc.rmk: Likewise.
29265
7262eca1 292662007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
29267
29268 * kern/disk.c (grub_disk_read): Check return value of
29269 grub_realloc().
29270
260ba823 292712007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
29272
29273 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
29274 arrays.
29275 * disk/raid.c (grub_raid_open): Likewise.
29276
1ecb6cf2 292772007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
29278
29279 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
29280 stack instead of on the heap.
29281
29282 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
29283 before doing a read on it.
29284
29285 * configure.ac: Only use -fno-stack-protector for the target
29286 environment.
f19dbdb7 29287
21c8cbb1 292882007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
29289
29290 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
29291 __attribute_ ((unused)) to mode_type argument.
29292
29293 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 29294
21c8cbb1 29295 * kern/misc.c (memcmp): Fix prototype.
29296
29297 * include/grub/partition.h [GRUB_UTIL]
29298 (grub_gpt_partition_map_init): Add prototype.
29299 (grub_gpt_partition_map_fini): Likewise.
29300
29301 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
29302 at the right place.
29303
29304 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
29305 (grub_fat_read_data): Likewise.
29306 (grub_fat_find_dir): Likewise.
29307
29308 * font/manager.c (find_glyph): Make table a const.
29309 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 29310
849d55d3 293112007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
29312
29313 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
29314 code, first search for device in /dev/mapper, then in /dev.
29315 (grub_util_get_grub_dev): New function.
29316 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
29317 prototype.
29318 * util/grub-probe.c (probe): Remove check for RAID, call
29319 grub_util_get_grub_dev() instead of
29320 grub_util_biosdisk_get_grub_dev().
29321 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
29322 grub_util_biosdisk_get_grub_dev().
29323 * util/i386/pc/grub-setup.c (main): Likewise.
29324
8fff7c2f 293252007-05-16 Robert Millan <rmh@aybabtu.com>
29326
29327 * DISTLIST: Update for the latest changes.
29328 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
29329 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
29330 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
29331 grub/util/biosdisk.h.
29332 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
29333 grub/util/biosdisk.h.
29334
48e12b52 293352007-05-16 Robert Millan <rmh@aybabtu.com>
29336
29337 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
29338
46b9d128 293392007-05-16 Robert Millan <rmh@aybabtu.com>
29340
29341 * util/i386/efi/grub-install.in: New.
29342 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
29343 newly added grub-install.
29344 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
29345 include.
29346 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
29347 grub/util/biosdisk.h.
29348 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
29349 grub/util/biosdisk.h.
29350
2d1a40a9 293512007-05-16 Robert Millan <rmh@aybabtu.com>
29352
29353 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
29354 * include/grub/util/biosdisk.h: ... here.
29355 * util/i386/pc/biosdisk.c: Moved to ...
29356 * util/biosdisk.c: ... here.
29357 * util/i386/pc/getroot.c: Moved to ...
29358 * util/getroot.c: ... here.
29359 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
29360 * util/grub-mkdevicemap.c: ... here.
29361 * util/i386/pc/grub-probe.c: Moved to ...
29362 * util/grub-probe.c: ... here.
29363
9e26e3bc 293642007-05-15 Robert Millan <rmh@aybabtu.com>
29365
29366 * util/update-grub.in: Remove duplicated line in grub.cfg header
29367 message.
29368
57f96397 293692007-05-13 Robert Millan <rmh@aybabtu.com>
29370
29371 * util/update-grub.in: Fix a few assumptions about the devices holding
29372 /, /boot and /boot/grub being the same.
29373 * util/grub.d/00_header.in: Likewise.
29374 * util/grub.d/10_hurd.in: Likewise.
29375 * util/grub.d/10_linux.in: Likewise.
29376
29377 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
29378 patterns. Use that to define the `.old' suffix as older than `'.
29379
29380 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
29381
29382 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
29383 the grub.cfg header message.
29384
2e610d62 293852007-05-11 Robert Millan <rmh@aybabtu.com>
29386
29387 * util/update-grub.in: Create device.map if it doesn't already exist,
29388 before attempting to run grub-probe.
29389 Check for grub-probe and grub-mkdevicemap with the same code
29390 grub-install is using.
29391 Remove test mode.
29392
3f6a10ef 293932007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
29394
29395 * Makefile.in: Add the datarootdir autoconf variable.
29396
02e7b75e 293972007-05-09 Robert Millan <rmh@aybabtu.com>
29398
29399 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 29400 fail gracefully if dev->disk->partition == NULL.
02e7b75e 29401
75f396cc 294022007-05-07 Robert Millan <rmh@aybabtu.com>
29403
29404 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
29405 determine partition map module.
29406 * util/i386/pc/grub-install.in: Use this feature to decide which
29407 partition module to load, instead of hardcoding pc and gpt.
29408
da65cb36 294092007-05-07 Robert Millan <rmh@aybabtu.com>
29410
29411 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
29412 source directory differs from build directory.
29413
b57d6a91 294142007-05-05 Robert Millan <rmh@aybabtu.com>
29415
29416 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
29417 initialisation.
29418
509d00f1 294192007-05-05 Robert Millan <rmh@aybabtu.com>
29420
29421 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
29422
c48f23ef 294232007-05-05 Robert Millan <rmh@aybabtu.com>
29424
29425 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
29426 command-line arguments via ${GRUB_CMDLINE_LINUX}.
29427
20b97658 294282007-05-05 Robert Millan <rmh@aybabtu.com>
29429
29430 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
29431 (grub_probe_SOURCES): Likewise.
29432 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
29433 GPT and initialize dos_part and bsd_part accordingly.
29434 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
29435 install_bsd_part.
29436 (main): Activate gpt module for use during partition identification,
29437 and deactivate it afterwards.
29438 * util/i386/pc/grub-install.in: Add gpt module to core.img.
29439 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
29440 partition identification, and deactivate it afterwards.
29441
99123174 294422007-05-05 Robert Millan <rmh@aybabtu.com>
29443
29444 * term/i386/pc/console.c (grub_console_fini): Call
29445 grub_term_set_current() before grub_term_unregister().
29446
ebd97f6e 294472007-05-04 Robert Millan <rmh@aybabtu.com>
29448
29449 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
29450 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
29451 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
29452 and update-grub_DATA.
29453 * conf/common.rmk: Build and install update-grub components.
29454 * conf/common.mk: Regenerate.
29455 * util/update-grub.in: New. Core of update-grub.
29456 * util/grub.d/00_header.in: New. Generates grub.cfg header.
29457 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
29458 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
29459 * util/grub.d/README: New. Document grub.d directory layout.
29460
b06a264d 294612007-05-01 Robert Millan <rmh@aybabtu.com>
29462
29463 * util/grub-emu.c: Move initialization functions
29464 grub_util_biosdisk_init() and grub_init_all() before
29465 grub_util_biosdisk_get_grub_dev(), which relies on them.
29466
41f0050e 294672007-04-19 Robert Millan <rmh@aybabtu.com>
29468
29469 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
29470 it is used later.
29471
04582bb3 294722007-04-18 Jerone Young <jerone@gmail.com>
29473
f19dbdb7 29474 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 29475 stanza.
29476
08db4632 294772007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 29478
08db4632 29479 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
29480 continue on and look for device node with real device name.
29481
801b76be 294822007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 29483
fe6b695a 29484 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 29485 ability.
29486 * Makefile.in: Add autoconf package transformation code.
29487 * util/i386/pc/grub-install.in: Likewise.
29488 * util/powerpc/ieee1275/grub-install.in: Likewise.
29489
6795c4e1 294902007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
29491
29492 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
29493 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
29494 (EXT2_REVISION): Likewise.
29495 (EXT2_INODE_SIZE): Likewise.
29496 (struct grub_ext2_block_group): Added a missing member
29497 "used_dirs".
29498 (grub_ext2_read_inode): Divide by the inode size in a superblock
29499 instead of 128 to obtain INODES_PER_BLOCK.
29500 Use the macro EXT2_INODE_SIZE instead of directly using
29501 SBLOCK->INODE_SIZE.
29502
d70af616 295032007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
29504
29505 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
29506 superblock instead of the structure size to compute an
29507 offset. This fixes the problem that GRUB could not read a
29508 filesystem when inode size is different from 128-byte.
29509
3b801603 295102007-03-05 Marco Gerards <marco@gnu.org>
29511
29512 * normal/main.c (read_config_file): When "menu" is not set, create
29513 an initial context.
29514
4785bfe4 295152007-02-21 Hollis Blanchard <hollis@penguinppc.org>
29516
29517 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
29518 (HEAP_LIMIT): New macro.
29519 (grub_claim_heap): Claim memory up to `heaplimit'.
29520
a0cbb023 295212007-02-21 Hollis Blanchard <hollis@penguinppc.org>
29522
29523 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
29524 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
29525 (_start): Likewise.
29526 (grub_arch_modules_addr): Return address after `_end'.
29527 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
29528 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
29529 (add_segments): Calculate `_end' from phdr size and location.
29530 (ALIGN_UP): Moved to ...
29531 * include/grub/misc.h: here.
29532 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
29533 New macro.
29534 (GRUB_IEEE1275_MODULE_BASE): Removed.
29535
fd7d8eba 295362007-02-20 Hollis Blanchard <hollis@penguinppc.org>
29537
29538 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
29539 loop boundary.
29540
9b09e6fc 295412007-02-20 Hollis Blanchard <hollis@penguinppc.org>
29542
29543 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
29544 All users updated.
29545 (grub_elf64_load_hook_t): Likewise.
29546 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
29547 debug output.
29548
3ce27299 295492007-02-20 Hollis Blanchard <hollis@penguinppc.org>
29550
29551 * kern/mm.c: Update copyright.
29552 (grub_mm_debug): Correct syntax error.
29553 (grub_mm_dump_free): New function.
29554 (grub_debug_free): Call `grub_free'.
29555 * include/grub/mm.h: Update copyright.
29556 (grub_mm_dump_free): Add declaration.
29557
077d5fee 295582007-02-12 Hollis Blanchard <hollis@penguinppc.org>
29559
29560 * include/grub/ieee1275/ieee1275.h: Update copyright.
29561 * kern/powerpc/ieee1275/init.c: Likewise.
29562 * kern/powerpc/ieee1275/openfw.c: Likewise.
29563
29564 * loader/powerpc/ieee1275/linux.c: Likewise.
29565 * include/grub/elfload.h: Likewise.
29566 * kern/elf.c: Likewise.
29567 (grub_elf32_load): Pass `base' and `size' parameters. Update all
29568 callers.
29569 (grub_elf64_load): Likewise.
29570 (grub_elf32_load_segment): Move to a nested function.
29571 (grub_elf64_load_segment): Likewise.
29572
dc946850 295732007-02-12 Hollis Blanchard <hollis@penguinppc.org>
29574
29575 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
29576 prototype.
29577 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
29578 (grub_heap_len): Likewise.
29579 (HEAP_SIZE): New macro.
29580 (grub_claim_heap): New function.
29581 (grub_machine_init): Don't claim heap directly. Call
29582 `grub_claim_heap'.
29583 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
29584 (grub_available_iterate): New function.
29585
baa2a121 295862007-02-03 Thomas Schwinge <tschwinge@gnu.org>
29587
29588 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
29589 * configure.ac: Use it for testing the HOST and TARGET compilers.
29590
4fe9862e 295912006-12-13 Thomas Schwinge <tschwinge@gnu.org>
29592
29593 * Makefile.in (enable_grub_emu): New variable.
29594 * configure.ac (--enable-grub-emu): New option.
29595 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
29596 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
29597 * conf/i386-pc.rmk: Likewise.
29598 * conf/powerpc-ieee1275.rmk: Likewise.
29599 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
29600
a8aa5762 296012006-12-12 Marco Gerards <marco@gnu.org>
29602
29603 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
29604
29605 * kern/env.c (grub_env_unset): Don't free the member `value' when
29606 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
29607 pointer.
29608
29609 * normal/main.c (current_menu): Removed.
29610 (free_menu): Unset the `menu' environment variable.
29611 (grub_normal_menu_addentry): Make use of the environment variable
29612 `menu', instead of using the global `current_menu'. Allocate
29613 memory for the sourcecode of this entry.
29614 (read_config_file): New argument `nested', changed all callers.
29615 Only in the case of a new context, initialize a new menu. Set the
29616 `menu' environment variable.
29617 (grub_normal_execute): Don't set and unset the environment
29618 variable `menu' here anymore. Only free the menu when leaving the
29619 context.
29620
29621 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
29622 leak.
29623
957b3a3e 296242006-12-11 Marco Gerards <marco@gnu.org>
29625
29626 * normal/menu_entry.c (run): Fix off by one bug so the last line
29627 is executed. Move the loader check to outside the loop.
29628
ef875714 296292006-12-08 Hollis Blanchard <hollis@penguinppc.org>
29630
29631 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
29632
4e739985 296332006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
29634
29635 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
29636 the number of sectors. Reported by Andrey Shuvikov
29637 <mr_hyro@yahoo.com>.
f19dbdb7 29638
790707f2 296392006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
29640
29641 * kern/disk.c (grub_disk_read): When there is a read error, always
29642 try to read only the necessary data.
f19dbdb7 29643
790707f2 29644 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
29645 disk/raid.c.
29646 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
29647 prototype.
29648 [GRUB_UTIL] (grub_raid_fini): Likewise.
29649 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 29650 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 29651 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
29652 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
29653 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
29654 and grub_raid_fini().
f19dbdb7 29655
03e58196 296562006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
29657
29658 * include/grub/types.h (__unused): Rename to UNUSED.
29659 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
29660 (grub_elf64_size): Likewise.
f19dbdb7 29661
ae4f23bf 296622006-11-03 Hollis Blanchard <hollis@penguinppc.org>
29663
29664 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
29665 grub_error_push and grub_error_pop in the error-handling path.
29666 (grub_elf32_load_segment): Only call grub_file_read with non-zero
29667 length.
29668
2166cc83 296692006-11-03 Hollis Blanchard <hollis@penguinppc.org>
29670
29671 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
29672 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29673 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29674 (kernel_elf_SOURCES): Likewise.
29675 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
29676 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
29677 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
29678 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
29679 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
29680 (elf_mod_SOURCES): New variable.
29681 (elf_mod_CFLAGS): Likewise.
29682 (elf_mod_LDFLAGS): Likewise.
29683 * include/grub/types.h (__unused): New macro.
29684 * include/grub/elfload.h: New file.
29685 * kern/elf.c: Likewise.
29686 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
29687 (ELF32_LOADMASK): New macro.
29688 (ELF64_LOADMASK): Likewise.
29689 (vmlinux): Removed.
29690 (grub_linux_load32): New function.
29691 (grub_linux_load64): Likewise.
29692 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
29693 Use grub_elf_t instead of grub_file_t.
29694
a09d5aa5 296952006-11-02 Hollis Blanchard <hollis@penguinppc.org>
29696
29697 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
29698 `catch_result' to struct set_color_args.
29699
d976fc51 297002006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
29701
29702 * normal/menu.c: Include grub/script.h.
29703 * normal/menu_entry.c: Likewise.
29704 * include/grub/normal.h: Do not include grub/script.h.
29705
67507549 297062006-10-27 Hollis Blanchard <hollis@penguinppc.org>
29707
29708 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
29709
69203a99 297102006-10-27 Hollis Blanchard <hollis@penguinppc.org>
29711
29712 * kern/disk.c (grub_disk_open): Print debug messages when opening a
29713 disk.
29714 (grub_disk_close): Print debug messages when closing a disk.
29715 (grub_disk_read): Print debug messages when disk read fails.
29716 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
29717 filesystem type.
29718 * kern/partition.c: Include misc.h.
29719 (grub_partition_iterate): Print debug messages when detecting
29720 partition type.
29721
e2b8278c 297222006-10-27 Hollis Blanchard <hollis@penguinppc.org>
29723
29724 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
29725 is negative.
29726 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
29727
97b2f2ff 297282006-10-26 Hollis Blanchard <hollis@penguinppc.org>
29729
29730 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
29731 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
29732
6555d655 297332006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
29734
29735 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
29736 instead of sizeof(lv). Patch by Michael Guntsche.
29737
4d42b77f 297382006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
29739
29740 * disk/lvm.c: Rename VGS to VG_LIST.
29741 (grub_lvm_iterate): Change VGS->LV to VG-LV.
29742 (grub_lvm_open): Likewise.
29743 Thanks to Michael Guntsche for finding this bug.
29744
5d74d927 297452006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
29746
29747 * configure.ac (AC_INIT): Bumped to 1.95.
29748
a1bb27e4 297492006-10-14 Robert Millan <rmh@aybabtu.com>
29750
29751 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
29752 with "/dev/.static/dev/md".
29753
e0994b8b 297542006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
29755
29756 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
29757 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
29758 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
29759 DRIVE_NAME are always freed.
29760
29761 * util/i386/pc/biosdisk.c (make_device_name): Add one into
29762 DOS_PART, as a DOS partition is counted from one instead of zero
29763 now. Reported by Robert Millan.
29764
ddd5cee9 297652006-10-14 Robert Millan <rmh@aybabtu.com>
29766
29767 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
29768 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
29769 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
29770 string returned by grub_guess_root_device.
29771 * util/i386/pc/grub-setup.c: Likewise.
29772 * util/i386/pc/grub-probefs.c: Likewise.
29773
29774 * util/i386/pc/grub-probefs.c: Rename to ...
29775 * util/i386/pc/grub-probe.c: ... this.
29776 * DISTLIST: Remove grub-probefs, add grub-probe.
29777 * conf/i386-efi.rmk: Likewise.
29778 * conf/i386-pc.rmk: Likewise.
29779 * util/i386/pc/grub-install.in: Likewise.
29780
29781 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
29782 choose which information we want to print.
29783
2b002173 297842006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
29785
29786 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
29787 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
29788 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
29789 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
29790 video/readers/tga.c and video/i386/pc/vbeutil.c.
29791
297922006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
29793
29794 Added support for RAID and LVM.
f19dbdb7 29795
2b002173 29796 * disk/lvm.c: New file.
29797 * disk/raid.c: Likewise.
29798 * include/grub/lvm.h: Likewise.
f19dbdb7 29799 * include/grub/raid.h: Likewise.
2b002173 29800 * include/grub/util/lvm.h: Likewise.
29801 * include/grub/util/raid.h: Likewise.
29802 * util/lvm.c: Likewise.
29803 * util/raid.c: Likewise.
29804
29805 * include/grub/disk.h (grub_disk_dev_id): Add
29806 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
29807 (grub_disk_get_size): New prototype.
29808 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
29809 returns a partition.
29810 (grub_disk_get_size): New function.
f19dbdb7 29811
2b002173 29812 * kern/i386/pc/init.c (make_install_device): Copy the prefix
29813 verbatim if grub_install_dos_part is -2.
29814
29815 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
29816 and LVM devices.
29817
29818 * util/i386/pc/grub-setup.c (setup): New argument
29819 MUST_EMBED. Force embedding of GRUB when the argument is
29820 true. Close FILE before returning.
29821 (main): Add support for RAID and LVM.
f19dbdb7 29822
2b002173 29823 * conf/common.rmk: Add RAID and LVM modules.
29824 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
29825 util/lvm.c.
29826 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
29827
29828 * kern/misc.c (grub_strstr): New function.
29829 * include/grub/misc.h (grub_strstr): New prototype.
29830
050548d0 298312006-10-10 Tristan Gingold <tristan.gingold@bull.net>
29832
29833 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
29834
da849d2d 298352006-10-05 Tristan Gingold <tristan.gingold@bull.net>
29836
29837 * kern/misc.c (grub_strtoull): Guess the base only if not
29838 specified.
29839
97b2f2ff 298402006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 29841
29842 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
29843 PowerMac support.
29844
97b2f2ff 298452006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 29846
29847 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
29848
29849 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
29850 Remove `flags' argument. All callers changed.
29851 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
29852 (IEEE1275_IHANDLE_INVALID): New variable.
29853 (IEEE1275_CELL_INVALID): New variable.
29854 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
29855 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
29856 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
29857 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
29858 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
29859 codes from Open Firmware. All callers updated.
29860 (grub_ieee1275_next_property): Directly return Open Firmware return
29861 code.
29862 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
29863 Standardize error checking from `grub_ieee1275_get_property'.
29864 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
29865 `devalias' to `aliases'. Correct comments. Consolidate error paths.
29866
97b2f2ff 298672006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 29868
29869 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
29870 `instance_to_package_args' to `instance_to_path_args'.
29871
29872 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
29873 `grub_ieee1275_chosen'.
29874
29875 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
29876 `grub_ieee1275_interpret'.
29877
97b2f2ff 298782006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 29879
29880 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
29881
97b2f2ff 298822006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 29883
29884 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
29885 (__cmpdi): Likewise.
29886
29887 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
29888 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
29889 `grub_ssize_t'.
29890
02bb8acc 29891 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 29892
29893 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
29894 to type `grub_ssize_t'.
29895 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
29896
7f9a8531 298972006-09-22 Marco Gerards <marco@gnu.org>
29898
29899 * normal/script.c (grub_script_create_cmdmenu): Skip leading
29900 newlines.
29901
b5ef1102 299022006-09-22 Marco Gerards <marco@gnu.org>
29903
29904 * commands/echo.c: New file.
29905
29906 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
29907
29908 * conf/common.rmk (echo_mod_SOURCES): New variable.
29909 (echo_mod_CFLAGS): Likewise.
29910 (echo_mod_LDFLAGS): Likewise.
29911
2cff3677 299122006-09-22 Marco Gerards <marco@gnu.org>
29913
29914 * normal/main.c (get_line): Malloc memory instead of using
29915 preallocated memory. Removed the arguments `cmdline' and
29916 `max_len'. Updated all callers.
29917
6ba4688b 299182006-09-22 Marco Gerards <marco@gnu.org>
29919
29920 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
29921 (normal_mod_DEPENDENCIES): Likewise.
29922
29923 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
29924 (normal_mod_DEPENDENCIES): Likewise.
29925
29926 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
29927
e02ac02c 299282006-09-22 Johan Rydberg <jrydberg@gnu.org>
29929
29930 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
29931 programs.
29932 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
29933 (normal_mod_DEPENDENCIES): Likewise.
29934 * conf/i386-pc.mk: Regenerate.
29935 * conf/i386-efi.mk: Likewise
29936 * conf/common.mk: Likewise.
29937 * conf/powerpc-ieee1275.mk: Likewise.
29938 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 29939
8d252e44 299402006-09-22 Robert Millan <rmh@aybabtu.com>
29941
29942 Sync with i386 version.
29943 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
29944 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
29945
209bf7ac 299462006-09-21 Robert Millan <rmh@aybabtu.com>
29947
29948 Import from GRUB Legacy (lib/device.c):
29949 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
29950 (init_device_map) [__linux__]: Add support for I2O devices.
29951
6b146090 299522006-09-14 Marco Gerards <marco@gnu.org>
29953
29954 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
29955 `-melf_i386'.
29956
e38600a8 299572006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 29958
29959 * util/i386/pc/grub-install.in: Skip menu.lst when removing
29960 /boot/grub/*.lst.
78fa1790 29961
2952da5d 29962 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 29963
2952da5d 29964 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
29965 before adding it to device.map.
29966
01b82a64 299672006-08-15 Johan Rydberg <jrydberg@gnu.org>
29968
fe6b695a 29969 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 29970 compiles a file; using the -MD option.
29971 * conf/common.mk: Regenerate.
29972 * conf/i386-pc.mk: Likewise.
29973 * conf/i386-efi.mk: Likewise.
29974 * conf/powerpc-ieee1275.mk: Likewise.
29975 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 29976
1064790d 299772006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
29978
29979 Move the prototypes of grub_setjmp and grub_longjmp to
29980 cpu/setjmp.h, so that each architecture may specify different
29981 attributes.
f19dbdb7 29982
1064790d 29983 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
29984 (grub_longjmp): Likewise.
29985 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
29986 (grub_longjmp): Likewise.
29987 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
29988 (grub_longjmp): Likewise.
29989
29990 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
29991 [!GRUB_UTIL] (grub_longjmp): Removed.
29992
29dda3ed 299932006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
29994
29995 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
29996 "color!" method does not return any value.
29997
ad2a06ed 299982006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
29999
30000 * include/grub/bitmap.h: New file.
30001
30002 * include/grub/i386/pc/vbeutil.h: Likewise.
30003
30004 * video/bitmap.c: Likewise.
30005
30006 * video/readers/tga.c: Likewise.
30007
30008 * video/i386/pc/vbeutil.c: Likewise.
30009
30010 * commands/videotest.c: Code cleanup and updated to reflect to new
30011 video API.
30012
30013 * term/gfxterm.c: Likewise.
30014
30015 * video/video.c: Likewise.
30016
30017 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
30018 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
30019 (bitmap_mod_SOURCES): New entry.
30020 (bitmap_mod_CFLAGS): Likewise.
30021 (bitmap_mod_LDFLAGS): Likewise.
30022 (tga_mod_SOURCES): Likewise.
30023 (tga_mod_CFLAGS): Likewise.
30024 (tga_mod_LDFLAGS): Likewise.
30025
30026 * include/grub/video.h (grub_video_blit_operators): New enum type.
30027 (grub_video_render_target): Changed as forward declaration and moved
30028 actual definition to be video driver specific.
30029 (grub_video_adapter.blit_bitmap): Added blitting operator.
30030 (grub_video_adapter.blit_render_target): Likewise.
30031 (grub_video_blit_bitmap): Likewise.
30032 (grub_video_blit_render_target): Likewise.
30033
30034 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
30035 driver specific render target definition.
30036 (grub_video_vbe_map_rgba): Added driver internal helper.
30037 (grub_video_vbe_unmap_color): Updated to use
30038 grub_video_i386_vbeblit_info.
30039 (grub_video_vbe_get_video_ptr): Likewise.
30040
30041 * include/grub/i386/pc/vbeblit.h
30042 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
30043 grub_video_i386_vbeblit_info.
30044 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
30045 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
30046 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
30047 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
30048 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
30049 (grub_video_i386_vbeblit_index_index): Likewise.
30050 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
30051 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
30052 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
30053 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
30054 operator.
30055 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
30056 operator.
30057
30058 * video/i386/pc/vbeblit.c: Updated to reflect changes on
30059 include/grub/i386/pc/vbeblit.h.
30060
30061 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
30062 Updated to use grub_video_i386_vbeblit_info.
30063 (grub_video_i386_vbefill_R8G8B8): Likewise.
30064 (grub_video_i386_vbefill_index): Likewise.
30065 (grub_video_i386_vbefill): Added generic filler.
30066
30067 * video/i386/pc/vbefill.c: Updated to reflect changes on
30068 include/grub/i386/pc/vbefill.h.
30069
30070 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
30071 grub_video_i386_vbeblit_info.
30072 (grub_video_vbe_unmap_color): Likewise.
30073 (grub_video_vbe_blit_glyph): Likewise.
30074 (grub_video_vbe_scroll): Likewise.
30075 (grub_video_vbe_draw_pixel): Removed function.
30076 (grub_video_vbe_get_pixel): Likewise.
30077 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
30078 updated code to use it.
30079 (common_blitter): Added common blitter for render target and bitmap.
30080 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
30081 (grub_video_vbe_blit_render_target): Likewise.
30082
bc8c036d 300832006-07-30 Johan Rydberg <jrydberg@gnu.org>
30084
30085 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
30086 is in text mode if there is no console control protocol instance
30087 available.
30088
684a8eff 300892006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
30090
30091 * include/grub/video.h: Code cleanup.
30092
30093 * include/grub/i386/pc/vbe.h: Likewise.
30094
30095 * video/i386/pc/vbe.c: Likewise.
30096
30097 * video/i386/pc/vbeblit.c: Likewise.
30098
30099 * video/i386/pc/vbefill.c: Likewise.
30100
30101 * video/video.c: Likewise. Also added more comments.
30102
5915059b 301032006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
30104
30105 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
30106 (struct grub_biosdisk_dap): Likewise.
30107
30108 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
30109 linkage settings for all functions.
30110
90ce5d56 301112006-07-12 Marco Gerards <marco@gnu.org>
30112
30113 * configure.ac (--enable-mm-debug): Fix typo.
30114
30115 * genkernsyms.sh.in: Use proper quoting for `CC'.
30116
43e7f879 301172006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
30118
30119 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
30120 (normal_mod_ASFLAGS): Remove "-m32".
30121
4889bdec 301222006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
30123
30124 * util/misc.c: Include config.h.
30125 [!HAVE_MEMALIGN]: Do not include malloc.h.
30126 (grub_memalign): Use posix_memalign, if present. Then, use
30127 memalign, if present. Otherwise, emit an error.
30128
30129 * util/grub-emu.c: Do not include malloc.h.
30130
30131 * include/grub/util/misc.h: Include unistd.h. This is required for
30132 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
30133 D. Eades III <hde@foobar-qux.org>.
30134
30135 * configure.ac (AC_GNU_SOURCE): Added.
30136 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
30137 type.
30138
fd39d4da 301392006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
30140
30141 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
30142 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
30143
b786f3b5 301442006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
30145
30146 * include/grub/types.h (grub_host_addr_t): Rename to
30147 grub_target_addr_t.
30148 (grub_host_off_t): Rename to grub_target_off_t.
30149 (grub_host_size_t): Rename to grub_target_size_t.
30150 (grub_host_ssize_t): Rename to grub_target_ssize_t.
30151 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
30152
30153 * include/grub/kernel.h (struct grub_module_header): Change type
30154 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
30155 (grub_module_info): Likewise.
f19dbdb7 30156
051988bb 301572006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
30158
30159 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
30160 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
30161 Velazquez <jesus.velazquez@gmail.com>.
30162
deae281b 301632006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
30164
30165 Count partitions from 1 instead of 0 in the string representation
30166 of partitions. Still use 0-based internally.
f19dbdb7 30167
deae281b 30168 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
30169 (sun_partition_map_iterate): Use grub_partition_t instead of
30170 struct grub_partition *. Cast DESC->START_CYLINDER to
30171 grub_uint64_t after converting the endian.
30172 (sun_partition_map_probe): Subtract 1 for PARTNUM.
30173 (sun_partition_map_get_name): Add 1 to P->INDEX.
30174
30175 * partmap/pc.c (grub_partition_parse): Subtract 1 for
30176 PCDATA->DOS_PART.
30177 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
30178
30179 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
30180 zero instead of one.
30181 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
30182 (gpt_partition_map_get_name): Add 1 into P->INDEX.
30183
30184 * partmap/apple.c (apple_partition_map_iterate): Change the type
30185 of POS to unsigned.
30186 (apple_partition_map_probe): Subtract 1 for PARTNUM.
30187 (apple_partition_map_get_name): Add 1 into P->INDEX.
30188
30189 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
30190 of POS to unsigned.
30191 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
30192 calculate the offset of a partition.
30193 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
30194 (amiga_partition_map_get_name): Add 1 into P->INDEX.
30195
30196 * partmap/acorn.c (acorn_partition_map_find): Change the type of
30197 SECTOR to grub_disk_addr_t.
30198 (acorn_partition_map_iterate): Likewise.
30199 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
30200 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
30201 top.
30202 (acorn_partition_map_get_name): Add 1 into P->INDEX.
30203
30204 * kern/i386/pc/init.c (make_install_device): Add 1 into
30205 GRUB_INSTALL_DOS_PART.
30206
30207 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
30208 conditional.
30209
524a1e6a 302102006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
30211
30212 Clean up the code to support 64-bit addressing in disks and
30213 files. This change is not enough for filesystems yet.
f19dbdb7 30214
524a1e6a 30215 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
30216 type of "start" to grub_uint64_t.
30217 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
30218 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
30219 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
30220 convert addresses.
30221
30222 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
30223 to grub_disk_addr_t.
30224
30225 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
30226 string.
30227
30228 * partmap/pc.c (pc_partition_map_iterate): Likewise.
30229
30230 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
30231 to char *.
30232
30233 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
30234
30235 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
30236
30237 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
30238
30239 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
30240 to grub_off_t, to detect an error from grub_file_seek.
30241 (grub_multiboot_load_elf32): Likewise.
30242
30243 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
30244 maximum unsigned long value when an overflow is detected.
30245 (grub_strtoull): New function.
30246 (grub_divmod64): Likewise.
30247 (grub_lltoa): use grub_divmod64.
30248
30249 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
30250 grub_disk_addr_t.
30251 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
30252 the pointer to next character. Use grub_strtoull instead of
30253 grub_strtoul.
30254 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
30255 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
30256 respectively.
30257
fe6b695a 30258 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 30259 return value is signed.
30260 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
30261 test if OFFSET is less than zero, as OFFSET is unsigned now.
30262
30263 * kern/disk.c (struct grub_disk_cache): Change the type of
30264 "sector" to grub_disk_addr_t.
30265 (grub_disk_cache_get_index): Change the type of SECTOR to
30266 grub_disk_addr_t. Calculate the hash with SECTOR casted to
30267 unsigned after shifting.
30268 (grub_disk_cache_invalidate): Change the type of SECTOR to
30269 grub_disk_addr_t.
30270 (grub_disk_cache_unlock): Likewise.
30271 (grub_disk_cache_store): Likewise.
30272 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
30273 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
30274 grub_disk_addr_t and grub_uint64_t, respectively.
30275 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
30276 body, as the value of OFFSET is tweaked by
30277 grub_disk_check_range. Change the types of START_SECTOR, LEN and
30278 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
30279 respectively.
30280 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
30281 body, as the value of OFFSET is tweaked by
30282 grub_disk_check_range. Change the types of LEN and N to
30283 grub_size_t.
30284
30285 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
30286 and "saved_offset" to grub_off_t.
30287 (test_header): Cast BUF to char *.
30288 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
30289 to char *.
30290 (grub_gzio_read): Change the types of OFFSET and SIZE to
30291 grub_off_t and grub_size_t, respectively.
30292
30293 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
30294 Removed.
30295 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
30296 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
30297 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
30298 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
30299 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
30300
30301 * include/grub/types.h (grub_off_t): Unconditionally set to
30302 grub_uint64_t.
30303 (grub_disk_addr_t): Changed to grub_uint64_t.
30304
30305 * include/grub/partition.h (struct grub_partition): Change the
30306 types of "start", "len" and "offset" to grub_disk_addr_t,
30307 grub_uint64_t and grub_disk_addr_t, respectively.
30308 (grub_partition_get_start): Return grub_disk_addr_t.
30309 (grub_partition_get_len): Return grub_uint64_t.
30310
30311 * include/grub/misc.h (grub_strtoull): New prototype.
30312 (grub_divmod64): Likewise.
30313
30314 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
30315 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
30316 grub_off_t, respectively.
30317 All callers and references changed.
30318
30319 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
30320 grub_size_t in "read".
30321 All callers and references changed.
30322
30323 * include/grub/file.h (struct grub_file): Change the types of
30324 "offset" and "size" to grub_off_t and grub_off_t,
30325 respectively. Change the type of SECTOR to grub_disk_addr_t in
30326 "read_hook".
30327 (grub_file_read): Change the type of LEN to grub_size_t.
30328 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
30329 grub_off_t.
30330 (grub_file_size): Return grub_off_t.
30331 (grub_file_tell): Likewise.
30332 All callers and references changed.
30333
30334 * include/grub/disk.h (struct grub_disk_dev): Change the types of
30335 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
30336 "write".
30337 (struct grub_disk): Change the type of "total_sectors" to
30338 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 30339 "read_hook".
524a1e6a 30340 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
30341 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
30342 (grub_disk_write): Likewise.
30343 All callers and references changed.
30344
30345 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
30346 char * for grub_strncmp to silence gcc.
30347 (grub_iso9660_mount): Likewise.
30348 (grub_iso9660_mount): Likewise.
30349 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
30350 return statement.
30351 (grub_iso9660_iterate_dir): Likewise.
30352 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
30353
30354 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
30355 LEN to grub_disk_addr_t and grub_size_t, respectively.
30356
30357 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
30358
30359 * fs/jfs.c (grub_jfs_read_file): Likewise.
30360
30361 * fs/minix.c (grub_jfs_read_file): Likewise.
30362
30363 * fs/sfs.c (grub_jfs_read_file): Likewise.
30364
30365 * fs/ufs.c (grub_jfs_read_file): Likewise.
30366
30367 * fs/xfs.c (grub_jfs_read_file): Likewise.
30368
30369 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
30370 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
30371 respectively.
30372
30373 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
30374 BLKNR to -1 instead of returning GRUB_ERRNO.
30375 (grub_ext2_read_file): Change the types of SECTOR and
30376 LEN to grub_disk_addr_t and grub_size_t, respectively.
30377
30378 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
30379 LEN to grub_disk_addr_t and grub_size_t, respectively.
30380
30381 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
30382 grub_file_read.
30383
30384 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
30385 string. Do not cast SECTOR explicitly.
30386
30387 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
30388 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
30389 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
30390 grub_disk_addr_t and grub_size_t, respectively. If the sector is
30391 over 2TB and LBA mode is not supported, raise an error.
30392 (get_safe_sectors): New function.
30393 (grub_biosdisk_read): Use get_safe_sectors.
30394 (grub_biosdisk_write): Likewise.
30395
30396 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
30397 (grub_efidisk_write): Likewise.
30398
30399 * disk/loopback.c (delete_loopback): Cosmetic changes.
30400 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
30401 correctly.
30402 (grub_loopback_open): Likewise.
30403 (grub_loopback_read): Likewise. Also, change the type of POS to
30404 grub_off_t, and fix the usage of grub_memset.
30405
30406 * commands/i386/pc/play.c: Include grub/machine/time.h.
30407
30408 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
30409 print FILE->SIZE.
30410
30411 * commands/configfile.c: Include grub/env.h.
30412
30413 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
30414 GRUB_ERRNO directly instead. Change the type of POS to
30415 grub_off_t. Follow the coding standard.
30416
30417 * commands/blocklist.c: Include grub/partition.h.
30418 (grub_cmd_blocklist): Return an error if the underlying device is
30419 not a disk. Take the starting sector of a partition into account,
30420 if a partition is used.
30421
30422 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
30423 a length field.
30424 (lba_mode): Support 64-bit addresses.
30425 (chs_mode): Likewise.
30426 (copy_buffer): Adapted to the new offsets of a length field and a
30427 segment field.
30428 (blocklist_default_start): Allocate 64-bit space.
30429
30430 * boot/i386/pc/boot.S (force_lba): Removed.
30431 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 30432 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 30433 space.
30434 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
30435 is useless.
30436 (lba_mode): Refactored to support a 64-bit address. More size
30437 optimization.
30438 (setup_sectors): Likewise.
30439
53af98ad 304402006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
30441
30442 * DISTLIST: Added include/grub/i386/linux.h. Removed
30443 include/grub/i386/pc/linux.h
30444
30445 * configure.ac (AC_INIT): Bumped to 1.94.
30446
30447 * config.guess: Updated from gnulib.
30448 * config.sub: Likewise.
30449 * install-sh: Likewise.
30450 * mkinstalldirs: Likewise.
30451
b4c1940a 304522006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
30453
30454 * conf/common.rmk (grub_modules_init.lst): Depended on
30455 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
30456 MODSRCFILES.
30457
30458 * genmk.rb (PModule::rule): Reverted the previous change.
30459
cfca1cfd 304602006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
30461
30462 * conf/common.rmk (grub_modules_init.lst): Depends on
30463 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
30464 that the target does not exist before producing.
30465 (grub_modules_init.h): Remove the target before generating.
30466 (grub_emu_init.c): Likewise.
30467
30468 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
30469
aa6d7826 304702006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
30471
30472 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
30473 for the target-specific tests. Make sure that we also have the
30474 up-to-date target variables for those tests.
30475
26c607b9 304762006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
30477
30478 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
30479 (PModule::rule): Likewise.
30480
0162321a 304812006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
30482
30483 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
30484 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
30485 target-specific flags should be prefixed.
30486 (PModule::rule): Likewise.
30487
6c826348 304882006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
30489
30490 * configure.ac (CMP): Check if cmp is available explicitly.
30491
b977bf01 304922006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
30493
30494 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
30495 (target_cpu): New variable.
30496 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 30497
b977bf01 30498 * util/i386/pc/grub-install.in (host_cpu): Removed.
30499 (target_cpu): New variable.
30500 (pkglibdir): Use target_cpu instead of host_cpu.
30501
30502 * util/genmoddep.c: Removed.
f19dbdb7 30503
b977bf01 30504 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
30505 instead of GRUB_HOST_SIZEOF_VOID_P.
30506 * kern/dl.c: Likewise.
30507
30508 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
30509 ...
30510 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
30511 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
30512 (GRUB_TARGET_SIZEOF_LONG): ... this.
30513 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
30514 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
30515 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
30516 to ...
30517 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
30518 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
30519 (GRUB_TARGET_SIZEOF_LONG): ... this.
30520 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
30521 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
30522 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
30523 to ...
30524 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
30525 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
30526 (GRUB_TARGET_SIZEOF_LONG): ... this.
30527 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
30528 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
30529
30530 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
30531 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
30532 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
30533 instead of GRUB_HOST_SIZEOF_LONG.
30534 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
30535 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
30536 GRUB_CPU_WORDS_BIGENDIAN.
30537 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
30538 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
30539 grub_host_ssize_t.
30540
30541 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
30542 (genmoddep_SOURCES): Likewise.
30543 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
30544 (genmoddep_SOURCES): Likewise.
30545 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
30546 (genmoddep_SOURCES): Likewise.
30547 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
30548 Likewise.
30549 (genmoddep_SOURCES): Likewise.
30550
30551 * genmoddep.awk: New file.
30552
30553 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
30554 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
30555 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
30556 (PModule::rule): Likewise.
30557 (Program::rule): Likewise.
30558 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
30559 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
30560 respectively.
30561
30562 * configure.ac: Rewritten intensively to use host and target
30563 instead of build and host, respectively.
30564
30565 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
30566 (host_cpu): Removed.
30567 (target_cpu): New variable.
30568 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
30569 (BUILD_CC): Removed.
30570 (BUILD_CFLAGS): Likewise.
30571 (BUILD_CPPFLAGS): Likewise.
30572 (TARGET_CC): New variable.
30573 (TARGET_CFLAGS): Likewise.
30574 (TARGET_CPPFLAGS): Likewise.
30575 (TARGET_LDFLAGS): Likewise.
30576 (AWK): Likewise.
30577 (include): Use target_cpu instead of host_cpu.
30578 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 30579
b977bf01 30580 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
30581
f09771a1 305822006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
30583
30584 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
30585 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
30586 field 'false' to 'exec_on_false'.
30587 (grub_script_create_cmdif): Renamed argument names to reflect above
30588 changes.
30589
30590 * normal/execute.c (grub_script_execute_cmdif): Likewise.
30591
30592 * normal/script.c (grub_script_create_cmdif): Likewise.
30593
118f4fb3 305942006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
30595
30596 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
30597 top.
30598 (grub_hfsplus_btree_recptr): Likewise.
30599 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
30600 FILEBLOCK both to pass a block number and store next block
30601 number.
30602 (grub_hfsplus_read_block): Rewritten heavily to support an extent
30603 overflow file correctly. Specify errors appropriately, because
30604 fshelp expects that GRUB_ERRNO is set when fails. Reuse
30605 grub_hfsplus_btree_recptr to get the pointer to a found key.
30606 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
30607 is found.
30608
30609 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
30610 linux.mod.
30611 (_linux_mod_SOURCES): New variable.
30612 (_linux_mod_CFLAGS): Likewise.
30613 (_linux_mod_LDFLAGS): Likewise.
30614 (linux_mod_SOURCES): Likewise.
30615 (linux_mod_CFLAGS): Likewise.
30616 (linux_mod_LDFLAGS): Likewise.
30617
30618 * DISTLIST: Added loader/i386/efi/linux.c,
30619 loader/i386/efi/linux_normal.c and
30620 include/grub/i386/efi/loader.h.
30621
30622 * loader/i386/efi/linux.c: New file.
30623 * loader/i386/efi/linux_normal.c: Likewise.
30624 * include/grub/i386/efi/loader.h: Likewise.
30625
89a7d726 306262006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
30627
30628 * commands/blocklist.c: New file.
30629
30630 * DISTLIST: Added commands/blocklist.c.
30631
30632 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 30633 color for the background, and a darker color for the foreground.
89a7d726 30634 (grub_console_checkkey): Return READ_KEY.
30635 (grub_console_cls): Set the background to
30636 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
30637
30638 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
30639
30640 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
30641 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
30642
30643 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
30644 prototype.
30645
30646 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
30647 BG. The spec is wrong again.
30648
30649 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
30650 prototype.
30651 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
30652
30653 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
30654 commands/blocklist.c.
30655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 30656
89a7d726 30657 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
30658 (blocklist_mod_SOURCES): New variable.
30659 (blocklist_mod_CFLAGS): Likewise.
30660 (blocklist_mod_LDFLAGS): Likewise.
30661
75c8f258 306622006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
30663
30664 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
30665 duplication.
30666 (lba_mode): Use %eax more intensively to reduce the code size.
30667
da2eb181 306682006-05-20 Marco Gerards <marco@gnu.org>
30669
30670 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
30671
30672 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
30673 for `menuentry'.
30674 (script): Accept leading newlines.
30675 (newlines): New rule to describe 0 or more newlines.
30676 (commands): Accept `command' with trailing newline. Fixed the
30677 order in which arguments were passed to `grub_script_add_cmd'.
30678 Accept commands separated by newlines.
30679 (function): Changed to accept newlines.
30680 (menuentry) Rewritten.
30681
30682 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
30683 front of the list, instead of to the end.
30684
577b4050 306852006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
30686
30687 * util/i386/pc/grub-install.in (bindir): New variable.
30688 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
30689 Shaver <lbgwjl@gmail.com>.
30690
0d6e1189 306912006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
30692
30693 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
30694 grub/machine/linux.h
30695 * loader/i386/pc/linux.c: Likewise.
30696
30697 * include/grub/i386/pc/linux.h: Moved to ...
30698 * include/grub/i386/linux.h: ... here.
30699
30700 * include/grub/i386/linux.h (struct linux_kernel_params): New
30701 struct.
f19dbdb7 30702
31b86e9f 307032006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
30704
30705 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
30706 checking.
30707 (grub_video_vbe_blit_glyph): Likewise.
30708 (grub_video_vbe_blit_bitmap): Likewise.
30709 (grub_video_vbe_blit_render_target): Likewise.
30710
83b984de 307112006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
30712
30713 * configure.ac (--with-platform): Properly quote the square
30714 brackets.
30715
5f0413bd 307162006-05-08 Marco Gerards <marco@gnu.org>
30717
30718 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
30719 this...
30720 (kernel_elf_HEADERS): ...to this. Updated all users.
30721 (grubof_symlist.c): Renamed from this...
30722 (kernel_elf_symlist.c): ...to this. Updated all users.
30723 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
30724 (grubof_SOURCES): Renamed from this...
30725 (kernel_elf_SOURCES): ...to this.
30726 (grubof_HEADERS): Renamed from this...
30727 (kernel_elf_HEADERS): ...to this.
30728 (grubof_CFLAGS): Renamed from this...
30729 (kernel_elf_CFLAGS): ...to this.
30730 (grubof_ASFLAGS): Renamed from this...
30731 (kernel_elf_ASFLAGS): ...to this.
30732 (grubof_LDFLAGS): Renamed from this...
30733 (kernel_elf_LDFLAGS): ...to this.
30734
30735 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
30736 this...
30737 (kernel_elf_HEADERS): ...to this. Updated all users.
30738 (grubof_symlist.c): Renamed from this...
30739 (kernel_elf_symlist.c): ...to this. Updated all users.
30740 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
30741 (grubof_SOURCES): Renamed from this...
30742 (kernel_elf_SOURCES): ...to this.
30743 (grubof_HEADERS): Renamed from this...
30744 (kernel_elf_HEADERS): ...to this.
30745 (grubof_CFLAGS): Renamed from this...
30746 (kernel_elf_CFLAGS): ...to this.
30747 (grubof_ASFLAGS): Renamed from this...
30748 (kernel_elf_ASFLAGS): ...to this.
30749 (grubof_LDFLAGS): Renamed from this...
30750 (kernel_elf_LDFLAGS): ...to this.
30751
30752 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
30753 `kernel.elf' instead of `grubof'.
30754
05568c2e 307552006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
30756
30757 Add --with-platform to configure. Use pkglibdir instead of
30758 pkgdatadir. This is reported by Roger Leigh.
30759
30760 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
30761 (host_vendor): Likewise.
30762 (host_os): Likewise.
30763 (pkgdatadir): Likewise.
30764 (platform): New variable.
30765 (pkglibdir): Likewise.
30766 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 30767
05568c2e 30768 * util/i386/pc/grub-install.in (datadir): Removed.
30769 (host_vendor): Likewise.
30770 (host_os): Likewise.
30771 (pkgdatadir): Likewise.
30772 (platform): New variable.
30773 (pkglibdir): Likewise.
30774 Use PKGLIBDIR instead of PKGDATADIR.
30775
30776 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
30777 instead of GRUB_DATADIR.
30778 (main): Likewise.
30779 * util/i386/pc/grub-mkimage.c (usage): Likewise.
30780 (main): Likewise.
30781 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30782 (main): Likewise.
30783
30784 * configure.ac (--with-platform): New option.
30785 Use PLATFORM instead of HOST_VENDOR to specify a platform.
30786
30787 * Makefile.in: Include a makefile based on PLATFORM instead of
30788 HOST_VENDOR.
30789 (pkgdatadir): Not appended by the machine type.
30790 (pkglibdir): Appended by the machine type.
30791 (host_vendor): Removed.
30792 (platform): New variable.
30793 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
30794 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
30795 (uninstall): Likewise.
30796
4e93851c 307972006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
30798
30799 Use the environment context in the menu. Remove the commands
30800 "default" and "timeout", and use variables instead.
f19dbdb7 30801
4e93851c 30802 * normal/menu.c: Include grub/env.h.
30803 (print_entry): Cast TITLE to silence gcc.
30804 (get_timeout): New function.
30805 (set_timeout): Likewise.
30806 (get_entry_number): Likewise.
30807 (run_menu): Use a default entry, a fallback entry and a timeout
30808 in the environment variables "default", "fallback" and
30809 "timeout". Also, tweak the default entry if it is not within the
30810 current menu entries.
30811 (grub_menu_run): Use a fallback entry in the environment variable
30812 "fallback".
30813
30814 * normal/main.c (read_config_file): Do not initialize
30815 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
30816 NEWMENU->TIMEOUT.
30817 (grub_normal_execute): Use a data slot to store the menu.
30818
30819 * include/grub/normal.h (struct grub_menu): Removed default_entry,
30820 fallback_entry and timeout.
30821 (struct grub_menu_list): Removed.
30822 (grub_menu_list_t): Likewise.
30823 (struct grub_context): Likewise.
30824 (grub_context_t): Likewise.
30825 (grub_context_get): Likewise.
30826 (grub_context_get_current_menu): Likewise.
30827 (grub_context_push_menu): Likewise.
30828 (grub_context_pop_menu): Likewise.
30829 (grub_default_init): Likewise.
30830 (grub_default_fini): Likewise.
30831 (grub_timeout_init): Likewise.
30832 (grub_timeout_fini): Likewise.
30833
30834 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
30835 and timeout.mod.
30836 (normal_mod_SOURCES): Removed normal/context.c.
30837
30838 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
30839 commands/default.c, commands/timeout.c and normal/context.c.
30840 (normal_mod_SOURCES): Removed normal/context.c.
30841
30842 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
30843 commands/timeout.c and normal/context.c.
30844 (normal_mod_SOURCES): Removed normal/context.c.
30845
30846 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
30847 commands/default.c, commands/timeout.c and normal/context.c.
30848 (normal_mod_SOURCES): Removed normal/context.c.
30849
30850 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
30851 timeout.mod.
30852 (default_mod_SOURCES): Removed.
30853 (default_mod_CFLAGS): Likewise.
30854 (default_mod_LDFLAGS): Likewise.
30855 (timeout_mod_SOURCES): Removed.
30856 (timeout_mod_CFLAGS): Likewise.
30857 (timeout_mod_LDFLAGS): Likewise.
30858
30859 * DISTLIST: Removed commands/default.c, commands/timeout.c and
30860 normal/context.c.
30861
30862 * commands/default.c: Removed.
30863 * commands/timeout.c: Likewise.
30864 * normal/context.c: Likewise.
30865
1eb9cc1d 308662006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
30867
30868 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
30869
385bd9c1 308702006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
30871
30872 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
30873 "next" to "prev" for readability.
30874 (struct grub_env_sorted_var): New struct.
30875 (grub_env_context): Renamed to ...
30876 (initial_context): ... this.
30877 (grub_env_var_context): Renamed to ...
30878 (current_context): ... this.
30879 (grub_env_find): Look only at CURRENT_CONTEXT.
30880 (grub_env_context_open): Rewritten to copy exported variables from
30881 previous context.
30882 (grub_env_context_close): Rewritten according to the new
30883 scheme. Also, add an assertion to prevent the initial context from
30884 removed.
30885 (grub_env_insert): Removed the code for the sorted list.
30886 (grub_env_remove): Likewise.
30887 (grub_env_export): Simply mark the variable with
30888 GRUB_ENV_VAR_GLOBAL.
30889 (grub_env_set): A cosmetic change for naming consistency.
30890 (grub_env_get): Likewise.
30891 (grub_env_unset): Likewise.
30892 (grub_env_iterate): Rewritten to sort variables within this
30893 function.
30894 (grub_register_variable_hook): Fixed for naming consistency. Call
30895 grub_env_find again, only if NAME is not found at the first time.
30896 (mangle_data_slot_name): New function.
30897 (grub_env_set_data_slot): Likewise.
30898 (grub_env_get_data_slot): Likewise.
30899 (grub_env_unset_data_slot): Likewise.
30900
30901 * include/grub/env.h (grub_env_var_type): New enum.
30902 (GRUB_ENV_VAR_LOCAL): New constant.
30903 (GRUB_ENV_VAR_GLOBAL): Likewise.
30904 (GRUB_ENV_VAR_DATA): Likewise.
30905 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
30906 "type".
30907 (grub_env_set): Replace VAR with NAME for consistency.
30908 (grub_register_variable_hook): Likewise.
30909 (grub_env_export): Specify the name of the argument.
30910 (grub_env_set_data_slot): New prototype.
30911 (grub_env_get_data_slot): Likewise.
30912 (grub_env_unset_data_slot): Likewise.
30913
7f362539 309142006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
30915
30916 Extend the loader so that GRUB can accept a loader which comes
30917 back to GRUB when a loaded image exits. Also, this change adds
30918 support for a chainloader on EFI.
f19dbdb7 30919
7f362539 30920 * term/efi/console.c: Include grub/misc.h.
30921 (grub_console_checkkey): Display a scan code on the top for
30922 debugging. This will be removed once the EFI port gets stable.
30923 Correct the scan code mapping.
30924
30925 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
30926 allocate memory from larger regions, in order to reduce the number
30927 of allocated regions. Otherwise, the MacOSX loader panics.
30928 (filter_memory_map): Avoid less than 1MB for compatibility with
30929 other loaders.
30930 (add_memory_regions): Allocate from the tail of a region, if
30931 possible, to avoid allocating a region near to 1MB, for the MacOSX
30932 loader.
30933
30934 * kern/efi/init.c (grub_efi_set_prefix): Specify
30935 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
30936
30937 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
30938 argument IMAGE_HANDLE and specify it to get a loaded image.
30939 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
30940 grub_efi_get_loaded_image.
fe6b695a 30941 (grub_efi_get_filename): Divide the length by the size of
7f362539 30942 grub_efi_char16_t.
30943 (grub_efi_get_device_path): New function.
30944 (grub_efi_print_device_path): Print End Device Path nodes. Divide
30945 the length by the size of grub_efi_char16_t for a file path device
30946 path node.
30947
30948 * kern/loader.c (grub_loader_noreturn): New variable.
30949 (grub_loader_set): Accept a new argument NORETURN. Set
30950 GRUB_LOADER_NORETURN to NORETURN.
30951 All callers changed.
30952 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
30953 grub_machine_fini.
30954
30955 * include/grub/efi/efi.h (grub_efi_get_device_path): New
30956 prototype.
30957 (grub_efi_get_loaded_image): Take an argument to specify an image
30958 handle.
30959
30960 * include/grub/loader.h (grub_loader_set): Added one more argument
30961 NORETURN.
30962
30963 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
30964 instead of grub_efi_open_protocol.
30965 (grub_efidisk_get_device_name): Likewise.
30966 (grub_efidisk_close): Print a newline.
30967 (grub_efidisk_get_device_handle): Fixed to use
30968 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
30969 GRUB_EFI_DEVICE_PATH_TYPE.
30970
30971 * disk/efi/efidisk.c (device_path_guid): Moved to ...
30972 * kern/efi/efi.c (device_path_guid): ... here.
30973
30974 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
30975 chain.mod.
30976 (kernel_mod_HEADERS): Added efi/disk.h.
30977 (_chain_mod_SOURCES): New variable.
30978 (_chain_mod_CFLAGS): Likewise.
30979 (_chain_mod_LDFLAGS): Likewise.
30980 (chain_mod_SOURCES): Likewise.
30981 (chain_mod_CFLAGS): Likewise.
30982 (chain_mod_LDFLAGS): Likewise.
30983
30984 * DISTLIST: Added include/grub/efi/chainloader.h,
30985 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
30986
30987 * include/grub/efi/chainloader.h: New file.
30988 * loader/efi/chainloader.c: Likewise.
30989 * loader/efi/chainloader_normal.c: Likewise.
30990
c0111d6e 309912006-04-30 Marco Gerards <marco@gnu.org>
30992
30993 * commands/configfile.c (grub_cmd_source): New function.
30994 (GRUB_MOD_INIT): Register the commands `source' and `.'.
30995 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
30996
df5341da 309972006-04-30 Marco Gerards <marco@gnu.org>
30998
30999 * normal/execute.c (grub_script_execute_cmd): Change the return
31000 type to `grub_err_t'. Correctly return the error.
31001 (grub_script_execute_cmdline): In case a command line is not a
31002 command or a function, try to interpret it as an assignment.
31003
f85934bd 310042006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
31005
31006 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
31007 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
31008 skip a node whose name is obviously invalid as UTF-16,
31009 i.e. contains a NUL character. Stop the iteration when the last
31010 directory entry is found. Instead of using the return value of
31011 grub_hfsplus_btree_iterate_node, store the value in RET and use
31012 it, because the iterator can be stopped by the last directory
31013 entry.
31014
8f8a2cf8 310152006-04-30 Marco Gerards <marco@gnu.org>
31016
31017 * include/grub/env.h (grub_env_export): New prototype. Reported
31018 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
31019
a27e84ce 310202006-04-30 Marco Gerards <marco@gnu.org>
31021
31022 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
31023 size of the extents in a catalog file record.
31024
eaef0553 310252006-04-29 Marco Gerards <marco@gnu.org>
31026
31027 * commands/configfile.c (grub_cmd_configfile): Execute the
31028 configfile within its own context.
31029
31030 * include/grub/env.h (grub_env_context_open): New prototype.
31031 (grub_env_context_close): Likewise.
31032
31033 * kern/env.c (grub_env): Removed.
31034 (grub_env_sorted): Likewise.
31035 (grub_env_context): New variable.
31036 (grub_env_var_context): Likewise.
31037 (grub_env_find): Search both the active context and the global
31038 context.
31039 (grub_env_context_open): New function.
31040 (grub_env_context_close): Likewise.
31041 (grub_env_insert): Likewise.
31042 (grub_env_remove): Likewise.
31043 (grub_env_export): Likewise.
31044 (grub_env_set): Changed to use helper functions to avoid code
31045 duplication.
31046 (grub_env_iterate): Rewritten so both the current context and the
31047 global context are being used.
31048
31049 * normal/command.c (export_command): New function.
31050 (grub_command_init): Register the `export' function.
31051
7b455f4d 310522006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
31053
31054 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
31055 explicitly to suppress gcc's warnings.
31056 * fs/fat.c (grub_fat_find_dir): Likewise.
31057 (grub_fat_label): Likewise.
31058 * fs/xfs.c (grub_xfs_read_inode): Likewise.
31059 (grub_xfs_mount): Likewise.
31060 (grub_xfs_label): Likewise.
31061 * fs/affs.c (grub_affs_mount): Likewise.
31062 (grub_affs_label): Likewise.
31063 (grub_affs_iterate_dir): Likewise.
31064 * fs/sfs.c (grub_sfs_mount): Likewise.
31065 (grub_sfs_iterate_dir): Likewise.
31066 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
31067 * fs/hfs.c (grub_hfs_mount): Likewise.
31068 (grub_hfs_cmp_catkeys): Likewise.
31069 (grub_hfs_find_dir): Likewise.
31070 (grub_hfs_dir): Likewise.
31071 (grub_hfs_label): Likewise.
31072 * fs/jfs.c (grub_jfs_mount): Likewise.
31073 (grub_jfs_opendir): Likewise.
31074 (grub_jfs_getent): Likewise.
31075 (grub_jfs_lookup_symlink): Likewise.
31076 (grub_jfs_label): Likewise.
31077 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
31078 (grub_hfsplus_iterate_dir): Likewise.
31079 (grub_hfsplus_btree_iterate_node): Made static.
31080
31081 * util/grub-emu.c (prefix): New variable.
31082 (grub_machine_set_prefix): New function.
31083 (main): Do not set the environment variable "prefix" here. Only
31084 set PREFIX, which is used later by grub_machine_set_prefix.
31085
31086 * include/grub/video.h: Do not include grub/symbol.h.
31087 (grub_video_register): Not exported. This symbol is not defined in
31088 the kernel.
31089 (grub_video_unregister): Likewise.
31090 (grub_video_iterate): Likewise.
31091 (grub_video_setup): Likewise.
31092 (grub_video_restore): Likewise.
31093 (grub_video_get_info): Likewise.
31094 (grub_video_get_blit_format): Likewise.
31095 (grub_video_set_palette): Likewise.
31096 (grub_video_get_palette): Likewise.
31097 (grub_video_set_viewport): Likewise.
31098 (grub_video_get_viewport): Likewise.
31099 (grub_video_map_color): Likewise.
31100 (grub_video_map_rgb): Likewise.
31101 (grub_video_map_rgba): Likewise.
31102 (grub_video_fill_rect): Likewise.
31103 (grub_video_blit_glyph): Likewise.
31104 (grub_video_blit_bitmap): Likewise.
31105 (grub_video_blit_render_target): Likewise.
31106 (grub_video_scroll): Likewise.
31107 (grub_video_swap_buffers): Likewise.
31108 (grub_video_create_render_target): Likewise.
31109 (grub_video_delete_render_target): Likewise.
31110 (grub_video_set_active_render_target): Likewise.
31111
31112 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
31113 Undefined.
31114 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
31115
31116 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
31117 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31118 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31119 instead of $(srcdir)/genkernsyms.sh.
31120
31121 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
31122 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31123 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31124 instead of $(srcdir)/genkernsyms.sh.
31125
31126 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
31127 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31128 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31129 instead of $(srcdir)/genkernsyms.sh.
31130
31131 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
31132 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
31133 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
31134 instead of $(srcdir)/genkernsyms.sh.
31135
31136 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
31137 genkernsyms.sh.
31138
31139 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
31140 genkernsyms.sh.
31141 (gensymlist.sh): New target.
31142 (genkernsyms.sh): Likewise.
31143
31144 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
31145 genkernsyms.sh.in and gensymlist.sh.in.
31146
31147 * genkernsyms.sh: Removed.
31148 * gensymlist.sh: Likewise.
f19dbdb7 31149
7b455f4d 31150 * genkernsyms.sh.in: New file.
31151 * gensymlist.sh.in: Likewise.
31152
1885bb27 311532006-04-25 Hollis Blanchard <hollis@penguinppc.org>
31154
31155 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
31156 clobber "prefix", since we may have already set it manually.
31157
71538dff 311582006-04-25 Hollis Blanchard <hollis@penguinppc.org>
31159
31160 * kern/misc.c (abort): New alias for grub_abort.
31161
2965c7cc 311622006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
31163
31164 A new machine-specific function "grub_machine_set_prefix" is
31165 defined. This is called after loading modules, so that a prefix
31166 initialization can use modules. Also, this change adds an
31167 intensive debugging feature for the memory manager via the
31168 configure option "--enable-mm-debug".
f19dbdb7 31169
2965c7cc 31170 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
31171 PART.LEN.
31172
31173 * kern/sparc64/ieee1275/init.c (abort): Removed.
31174 (grub_stop): Likewise.
31175 (grub_exit): New function.
31176 (grub_set_prefix): Renamed to ...
31177 (grub_machine_set_prefix): ... this.
31178 (grub_machine_init): Do not call grub_set_prefix.
31179
31180 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
31181 (grub_machine_set_prefix): ... this.
31182 (grub_machine_init): Do not call grub_set_prefix.
31183
31184 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
31185 (grub_machine_init): Do not set the prefix here.
31186
31187 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
31188
31189 * kern/efi/init.c: Include grub/mm.h.
31190 (grub_efi_set_prefix): New function.
31191
31192 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
31193 (grub_efi_get_filename): New function.
31194 (grub_print_device_path): Renamed to ...
31195 (grub_efi_print_device_path): ... this.
31196
31197 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
31198 [MM_DEBUG] (grub_realloc): Likewise.
31199 [MM_DEBUG] (grub_free): Likewise.
31200 [MM_DEBUG] (grub_memalign): Likewise.
31201 [MM_DEBUG] (grub_mm_debug): New variable.
31202 [MM_DEBUG] (grub_debug_malloc): New function.
31203 [MM_DEBUG] (grub_debug_free): New function.
31204 [MM_DEBUG] (grub_debug_realloc): New function.
31205 [MM_DEBUG] (grub_debug_memalign): New function.
31206
31207 * kern/misc.c (grub_abort): Print a newline to distinguish
31208 the message.
31209
31210 * kern/main.c (grub_main): Call grub_machine_set_prefix and
31211 grub_set_root_dev after loading modules. This is necessary when
31212 setting a prefix depends on modules.
31213
31214 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
31215 (grub_efi_print_device_path): ... this.
31216 (grub_efi_get_filename): New prototype.
31217 (grub_efi_set_prefix): Likewise.
31218
31219 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
31220 and grub/disk.h.
31221 (grub_efidisk_get_device_handle): New prototype.
31222 (grub_efidisk_get_device_name): Likewise.
31223
31224 * include/grub/mm.h: Include config.h.
31225 (MM_DEBUG): Removed.
31226 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
31227 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
31228 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
31229 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
31230 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
31231 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
31232 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
31233 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
31234 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
31235
31236 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
31237
31238 * disk/efi/efidisk.c: Include grub/partition.h.
31239 (iterate_child_devices): New function.
31240 (add_device): First, compare only last device path nodes, so that
31241 devices are sorted by the types.
31242 (grub_efidisk_get_device_handle): New function.
31243 (grub_efidisk_get_device_name): Likewise.
31244
31245 * configure.ac (--enable-mm-debug): New option to enable the
31246 memory manager debugging feature. This makes the binary much
31247 bigger, so is disabled by default.
31248
9cacaa17 312492006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
31250
31251 Use grub_abort instead of grub_stop, and grub_exit must be
31252 define in each architecture now. Also, this change adds support
31253 for EFI disks.
f19dbdb7 31254
9cacaa17 31255 * util/i386/pc/grub-probefs.c: Include grub/term.h.
31256 (grub_getkey): New function.
31257 (grub_term_get_current): Likewise.
31258
31259 * util/i386/pc/grub-setup.c: Include grub/term.h.
31260 (grub_getkey): New function.
31261 (grub_term_get_current): Likewise.
31262
31263 * util/misc.c (grub_stop): Renamed to ...
31264 (grub_exit): ... this.
31265
31266 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
31267 (grub_exit): ... this.
31268 (grub_machine_init): Use grub_abort instead of abort.
31269 (grub_stop): Removed.
31270
31271 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
31272 abort.
31273
31274 * kern/i386/pc/startup.S (grub_exit): New function.
31275 (cold_reboot): New label.
31276
31277 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
31278 (grub_efi_init): Call grub_efidisk_init.
31279 (grub_efi_fini): Call grub_efidisk_fini.
31280
31281 * kern/efi/efi.c: Include grub/mm.h.
31282 (grub_efi_console_control_guid): Renamed to ...
31283 (console_control_guid): ... this.
31284 (grub_efi_loaded_image_guid): Renamed to ...
31285 (loaded_image_guid): ... this.
31286 (grub_efi_locate_handle): New function.
31287 (grub_efi_open_protocol): Likewise.
31288 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
31289 GRUB_EFI_CONSOLE_CONTROL_GUID.
31290 (grub_efi_exit): Removed.
31291 (grub_stop): Likewise.
31292 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
31293 (grub_exit): New function.
31294 (grub_print_device_path): Likewise.
31295
31296 * kern/rescue.c (grub_rescue_cmd_exit): New function.
31297 (grub_enter_rescue_mode): Register "exit".
31298
31299 * kern/misc.c (grub_real_dprintf): A cosmetic change.
31300 (grub_abort): New function.
31301
31302 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
31303
31304 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
31305
31306 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
31307
31308 * include/grub/efi/efi.h (grub_efi_exit): Removed.
31309 (grub_print_device_path): New prototype.
31310 (grub_efi_locate_handle): Likewise.
31311 (grub_efi_open_protocol): Likewise.
31312
31313 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
31314 * disk/efi/efidisk.c: Likewise.
31315
31316 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
31317
31318 * include/grub/efi/console_control.h
31319 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
31320
31321 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
31322 last 8 bytes as an array.
31323 (GRUB_EFI_DISK_IO_GUID): New macro.
31324 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
31325 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
31326 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
31327 grub_uint8_t.
31328 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
31329 (struct grub_efi_device_path): Rename the member "sub_type" to
31330 "subtype".
31331 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
31332 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
31333 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
31334 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
31335 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
31336 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
31337 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
31338 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
31339 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
31340 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
31341 (struct grub_efi_pci_device_path): New structure.
31342 (grub_efi_pci_device_path_t): New type.
31343 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
31344 (struct grub_efi_pccard_device_path): New structure.
31345 (grub_efi_pccard_device_path_t): New type.
31346 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
31347 (struct grub_efi_memory_mapped_device_path): New structure.
31348 (grub_efi_memory_mapped_device_path_t): New type.
31349 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
31350 (struct grub_efi_vendor_device_path): New structure.
31351 (grub_efi_vendor_device_path_t): New type.
31352 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
31353 (struct grub_efi_controller_device_path): New structure.
31354 (grub_efi_controller_device_path_t): New type.
31355 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
31356 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
31357 (struct grub_efi_acpi_device_path): New structure.
31358 (grub_efi_acpi_device_path_t): New type.
31359 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
31360 (struct grub_efi_expanded_acpi_device_path): New structure.
31361 (grub_efi_expanded_acpi_device_path_t): New type.
31362 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
31363 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
31364 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
31365 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
31366 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
31367 (struct grub_efi_atapi_device_path): New structure.
31368 (grub_efi_atapi_device_path_t): New type.
31369 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
31370 (struct grub_efi_fibre_channel_device_path): New structure.
31371 (grub_efi_fibre_channel_device_path_t): New type.
31372 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
31373 (struct grub_efi_1394_device_path): New structure.
31374 (grub_efi_1394_device_path_t): New type.
31375 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
31376 (struct grub_efi_usb_device_path): New structure.
31377 (grub_efi_usb_device_path_t): New type.
31378 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
31379 (struct grub_efi_usb_class_device_path): New structure.
31380 (grub_efi_usb_class_device_path_t): New type.
31381 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
31382 (struct grub_efi_i2o_device_path): New structure.
31383 (grub_efi_i2o_device_path_t): New type.
31384 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
31385 (struct grub_efi_mac_address_device_path): New structure.
31386 (grub_efi_mac_address_device_path_t): New type.
31387 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
31388 (struct grub_efi_ipv4_device_path): New structure.
31389 (grub_efi_ipv4_device_path_t): New type.
31390 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
31391 (struct grub_efi_ipv6_device_path): New structure.
31392 (grub_efi_ipv6_device_path_t): New type.
31393 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
31394 (struct grub_efi_infiniband_device_path): New structure.
31395 (grub_efi_infiniband_device_path_t): New type.
31396 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
31397 (struct grub_efi_uart_device_path): New structure.
31398 (grub_efi_uart_device_path_t): New type.
31399 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
31400 (struct grub_efi_vendor_messaging_device_path): New structure.
31401 (grub_efi_vendor_messaging_device_path_t): New type.
31402 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
31403 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
31404 (struct grub_efi_hard_drive_device_path): New structure.
31405 (grub_efi_hard_drive_device_path_t): New type.
31406 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
31407 (struct grub_efi_cdrom_device_path): New structure.
31408 (grub_efi_cdrom_device_path_t): New type.
31409 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
31410 (struct grub_efi_vendor_media_device_path): New structure.
31411 (grub_efi_vendor_media_device_path_t): New type.
31412 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
31413 (struct grub_efi_file_path_device_path): New structure.
31414 (grub_efi_file_path_device_path_t): New type.
31415 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
31416 (struct grub_efi_protocol_device_path): New structure.
31417 (grub_efi_protocol_device_path_t): New type.
31418 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
31419 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
31420 (struct grub_efi_bios_device_path): New structure.
31421 (grub_efi_bios_device_path_t): New type.
31422 (struct grub_efi_disk_io): New structure.
31423 (grub_efi_disk_io_t): New type.
31424 (struct grub_efi_block_io_media): New structure.
31425 (grub_efi_block_io_media_t): New type.
31426 (struct grub_efi_block_io): New structure.
31427 (grub_efi_block_io_t): New type.
31428
31429 * include/grub/misc.h (grub_stop): Removed.
31430 (grub_exit): New prototype.
31431 (grub_abort): Likewise.
31432
31433 * include/grub/disk.h (enum grub_disk_dev_id): Added
31434 GRUB_DISK_DEVICE_EFIDISK_ID.
31435
31436 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
31437 disk/efi/efidisk.c.
31438 (kernel_syms.lst): Remove the target if an error occurs.
31439
49986a9f 314402006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
31441
31442 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
31443 as it was simply too buggy.
31444
970d3b8a 314452006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
31446
31447 * kern/misc.c (grub_lltoa): New function.
31448 (grub_vsprintf): Added support for the long long suffix,
31449 i.e. "ll".
31450
ff04ec24 314512006-04-20 Hollis Blanchard <hollis@penguinppc.org>
31452
31453 * Makefile.in (LDFLAGS): Add variable.
31454 (LD): Remove variable.
31455 * configure.ac: Add -m32 to LDFLAGS.
31456 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
31457 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
31458 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
31459 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
31460 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
31461 variables.
31462 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
31463 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
31464 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
31465
37e5e1a4 314662006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
31467
31468 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
31469 length for unknown glyph.
31470
c352d8dd 314712006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
31472
2eab1c0d 31473 Add support for pre-loaded modules into the EFI port.
f19dbdb7 31474
2eab1c0d 31475 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
31476 completely. Accept one more argument DIR. The caller has changed.
31477
31478 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
31479
31480 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
31481 (grub_efi_loaded_image_guid): New variable.
31482 (grub_efi_get_loaded_image): New function.
31483 (grub_arch_modules_addr): Likewise.
31484
31485 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
31486 prototype.
31487
31488 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
31489 (struct grub_efi_loaded_image): New structure.
31490 (grub_efi_loaded_image_t): New type.
31491
314922006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 31493
c352d8dd 31494 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
31495 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
31496 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
31497
6d01d6b4 314982006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
31499
31500 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
31501
976a4ea0 315022006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
31503
31504 * DISTLIST: Added include/grub/efi/console.h,
31505 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
31506 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
31507
31508 * include/grub/efi/console.h: New file.
31509 * include/grub/efi/time.h: Likewise.
31510 * include/grub/i386/efi/kernel.h: Likewise.
31511 * kern/efi/init.c: Likewise.
31512 * kern/efi/mm.c: Likewise.
31513 * term/efi/console.c: Likewise.
f19dbdb7 31514
976a4ea0 31515 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
31516 (grub_stop): Removed.
31517 (grub_get_rtc): Likewise.
31518 (grub_machine_init): Simply call grub_efi_init.
31519 (grub_machine_fini): Call grub_efi_fini.
31520
31521 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
31522 (grub_efi_output_string): Removed.
31523 (grub_efi_stall): New function.
31524 (grub_stop): Likewise.
31525 (grub_get_rtc): Likewise.
31526
31527 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
31528 (grub_efi_stall): New prototype.
31529 (grub_efi_allocate_pages): Likewise.
31530 (grub_efi_free_pages): Likewise.
31531 (grub_efi_get_memory_map): Likewise.
31532 (grub_efi_mm_init): Likewise.
31533 (grub_efi_mm_fini): Likewise.
31534 (grub_efi_init): Likewise.
31535 (grub_efi_fini): Likewise.
31536
31537 * include/grub/i386/efi/time.h: Do not include
31538 grub/symbol.h. Include grub/efi/time.h.
31539 (GRUB_TICKS_PER_SECOND): Removed.
31540 (grub_get_rtc): Likewise.
31541
31542 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
31543 Added padding. The EFI spec is buggy.
31544 (GRUB_EFI_BLACK): New macro.
31545 (GRUB_EFI_BLUE): Likewise.
31546 (GRUB_EFI_GREEN): Likewise.
31547 (GRUB_EFI_CYAN): Likewise.
31548 (GRUB_EFI_RED): Likewise.
31549 (GRUB_EFI_MAGENTA): Likewise.
31550 (GRUB_EFI_BROWN): Likewise.
31551 (GRUB_EFI_LIGHTGRAY): Likewise.
31552 (GRUB_EFI_BRIGHT): Likewise.
31553 (GRUB_EFI_DARKGRAY): Likewise.
31554 (GRUB_EFI_LIGHTBLUE): Likewise.
31555 (GRUB_EFI_LIGHTGREEN): Likewise.
31556 (GRUB_EFI_LIGHTCYAN): Likewise.
31557 (GRUB_EFI_LIGHTRED): Likewise.
31558 (GRUB_EFI_LIGHTMAGENTA): Likewise.
31559 (GRUB_EFI_YELLOW): Likewise.
31560 (GRUB_EFI_WHITE): Likewise.
31561 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
31562 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
31563 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
31564 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
31565 (GRUB_EFI_BACKGROUND_RED): Likewise.
31566 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
31567 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
31568 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
31569 (GRUB_EFI_TEXT_ATTR): Likewise.
31570
31571 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
31572 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
31573 (kernel_mod_HEADERS): Added efi/time.h.
31574
83709125 315752006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
31576
31577 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
31578 include/grub/efi/api.h, include/grub/efi/console_control.h,
31579 include/grub/efi/efi.h, include/grub/efi/pe32.h,
31580 include/grub/i386/efi/time.h, kern/efi/efi.c,
31581 kern/i386/efi/init.c, kern/i386/efi/startup.S,
31582 and util/i386/efi/grub-mkimage.c.
31583
31584 * Makefile.in (RMKFILES): Added i386-efi.rmk.
31585
31586 * genmk.rb (PModule#rule): Do not export symbols if
31587 #{prefix}_EXPORTS is set to "no".
31588
31589 * conf/i386-efi.mk: New file.
31590 * conf/i386-efi.rmk: Likewise.
31591 * include/grub/efi/api.h: Likewise.
31592 * include/grub/efi/console_control.h: Likewise.
31593 * include/grub/efi/efi.h: Likewise.
31594 * include/grub/efi/pe32.h: Likewise.
31595 * include/grub/i386/efi/time.h: Likewise.
31596 * kern/efi/efi.c: Likewise.
31597 * kern/i386/efi/init.c: Likewise.
31598 * kern/i386/efi/startup.S: Likewise.
31599 * util/i386/efi/grub-mkimage.c: Likewise.
31600
316012006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 31602
31603 * include/grub/script.h: Include <grub/parser.h> and
31604 "grub_script.tab.h".
31605 (struct grub_lexer_param): New struct.
31606 (struct grub_parser_param): Likewise.
31607 (grub_script_create_arglist): Pass the state in an argument.
31608 (grub_script_add_arglist): Likewise.
31609 (grub_script_create_cmdline): Likewise.
31610 (grub_script_create_cmdblock): Likewise.
31611 (grub_script_create_cmdif): Likewise.
31612 (grub_script_create_cmdmenu): Likewise.
31613 (grub_script_add_cmd): Likewise.
31614 (grub_script_arg_add): Likewise.
31615 (grub_script_lexer_ref): Likewise.
31616 (grub_script_lexer_deref): Likewise.
31617 (grub_script_lexer_record_start): Likewise.
31618 (grub_script_lexer_record_stop): Likewise.
31619 (grub_script_mem_record): Likewise.
31620 (grub_script_mem_record_stop): Likewise.
31621 (grub_script_malloc): Likewise.
31622 (grub_script_yylex): Likewise.
31623 (grub_script_yyparse): Likewise.
31624 (grub_script_yyerror): Likewise.
31625 (grub_script_yylex): Likewise.
31626 (grub_script_lexer_init): Return the state.
31627
31628 * normal/lexer.c (grub_script_lexer_state): Removed variable.
31629 (grub_script_lexer_done): Likewise.
31630 (grub_script_lexer_getline): Likewise.
31631 (grub_script_lexer_refs): Likewise.
31632 (script): Likewise.
31633 (newscript): Likewise.
31634 (record): Likewise.
31635 (recording): Likewise.
31636 (recordpos): Likewise.
31637 (recordlen): Likewise.
31638 (grub_script_lexer_init): Return the state instead of setting
31639 global variables.
31640 (grub_script_lexer_ref): Use the newly added argument for state
31641 instead of globals.
31642 (grub_script_lexer_deref): Likewise.
31643 (grub_script_lexer_record_start): Likewise.
31644 (grub_script_lexer_record_stop): Likewise.
31645 (recordchar): Likewise.
31646 (nextchar): Likewise.
31647 (grub_script_yylex2): Likewise.
31648 (grub_script_yylex): Likewise.
31649 (grub_script_yyerror): Likewise.
31650
31651 * normal/parser.y (func_mem): Removed variable.
31652 (menu_entry): Likewise.
31653 (err): Likewise.
31654 (%lex-param): New parser option.
31655 (%parse-param): Likewise.
31656 (script): Always return the AST.
31657 (argument): Pass the state around.
31658 (arguments): Likewise.
31659 (grubcmd): Likewise.
31660 (commands): Likewise.
31661 (function): Likewise.
31662 (menuentry): Likewise.
31663 (if_statement): Likewise.
31664 (if): Likewise.
31665
31666 * normal/script.c (grub_script_memused): Removed variable.
31667 (grub_script_parsed): Likewise.
31668 (grub_script_malloc): Added a state argument. Use that instead of
31669 global variables.
31670 (grub_script_mem_record): Likewise.
31671 (grub_script_mem_record_stop): Likewise.
31672 (grub_script_arg_add): Likewise.
31673 (grub_script_add_arglist): Likewise.
31674 (grub_script_create_cmdline): Likewise.
31675 (grub_script_create_cmdif): Likewise.
31676 (grub_script_create_cmdmenu): Likewise.
31677 (grub_script_add_cmd): Likewise.
31678 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 31679
e2a8c904 316802006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 31681
31682 * normal/command.c (grub_command_init): Remove the title command.
31683
31684 * normal/lexer.c (grub_script_yylex): Renamed from this...
31685 (grub_script_yylex2): ... to this.
31686 (grub_script_yylex): New function. Temporary
31687 introduced to filter some tokens.
31688 (grub_script_yyerror): Print a newline.
31689
31690 * normal/main.c (read_config_file): Output information about the
31691 lines that contain errors. Wait for a key after all lines have
31692 been processed. Don't return an empty menu.
31693
31694 * normal/parser.y (func_mem): Don't initialize.
31695 (menu_entry): Likewise.
31696 (err): New variable.
31697 (script): Don't return anything when an error was encountered.
31698 (ws, returns): Removed rules.
31699 (argument): Disabled concatenated variable support.
31700 (arguments): Remove explicit separators.
31701 (grubcmd): Likewise.
31702 (function): Likewise.
31703 (menuentry): Likewise.
31704 (if): Likewise.
31705 (commands): Likewise. Add error handling.
31706
31707 * normal/script.c (grub_script_create_cmdline): If
31708 `grub_script_parsed' is 0, assume the parser encountered an error.
31709
c9a86192 317102006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
31711
31712 * configure.ac: Add support for EFI. Fix the typo
31713 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
31714
70f3b243 317152006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
31716
31717 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
31718 foreign multibyte characters should be shown correctly.
31719
65f201ad 317202006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
31721
31722 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
31723 calculation.
31724 (read_config_file): Made it to close file before returning.
31725
b4b93674 317262006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
31727
31728 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
31729 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
31730 video/i386/pc/vbefill.c.
31731
31732 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
31733 video/i386/pc/vbefill.c.
31734
31735 * include/grub/video.h (grub_video_blit_format): New enum.
31736 (grub_video_mode_info): Added new member blit_format.
31737 (grub_video_get_blit_format): New function prototype.
31738
31739 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
31740 function prototype.
31741 (grub_video_vbe_map_rgb): Likewise.
31742 (grub_video_vbe_unmap_color): Likewise.
31743
31744 * include/grub/i386/pc/vbeblit.h: New file.
31745
31746 * include/grub/i386/pc/vbefill.h: New file.
31747
31748 * video/video.c (grub_video_get_blit_format): New function.
31749 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
31750 (grub_video_vbe_map_rgb): Likewise.
31751 (grub_video_vbe_unmap_color): Likewise.
31752
31753 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
31754 optimized fills.
31755 (grub_video_vbe_blit_render_target): Changed to use more optimized
31756 blits.
31757 (grub_video_vbe_setup): Added detection for optimized settings.
31758 (grub_video_vbe_create_render_target): Likewise.
31759
31760 * video/i386/pc/vbeblit.c: New file.
31761
31762 * video/i386/pc/vbefill.c: New file.
31763
c2379b9c 317642006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
31765
31766 * font/manager.c (grub_font_get_glyph): Removed font fixup from
31767 here...
31768
31769 * util/unifont2pff.rb: ... and moved it to here. Improved argument
31770 parsing to support both hex and dec ranges. If filename was missing
31771 show usage information.
31772
bd0d7896 317732006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
31774
31775 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
31776 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
31777
31778 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
31779 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
31780 (video_mod_SOURCES): Added.
31781 (video_mod_CFLAGS): Likewise.
31782 (video_mod_LDFLAGS): Likewise.
31783 (gfxterm_mod_SOURCES): Likewise.
31784 (gfxterm_mod_CFLAGS): Likewise.
31785 (gfxterm_mod_LDFLAGS): Likewise.
31786 (videotest_mod_SOURCES): Likewise.
31787 (videotest_mod_CFLAGS): Likewise.
31788 (videotest_mod_LDFLAGS): Likewise.
31789 (vesafb_mod_SOURCES): Removed.
31790 (vesafb_mod_CFLAGS): Likewise.
31791 (vesafb_mod_LDFLAGS): Likewise.
31792 (vga_mod_SOURCES): Likewise.
31793 (vga_mod_CFLAGS): Likewise.
31794 (vga_mod_LDFLAGS): Likewise.
31795
31796 * commands/videotest.c: New file.
31797
31798 * font/manager.c (fill_with_default_glyph): Modified to use
31799 grub_font_glyph.
31800 (grub_font_get_glyph): Likewise.
31801 (fontmanager): Renamed from this...
31802 (font_manager): ... to this.
31803
31804 * include/grub/font.h (grub_font_glyph): Added new structure.
31805 (grub_font_get_glyph): Modified to use grub_font_glyph.
31806
31807 * include/grub/misc.h (grub_abs): Added as inline function.
31808
31809 * include/grub/video.h: New file.
31810
31811 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
31812 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
31813 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
31814 (grub_vbe_get_controller_info): Renamed from this...
31815 (grub_vbe_bios_get_controller_info): ... to this.
31816 (grub_vbe_get_mode_info): Renamed from this...
31817 (grub_vbe_bios_get_mode_info): ... to this.
31818 (grub_vbe_set_mode): Renamed from this...
31819 (grub_vbe_bios_set_mode): ... to this.
31820 (grub_vbe_get_mode): Renamed from this...
31821 (grub_vbe_bios_get_mode): ... to this.
31822 (grub_vbe_set_memory_window): Renamed from this...
31823 (grub_vbe_bios_set_memory_window): ... to this.
31824 (grub_vbe_get_memory_window): Renamed from this...
31825 (grub_vbe_bios_get_memory_window): ... to this.
31826 (grub_vbe_set_scanline_length): Renamed from this...
31827 (grub_vbe_set_scanline_length): ... to this.
31828 (grub_vbe_get_scanline_length): Renamed from this...
31829 (grub_vbe_bios_get_scanline_length): ... to this.
31830 (grub_vbe_set_display_start): Renamed from this...
31831 (grub_vbe_bios_set_display_start): ... to this.
31832 (grub_vbe_get_display_start): Renamed from this...
31833 (grub_vbe_bios_get_display_start): ... to this.
31834 (grub_vbe_set_palette_data): Renamed from this...
31835 (grub_vbe_bios_set_palette_data): ... to this.
31836 (grub_vbe_set_pixel_rgb): Removed.
31837 (grub_vbe_set_pixel_index): Likewise.
31838
31839 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
31840 from this...
31841 (grub_vbe_bios_get_controller_info): ... to this.
31842 (grub_vbe_get_mode_info): Renamed from this...
31843 (grub_vbe_bios_get_mode_info): ... to this.
31844 (grub_vbe_set_mode): Renamed from this...
31845 (grub_vbe_bios_set_mode): ... to this.
31846 (grub_vbe_get_mode): Renamed from this...
31847 (grub_vbe_bios_get_mode): ... to this.
31848 (grub_vbe_set_memory_window): Renamed from this...
31849 (grub_vbe_bios_set_memory_window): ... to this.
31850 (grub_vbe_get_memory_window): Renamed from this...
31851 (grub_vbe_bios_get_memory_window): ... to this.
31852 (grub_vbe_set_scanline_length): Renamed from this...
31853 (grub_vbe_set_scanline_length): ... to this.
31854 (grub_vbe_get_scanline_length): Renamed from this...
31855 (grub_vbe_bios_get_scanline_length): ... to this.
31856 (grub_vbe_set_display_start): Renamed from this...
31857 (grub_vbe_bios_set_display_start): ... to this.
31858 (grub_vbe_get_display_start): Renamed from this...
31859 (grub_vbe_bios_get_display_start): ... to this.
31860 (grub_vbe_set_palette_data): Renamed from this...
31861 (grub_vbe_bios_set_palette_data): ... to this.
31862 (grub_vbe_bios_get_controller_info): Fixed problem with registers
31863 getting corrupted after calling it. Added more pushes and pops.
31864 (grub_vbe_bios_set_mode): Likewise.
31865 (grub_vbe_bios_get_mode): Likewise.
31866 (grub_vbe_bios_get_memory_window): Likewise.
31867 (grub_vbe_bios_set_scanline_length): Likewise.
31868 (grub_vbe_bios_get_scanline_length): Likewise.
31869 (grub_vbe_bios_get_display_start): Likewise.
31870 (grub_vbe_bios_set_palette_data): Likewise.
31871
31872 * normal/cmdline.c (cl_set_pos): Refresh the screen.
31873 (cl_insert): Likewise.
31874 (cl_delete): Likewise.
31875
31876 * term/gfxterm.c: New file.
31877
31878 * term/i386/pc/vesafb.c: Removed file.
31879
31880 * video/video.c: New file.
31881
31882 * video/i386/pc/vbe.c (real2pm): Added new function.
31883 (grub_video_vbe_draw_pixel): Likewise.
31884 (grub_video_vbe_get_video_ptr): Likewise.
31885 (grub_video_vbe_get_pixel): Likewise
31886 (grub_video_vbe_init): Likewise.
31887 (grub_video_vbe_fini): Likewise.
31888 (grub_video_vbe_setup): Likewise.
31889 (grub_video_vbe_get_info): Likewise.
31890 (grub_video_vbe_set_palette): Likewise.
31891 (grub_video_vbe_get_palette): Likewise.
31892 (grub_video_vbe_set_viewport): Likewise.
31893 (grub_video_vbe_get_viewport): Likewise.
31894 (grub_video_vbe_map_color): Likewise.
31895 (grub_video_vbe_map_rgb): Likewise.
31896 (grub_video_vbe_map_rgba): Likewise.
31897 (grub_video_vbe_unmap_color): Likewise.
31898 (grub_video_vbe_fill_rect): Likewise.
31899 (grub_video_vbe_blit_glyph): Likewise.
31900 (grub_video_vbe_blit_bitmap): Likewise.
31901 (grub_video_vbe_blit_render_target): Likewise.
31902 (grub_video_vbe_scroll): Likewise.
31903 (grub_video_vbe_swap_buffers): Likewise.
31904 (grub_video_vbe_create_render_target): Likewise.
31905 (grub_video_vbe_delete_render_target): Likewise.
31906 (grub_video_vbe_set_active_render_target): Likewise.
31907 (grub_vbe_set_pixel_rgb): Remove function.
31908 (grub_vbe_set_pixel_index): Likewise.
31909 (index_color_mode): Remove static variable.
31910 (active_mode): Likewise.
31911 (framebuffer): Likewise.
31912 (bytes_per_scan_line): Likewise.
31913 (grub_video_vbe_adapter): Added new static variable.
31914 (framebuffer): Likewise.
31915 (render_target): Likewise.
31916 (initial_mode): Likewise.
31917 (mode_in_use): Likewise.
31918 (mode_list): Likewise.
31919
5f97350b 319202006-03-10 Marco Gerards <marco@gnu.org>
31921
31922 * configure.ac (AC_INIT): Bumped to 1.93.
31923
31924 * DISTLIST: Added `include/grub/hfs.h'.
31925
a3c5c6f8 319262006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
31927
31928 * boot/i386/pc/boot.S (general_error): Before looping, try INT
31929 18H, which might help the BIOS falling back to next boot media.
31930
6de53d26 319312006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
31932
31933 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
31934 Poe Chen <poe.poechen@gmail.com>.
31935
77c4a393 319362006-01-17 Marco Gerards <marco@gnu.org>
31937
31938 * include/grub/normal.h: Include <grub/script.h>.
31939 (grub_command_list): Removed struct.
31940 (grub_command_list_t): Removed type.
31941 (grub_menu_entry): Remove members `num' and `command_list'. Add
31942 members `commands' and `sourcecode'.
31943 * include/grub/script.h: Add inclusion guards.
31944 (grub_script_cmd_menuentry): New struct.
31945 (grub_script_execute_menuentry): New prototype.
31946 (grub_script_lexer_record_start): Likewise.
31947 (grub_script_lexer_record_stop): Likewise.
31948 * normal/execute.c (grub_script_execute_menuentry): New function.
31949 * normal/lexer.c (record, recording, recordpos, recordlen): New
31950 variables.
31951 (grub_script_lexer_record_start): New function.
31952 (grub_script_lexer_record_stop): Likewise.
31953 (recordchar): Likewise.
31954 (nextchar): Likewise.
31955 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
31956 2048 as the buffer size. Add the tokens `menuentry' and `@'.
31957 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
31958 (current_menu): New variable.
31959 (free_menu): Mainly rewritten.
31960 (grub_normal_menu_addentry): New function.
31961 (read_config_file): Rewritten.
31962 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 31963 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 31964 the menu entry.
31965 (run): Mainly rewritten.
31966 * normal/parser.y (menu_entry): New variable.
31967 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
31968 (menuentry): New rule.
31969 (command): Add `menuentry'.
31970 (if_statement): Allow additional returns before `fi'.
31971 * normal/script.c (grub_script_create_cmdmenu): New function.
31972
144f1f98 319732006-01-03 Marco Gerards <marco@gnu.org>
31974
31975 * INSTALL: GNU Bison is required.
31976 * configure.ac: Rewritten the test to detect Bison.
31977 * Makefile.in (YACC): New variable. Reported by Xun Sun
31978 <xun.sun.cn@gmail.com>.
31979
af4b2d89 319802006-01-03 Marco Gerards <marco@gnu.org>
31981
31982 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
31983 the HFS+ filesystem to filesystem blocks.
31984 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
31985 GCC warning is silenced.
31986
15643b71 319872006-01-03 Marco Gerards <marco@gnu.org>
31988
31989 * partmap/apple.c (apple_partition_map_iterate): Convert the data
31990 read from disk from big endian to host byte order.
31991
00905879 319922006-01-03 Hollis Blanchard <hollis@penguinppc.org>
31993
31994 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
31995 documentation.
31996 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
31997 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
31998 embedded HFS+ filesystem.
31999 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
32000 (grub_hfs_sblock): Move from here...
32001 * include/grub/hfs.h: To here... New file.
32002 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
32003 documentation.
32004 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
32005 New macros.
32006 (grub_hfsplus_volheader): Change type of member `magic' to
32007 `grub_uint16_t'.
32008 (grub_hfsplus_data): Add new member `embedded_offset'.
32009 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
32010 returned block.
32011 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
32012 Calculate the offset.
32013
8899bc3e 320142005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
32015
32016 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
32017 Removed.
32018 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
32019
ae8c0277 320202005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
32021
32022 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
32023 ENV->NAME is NULL after allocating ENV->VALUE.
32024
07084456 320252005-12-25 Marco Gerards <marco@gnu.org>
32026
32027 * kern/env.c (grub_env_set): Rewritten the error handling code.
32028
4750f5f1 320292005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
32030
32031 * geninit.sh: Made more robust, and more portable.
32032
50214199 320332005-12-25 Marco Gerards <marco@gnu.org>
32034
32035 Add support for Apple HFS+ filesystems.
f19dbdb7 32036
50214199 32037 * fs/hfsplus.c: New file.
32038
32039 * DISTLIST: Added `fs/hfsplus.c'.
32040
32041 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
32042 (hfsplus_mod_SOURCES): New variable.
32043 (hfsplus_mod_CFLAGS): Likewise.
32044 (hfsplus_mod_LDFLAGS): Likewise.
32045 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
32046 (grub_setup_SOURCES): Likewise.
32047 (grub_mkdevicemap_SOURCES): Likewise.
32048 (grub_emu_SOURCES): Likewise.
32049 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32050
32051 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
32052
32053 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
32054
befaed6c 320552005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
32056
32057 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
32058 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
32059 include/grub/parser.h, include/grub/script.h, kern/parser.c,
32060 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
32061 normal/lexer.c, normal/parser.y, normal/script.c, and
32062 partmap/gpt.c.
32063 Removed kern/sparc64/cache.c.
32064
32065 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
32066 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
32067 grub_emu_init.c.
32068
32069 * configure.ac (AC_INIT): Bumped to 1.92.
32070
6a124103 320712005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
32072
32073 * kern/err.c (grub_error_push): Added new function to support error
32074 stacks.
32075 (grub_error_pop): Likewise.
32076 (grub_error_stack_items): New local variable to support error stacks.
32077 (grub_error_stack_pos): Likewise.
32078 (grub_error_stack_assert): Likewise.
32079 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
32080 stack depth.
32081 (grub_print_error): Added support to print errors from error stack.
32082
32083 * include/grub/err.h (grub_error_push): Added function prototype.
32084 (grub_error_pop): Likewise.
32085
be973c1b 320862005-12-09 Hollis Blanchard <hollis@penguinppc.org>
32087
32088 * configure.ac: Accept `powerpc64' as host_cpu.
32089 (amd64): Rename to `biarch32'.
32090
32091 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
32092 non-cacheline-aligned addresses.
32093
32094 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
32095 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
32096 if `size' is non-zero.
32097
b04216ab 320982005-12-03 Marco Gerards <mgerards@xs4all.nl>
32099
32100 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
32101 and `cd' to make sure the filename is not prefixed with a
32102 directory name.
32103 (pkgdata_MODULES): Add `gpt.mod'.
32104 (gpt_mod_SOURCES): New variable.
32105 (gpt_mod_CFLAGS): Likewise.
32106 (gpt_mod_LDFLAGS): Likewise.
32107
32108 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
32109
32110 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
32111 New macro.
32112
32113 * partmap/gpt.c: New file.
32114
32115 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
32116 GPT partition map is detected.
32117
41730ed9 321182005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
32119
32120 * commands/i386/pc/play.c: New file.
32121 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
32122 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
32123 macros.
f19dbdb7 32124
95dc3643 321252005-11-27 Marco Gerards <mgerards@xs4all.nl>
32126
32127 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
32128 ((unused))' to silence gcc warning.
32129
1569ec51 321302005-11-26 Hollis Blanchard <hollis@penguinppc.org>
32131
32132 * configure.ac: Correct `AC_PROG_YACC' test.
32133
9abde152 321342005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32135
32136 * util/powerpc/ieee1275/grub-install.in: Run the mount point
32137 check before installing files.
32138
44b83271 321392005-11-22 Mike Small <smallm@panix.com>
32140
32141 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
32142 number regex so multidigit numbers are recognized correctly.
32143
321442005-11-22 Mike Small <smallm@panix.com>
32145
32146 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
32147 debugging message before attempting to claim memory.
32148 (grub_rescue_cmd_initrd): Add a claim debugging message and try
32149 multiple addresses in case of failure.
32150
9c12956b 321512005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32152
32153 * term/tparm.c (get_space): Remove empty `if' statement.
32154
32155 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
32156
32157 * kern/parser.c (check_varstate): Rename `state' to 's'.
32158
aeaf81d9 321592005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32160
32161 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
32162 variable definitions to the beginning of each function. Sort stack
32163 variables by size.
32164 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
32165 `buf' argument to `char *'.
32166
79bbb63f 321672005-11-22 Hollis Blanchard <hollis@penguinppc.org>
32168
32169 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
32170 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 32171 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 32172 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
32173 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
32174 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
32175 configfile.mod, search.mod, gzio.mod and test.mod.
32176 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
32177 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
32178 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
32179 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
32180 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
32181 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
32182 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
32183 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
32184 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
32185 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
32186 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
32187 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
32188 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
32189 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
32190 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
32191 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
32192 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
32193 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
32194 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
32195 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
32196 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
32197 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
32198 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
32199
32200 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
32201 `grep --include'.
32202 (pkgdata_MODULES): Add test.mod.
32203
233b1628 322042005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32205
32206 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
32207 appending to variables with "+=".
32208 (PModule): Use full pathname to generate *.lst filenames.
32209
32210 * Makefile.in: Fixed list rules moved from genmk.rb.
32211 (.DELETE_ON_ERROR): New special target.
32212 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
32213
32214 * conf/i386-pc.rmk: Include conf/common.mk.
32215 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 32216 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 32217 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
32218 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
32219 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
32220 configfile.mod, search.mod, gzio.mod and test.mod.
32221 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
32222 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
32223 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
32224 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
32225 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
32226 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
32227 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
32228 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
32229 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
32230 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
32231 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
32232 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
32233 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
32234 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
32235 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
32236 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
32237 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
32238 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
32239 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
32240 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
32241 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
32242 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
32243 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
32244 here...
32245 * conf/common.rmk: ... to here. New file.
32246
32247 * conf/common.mk: New file.
32248
16f820c8 322492005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
32250
32251 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
32252 (grub_script.tab.c): ... here.
32253
32254 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
32255 (grub_script.tab.c): ... here.
32256
32257 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
32258 (grub_script.tab.c): ... here.
32259
32260 * normal/command.c (grub_command_find): Fixed a memory leak of
32261 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
32262
63ba1554 322632005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32264
32265 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
32266 "@" which marks the start of a comment on ARM.
32267 (VARIABLE): Likewise.
32268
7f67dc13 322692005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32270
79bbb63f 32271 Add support for Linux/ADFS partition tables.
7f67dc13 32272
32273 * partmap/acorn.c: New file.
32274
32275 * include/grub/acorn_filecore.h: Likewise.
32276
32277 * DISTLIST: Added `partmap/acorn.c' and
32278 `include/grub/acorn_filecore.h'.
f19dbdb7 32279
7f67dc13 32280 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
32281 `partmap/acorn.c'.
32282 (pkgdata_MODULES): Add `acorn.mod'.
32283 (acorn_mod_SOURCES): New variable.
32284 (acorn_mod_CFLAGS): Likewise.
32285
32286 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
32287 `partmap/acorn.c'.
32288 (pkgdata_MODULES): Add `acorn.mod'.
32289 (acorn_mod_SOURCES): New variable.
32290 (acorn_mod_CFLAGS): Likewise.
32291
32292 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
32293 (pkgdata_MODULES): Add `acorn.mod'.
32294 (acorn_mod_SOURCES): New variable.
32295 (acorn_mod_CFLAGS): Likewise.
32296 (acorn_mod_LDFLAGS): Likewise.
32297
32298 * include/types.h (grub_disk_addr_t): New typedef.
32299
6d099807 323002005-11-13 Marco Gerards <mgerards@xs4all.nl>
32301
32302 * geninit.sh: New file.
32303
32304 * geninitheader.sh: Likewise.
32305
32306 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
32307 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
32308 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
32309 * commands/configfile.c (grub_configfile_init)
32310 (grub_configfile_fini): Likewise.
32311 * commands/default.c (grub_default_init, grub_default_fini):
32312 Likewise.
32313 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
32314 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
32315 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
32316 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
32317 Likewise.
32318 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
32319 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
32320 Likewise.
32321 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 32322 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 32323 Likewise.
32324 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
32325 Likewise.
fe6b695a 32326 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 32327 Likewise.
32328 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
32329 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
32330 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
32331 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
32332 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
32333 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
32334 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
32335 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
32336 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
32337 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
32338 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
32339 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
32340 * partmap/amiga.c (grub_amiga_partition_map_init)
32341 (grub_amiga_partition_map_fini): Likewise.
32342 * partmap/apple.c (grub_apple_partition_map_init)
32343 (grub_apple_partition_map_fini): Likewise.
32344 * partmap/pc.c (grub_pc_partition_map_init)
32345 (grub_pc_partition_map_fini): Likewise.
32346 * partmap/sun.c (grub_sun_partition_map_init,
32347 grub_sun_partition_map_fini): Likewise.
32348 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
32349 Likewise.
32350
32351 * util/grub-emu.c: Include <grub_modules_init.h>.
32352 (main): Don't initialize and de-initialize any modules directly,
32353 use `grub_init_all' and `grub_fini_all' instead.
32354
32355 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
32356 `grub_vesafb_mod_init'.
32357 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
32358 all users.
32359 * term/i386/pc/vga.c (grub_vga_init): Renamed to
32360 `grub_vga_mod_init'. Updated all users.
32361 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 32362
6d099807 32363 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
32364 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
32365 rules.
32366
32367 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
32368 Generate a function to initialize the module in utilities.
32369 Updated all callers.
32370 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
32371 initialize the module in utilities. Updated all callers.
32372
9046bcf0 323732005-11-09 Hollis Blanchard <hollis@penguinppc.org>
32374
32375 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
32376 escape sequence and a literal ^L to clear the screen.
32377
32378 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
32379 when returning from Open Firmware.
32380
d13ea639 323812005-11-09 Hollis Blanchard <hollis@penguinppc.org>
32382
32383 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
32384 (grub_ofconsole_height): Likewise.
32385 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
32386 manually insert a '\n'.
32387 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
32388 `grub_ofconsole_height'. Return early if these are already set.
32389
a8fcf206 323902005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
32391
32392 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
32393 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
32394 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
32395 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
32396 and `normal/script.c'.
32397 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
32398 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32399 (test_mod_SOURCES): New variable.
32400 (test_mod_CFLAGS): Likewise.
32401 (test_mod_LDFLAGS): Likewise.
32402 (pkgdata_MODULES): Add `test.mod'.
32403 (grub_script.tab.c): New rule.
32404 (grub_script.tab.h): Likewise.
32405
b6b32745 324062005-11-07 Marco Gerards <mgerards@xs4all.nl>
32407
32408 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
32409 `commands/test.c', `normal/execute.c', `normal/lexer.c',
32410 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32411 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
32412 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
32413 (test_mod_SOURCES): New variable.
32414 (test_mod_CFLAGS): Likewise.
32415 (pkgdata_MODULES): Add `test.mod'.
32416 (grub_script.tab.c): New rule.
32417 (grub_script.tab.h): Likewise.
32418
daac212a 324192005-11-06 Marco Gerards <mgerards@xs4all.nl>
32420
32421 Add initial scripting support.
32422
32423 * commands/test.c: New file.
32424 * include/grub/script.h: Likewise.
32425 * normal/execute.c: Likewise.
32426 * normal/function.c: Likewise.
32427 * normal/lexer.c: Likewise.
32428 * normal/parser.y: Likewise.
32429 * normal/script.c: Likewise.
32430
32431 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 32432
daac212a 32433 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
32434 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
32435 `normal/function.c' and `normal/script.c'.
32436 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
32437 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 32438 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
32439 variables.
daac212a 32440 (pkgdata_MODULES): Add `test.mod'.
32441 (grub_script.tab.c): New rule.
32442 (grub_script.tab.h): Likewise.
32443
32444 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
32445
32446 * include/grub/normal.h (grub_test_init): New prototype.
32447 (grub_test_fini): Likewise.
f19dbdb7 32448
daac212a 32449 * normal/command.c: Include <grub/script.h>.
32450 (grub_command_execute): Rewritten.
f19dbdb7 32451
daac212a 32452 * util/grub-emu.c (main): Call `grub_test_init' and
32453 `grub_test_fini'.
32454
77500b2b 324552005-11-03 Hollis Blanchard <hollis@penguinppc.org>
32456
32457 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
32458 to 0.
32459 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
32460 there are no pending characters.
32461
e45deb9e 324622005-11-03 Hollis Blanchard <hollis@penguinppc.org>
32463
32464 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
32465 `grub_strndup' to drop device arguments. Replace unnecessary
32466 `grub_strndup' with `grub_strdup'.
32467
4ce32619 324682005-11-03 Hollis Blanchard <hollis@penguinppc.org>
32469
32470 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
32471 `debug' environment variable has been set.
32472
324732005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 32474
4ce32619 32475 * Makefile.in (install-local): Use $(DATA).
32476 (uninstall): Likewise.
32477 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
32478 (sbin_UTILITIES): ... to here.
32479 (sbin_SCRIPTS): New variable.
32480 (grub_install_SOURCES): New variable.
32481 * util/powerpc/ieee1275/grub-install.in: New file.
32482 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
32483 variable.
32484 (add_segments): Call `grub_util_get_path'.
32485
25fe6f03 324862005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
32487
32488 From Timothy Baldwin:
32489 * commands/ls.c (grub_ls_list_files): Close FILE with
32490 grub_file_close.
32491 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
32492
04ccf3ec 324932005-10-24 Marco Gerards <mgerards@xs4all.nl>
32494
32495 * include/grub/parser.h: New file.
32496
32497 * kern/parser.c: Likewise.
32498
32499 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
32500 (grub_setup_SOURCES): Likewise.
32501 (grub_probefs_SOURCES): Likewise.
32502 (grub_emu_SOURCES): Likewise.
32503 (kernel_img_HEADERS): Add `parser.h'.
32504
32505 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
32506 (grub_emu_SOURCES): Add `kern/parser.c'.
32507 (grubof_SOURCES): Likewise.
32508
32509 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
32510 (grubof_SOURCES): Add `kern/parser.c'.
32511
32512 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
32513
32514 * kern/misc.c (grub_split_cmdline): Removed function.
32515
32516 * kern/rescue.c: Include <grub/parser.h>.
32517 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
32518 of `grub_split_cmdline'.
32519
32520 * normal/command.c: Include <grub/parser.h>.
32521 (grub_command_execute): Use `grub_parser_split_cmdline' instead
32522 of `grub_split_cmdline'.
32523
32524 * normal/completion.c: Include <grub/parser.h>.
32525 (cmdline_state): New variable.
32526 (iterate_dir): End the filename with a quote depending on the
32527 command line state.
32528 (get_state): new function.
32529 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
32530 split the arguments and determine the current argument. When the
32531 argument string is not quoted, escape all spaces.
32532
6d8f4b0e 325332005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
32534
32535 * normal/sparc64/setjmp.S: New file.
32536
15cf03ed 325372005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
32538
32539 * include/grub/sparc64/libgcc.h: New file.
32540 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
32541 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
32542 normal/sparc64/setjmp.c.
32543
03e8661a 325442005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
32545
32546 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
32547 * kern/sparc64/cache.S: New file.
32548 * kern/sparc64/cache.c: Removed.
32549 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
32550 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
32551 -mtune=ultrasparc.
32552 (COMMON_LDFLAGS): Add -melf64_sparc.
32553 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
32554 (grubof_SOURCES): Use cache.S instead of cache.c.
32555 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
32556 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
32557 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
32558 commented though.
32559 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
32560 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
32561 (linux_mod_CFLAGS): Commented out.
32562 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
32563 out because module isn't built.
32564 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
32565 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
32566 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
32567 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
32568 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
32569 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
32570 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
32571 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
32572 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
32573 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
32574 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
32575 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
32576 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
32577 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
32578
34eeec8a 325792005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
32580
32581 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
32582 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
32583 longer, because HFS should not be used on PC.
32584
708367a3 325852005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32586
32587 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
32588 consistently within the loop.
32589
6fa1251a 325902005-10-15 Marco Gerards <mgerards@xs4all.nl>
32591
32592 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
32593 directory can not be read.
32594
4801580b 325952005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
32596
32597 * configure.ac (AC_INIT): Increase the version number to 1.91.
32598
32599 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
32600 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
32601 term/i386/pc/serial.c.
32602
219ad426 326032005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
32604
32605 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
32606 file size must be permitted.
32607
32608 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
32609 between %ah and %al.
32610
688e5699 326112005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
32612
32613 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
32614 grub_uint64_t.
32615 Call the hook with a NUL-terminated filename.
32616 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
32617 grub_cpu_to_be32.
32618
32619 * kern/term.c (cursor_state): New variable.
32620 (grub_term_set_current): Reset the cursor state on a new
32621 terminal.
32622 (grub_setcursor): Rewritten to use CURSOR_STATE.
32623 (grub_getcursor): New function.
32624
32625 * include/grub/term.h (grub_getcursor): New prototype.
32626
32627 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
32628 integers on ARM. Reported by Timothy Baldwin
32629 <T.E.Baldwin99@members.leeds.ac.uk>.
32630
bb34586c 326312005-10-11 Marco Gerards <mgerards@xs4all.nl>
32632
32633 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
32634 allocated.
32635 (grub_sfs_dir): Likewise.
32636
9a909877 326372005-10-09 Marco Gerards <mgerards@xs4all.nl>
32638
32639 Add support for the SFS filesystem.
32640
32641 * fs/sfs.c: New file.
32642
32643 * DISTLIST: Added `fs/sfs.c'.
32644
32645 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
32646 (grub_probefs_SOURCES): Likewise.
32647 (grub_emu_SOURCES): Likewise.
32648 (pkgdata_MODULES): Add `sfs.mod'.
32649 (sfs_mod_SOURCES): New variable.
32650 (sfs_mod_CFLAGS): Likewise.
32651 (sfs_mod_LDFLAGS): Likewise.
32652
32653 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
32654 (pkgdata_MODULES): Add `sfs.mod'.
32655 (sfs_mod_SOURCES): New variable.
32656 (sfs_mod_CFLAGS): Likewise.
32657
32658 * util/grub-emu.c (main): Call `grub_sfs_init' and
32659 `grub_sfs_fini'.
32660
32661 * include/grub/fs.h (grub_sfs_init): New prototype.
32662 (grub_sfs_fini): Likewise.
32663
57bdbde3 326642005-10-07 Marco Gerards <mgerards@xs4all.nl>
32665
32666 Add support for the AFFS filesystem.
32667
32668 * fs/affs.c: New file.
32669
32670 * DISTLIST: Added `fs/affs.c'.
32671
32672 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
32673 (grub_probefs_SOURCES): Likewise.
32674 (grub_emu_SOURCES): Likewise.
32675 (pkgdata_MODULES): Add `affs.mod'.
32676 (affs_mod_SOURCES): New variable.
32677 (affs_mod_CFLAGS): Likewise.
32678 (affs_mod_LDFLAGS): Likewise.
32679
32680 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
32681 (pkgdata_MODULES): Add `affs.mod'.
32682 (affs_mod_SOURCES): New variable.
32683 (affs_mod_CFLAGS): Likewise.
32684
32685 * util/grub-emu.c (main): Call `grub_affs_init' and
32686 `grub_affs_fini'.
32687
32688 * include/grub/fs.h (grub_affs_init): New prototype.
32689 (grub_affs_fini): Likewise.
32690
047b67e0 326912005-10-01 Marco Gerards <mgerards@xs4all.nl>
32692
32693 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
32694
59b8208a 326952005-10-01 Marco Gerards <mgerards@xs4all.nl>
32696
32697 * configure.ac: Accept `x86_64' as host_cpu. In that case add
32698 `-m32' to CFLAGS.
32699
32700 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
32701 linking.
f19dbdb7 32702
59b8208a 32703 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
32704 (COMMON_LDFLAGS): New variable.
32705 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
32706 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
32707 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
32708 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
32709 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
32710 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
32711 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
32712 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
32713 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
32714 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
32715 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
32716 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
32717 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
32718 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
32719 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
32720 variables.
32721 (normal_mod_ASFLAGS): Add `-m32'.
32722
32723 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
32724 (grub_host_size_t, grub_host_ssize_t): New types.
32725 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 32726 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 32727 `GRUB_HOST_SIZEOF_VOID_P'.
32728
32729 * include/grub/kernel.h (struct grub_module_header): Type of
32730 member offset changed to `grub_host_off_t'. Type of member size
32731 changed to `grub_host_size_t'.
32732 (struct grub_module_info): Type of member offset changed to
32733 `grub_host_off_t'. Type of member size changed to
32734 `grub_host_size_t'.
32735
b4093103 327362005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
32737
32738 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 32739
b4093103 32740 * kern/i386/pc/startup.S (multiboot_header): New label.
32741 (multiboot_entry): Likewise.
32742 (multiboot_trampoline): Likewise.
32743
32744 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
32745 Increased to 0x4A0.
32746
32747 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
32748 put parentheses after a question mark.
32749 [!GRUB_UTIL] (my_mod): New variable.
32750
32751 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
32752
b2499b29 327532005-09-28 Marco Gerards <mgerards@xs4all.nl>
32754
32755 Adds support for the XFS filesystem. Btrees are not supported
32756 yet.
32757
32758 * fs/xfs.c: New file.
32759
32760 * DISTLIST: Added `fs/xfs.c'.
32761
32762 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
32763 (grub_probefs_SOURCES): Likewise.
32764 (grub_emu_SOURCES): Likewise.
32765 (pkgdata_MODULES): Add `xfs.mod'.
32766 (xfs_mod_SOURCES): New variable.
32767 (xfs_mod_CFLAGS): Likewise.
32768
32769 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
32770 (pkgdata_MODULES): Add `xfs.mod'.
32771 (xfs_mod_SOURCES): New variable.
32772 (xfs_mod_CFLAGS): Likewise.
32773
32774 * util/grub-emu.c (main): Call `grub_xfs_init' and
32775 `grub_xfs_fini'.
32776
32777 * include/grub/fs.h (grub_xfs_init): New prototype.
32778 (grub_xfs_fini): Likewise.
32779
f19dbdb7 32780
83d37a62 327812005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
32782
32783 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
32784 color modes, allow greater than 16 colors to be configured as
32785 a default palette.
32786
47d2d65e 327872005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
32788
32789 * normal/completion.c (complete_arguments): Add the qualifier
32790 const into OPTIONS.
32791
32792 From Omniflux <omniflux+lists@omniflux.com>:
32793 * include/grub/terminfo.h: New file.
32794 * include/grub/tparm.h: Likewise.
32795 * include/grub/i386/pc/serial.h: Likewise.
32796 * term/terminfo.c: Likewise.
32797 * term/tparm.c: Likewise.
32798 * term/i386/pc/serial.c: Likewise.
32799 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
32800 serial.mod.
32801 (terminfo_mod_SOURCES): New variable.
32802 (terminfo_mod_CFLAGS): Likewise.
32803 (serial_mod_SOURCES): Likewise.
32804 (serial_mod_CFLAGS): Likewise.
32805
48b671ff 328062005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
32807
32808 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
32809 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
32810 and kern/powerpc/ieee1275/cmain.c, respectively.
32811
32812 * boot/powerpc/ieee1275/crt0.S: Moved to ...
32813 * kern/powerpc/ieee1275/crt0.S: ... here.
32814
32815 * boot/powerpc/ieee1275/cmain.c: Moved to ...
32816 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 32817
48b671ff 32818 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
32819 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
32820 instead of boot/powerpc/ieee1275/crt0.S and
32821 boot/powerpc/ieee1275/cmain.c, respectively.
32822
32823 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
32824 sectors. It was not used anyway.
32825
09fc77a7 328262005-08-30 Hollis Blanchard <hollis@penguinppc.org>
32827
32828 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
32829 `unused parameter' warning.
32830
003789c7 328312005-08-30 Hollis Blanchard <hollis@penguinppc.org>
32832
32833 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
32834 function.
32835 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
32836 getcharwidth.
32837
67f44c86 328382005-08-28 Marco Gerards <metgerards@student.han.nl>
32839
32840 * include/grub/normal.h (enum grub_completion_type): Added
32841 `GRUB_COMPLETION_TYPE_ARGUMENT'.
32842
32843 * normal/cmdline.c (print_completion): Handle
32844 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
32845 * normal/menu_entry.c (store_completion): Likewise.
32846
32847 * normal/completion.c (complete_arguments): New function.
32848 (grub_normal_do_completion): Call `complete_arguments' when the
32849 current words start with a dash.
32850
0b5abe02 328512005-08-27 Marco Gerards <metgerards@student.han.nl>
32852
32853 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
32854 `gzio.mod' instead of `io.mod').
32855
d9864ee1 328562005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
32857
32858 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
32859 (DISTDIRS): Added io and video.
32860 Rewrite the search routine to make an output consistently.
32861
32862 * DISTLIST: Added conf/sparc64-ieee1275.mk,
32863 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
32864 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
32865 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
32866 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
32867 util/powerpc/ieee1275/misc.c.
f19dbdb7 32868
d9864ee1 32869 * include/grub/gzio.h: New file.
32870 * io/gzio.c: Likewise.
f19dbdb7 32871
d9864ee1 32872 * kern/file.c (grub_file_close): Call grub_device_close only if
32873 FILE->DEVICE is not NULL.
32874
32875 * include/grub/mm.h [!NULL] (NULL): New macro.
32876
32877 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
32878
32879 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
32880 (pkgdata_MODULES): Added gzio.mod.
32881 (gzio_mod_SOURCES): New variable.
32882 (gzio_mod_CFLAGS): Likewise.
32883
32884 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
32885 (pkgdata_MODULES): Added gzio.mod.
32886 (gzio_mod_SOURCES): New variable.
32887 (gzio_mod_CFLAGS): Likewise.
32888
32889 * commands/cat.c: Include grub/gzio.h.
32890 (grub_cmd_cat): Use grub_gzfile_open instead of
32891 grub_file_open.
f19dbdb7 32892
d9864ee1 32893 * commands/cmp.c: Include grub/gzio.h.
32894 (grub_cmd_cmp): Use grub_gzfile_open instead of
32895 grub_file_open.
32896
32897 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
32898 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
32899 grub_file_open.
32900 (grub_rescue_cmd_module): Likewise.
32901
fa46f4b5 329022005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
32903
32904 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
32905 kern/sparc64/ieee1275/init.c because it contains _start.
32906 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
32907
e9211b5d 329082005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
32909
32910 * configure.ac: Add support for sparc64 host with ieee1275
32911 firmware.
32912 * configure: Generated from configure.ac.
32913 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
32914 instead of int.
32915 (grub_ofdisk_read): Likewise.
32916 (grub_ofdisk_open): Use %p to print pointer values, and cast the
32917 pointers as (void *) to remove a warning.
32918 (grub_ofdisk_close): Likewise.
32919 (grub_ofdisk_read): Likewise.
32920 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
32921 returns, so make it return void to remove a warning.
32922 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
32923 Corresponding prototype change.
32924 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
32925 values, and cast the pointers as (void *) to remove a warning.
32926 (grub_mm_dump): Likewise.
32927 * conf/sparc64-ieee1275.mk: New file.
32928 * conf/sparc64-ieee1275.rmk: Likewise.
32929 * include/grub/sparc64/setjmp.h: Likewise.
32930 * include/grub/sparc64/types.h: Likewise.
32931 * include/grub/sparc64/ieee1275/console.h: Likewise.
32932 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32933 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
32934 * include/grub/sparc64/ieee1275/time.h: Likewise.
32935 * kern/sparc64/cache.c: Likewise.
32936 * kern/sparc64/dl.c: Likewise.
32937 * kern/sparc64/ieee1275/init.c: Likewise.
32938 * kern/sparc64/ieee1275/openfw.c: Likewise.
32939
385c6a92 329402005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
32941
32942 * util/console.c (grub_ncurses_putchar): If C is greater than
32943 0x7f, set C to a question mark.
32944 (grub_ncurses_getcharwidth): New function.
32945 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
32946 getcharwidth.
32947
32948 * normal/menu.c (print_entry): Made aware of Unicode. First,
32949 convert TITLE to UCS-4, and predict the cursor position by
32950 grub_getcharwidth.
32951
32952 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
32953 const to SRC.
32954 * kern/misc.c (grub_utf16_to_utf8): Likewise.
32955
16ccb8b1 329562005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
32957
32958 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
32959 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
32960 grub_strcat.
32961
32962 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
32963 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
32964 grub_strcpy and grub_strlen. Take it into account that a space
32965 character is inserted as a delimiter.
32966
6a85ce79 329672005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
32968
32969 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 32970 invalid magic in the error.
6a85ce79 32971
32972 * commands/search.c: New file.
f19dbdb7 32973
6a85ce79 32974 * util/grub-emu.c (main): Call grub_search_init and
32975 grub_search_fini.
32976
32977 * kern/rescue.c (grub_rescue_print_disks): Removed.
32978 (grub_rescue_print_devices): New function.
32979 (grub_rescue_cmd_ls): Use grub_device_iterate with
32980 grub_rescue_print_devices instead of grub_disk_dev_iterate with
32981 grub_rescue_print_disks.
32982
32983 * kern/partition.c (grub_partition_iterate): Return the result of
32984 PARTMAP->ITERATE instead of GRUB_ERRNO.
32985
32986 * kern/device.c: Include grub/partition.h.
32987 (grub_device_iterate): New function.
32988
32989 * include/grub/partition.h (grub_partition_iterate): Return int
32990 instead of grub_err_t.
32991
32992 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
32993 prototype.
32994 [GRUB_UTIL] (grub_search_fini): Likewise.
32995
32996 * include/grub/device.h (grub_device_iterate): New prototype.
32997
32998 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
32999 commands/search.c.
33000 (pkgdata_MODULES): Added search.mod.
33001 (search_mod_SOURCES): New variable.
33002 (search_mod_CFLAGS): Likewise.
33003
33004 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
33005 (pkgdata_MODULES): Added search.mod.
33006 (search_mod_SOURCES): New variable.
33007 (search_mod_CFLAGS): Likewise.
33008
33009 * commands/ls.c (grub_ls_list_disks): Renamed to ...
33010 (grub_ls_list_devices): ... this, and use grub_device_iterate.
33011 All callers changed.
33012
33013 * DISTLIST: Added commands/search.c.
33014
ef095434 330152005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
33016
33017 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
33018 conversion.
33019 (grub_getcharwidth): New function.
33020
33021 * kern/misc.c (grub_utf8_to_ucs4): New function.
33022
33023 * include/grub/term.h (struct grub_term): Added a new member
33024 "getcharwidth".
33025 (grub_getcharwidth): New prototype.
33026
33027 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
33028
33029 * term/i386/pc/console.c (map_char): New function. Segregated from
33030 grub_console_putchar.
33031 (grub_console_putchar): Use map_char.
33032 (grub_console_getcharwidth): New function.
33033 (grub_console_term): Specified grub_console_getcharwidth as
33034 getcharwidth.
33035
33036 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
33037 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
33038
33039 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
33040 GRUB_ERRNO.
33041 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
33042 on grub_strtoul completely.
33043 (write_char): Declare local variables in the beginning of the
33044 function.
33045 (grub_vesafb_getcharwidth): New function.
33046 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
33047 getcharwidth.
33048
1f0a95e4 330492005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
33050
33051 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
33052 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
33053 commands/i386/pc/vbetest.c.
33054
33055 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
33056 call grub_vbe_get_controller_info again, because the returned
33057 information is volatile.
33058 (grub_vbe_set_video_mode): Mostly rewritten.
33059 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
33060 grub_vbe_status_t correctly.
33061 (grub_vbe_get_video_mode_info): Likewise.
33062 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
33063 several if statements.
33064
33065 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
33066 * commands/i386/pc/vbeinfo.c: ... this.
33067
33068 * commands/i386/pc/vbe_test.c: Renamed to ...
33069 * commands/i386/pc/vbetest.c: ... this.
33070
33071 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
33072 ...
33073 (grub_cmd_vbeinfo): ... this. Save video modes before
33074 iterating. Skip a video mode, if it is not available, not enough
33075 information is given or it is monochrome. Show the memory
33076 model. Leave the interpretation of MODEVAR to grub_strtoul
33077 completely.
33078 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
33079 (GRUB_MOD_FINI): Likewise.
33080
33081 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
33082 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
33083 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
33084 duplicated grub_env_get. Leave the interpretation of MODEVAR to
33085 grub_strtoul completely.
33086 (real2pm): Removed.
33087 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
33088 (GRUB_MOD_FINI): Likewise.
33089
33090 * normal/misc.c: Include grub/mm.h.
33091
33092 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
33093 vbe_list_modes with vbetest.mod and vbeinfo.mod.
33094 (vbe_list_modes_mod_SOURCES): Removed.
33095 (vbe_list_modes_mod_CFLAGS): Likewise.
33096 (vbe_test_mod_SOURCES): Likewise.
33097 (vbe_test_mod_CFLAGS): Likewise.
33098 (vbeinfo_mod_SOURCES): New variable.
33099 (vbeinfo_mod_CFLAGS): Likewise.
33100 (vbetest_mod_SOURCES): Likewise.
33101 (vbetest_mod_CFLAGS): Likewise.
33102
992ffbbe 331032005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
33104
33105 * normal/misc.c: New file.
33106
33107 * DISTLIST: Added normal/misc.c.
f19dbdb7 33108
992ffbbe 33109 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
33110 DISK to HOOK. Call HOOK with DISK.
33111 * partmap/apple.c (apple_partition_map_iterate): Likewise.
33112 * partmap/pc.c (pc_partition_map_iterate): Likewise.
33113 * partmap/sun.c (sun_partition_map_iterate): Likewise.
33114
33115 * normal/menu_entry.c (struct screen): Added a new member
33116 "completion_shown".
33117 (completion_buffer): New global variable.
33118 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
33119 (store_completion): New function.
33120 (complete): Likewise.
33121 (clear_completions): Likewise.
33122 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
33123 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
33124 a tab, call complete.
33125
33126 * normal/completion.c (disk_dev): Removed.
33127 (print_simple_completion): Likewise.
33128 (print_partition_completion): Likewise.
33129 (print_func): New global variable.
33130 (add_completion): Do not take the arguments WHAT or PRINT any
33131 longer. Added a new argument TYPE. Instead of printing directly,
33132 call PRINT_FUNC if not NULL.
33133 All callers changed.
33134 (complete_device): Use a local variable DEV instead of
33135 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
33136 (grub_normal_do_completion): Take a new argument HOOK. Do not
33137 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
33138 empty string, return NULL instead.
33139 All callers changed.
33140
33141 * normal/cmdline.c (print_completion): New function.
33142
33143 * kern/partition.c (grub_partition_iterate): Add an argument DISK
33144 to HOOK.
33145 All callers changed.
33146
33147 * kern/disk.c (grub_print_partinfo): Removed.
33148
33149 * include/grub/partition.h (struct grub_partition_map): Add a new
33150 argument DISK into HOOK of ITERATE.
33151 (grub_partition_iterate): Add a new argument DISK to HOOK.
33152
33153 * include/grub/normal.h (enum grub_completion_type): New enum.
33154 (grub_completion_type_t): New type.
33155 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
33156 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
33157 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
33158 (GRUB_COMPLETION_TYPE_FILE): Likewise.
33159 (grub_normal_do_completion): Added a new argument HOOK.
33160 (grub_normal_print_device_info): New prototype.
33161
33162 * include/grub/disk.h (grub_print_partinfo): Removed.
33163
33164 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
33165 (normal_mod_SOURCES): Likewise.
33166 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33167 (normal_mod_SOURCES): Likewise.
33168
33169 * commands/ls.c (grub_ls_list_disks): Use
33170 grub_normal_print_device_info instead of grub_print_partinfo. Free
33171 PNAME.
33172 (grub_ls_list_files): Use grub_normal_print_device_info instead of
33173 duplicating the code.
33174
0bd41162 331752005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
33176
33177 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 33178 follow GCS more precisely.
33179 * commands/i386/pc/vbe_test.c: Likewise.
33180 * include/grub/i386/pc/vbe.h: Likewise.
33181 * term/i386/pc/vesafb.c: Likewise.
33182 * video/i386/pc/vbe.c: Likewise.
0bd41162 33183
6323696a 331842005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
33185
33186 * DISTLIST: Added term/i386/pc/vesafb.c
33187 DISTLIST: Added video/i386/pc/vbe.c
33188 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
33189 DISTLIST: Added commands/i386/pc/vbe_test.c.
33190 * commands/i386/pc/vbe_list_modes.c: New file.
33191 * commands/i386/pc/vbe_test.c: Likewise.
33192 * term/i386/pc/vesafb.c: Likewise.
33193 * video/i386/pc/vbe.c: Likewise.
33194 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
33195 (grub_vbe_probe) Added prototype.
33196 (grub_vbe_set_video_mode) Likewise.
33197 (grub_vbe_get_video_mode) Likewise.
33198 (grub_vbe_get_video_mode_info) Likewise.
33199 (grub_vbe_set_pixel_rgb) Likewise.
33200 (grub_vbe_set_pixel_index) Likewise.
33201 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
33202 (pkgdata_MODULES): Added vesafb.mod.
33203 (pkgdata_MODULES): Added vbe_list_modes.mod.
33204 (pkgdata_MODULES): Added vbe_test.mod.
33205 (vbe_mod_SOURCES): Added.
33206 (vbe_mod_CFLAGS): Likewise.
33207 (vesafb_mod_SOURCES): Likewise.
33208 (vesafb_mod_CFLAGS): Likewise.
33209 (vbe_list_modes_mod_SOURCES): Likewise.
33210 (vbe_list_modes_mod_CFLAGS): Likewise.
33211 (vbe_test_mod_SOURCES): Likewise.
33212 (vbe_test_mod_CFLAGS): Likewise.
33213
0a74e62f 332142005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
33215
0a74e62f 33216 * normal/command.c (grub_command_execute): If INTERACTIVE is
33217 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
33218 CMDLINE. Disable the pager if INTERACTIVE is true.
33219 All callers are changed.
33220
33221 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
33222 before reading a config file.
33223 * normal/main.c (read_config_file): Even if a command is not
33224 found, register it if it is within an entry.
33225
33226 * util/grub-emu.c: Include sys/types.h and unistd.h.
33227 (options): Added --hold.
33228 (struct arguments): Added a new member "hold".
33229 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
33230 missing.
33231 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
33232 cleared by a debugger, if it is not zero.
33233
33234 * include/grub/normal.h (grub_command_execute): Add an argument
33235 INTERACTIVE.
33236
e51f85ae 332372005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
33238
33239 * DISTLIST: Added include/grub/i386/pc/vbe.h.
33240
e9c6f39b 332412005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
33242
33243 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
33244 program with another one, because the old one didn't detect a bug
33245 in gcc-3.4. Always use regparm 2, because the new test is still
33246 not enough for gcc-4.0. Someone must investigate a simple test
33247 case which detects a bug in gcc-4.0.
33248
8de3495c 332492005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
33250
33251 * DISTLIST: Added normal/completion.c.
33252
33253 * normal/completion.c: New file.
f19dbdb7 33254
8de3495c 33255 * term/i386/pc/console.c (grub_console_getwh): New function.
33256 (grub_console_term): Assign grub_console_getwh to getwh.
33257
33258 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
33259 function is defined in normal/completion.c as
33260 grub_normal_do_completion.
33261 (grub_cmdline_get): Use grub_normal_do_completion instead of
33262 grub_tab_complete.
33263
33264 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
33265 returns non-zero, otherwise return 0.
33266 (grub_partition_iterate): First, probe the partition map. Then,
33267 call ITERATE only for this partition map.
33268
33269 * kern/misc.c (grub_strncmp): Rewritten.
33270
33271 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
33272 returns non-zero. Otherwise return 0.
33273
33274 * include/grub/partition.h (grub_partition_map_iterate): Return
33275 int instead of void.
33276
33277 * include/grub/normal.h (grub_normal_do_completion): New prototype.
33278
33279 * include/grub/misc.h (grub_strncmp): Change the type of N to
33280 grub_size_t.
33281
33282 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
33283 of void.
33284
33285 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 33286 unsigned explicitly before comparing it with I.
8de3495c 33287
33288 * kern/main.c (grub_env_write_root): Add the attribute unused into
33289 VAR.
33290
33291 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
33292 normal/completion.c.
33293 (normal_mod_SOURCES): Likewise.
33294 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33295 (normal_mod_SOURCES): Likewise.
33296
33297 * normal/command.c (grub_iterate_commands): If ITERATE returns
33298 non-zero, return one immediately.
33299
e85e144b 333002005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
33301
33302 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
33303 * kern/i386/pc/startup.S: Updated Global Descriptor table's
33304 descriptions.
33305 (grub_vbe_get_controller_info): New function.
33306 (grub_vbe_get_mode_info): Likewise.
33307 (grub_vbe_set_mode): Likewise.
33308 (grub_vbe_get_mode): Likewise.
33309 (grub_vbe_set_memory_window): Likewise.
33310 (grub_vbe_get_memory_window): Likewise.
33311 (grub_vbe_set_scanline_length): Likewise.
33312 (grub_vbe_get_scanline_length): Likewise.
33313 (grub_vbe_set_display_start): Likewise.
33314 (grub_vbe_get_display_start): Likewise.
33315 (grub_vbe_set_palette_data): Likewise.
33316 * include/grub/i386/pc/vbe.h: New file.
33317
c46153d2 333182005-08-08 Hollis Blanchard <hollis@penguinppc.org>
33319
33320 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
33321 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
33322 * DISTLIST: Likewise.
33323 * kern/ieee1275/of.c: Moved to ...
33324 * kern/ieee1275/ieee1275.c: ... here.
33325
0cb90c45 333262005-08-08 Hollis Blanchard <hollis@penguinppc.org>
33327
33328 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
33329 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
33330 Pass 0 as `end' parameter to grub_strtoul().
33331
a19fb360 333322005-08-08 Hollis Blanchard <hollis@penguinppc.org>
33333
33334 * include/grub/powerpc/ieee1275/console.h: Do not include
33335 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
33336 ifdef.
33337 (grub_console_cur_color): Remove i386-specific prototype.
33338 (grub_console_real_putchar): Likewise.
33339 (grub_console_checkkey): Likewise.
33340 (grub_console_getkey): Likewise.
33341 (grub_console_getxy): Likewise.
33342 (grub_console_gotoxy): Likewise.
33343 (grub_console_cls): Likewise.
33344 (grub_console_setcursor): Likewise.
33345 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
33346 Include <grub/machine/console.h>.
33347 * term/ieee1275/ofconsole.c: Likewise.
33348
4ac9bd04 333492005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
33350
33351 * Makefile.in (LIBLZO): New variable.
33352
33353 * configure.ac: Check for LZO version 2.
33354
33355 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
33356 lzo/lzo1x.h instead of lzo1x.h.
33357
33358 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
33359 of -llzo.
33360
33361 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
33362 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
33363
33364 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
33365 copying the data from PARTITION to P.
33366
f4917dfd 333672005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
33368
33369 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
33370 negative, unload the module.
33371
33372 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
33373 map is "pc_partition_map" but not "pc".
33374 (usage): Fix the description. The options are --boot-image and
33375 --core-image but not --boot-file or --core-file.
33376 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
33377 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
33378 DEFAULT_DIRECTORY.
33379
33380 * util/i386/pc/grub-install.in: Do not specify --boot-file or
33381 --core-file. Specify INSTALL_DEVICE as an argument.
33382
33383 * util/console.c: Include config.h.
33384 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
33385 [HAVE_NCURSES_H]: Include ncurses.h.
33386 [HAVE_CURSES_H]: Include curses.h.
33387 [!A_NORMAL] (A_NORMAL): Defined as zero.
33388 [!A_STANDOUT] (A_STANDOUT): Likewise.
33389
33390 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
33391 -lncurses.
33392 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
33393
33394 * configure.ac: Check for curses libraries and headers.
33395
33396 * Makefile.in (LIBCURSES): New variable.
33397
33398 * genmk.rb (Script::rule): Set the executable bits.
33399
33400 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
33401 name of the PC partition map is "pc_partition_map" but not "pc".
33402
0e143073 334032005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
33404
33405 * util/i386/pc/grub-install.in (grub_probefs): New variable.
33406 (modules): Likewise.
33407 (usage): Added descriptions for --modules and --grub-probefs.
33408 Handle --modules and --grub-probefs. Save the arguments in MODULES
33409 and GRUB_PROBEFS, respectively.
33410 Auto-detect a filesystem module against GRUBDIR. If the result is
33411 empty and modules are not specified explicitly, abort the
33412 installation. Add the result to MODULES.
33413
33414 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
33415 disk/powerpc/ieee1275/ofdisk.c,
33416 include/grub/powerpc/ieee1275/init.h and
33417 term/powerpc/ieee1275/ofconsole.c.
33418 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
33419 term/ieee1275/ofconsole.c.
33420
33421 * include/grub/powerpc/ieee1275/console.h: Resurrected.
33422
33423 * COPYING: Upgraded to the latest version. Only the address of the
33424 FSF office has changed.
f19dbdb7 33425
efd6e6d5 334262005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
33427
33428 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
33429 kern/ieee1275.c with kern/ieee1275/of.c.
33430
33431 * kern/ieee1275.c: Moved to ...
33432 * kern/ieee1275/of.c: ... here.
33433
8ceafda2 334342005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
33435
33436 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 33437 readability.
8ceafda2 33438
33439 * config.guess: Updated to the latest version from gnulib.
33440 * config.sub: Likewise.
33441 * install.sh: Likewise.
33442 * mkinstalldirs: Likewise.
33443
33444 * include/grub/console.h: Removed. This file is arch-specific. Do
33445 not put this in include/grub.
33446
33447 * include/grub/i386/pc/console.h: Resurrected.
33448
33449 * util/console.c: Include grub/machine/console.h instead of
33450 grub/console.h.
33451 * util/grub-emu.c: Likewise.
33452
267f6cd9 334532005-08-04 Marco Gerards <metgerards@student.han.nl>
33454
33455 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
33456 hardcoded value.
f19dbdb7 33457
267f6cd9 33458 From Vincent Pelletier <subdino2004@yahoo.fr>
33459 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
33460 Redefined to use grub_getwh.
33461 (grub_term): New member named getwh.
33462 (grub_getwh): New prototype.
33463 * kern/term.c (grub_getwh): New function.
33464 * term/i386/pc/console.c (grub_console_getwh): New function.
33465 (grub_console_term): New member `getwh'.
33466 * term/i386/pc/vga.c (grub_vga_getwh): New function.
33467 (grub_vga_term): New member `getwh'.
0b5abe02 33468 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 33469 grub_ssize_t.
33470 (grub_ofconsole_getw): New function.
33471 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
33472 (grub_ofconsole_term): New field named getwh and new initial
33473 value.
33474
3be7266d 334752005-08-03 Hollis Blanchard <hollis@penguinppc.org>
33476
33477 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
33478 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
33479 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
33480 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
33481 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
33482 of <grub/machine/ieee1275.h>.
33483 * commands/ieee1275/reboot.c: Likewise.
33484 * boot/powerpc/ieee1275/ieee1275.c: Move ...
33485 * kern/ieee1275.c: ... to here. All users updated. Change all
33486 parameter structs to use new type `grub_ieee1275_cell_t'.
33487 * term/powerpc/ieee1275/ofconsole.c: Move ...
33488 * term/ieee1275/ofconsole.c: ... to here. All users updated.
33489 * disk/powerpc/ieee1275/ofdisk.c: Move ...
33490 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
33491 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
33492 to return int.
33493 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
33494 Remove unused prototypes. All users updated.
33495 * include/grub/powerpc/ieee1275/console.h: Removed.
33496 * include/grub/powerpc/ieee1275/ieee1275.h: Define
33497 `grub_ieee1275_cell_t'.
33498 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
33499 Cast comparisons with -1 to the correct type.
33500 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
33501 type to match `grub_ieee1275_entry_fn'.
33502
8b5f3938 335032005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
33504
33505 * DISTLIST: Added util/i386/pc/grub-probefs.c.
33506
33507 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
33508 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
33509 partmap/sun.c.
33510 (grub_probefs_SOURCES): New variable.
33511
33512 * util/i386/pc/grub-probefs.c: New file.
33513
33514 * util/i386/pc/grub-setup.c (main): Call
33515 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
33516 grub_hfs_init and grub_jfs_init to initialize the system. Call
33517 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
33518 grub_pc_partition_map_fini to finish the system.
33519
ea409713 335202005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
33521
33522 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
33523 function.
33524 (grub_multiboot_load_elf32): Likewise.
33525 (grub_multiboot_is_elf64): Likewise.
33526 (grub_multiboot_load_elf64): Likewise.
33527 (grub_multiboot_load_elf): Likewise.
33528 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
33529 an ELF32 or ELF64 file.
33530 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
33531
33532 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
33533 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
33534 NULL before calling FS->LABEL.
33535 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
33536 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
33537 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
33538 before calling FS->LABEL.
33539
141a288b 335402005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
33541
33542 * util/i386/pc/grub-install.in (datadir): New variable.
33543 (libdir): Removed.
33544 (pkgdatadir): New variable.
33545 (pkglibdir): Removed.
33546
0d5f8a54 335472005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
33548
33549 * DISTLIST: Added util/i386/pc/grub-install.in.
33550
33551 * util/i386/pc/grub-install.in: New file.
33552
33553 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
33554 (grub_install_SOURCES): Likewise.
33555
33556 * genmk.rb: Added support for scripts.
33557 (Script): New class.
33558 (scripts): New variable.
33559
33560 * Makefile.in (install-local): Install sbin_SCRIPTS by
33561 INSTALL_SCRIPT.
33562 (uninstall): Remove sbin_SCRIPTS.
33563
33564 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
33565 device, try to get a GRUB device by
33566 grub_util_biosdisk_get_grub_dev.
33567 Free DEST_DEV.
33568
33569 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
33570 description for --device-map.
33571
5f968e1e 335722005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
33573
33574 Change the semantics of variable hooks. They now return strings
33575 instead of error values.
f19dbdb7 33576
5f968e1e 33577 * util/i386/pc/grub-setup.c: Include grub/env.h.
33578 (setup): Use grub_device_set_root instead of grub_env_set.
33579
33580 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
33581 grub_env_get instead of grub_device_set_root and
33582 grub_device_get_root, respectively.
33583
33584 * kern/main.c (grub_env_write_root): New function.
33585 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
33586 grub_env_set instead of grub_device_set_root.
33587
33588 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
33589 many variables.
33590 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
33591 rather than calling ENV->WRITE_HOOK afterwards.
33592 (grub_env_get): Return the result of ENV->READ_HOOK rather than
33593 passing a pointer of a pointer.
33594 (grub_register_variable_hook): Change the types of "read_hook" and
33595 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
33596 respectively.
33597 Allocate the default empty string on the heap, because this string
33598 may be freed later.
33599
33600 * kern/device.c: Include grub/env.h.
33601 (grub_device_set_root): Removed.
33602 (grub_device_get_root): Likewise.
33603 (grub_device_open): Use grub_env_get instead of
33604 grub_device_get_root.
33605
33606 * include/grub/env.h (grub_env_read_hook_t): New type.
33607 (grub_env_write_hook_t): Likewise.
33608 (grub_env_var): Change the types of "read_hook" and "write_hook"
33609 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
33610 (grub_register_variable_hook): Likewise.
33611
33612 * include/grub/device.h (grub_device_set_root): Removed.
33613 (grub_device_set_root): Likewise.
33614
33615 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
33616 make sure that DIRNAME terminates with '/', so that
33617 grub_fat_find_dir will fail if PATH is not a directory.
33618
33619 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
33620 from DIRNAME.
33621 Use the qualifier auto for print_files and print_files_long.
33622 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
33623 as a regular file.
33624 Put a newline only if there is no error.
33625 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
33626 used.
33627
896f0afd 336282005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
33629
33630 * kern/partition.c (grub_partition_probe): Initialize PART to
33631 NULL. Otherwise, when no partition map is registered, this returns
33632 a garbage.
33633
b28b81b2 336342005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
33635
33636 * partmap/apple.c (apple_partition_map_iterate): Check if POS
33637 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
33638 valid.
33639
5f3607e0 336402005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
33641
33642 * commands/ls.c (grub_ls_list_disks): Print the filesystem
33643 information on each device, if it does not have partitions. Print
33644 "Device" instead of "Disk", because this function is not specific
33645 to disk devices.
33646
33647 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
33648 static to ensure that it is put on the memory rather than a
33649 register.
33650
502c87e8 336512005-07-17 Yoshinori Okuji <okuji@enbug.org>
33652
33653 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
33654 (grub_cat_init): Likewise.
33655 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
33656 (options): Likewise.
33657 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
33658 (grub_configfile_init): Likewise.
33659 * font/manager.c (GRUB_MOD_INIT): Likewise.
33660 * commands/help.c (GRUB_MOD_INIT): Likewise.
33661 (grub_help_init): Likewise.
33662 * normal/command.c (grub_command_init): Likewise.
33663 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
33664 * disk/loopback.c (grub_loop_init): Likewise.
33665 (GRUB_MOD_INIT): Likewise.
33666 * commands/ls.c (grub_ls_init): Likewise.
33667 (GRUB_MOD_INIT): Likewise.
33668 (options): Likewise.
33669 * commands/boot.c (grub_boot_init): Likewise.
33670 (GRUB_MOD_INIT): Likewise.
33671 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
33672 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
33673 (GRUB_MOD_INIT): Likewise.
33674 * commands/cmp.c (grub_cmp_init): Likewise.
33675 (GRUB_MOD_INIT): Likewise.
33676
33677 * normal/arg.c: Use <> instead of "" to include header files.
33678 (SHORT_ARG_HELP): New macro.
33679 (SHORT_ARG_USAGE): Likewise.
33680 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
33681 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
33682 descriptions.
33683 (find_short): Check if C is 'h' or 'u' explicitly.
33684 (grub_arg_show_help): Use space characters instead of tabs. Treat
33685 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
33686 are shown with --help and --usage only if they are not used for
33687 the command itself.
33688 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
33689 'h' and 'u'.
33690
33691 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
33692 const into "longarg". Change the type of "shortarg" to int.
33693
f806d18e 336942005-07-17 Yoshinori Okuji <okuji@enbug.org>
33695
33696 * boot/i386/pc/boot.S (boot_drive_check): New label.
33697
33698 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
33699 macro.
33700
33701 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
33702 which do not pass a boot drive correctly. Copied from GRUB Legacy.
33703
e293232b 337042005-07-17 Yoshinori Okuji <okuji@enbug.org>
33705
33706 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
33707 When turning off Gate A20, skip the check and return immediately,
33708 because this is not fatal usually.
33709
ebedfd00 337102005-07-17 Yoshinori Okuji <okuji@enbug.org>
33711
33712 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
33713 be 0x7C00 instead of 0x8000.
33714
33715 * boot/i386/pc/pxeboot.S: Rewritten.
33716
33717 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
33718 EXT_C.
33719 (gate_a20_check_state): Read a byte from 0x108000. Invert the
33720 result.
33721
654fc59f 337222005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
33723
33724 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
33725 robustness. This routine now supports a BIOS call and System
33726 Control Port A to modify the gate A20.
33727
33728 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
33729 Increased to 0x440.
33730
09f9923f 337312005-07-12 Hollis Blanchard <hollis@penguinppc.org>
33732
33733 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
33734 device path and resulting ihandle.
33735 (grub_ofdisk_close): dprintf the ihandle being closed.
33736 (grub_ofdisk_read): dprintf function parameters.
33737 * kern/mm.c (grub_mm_init_region): Likewise.
33738 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
33739 (grub_linux_boot): dprintf the Linux entry point, initrd address and
33740 size, and boot arguments.
33741 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
33742 before loading into memory.
33743 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
33744 before loading into memory.
33745
7ef504d8 337462005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
33747
33748 * kern/mm.c: Added much documentation.
33749 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
33750 8, set to 5 instead of 8.
33751
e0f050c2 337522005-07-10 Yoshinori Okuji <okuji@enbug.org>
33753
33754 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
33755
33756 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
33757 (grub_mkdevicemap_SOURCES): New variable.
33758
33759 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
33760 lib/device.c of GRUB Legacy.
33761
7224189a 337622005-07-10 Yoshinori Okuji <okuji@enbug.org>
33763
33764 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
33765 instead of PATH is NULL.
33766
68c864eb 337672005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
33768
33769 * commands/cmp.c (BUFFER_SIZE): New macro.
33770 (grub_cmd_cmp): Close the right file at the right time. Compare
33771 only data just read. Don't report files of different size as
33772 identical. Dynamically allocate buffers. Move variable
33773 declarations at the beginning of function.
33774
e6f3e614 337752005-07-09 Yoshinori Okuji <okuji@enbug.org>
33776
33777 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
33778 reverse.
33779
f8f1559a 337802004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
33781
33782 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
33783 when backspace is pressed at beginning of line.
33784
39c9d41d 337852005-07-03 Yoshinori Okuji <okuji@enbug.org>
33786
33787 * DISTLIST: Added genfslist.sh.
33788
33789 * normal/main.c (fs_module_list): New variable.
33790 (autoload_fs_module): New function.
33791 (read_fs_list): Likewise.
33792 (grub_normal_execute): Call read_fs_list.
33793
33794 * kern/fs.c (grub_fs_autoload_hook): New variable.
33795 (grub_fs_probe): Added support for auto-loading.
33796
33797 * include/grub/normal.h (struct grub_fs_module_list): New struct.
33798 (grub_fs_module_list_t): New type.
33799
33800 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
33801 (grub_fs_autoload_hook): New prototype.
33802
33803 * genfslist.sh: New file.
f19dbdb7 33804
39c9d41d 33805 * genmk.rb: Added a rule to generate a filesystem list.
33806
121c1d83 338072005-06-30 Marco Gerards <metgerards@student.han.nl>
33808
33809 * configure.ac: Fix the test for cross-compiling.
33810
33811 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
33812 define GRUB_UTIL anymore.
33813
33814 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
33815 so this function works on other systems than just big endian.
33816 (load_modules): Likewise.
33817 (add_segments): Likewise.
33818
e75d76e1 338192005-06-23 Hollis Blanchard <hollis@penguinppc.org>
33820
33821 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
33822 contains `l' modifier, get a long from va_arg().
33823
50b5a0a7 338242005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
33825
33826 * kern/mm.c (grub_free): If the next free block which is being
33827 merged is the first free block, set the first block to the block
33828 being freed.
33829 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
33830
89371b20 338312005-05-08 Hollis Blanchard <hollis@penguinppc.org>
33832
33833 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
33834 `grub_ieee1275_chosen'.
33835
168d6e58 338362005-05-08 Hollis Blanchard <hollis@penguinppc.org>
33837
33838 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
33839 (grub_ieee1275_chosen): New variable.
33840 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
33841 `chosen'.
33842 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
33843 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
33844 Rename first argument to `phandle' for consistency.
33845 (grub_ieee1275_get_property_length): Likewise.
33846 (grub_ieee1275_next_property): Likewise. Change type of first argument
33847 to grub_ieee1275_phandle_t.
33848 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
33849 Move export next to declaration.
33850 (grub_ieee1275_chosen): New variable.
33851 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
33852 Correct cosmetic typo.
33853 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
33854 `grub_ieee1275_chosen'.
33855 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
33856 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
33857 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
33858 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
33859 `grub_ieee1275_chosen'.
33860
ca5baa3f 338612005-05-10 Hollis Blanchard <hollis@penguinppc.org>
33862
33863 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
33864 /chosen/bootargs.
33865 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
33866 /chosen/bootargs as "variable=value" pairs.
33867
708b345f 338682005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
33869
33870 * include/grub/misc.h (grub_dprintf): New macro.
33871 (grub_real_dprintf): New prototype.
33872 (grub_strword): Likewise.
33873 (grub_iswordseparator): Likewise.
33874 * kern/misc.c (grub_real_dprintf): New function.
33875 (grub_strword): Likewise.
33876 (grub_iswordseparator): Likewise.
33877
f4c5e67c 338782005-04-30 Hollis Blanchard <hollis@penguinppc.org>
33879
33880 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
33881 (roundup): Remove macro.
33882 (grub_ieee1275_flags): Make static.
33883 (grub_ieee1275_realmode): Remove.
33884 (grub_ieee1275_test_flag): New function.
33885 (grub_ieee1275_set_flag): Likewise.
33886 (find_options): Rename to `grub_ieee1275_find_options'; update
33887 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
33888 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
33889 (cmain): New prototype.
33890 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
33891 `grub_ieee1275_flags' directly.
33892 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
33893 machine/biosdisk.h.
33894 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
33895 Don't include grub/machine/init.h.
33896 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
33897 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
33898 Remove prototype.
33899 (grub_ieee1275_realmode): Likewise.
33900 (grub_ieee1275_flag): New enum.
33901 (grub_ieee1275_test_flag): New prototype.
33902 (grub_ieee1275_set_flag): New prototype.
33903 * include/grub/powerpc/ieee1275/init.h: Remove file.
33904 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
33905 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
33906 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
33907 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
33908 comment.
33909 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
33910 `grub_ieee1275_test_flag'.
33911 (grub_ieee1275_encode_devname): Likewise.
33912
ed16607e 339132005-04-21 Hollis Blanchard <hollis@penguinppc.org>
33914
33915 * include/grub/powerpc/ieee1275/ieee1275.h
33916 (grub_ieee1275_encode_devname): New prototype.
33917 (grub_ieee1275_get_filename): Likewise.
33918 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
33919 function.
33920 (grub_set_prefix): Likewise.
33921 (grub_machine_init): Call grub_set_prefix.
33922 * kern/powerpc/ieee1275/openfw.c: Fix typos.
33923 (grub_parse_type): New enum.
33924 (grub_ieee1275_get_devargs): New function.
33925 (grub_ieee1275_get_devname): Likewise.
33926 (grub_ieee1275_parse_args): Likewise.
33927 (grub_ieee1275_get_filename): Likewise.
33928 (grub_ieee1275_encode_devname): Likewise.
33929
be369920 339302005-03-30 Marco Gerards <metgerards@student.han.nl>
33931
33932 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
33933 `grub_loader_unset'.
33934
a5ce3a4a 339352005-03-26 Hollis Blanchard <hollis@penguinppc.org>
33936
33937 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
33938 instead of grub_ieee1275_interpret.
33939 (grub_halt_init): New function.
33940 (grub_halt_fini): Likewise.
33941 (GRUB_MOD_INIT): Correct message grammar.
33942 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
33943 instead of grub_ieee1275_interpret.
33944 (grub_reboot_init): New function.
33945 (grub_reboot_fini): Likewise.
33946 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
33947 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
33948 util/i386/pc/misc.c with commands/ieee1275/halt.c,
33949 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
33950 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
33951 function.
33952 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
33953 Add prototype.
33954 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
33955 prototype.
33956 (grub_halt): Likewise.
33957 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
33958 (cmain): Remove __attribute__((unused)).
33959 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
33960 (grub_heap_len): Likewise.
33961 (grub_machine_fini): New function.
33962 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
33963 (grub_halt): Likewise.
33964 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
33965 function.
33966 * util/powerpc/ieee1275/misc.c: New file.
33967
0058f771 339682005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
33969
33970 * DISTLIST: New file.
33971 * gendistlist.sh: Likewise.
f19dbdb7 33972
0058f771 33973 * Makefile.in (COMMON_DISTFILES): Removed.
33974 (BOOT_DISTFILES): Likewise.
33975 (CONF_DISTFILES): Likewise.
33976 (DISK_DISTFILES): Likewise.
33977 (FS_DISTFILES): Likewise.
33978 (INCLUDE_DISTFILES): Likewise.
33979 (KERN_DISTFILES): Likewise.
33980 (LOADER_DISTFILES): Likewise.
33981 (TERM_DISTFILES): Likewise.
33982 (UTIL_DISTFILES): Likewise.
33983 (DISTFILES): Likewise.
33984 (uninstall): Uninstall files in $(pkgdata_DATA).
33985 (DISTLIST): New target.
33986 (distdir): Use the contents of the file DISTLIST to get a list of
33987 distributed files.
33988
46b3b8a5 339892005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
33990
33991 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
33992 descriptor. This is ported from GRUB Legacy.
33993
33994 * gencmdlist.sh: Added an extra semicolon to make it work with
33995 old sed versions. Reported by Robert Bihlmeyer
33996 <robbe@orcus.priv.at>.
33997
5822ff87 339982005-03-08 Yoshinori Okuji <okuji@enbug.org>
33999
34000 Automatic loading of commands is supported.
f19dbdb7 34001
5822ff87 34002 * normal/main.c (read_command_list): New function.
34003 (grub_normal_execute): Call read_command_list.
34004
34005 * normal/command.c (grub_register_command): Return zero or CMD.
34006 Allocate CMD->NAME from the heap.
34007 Initialize CMD->MODULE_NAME to zero.
34008 Find the same name as well. If the same command is found and it is
34009 a dummy command, overwrite members. If it is not a dummy command,
34010 return zero.
34011 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
34012 (grub_command_find): If a dummy command is found, load a module
34013 and retry to find a command only once.
34014
34015 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
34016 make sure that each command is loaded.
34017
34018 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
34019 macro.
34020 (struct grub_command): Remove const from the member `name'.
34021 Add a new member `module_name'.
34022 (grub_register_command): Return grub_command_t.
34023
34024 * commands/help.c (grub_cmd_help): Call grub_command_find to make
34025 sure that each command is loaded.
34026
34027 * genmk.rb (PModule::rule): Specify a module name without the
34028 suffix ".mod" to gencmdlist.sh.
34029
7b1f4b57 340302005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
34031
34032 * gencmdlist.sh: New file.
f19dbdb7 34033
7b1f4b57 34034 * genmk.rb (PModule::rule): Generate a rule for a command list.
34035 Clean command.lst.
34036 Generate command.lst from $(COMMANDFILES).
34037
34038 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
34039 (DATA): Added $(pkgdata_DATA).
34040 (install-local): Install files in $(pkgdata_DATA).
34041
062aaf39 340422005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
34043
34044 * term/i386/pc/vga.c (debug_command): Removed.
34045 (GRUB_MOD_INIT): Do not register the command "debug".
34046
34047 From Hollis Blanchard:
34048 * commands/configfile.c: New file.
34049 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34050 commands/configfile.c.
34051 (pkgdata_MODULES): Added configfile.mod.
34052 (configfile_mod_SOURCES): New variable.
34053 (configfile_mod_CFLAGS): Likewise.
34054 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
34055 commands/configfile.c.
34056 (pkgdata_MODULES): Added configfile.mod.
34057 (configfile_mod_SOURCES): New variable.
34058 (configfile_mod_CFLAGS): Likewise.
34059 * util/grub-emu.c (main): Call grub_configfile_init and
34060 grub_configfile_fini.
34061 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
34062 prototype.
34063 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 34064
cee01aa6 340652005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
34066
34067 * normal/arg.c (grub_arg_show_help): Do not show the bug report
34068 address.
34069
34070 * commands/help.c (grub_cmd_help): Do not print newlines after
34071 the last command in print_command_help.
34072
93f3a1d8 340732005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
34074
34075 * commands/default.h: New file.
34076 * commands/timeout.h: Likewise.
34077 * normal/context.c: Likewise.
f19dbdb7 34078
93f3a1d8 34079 * util/misc.c: Do not include sys/times.h.
34080 Include sys/time.h and grub/machine/time.h.
34081 (grub_get_rtc): Rewritten with gettimeofday.
34082
34083 * util/grub-emu.c (main): Call grub_default_init and
34084 grub_timeout_init before grub_normal_init, and call
34085 grub_timeout_fini and grub_default_fini after grub_main.
34086
34087 * util/console.c (grub_ncurses_checkkey): Return the read
34088 character or -1.
34089
34090 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
34091 timeouts.
34092
34093 * normal/main.c (read_config_file): Push MENU. If this fails,
34094 print an error and wait for a user input.
34095 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
34096 If a menu is empty or an error occurs, pop MENU.
34097 (grub_normal_execute): Pop and free MENU after grub_menu_run
34098 returns.
34099
34100 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
34101
34102 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
34103 include time.h.
34104 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
34105 without GRUB_UTIL.
34106 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
34107 time.h.
34108 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
34109 without GRUB_UTIL.
34110
34111 * include/grub/normal.h (struct grub_menu_list): New struct.
34112 (grub_menu_list_t): New type.
34113 (struct grub_context): New struct.
34114 (grub_context_t): New type.
34115 (grub_register_command): Got rid of EXPORT_FUNC.
34116 (grub_unregister_command): Likewise.
34117 (grub_context_get): New prototype.
34118 (grub_context_get_current_menu): Likewise.
34119 (grub_context_push_menu): Likewise.
34120 (grub_context_pop_menu): Likewise.
34121 [GRUB_UTIL] (grub_default_init): Likewise.
34122 [GRUB_UTIL] (grub_default_fini): Likewise.
34123 [GRUB_UTIL] (grub_timeout_init): Likewise.
34124 [GRUB_UTIL] (grub_timeout_fini): Likewise.
34125
34126 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
34127 commands/timeout.c and normal/context.c.
34128 (pkgdata_MODULES): Added default.mod and timeout.mod.
34129 (normal_mod_SOURCES): Added normal/context.c.
34130 (default_mod_SOURCES): New variable.
34131 (default_mod_CFLAGS): Likewise.
34132 (timeout_mod_SOURCES): Likewise.
34133 (timeout_mod_CFLAGS): Likewise.
34134 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
34135 conf/i386-pc.rmk.
34136 (pkgdata_MODULES): Added default.mod and timeout.mod.
34137 (normal_mod_SOURCES): Added normal/context.c.
34138 (default_mod_SOURCES): New variable.
34139 (default_mod_CFLAGS): Likewise.
34140 (timeout_mod_SOURCES): Likewise.
34141 (timeout_mod_CFLAGS): Likewise.
34142
34143 * Makefile.in (all-local): Added $(MKFILES).
34144
4ed2e1dd 341452005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
34146
34147 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
34148 (grub_emu_SOURCES): Likewise.
34149 (pkgdata_MODULES): Add `sun.mod'.
34150 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
34151 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34152 `partmap/sun.c'.
34153 (pkgdata_MODULES): Add `sun.mod'.
34154 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
34155 * include/grub/partition.h (grub_sun_partition_map_init): New
34156 prototype.
34157 (grub_sun_partition_map_fini): Likewise.
34158 * partmap/sun.c: New file.
34159 * util/grub-emu.c (main): Initialize and de-initialize the sun
34160 partitionmap support.
34161
4d4e372e 341622005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
34163
34164 This implements an Emacs-like menu entry editor.
f19dbdb7 34165
4d4e372e 34166 * normal/menu_entry.c: New file.
f19dbdb7 34167
4d4e372e 34168 * util/console.c (grub_ncurses_putchar): Translate some Unicode
34169 characters to ASCII.
34170 (saved_char): New variable.
34171 (grub_ncurses_checkkey): Rewritten completely.
34172 (grub_ncurses_getkey): Likewise.
34173 (grub_ncurses_init): Call raw instead of cbreak.
34174
34175 * normal/menu.c (print_entry): Do not put a space.
34176 (init_page): Renamed to ...
34177 (grub_menu_init_page): ... this. All callers changed.
34178 (edit_menu_entry): Removed.
34179 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
34180
34181 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
34182
34183 * kern/misc.c (grub_vprintf): Call grub_refresh.
34184
34185 * normal/menu.c (DISP_LEFT): Renamed to ...
34186 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
34187 * normal/menu.c (DISP_UP): Renamed to ...
34188 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
34189 * normal/menu.c (DISP_RIGHT): Renamed to ...
34190 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
34191 * normal/menu.c (DISP_DOWN): Renamed to ...
34192 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
34193 * normal/menu.c (DISP_HLINE): Renamed to ...
34194 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
34195 * normal/menu.c (DISP_VLINE): Renamed to ...
34196 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
34197 * normal/menu.c (DISP_UL): Renamed to ...
34198 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
34199 * normal/menu.c (DISP_UR): Renamed to ...
34200 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
34201 * normal/menu.c (DISP_LL): Renamed to ...
34202 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
34203 * normal/menu.c (DISP_LR): Renamed to ...
34204 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
34205 * normal/menu.c (TERM_WIDTH): Renamed to ...
34206 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
34207 * normal/menu.c (TERM_HEIGHT): Renamed to ...
34208 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
34209 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
34210 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
34211 * normal/menu.c (TERM_MARGIN): Renamed to ...
34212 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
34213 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
34214 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
34215 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
34216 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
34217 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
34218 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
34219 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
34220 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
34221 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
34222 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
34223 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
34224 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
34225 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
34226 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
34227 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
34228 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
34229 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
34230 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
34231 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
34232 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
34233 All callers changed.
34234
34235 * include/grub/normal.h: New prototype.
34236
34237 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34238 normal/menu_entry.c.
34239 (normal_mod_SOURCES): Likewise.
34240 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34241 (normal_mod_SOURCES): Likewise.
34242
e6b92c8a 342432005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
34244
34245 * include/grub/normal.h (grub_halt_init): New prototype.
34246 (grub_halt_fini): Likewise.
34247 (grub_reboot_init): Likewise.
34248 (grub_reboot_fini): Likewise.
34249
34250 * util/grub-emu.c: Include signal.h.
34251 (main_env): New global variable.
34252 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
34253 catch C-c.
34254 (grub_machine_fini): New function.
34255 (main): Call grub_halt_init and grub_reboot_init before
34256 grub_main, and grub_reboot_fini and grub_halt_fini after it.
34257 Call setjmp with MAIN_ENV to go back afterwards.
34258 Call grub_machine_fini right before return.
34259
34260 * include/grub/util/misc.h: Include setjmp.h.
34261 (main_env): New prototype.
34262
34263 * include/grub/kernel.h (grub_machine_fini): New prototype.
34264 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
34265 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
34266
34267 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
34268 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
34269 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 34270
e6b92c8a 34271 * util/i386/pc/misc.c: New file.
f19dbdb7 34272
e6b92c8a 34273 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
34274 util/i386/pc/misc.c, commands/i386/pc/halt.c and
34275 commands/i386/pc/reboot.c.
34276
c642636f 342772005-02-14 Guillem Jover <guillem@hadrons.org>
34278
34279 * include/grub/dl.h (grub_dl_check_header): New prototype.
34280 (grub_arch_dl_check_header): Change return type to grub_err_t,
34281 remove size parameter and export function. Update all callers.
34282 * kern/dl.c (grub_dl_check_header): New function.
34283 (grub_dl_load_core): Use `grub_dl_check_header' instead of
34284 `grub_arch_dl_check_header'. Check ELF type. Check if sections
34285 are inside the core.
34286 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
34287 independent ELF header checks.
34288 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
34289 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
34290 `grub_dl_check_header' instead of explicit checks. Check for the
34291 ELF type.
34292 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
34293 `grub_dl_check_header' instead of explicit checks. Remove arch
34294 specific ELF header checks.
34295
e6b92c8a 34296 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
34297 argument SIZE.
34298
5eabe94b 342992005-02-13 Hollis Blanchard <hollis@penguinppc.org>
34300
34301 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
34302 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
34303
1b14a681 343042005-02-12 Hollis Blanchard <hollis@penguinppc.org>
34305
34306 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 34307 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 34308 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 34309 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 34310 * partmap/amiga.c (amiga_partition_map_iterate): Return
34311 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
34312 * partmap/apple.c (apple_partition_map_iterate): Likewise.
34313
aca108aa 343142005-02-01 Guillem Jover <guillem@hadrons.org>
34315
34316 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
34317 help info.
34318
c9f9c556 343192005-01-31 Marco Gerards <metgerards@student.han.nl>
34320
34321 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
34322 Removed prototype.
34323 (grub_rescue_cmd_linux): New prototype.
34324 (grub_rescue_cmd_initrd): Likewise.
34325 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
34326 `bi_rec'.
34327 (grub_linux_release_mem): Release the memory for the initrd.
34328 (grub_load_linux): Renamed from this...
34329 (grub_rescue_cmd_linux): ...To this. Changed all callers.
34330 Changed `entry' not to be static. Loop over memory regions to
34331 find another one when the default fails.
34332 (grub_rescue_cmd_initrd): New function.
34333 (grub_linux_init): Remove function.
34334 (grub_linux_fini): Likewise.
34335 (GRUB_MOD_INIT): Register `initrd'.
34336 (GRUB_MOD_FINI): Unregister `initrd'.
34337 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
34338 Function removed.
34339 (grub_linux_normal_fini): Likewise.
34340 (GRUB_MOD_INIT): Register `initrd'.
34341 (GRUB_MOD_FINI): Unregister `initrd'.
34342
990cf3aa 343432005-01-31 Marco Gerards <metgerards@student.han.nl>
34344
34345 * commands/help.c: New file.
34346 * normal/arg.c (show_help): Renamed to...
34347 (grub_arg_show_help): ... this.
34348 * commands/i386/pc/halt.c: New file.
34349 * commands/i386/pc/reboot.c: Likewise.
34350 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
34351 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
34352 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
34353 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
34354 variables.
34355 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34356 `commands/help.c'.
34357 (pkgdata_MODULES): Add `help.mod'.
34358 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
34359 * grub/i386/pc/init.h (grub_reboot): New prototype.
34360 (grub_halt): Likewise.
34361 * include/grub/normal.h (grub_arg_show_help): New prototype.
34362 (grub_help_init): Likewise.
34363 (grub_help_fini): Likewise.
34364 * util/grub-emu.c (main): Initialize and deinitialize the help
34365 command.
34366
34367 * normal/cmdline.c (grub_cmdline_get): Doc fix.
34368
34369 * normal/command.c (grub_command_init): Fixed the description of
34370 the `set' and `unset' commands.
34371
343722005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 34373
34374 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
34375 function.
34376 * commands/ieee1275/halt.c: New file.
34377 * commands/ieee1275/reboot.c: Likewise.
34378 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
34379 `__attribute__ ((unused))'. Some GCS related fixed.
34380 (grub_suspend_init) [GRUB_UTIL]: Function removed.
34381 (grub_suspend_fini): Likewise.
34382 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
34383 and `halt.mod'.
34384 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
34385 (halt_mod_CFLAGS): New variables.
34386 * include/grub/powerpc/ieee1275/ieee1275.h
34387 (grub_ieee1275_interpret): New prototype.
34388
1ab09cc7 343892005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
34390
34391 * include/grub/misc.h (memmove): New prototype.
34392 (memcpy): Likewise.
34393
8b8cbdb2 343942005-01-22 Hollis Blanchard <hollis@penguinppc.org>
34395
34396 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
34397 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
34398
e3741a27 343992005-01-22 Marco Gerards <metgerards@student.han.nl>
34400
34401 * kern/misc.c (grub_strndup): Function rewritten.
34402
776bd780 344032005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
34404
34405 * normal/menu.c (TERM_WIDTH): Macro redefined.
34406 (TERM_TOP_BORDER_Y): Likewise.
34407 (draw_border): Replaced while-loop by a for-loop. Make the number
34408 of lines consistent with the number of lines displayed in
34409 print_entries. Added a margin below the rectangle.
34410 (print_entry): Make the entry fit in the rectangle.
34411 (print_entries): Display the scroll arrows next to the right
34412 border.
34413
78026bce 344142005-01-21 Marco Gerards <metgerards@student.han.nl>
34415
34416 * fs/minix.c (grub_minix_find_file): Reserve more space for
34417 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
34418 `grub_strncpy' to copy `path' into it.
34419
67bbaf0f 344202005-01-21 Marco Gerards <metgerards@student.han.nl>
34421
34422 Add the loopback device, a device via which files can be accessed
34423 as devices.
f19dbdb7 34424
67bbaf0f 34425 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
34426 (pkgdata_MODULES): Add loopback.mod.
34427 (loopback_mod_SOURCES): New variable.
34428 (loopback_mod_CFLAGS): Likewise.
34429 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
34430 `disk/loopback.c'.
34431 (pkgdata_MODULES): Add loopback.mod.
34432 (loopback_mod_SOURCES): New variable.
34433 (loopback_mod_CFLAGS): Likewise.
34434 * disk/loopback.c: new file.
34435 * include/grub/normal.h (grub_loop_init): New prototype.
34436 (grub_loop_fini): New prototype.
34437 * util/grub-emu.c (main): Initialize and de-initialize loopback
34438 support.
34439 * include/grub/disk.h (grub_disk_dev_id): Add
34440 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
34441
6f1c18bd 344422005-01-20 Hollis Blanchard <hollis@penguinppc.org>
34443
34444 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
34445 function.
34446 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
34447 (suspend_mod_SOURCES): New variable.
34448 (suspend_mod_CFLAGS): Likewise.
34449 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
34450 New prototype.
34451 * commands/ieee1275/suspend.c: New file.
34452
b38551da 344532005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
34454
34455 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 34456 ((unused))' to `__attribute__ ((used))'.
b38551da 34457 (GRUB_MOD_FINI): Likewise.
34458 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
34459 * genmk.rb (PModule): Assign space to common symbols when linking
34460 modules.
34461
777aff39 344622005-01-20 Marco Gerards <metgerards@student.han.nl>
34463
34464 * include/grub/mm.h (grub_mm_init_region): Change the type of the
34465 `unsigned' arguments to `grub_size_t'.
34466 (grub_malloc): Likewise.
34467 (grub_realloc): Likewise.
34468 (grub_memalign): Likewise.
34469 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
34470 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
34471 * util/misc.c (grub_malloc): Likewise.
34472 (grub_realloc): Likewise.
34473 * kern/mm.c (get_header_from_pointer): Change the casts to
34474 `unsigned' into a cast to `grub_size_t'.
34475
34476 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
34477 point to `currnode' when `currnode' is changed.
34478
34479 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
34480 Schottelius <nico-linux@schottelius.org>.
34481
d0ff18e1 344822005-01-09 Hollis Blanchard <hollis@penguinppc.org>
34483
34484 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
34485 (note_path): Remove variable.
34486 (GRUB_IEEE1275_NOTE_NAME): New macro.
34487 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
34488 (grub_ieee1275_note_hdr): New structure.
34489 (grub_ieee1275_note_desc): Likewise.
34490 (grub_ieee1275_note): Likewise.
34491 (load_note): Remove `dir' argument. All callers updated. Remove
34492 `note_img' and `path'. Do not load a file from `note_path'.
34493 Initialize a struct grub_ieee1275_note and write that to `out'.
34494 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
34495
4ca7004c 344962005-01-05 Marco Gerards <metgerards@student.han.nl>
34497
34498 * util/misc.c (grub_util_read_image): Revert last change. It
34499 called `grub_util_read_at', which seeks from the beginning of the
34500 file.
34501
0b412211 345022005-01-04 Hollis Blanchard <hollis@penguinppc.org>
34503
34504 * TODO: Add note about endianness in grub-mkimage.
34505 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
34506 section.
34507 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
34508 (grub_mkimage_SOURCES): New target.
34509 * include/grub/kernel.h (grub_start_addr): Remove variable.
34510 (grub_end_addr): Likewise.
34511 (grub_total_module_size): Likewise.
34512 (grub_kernel_image_size): Likewise.
34513 (GRUB_MODULE_MAGIC): New constant.
34514 (grub_module_info): New structure.
34515 (grub_arch_modules_addr): New prototype.
34516 (grub_get_end_addr): Remove prototype.
34517 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
34518 * include/grub/powerpc/ieee1275/kernel.h: New file.
34519 * include/grub/util/misc.h (grub_util_get_fp_size): New
34520 prototype.
34521 (grub_util_read_at): Likewise.
34522 (grub_util_write_image_at): Likewise.
34523 * kern/main.c (grub_get_end_addr): Remove function.
34524 (grub_load_modules): Call grub_arch_modules_addr instead of using
34525 grub_end_addr. Look for a grub_module_info struct in memory. Use
34526 the grub_module_info fields instead of calling grub_get_end_addr
34527 as loop conditions. Move grub_add_unused_region code here.
34528 (grub_add_unused_region): Remove function.
34529 * kern/i386/pc/init.c: Include grub/cache.h.
34530 (grub_machine_init): Remove call to grub_get_end_addr. Remove
34531 one call to add_mem_region.
34532 (grub_arch_modules_addr): New function.
34533 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
34534 (grub_total_module_size): Likewise.
34535 Include grub/machine/kernel.h.
34536 (grub_arch_modules_addr): New function.
34537 * util/grub-emu.c (grub_end_addr): Remove variable.
34538 (grub_total_module_size): Likewise.
34539 (grub_arch_modules_addr): New function.
34540 * util/misc.c: Include unistd.h.
34541 (grub_util_get_fp_size): New function.
34542 (grub_util_read_at): Likewise.
34543 (grub_util_write_image_at): Likewise.
34544 (grub_util_read_image): Call grub_util_read_at.
34545 (grub_util_write_image): Call grub_util_write_image_at.
34546 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
34547 additional memory in kernel_img for a struct grub_module_info.
34548 Fill in that grub_module_info.
34549 * util/powerpc/ieee1275/grub-mkimage.c: New file.
34550
458786f8 345512005-01-03 Hollis Blanchard <hollis@penguinppc.org>
34552
34553 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
34554 New function.
34555 * include/grub/powerpc/ieee1275/ieee1275.h
34556 (grub_ieee1275_milliseconds): New prototype.
34557 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
34558 Change to 1000.
34559 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
34560 grub_ieee1275_milliseconds.
34561
ac507d1b 345622005-01-03 Hollis Blanchard <hollis@penguinppc.org>
34563
34564 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
34565 variable.
34566 (find_options): New function.
34567 (cmain): Call find_options.
34568 * include/grub/powerpc/ieee1275/ieee1275.h
34569 (grub_ieee1275_realmode): New extern variable.
34570 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
34571 grub_map if grub_ieee1275_realmode is false.
34572
6b8fd1c4 345732004-12-29 Marco Gerards <metgerards@student.han.nl>
34574
34575 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
34576 lines are inserted and make it work like readline. Reported by
34577 Vincent Pelletier <subdino2004@yahoo.fr>.
34578
8514a1e0 345792004-12-28 Marco Gerards <metgerards@student.han.nl>
34580
34581 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
34582
34583 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
34584 `kern/powerpc/cache.S'.
34585
924b6140 345862004-12-27 Marco Gerards <metgerards@student.han.nl>
34587
34588 * genmk.rb: Handle the `Program' class in the main loop. Written
34589 by Johan Rydberg <jrydberg@gnu.org>.
34590 (Program): New class.
34591 (programs): New variable.
34592 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
34593 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
34594 instead of "grub/kernel.h". Include <grub/machine/init.h>.
34595 (help_arch): Function removed.
34596 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
34597 `powerpc/libgcc.h' and `loader.h'.
34598 (pkgdata_PROGRAMS): New variable.
34599 (sbin_UTILITIES): Variable removed.
34600 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
34601 (grubof_SOURCES): Variable re-defined so it only includes the
34602 core functionality.
34603 (grubof_CFLAGS): Remove `-DGRUBOF'.
34604 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
34605 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
34606 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
34607 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
34608 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
34609 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
34610 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
34611 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
34612 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
34613 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
34614 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
34615 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
34616 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
34617 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
34618 (pc_mod_CFLAGS): New variables.
34619 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
34620 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
34621 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
34622 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
34623 Moved from here...
34624 * include/grub/i386/pc/init.h (grub_os_area_addr)
34625 (rub_os_area_size): ... to here.
34626 * include/grub/powerpc/ieee1275/ieee1275.h
34627 (grub_ieee1275_entry_fn): Export symbol.
34628 * include/grub/powerpc/ieee1275/init.h: New file.
34629 * include/grub/powerpc/libgcc.h: Likewise.
34630 * include/grub/cache.h: Likewise.
34631 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
34632 <hollis@penguinppc.org>.
34633 * kern/dl.c: Include <grub/cache.h>.
34634 (grub_dl_flush_cache): New function.
34635 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
34636 for this module.
34637 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
34638 (grub_console_init): Removed prototypes.
34639 (grub_machine_init): Don't initialize the modules anymore.
34640 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
34641 static.
34642 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
34643 Macro undef removed.
34644 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
34645 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
34646 relocation `R_PPC_REL32'. Return an error when the relocation is
34647 unknown.
34648 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
34649 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
34650 * util/misc.c (grub_arch_sync_caches): Likewise.
34651
e4b47e0c 346522004-12-19 Marco Gerards <metgerards@student.han.nl>
34653
34654 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
34655 `symlist.c', add `grubof_symlist.c'.
34656 (symlist.c): Variable removed.
34657 (grubof_HEADERS): Variable added.
34658 (grubof_symlist.c): New target.
34659 (kernel_syms.lst): Use `grubof_HEADERS' instead of
34660 `kernel_img_HEADERS'.
34661 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
34662 * kern/powerpc/dl.c: New file.
34663 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
34664 Function removed.
34665 (grub_arch_dl_relocate_symbols): Likewise.
34666 (grub_register_exported_symbols): Likewise.
34667
4ceb3636 346682004-12-13 Marco Gerards <metgerards@student.han.nl>
34669
34670 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
34671 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
34672 to fail instead. Reported by Vincent Pelletier
34673 <subdino2004@yahoo.fr>.
34674
34675 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
34676 it is not allocated. Reported by Vincent Pelletier
34677 <subdino2004@yahoo.fr>.
34678
34679 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
34680 output so the output looks better.
f19dbdb7 34681
3f1578fe 346822004-12-04 Marco Gerards <metgerards@student.han.nl>
34683
34684 Modulize the partition map support and add support for the amiga
34685 partition map.
f19dbdb7 34686
3f1578fe 34687 * commands/ls.c: Include <grub/partition.h> instead of
34688 <grub/machine/partition.h>.
34689 * kern/disk.c: Likewise.
34690 * kern/rescue.c: Likewise.
34691 * loader/i386/pc/chainloader.c: Likewise.
34692 * normal/cmdline.c: Likewise.
34693 * kern/powerpc/ieee1275/init.c: Likewise.
34694 (grub_machine_init): Call `grub_pc_partition_map_init',
34695 `grub_amiga_partition_map_init' and
34696 `grub_apple_partition_map_init'.
34697 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
34698 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
34699 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
34700 `partition.h' and `pc_partition.h'.
34701 (grub_setup_SOURCES): Remove
34702 `disk/i386/pc/partition.c'. Add `kern/partition.c',
34703 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
34704 (grub_emu_SOURCES): Likewise.
34705 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
34706 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
34707 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
34708 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
34709 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
34710 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
34711 (grubof_SOURCES): Likewise.
34712 * disk/i386/pc/partition.c: File removed.
34713 * disk/powerpc/ieee1275/partition.c: Likewise.
34714 * include/grub/powerpc/ieee1275/partition.h: Likewise.
34715 * include/grub/i386/pc/partition.h: Likewise.
34716 * kern/partition.c: New file.
34717 * partmap/amiga.c: Likewise.
34718 * partmap/apple.c: Likewise.
34719 * partmap/pc.c: Likewise.
34720 * include/grub/partition.h: Likewise..
34721 * include/grub/pc_partition.h: Likewise.
34722 * util/grub-emu.c: Include <grub/partition.h> instead of
34723 <grub/machine/partition.h>.
34724 (main): Call `grub_pc_partition_map_init',
34725 `grub_amiga_partition_map_init' and
34726 `grub_apple_partition_map_init' and deinitialize afterwards.
34727 * util/i386/pc/biosdisk.c: Include `#include
34728 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
34729 `<grub/machine/partition.h>'.
34730 * util/i386/pc/grub-setup.c: Likewise.
34731 * util/i386/pc/biosdisk.c: Likewise.
34732 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
34733 partition information in case of a PC partition.
34734 * util/i386/pc/grub-setup.c: Include `#include
34735 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
34736 `<grub/machine/partition.h>'.
34737 (setup): Only access the PC specific partition information in case
34738 of a PC partition.
34739
0ef4ced9 347402004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 34741
0ef4ced9 34742 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
34743 (grub_longjmp): Likewise.
34744 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
34745 20.
34746 * normal/powerpc/setjmp.S: New file.
34747 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
34748 `normal/powerpc/setjmp.S'.
34749 (grubof_CFLAGS): Add `-DGRUBOF'.
34750 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
34751 [GRUB_UTIL && !GRUBOF].
f19dbdb7 34752
19950e29 347532004-11-16 Marco Gerards <metgerards@student.han.nl>
34754
34755 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
34756 property named `name'. Correctly handle the error returned by
34757 `grub_ieee1275_finddevice' if a device can not be opened.
34758
a2fea427 347592004-11-02 Hollis Blanchard <hollis@penguinppc.org>
34760
34761 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
34762 `actual' for negativity.
34763 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
34764 kern/fshelp.c.
34765
41ea0ea3 347662004-11-01 Marco Gerards <metgerards@student.han.nl>
34767
34768 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
34769 (PAGE_OFFSET): New macro.
34770 (CRTC_ADDR_PORT): Likewise.
34771 (CRTC_DATA_PORT): Likewise.
34772 (START_ADDR_HIGH_REGISTER): Likewise.
34773 (START_ADDR_LOW_REGISTER): Likewise.
34774 (GRAPHICS_ADDR_PORT): Likewise.
34775 (GRAPHICS_DATA_PORT): Likewise.
34776 (READ_MAP_REGISTER): Likewise.
34777 (INPUT_STATUS1_REGISTER): Likewise.
34778 (INPUT_STATUS1_VERTR_BIT): Likewise.
34779 (page): New variable.
34780 (wait_vretrace): New function.
34781 (set_read_map): Likewise.
34782 (set_start_address): Likewise.
34783 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
34784 the right page.
34785 (check_vga_mem): Take the page into account.
34786 (write_char): Likewise.
34787 (write_cursor): Likewise.
34788 (scroll_up): Likewise. Copy the page to the page that is not
34789 shown and switch between both pages.
34790 (grub_vga_putchar): Fix off by one error.
34791 (grub_vga_cls): Wait for the vertical retrace. Take the page into
34792 account.
34793
ad0bd20b 347942004-11-01 Marco Gerards <metgerards@student.han.nl>
34795
34796 Add support for iso9660 (including rockridge).
f19dbdb7 34797
ad0bd20b 34798 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
34799 (iso9660_mod_SOURCES): New variable.
34800 (iso9660_mod_CFLAGS): Likewise.
34801 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
34802 * include/grub/fs.h (grub_iso9660_init): New prototype.
34803 * util/grub-emu.c (main): Call `grub_iso9660_init'.
34804 * fs/iso9660.c: New file.
34805
34806 * include/grub/misc.h (grub_strncat): New prototype.
34807 * kern/misc.c (grub_strncat): New function.
f19dbdb7 34808
ad0bd20b 34809 * fs/hfs.c (grub_hfs_mount): Translate the error
34810 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
34811 * fs/jfs.c (grub_jfs_mount): Likewise.
34812 * fs/ufs.c (grub_ufs_mount): Likewise.
34813
a5477a59 348142004-10-28 Hollis Blanchard <hollis@penguinppc.org>
34815
34816 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
34817 which initialized BAT registers.
34818 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
34819 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
34820 Move from here...
34821 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
34822 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
34823 ... to here.
34824 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
34825 (grub_mapclaim): Likewise.
34826 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
34827 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
34828 hand.
34829
9304c1f8 348302004-10-19 Hollis Blanchard <hollis@penguinppc.org>
34831
34832 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
34833 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
34834 -ffreestanding and -msoft-float.
34835
86f4ae25 348362004-10-15 Hollis Blanchard <hollis@penguinppc.org>
34837
34838 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
34839 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
34840 set in grub_ieee1275_flags.
34841
38912228 348422004-10-14 Hollis Blanchard <hollis@penguinppc.org>
34843
34844 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
34845 prototype.
34846 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
34847 grub_console_init first.
34848 Change the memory range used for grub_ieee1275_claim and
34849 grub_mm_init_region.
34850 Print an error message if the claim fails.
34851 Include <grub/misc.h>.
34852
d1923dc8 348532004-10-13 Hollis Blanchard <hollis@penguinppc.org>
34854
34855 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
34856 Call grub_children_iterate for device nodes of type `scsi',
34857 `ide', or `ata'.
34858 (grub_ofdisk_open): Remove manual device alias resolution.
34859 Fix memory leak when device cannot be opened.
f19dbdb7 34860 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 34861 (grub_children_iterate): New prototype.
34862 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
34863 New function.
34864 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
34865 Return -1 if args.size was -1.
34866
4512e4f3 348672004-10-11 Hollis Blanchard <hollis@penguinppc.org>
34868
34869 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
34870 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
34871 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
34872 Open Firmware's memory for it; claim memory from _start to _end.
34873 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
34874 (_end): New extern.
34875 (_start): Zero BSS from __bss_start to _end.
34876 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
34877 New extern.
34878 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
34879
4d61feb0 348802004-10-11 Hollis Blanchard <hollis@penguinppc.org>
34881
ad0bd20b 34882 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
34883 -1 if args.base was -1.
4d61feb0 34884
026fa2f9 348852004-10-08 Hollis Blanchard <hollis@penguinppc.org>
34886
34887 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
34888 escape sequence instead of a literal ^L. Also call
34889 grub_ofconsole_gotoxy.
34890
9f2220ef 348912004-10-03 Hollis Blanchard <hollis@penguinppc.org>
34892
34893 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
34894 void * arguments to grub_addr_t. All callers updated. Also make
34895 the `result' argument optional.
34896 (grub_ieee1275_release): change void * arguments to grub_addr_t.
34897 All callers updated.
34898
8a572cd7 348992004-09-22 Hollis Blanchard <hollis@penguinppc.org>
34900
34901 * commands/ls.c (grub_ls_list_files): Use the string following the
34902 initial ')', if present, as the filesystem path.
34903 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
34904
34905 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
34906
18aa81f2 349072004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
34908
34909 Make the source code of the menu interface more readable.
f19dbdb7 34910
18aa81f2 34911 * normal/menu.c: Include grub/mm.h.
34912 (TERM_WIDTH): New macro.
34913 (TERM_HEIGHT): Likewise.
34914 (TERM_INFO_HEIGHT): Likewise.
34915 (TERM_MARGIN): Likewise.
34916 (TERM_SCROLL_WIDTH): Likewise.
34917 (TERM_TOP_BORDER_Y): Likewise.
34918 (TERM_LEFT_BORDER_X): Likewise.
34919 (TERM_BORDER_WIDTH): Likewise.
34920 (TERM_MESSAGE_HEIGHT): Likewise.
34921 (TERM_BORDER_HEIGHT): Likewise.
34922 (TERM_NUM_ENTRIES): Likewise.
34923 (TERM_FIRST_ENTRY_Y): Likewise.
34924 (TERM_ENTRY_WIDTH): Likewise.
34925 (TERM_CURSOR_X): Likewise.
34926 (draw_border): Use macros instead of magic numbers.
34927 (print_entry): Likewise.
34928 (print_entries): Likewise.
34929 (run_menu): Likewise. Also, handle the key 'e'.
34930 (run_menu_entry): Ignore empty command lines.
34931 (print_message): Added a new argument EDIT. If EDIT is true,
34932 print a different message.
34933 (init_page): Likewise.
34934 (edit_menu_entry): New function. Not implemented yet.
34935
b47efe30 349362004-09-17 Marco Gerards <metgerards@student.han.nl>
34937
34938 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
34939 can be loaded from normal mode.
f19dbdb7 34940
b47efe30 34941 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
34942 `multiboot.mod'.
34943 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
34944 (multiboot_mod_CFLAGS): New variables.
34945 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 34946 * loader/i386/pc/multiboot_normal.c: Likewise.
34947
b47efe30 34948 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
34949 attribute `unused'.
f19dbdb7 34950
b47efe30 34951 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
34952 `fdiro' to read the mode information from instead of `diro'.
34953
34954 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
34955 looking up a symlink.
34956
34957 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
34958 macro.
34959 * normal/command.c (grub_command_execute): Don't parse the
34960 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
34961 flags of the command.
34962
34963 * normal/menu.c (grub_menu_run): Fix typo.
34964
da75ac71 349652004-09-14 Hollis Blanchard <hollis@penguinppc.org>
34966
34967 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
34968
34969 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
34970 `y + 1' instead of `y - 1'.
34971
34972 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 34973
062b24c2 349742004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
34975
34976 From Hollis Blanchard <hollis@penguinppc.org>:
34977 * kern/misc.c (memmove): New alias for grub_memmove.
34978 (memcmp): New alias for grub_memcmp.
34979 (memset): New alias for grub_memset.
f19dbdb7 34980 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 34981 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 34982 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 34983 (grub_ieee1275_get_property): Likewise.
f19dbdb7 34984
8ddad845 349852004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
34986
34987 Added normal mode command `chainloader' as module chain.mod, which
34988 depends on normal.mod and _chain.mod.
f19dbdb7 34989
8ddad845 34990 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
34991 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
34992 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
34993 Deleted prototype.
34994 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
34995 but arguments parsing moved to ...
34996 (grub_chainloader_cmd): ... here. New function.
34997 * include/grub/i386/pc/chainloader.h: New file.
34998 * loader/i386/pc/chainloader_normal.c: Likewise.
34999
2c1f4ce3 350002004-09-11 Marco Gerards <metgerards@student.han.nl>
35001
35002 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
35003 (grub_mkimage_LDFLAGS): Likewise.
35004 (grub_emu_SOURCES): Likewise.
35005 (kernel_img_HEADERS): Added fshelp.h.
35006 * fs/ext2.c: Include <grub/fshelp.h>.
35007 (FILETYPE_REG): New macro.
35008 (FILETYPE_INO_REG): Likewise.
35009 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
35010 Changed all users.
35011 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
35012 all users.
35013 (grub_fshelp_node): New struct.
35014 (grub_ext2_data): Added member `diropen'. Changed member `inode'
35015 to a pointer.
35016 (grub_ext2_get_file_block): Removed function.
35017 (grub_ext2_read_block): New function.
35018 (grub_ext2_read_file): Replaced parameter `data' by `node'.
35019 This function was written.
35020 (grub_ext2_mount): Read the root inode. Create a diropen struct.
35021 (grub_ext2_find_file): Removed function.
35022 (grub_ext2_read_symlink): New function.
35023 (grub_ext2_iterate_dir): Likewise.
35024 (grub_ext2_open): Rewritten.
35025 (grub_ext2_dir): Rewritten.
35026 * include/grub/fshelp.h: New file.
35027 * fs/fshelp.c: Likewise.
35028
3c52136a 350292004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
35030
35031 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
35032 (print_message): Add a missing newline.
35033 (run_menu): Added timeout support.
35034 (run_menu_entry): New local function.
35035 (grub_menu_run): Added support for booting.
35036
35037 * kern/loader.c (grub_loader_is_loaded): New function.
35038
35039 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
35040 (grub_get_rtc): Exported.
35041
35042 * include/grub/i386/pc/time.h: Include grub/symbol.h.
35043 (grub_get_rtc): Exported.
35044
35045 * include/grub/normal.h (struct grub_command_list): Remove
35046 constant from the member `command'.
35047
35048 * include/grub/loader.h (grub_loader_is_loaded): Declared.
35049
35050 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
35051
35052 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
35053
aa033560 350542004-08-28 Marco Gerards <metgerards@student.han.nl>
35055
35056 Add support for the JFS filesystem.
35057
35058 * fs/jfs.c: New file.
35059 * include/grub/fs.h (grub_jfs_init): New prototype.
35060 (grub_jfs_fini): New prototype.
35061 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
35062 (grub_emu_SOURCES): Likewise.
35063 (pkgdata_MODULES): Add jfs.mod.
35064 (jfs_mod_SOURCES): New variable.
35065 (jfs_mod_CFLAGS): Likewise.
35066 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
35067 (grubof_SOURCES): Likewise.
35068 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
35069
35070 * fs/fat.c (grub_fat_find_dir): Convert the filename little
35071 endian to the host endian.
35072 (grub_fat_utf16_to_utf8): Move function from there...
35073 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 35074 the endianness of the source string anymore.
aa033560 35075 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
35076
94bc45af 350772004-08-24 Marco Gerards <metgerards@student.han.nl>
35078
35079 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
35080 (grub_boot_fini) [GRUB_UTIL]: Likewise.
35081 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
35082 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 35083
94bc45af 35084 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
35085 (grub_hfs_iterate_dir): Make the function static. Add prototypes
35086 for `node_found' and `it_dir'.
35087 (grub_hfs_dir): Add prototype for `dir_hook'.
35088
35089 * fs/minix.c (grub_minix_get_file_block): Add prototype for
35090 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
35091 and `indir32' to silence a gcc warning.
35092
35093 * include/grub/fs.h (grub_hfs_init): New prototype.
35094 (grub_hfs_fini): Likewise.
f19dbdb7 35095
35096
97543f08 350972004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
35098
35099 Each disk device has its own id now. This is useful to make use
35100 of multiple disk devices.
f19dbdb7 35101
97543f08 35102 * include/grub/disk.h (grub_disk_dev_id): New enum.
35103 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
35104 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
35105
35106 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
35107 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
35108
35109 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
35110 GRUB_DISK_DEVICE_OFDISK_ID as an id.
35111
35112 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
35113 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
35114
35115 * include/grub/disk.h (struct grub_disk_dev): Added a new member
35116 "id" which is used by the cache manager.
35117
35118 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
35119 of just "GRUB".
35120
64372eb4 351212004-08-18 Marco Gerards <metgerards@student.han.nl>
35122
35123 * fs/hfs.c: New file.
35124 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
35125 (grub_emu_SOURCES): Likewise.
35126 (pkgdata_MODULES): Add hfs.mod.
35127 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
35128 (grubof_SOURCES): Likewise.
35129 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
35130
35131 * include/grub/misc.h (grub_strncasecmp): Add prototype.
35132 * kern/misc.c (grub_strncasecmp): Add function.
35133
cc61b58f 351342004-08-14 Marco Gerards <metgerards@student.han.nl>
35135
35136 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
35137 with parentheses.
35138
35139 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
35140 (grub_ext2_dir): In case the directory entry type is unknown, read
35141 it from the inode.
35142
0ef123f6 351432004-08-02 Peter Bruin <pjbruin@dds.nl>
35144
35145 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
35146 grub_load_linux instead of grub_rescue_cmd_linux as second
35147 argument of grub_rescue_register_command.
35148
35149 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
35150
a447c5df 351512004-07-27 Marco Gerards <metgerards@student.han.nl>
35152
35153 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
35154 function.
35155 * commands/boot.c: Remove the check for `GRUB_UTIL'.
35156 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
35157 `loader/powerpc/ieee1275/linux.c',
35158 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
35159 * include/grub/powerpc/ieee1275/ieee1275.h
35160 (grub_ieee1275_release): New prototype.
35161 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
35162 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
35163 normal, boot, linux and linux_normal.
35164 * loader/powerpc/ieee1275/linux.c: New file.
35165 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
35166
5a9e3546 351672004-07-12 Marco Gerards <metgerards@student.han.nl>
35168
35169 * normal/arg.c (grub_arg_parse): Correct error handling after
35170 reallocating the argumentlist (check if `argl' is not null instead
35171 of checking if `args' is not null).
35172 * kern/mm.c (grub_realloc): Return the same pointer when using the
35173 same region, instead of returning the header address.
35174
e15199cb 351752004-07-11 Marco Gerards <metgerards@student.han.nl>
35176
35177 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
35178 one block instead of two when looking for the initial partition.
35179 (grub_partition_probe): Initialize the local variable `p' with 0.
35180 Use base 10 for the grub_strtoul call.
35181 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
35182 need for one local variable.
35183 (grub_strtoul): Don't add the new value to `num', instead of that
35184 just assign it.
35185
020616c2 351862004-07-11 Marco Gerards <metgerards@student.han.nl>
35187
35188 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
35189 (pxeboot_img_SOURCES): New variable.
35190 (pxeboot_img_ASFLAGS): Likewise.
35191 (pxeboot_img_LDFLAGS): Likewise.
35192 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
35193 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
35194 <lode_leroy@hotmail.com>.
35195
6c51eb64 351962004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
35197
35198 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
35199 there was no input.
35200
cfb12aff 352012004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
35202
35203 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
35204 the history buffer logic.
35205
6eabba74 352062004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
35207
35208 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
35209 (FILETYPE_INO_SYMLINK): New macros.
35210 (grub_ext2_find_file): Check if the node is a directory using the
35211 inode stat information instead of using the filetype in the
35212 dirent. Exclude the first character of an absolute symlink.
35213 (grub_ext2_dir): Mask out the filetype part of the mode member of
35214 the inode.
35215
66e19ef8 352162004-05-24 Marco Gerards <metgerards@student.han.nl>
35217
35218 Add support for UFS version 1 and 2. Add support for the minix
35219 filesystem version 1 and 2, both the variants with 14 and 30 long
35220 filenames.
f19dbdb7 35221
66e19ef8 35222 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
35223 fs/minix.c.
35224 (grub_emu_SOURCES): Likewise.
35225 (pkgdata_MODULES): Add ufs.mod and minix.mod.
35226 (ufs_mod_SOURCES): New variable.
35227 (ufs_mod_CFLAGS): Likewise.
35228 (minix_mod_SOURCES): Likewise.
35229 (minix_mod_CFLAGS): Likewise.
35230 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
35231 fs/minix.c.
35232 (grubof_SOURCES): Likewise.
35233 * fs/ufs.c: New file.
35234 * fs/minix.c: New file.
35235 * include/grub/fs.h (grub_ufs_init): New prototype.
35236 (grub_ufs_fini): Likewise.
35237 (grub_minix_init): Likewise.
35238 (grub_minix_fini): Likewise.
35239 * util/grub-emu.c (main): Initialize and deinitialize UFS and
35240 minix fs.
35241
cc2e748a 352422004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
35243
35244 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
35245 commands/ls.c, commands/terminal.c, commands/boot.c,
35246 commands/cmp.c and commands/cat.c.
35247 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
35248
35249 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
35250 "env.h"
35251
4b13b216 352522004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
35253
35254 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
35255 and grub_, respectively. Because the conversion is trivial and
35256 mechanical, I omit the details here. Please refer to the CVS
35257 if you need more information.
35258
6a142551 352592004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
35260
35261 * include/pupa: Renamed to ...
35262 * include/grub: ... this.
35263 * util/i386/pc/pupa-mkimage.c: Renamed to ...
35264 * util/i386/pc/grub-mkimage.c: ... this.
35265 * util/i386/pc/pupa-setup.c: Renamed to ...
35266 * util/i386/pc/grub-setup.c: ... this.
35267 * util/pupa-emu.c: Renamed to ...
35268 * util/grub-emu.c: ... this.
35269
e56cdf21 352702004-03-29 Marco Gerards <metgerards@student.han.nl>
35271
35272 Add support for the newworld apple macintosh (PPC). This has been
35273 tested on the powerbook 2000 only. It only adds support for
35274 generic ieee1275 functions, console and disk support. This should
35275 be easy to port to other architectures with support for Open
35276 Firmware.
f19dbdb7 35277
e56cdf21 35278 * configure.ac: Accept the powerpc as host_cpu. In the case of
35279 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
35280 specific tests are only executed while building for the i386.
35281 Inverse test for crosscompile.
35282 * genmk.rb (Utility): Allow assembler files.
35283 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
35284 * conf/powerpc-ieee1275.rmk: New file.
35285 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
35286 * disk/powerpc/ieee1275/partition.c: Likewise.
35287 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
35288 * include/pupa/powerpc/ieee1275/console.h: Likewise.
35289 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
35290 * include/pupa/powerpc/ieee1275/time.h: Likewise.
35291 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
35292 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
35293 * include/pupa/powerpc/ieee1275/loader.h
35294 * include/pupa/powerpc/setjmp.h: Likewise.
35295 * include/pupa/powerpc/types.h: Likewise.
35296 * kern/powerpc/ieee1275/init.c: Likewise.
35297 * kern/powerpc/ieee1275/openfw.c: Likewise.
35298 * term/powerpc/ieee1275/ofconsole.c: Likewise.
35299
35300 These files were written by Johan Rydberg
35301 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 35302
e56cdf21 35303 * boot/powerpc/ieee1275/cmain.c: New file.
35304 * boot/powerpc/ieee1275/crt0.S: Likewise.
35305 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
35306 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
35307
8c8cc205 353082004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
35309
35310 * Makefile.in: Update copyright.
35311 * genmodsrc.sh: Likewise.
35312 * gensymlist.sh: Likewise.
35313 * term/i386/pc/vga.c: Indent correctly.
35314
35315 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
35316 bugreporting address.
35317 * util/i386/pc/pupa-setup.c (usage): Likewise,
35318 (main): Call pupa_ext2_init and pupa_ext2_fini.
35319
f19dbdb7 35320 * fs/fat.c (log2): Renamed to ...
8c8cc205 35321 (fat_log2): ... this.
35322 All callers changed.
35323 * kern/misc.c (memcpy): Alias to pupa_memmove.
35324 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
35325 lvalue cast.
35326 * util/console.c (pupa_ncurses_fini): Return 0.
35327
35328 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
35329 Move fail label here.
35330 [__GNU__]: Don't warn when using stat.
35331 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
35332 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
35333 long int. Use strtol instead of strtoul.
f19dbdb7 35334
db1771cf 353352004-03-14 Marco Gerards <metgerards@student.han.nl>
35336
35337 * commands/boot.c: New file.
35338 * commands/cat.c: Likewise.
35339 * commands/cmp.c: Likewise.
35340 * commands/ls.c: Likewise.
35341 * commands/terminal.c: Likewise.
35342 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
35343 (pupa_register_command): Changed interface to match the new
35344 argument parser.
35345 (pupa_command_execute): Changed (almost rewritten) so it uses
35346 pupa_split_command. Added support for setting variables using the
35347 syntax `foo=bar'.
35348 (rescue_command): Changed to work with the new argument parser.
35349 (terminal_command): Moved from here to commands/terminal.c.
35350 (set_command): New function.
35351 (unset_command): New function.
35352 (insmod_command): New function.
35353 (rmmod_command): New function.
35354 (lsmod_command): New function.
35355 (pupa_command_init): Don't initialize the command terminal
35356 anymore. Initialize the commands set, unset, insmod, rmmod and
35357 lsmod.
35358 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
35359 (kernel_img_HEADERS): Add arg.h and env.h.
35360 (pupa_mkimage_LDFLAGS): Add kern/env.c.
35361 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
35362 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
35363 normal/arg.c.
35364 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
35365 terminal.mod.
35366 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
35367 (boot_mod_SOURCES): New variable.
35368 (terminal_mod_SOURCES): Likewise.
35369 (ls_mod_SOURCES): Likewise.
35370 (cmp_mod_SOURCES): Likewise.
35371 (cat_mod_SOURCES): Likewise.
35372
35373 * normal/arg.c: New file.
35374 * kern/env.c: Likewise.
35375 * include/pupa/arg.h: Likewise.
35376 * include/pupa/env.h: Likewise.
35377 * font/manager.c (font_command): Changed to match argument parsing
35378 interface changes.
35379 (PUPA_MOD_INIT): Likewise.
35380 * hello/hello.c (pupa_cmd_hello): Likewise.
35381 (PUPA_MOD_INIT): Likewise.
35382 * include/pupa/disk.h: Include <pupa/device.h>.
35383 (pupa_print_partinfo): New prototype.
35384 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
35385 (pupa_dl_get_prefix): Likewise.
35386 * include/pupa/misc.h: Include <pupa/err.h>.
35387 (pupa_isgraph): New prototype.
35388 (pupa_isdigit): Likewise.
35389 (pupa_split_cmdline): Likewise.
35390 * include/pupa/normal.h: Include <pupa/arg.h>.
35391 (pupa_command): Changed the prototype of the member `func' to
35392 match the argument parsing interface. Added member `options'.
35393 (pupa_register_command): Updated to match function.
35394 (pupa_arg_parse): New prototype.
35395 (pupa_hello_init) [PUPA_UTIL]: New prototype.
35396 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
35397 (pupa_ls_init) [PUPA_UTIL]: Likewise.
35398 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
35399 (pupa_cat_init) [PUPA_UTIL]: Likewise.
35400 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
35401 (pupa_boot_init) [PUPA_UTIL]: Likewise.
35402 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
35403 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
35404 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
35405 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
35406 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
35407 * kern/disk.c: Include <pupa/file.h>.
35408 (pupa_print_partinfo): New function.
35409 * kern/dl.c: Include <pupa/env.h>.
35410 (pupa_dl_dir): Variable removed.
35411 (pupa_dl_load): Use the environment variable `prefix' instead of
35412 the variable pupa_dl_dir.
35413 (pupa_dl_set_prefix): Function removed.
35414 (pupa_dl_get_prefix): Likewise.
35415 * kern/i386/pc/init.c: Include <pupa/env.h>.
35416 (pupa_machine_init): Use the environment variable `prefix' instead of
35417 using pupa_dl_set_prefix to set the prefix.
35418 * kern/main.c: Include <pupa/env.h>.
35419 (pupa_set_root_dev): Use the environment variable `prefix' instead of
35420 using pupa_dl_get_prefix to get the prefix.
35421 * kern/misc.c: Include <pupa/env.h>.
35422 (pupa_isdigit): New function.
35423 (pupa_isgraph): Likewise.
35424 (pupa_ftoa): Likewise.
35425 (pupa_vsprintf): Added support for printing values of the type
35426 `double'. Make it possible to format variable output when using
35427 formatting like `%1.2%f'.
35428 (pupa_split_cmdline): New function.
35429 * kern/rescue.c: Include <pupa/env.h>.
35430 (next_word): Removed function.
35431 (pupa_rescue_cmd_prefix): Likewise.
35432 (pupa_rescue_cmd_set): New function.
35433 (pupa_rescue_cmd_unset): New function.
35434 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
35435 split the command line instead of splitting it here. Added
35436 support for setting variables using the syntax `foo=bar'. Don't
35437 initialize the prefix command anymore. Initialized the set and
35438 unset commands.
35439 * normal/cmdline.c: Include <pupa/env.h>.
35440 (pupa_tab_complete): Added prototypes for print_simple_completion,
35441 print_partition_completion, add_completion, iterate_commands,
35442 iterate_dev, iterate_part and iterate_dir. Moved code to print
35443 partition information from here to kern/disk.c.
fe6b695a 35444 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 35445 * normal/main.c: Include <pupa/env.h>.
35446 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
35447 instead of using pupa_dl_get_prefix to get the prefix.
35448 * term/i386/pc/vga.c: Include <pupa/arg.h>.
35449 (check_vga_mem): Cast pointers to `void *' to silence a gcc
35450 warning.
35451 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
35452 (pupa_vga_setcolor): Declare unused variables with `__attribute__
35453 ((unused))' to silence a gcc warning.
35454 (pupa_vga_setcolor): Likewise.
35455 (debug_command): Changed to match argument parsing
35456 interface changes.
35457 * util/pupa-emu.c: Include <pupa/env.h>.
35458 (options): Added 0's for unused fields to silence a gcc warning.
35459 (argp): Likewise.
35460 (main): Use the environment variable `prefix' instead of using
35461 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
35462 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
35463 and terminal.
35464
35465 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
35466 * util/misc.c: Include <malloc.h>.
35467 (pupa_malloc): Rewritten so errors are correctly reported.
35468 (pupa_realloc): Likewise.
35469 (pupa_memalign): Likewise.
35470 (pupa_mm_init_region): Declare unused variables with
35471 `__attribute__ ((unused))' to silence a gcc warning.
35472 * normal/i386/setjmp.S: Remove tab at the end of the file to
35473 silence a gcc warning.
35474 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
35475 variables with `__attribute__ ((unused))' to silence a gcc
35476 warning.
35477 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
35478 local variable i unsigned to silence a gcc warning.
35479
35480 * kern/term.c: Include <pupa/misc.h>.
35481 (pupa_more_lines): New variable.
35482 (pupa_more): Likewise.
35483 (pupa_putcode): When the pager is active pause at the end of every
35484 screen.
35485 (pupa_set_more): New function.
35486 * include/pupa/term.h (pupa_set_more): New prototype.
35487
35488
3b1139cb 354892004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
35490
35491 Now this project is GRUB 2 rather than PUPA. The location of
35492 the CVS repository was moved to GRUB's.
f19dbdb7 35493
3b1139cb 35494 * configure.ac: Use bug-grub as the reporting address.
35495 Use GRUB instead of PUPA.
35496 Change the version number to 1.90.
35497
8367695c 354982004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
35499
35500 * genkernsyms.sh: Updated copyright information.
35501 * genmk.rb: Likewise.
35502 * genmodsrc.sh: Likewise.
35503 * gensymlist.sh: Likewise.
35504 * boot/i386/pc/boot.S: Likewise.
35505 * boot/i386/pc/diskboot.S: Likewise.
35506 * disk/i386/pc/biosdisk.c: Likewise.
35507 * disk/i386/pc/partition.c: Likewise.
35508 * font/manager.c: Likewise.
35509 * fs/ext2.c: Likewise.
35510 * fs/fat.c: Likewise.
35511 * include/pupa/boot.h: Likewise.
35512 * include/pupa/device.h: Likewise.
35513 * include/pupa/disk.h: Likewise.
35514 * include/pupa/dl.h: Likewise.
35515 * include/pupa/elf.h: Likewise.
35516 * include/pupa/err.h: Likewise.
35517 * include/pupa/file.h: Likewise.
35518 * include/pupa/font.h: Likewise.
35519 * include/pupa/fs.h: Likewise.
35520 * include/pupa/kernel.h: Likewise.
35521 * include/pupa/loader.h: Likewise.
35522 * include/pupa/misc.h: Likewise.
35523 * include/pupa/mm.h: Likewise.
35524 * include/pupa/net.h: Likewise.
35525 * include/pupa/normal.h: Likewise.
35526 * include/pupa/rescue.h: Likewise.
35527 * include/pupa/setjmp.h: Likewise.
35528 * include/pupa/symbol.h: Likewise.
35529 * include/pupa/term.h: Likewise.
35530 * include/pupa/types.h: Likewise.
35531 * include/pupa/i386/setjmp.h: Likewise.
35532 * include/pupa/i386/types.h: Likewise.
35533 * include/pupa/i386/pc/biosdisk.h: Likewise.
35534 * include/pupa/i386/pc/boot.h: Likewise.
35535 * include/pupa/i386/pc/console.h: Likewise.
35536 * include/pupa/i386/pc/init.h: Likewise.
35537 * include/pupa/i386/pc/kernel.h: Likewise.
35538 * include/pupa/i386/pc/linux.h: Likewise.
35539 * include/pupa/i386/pc/loader.h: Likewise.
35540 * include/pupa/i386/pc/memory.h: Likewise.
35541 * include/pupa/i386/pc/multiboot.h: Likewise.
35542 * include/pupa/i386/pc/partition.h: Likewise.
35543 * include/pupa/i386/pc/time.h: Likewise.
35544 * include/pupa/i386/pc/vga.h: Likewise.
35545 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
35546 * include/pupa/util/getroot.h: Likewise.
35547 * include/pupa/util/misc.h: Likewise.
35548 * include/pupa/util/resolve.h: Likewise.
35549 * kern/device.c: Likewise.
35550 * kern/disk.c: Likewise.
35551 * kern/dl.c: Likewise.
35552 * kern/err.c: Likewise.
35553 * kern/file.c: Likewise.
35554 * kern/fs.c: Likewise.
35555 * kern/loader.c: Likewise.
35556 * kern/main.c: Likewise.
35557 * kern/misc.c: Likewise.
35558 * kern/mm.c: Likewise.
35559 * kern/rescue.c: Likewise.
35560 * kern/term.c: Likewise.
35561 * kern/i386/dl.c: Likewise.
35562 * kern/i386/pc/init.c: Likewise.
35563 * kern/i386/pc/lzo1x.S: Likewise.
35564 * kern/i386/pc/startup.S: Likewise.
35565 * loader/i386/pc/chainloader.c: Likewise.
35566 * loader/i386/pc/linux.c: Likewise.
35567 * loader/i386/pc/multiboot.c: Likewise.
35568 * normal/cmdline.c: Likewise.
35569 * normal/command.c: Likewise.
35570 * normal/main.c: Likewise.
35571 * normal/menu.c: Likewise.
35572 * normal/i386/setjmp.S: Likewise.
35573 * term/i386/pc/console.c: Likewise.
35574 * term/i386/pc/vga.c: Likewise.
35575 * util/console.c: Likewise.
35576 * util/genmoddep.c: Likewise.
35577 * util/misc.c: Likewise.
35578 * util/pupa-emu.c: Likewise.
35579 * util/resolve.c: Likewise.
35580 * util/unifont2pff.rb: Likewise.
35581 * util/i386/pc/biosdisk.c: Likewise.
35582 * util/i386/pc/getroot.c: Likewise.
35583 * util/i386/pc/pupa-mkimage.c: Likewise.
35584 * util/i386/pc/pupa-setup.c: Likewise.
35585
e6eced71 355862004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
35587
35588 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
35589 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
35590 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
35591 reading and reset it after reading.
35592 (pupa_ext2_close): Return PUPA_ERR_NONE.
35593
35594 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
35595 Correct value.
35596 (struct linux_kernel_header): Add kernel_version and
35597 initrd_addr_max.
35598 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
35599 pupa_file_read succeeds.
35600 (pupa_rescue_cmd_initrd): Implement.
35601
5aded270 356022003-12-03 Marco Gerards <metgerards@student.han.nl>
35603
35604 * fs/ext2.c (pupa_ext2_label): New function.
35605 (pupa_ext2_fs): Added label.
35606 * fs/fat.c (pupa_fat_label): New function.
35607 (pupa_fat_fs): Added label.
35608 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
35609
35610 * kern/misc.c (pupa_strndup): New function.
35611 * include/pupa/misc.h (pupa_strndup): New prototype.
35612
35613 * include/pupa/normal.h: Include <pupa/err.h>.
35614 (pupa_set_history): New prototype.
35615 (pupa_iterate_commands): New prototype.
35616 * normal/cmdline.c: Include <pupa/machine/partition.h>,
35617 <pupa/disk.h>, <pupa/file.h>.
35618 (hist_size): New variable.
35619 (hist_lines): Likewise.
35620 (hist_end): Likewise.
35621 (hist_used): Likewise.
35622 (pupa_set_history): New function.
35623 (pupa_history_get): Likewise.
35624 (pupa_history_add): Likewise.
35625 (pupa_history_replace): Likewise.
35626 (pupa_tab_complete): Likewise.
35627 (pupa_cmdline_run): Added tab completion and history buffer. Tab
35628 completion shows partitionnames while completing partitions, this
35629 feature was suggested by Jeff Bailey.
35630 * normal/command.c (pupa_iterate_commands): New function.
35631 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
35632 (pupa_normal_init): Initialize history buffer.
35633 (PUPA_MOD_INIT): Likewise.
35634 (pupa_normal_fini): Free the history buffer.
35635 (PUPA_MOD_FINI): Likewise.
35636
35637 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
35638 key.
35639
35640 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
35641 * configure.ac [i386]: Check for regparam bug.
35642 (NESTED_FUNC_ATTR) [! i386]: Defined.
35643
1f7315a3 356442003-11-17 Marco Gerards <metgerards@student.han.nl>
35645
35646 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
35647 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
35648 (pupa_emu_SOURCES): New variable.
35649 (pupa_emu_LDFLAGS): Likewise.
35650 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
35651 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
35652 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
35653 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
35654 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
35655 (pupa_jmp_buf): New typedef.
35656 (pupa_setjmp) [PUPA_UTIL]: New macro.
35657 (pupa_longjmp) [PUPA_UTIL]: Likewise.
35658 * include/pupa/term.h (struct pupa_term): New member `refresh'.
35659 (pupa_refresh): New prototype.
35660 * include/pupa/util/getroot.h: New file.
35661 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
35662 it.
35663 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
35664 (pupa_rescue_cmd_cat): Likewise.
35665 (pupa_rescue_cmd_ls): Likewise.
35666 (pupa_rescue_cmd_testload): Likewise.
35667 (pupa_rescue_cmd_lsmod): Likewise.
35668 * normal/cmdline.c (pupa_cmdline_get): Likewise.
35669 * normal/menu.c (run_menu): Likewise.
35670 * kern/term.c (pupa_cls): Likewise.
35671 (pupa_refresh): New function.
35672 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
35673 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
35674 * util/console.c: New file.
f19dbdb7 35675
1f7315a3 35676 * util/i386/pc/getroot.c: New file.
35677 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
35678 (pupa_putchar): New function.
35679 (pupa_refresh): Likewise.
35680 (xgetcwd): Function moved to ...
35681 (strip_extra_slashes): Likewise.
35682 (get_prefix): Likewise.
f19dbdb7 35683 * util/i386/pc/getroot.c: ... here.
1f7315a3 35684 (find_root_device): Function moved and renamed to...
35685 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
35686 Changed all callers.
35687 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
35688 and renamed to...
35689 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
35690 Changed all callers.
35691 * util/misc.c (pupa_memalign): New function.
35692 (pupa_mm_init_region): Likewise.
35693 (pupa_register_exported_symbols): Likewise.
35694 (pupa_putchar): Function removed.
35695 * util/pupa-emu.c: New file.
35696
9a5c1ade 356972003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
35698
35699 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
35700 (_multiboot_mod_SOURCES): New variable.
35701 (_multiboot_mod_CFLAGS): Likewise.
35702 * loader/i386/pc/multiboot.c: New file.
35703 * include/pupa/i386/pc/multiboot.h: Likewise.
35704 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
35705 (pupa_multiboot_real_boot): New function.
35706 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
35707 (pupa_multiboot_real_boot): New prototype.
35708 (pupa_rescue_cmd_multiboot): Likewise
35709 (pupa_rescue_cmd_module): Likewise.
35710
35711 * kern/loader.c (pupa_loader_set): Continue when
35712 pupa_loader_unload_func() fails.
35713 (pupa_loader_unset): New function.
35714 * include/pupa/loader.h (pupa_loader_unset): New prototype.
35715
35716 * kern/misc.c (pupa_stpcpy): New function.
35717 * include/pupa/misc.h (pupa_stpcpy): New prototype.
35718
8e72a9c0 357192003-11-12 Marco Gerards <metgerards@student.han.nl>
35720
35721 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
35722 for available extensions.
35723
35724 * include/pupa/i386/pc/time.h: New file.
35725 * kern/disk.c: Include <pupa/machine/time.h>.
35726 (PUPA_CACHE_TIMEOUT): New macro.
35727 (pupa_last_time): New variable.
35728 (pupa_disk_open): Flush the cache when there was a timeout.
35729 (pupa_disk_close): Reset the timer.
35730 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
35731 pupa_currticks.
35732 * util/misc.c: Include <sys/times.h>
35733 (pupa_get_rtc): New function.
35734
c4adbd32 357352003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
35736
35737 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
35738 as blocks.
35739 (pupa_ext2_get_file_block): Use blocks member.
35740
35741 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
35742 first block. Return -1 instead of pupa_errno on error.
35743
bfd30f06 357442003-10-27 Marco Gerards <metgerards@student.han.nl>
35745
35746 * README: In the pupa-mkimage example use _chain instead of chain
35747 and ext2 instead of fat.
35748 * TODO: Replace ext2fs with jfs as an example. Add an item for
35749 adding journal playback for ext2fs.
35750 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
35751 (pkgdata_MODULES): Added ext2.mod.
35752 (ext2_mod_SOURCES): New variable.
35753 (ext2_mod_CFLAGS): Likewise.
35754 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
35755 * include/pupa/misc.h (pupa_strncpy): New prototype.
35756 (pupa_strcat): Likewise.
35757 (pupa_strncmp): Likewise.
35758 * kern/misc.c (pupa_strcat): Enable function.
35759 (pupa_strncpy): New function.
35760 (pupa_strncmp): Likewise.
35761 * fs/ext2.c: New file.
f19dbdb7 35762
bfd30f06 35763 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
35764 when the read failed before retrying.
35765 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
35766 (_FILE_OFFSET_BITS): Likewise.
35767 * configure.ac: Added AC_SYS_LARGEFILE.
35768
98d15063 357692003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
35770
35771 * genmk.rb (PModule#rule): Make sure to get only symbol names
35772 from the output of nm.
59cad637 35773 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 35774
18d9c7cd 357752003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
35776
35777 I forgot to check in these changes for a long time. This adds
35778 incomplete support for VGA console, and this is still very
35779 buggy. Also, a lot of consideration is required for I18N,
35780 UNICODE, and VGA font issues. Therefore, assume that this is
35781 such that "better than nothing".
f19dbdb7 35782
18d9c7cd 35783 * font/manager.c: New file.
35784 * include/pupa/font.h: Likewise.
35785 * include/pupa/i386/pc/vga.h: Likewise.
35786 * term/i386/pc/vga.c: Likewise.
35787 * util/unifont2pff.rb: Likewise.
35788
35789 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
35790 (pkgdata_MODULES): Added vga.mod and font.mod.
35791 (vga_mod_SOURCES): New variables.
35792 (vga_mod_CFLAGS): Likewise.
35793 (font_mod_SOURCES): Likewise.
35794 (font_mod_CFLAGS): Likewise.
35795
35796 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
35797
35798 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 35799 (struct pupa_term): Added init and fini.
18d9c7cd 35800 Changed the argument of putchar to pupa_uint32_t.
35801
35802 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
35803 (pupa_console_real_putchar): New prototype.
35804 (pupa_console_putchar): Removed.
35805 (pupa_console_checkkey): Exported.
35806 (pupa_console_getkey): Likewise.
35807
35808 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
35809 characters.
35810
35811 * kern/term.c (pupa_term_set_current): Rewritten.
35812 (pupa_putchar): Likewise.
35813 (pupa_putcode): New function.
35814
35815 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
35816 (pupa_console_real_putchar): ... this.
35817 (pupa_vga_set_mode): New function.
35818 (pupa_vga_get_font): Likewise.
35819
35820 * normal/command.c: Include pupa/term.h.
35821 (terminal_command): New function.
35822 (pupa_command_init): Register the command "terminal".
35823
35824 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
35825 (DISP_UP): Likewise.
35826 (DISP_RIGHT): Likewise.
35827 (DISP_DOWN): Likewise.
35828 (DISP_HLINE): Likewise.
35829 (DISP_VLINE): Likewise.
35830 (DISP_UL): Likewise.
35831 (DISP_UR): Likewise.
35832 (DISP_LL): Likewise.
35833 (DISP_LR): Likewise.
35834
35835 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 35836
977329f5 358372003-02-08 NIIBE Yutaka <gniibe@m17n.org>
35838
35839 * util/resolve.c (pupa_util_resolve_dependencies): BUG
35840 FIX. Reverse the path_list.
35841
35842 * include/pupa/normal.h: Export pupa_register_command and
35843 pupa_unregister_command.
35844
35845 * hello/hello.c (pupa_cmd_hello): New module.
35846 * conf/i386-pc.rmk: Added hello.mod.
35847
1f5ab428 358482003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
35849
35850 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 35851
1f5ab428 35852 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
35853 (compress_kernel): New variable.
35854 (generate_image): Heavily modified to support compressing a
35855 large part of the core image.
35856
35857 * util/misc.c (pupa_util_read_image): Fix a file descriptor
35858 leak.
35859 (pupa_util_load_image): New function.
35860
35861 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
35862 (pupa_compressed_size): New variable.
35863 (codestart): Enable Gate A20 here.
35864 Decompress the compressed part of the core image.
35865 Rearrange the code to put functions and variables which are
35866 required for initialization in the non-compressed part.
35867 Include lzo1x.S.
35868
35869 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
35870 here.
35871
35872 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
35873
f19dbdb7 35874 * include/pupa/i386/pc/kernel.h
1f5ab428 35875 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
35876 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
35877 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
35878 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
35879 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
35880
35881 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
35882
35883 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
35884 (Utility#rule): Likewise.
35885
35886 * configure.ac: Check if LZO is available.
35887
ce5bf700 358882003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
35889
35890 * include/pupa/normal.h: New file.
35891 * include/pupa/setjmp.h: Likewise.
35892 * include/pupa/i386/setjmp.h: Likewise.
35893 * normal/cmdline.c: Likewise.
35894 * normal/command.c: Likewise.
35895 * normal/main.c: Likewise.
35896 * normal/menu.c: Likewise.
35897 * normal/i386/setjmp.S: Likewise.
f19dbdb7 35898
ce5bf700 35899 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
35900 (pupa_rescue_cmd_initrd): Likewise.
35901
35902 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
35903 Likewise.
35904
35905 * kern/i386/pc/startup.S (translation_table): New variable.
35906 (translate_keycode): New function.
35907 (pupa_console_getkey): Call translate_keycode.
35908
35909 * kern/rescue.c (attempt_normal_mode): New function.
35910 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
35911 it failed, print a message.
35912
35913 * kern/mm.c (pupa_real_malloc): Print more information when a
35914 free magic is broken.
35915 (pupa_free): If the first free header is not free actually, set
35916 it to P.
35917
35918 * kern/main.c (pupa_load_normal_mode): Just load the module
35919 "normal".
35920 (pupa_main): Don't print the message
35921 "Entering into rescue mode..." here.
35922
35923 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
35924 Declared.
35925 (pupa_rescue_cmd_initrd): Likewise.
35926 (pupa_rescue_cmd_initrd): Likewise.
35927
35928 * include/pupa/symbol.h (FUNCTION): Specify the type.
35929 (VARIABLE): Likewise.
35930
35931 * include/pupa/err.h (pupa_err_t): Added
35932 PUPA_ERR_UNKNOWN_COMMAND.
35933
35934 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
35935 (pupa_dl_get_prefix): Likewise.
35936
35937 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
35938 Added _chain.mod and _linux.mod instead of chain.mod and
35939 linux.mod.
35940 (chain_mod_SOURCES): Renamed to ...
35941 (_chain_mod_SOURCES): ... this.
35942 (chain_mod_CFLAGS): Renamed to ...
35943 (_chain_mod_CFLAGS): ... this.
35944 (linux_mod_SOURCES): Renamed to ...
35945 (_linux_mod_SOURCES): ... this.
35946 (linux_mod_CFLAGS): Renamed to ...
35947 (_linux_mod_CFLAGS): ... this.
35948 (normal_mod_SOURCES): New variable.
35949 (normal_mod_CFLAGS): Likewise.
35950 (normal_mod_ASFLAGS): Likewise.
35951
359522003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
35953
35954 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
35955 possible.
35956
fe6b695a 35957 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 35958 recursively.
35959 (pupa_dl_unref): Unrefer depending modules recursively.
35960 Don't call pupa_dl_unload implicitly, because PUPA can crash if
35961 a module is unloaded before one depending on that module is
35962 unloaded.
35963 (pupa_dl_unload): Unload depending modules explicitly,
35964 if possible.
35965
c04da074 359662003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
35967
35968 * include/pupa/i386/pc/linux.h: New file.
35969 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 35970
c04da074 35971 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
35972 Removed.
35973 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
35974 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
35975 of PUPA_CHAINLOADER_BOOT_SECTOR.
35976
35977 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
35978 (pupa_linux_prot_size): New variable.
35979 (pupa_linux_tmp_addr): Likewise.
35980 (pupa_linux_real_addr): Likewise.
35981 (pupa_linux_boot_zimage): New function.
35982 (pupa_linux_boot_bzimage): Likewise.
35983
35984 * kern/i386/pc/init.c (struct mem_region): New structure.
35985 (MAX_REGIONS): New macro.
35986 (mem_regions): New variable.
35987 (num_regions): Likewise.
35988 (pupa_os_area_addr): Likewise.
35989 (pupa_os_area_size): Likewise.
35990 (pupa_lower_mem): Likewise.
35991 (pupa_upper_mem): Likewise.
35992 (add_mem_region): New function.
35993 (compact_mem_regions): Likewise.
35994 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
35995 the size of the conventional memory and that of so-called upper
35996 memory (before the first memory hole).
35997 Instead of adding each found region to free memory, use
35998 add_mem_region and add them after removing overlaps.
35999 Also, add only 1/4 of the upper memory to free memory. The rest
36000 is used for loading OS images. Maybe this is ad hoc, but this
36001 makes it much easier to relocate OS images when booting.
36002
36003 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
36004 (pupa_enter_rescue_mode): Don't register initrd and module.
36005
36006 * kern/mm.c: Include pupa/dl.h.
36007
36008 * kern/main.c: Include pupa/file.h and pupa/device.h.
36009
36010 * kern/loader.c (pupa_loader_load_module_func): Removed.
36011 (pupa_loader_load_module): Likewise.
36012
36013 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
36014 ``.o''.
36015
36016 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
36017 (pupa_linux_tmp_addr): Likewise.
36018 (pupa_linux_real_addr): Likewise.
36019 (pupa_linux_boot_zimage): Likewise.
36020 (pupa_linux_boot_bzimage): Likewise.
36021
36022 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
36023 (pupa_upper_mem): Likewise.
36024 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
36025 module is too dangerous.
36026
36027 * include/pupa/loader.h (pupa_os_area_addr): Declared.
36028 (pupa_os_area_size): Likewise.
36029 (pupa_loader_set): Remove the first argument. Loader doesn't
36030 manage modules or initrd any longer.
36031 (pupa_loader_load_module): Removed.
36032
36033 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
36034 (linux_mod_SOURCES): New variable.
36035 (linux_mod_CFLAGS): Likewise.
36036
a13f9237 360372003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
36038
36039 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
36040 the length of a blocklist correctly.
36041
36042 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
36043 Use ioctl only if the OS file is a block device.
36044 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
36045 not very useful for normal files.
36046
36047 * kern/main.c (pupa_set_root_dev): New function.
36048 (pupa_load_normal_mode): Likewise.
36049 (pupa_main): Call those above.
36050
36051 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
36052 pupa_uint16_t.
36053
36054 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
36055
a5ffe966 360562003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
36057
36058 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
36059 (setup): Configure the installed partition information and the
36060 dl prefix.
36061
36062 * loader/i386/pc/chainloader.c (my_mod): New variable.
36063 (pupa_chainloader_unload): New function.
36064 (pupa_rescue_cmd_chainloader): Refer itself.
36065 (PUPA_MOD_INIT): Save its own module in MY_MOD.
36066
36067 * kern/i386/pc/startup.S (install_partition): Removed.
36068 (version_string): Likewise.
36069 (config_file): Likewise.
36070 (pupa_install_dos_part): New variable.
36071 (pupa_install_bsd_part): Likewise.
36072 (pupa_prefix): Likewise.
36073 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
36074
36075 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
36076 and pupa/misc.h.
36077 (make_install_device): New function.
36078 (pupa_machine_init): Set the dl prefix.
36079
36080 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
36081 (buf): Renamed to ...
36082 (linebuf): ... this.
36083 (pupa_rescue_cmd_prefix): New function.
36084 (pupa_rescue_cmd_insmod): Likewise.
36085 (pupa_rescue_cmd_rmmod): Likewise.
36086 (pupa_rescue_cmd_lsmod): Likewise.
36087 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
36088 rmmod and lsmod.
36089
36090 * kern/mm.c (pupa_memalign): If failed even after invalidating
36091 disk caches, unload unneeded modules and retry.
36092
36093 * kern/misc.c (pupa_memmove): New function.
36094 (pupa_memcpy): Removed.
36095 (pupa_strcpy): New function.
36096 (pupa_itoa): Made static.
36097
36098 * kern/dl.c (pupa_dl_iterate): New function.
36099 (pupa_dl_ref): Likewise.
36100 (pupa_dl_unref): Likewise.
36101 (pupa_dl_unload): Return if succeeded or not.
36102 (pupa_dl_unload_unneeded): New function.
36103 (pupa_dl_unload_all): Likewise.
36104 (pupa_dl_init): Renamed to ...
36105 (pupa_dl_set_prefix): ... this.
36106 (pupa_dl_get_prefix): New function.
36107
36108 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
36109 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
36110 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
36111 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
36112 (pupa_install_dos_part): Declared.
36113 (pupa_install_bsd_part): Likewise.
36114 (pupa_prefix): Likewise.
36115 (pupa_boot_drive): Likewise.
36116
36117 * include/pupa/types.h: Fix a typo.
36118
36119 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
36120 pupa_memmove.
36121 (pupa_memmove): Declared.
36122 (pupa_strcpy): Likewise.
36123
36124 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
36125 pupa_mod_init takes one argument, its own module.
36126 (pupa_dl_unload_unneeded): Declared.
36127 (pupa_dl_unload_all): Likewise.
36128 (pupa_dl_ref): Likewise.
36129 (pupa_dl_unref): Likewise.
36130 (pupa_dl_iterate): Likewise.
36131 (pupa_dl_init): Renamed to ...
36132 (pupa_dl_set_prefix): ... this.
36133 (pupa_dl_get_prefix): Declared.
36134
36135 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 36136 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 36137 unloaded.
36138 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
36139 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
36140
36141 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
36142 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
36143
012d7999 361442003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
36145
36146 * util/i386/pc/pupa-setup.c (setup): Define the internal
36147 function find_first_partition_start at the top level, because GCC
36148 3.0.x cannot compile internal functions in deeper scopes
36149 correctly.
36150 (find_root_device): Use lstat instead of stat.
36151 Don't follow symbolic links.
36152 Fix the path-constructing code.
36153
36154 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
36155 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
36156 by a BLKGETSIZE ioctl first, because block devices don't fill
36157 the member st_mode of the structure stat on Linux.
36158 [__linux__] (linux_find_partition): Use a temporary buffer
36159 REAL_DEV for the working space. Copy it to DEV before returning.
36160 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
36161 buffer cache consistent.
36162 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
36163 strncmp. The previous value was merely wrong.
36164 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
36165
36166 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
36167 FAT size is 12. The previous value was merely wrong.
36168
36169 * kern/main.c (pupa_main): Don't split the starting message from
36170 newlines.
36171
36172 * kern/term.c (pupa_putchar): Put CR after LF instead of before
36173 LF, because BIOS goes crazy about character attributes in this
36174 case.
36175
1cc73a62 361762003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
36177
36178 * include/i386/pc/util/biosdisk.h: New file.
36179 * util/i386/pc/biosdisk.c: Likewise.
36180 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 36181
1cc73a62 36182 * Makefile.in (INCLUDE_DISTFILES): Added
36183 include/pupa/i386/pc/util/biosdisk.h.
36184 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
36185 directory util/i386/pc.
36186 (install-local): Added a rule for sbin_UTILITIES.
36187 (uninstall): Likewise.
36188
36189 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
36190
36191 * util/misc.c (xrealloc): New function.
36192 (pupa_malloc): Likewise.
36193 (pupa_free): Likewise.
36194 (pupa_realloc): Likewise.
36195 (pupa_stop): Likewise.
36196 (pupa_putchar): Likewise.
36197
36198 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
36199
36200 * include/pupa/util/misc.h (xrealloc): Declared.
36201
36202 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
36203 macro.
36204 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
36205 (PUPA_BOOT_MACHINE_BPB_END): ... this.
36206
36207 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
36208 [PUPA_UTIL] (pupa_fat_fini): Likewise.
36209
36210 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
36211 way should be implemented.
36212 [PUPA_UTIL] (pupa_fat_fini): Likewise.
36213
36214 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
36215 the size of NAME for safety.
36216 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
36217 0x88.
36218
36219 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
36220 (pupa_setup_SOURCES): Likewise.
36221
36222 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
36223
08b70fe8 362242002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
36225
36226 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
36227 bunch of pushl's from pusha, because this destroys the return
36228 value.
36229
62ddcc8f 362302002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
36231
36232 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
36233 This means that any missing prototypes could be fatal. Also, you
36234 must take care when writing assembly code. See the comments at
36235 the beginning of startup.S, for more details.
f19dbdb7 36236
62ddcc8f 36237 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
36238 compilation mechanism.
36239 (pupa_chainloader_real_boot): Likewise.
36240 (pupa_biosdisk_rw_int13_extensions): Likewise.
36241 (pupa_biosdisk_rw_standard): Likewise.
36242 (pupa_biosdisk_check_int13_extensions): Likewise.
36243 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
36244 (pupa_biosdisk_get_diskinfo_standard): Likewise.
36245 (pupa_get_memsize): Likewise.
36246 (pupa_get_mmap_entry): Likewise.
36247 (pupa_console_putchar): Likewise.
36248 (pupa_console_setcursor): Likewise.
36249 (pupa_getrtsecs): Use pushl instead of push.
36250
36251 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
36252 memory instead of the stack for a mmap entry, because some
36253 BIOSes may ignore the maximum size and overflow.
36254
36255 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
36256
36257 * genmk.rb (PModule#rule): Compile automatically generated
36258 sources with module-specific CFLAGS as well as other sources.
36259
9962ed99 362602002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
36261
36262 * configure.ac: Check ld.
36263 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
36264 respectively, before checking endianness and sizes.
36265
36266 * Makefile.in (LD): New variable.
f19dbdb7 36267
abdfc3c5 362682002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
36269
36270 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
36271
6a161fa9 362722002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
36273
36274 * Changelog: New file.
36275